@ckeditor/ckeditor5-track-changes 49.0.0-alpha.3 → 49.0.0-alpha.5

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 _0x38838e,PendingActions as _0x12efb1,Plugin as _0x3ad3dd}from'@ckeditor/ckeditor5-core';import{Annotations as _0x1643d3,Comments as _0x50e028,CommentsRepository as _0xfce073,EditorAnnotations as _0x50a79c}from'@ckeditor/ckeditor5-comments';import{CKEditorError as _0x288763,Collection as _0x4aa878,FocusTracker as _0x3769a2,KeystrokeHandler as _0x4218af,ObservableMixin as _0x26023d,getEnvKeystrokeText as _0x5d9137,insertToPriorityArray as _0x4c1d15,logWarning as _0x31dd9f,priorities as _0x3541dd,trustedHtml as _0xfe69fd,uid as _0x4551b0}from'@ckeditor/ckeditor5-utils';import{IconAIAuthor as _0x6f8932,IconCancel as _0x327231,IconCheck as _0x11e455,IconSparkle as _0x1742f0,IconTrackChanges as _0x24cb40}from'@ckeditor/ckeditor5-icons';import{BodyCollection as _0xd22b59,Dialog as _0x19fe33,FocusCycler as _0xf30591,ListSeparatorView as _0x11e989,MenuBarMenuListItemButtonView as _0x69ecc9,MenuBarMenuListItemView as _0x2d7c90,MenuBarMenuListView as _0x900833,MenuBarMenuView as _0x4d2928,SplitButtonView as _0xb7a463,UIModel as _0xb9049e,View as _0x2e02d5,ViewCollection as _0x5c58e4,_getLocalizedColorName as _0xbaf3ab,addListToDropdown as _0x30d71f,createDropdown as _0x2ba453,normalizeColorOptions as _0x4623a9}from'@ckeditor/ckeditor5-ui';import{AriaDescriptionView as _0x181af5,CollaborationUserColor as _0x24a81f,FOCUS_ANNOTATION_KEYSTROKE as _0x508fcc,LateFocusButtonView as _0x54f4c8,PillView as _0x54dab4,SuggestionsConversion as _0x33ba29,User as _0xfc1668,UserView as _0x414c48,Users as _0x3c08c6,fixElementSuggestionRange as _0x6f4f58,getAllMarkersDomElementsSorted as _0x461e04,getDateTimeFormatter as _0x8744f6,hashObject as _0x3cf3fe,isInvalidAttributeOperation as _0x4a709e,sanitizeEditorConfig as tt,setupThreadKeyboardNavigation as et,splitSuggestionMarkerName as nt,surroundingMarkersDetector as it,trimHtml as st}from'@ckeditor/ckeditor5-collaboration-core';import{ModelElement as rt,ModelLivePosition as ot,ModelLiveRange as at,ViewDowncastWriter as ct}from'@ckeditor/ckeditor5-engine';import{cloneDeep as lt,isEqual as ut,omit as dt,set as ht,unset as gt}from'es-toolkit/compat';import{ClipboardMarkersUtils as ft,ClipboardPipeline as mt}from'@ckeditor/ckeditor5-clipboard';import{Delete as Et,Input as Tt}from'@ckeditor/ckeditor5-typing';import{Enter as _t}from'@ckeditor/ckeditor5-enter';var pt=class extends _0x38838e{['_enabledCommands'];constructor(_0x570370,_0x35d3d2){super(_0x570370),this['_enabledCommands']=_0x35d3d2,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 _0x1a6a55 of this['editor']['commands']['commands']())_0x1a6a55['affectsData']&&!this['_enabledCommands']['has'](_0x1a6a55)&&_0x1a6a55['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x312b74 of this['editor']['commands']['commands']())_0x312b74['affectsData']&&!this['_enabledCommands']['has'](_0x312b74)&&_0x312b74['clearForceDisabled']('TrackChangesCommand');}},Lt=class extends _0x38838e{_suggestions;constructor(_0xd86c49,_0x1e31b0){super(_0xd86c49),this['_suggestions']=_0x1e31b0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0xd430e4){const _0x322d25=this['_suggestions']['get'](_0xd430e4);if(!_0x322d25)throw new _0x288763('track-changes-accept-suggestion-not-found',this);const _0x2570f2=_0x322d25['getRanges']();this['editor']['model']['canEditAt'](_0x2570f2)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x322d25);}},It=class extends _0x38838e{_suggestions;constructor(_0x11372e,_0x17f69f){super(_0x11372e),this['_suggestions']=_0x17f69f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x324073){const _0x1b8fe7=this['_suggestions']['get'](_0x324073);if(!_0x1b8fe7)throw new _0x288763('track-changes-discard-suggestion-not-found',this);const _0x1c7f70=_0x1b8fe7['getRanges']();this['editor']['model']['canEditAt'](_0x1c7f70)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x1b8fe7);}};function At(_0x1f723b,_0x3243de){let _0x106709='';return _0x106709+=_0x1f723b['split']('*')['map']((_0x46d172,_0x3075e2)=>_0x3075e2%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+bt(_0x46d172)+'</span>':bt(_0x46d172))['join'](''),_0x3243de&&(_0x106709+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3243de['value']+'\x22\x20title=\x22'+_0x3243de['title']+'\x22></span>'),_0x106709;}function bt(_0x287783){const _0x31e90a=document['createElement']('span');return _0x31e90a['innerText']=_0x287783,_0x31e90a['innerHTML'];}function Ct(_0x36559c){return _0x36559c['sort']((_0x466e1d,_0x35bbd0)=>'attribute'===_0x466e1d['type']&&'attribute'!==_0x35bbd0['type']?-0x1:'attribute'!==_0x466e1d['type']&&'attribute'===_0x35bbd0['type']?0x1:'deletion'==_0x466e1d['type']&&'deletion'!=_0x35bbd0['type']?-0x1:'deletion'!=_0x466e1d['type']&&'deletion'==_0x35bbd0['type']?0x1:0x0);}function kt(_0x3a5049,_0x1953ed){let _0x3ec11d,_0x3196b9=0x0;const _0x40e65d=[],_0x5e203d=_0x1953ed['schema'];for(;_0x3196b9<_0x3a5049['length'];){const _0xbe3ce9=_0x3a5049[_0x3196b9],_0x241797=_0x3a5049[_0x3196b9+0x1];_0x3ec11d||(_0x3ec11d=_0x1953ed['createPositionBefore'](_0xbe3ce9)),Rt(_0x1953ed,_0xbe3ce9,_0x241797)||(_0x40e65d['push'](_0x1953ed['createRange'](_0x3ec11d,_0x5e203d['isObject'](_0xbe3ce9)?_0x1953ed['createPositionAfter'](_0xbe3ce9):_0x1953ed['createPositionAt'](_0xbe3ce9,'end'))),_0x3ec11d=null),_0x3196b9++;}return _0x40e65d;}function Rt(_0x471980,_0x5b461f,_0x43447a){if(!_0x43447a)return!0x1;const _0x313ae2=_0x471980['createPositionAfter'](_0x5b461f),_0x556059=_0x471980['createPositionBefore'](_0x43447a);return _0x313ae2['isTouching'](_0x556059);}function Nt(_0x56c2df,_0x435f33,_0x2139ef){for(;_0x2139ef['length'];){const _0x1da96e=_0x2139ef['splice'](0x0,0x64);_0x56c2df['change'](()=>{for(const _0x544a96 of _0x1da96e)_0x544a96['isInContent']&&_0x435f33['execute'](_0x544a96['id']);});}}var yt=class extends _0x38838e{['_command'];_suggestions;constructor(_0x12c254,_0x17958d,_0x4747fd){super(_0x12c254),this['_command']=_0x17958d,this['_suggestions']=_0x4747fd,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x241036=Array['from'](this['_suggestions']['values']())['some'](_0x28ceac=>_0x28ceac['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x241036;}execute(){const _0x20a20d=Ct(Array['from'](this['_suggestions']['values']()));for(const _0x31bedc of _0x20a20d){const _0x5594ae=_0x31bedc['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5594ae))return;}Nt(this['editor']['model'],this['_command'],_0x20a20d);}},St=class extends _0x38838e{['_command'];_suggestions;_selectedSuggestions;constructor(_0x442a37,_0x409a23,_0x1dfc52){super(_0x442a37),this['_command']=_0x409a23,this['_suggestions']=_0x1dfc52,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x16c5e2=this['editor']['model']['document']['selection'],_0x30afac=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x5e0f18,_0x23b89f){const _0x38d0b3=Array['from'](_0x5e0f18['getRanges']()),_0x227031=new Set();for(const _0x193957 of _0x23b89f)if(_0x193957['isInContent']){for(const _0x1548a9 of _0x38d0b3)for(const _0x16a289 of _0x193957['getRanges']())(_0x1548a9['isIntersecting'](_0x16a289)||_0x5e0f18['isCollapsed']&&!_0x193957['isMultiRange']&&_0x193957['next']&&_0x16a289['end']['isTouching'](_0x1548a9['start']))&&_0x227031['add'](_0x193957);}return _0x227031;}(_0x16c5e2,_0x30afac),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}execute(){const _0x5aeeba=Ct(Array['from'](this['_selectedSuggestions']));for(const _0x5a1922 of _0x5aeeba){const _0x296fa3=_0x5a1922['getRanges']();if(!this['editor']['model']['canEditAt'](_0x296fa3))return;}Nt(this['editor']['model'],this['_command'],_0x5aeeba);}};const Mt=/* #__PURE__ -- @preserve */
24
- _0x26023d();var Ot=class Suggestion extends Mt{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0x30b248,_0x1b6ab0){super(),this['id']=_0x1b6ab0['id'],this['type']=_0x1b6ab0['type'],this['subType']=_0x1b6ab0['subType']||null,this['author']=_0x1b6ab0['author'],this['creator']=_0x1b6ab0['creator']||_0x1b6ab0['author'],this['data']=null,this['_originalSuggestionId']=_0x1b6ab0['originalSuggestionId']||null,this['_model']=_0x30b248,this['_onAccept']=_0x1b6ab0['onAccept'],this['_onDiscard']=_0x1b6ab0['onDiscard'],this['_onAttributesChange']=_0x1b6ab0['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1b6ab0['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 _0x5878b0=this;for(;_0x5878b0['previous'];)_0x5878b0=_0x5878b0['previous'];return _0x5878b0;}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'](_0x3a5b4c){this['_markerNames']['add'](_0x3a5b4c);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0x479200=>this['_model']['markers']['get'](_0x479200))['filter'](_0x28154b=>_0x28154b);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x117391=>{for(const _0x5973f8 of this['getMarkers']())_0x117391['removeMarker'](_0x5973f8);}),this['_markerNames']['clear']();}['removeMarker'](_0x5c79ab){this['_model']['change'](_0x4dadaa=>{_0x4dadaa['removeMarker'](_0x5c79ab);}),this['_markerNames']['delete'](_0x5c79ab);}['addRange'](_0x42b4d6){const _0x87e7ad='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x87e7ad),this['_model']['change'](_0x29990f=>{_0x29990f['addMarker'](_0x87e7ad,{'range':_0x42b4d6,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0x5b20e5){for(const _0x1b2573 of this['getRanges']())if(_0x1b2573['isIntersecting'](_0x5b20e5))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0x2d693b=>_0x2d693b['getRange']());}getItems(){return this['getRanges']()['reduce']((_0x5ef242,_0xd5dd91)=>[..._0x5ef242,..._0xd5dd91['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0x4ab2b7=this['getRanges']();if(0x1!=_0x4ab2b7['length'])return null;const _0x70a300=_0x4ab2b7[0x0],_0x2e65c4=_0x70a300['start']['nodeAfter'],_0x59c1bd=_0x70a300['end']['nodeBefore'];return _0x2e65c4 instanceof rt?_0x2e65c4!=_0x59c1bd?null:_0x2e65c4: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 _0x4c9c24=[];let _0x284127=this['head'];for(;_0x284127;)_0x4c9c24['push'](_0x284127),_0x284127=_0x284127['next'];return _0x4c9c24;}setAttribute(_0xfb6610,_0x163e50){const _0x34840e=lt(this['attributes']);ht(_0x34840e,_0xfb6610,_0x163e50),ut(_0x34840e,this['attributes'])||(this['attributes']=_0x34840e,this['_onAttributesChange'](_0x34840e));}removeAttribute(_0x26266f){const _0x25e47d=lt(this['attributes']);gt(_0x25e47d,_0x26266f),ut(_0x25e47d,this['attributes'])||(this['attributes']=_0x25e47d,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 _0x4551b0()['substr'](0x1,0x5);}};function wt(_0x4413c8,_0x3ce5dc,_0x4531be){const _0x2763ae=_0x4413c8['t'],t=_0x4413c8['t'];switch(_0x3ce5dc){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',_0x4531be);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4531be);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4531be);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4531be);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4531be);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',_0x4531be);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4531be);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',_0x4531be);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4531be);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4531be);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4531be);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4531be);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4531be);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4531be);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4531be);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4531be);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4531be);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4531be);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4531be);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4531be);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4531be);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4531be);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4531be);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4531be);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x4531be);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'},_0x4531be);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x4531be);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x4531be);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4531be);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4531be);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4531be);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4531be);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4531be);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'},_0x4531be);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'},_0x4531be);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4531be);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4531be);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4531be);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4531be);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'},_0x4531be);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4531be);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'},_0x4531be);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'},_0x4531be);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4531be);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'},_0x4531be);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4531be);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'},_0x4531be);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4531be);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x4531be);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x4531be);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x4531be);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4531be);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'},_0x4531be);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4531be);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 _0x2763ae({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4531be);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2763ae({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4531be);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4531be);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'},_0x4531be);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'},_0x4531be);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'},_0x4531be);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});case'SUGGESTION_ACTIONS_DISABLED_TOOLTIP':return t({'string':'This\x20suggestion\x20can\x27t\x20be\x20resolved\x20right\x20now.','id':'SUGGESTION_ACTIONS_DISABLED_TOOLTIP'});default:return _0x3ce5dc;}}var Bt=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0x5cdc5d,_0x4fd1c0){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5cdc5d,this['_locale']=_0x4fd1c0;}getDescriptions(_0x41cf69){const _0x1566d1=[],_0x22f464=new Set(),_0x192519=new Set();for(let _0x574469=0x0;_0x574469<_0x41cf69['length'];_0x574469++){const _0xaa4cd8=_0x41cf69[_0x574469];if(!_0xaa4cd8['isInContent'])continue;const _0x31f76=this['_handleCustomCallbackDescription'](_0xaa4cd8);if(_0x31f76){if(null!=_0xaa4cd8['subType']){if(_0x22f464['has'](_0xaa4cd8['subType']))continue;_0x22f464['add'](_0xaa4cd8['subType']);}_0x1566d1['push'](_0x31f76);}else{if('attribute'==_0xaa4cd8['type']){const _0x3d30d4=_0xaa4cd8['data']['key'];if(_0x192519['has'](_0x3d30d4))continue;_0x192519['add'](_0xaa4cd8['data']['key']),'$elementName'==_0x3d30d4?this['_handleRenameSuggestionDescription'](_0x1566d1,_0xaa4cd8):this['_handleAttributeSuggestionDescription'](_0x1566d1,_0xaa4cd8);continue;}'insertion'!=_0xaa4cd8['type']&&'deletion'!=_0xaa4cd8['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1566d1,_0xaa4cd8,_0x41cf69[_0x574469+0x1]);}}return this['_resolveDescriptionItems'](_0x1566d1);}registerDescriptionCallback(_0x367d20){this['_customCallbacks']['push'](_0x367d20);}registerElementLabel(_0x1523a5,_0x16a136,_0x2ebcb5=_0x3541dd['normal']){'function'==typeof _0x1523a5?_0x4c1d15(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1523a5,'label':_0x16a136,'priority':_0x2ebcb5}):this['_itemLabels']['set'](_0x1523a5,_0x16a136);}registerAttributeLabel(_0x1b9025,_0x1c6d07){this['_attributeLabels']['set'](_0x1b9025,_0x1c6d07);}getItemLabel(_0x59c63d,_0x1a3c43=0x1){let _0x5a318a;for(const _0x33af89 of this['_itemLabelsCallbacks'])if(_0x33af89['matchingCallback'](_0x59c63d)){_0x5a318a=_0x33af89['label'];break;}return _0x5a318a||(_0x5a318a=this['_itemLabels']['get'](_0x59c63d['name'])),_0x5a318a?_0x5a318a(_0x1a3c43):0x1!==_0x1a3c43?_0x1a3c43+'\x20'+_0x59c63d['name']+'s':''+_0x59c63d['name'];}_addDescriptionItems(_0x28b169,_0x1d962c){const _0x37690f=_0x1d962c['getFirstRange']()['getWalker'](),_0x47f75b='insertion'==_0x1d962c['type']?'add':'remove';for(const _0x2c1744 of _0x37690f){const _0x4ac243=_0x2c1744['item'],_0x3acd16=_0x28b169[_0x28b169['length']-0x1];if(_0x4ac243['is']('$textProxy'))_0x3acd16&&_0x3acd16['type']['indexOf']('Container')>-0x1&&_0x28b169['pop'](),_0x3acd16&&'text'==_0x3acd16['type']?_0x3acd16[_0x47f75b]+=_0x4ac243['data']:_0x28b169['push']({'type':'text','add':'add'==_0x47f75b?_0x4ac243['data']:'','remove':'remove'==_0x47f75b?_0x4ac243['data']:''});else{if(this['_schema']['isObject'](_0x4ac243)){const _0x75de4f=_0x4ac243;if(_0x3acd16&&_0x3acd16['type']['indexOf']('Container')>-0x1&&_0x28b169['pop'](),'elementEnd'==_0x2c1744['type'])continue;_0x3acd16&&_0x3acd16['type']==_0x47f75b+'Object'&&_0x3acd16['element']['name']==_0x75de4f['name']?_0x3acd16['quantity']++:_0x28b169['push']({'type':_0x47f75b+'Object','element':_0x75de4f,'quantity':0x1}),_0x37690f['skip'](_0x2b48cc=>!('elementEnd'==_0x2b48cc['type']&&_0x2b48cc['item']==_0x4ac243));}else{if(this['_schema']['checkChild'](_0x4ac243,'$text')||_0x4ac243['is']('element','softBreak')){const _0x478db5=_0x4ac243;if('add'==_0x47f75b&&'elementStart'==_0x2c1744['type']||'remove'==_0x47f75b&&'elementEnd'==_0x2c1744['type'])continue;if(_0x3acd16&&-0x1==_0x3acd16['type']['indexOf']('Container')){'text'==_0x3acd16['type']&&(_0x3acd16[_0x47f75b]+='\x0a');continue;}let _0x47ee34;if(_0x47ee34='add'==_0x47f75b?_0x478db5['nextSibling']&&!this['_schema']['isObject'](_0x478db5['nextSibling'])?_0x478db5['nextSibling']:null:_0x478db5['previousSibling']&&!this['_schema']['isObject'](_0x478db5['previousSibling'])?_0x478db5['previousSibling']:null,_0x478db5['isEmpty']||_0x47ee34&&_0x47ee34['isEmpty']){const _0x4324c8=_0x47ee34&&_0x47ee34['isEmpty']?_0x47ee34:_0x478db5;_0x3acd16&&_0x3acd16['type']==_0x47f75b+'EmptyContainer'&&_0x3acd16['element']['name']==_0x4324c8['name']?_0x3acd16['quantity']++:_0x28b169['push']({'type':_0x47f75b+'EmptyContainer','element':_0x4324c8,'quantity':0x1});}else _0x28b169['push']({'type':_0x47f75b+'Container','element':_0x478db5});}}}}}_resolveDescriptionItems(_0x522451){const _0x4693e0=this['_locale'],_0x52a499=[],_0x12758a=[],_0x3e68ba=[];for(const _0x53cf2f of _0x522451)switch(_0x53cf2f['type']){case'text':if(_0x53cf2f['add']=_0x53cf2f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x53cf2f['remove']=_0x53cf2f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x53cf2f['add']&&''!=_0x53cf2f['remove']){_0x52a499['push']({'type':'replace','content':wt(_0x4693e0,'REPLACE_TEXT',['\x22'+_0x53cf2f['remove']+'\x22','\x22'+_0x53cf2f['add']+'\x22'])});continue;}if(null!=_0x53cf2f['add']['match'](/^ +$/)){_0x52a499['push']({'type':'insertion','content':wt(_0x4693e0,'*Insert:*\x20%0',wt(_0x4693e0,'ELEMENT_SPACE',_0x53cf2f['add']['length']))});continue;}if(null!=_0x53cf2f['remove']['match'](/^ +$/)){_0x52a499['push']({'type':'deletion','content':wt(_0x4693e0,'*Remove:*\x20%0',wt(_0x4693e0,'ELEMENT_SPACE',_0x53cf2f['remove']['length']))});continue;}if(''!=_0x53cf2f['add']){_0x52a499['push']({'type':'insertion','content':wt(_0x4693e0,'*Insert:*\x20%0','\x22'+_0x53cf2f['add']+'\x22')});continue;}_0x52a499['push']({'type':'deletion','content':wt(_0x4693e0,'*Remove:*\x20%0','\x22'+_0x53cf2f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x52a499['push']({'type':'insertion','content':wt(_0x4693e0,'*Insert:*\x20%0',this['getItemLabel'](_0x53cf2f['element'],_0x53cf2f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x52a499['push']({'type':'deletion','content':wt(_0x4693e0,'*Remove:*\x20%0',this['getItemLabel'](_0x53cf2f['element'],_0x53cf2f['quantity']))});continue;case'addContainer':_0x52a499['push']({'type':'insertion','content':wt(_0x4693e0,'*Split:*\x20%0',this['getItemLabel'](_0x53cf2f['element'],_0x53cf2f['quantity']))});continue;case'removeContainer':_0x52a499['push']({'type':'deletion','content':wt(_0x4693e0,'*Merge:*\x20%0',this['getItemLabel'](_0x53cf2f['element'],_0x53cf2f['quantity']))});continue;case'addFormat':_0x12758a['push'](_0x53cf2f['key']);continue;case'removeFormat':_0x3e68ba['push'](_0x53cf2f['key']);continue;default:_0x52a499['push'](_0x53cf2f);}if(_0x12758a['length']){const _0x5d52a=_0x12758a['map'](_0x41ce16=>this['_attributeLabels']['has'](_0x41ce16)?this['_attributeLabels']['get'](_0x41ce16):_0x41ce16)['join'](',\x20');_0x52a499['push']({'type':'format','content':wt(this['_locale'],'*Set\x20format:*\x20%0',_0x5d52a)});}if(_0x3e68ba['length']){const _0x1438c4=_0x3e68ba['map'](_0xc04b58=>this['_attributeLabels']['has'](_0xc04b58)?this['_attributeLabels']['get'](_0xc04b58):_0xc04b58)['join'](',\x20');_0x52a499['push']({'type':'format','content':wt(this['_locale'],'*Remove\x20format:*\x20%0',_0x1438c4)});}return _0x52a499;}_handleCustomCallbackDescription(_0x340235){for(const _0x3fc267 of this['_customCallbacks']){const _0x503689=_0x3fc267(_0x340235);if(_0x503689&&'type'in _0x503689)return _0x503689;}}_handleAttributeSuggestionDescription(_0x341e2c,_0x37dc1a){const _0x290b6e=_0x37dc1a['data'],_0x39a8b8=void 0x0===_0x290b6e['newValue']?'removeFormat':'addFormat';_0x341e2c['push']({'type':_0x39a8b8,'key':_0x290b6e['key']});}_handleRenameSuggestionDescription(_0x4fbe30,_0x233f8d){_0x4fbe30['push']({'type':'format','content':wt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x233f8d['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0x4b9296,_0x9fae7c,_0x37a3b0){if(this['_addDescriptionItems'](_0x4b9296,_0x9fae7c),_0x37a3b0&&_0x37a3b0['getFirstRange']()&&!_0x9fae7c['getFirstRange']()['end']['isEqual'](_0x37a3b0['getFirstRange']()['start'])){const _0x44bd13=_0x4b9296[_0x4b9296['length']-0x1],_0x4cf03d='insertion'==_0x9fae7c['type']?'add':'remove';_0x44bd13&&'text'==_0x44bd13['type']&&(_0x44bd13[_0x4cf03d]+='\x0a');}}},Ft=class extends _0x3ad3dd{afterInit(){const _0x3d453e=this['editor'],_0x34412b=_0x3d453e['plugins']['get']('TrackChangesEditing');_0x3d453e['commands']['get']('showAIAssistant')&&_0x34412b['enableCommand']('showAIAssistant');}},vt=class extends _0x3ad3dd{afterInit(){const _0x3efea9=this['editor'],_0x3aa962=_0x3efea9['plugins']['get']('TrackChangesEditing');_0x3efea9['commands']['get']('toggleAi')&&_0x3aa962['enableCommand']('toggleAi');}},Dt=class extends _0x3ad3dd{afterInit(){const _0x59e225=this['editor'],_0x2d50ef=_0x59e225['plugins']['get']('TrackChangesEditing');_0x59e225['commands']['get']('aiQuickAction')&&_0x2d50ef['enableCommand']('aiQuickAction');}},Ut=class extends _0x3ad3dd{afterInit(){const _0x2270db=this['editor'],_0x2484a8=_0x2270db['locale'];if(!_0x2270db['plugins']['has']('AlignmentEditing'))return;const _0x3eacb9=_0x2270db['plugins']['get']('TrackChangesEditing');_0x3eacb9['enableDefaultAttributesIntegration']('alignment'),_0x3eacb9['descriptionFactory']['registerAttributeLabel']('alignment',wt(_0x2484a8,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5afcbc=this['editor'],_0x297564=_0x5afcbc['locale'];_0x5afcbc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf3d035=>{if('formatBlock'!=_0xf3d035['type'])return;const {data:_0x144c71}=_0xf3d035;if(_0x144c71&&'alignment'==_0x144c71['commandName']){const _0x32ef2e=_0x144c71['commandParams'][0x0]['value'];return{'type':'format','content':wt(_0x297564,'*Format:*\x20%0',function(_0x1e0669){switch(_0x1e0669){case'left':return wt(_0x297564,'FORMAT_ALIGN_TO_LEFT');case'right':return wt(_0x297564,'FORMAT_ALIGN_TO_RIGHT');case'center':return wt(_0x297564,'FORMAT_ALIGN_TO_CENTER');case'justify':return wt(_0x297564,'FORMAT_JUSTIFY_TEXT');}}(_0x32ef2e))};}});}};const Pt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var xt=class extends _0x3ad3dd{afterInit(){const _0x3b761d=this['editor'],_0x11bfe6=_0x3b761d['plugins']['get']('TrackChangesEditing'),_0x4f6a87=_0x3b761d['locale'];for(const _0x27ed2c of Pt){if(!_0x3b761d['plugins']['has'](_0x27ed2c))continue;const _0x3d0839=_0x27ed2c['slice'](0x0,-0x7)['toLowerCase'](),_0x3d09ae='FORMAT_'+_0x3d0839['toUpperCase']();_0x11bfe6['enableDefaultAttributesIntegration'](_0x3d0839),_0x11bfe6['descriptionFactory']['registerAttributeLabel'](_0x3d0839,wt(_0x4f6a87,_0x3d09ae));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x4ae978=this['editor'],_0x40bf9b=_0x4ae978['locale'],_0x29ed88=_0x4ae978['plugins']['get']('TrackChangesEditing');function _0x4e1b87(_0x39ceff,_0x5ed4ea){_0x29ed88['descriptionFactory']['registerDescriptionCallback'](_0x516017=>{if('formatInline'!=_0x516017['type'])return;const {data:_0x5c35f5}=_0x516017;return _0x5c35f5&&_0x5c35f5['commandName']===_0x39ceff?_0x5c35f5['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x40bf9b,'*Format:*\x20%0',_0x5ed4ea)}:{'type':'format','content':wt(_0x40bf9b,'*Remove\x20format:*\x20%0',_0x5ed4ea)}:void 0x0;});}_0x4e1b87('bold',wt(_0x40bf9b,'FORMAT_BOLD')),_0x4e1b87('italic',wt(_0x40bf9b,'FORMAT_ITALIC')),_0x4e1b87('underline',wt(_0x40bf9b,'FORMAT_UNDERLINE')),_0x4e1b87('code',wt(_0x40bf9b,'FORMAT_CODE')),_0x4e1b87('strikethrough',wt(_0x40bf9b,'FORMAT_STRIKETHROUGH')),_0x4e1b87('subscript',wt(_0x40bf9b,'FORMAT_SUBSCRIPT')),_0x4e1b87('superscript',wt(_0x40bf9b,'FORMAT_SUPERSCRIPT'));}},Gt=class extends _0x3ad3dd{afterInit(){const _0x21ae39=this['editor'],_0xae5d32=_0x21ae39['locale'];if(!_0x21ae39['plugins']['has']('BlockQuoteEditing'))return;const _0x23e304=_0x21ae39['plugins']['get']('TrackChangesEditing'),_0x3fcd63=this['editor']['commands']['get']('blockQuote');_0x23e304['enableCommand']('blockQuote',(_0x5ba352,_0x3d6b97={})=>{const _0x366c46=this['editor']['model']['document']['selection'],_0x358f66=_0x3d6b97&&void 0x0!==_0x3d6b97['forceValue']?_0x3d6b97['forceValue']:!_0x3fcd63['value'];let _0xb50be5=[];if(_0x358f66){const _0x5c0b8a=Array['from'](_0x366c46['getSelectedBlocks']())['filter'](_0x368e8f=>Ht(_0x368e8f)||function(_0x1fd50c,_0x464357){const _0x1fec33=_0x464357['createContext'](_0x1fd50c['parent']);return!!_0x464357['checkChild'](_0x1fec33,'blockQuote')&&!!_0x464357['checkChild'](_0x1fec33['push']('blockQuote'),_0x1fd50c);}(_0x368e8f,this['editor']['model']['schema']));_0xb50be5=kt(_0x5c0b8a,_0x21ae39['model']);}else{const _0x1a3e39=Array['from'](_0x366c46['getSelectedBlocks']())['filter'](_0x347d30=>Ht(_0x347d30));_0xb50be5=kt(_0x1a3e39,_0x21ae39['model']);}_0x21ae39['model']['change'](()=>{for(const _0x495723 of _0xb50be5)_0x23e304['markBlockFormat'](_0x495723,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x358f66}]});});}),_0x23e304['descriptionFactory']['registerDescriptionCallback'](_0x1786d3=>{const {data:_0x5a58c8}=_0x1786d3;if(_0x5a58c8&&'blockQuote'==_0x5a58c8['commandName']){const _0x500cb9=wt(_0xae5d32,'ELEMENT_BLOCK_QUOTE');return _0x5a58c8['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0xae5d32,'*Set\x20format:*\x20%0',_0x500cb9)}:{'type':'format','content':wt(_0xae5d32,'*Remove\x20format:*\x20%0',_0x500cb9)};}});}};function Ht(_0x471b69){return'blockQuote'==_0x471b69['parent']['name'];}var $t=class extends _0x3ad3dd{afterInit(){const _0x12cba3=this['editor'],_0x37d87a=_0x12cba3['locale'],_0x2b1122=_0x12cba3['plugins']['get']('TrackChangesEditing');_0x12cba3['plugins']['has']('BookmarkEditing')&&(_0x2b1122['enableCommand']('insertBookmark'),_0x2b1122['enableDefaultAttributesIntegration']('updateBookmark'),_0x2b1122['descriptionFactory']['registerDescriptionCallback'](_0x3cd195=>{if('insertion'!=_0x3cd195['type']&&'deletion'!=_0x3cd195['type']&&'attribute'!=_0x3cd195['type'])return;const _0x4d2f5e=_0x3cd195['getContainedElement']();if(null==_0x4d2f5e)return;if(!_0x4d2f5e['is']('element','bookmark'))return;const _0x12a98e=_0x4d2f5e['getAttribute']('bookmarkId');if('insertion'==_0x3cd195['type'])return{'type':'insertion','content':wt(_0x37d87a,'*Insert:*\x20%0','\x22'+_0x12a98e+'\x22\x20'+wt(_0x37d87a,'ELEMENT_BOOKMARK'))};if('deletion'==_0x3cd195['type'])return{'type':'deletion','content':wt(_0x37d87a,'*Remove:*\x20%0','\x22'+_0x12a98e+'\x22\x20'+wt(_0x37d87a,'ELEMENT_BOOKMARK'))};const {data:_0x526821}=_0x3cd195;return _0x526821&&'bookmarkId'==_0x526821['key']?{'type':'format','content':wt(_0x37d87a,'*Set\x20bookmark:*\x20%0','\x22'+_0x526821['newValue']+'\x22')}:void 0x0;}));}},Wt=class extends _0x3ad3dd{afterInit(){const _0x2f8d65=this['editor'];_0x2f8d65['plugins']['has']('CaseChange')&&(_0x2f8d65['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2f8d65['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2f8d65['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},Vt=class extends _0x3ad3dd{afterInit(){const _0x4bf347=this['editor'];_0x4bf347['commands']['get']('ckbox')&&_0x4bf347['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},zt=class extends _0x3ad3dd{static get requires(){return[ft,mt];}constructor(_0x54e97c){super(_0x54e97c),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0x4a560b=this['editor'],_0x577624=_0x4a560b['plugins']['get']('ClipboardMarkersUtils'),_0x3a6f8f=_0x4a560b['plugins']['get'](mt);_0x577624['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0x3a6f8f['on']('outputTransformation',(_0x275812,_0x388741)=>{const _0x555857=this['_getSuggestionEntries'](_0x388741);for(const [_0x16aa23,_0x28f1d2]of _0x388741['content']['markers']){const _0x2e13eb=at['_fromRangeInDocumentFragment'](_0x28f1d2,_0x4a560b['model']);function _0x3985cf(){_0x2e13eb['detach'](),_0x388741['content']['markers']['delete'](_0x16aa23);}_0x2e13eb['on']('change:drop',_0x3985cf),(_0x16aa23['startsWith']('suggestion:')||_0x16aa23['startsWith']('comment:'))&&_0x2e13eb['on']('change:range',()=>{_0x2e13eb['isCollapsed']&&_0x3985cf();}),_0x388741['content']['markers']['set'](_0x16aa23,_0x2e13eb);}const _0x9da1a5=_0x555857['filter'](_0x20d738=>'deletion'===_0x20d738['meta']['type'])['map'](_0xf4ff46=>_0xf4ff46['modelRange']);if(this['_shouldSkipDeletions'](_0x9da1a5,_0x388741['content']))return[..._0x555857]['forEach'](_0x32155f=>{_0x388741['content']['markers']['get'](_0x32155f['markerName'])['detach'](),_0x388741['content']['markers']['delete'](_0x32155f['markerName']);}),void this['_restoreRegularRanges'](_0x388741['content']['markers']);[..._0x555857]['forEach'](_0x5d7a37=>{const _0x3498f2=_0x4a560b['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0x5d7a37['meta']['type'],_0x5d7a37['meta']['subType'],'accept'),{markerName:_0x3c5071,meta:_0x1faf91}=_0x5d7a37;if(_0x388741['content']['markers']['has'](_0x3c5071)){switch(_0x1faf91['type']){case'deletion':if('tableRow'===_0x1faf91['subType']||'tableColumn'===_0x1faf91['subType']){if(!_0x4a560b['plugins']['has']('TableUtils'))break;const _0x4f10ed=_0x4a560b['plugins']['get']('TableUtils'),_0x5ee228=_0x4f10ed['getSelectionAffectedTableCells'](_0x4a560b['model']['createSelection'](_0x388741['content']['markers']['get'](_0x3c5071))),_0x132dfc=_0x5ee228[0x0]['findAncestor']('table');if('tableRow'===_0x1faf91['subType']){const {first:_0x2fee03,last:_0x1bcce1}=_0x4f10ed['getRowIndexes'](_0x5ee228);_0x4f10ed['removeRows'](_0x132dfc,{'at':_0x2fee03,'rows':_0x1bcce1-_0x2fee03+0x1});}else{const {first:_0x53b32b,last:_0x954930}=_0x4f10ed['getColumnIndexes'](_0x5ee228);_0x4f10ed['removeColumns'](_0x132dfc,{'at':_0x53b32b,'columns':_0x954930-_0x53b32b+0x1});}break;}_0x3498f2([_0x388741['content']['markers']['get'](_0x3c5071)]);}_0x388741['content']['markers']['has'](_0x3c5071)&&(_0x388741['content']['markers']['get'](_0x3c5071)['detach'](),_0x388741['content']['markers']['delete'](_0x3c5071));}}),this['_restoreRegularRanges'](_0x388741['content']['markers']);});}_getSuggestionEntries(_0x24706c){const _0x54b13e=_0x57df2e=>'dragstart'===_0x24706c['method']?_0x57df2e['split'](':')['slice'](0x0,-0x1)['join'](':'):_0x57df2e;return Array['from'](_0x24706c['content']['markers'])['map'](([_0x21f4ad,_0xc417e1])=>({'markerName':_0x21f4ad,'modelRange':_0xc417e1,'meta':nt(_0x54b13e(_0x21f4ad))}))['filter'](({meta:_0x23a03d})=>'suggestion'===_0x23a03d['group']);}_shouldSkipDeletions(_0x31fed7,_0x43056a){if(!_0x31fed7['length'])return!0x1;let _0x4483e9=[this['editor']['model']['createRangeIn'](_0x43056a)];for(const _0x152201 of _0x31fed7)_0x4483e9=_0x4483e9['flatMap'](_0x4cdb42=>_0x4cdb42['getDifference'](_0x152201));return!_0x4483e9['some'](_0x1c1dc2=>this['editor']['model']['hasContent'](_0x1c1dc2,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0x31e26e){[..._0x31e26e['keys']()]['forEach'](_0xea70a7=>{const _0x70d303=_0x31e26e['get'](_0xea70a7);_0x70d303['detach'](),_0x31e26e['set'](_0xea70a7,_0x70d303['toRange']());});}},jt=class extends _0x3ad3dd{afterInit(){const _0x34fb66=this['editor'];if(!_0x34fb66['plugins']['has']('CodeBlock'))return;const _0x35115a=_0x34fb66['plugins']['get']('TrackChangesEditing'),_0x4a3cb8=_0x34fb66['locale'],_0x411397=_0x34fb66['config']['get']('codeBlock')['languages'],_0x4b55a6=_0x34fb66['commands']['get']('codeBlock');_0x35115a['enableCommand']('indentCodeBlock'),_0x35115a['enableCommand']('outdentCodeBlock'),_0x35115a['enableCommand']('codeBlock',(_0x592d93,_0x40b5a6={})=>{const _0x24b1b5=_0x34fb66['model'],_0x32cf93=_0x34fb66['model']['document']['selection'],_0x1f2bc1=_0x40b5a6&&void 0x0!==_0x40b5a6['forceValue']?_0x40b5a6['forceValue']:!_0x4b55a6['value'];let _0x5e50d4;_0x40b5a6['language']||(_0x40b5a6['language']=_0x411397[0x0]['language']),_0x5e50d4=_0x1f2bc1?Array['from'](_0x32cf93['getSelectedBlocks']())['filter'](_0x400992=>{return Kt(_0x400992)||(_0x41d2cf=_0x400992,_0x4e06f3=_0x24b1b5['schema'],!_0x41d2cf['is']('rootElement')&&!_0x4e06f3['isLimit'](_0x41d2cf)&&_0x4e06f3['checkChild'](_0x41d2cf['parent'],'codeBlock'));var _0x41d2cf,_0x4e06f3;}):Array['from'](_0x32cf93['getSelectedBlocks']())['filter'](_0x3092e6=>Kt(_0x3092e6));const _0xdbb092=kt(_0x5e50d4,_0x24b1b5);_0x24b1b5['change'](()=>{for(const _0x29ef7b of _0xdbb092)_0x35115a['markBlockFormat'](_0x29ef7b,{'commandName':'codeBlock','commandParams':[{..._0x40b5a6,'forceValue':_0x1f2bc1}],'formatGroupId':'blockName'});});}),(_0x35115a['descriptionFactory']['registerElementLabel']('codeBlock',_0x58473b=>wt(_0x4a3cb8,'ELEMENT_CODE_BLOCK',_0x58473b)),_0x35115a['descriptionFactory']['registerDescriptionCallback'](_0x318272=>{if('formatBlock'!=_0x318272['type'])return;const _0x4b33c2=_0x4a3cb8['t'],{data:_0x4926fd}=_0x318272;if(!_0x4926fd||'codeBlock'!=_0x4926fd['commandName'])return;const _0x2d7fbb=_0x4926fd['commandParams'][0x0]['language'],_0x526451=_0x4b33c2(_0x411397['find'](_0x13c03d=>_0x13c03d['language']===_0x2d7fbb)['label'])['toLowerCase']();return _0x4926fd['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x4a3cb8,'*Set\x20format:*\x20%0',wt(_0x4a3cb8,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x526451+')')}:{'type':'format','content':wt(_0x4a3cb8,'*Remove\x20format:*\x20%0',wt(_0x4a3cb8,'ELEMENT_CODE_BLOCK',0x1))};}));}};function Kt(_0x18dd76){return'codeBlock'==_0x18dd76['name'];}var Xt=class extends _0x3ad3dd{afterInit(){const _0xb35b67=this['editor'];_0xb35b67['plugins']['has']('CommentsEditing')&&_0xb35b67['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},qt=class extends _0x3ad3dd{static get requires(){return[Et];}init(){const _0x349291=this['editor'],_0x180d3b=_0x349291['plugins']['get']('TrackChangesEditing');_0x180d3b['enableCommand']('delete');const _0x2c1995=_0x349291['commands']['get']('deleteForward');_0x180d3b['enableCommand']('deleteForward',(_0x30fd65,_0x3d37e9={})=>{const _0x56d3bb=_0x349291['model']['createSelection'](_0x349291['model']['document']['selection']);_0x56d3bb['isCollapsed']&&_0x349291['model']['modifySelection'](_0x56d3bb,{'direction':'forward','unit':_0x3d37e9['unit']});const _0x3b98d5=_0x56d3bb['getFirstRange'](),_0x419693=at['fromRange'](_0x3b98d5);let _0x41059b;_0x30fd65(_0x3d37e9),_0x41059b='$graveyard'==_0x419693['root']['rootName']?_0x349291['model']['createRange'](_0x3b98d5['start']):_0x349291['model']['createRange'](_0x419693['start'],_0x419693['end']),_0x419693['detach'](),_0x349291['model']['enqueueChange'](_0x2c1995['buffer']['batch'],_0x33d1af=>{_0x2c1995['buffer']['lock'](),_0x33d1af['setSelection'](_0x33d1af['createRange'](_0x41059b['end'])),_0x2c1995['buffer']['unlock']();});});}},Yt=class extends _0x3ad3dd{afterInit(){const _0x46df4d=this['editor'];if(!_0x46df4d['plugins']['has']('ListEditing'))return;const _0x37577e=_0x46df4d['locale'],_0x299ad6=_0x46df4d['plugins']['get']('TrackChangesEditing'),_0x233741=_0x46df4d['plugins']['has']('TodoListEditing'),_0x3b223c=!!_0x46df4d['config']['get']('list.multiBlock');function _0x4f5fd6(_0x580525){return{'type':'format','content':''+wt(_0x37577e,'*Set\x20format:*\x20%0',_0x580525)};}function _0x17adac(_0x33aa3c){return{'type':'format','content':''+wt(_0x37577e,'*Remove\x20format:*\x20%0',_0x33aa3c)};}_0x299ad6['enableDefaultAttributesIntegration']('numberedList'),_0x299ad6['enableDefaultAttributesIntegration']('bulletedList'),_0x299ad6['enableDefaultAttributesIntegration']('customNumberedList'),_0x299ad6['enableDefaultAttributesIntegration']('customBulletedList'),_0x299ad6['enableDefaultAttributesIntegration']('indentList'),_0x299ad6['enableDefaultAttributesIntegration']('outdentList'),_0x299ad6['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x299ad6['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3b223c&&(_0x299ad6['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x299ad6['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x233741&&(_0x299ad6['enableDefaultAttributesIntegration']('todoList'),_0x299ad6['enableDefaultAttributesIntegration']('checkTodoList'),_0x299ad6['descriptionFactory']['registerDescriptionCallback'](_0xe404fb=>{const {data:_0x18e5d0}=_0xe404fb;if(_0x18e5d0&&'todoListChecked'==_0x18e5d0['key'])return{'type':'format','content':_0x18e5d0['newValue']?wt(_0x37577e,'*Check\x20item*'):wt(_0x37577e,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xe9ef0f=>{if(_0xe9ef0f['batch']['isUndo'])return!0x1;let _0x2db33e=!0x1;const _0x16a34d=_0x299ad6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x19a914=>'todoListChecked'===_0x299ad6['_getAttributeKey'](_0x19a914));for(const _0x160eab of _0x16a34d)'todo'!=_0x160eab['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x299ad6['_findSuggestions'](_0x160eab['getFirstRange'](),'attribute')['find'](_0x3f571a=>'listType'===_0x299ad6['_getAttributeKey'](_0x3f571a['suggestion']))||(_0xe9ef0f['removeMarker'](_0x160eab['getFirstMarker']()),_0x2db33e=!0x0));return _0x2db33e;})),_0x299ad6['descriptionFactory']['registerAttributeLabel']('listIndent',wt(_0x37577e,'FORMAT_INDENT'));const _0x91f3c5={'type':'format','content':''};_0x299ad6['descriptionFactory']['registerDescriptionCallback'](_0x18d7f3=>{const {data:_0x5ed2cd}=_0x18d7f3;if(!_0x5ed2cd||'listType'!=_0x5ed2cd['key'])return;let _0x1ebc1c=_0x18d7f3['head'];for(;_0x1ebc1c;){if(_0x1ebc1c['data']&&(('listStyle'==_0x1ebc1c['data']['key']||'listMarkerStyle'==_0x1ebc1c['data']['key'])&&(_0x1ebc1c['data']['newValue']&&'default'!=_0x1ebc1c['data']['newValue']||'default'!=_0x1ebc1c['data']['oldValue']&&!_0x5ed2cd['newValue'])||!_0x3b223c&&'$elementName'==_0x1ebc1c['data']['key']))return _0x91f3c5;_0x1ebc1c=_0x1ebc1c['next'];}if(null==_0x5ed2cd['newValue'])switch(_0x5ed2cd['oldValue']){case'bulleted':return _0x17adac(wt(_0x37577e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x17adac(wt(_0x37577e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x17adac(wt(_0x37577e,'ELEMENT_TODO_LIST'));}switch(_0x5ed2cd['newValue']){case'bulleted':return _0x4f5fd6(wt(_0x37577e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4f5fd6(wt(_0x37577e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4f5fd6(wt(_0x37577e,'ELEMENT_TODO_LIST'));}}),_0x299ad6['descriptionFactory']['registerDescriptionCallback'](_0x55b5da=>{const {data:_0x51c8a5}=_0x55b5da;if(_0x51c8a5&&'listIndent'==_0x51c8a5['key'])return null==_0x51c8a5['newValue']||null==_0x51c8a5['oldValue']&&0x0==_0x51c8a5['newValue']?_0x91f3c5:void 0x0;}),_0x299ad6['descriptionFactory']['registerDescriptionCallback'](_0x49246f=>{if('attribute'!=_0x49246f['type'])return;const {data:_0xbb05cf}=_0x49246f;if(!_0xbb05cf||'listItemId'!=_0xbb05cf['key'])return;const _0x375944=Qt(_0x49246f);return'newValue'==_0x375944?{'type':'format','content':wt(_0x37577e,'*Merge:*\x20list\x20item')}:'oldValue'==_0x375944?{'type':'format','content':wt(_0x37577e,'*Split:*\x20list\x20item')}:_0x91f3c5;}),_0x46df4d['model']['document']['registerPostFixer'](_0x11741b=>this['listItemIdFixer'](_0x11741b)),_0x46df4d['model']['document']['registerPostFixer'](_0x2cd860=>this['noTrackChangesFixer'](_0x2cd860)),_0x46df4d['model']['document']['on']('change:data',(_0x1151f7,_0x473237)=>{if(_0x473237['isUndo']||!_0x473237['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0x28c90a){if(_0x28c90a['batch']['isUndo']||!_0x28c90a['batch']['isLocal'])return!0x1;let _0x2a33fb=!0x1;const _0x266085=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5e3c07=>_0x5e3c07['data']&&'listItemId'==_0x5e3c07['data']['key'])['filter'](_0x9f0817=>_0x9f0817['data']['newValue']&&_0x9f0817['data']['oldValue']);for(const _0x14d302 of _0x266085)Qt(_0x14d302)||(_0x28c90a['removeMarker'](_0x14d302['getFirstMarker']()),_0x2a33fb=!0x0);return _0x2a33fb;}['noTrackChangesFixer'](_0x27867b){if(_0x27867b['batch']['isUndo']||!_0x27867b['batch']['isLocal'])return!0x1;const _0x3e3d13=this['editor']['model']['document']['differ'],_0x1d7fad=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1d7fad['trackChangesCommand']['value'])return!0x1;let _0x188fe3=!0x1;const _0x2bc8e9=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x460ce8=_0x3e3d13['getChanges']()['filter'](_0x3769ce=>'attribute'==_0x3769ce['type'])['filter'](_0x5b2f30=>_0x2bc8e9['has'](_0x5b2f30['attributeKey']));if(0x0==_0x460ce8['length'])return _0x188fe3;const _0x304c84=new Set(_0x3e3d13['getMarkersToAdd']()['filter'](_0x365ed3=>{if(!_0x365ed3['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x5f16cb=nt(_0x365ed3['name'])['subType']['split']('|')[0x0];return _0x2bc8e9['has'](_0x5f16cb);})['map'](_0x2a9347=>nt(_0x2a9347['name'])['id']));for(const _0x148892 of _0x460ce8){const _0x236408=_0x1d7fad['_findSuggestions'](_0x148892['range'],'attribute')['filter'](_0x1cb96b=>{if(_0x1cb96b['meta']['isNextTo'])return!0x1;if(_0x304c84['has'](_0x1cb96b['suggestion']['id']))return!0x1;const _0x2f7167=_0x1d7fad['_getAttributeKey'](_0x1cb96b['suggestion']);return _0x2bc8e9['has'](_0x2f7167);})['map'](_0x479ec5=>_0x479ec5['suggestion']);if(_0x236408['length']){for(const _0x4946f3 of _0x236408)_0x27867b['removeMarker'](_0x4946f3['getFirstMarker']());_0x188fe3=!0x0;}}return _0x188fe3;}['assureChains'](){const _0x12084b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a2046=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x4481d1;const _0x2516c4=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2a0adf=>{if(_0x2a0adf['data']['oldRange']||!_0x2a0adf['data']['newRange'])return null;if(!_0x2a0adf['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x92caf1}=nt(_0x2a0adf['name']);if(!_0x12084b['hasSuggestion'](_0x92caf1))return null;const _0xeb6e77=_0x12084b['getSuggestion'](_0x92caf1);return _0x4a2046['includes'](_0xeb6e77['data']['key']);})['map'](_0x122dca=>{const {id:_0x5a5dea}=nt(_0x122dca['name']),_0x3989c8=_0x12084b['getSuggestion'](_0x5a5dea);return _0x4481d1=_0x3989c8['attributes']['groupId'],_0x3989c8['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2516c4['size'])return;const _0x441608=_0x12084b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f4558=>'attribute'==_0x4f4558['type']&&_0x4f4558['data']&&_0x4a2046['includes'](_0x4f4558['data']['key'])&&_0x4f4558['attributes']['groupId']!=_0x4481d1)['map'](_0x3f3135=>({'listItem':_0x3f3135['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3f3135['attributes']['groupId']})),_0x415ac1=new Set();for(const {groupId:_0xbe8309,listItem:_0x2e37d1}of _0x441608)_0x2516c4['has'](_0x2e37d1)&&_0x415ac1['add'](_0xbe8309);for(const _0x24f308 of _0x12084b['getSuggestions']())_0x415ac1['has'](_0x24f308['attributes']['groupId'])&&_0x24f308['setAttribute']('groupId',_0x4481d1);}_supportLegacySuggestions(){const _0x1903d4=this['editor'],_0x33e01c=_0x1903d4['locale'],_0x45b893=_0x1903d4['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x45b893['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4beb8e,_0x57a7d1){const _0x327f23=[];for(let _0x5dce41 of _0x4beb8e)_0x5dce41['start']['nodeAfter']===_0x5dce41['end']['parent']&&(_0x5dce41=_0x1903d4['model']['createRange'](_0x1903d4['model']['createPositionAt'](_0x5dce41['start']['nodeAfter'],0x0))),_0x327f23['push'](_0x5dce41);_0x1903d4['model']['change'](_0x408a56=>{const _0x3d1939=_0x1903d4['model']['document']['selection'],_0x219a5e=Array['from'](_0x3d1939['getRanges']())['map'](_0x713e99=>at['fromRange'](_0x713e99));_0x408a56['setSelection'](_0x327f23),_0x1903d4['commands']['get'](_0x57a7d1['commandName'])['refresh'](),_0x57a7d1['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1903d4['execute'](_0x57a7d1['commandName'],..._0x57a7d1['commandParams']),_0x408a56['setSelection'](_0x219a5e);for(const _0x1ae240 of _0x219a5e)_0x1ae240['detach']();});}),_0x45b893['descriptionFactory']['registerElementLabel'](function(_0x3a9fa6){const _0x4c9359=!_0x1903d4['model']['schema']['isObject'](_0x3a9fa6),_0x4e61e7=_0x3a9fa6['previousSibling'],_0x2a1307=_0x3a9fa6['nextSibling'],_0x2373a3=_0x3a9fa6['getAttribute']('listItemId'),_0x1c867c=!_0x4e61e7||_0x4e61e7['getAttribute']('listItemId')!==_0x2373a3,_0x30bfdf=!_0x2a1307||_0x2a1307['getAttribute']('listItemId')!==_0x2373a3;return _0x4c9359&&Boolean(_0x2373a3)&&_0x1c867c&&_0x30bfdf;},_0x2c1558=>wt(_0x33e01c,'ELEMENT_LIST_ITEM',_0x2c1558));}_registerLegacyDescription(){const _0x2acf80=this['editor'],_0x544654=_0x2acf80['locale'];function _0x30bf70(_0x1d4de8){const _0x77ca21=_0x2acf80['commands']['get']('bulletedList')['value'],_0x20e78d=_0x2acf80['commands']['get']('numberedList')['value'];return'numberedList'===_0x1d4de8?_0x77ca21:_0x20e78d;}_0x2acf80['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2c0951){if('formatBlock'!=_0x2c0951['type'])return;const {data:_0x3ae1c5}=_0x2c0951;if(!_0x3ae1c5)return;let _0x3f61c7,_0x550810,_0x2e44ff,_0x35632d;switch(_0x3ae1c5['commandName']){case'bulletedList':_0x2e44ff=_0x3ae1c5['commandParams'][0x0]['forceValue'],_0x35632d=_0x30bf70(_0x3ae1c5['commandName']),_0x3f61c7=_0x2e44ff?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x35632d&&_0x2acf80['config']['get']('list.multiBlock')||(_0x3f61c7='*Change\x20to:*\x20%0'),_0x550810={'type':'format','content':wt(_0x544654,_0x3f61c7,wt(_0x544654,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2e44ff=_0x3ae1c5['commandParams'][0x0]['forceValue'],_0x35632d=_0x30bf70(_0x3ae1c5['commandName']),_0x3f61c7=_0x2e44ff?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x35632d&&_0x2acf80['config']['get']('list.multiBlock')||(_0x3f61c7='*Change\x20to:*\x20%0'),_0x550810={'type':'format','content':wt(_0x544654,_0x3f61c7,wt(_0x544654,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3f61c7='*Indent:*\x20%0',_0x550810={'type':'format','content':wt(_0x544654,_0x3f61c7,wt(_0x544654,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3f61c7=function(_0x3528f0){const _0x515688=_0x3528f0['getFirstRange']();let _0x306935=_0x515688['start']['nodeAfter'];for(;_0x306935&&_0x515688['containsItem'](_0x306935);){if(_0x306935['getAttribute']('listIndent')>0x0)return!0x1;_0x306935=_0x306935['nextSibling'];}return!0x0;}(_0x2c0951)?wt(_0x544654,'*Format:*\x20remove\x20from\x20%0',wt(_0x544654,function(_0x454eb2){return'ELEMENT_'+_0x454eb2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2c0951))):wt(_0x544654,'*Outdent:*\x20%0',wt(_0x544654,'ELEMENT_LIST_ITEM')),_0x550810={'type':'format','content':_0x3f61c7};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3ae1c5['multipleBlocks']&&(_0x3f61c7='*Merge:*\x20%0',_0x550810={'type':'deletion','content':wt(_0x544654,_0x3f61c7,wt(_0x544654,'ELEMENT_LIST_ITEM'))});}return _0x550810;});}};function Qt(_0x3a0012){let _0x1d1bb6=_0x3a0012['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1d1bb6;){const _0x1fc505=_0x1d1bb6['getAttribute']('listItemId');if(!_0x1fc505)return!0x1;if(_0x1fc505==_0x3a0012['data']['newValue'])return'newValue';if(_0x1fc505==_0x3a0012['data']['oldValue'])return'oldValue';_0x1d1bb6=_0x1d1bb6['previousSibling'];}return!0x1;}var Zt=class extends _0x3ad3dd{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1c46a6=this['editor']['config']['get']('list.properties'),_0x37d68e=this['editor']['plugins']['get']('TrackChangesEditing');_0x1c46a6['styles']&&_0x37d68e['enableDefaultAttributesIntegration']('listStyle'),_0x1c46a6['reversed']&&_0x37d68e['enableDefaultAttributesIntegration']('listReversed'),_0x1c46a6['startIndex']&&_0x37d68e['enableDefaultAttributesIntegration']('listStart');const _0x41381a={'type':'format','content':''};_0x37d68e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x11335a=this['editor']['locale'];_0x37d68e['descriptionFactory']['registerAttributeLabel']('listReversed',wt(_0x11335a,'FORMAT_LIST_REVERSED')),_0x37d68e['descriptionFactory']['registerDescriptionCallback'](_0x2ac8b4=>{const {data:_0x161c4f}=_0x2ac8b4;if(_0x161c4f&&'listReversed'==_0x161c4f['key'])return null==_0x161c4f['newValue']||0x0==_0x161c4f['newValue']&&null==_0x161c4f['oldValue']?_0x41381a:void 0x0;}),_0x37d68e['descriptionFactory']['registerAttributeLabel']('listStart',wt(_0x11335a,'FORMAT_LIST_START')),_0x37d68e['descriptionFactory']['registerDescriptionCallback'](_0x297a46=>{const {data:_0x54155f}=_0x297a46;if(_0x54155f&&'listStart'==_0x54155f['key'])return null==_0x54155f['newValue']||0x1==_0x54155f['newValue']&&null==_0x54155f['oldValue']?_0x41381a:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1769b1=>{if(_0x1769b1['batch']['isUndo'])return!0x1;let _0x959c38=!0x1;const _0x42fed8=_0x37d68e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x988d51=>{const _0x3aaba3=_0x37d68e['_getAttributeKey'](_0x988d51);return'listStart'==_0x3aaba3||'listReversed'==_0x3aaba3;});for(const _0x25c4d5 of _0x42fed8){const _0x1be250=_0x25c4d5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x1be250&&'customNumbered'!=_0x1be250&&(_0x37d68e['_findSuggestions'](_0x25c4d5['getFirstRange'](),'attribute')['find'](_0x229806=>'listType'==_0x37d68e['_getAttributeKey'](_0x229806['suggestion']))||(_0x1769b1['removeMarker'](_0x25c4d5['getFirstMarker']()),_0x959c38=!0x0));}return _0x959c38;}),this['_registerLegacyDescription']();}handleDescriptions(_0x5593f5){const _0x4d7d83=this['editor']['locale'],{data:_0x21ec70}=_0x5593f5,_0x1a5a3f={'type':'format','content':''};if(!_0x21ec70||'listStyle'!=_0x21ec70['key'])return;if(!_0x21ec70['oldValue'])return'default'==_0x21ec70['newValue']?_0x1a5a3f:{'type':'format','content':''+wt(_0x4d7d83,'*Set\x20format:*\x20%0',wt(_0x4d7d83,this['_getTranslationKeyForListStyle'](_0x21ec70['newValue'])))};if(!_0x21ec70['newValue']){if('default'==_0x21ec70['oldValue'])return _0x1a5a3f;let _0x40cafd=_0x5593f5['head'];for(;_0x40cafd;){if(_0x40cafd['data']&&'listType'==_0x40cafd['data']['key']&&_0x40cafd['data']['newValue'])return _0x1a5a3f;_0x40cafd=_0x40cafd['next'];}return{'type':'format','content':''+wt(_0x4d7d83,'*Remove\x20format:*\x20%0',wt(_0x4d7d83,this['_getTranslationKeyForListStyle'](_0x21ec70['oldValue'])))};}if('default'!=_0x21ec70['newValue'])return{'type':'format','content':''+wt(_0x4d7d83,'*Set\x20format:*\x20%0',wt(_0x4d7d83,this['_getTranslationKeyForListStyle'](_0x21ec70['newValue'])))};let _0x2b2a95=_0x5593f5['head'];for(;_0x2b2a95;){if(_0x2b2a95['data']&&'listType'==_0x2b2a95['data']['key']&&_0x2b2a95['data']['newValue']&&_0x2b2a95['data']['oldValue'])return _0x1a5a3f;_0x2b2a95=_0x2b2a95['next'];}return{'type':'format','content':wt(_0x4d7d83,'*Set\x20format:*\x20%0',wt(_0x4d7d83,'ELEMENT_'+_0x5593f5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0x43ea13=this['editor'],_0x29db84=_0x43ea13['locale'];_0x43ea13['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc1fb5c=>{if('formatBlock'!=_0xc1fb5c['type'])return;const {data:_0x2cd6db}=_0xc1fb5c;if(!_0x2cd6db)return;let _0x4b593f,_0x1e7d0d;switch(_0x2cd6db['commandName']){case'listStyle':_0x4b593f='*Change\x20to:*\x20%0',_0x1e7d0d={'type':'format','content':wt(_0x29db84,_0x4b593f,wt(_0x29db84,this['_getTranslationKeyForListStyle'](_0x2cd6db['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4b593f=_0x2cd6db['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1e7d0d={'type':'format','content':wt(_0x29db84,_0x4b593f)};break;case'listStart':_0x4b593f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1e7d0d={'type':'format','content':wt(_0x29db84,_0x4b593f,_0x2cd6db['commandParams'][0x0]['startIndex'])};}return _0x1e7d0d;});}_getTranslationKeyForListStyle(_0x850319){return'ELEMENT_'+(_0x48b6b2=_0x850319,Jt['includes'](_0x48b6b2)?'bulleted':te['includes'](_0x48b6b2)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x850319['toUpperCase']()['replace'](/-/g,'_');var _0x48b6b2;}};const Jt=['disc','circle','square'],te=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var ee=class extends _0x3ad3dd{afterInit(){const _0x26385f=this['editor'];_0x26385f['commands']['get']('emoji')&&_0x26385f['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},ne=class extends _0x3ad3dd{static get requires(){return[_t];}init(){const _0x3dc009=this['editor'],_0x42bc13=_0x3dc009['plugins']['get']('TrackChangesEditing'),_0x5bda7c=_0x3dc009['commands']['get']('enter');_0x42bc13['enableCommand']('enter',()=>{_0x3dc009['model']['change'](_0xc45cac=>{const _0x2f5b53=_0x3dc009['model']['document']['selection'],_0x38c0bc=_0x2f5b53['getFirstPosition'](),_0x2ba5cf=at['fromRange'](_0x2f5b53['getFirstRange']());if(_0x5bda7c['enterBlock'](_0xc45cac)){const _0x4bb895=_0x3dc009['model']['createPositionAt'](_0x38c0bc['parent']['nextSibling'],0x0),_0x297124=_0xc45cac['createRange'](_0x38c0bc,_0x4bb895);_0x42bc13['markInsertion'](_0x297124);}else _0xc45cac['setSelection'](_0xc45cac['createRange'](_0x2ba5cf['end']));_0x2ba5cf['detach'](),_0x5bda7c['fire']('afterExecute',{'writer':_0xc45cac});});});}},ie=class extends _0x3ad3dd{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1c929f=this['editor']['plugins']['get']('TrackChangesEditing');_0x1c929f['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1c929f['enableCommand']('findNext'),_0x1c929f['enableCommand']('findPrevious'),_0x1c929f['enableCommand']('replace'),_0x1c929f['enableCommand']('replaceAll');}['handleFindCommand'](_0x350472,_0x37e703,_0x313c7c={}){const _0x321e1f=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x350472(_0x5f3c50=>{let _0x3048b4=('string'==typeof _0x37e703?_0x321e1f['findByTextCallback'](_0x37e703,_0x313c7c):_0x37e703)(_0x5f3c50);Array['isArray'](_0x3048b4)&&(_0x3048b4={'results':_0x3048b4,'searchText':'string'==typeof _0x37e703?_0x37e703:''});const _0x294c59=_0x3048b4['results']['filter'](_0x36d3ae=>!0x1===this['_isInDeletionRange'](_0x36d3ae,_0x5f3c50['item']));return{..._0x3048b4,'results':_0x294c59};},_0x313c7c);}_isInDeletionRange(_0x2dabc9,_0x40a58d){const _0x281663=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x40a58d,_0x2dabc9['start']),this['editor']['model']['createPositionAt'](_0x40a58d,_0x2dabc9['end']));for(const _0x5de503 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x281663['getIntersection'](_0x5de503['getRange']()))return!0x0;return!0x1;}};const se=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var re=class extends _0x3ad3dd{afterInit(){const _0x271c2a=this['editor']['locale'],_0x1d7f9d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2e3816,commandName:_0x43c141}of se)this['editor']['plugins']['has'](_0x2e3816)&&_0x1d7f9d['enableDefaultAttributesIntegration'](_0x43c141);_0x1d7f9d['descriptionFactory']['registerAttributeLabel']('fontSize',wt(_0x271c2a,'FORMAT_FONT_SIZE')),_0x1d7f9d['descriptionFactory']['registerAttributeLabel']('fontFamily',wt(_0x271c2a,'FORMAT_FONT_FAMILY')),_0x1d7f9d['descriptionFactory']['registerAttributeLabel']('fontColor',wt(_0x271c2a,'FORMAT_FONT_COLOR')),_0x1d7f9d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',wt(_0x271c2a,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x3f5284=this['editor'],_0x4e3fa9=_0x3f5284['locale'];_0x3f5284['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c18b6=>{const _0x2deeaa=_0x4e3fa9['t'];if('formatInline'!=_0x5c18b6['type'])return;const {data:_0x52a384}=_0x5c18b6;if(null!=_0x52a384){if('fontSize'==_0x52a384['commandName']){const _0x4ba7e5=_0x52a384['commandParams'][0x0]['value'];if(_0x4ba7e5){const _0x10ffe5=_0x2deeaa(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5a0d83=>_0x5a0d83['model']==_0x4ba7e5)['title'])['toLowerCase']();return{'type':'format','content':wt(_0x4e3fa9,'*Set\x20font\x20size:*\x20%0',_0x10ffe5)};}return{'type':'format','content':wt(_0x4e3fa9,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x52a384['commandName']){const _0x1d2d2d=_0x52a384['commandParams'][0x0]['value'];return _0x1d2d2d?{'type':'format','content':wt(_0x4e3fa9,'*Set\x20font\x20family:*\x20%0',_0x1d2d2d)}:{'type':'format','content':wt(_0x4e3fa9,'*Reset\x20font\x20family*')};}if('fontColor'==_0x52a384['commandName']){const _0xae3906=_0x52a384['commandParams'][0x0]['value'];if(_0xae3906){const _0x112d77=_0x4623a9(this['editor']['config']['get']('fontColor.colors'))['find'](_0x35bed1=>_0x35bed1['model']==_0xae3906);let _0x58174d=_0xae3906,_0x27de07='';return _0x112d77&&(_0x58174d=_0x112d77['label'],_0x27de07=_0xbaf3ab(_0x4e3fa9,_0x58174d)['toLowerCase']()),{'type':'format','content':wt(_0x4e3fa9,'*Set\x20font\x20color:*\x20%0',_0x27de07)['trim'](),'color':{'value':_0xae3906,'title':_0x27de07||_0x58174d}};}return{'type':'format','content':wt(_0x4e3fa9,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x52a384['commandName']){const _0x2cefc0=_0x52a384['commandParams'][0x0]['value'];if(_0x2cefc0){const _0x5c2c31=_0x4623a9(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3b7d7d=>_0x3b7d7d['model']==_0x2cefc0);let _0x160af8=_0x2cefc0,_0x43ea1e='';return _0x5c2c31&&(_0x160af8=_0x5c2c31['label'],_0x43ea1e=_0xbaf3ab(_0x4e3fa9,_0x160af8)['toLowerCase']()),{'type':'format','content':wt(_0x4e3fa9,'*Set\x20font\x20background\x20color:*\x20%0',_0x43ea1e)['trim'](),'color':{'value':_0x2cefc0,'title':_0x43ea1e||_0x160af8}};}return{'type':'format','content':wt(_0x4e3fa9,'*Reset\x20font\x20background\x20color*')};}}});}},oe=class extends _0x3ad3dd{afterInit(){const {plugins:_0x6f7839}=this['editor'];_0x6f7839['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x6f7839['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0x3c3f8a,plugins:_0x203f48,commands:_0x661ccc}=this['editor'],_0x51c71d=_0x203f48['get']('TrackChangesEditing');_0x661ccc['get']('footnotesStyle')&&_0x51c71d['enableDefaultAttributesIntegration']('footnotesStyle'),_0x661ccc['get']('footnotesStart')&&_0x51c71d['enableDefaultAttributesIntegration']('footnotesStart'),_0x51c71d['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',wt(_0x3c3f8a,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x51c71d['descriptionFactory']['registerAttributeLabel']('footnotesListStart',wt(_0x3c3f8a,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0x42c154=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x2dcd33,commands:_0xd9435d}=this['editor'];_0xd9435d['get']('insertFootnote')&&_0x42c154['enableCommand']('insertFootnote'),_0x42c154['descriptionFactory']['registerElementLabel']('footnoteRef',_0x4a6433=>wt(_0x2dcd33,'ELEMENT_FOOTNOTE_REF',_0x4a6433)),_0x42c154['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x1befe3=>wt(_0x2dcd33,'ELEMENT_FOOTNOTE_DEFINITION',_0x1befe3)),_0x42c154['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x37a264=>wt(_0x2dcd33,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x37a264));}},ae=class extends _0x3ad3dd{afterInit(){const _0x2fa690=this['editor'],_0x109ea6=_0x2fa690['plugins']['get']('TrackChangesEditing'),_0x45a5dc=_0x2fa690['commands']['get']('copyFormat'),_0x1742cd=_0x2fa690['commands']['get']('pasteFormat');_0x45a5dc&&_0x1742cd&&(_0x109ea6['enableDefaultAttributesIntegration']('pasteFormat'),_0x109ea6['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x1507f5=this['editor'],_0x5de0a4=_0x1507f5['locale'];_0x1507f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e7f9e=>{if('formatBlock'!=_0x4e7f9e['type']&&'formatInline'!=_0x4e7f9e['type'])return;const {data:_0x54e6b7}=_0x4e7f9e;if(_0x54e6b7&&'pasteFormat'===_0x54e6b7['commandName']){const _0x175d15=[],_0x40d70e=_0x54e6b7['commandParams'][0x0];for(const [_0x38af39,_0x43a01d]of Object['entries'](_0x40d70e))_0x175d15['push'](ce(_0x1507f5,_0x38af39,_0x43a01d));return _0x175d15['length']?{'type':'format','content':wt(_0x5de0a4,'*Set\x20format\x20to:*\x20%0',_0x175d15['join'](',\x20'))}:{'type':'format','content':wt(_0x5de0a4,'*Remove\x20all\x20formatting*')};}});}};function ce(_0x193ab2,_0x41bc78,_0x499d41){const _0x394159=_0x193ab2['locale'],_0x44d7fc=_0x394159['t'],_0x1bbd07=_0x41bc78['split'](/(?=[A-Z])/)['join']('\x20'),_0x128d69=_0x44d7fc(_0x1bbd07['charAt'](0x0)['toUpperCase']()+_0x1bbd07['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x499d41)return _0x128d69;if('fontColor'===_0x41bc78||'fontBackgroundColor'===_0x41bc78){const _0x480ed2=_0x4623a9(_0x193ab2['config']['get']('fontColor.colors'))['find'](_0x5a763a=>_0x5a763a['model']==_0x499d41);return _0x128d69+'\x20('+(_0x480ed2?_0xbaf3ab(_0x394159,_0x480ed2['label'])['toLowerCase']():_0x499d41)+')';}if('fontSize'===_0x41bc78&&isNaN(parseFloat(_0x499d41))){const _0x5d656d=_0x193ab2['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x193ab2['config']['get']('fontSize.options'))['find'](_0x58f090=>_0x58f090['model']==_0x499d41);return _0x128d69+'\x20('+(_0x5d656d?_0x44d7fc(_0x5d656d['title'])['toLowerCase']():_0x499d41)+')';}return _0x128d69+'\x20('+_0x499d41+')';}var le=class extends _0x3ad3dd{afterInit(){const _0x5ef3f8=this['editor'];if(!_0x5ef3f8['plugins']['has']('GeneralHtmlSupport')||!_0x5ef3f8['plugins']['has']('DataSchema'))return;const _0x360955=_0x5ef3f8['plugins']['get']('TrackChangesEditing'),_0x309a20=_0x5ef3f8['plugins']['get']('GeneralHtmlSupport'),_0x288b6e=_0x5ef3f8['plugins']['get']('DataSchema'),_0x19a6c5=_0x5ef3f8['locale'],_0x5e6701=new Set(['htmlContent']);for(const _0x11fcf5 of _0x288b6e['getDefinitionsForView'](/.*/,!0x1)){const _0x4b9cd7=_0x11fcf5['view'],_0x32b5dc=_0x309a20['getGhsAttributeNameForElement'](_0x4b9cd7);_0x5e6701['add'](_0x32b5dc),!_0x11fcf5['isInline']||_0x11fcf5['isObject']||'appliesToBlock'in _0x11fcf5&&_0x11fcf5['appliesToBlock']||_0x360955['descriptionFactory']['registerAttributeLabel'](_0x32b5dc,_0x4b9cd7),_0x11fcf5['model']['startsWith']('html')&&_0x360955['descriptionFactory']['registerElementLabel'](_0x11fcf5['model'],_0x1fe9c5=>wt(_0x19a6c5,'ELEMENT_HTML_TAG',[_0x1fe9c5,_0x4b9cd7]));}_0x360955['descriptionFactory']['registerAttributeLabel']('htmlContent',wt(_0x19a6c5,'FORMAT_RAW_HTML_CONTENT')),_0x360955['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',wt(_0x19a6c5,'FORMAT_HTML_LIST_ITEM')),_0x360955['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',wt(_0x19a6c5,'FORMAT_HTML_BULLETED_LIST')),_0x360955['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',wt(_0x19a6c5,'FORMAT_HTML_NUMBERED_LIST')),_0x360955['descriptionFactory']['registerDescriptionCallback'](_0xaa2f29=>{if('attribute'!==_0xaa2f29['type'])return;const _0x1c599b=_0xaa2f29['data'];if(!_0x1c599b||!_0x5e6701['has'](_0x1c599b['key']))return;if('htmlContent'===_0x1c599b['key'])return{'type':'format','content':wt(_0x19a6c5,'*Change\x20%0\x20content*',wt(_0x19a6c5,'ELEMENT_RAW_HTML'))};const {setItems:_0x33fcb6,removeItems:_0x503242}=function(_0x5457f5,_0x145514,_0x1f74fa){const _0x447a7a=[],_0x5974ca=[],_0x327204=_0x5457f5['styles']??{},_0x2c917e=_0x145514['styles']??{};for(const _0x214d58 of new Set([...Object['keys'](_0x327204),...Object['keys'](_0x2c917e)]))_0x327204[_0x214d58]!==_0x2c917e[_0x214d58]&&(void 0x0===_0x2c917e[_0x214d58]?_0x5974ca['push'](_0x214d58):_0x447a7a['push'](_0x214d58+'\x20('+_0x2c917e[_0x214d58]+')'));const _0x5e03d5=wt(_0x1f74fa,'FORMAT_HTML_CLASS'),_0x17e382=new Set(_0x5457f5['classes']??[]),_0x336e37=new Set(_0x145514['classes']??[]),_0x31e1f2=[..._0x336e37]['some'](_0x231e11=>!_0x17e382['has'](_0x231e11)),_0x4f2b36=[..._0x17e382]['some'](_0x3b93db=>!_0x336e37['has'](_0x3b93db));_0x31e1f2&&_0x447a7a['push'](_0x5e03d5),_0x4f2b36&&_0x5974ca['push'](_0x5e03d5);const _0x3b0fed=wt(_0x1f74fa,'FORMAT_HTML_ATTRIBUTE'),_0xe153ab=_0x5457f5['attributes']??{},_0x554817=_0x145514['attributes']??{};let _0x54343a=!0x1,_0x4ca6cb=!0x1;for(const _0x209a31 of new Set([...Object['keys'](_0xe153ab),...Object['keys'](_0x554817)]))_0xe153ab[_0x209a31]!==_0x554817[_0x209a31]&&(void 0x0===_0x554817[_0x209a31]?_0x4ca6cb=!0x0:_0x54343a=!0x0);return _0x54343a&&_0x447a7a['push'](_0x3b0fed),_0x4ca6cb&&_0x5974ca['push'](_0x3b0fed),{'setItems':_0x447a7a,'removeItems':_0x5974ca};}(_0x1c599b['oldValue']??{},_0x1c599b['newValue']??{},_0x19a6c5);if(!_0x33fcb6['length']&&!_0x503242['length'])return;const _0x5313f4=[];return _0x33fcb6['length']&&_0x5313f4['push'](wt(_0x19a6c5,'*Set\x20format:*\x20%0',_0x33fcb6['join'](',\x20'))),_0x503242['length']&&_0x5313f4['push'](wt(_0x19a6c5,'*Remove\x20format:*\x20%0',_0x503242['join'](',\x20'))),{'type':'format','content':_0x5313f4['join']('\x0a')};});}},ue=class extends _0x3ad3dd{_headingOptions;afterInit(){const _0x4f0391=this['editor'];if(!_0x4f0391['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4f0391['config']['get']('heading.options');const _0x247435=_0x4f0391['locale'],_0x803c39=_0x4f0391['plugins']['get']('TrackChangesEditing');_0x803c39['enableDefaultAttributesIntegration']('heading');for(const _0x2106e2 of this['_headingOptions'])'paragraph'!=_0x2106e2['model']&&_0x803c39['descriptionFactory']['registerElementLabel'](_0x2106e2['model'],_0x34b086=>{const _0x16de86=this['_getHeadingLevel'](_0x2106e2['model']);return null!==_0x16de86?_0x5320ea(_0x34b086,_0x16de86):_0xb00b39(_0x34b086,_0x2106e2['title']);});function _0x5320ea(_0x5f2d46,_0x1de5ce){return wt(_0x247435,'ELEMENT_HEADING',[_0x5f2d46,_0x1de5ce]);}function _0xb00b39(_0x4883ae,_0x365029){return wt(_0x247435,'ELEMENT_HEADING_CUSTOM',[_0x4883ae,_0x365029]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5945da=this['editor'],_0x5ba70d=_0x5945da['locale'];function _0x2e6276(_0x1eb93c,_0x94eb14){return wt(_0x5ba70d,'ELEMENT_HEADING_CUSTOM',[_0x1eb93c,_0x94eb14]);}_0x5945da['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c1e1e=>{if('formatBlock'!=_0x5c1e1e['type'])return;const {data:_0x517b7e}=_0x5c1e1e;if(_0x517b7e&&'heading'==_0x517b7e['commandName']){const _0x25edb2=_0x517b7e['commandParams'][0x0]['value'],_0x965f8e=this['_getHeadingLevel'](_0x25edb2);if(null!==_0x965f8e)return{'type':'format','content':wt(_0x5ba70d,'*Change\x20to:*\x20%0',(_0x1a3fe7=0x1,_0xb6c66a=_0x965f8e,wt(_0x5ba70d,'ELEMENT_HEADING',[_0x1a3fe7,_0xb6c66a])))};const _0x45933f=this['_headingOptions']['find'](_0x3d299d=>_0x3d299d['model']===_0x25edb2)['title'];return{'type':'format','content':wt(_0x5ba70d,'*Change\x20to:*\x20%0',_0x2e6276(0x1,_0x45933f))};}var _0x1a3fe7,_0xb6c66a;});}_getHeadingLevel(_0x4a73b4){const _0x5a0e85=_0x4a73b4['match'](/^heading(\d+)/);if(_0x5a0e85)return _0x5a0e85[0x1];const _0xea01d5=this['_headingOptions']?.['find'](_0x2f514c=>_0x2f514c['model']==_0x4a73b4);if(_0xea01d5&&_0xea01d5['view']){const _0x5707a5=_0xea01d5['view'],_0x253aa8=(_0x5707a5['name']??_0x5707a5)['match'](/^h(\d+)/);if(_0x253aa8)return _0x253aa8[0x1];}return null;}},de=class extends _0x3ad3dd{afterInit(){const _0x2bf0e8=this['editor'];if(!_0x2bf0e8['plugins']['has']('HighlightEditing'))return;const _0x635885=_0x2bf0e8['plugins']['get']('TrackChangesEditing'),_0x3d6e0f=_0x2bf0e8['locale'];_0x635885['enableDefaultAttributesIntegration']('highlight'),_0x635885['descriptionFactory']['registerAttributeLabel']('highlight',wt(_0x3d6e0f,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0xa8b6b0=this['editor'],_0x5ac384=_0xa8b6b0['locale'];_0xa8b6b0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x175f0b=>{if('formatInline'!=_0x175f0b['type'])return;const {data:_0x4ddd5c}=_0x175f0b;if(_0x4ddd5c&&'highlight'==_0x4ddd5c['commandName']){const _0x1c87a6=_0x5ac384['t'],_0x5e2cfd=_0x4ddd5c['commandParams'][0x0]['value'];if(_0x5e2cfd){const _0x1b02ba=_0xa8b6b0['config']['get']('highlight.options')['find'](_0x363b4b=>_0x363b4b['model']==_0x5e2cfd),_0x5daf54=_0x1c87a6(_0x1b02ba['title'])['toLowerCase']();return{'type':'format','content':wt(_0x5ac384,'*Set\x20highlight:*\x20%0',_0x5daf54),'color':{'value':_0x1b02ba['color'],'title':_0x1b02ba['title']}};}return{'type':'format','content':wt(_0x5ac384,'*Remove\x20highlight*',wt(_0x5ac384,'FORMAT_HIGHLIGHT'))};}});}},he=class extends _0x3ad3dd{afterInit(){const _0x44a49e=this['editor'];if(!_0x44a49e['plugins']['has']('HorizontalLineEditing'))return;_0x44a49e['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3aa2f5=_0x44a49e['plugins']['get']('TrackChangesEditing'),_0x1adbac=_0x44a49e['locale'];_0x3aa2f5['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4e88bb=>wt(_0x1adbac,'ELEMENT_HORIZONTAL_LINE',_0x4e88bb));}},ge=class extends _0x3ad3dd{afterInit(){const _0x16db55=this['editor'];if(!_0x16db55['plugins']['has']('HtmlEmbed'))return;const _0x4ec463=_0x16db55['plugins']['get']('TrackChangesEditing'),_0xb421f7=_0x16db55['locale'];_0x4ec463['descriptionFactory']['registerElementLabel']('rawHtml',_0x1819a3=>wt(_0xb421f7,'ELEMENT_HTML_EMBED',_0x1819a3)),_0x4ec463['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4ec463['descriptionFactory']['registerDescriptionCallback'](_0x19a118=>{if('attribute'!=_0x19a118['type'])return;const {data:_0x1ca8db}=_0x19a118;if(_0x1ca8db&&'value'==_0x1ca8db['key']&&_0x19a118['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x22cbb0=wt(_0xb421f7,'ELEMENT_HTML_EMBED');return{'type':'format','content':wt(_0xb421f7,'*Change\x20%0\x20content*',_0x22cbb0)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x6b8327=this['editor'],_0x2c9e8a=_0x6b8327['locale'];_0x6b8327['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a8f31=>{if('formatBlock'!=_0x3a8f31['type'])return;const {data:_0x48ca46}=_0x3a8f31;if(_0x48ca46&&'htmlEmbed'==_0x48ca46['commandName']){const _0x424676=wt(_0x2c9e8a,'ELEMENT_HTML_EMBED');return{'type':'format','content':wt(_0x2c9e8a,'*Change\x20%0\x20content*',_0x424676)};}});}},fe=class extends _0x3ad3dd{afterInit(){const _0xe72697=this['editor'];if(!_0xe72697['plugins']['has']('ImageEditing'))return;const _0x49a4ab=_0xe72697['plugins']['get']('TrackChangesEditing'),_0x145a32=_0xe72697['plugins']['get']('ImageUtils'),_0x563582=_0xe72697['locale'];_0x49a4ab['enableCommand']('insertImage'),_0x49a4ab['descriptionFactory']['registerElementLabel']('imageBlock',_0x1489ca=>wt(_0x563582,'ELEMENT_IMAGE',_0x1489ca)),_0x49a4ab['descriptionFactory']['registerElementLabel']('imageInline',_0x3bc613=>wt(_0x563582,'ELEMENT_INLINE_IMAGE',_0x3bc613)),_0x49a4ab['descriptionFactory']['registerElementLabel']('caption',()=>wt(_0x563582,'ELEMENT_CAPTION')),_0xe72697['plugins']['has']('ImageUploadEditing')&&_0x49a4ab['enableCommand']('uploadImage'),_0xe72697['plugins']['has']('ImageBlockEditing')&&_0xe72697['plugins']['has']('ImageInlineEditing')&&(_0x49a4ab['enableCommand']('imageTypeInline',(_0x9ebab7,_0x1ef55f)=>{const _0x163b24=_0x145a32['getClosestSelectedImageElement'](_0xe72697['model']['document']['selection']);_0xe72697['model']['change'](()=>{_0x49a4ab['markBlockFormat'](_0x163b24,{'commandName':'imageTypeInline','commandParams':[_0x1ef55f]},[],'convertBlockImageToInline');});}),_0x49a4ab['enableCommand']('imageTypeBlock',(_0x453ab1,_0x9be326)=>{_0xe72697['model']['change'](_0x1444ba=>{let _0x27c8ff=_0x145a32['getClosestSelectedImageElement'](_0xe72697['model']['document']['selection']),_0x31a63a=_0x1444ba['createRangeOn'](_0x27c8ff);const _0x12ea17=ot['fromPosition'](_0x31a63a['start'],'toPrevious'),_0x1809d1=ot['fromPosition'](_0x31a63a['end'],'toNext');_0x49a4ab['forceDefaultExecution'](()=>_0x453ab1(_0x9be326)),_0x27c8ff=_0x145a32['getClosestSelectedImageElement'](_0xe72697['model']['document']['selection']),_0x31a63a=_0x1444ba['createRangeOn'](_0x27c8ff);const _0x20548d=_0x1444ba['createRange'](_0x12ea17,_0x1809d1);_0x12ea17['detach'](),_0x1809d1['detach'](),_0x49a4ab['markBlockFormat'](_0x27c8ff,{'commandName':'imageTypeInline','commandParams':[_0x9be326]},[],'convertInlineImageToBlock'),_0x20548d['start']['isBefore'](_0x31a63a['start'])&&_0x49a4ab['markInsertion'](_0x1444ba['createRange'](_0x20548d['start'],_0x31a63a['start']),'convertInlineImageToBlock'),_0x31a63a['end']['isBefore'](_0x20548d['end'])&&_0x49a4ab['markInsertion'](_0x1444ba['createRange'](_0x31a63a['end'],_0x20548d['end']),'convertInlineImageToBlock');});}),_0x49a4ab['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x49a4ab['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x49a4ab['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x49a4ab['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x49a4ab['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x49a4ab['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4c4d5f])=>{const _0x32129f=_0x49a4ab['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x259d07=_0x4c4d5f['start'],_0x20c775=_0x4c4d5f['end'];const _0xd902bb=_0xe72697['model']['schema']['getNearestSelectionRange'](_0x259d07,'backward'),_0x4f3b75=_0xe72697['model']['schema']['getNearestSelectionRange'](_0x20c775,'forward');_0xd902bb['isCollapsed']&&(_0x259d07=_0xd902bb['start']),_0x4f3b75['isCollapsed']&&(_0x20c775=_0x4f3b75['end']),_0x32129f([_0xe72697['model']['createRange'](_0x259d07,_0x20c775)]);}),_0x49a4ab['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x38c470),_0x49a4ab['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x38c470)),_0xe72697['plugins']['has']('ImageCaptionEditing')&&(_0x49a4ab['enableCommand']('toggleImageCaption',(_0x1d473c,_0x168993)=>{const _0x2c81b2=_0xe72697['plugins']['get']('ImageCaptionUtils');let _0x4acf9a=_0x145a32['getClosestSelectedImageElement'](_0xe72697['model']['document']['selection']),_0x117c55=_0x2c81b2['getCaptionFromImageModelElement'](_0x4acf9a);_0xe72697['model']['change'](()=>{if(_0x117c55)return void _0x49a4ab['markDeletion'](_0xe72697['model']['createRangeOn'](_0x117c55));const _0x57446f=_0x145a32['isBlockImage'](_0x4acf9a);_0x1d473c(_0x168993),_0x4acf9a=_0x145a32['getClosestSelectedImageElement'](_0xe72697['model']['document']['selection']),_0x117c55=_0x2c81b2['getCaptionFromImageModelElement'](_0x4acf9a),_0x49a4ab['markInsertion'](_0xe72697['model']['createRangeOn'](_0x117c55),_0x57446f?null:'imageCaption');});}),_0x49a4ab['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x38c470));const _0x3dfe36=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x150c56(_0x2cb492,_0x48c9d8){const _0x26ec1e=_0x3dfe36['findIndex'](({type:_0x4ff213,subType:_0x92c4da})=>_0x2cb492['type']==_0x4ff213&&_0x2cb492['subType']==_0x92c4da),_0x547ed0=_0x3dfe36['findIndex'](({type:_0x2d3ed6,subType:_0x358bab})=>_0x48c9d8['type']==_0x2d3ed6&&_0x48c9d8['subType']==_0x358bab);if(_0x26ec1e<0x0||_0x547ed0<0x0)return!0x1;const _0x472faa=_0x2cb492['getFirstRange'](),_0x69c9fd=_0x48c9d8['getFirstRange']();if((0x0==_0x26ec1e||0x1==_0x26ec1e)&&0x2==_0x547ed0&&_0x472faa['isIntersecting'](_0x69c9fd))return!0x0;if(0x2==_0x26ec1e&&0x3==_0x547ed0){const _0x25bbba=_0x49a4ab['_findSuggestions'](_0x472faa,'insertion')['filter'](({suggestion:_0x368d1b,meta:_0x44a4e8})=>_0x44a4e8['isOwn']&&'convertInlineImageToBlock'==_0x368d1b['subType']);if(_0x25bbba['length']>0x1&&_0x69c9fd['end']['isEqual'](_0x472faa['start']))return!0x0;if(0x1==_0x25bbba['length']&&(_0x472faa['start']['isEqual'](_0x69c9fd['end'])||_0x472faa['end']['isEqual'](_0x69c9fd['start'])))return!0x0;}if(0x3==_0x26ec1e&&0x3==_0x547ed0&&_0x472faa['start']['isBefore'](_0x69c9fd['start'])){const _0xb5c85d=_0x472faa['end']['nodeAfter'],_0x45814e=_0x69c9fd['start']['nodeBefore'];return _0x145a32['isBlockImage'](_0xb5c85d)&&_0xb5c85d===_0x45814e;}return!0x1;}function _0x38c470(_0x1bdb62,_0x19421c){return _0x150c56(_0x1bdb62,_0x19421c)?[_0x1bdb62,_0x19421c]:_0x150c56(_0x19421c,_0x1bdb62)?[_0x19421c,_0x1bdb62]:null;}_0xe72697['plugins']['has']('ImageResize')&&(_0x49a4ab['enableDefaultAttributesIntegration']('resizeImage'),_0x49a4ab['descriptionFactory']['registerAttributeLabel']('resizedWidth',wt(_0x563582,'FORMAT_IMAGE_SIZE'))),_0xe72697['plugins']['has']('ImageTextAlternativeEditing')&&_0x49a4ab['enableDefaultAttributesIntegration']('imageTextAlternative'),_0xe72697['plugins']['has']('PictureEditing')&&_0x49a4ab['descriptionFactory']['registerDescriptionCallback'](_0x52b936=>{if('attribute'!=_0x52b936['type'])return;const {data:_0x516239}=_0x52b936;return _0x516239&&'sources'==_0x516239['key']?{'type':'format','content':''}:void 0x0;}),_0xe72697['plugins']['has']('ImageSizeAttributes')&&_0x49a4ab['descriptionFactory']['registerDescriptionCallback'](_0x377871=>{if('attribute'!=_0x377871['type'])return;const {data:_0x9525dd}=_0x377871;return!_0x9525dd||'width'!=_0x9525dd['key']&&'height'!=_0x9525dd['key']?void 0x0:{'type':'format','content':''};}),_0x49a4ab['descriptionFactory']['registerDescriptionCallback'](_0x290b4b=>{if(_0x3dfe36['find'](({type:_0x41121e,subType:_0x15d2ed})=>_0x290b4b['type']==_0x41121e&&_0x290b4b['subType']==_0x15d2ed))return _0x290b4b['previous']?{}:void 0x0;}),_0x49a4ab['descriptionFactory']['registerDescriptionCallback'](_0x13e310=>{if('insertion'==_0x13e310['type']||'deletion'==_0x13e310['type']){const _0xea0b61=_0x13e310['getContainedElement']();if(_0xea0b61&&_0xea0b61['is']('element','caption'))return{'type':'insertion'==_0x13e310['type']?'addObject':'removeObject','element':_0xea0b61,'quantity':0x1};}}),_0x49a4ab['descriptionFactory']['registerDescriptionCallback'](_0x37c2a=>'formatBlock'==_0x37c2a['type']&&'convertInlineImageToBlock'==_0x37c2a['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x37c2a['type']&&'convertBlockImageToInline'==_0x37c2a['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x49a4ab['descriptionFactory']['registerDescriptionCallback'](_0x5162a5=>{if('attribute'!=_0x5162a5['type'])return;const {data:_0x17261d}=_0x5162a5;if(!_0x17261d||'alt'!=_0x17261d['key'])return;const _0x3b171e=_0x17261d['newValue'];return _0x3b171e?{'type':'format','content':wt(_0x563582,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3b171e+'\x22')}:{'type':'format','content':wt(_0x563582,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x21381e=this['editor'],_0x32b0f8=_0x21381e['locale'];_0x21381e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5028c7=>{if('formatBlock'!=_0x5028c7['type']&&'formatInline'!=_0x5028c7['type'])return;const {data:_0xcc96ee}=_0x5028c7;if(_0xcc96ee){if('imageTextAlternative'==_0xcc96ee['commandName']){const _0x470ae2=_0xcc96ee['commandParams'][0x0]['newValue'];return _0x470ae2?{'type':'format','content':wt(_0x32b0f8,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x470ae2+'\x22')}:{'type':'format','content':wt(_0x32b0f8,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xcc96ee['commandName']){const _0x73bc77=_0xcc96ee['commandParams'][0x0]['width'];return _0x73bc77?{'type':'format','content':wt(_0x32b0f8,'*Set\x20image\x20width:*\x20%0',_0x73bc77)}:{'type':'format','content':wt(_0x32b0f8,'*Reset\x20image\x20width*')};}}});}},me=class extends _0x3ad3dd{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x32f48=this['editor']['locale'],_0x116061=this['editor']['plugins']['get']('TrackChangesEditing');_0x116061['enableDefaultAttributesIntegration']('replaceImageSource'),_0x116061['descriptionFactory']['registerDescriptionCallback'](_0x148066=>{if('attribute'!=_0x148066['type'])return;const {data:_0x5501b9}=_0x148066;return _0x5501b9&&'src'==_0x5501b9['key']?_0x5501b9['newValue']&&_0x5501b9['oldValue']?{'type':'format','content':wt(_0x32f48,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x2f6895=this['editor']['plugins']['get']('TrackChangesEditing');_0x2f6895['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2f6895['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2f6895['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2f6895['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5aafeb=this['editor'],_0x847737=_0x5aafeb['locale'];_0x5aafeb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe9b9f0=>{if('formatBlock'!=_0xe9b9f0['type']&&'formatInline'!=_0xe9b9f0['type'])return;const {data:_0x1c15ba}=_0xe9b9f0;return _0x1c15ba&&'replaceImageSource'==_0x1c15ba['commandName']?{'type':'format','content':wt(_0x847737,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},Ee=class extends _0x3ad3dd{afterInit(){const _0x41e5cb=this['editor'];if(!_0x41e5cb['plugins']['has']('ImageStyleEditing'))return;const _0x4faf18=_0x41e5cb['plugins']['get']('TrackChangesEditing'),_0x4b81f3=_0x41e5cb['plugins']['get']('ImageUtils'),_0x41a2e7={};_0x4faf18['enableCommand']('imageStyle',(_0x39a325,_0x43e1c7)=>{const _0x55a359=_0x41e5cb['plugins']['get']('Users')['me'],_0xaa7b5d=_0x41e5cb['commands']['get']('imageStyle');let _0x254a06=_0x4b81f3['getClosestSelectedImageElement'](_0x41e5cb['model']['document']['selection']),_0x22d8a0=_0x41e5cb['model']['createRangeOn'](_0x254a06),_0x13b91e=_0xaa7b5d['value'];if(_0x13b91e==_0x43e1c7['value'])return;if(_0x43e1c7['value']&&_0x4b81f3['isInlineImage'](_0x254a06)&&!_0xaa7b5d['isStyleEnabled'](_0x43e1c7['value']))return;const _0x5c47a0={'commandName':'imageStyle','commandParams':[_0x43e1c7],'formatGroupId':_0x4551b0()};_0x41e5cb['model']['change'](()=>{if(_0x4faf18['getSuggestions']()['filter'](_0x14b8f3=>_0x14b8f3['isInContent']&&_0x55a359==_0x14b8f3['author']&&('formatBlock'==_0x14b8f3['type']||'formatInline'==_0x14b8f3['type'])&&('imageStylePreApply'==_0x14b8f3['subType']||'imageStylePostApply'==_0x14b8f3['subType'])&&_0x14b8f3['getFirstRange']()['isEqual'](_0x22d8a0))['forEach'](_0x39e8b0=>_0x4faf18['discardSuggestion'](_0x39e8b0['head'])),_0x254a06=_0x4b81f3['getClosestSelectedImageElement'](_0x41e5cb['model']['document']['selection']),_0x22d8a0=_0x41e5cb['model']['createRangeOn'](_0x254a06),_0xaa7b5d['refresh'](),_0x41e5cb['commands']['get']('imageTypeInline')['refresh'](),_0x41e5cb['commands']['get']('imageTypeBlock')['refresh'](),_0x13b91e=_0xaa7b5d['value'],_0x13b91e!=_0x43e1c7['value'])return _0x4b81f3['isInlineImage'](_0x254a06)&&_0xaa7b5d['shouldConvertImageType'](_0x43e1c7['value'],_0x254a06)?(_0x39a325({..._0x43e1c7,'setImageSizes':!0x1}),_0x254a06=_0x4b81f3['getClosestSelectedImageElement'](_0x41e5cb['model']['document']['selection']),void _0x4faf18['markBlockFormat'](_0x254a06,{..._0x5c47a0,'commandReversedParams':[{'value':_0x13b91e||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4b81f3['isBlockImage'](_0x254a06)?_0x4faf18['markBlockFormat'](_0x254a06,_0x5c47a0,[],'imageStylePostApply'):_0x4faf18['markInlineFormat'](_0x22d8a0,_0x5c47a0,'imageStylePostApply'));});});for(const _0x26f0d1 of _0x41e5cb['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x41a2e7[_0x26f0d1['name']]=_0x26f0d1['title']['toLowerCase']();_0x4faf18['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4faf18['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4faf18['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4faf18['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x310135])=>{_0x4b81f3['setImageNaturalSizeAttributes'](_0x310135['getContainedElement']());}),_0x4faf18['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5a6987,_0x1a570d)=>{_0x4faf18['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5a6987,{'commandName':_0x1a570d['commandName'],'commandParams':_0x1a570d['commandReversedParams']});}),_0x4faf18['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x32c331,_0x1aef10){return _0x31c565(_0x32c331,_0x1aef10)?[_0x32c331,_0x1aef10]:_0x31c565(_0x1aef10,_0x32c331)?[_0x1aef10,_0x32c331]:null;});const _0x3ea0a7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x31c565(_0x2e3e42,_0x34551d){const _0x20ab42=_0x3ea0a7['findIndex'](({type:_0x5122ec,subType:_0x53b21b})=>_0x2e3e42['type']==_0x5122ec&&_0x2e3e42['subType']==_0x53b21b),_0x24a43f=_0x3ea0a7['findIndex'](({type:_0x166554,subType:_0x24b24c})=>_0x34551d['type']==_0x166554&&_0x34551d['subType']==_0x24b24c);if(_0x20ab42<0x0||_0x24a43f<0x0)return!0x1;const _0x561ab9=_0x2e3e42['getFirstRange'](),_0x5e908b=_0x34551d['getFirstRange']();if((0x0==_0x20ab42||0x1==_0x20ab42)&&0x2==_0x24a43f&&_0x561ab9['isIntersecting'](_0x5e908b))return!0x0;if(0x2==_0x20ab42&&0x3==_0x24a43f){const _0x14f448=_0x4faf18['_findSuggestions'](_0x561ab9,'insertion')['filter'](({suggestion:_0x14e368,meta:_0x58d289})=>_0x58d289['isOwn']&&'convertInlineImageToBlock'==_0x14e368['subType']);if(_0x14f448['length']>0x1&&_0x5e908b['end']['isEqual'](_0x561ab9['start']))return!0x0;if(0x1==_0x14f448['length']&&(_0x561ab9['start']['isEqual'](_0x5e908b['end'])||_0x561ab9['end']['isEqual'](_0x5e908b['start'])))return!0x0;}if(0x3==_0x20ab42&&0x3==_0x24a43f&&_0x561ab9['start']['isBefore'](_0x5e908b['start'])){const _0x4150e8=_0x561ab9['end']['nodeAfter'],_0x769b03=_0x5e908b['start']['nodeBefore'];return _0x4b81f3['isBlockImage'](_0x4150e8)&&_0x4150e8===_0x769b03;}return!0x1;}_0x41e5cb['model']['document']['registerPostFixer'](()=>{let _0x39e009=!0x1;const _0x2aff9c=Array['from'](_0x41e5cb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x251684,data:_0x315313}of _0x2aff9c){const {group:_0xf5e8c3,type:_0x44bcf0,subType:_0x193a1f,id:_0x4a51ad}=nt(_0x251684);if('suggestion'==_0xf5e8c3&&_0x4faf18['hasSuggestion'](_0x4a51ad)){if('formatBlock'==_0x44bcf0&&('imageStylePreApply'==_0x193a1f||'imageStylePostApply'==_0x193a1f)){const _0x3a7a8d=_0x4faf18['getSuggestion'](_0x4a51ad);if(_0x315313['newRange']){const _0x3ab72f=_0x3a7a8d['getFirstRange']()['getContainedElement']();if(_0x4b81f3['isBlockImage'](_0x3ab72f))continue;_0x4faf18['discardSuggestion'](_0x3a7a8d),_0x39e009=!0x0;}}if('insertion'==_0x44bcf0&&'imageCaption'==_0x193a1f&&!_0x315313['newRange']){const _0x2a5800=_0x4faf18['getSuggestion'](_0x4a51ad);_0x2a5800['next']&&_0x2a5800['next']['isInContent']&&(_0x4faf18['discardSuggestion'](_0x2a5800['next']),_0x39e009=!0x0);}}}return _0x39e009;}),this['_registerLegacyDescription'](_0x41a2e7);}_registerLegacyDescription(_0x3fcbb9){const _0x238b0a=this['editor'],_0x26a77e=_0x238b0a['locale'];_0x238b0a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fdc9c=>{if('formatBlock'!=_0x4fdc9c['type']&&'formatInline'!=_0x4fdc9c['type'])return;const {data:_0x22a156}=_0x4fdc9c;if(!_0x22a156||'imageStyle'!=_0x22a156['commandName'])return;const _0x12dfb5=_0x22a156['commandParams'][0x0]['value'];return _0x5f8313('side'===_0x12dfb5?wt(_0x26a77e,'FORMAT_SIDE_IMAGE'):_0x3fcbb9[_0x12dfb5]||_0x12dfb5);function _0x5f8313(_0x26bf04){return{'type':'format','content':wt(_0x26a77e,'*Format:*\x20%0',_0x26bf04)};}});}},Te=class extends _0x3ad3dd{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0x5cdb5f){super(_0x5cdb5f),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0x494a50=this['editor'],_0x4dac97=_0x494a50['commands']['get']('importWord'),_0x3b6059=_0x494a50['commands']['get']('trackChanges');_0x4dac97&&(_0x4dac97['on']('execute',(_0x281240,[,_0x2a8fed])=>{this['_trackChangesValueDuringImport']=_0x3b6059['value'],_0x2a8fed['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4dac97,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4dac97,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3b6059['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x494a50['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0x541d64,_0x4bb41b){const {suggestions:_0x6c824}=_0x4bb41b,_0x3c5f68=this['editor']['commands']['get']('trackChanges'),_0x3ef67d=_0x3c5f68['value'];this['_trackChangesValueDuringImport']!==_0x3ef67d&&(_0x3c5f68['execute'](),this['_trackChangesExecuted']=!0x0),_0x6c824&&_0x6c824['forEach'](({id:_0xea3483,type:_0x2b0afa,author:_0x523358,created_at:_0x6ac5c4})=>{const _0x35bd8d={'id':_0xea3483,'type':_0x2b0afa,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x523358,'createdAt':_0x6ac5c4?new Date(_0x6ac5c4):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x35bd8d);});}},_e=class extends _0x3ad3dd{afterInit(){const _0x103b68=this['editor'],_0x120a33=_0x103b68['plugins']['get']('TrackChangesEditing');if(_0x103b68['plugins']['has']('IndentEditing')&&(_0x120a33['enableCommand']('indent'),_0x120a33['enableCommand']('outdent')),_0x103b68['plugins']['has']('IndentBlock')){for(const _0x2e9dc3 of['indentBlock','outdentBlock'])_0x120a33['enableDefaultAttributesIntegration'](_0x2e9dc3);if(_0x103b68['plugins']['has']('ListEditing')){for(const _0x1a1bfa of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x120a33['enableDefaultAttributesIntegration'](_0x1a1bfa);}}const _0x2a4c96=_0x103b68['locale'];_0x120a33['descriptionFactory']['registerAttributeLabel']('blockIndent',wt(_0x2a4c96,'FORMAT_INDENT')),_0x120a33['descriptionFactory']['registerAttributeLabel']('blockIndentList',wt(_0x2a4c96,'FORMAT_INDENT')),_0x120a33['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',wt(_0x2a4c96,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x3b7688=this['editor'],_0x390d16=_0x3b7688['locale'],_0xa83119=_0x3b7688['plugins']['get']('TrackChangesEditing');_0xa83119['descriptionFactory']['registerDescriptionCallback'](_0x2326d8=>{if('formatBlock'!=_0x2326d8['type'])return;const {data:_0x13f734}=_0x2326d8;if(!_0x13f734)return;if('indentBlock'!=_0x13f734['commandName']&&'outdentBlock'!=_0x13f734['commandName'])return;const _0x3dbcd8=_0x2326d8['getItems']()[0x0],_0x368bf1=_0xa83119['descriptionFactory']['getItemLabel'](_0x3dbcd8);return'indentBlock'==_0x13f734['commandName']?{'type':'format','content':wt(_0x390d16,'*Indent:*\x20%0',_0x368bf1)}:'outdentBlock'==_0x13f734['commandName']?{'type':'format','content':wt(_0x390d16,'*Outdent:*\x20%0',_0x368bf1)}:void 0x0;});}},pe=class extends _0x3ad3dd{static get requires(){return[Tt];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},Le=class extends _0x3ad3dd{afterInit(){const _0x27525f=this['editor'];if(!_0x27525f['plugins']['has']('LinkEditing'))return;const _0x4c05e3=_0x27525f['plugins']['get']('TrackChangesEditing'),_0x5559eb=_0x27525f['commands']['get']('link');_0x4c05e3['enableDefaultAttributesIntegration']('link'),_0x4c05e3['enableDefaultAttributesIntegration']('unlink');for(const _0x5639e4 of _0x5559eb['manualDecorators'])_0x4c05e3['descriptionFactory']['registerAttributeLabel'](_0x5639e4['id'],'link\x20('+_0x5639e4['label']['toLowerCase']()+')');_0x4c05e3['descriptionFactory']['registerDescriptionCallback'](_0x2aba11=>{if('attribute'!=_0x2aba11['type'])return;const {data:_0x30f6cf}=_0x2aba11;if(!_0x30f6cf||'linkHref'!=_0x30f6cf['key'])return;const _0x283902=_0x30f6cf['newValue'],_0x4dcddd=_0x27525f['locale'];return{'type':'format','content':null==_0x283902?wt(_0x4dcddd,'*Remove\x20link*'):wt(_0x4dcddd,'*Set\x20link:*\x20%0','\x22'+_0x283902+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x15f896=this['editor'],_0x37f42e=_0x15f896['locale'];_0x15f896['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55411c=>{if('formatInline'!=_0x55411c['type'])return;const {data:_0x26b3af}=_0x55411c;if(_0x26b3af){if('link'==_0x26b3af['commandName']){const _0x5a115c=_0x26b3af['commandParams'][0x0];return{'type':'format','content':wt(_0x37f42e,'*Set\x20link:*\x20%0','\x22'+_0x5a115c+'\x22')};}return'unlink'==_0x26b3af['commandName']?{'type':'format','content':wt(_0x37f42e,'*Remove\x20link*')}:void 0x0;}});}},Ie=class extends _0x3ad3dd{afterInit(){const _0x1135a2=this['editor'],_0x4d07a9=_0x1135a2['locale'];if(!_0x1135a2['plugins']['has']('LegacyListEditing'))return;const _0x332164=_0x1135a2['plugins']['get']('TrackChangesEditing'),_0xdf8a1d=_0x1135a2['plugins']['has']('LegacyTodoListEditing');function _0x23e84e(_0x3ead99){return()=>{const _0x5a485f=_0x1135a2['model']['document']['selection'],_0x4cbaf5=_0x1135a2['commands']['get'](_0x3ead99);if(_0x4cbaf5['value'])return void _0x1135a2['execute']('paragraph',{});const _0x3d0ea3=_0x3ead99['slice'](0x0,-0x4),_0x370924=function(_0xf910c7,_0x45be00,_0x4319bf){let _0x54a423=Array['from'](_0xf910c7)['filter'](_0xdd8b79=>function(_0x1a1339,_0x3b5796){return _0x3b5796['checkChild'](_0x1a1339['parent'],'listItem')&&!_0x3b5796['isObject'](_0x1a1339);}(_0xdd8b79,_0x4319bf));_0x54a423=_0x54a423['filter'](_0x192b82=>!_0x192b82['is']('element','listItem')||_0x192b82['getAttribute']('listType')!=_0x45be00);const _0x422f71=new Set();for(const _0x498701 of _0x54a423)_0x498701['is']('element','listItem')?_0x422f71['add'](Ae(_0x498701)):_0x422f71['add'](_0x498701);return Array['from'](_0x422f71);}(_0x5a485f['getSelectedBlocks'](),_0x3d0ea3,_0x1135a2['model']['schema']);_0x1135a2['model']['change'](()=>{for(const _0x35d223 of _0x370924)_0x332164['markBlockFormat'](_0x35d223,{'commandName':_0x3ead99,'commandParams':[{'forceValue':!_0x4cbaf5['value']}],'formatGroupId':'blockName'},be(_0x35d223));});};}function _0x5dd270(_0x8b7f0){return()=>{const _0x378d7d=function(_0x56f2b9){let _0x51d3dc=Array['from'](_0x56f2b9);const _0xf89a93=_0x51d3dc['findIndex'](_0x21e7cf=>'listItem'!=_0x21e7cf['name']);return _0xf89a93>-0x1&&(_0x51d3dc=_0x51d3dc['slice'](0x0,_0xf89a93)),_0x51d3dc;}(_0x1135a2['model']['document']['selection']['getSelectedBlocks']()),_0x40ce19=_0x1135a2['model']['createRange'](_0x1135a2['model']['createPositionAt'](_0x378d7d[0x0],'before'),_0x1135a2['model']['createPositionAt'](_0x378d7d[_0x378d7d['length']-0x1],'end'));_0x1135a2['model']['change'](()=>{_0x332164['markBlockFormat'](_0x40ce19,{'commandName':_0x8b7f0,'commandParams':[],'formatGroupId':'listIndent'},function(_0x340a32){const _0x57c3a6=new Set();for(const _0x2201f6 of _0x340a32){let _0x2ae09f=_0x2201f6['nextSibling'];for(;_0x2ae09f&&_0x2ae09f['getAttribute']('listIndent')>_0x2201f6['getAttribute']('listIndent');)_0x57c3a6['add'](_0x2ae09f),_0x2ae09f=_0x2ae09f['nextSibling'];}return Array['from'](_0x57c3a6);}(_0x378d7d));});};}_0x332164['enableCommand']('numberedList',_0x23e84e('numberedList')),_0x332164['enableCommand']('bulletedList',_0x23e84e('bulletedList')),_0xdf8a1d&&_0x332164['enableCommand']('todoList',_0x23e84e('todoList')),_0x332164['enableCommand']('indentList',_0x5dd270('indentList')),_0x332164['enableCommand']('outdentList',_0x5dd270('outdentList')),_0xdf8a1d&&_0x332164['enableCommand']('checkTodoList',()=>{const _0x3e574d=_0x1135a2['commands']['get']('checkTodoList'),_0x227e68=Array['from'](_0x3e574d['_selectedElements']);_0x227e68['filter'](_0x6b19f3=>_0x6b19f3['getAttribute']('todoListChecked')!=_0x3e574d['value']),_0x1135a2['model']['change'](()=>{for(const _0x3b3690 of _0x227e68)_0x332164['markBlockFormat'](_0x3b3690,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3e574d['value']}]});});}),_0x332164['descriptionFactory']['registerElementLabel']('listItem',_0x3fbf35=>wt(_0x4d07a9,'ELEMENT_LIST_ITEM',_0x3fbf35)),_0x332164['descriptionFactory']['registerDescriptionCallback'](_0x363d3f=>{if('formatBlock'!=_0x363d3f['type']&&'formatInline'!=_0x363d3f['type'])return;const {data:_0x553f73}=_0x363d3f;if(_0x553f73){if('numberedList'==_0x553f73['commandName']||'bulletedList'==_0x553f73['commandName']||'todoList'==_0x553f73['commandName'])switch(_0x553f73['commandName']['replace']('List','')){case'bulleted':return _0x3488b6(wt(_0x4d07a9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3488b6(wt(_0x4d07a9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3488b6(wt(_0x4d07a9,'ELEMENT_TODO_LIST'));}if('indentList'==_0x553f73['commandName'])return{'type':'format','content':wt(_0x4d07a9,'*Indent:*\x20%0',wt(_0x4d07a9,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x553f73['commandName'])return{'type':'format','content':wt(_0x4d07a9,'*Outdent:*\x20%0',wt(_0x4d07a9,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x553f73['commandName'])return _0x553f73['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x4d07a9,'*Check\x20item*')}:{'type':'format','content':wt(_0x4d07a9,'*Uncheck\x20item*')};}function _0x3488b6(_0x1bee35){return{'type':'format','content':wt(_0x4d07a9,'*Change\x20to:*\x20%0',_0x1bee35)};}});}};function Ae(_0x2ed40){const _0x446eb3=_0x2ed40['getAttribute']('listIndent');if(0x0==_0x446eb3)return _0x2ed40;let _0x12b688=_0x2ed40;for(;_0x2ed40['previousSibling']&&_0x2ed40['previousSibling']['is']('element','listItem');){const _0x529855=_0x2ed40['previousSibling']['getAttribute']('listIndent');if(_0x529855==_0x446eb3)_0x12b688=_0x2ed40['previousSibling'];else{if(_0x529855<_0x446eb3)break;}_0x2ed40=_0x2ed40['previousSibling'];}return _0x12b688;}function be(_0x10f526){const _0x38083d=[];if(_0x10f526['is']('element','listItem')&&_0x10f526['getAttribute']('listIndent')>0x0){let _0x1a5e74=_0x10f526['nextSibling'];for(;_0x1a5e74&&'listItem'==_0x1a5e74['name']&&_0x1a5e74['getAttribute']('listIndent')==_0x10f526['getAttribute']('listIndent');)_0x38083d['push'](_0x1a5e74),_0x1a5e74=_0x1a5e74['nextSibling'];}return _0x38083d;}var Ce=class extends _0x3ad3dd{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3c6368=this['editor']['config']['get']('list.properties'),_0x5398f8=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c6368['styles']&&_0x5398f8['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3c6368['reversed']&&_0x5398f8['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3c6368['startIndex']&&_0x5398f8['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5398f8['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0x25242d,_0x38bb09={}){const _0x3348ae=this['editor']['plugins']['get']('TrackChangesEditing'),_0x56ce8f=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3348ae['markMultiRangeBlockFormat'](_0x56ce8f,{'commandName':'listStyle','commandParams':[{'type':_0x38bb09['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0x16d2c9,_0x546d2a={}){const _0x38e419=this['editor']['plugins']['get']('TrackChangesEditing'),_0x256a81=this['_getSuggestionBlocks'](_0x36d61d=>_0x36d61d['is']('element','listItem')&&'numbered'===_0x36d61d['getAttribute']('listType'));if(_0x256a81['length']<0x1)return;const _0x1429f9=_0x256a81['map'](_0x59d202=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x59d202,'before'),this['editor']['model']['createPositionAt'](_0x59d202,0x0)));this['editor']['model']['change'](()=>{_0x38e419['markMultiRangeBlockFormat'](_0x1429f9,{'commandName':'listReversed','commandParams':[{'reversed':_0x546d2a['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0x5c61b3,_0x46e4a6={}){const _0x1d6f72=this['editor']['plugins']['get']('TrackChangesEditing'),_0x153d04=this['_getSuggestionBlocks'](_0x224eff=>_0x224eff['is']('element','listItem')&&'numbered'===_0x224eff['getAttribute']('listType'));if(_0x153d04['length']<0x1)return;const _0x2a63ed=_0x153d04['map'](_0x385f01=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x385f01,'before'),this['editor']['model']['createPositionAt'](_0x385f01,0x0)));this['editor']['model']['change'](()=>{_0x1d6f72['markMultiRangeBlockFormat'](_0x2a63ed,{'commandName':'listStart','commandParams':[{'startIndex':_0x46e4a6['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0x45a5b1){if('formatBlock'!=_0x45a5b1['type']&&'formatInline'!=_0x45a5b1['type'])return;const _0x37ac3a=this['editor']['locale'],{data:_0x1f3a81}=_0x45a5b1;if(!_0x1f3a81)return;let _0x42b453,_0x577701;switch(_0x1f3a81['commandName']){case'listStyle':_0x42b453='*Change\x20to:*\x20%0',_0x577701={'type':'format','content':wt(_0x37ac3a,_0x42b453,wt(_0x37ac3a,this['_getTranslationKeyForListStyle'](_0x1f3a81['commandParams'][0x0]['type'])))};break;case'listReversed':_0x42b453=_0x1f3a81['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x577701={'type':'format','content':wt(_0x37ac3a,_0x42b453)};break;case'listStart':_0x42b453='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x577701={'type':'format','content':wt(_0x37ac3a,_0x42b453,_0x1f3a81['commandParams'][0x0]['startIndex'])};}return _0x577701;}_getSuggestionBlocksForListStyle(){const _0x14e2ea=this['editor']['plugins']['get']('LegacyListUtils');let _0x29d525=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x29d525[0x0]?.['is']('element','listItem')&&_0x29d525['unshift'](..._0x14e2ea['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x29d525[_0x29d525['length']-0x1]?.['is']('element','listItem')&&_0x29d525['push'](..._0x14e2ea['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x29d525=[...new Set(_0x29d525)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x29d525=_0x29d525['filter'](_0x1184e2=>_0x1184e2['is']('element','listItem'))),_0x29d525;}_getSuggestionBlocks(_0x2ca029){const _0x1260ce=this['editor']['plugins']['get']('LegacyListUtils');let _0x1a98ab=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2ca029)['map'](_0x1fda69=>{const _0x28f594=this['editor']['model']['createPositionAt'](_0x1fda69,0x0);return[..._0x1260ce['getSiblingNodes'](_0x28f594,'backward'),..._0x1260ce['getSiblingNodes'](_0x28f594,'forward')];})['flat']();return _0x1a98ab=[...new Set(_0x1a98ab)],_0x1a98ab;}_getTranslationKeyForListStyle(_0x253d81){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x253d81)||'default')['toUpperCase']()+'_LIST_'+_0x253d81['toUpperCase']()['replace'](/-/g,'_');}},ke=class extends _0x3ad3dd{afterInit(){const _0x5ab762=this['editor'];if(!_0x5ab762['plugins']['has']('MediaEmbedEditing'))return;const _0x5976c6=_0x5ab762['plugins']['get']('TrackChangesEditing'),_0x152afc=_0x5ab762['locale'];_0x5976c6['enableCommand']('mediaEmbed'),_0x5976c6['descriptionFactory']['registerElementLabel']('media',_0x16201f=>wt(_0x152afc,'ELEMENT_MEDIA',_0x16201f)),_0x5ab762['plugins']['has']('MediaEmbedResizeEditing')&&(_0x5976c6['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x5976c6['descriptionFactory']['registerDescriptionCallback'](_0x3a5e7a=>{if('attribute'!=_0x3a5e7a['type'])return;const {data:_0x477916}=_0x3a5e7a;if(!_0x477916||'resizedWidth'!=_0x477916['key'])return;const _0x2ec72f=_0x3a5e7a['getContainedElement']();if(!_0x2ec72f||!_0x2ec72f['is']('element','media'))return;const _0x4fd1bb=wt(_0x152afc,'FORMAT_MEDIA_SIZE');return{'type':'format','content':wt(_0x152afc,'*Set\x20format:*\x20%0',_0x4fd1bb)};}));}},Re=class extends _0x3ad3dd{afterInit(){const _0x28adc7=this['editor'];if(!_0x28adc7['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x5c95ec=_0x28adc7['plugins']['get']('TrackChangesEditing'),_0x3705eb=_0x28adc7['locale'],_0x2fa013=_0x28adc7['plugins']['get']('MediaEmbedStyleEditing'),_0x2fc548={};for(const _0x2ecff5 of _0x2fa013['normalizedStyles'])_0x2fc548[_0x2ecff5['name']]=_0x2ecff5['title']['toLowerCase']();const _0x50e6a2=_0x2fa013['normalizedStyles']['find'](_0x460ec0=>_0x460ec0['isDefault'])?.['name'];_0x5c95ec['enableCommand']('mediaStyle',(_0x8e30e5,_0x283f0e)=>{const _0x19f0ad=_0x28adc7['plugins']['get']('Users')['me'],_0x167b03=_0x28adc7['commands']['get']('mediaStyle'),_0x444fb5=function(_0x2711f8){const _0x59f39b=_0x2711f8['model']['document']['selection']['getSelectedElement']();return _0x59f39b&&_0x59f39b['is']('element','media')?_0x59f39b:null;}(_0x28adc7);if(!_0x444fb5)return;const _0x25c784=_0x28adc7['model']['createRangeOn'](_0x444fb5);let _0x455bef=_0x167b03['value'];if(_0x455bef==_0x283f0e['value'])return;const _0x5cd40b={'commandName':'mediaStyle','commandParams':[_0x283f0e],'formatGroupId':_0x4551b0()};_0x28adc7['model']['change'](()=>{_0x5c95ec['getSuggestions']()['filter'](_0x5bd12d=>_0x5bd12d['isInContent']&&_0x19f0ad==_0x5bd12d['author']&&'formatBlock'==_0x5bd12d['type']&&'mediaStylePostApply'==_0x5bd12d['subType']&&_0x5bd12d['getFirstRange']()['isEqual'](_0x25c784))['forEach'](_0x343494=>_0x5c95ec['discardSuggestion'](_0x343494['head'])),_0x167b03['refresh'](),_0x455bef=_0x167b03['value'],_0x455bef!=_0x283f0e['value']&&_0x5c95ec['markBlockFormat'](_0x444fb5,{..._0x5cd40b,'commandReversedParams':[{'value':'string'==typeof _0x455bef?_0x455bef:null}]},[],'mediaStylePostApply');});}),_0x5c95ec['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x5c95ec['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x16e4d2,_0xb122bd)=>{_0x5c95ec['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x16e4d2,{'commandName':_0xb122bd['commandName'],'commandParams':_0xb122bd['commandReversedParams']});}),_0x5c95ec['descriptionFactory']['registerDescriptionCallback'](_0x510ad7=>{if('formatBlock'!=_0x510ad7['type'])return;const {data:_0x41e104}=_0x510ad7;if(!_0x41e104||'mediaStyle'!=_0x41e104['commandName'])return;const _0x3f01b1=_0x41e104['commandParams'][0x0]['value']||_0x50e6a2;if(!_0x3f01b1)return;const _0x6842e4=_0x2fc548[_0x3f01b1]||_0x3f01b1;return{'type':'format','content':wt(_0x3705eb,'*Format:*\x20%0',_0x6842e4)};});}},Ne=class extends _0x3ad3dd{afterInit(){const _0x5a42ab=this['editor'];_0x5a42ab['plugins']['has']('MentionEditing')&&_0x5a42ab['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},ye=class extends _0x3ad3dd{afterInit(){const _0x2ddb4e=this['editor'];if(!_0x2ddb4e['plugins']['has']('MergeFieldsEditing'))return;const _0x2a35b8=_0x2ddb4e['plugins']['get']('TrackChangesEditing'),_0x44e628=_0x2ddb4e['locale'];_0x2a35b8['enableCommand']('insertMergeField'),_0x2a35b8['enableCommand']('insertMergeFieldBlock'),_0x2a35b8['enableCommand']('insertMergeFieldImage'),_0x2a35b8['descriptionFactory']['registerElementLabel']('mergeField',_0x37544e=>wt(_0x44e628,'ELEMENT_MERGE_FIELD',_0x37544e)),_0x2a35b8['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x514245=>wt(_0x44e628,'ELEMENT_MERGE_FIELD',_0x514245)),_0x2a35b8['descriptionFactory']['registerDescriptionCallback'](_0x4fce3b=>{if('insertion'!=_0x4fce3b['type']&&'deletion'!=_0x4fce3b['type'])return;const _0x26487d=_0x4fce3b['getContainedElement']();if(null==_0x26487d)return;const _0x5d3834=_0x2ddb4e['plugins']['get']('MergeFieldsEditing');let _0x3473c0;switch(_0x5d3834['getMergeFieldType'](_0x26487d)){case null:return;case'image':{const _0x2f1383=_0x5d3834['unwrapAffixes'](_0x26487d['getAttribute']('src'));_0x3473c0=_0x5d3834['getLabel'](_0x2f1383)||_0x2f1383;break;}default:{const _0x33e121=_0x26487d['getAttribute']('id');_0x3473c0=_0x5d3834['getLabel'](_0x33e121)||_0x33e121;break;}}return'insertion'==_0x4fce3b['type']?{'type':'insertion','content':wt(_0x44e628,'*Insert:*\x20%0','\x22'+_0x3473c0+'\x22\x20'+wt(_0x44e628,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':wt(_0x44e628,'*Remove:*\x20%0','\x22'+_0x3473c0+'\x22\x20'+wt(_0x44e628,'ELEMENT_MERGE_FIELD'))};});}},Se=class extends _0x3ad3dd{afterInit(){const _0x42da11=this['editor'],_0x1fa14a=_0x42da11['plugins']['get']('TrackChangesEditing');_0x42da11['plugins']['has']('MultiLevelList')&&(_0x1fa14a['enableDefaultAttributesIntegration']('multiLevelList'),_0x1fa14a['descriptionFactory']['registerDescriptionCallback'](_0x33bef7=>this['handleDescriptions'](_0x33bef7)));}handleDescriptions(_0x533fac){const _0x136e47=this['editor']['locale'],{data:_0x34c3c5}=_0x533fac,_0x370d1a={'type':'format','content':''};if(_0x34c3c5&&'listMarkerStyle'==_0x34c3c5['key']){if(!_0x34c3c5['oldValue'])return{'type':'format','content':wt(_0x136e47,'*Set\x20format:*\x20%0',wt(_0x136e47,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x34c3c5['newValue']+')'};if(!_0x34c3c5['newValue']){let _0x38cf07=_0x533fac['head'];for(;_0x38cf07;){if(_0x38cf07['data']&&'listType'==_0x38cf07['data']['key']&&_0x38cf07['data']['newValue'])return _0x370d1a;_0x38cf07=_0x38cf07['next'];}return{'type':'format','content':wt(_0x136e47,'*Remove\x20format:*\x20%0',wt(_0x136e47,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x34c3c5['oldValue']+')'};}}}},Me=class extends _0x3ad3dd{afterInit(){const _0x59138f=this['editor'];if(!_0x59138f['plugins']['has']('PageBreakEditing'))return;_0x59138f['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x82027b=_0x59138f['plugins']['get']('TrackChangesEditing'),_0x5e28ca=_0x59138f['locale'];_0x82027b['descriptionFactory']['registerElementLabel']('pageBreak',_0x464bbf=>wt(_0x5e28ca,'ELEMENT_PAGE_BREAK',_0x464bbf));}},Oe=class extends _0x3ad3dd{afterInit(){const _0x1979af=this['editor'];if(!_0x1979af['plugins']['has']('Paragraph'))return;const _0x228c30=_0x1979af['locale'],_0x4af11e=_0x1979af['plugins']['get']('TrackChangesEditing');_0x4af11e['descriptionFactory']['registerElementLabel']('paragraph',_0xcfd70c=>wt(_0x228c30,'ELEMENT_PARAGRAPH',_0xcfd70c)),_0x4af11e['enableDefaultAttributesIntegration']('paragraph'),_0x4af11e['enableCommand']('insertParagraph');const _0x57381a=_0x4af11e['descriptionFactory'];_0x57381a['registerDescriptionCallback'](_0x4d7092=>{if('insertion'!==_0x4d7092['type'])return;const {start:_0x474172,end:_0x37728b}=_0x4d7092['getFirstRange']();if(!_0x474172['isTouching'](_0x37728b)||!_0x474172['nodeAfter'])return;const _0x5b6cb2=_0x1979af['model']['schema'],_0x28180d=_0x474172['nodeAfter'];return _0x5b6cb2['isBlock'](_0x28180d)&&!_0x5b6cb2['isLimit'](_0x28180d)&&_0x5b6cb2['checkChild'](_0x28180d,'$text')?{'type':'insertion','content':wt(_0x228c30,'*Insert:*\x20%0',_0x57381a['getItemLabel'](_0x28180d,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x2b1a07=this['editor'],_0xba884b=_0x2b1a07['locale'];_0x2b1a07['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a8f32=>{if('formatBlock'!=_0x4a8f32['type'])return;const {data:_0x31f215}=_0x4a8f32;return _0x31f215&&'paragraph'==_0x31f215['commandName']?{'type':'format','content':wt(_0xba884b,'*Change\x20to:*\x20%0',wt(_0xba884b,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},we=class extends _0x3ad3dd{afterInit(){const _0x126ecd=this['editor'];_0x126ecd['commands']['get']('replaceSource')&&_0x126ecd['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},Be=class extends _0x3ad3dd{afterInit(){const _0x5d2a24=this['editor'];_0x5d2a24['plugins']['has']('RemoveFormatEditing')&&(_0x5d2a24['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x3783fc=this['editor'];_0x3783fc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30e0b6=>{if('formatBlock'!=_0x30e0b6['type']&&'formatInline'!=_0x30e0b6['type'])return;const {data:_0x20537f}=_0x30e0b6;return _0x20537f&&'removeFormat'==_0x20537f['commandName']?{'type':'format','content':wt(_0x3783fc['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},Fe=class extends _0x3ad3dd{afterInit(){const _0x5157cb=this['editor'];if(!_0x5157cb['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4058bd=_0x5157cb['plugins']['get']('TrackChangesEditing');_0x4058bd['enableCommand']('goToPreviousRestrictedEditingException'),_0x4058bd['enableCommand']('goToNextRestrictedEditingException');const _0x358fa1=_0x5157cb['plugins']['get']('RestrictedEditingModeEditing');_0x358fa1['enableCommand']('trackChanges'),_0x358fa1['enableCommand']('acceptSuggestion'),_0x358fa1['enableCommand']('discardSuggestion'),_0x358fa1['enableCommand']('acceptAllSuggestions'),_0x358fa1['enableCommand']('discardAllSuggestions'),_0x358fa1['enableCommand']('acceptSelectedSuggestions'),_0x358fa1['enableCommand']('discardSelectedSuggestions');}},ve=class extends _0x3ad3dd{afterInit(){const _0xf3f484=this['editor'];if(!_0xf3f484['plugins']['has']('ShiftEnter'))return;const _0x4b0b20=_0xf3f484['plugins']['get']('TrackChangesEditing');_0x4b0b20['enableCommand']('shiftEnter'),_0x4b0b20['descriptionFactory']['registerElementLabel']('softBreak',_0x492c03=>wt(_0xf3f484['locale'],'ELEMENT_LINE_BREAK',_0x492c03));}};function De(_0x4a67d9,_0x228396,_0x4ab027){const _0x2b55d5=[];for(const _0x373480 of _0x228396['getItems']())_0x373480['hasAttribute'](_0x4a67d9)&&_0x2b55d5['push'](_0x4ab027['createRangeOn'](_0x373480));return _0x2b55d5;}var Ue=class extends _0x3ad3dd{afterInit(){const _0x437893=this['editor'],_0x2fd0d1=_0x437893['plugins']['get']('TrackChangesEditing');_0x437893['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x2fd0d1['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0x353b3c=this['editor'],_0x58f513=_0x353b3c['model'],_0x11e21b=_0x353b3c['locale'],_0x5c63d7=_0x353b3c['plugins']['get']('TrackChangesEditing'),_0x575ac1='restrictedEditingException',_0xcff731=_0x353b3c['commands']['get'](_0x575ac1);_0x5c63d7['enableCommand'](_0x575ac1,(_0x124d6b,_0x3c47b3={})=>{const _0x5dc914=_0x58f513['document']['selection'];if(_0x5dc914['isCollapsed'])return void _0x124d6b(_0x3c47b3);const _0xe89913=void 0x0!==_0x3c47b3['forceValue']?_0x3c47b3['forceValue']:!_0xcff731['value'];_0x58f513['change'](()=>{const _0x1ce3a6=Array['from'](_0x5dc914['getRanges']());for(const _0xbe16ed of _0x1ce3a6){const _0x11f2e8=_0xe89913?[_0xbe16ed]:De(_0x575ac1,_0xbe16ed,_0x58f513);for(const _0xe7629c of _0x11f2e8)_0x5c63d7['markInlineFormat'](_0xe7629c,{'commandName':_0x575ac1,'commandParams':[{'forceValue':_0xe89913}]});}});}),_0x5c63d7['descriptionFactory']['registerDescriptionCallback'](_0x4bcec3=>{if('formatBlock'!=_0x4bcec3['type']&&'formatInline'!=_0x4bcec3['type'])return;const {data:_0x448d90}=_0x4bcec3;return _0x448d90&&_0x448d90['commandName']==_0x575ac1?_0x448d90['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x11e21b,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':wt(_0x11e21b,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0x46005e=this['editor'],_0x463d93=_0x46005e['locale'],_0x5dd081=_0x46005e['plugins']['get']('TrackChangesEditing'),_0x13ccbc='restrictedEditingExceptionBlock',_0x7ef4f7=this['editor']['commands']['get'](_0x13ccbc);_0x5dd081['enableCommand'](_0x13ccbc,(_0x546074,_0x251893={})=>{const _0x53e11e=this['editor']['model']['document']['selection'],_0x106cb3=_0x251893&&void 0x0!==_0x251893['forceValue']?_0x251893['forceValue']:!_0x7ef4f7['value'];let _0x5071cc=[];if(_0x106cb3){const _0x4cc23f=Array['from'](_0x53e11e['getSelectedBlocks']())['filter'](_0x5e0fc0=>function(_0x4a6f20){return!!_0x4a6f20['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x5e0fc0)||function(_0x5c8533,_0x3a9460){const _0x28e3f6=_0x3a9460['createContext'](_0x5c8533['parent']);return!!_0x3a9460['checkChild'](_0x28e3f6,'restrictedEditingException')&&!!_0x3a9460['checkChild'](_0x28e3f6['push']('restrictedEditingException'),_0x5c8533);}(_0x5e0fc0,this['editor']['model']['schema']));_0x5071cc=kt(_0x4cc23f,_0x46005e['model']);}else{const _0x20ec3b=Array['from'](_0x53e11e['getSelectedBlocks']())['map'](_0x3a167a=>function(_0x5be803){let _0x30227b=_0x5be803;for(;_0x30227b['parent'];){if('restrictedEditingException'==_0x30227b['parent']['name'])return _0x30227b;_0x30227b=_0x30227b['parent'];}return null;}(_0x3a167a))['filter'](_0x11aaaa=>!!_0x11aaaa);_0x5071cc=kt(_0x20ec3b,_0x46005e['model']);}_0x46005e['model']['change'](()=>{for(const _0x21c1b7 of _0x5071cc)_0x5dd081['markBlockFormat'](_0x21c1b7,{'commandName':_0x13ccbc,'commandParams':[{'forceValue':_0x106cb3}]});});}),_0x5dd081['descriptionFactory']['registerDescriptionCallback'](_0x1042e0=>{const {data:_0x4a5242}=_0x1042e0;if(_0x4a5242&&_0x4a5242['commandName']==_0x13ccbc)return _0x4a5242['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x463d93,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':wt(_0x463d93,'FORMAT_RESTRICTED_DISABLED')};});}},Pe=class extends _0x3ad3dd{afterInit(){const _0x5b998c=this['editor'];_0x5b998c['plugins']['has']('Style')&&_0x5b998c['plugins']['has']('DataSchema')&&(_0x5b998c['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x544238=this['editor'],_0x98fd9e=_0x544238['locale'];_0x544238['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32df63=>{if('formatBlock'!=_0x32df63['type']&&'formatInline'!=_0x32df63['type'])return;const {data:_0x314d73}=_0x32df63;return _0x314d73&&'style'===_0x314d73['commandName']?_0x314d73['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x98fd9e,'*Set\x20format:*\x20%0',_0x314d73['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':wt(_0x98fd9e,'*Remove\x20format:*\x20%0',_0x314d73['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},xe=class extends _0x3ad3dd{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0x30303b){super(_0x30303b),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x2390bb=this['editor'],_0x1c6fd4=_0x2390bb['model']['document']['selection'];if(!_0x2390bb['plugins']['has']('TableEditing'))return;const _0x5c927a=_0x2390bb['locale'],_0x21eec5=_0x2390bb['plugins']['get']('TrackChangesEditing'),_0x2ce754=_0x2390bb['plugins']['get']('TableUtils');_0x21eec5['descriptionFactory']['registerElementLabel']('table',_0x2105b8=>wt(_0x5c927a,'ELEMENT_TABLE',_0x2105b8)),this['_setupColumnsRowsFixing'](),_0x21eec5['enableCommand']('insertTable'),_0x21eec5['enableCommand']('selectTableRow'),_0x21eec5['enableCommand']('selectTableColumn');for(const _0x49c42e of['insertTableRowAbove','insertTableRowBelow']){const _0x13fdd4=_0x2390bb['commands']['get'](_0x49c42e);_0x21eec5['enableCommand'](_0x49c42e,_0x54d1eb=>{_0x2390bb['model']['change'](_0x2091c9=>{_0x54d1eb();const _0x5e5b33='above'===_0x13fdd4['order'],_0x523940=_0x2ce754['getSelectionAffectedTableCells'](_0x1c6fd4),_0x4edf39=_0x2ce754['getRowIndexes'](_0x523940),_0x8069db=_0x5e5b33?_0x4edf39['first']-0x1:_0x4edf39['last']+0x1,_0x2940cf=_0x523940[0x0]['findAncestor']('table'),_0x1c5787=_0x2ce754['createTableWalker'](_0x2940cf,{'startRow':_0x8069db,'endRow':_0x8069db}),_0x4a9b5b=Array['from'](_0x1c5787)['map'](_0x371603=>_0x2091c9['createRangeOn'](_0x371603['cell']));_0x21eec5['markMultiRangeInsertion'](_0x4a9b5b,'tableRow');});});}for(const _0x31614d of['insertTableColumnLeft','insertTableColumnRight']){const _0x3edf1f=_0x2390bb['commands']['get'](_0x31614d);_0x21eec5['enableCommand'](_0x31614d,_0x4c6307=>{_0x2390bb['model']['change'](_0x3a7ba4=>{_0x4c6307();const _0x1c661c='left'===_0x3edf1f['order'],_0xf3eef9=_0x2ce754['getSelectionAffectedTableCells'](_0x1c6fd4),_0x2ce014=_0x2ce754['getColumnIndexes'](_0xf3eef9),_0xb61529=_0x1c661c?_0x2ce014['first']-0x1:_0x2ce014['last']+0x1,_0x53356e=_0xf3eef9[0x0]['findAncestor']('table'),_0x4ad037=_0x2ce754['createTableWalker'](_0x53356e,{'startRow':0x0,'column':_0xb61529,'includeAllSlots':!0x1}),_0x3347be=Array['from'](_0x4ad037)['map'](_0x381966=>_0x3a7ba4['createRangeOn'](_0x381966['cell']));_0x21eec5['markMultiRangeInsertion'](_0x3347be,'tableColumn');});});}for(const _0x16b8d3 of['removeTableRow','removeTableColumn']){const _0x3229bf=_0x16b8d3['substr'](0xb),_0x1d960a=_0x3229bf['toLowerCase'](),_0x5dc225=_0x1d960a['substr'](0x0,0x3)+'span',_0x203ea6='table'+_0x3229bf,_0x493297='min'+_0x3229bf,_0x1c1958='max'+_0x3229bf;_0x21eec5['enableCommand'](_0x16b8d3,()=>{_0x2390bb['model']['change'](_0x2289d0=>{const _0x1d229a=_0x2ce754['getSelectionAffectedTableCells'](_0x1c6fd4),_0x53a430=_0x1d229a[0x0]['findAncestor']('table');let _0x58e5a7;if('removeTableRow'==_0x16b8d3){const _0x549c87=_0x2ce754['getRowIndexes'](_0x1d229a);_0x58e5a7={'startRow':_0x549c87['first'],'endRow':_0x549c87['last'],'includeAllSlots':!0x0};}else{const _0x4a0eb8=_0x2ce754['getColumnIndexes'](_0x1d229a);_0x58e5a7={'startColumn':_0x4a0eb8['first'],'endColumn':_0x4a0eb8['last'],'includeAllSlots':!0x0};}const _0x4bffc2=_0x2ce754['createTableWalker'](_0x53a430,_0x58e5a7),_0x26a69e=Array['from'](_0x4bffc2)['map'](({cell:_0x1c54ea})=>_0x1c54ea),_0x3deca2=Ge(_0x26a69e['filter'](_0xa255c8=>_0xa255c8['hasAttribute'](_0x5dc225))),_0x58aa25=Ge(_0x26a69e['filter'](_0x311d00=>!_0x311d00['hasAttribute'](_0x5dc225)))['map'](_0x4e3827=>_0x2289d0['createRangeOn'](_0x4e3827)),_0x59dcf5=_0x21eec5['markMultiRangeDeletion'](_0x58aa25,_0x203ea6);if(_0x59dcf5&&('tableRow'==_0x59dcf5['subType']||'tableColumn'==_0x59dcf5['subType'])){const _0x180eb8=this['_getSuggestionCoords'](_0x59dcf5);for(const _0x46f572 of _0x3deca2){const _0x3f99f6=_0x2289d0['createRangeOn'](_0x46f572),_0x253e36=_0x2ce754['getCellLocation'](_0x46f572),_0x563c98=_0x46f572['getAttribute'](_0x5dc225)-0x1,_0x85aac=_0x180eb8[_0x493297],_0x5e444e=_0x180eb8[_0x1c1958];_0x85aac<=_0x253e36[_0x1d960a]&&_0x253e36[_0x1d960a]+_0x563c98<=_0x5e444e&&_0x59dcf5['addRange'](_0x3f99f6);}}});});}function _0x5139b5(_0x174889){const _0x5640f9=Array['from'](_0x1c6fd4['getRanges']())['map'](_0x4e5bf8=>at['fromRange'](_0x4e5bf8));_0x2390bb['model']['change'](_0x299434=>{const _0x2512b4=_0x299434['batch'];_0x174889=_0x174889['filter'](_0x121c97=>'$graveyard'!=_0x121c97['root']['rootName']),_0x299434['setSelection'](_0x174889),_0x2390bb['commands']['get']('removeTableRow')['refresh'](),_0x2390bb['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2390bb['model']['enqueueChange'](()=>{_0x2390bb['model']['enqueueChange'](_0x2512b4,_0x3e5928=>{const _0x85c260=_0x5640f9['filter'](_0x28d7be=>'$graveyard'!=_0x28d7be['root']['rootName']);_0x85c260['length']>0x0&&_0x3e5928['setSelection'](_0x85c260);for(const _0x2a72b7 of _0x5640f9)_0x2a72b7['detach']();});});});}function _0x318fbc(_0x2ce0a9){_0x2390bb['model']['change'](_0x5e90d3=>{const _0x549720=Array['from'](_0x1c6fd4['getRanges']())['map'](_0x429a33=>at['fromRange'](_0x429a33)),_0x44ae84=[];for(const _0x52a0fe of _0x2ce0a9)for(const _0x3a0811 of _0x52a0fe['getItems']({'shallow':!0x0}))_0x44ae84['push'](_0x3a0811);for(const _0x7e0f88 of _0x44ae84)'$graveyard'!=_0x7e0f88['root']['rootName']&&(_0x5e90d3['setSelection'](_0x5e90d3['createPositionAt'](_0x7e0f88,0x0)),_0x2390bb['commands']['get']('removeTableColumn')['refresh'](),_0x2390bb['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x195b10=_0x549720['filter'](_0x2e0152=>'$graveyard'!=_0x2e0152['root']['rootName']);_0x195b10['length']>0x0&&_0x5e90d3['setSelection'](_0x195b10);for(const _0x4839f5 of _0x549720)_0x4839f5['detach']();});}function _0x37bdf1(_0x363fa7,_0x48d298){return _0x48d298['every'](_0x27c4e4=>_0x363fa7['some'](_0x1cf6b2=>_0x1cf6b2['end']['isEqual'](_0x27c4e4['start'])||_0x27c4e4['end']['isEqual'](_0x1cf6b2['start'])));}function _0x567eea(_0x5e38df,_0x4e0025){return!_0x5e38df['some'](_0x464645=>_0x4e0025['some'](_0x43f037=>_0x464645['isIntersecting'](_0x43f037)))&&_0x5e38df['some'](_0x41521c=>_0x4e0025['some'](_0x141089=>_0x41521c['end']['isTouching'](_0x141089['start'])));}_0x21eec5['descriptionFactory']['registerDescriptionCallback'](_0x1298bf=>{if('insertion'!=_0x1298bf['type']&&'deletion'!=_0x1298bf['type'])return;const _0x13fd83=_0x1298bf['getContainedElement']();if(null!=_0x13fd83&&_0x13fd83['is']('element','table')){if('insertion'==_0x1298bf['type']){const _0x13bbdd=_0x1298bf['getItems']()['filter'](_0x22fdd3=>_0x22fdd3['is']('$textProxy'))['map'](_0x5a2c72=>_0x5a2c72['data']);if(_0x13bbdd['length'])return{'type':'insertion','content':wt(_0x5c927a,'*Insert:*\x20%0',wt(_0x5c927a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x13bbdd['join']('\x20')+'\x22'))};}if('deletion'==_0x1298bf['type']){const _0x2617ff=_0x1298bf['getItems']()['filter'](_0x4f80a8=>_0x4f80a8['is']('$textProxy'))['map'](_0x5bb0c4=>_0x5bb0c4['data']);if(_0x2617ff['length'])return{'type':'deletion','content':wt(_0x5c927a,'*Remove:*\x20%0',wt(_0x5c927a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2617ff['join']('\x20')+'\x22'))};}}}),_0x21eec5['descriptionFactory']['registerDescriptionCallback'](_0x5c57aa=>{if('tableRow'==_0x5c57aa['subType']){const _0x15c4b9=_0x5c57aa['getItems']()['filter'](_0x31aac8=>_0x31aac8['is']('$textProxy'))['map'](_0x49c528=>_0x49c528['data']),_0x4a10b9=this['_getSuggestionCoords'](_0x5c57aa),_0x55ffac=_0x4a10b9['maxRow']-_0x4a10b9['minRow']+0x1;if('insertion'==_0x5c57aa['type'])return _0x15c4b9['length']?{'type':'insertion','content':wt(_0x5c927a,'*Insert:*\x20%0',wt(_0x5c927a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x55ffac,'\x22'+_0x15c4b9['join']('\x20')+'\x22']))}:{'type':'insertion','content':wt(_0x5c927a,'*Insert:*\x20%0',wt(_0x5c927a,'ELEMENT_TABLE_ROW',_0x55ffac))};if('deletion'==_0x5c57aa['type'])return _0x15c4b9['length']?{'type':'deletion','content':wt(_0x5c927a,'*Remove:*\x20%0',wt(_0x5c927a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x55ffac,'\x22'+_0x15c4b9['join']('\x20')+'\x22']))}:{'type':'deletion','content':wt(_0x5c927a,'*Remove:*\x20%0',wt(_0x5c927a,'ELEMENT_TABLE_ROW',_0x55ffac))};}if('tableColumn'==_0x5c57aa['subType']){const _0x4c0bac=_0x5c57aa['getItems']()['filter'](_0x5ae58c=>_0x5ae58c['is']('$textProxy'))['map'](_0x1983bb=>_0x1983bb['data']),_0x3f6c1b=this['_getSuggestionCoords'](_0x5c57aa),_0x4a2192=_0x3f6c1b['maxColumn']-_0x3f6c1b['minColumn']+0x1;if('insertion'==_0x5c57aa['type'])return _0x4c0bac['length']?{'type':'insertion','content':wt(_0x5c927a,'*Insert:*\x20%0',wt(_0x5c927a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4a2192,'\x22'+_0x4c0bac['join']('\x20')+'\x22']))}:{'type':'insertion','content':wt(_0x5c927a,'*Insert:*\x20%0',wt(_0x5c927a,'ELEMENT_TABLE_COLUMN',_0x4a2192))};if('deletion'==_0x5c57aa['type'])return _0x4c0bac['length']?{'type':'deletion','content':wt(_0x5c927a,'*Remove:*\x20%0',wt(_0x5c927a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4a2192,'\x22'+_0x4c0bac['join']('\x20')+'\x22']))}:{'type':'deletion','content':wt(_0x5c927a,'*Remove:*\x20%0',wt(_0x5c927a,'ELEMENT_TABLE_COLUMN',_0x4a2192))};}}),_0x21eec5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5139b5),_0x21eec5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5139b5),_0x21eec5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x318fbc),_0x21eec5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x318fbc),_0x21eec5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x37bdf1),_0x21eec5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x37bdf1),_0x21eec5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x567eea),_0x21eec5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x567eea);}_acceptFormatSuggestionCallbackFactory(){const _0x4f58e1=this['editor'],_0x3e5363=_0x4f58e1['model']['document']['selection'];return(_0x39d73e,_0x4a0a18)=>{_0x4f58e1['model']['change'](_0x40a28c=>{const {commandName:_0x21077e,commandParams:_0x20d333}=_0x4a0a18;let _0x5af64a=_0x39d73e[0x0]['end']['nodeBefore'];_0x20d333&&_0x20d333[0x0]&&!0x1===_0x20d333[0x0]['forceValue']&&(_0x5af64a=_0x39d73e[0x0]['start']['nodeAfter']);const _0x4f4fd5=_0x40a28c['createRangeIn'](_0x5af64a);if('$graveyard'==_0x4f4fd5['root']['rootName'])return;const _0x24fc0f=Array['from'](_0x3e5363['getRanges']())['map'](_0x3b692a=>at['fromRange'](_0x3b692a));_0x40a28c['setSelection'](_0x4f4fd5),_0x4f58e1['commands']['get'](_0x21077e)['refresh'](),_0x20d333['push']({'forceDefaultExecution':!0x0}),_0x4f58e1['execute'](_0x21077e,..._0x20d333);const _0x9c4351=_0x24fc0f['filter'](_0x5ee7e6=>'$graveyard'!=_0x5ee7e6['root']['rootName']);_0x9c4351['length']>0x0&&_0x40a28c['setSelection'](_0x9c4351);for(const _0x145834 of _0x24fc0f)_0x145834['detach']();});};}_getCoordsForCells(_0x5445bb){const _0x550d08=this['editor']['plugins']['get']('TableUtils');let _0x283ad2=Number['MAX_SAFE_INTEGER'],_0x2f2462=Number['MIN_SAFE_INTEGER'],_0x30ac8=Number['MAX_SAFE_INTEGER'],_0x14c68f=Number['MIN_SAFE_INTEGER'];for(const _0x5abb35 of _0x5445bb){if('$graveyard'==_0x5abb35['root']['rootName'])continue;const {row:_0x1145fb,column:_0x2f506e}=_0x550d08['getCellLocation'](_0x5abb35),_0x8fd791=_0x5abb35['hasAttribute']('rowspan')?_0x5abb35['getAttribute']('rowspan')-0x1:0x0,_0x5989e6=_0x5abb35['hasAttribute']('colspan')?_0x5abb35['getAttribute']('colspan')-0x1:0x0;_0x283ad2=_0x1145fb<_0x283ad2?_0x1145fb:_0x283ad2,_0x2f2462=_0x1145fb+_0x8fd791>_0x2f2462?_0x1145fb+_0x8fd791:_0x2f2462,_0x30ac8=_0x2f506e<_0x30ac8?_0x2f506e:_0x30ac8,_0x14c68f=_0x2f506e+_0x5989e6>_0x14c68f?_0x2f506e+_0x5989e6:_0x14c68f;}return{'minRow':_0x283ad2,'maxRow':_0x2f2462,'minColumn':_0x30ac8,'maxColumn':_0x14c68f};}_setupColumnsRowsFixing(){const _0x1bf353=this['editor'],_0x290c2e=_0x1bf353['plugins']['get']('TrackChangesEditing'),_0x562ef3=_0x1bf353['plugins']['get']('TableUtils');_0x1bf353['model']['document']['on']('change:data',()=>{const _0x1fd6d5=Array['from'](_0x1bf353['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3b709b,data:_0x1526e8}of _0x1fd6d5){const {group:_0x40152e,id:_0x60335e,subType:_0x4e96c5}=nt(_0x3b709b);if('suggestion'!=_0x40152e)continue;if(null!=_0x1526e8['oldRange'])continue;const _0x327af7=_0x290c2e['getSuggestion'](_0x60335e);this['_tablePostFixingSubtypes']['includes'](_0x4e96c5)&&this['_tableSuggestions']['add'](_0x327af7);}},{'priority':'low'});const _0x2a6dc0=(_0x317841,_0x15c99d)=>{let _0x583963=!0x1;const _0x1ddff0=_0x15c99d['createRangeOn'](_0x317841),_0x49515c=_0x317841['findAncestor']('table'),_0xa2e6a7=_0x562ef3['getCellLocation'](_0x317841);for(const _0x1a19e5 of this['_tableSuggestions']){const _0x294fdb=_0x1a19e5['subType'],_0x3a21eb=_0x294fdb['startsWith']('tablePaste'),_0x3b467f=_0x294fdb['substr'](_0x3a21eb?0xa:0x5),_0x222ec3=_0x3b467f['toLowerCase'](),_0x4b17fc=_0x222ec3['substr'](0x0,0x3)+'span',_0x1f342b='min'+_0x3b467f,_0x2b6286='max'+_0x3b467f;if(!_0x1a19e5['isInContent'])continue;if(_0x49515c!=_0x1a19e5['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1a19e5['isIntersectingWithRange'](_0x1ddff0))continue;const _0x1a735a=_0x317841['hasAttribute'](_0x4b17fc)?_0x317841['getAttribute'](_0x4b17fc)-0x1:0x0,_0x7df0b1=this['_getSuggestionCoords'](_0x1a19e5),_0x18e63a=_0x7df0b1[_0x1f342b],_0x2190e2=_0x7df0b1[_0x2b6286];_0x18e63a<=_0xa2e6a7[_0x222ec3]&&_0xa2e6a7[_0x222ec3]+_0x1a735a<=_0x2190e2&&(_0x1a19e5['addRange'](_0x1ddff0),_0x583963=!0x0);}return _0x583963;};_0x1bf353['model']['document']['registerPostFixer'](_0x57a943=>{let _0x3916a1=!0x1;for(const _0x98d748 of _0x1bf353['model']['document']['differ']['getChanges']())if('insert'==_0x98d748['type']){if('tableRow'==_0x98d748['name']){for(const _0x133e80 of _0x98d748['position']['nodeAfter']['getChildren']())_0x3916a1=_0x3916a1||_0x2a6dc0(_0x133e80,_0x57a943);}else'tableCell'==_0x98d748['name']&&(_0x3916a1=_0x3916a1||_0x2a6dc0(_0x98d748['position']['nodeAfter'],_0x57a943));}return _0x3916a1;});}_getSuggestionCoords(_0xef2c02){return this['_getCoordsForCells'](_0xef2c02['getRanges']()['map'](_0x461c74=>_0x461c74['start']['nodeAfter']));}};function Ge(_0x28d2a3){return Array['from'](new Set(_0x28d2a3)['values']());}var He=class extends _0x3ad3dd{static get requires(){return[xe];}afterInit(){const _0x1ea342=this['editor'],_0x15df9a=_0x1ea342['model']['document']['selection'],_0x158eed=_0x1ea342['locale'];if(!_0x1ea342['plugins']['has']('TableEditing'))return;const _0x14ee8a=_0x1ea342['plugins']['get']('TrackChangesEditing'),_0x11d8f5=_0x1ea342['plugins']['get']('TableUtils'),_0x177f05=_0x1ea342['plugins']['get'](xe);_0x177f05['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x14ee8a['enableCommand']('mergeTableCells',()=>{const _0x4c099f=_0x11d8f5['getSelectionAffectedTableCells'](_0x1ea342['model']['document']['selection']);_0x1ea342['model']['change'](()=>{_0x14ee8a['markMultiRangeBlockFormat'](_0x4c099f,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1ea342['commands']['get']('mergeTableCells')['on']('execute',(_0x5a93c0,_0x2acb7f)=>{_0x1ea342['commands']['get']('trackChanges')['value']&&(_0x2acb7f['length']>0x0&&_0x2acb7f[_0x2acb7f['length']-0x1]&&_0x2acb7f[_0x2acb7f['length']-0x1]['forceDefaultExecution']||_0x14ee8a['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5a93c0['stop']());},{'priority':'highest'});for(const _0x2d68c0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5a4a74=_0x1ea342['commands']['get'](_0x2d68c0);_0x14ee8a['enableCommand'](_0x2d68c0,()=>{const _0x3773f4=_0x1ea342['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2df43f=>_0x2df43f['is']('element','tableCell')),_0x28a47c=_0x5a4a74['value'];_0x1ea342['model']['change'](()=>{_0x14ee8a['markMultiRangeBlockFormat']([_0x3773f4,_0x28a47c],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x90f4bb of['splitTableCellVertically','splitTableCellHorizontally']){const _0x578168=_0x1ea342['commands']['get'](_0x90f4bb);_0x14ee8a['enableCommand'](_0x90f4bb,()=>{const _0x24683a=_0x11d8f5['getSelectionAffectedTableCells'](_0x1ea342['model']['document']['selection']),_0x673727=_0x24683a[0x0]['findAncestor']('table'),_0x28a73b=new Set();for(const _0x2619fb of _0x24683a){const {column:_0x1b4e2c,row:_0x360121}=_0x11d8f5['getCellLocation'](_0x2619fb),_0x5f472c='horizontally'==_0x578168['direction']?_0x11d8f5['createTableWalker'](_0x673727,{'startRow':_0x360121,'endRow':_0x360121,'includeAllSlots':!0x0}):_0x11d8f5['createTableWalker'](_0x673727,{'column':_0x1b4e2c,'includeAllSlots':!0x0});for(const {cell:_0x3e374e}of _0x5f472c)_0x28a73b['add'](_0x3e374e);}_0x1ea342['model']['change'](()=>{_0x14ee8a['markMultiRangeBlockFormat'](_0x24683a,{'commandName':_0x90f4bb,'commandParams':[]},Array['from'](_0x28a73b),_0x90f4bb);});});}_0x14ee8a['descriptionFactory']['registerDescriptionCallback'](_0x56e5e4=>{if('formatBlock'!=_0x56e5e4['type']&&'formatInline'!=_0x56e5e4['type'])return;const {data:_0x225437}=_0x56e5e4;return _0x225437&&'mergeTableCells'==_0x225437['commandName']?{'type':'format','content':wt(_0x158eed,'*Merge\x20cells*')}:void 0x0;}),_0x14ee8a['descriptionFactory']['registerDescriptionCallback'](_0x3763b4=>{if('formatBlock'!=_0x3763b4['type']&&'formatInline'!=_0x3763b4['type'])return;const {data:_0x1fd102}=_0x3763b4;return _0x1fd102?'splitTableCellVertically'==_0x1fd102['commandName']?{'type':'format','content':wt(_0x158eed,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1fd102['commandName']?{'type':'format','content':wt(_0x158eed,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x400120=_0x177f05['_acceptFormatSuggestionCallbackFactory']();for(const _0x9898b5 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x14ee8a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x9898b5,'accept',_0x400120);for(const _0x44885e of['splitTableCellVertically','splitTableCellHorizontally'])_0x14ee8a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x44885e,'accept',_0x3410e5=>{_0x1ea342['model']['change'](_0x3a99b0=>{const _0x339600=Array['from'](_0x3410e5)['filter'](_0x2c6b0d=>'$graveyard'!=_0x2c6b0d['root']['rootName']&&!!_0x2c6b0d['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0x339600['length'])return;const _0x2ee174=Array['from'](_0x15df9a['getRanges']())['map'](_0x1186a9=>at['fromRange'](_0x1186a9));_0x3a99b0['setSelection'](_0x339600),_0x1ea342['commands']['get'](_0x44885e)['refresh'](),_0x1ea342['execute'](_0x44885e,{'forceDefaultExecution':!0x0});const _0x3036b7=_0x2ee174['filter'](_0xa22785=>'$graveyard'!=_0xa22785['root']['rootName']);_0x3036b7['length']>0x0&&_0x3a99b0['setSelection'](_0x3036b7);for(const _0x58a475 of _0x2ee174)_0x58a475['detach']();});});_0x14ee8a['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2562a1=>{_0x1ea342['model']['change'](_0xe35c42=>{const _0x1a2461=Array['from'](_0x15df9a['getRanges']())['map'](_0x241275=>at['fromRange'](_0x241275));_0xe35c42['setSelection'](_0x2562a1),_0x1ea342['commands']['get']('mergeTableCells')['refresh'](),_0x1ea342['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xe9392d=_0x1a2461['filter'](_0x31f330=>'$graveyard'!=_0x31f330['root']['rootName']);_0xe9392d['length']>0x0&&_0xe35c42['setSelection'](_0xe9392d);for(const _0x79a7df of _0x1a2461)_0x79a7df['detach']();});});for(const _0x15c455 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x55fed2=_0x1ea342['commands']['get'](_0x15c455);_0x55fed2['on']('set:isEnabled',(_0x56c6c2,_0x21d4ee,_0x165b35)=>{if(_0x165b35){const _0x2b24c4=_0x1ea342['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x85c0c0=>_0x85c0c0['is']('element','tableCell'));this['_areMergableCells'](_0x55fed2['value'],_0x2b24c4)||(_0x56c6c2['return']=!0x1,_0x56c6c2['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0x1d35e8=this['editor']['commands']['get']('mergeTableCells'),_0x325a8e=this['editor']['plugins']['get']('TableUtils');if(!_0x1d35e8['isEnabled'])return!0x1;const _0x357e4f=_0x325a8e['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x532bc5 of _0x357e4f)for(const _0x57f9a3 of _0x357e4f)if(_0x532bc5!=_0x57f9a3&&!this['_areMergableCells'](_0x532bc5,_0x57f9a3))return!0x1;return!0x0;}['_areMergableCells'](_0xe1ed84,_0x28c700){const _0xc11ff1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x710fa0=this['editor']['model']['createRangeOn'](_0xe1ed84),_0x12e525=this['editor']['model']['createRangeOn'](_0x28c700),_0x484b06=new Set(),_0x4cfea0=new Set();for(const _0x4b3860 of _0xc11ff1['getSuggestions']())if(('insertion'==_0x4b3860['type']||'deletion'==_0x4b3860['type']||'mergeTableCells'==_0x4b3860['subType'])&&_0x4b3860['isInContent']){for(const _0x3f06e1 of _0x4b3860['getRanges']())_0x3f06e1['containsRange'](_0x710fa0,!0x0)&&_0x484b06['add'](_0x4b3860['type']+':'+_0x4b3860['author']['id']),_0x3f06e1['containsRange'](_0x12e525,!0x0)&&_0x4cfea0['add'](_0x4b3860['type']+':'+_0x4b3860['author']['id']);}if(_0x484b06['size']!=_0x4cfea0['size'])return!0x1;for(const _0x5e4bc4 of _0x484b06)if(!_0x4cfea0['has'](_0x5e4bc4))return!0x1;return!0x0;}},$e=class extends _0x3ad3dd{static get requires(){return[xe];}afterInit(){const _0x21e829=this['editor'];if(!_0x21e829['plugins']['has']('TableEditing'))return;const _0x5ae002=_0x21e829['locale'],_0x10ca5b=_0x21e829['plugins']['get']('TrackChangesEditing');_0x10ca5b['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x10ca5b['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x10ca5b['descriptionFactory']['registerAttributeLabel']('headingRows',wt(_0x5ae002,'FORMAT_HEADER_ROW')),_0x10ca5b['descriptionFactory']['registerAttributeLabel']('headingColumns',wt(_0x5ae002,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0xd32d2a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x241bc8=this['editor']['plugins']['get'](xe)['_acceptFormatSuggestionCallbackFactory']();_0xd32d2a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x241bc8),_0xd32d2a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x241bc8),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0x1ba552=this['editor']['plugins']['get']('TrackChangesEditing'),_0x546871=this['editor']['plugins']['get']('TableUtils');function _0x5e19a6({showActiveMarker:_0x51d115=!0x0,setDataAttribute:_0x23accc=!0x0}={}){return(_0x5bd238,_0xca7467,_0x1f4a41)=>{const {type:_0x16e7ad,id:_0x2e07fb}=nt(_0xca7467['markerName']);if(!_0x1ba552['hasSuggestion'](_0x2e07fb))return;const _0x43b37e=_0x1ba552['getSuggestion'](_0x2e07fb),_0x2147a7=_0x43b37e['data'];if('formatBlock'!=_0x43b37e['type']||!_0x2147a7||'setTableColumnHeader'!=_0x2147a7['commandName'])return;if(_0xca7467['item'])return void _0x5bd238['stop']();if(!_0x1f4a41['consumable']['consume'](_0xca7467['markerRange'],_0x5bd238['name']))return;const _0x1c84ec=_0xca7467['markerRange']['start']['nodeAfter'],_0x961ace=_0xca7467['markerRange']['end']['nodeBefore'],_0x47cc4a=_0x1c84ec['parent']['parent'],{column:_0x1c586}=_0x546871['getCellLocation'](_0x1c84ec),{column:_0x2f8c44}=_0x546871['getCellLocation'](_0x961ace);for(let _0x28403d=_0x1c586;_0x28403d<=_0x2f8c44;_0x28403d++){const _0x6b495a=_0x546871['createTableWalker'](_0x47cc4a,{'column':_0x28403d,'includeAllSlots':!0x1});for(const _0x25bba2 of _0x6b495a){const _0xeb51ad=_0x25bba2['cell'],_0x4a0d46=_0x1f4a41['mapper']['toViewElement'](_0xeb51ad);_0x1f4a41['writer']['addClass']('ck-suggestion-marker-'+_0x16e7ad,_0x4a0d46),_0x23accc&&_0x1f4a41['writer']['setAttribute']('data-suggestion',_0x2e07fb,_0x4a0d46),_0x1f4a41['mapper']['bindElementToMarker'](_0x4a0d46,_0xca7467['markerName']),_0x51d115&&(_0x1ba552['activeMarkers']['includes'](_0xca7467['markerName'])?_0x1f4a41['writer']['addClass']('ck-suggestion-marker--active',_0x4a0d46):_0x1f4a41['writer']['removeClass']('ck-suggestion-marker--active',_0x4a0d46));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5e19a6(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5c726e,_0x36130b,_0x2e748b)=>{_0x2e748b['options']['showSuggestionHighlights']&&_0x5e19a6({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5c726e,_0x36130b,_0x2e748b);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4ee135,_0x2eb552,_0x19eee5)=>{const {type:_0x49311a,id:_0x4e7119}=nt(_0x2eb552['markerName']);if(!_0x1ba552['hasSuggestion'](_0x4e7119))return;const _0x3c9524=_0x1ba552['getSuggestion'](_0x4e7119),_0x5d1590=_0x3c9524['data'];if('formatBlock'!=_0x3c9524['type']||!_0x5d1590||'setTableColumnHeader'!=_0x5d1590['commandName'])return;const _0x2e78ff=_0x19eee5['mapper']['markerNameToElements'](_0x2eb552['markerName']);if(_0x2e78ff){for(const _0x3e9c75 of _0x2e78ff)_0x19eee5['writer']['removeClass']('ck-suggestion-marker-'+_0x49311a,_0x3e9c75),_0x19eee5['writer']['removeClass']('ck-suggestion-marker--active',_0x3e9c75),_0x19eee5['writer']['removeAttribute']('data-suggestion',_0x3e9c75),_0x19eee5['mapper']['unbindElementFromMarkerName'](_0x3e9c75,_0x2eb552['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0x46fe10=this['editor'],_0x37c089=_0x46fe10['locale'];function _0x449fcd(_0x3002a4){return{'type':'format','content':wt(_0x37c089,'*Format:*\x20%0',_0x3002a4)};}_0x46fe10['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1cf13f=>{if('formatBlock'!=_0x1cf13f['type'])return;const {data:_0x5565ff}=_0x1cf13f;return _0x5565ff?'setTableRowHeader'==_0x5565ff['commandName']?_0x5565ff['commandParams'][0x0]['forceValue']?_0x449fcd(wt(_0x37c089,'FORMAT_HEADER_ROW')):_0x449fcd(wt(_0x37c089,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x5565ff['commandName']?_0x5565ff['commandParams'][0x0]['forceValue']?_0x449fcd(wt(_0x37c089,'FORMAT_HEADER_COLUMN')):_0x449fcd(wt(_0x37c089,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},We=class extends _0x3ad3dd{static get requires(){return[xe];}afterInit(){const _0x359e24=this['editor'];if(!_0x359e24['plugins']['has']('TableEditing')||!_0x359e24['config']['get']('table.enableFooters'))return;const _0x99868a=_0x359e24['locale'],_0x51c6a0=_0x359e24['plugins']['get']('TrackChangesEditing');_0x51c6a0['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x51c6a0['descriptionFactory']['registerAttributeLabel']('footerRows',wt(_0x99868a,'FORMAT_FOOTER_ROW'));}},Ve=class extends _0x3ad3dd{afterInit(){const _0x39b9b2=this['editor'],_0x53521d=_0x39b9b2['locale'],_0x14bbfd=_0x39b9b2['plugins']['get']('TrackChangesEditing');function _0x157530(_0x29169b){return{'type':'format','content':''+wt(_0x53521d,'*Set\x20table\x20type:*\x20%0',_0x29169b)};}_0x39b9b2['plugins']['has']('TableLayout')&&(_0x14bbfd['enableCommand']('insertTableLayout'),_0x14bbfd['enableDefaultAttributesIntegration']('tableType'),_0x14bbfd['descriptionFactory']['registerElementLabel'](_0x33d684=>_0x33d684['is']('element','table')&&'layout'===_0x33d684['getAttribute']('tableType'),_0x438fe2=>wt(_0x53521d,'ELEMENT_LAYOUT_TABLE',_0x438fe2)),_0x14bbfd['descriptionFactory']['registerDescriptionCallback'](_0x24c31d=>{const {data:_0x1dc5dd}=_0x24c31d;if(_0x1dc5dd&&'tableType'==_0x1dc5dd['key'])switch(_0x1dc5dd['newValue']){case'layout':return _0x157530(wt(_0x53521d,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x157530(wt(_0x53521d,'ELEMENT_CONTENT_TABLE'));}}));}};const ze=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],je=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](ze['map'](_0x1a9058=>[_0x1a9058,null]));var Ke=class extends _0x3ad3dd{static get requires(){return[xe];}afterInit(){const _0x2a2264=this['editor'];if(!_0x2a2264['plugins']['has']('TableClipboard'))return;const _0x5ad2f2=_0x2a2264['plugins']['get']('TrackChangesEditing'),_0x6a9664=_0x2a2264['plugins']['get']('TableUtils'),_0x1950d9=_0x2a2264['plugins']['get'](xe),_0x370f04=_0x2a2264['plugins']['get']('TableClipboard'),_0x47bbd5=_0x2a2264['plugins']['get']('TableSelection'),_0x171789=_0x2a2264['plugins']['get'](mt);_0x1950d9['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2a2264['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2a2264['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x31e776=null,_0x430529=!0x1;_0x171789['on']('contentInsertion',(_0x4d5df0,_0x1e354f)=>{_0x430529='paste'===_0x1e354f['method'];}),_0x2a2264['model']['on']('insertContent',(_0x59a190,_0x156247)=>{if(!_0x430529&&null===_0x47bbd5['getSelectedTableCells']())return;const [_0x57eb94,_0x10e577]=_0x156247,_0xa7e4d0=_0x156247[_0x156247['length']-0x1];_0xa7e4d0&&_0xa7e4d0['forceDefaultExecution']||_0x5ad2f2['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5122b7,_0x249583,_0x4e2133,_0x248a2f,_0x505feb){if(_0x249583&&!_0x249583['is']('documentSelection'))return!0x1;const _0x1814ab=_0x505feb['getTableIfOnlyTableInContent'](_0x5122b7,_0x4e2133);if(!_0x1814ab||!qe(_0x1814ab,void 0x0,_0x248a2f))return!0x1;const _0x4c4543=_0x248a2f['getSelectionAffectedTableCells'](_0x4e2133['document']['selection']);if(!_0x4c4543['length'])return!0x1;const _0x51a4d4=_0x4c4543[0x0]['findAncestor']('table'),_0xc43871=_0x248a2f['getRowIndexes'](_0x4c4543),_0x5385fe=_0x248a2f['getColumnIndexes'](_0x4c4543),_0x323bda={'startRow':_0xc43871['first'],'endRow':_0xc43871['last'],'startColumn':_0x5385fe['first'],'endColumn':_0x5385fe['last']};return 0x1==_0x4c4543['length']&&(_0x323bda['endRow']+=_0x248a2f['getRows'](_0x1814ab)-0x1,_0x323bda['endColumn']+=_0x248a2f['getColumns'](_0x1814ab)-0x1),qe(_0x51a4d4,_0x323bda,_0x248a2f);}(_0x57eb94,_0x10e577,_0x2a2264['model'],_0x6a9664,_0x370f04)&&(_0x59a190['stop'](),_0x31e776={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2a2264['model']['change'](()=>{_0x2a2264['model']['insertContent'](_0x156247[0x0],_0x156247[0x1],_0x156247[0x2],{'forceDefaultExecution':!0x0});const _0x555295=_0x4551b0(),{rowInsertionRanges:_0x396a6a,columnInsertionRanges:_0x3b4c37,insertionRanges:_0x34ff6e,deletionRanges:_0x239a73,cells:_0x5f088d}=_0x31e776;_0x396a6a['length']&&_0x5ad2f2['markMultiRangeInsertion'](_0x396a6a,'tablePasteRow',{'tablePasteChainId':_0x555295}),_0x3b4c37['length']&&_0x5ad2f2['markMultiRangeInsertion'](_0x3b4c37,'tablePasteColumn',{'tablePasteChainId':_0x555295}),_0x34ff6e['length']&&(_0x5ad2f2['markMultiRangeInsertion'](_0x34ff6e,'tablePaste',{'tablePasteChainId':_0x555295,'skipNestingCheck':!0x0}),_0x34ff6e['forEach'](_0x2e0d47=>_0x2e0d47['detach']?.())),_0x239a73['length']&&(_0x5ad2f2['markMultiRangeDeletion'](_0x239a73,'tablePaste',{'tablePasteChainId':_0x555295,'skipNestingCheck':!0x0}),_0x239a73['forEach'](_0x1e4ba8=>_0x1e4ba8['detach']?.()));const _0x50eaf2=_0x5ad2f2['markMultiRangeBlockFormat'](_0x5f088d['map'](({element:_0x4c7b98})=>_0x4c7b98),{'formatGroupId':_0x4551b0()},[],'tablePasteCell',{'tablePasteChainId':_0x555295});if(_0x50eaf2){const _0x33a787=_0x50eaf2['getMarkers'](),_0x1e3b23=[];for(const {element:_0x538ad5,attributes:_0x4dbd77}of _0x5f088d){if(!_0x4dbd77)continue;const _0x2736a2=_0x2a2264['model']['createRangeOn'](_0x538ad5),_0xac9e6f=_0x33a787['find'](_0x4026c4=>_0x4026c4['getRange']()['isEqual'](_0x2736a2));_0xac9e6f&&_0x1e3b23['push']([_0xac9e6f['name'],_0x4dbd77]);}_0x1e3b23['length']&&_0x50eaf2['setAttribute']('markerAttributes',Object['fromEntries'](_0x1e3b23));}_0x31e776=null;}));},{'priority':_0x3541dd['high']+0xa}),_0x171789['on']('contentInsertion',()=>{_0x430529=!0x1;},{'priority':'lowest'}),_0x2a2264['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3865cc,_0x5d548b)=>{const [_0x1ad067,_0x5c70d3,,_0x435803]=_0x5d548b;if(!_0x31e776)return;_0x3865cc['stop']();const _0x54de3f=_0x1ad067['cell'],_0x43049a=_0x5c70d3,_0x5a8e8a=Xe(_0x54de3f),_0x367c94=Xe(_0x43049a);_0x3865cc['return']=_0x54de3f;let _0x344329=null,_0x5296bb=null;if(_0x367c94||_0x5a8e8a){if(_0x5a8e8a&&!_0x367c94){_0x435803['remove'](_0x54de3f['getChild'](0x0));for(const _0x2ac23f of Array['from'](_0x43049a['getChildren']()))_0x435803['insert'](_0x2ac23f,_0x54de3f,'end');const _0x23fe6f=_0x31e776['rowInsertionIndexes']['includes'](_0x1ad067['row']),_0x151c9f=_0x31e776['columnInsertionIndexes']['includes'](_0x1ad067['column']);_0x23fe6f||_0x151c9f||(_0x344329=at['fromRange'](_0x435803['createRangeIn'](_0x54de3f)));}else _0x367c94&&!_0x5a8e8a&&(_0x5296bb=_0x435803['createRangeIn'](_0x54de3f));}else{const _0x3c1461=_0x435803['createElement']('tableCellSuggestion'),_0x1da78e=_0x435803['createElement']('tableCellSuggestion');_0x435803['wrap'](_0x435803['createRangeIn'](_0x54de3f),_0x1da78e),_0x435803['insert'](_0x3c1461,_0x54de3f,0x0);for(const _0x25a523 of Array['from'](_0x43049a['getChildren']()))_0x435803['insert'](_0x25a523,_0x3c1461,'end');_0x344329=at['fromRange'](_0x435803['createRangeOn'](_0x3c1461)),_0x5296bb=at['fromRange'](_0x435803['createRangeOn'](_0x1da78e));}const _0x239d0d=Array['from'](_0x43049a['getAttributes']())['filter'](([_0x522fc1])=>ze['includes'](_0x522fc1));_0x31e776['cells']['push']({'element':_0x54de3f,'attributes':_0x239d0d['length']?Object['fromEntries'](_0x239d0d):null}),_0x344329&&_0x31e776['insertionRanges']['push'](_0x344329),_0x5296bb&&_0x31e776['deletionRanges']['push'](_0x5296bb);},{'priority':'high'}),_0x6a9664['on']('insertColumns',(_0xc558e4,_0x2da911)=>{const [_0x3f2310,_0x5b0ae3={}]=_0x2da911;if(!_0x31e776)return;const _0x3b9ede=_0x5b0ae3['at']||0x0,_0x5db065=_0x5b0ae3['columns']||0x1;_0x31e776['columnInsertionIndexes']=new Array(_0x5db065)['fill'](_0x3b9ede)['map']((_0x44c7be,_0x52f9ce)=>_0x44c7be+_0x52f9ce);for(const {cell:_0x236617}of _0x6a9664['createTableWalker'](_0x3f2310,{'startColumn':_0x3b9ede,'endColumn':_0x3b9ede+_0x5db065-0x1}))_0x31e776['columnInsertionRanges']['push'](_0x2a2264['model']['createRangeOn'](_0x236617));},{'priority':'low'}),_0x6a9664['on']('insertRows',(_0xe9b995,_0xdb0800)=>{const [_0x429db4,_0x4ebb15={}]=_0xdb0800;if(!_0x31e776)return;const _0x6d1bd9=_0x4ebb15['at']||0x0,_0xf1573e=_0x4ebb15['rows']||0x1;_0x31e776['rowInsertionIndexes']=new Array(_0xf1573e)['fill'](_0x6d1bd9)['map']((_0x5a14a3,_0x42dac2)=>_0x5a14a3+_0x42dac2);for(const {cell:_0x3c632d}of _0x6a9664['createTableWalker'](_0x429db4,{'startRow':_0x6d1bd9,'endRow':_0x6d1bd9+_0xf1573e-0x1}))_0x31e776['rowInsertionRanges']['push'](_0x2a2264['model']['createRangeOn'](_0x3c632d));},{'priority':'low'}),_0x5ad2f2['descriptionFactory']['registerDescriptionCallback'](_0x4cb98f=>{if(_0x4cb98f['subType']&&_0x4cb98f['subType']['startsWith']('tablePaste'))return _0x4cb98f['previous']?{}:{'type':'insertion','content':wt(_0x2a2264['locale'],'*Replace\x20table\x20cells*')};});const _0x170310=()=>!0x1;for(const _0x49cb04 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5ad2f2['_suggestionFactory']['registerCustomCallback']('insertion',_0x49cb04,'join',_0x170310),_0x5ad2f2['_suggestionFactory']['registerCustomCallback']('deletion',_0x49cb04,'join',_0x170310),_0x5ad2f2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x49cb04,'join',_0x170310);_0x5ad2f2['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x170310),_0x5ad2f2['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1aba85,_0x36c319,_0x4230ce)=>{const _0x1b2ebf=_0x1aba85['map'](_0x50bcf3=>_0x50bcf3['getContainedElement']())['filter'](_0x37a9d5=>_0x37a9d5),_0x3fa5cc=new Map(_0x1b2ebf['map'](_0x15c421=>[_0x15c421,null]));if(_0x31e776){for(const {element:_0x85296c,attributes:_0x431a7e}of _0x31e776['cells'])_0x431a7e&&_0x3fa5cc['set'](_0x85296c,_0x431a7e);}else{if(_0x4230ce&&_0x4230ce['markerAttributes'])for(const [_0x5aad74,_0x330c3d]of Object['entries'](_0x4230ce['markerAttributes'])){const _0x144baa=_0x2a2264['model']['markers']['get'](_0x5aad74),_0x2845d8=_0x144baa?_0x144baa['getRange']()['getContainedElement']():null;_0x2845d8&&_0x3fa5cc['set'](_0x2845d8,_0x330c3d);}}_0x2a2264['model']['change'](_0x807966=>{for(const [_0x850b15,_0x17bcdd]of _0x3fa5cc)_0x807966['setAttributes']({...je,..._0x17bcdd},_0x850b15);});});const _0x23c5ae=(_0x40a0b7,_0x4b1c0f)=>{_0x5ad2f2['_suggestionFactory']['registerCustomCallback'](_0x40a0b7,'tablePaste',_0x4b1c0f,(_0x1bdfdc,_0x2ccbba,_0x4c0f64)=>{_0x2a2264['model']['change'](_0x359832=>{const _0x39cfe2=[];for(const _0x3f315a of _0x1bdfdc){const _0x2afcfd=_0x3f315a['start']['nodeAfter'];_0x2afcfd['is']('element','tableCellSuggestion')&&_0x39cfe2['push'](_0x2afcfd);}_0x5ad2f2['_suggestionFactory']['getSuggestionCallback'](_0x40a0b7,null,_0x4b1c0f)(_0x1bdfdc,_0x2ccbba,_0x4c0f64);for(const _0x4c0775 of _0x39cfe2)'$graveyard'!=_0x4c0775['root']['rootName']&&_0x359832['unwrap'](_0x4c0775);});});};_0x23c5ae('insertion','accept'),_0x23c5ae('insertion','discard'),_0x23c5ae('deletion','accept'),_0x23c5ae('deletion','discard'),_0x5ad2f2['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4b7f2e=>{const _0x377ac5=_0x4b7f2e['map'](_0x5de160=>_0x5de160['getContainedElement']()),_0x261dfc=_0x377ac5[0x0]['findAncestor']('table'),{minRow:_0x3e0823,maxRow:_0x16001c}=_0x1950d9['_getCoordsForCells'](_0x377ac5);_0x6a9664['removeRows'](_0x261dfc,{'at':_0x3e0823,'rows':_0x16001c-_0x3e0823+0x1});}),_0x5ad2f2['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x13c044=>{const _0x3f3f0b=_0x13c044['map'](_0x5b23b8=>_0x5b23b8['getContainedElement']()),_0x237880=_0x3f3f0b[0x0]['findAncestor']('table'),{minColumn:_0x40b7ea,maxColumn:_0x3a095a}=_0x1950d9['_getCoordsForCells'](_0x3f3f0b);_0x6a9664['removeColumns'](_0x237880,{'at':_0x40b7ea,'columns':_0x3a095a-_0x40b7ea+0x1});});const _0x2b6695=(_0x5d1672,_0x2b427d)=>{if(!_0x2b427d['subType']||!_0x2b427d['subType']['startsWith']('tablePaste'))return;const _0x20ec0e=_0x2b427d['attributes']['tablePasteChainId'],_0xbf095c=_0x5ad2f2['getSuggestions']()['filter'](_0x414991=>_0x414991['isInContent']&&_0x414991['attributes']&&_0x414991['attributes']['tablePasteChainId']==_0x20ec0e);_0xbf095c['length']&&_0x2b427d['getAllAdjacentSuggestions']()['length']!=_0xbf095c['length']&&_0xbf095c['reduce']((_0x10e680,_0x404d8a)=>(_0x10e680['next']=_0x404d8a,_0x404d8a['previous']=_0x10e680,_0x404d8a));};function _0x2b1e36(_0x438041,_0x2e40da=!0x0){const {id:_0x4ff531,authorId:_0x585dc0}=nt(_0x438041['markerName']),_0x54c0bf=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2c9aff=_0x5ad2f2['activeMarkers']['includes'](_0x438041['markerName']);return _0x2c9aff&&_0x54c0bf['push']('ck-suggestion-marker--active'),{'classes':_0x54c0bf,'attributes':{'data-suggestion':_0x4ff531,'data-author-id':_0x585dc0},'priority':_0x2c9aff&&_0x2e40da?0xbc2:0xbb8};}_0x5ad2f2['on']('suggestionLoaded',_0x2b6695,{'priority':'high'}),_0x5ad2f2['on']('suggestionUnloaded',_0x2b6695,{'priority':'high'}),_0x2a2264['model']['document']['registerPostFixer'](()=>{let _0x4f5161=!0x1;const _0x57a921=Array['from'](_0x2a2264['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3423ee,data:_0x1505bc}of _0x57a921){const {group:_0x70aa95,type:_0x1c5e02,id:_0x1f48e1}=nt(_0x3423ee);if('suggestion'!=_0x70aa95||'deletion'!=_0x1c5e02||_0x1505bc['oldRange'])continue;if(!_0x5ad2f2['hasSuggestion'](_0x1f48e1))continue;const _0x18c480=_0x5ad2f2['getSuggestion'](_0x1f48e1)['getRanges'](),_0x2943eb=_0x2a2264['plugins']['get']('Users')['me'];for(const _0x5b66f0 of _0x5ad2f2['getSuggestions']())if(_0x5b66f0['isInContent']&&_0x5b66f0['author']==_0x2943eb&&'formatBlock'==_0x5b66f0['type']&&'tablePasteCell'==_0x5b66f0['subType']&&_0x5b66f0['getRanges']()['every'](_0x3b4fab=>_0x18c480['some'](_0x57dd7e=>_0x57dd7e['containsRange'](_0x3b4fab,!0x0)))){for(const _0xc0377e of _0x5b66f0['getAllAdjacentSuggestions']())_0xc0377e['isInContent']&&(_0xc0377e['discard'](),_0x4f5161=!0x0);}}return _0x4f5161;}),_0x2a2264['model']['document']['registerPostFixer'](_0x132f9b=>{const _0x2feb4c=_0x2a2264['commands']['get']('redo');if(!_0x2feb4c||!_0x2feb4c['_createdBatches']['has'](_0x132f9b['batch']))return!0x1;let _0x29be6b=!0x1;const _0x2e7e09=_0x2a2264['plugins']['get']('Users')['me'],_0xd13219=_0x2a2264['model']['document']['differ']['getChanges'](),_0x1aa58e=Array['from'](_0x2a2264['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x316d48,data:_0x2d658c})=>{const {group:_0x41ccf4,subType:_0x4d9010,authorId:_0x24596a}=nt(_0x316d48);return'suggestion'==_0x41ccf4&&'tablePaste'==_0x4d9010&&_0x24596a==_0x2e7e09['id']&&!_0x2d658c['oldRange'];});for(const _0x5b37e8 of _0xd13219){if('insert'!=_0x5b37e8['type']||'tableCellSuggestion'!=_0x5b37e8['name']||0x1!=_0x5b37e8['length'])continue;const _0x34e5f4=_0x132f9b['createRange'](_0x5b37e8['position'],_0x5b37e8['position']['getShiftedBy'](0x1));if(!_0x1aa58e['find'](({data:_0xec7e6})=>_0xec7e6['newRange']['isEqual'](_0x34e5f4))){for(const {name:_0x69e608,data:_0x4bf604}of _0x1aa58e)if(_0x34e5f4['containsRange'](_0x4bf604['newRange'])){_0x132f9b['updateMarker'](_0x69e608,{'range':_0x34e5f4}),_0x29be6b=!0x0;break;}}}return _0x29be6b;}),_0x2a2264['model']['document']['registerPostFixer'](_0x81622d=>{let _0x132f3d=!0x1;const _0x559aa1=_0x2a2264['plugins']['get']('Users')['me'],_0x2fb875=_0x5ad2f2['getSuggestions']()['filter'](_0x21983a=>_0x21983a['isInContent']&&_0x21983a['author']==_0x559aa1),_0x4a6bca=new Set(),_0x49cb6d=new Set();for(const _0x207370 of _0x2fb875)if('tablePaste'==_0x207370['subType'])for(const _0x2cca7d of _0x207370['getMarkers']()){const _0x148db8=_0x2cca7d['getRange']()['getContainedElement']();if(_0x148db8){if(_0x148db8['is']('element','tableCellSuggestion')&&Xe(_0x148db8)){_0x207370['removeMarker'](_0x2cca7d['name']),_0x4a6bca['add'](_0x148db8),_0x132f3d=!0x0;const _0x12e637=_0x148db8['nextSibling'],_0x166347=_0x148db8['previousSibling'],_0x46af8d=_0x12e637&&_0x12e637['is']('element','tableCellSuggestion'),_0x138288=_0x166347&&_0x166347['is']('element','tableCellSuggestion');_0x46af8d&&!_0x4a6bca['has'](_0x12e637)&&_0x49cb6d['add'](_0x12e637),_0x138288&&!_0x4a6bca['has'](_0x166347)&&_0x49cb6d['add'](_0x166347);}else _0x148db8['is']('element','paragraph')&&_0x148db8['isEmpty']&&(_0x207370['removeMarker'](_0x2cca7d['name']),_0x132f3d=!0x0);}}else{if('tablePasteCell'==_0x207370['subType']){if(!_0x207370['attributes']||!_0x207370['attributes']['tablePasteChainId'])continue;const _0x589842=_0x207370['attributes']['markerAttributes'];if(_0x589842&&Object['keys'](_0x589842)['length'])continue;const _0x3c25ca=_0x207370['attributes']['tablePasteChainId'];let _0x45eb69=!0x0,_0x7f8b37=!0x0;for(const _0x314de9 of _0x2fb875)if(_0x314de9['subType']&&_0x314de9['subType']['startsWith']('tablePaste')){if(!_0x314de9['attributes']['tablePasteChainId']){_0x7f8b37=!0x1;break;}if(_0x314de9['id']!=_0x207370['id']&&_0x314de9['attributes']['tablePasteChainId']==_0x3c25ca){_0x45eb69=!0x1;break;}}_0x7f8b37&&_0x45eb69&&(_0x207370['removeMarkers'](),_0x132f3d=!0x0);}}for(const _0x15082b of _0x4a6bca)_0x81622d['remove'](_0x15082b);for(const _0x33bef4 of _0x49cb6d)_0x81622d['unwrap'](_0x33bef4);return _0x132f3d;}),_0x2a2264['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2a3e0a=>_0x2b1e36(_0x2a3e0a),'converterPriority':'high'}),_0x2a2264['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5e4975,_0x1da53c)=>_0x1da53c['options']['showSuggestionHighlights']?_0x2b1e36(_0x5e4975,!0x1):null,'converterPriority':'high'});const _0x1ef979=_0x2a2264['editing']['view'];this['listenTo'](_0x1ef979['document'],'clipboardOutput',(_0x3a5563,_0x245c52)=>{const _0x2294d8=[];for(const _0xef0313 of _0x1ef979['createRangeIn'](_0x245c52['content'])['getItems']())_0xef0313['is']('element','suggestion-td')&&_0x2294d8['push'](_0xef0313);_0x1ef979['change'](_0x163bc2=>{for(const _0x41bc35 of _0x2294d8)_0x163bc2['move'](_0x163bc2['createRangeIn'](_0x41bc35),_0x163bc2['createPositionBefore'](_0x41bc35)),_0x163bc2['remove'](_0x41bc35);});});}};function Xe(_0x2a7ae1){if(_0x2a7ae1['isEmpty'])return!0x0;const _0x268fbb=_0x2a7ae1['getChild'](0x0);return _0x268fbb['is']('element','paragraph')&&_0x268fbb['isEmpty'];}function qe(_0xab196b,_0xa780b={},_0x10462d){for(const {isAnchor:_0x518285,cellHeight:_0x323e97,cellWidth:_0x5bd299}of _0x10462d['createTableWalker'](_0xab196b,{'includeAllSlots':!0x0,..._0xa780b}))if(!_0x518285||0x1!=_0x323e97||0x1!=_0x5bd299)return!0x1;return!0x0;}var Ye=class extends _0x3ad3dd{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2aa059=this['editor']['plugins']['get']('TrackChangesEditing');_0x2aa059['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0x2aa059['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0x2aa059['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2aa059['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0x2da2a7=_0x2aa059['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0x2aa059['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0x271ca6,_0x204acd)=>{_0x2da2a7(_0x271ca6,_0x204acd),this['_restoreCellWidths'](_0x271ca6[0x0]['start']['nodeAfter'],_0x204acd['commandParams'][0x0]['cellWidths']);}),_0x2aa059['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0x505dbb,_0x1cac9f){const _0x27bd8e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e28a8=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2eeb18=_0x1cac9f['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x231838=_0x5e28a8['getColumnGroupElement'](_0x2eeb18);let _0xb88405=_0x231838?_0x5e28a8['getTableColumnsWidths'](_0x231838):null,_0x49ac3f=_0x2eeb18['getAttribute']('tableWidth')||null;const _0x46d28e=_0x1cac9f['tableWidth']||_0x49ac3f,_0x3b8cd1=_0x1cac9f['columnWidths']||_0xb88405;let _0x4b7fd8=this['_getCellWidths'](_0x2eeb18);const _0x509b16=this['_foldResizeTableSuggestion'](_0x2eeb18);_0x509b16&&(_0x49ac3f=_0x509b16['tableWidth'],_0xb88405=_0x509b16['columnWidths'],_0x4b7fd8=_0x509b16['cellWidths']||_0x4b7fd8),_0x505dbb({'table':_0x2eeb18,'tableWidth':_0x46d28e,'columnWidths':_0x3b8cd1}),_0x27bd8e['markBlockFormat'](_0x2eeb18,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x49ac3f,'columnWidths':_0xb88405,'cellWidths':_0x4b7fd8}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0x3fdf06,_0x30332c={}){if(void 0x0===_0x30332c['value']||''===_0x30332c['value'])return void _0x3fdf06(_0x30332c);const _0x146cf6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x467d7a=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x10878d=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0x30332c['batch']||(_0x30332c['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0x30332c['batch'],()=>{const _0x19396a=_0x467d7a['getColumnGroupElement'](_0x10878d);let _0x86c32c=_0x19396a?_0x467d7a['getTableColumnsWidths'](_0x19396a):null,_0x3b6a22=_0x10878d['getAttribute']('tableWidth')||null,_0x1f5f8a=this['_getCellWidths'](_0x10878d);const _0x17348d=this['_foldResizeTableSuggestion'](_0x10878d,!0x0);_0x17348d&&(_0x3b6a22=_0x17348d['tableWidth'],_0x86c32c=_0x17348d['columnWidths'],_0x1f5f8a=_0x17348d['cellWidths']||_0x1f5f8a),_0x3fdf06(_0x30332c),_0x146cf6['markBlockFormat'](_0x10878d,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3b6a22,'columnWidths':_0x86c32c,'cellWidths':_0x1f5f8a}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0x4bebb2,_0x5ebbaf=!0x1){const _0x2cd182=this['editor']['plugins']['get']('TrackChangesEditing'),_0x545776=this['editor']['plugins']['get']('Users')['me'];for(const _0x455b4e of _0x2cd182['getSuggestions']({'skipNotAttached':!0x0})){const _0x497a49=_0x455b4e['getContainedElement']();if('resizeTable'===_0x455b4e['subType']&&_0x497a49===_0x4bebb2){_0x455b4e['author']!==_0x545776&&(_0x5ebbaf?_0x455b4e['removeMarkers']():_0x455b4e['discard']());const _0x1ad3d2=_0x455b4e['data']['commandParams'];return{'tableWidth':_0x1ad3d2[0x0]['tableWidth'],'columnWidths':_0x1ad3d2[0x0]['columnWidths'],'cellWidths':_0x1ad3d2[0x0]['cellWidths']};}}return null;}_getCellWidths(_0x145d3d){const _0x4acc5e=[];for(const _0x5b9894 of _0x145d3d['getChildren']())if(_0x5b9894['is']('element','tableRow')){for(const _0xebc115 of _0x5b9894['getChildren']())_0x4acc5e['push'](_0xebc115['getAttribute']('tableCellWidth')||null);}return _0x4acc5e;}_restoreCellWidths(_0x798ad1,_0x10bc66){_0x10bc66&&this['editor']['model']['change'](_0x304a7c=>{let _0x262061=0x0;for(const _0x716afc of _0x798ad1['getChildren']())if(_0x716afc['is']('element','tableRow'))for(const _0x2eec47 of _0x716afc['getChildren']()){const _0x478641=_0x10bc66[_0x262061++];_0x478641&&_0x304a7c['setAttribute']('tableCellWidth',_0x478641,_0x2eec47);}});}handleSuggestionDescription(_0x53e88c){if('formatBlock'!=_0x53e88c['type']&&'formatInline'!=_0x53e88c['type'])return;const {data:_0x589233}=_0x53e88c;return _0x589233&&'resizeTable'===_0x589233['formatGroupId']?{'type':'format','content':wt(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},Qe=class extends _0x3ad3dd{afterInit(){const _0x434872=this['editor'];_0x434872['plugins']['has']('Template')&&_0x434872['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Ze=class extends _0x3ad3dd{afterInit(){const _0x34a0f8=this['editor'];if(!_0x34a0f8['commands']['get']('insertTableOfContents'))return;_0x34a0f8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x307af7=_0x34a0f8['plugins']['get']('TrackChangesEditing'),_0x59ed03=_0x34a0f8['locale'];_0x307af7['descriptionFactory']['registerElementLabel']('tableOfContents',_0x48cc73=>wt(_0x59ed03,'ELEMENT_TABLE_OF_CONTENTS',_0x48cc73));}},Je=class extends _0x3ad3dd{afterInit(){const _0x1c1169=this['editor'];_0x1c1169['plugins']['has']('Title')&&(_0x1c1169['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>wt(_0x1c1169['locale'],'ELEMENT_TITLE')),_0x1c1169['model']['document']['registerPostFixer'](_0x5b7716=>{let _0x542b2a=!0x1;const _0x36dbc1=Array['from'](_0x1c1169['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xd91ff1,data:_0x8e8b6e}of _0x36dbc1){const {group:_0x42ee50}=nt(_0xd91ff1);if('suggestion'!==_0x42ee50||!_0x8e8b6e['newRange'])continue;const _0x48f0a8=_0x8e8b6e['newRange'],_0x3cd360=_0x48f0a8['end']['nodeBefore'];if(!_0x3cd360||!_0x3cd360['is']('element','title-content'))continue;if(!_0x48f0a8['start']['isTouching'](_0x48f0a8['end']))continue;const _0x2d3db2=_0x1c1169['model']['schema']['getNearestSelectionRange'](_0x48f0a8['end'],'forward');if(_0x2d3db2&&_0x2d3db2['isCollapsed']){const _0x2cc95e=_0x5b7716['createRange'](_0x48f0a8['start'],_0x2d3db2['start']);_0x2cc95e['isEqual'](_0x48f0a8)||(_0x5b7716['updateMarker'](_0xd91ff1,{'range':_0x2cc95e}),_0x542b2a=!0x0);}_0x542b2a||(_0x5b7716['removeMarker'](_0xd91ff1),_0x542b2a=!0x0);}return _0x542b2a;}));}},tn=class extends _0x3ad3dd{afterInit(){const _0x2ca0d3=this['editor'],_0xf1c466=_0x2ca0d3['plugins']['get']('TrackChangesEditing');_0x2ca0d3['plugins']['has']('Uploadcare')&&(_0xf1c466['enableCommand']('uploadcare'),_0x2ca0d3['plugins']['has']('UploadcareImageEdit')&&(_0xf1c466['enableCommand']('uploadcareImageEdit'),_0xf1c466['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0xf1c466['descriptionFactory']['registerDescriptionCallback'](_0x5f5503=>{if('attribute'!=_0x5f5503['type'])return;const {data:_0x3b868c}=_0x5f5503;return _0x3b868c&&'uploadcareImageId'==_0x3b868c['key']?{'type':'format','content':''}:void 0x0;})));}},en=class extends _0x3ad3dd{afterInit(){const _0x3d47f7=this['editor'],_0x10de26=_0x3d47f7['plugins']['get']('TrackChangesEditing');_0x3d47f7['plugins']['has']('UndoEditing')&&(_0x10de26['enableCommand']('undo'),_0x10de26['enableCommand']('redo'));}},nn=class extends _0x3ad3dd{static get requires(){return[xe];}afterInit(){const _0x1a627a=this['editor'];_0x1a627a['plugins']['has']('TableCaptionEditing')&&_0x1a627a['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},sn=class extends _0x3ad3dd{tableProperties;tableCellProperties;constructor(_0x4d491b){super(_0x4d491b),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 _0xbcfcf6=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3d5301 of this['tableProperties'])_0xbcfcf6['enableCommand'](_0x3d5301,(_0x3d2fc5,_0x3e25ef)=>{const _0x13ccc1=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3d5301,[_0x13ccc1],this['tableProperties'],'tableProperties',_0x3d2fc5,_0x3e25ef);});_0xbcfcf6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xbcfcf6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xbcfcf6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1d8500,_0x4393ad)=>this['handleDiscardAction'](this['tableProperties'],_0x1d8500,_0x4393ad)),_0xbcfcf6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2815c8 of this['tableCellProperties'])this['editor']['commands']['get'](_0x2815c8)&&_0xbcfcf6['enableCommand'](_0x2815c8,(_0x6ae6ad,_0x4605c7)=>{const _0x211144=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2815c8,_0x211144,this['tableCellProperties'],'tableCellProperties',_0x6ae6ad,_0x4605c7);});_0xbcfcf6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xbcfcf6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xbcfcf6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x44b04d,_0x3bceb2)=>this['handleDiscardAction'](this['tableCellProperties'],_0x44b04d,_0x3bceb2)),_0xbcfcf6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0xbcfcf6['descriptionFactory']['registerAttributeLabel']('tableCellType',wt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0xbcfcf6['descriptionFactory']['registerDescriptionCallback'](_0x16a531=>this['handleSuggestionDescription'](_0x16a531)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0x28c9d1,_0x187ad5,_0x453d41,_0x4d846f,_0x2102d1,_0x42edd3){const _0x205750=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x42edd3['batch'],()=>{for(const _0x5d4aa7 of _0x187ad5)if(this['_getSuggestion'](_0x5d4aa7,_0x4d846f))_0x2102d1(_0x42edd3);else{const _0x32e172={};for(const _0x6360be of _0x453d41){const _0x21866b=_0x5d4aa7['getAttribute'](_0x6360be);void 0x0!==_0x21866b&&(_0x32e172[_0x6360be]=_0x21866b);}const _0xb747d=this['_getResizedColumnWidths'](_0x5d4aa7);_0xb747d&&(_0x32e172['columnWidths']=_0xb747d),_0x2102d1(_0x42edd3),_0x205750['markBlockFormat'](_0x5d4aa7,{'commandParams':[_0x32e172]},[],_0x4d846f);}});}handleDiscardAction(_0x3ffb5a,_0x1aae53,_0x5c8178){const _0x530ac8=_0x1aae53[0x0]['start']['nodeAfter'],_0x2fa10f=_0x5c8178['commandParams'][0x0];this['editor']['model']['change'](_0x210da6=>{for(const _0xc9c6cf of _0x3ffb5a)void 0x0!==_0x2fa10f[_0xc9c6cf]?_0x210da6['setAttribute'](_0xc9c6cf,_0x2fa10f[_0xc9c6cf],_0x530ac8):_0x210da6['removeAttribute'](_0xc9c6cf,_0x530ac8);if(_0x2fa10f['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0x431bd7=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x294e7f=_0x431bd7['getColumnGroupElement'](_0x530ac8);if(_0x294e7f){const _0x50f68d=_0x431bd7['getTableColumnsWidths'](_0x294e7f),_0xb7d82a=_0x530ac8['getAttribute']('tableWidth');if(('string'==typeof _0xb7d82a&&_0xb7d82a['trim']()['endsWith']('px'))!==_0x50f68d['some'](_0x5e0f87=>'string'==typeof _0x5e0f87&&_0x5e0f87['endsWith']('px'))){const _0x5af582=_0x431bd7['getTableColumnElements'](_0x294e7f);_0x2fa10f['columnWidths']['forEach']((_0x2a1ea1,_0x390435)=>{_0x5af582[_0x390435]&&_0x210da6['setAttribute']('columnWidth',_0x2a1ea1,_0x5af582[_0x390435]);});}}}});}_getResizedColumnWidths(_0x411fea){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0x411fea['is']('element','table'))return;const _0xc2bcec=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4cfccd=_0xc2bcec['getColumnGroupElement'](_0x411fea);return _0x4cfccd?_0xc2bcec['getTableColumnsWidths'](_0x4cfccd):void 0x0;}handleSuggestionDescription(_0xf5dd17){if(_0xf5dd17['data'])switch(_0xf5dd17['subType']){case'tableProperties':return{'type':'format','content':wt(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':wt(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}_getSuggestion(_0x591cd9,_0x4897d8){const _0x2630ab=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x49bd1f of _0x2630ab['getSuggestions']({'skipNotAttached':!0x0})){const _0x1cf5e5=_0x49bd1f['getContainedElement']();if(_0x49bd1f['subType']===_0x4897d8&&_0x1cf5e5===_0x591cd9)return _0x49bd1f;}return null;}_registerTablePropertiesAttributes(){const _0x56bda7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x576848=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x168e8c of _0x576848){const _0x59d21b=_0x168e8c['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x56bda7['descriptionFactory']['registerAttributeLabel'](_0x168e8c,wt(this['editor']['locale'],'FORMAT_'+_0x59d21b));}}},rn=class extends _0x3ad3dd{afterInit(){const _0x413578=this['editor'];if(!_0x413578['plugins']['has']('LineHeight'))return;const _0x311fd9=_0x413578['plugins']['get']('TrackChangesEditing'),_0x1da1c4=_0x413578['locale'];_0x311fd9['enableDefaultAttributesIntegration']('lineHeight'),_0x311fd9['descriptionFactory']['registerAttributeLabel']('lineHeight',wt(_0x1da1c4,'FORMAT_LINE_HEIGHT'));}};const on='$elementName';function an(_0x1c30a5){return'marker'==_0x1c30a5['type']&&_0x1c30a5['name']['startsWith']('$markedRemove');}function cn(_0x2424bd){return _0x2424bd?[_0x2424bd]:[];}var ln=class extends _0x3ad3dd{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[_0xfce073,_0x33ba29,_0x3c08c6,_0x12efb1,Ft,vt,Dt,Ut,xt,Gt,$t,Vt,Wt,zt,jt,Xt,qt,ee,ne,ie,re,oe,ae,le,ue,de,he,ge,fe,Ee,me,Te,_e,pe,Ie,Ce,Se,Le,Yt,rn,Zt,ke,Re,Ne,ye,Me,Oe,we,Be,Fe,ve,Ue,Pe,xe,He,$e,We,Ve,nn,Ke,Ye,Ze,sn,Qe,Je,tn,en];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3f22ec){super(_0x3f22ec),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x44fdb7,_0x14878d,_0x2d54b0,_0x4b3337)=>{this['_model']['change'](()=>{for(const _0x1be362 of[..._0x4b3337,..._0x2d54b0])this['_model']['markers']['has'](_0x1be362)&&_0x3f22ec['editing']['reconvertMarker'](_0x1be362);});}),this['descriptionFactory']=new Bt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new un(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3f22ec['plugins']['get'](_0xfce073),this['_suggestionsConversion']=_0x3f22ec['plugins']['get'](_0x33ba29),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x3f22ec['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3f22ec['config']['get']('trackChanges.trackFormatChanges'),_0x3f22ec['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3f22ec['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new pt(_0x3f22ec,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x537965=this['editor'];_0x537965['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x535eed,{writer:_0x294df0})=>{let _0x4c9fcd='suggestion:'+_0x535eed['getAttribute']('suggestion-type')+':'+_0x535eed['getAttribute']('id');return _0x535eed['getAttribute']('marker-count')&&(_0x4c9fcd+=':'+_0x535eed['getAttribute']('marker-count')),_0x294df0['createElement']('$marker',{'data-name':_0x4c9fcd});}}),_0x537965['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x537965['model']['document']['registerPostFixer'](_0x6e6763=>{let _0x23bf9e=!0x1;const _0x3bf08a=Array['from'](_0x537965['model']['document']['differ']['getChangedMarkers']()),_0x3a3517=new Set();for(const {name:_0x50bce4,data:_0x130b0c}of _0x3bf08a){const {group:_0x62ce26,type:_0x313e5e,subType:_0x1d00ef,id:_0x11ac92}=nt(_0x50bce4);if('suggestion'!==_0x62ce26)continue;const _0x2a24b0=_0x1d00ef?'suggestion:'+_0x313e5e+':'+_0x1d00ef+':'+_0x11ac92:'suggestion:'+_0x313e5e+':'+_0x11ac92,_0x42041d=_0x537965['model']['markers']['getMarkersGroup'](_0x2a24b0),_0x5d4f0c=_0x537965['model']['markers']['get'](_0x50bce4),_0x9bda51=this['_suggestions']['get'](_0x11ac92);if(null!=_0x130b0c['newRange']){'formatInline'==_0x313e5e&&(_0x23bf9e=_0x23bf9e||gn(_0x130b0c['newRange'],_0x50bce4,_0x6e6763,_0x537965['model']['schema']));const _0x12e216='attribute'==_0x313e5e&&this['_suggestionsConversion']['isBlockAttribute'](Cn(_0x1d00ef)),_0x1c3a62='attribute'==_0x313e5e&&this['_suggestionsConversion']['isInlineAttribute'](Cn(_0x1d00ef));if(_0x130b0c['newRange']['isCollapsed']||'$graveyard'==_0x130b0c['newRange']['root']['rootName']||'formatBlock'==_0x313e5e&&!mn(_0x130b0c['newRange'])||_0x12e216&&!mn(_0x130b0c['newRange'])||_0x1c3a62&&En(_0x130b0c['newRange'])||'deletion'==_0x313e5e&&En(_0x130b0c['newRange'])||_0x5d4f0c&&Tn(_0x5d4f0c,_0x42041d))_0x6e6763['removeMarker'](_0x50bce4),_0x23bf9e=!0x0;else{if(!_0x9bda51||!_0x9bda51['isInContent'])continue;if(_0x130b0c['newRange']&&_0x130b0c['oldRange']&&_0x130b0c['newRange']['isEqual'](_0x130b0c['oldRange']))continue;_0x3a3517['add'](_0x9bda51);}}}return _0x3a3517['size']>0x0&&(_0x23bf9e=!!this['_joinWithAdjacentSuggestions'](_0x3a3517)||_0x23bf9e),_0x23bf9e;}),_0x537965['model']['document']['registerPostFixer'](_0x2edc4c=>{let _0x38763a=!0x1;for(const _0x21cad5 of _0x537965['model']['document']['differ']['getChanges']())if('insert'==_0x21cad5['type'])for(const _0x15cbbe of this['_suggestions']['values']()){if(_0x15cbbe['isMultiRange']||!_0x15cbbe['isInContent'])continue;const _0x11f580='formatBlock'==_0x15cbbe['type'],_0x5d708a=this['_getAttributeKey'](_0x15cbbe),_0x25c634=_0x5d708a&&this['_suggestionsConversion']['isBlockAttribute'](_0x5d708a);if(!_0x11f580&&!_0x25c634)continue;const _0x1db4b5=_0x15cbbe['getFirstRange']();if(_0x1db4b5['start']['parent']!=_0x1db4b5['end']['parent']&&!_0x1db4b5['end']['isAtEnd']){const _0x1ca0e0=_0x537965['model']['createPositionAt'](_0x1db4b5['start']['nodeAfter'],'end'),_0x13245f=_0x537965['model']['createRange'](_0x1db4b5['start'],_0x1ca0e0);_0x2edc4c['updateMarker'](_0x15cbbe['getFirstMarker'](),{'range':_0x13245f}),_0x38763a=!0x0;}}return _0x38763a;}),_0x537965['model']['document']['registerPostFixer'](_0x21d1a0=>this['_processAttributeChanges'](_0x21d1a0)),_0x537965['model']['document']['registerPostFixer'](_0x2cf336=>!_0x2cf336['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2cf336)),_0x537965['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x537965['model']['document']['on']('change:data',(_0x4ee4d8,_0x1c419d)=>{if(!_0x1c419d['isLocal']||_0x1c419d['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5eb6b3=_0x537965['model']['document']['differ']['getChanges']();if(0x0==_0x5eb6b3['length'])return;const _0x52dc8d=[],_0x480b28=_0x5eb6b3['filter'](_0x3d7c90=>'attribute'==_0x3d7c90['type']),_0x563d69=_0x5eb6b3['filter'](_0x4393b4=>'insert'==_0x4393b4['type']&&'$text'!=_0x4393b4['name']);for(const _0x208bb4 of _0x480b28)this['_suggestionsConversion']['isRegisteredAttribute'](_0x208bb4['attributeKey'])&&_0x52dc8d['push']({'key':_0x208bb4['attributeKey'],'newValue':_0x208bb4['attributeNewValue'],'oldValue':_0x208bb4['attributeOldValue'],'range':_n(_0x208bb4['range'],_0x537965['model'])});for(const _0x5255ea of _0x563d69){if('rename'!=_0x5255ea['action']&&'refresh'!=_0x5255ea['action'])continue;const _0x2b2fe9=pn(_0x5255ea['position']['nodeAfter'],_0x537965['model']),_0x1db157=_0x5255ea['before'];'rename'==_0x5255ea['action']&&_0x52dc8d['push']({'key':on,'newValue':_0x5255ea['name'],'oldValue':_0x1db157['name'],'range':_0x2b2fe9});for(const [_0xa7110f,_0xf85d27]of _0x1db157['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0xa7110f))continue;const _0x34c33b=_0x5255ea['attributes']['get'](_0xa7110f);_0xf85d27!==_0x34c33b&&_0x52dc8d['push']({'key':_0xa7110f,'newValue':_0x34c33b,'oldValue':_0xf85d27,'range':_0x2b2fe9});}for(const [_0x3041bc,_0x25e529]of _0x5255ea['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x3041bc)&&(_0x1db157['attributes']['has'](_0x3041bc)||_0x52dc8d['push']({'key':_0x3041bc,'newValue':_0x25e529,'oldValue':null,'range':_0x2b2fe9}));}0x0!=_0x52dc8d['length']&&_0x537965['model']['enqueueChange'](_0x1c419d,_0x559bcd=>{const _0x2fbe94=_0x4551b0();for(const {range:_0x2e4dc9,key:_0x3d9e2c,oldValue:_0x43c776,newValue:_0x3d1435}of _0x52dc8d)this['markAttributeChange'](_0x2e4dc9,_0x3d9e2c,_0x43c776,_0x3d1435,{'groupId':_0x2fbe94});this['_reduceExistingSuggestions'](_0x559bcd,_0x52dc8d);});},{'priority':'lowest'}),_0x537965['model']['markers']['on']('update:suggestion',(_0x1da118,_0x115bc2,_0x12c3ec)=>{if(null==_0x12c3ec){const {id:_0x3801ee}=nt(_0x115bc2['name']),_0xefc0e=this['_suggestions']['get'](_0x3801ee);_0xefc0e&&_0xefc0e['addMarkerName'](_0x115bc2['name']);}}),_0x537965['model']['document']['on']('change:data',()=>{const _0xc715ae=Array['from'](_0x537965['model']['document']['differ']['getChangedMarkers']())['filter'](_0x366015=>'suggestion'===nt(_0x366015['name'])['group']);if(0x0===_0xc715ae['length'])return;_0xc715ae['sort']((_0x39de02,_0x4d3fb1)=>{const _0x43ab44=_0x39de02['data']['oldRange'],_0x534c51=_0x4d3fb1['data']['oldRange'];return null===_0x43ab44&&null===_0x534c51?0x0:null===_0x43ab44&&null!==_0x534c51?-0x1:null!==_0x43ab44&&null===_0x534c51?0x1:_0x43ab44['start']['isBefore'](_0x534c51['start'])?-0x1:0x1;});const _0x2b2c63=new Set(),_0x18dca6=new Set();for(const {name:_0x4fcb83,data:_0x4b56ea}of _0xc715ae){const {id:_0xb15bde}=nt(_0x4fcb83);if(null===_0x4b56ea['oldRange']){const _0xb56bea=this['_handleNewSuggestionMarker'](_0x4fcb83);_0x18dca6['add'](_0xb56bea);}else{const _0x28248b=this['_suggestions']['get'](_0xb15bde);null!==_0x4b56ea['newRange']||_0x28248b['isInContent']?(_0x2b2c63['add'](_0x28248b['head']),_0x18dca6['add'](_0x28248b)):this['_removeSuggestion'](_0x28248b);}}_0x18dca6['size']>0x0&&this['_refreshSuggestionsChain'](_0x18dca6);for(const _0x587bb3 of _0x2b2c63)this['fire']('suggestionChanged',_0x587bb3);}),_0x537965['model']['on']('applyOperation',(_0x59487c,_0x22859d)=>{const _0x2c62ab=_0x22859d[0x0];if(!this['_suggestions']['size'])return;if(!_0x2c62ab['isDocumentOperation'])return;if(_0x2c62ab['batch']['isUndo']||!_0x2c62ab['batch']['isLocal'])return;let _0xb6a2aa,_0x44ae29;switch(_0x2c62ab['type']){case'insert':_0xb6a2aa=_0x537965['model']['createPositionAt'](_0x2c62ab['position']),_0x44ae29=_0xb6a2aa['getShiftedBy'](_0x2c62ab['howMany']);break;case'split':_0xb6a2aa=_0x537965['model']['createPositionAt'](_0x2c62ab['splitPosition']),_0x44ae29=_0x537965['model']['createPositionAt'](_0x2c62ab['moveTargetPosition']);break;case'move':_0xb6a2aa=_0x537965['model']['createPositionAt'](_0x2c62ab['targetPosition']),_0x44ae29=_0xb6a2aa['getShiftedBy'](_0x2c62ab['howMany']);break;default:return;}const _0x48cec4=_0x537965['model']['createRange'](_0xb6a2aa,_0x44ae29);_0x537965['model']['change'](()=>{for(const {suggestion:_0x577230,meta:_0x4d374e}of this['_findSuggestions'](_0x48cec4)){if(_0x577230['isMultiRange'])continue;if('formatInline'==_0x577230['type'])continue;const _0x428041=this['_getAttributeKey'](_0x577230);if(_0x428041&&this['_suggestionsConversion']['isBlockAttribute'](_0x428041)&&'split'!=_0x2c62ab['type'])continue;const _0x2ffc4f=_0x577230['data']&&_0x577230['data']['multipleBlocks'];('formatBlock'!=_0x577230['type']||'split'==_0x2c62ab['type']&&!_0x2ffc4f)&&(_0x4d374e['containsRangeInObject']||'insertion'==_0x577230['type']&&_0x4d374e['isOwn']||_0x577230['getFirstRange']()['containsRange'](_0x48cec4)&&this['_breakSuggestionMarker'](_0x577230,_0xb6a2aa,_0x44ae29));}});},{'priority':'lowest'}),_0x537965['model']['on']('deleteContent',(_0x3b779e,_0x556e25)=>{const _0xe0afe=_0x556e25[0x0],_0x16dc48=_0x556e25[0x1];if(_0x16dc48&&_0x16dc48['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xe0afe['isCollapsed'])return;const _0x326590=_0x537965['model']['schema'],{start:_0x351ff7,end:_0x57ce83}=_0xe0afe['getFirstRange'](),_0x380f12=_0x351ff7['nodeAfter']&&_0x326590['isLimit'](_0x351ff7['nodeAfter'])?null:_0x326590['getNearestSelectionRange'](_0x351ff7,'forward'),_0x16504a=_0x57ce83['nodeBefore']&&_0x326590['isLimit'](_0x57ce83['nodeBefore'])?null:_0x326590['getNearestSelectionRange'](_0x57ce83,'backward'),_0x4e2652=_0x537965['model']['createRange'](_0x380f12?_0x380f12['start']:_0x351ff7,_0x16504a?_0x16504a['end']:_0x57ce83);_0x537965['model']['change'](_0x3a6c87=>{this['markDeletion'](_0x4e2652);const _0x114933=_0x537965['model']['schema']['getNearestSelectionRange'](_0x4e2652['start']);_0xe0afe['is']('documentSelection')?_0x3a6c87['setSelection'](_0x114933):_0xe0afe['setTo'](_0x114933);}),_0x3b779e['stop']();},{'priority':_0x3541dd['normal']+0xa}),_0x537965['model']['on']('insertContent',(_0x2c409b,_0x5915c0)=>{const _0x4ce912=_0x5915c0[_0x5915c0['length']-0x1];_0x4ce912&&_0x4ce912['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x537965['model']['change'](()=>{let _0x52f679=_0x537965['model']['insertContent'](_0x5915c0[0x0],_0x5915c0[0x1],_0x5915c0[0x2],{'forceDefaultExecution':!0x0});if(!_0x52f679)return;_0x2c409b['return']=_0x52f679['clone']();const _0x2b24c8=_0x52f679['end']['nodeBefore'],_0x2c330e=_0x537965['model']['schema'];_0x2b24c8&&_0x2c330e['isBlock'](_0x2b24c8)&&!_0x2c330e['isObject'](_0x2b24c8)&&(_0x52f679=_0x537965['model']['createRange'](_0x52f679['start'],_0x537965['model']['createPositionAt'](_0x2b24c8,'end'))),this['markInsertion'](_0x52f679);}),_0x2c409b['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x48f8ba=new Lt(_0x537965,this['_suggestions']);_0x537965['commands']['add']('acceptSuggestion',_0x48f8ba),this['enableCommand']('acceptSuggestion');const _0x22ccd5=new It(_0x537965,this['_suggestions']);_0x537965['commands']['add']('discardSuggestion',_0x22ccd5),this['enableCommand']('discardSuggestion'),_0x537965['commands']['add']('acceptAllSuggestions',new yt(_0x537965,_0x48f8ba,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x537965['commands']['add']('discardAllSuggestions',new yt(_0x537965,_0x22ccd5,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x537965['commands']['add']('acceptSelectedSuggestions',new St(_0x537965,_0x48f8ba,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x537965['commands']['add']('discardSelectedSuggestions',new St(_0x537965,_0x22ccd5,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x14d4f3=_0x537965['plugins']['get'](_0xfce073);this['listenTo'](_0x14d4f3,'addComment',(_0x1dab8d,{threadId:_0x5384d5})=>{const _0x5aa865=this['_suggestions']['get'](_0x5384d5);_0x5aa865&&_0x5aa865['commentThread']&&0x1===_0x5aa865['commentThread']['length']&&this['_updateSuggestionData'](_0x5384d5,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x14d4f3,'removeComment',(_0x51daba,{threadId:_0x2dab81})=>{const _0x338a2f=this['_suggestions']['get'](_0x2dab81);_0x338a2f&&_0x338a2f['commentThread']&&!_0x338a2f['commentThread']['length']&&this['_updateSuggestionData'](_0x2dab81,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0x7262b5){const _0x3bc2b9='7UHP2XzrDLEMsJRtqgZk6S8yf5Tn0pWl4YvIGbcF1xAeCi9wVQKho3mNdauOjB',_0x892314=0x79758,_0x170096={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x57948d(_0x2c42f2){const _0x523bcf=new window['Promise'](_0x4eaa40=>{_0x2c42f2['once']('ready',_0x4eaa40);}),_0xef8741=window['Date']['now'](),_0x30482d=_0x2c42f2['config']['get']('licenseKey');async function _0x291e1(){let _0x26a582,_0x4311e3=null,_0x28f0bc=null;try{return'GPL'==_0x30482d?'NotAllowed':(_0x26a582=_0x39543b(),_0x26a582?(_0x26a582['usageEndpoint']&&(_0x28f0bc=_0x238600(_0x26a582['usageEndpoint'],_0x26a582['jti'])),await _0x5aadd9()?_0x4e6641()?_0x103e1e()?'Expired':_0x4db5bb()?('evaluation'==_0x26a582['licenseType']&&(_0x4311e3=_0x59beb6('EvaluationLimit')),await _0x357ab1()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x103e1e(){const _0x577fd9=['evaluation','trial']['includes'](_0x26a582['licenseType'])?_0xef8741/0x3e8:0xe10*_0x892314;return _0x26a582['exp']<_0x577fd9;}function _0x4e6641(){const _0x363d24=_0x26a582['features'];if(!_0x363d24)return!0x1;if(_0x363d24['includes']('*'))return!0x0;if(_0x363d24['includes']('TC'))return!0x0;if(_0x363d24['includes']('RTC')){if(_0x1f5509())return!0x0;if(_0x14d7d8()||_0xb9b859())return!0x0;}return!0x1;}function _0x4db5bb(){const _0x4417fd=_0x26a582['licensedHosts'];if(!_0x4417fd||0x0==_0x4417fd['length'])return!0x0;const {hostname:_0x3067dd}=new URL(window['location']['href']);if(_0x4417fd['includes'](_0x3067dd))return!0x0;const _0x54cdbc=_0x3067dd['split']('.');return _0x4417fd['filter'](_0x2ecf93=>_0x2ecf93['includes']('*'))['map'](_0x41f774=>_0x41f774['split']('.'))['filter'](_0x7f8949=>_0x7f8949['length']<=_0x54cdbc['length'])['map'](_0x4c05d5=>Array(_0x54cdbc['length']-_0x4c05d5['length'])['fill']('*'===_0x4c05d5[0x0]?'*':'')['concat'](_0x4c05d5))['some'](_0x1b3a54=>_0x54cdbc['every']((_0x541d6e,_0x547f09)=>_0x1b3a54[_0x547f09]===_0x541d6e||'*'===_0x1b3a54[_0x547f09]));}function _0x357ab1(){return _0x4311e3&&_0x28f0bc?new window['Promise']((_0x184a9f,_0x44c297)=>{_0x4311e3['then'](_0x184a9f,_0x44c297),_0x28f0bc['then'](_0x16d96a=>{'Valid'!=_0x16d96a&&_0x184a9f(_0x16d96a);},_0x44c297);}):_0x4311e3||_0x28f0bc||'Valid';}}function _0x238600(_0xe1173a,_0x475bbd){return new window['Promise'](_0x1080b1=>{if(_0x28589c())return _0x1080b1('Valid');_0xa8df55(),_0x2c42f2['decorate']('_sendUsageRequest');let _0x209f50=!0x1;const _0x5c14c0=_0x4551b0();function _0x5cf9c0(_0x500d44){return!!_0x500d44&&('object'==typeof _0x500d44||'function'==typeof _0x500d44)&&'function'==typeof _0x500d44['then']&&'function'==typeof _0x500d44['catch'];}function _0xdf5c30(_0x16a03f){_0x22e156(_0x16a03f)['then'](_0x5123aa=>_0x5123aa&&'ok'==_0x5123aa['status']?_0x552e21(_0x3cbc48(_0x5c14c0+_0x475bbd))!=_0x5123aa['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x130813=>(_0x200302(),_0x130813),()=>{const _0x425967=_0x143f06();return null==_0x425967?(_0x200302(),'Valid'):_0xef8741-_0x425967>0x240c8400?'UsageLimit':'Valid';})['then'](_0x1080b1)['catch'](()=>{_0x1080b1('UsageLimit');});const _0x2219df=0x36ee80;function _0x200302(){const _0x17da76='llct-'+_0x552e21(_0x3cbc48(_0xe1173a)),_0xd65046=_0x22dad5(_0x552e21(window['Math']['ceil'](_0xef8741/_0x2219df)));window['localStorage']['setItem'](_0x17da76,_0xd65046);}function _0x143f06(){const _0x5d27ea='llct-'+_0x552e21(_0x3cbc48(_0xe1173a)),_0x5c5824=window['localStorage']['getItem'](_0x5d27ea);return _0x5c5824?window['parseInt'](_0x22dad5(_0x5c5824),0x10)*_0x2219df:null;}function _0x22e156(_0x47a69b){return new window['Promise']((_0x4b0121,_0x401719)=>{_0x47a69b['then'](_0x4b0121,_0x401719),window['setTimeout'](_0x401719,0x1d4c0);});}}_0x2c42f2['on']('_sendUsageRequest',(_0x280bfc,_0x52a150)=>{if(_0x52a150[0x0]!=_0xe1173a)return _0x1080b1('UsageLimit');_0x52a150[0x1]={..._0x52a150[0x1],'requestId':_0x5c14c0};},{'priority':'high'}),_0x2c42f2['on']('_sendUsageRequest',_0x14addf=>{_0x5cf9c0(_0x14addf['return'])&&(_0x209f50=!0x0,_0xdf5c30(_0x14addf['return']));},{'priority':'low'}),_0x523bcf['then'](()=>{_0x209f50||_0x1080b1('UsageLimit');});});function _0x28589c(){return'auto'==_0x2c42f2['editing']['view']['_overlayModeHint'];}function _0xa8df55(){_0x2c42f2['editing']['view']['_overlayModeHint']='auto';}}function _0x59beb6(_0x3540d2){const _0xf7b3b5=[new window['Promise'](_0x5cc0d7=>setTimeout(_0x5cc0d7,0x93ecc)),_0x523bcf['then'](()=>new window['Promise'](_0x555164=>{let _0x2bf0cd=0x0;_0x2c42f2['model']['on']('applyOperation',(_0x4ee741,_0x1067d4)=>{_0x1067d4[0x0]['isDocumentOperation']&&_0x2bf0cd++,0x5e8==_0x2bf0cd&&(_0x555164(),_0x4ee741['off']());});}))];return window['Promise']['race'](_0xf7b3b5)['then'](()=>_0x3540d2);}async function _0x389ef9(){await _0x523bcf,_0x2c42f2['model']['change']=_0xf3c3b8,_0x2c42f2['model']['enqueueChange']=_0xf3c3b8,_0x2c42f2['enableReadOnlyMode']('model');}function _0x1f5509(){return _0xd4051f('WebSocketGateway')&&'connected'==_0x35774a('WebSocketGateway')['state'];}function _0x14d7d8(){return _0xd4051f('RevisionViewerIntegration');}function _0xb9b859(){return _0xd4051f('TrackChangesDataGetter');}function _0x3db1e0(_0x1f8e3c){const _0x4f4bf0=_0x3172a8();_0x2c42f2[_0x4f4bf0]='trackChangesLicenseKey'+_0x1f8e3c,'Valid'!=_0x1f8e3c&&_0x389ef9();}function _0x3172a8(){const _0x1017b8=window['String'](window['performance']['now']())['replace']('.','');let _0x4e215e='U';for(let _0x11c5b1=0x0;_0x11c5b1<_0x1017b8['length'];_0x11c5b1+=0x2){let _0x1be174=window['parseInt'](_0x1017b8['substring'](_0x11c5b1,_0x11c5b1+0x2));_0x1be174>=0x3e&&(_0x1be174-=0x3e),_0x4e215e+=_0x3bc2b9[_0x1be174];}return _0x4e215e;}function _0x39543b(){const _0x5ef1d6=_0x30482d['split']('.');if(0x3!=_0x5ef1d6['length'])return null;return _0x36d28b(_0x5ef1d6[0x1]);function _0x36d28b(_0x2c85d5){const _0x1f9d18=_0x5ab043(_0x2c85d5);return _0x1f9d18&&_0x47d167()?_0x1f9d18:null;function _0x47d167(){const _0xb420c=_0x1f9d18['jti'],_0x3c5bae=window['parseInt'](_0xb420c['substring'](_0xb420c['length']-0x8),0x10),_0x5de670={..._0x1f9d18,'jti':_0xb420c['substring'](0x0,_0xb420c['length']-0x8)};return delete _0x5de670['vc'],_0x3cbc48(_0x5de670)==_0x3c5bae;}}}async function _0x5aadd9(){let _0x5af09d=!0x0;try{const [_0x479628,_0x59006e,_0x429ac8]=_0x30482d['split']('.');return _0x37bd99(_0x479628),await _0x5da7e5(_0x479628,_0x59006e,_0x429ac8),_0x5af09d;}catch{return!0x1;}function _0x37bd99(_0x140a6d){const _0x386213=_0x5ab043(_0x140a6d);_0x386213&&'ES256'==_0x386213['alg']||(_0x5af09d=!0x1);}async function _0x5da7e5(_0x5e63da,_0x3389d0,_0x11482a){const _0x2a6962=window['Uint8Array']['from'](_0x5c2306(_0x11482a),_0x5a3501=>_0x5a3501['charCodeAt'](0x0)),_0x38d17c=new window['TextEncoder']()['encode'](_0x5e63da+'.'+_0x3389d0),_0x1816f6=window['crypto']['subtle'];if(!_0x1816f6)return;const _0x42c7e6=await _0x1816f6['importKey']('jwk',_0x170096,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x1816f6['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x42c7e6,_0x2a6962,_0x38d17c)||(_0x5af09d=!0x1);}}function _0x5ab043(_0x312479){return _0x312479['startsWith']('ey')?JSON['parse'](_0x5c2306(_0x312479)):null;}function _0x5c2306(_0x1f2916){return window['atob'](_0x1f2916['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x3cbc48(_0x39d3f4){let _0x5101b4=0x1505;function _0x469e60(_0x445a72){for(let _0x111842=0x0;_0x111842<_0x445a72['length'];_0x111842++){const _0x56270d=_0x445a72['charCodeAt'](_0x111842);_0x5101b4=(_0x5101b4<<0x5)+_0x5101b4+_0x56270d,_0x5101b4&=_0x5101b4;}}function _0x4da58f(_0x39be8d){Array['isArray'](_0x39be8d)?_0x39be8d['forEach'](_0x4da58f):_0x39be8d&&'object'==typeof _0x39be8d?Object['entries'](_0x39be8d)['sort']()['forEach'](([_0x4c1a92,_0x2c78b9])=>{_0x469e60(_0x4c1a92),_0x4da58f(_0x2c78b9);}):_0x469e60(window['String'](_0x39be8d));}return _0x4da58f(_0x39d3f4),_0x5101b4>>>0x0;}function _0x552e21(_0x40e44b){return _0x40e44b['toString'](0x10)['padStart'](0x8,'0');}function _0x22dad5(_0x454ac3){return _0x454ac3['split']('')['reverse']()['join']('');}function _0xd4051f(_0x5b342a){return _0x2c42f2['plugins']['has'](_0x5b342a);}function _0x35774a(_0x36d751){return _0x2c42f2['plugins']['get'](_0x36d751);}function _0xf3c3b8(){}_0x3db1e0(await _0x291e1());}_0x57948d(_0x7262b5['editor']);}(this);}set adapter(_0x3e3c5a){if(this['_adapter'])throw new _0x288763('track-changes-adapter-already-set',this);this['_adapter']=_0x3e3c5a;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0x15874c=!0x1,toJSON:_0x35ba11=!0x1}={}){const _0x18e1a5=[];for(const _0x1f585c of this['_suggestions']['values']())_0x15874c&&!_0x1f585c['isInContent']||_0x18e1a5['push'](_0x1f585c);return _0x35ba11?_0x18e1a5['map'](_0x306329=>_0x306329['toJSON']()):_0x18e1a5;}getSuggestion(_0xb14bd7){const _0x590a13=this['_suggestions']['get'](_0xb14bd7);if(!_0x590a13)throw new _0x288763('track-changes-suggestion-not-found',this);return _0x590a13;}hasSuggestion(_0x37ea3f){return this['_suggestions']['has'](_0x37ea3f);}addSuggestionData(_0x355789){const {authorId:_0x554ea1,id:_0x50e4ee,originalSuggestionId:_0x5d3397,attributes:_0x45093d}=_0x355789,[_0x2c2e50,_0x1616dd]=_0x355789['type']['split'](':'),_0x4bf914=this['_suggestions']['get'](_0x50e4ee)||this['_createSuggestion'](_0x2c2e50,_0x1616dd,_0x50e4ee,_0x554ea1,_0x45093d,_0x5d3397);if(this['_addThreadToSuggestion'](_0x4bf914),this['_checkSuggestionCorrectness'](_0x4bf914,_0x2c2e50,_0x1616dd||null,_0x554ea1),_0x4bf914['createdAt']=_0x355789['createdAt'],_0x4bf914['_isDataLoaded']=!0x0,_0x45093d&&_0x45093d['@external']){const _0x138fc0=_0x45093d['@external'],_0x2f6da6=this['_getExternalAuthor'](_0x138fc0['authorName']);_0x4bf914['authoredAt']=_0x138fc0['createdAt'],_0x4bf914['author']=_0x2f6da6;}else _0x4bf914['authoredAt']=_0x355789['createdAt'];switch(_0x355789['data']&&(_0x4bf914['data']=_0x355789['data']),_0x355789['attributes']&&(_0x4bf914['attributes']=_0x355789['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4bf914['_saved']=!0x0),this['_suggestionState']['get'](_0x4bf914)){case'notReady':this['_suggestionState']['set'](_0x4bf914,'dataReady');break;case'markerReady':_0x4bf914['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4bf914])),this['_refreshSuggestionsChain'](new Set([_0x4bf914])),this['_suggestionState']['set'](_0x4bf914,'ready'),this['fire']('suggestionLoaded',_0x4bf914)):this['_suggestionState']['set'](_0x4bf914,'removed');}return _0x4bf914;}acceptSuggestion(_0x255b29){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x37d3c9 of _0x255b29['getAllAdjacentSuggestions']())_0x37d3c9['accept']();});});}discardSuggestion(_0x423921){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x43db56 of _0x423921['getAllAdjacentSuggestions']())_0x43db56['discard']();});});}['enableCommand'](_0x2935b1,_0x5cae09){const _0x447ee3=this['editor']['commands']['get'](_0x2935b1);if(!_0x447ee3)throw new _0x288763('track-changes-command-not-found',this,{'commandName':_0x2935b1});if(this['_enabledCommands']['has'](_0x447ee3))throw new _0x288763('track-changes-enable-command-twice',this,{'commandName':_0x2935b1});this['_enabledCommands']['add'](_0x447ee3),_0x5cae09&&_0x447ee3['on']('execute',(_0xd15c4f,_0x492b27)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x492b27['length']>0x0&&_0x492b27[_0x492b27['length']-0x1]&&_0x492b27[_0x492b27['length']-0x1]['forceDefaultExecution']?_0x492b27['pop']():(_0xd15c4f['return']=_0x5cae09((..._0x2c4cf3)=>_0x447ee3['execute'](..._0x2c4cf3,{'forceDefaultExecution':!0x0}),..._0x492b27),_0xd15c4f['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x3b9cf8){let _0x582a88,_0xde9a19;const _0x32a813=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x582a88=_0x3b9cf8();}catch(_0x51b701){_0xde9a19=_0x51b701;}return _0x32a813||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xde9a19&&_0x288763['rethrowUnexpectedError'](_0xde9a19,this),_0x582a88;}markInsertion(_0x5e4a26,_0x33fcd3=null,_0x5928cc={}){if(_0x5e4a26['isCollapsed'])return null;const _0x53425a=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x5928cc['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x298382,meta:_0x266b2b}of this['_findSuggestions'](_0x5e4a26,'insertion'))if(_0x266b2b['isOwn']){if(!_0x266b2b['isNextTo']){if(_0x266b2b['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!An(_0x298382,_0x5928cc))continue;return _0x298382;}if(An(_0x298382,_0x5928cc))return _0x298382;this['_breakSuggestionMarker'](_0x298382,_0x5e4a26['start'],_0x5e4a26['end']);break;}if(_0x33fcd3==_0x298382['subType']&&An(_0x298382,_0x5928cc)){const _0x1e4921=_0x298382['getFirstRange']();return _0x1e4921['start']['isEqual'](_0x5e4a26['end'])?this['_setSuggestionRange'](_0x298382,this['_model']['createRange'](_0x5e4a26['start'],_0x1e4921['end'])):this['_setSuggestionRange'](_0x298382,this['_model']['createRange'](_0x1e4921['start'],_0x5e4a26['end'])),_0x298382;}}const _0x2e56be=_0x4551b0(),_0x142d5c=_0x53425a['id'],_0x3eacde=_0x33fcd3?'insertion:'+_0x33fcd3:'insertion',_0x6b46b1=this['_setSuggestionData']({'id':_0x2e56be,'type':_0x3eacde,'createdAt':new Date(),'authorId':_0x142d5c,'attributes':_0x5928cc});return this['_addSuggestionMarker'](_0x3eacde,_0x2e56be,_0x142d5c,_0x5e4a26),_0x6b46b1;}markMultiRangeInsertion(_0x521b3a,_0x58dfd5='multi',_0x4f33a5={}){const _0x1bd8bd=this['editor']['plugins']['get']('Users')['me'],_0xa0db0a=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x58dfd5,'join');this['_trackingSessionId']&&(_0x4f33a5['trackingSessionId']=this['_trackingSessionId']);for(const _0x491f7f of this['getSuggestions']())if(_0x491f7f['author']['id']==_0x1bd8bd['id']&&'insertion'==_0x491f7f['type']&&_0x491f7f['subType']==_0x58dfd5&&An(_0x491f7f,_0x4f33a5)&&(_0xa0db0a(_0x491f7f['getRanges'](),_0x521b3a)||_0xa0db0a(_0x521b3a,_0x491f7f['getRanges']()))){for(const _0x26bf4e of _0x521b3a)_0x491f7f['addRange'](_0x26bf4e);return _0x491f7f;}for(const {suggestion:_0x2acac4,meta:_0x51cec5}of this['_findSuggestions'](_0x521b3a,'insertion')){if(!_0x51cec5['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x51cec5['containsRangeInObject'])continue;if(!An(_0x2acac4,_0x4f33a5))continue;let _0x11430c=!0x0;for(const _0x1a1809 of _0x2acac4['getRanges']())for(const _0x8b9ac of _0x521b3a)if(!_0x1a1809['containsRange'](_0x8b9ac)){_0x11430c=!0x1;break;}if(_0x11430c)return _0x2acac4;}const _0x3806af=_0x4551b0(),_0x164a5e=_0x1bd8bd['id'],_0x3ef9d0='insertion:'+_0x58dfd5,_0x50c29d=this['_setSuggestionData']({'id':_0x3806af,'type':_0x3ef9d0,'createdAt':new Date(),'authorId':_0x164a5e,'attributes':_0x4f33a5});for(const _0x3450f4 of _0x521b3a)this['_addSuggestionMarker'](_0x3ef9d0,_0x3806af,_0x164a5e,_0x3450f4,Ot['getMultiRangeId']());return _0x50c29d;}markInlineFormat(_0x95e6a8,_0x116f4d,_0x475bc1=null,_0x2a3790={}){if(_0x475bc1=_0x475bc1||fn(_0x116f4d),_0x95e6a8['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x2a3790['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1ec1d3=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x475bc1,'accept');return this['forceDefaultExecution'](()=>_0x1ec1d3([_0x95e6a8],_0x116f4d,_0x2a3790)),null;}const _0x173ab5=this['editor']['plugins']['get']('Users')['me'],_0x1e95ed=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x40b6b5,meta:_0x264fb8}of this['_findSuggestions'](_0x95e6a8,'insertion'))_0x264fb8['isOwn']&&!_0x264fb8['isInsideObject']&&_0x1e95ed['push'](..._0x40b6b5['getRanges']());}const _0x2e3c8c=function(_0x2ee542,_0x59d4b6){const _0x24bf67=[];for(const _0x4e804b of _0x59d4b6){const _0x49ff30=_0x2ee542['getIntersection'](_0x4e804b);_0x49ff30&&_0x24bf67['push'](_0x49ff30);}return _0x24bf67;}(_0x95e6a8,_0x1e95ed),_0xff835e=function(_0x1e35cb,_0x4f37b3){const _0x3e89b3=[_0x1e35cb];for(const _0x112c39 of _0x4f37b3){let _0x4b94b5=0x0;for(;_0x4b94b5<_0x3e89b3['length'];){const _0x4aa46=_0x3e89b3[_0x4b94b5]['getDifference'](_0x112c39);_0x3e89b3['splice'](_0x4b94b5,0x1,..._0x4aa46),_0x4b94b5+=_0x4aa46['length'];}}return _0x3e89b3;}(_0x95e6a8,_0x1e95ed);_0x2e3c8c['length']&&this['_model']['change'](()=>{for(const _0xe41612 of _0x2e3c8c){const _0x228870=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x475bc1,'accept');this['forceDefaultExecution'](()=>_0x228870([_0xe41612],_0x116f4d,_0x2a3790));}});for(const _0xbf012c of _0xff835e){let _0x42bc2d=null,_0x103d9b=_0xbf012c['start'],_0x184802=_0xbf012c['end'];for(const {suggestion:_0x5ea319,meta:_0x98ebd3}of this['_findSuggestions'](_0xbf012c,'formatInline')){if(!_0x98ebd3['isOwn'])continue;if(_0x5ea319['subType']!=_0x475bc1)continue;if(!An(_0x5ea319,_0x2a3790))continue;const _0x37de82=_0x5ea319['getFirstRange']();if(_0x37de82['containsRange'](_0xbf012c,!0x0))return null;_0x103d9b=_0x103d9b['isBefore'](_0x37de82['start'])?_0x103d9b:_0x37de82['start'],_0x184802=_0x184802['isAfter'](_0x37de82['end'])?_0x184802:_0x37de82['end'],_0x42bc2d?_0x37de82['start']['isBefore'](_0x42bc2d['getFirstRange']()['start'])?(_0x42bc2d['removeMarkers'](),_0x42bc2d=_0x5ea319):_0x5ea319['removeMarkers']():_0x42bc2d=_0x5ea319;}const _0x2c0c02=this['_model']['createRange'](_0x103d9b,_0x184802);if(_0x42bc2d)this['_setSuggestionRange'](_0x42bc2d,_0x2c0c02);else{const _0x1ad3ff=_0x4551b0(),_0x219e9c=_0x173ab5['id'];this['_setSuggestionData']({'id':_0x1ad3ff,'type':'formatInline:'+_0x475bc1,'data':_0x116f4d,'createdAt':new Date(),'authorId':_0x219e9c,'attributes':_0x2a3790}),this['_addSuggestionMarker']('formatInline:'+_0x475bc1,_0x1ad3ff,_0x219e9c,_0x2c0c02);}}return null;}markBlockFormat(_0x135960,_0x2fbfcd,_0x5d7596=[],_0x38284f=null,_0x590542={}){_0x2fbfcd['formatGroupId']||(_0x2fbfcd['formatGroupId']=_0x2fbfcd['commandName']),_0x2fbfcd['multipleBlocks']=_0x135960['is']('range'),_0x38284f=_0x38284f||fn(_0x2fbfcd);const _0x4ffd16=_0x5d7596['map'](_0x17c855=>pn(_0x17c855,this['_model'])),_0x45b77f=_0x135960['is']('range')?_0x135960:pn(_0x135960,this['_model']);if(this['_trackingSessionId']&&(_0x590542['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x766bf0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x38284f,'accept');return this['forceDefaultExecution'](()=>_0x766bf0([_0x45b77f],_0x2fbfcd,_0x590542)),null;}_0x4ffd16['push'](_0x45b77f);let _0xe6dac2=!0x0;for(const _0x71f208 of _0x4ffd16)if(!this['_rangeIsInLocalUserInsertion'](_0x71f208)){_0xe6dac2=!0x1;break;}if(_0xe6dac2&&'always'!==this['_trackFormatChanges']){const _0x20ce21=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x38284f,'accept');return this['forceDefaultExecution'](()=>_0x20ce21([_0x45b77f],_0x2fbfcd,_0x590542)),null;}let _0x4e27a0=null,_0x4cef8e=_0x45b77f['start'],_0x514216=_0x45b77f['end'];for(const {suggestion:_0xe90063,meta:_0x121946}of this['_findSuggestions'](_0x45b77f,'formatBlock')){if(!_0x121946['isOwn'])continue;if(_0x121946['isNextTo']||_0x121946['containsRangeInObject']||_0x121946['isInsideObject'])continue;if(_0xe90063['data']['formatGroupId']!=_0x2fbfcd['formatGroupId'])continue;if(!An(_0xe90063,_0x590542))continue;const _0x107b9a=_0xe90063['getFirstRange']();if(_0xe90063['subType']==_0x38284f){if(_0x107b9a['containsRange'](_0x45b77f,!0x0))return null;_0x4cef8e=_0x4cef8e['isBefore'](_0x107b9a['start'])?_0x4cef8e:_0x107b9a['start'],_0x514216=_0x514216['isAfter'](_0x107b9a['end'])?_0x514216:_0x107b9a['end'],_0x4e27a0?_0x107b9a['start']['isBefore'](_0x4e27a0['getFirstRange']()['start'])?(_0x4e27a0['removeMarkers'](),_0x4e27a0=_0xe90063):_0xe90063['removeMarkers']():_0x4e27a0=_0xe90063;}else{const _0x5c6847=_0x45b77f['getIntersection'](_0x107b9a);this['_cutOutSuggestionMarker'](_0xe90063,_0x5c6847);}}const _0x5e58df=this['editor']['plugins']['get']('Users')['me'],_0x2a150e=_0x4551b0(),_0x27205a=_0x5e58df['id'];if(_0x4e27a0)return this['_setSuggestionRange'](_0x4e27a0,this['_model']['createRange'](_0x4cef8e,_0x514216)),_0x4e27a0;{const _0x290d77=this['_setSuggestionData']({'id':_0x2a150e,'type':'formatBlock:'+_0x38284f,'data':_0x2fbfcd,'createdAt':new Date(),'authorId':_0x27205a,'attributes':_0x590542});return this['_addSuggestionMarker']('formatBlock:'+_0x38284f,_0x2a150e,_0x27205a,this['_model']['createRange'](_0x4cef8e,_0x514216)),_0x290d77;}}markMultiRangeBlockFormat(_0x5721fa,_0x5c4a30,_0x4c4ccf=[],_0xf84495=null,_0x548206={}){_0x5c4a30['formatGroupId']||(_0x5c4a30['formatGroupId']=_0x5c4a30['commandName']);const _0x21861f=_0x5721fa[0x0];_0x5c4a30['multipleBlocks']=_0x21861f['is']('range'),_0xf84495=_0xf84495||fn(_0x5c4a30);const _0x1c9265=_0x4c4ccf['map'](_0x153668=>pn(_0x153668,this['_model'])),_0x2e7def=_0x21861f['is']('range')?_0x5721fa:_0x5721fa['map'](_0x420154=>pn(_0x420154,this['_model']));if(this['_trackingSessionId']&&(_0x548206['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x557498=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xf84495,'accept');return this['forceDefaultExecution'](()=>_0x557498(_0x2e7def,_0x5c4a30,_0x548206)),null;}_0x1c9265['push'](..._0x2e7def);let _0x59ed7d=!0x0;for(const _0x47d373 of _0x1c9265)if(!this['_rangeIsInLocalUserInsertion'](_0x47d373)){_0x59ed7d=!0x1;break;}if(_0x59ed7d&&'always'!==this['_trackFormatChanges']){const _0x37cb63=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xf84495,'accept');return this['forceDefaultExecution'](()=>_0x37cb63(_0x2e7def,_0x5c4a30,_0x548206)),null;}const _0x43159d=this['editor']['plugins']['get']('Users')['me'];for(const _0x387f9c of this['getSuggestions']()){const _0x15b309=_0x387f9c['data'];if(_0x387f9c['author']['id']!=_0x43159d['id'])continue;if('formatBlock'!=_0x387f9c['type']||_0x15b309['formatGroupId']!=_0x5c4a30['formatGroupId'])continue;if(!An(_0x387f9c,_0x548206))continue;const _0x1bd669=_0x387f9c['subType']==_0xf84495;for(let _0x1cfbe2=0x0;_0x1cfbe2<_0x2e7def['length'];_0x1cfbe2++){const _0x505f79=_0x2e7def[_0x1cfbe2];for(const _0x151237 of _0x387f9c['getMarkers']()){const _0x31a13f=_0x151237['getRange']();if(_0x505f79['isEqual'](_0x31a13f)){_0x1bd669?(_0x2e7def['splice'](_0x1cfbe2,0x1),_0x1cfbe2--):_0x387f9c['removeMarker'](_0x151237['name']);break;}}}}if(0x0==_0x2e7def['length'])return null;const _0x12fa70=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xf84495,'join');for(const _0x3dcd43 of this['getSuggestions']()){const _0x2251ce=_0x3dcd43['data'];if(_0x3dcd43['author']['id']==_0x43159d['id']&&('formatBlock'==_0x3dcd43['type']&&_0x2251ce['formatGroupId']==_0x5c4a30['formatGroupId']&&_0x3dcd43['subType']==_0xf84495&&An(_0x3dcd43,_0x548206)&&(_0x12fa70(_0x3dcd43['getRanges'](),_0x2e7def)||_0x12fa70(_0x2e7def,_0x3dcd43['getRanges']())))){for(const _0xf4e381 of _0x2e7def)_0x3dcd43['addRange'](_0xf4e381);return _0x3dcd43;}}const _0x2c1faa=_0x4551b0(),_0x549057=_0x43159d['id'],_0x303aae='formatBlock:'+_0xf84495,_0x5041a3=this['_setSuggestionData']({'id':_0x2c1faa,'type':_0x303aae,'data':_0x5c4a30,'createdAt':new Date(),'authorId':_0x549057,'attributes':_0x548206});for(const _0x11b7e2 of _0x2e7def)this['_addSuggestionMarker'](_0x303aae,_0x2c1faa,_0x549057,_0x11b7e2,Ot['getMultiRangeId']());return _0x5041a3;}markDeletion(_0x3b11f0,_0x3b95f2=null,_0x49b684={}){if(_0x3b11f0['isCollapsed'])return null;const _0x4c1862=this['editor']['plugins']['get']('Users')['me'],_0x542383=new at(_0x3b11f0['start'],_0x3b11f0['end']);this['_trackingSessionId']&&(_0x49b684['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x49cec4,meta:_0x5e25c5}of this['_findSuggestions'](_0x542383,'insertion'))if(_0x5e25c5['isOwn']&&!_0x5e25c5['isNextTo']){if(_0x49cec4['isMultiRange']){const _0x457d2d=_0x49cec4['getRanges']()['filter'](_0x12603b=>'$graveyard'!=_0x12603b['root']['rootName']);if(_0x457d2d['every'](_0x5169f1=>_0x542383['containsRange'](_0x5169f1,!0x0))&&_0x49cec4['discard'](),_0x457d2d['some'](_0x274aba=>_0x274aba['containsRange'](_0x542383,!0x0))){const _0x5618e6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3b95f2,'accept');return this['forceDefaultExecution'](()=>_0x5618e6([_0x542383],null,_0x49b684)),null;}}else{const _0x5562e3=_0x542383['getIntersection'](_0x49cec4['getFirstRange']());null!==_0x5562e3&&_0x49cec4['_onDiscard']([_0x5562e3],null,_0x49b684);}}if(_0x542383['detach'](),_0x542383['isCollapsed']||'$graveyard'==_0x542383['root']['rootName'])return null;let _0x326ca0=null,_0x4baeba=_0x542383['start'],_0x30ba66=_0x542383['end'];const _0x39a5fa=this['_findSuggestions'](_0x542383,'deletion');for(const {suggestion:_0x46038d,meta:_0x2b2764}of _0x39a5fa){const _0x349b78=this['_model']['createRange'](_0x4baeba,_0x30ba66);if(_0x2b2764['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2b2764['containsRangeInObject']&&!_0x2b2764['isInsideObject'])){if(_0x46038d['isMultiRange']){if(!An(_0x46038d,_0x49b684))continue;let _0x422f79=!0x0;for(const _0x3f599b of _0x46038d['getRanges']()){if(_0x3f599b['containsRange'](_0x349b78,!0x0))return _0x46038d;_0x349b78['containsRange'](_0x3f599b)||(_0x422f79=!0x1);}_0x422f79&&_0x46038d['discard']();}else{const _0x3093e6=_0x46038d['getFirstRange']();if(_0x3093e6['containsRange'](_0x349b78,!0x0))return _0x46038d;if(!An(_0x46038d,_0x49b684)){_0x349b78['containsRange'](_0x3093e6)?_0x46038d['removeMarkers']():_0x3093e6['containsPosition'](_0x4baeba)?_0x4baeba=_0x3093e6['end']:_0x3093e6['containsPosition'](_0x30ba66)&&(_0x30ba66=_0x3093e6['start']);continue;}_0x4baeba=_0x4baeba['isBefore'](_0x3093e6['start'])?_0x4baeba:_0x3093e6['start'],_0x30ba66=_0x30ba66['isAfter'](_0x3093e6['end'])?_0x30ba66:_0x3093e6['end'],_0x49b684=Object['assign']({},_0x46038d['attributes']),_0x326ca0?_0x3093e6['start']['isBefore'](_0x326ca0['getFirstRange']()['start'])?(_0x326ca0['removeMarkers'](),_0x326ca0=_0x46038d):_0x46038d['removeMarkers']():_0x326ca0=_0x46038d;}}}if(_0x326ca0)return this['_setSuggestionRange'](_0x326ca0,this['_model']['createRange'](_0x4baeba,_0x30ba66)),_0x326ca0;{const _0x11f579=_0x4551b0(),_0x13c2b6=this['_model']['createRange'](_0x4baeba,_0x30ba66),_0x141244=_0x4c1862['id'],_0x1c7cc7=_0x3b95f2?'deletion:'+_0x3b95f2:'deletion',_0x1f390d=this['_setSuggestionData']({'id':_0x11f579,'type':_0x1c7cc7,'createdAt':new Date(),'authorId':_0x141244,'attributes':_0x49b684});return this['_addSuggestionMarker'](_0x1c7cc7,_0x11f579,_0x141244,_0x13c2b6),_0x1f390d;}}markMultiRangeDeletion(_0x4f7df6,_0x2cd347='multi',_0x551e0b={}){const _0x4abbc0=this['editor']['plugins']['get']('Users')['me'],_0x1af785=_0x4f7df6['map'](_0x1864b1=>new at(_0x1864b1['start'],_0x1864b1['end'])),_0x5de8af=new Set();this['_trackingSessionId']&&(_0x551e0b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5dd6d6,meta:_0x511c4e}of this['_findSuggestions'](_0x1af785,'insertion'))_0x511c4e['isOwn']&&!_0x511c4e['isNextTo']&&_0x5de8af['add'](_0x5dd6d6);for(const _0x3899ed of _0x5de8af)if(_0x3899ed['isMultiRange']){const _0x1e62e2=_0x3899ed['getRanges']();if(_0x3899ed['attributes']&&_0x3899ed['attributes']['skipNestingCheck']||_0x1e62e2['every'](_0x3c583d=>_0x1af785['some'](_0xf855fe=>_0xf855fe['containsRange'](_0x3c583d,!0x0)))&&_0x3899ed['discard'](),_0x1af785['every'](_0x4921b5=>_0x1e62e2['some'](_0x10760e=>_0x10760e['containsRange'](_0x4921b5,!0x0)))){const _0x3a1183=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2cd347,'accept');return this['forceDefaultExecution'](()=>_0x3a1183(_0x4f7df6,null,_0x551e0b)),null;}}else{const _0x2deb2b=_0x3899ed['getFirstRange']();if(_0x1af785['some'](_0x520d7c=>_0x520d7c['containsRange'](_0x2deb2b,!0x0))&&_0x3899ed['discard'](),_0x1af785['every'](_0x228c9b=>_0x2deb2b['containsRange'](_0x228c9b,!0x0))){const _0x451d61=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2cd347,'accept');return this['forceDefaultExecution'](()=>_0x451d61(_0x1af785,null,_0x551e0b)),null;}}const _0x47e2f4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2cd347,'join');let _0x5c4ea2=null;for(const _0x108def of this['getSuggestions']())if(_0x108def['author']['id']==_0x4abbc0['id']&&_0x108def['isInContent']&&'deletion'==_0x108def['type']&&_0x108def['subType']==_0x2cd347&&An(_0x108def,_0x551e0b)&&(_0x47e2f4(_0x108def['getRanges'](),_0x1af785)||_0x47e2f4(_0x1af785,_0x108def['getRanges']()))){if(_0x5c4ea2){if(_0x108def['commentThread']&&_0x108def['commentThread']['length'])continue;for(const _0x8a169c of _0x108def['getRanges']())_0x5c4ea2['isIntersectingWithRange'](_0x8a169c)||_0x5c4ea2['addRange'](_0x8a169c);_0x108def['removeMarkers']();}else{_0x5c4ea2=_0x108def;for(const _0x33b5d6 of _0x1af785)_0x108def['isIntersectingWithRange'](_0x33b5d6)||_0x108def['addRange'](_0x33b5d6);}}if(_0x5c4ea2)return _0x5c4ea2;_0x5de8af['clear']();for(const {suggestion:_0x30c9ca,meta:_0x1ad786}of this['_findSuggestions'](_0x1af785,'deletion'))_0x1ad786['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1ad786['containsRangeInObject']&&!_0x1ad786['isInsideObject'])&&An(_0x30c9ca,_0x551e0b)&&_0x5de8af['add'](_0x30c9ca);for(const _0x561e07 of _0x5de8af){const _0x7b54fb=_0x561e07['getRanges']();if((!_0x551e0b||!_0x551e0b['skipNestingCheck'])&&_0x1af785['every'](_0x22d7ba=>_0x7b54fb['some'](_0x54c0c1=>_0x54c0c1['containsRange'](_0x22d7ba,!0x0))))return _0x561e07;_0x561e07['attributes']&&_0x561e07['attributes']['skipNestingCheck']||_0x7b54fb['every'](_0x20b304=>_0x1af785['some'](_0x1ffccf=>_0x1ffccf['containsRange'](_0x20b304,!0x0)))&&_0x561e07['discard']();}const _0x4ea54f=_0x4551b0(),_0x4a488b=_0x4abbc0['id'],_0x1eb2b6='deletion:'+_0x2cd347,_0x382bd8=this['_setSuggestionData']({'id':_0x4ea54f,'type':_0x1eb2b6,'createdAt':new Date(),'authorId':_0x4a488b,'attributes':_0x551e0b});for(const _0x2ea219 of _0x1af785)_0x2ea219['detach'](),_0x2ea219['isCollapsed']||'$graveyard'==_0x2ea219['root']['rootName']||this['_addSuggestionMarker'](_0x1eb2b6,_0x4ea54f,_0x4a488b,_0x2ea219,Ot['getMultiRangeId']());return _0x382bd8;}markAttributeChange(_0x50156e,_0x1fca55,_0x5706ae,_0x7b01d0,_0xe2cb2e){if(_0x50156e['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x28d64c=this['editor']['plugins']['get']('Users')['me']['id'],_0x32de66=Array['from'](this['_suggestions']['values']())['filter'](_0x5dcea1=>'attribute'==_0x5dcea1['type']&&_0x5dcea1['data']['key']==_0x1fca55&&_0x5dcea1['isIntersectingWithRange'](_0x50156e));if(this['_trackingSessionId']&&(_0xe2cb2e['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x4cb6e0=this['_findSuggestions'](_0x50156e,'insertion')['filter'](({meta:_0x494c98})=>_0x494c98['isOwn']&&!_0x494c98['isInsideObject']&&!_0x494c98['isNextTo'])['map'](({suggestion:_0x581061})=>_0x581061);_0x32de66['unshift'](..._0x4cb6e0);}const _0x5140fa=new Map([[_0x50156e,_0x5706ae]]);for(const _0x36c68e of _0x32de66){const _0x36db68='attribute'==_0x36c68e['type']?_0x36c68e['data']['oldValue']:void 0x0,_0x4f2f39=_0x36c68e['getFirstRange'](),_0x2cb7d2=Array['from'](_0x5140fa['keys']())['find'](_0x3b297f=>_0x3b297f['isIntersecting'](_0x4f2f39));if(!_0x2cb7d2)continue;const _0x1e045d=_0x2cb7d2['getDifference'](_0x4f2f39);this['_suggestionsConversion']['isBlockAttribute'](_0x1fca55)&&'insertion'==_0x36c68e['type']&&0x0!=_0x1e045d['length']||(_0x5140fa['delete'](_0x2cb7d2),_0x1e045d['forEach'](_0x213690=>{_0x5140fa['set'](_0x213690,_0x5706ae);}),'insertion'!=_0x36c68e['type']&&_0x36db68!=_0x7b01d0&&_0x5140fa['set'](_0x2cb7d2['getIntersection'](_0x4f2f39),_0x36db68));}const _0x327844=[];for(const [_0x446cbe,_0x216293]of _0x5140fa){const _0x4225b9=_0x4551b0(),_0x9aa7b5={'key':_0x1fca55,'oldValue':_0x216293,'newValue':_0x7b01d0};_0x1fca55['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':_0x1fca55});const _0x408830=('attribute:'+_0x1fca55+'|'+fn({'newValue':_0x7b01d0}))['substring'](0x0,0x3c),_0x3a9ae9=this['_setSuggestionData']({'id':_0x4225b9,'type':_0x408830,'data':_0x9aa7b5,'createdAt':new Date(),'authorId':_0x28d64c,'attributes':_0xe2cb2e});_0x327844['push'](_0x3a9ae9),this['_addSuggestionMarker'](_0x408830,_0x4225b9,_0x28d64c,_0x446cbe);}return _0x327844;}enableDefaultAttributesIntegration(_0x36adbb){this['enableCommand'](_0x36adbb,(_0xc37f29,..._0x1fd36c)=>{this['recordAttributeChanges'](()=>{_0xc37f29(..._0x1fd36c);});});}startTrackingSession(_0x58f100){return this['_trackingSessionId']=void 0x0!==_0x58f100?_0x58f100:_0x4551b0(),this['_trackingSessionId'];}_getAttributeKey(_0xb6cb7e){return'attribute'==_0xb6cb7e['type']?Cn(_0xb6cb7e['subType']):null;}_applyOperationsAsSuggestions(_0x35ebf9){if(0x0==_0x35ebf9['length'])return;const _0x21bc0b=this['editor'],_0x2bbf68=[],_0x5e06e0=_0x5a009d=>{const _0x2bc06b=_0x5a009d['_aiSource'];return _0x2bc06b?{'@ai':{'type':_0x2bc06b}}:{};},_0x2d90e4=(_0x4d8a12,_0x478bba,_0x29004c,_0x28bed3)=>{const _0x33a41a=new Set(_0x28bed3['flatMap'](_0x4f6ecd=>_0x4f6ecd['getMarkerNames']()));let _0x154913=!0x1;for(let _0x11d024=_0x478bba;_0x11d024<_0x4d8a12['operations']['length'];_0x11d024++){const _0x2b28d4=_0x4d8a12['operations'][_0x11d024];if('marker'==_0x2b28d4['type']){if(!_0x33a41a['has'](_0x2b28d4['name']))continue;_0x154913=!0x0;}_0x2b28d4['_aiSource']=_0x29004c;}return _0x154913;};_0x21bc0b['model']['change'](_0x598f38=>{for(let _0xd60dcb=0x0;_0xd60dcb<_0x35ebf9['length'];_0xd60dcb++){const _0x185743=_0x35ebf9[_0xd60dcb],_0xaeca89=_0x185743['_aiSource'];if(_0x185743['baseVersion']=_0x21bc0b['model']['document']['version'],_0x185743['isDocumentOperation']=!0x0,_0x4a709e(_0x185743))continue;if(an(_0x185743)){const _0x5e143f=_0x6f4f58(_0x185743['newRange'],_0x21bc0b['model']);_0x2bbf68['unshift']({'range':at['fromRange'](_0x5e143f),'operation':_0x185743});continue;}const _0x455f46=_0x598f38['batch']['operations']['length']+0x1;let _0x103144=[];switch(_0x185743['type']){case'rename':{const _0x3b0343=_0x185743['oldName'],_0x4c33b1=_0x185743['newName'];if(_0x3b0343==_0x4c33b1)break;_0x598f38['batch']['addOperation'](_0x185743),_0x21bc0b['model']['applyOperation'](_0x185743);const _0x46515d='$elementName',_0x2ff62e=_0x185743['position'],_0x54e209=_0x21bc0b['model']['createRange'](_0x2ff62e,_0x21bc0b['model']['createPositionAt'](_0x2ff62e['nodeAfter'],'end'));_0x103144=this['markAttributeChange'](_0x54e209,_0x46515d,_0x3b0343,_0x4c33b1,{..._0x5e06e0(_0x185743),'groupId':_0x4551b0()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x2ffb32=_0x185743['oldValue'],_0x1b59e3=_0x185743['newValue'];if(_0x2ffb32==_0x1b59e3)break;_0x598f38['batch']['addOperation'](_0x185743),_0x21bc0b['model']['applyOperation'](_0x185743);const _0x8bf42a=_0x185743['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x8bf42a))break;const _0x263b8c=_0x6f4f58(_0x185743['range'],_0x21bc0b['model']);_0x103144=this['markAttributeChange'](_0x263b8c,_0x8bf42a,_0x2ffb32,_0x1b59e3,{..._0x5e06e0(_0x185743),'groupId':_0x4551b0()});break;}case'insert':{if(_0x598f38['batch']['addOperation'](_0x185743),_0x21bc0b['model']['applyOperation'](_0x185743),_0x35ebf9[_0xd60dcb+0x1]&&'move'==_0x35ebf9[_0xd60dcb+0x1]['type'])break;const _0x188375=_0x185743['position'],_0x2316b5=_0x185743['howMany'],_0x49e5d4=_0x6f4f58(_0x21bc0b['model']['createRange'](_0x188375,_0x188375['getShiftedBy'](_0x2316b5)),_0x21bc0b['model']);_0x103144=cn(this['markInsertion'](_0x49e5d4,null,{..._0x5e06e0(_0x185743)}));break;}case'split':{_0x598f38['batch']['addOperation'](_0x185743),_0x21bc0b['model']['applyOperation'](_0x185743);const _0x126308=_0x185743['splitPosition'],_0x2f943d=_0x185743['moveTargetPosition'],_0x47c7e7=_0x21bc0b['model']['createRange'](_0x126308,_0x2f943d);_0x103144=cn(this['markInsertion'](_0x47c7e7,null,{..._0x5e06e0(_0x185743)}));break;}case'move':case'remove':_0x598f38['batch']['addOperation'](_0x185743),_0x21bc0b['model']['applyOperation'](_0x185743);}_0xaeca89&&_0x2d90e4(_0x598f38['batch'],_0x455f46,_0xaeca89,_0x103144)&&delete _0x185743['_aiSource'];}for(const {range:_0xd0dafc,operation:_0x20e220}of _0x2bbf68){const _0x2a24db=_0x20e220['_aiSource'],_0x31f67b=_0x5e06e0(_0x20e220),_0x382913=_0x598f38['batch']['operations']['length'];_0xd0dafc['detach']();const _0x42ab92=this['markDeletion'](_0xd0dafc,null,{..._0x31f67b});_0x2a24db&&_0x2d90e4(_0x598f38['batch'],_0x382913,_0x2a24db,cn(_0x42ab92));}});}_setSuggestionRange(_0x3bb0fa,_0x559541){const _0x5ba5ac=_0x3bb0fa['getFirstMarker']();this['_model']['change'](_0x36bbbe=>{_0x36bbbe['updateMarker'](_0x5ba5ac,{'range':_0x559541});});}_addThreadToSuggestion(_0x2b3f25){const _0x1621b5=_0x2b3f25['id'],_0x3eb3cb=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1621b5)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3eb3cb,'threadId':_0x1621b5,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1ed812=this['_commentsRepository']['getCommentThread'](_0x1621b5);_0x1ed812['unbind']('isRemovable'),_0x1ed812['isRemovable']=!0x1,_0x2b3f25['commentThread']=_0x1ed812;}_checkSuggestionCorrectness(_0x352eef,_0x7063b4,_0x139e08,_0x19e505){if(_0x352eef['type']!=_0x7063b4||_0x352eef['subType']!=_0x139e08||_0x352eef['creator']['id']!=_0x19e505)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x288763('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0x7821c3,_0x8366d){const _0xb8619d=_0x7821c3['getFirstRange']();if(_0x8366d['isEqual'](_0xb8619d))_0x7821c3['removeMarkers']();else{if(_0xb8619d['containsRange'](_0x8366d)){const _0x22014e=this['_model']['createPositionAt'](_0x8366d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x7821c3,this['_model']['createRange'](_0xb8619d['start'],_0x22014e));const _0x28901d=_0x4551b0(),_0x3dc166=_0x7821c3['creator']['id'],_0x5e02b=_0x7821c3['type']+':'+_0x7821c3['subType'];this['_setSuggestionData']({'id':_0x28901d,'type':_0x5e02b,'createdAt':new Date(),'authorId':_0x3dc166,'data':_0x7821c3['data'],'attributes':_0x7821c3['attributes']});const _0x4fb451=this['_model']['createPositionAt'](_0x8366d['end']['parent'],'after'),_0x4ea5d7=this['_model']['createRange'](_0x4fb451,_0xb8619d['end']);this['_addSuggestionMarker'](_0x5e02b,_0x28901d,_0x3dc166,_0x4ea5d7);}else{if(_0xb8619d['containsPosition'](_0x8366d['start'])){const _0x2b4bd7=this['_model']['createPositionAt'](_0x8366d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x7821c3,this['_model']['createRange'](_0xb8619d['start'],_0x2b4bd7));}else{const _0xa216f=this['_model']['createPositionAt'](_0x8366d['end']['parent'],'after');this['_setSuggestionRange'](_0x7821c3,this['_model']['createRange'](_0xa216f,_0xb8619d['end']));}}}}_rangeIsInLocalUserInsertion(_0x92b5c){for(const {suggestion:_0x276cb3,meta:_0x4aa0fe}of this['_findSuggestions'](_0x92b5c,'insertion')){if(!_0x4aa0fe['isOwn'])continue;const _0x49f5df=_0x276cb3['getRanges']();for(const _0x5402e7 of _0x49f5df)if(!_0x92b5c['getDifference'](_0x5402e7)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0x406147){return this['editor']['plugins']['get']('Users')['getUser'](_0x406147);}_getExternalAuthor(_0x2d817c){const _0x1f0cd5=this['editor']['plugins']['get']('Users'),_0x25611a=_0x3cf3fe('external:'+_0x2d817c),_0x314381=_0x1f0cd5['getUser'](_0x25611a);return _0x314381||_0x1f0cd5['addUser']({'id':_0x25611a,'name':_0x2d817c});}_createSuggestion(_0x3ed543,_0x1d6234,_0xc00d2a,_0x30fae7,_0x2c3400,_0x516ebd){const _0x578757=this['_getAuthorFromId'](_0x30fae7);if(!_0x578757)throw new _0x288763('track-changes-user-not-found',this,{'authorId':_0x30fae7,'suggestionId':_0xc00d2a});const _0xb84cab=this['_suggestionFactory']['buildSuggestion'](_0x3ed543,_0x1d6234,_0xc00d2a,_0x578757,_0x2c3400,_0x559ed0=>{this['_updateSuggestionData'](_0xc00d2a,{'attributes':_0x559ed0});const _0x367abc=this['getSuggestion'](_0xc00d2a);this['_joinWithAdjacentSuggestions'](new Set([_0x367abc])),this['_refreshSuggestionsChain'](new Set([_0x367abc]));},_0x516ebd);return this['listenTo'](_0xb84cab,'accept',()=>{this['_updateSuggestionData'](_0xc00d2a,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xb84cab,'discard',()=>{this['_updateSuggestionData'](_0xc00d2a,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xc00d2a,_0xb84cab),this['_suggestionState']['set'](_0xb84cab,'notReady'),_0xb84cab;}_breakSuggestionMarker(_0x1535fd,_0xa023c5,_0x4a092c){const _0x455da9=_0x1535fd['getFirstRange'](),_0x3f3b53=_0x455da9['start'],_0x3015bb=_0x455da9['end'];this['_setSuggestionRange'](_0x1535fd,this['_model']['createRange'](_0x3f3b53,_0xa023c5));const _0x1b0714=_0x4551b0(),_0xb5763d=_0x1535fd['creator']['id'],_0x73ee4=_0x1535fd['type']+(_0x1535fd['subType']?':'+_0x1535fd['subType']:'');this['_setSuggestionData']({'id':_0x1b0714,'type':_0x73ee4,'createdAt':new Date(),'authorId':_0xb5763d,'originalSuggestionId':_0x1535fd['_originalSuggestionId']||_0x1535fd['id'],'attributes':_0x1535fd['attributes'],'data':_0x1535fd['data']});const _0x20247a=this['_getAttributeKey'](_0x1535fd);('formatBlock'==_0x1535fd['type']||_0x20247a&&this['_suggestionsConversion']['isBlockAttribute'](_0x20247a))&&(_0x4a092c=this['_model']['createPositionBefore'](_0x4a092c['parent'])),this['_addSuggestionMarker'](_0x73ee4,_0x1b0714,_0xb5763d,this['_model']['createRange'](_0x4a092c,_0x3015bb));}_findSuggestions(_0x4ba97b,_0x9c03c8=null){const _0x1a1133=[],_0x3e184f=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4ba97b)||(_0x4ba97b=[_0x4ba97b]);for(const _0x349d7b of this['getSuggestions']()){if(!_0x349d7b['isInContent'])continue;if(_0x9c03c8&&_0x349d7b['type']!=_0x9c03c8)continue;let _0x350cce=!0x1;for(const _0x1c62a7 of _0x349d7b['getRanges']()){for(const _0x17382f of _0x4ba97b){const _0x1697fa=_0x17382f['start']['isEqual'](_0x1c62a7['end'])||_0x17382f['end']['isEqual'](_0x1c62a7['start']);if(_0x1697fa||_0x17382f['getIntersection'](_0x1c62a7)){const _0x5038ff=_0x17382f['containsRange'](_0x1c62a7)&&dn(this['_model']['schema'],_0x1c62a7['start'],_0x17382f),_0x5e1f00=_0x1c62a7['containsRange'](_0x17382f)&&dn(this['_model']['schema'],_0x17382f['start'],_0x1c62a7);_0x1a1133['push']({'suggestion':_0x349d7b,'meta':{'isOwn':_0x3e184f==_0x349d7b['author'],'isNextTo':_0x1697fa,'isInsideObject':_0x5038ff,'containsRangeInObject':_0x5e1f00}}),_0x350cce=!0x0;break;}}if(_0x350cce)break;}}return _0x1a1133;}_addSuggestionMarker(_0x1eedf2,_0x5b71dd,_0x34071f,_0x1e947c,_0x47405e){this['_model']['change'](_0x1a61a5=>{let _0x414747='suggestion:'+_0x1eedf2+':'+_0x5b71dd+':'+_0x34071f;_0x47405e&&(_0x414747=_0x414747+':'+_0x47405e),_0x1a61a5['addMarker'](_0x414747,{'range':_0x1e947c,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0x34d1fb){const _0x16689b=_0x34d1fb['previous'],_0x5434ef=_0x34d1fb['next'];_0x34d1fb['previous']=null,_0x34d1fb['next']=null,null!=_0x16689b&&_0x16689b['next']==_0x34d1fb&&(_0x16689b['next']=_0x5434ef),null!=_0x5434ef&&_0x5434ef['previous']==_0x34d1fb&&(_0x5434ef['previous']=_0x16689b),'ready'==this['_suggestionState']['get'](_0x34d1fb)&&(this['_suggestionState']['set'](_0x34d1fb,'removed'),this['fire']('suggestionUnloaded',_0x34d1fb,_0x16689b,_0x5434ef));}_setSuggestionData(_0x12ff63){const _0x1d3fdd=_0x12ff63['id'],_0x4477f6=this['addSuggestionData'](_0x12ff63);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x323e2f=this['editor']['plugins']['get']('PendingActions'),_0x58f37b=_0x4477f6['hasComments'],_0x5cba54=_0x4477f6['subType']?_0x4477f6['type']+':'+_0x4477f6['subType']:_0x4477f6['type'],_0x1b4417=this['editor']['locale'],_0xf3c42d=_0x323e2f['add'](wt(_0x1b4417,'PENDING_ACTION_SUGGESTION')),_0x159261={'id':_0x1d3fdd,'type':_0x5cba54,'hasComments':_0x58f37b,'data':_0x12ff63['data']||null,'originalSuggestionId':_0x12ff63['originalSuggestionId']||null,'attributes':_0x4477f6['attributes']};this['_adapter']['addSuggestion'](_0x159261)['then'](_0x1e8260=>{_0x4477f6['_saved']=!0x0,_0x323e2f['remove'](_0xf3c42d),_0x1e8260&&_0x1e8260['createdAt']&&(this['_suggestions']['get'](_0x1d3fdd)['createdAt']=_0x1e8260['createdAt']);})['catch'](_0xea0d36=>{throw _0x31dd9f('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4477f6['discard']();}),_0x4477f6['stopListening'](),this['_suggestions']['delete'](_0x4477f6['id']),this['_suggestionState']['delete'](_0x4477f6),_0xea0d36;});}return _0x4477f6;}_updateSuggestionData(_0x4deece,_0x8738){const _0x27784f=this['editor']['plugins']['get']('PendingActions'),_0x4e2ff6=this['getSuggestion'](_0x4deece);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4e2ff6['_saved']){const _0x2ac52c=_0x27784f['add'](wt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4deece,_0x8738)['then'](()=>{_0x27784f['remove'](_0x2ac52c);});}else _0x4e2ff6['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4deece,_0x8738);});}}_getSuggestionData(_0x463eff){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x288763('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x463eff);}_handleNewSuggestionMarker(_0xeff925){const {id:_0x329db4,type:_0x29d0e8,subType:_0xa91e64,authorId:_0xfb7d4a}=nt(_0xeff925),_0xbe2f2a=this['_suggestions']['get'](_0x329db4)||this['_createSuggestion'](_0x29d0e8,_0xa91e64,_0x329db4,_0xfb7d4a,{});switch(this['_checkSuggestionCorrectness'](_0xbe2f2a,_0x29d0e8,_0xa91e64,_0xfb7d4a),this['_suggestionState']['get'](_0xbe2f2a)){case'notReady':this['_getSuggestionData'](_0x329db4)['then'](_0x34cb6a=>{let _0x286362=Promise['resolve']();_0x34cb6a['hasComments']&&(_0x286362=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x329db4})),_0x286362['then'](()=>{this['addSuggestionData'](_0x34cb6a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0xbe2f2a,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x329db4,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0xbe2f2a,'ready'),this['fire']('suggestionLoaded',_0xbe2f2a);break;case'ready':this['fire']('suggestionChanged',_0xbe2f2a);}return _0xbe2f2a['addMarkerName'](_0xeff925),_0xbe2f2a;}_refreshSuggestionsChain(_0x46cb3b){const _0x30e9c5=Array['from'](_0x46cb3b),_0x9886a1=_0x30e9c5['filter'](_0x53d88d=>'attribute'==_0x53d88d['type']);this['_refreshAttributeSuggestionsChain'](_0x9886a1);const _0x409396=_0x30e9c5['filter'](_0x4a2c61=>!_0x4a2c61['isMultiRange']&&'attribute'!=_0x4a2c61['type']),_0x5f2c5e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4b89e6=>!_0x4b89e6['isMultiRange']&&'attribute'!=_0x4b89e6['type']),_0x36ca22=_0x5f2c5e['filter'](_0x502f2f=>!_0x46cb3b['has'](_0x502f2f)),_0x3452a6=new Map(_0x5f2c5e['map'](_0x41519e=>[_0x41519e,this['_suggestionFactory']['getSuggestionCallback'](_0x41519e['type'],_0x41519e['subType'],'chain')])),_0x109e1c=new Map(_0x5f2c5e['map'](_0x15825f=>[_0x15825f,_0x15825f['getFirstRange']()])),_0x1affdc=new Set(),_0x1bf65c=new Set();for(let _0x2ba7a4=0x0;_0x2ba7a4<_0x409396['length'];_0x2ba7a4++)_0x541cb5(_0x409396[_0x2ba7a4],_0x409396,_0x2ba7a4+0x1);for(let _0x40713d=0x0;_0x40713d<_0x409396['length'];_0x40713d++)_0x541cb5(_0x409396[_0x40713d],_0x36ca22,0x0);const _0x3c8991=new Set();for(let _0x54a52e=0x0;_0x54a52e<_0x409396['length'];_0x54a52e++){const _0x1493b4=_0x409396[_0x54a52e];!_0x1bf65c['has'](_0x1493b4)&&_0x1493b4['previous']&&(_0x3c8991['add'](_0x1493b4['previous']),_0x1493b4['previous']['next']===_0x1493b4&&(_0x1493b4['previous']['next']=null),_0x1493b4['previous']=null),!_0x1affdc['has'](_0x1493b4)&&_0x1493b4['next']&&(_0x3c8991['add'](_0x1493b4['next']),_0x1493b4['next']['previous']===_0x1493b4&&(_0x1493b4['next']['previous']=null),_0x1493b4['next']=null);}function _0x541cb5(_0xdab670,_0x37cd86,_0x21ca8b){for(let _0x3acee9=_0x21ca8b;_0x3acee9<_0x37cd86['length'];_0x3acee9++){const _0xbc9711=_0x453862(_0xdab670,_0x37cd86[_0x3acee9]);_0xbc9711&&(_0xbc9711[0x0]['next']=_0xbc9711[0x1],_0xbc9711[0x1]['previous']=_0xbc9711[0x0],_0x1affdc['add'](_0xbc9711[0x0]),_0x1bf65c['add'](_0xbc9711[0x1]));}}function _0x453862(_0x1b1fe0,_0x56b01b){if(_0x1b1fe0['author']['id']!==_0x56b01b['author']['id'])return null;const _0x1f1c0d=_0x3452a6['get'](_0x1b1fe0)(_0x1b1fe0,_0x56b01b,_0x109e1c['get'](_0x1b1fe0),_0x109e1c['get'](_0x56b01b));return _0x1f1c0d&&_0x3452a6['get'](_0x56b01b)(_0x1b1fe0,_0x56b01b,_0x109e1c['get'](_0x1b1fe0),_0x109e1c['get'](_0x56b01b))?_0x1f1c0d[0x1]['commentThread']&&_0x1f1c0d[0x1]['commentThread']['length']?null:_0x1f1c0d:null;}_0x3c8991['size']&&this['_refreshSuggestionsChain'](_0x3c8991);}_refreshAttributeSuggestionsChain(_0xe635e3){if(0x0==_0xe635e3['length'])return;const _0x1e33a9=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2324f9=>'attribute'==_0x2324f9['type']&&_0x2324f9['_isDataLoaded']),_0x1ae565=[],_0x14d318=new Map();for(const _0x1b083e of _0x1e33a9){const _0x10ad50=_0x3cf3fe(_0x1b083e['attributes']);_0x14d318['has'](_0x10ad50)||(_0x14d318['set'](_0x10ad50,_0x1ae565['length']),_0x1ae565['push']([])),_0x1ae565[_0x14d318['get'](_0x10ad50)]['push'](_0x1b083e);}!(function(){_0x1ae565['sort']((_0x134b73,_0x22ff7b)=>{const _0x285a7c=_0x134b73[0x0]['createdAt'],_0x2bc4bc=_0x22ff7b[0x0]['createdAt'];return _0x285a7c==_0x2bc4bc?_0x134b73[0x0]['attributes']['groupId']<_0x22ff7b[0x0]['attributes']['groupId']?-0x1:0x1:_0x285a7c<_0x2bc4bc?-0x1:0x1;});for(const _0x8ea5af of _0x1ae565)_0x8ea5af['sort']((_0xd27acc,_0x482834)=>_0xd27acc['id']<_0x482834['id']?-0x1:0x1);}());for(let _0x154508=0x0;_0x154508<_0x1ae565['length'];_0x154508++){if(0x0==_0x1ae565[_0x154508]['length'])continue;const _0x3875bd=[];for(let _0x1cc906=_0x154508+0x1;_0x1cc906<_0x1ae565['length'];_0x1cc906++)0x0!=_0x1ae565[_0x1cc906]['length']&&_0x55e24e(_0x1ae565[_0x154508],_0x1ae565[_0x1cc906])&&_0x3875bd['push'](_0x1cc906);for(const _0x25f981 of _0x3875bd)_0x1ae565[_0x154508]=_0x1ae565[_0x154508]['concat'](_0x1ae565[_0x25f981]),_0x1ae565[_0x25f981]=[];}for(const _0x50a263 of _0x1ae565)for(let _0x58014a=0x0;_0x58014a<_0x50a263['length'];_0x58014a++){const _0x2de984=_0x50a263[_0x58014a+0x1]||null;_0x50a263[_0x58014a]['next']!==_0x2de984&&(_0x50a263[_0x58014a]['next']=_0x2de984);}for(const _0x1414d2 of _0x1ae565)for(let _0x272151=0x0;_0x272151<_0x1414d2['length'];_0x272151++){const _0x59c103=_0x1414d2[_0x272151-0x1]||null;_0x1414d2[_0x272151]['previous']!==_0x59c103&&(_0x1414d2[_0x272151]['previous']=_0x59c103);}function _0x55e24e(_0x29a877,_0x39a1f6){if(_0x29a877[0x0]['attributes']['groupId']!==_0x39a1f6[0x0]['attributes']['groupId']&&_0x29a877[0x0]['author']!==_0x39a1f6[0x0]['author'])return!0x1;if(!function(_0x15c81b,_0x18f2b6){return!_0x15c81b['hasComments']&&!_0x18f2b6['hasComments']||(!_0x15c81b['hasComments']||!_0x18f2b6['hasComments'])&&(!!(_0x15c81b['hasComments']&&_0x18f2b6['createdAt']<_0x15c81b['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x18f2b6['hasComments']&&_0x15c81b['createdAt']<_0x18f2b6['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x29a877[0x0],_0x39a1f6[0x0]))return!0x1;const _0x4b9abe=dt(_0x29a877[0x0]['attributes'],['groupId','trackingSessionId']),_0x2c835e=dt(_0x39a1f6[0x0]['attributes'],['groupId','trackingSessionId']);return!!ut(_0x4b9abe,_0x2c835e)&&(_0x29a877[0x0]['attributes']['groupId']==_0x39a1f6[0x0]['attributes']['groupId']||_0x29a877[0x0]['attributes']['trackingSessionId']===_0x39a1f6[0x0]['attributes']['trackingSessionId']&&(!!_0x29a877['every'](_0x41da52=>_0x39a1f6['some'](_0x11152d=>_0x41da52['getFirstRange']()['isEqual'](_0x11152d['getFirstRange']())))&&_0x39a1f6['every'](_0x41bf48=>_0x29a877['some'](_0xa2577b=>_0x41bf48['getFirstRange']()['isEqual'](_0xa2577b['getFirstRange']())))));}}_joinWithAdjacentSuggestions(_0x2c1eac){const _0x27ab58=Array['from'](_0x2c1eac),_0x18d364=this['getSuggestions']({'skipNotAttached':!0x0}),_0x337616=_0x18d364['filter'](_0x1a7907=>!_0x2c1eac['has'](_0x1a7907)),_0x8095ff=new Map(_0x27ab58['map'](_0x32baca=>[_0x32baca,this['_suggestionFactory']['getSuggestionCallback'](_0x32baca['type'],_0x32baca['subType'],'join')])),_0x300621=new Map(_0x18d364['map'](_0x172468=>[_0x172468,_0x172468['getRanges']()]));for(let _0xff0f01=0x0;_0xff0f01<_0x27ab58['length'];_0xff0f01++)if(_0x33b72f(this,_0x27ab58[_0xff0f01],_0x27ab58,_0xff0f01+0x1))return!0x0;for(let _0x3331fc=0x0;_0x3331fc<_0x27ab58['length'];_0x3331fc++)if(_0x33b72f(this,_0x27ab58[_0x3331fc],_0x337616,0x0))return!0x0;return!0x1;function _0x33b72f(_0x4e224b,_0x1bbd62,_0x1a7375,_0x3eddb4){for(let _0x56e6f4=_0x3eddb4;_0x56e6f4<_0x1a7375['length'];_0x56e6f4++){const _0x5d94cb=_0x1a7375[_0x56e6f4];if(_0x5d94cb['type']!==_0x1bbd62['type']||_0x5d94cb['author']['id']!==_0x1bbd62['author']['id']||_0x5d94cb['subType']!==_0x1bbd62['subType'])continue;if(!In(_0x1bbd62,_0x5d94cb))continue;if('attribute'==_0x1bbd62['type']&&_0x1bbd62['data']['oldValue']!=_0x5d94cb['data']['oldValue'])continue;if('attribute'==_0x1bbd62['type']&&_0x4e224b['_suggestionsConversion']['isBlockAttribute'](_0x1bbd62['data']['key']))continue;if('formatBlock'==_0x1bbd62['type']){const _0x2a5bd7=_0x4e224b['editor']['model'],_0x552d64=_0x1bbd62['getContainedElement']();if(_0x552d64&&(_0x2a5bd7['schema']['isObject'](_0x552d64)||_0x2a5bd7['schema']['isLimit'](_0x552d64)))continue;}const _0x5333a8=_0x8095ff['get'](_0x1bbd62),_0x4c8147=_0x300621['get'](_0x1bbd62),_0x25427f=_0x300621['get'](_0x5d94cb),_0x2c7434=_0x1bbd62['commentThread']&&_0x1bbd62['commentThread']['length'],_0x41624e=_0x5d94cb['commentThread']&&_0x5d94cb['commentThread']['length'];if(!_0x2c7434&&_0x5333a8(_0x25427f,_0x4c8147))return _0x4e224b['_joinSuggestions'](_0x5d94cb,_0x1bbd62),_0x300621['delete'](_0x1bbd62),!0x0;if(!_0x41624e&&_0x5333a8(_0x4c8147,_0x25427f))return _0x4e224b['_joinSuggestions'](_0x1bbd62,_0x5d94cb),_0x300621['delete'](_0x5d94cb),!0x0;}return!0x1;}}_joinSuggestions(_0x14818f,_0x5ce6e3){if(_0x14818f['isMultiRange']){for(const _0x1ef196 of _0x5ce6e3['getRanges']())_0x14818f['addRange'](_0x1ef196);}else{const _0x2d810b=_0x5ce6e3['getFirstRange']()['end'];this['_setSuggestionRange'](_0x14818f,this['_model']['createRange'](_0x14818f['getFirstRange']()['start'],_0x2d810b));}_0x5ce6e3['removeMarkers']();}_getMarkerAnnouncementText(_0x1821fb,_0x3fd699,_0x4acef7){const _0x3426d7=_0x1821fb['startsWith']('format')||_0x1821fb['startsWith']('attribute')?'FORMATTING':_0x1821fb['toUpperCase']();return wt(this['editor']['locale'],_0x3fd699+'_'+_0x3426d7+'_SUGGESTION_ANNOUNCEMENT',_0x4acef7);}_initAriaMarkerChangeAnnouncements(){const _0x233d45=this['editor'];if(!_0x233d45['ui'])return;const {ariaLiveAnnouncer:_0x2c9921}=_0x233d45['ui'];it(this['_model'],({left:_0x2ca1d9,entered:_0x17373d})=>{for(const _0x2cb91d of _0x2ca1d9){const {group:_0x25d8aa,type:_0xaeed9f}=nt(_0x2cb91d['name']);if('suggestion'===_0x25d8aa){_0x2c9921['announce'](this['_getMarkerAnnouncementText'](_0xaeed9f,'LEAVE'));break;}}for(const _0x564522 of _0x17373d){const {group:_0x5fadd5,type:_0x48d6a3}=nt(_0x564522['name']);if('suggestion'===_0x5fadd5){_0x2c9921['announce'](this['_getMarkerAnnouncementText'](_0x48d6a3,'ENTER',_0x5d9137(_0x508fcc)));break;}}});}_processAttributeChanges(_0x2fe1d6){if(this['_recordAttributeSuggestions'])return!0x1;const _0x28e559=this['editor'],_0x17de52=_0x28e559['model']['document']['differ']['getChanges']();if(0x0==_0x17de52['length'])return!0x1;const _0x55d7ad=[],_0x4e56ab=_0x17de52['filter'](_0x2ad584=>'attribute'==_0x2ad584['type']),_0x3d6727=_0x17de52['filter'](_0xb4aa15=>'insert'==_0xb4aa15['type']&&'$text'!=_0xb4aa15['name']),_0x181bb3=_0x17de52['filter'](_0x5c8e21=>'remove'==_0x5c8e21['type']&&'$text'!=_0x5c8e21['name']);for(const _0x1159b6 of _0x4e56ab)_0x55d7ad['push']({'key':_0x1159b6['attributeKey'],'newValue':_0x1159b6['attributeNewValue'],'oldValue':_0x1159b6['attributeOldValue'],'range':_n(_0x1159b6['range'],_0x28e559['model'])});for(const _0x17d6a6 of _0x3d6727){const _0x190c84=_0x181bb3['find'](_0x573583=>_0x573583['position']['isEqual'](_0x17d6a6['position']));_0x190c84&&_0x55d7ad['push']({'key':on,'newValue':_0x17d6a6['name'],'oldValue':_0x190c84['name'],'range':_0x28e559['model']['createRangeOn'](_0x17d6a6['position']['nodeAfter'])});}return 0x0!=_0x55d7ad['length']&&this['_reduceExistingSuggestions'](_0x2fe1d6,_0x55d7ad);}_processAttributeSuggestions(_0x135721){let _0x17a10a=!0x1;const _0x1705f2=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3a553b=>_0x3a553b['data']['newRange']&&_0x3a553b['name']['startsWith']('suggestion:attribute:'));for(const _0x3ba74c of _0x1705f2){const {subType:_0x7448d6,id:_0x8f9648}=nt(_0x3ba74c['name']),_0x4424f3=_0x7448d6['split']('|')[0x0];for(const _0x1bad0d of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1bad0d['id']!=_0x8f9648&&'attribute'==_0x1bad0d['type']&&_0x1bad0d['data']&&_0x1bad0d['data']['key']==_0x4424f3&&_0x1bad0d['getFirstRange']()['isIntersecting'](_0x3ba74c['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1bad0d,_0x3ba74c['data']['newRange'],_0x135721),_0x17a10a=!0x0);}return _0x17a10a;}recordAttributeChanges(_0x16f0d1){this['_recordAttributeSuggestions']=!0x0,_0x16f0d1();}_reduceExistingSuggestions(_0x3fec07,_0x30c806){if(0x0==_0x30c806['length'])return!0x1;let _0x530d6f=!0x1;for(const _0x57e159 of _0x30c806){const _0x56af84=this['_findSuggestions'](_0x57e159['range'],'attribute')['filter'](_0x5465f1=>!_0x5465f1['meta']['isNextTo'])['map'](_0x1b5831=>_0x1b5831['suggestion']),_0x490167=_0x3cf3fe({'newValue':_0x57e159['newValue']});_0x56af84['filter'](_0x35e5c1=>{const [_0x14ffa5,_0x581672]=_0x35e5c1['subType']['split']('|');return _0x14ffa5==_0x57e159['key']&&_0x581672!=_0x490167;})['forEach'](_0x154e1a=>{this['_reduceSuggestionAttributeRange'](_0x154e1a,_0x57e159['range'],_0x3fec07),_0x530d6f=!0x0;});}return _0x530d6f;}_reduceSuggestionAttributeRange(_0x5c7bb8,_0x12eb55,_0x364b3a){const _0xb71621=_0x5c7bb8['getFirstRange']()['getDifference'](_0x12eb55);0x0!==_0xb71621['length']?0x1!==_0xb71621['length']?this['_breakSuggestionMarker'](_0x5c7bb8,_0x12eb55['start'],_0x12eb55['end']):this['_setSuggestionRange'](_0x5c7bb8,_0xb71621[0x0]):_0x364b3a['removeMarker'](_0x5c7bb8['getFirstMarker']());}},un=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0x50d3ef){this['_editor']=_0x50d3ef,this['_model']=_0x50d3ef['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0x15de6c,_0x31620e,_0x6b24b3,_0x55f604,_0x2c885d,_0x2fec39,_0x5c644b){return new Ot(this['_model'],{'type':_0x15de6c,'subType':_0x31620e,'id':_0x6b24b3,'originalSuggestionId':_0x5c644b,'author':_0x55f604,'creator':_0x55f604,'attributes':_0x2c885d,'onAttributesChange':_0x2fec39,'onAccept':(..._0x2ae5ec)=>this['getSuggestionCallback'](_0x15de6c,_0x31620e,'accept')(..._0x2ae5ec),'onDiscard':(..._0x1973fb)=>this['getSuggestionCallback'](_0x15de6c,_0x31620e,'discard')(..._0x1973fb)});}registerCustomCallback(_0x27e474,_0x53f915,_0x28d080,_0x348a8b){const _0x2de909=_0x27e474+':'+_0x53f915+':'+_0x28d080;this['_customCallbacks']['set'](_0x2de909,_0x348a8b);}getSuggestionCallback(_0x3fb54d,_0xa52231,_0x43e362){const _0x1b3327=_0x3fb54d+':'+_0xa52231+':'+_0x43e362;return this['_customCallbacks']['get'](_0x1b3327)||this['_defaultCallbacks']['get'](_0x3fb54d+':'+_0x43e362);}_registerDefaultCallbacks(){const _0x3c934c=()=>!0x1,_0x13318b=_0x54737f=>{_0x54737f['sort']((_0x1795ad,_0x43b32d)=>_0x1795ad['start']['isBefore'](_0x43b32d['start'])?0x1:-0x1),this['_model']['change'](_0x1a348c=>{for(const _0x296b72 of _0x54737f){let _0x784661;_0x784661=_0x296b72['end']['isAtEnd']&&_0x296b72['end']['parent']==_0x296b72['start']['nodeAfter']?_0x1a348c['createSelection'](_0x296b72['start']['nodeAfter'],'on'):_0x1a348c['createSelection'](_0x296b72),this['_model']['deleteContent'](_0x784661,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x2d5844=(_0x1bd136,_0x52c1a0)=>{_0x52c1a0&&this['_model']['change'](_0x4d7a88=>{const {commandName:_0x211f41,commandParams:_0x321f71=[]}=_0x52c1a0,_0x24e2fc=_0x1bd136['map'](_0x11c8d2=>(hn(_0x11c8d2)&&(_0x11c8d2=this['_model']['createRange'](_0x11c8d2['end'])),_0x11c8d2))['filter'](_0x54d38d=>'$graveyard'!==_0x54d38d['root']['rootName']);if(_0x24e2fc['length']<0x1)return;const _0x512745=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xa90f1=>at['fromRange'](_0xa90f1));_0x4d7a88['setSelection'](_0x24e2fc);for(const _0x1ce5f3 of this['_editor']['commands']['commands']())_0x1ce5f3['refresh']();_0x321f71['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x211f41,..._0x321f71);const _0x360100=_0x512745['filter'](_0x20ce87=>'$graveyard'!=_0x20ce87['root']['rootName']);_0x360100['length']>0x0&&_0x4d7a88['setSelection'](_0x360100);for(const _0x5abb67 of _0x512745)_0x5abb67['detach']();});},_0x4f881c=(_0x23adc6,_0x191046)=>0x1==_0x23adc6['length']&&0x1==_0x191046['length']&&_0x23adc6[0x0]['end']['isEqual'](_0x191046[0x0]['start']),_0x487c06=(_0xb6b4,_0x45852a,_0x2084ea,_0x3aafeb)=>Ln(_0xb6b4,_0x45852a,_0x2084ea,_0x3aafeb)?[_0xb6b4,_0x45852a]:Ln(_0x45852a,_0xb6b4,_0x3aafeb,_0x2084ea)?[_0x45852a,_0xb6b4]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3c934c),this['_defaultCallbacks']['set']('insertion:discard',_0x13318b),this['_defaultCallbacks']['set']('insertion:join',_0x4f881c),this['_defaultCallbacks']['set']('insertion:chain',_0x487c06),this['_defaultCallbacks']['set']('deletion:accept',_0x13318b),this['_defaultCallbacks']['set']('deletion:discard',_0x3c934c),this['_defaultCallbacks']['set']('deletion:join',_0x4f881c),this['_defaultCallbacks']['set']('deletion:chain',_0x487c06),this['_defaultCallbacks']['set']('formatInline:accept',_0x2d5844),this['_defaultCallbacks']['set']('formatInline:discard',_0x3c934c),this['_defaultCallbacks']['set']('formatInline:join',_0x4f881c),this['_defaultCallbacks']['set']('formatInline:chain',_0x3c934c),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2d5844),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3c934c),this['_defaultCallbacks']['set']('formatBlock:join',_0x4f881c),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3c934c),this['_defaultCallbacks']['set']('attribute:accept',_0x3c934c),this['_defaultCallbacks']['set']('attribute:discard',(_0x3dd83c,_0x52a265)=>{if(!_0x52a265)return;const _0xcd5b3b=this['_editor']['plugins']['get'](_0x33ba29);this['_model']['change'](_0x5187d9=>{if('$elementName'==_0x52a265['key'])for(const _0x3f1c15 of _0x3dd83c){const _0x2343b3=_0x3f1c15['start']['nodeAfter'],_0x3c9d2d=_0x52a265['oldValue'];_0x5187d9['rename'](_0x2343b3,_0x3c9d2d);}else{if(_0xcd5b3b['isBlockAttribute'](_0x52a265['key'])){for(const _0x333e40 of _0x3dd83c)void 0x0!==_0x52a265['oldValue']?_0x5187d9['setAttribute'](_0x52a265['key'],_0x52a265['oldValue'],_0x333e40['start']['nodeAfter']):_0x5187d9['removeAttribute'](_0x52a265['key'],_0x333e40['start']['nodeAfter']);}else{for(const _0x1e9e41 of _0x3dd83c)_0x52a265['oldValue']?_0x5187d9['setAttribute'](_0x52a265['key'],_0x52a265['oldValue'],_0x1e9e41):_0x5187d9['removeAttribute'](_0x52a265['key'],_0x1e9e41);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4f881c);}};function dn(_0x5b9667,_0x383e02,_0x3ae69c){for(const _0x144edc of _0x383e02['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x144edc['root']==_0x144edc)return!0x1;if(!_0x3ae69c['containsItem'](_0x144edc))return!0x1;if(_0x5b9667['isObject'](_0x144edc)||_0x5b9667['isLimit'](_0x144edc))return!0x0;}return!0x1;}function hn(_0x31381a){return _0x31381a['end']['parent']==_0x31381a['start']['nodeAfter']&&_0x31381a['end']['isAtStart'];}function gn(_0x2a52d9,_0x191d05,_0x25e84a,_0x57b6b6){const _0x2d7e7f=_0x4ac8a0=>!_0x4ac8a0['item']['is']('$textProxy')&&!_0x57b6b6['isObject'](_0x4ac8a0['item']),_0xca083c=_0x2a52d9['start']['getLastMatchingPosition'](_0x2d7e7f),_0x377c2f=_0x2a52d9['end']['getLastMatchingPosition'](_0x2d7e7f,{'direction':'backward'});return(!_0x2a52d9['start']['isEqual'](_0xca083c)||!_0x2a52d9['end']['isEqual'](_0x377c2f))&&(_0xca083c['isBefore'](_0x377c2f)?_0x25e84a['updateMarker'](_0x191d05,{'range':_0x25e84a['createRange'](_0xca083c,_0x377c2f)}):_0x25e84a['removeMarker'](_0x191d05),!0x0);}function fn(_0x59dfb9){return _0x3cf3fe(_0x59dfb9);}function mn(_0x5ee31d){const _0x301571=_0x5ee31d['start']['nodeAfter'];return _0x301571&&_0x301571['is']('element');}function En(_0x307739){return hn(_0x307739)||function(_0x15362f){return _0x15362f['start']['parent']==_0x15362f['end']['nodeBefore']&&_0x15362f['start']['isAtEnd'];}(_0x307739);}function Tn(_0x330b77,_0x2efb00){try{const _0x57ec3e=_0x330b77['getRange']();for(const _0x24a620 of _0x2efb00)if(_0x330b77!==_0x24a620&&_0x57ec3e&&_0x57ec3e['isIntersecting'](_0x24a620['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function _n(_0x8ab3bf,_0x51d1a8){return null==_0x8ab3bf['end']['nodeBefore']&&_0x8ab3bf['end']['parent']==_0x8ab3bf['start']['nodeAfter']?pn(_0x8ab3bf['start']['nodeAfter'],_0x51d1a8):_0x8ab3bf;}function pn(_0x31d198,_0x5659fa){const _0x1b42d2=_0x5659fa['schema']['isObject'](_0x31d198)||_0x5659fa['schema']['isSelectable'](_0x31d198);return _0x5659fa['createRange'](_0x5659fa['createPositionAt'](_0x31d198,'before'),_0x1b42d2?_0x5659fa['createPositionAfter'](_0x31d198):_0x5659fa['createPositionAt'](_0x31d198,'end'));}function Ln(_0x4ddc90,_0x43147e,_0x4bf884,_0x396275){return!!In(_0x4ddc90,_0x43147e)&&_0x4bf884['end']['isEqual'](_0x396275['start']);}function In(_0x554069,_0x4087b9){if(!_0x554069['_isDataLoaded']||!_0x4087b9['_isDataLoaded'])return!0x1;const _0x1bfad5=new Set(Object['keys'](_0x554069['attributes'])),_0x14d82f=new Set(Object['keys'](_0x4087b9['attributes']));if(_0x1bfad5['delete']('groupId'),_0x14d82f['delete']('groupId'),0x0==_0x1bfad5['size']&&0x0==_0x14d82f['size'])return!0x0;if(_0x1bfad5['size']!=_0x14d82f['size'])return!0x1;const _0x2c70c9={..._0x554069['attributes']},_0x395c98={..._0x4087b9['attributes']};return delete _0x2c70c9['groupId'],delete _0x395c98['groupId'],JSON['stringify'](_0x2c70c9)==JSON['stringify'](_0x395c98);}function An(_0x506339,_0x4dad81){const _0x5436ef=bn(_0x506339['attributes']),_0x1c0675=bn(_0x4dad81);if(!_0x506339['_isDataLoaded'])return!0x1;if(!ut(_0x5436ef['@ai'],_0x1c0675['@ai']))return!0x1;for(const _0x21acc9 of Object['keys'](_0x1c0675))if(!ut(_0x5436ef[_0x21acc9],_0x1c0675[_0x21acc9]))return!0x1;return!0x0;}function bn(_0x508d1c){const _0x3a69d5=Object['assign']({},_0x508d1c);return delete _0x3a69d5['skipNestingCheck'],delete _0x3a69d5['tablePasteChainId'],_0x3a69d5;}function Cn(_0x1a04da){return _0x1a04da['split']('|')[0x0];}const kn=/* #__PURE__ -- @preserve */
26
- _0x26023d();var Rn=class extends kn{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0x11dc2c,_0x103c7a,_0x38d10e,_0x1b6aa6){super(),this['model']=_0x103c7a,this['view']=_0x38d10e,this['commentThreadController']=_0x1b6aa6,this['_editor']=_0x11dc2c,this['_acceptCommand']=_0x11dc2c['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x11dc2c['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x404535,_0x5757b4)=>_0x404535||_0x5757b4),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x163e15=>_0x163e15&&this['_editor']['model']['canEditAt'](_0x103c7a['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x559e52=>_0x559e52&&this['_editor']['model']['canEditAt'](_0x103c7a['getRanges']())),this['_pendingAction']=null,_0x38d10e['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x38d10e,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x38d10e,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x38d10e,'change:isDirty',()=>{_0x38d10e['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 _0x483a53=wt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x483a53);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},Nn=class extends _0x2e02d5{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0xfe6f25,_0x284b44,_0x5f26ed,_0x2a4315){super(_0xfe6f25),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x181af5(_0xfe6f25,wt(_0xfe6f25,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x284b44['authoredAt']),this['bind']('authoredAt')['to'](_0x284b44),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',_0x284b44,'authoredAt',this,'descriptionParts',(_0x571ef4,_0x2853f0,_0x3161fc)=>{const _0x5883b0=_0x3161fc['map'](_0x2de895=>At(_0x2de895['content']))['join']('.\x20')+'.',_0x49cb4b=_0x284b44['aiSource']&&'author'===_0x2a4315['showAISource']?_0x2a4315['aiAuthor']['name']:_0x284b44['author']['name'],_0x3ddaeb=wt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x571ef4-0x1,_0x49cb4b,_0x2853f0?_0x2a4315['formatDateTime'](_0x2853f0):'',new DOMParser()['parseFromString'](_0xfe69fd(_0x5883b0),'text/html')['body']['textContent']]);return _0x284b44['aiSource']&&'pill'===_0x2a4315['showAISource']?_0x3ddaeb+'\x20'+wt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x3ddaeb;}),this['focusables']=new _0x5c58e4(),this['focusTracker']=new _0x3769a2(),this['keystrokes']=new _0x4218af(),this['focusCycler']=new _0xf30591({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xb2bcc3=>_0xb2bcc3['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x284b44,this['_localUser']=_0x5f26ed,this['_config']=_0x2a4315,_0x2a4315['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),et(this,this['focusables']);}['focus'](){this['element']['focus']();}destroy(){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentViews(){const {CommentsListView:_0x228258}=this['_config'];this['commentsListView']=new _0x228258(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',_0x657119=>_0x657119+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x252079,_0x250f6b)=>_0x252079||!!_0x250f6b);}_createCommentThreadInputView(){const {CommentThreadInputView:_0x860237}=this['_config'],_0x176821=new _0x860237(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4ef18c=_0x176821['commentInputView'];return _0x176821['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4ef18c,'value',(_0x42ea46,_0x31f5bf,_0x1a776c)=>!!_0x1a776c||_0x42ea46&&!_0x31f5bf),_0x4ef18c['on']('submit',(_0x87266b,_0x510f14)=>{this['fire']('addComment',_0x510f14),_0x4ef18c['editor']['setData']('');}),_0x4ef18c['on']('cancel',()=>this['focus']()),_0x4ef18c['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x176821;}},yn=class extends Nn{suggestionView;_descriptionElement;constructor(_0x47f1d6,_0x5ab39c,_0x458ebc,_0x3d57c2){super(_0x47f1d6,_0x5ab39c,_0x458ebc,_0x3d57c2),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x255acb=>_0x255acb&&_0x255acb[0x0]?_0x255acb[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x39ddda,_0x57bb94)=>{let _0x5aeccf='';for(const _0x47a843 of _0x39ddda)_0x5aeccf+='<p>'+At(_0x47a843['content'],_0x47a843['color'])+'</p>';return _0x57bb94?_0x5aeccf:st(_0x5aeccf,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3d57c2['SuggestionView'](_0x47f1d6,_0x5ab39c,{'formatDateTime':_0x3d57c2['formatDateTime'],'showAISource':_0x3d57c2['showAISource'],'aiAuthor':_0x3d57c2['aiAuthor']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['acceptButton']['bind']('tooltip')['to'](this,'canAccept',_0x10577d=>!!_0x10577d||wt(_0x47f1d6,'SUGGESTION_ACTIONS_DISABLED_TOOLTIP')),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['suggestionView']['discardButton']['bind']('tooltip')['to'](this,'canDiscard',_0x17f759=>!!_0x17f759||wt(_0x47f1d6,'SUGGESTION_ACTIONS_DISABLED_TOOLTIP')),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 _0x5e313b=this['bindTemplate'],_0x49aa08=[this['suggestionView']];return this['commentsListView']&&_0x49aa08['push'](this['commentsListView']),this['commentThreadInputView']&&_0x49aa08['push'](this['commentThreadInputView']),_0x49aa08['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5e313b['if']('isActive','ck-suggestion-wrapper--active'),_0x5e313b['to']('type',_0x4ffb6a=>'ck-suggestion-'+_0x4ffb6a),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':_0x5e313b['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x49aa08};}['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));}},Sn=class extends _0x2e02d5{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0x2ef565,_0x1678cc,_0x55fb6c){super(_0x2ef565),this['_model']=_0x1678cc,this['_config']=_0x55fb6c,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1678cc),this['acceptButton']=this['_createButton'](wt(_0x2ef565,'Accept\x20suggestion'),_0x11e455,'ck-suggestion--accept\x20ck-button_small','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](wt(_0x2ef565,'Discard\x20suggestion'),_0x327231,'ck-suggestion--discard\x20ck-button_small','discardSuggestion','sw');const _0x30ba63=!!_0x1678cc['aiSource']&&'author'===_0x55fb6c['showAISource'],_0x7cd9a9=_0x30ba63?this['_createAIUser'](_0x55fb6c['aiAuthor']):_0x1678cc['author'],_0x50672a=_0x30ba63&&!_0x55fb6c['aiAuthor']['avatar']?_0x6f8932:void 0x0;this['userView']=new _0x414c48(_0x2ef565,_0x7cd9a9,this['getUserViewNotificationText'](),_0x50672a),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5c58e4([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x3769a2(),this['keystrokes']=new _0x4218af(),this['focusCycler']=new _0xf30591({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2ae9da=>_0x2ae9da['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x48b177=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x48b177['innerHTML']=_0xfe69fd(this['description']),this['on']('change:description',(_0x58d2b3,_0x4c2e19,_0x191f11)=>{_0x48b177['innerHTML']=_0xfe69fd(_0x191f11);}),this['_setupKeyboardNavigation']();}getTemplate(){const _0x2db341=this['bindTemplate'],_0x5e6768=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x2db341['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2db341['to']('authoredAt',_0x28165d=>this['_config']['formatDateTime'](_0x28165d))}]}]},{'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']&&_0x5e6768['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x1505b2=new _0x54dab4(this['locale']);_0x1505b2['set']({'icon':_0x1742f0,'label':wt(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':wt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'size':'small','class':'ck-pill_ai'}),_0x5e6768['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x1505b2]});}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':_0x5e6768}]};}['focus'](){this['element']['focus']();}getUserViewNotificationText(){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?wt(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):wt(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}getExternalSuggestionNote(){return'importWord'===this['_model']['attributes']['@external']['source']?wt(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):wt(this['locale'],'EXTERNAL_SUGGESTION');}_createAIUser(_0x12c61d){return new _0xfc1668({'id':'ck-ai-author','name':_0x12c61d['name'],'avatar':_0x12c61d['avatar'],'color':new _0x24a81f(0x0)});}_createButton(_0x1e5185,_0x216607,_0x1b0a8b,_0x2b94b2,_0x167fe6){const _0x1cc24e=new _0x54f4c8(this['locale']);return _0x1cc24e['set']({'label':_0x1e5185,'icon':_0x216607,'tooltip':!0x0,'tooltipPosition':_0x167fe6}),_0x1cc24e['extendTemplate']({'attributes':{'class':_0x1b0a8b}}),_0x1cc24e['on']('execute',()=>{this['fire'](_0x2b94b2,this['_model']['id']);}),_0x1cc24e;}_setupKeyboardNavigation(){const _0x51ab6f=this['element'];this['keystrokes']['listenTo'](_0x51ab6f);for(const _0x28a381 of this['focusables'])this['focusTracker']['add'](_0x28a381['element']),this['keystrokes']['listenTo'](_0x28a381['element']);this['keystrokes']['set']('enter',(_0x583b23,_0x3d7c0d)=>{_0x51ab6f===_0x583b23['target']&&(this['focusCycler']['focusFirst'](),_0x3d7c0d());}),this['keystrokes']['set']('esc',(_0x22ae10,_0x41bc67)=>{_0x51ab6f!==_0x22ae10['target']&&(this['focus'](),_0x41bc67());});}},Mn=class extends _0x3ad3dd{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[ln,_0x3c08c6,_0xfce073,_0x1643d3,_0x50a79c];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2c3268){super(_0x2c3268),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1a9ccd=this['editor']['config'];_0x1a9ccd['define']('trackChanges.SuggestionThreadView',yn),_0x1a9ccd['define']('trackChanges.SuggestionView',Sn),_0x1a9ccd['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1a9ccd['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x359c60,_0x5adea8){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x27f6b1,_0x543eba]of this['_handleControllerBuffer']){const _0xfe1bff=this['_suggestionToController']['has'](_0x27f6b1);_0xfe1bff||_0x543eba?_0xfe1bff&&_0x543eba&&this['_destroyController'](_0x27f6b1):this['_initializeController'](_0x27f6b1);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x50a79c)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x359c60,_0x5adea8);}init(){const _0x1a8ecc=this['editor'],_0x575f1f=_0x1a8ecc['plugins']['get'](ln),_0x54cf32=_0x1a8ecc['plugins']['get'](_0x1643d3),_0x3cbfa5=_0x1a8ecc['plugins']['get'](_0x50a79c),_0x14ec73=_0x1a8ecc['plugins']['get'](_0xfce073);this['_addUIComponentsToFactory'](),_0x3cbfa5['addSourceCollector'](()=>{const _0x4dc82a=[];for(const [_0x395efa,_0x550a35]of Array['from'](this['_suggestionToController'])){const _0x524c55=_0x395efa['getAllAdjacentSuggestions'](),_0x371645=[];for(const _0x3f75e3 of _0x524c55){if(!_0x3f75e3['isInContent'])continue;if(_0x3f75e3['isMultiRange']){_0x371645['push'](..._0x3f75e3['getRanges']());continue;}const _0x425978=_0x3f75e3['getFirstRange']();if(_0x371645['length']>0x0){const _0xcd0d43=_0x371645[0x0]['getJoined'](_0x425978);if(_0xcd0d43){_0x371645[0x0]=_0xcd0d43;continue;}}_0x371645['push'](_0x425978);}_0x4dc82a['push']([_0x550a35['view'],_0x371645]);}return _0x4dc82a;}),this['listenTo'](_0x575f1f,'suggestionLoaded',(_0x5430c2,_0x5abfcc)=>{this['listenTo'](_0x5abfcc,'change:previous',(_0x50b9dd,_0x3ccff3,_0x180382,_0x15d420)=>{_0x5abfcc['isInContent']&&(null==_0x180382?(this['_updateController'](_0x15d420['head']),this['_handleSuggestionControllerDelayed'](_0x5abfcc,!0x1)):(this['_updateController'](_0x180382['head']),null==_0x15d420&&this['_handleSuggestionControllerDelayed'](_0x5abfcc,!0x0)));}),null!==_0x5abfcc['previous']?this['_updateController'](_0x5abfcc['head']):this['_handleSuggestionControllerDelayed'](_0x5abfcc,!0x1);}),this['listenTo'](_0x575f1f,'suggestionUnloaded',(_0x41761f,_0x313abf,_0x298619)=>{this['stopListening'](_0x313abf,'change:previous'),this['_handleControllerBuffer']['delete'](_0x313abf),this['_suggestionToController']['has'](_0x313abf)&&this['_destroyController'](_0x313abf),_0x298619&&this['_updateController'](_0x298619['head']);}),this['listenTo'](_0x575f1f,'suggestionChanged',(_0x36500f,_0x181921)=>{this['_updateController'](_0x181921);}),this['listenTo'](_0x54cf32,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x14ec73,'addComment',(_0x278c5e,{threadId:_0x2b4d57,isFromAdapter:_0x4614c8})=>{if(_0x4614c8||!_0x575f1f['hasSuggestion'](_0x2b4d57))return;const _0x438bf7=_0x575f1f['getSuggestion'](_0x2b4d57);this['_suggestionToController']['get'](_0x438bf7)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x5472ba=[this['editor']];for(const _0x3ae998 of _0x5472ba){let _0x1c5cb2;for(const _0x50449b in _0x3ae998){const _0xd4a606=_0x50449b,_0x11f30b=_0x3ae998[_0xd4a606];if('trackChangesLicenseKeyValid'==_0x11f30b||'trackChangesLicenseKeyInvalid'==_0x11f30b||'trackChangesLicenseKeyExpired'==_0x11f30b||'trackChangesLicenseKeyDomainLimit'==_0x11f30b||'trackChangesLicenseKeyNotAllowed'==_0x11f30b||'trackChangesLicenseKeyEvaluationLimit'==_0x11f30b||'trackChangesLicenseKeyUsageLimit'==_0x11f30b){delete _0x3ae998[_0xd4a606],_0x1c5cb2=_0x11f30b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1c5cb2&&_0x3ae998['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1c5cb2&&_0x3ae998['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1c5cb2&&_0x3ae998['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1c5cb2&&_0x3ae998['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1c5cb2&&_0x3ae998['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1c5cb2&&_0x3ae998['_showLicenseError']('usageLimit');}},0x3e8);}getAnnotationForSuggestion(_0x35eebd){const _0x1d34b7=this['_suggestionToController']['get'](_0x35eebd);return _0x1d34b7&&this['editor']['plugins']['get'](_0x1643d3)['getByInnerView'](_0x1d34b7['view'])||null;}getSuggestionForAnnotation(_0x3f928e){const _0x21a309=this['_viewToController']['get'](_0x3f928e['innerView']);return _0x21a309?_0x21a309['model']:null;}_refreshActiveMarkers(){const _0x298d80=this['editor']['plugins']['get'](_0x1643d3),_0x1f2fa1=this['editor']['plugins']['get'](ln),_0x4620da=Array['from'](_0x298d80['activeAnnotations'],_0xf4d49=>_0xf4d49['innerView'])['filter'](_0x561e3c=>this['_viewToController']['has'](_0x561e3c)),_0x474999=[];for(const _0x4f4ec5 of _0x4620da){const _0x5111b0=this['_viewToController']['get'](_0x4f4ec5)['model']['getAllAdjacentSuggestions']();_0x474999['push'](..._0x5111b0['reduce']((_0x6b8ed8,_0x33d2ce)=>[..._0x6b8ed8,..._0x33d2ce['getMarkerNames']()],[]));}_0x1f2fa1['activeMarkers']=_0x474999;}_addUIComponentsToFactory(){const _0x38695d=this['editor'],_0x3f393f=_0x38695d['locale'],_0x1620b2=wt(_0x3f393f,'Track\x20changes'),_0x5f1a81=new _0x4aa878([{'type':'switchbutton','model':new _0xb9049e({'withText':!0x0,'isToggleable':!0x0,'label':_0x1620b2,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xb9049e({'withText':!0x0,'label':wt(_0x3f393f,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xb9049e({'withText':!0x0,'label':wt(_0x3f393f,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xb9049e({'withText':!0x0,'label':wt(_0x3f393f,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xb9049e({'withText':!0x0,'label':wt(_0x3f393f,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x38695d['plugins']['has']('TrackChangesPreview')&&_0x5f1a81['addMany']([{'type':'separator'},{'type':'button','model':new _0xb9049e({'withText':!0x0,'label':wt(_0x3f393f,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x459560 of _0x5f1a81)if(On(_0x459560)){const _0xdab0ca=_0x38695d['commands']['get'](_0x459560['model']['commandName']);_0x459560['model']['bind']('isOn','isEnabled')['to'](_0xdab0ca,'value','isEnabled');}_0x38695d['ui']['componentFactory']['add']('trackChanges',_0x20073e=>this['_createToolbarButton'](_0x20073e,_0x5f1a81,_0x1620b2)),_0x38695d['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3c5e87=>this['_createMenuBarMenu'](_0x3c5e87,_0x5f1a81,_0x1620b2));}_createToolbarButton(_0x30e936,_0x4fa9d5,_0xf641cb){const _0x153a57=_0x2ba453(_0x30e936,_0xb7a463),_0x2af50b=this['editor']['commands']['get']('trackChanges');_0x153a57['buttonView']['set']({'tooltip':_0xf641cb,'label':_0xf641cb,'icon':_0x24cb40}),_0x153a57['buttonView']['bind']('isOn')['to'](_0x2af50b,'value'),_0x153a57['buttonView']['on']('execute',()=>{_0x2af50b['execute'](),this['editor']['editing']['view']['focus']();}),_0x30d71f(_0x153a57,_0x4fa9d5,{'role':'menu'});const _0x298da8=[];for(const _0x3f76ea of _0x4fa9d5)On(_0x3f76ea)&&_0x298da8['push'](this['editor']['commands']['get'](_0x3f76ea['model']['commandName']));const _0x211cbc=_0x153a57['buttonView'];return _0x211cbc['actionView']['unbind']('isEnabled'),_0x211cbc['arrowView']['unbind']('isEnabled'),_0x211cbc['actionView']['bind']('isEnabled')['to'](_0x2af50b,'isEnabled'),_0x211cbc['arrowView']['bind']('isEnabled')['toMany'](_0x298da8,'isEnabled',(..._0x469059)=>_0x469059['some'](_0x3fac85=>_0x3fac85)),_0x153a57['on']('execute',_0x52abb9=>{this['editor']['execute'](_0x52abb9['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x153a57;}_createMenuBarMenu(_0x1ce14a,_0x22079b,_0x503fc1){const _0x24ac75=new _0x4d2928(_0x1ce14a),_0x12b34d=this['editor']['commands']['get']('trackChanges');_0x24ac75['buttonView']['set']({'label':_0x503fc1,'icon':_0x24cb40});const _0x4fd4e9=new _0x900833(_0x1ce14a);for(const _0x286468 of _0x22079b){if('separator'==_0x286468['type']){_0x4fd4e9['items']['add'](new _0x11e989(_0x1ce14a));continue;}const _0x4e652b=new _0x2d7c90(_0x1ce14a,_0x24ac75),_0x4cd36e=new _0x69ecc9(_0x1ce14a),_0x433489=_0x286468['model'];_0x4cd36e['bind'](...Object['keys'](_0x433489))['to'](_0x433489),_0x4cd36e['delegate']('execute')['to'](_0x24ac75),_0x4cd36e['on']('execute',()=>{this['editor']['execute'](_0x433489['commandName']),this['editor']['editing']['view']['focus']();}),_0x4e652b['children']['add'](_0x4cd36e),_0x4fd4e9['items']['add'](_0x4e652b);}return _0x24ac75['bind']('isEnabled')['to'](_0x12b34d,'isEnabled'),_0x24ac75['panelView']['children']['add'](_0x4fd4e9),_0x24ac75;}_initializeController(_0x5d99b9){const _0x1c4933=this['editor'],_0x1da615=_0x1c4933['config'],_0x4528be=_0x1c4933['plugins']['get'](_0x1643d3),_0x33477d=_0x1c4933['plugins']['get'](_0xfce073),_0x32568f=_0x1c4933['plugins']['get'](_0x50a79c),_0xb23607=_0x1c4933['plugins']['get'](_0x3c08c6)['me'],_0x39889e=_0x1da615['get']('trackChanges')['SuggestionThreadView'],_0x1fb858=_0x1da615['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x587b25,CommentThreadInputView:_0xd84c9a}=_0x1c4933['plugins']['get']('CommentsUI');let _0x10629d,_0x43a7b7,_0x154902;this['_annotationViews']['has'](_0x5d99b9['id'])?(_0x43a7b7=this['_annotationViews']['get'](_0x5d99b9['id']),_0x10629d=_0x43a7b7['mainView']):(_0x10629d=new _0x39889e(_0x1c4933['locale'],_0x5d99b9,_0xb23607,{'disableComments':this['_disableComments'],'editorConfig':{..._0x1da615['get']('comments.editorConfig'),'licenseKey':_0x1da615['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x1da615['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1da615['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1da615['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x8744f6(_0x1da615['get']('locale'),_0x1c4933['locale']),'CommentView':_0x1da615['get']('comments')['CommentView'],'CommentsListView':_0x587b25,'CommentThreadInputView':_0xd84c9a,'SuggestionView':_0x1fb858,'showAISource':_0x1da615['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x1da615['get']('trackChanges.aiAuthor'),'name':_0x1da615['get']('trackChanges.aiAuthor')?.['name']||wt(_0x1c4933['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x10629d['suggestionView']['acceptButton']['on']('execute',()=>{_0x1c4933['editing']['view']['focus']();}),_0x10629d['suggestionView']['discardButton']['on']('execute',()=>{_0x1c4933['editing']['view']['focus']();}),_0x43a7b7=_0x4528be['createAnnotationView'](this['editor']['locale'],_0x10629d),_0x43a7b7['bind']('isDirty')['to'](_0x10629d,'isDirty'),_0x43a7b7['bind']('length')['to'](_0x10629d),_0x43a7b7['bind']('type')['to'](_0x10629d,'type',_0x784dc0=>'suggestion-'+_0x784dc0),_0x10629d['on']('escape',()=>{_0x154902['fire']('escape');}),this['_annotationViews']['set'](_0x5d99b9['id'],_0x43a7b7));const _0x5d15d9=_0x33477d['createCommentThreadController'](_0x5d99b9['commentThread'],_0x10629d),_0xc43ff1=new Rn(_0x1c4933,_0x5d99b9,_0x10629d,_0x5d15d9),_0x59d9b8=_0x5d99b9['getAllAdjacentSuggestions']()['filter'](_0x4e4eff=>_0x4e4eff['isInContent']);_0x10629d['descriptionParts']=_0x1c4933['plugins']['get'](ln)['descriptionFactory']['getDescriptions'](_0x59d9b8),this['_suggestionToController']['set'](_0x5d99b9,_0xc43ff1),this['_viewToController']['set'](_0x10629d,_0xc43ff1);const _0x1b1c15=()=>{const _0x184000=[],_0x5f0348=_0x5d99b9['getAllAdjacentSuggestions']()['filter'](_0x24ac5a=>_0x24ac5a['isInContent']);for(const _0x405b57 of _0x5f0348)_0x184000['push'](..._0x405b57['getMarkers']());return _0x461e04(_0x1c4933['editing'],_0x184000);};_0x154902=_0x4528be['createAnnotation']({'view':_0x43a7b7,'target':_0x1b1c15,'type':()=>'suggestion-'+_0xc43ff1['view']['type'],'isVisible':!!_0x1b1c15()}),_0x33477d['_bindAnnotationToEditors'](_0x10629d,_0x154902),_0x4528be['add'](_0x154902),_0x32568f['registerAnnotation'](_0x154902);}_destroyController(_0x27f622){const _0xaa5a28=this['editor']['plugins']['get'](_0xfce073),_0x2db8ae=this['editor']['plugins']['get'](_0x1643d3),_0x30d743=this['_suggestionToController']['get'](_0x27f622),_0x4d514a=_0x30d743['view'],_0xf24107=_0x2db8ae['getByInnerView'](_0x4d514a);_0xaa5a28['_unbindEditors'](_0x4d514a),_0xf24107&&_0x2db8ae['remove'](_0xf24107),this['_suggestionToController']['delete'](_0x27f622),this['_viewToController']['delete'](_0x4d514a),_0x30d743['destroy']();}_updateController(_0x30cf7d){if(!_0x30cf7d['isInContent']||!this['_suggestionToController']['has'](_0x30cf7d))return;const _0x229849=this['editor']['plugins']['get'](ln),_0x3b9edd=this['_suggestionToController']['get'](_0x30cf7d),_0x244f1f=_0x30cf7d['getAllAdjacentSuggestions']();_0x3b9edd['view']['descriptionParts']=_0x229849['descriptionFactory']['getDescriptions'](_0x244f1f);}destroy(){for(const _0x44194c of this['_suggestionToController']['keys']())this['_destroyController'](_0x44194c);for(const _0x17fc21 of this['_annotationViews']['values']())_0x17fc21['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function On(_0x2e55b2){return'model'in _0x2e55b2;}var wn=class extends _0x3ad3dd{static get requires(){return[ln,Mn,_0x50e028];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0x530b69){this['editor']['plugins']['get'](ln)['adapter']=_0x530b69;}get adapter(){return this['editor']['plugins']['get'](ln)['adapter'];}addSuggestion(_0x3cf91e){return this['editor']['plugins']['get'](ln)['addSuggestionData'](_0x3cf91e);}getSuggestions({skipNotAttached:_0x2429a6=!0x1,toJSON:_0x2d7559=!0x1}={}){return this['editor']['plugins']['get'](ln)['getSuggestions']({'skipNotAttached':_0x2429a6,'toJSON':_0x2d7559});}getSuggestion(_0xf430fd){return this['editor']['plugins']['get'](ln)['getSuggestion'](_0xf430fd);}};const Bn=['Pagination'];var Fn=class extends _0x3ad3dd{static get requires(){return[ln];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x36c8da=this['editor'];if(_0x36c8da['config']['define']('trackChangesData.editorCreator',_0x63c994=>{const _0x5c9402=_0x36c8da['model']['document']['getRootNames']()['reduce']((_0x570286,_0x101adc)=>(_0x570286[_0x101adc]='',_0x570286),{});return _0x36c8da['constructor']['create'](_0x5c9402,_0x63c994);}),'function'!=typeof _0x36c8da['config']['get']('trackChangesData')['editorCreator'])throw new _0x288763('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0x51c011){return Un(this['editor'],!0x0,_0x51c011);}getDataWithDiscardedSuggestions(_0xd64c20){return Un(this['editor'],!0x1,_0xd64c20);}},vn=class extends _0x3ad3dd{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x524920){super(_0x524920),this['result']='end',_0x524920['editing']['view']['_overlayModeHint']='auto',_0x524920['_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 Dn(_0x48a185){return void 0x0!==_0x48a185['getRootsAttributes'];}async function Un(_0xecbfef,_0x2bda45,_0x4b7f98){const _0x35cfcb=tt(_0xecbfef,Bn);if(_0x35cfcb['plugins']['push'](ln,vn),Dn(_0xecbfef)){_0x35cfcb['roots']=Object['create'](null);for(const _0x743811 of _0xecbfef['model']['document']['getRootNames']())_0x35cfcb['roots'][_0x743811]={'modelAttributes':_0xecbfef['getRootAttributes'](_0x743811)};}const _0x3b2ee1=document['createDocumentFragment'](),_0x5272d9=_0xecbfef['config']['get']('trackChangesData')['editorCreator'],_0x34b337=await _0x5272d9(_0x35cfcb,()=>function(_0x3122a7){const _0x13b487=document['createElement']('div');return _0x3122a7['appendChild'](_0x13b487),_0x13b487;}(_0x3b2ee1));!function(_0x3f1c0e,_0x108beb){const _0x178aa5=_0x3f1c0e['model']['document']['getRootNames']()['reduce']((_0x52e0f2,_0x34bb81)=>(_0x52e0f2[_0x34bb81]=_0x3f1c0e['data']['get']({'rootName':_0x34bb81}),_0x52e0f2),{}),_0x5c52bf=_0x3f1c0e['plugins']['get']('Users')['users']['map'](_0x31f911=>({'id':_0x31f911['id'],'name':_0x31f911['name']})),_0x5cba30=_0x3f1c0e['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x44e1d6=_0x3f1c0e['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x74333d=_0x108beb['plugins']['get']('Users'),_0x346423=_0x108beb['plugins']['get']('TrackChangesEditing'),_0x48046f=_0x108beb['plugins']['get']('CommentsRepository');for(const _0x317d4e of _0x48046f['getCommentThreads']())_0x317d4e['remove']();for(const _0xc9c852 of _0x5c52bf)_0x74333d['getUser'](_0xc9c852['id'])||_0x74333d['addUser'](_0xc9c852);_0x74333d['me']||_0x74333d['useAnonymousUser']();for(const _0x3907f2 of _0x44e1d6)_0x48046f['addCommentThread'](_0x3907f2);for(const _0x6baec0 of _0x5cba30)_0x346423['addSuggestionData'](_0x6baec0);_0x108beb['data']['set'](_0x178aa5);}(_0xecbfef,_0x34b337),_0x34b337['execute'](_0x2bda45?'acceptAllSuggestions':'discardAllSuggestions');const _0x55ef57=Dn(_0x34b337)?_0x34b337['getFullData'](_0x4b7f98):_0x34b337['data']['get'](_0x4b7f98);return await _0x34b337['destroy'](),_0x55ef57;}var Pn=class extends _0x2e02d5{options;constructor(_0x23b4d8,_0x502304){super(_0x23b4d8),this['options']=_0x502304,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(_0x2b2eb2,_0x2852dc){if(!this['element'])return;const _0x5133e0=[];for(const [_0x241775,_0x57427a]of _0x2b2eb2){const _0x50f3aa=document['createElement']('div');_0x50f3aa['setAttribute']('data-ck-root-name',_0x241775),_0x50f3aa['className']=_0x57427a['classes']+'\x20ck-track-changes-preview__root-container',_0x50f3aa['innerHTML']=_0xfe69fd(_0x57427a['content']),_0x5133e0['push'](_0x50f3aa);}_0x2852dc(this['element'],_0x5133e0),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},xn=class extends _0x38838e{constructor(_0x58f14f){super(_0x58f14f),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0xba0686=this['editor'],_0x55a763=_0xba0686['locale'],_0x362ef2=_0xba0686['plugins']['get']('Dialog');let _0x5d0ae7;const _0x5afc83=function(_0x1ce3ec){const _0x248c6b={};if('editables'in _0x1ce3ec['ui']['view']){for(const [_0x4527c9,_0xce9cd4]of Object['entries'](_0x1ce3ec['ui']['view']['editables']))_0x248c6b[_0x4527c9]=_0xce9cd4['element'];}else _0x248c6b[_0x1ce3ec['model']['document']['getRootNames']()[0x0]]=_0x1ce3ec['ui']['view']['editable']['element'];return _0x248c6b;}(_0xba0686),_0x30f4e2=function(_0x47c657){let _0x397b6e=0x0;for(const _0x5e86c8 of Object['values'](_0x47c657))_0x397b6e=Math['max'](_0x397b6e,_0x5e86c8['getBoundingClientRect']()['width']);let _0x94abb8=0x0;for(const _0x587a3c of Object['values'](_0x47c657))_0x94abb8+=_0x587a3c['getBoundingClientRect']()['height'];const _0x3d9fd9=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x397b6e,'height':Math['min'](_0x94abb8,_0x3d9fd9)};}(_0x5afc83);_0x362ef2['show']({'id':'finalContentPreview','title':wt(_0x55a763,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Pn(_0x55a763,{'dialogRects':_0x30f4e2}),'onHide':()=>{_0x5d0ae7['destroy']();},'onShow':()=>{_0xba0686['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x26dcbb=>{const _0x386a85=this['_standarizeRootsData'](_0x26dcbb,_0xba0686,_0x5afc83);_0x362ef2['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x386a85,_0xba0686['config']['get']('trackChanges.preview.renderFunction'));}),_0x5d0ae7=new _0xd22b59(_0x55a763,[_0x362ef2['view']]),_0x5d0ae7['attachToDom'](_0xba0686['ui']['view']['body']['mountTarget']),_0x5d0ae7['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0xba0686['once']('destroy',()=>{_0x5d0ae7['destroy']();});const _0x4c40e7=_0x362ef2['view']['headerView']['class'];_0x362ef2['view']['headerView']['class']=_0x4c40e7?_0x4c40e7+'\x20ck-reset_all':'ck-reset_all',_0x362ef2['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x362ef2['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x471ac6=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x5b0055=_0x471ac6['previewMode'],_0x1def71={};if('$labels'===_0x5b0055){for(const _0x2cb26c of _0x471ac6['getMergeFieldsIds']())_0x1def71[_0x2cb26c]=_0x471ac6['getLabel'](_0x2cb26c)||_0x2cb26c;}else{const _0x32f3de='$defaultValues'===_0x5b0055?_0x471ac6['getDefaultValues']():_0x471ac6['getDataSetValues'](_0x5b0055,!0x0);for(const _0x500e06 of Object['entries'](_0x32f3de)){const [_0xbcdb4f,_0x537373]=_0x500e06;_0x1def71[_0xbcdb4f]=null!==_0x537373?_0x537373:_0x471ac6['getLabel'](_0xbcdb4f)||_0xbcdb4f;}}return{'mergeFieldsData':_0x1def71};}_standarizeRootsData(_0x416705,_0x5344f3,_0xd4f8c4){let _0x198691;_0x198691='string'==typeof _0x416705?{[_0x5344f3['model']['document']['getRootNames']()[0x0]]:_0x416705}:_0x416705;const _0x1f7a19=this['_fixMediaEmbeds'](_0x198691,_0x5344f3);return function(_0x109516,_0xf9bdef){for(const [_0x3dd74a,_0x1820d1]of _0x109516)_0x1820d1['classes']=_0xf9bdef[_0x3dd74a]['classList']['value']['replace']('ck-focused','');return _0x109516;}(this['_sortRoots'](_0x5344f3)['reduce']((_0x166c78,_0xf02504)=>(_0x166c78['push']([_0xf02504,{'content':_0x1f7a19[_0xf02504],'classes':''}]),_0x166c78),[]),_0xd4f8c4);}['_fixMediaEmbeds'](_0x20b15a,_0x52e5ee){if(!_0x52e5ee['plugins']['has']('MediaEmbedEditing'))return _0x20b15a;const _0x18698f=_0x52e5ee['plugins']['get']('MediaEmbedEditing');for(const [_0xfdb1b7,_0x3309e3]of Object['entries'](_0x20b15a)){const _0x33685e=document['createElement']('div');_0x33685e['innerHTML']=_0xfe69fd(_0x3309e3),_0x33685e['querySelectorAll']('figure.media')['forEach'](_0x41bce7=>{const _0x412bbd=_0x41bce7['querySelector']('oembed');if(_0x412bbd){const _0x5232b3=_0x412bbd['getAttribute']('url');if(_0x5232b3){const _0x148840=_0x18698f['registry']['getMediaViewElement'](new ct(_0x52e5ee['editing']['view']['document']),_0x5232b3,{'elementName':'','renderForEditingView':!0x0}),_0x4250f2=document['createElement']('div');_0x4250f2['classList']['add']('ck-media__wrapper'),_0x148840['render'](_0x4250f2,_0x52e5ee['editing']['view']['domConverter']),_0x412bbd['replaceWith'](_0x4250f2);}}}),_0x20b15a[_0xfdb1b7]=_0x33685e['innerHTML'];}return _0x20b15a;}_sortRoots(_0x266ab0){if(!function(_0x45cc4a){return void 0x0!==_0x45cc4a['getRootsAttributes'];}(_0x266ab0))return _0x266ab0['model']['document']['getRootNames']();const _0x55fdef=[],_0x56192e=new Map();for(const _0x415af0 of _0x266ab0['model']['document']['getRootNames']()){const _0x591ca3=_0x266ab0['editing']['view']['getDomRoot'](_0x415af0)['getClientRects']()['item'](0x0);_0x55fdef['push'](_0x415af0),_0x56192e['set'](_0x415af0,_0x591ca3);}return _0x55fdef['sort']((_0x35fd1a,_0x4edfdb)=>{const _0xdf6195=_0x56192e['get'](_0x35fd1a),_0x576f60=_0x56192e['get'](_0x4edfdb);return _0xdf6195['y']-_0x576f60['y']||_0xdf6195['x']-_0x576f60['x'];}),_0x55fdef;}},Gn=class extends _0x3ad3dd{static get requires(){return[Fn,_0x19fe33];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4626ef){super(_0x4626ef),_0x4626ef['commands']['add']('previewFinalContent',new xn(this['editor'])),_0x4626ef['config']['define']('trackChanges.preview.renderFunction',(_0x120ecc,_0x16ae24)=>{for(const _0x269ae5 of _0x16ae24)_0x120ecc['appendChild'](_0x269ae5);});}};export{Lt as AcceptSuggestionCommand,Nn as BaseSuggestionThreadView,It as DiscardSuggestionCommand,yt as ExecuteOnAllSuggestionsCommand,St as ExecuteOnSelectedSuggestionsCommand,xn as PreviewFinalContentCommand,Ot as Suggestion,Bt as SuggestionDescriptionFactory,yn as SuggestionThreadView,Sn as SuggestionView,wn as TrackChanges,pt as TrackChangesCommand,Fn as TrackChangesData,vn as TrackChangesDataGetter,ln as TrackChangesEditing,Gn as TrackChangesPreview,Mn as TrackChangesUI};
23
+ import{Command as _0x3f1090,PendingActions as _0x36758c,Plugin as _0x183f88}from'@ckeditor/ckeditor5-core';import{Annotations as _0x4b244e,Comments as _0x2c0c25,CommentsRepository as _0x5197b4,EditorAnnotations as _0x36e8c7}from'@ckeditor/ckeditor5-comments';import{CKEditorError as _0x4a2c66,Collection as _0x53037b,FocusTracker as _0x541fa6,KeystrokeHandler as _0x12a3e0,ObservableMixin as _0x5e7ece,getEnvKeystrokeText as _0x593510,insertToPriorityArray as _0x3f5fbc,logWarning as _0x5600d2,priorities as _0x4d85be,trustedHtml as _0x22f8b0,uid as _0x1172bd}from'@ckeditor/ckeditor5-utils';import{IconAIAuthor as _0x4a5400,IconCancel as _0x5cb59d,IconCheck as _0x5378a4,IconSparkle as _0x1e0692,IconTrackChanges as _0x104355}from'@ckeditor/ckeditor5-icons';import{BodyCollection as _0x64505f,Dialog as _0x17b624,FocusCycler as _0x23b8d0,ListSeparatorView as _0x518678,MenuBarMenuListItemButtonView as _0x1e5915,MenuBarMenuListItemView as _0x417d65,MenuBarMenuListView as _0x4d394f,MenuBarMenuView as _0x3b404a,SplitButtonView as _0x100bf8,UIModel as _0x2ace52,View as _0x11cf3b,ViewCollection as _0x2f61b8,_getLocalizedColorName as _0x5edaf3,addListToDropdown as _0x1c31eb,createDropdown as _0x57750a,normalizeColorOptions as _0x87e827}from'@ckeditor/ckeditor5-ui';import{AriaDescriptionView as _0x1ebf89,CollaborationUserColor as _0x1d4191,FOCUS_ANNOTATION_KEYSTROKE as _0x3aea87,LateFocusButtonView as _0xcbb2d1,PillView as _0x5d0613,SuggestionsConversion as _0x131b84,User as _0x3d00b7,UserView as _0x851ae0,Users as _0xd2b39a,fixElementSuggestionRange as _0x147493,getAllMarkersDomElementsSorted as _0x486d5,getDateTimeFormatter as _0xd57683,hashObject as _0x755104,isInvalidAttributeOperation as _0xb57974,sanitizeEditorConfig as tt,setupThreadKeyboardNavigation as et,splitSuggestionMarkerName as nt,surroundingMarkersDetector as it,trimHtml as st}from'@ckeditor/ckeditor5-collaboration-core';import{ModelElement as rt,ModelLivePosition as ot,ModelLiveRange as at,ViewDowncastWriter as ct}from'@ckeditor/ckeditor5-engine';import{cloneDeep as lt,isEqual as ut,omit as dt,set as ht,unset as gt}from'es-toolkit/compat';import{ClipboardMarkersUtils as ft,ClipboardPipeline as mt}from'@ckeditor/ckeditor5-clipboard';import{Delete as Et,Input as Tt}from'@ckeditor/ckeditor5-typing';import{Enter as _t}from'@ckeditor/ckeditor5-enter';var pt=class extends _0x3f1090{['_enabledCommands'];constructor(_0x3dd4ae,_0x472aea){super(_0x3dd4ae),this['_enabledCommands']=_0x472aea,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 _0x13a2f1 of this['editor']['commands']['commands']())_0x13a2f1['affectsData']&&!this['_enabledCommands']['has'](_0x13a2f1)&&_0x13a2f1['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4a583e of this['editor']['commands']['commands']())_0x4a583e['affectsData']&&!this['_enabledCommands']['has'](_0x4a583e)&&_0x4a583e['clearForceDisabled']('TrackChangesCommand');}},Lt=class extends _0x3f1090{_suggestions;constructor(_0x4b1c06,_0x5cf656){super(_0x4b1c06),this['_suggestions']=_0x5cf656,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x1a9181){const _0x4fd601=this['_suggestions']['get'](_0x1a9181);if(!_0x4fd601)throw new _0x4a2c66('track-changes-accept-suggestion-not-found',this);const _0x254338=_0x4fd601['getRanges']();this['editor']['model']['canEditAt'](_0x254338)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4fd601);}},It=class extends _0x3f1090{_suggestions;constructor(_0x46bb56,_0x3a617b){super(_0x46bb56),this['_suggestions']=_0x3a617b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x11ac62){const _0x51ef9e=this['_suggestions']['get'](_0x11ac62);if(!_0x51ef9e)throw new _0x4a2c66('track-changes-discard-suggestion-not-found',this);const _0x2bae8e=_0x51ef9e['getRanges']();this['editor']['model']['canEditAt'](_0x2bae8e)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x51ef9e);}};function At(_0x10b998,_0x142dd9){let _0x22c34e='';return _0x22c34e+=_0x10b998['split']('*')['map']((_0x3ca84d,_0x45d151)=>_0x45d151%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+bt(_0x3ca84d)+'</span>':bt(_0x3ca84d))['join'](''),_0x142dd9&&(_0x22c34e+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x142dd9['value']+'\x22\x20title=\x22'+_0x142dd9['title']+'\x22></span>'),_0x22c34e;}function bt(_0x2f1dee){const _0x38f721=document['createElement']('span');return _0x38f721['innerText']=_0x2f1dee,_0x38f721['innerHTML'];}function Ct(_0x5aef7f){return _0x5aef7f['sort']((_0x10ed52,_0x37232c)=>'attribute'===_0x10ed52['type']&&'attribute'!==_0x37232c['type']?-0x1:'attribute'!==_0x10ed52['type']&&'attribute'===_0x37232c['type']?0x1:'deletion'==_0x10ed52['type']&&'deletion'!=_0x37232c['type']?-0x1:'deletion'!=_0x10ed52['type']&&'deletion'==_0x37232c['type']?0x1:0x0);}function kt(_0x5bb140,_0x3ed65f){let _0x10ca1a,_0x514c65=0x0;const _0xb62ea0=[],_0x5aabeb=_0x3ed65f['schema'];for(;_0x514c65<_0x5bb140['length'];){const _0x3abc9e=_0x5bb140[_0x514c65],_0x20de38=_0x5bb140[_0x514c65+0x1];_0x10ca1a||(_0x10ca1a=_0x3ed65f['createPositionBefore'](_0x3abc9e)),Rt(_0x3ed65f,_0x3abc9e,_0x20de38)||(_0xb62ea0['push'](_0x3ed65f['createRange'](_0x10ca1a,_0x5aabeb['isObject'](_0x3abc9e)?_0x3ed65f['createPositionAfter'](_0x3abc9e):_0x3ed65f['createPositionAt'](_0x3abc9e,'end'))),_0x10ca1a=null),_0x514c65++;}return _0xb62ea0;}function Rt(_0x44c1cf,_0x272494,_0x38e7a4){if(!_0x38e7a4)return!0x1;const _0x333550=_0x44c1cf['createPositionAfter'](_0x272494),_0x579b68=_0x44c1cf['createPositionBefore'](_0x38e7a4);return _0x333550['isTouching'](_0x579b68);}function Nt(_0x48dc0c,_0x30c0d5,_0x23290e){for(;_0x23290e['length'];){const _0x2fe286=_0x23290e['splice'](0x0,0x64);_0x48dc0c['change'](()=>{for(const _0x4a3ce4 of _0x2fe286)_0x4a3ce4['isInContent']&&_0x30c0d5['execute'](_0x4a3ce4['id']);});}}var yt=class extends _0x3f1090{['_command'];_suggestions;constructor(_0x4c83f0,_0x46b1c1,_0x1e221d){super(_0x4c83f0),this['_command']=_0x46b1c1,this['_suggestions']=_0x1e221d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3bd073=Array['from'](this['_suggestions']['values']())['some'](_0x293ce0=>_0x293ce0['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3bd073;}execute(){const _0x543ec7=Ct(Array['from'](this['_suggestions']['values']()));for(const _0x5e507a of _0x543ec7){const _0x244c42=_0x5e507a['getRanges']();if(!this['editor']['model']['canEditAt'](_0x244c42))return;}Nt(this['editor']['model'],this['_command'],_0x543ec7);}},St=class extends _0x3f1090{['_command'];_suggestions;_selectedSuggestions;constructor(_0x4ce6d2,_0x504e71,_0x26355b){super(_0x4ce6d2),this['_command']=_0x504e71,this['_suggestions']=_0x26355b,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1e50b1=this['editor']['model']['document']['selection'],_0x40dc27=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3d771a,_0x12e049){const _0x36f9bc=Array['from'](_0x3d771a['getRanges']()),_0x2d98ee=new Set();for(const _0x57feae of _0x12e049)if(_0x57feae['isInContent']){for(const _0x32edf7 of _0x36f9bc)for(const _0x3431ec of _0x57feae['getRanges']())(_0x32edf7['isIntersecting'](_0x3431ec)||_0x3d771a['isCollapsed']&&!_0x57feae['isMultiRange']&&_0x57feae['next']&&_0x3431ec['end']['isTouching'](_0x32edf7['start']))&&_0x2d98ee['add'](_0x57feae);}return _0x2d98ee;}(_0x1e50b1,_0x40dc27),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}execute(){const _0x5787af=Ct(Array['from'](this['_selectedSuggestions']));for(const _0x175dc1 of _0x5787af){const _0x38d8dc=_0x175dc1['getRanges']();if(!this['editor']['model']['canEditAt'](_0x38d8dc))return;}Nt(this['editor']['model'],this['_command'],_0x5787af);}};const Mt=/* #__PURE__ -- @preserve */
24
+ _0x5e7ece();var Ot=class Suggestion extends Mt{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0x350b1b,_0x9e0e0){super(),this['id']=_0x9e0e0['id'],this['type']=_0x9e0e0['type'],this['subType']=_0x9e0e0['subType']||null,this['author']=_0x9e0e0['author'],this['creator']=_0x9e0e0['creator']||_0x9e0e0['author'],this['data']=null,this['_originalSuggestionId']=_0x9e0e0['originalSuggestionId']||null,this['_model']=_0x350b1b,this['_onAccept']=_0x9e0e0['onAccept'],this['_onDiscard']=_0x9e0e0['onDiscard'],this['_onAttributesChange']=_0x9e0e0['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x9e0e0['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 _0x4afa00=this;for(;_0x4afa00['previous'];)_0x4afa00=_0x4afa00['previous'];return _0x4afa00;}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'](_0x30dec9){this['_markerNames']['add'](_0x30dec9);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0x1ff40b=>this['_model']['markers']['get'](_0x1ff40b))['filter'](_0xf873c6=>_0xf873c6);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x250ce8=>{for(const _0x58a538 of this['getMarkers']())_0x250ce8['removeMarker'](_0x58a538);}),this['_markerNames']['clear']();}['removeMarker'](_0x1753ed){this['_model']['change'](_0x5a60ea=>{_0x5a60ea['removeMarker'](_0x1753ed);}),this['_markerNames']['delete'](_0x1753ed);}['addRange'](_0x1d6364){const _0xc81652='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0xc81652),this['_model']['change'](_0x5e22d6=>{_0x5e22d6['addMarker'](_0xc81652,{'range':_0x1d6364,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0x545730){for(const _0x106c70 of this['getRanges']())if(_0x106c70['isIntersecting'](_0x545730))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0xf16b87=>_0xf16b87['getRange']());}getItems(){return this['getRanges']()['reduce']((_0x190ae3,_0x3cdb90)=>[..._0x190ae3,..._0x3cdb90['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0x43e3c1=this['getRanges']();if(0x1!=_0x43e3c1['length'])return null;const _0x1f8651=_0x43e3c1[0x0],_0x5e1742=_0x1f8651['start']['nodeAfter'],_0x13751d=_0x1f8651['end']['nodeBefore'];return _0x5e1742 instanceof rt?_0x5e1742!=_0x13751d?null:_0x5e1742: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 _0xf8eade=[];let _0x200fda=this['head'];for(;_0x200fda;)_0xf8eade['push'](_0x200fda),_0x200fda=_0x200fda['next'];return _0xf8eade;}setAttribute(_0x24178b,_0xa8e7d6){const _0x555bb4=lt(this['attributes']);ht(_0x555bb4,_0x24178b,_0xa8e7d6),ut(_0x555bb4,this['attributes'])||(this['attributes']=_0x555bb4,this['_onAttributesChange'](_0x555bb4));}removeAttribute(_0x598e7d){const _0x55138f=lt(this['attributes']);gt(_0x55138f,_0x598e7d),ut(_0x55138f,this['attributes'])||(this['attributes']=_0x55138f,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 _0x1172bd()['substr'](0x1,0x5);}};function wt(_0xd86e78,_0x28d511,_0x42696f){const _0xb771e8=_0xd86e78['t'],t=_0xd86e78['t'];switch(_0x28d511){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',_0x42696f);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x42696f);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x42696f);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x42696f);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x42696f);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',_0x42696f);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x42696f);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',_0x42696f);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x42696f);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x42696f);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x42696f);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x42696f);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x42696f);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x42696f);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x42696f);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x42696f);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x42696f);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x42696f);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x42696f);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x42696f);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x42696f);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x42696f);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x42696f);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x42696f);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x42696f);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'},_0x42696f);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x42696f);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x42696f);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x42696f);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x42696f);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x42696f);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x42696f);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x42696f);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'},_0x42696f);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'},_0x42696f);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x42696f);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x42696f);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x42696f);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x42696f);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'},_0x42696f);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x42696f);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'},_0x42696f);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'},_0x42696f);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x42696f);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'},_0x42696f);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x42696f);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'},_0x42696f);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x42696f);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x42696f);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x42696f);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x42696f);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x42696f);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'},_0x42696f);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x42696f);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 _0xb771e8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x42696f);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0xb771e8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x42696f);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x42696f);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'},_0x42696f);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'},_0x42696f);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'},_0x42696f);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});case'SUGGESTION_ACTIONS_DISABLED_TOOLTIP':return t({'string':'This\x20suggestion\x20can\x27t\x20be\x20resolved\x20right\x20now.','id':'SUGGESTION_ACTIONS_DISABLED_TOOLTIP'});default:return _0x28d511;}}var Bt=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0x2d5869,_0x261c6d){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2d5869,this['_locale']=_0x261c6d;}getDescriptions(_0x3da9d3){const _0x249da7=[],_0x4dc93=new Set(),_0x5b392d=new Set();for(let _0x4b3886=0x0;_0x4b3886<_0x3da9d3['length'];_0x4b3886++){const _0x3de273=_0x3da9d3[_0x4b3886];if(!_0x3de273['isInContent'])continue;const _0x2335f6=this['_handleCustomCallbackDescription'](_0x3de273);if(_0x2335f6){if(null!=_0x3de273['subType']){if(_0x4dc93['has'](_0x3de273['subType']))continue;_0x4dc93['add'](_0x3de273['subType']);}_0x249da7['push'](_0x2335f6);}else{if('attribute'==_0x3de273['type']){const _0x566447=_0x3de273['data']['key'];if(_0x5b392d['has'](_0x566447))continue;_0x5b392d['add'](_0x3de273['data']['key']),'$elementName'==_0x566447?this['_handleRenameSuggestionDescription'](_0x249da7,_0x3de273):this['_handleAttributeSuggestionDescription'](_0x249da7,_0x3de273);continue;}'insertion'!=_0x3de273['type']&&'deletion'!=_0x3de273['type']||this['_handleInsertRemoveSuggestionDescription'](_0x249da7,_0x3de273,_0x3da9d3[_0x4b3886+0x1]);}}return this['_resolveDescriptionItems'](_0x249da7);}registerDescriptionCallback(_0x38f12d){this['_customCallbacks']['push'](_0x38f12d);}registerElementLabel(_0x8e0fea,_0x53ac18,_0x2ea0b4=_0x4d85be['normal']){'function'==typeof _0x8e0fea?_0x3f5fbc(this['_itemLabelsCallbacks'],{'matchingCallback':_0x8e0fea,'label':_0x53ac18,'priority':_0x2ea0b4}):this['_itemLabels']['set'](_0x8e0fea,_0x53ac18);}registerAttributeLabel(_0x3458e7,_0x4f1d2f){this['_attributeLabels']['set'](_0x3458e7,_0x4f1d2f);}getItemLabel(_0x493d7f,_0x2c1f76=0x1){let _0x35072c;for(const _0x2b313f of this['_itemLabelsCallbacks'])if(_0x2b313f['matchingCallback'](_0x493d7f)){_0x35072c=_0x2b313f['label'];break;}return _0x35072c||(_0x35072c=this['_itemLabels']['get'](_0x493d7f['name'])),_0x35072c?_0x35072c(_0x2c1f76):0x1!==_0x2c1f76?_0x2c1f76+'\x20'+_0x493d7f['name']+'s':''+_0x493d7f['name'];}_addDescriptionItems(_0x2f3e52,_0x2e4ba9){const _0x43d7e5=_0x2e4ba9['getFirstRange']()['getWalker'](),_0x48b9d5='insertion'==_0x2e4ba9['type']?'add':'remove';for(const _0x5c7ecf of _0x43d7e5){const _0xea308=_0x5c7ecf['item'],_0x4d507c=_0x2f3e52[_0x2f3e52['length']-0x1];if(_0xea308['is']('$textProxy'))_0x4d507c&&_0x4d507c['type']['indexOf']('Container')>-0x1&&_0x2f3e52['pop'](),_0x4d507c&&'text'==_0x4d507c['type']?_0x4d507c[_0x48b9d5]+=_0xea308['data']:_0x2f3e52['push']({'type':'text','add':'add'==_0x48b9d5?_0xea308['data']:'','remove':'remove'==_0x48b9d5?_0xea308['data']:''});else{if(this['_schema']['isObject'](_0xea308)){const _0x1b2f32=_0xea308;if(_0x4d507c&&_0x4d507c['type']['indexOf']('Container')>-0x1&&_0x2f3e52['pop'](),'elementEnd'==_0x5c7ecf['type'])continue;_0x4d507c&&_0x4d507c['type']==_0x48b9d5+'Object'&&_0x4d507c['element']['name']==_0x1b2f32['name']?_0x4d507c['quantity']++:_0x2f3e52['push']({'type':_0x48b9d5+'Object','element':_0x1b2f32,'quantity':0x1}),_0x43d7e5['skip'](_0xd7bbac=>!('elementEnd'==_0xd7bbac['type']&&_0xd7bbac['item']==_0xea308));}else{if(this['_schema']['checkChild'](_0xea308,'$text')||_0xea308['is']('element','softBreak')){const _0x50de62=_0xea308;if('add'==_0x48b9d5&&'elementStart'==_0x5c7ecf['type']||'remove'==_0x48b9d5&&'elementEnd'==_0x5c7ecf['type'])continue;if(_0x4d507c&&-0x1==_0x4d507c['type']['indexOf']('Container')){'text'==_0x4d507c['type']&&(_0x4d507c[_0x48b9d5]+='\x0a');continue;}let _0x4f787b;if(_0x4f787b='add'==_0x48b9d5?_0x50de62['nextSibling']&&!this['_schema']['isObject'](_0x50de62['nextSibling'])?_0x50de62['nextSibling']:null:_0x50de62['previousSibling']&&!this['_schema']['isObject'](_0x50de62['previousSibling'])?_0x50de62['previousSibling']:null,_0x50de62['isEmpty']||_0x4f787b&&_0x4f787b['isEmpty']){const _0x1971a0=_0x4f787b&&_0x4f787b['isEmpty']?_0x4f787b:_0x50de62;_0x4d507c&&_0x4d507c['type']==_0x48b9d5+'EmptyContainer'&&_0x4d507c['element']['name']==_0x1971a0['name']?_0x4d507c['quantity']++:_0x2f3e52['push']({'type':_0x48b9d5+'EmptyContainer','element':_0x1971a0,'quantity':0x1});}else _0x2f3e52['push']({'type':_0x48b9d5+'Container','element':_0x50de62});}}}}}_resolveDescriptionItems(_0x373e4a){const _0xd8bf79=this['_locale'],_0x4005eb=[],_0x552a7f=[],_0x545ee4=[];for(const _0x5d681e of _0x373e4a)switch(_0x5d681e['type']){case'text':if(_0x5d681e['add']=_0x5d681e['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5d681e['remove']=_0x5d681e['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5d681e['add']&&''!=_0x5d681e['remove']){_0x4005eb['push']({'type':'replace','content':wt(_0xd8bf79,'REPLACE_TEXT',['\x22'+_0x5d681e['remove']+'\x22','\x22'+_0x5d681e['add']+'\x22'])});continue;}if(null!=_0x5d681e['add']['match'](/^ +$/)){_0x4005eb['push']({'type':'insertion','content':wt(_0xd8bf79,'*Insert:*\x20%0',wt(_0xd8bf79,'ELEMENT_SPACE',_0x5d681e['add']['length']))});continue;}if(null!=_0x5d681e['remove']['match'](/^ +$/)){_0x4005eb['push']({'type':'deletion','content':wt(_0xd8bf79,'*Remove:*\x20%0',wt(_0xd8bf79,'ELEMENT_SPACE',_0x5d681e['remove']['length']))});continue;}if(''!=_0x5d681e['add']){_0x4005eb['push']({'type':'insertion','content':wt(_0xd8bf79,'*Insert:*\x20%0','\x22'+_0x5d681e['add']+'\x22')});continue;}_0x4005eb['push']({'type':'deletion','content':wt(_0xd8bf79,'*Remove:*\x20%0','\x22'+_0x5d681e['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4005eb['push']({'type':'insertion','content':wt(_0xd8bf79,'*Insert:*\x20%0',this['getItemLabel'](_0x5d681e['element'],_0x5d681e['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4005eb['push']({'type':'deletion','content':wt(_0xd8bf79,'*Remove:*\x20%0',this['getItemLabel'](_0x5d681e['element'],_0x5d681e['quantity']))});continue;case'addContainer':_0x4005eb['push']({'type':'insertion','content':wt(_0xd8bf79,'*Split:*\x20%0',this['getItemLabel'](_0x5d681e['element'],_0x5d681e['quantity']))});continue;case'removeContainer':_0x4005eb['push']({'type':'deletion','content':wt(_0xd8bf79,'*Merge:*\x20%0',this['getItemLabel'](_0x5d681e['element'],_0x5d681e['quantity']))});continue;case'addFormat':_0x552a7f['push'](_0x5d681e['key']);continue;case'removeFormat':_0x545ee4['push'](_0x5d681e['key']);continue;default:_0x4005eb['push'](_0x5d681e);}if(_0x552a7f['length']){const _0x2ee5f5=_0x552a7f['map'](_0x4b36e1=>this['_attributeLabels']['has'](_0x4b36e1)?this['_attributeLabels']['get'](_0x4b36e1):_0x4b36e1)['join'](',\x20');_0x4005eb['push']({'type':'format','content':wt(this['_locale'],'*Set\x20format:*\x20%0',_0x2ee5f5)});}if(_0x545ee4['length']){const _0x3946a3=_0x545ee4['map'](_0x490b76=>this['_attributeLabels']['has'](_0x490b76)?this['_attributeLabels']['get'](_0x490b76):_0x490b76)['join'](',\x20');_0x4005eb['push']({'type':'format','content':wt(this['_locale'],'*Remove\x20format:*\x20%0',_0x3946a3)});}return _0x4005eb;}_handleCustomCallbackDescription(_0x52aa63){for(const _0x57a5e8 of this['_customCallbacks']){const _0xe310c5=_0x57a5e8(_0x52aa63);if(_0xe310c5&&'type'in _0xe310c5)return _0xe310c5;}}_handleAttributeSuggestionDescription(_0x54d416,_0x5404ea){const _0x2b57d9=_0x5404ea['data'],_0x408a7e=void 0x0===_0x2b57d9['newValue']?'removeFormat':'addFormat';_0x54d416['push']({'type':_0x408a7e,'key':_0x2b57d9['key']});}_handleRenameSuggestionDescription(_0x14d409,_0x59b4cd){_0x14d409['push']({'type':'format','content':wt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x59b4cd['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0x1253cc,_0x4e49da,_0x411db0){if(this['_addDescriptionItems'](_0x1253cc,_0x4e49da),_0x411db0&&_0x411db0['getFirstRange']()&&!_0x4e49da['getFirstRange']()['end']['isEqual'](_0x411db0['getFirstRange']()['start'])){const _0x2a14c6=_0x1253cc[_0x1253cc['length']-0x1],_0xa02118='insertion'==_0x4e49da['type']?'add':'remove';_0x2a14c6&&'text'==_0x2a14c6['type']&&(_0x2a14c6[_0xa02118]+='\x0a');}}},Ft=class extends _0x183f88{afterInit(){const _0x543447=this['editor'],_0x1714f4=_0x543447['plugins']['get']('TrackChangesEditing');_0x543447['commands']['get']('showAIAssistant')&&_0x1714f4['enableCommand']('showAIAssistant');}},vt=class extends _0x183f88{afterInit(){const _0x4b214c=this['editor'],_0xee8ea9=_0x4b214c['plugins']['get']('TrackChangesEditing');_0x4b214c['commands']['get']('toggleAi')&&_0xee8ea9['enableCommand']('toggleAi');}},Dt=class extends _0x183f88{afterInit(){const _0x3a1be3=this['editor'],_0xcaacfc=_0x3a1be3['plugins']['get']('TrackChangesEditing');_0x3a1be3['commands']['get']('aiQuickAction')&&_0xcaacfc['enableCommand']('aiQuickAction');}},Ut=class extends _0x183f88{afterInit(){const _0x218c8f=this['editor'],_0x344b37=_0x218c8f['locale'];if(!_0x218c8f['plugins']['has']('AlignmentEditing'))return;const _0x38a5ed=_0x218c8f['plugins']['get']('TrackChangesEditing');_0x38a5ed['enableDefaultAttributesIntegration']('alignment'),_0x38a5ed['descriptionFactory']['registerAttributeLabel']('alignment',wt(_0x344b37,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x33f420=this['editor'],_0x5ed199=_0x33f420['locale'];_0x33f420['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ed83b=>{if('formatBlock'!=_0x1ed83b['type'])return;const {data:_0x29b7cd}=_0x1ed83b;if(_0x29b7cd&&'alignment'==_0x29b7cd['commandName']){const _0x5014c5=_0x29b7cd['commandParams'][0x0]['value'];return{'type':'format','content':wt(_0x5ed199,'*Format:*\x20%0',function(_0x34ba3a){switch(_0x34ba3a){case'left':return wt(_0x5ed199,'FORMAT_ALIGN_TO_LEFT');case'right':return wt(_0x5ed199,'FORMAT_ALIGN_TO_RIGHT');case'center':return wt(_0x5ed199,'FORMAT_ALIGN_TO_CENTER');case'justify':return wt(_0x5ed199,'FORMAT_JUSTIFY_TEXT');}}(_0x5014c5))};}});}};const Pt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var xt=class extends _0x183f88{afterInit(){const _0x408d4a=this['editor'],_0x1e6e43=_0x408d4a['plugins']['get']('TrackChangesEditing'),_0x1868b7=_0x408d4a['locale'];for(const _0x2a2d9b of Pt){if(!_0x408d4a['plugins']['has'](_0x2a2d9b))continue;const _0x3b1fe6=_0x2a2d9b['slice'](0x0,-0x7)['toLowerCase'](),_0x15ebe1='FORMAT_'+_0x3b1fe6['toUpperCase']();_0x1e6e43['enableDefaultAttributesIntegration'](_0x3b1fe6),_0x1e6e43['descriptionFactory']['registerAttributeLabel'](_0x3b1fe6,wt(_0x1868b7,_0x15ebe1));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x4eea9=this['editor'],_0xccc2d4=_0x4eea9['locale'],_0x8896bd=_0x4eea9['plugins']['get']('TrackChangesEditing');function _0xf353f5(_0x3f2c9d,_0x1eee6d){_0x8896bd['descriptionFactory']['registerDescriptionCallback'](_0x306f9e=>{if('formatInline'!=_0x306f9e['type'])return;const {data:_0x2bc6d0}=_0x306f9e;return _0x2bc6d0&&_0x2bc6d0['commandName']===_0x3f2c9d?_0x2bc6d0['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0xccc2d4,'*Format:*\x20%0',_0x1eee6d)}:{'type':'format','content':wt(_0xccc2d4,'*Remove\x20format:*\x20%0',_0x1eee6d)}:void 0x0;});}_0xf353f5('bold',wt(_0xccc2d4,'FORMAT_BOLD')),_0xf353f5('italic',wt(_0xccc2d4,'FORMAT_ITALIC')),_0xf353f5('underline',wt(_0xccc2d4,'FORMAT_UNDERLINE')),_0xf353f5('code',wt(_0xccc2d4,'FORMAT_CODE')),_0xf353f5('strikethrough',wt(_0xccc2d4,'FORMAT_STRIKETHROUGH')),_0xf353f5('subscript',wt(_0xccc2d4,'FORMAT_SUBSCRIPT')),_0xf353f5('superscript',wt(_0xccc2d4,'FORMAT_SUPERSCRIPT'));}},Gt=class extends _0x183f88{afterInit(){const _0x27e218=this['editor'],_0x174ba1=_0x27e218['locale'];if(!_0x27e218['plugins']['has']('BlockQuoteEditing'))return;const _0x3ea5b0=_0x27e218['plugins']['get']('TrackChangesEditing'),_0x296035=this['editor']['commands']['get']('blockQuote');_0x3ea5b0['enableCommand']('blockQuote',(_0x44e3ae,_0x405bdb={})=>{const _0x508d17=this['editor']['model']['document']['selection'],_0x33d2b5=_0x405bdb&&void 0x0!==_0x405bdb['forceValue']?_0x405bdb['forceValue']:!_0x296035['value'];let _0x5667a6=[];if(_0x33d2b5){const _0x2e30e7=Array['from'](_0x508d17['getSelectedBlocks']())['filter'](_0x28f73b=>Ht(_0x28f73b)||function(_0xf59ff2,_0x2a81eb){const _0x219261=_0x2a81eb['createContext'](_0xf59ff2['parent']);return!!_0x2a81eb['checkChild'](_0x219261,'blockQuote')&&!!_0x2a81eb['checkChild'](_0x219261['push']('blockQuote'),_0xf59ff2);}(_0x28f73b,this['editor']['model']['schema']));_0x5667a6=kt(_0x2e30e7,_0x27e218['model']);}else{const _0x1a31c0=Array['from'](_0x508d17['getSelectedBlocks']())['filter'](_0x3cc560=>Ht(_0x3cc560));_0x5667a6=kt(_0x1a31c0,_0x27e218['model']);}_0x27e218['model']['change'](()=>{for(const _0x27a3a3 of _0x5667a6)_0x3ea5b0['markBlockFormat'](_0x27a3a3,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x33d2b5}]});});}),_0x3ea5b0['descriptionFactory']['registerDescriptionCallback'](_0x186b42=>{const {data:_0x4c96b4}=_0x186b42;if(_0x4c96b4&&'blockQuote'==_0x4c96b4['commandName']){const _0x2018a8=wt(_0x174ba1,'ELEMENT_BLOCK_QUOTE');return _0x4c96b4['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x174ba1,'*Set\x20format:*\x20%0',_0x2018a8)}:{'type':'format','content':wt(_0x174ba1,'*Remove\x20format:*\x20%0',_0x2018a8)};}});}};function Ht(_0x445789){return'blockQuote'==_0x445789['parent']['name'];}var $t=class extends _0x183f88{afterInit(){const _0x4500c1=this['editor'],_0x42cfdf=_0x4500c1['locale'],_0x4a370a=_0x4500c1['plugins']['get']('TrackChangesEditing');_0x4500c1['plugins']['has']('BookmarkEditing')&&(_0x4a370a['enableCommand']('insertBookmark'),_0x4a370a['enableDefaultAttributesIntegration']('updateBookmark'),_0x4a370a['descriptionFactory']['registerDescriptionCallback'](_0x2dd8ef=>{if('insertion'!=_0x2dd8ef['type']&&'deletion'!=_0x2dd8ef['type']&&'attribute'!=_0x2dd8ef['type'])return;const _0x5e94c9=_0x2dd8ef['getContainedElement']();if(null==_0x5e94c9)return;if(!_0x5e94c9['is']('element','bookmark'))return;const _0x179122=_0x5e94c9['getAttribute']('bookmarkId');if('insertion'==_0x2dd8ef['type'])return{'type':'insertion','content':wt(_0x42cfdf,'*Insert:*\x20%0','\x22'+_0x179122+'\x22\x20'+wt(_0x42cfdf,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2dd8ef['type'])return{'type':'deletion','content':wt(_0x42cfdf,'*Remove:*\x20%0','\x22'+_0x179122+'\x22\x20'+wt(_0x42cfdf,'ELEMENT_BOOKMARK'))};const {data:_0x1ffe21}=_0x2dd8ef;return _0x1ffe21&&'bookmarkId'==_0x1ffe21['key']?{'type':'format','content':wt(_0x42cfdf,'*Set\x20bookmark:*\x20%0','\x22'+_0x1ffe21['newValue']+'\x22')}:void 0x0;}));}},Wt=class extends _0x183f88{afterInit(){const _0x19b561=this['editor'];_0x19b561['plugins']['has']('CaseChange')&&(_0x19b561['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x19b561['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x19b561['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},Vt=class extends _0x183f88{afterInit(){const _0x40f26a=this['editor'];_0x40f26a['commands']['get']('ckbox')&&_0x40f26a['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},zt=class extends _0x183f88{static get requires(){return[ft,mt];}constructor(_0x52bae0){super(_0x52bae0),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0x51ea29=this['editor'],_0x118105=_0x51ea29['plugins']['get']('ClipboardMarkersUtils'),_0x500ea6=_0x51ea29['plugins']['get'](mt);_0x118105['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0x500ea6['on']('outputTransformation',(_0x294f57,_0xfc765d)=>{const _0x34ea48=this['_getSuggestionEntries'](_0xfc765d);for(const [_0xe909b1,_0x44e317]of _0xfc765d['content']['markers']){const _0x188fb5=at['_fromRangeInDocumentFragment'](_0x44e317,_0x51ea29['model']);function _0x48d211(){_0x188fb5['detach'](),_0xfc765d['content']['markers']['delete'](_0xe909b1);}_0x188fb5['on']('change:drop',_0x48d211),(_0xe909b1['startsWith']('suggestion:')||_0xe909b1['startsWith']('comment:'))&&_0x188fb5['on']('change:range',()=>{_0x188fb5['isCollapsed']&&_0x48d211();}),_0xfc765d['content']['markers']['set'](_0xe909b1,_0x188fb5);}const _0x5be400=_0x34ea48['filter'](_0x499e23=>'deletion'===_0x499e23['meta']['type'])['map'](_0x5bb34f=>_0x5bb34f['modelRange']);if(this['_shouldSkipDeletions'](_0x5be400,_0xfc765d['content']))return[..._0x34ea48]['forEach'](_0x472064=>{_0xfc765d['content']['markers']['get'](_0x472064['markerName'])['detach'](),_0xfc765d['content']['markers']['delete'](_0x472064['markerName']);}),void this['_restoreRegularRanges'](_0xfc765d['content']['markers']);[..._0x34ea48]['forEach'](_0xda219e=>{const _0x2c0ea3=_0x51ea29['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0xda219e['meta']['type'],_0xda219e['meta']['subType'],'accept'),{markerName:_0x11eed4,meta:_0x412427}=_0xda219e;if(_0xfc765d['content']['markers']['has'](_0x11eed4)){switch(_0x412427['type']){case'deletion':if('tableRow'===_0x412427['subType']||'tableColumn'===_0x412427['subType']){if(!_0x51ea29['plugins']['has']('TableUtils'))break;const _0x28036b=_0x51ea29['plugins']['get']('TableUtils'),_0x3c94eb=_0x28036b['getSelectionAffectedTableCells'](_0x51ea29['model']['createSelection'](_0xfc765d['content']['markers']['get'](_0x11eed4))),_0x28c7ba=_0x3c94eb[0x0]['findAncestor']('table');if('tableRow'===_0x412427['subType']){const {first:_0x32f8ad,last:_0x366638}=_0x28036b['getRowIndexes'](_0x3c94eb);_0x28036b['removeRows'](_0x28c7ba,{'at':_0x32f8ad,'rows':_0x366638-_0x32f8ad+0x1});}else{const {first:_0x2931d0,last:_0x36f27b}=_0x28036b['getColumnIndexes'](_0x3c94eb);_0x28036b['removeColumns'](_0x28c7ba,{'at':_0x2931d0,'columns':_0x36f27b-_0x2931d0+0x1});}break;}_0x2c0ea3([_0xfc765d['content']['markers']['get'](_0x11eed4)]);}_0xfc765d['content']['markers']['has'](_0x11eed4)&&(_0xfc765d['content']['markers']['get'](_0x11eed4)['detach'](),_0xfc765d['content']['markers']['delete'](_0x11eed4));}}),this['_restoreRegularRanges'](_0xfc765d['content']['markers']);});}_getSuggestionEntries(_0x19a67f){const _0x30dcd7=_0x4cfa1c=>'dragstart'===_0x19a67f['method']?_0x4cfa1c['split'](':')['slice'](0x0,-0x1)['join'](':'):_0x4cfa1c;return Array['from'](_0x19a67f['content']['markers'])['map'](([_0x4dcc2d,_0x2f079d])=>({'markerName':_0x4dcc2d,'modelRange':_0x2f079d,'meta':nt(_0x30dcd7(_0x4dcc2d))}))['filter'](({meta:_0x3e20d7})=>'suggestion'===_0x3e20d7['group']);}_shouldSkipDeletions(_0x47a384,_0x26d916){if(!_0x47a384['length'])return!0x1;let _0x1e68e5=[this['editor']['model']['createRangeIn'](_0x26d916)];for(const _0xc74ce8 of _0x47a384)_0x1e68e5=_0x1e68e5['flatMap'](_0x59c14b=>_0x59c14b['getDifference'](_0xc74ce8));return!_0x1e68e5['some'](_0x46281e=>this['editor']['model']['hasContent'](_0x46281e,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0x12155d){[..._0x12155d['keys']()]['forEach'](_0x26cc91=>{const _0x11bfdc=_0x12155d['get'](_0x26cc91);_0x11bfdc['detach'](),_0x12155d['set'](_0x26cc91,_0x11bfdc['toRange']());});}},jt=class extends _0x183f88{afterInit(){const _0xf78982=this['editor'];if(!_0xf78982['plugins']['has']('CodeBlock'))return;const _0x478b87=_0xf78982['plugins']['get']('TrackChangesEditing'),_0x234117=_0xf78982['locale'],_0x43a56e=_0xf78982['config']['get']('codeBlock')['languages'],_0x45ab1d=_0xf78982['commands']['get']('codeBlock');_0x478b87['enableCommand']('indentCodeBlock'),_0x478b87['enableCommand']('outdentCodeBlock'),_0x478b87['enableCommand']('codeBlock',(_0x37470e,_0x4bdc66={})=>{const _0x115f3d=_0xf78982['model'],_0x12b6d8=_0xf78982['model']['document']['selection'],_0x5ead7c=_0x4bdc66&&void 0x0!==_0x4bdc66['forceValue']?_0x4bdc66['forceValue']:!_0x45ab1d['value'];let _0x34ccf0;_0x4bdc66['language']||(_0x4bdc66['language']=_0x43a56e[0x0]['language']),_0x34ccf0=_0x5ead7c?Array['from'](_0x12b6d8['getSelectedBlocks']())['filter'](_0x1bc5f8=>{return Kt(_0x1bc5f8)||(_0x212510=_0x1bc5f8,_0x3b3f9a=_0x115f3d['schema'],!_0x212510['is']('rootElement')&&!_0x3b3f9a['isLimit'](_0x212510)&&_0x3b3f9a['checkChild'](_0x212510['parent'],'codeBlock'));var _0x212510,_0x3b3f9a;}):Array['from'](_0x12b6d8['getSelectedBlocks']())['filter'](_0x38d95e=>Kt(_0x38d95e));const _0xbd7797=kt(_0x34ccf0,_0x115f3d);_0x115f3d['change'](()=>{for(const _0x5dca25 of _0xbd7797)_0x478b87['markBlockFormat'](_0x5dca25,{'commandName':'codeBlock','commandParams':[{..._0x4bdc66,'forceValue':_0x5ead7c}],'formatGroupId':'blockName'});});}),(_0x478b87['descriptionFactory']['registerElementLabel']('codeBlock',_0x4b6235=>wt(_0x234117,'ELEMENT_CODE_BLOCK',_0x4b6235)),_0x478b87['descriptionFactory']['registerDescriptionCallback'](_0x342739=>{if('formatBlock'!=_0x342739['type'])return;const _0x14db6f=_0x234117['t'],{data:_0x1c228c}=_0x342739;if(!_0x1c228c||'codeBlock'!=_0x1c228c['commandName'])return;const _0x20a8d9=_0x1c228c['commandParams'][0x0]['language'],_0x14cccd=_0x14db6f(_0x43a56e['find'](_0x7b751a=>_0x7b751a['language']===_0x20a8d9)['label'])['toLowerCase']();return _0x1c228c['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x234117,'*Set\x20format:*\x20%0',wt(_0x234117,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x14cccd+')')}:{'type':'format','content':wt(_0x234117,'*Remove\x20format:*\x20%0',wt(_0x234117,'ELEMENT_CODE_BLOCK',0x1))};}));}};function Kt(_0x15143e){return'codeBlock'==_0x15143e['name'];}var Xt=class extends _0x183f88{afterInit(){const _0x3769c3=this['editor'];_0x3769c3['plugins']['has']('CommentsEditing')&&_0x3769c3['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},qt=class extends _0x183f88{static get requires(){return[Et];}init(){const _0x3f97d5=this['editor'],_0x316b52=_0x3f97d5['plugins']['get']('TrackChangesEditing');_0x316b52['enableCommand']('delete');const _0x1f7657=_0x3f97d5['commands']['get']('deleteForward');_0x316b52['enableCommand']('deleteForward',(_0xd2adef,_0x56432a={})=>{const _0x5a16b5=_0x3f97d5['model']['createSelection'](_0x3f97d5['model']['document']['selection']);_0x5a16b5['isCollapsed']&&_0x3f97d5['model']['modifySelection'](_0x5a16b5,{'direction':'forward','unit':_0x56432a['unit']});const _0x3b0952=_0x5a16b5['getFirstRange'](),_0x43e2aa=at['fromRange'](_0x3b0952);let _0x5b5cec;_0xd2adef(_0x56432a),_0x5b5cec='$graveyard'==_0x43e2aa['root']['rootName']?_0x3f97d5['model']['createRange'](_0x3b0952['start']):_0x3f97d5['model']['createRange'](_0x43e2aa['start'],_0x43e2aa['end']),_0x43e2aa['detach'](),_0x3f97d5['model']['enqueueChange'](_0x1f7657['buffer']['batch'],_0xef607c=>{_0x1f7657['buffer']['lock'](),_0xef607c['setSelection'](_0xef607c['createRange'](_0x5b5cec['end'])),_0x1f7657['buffer']['unlock']();});});}},Yt=class extends _0x183f88{afterInit(){const _0xcd0ef0=this['editor'];if(!_0xcd0ef0['plugins']['has']('ListEditing'))return;const _0x49947d=_0xcd0ef0['locale'],_0x459b0d=_0xcd0ef0['plugins']['get']('TrackChangesEditing'),_0x2813e9=_0xcd0ef0['plugins']['has']('TodoListEditing'),_0x224987=!!_0xcd0ef0['config']['get']('list.multiBlock');function _0x1041bb(_0x1e345d){return{'type':'format','content':''+wt(_0x49947d,'*Set\x20format:*\x20%0',_0x1e345d)};}function _0x2ad4cd(_0x3f3e24){return{'type':'format','content':''+wt(_0x49947d,'*Remove\x20format:*\x20%0',_0x3f3e24)};}_0x459b0d['enableDefaultAttributesIntegration']('numberedList'),_0x459b0d['enableDefaultAttributesIntegration']('bulletedList'),_0x459b0d['enableDefaultAttributesIntegration']('customNumberedList'),_0x459b0d['enableDefaultAttributesIntegration']('customBulletedList'),_0x459b0d['enableDefaultAttributesIntegration']('indentList'),_0x459b0d['enableDefaultAttributesIntegration']('outdentList'),_0x459b0d['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x459b0d['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x224987&&(_0x459b0d['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x459b0d['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2813e9&&(_0x459b0d['enableDefaultAttributesIntegration']('todoList'),_0x459b0d['enableDefaultAttributesIntegration']('checkTodoList'),_0x459b0d['descriptionFactory']['registerDescriptionCallback'](_0x5b850b=>{const {data:_0x5341e1}=_0x5b850b;if(_0x5341e1&&'todoListChecked'==_0x5341e1['key'])return{'type':'format','content':_0x5341e1['newValue']?wt(_0x49947d,'*Check\x20item*'):wt(_0x49947d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1873a9=>{if(_0x1873a9['batch']['isUndo'])return!0x1;let _0x498bf4=!0x1;const _0x3ad16f=_0x459b0d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1cf9b3=>'todoListChecked'===_0x459b0d['_getAttributeKey'](_0x1cf9b3));for(const _0x13937a of _0x3ad16f)'todo'!=_0x13937a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x459b0d['_findSuggestions'](_0x13937a['getFirstRange'](),'attribute')['find'](_0x546bae=>'listType'===_0x459b0d['_getAttributeKey'](_0x546bae['suggestion']))||(_0x1873a9['removeMarker'](_0x13937a['getFirstMarker']()),_0x498bf4=!0x0));return _0x498bf4;})),_0x459b0d['descriptionFactory']['registerAttributeLabel']('listIndent',wt(_0x49947d,'FORMAT_INDENT'));const _0x428a2d={'type':'format','content':''};_0x459b0d['descriptionFactory']['registerDescriptionCallback'](_0x352392=>{const {data:_0x33dd8b}=_0x352392;if(!_0x33dd8b||'listType'!=_0x33dd8b['key'])return;let _0x494865=_0x352392['head'];for(;_0x494865;){if(_0x494865['data']&&(('listStyle'==_0x494865['data']['key']||'listMarkerStyle'==_0x494865['data']['key'])&&(_0x494865['data']['newValue']&&'default'!=_0x494865['data']['newValue']||'default'!=_0x494865['data']['oldValue']&&!_0x33dd8b['newValue'])||!_0x224987&&'$elementName'==_0x494865['data']['key']))return _0x428a2d;_0x494865=_0x494865['next'];}if(null==_0x33dd8b['newValue'])switch(_0x33dd8b['oldValue']){case'bulleted':return _0x2ad4cd(wt(_0x49947d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2ad4cd(wt(_0x49947d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2ad4cd(wt(_0x49947d,'ELEMENT_TODO_LIST'));}switch(_0x33dd8b['newValue']){case'bulleted':return _0x1041bb(wt(_0x49947d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1041bb(wt(_0x49947d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1041bb(wt(_0x49947d,'ELEMENT_TODO_LIST'));}}),_0x459b0d['descriptionFactory']['registerDescriptionCallback'](_0x5c225e=>{const {data:_0x593b8f}=_0x5c225e;if(_0x593b8f&&'listIndent'==_0x593b8f['key'])return null==_0x593b8f['newValue']||null==_0x593b8f['oldValue']&&0x0==_0x593b8f['newValue']?_0x428a2d:void 0x0;}),_0x459b0d['descriptionFactory']['registerDescriptionCallback'](_0x3d1e4f=>{if('attribute'!=_0x3d1e4f['type'])return;const {data:_0x3d5f88}=_0x3d1e4f;if(!_0x3d5f88||'listItemId'!=_0x3d5f88['key'])return;const _0x31e02a=Qt(_0x3d1e4f);return'newValue'==_0x31e02a?{'type':'format','content':wt(_0x49947d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x31e02a?{'type':'format','content':wt(_0x49947d,'*Split:*\x20list\x20item')}:_0x428a2d;}),_0xcd0ef0['model']['document']['registerPostFixer'](_0x2ea910=>this['listItemIdFixer'](_0x2ea910)),_0xcd0ef0['model']['document']['registerPostFixer'](_0x37728c=>this['noTrackChangesFixer'](_0x37728c)),_0xcd0ef0['model']['document']['on']('change:data',(_0x2af527,_0x1a1ec6)=>{if(_0x1a1ec6['isUndo']||!_0x1a1ec6['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0xc47c2a){if(_0xc47c2a['batch']['isUndo']||!_0xc47c2a['batch']['isLocal'])return!0x1;let _0x3fc6f8=!0x1;const _0x5b9abb=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x13b96d=>_0x13b96d['data']&&'listItemId'==_0x13b96d['data']['key'])['filter'](_0x8df8f1=>_0x8df8f1['data']['newValue']&&_0x8df8f1['data']['oldValue']);for(const _0x3de992 of _0x5b9abb)Qt(_0x3de992)||(_0xc47c2a['removeMarker'](_0x3de992['getFirstMarker']()),_0x3fc6f8=!0x0);return _0x3fc6f8;}['noTrackChangesFixer'](_0x4d70ee){if(_0x4d70ee['batch']['isUndo']||!_0x4d70ee['batch']['isLocal'])return!0x1;const _0x2ec28b=this['editor']['model']['document']['differ'],_0x4d9a41=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4d9a41['trackChangesCommand']['value'])return!0x1;let _0x391613=!0x1;const _0x52905f=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x302aab=_0x2ec28b['getChanges']()['filter'](_0x6532fc=>'attribute'==_0x6532fc['type'])['filter'](_0x1b7d22=>_0x52905f['has'](_0x1b7d22['attributeKey']));if(0x0==_0x302aab['length'])return _0x391613;const _0x35df9c=new Set(_0x2ec28b['getMarkersToAdd']()['filter'](_0x7de3=>{if(!_0x7de3['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x575002=nt(_0x7de3['name'])['subType']['split']('|')[0x0];return _0x52905f['has'](_0x575002);})['map'](_0xd299cd=>nt(_0xd299cd['name'])['id']));for(const _0x5a1299 of _0x302aab){const _0x2b8da5=_0x4d9a41['_findSuggestions'](_0x5a1299['range'],'attribute')['filter'](_0x26f5e7=>{if(_0x26f5e7['meta']['isNextTo'])return!0x1;if(_0x35df9c['has'](_0x26f5e7['suggestion']['id']))return!0x1;const _0x54b059=_0x4d9a41['_getAttributeKey'](_0x26f5e7['suggestion']);return _0x52905f['has'](_0x54b059);})['map'](_0x311cbf=>_0x311cbf['suggestion']);if(_0x2b8da5['length']){for(const _0x35021f of _0x2b8da5)_0x4d70ee['removeMarker'](_0x35021f['getFirstMarker']());_0x391613=!0x0;}}return _0x391613;}['assureChains'](){const _0x4d7240=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4622fc=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x2878a0;const _0x3acb53=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xe3c36e=>{if(_0xe3c36e['data']['oldRange']||!_0xe3c36e['data']['newRange'])return null;if(!_0xe3c36e['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1c01db}=nt(_0xe3c36e['name']);if(!_0x4d7240['hasSuggestion'](_0x1c01db))return null;const _0x1f4f04=_0x4d7240['getSuggestion'](_0x1c01db);return _0x4622fc['includes'](_0x1f4f04['data']['key']);})['map'](_0x25a37e=>{const {id:_0x266bc8}=nt(_0x25a37e['name']),_0x3abb87=_0x4d7240['getSuggestion'](_0x266bc8);return _0x2878a0=_0x3abb87['attributes']['groupId'],_0x3abb87['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3acb53['size'])return;const _0x3a3f5e=_0x4d7240['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1db446=>'attribute'==_0x1db446['type']&&_0x1db446['data']&&_0x4622fc['includes'](_0x1db446['data']['key'])&&_0x1db446['attributes']['groupId']!=_0x2878a0)['map'](_0x4b52c2=>({'listItem':_0x4b52c2['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4b52c2['attributes']['groupId']})),_0x5d9242=new Set();for(const {groupId:_0x58a268,listItem:_0x299c21}of _0x3a3f5e)_0x3acb53['has'](_0x299c21)&&_0x5d9242['add'](_0x58a268);for(const _0xddde2a of _0x4d7240['getSuggestions']())_0x5d9242['has'](_0xddde2a['attributes']['groupId'])&&_0xddde2a['setAttribute']('groupId',_0x2878a0);}_supportLegacySuggestions(){const _0x2aafa0=this['editor'],_0x471ff4=_0x2aafa0['locale'],_0x53d41d=_0x2aafa0['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x53d41d['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4eab46,_0x1ae245){const _0x4f03f4=[];for(let _0x13a7f1 of _0x4eab46)_0x13a7f1['start']['nodeAfter']===_0x13a7f1['end']['parent']&&(_0x13a7f1=_0x2aafa0['model']['createRange'](_0x2aafa0['model']['createPositionAt'](_0x13a7f1['start']['nodeAfter'],0x0))),_0x4f03f4['push'](_0x13a7f1);_0x2aafa0['model']['change'](_0x33b398=>{const _0x38e9bb=_0x2aafa0['model']['document']['selection'],_0x56fd54=Array['from'](_0x38e9bb['getRanges']())['map'](_0x303521=>at['fromRange'](_0x303521));_0x33b398['setSelection'](_0x4f03f4),_0x2aafa0['commands']['get'](_0x1ae245['commandName'])['refresh'](),_0x1ae245['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2aafa0['execute'](_0x1ae245['commandName'],..._0x1ae245['commandParams']),_0x33b398['setSelection'](_0x56fd54);for(const _0x7f438a of _0x56fd54)_0x7f438a['detach']();});}),_0x53d41d['descriptionFactory']['registerElementLabel'](function(_0x3697b7){const _0x11a1db=!_0x2aafa0['model']['schema']['isObject'](_0x3697b7),_0x80bf6=_0x3697b7['previousSibling'],_0x2ab1b0=_0x3697b7['nextSibling'],_0x51e14c=_0x3697b7['getAttribute']('listItemId'),_0x3b930f=!_0x80bf6||_0x80bf6['getAttribute']('listItemId')!==_0x51e14c,_0x4c5088=!_0x2ab1b0||_0x2ab1b0['getAttribute']('listItemId')!==_0x51e14c;return _0x11a1db&&Boolean(_0x51e14c)&&_0x3b930f&&_0x4c5088;},_0x1e4937=>wt(_0x471ff4,'ELEMENT_LIST_ITEM',_0x1e4937));}_registerLegacyDescription(){const _0x23434e=this['editor'],_0x4f69b0=_0x23434e['locale'];function _0x3832e8(_0x4831b1){const _0x1449e7=_0x23434e['commands']['get']('bulletedList')['value'],_0x4fa673=_0x23434e['commands']['get']('numberedList')['value'];return'numberedList'===_0x4831b1?_0x1449e7:_0x4fa673;}_0x23434e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2d15da){if('formatBlock'!=_0x2d15da['type'])return;const {data:_0x2ff91f}=_0x2d15da;if(!_0x2ff91f)return;let _0x51c2ac,_0x841149,_0xd08386,_0xc04e17;switch(_0x2ff91f['commandName']){case'bulletedList':_0xd08386=_0x2ff91f['commandParams'][0x0]['forceValue'],_0xc04e17=_0x3832e8(_0x2ff91f['commandName']),_0x51c2ac=_0xd08386?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xc04e17&&_0x23434e['config']['get']('list.multiBlock')||(_0x51c2ac='*Change\x20to:*\x20%0'),_0x841149={'type':'format','content':wt(_0x4f69b0,_0x51c2ac,wt(_0x4f69b0,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xd08386=_0x2ff91f['commandParams'][0x0]['forceValue'],_0xc04e17=_0x3832e8(_0x2ff91f['commandName']),_0x51c2ac=_0xd08386?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xc04e17&&_0x23434e['config']['get']('list.multiBlock')||(_0x51c2ac='*Change\x20to:*\x20%0'),_0x841149={'type':'format','content':wt(_0x4f69b0,_0x51c2ac,wt(_0x4f69b0,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x51c2ac='*Indent:*\x20%0',_0x841149={'type':'format','content':wt(_0x4f69b0,_0x51c2ac,wt(_0x4f69b0,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x51c2ac=function(_0x27ae83){const _0x3a906c=_0x27ae83['getFirstRange']();let _0x49e628=_0x3a906c['start']['nodeAfter'];for(;_0x49e628&&_0x3a906c['containsItem'](_0x49e628);){if(_0x49e628['getAttribute']('listIndent')>0x0)return!0x1;_0x49e628=_0x49e628['nextSibling'];}return!0x0;}(_0x2d15da)?wt(_0x4f69b0,'*Format:*\x20remove\x20from\x20%0',wt(_0x4f69b0,function(_0x5d8613){return'ELEMENT_'+_0x5d8613['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2d15da))):wt(_0x4f69b0,'*Outdent:*\x20%0',wt(_0x4f69b0,'ELEMENT_LIST_ITEM')),_0x841149={'type':'format','content':_0x51c2ac};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2ff91f['multipleBlocks']&&(_0x51c2ac='*Merge:*\x20%0',_0x841149={'type':'deletion','content':wt(_0x4f69b0,_0x51c2ac,wt(_0x4f69b0,'ELEMENT_LIST_ITEM'))});}return _0x841149;});}};function Qt(_0x37dfc6){let _0x3aea6c=_0x37dfc6['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3aea6c;){const _0x4ecd9e=_0x3aea6c['getAttribute']('listItemId');if(!_0x4ecd9e)return!0x1;if(_0x4ecd9e==_0x37dfc6['data']['newValue'])return'newValue';if(_0x4ecd9e==_0x37dfc6['data']['oldValue'])return'oldValue';_0x3aea6c=_0x3aea6c['previousSibling'];}return!0x1;}var Zt=class extends _0x183f88{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x33e82f=this['editor']['config']['get']('list.properties'),_0x396dd5=this['editor']['plugins']['get']('TrackChangesEditing');_0x33e82f['styles']&&_0x396dd5['enableDefaultAttributesIntegration']('listStyle'),_0x33e82f['reversed']&&_0x396dd5['enableDefaultAttributesIntegration']('listReversed'),_0x33e82f['startIndex']&&_0x396dd5['enableDefaultAttributesIntegration']('listStart');const _0x4e834d={'type':'format','content':''};_0x396dd5['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2ab2d9=this['editor']['locale'];_0x396dd5['descriptionFactory']['registerAttributeLabel']('listReversed',wt(_0x2ab2d9,'FORMAT_LIST_REVERSED')),_0x396dd5['descriptionFactory']['registerDescriptionCallback'](_0xa4645a=>{const {data:_0x2bec66}=_0xa4645a;if(_0x2bec66&&'listReversed'==_0x2bec66['key'])return null==_0x2bec66['newValue']||0x0==_0x2bec66['newValue']&&null==_0x2bec66['oldValue']?_0x4e834d:void 0x0;}),_0x396dd5['descriptionFactory']['registerAttributeLabel']('listStart',wt(_0x2ab2d9,'FORMAT_LIST_START')),_0x396dd5['descriptionFactory']['registerDescriptionCallback'](_0xa7df6f=>{const {data:_0x10b4ac}=_0xa7df6f;if(_0x10b4ac&&'listStart'==_0x10b4ac['key'])return null==_0x10b4ac['newValue']||0x1==_0x10b4ac['newValue']&&null==_0x10b4ac['oldValue']?_0x4e834d:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5a2ba2=>{if(_0x5a2ba2['batch']['isUndo'])return!0x1;let _0x1dbfaa=!0x1;const _0x80af55=_0x396dd5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4b39d5=>{const _0x504cf2=_0x396dd5['_getAttributeKey'](_0x4b39d5);return'listStart'==_0x504cf2||'listReversed'==_0x504cf2;});for(const _0x2873ea of _0x80af55){const _0x39c874=_0x2873ea['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x39c874&&'customNumbered'!=_0x39c874&&(_0x396dd5['_findSuggestions'](_0x2873ea['getFirstRange'](),'attribute')['find'](_0x4f05dc=>'listType'==_0x396dd5['_getAttributeKey'](_0x4f05dc['suggestion']))||(_0x5a2ba2['removeMarker'](_0x2873ea['getFirstMarker']()),_0x1dbfaa=!0x0));}return _0x1dbfaa;}),this['_registerLegacyDescription']();}handleDescriptions(_0x3f5174){const _0x4e5f66=this['editor']['locale'],{data:_0x58e6cf}=_0x3f5174,_0x5a9cfb={'type':'format','content':''};if(!_0x58e6cf||'listStyle'!=_0x58e6cf['key'])return;if(!_0x58e6cf['oldValue'])return'default'==_0x58e6cf['newValue']?_0x5a9cfb:{'type':'format','content':''+wt(_0x4e5f66,'*Set\x20format:*\x20%0',wt(_0x4e5f66,this['_getTranslationKeyForListStyle'](_0x58e6cf['newValue'])))};if(!_0x58e6cf['newValue']){if('default'==_0x58e6cf['oldValue'])return _0x5a9cfb;let _0x1eb5f9=_0x3f5174['head'];for(;_0x1eb5f9;){if(_0x1eb5f9['data']&&'listType'==_0x1eb5f9['data']['key']&&_0x1eb5f9['data']['newValue'])return _0x5a9cfb;_0x1eb5f9=_0x1eb5f9['next'];}return{'type':'format','content':''+wt(_0x4e5f66,'*Remove\x20format:*\x20%0',wt(_0x4e5f66,this['_getTranslationKeyForListStyle'](_0x58e6cf['oldValue'])))};}if('default'!=_0x58e6cf['newValue'])return{'type':'format','content':''+wt(_0x4e5f66,'*Set\x20format:*\x20%0',wt(_0x4e5f66,this['_getTranslationKeyForListStyle'](_0x58e6cf['newValue'])))};let _0x5aeb88=_0x3f5174['head'];for(;_0x5aeb88;){if(_0x5aeb88['data']&&'listType'==_0x5aeb88['data']['key']&&_0x5aeb88['data']['newValue']&&_0x5aeb88['data']['oldValue'])return _0x5a9cfb;_0x5aeb88=_0x5aeb88['next'];}return{'type':'format','content':wt(_0x4e5f66,'*Set\x20format:*\x20%0',wt(_0x4e5f66,'ELEMENT_'+_0x3f5174['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0xe9eae1=this['editor'],_0x31350a=_0xe9eae1['locale'];_0xe9eae1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x196d5c=>{if('formatBlock'!=_0x196d5c['type'])return;const {data:_0x59013f}=_0x196d5c;if(!_0x59013f)return;let _0x1b565b,_0x36cf7d;switch(_0x59013f['commandName']){case'listStyle':_0x1b565b='*Change\x20to:*\x20%0',_0x36cf7d={'type':'format','content':wt(_0x31350a,_0x1b565b,wt(_0x31350a,this['_getTranslationKeyForListStyle'](_0x59013f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1b565b=_0x59013f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x36cf7d={'type':'format','content':wt(_0x31350a,_0x1b565b)};break;case'listStart':_0x1b565b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x36cf7d={'type':'format','content':wt(_0x31350a,_0x1b565b,_0x59013f['commandParams'][0x0]['startIndex'])};}return _0x36cf7d;});}_getTranslationKeyForListStyle(_0x23424c){return'ELEMENT_'+(_0x104289=_0x23424c,Jt['includes'](_0x104289)?'bulleted':te['includes'](_0x104289)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x23424c['toUpperCase']()['replace'](/-/g,'_');var _0x104289;}};const Jt=['disc','circle','square'],te=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var ee=class extends _0x183f88{afterInit(){const _0x14d748=this['editor'];_0x14d748['commands']['get']('emoji')&&_0x14d748['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},ne=class extends _0x183f88{static get requires(){return[_t];}init(){const _0xfc93e6=this['editor'],_0x419251=_0xfc93e6['plugins']['get']('TrackChangesEditing'),_0x21db6e=_0xfc93e6['commands']['get']('enter');_0x419251['enableCommand']('enter',()=>{_0xfc93e6['model']['change'](_0x1781cf=>{const _0xa4e2f6=_0xfc93e6['model']['document']['selection'],_0x2ad006=_0xa4e2f6['getFirstPosition'](),_0x57b906=at['fromRange'](_0xa4e2f6['getFirstRange']());if(_0x21db6e['enterBlock'](_0x1781cf)){const _0x4f209c=_0xfc93e6['model']['createPositionAt'](_0x2ad006['parent']['nextSibling'],0x0),_0x26d70a=_0x1781cf['createRange'](_0x2ad006,_0x4f209c);_0x419251['markInsertion'](_0x26d70a);}else _0x1781cf['setSelection'](_0x1781cf['createRange'](_0x57b906['end']));_0x57b906['detach'](),_0x21db6e['fire']('afterExecute',{'writer':_0x1781cf});});});}},ie=class extends _0x183f88{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0xf2c042=this['editor']['plugins']['get']('TrackChangesEditing');_0xf2c042['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0xf2c042['enableCommand']('findNext'),_0xf2c042['enableCommand']('findPrevious'),_0xf2c042['enableCommand']('replace'),_0xf2c042['enableCommand']('replaceAll');}['handleFindCommand'](_0xcc24ac,_0x1d7896,_0x5c3f79={}){const _0x58dfaf=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xcc24ac(_0x50b5b1=>{let _0x538832=('string'==typeof _0x1d7896?_0x58dfaf['findByTextCallback'](_0x1d7896,_0x5c3f79):_0x1d7896)(_0x50b5b1);Array['isArray'](_0x538832)&&(_0x538832={'results':_0x538832,'searchText':'string'==typeof _0x1d7896?_0x1d7896:''});const _0x4ae236=_0x538832['results']['filter'](_0x4987b8=>!0x1===this['_isInDeletionRange'](_0x4987b8,_0x50b5b1['item']));return{..._0x538832,'results':_0x4ae236};},_0x5c3f79);}_isInDeletionRange(_0x4eb19b,_0x1f5bae){const _0x3efafa=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1f5bae,_0x4eb19b['start']),this['editor']['model']['createPositionAt'](_0x1f5bae,_0x4eb19b['end']));for(const _0x5180d1 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3efafa['getIntersection'](_0x5180d1['getRange']()))return!0x0;return!0x1;}};const se=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var re=class extends _0x183f88{afterInit(){const _0x4ac609=this['editor']['locale'],_0x557386=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x15c160,commandName:_0x54528e}of se)this['editor']['plugins']['has'](_0x15c160)&&_0x557386['enableDefaultAttributesIntegration'](_0x54528e);_0x557386['descriptionFactory']['registerAttributeLabel']('fontSize',wt(_0x4ac609,'FORMAT_FONT_SIZE')),_0x557386['descriptionFactory']['registerAttributeLabel']('fontFamily',wt(_0x4ac609,'FORMAT_FONT_FAMILY')),_0x557386['descriptionFactory']['registerAttributeLabel']('fontColor',wt(_0x4ac609,'FORMAT_FONT_COLOR')),_0x557386['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',wt(_0x4ac609,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x1d2efe=this['editor'],_0x3df5d7=_0x1d2efe['locale'];_0x1d2efe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b710f=>{const _0x44dcde=_0x3df5d7['t'];if('formatInline'!=_0x4b710f['type'])return;const {data:_0xc8249c}=_0x4b710f;if(null!=_0xc8249c){if('fontSize'==_0xc8249c['commandName']){const _0x59902f=_0xc8249c['commandParams'][0x0]['value'];if(_0x59902f){const _0x22dccc=_0x44dcde(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4b2ccb=>_0x4b2ccb['model']==_0x59902f)['title'])['toLowerCase']();return{'type':'format','content':wt(_0x3df5d7,'*Set\x20font\x20size:*\x20%0',_0x22dccc)};}return{'type':'format','content':wt(_0x3df5d7,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xc8249c['commandName']){const _0x1b32f7=_0xc8249c['commandParams'][0x0]['value'];return _0x1b32f7?{'type':'format','content':wt(_0x3df5d7,'*Set\x20font\x20family:*\x20%0',_0x1b32f7)}:{'type':'format','content':wt(_0x3df5d7,'*Reset\x20font\x20family*')};}if('fontColor'==_0xc8249c['commandName']){const _0x3f4924=_0xc8249c['commandParams'][0x0]['value'];if(_0x3f4924){const _0xed687c=_0x87e827(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3872ae=>_0x3872ae['model']==_0x3f4924);let _0x2c714c=_0x3f4924,_0x5dd01f='';return _0xed687c&&(_0x2c714c=_0xed687c['label'],_0x5dd01f=_0x5edaf3(_0x3df5d7,_0x2c714c)['toLowerCase']()),{'type':'format','content':wt(_0x3df5d7,'*Set\x20font\x20color:*\x20%0',_0x5dd01f)['trim'](),'color':{'value':_0x3f4924,'title':_0x5dd01f||_0x2c714c}};}return{'type':'format','content':wt(_0x3df5d7,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xc8249c['commandName']){const _0x2e7d81=_0xc8249c['commandParams'][0x0]['value'];if(_0x2e7d81){const _0x4094df=_0x87e827(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x19d4d2=>_0x19d4d2['model']==_0x2e7d81);let _0x5a5027=_0x2e7d81,_0x29a6d2='';return _0x4094df&&(_0x5a5027=_0x4094df['label'],_0x29a6d2=_0x5edaf3(_0x3df5d7,_0x5a5027)['toLowerCase']()),{'type':'format','content':wt(_0x3df5d7,'*Set\x20font\x20background\x20color:*\x20%0',_0x29a6d2)['trim'](),'color':{'value':_0x2e7d81,'title':_0x29a6d2||_0x5a5027}};}return{'type':'format','content':wt(_0x3df5d7,'*Reset\x20font\x20background\x20color*')};}}});}},oe=class extends _0x183f88{afterInit(){const {plugins:_0x225b47}=this['editor'];_0x225b47['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x225b47['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0x167270,plugins:_0x3276cb,commands:_0xb99569}=this['editor'],_0x526470=_0x3276cb['get']('TrackChangesEditing');_0xb99569['get']('footnotesStyle')&&_0x526470['enableDefaultAttributesIntegration']('footnotesStyle'),_0xb99569['get']('footnotesStart')&&_0x526470['enableDefaultAttributesIntegration']('footnotesStart'),_0x526470['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',wt(_0x167270,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x526470['descriptionFactory']['registerAttributeLabel']('footnotesListStart',wt(_0x167270,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0xa15df0=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x2aa8be,commands:_0x27a012}=this['editor'];_0x27a012['get']('insertFootnote')&&_0xa15df0['enableCommand']('insertFootnote'),_0xa15df0['descriptionFactory']['registerElementLabel']('footnoteRef',_0x25265f=>wt(_0x2aa8be,'ELEMENT_FOOTNOTE_REF',_0x25265f)),_0xa15df0['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x10fa0b=>wt(_0x2aa8be,'ELEMENT_FOOTNOTE_DEFINITION',_0x10fa0b)),_0xa15df0['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x1d27cd=>wt(_0x2aa8be,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x1d27cd));}},ae=class extends _0x183f88{afterInit(){const _0x1302b4=this['editor'],_0x299509=_0x1302b4['plugins']['get']('TrackChangesEditing'),_0x4bc638=_0x1302b4['commands']['get']('copyFormat'),_0x773c6d=_0x1302b4['commands']['get']('pasteFormat');_0x4bc638&&_0x773c6d&&(_0x299509['enableDefaultAttributesIntegration']('pasteFormat'),_0x299509['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x58c187=this['editor'],_0x241295=_0x58c187['locale'];_0x58c187['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4332da=>{if('formatBlock'!=_0x4332da['type']&&'formatInline'!=_0x4332da['type'])return;const {data:_0x4bc361}=_0x4332da;if(_0x4bc361&&'pasteFormat'===_0x4bc361['commandName']){const _0x31a44b=[],_0xedf8cb=_0x4bc361['commandParams'][0x0];for(const [_0x363e0f,_0x37fdf2]of Object['entries'](_0xedf8cb))_0x31a44b['push'](ce(_0x58c187,_0x363e0f,_0x37fdf2));return _0x31a44b['length']?{'type':'format','content':wt(_0x241295,'*Set\x20format\x20to:*\x20%0',_0x31a44b['join'](',\x20'))}:{'type':'format','content':wt(_0x241295,'*Remove\x20all\x20formatting*')};}});}};function ce(_0x5e7020,_0x51df42,_0x30a7cf){const _0x404264=_0x5e7020['locale'],_0x1c696e=_0x404264['t'],_0x2952f9=_0x51df42['split'](/(?=[A-Z])/)['join']('\x20'),_0x29ccd3=_0x1c696e(_0x2952f9['charAt'](0x0)['toUpperCase']()+_0x2952f9['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x30a7cf)return _0x29ccd3;if('fontColor'===_0x51df42||'fontBackgroundColor'===_0x51df42){const _0x43cb83=_0x87e827(_0x5e7020['config']['get']('fontColor.colors'))['find'](_0x29ac28=>_0x29ac28['model']==_0x30a7cf);return _0x29ccd3+'\x20('+(_0x43cb83?_0x5edaf3(_0x404264,_0x43cb83['label'])['toLowerCase']():_0x30a7cf)+')';}if('fontSize'===_0x51df42&&isNaN(parseFloat(_0x30a7cf))){const _0x7baba1=_0x5e7020['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5e7020['config']['get']('fontSize.options'))['find'](_0xa3ea1=>_0xa3ea1['model']==_0x30a7cf);return _0x29ccd3+'\x20('+(_0x7baba1?_0x1c696e(_0x7baba1['title'])['toLowerCase']():_0x30a7cf)+')';}return _0x29ccd3+'\x20('+_0x30a7cf+')';}var le=class extends _0x183f88{afterInit(){const _0x1d6196=this['editor'];if(!_0x1d6196['plugins']['has']('GeneralHtmlSupport')||!_0x1d6196['plugins']['has']('DataSchema'))return;const _0x29cd27=_0x1d6196['plugins']['get']('TrackChangesEditing'),_0x54676e=_0x1d6196['plugins']['get']('GeneralHtmlSupport'),_0x46f8b9=_0x1d6196['plugins']['get']('DataSchema'),_0x212ffa=_0x1d6196['locale'],_0x51565b=new Set(['htmlContent']);for(const _0x470a51 of _0x46f8b9['getDefinitionsForView'](/.*/,!0x1)){const _0x3503ec=_0x470a51['view'],_0x5383d2=_0x54676e['getGhsAttributeNameForElement'](_0x3503ec);_0x51565b['add'](_0x5383d2),!_0x470a51['isInline']||_0x470a51['isObject']||'appliesToBlock'in _0x470a51&&_0x470a51['appliesToBlock']||_0x29cd27['descriptionFactory']['registerAttributeLabel'](_0x5383d2,_0x3503ec),_0x470a51['model']['startsWith']('html')&&_0x29cd27['descriptionFactory']['registerElementLabel'](_0x470a51['model'],_0x274d01=>wt(_0x212ffa,'ELEMENT_HTML_TAG',[_0x274d01,_0x3503ec]));}_0x29cd27['descriptionFactory']['registerAttributeLabel']('htmlContent',wt(_0x212ffa,'FORMAT_RAW_HTML_CONTENT')),_0x29cd27['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',wt(_0x212ffa,'FORMAT_HTML_LIST_ITEM')),_0x29cd27['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',wt(_0x212ffa,'FORMAT_HTML_BULLETED_LIST')),_0x29cd27['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',wt(_0x212ffa,'FORMAT_HTML_NUMBERED_LIST')),_0x29cd27['descriptionFactory']['registerDescriptionCallback'](_0x1a412c=>{if('attribute'!==_0x1a412c['type'])return;const _0x28e3f1=_0x1a412c['data'];if(!_0x28e3f1||!_0x51565b['has'](_0x28e3f1['key']))return;if('htmlContent'===_0x28e3f1['key'])return{'type':'format','content':wt(_0x212ffa,'*Change\x20%0\x20content*',wt(_0x212ffa,'ELEMENT_RAW_HTML'))};const {setItems:_0x51f86e,removeItems:_0x48d17b}=function(_0x10ff43,_0x40d40a,_0x56621a){const _0xb6eee=[],_0x46aa62=[],_0x51e1b9=_0x10ff43['styles']??{},_0x441416=_0x40d40a['styles']??{};for(const _0x190c3a of new Set([...Object['keys'](_0x51e1b9),...Object['keys'](_0x441416)]))_0x51e1b9[_0x190c3a]!==_0x441416[_0x190c3a]&&(void 0x0===_0x441416[_0x190c3a]?_0x46aa62['push'](_0x190c3a):_0xb6eee['push'](_0x190c3a+'\x20('+_0x441416[_0x190c3a]+')'));const _0x59669e=wt(_0x56621a,'FORMAT_HTML_CLASS'),_0x1b14f0=new Set(_0x10ff43['classes']??[]),_0x58f783=new Set(_0x40d40a['classes']??[]),_0x2ce9b0=[..._0x58f783]['some'](_0x1b5f16=>!_0x1b14f0['has'](_0x1b5f16)),_0x3c6ca9=[..._0x1b14f0]['some'](_0x40f43b=>!_0x58f783['has'](_0x40f43b));_0x2ce9b0&&_0xb6eee['push'](_0x59669e),_0x3c6ca9&&_0x46aa62['push'](_0x59669e);const _0x2e9e34=wt(_0x56621a,'FORMAT_HTML_ATTRIBUTE'),_0x17daa3=_0x10ff43['attributes']??{},_0x383eff=_0x40d40a['attributes']??{};let _0x374032=!0x1,_0x530afb=!0x1;for(const _0x264d76 of new Set([...Object['keys'](_0x17daa3),...Object['keys'](_0x383eff)]))_0x17daa3[_0x264d76]!==_0x383eff[_0x264d76]&&(void 0x0===_0x383eff[_0x264d76]?_0x530afb=!0x0:_0x374032=!0x0);return _0x374032&&_0xb6eee['push'](_0x2e9e34),_0x530afb&&_0x46aa62['push'](_0x2e9e34),{'setItems':_0xb6eee,'removeItems':_0x46aa62};}(_0x28e3f1['oldValue']??{},_0x28e3f1['newValue']??{},_0x212ffa);if(!_0x51f86e['length']&&!_0x48d17b['length'])return;const _0xaddbc9=[];return _0x51f86e['length']&&_0xaddbc9['push'](wt(_0x212ffa,'*Set\x20format:*\x20%0',_0x51f86e['join'](',\x20'))),_0x48d17b['length']&&_0xaddbc9['push'](wt(_0x212ffa,'*Remove\x20format:*\x20%0',_0x48d17b['join'](',\x20'))),{'type':'format','content':_0xaddbc9['join']('\x0a')};});}},ue=class extends _0x183f88{_headingOptions;afterInit(){const _0x4b203f=this['editor'];if(!_0x4b203f['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4b203f['config']['get']('heading.options');const _0x35572e=_0x4b203f['locale'],_0x474140=_0x4b203f['plugins']['get']('TrackChangesEditing');_0x474140['enableDefaultAttributesIntegration']('heading');for(const _0x1594e7 of this['_headingOptions'])'paragraph'!=_0x1594e7['model']&&_0x474140['descriptionFactory']['registerElementLabel'](_0x1594e7['model'],_0x38028f=>{const _0x254ceb=this['_getHeadingLevel'](_0x1594e7['model']);return null!==_0x254ceb?_0xe18e08(_0x38028f,_0x254ceb):_0x20fad1(_0x38028f,_0x1594e7['title']);});function _0xe18e08(_0x46dd15,_0x187b8e){return wt(_0x35572e,'ELEMENT_HEADING',[_0x46dd15,_0x187b8e]);}function _0x20fad1(_0x40804f,_0x425770){return wt(_0x35572e,'ELEMENT_HEADING_CUSTOM',[_0x40804f,_0x425770]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x3731d1=this['editor'],_0x5bcca3=_0x3731d1['locale'];function _0x479ea8(_0x1547ab,_0x3aa814){return wt(_0x5bcca3,'ELEMENT_HEADING_CUSTOM',[_0x1547ab,_0x3aa814]);}_0x3731d1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf243cd=>{if('formatBlock'!=_0xf243cd['type'])return;const {data:_0x2bb02c}=_0xf243cd;if(_0x2bb02c&&'heading'==_0x2bb02c['commandName']){const _0x5b3ec3=_0x2bb02c['commandParams'][0x0]['value'],_0x2bb713=this['_getHeadingLevel'](_0x5b3ec3);if(null!==_0x2bb713)return{'type':'format','content':wt(_0x5bcca3,'*Change\x20to:*\x20%0',(_0x55407e=0x1,_0x32983a=_0x2bb713,wt(_0x5bcca3,'ELEMENT_HEADING',[_0x55407e,_0x32983a])))};const _0x50261d=this['_headingOptions']['find'](_0x5af65f=>_0x5af65f['model']===_0x5b3ec3)['title'];return{'type':'format','content':wt(_0x5bcca3,'*Change\x20to:*\x20%0',_0x479ea8(0x1,_0x50261d))};}var _0x55407e,_0x32983a;});}_getHeadingLevel(_0x56c4d4){const _0x2e25d6=_0x56c4d4['match'](/^heading(\d+)/);if(_0x2e25d6)return _0x2e25d6[0x1];const _0x16523a=this['_headingOptions']?.['find'](_0x7c8519=>_0x7c8519['model']==_0x56c4d4);if(_0x16523a&&_0x16523a['view']){const _0x313201=_0x16523a['view'],_0x487d72=(_0x313201['name']??_0x313201)['match'](/^h(\d+)/);if(_0x487d72)return _0x487d72[0x1];}return null;}},de=class extends _0x183f88{afterInit(){const _0x3f4490=this['editor'];if(!_0x3f4490['plugins']['has']('HighlightEditing'))return;const _0x23afed=_0x3f4490['plugins']['get']('TrackChangesEditing'),_0x181f38=_0x3f4490['locale'];_0x23afed['enableDefaultAttributesIntegration']('highlight'),_0x23afed['descriptionFactory']['registerAttributeLabel']('highlight',wt(_0x181f38,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x3afddd=this['editor'],_0x2316bc=_0x3afddd['locale'];_0x3afddd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x408b05=>{if('formatInline'!=_0x408b05['type'])return;const {data:_0x327788}=_0x408b05;if(_0x327788&&'highlight'==_0x327788['commandName']){const _0x3bb178=_0x2316bc['t'],_0x5f3d22=_0x327788['commandParams'][0x0]['value'];if(_0x5f3d22){const _0x546a41=_0x3afddd['config']['get']('highlight.options')['find'](_0x30e810=>_0x30e810['model']==_0x5f3d22),_0x2c1b2d=_0x3bb178(_0x546a41['title'])['toLowerCase']();return{'type':'format','content':wt(_0x2316bc,'*Set\x20highlight:*\x20%0',_0x2c1b2d),'color':{'value':_0x546a41['color'],'title':_0x546a41['title']}};}return{'type':'format','content':wt(_0x2316bc,'*Remove\x20highlight*',wt(_0x2316bc,'FORMAT_HIGHLIGHT'))};}});}},he=class extends _0x183f88{afterInit(){const _0x2d1f65=this['editor'];if(!_0x2d1f65['plugins']['has']('HorizontalLineEditing'))return;_0x2d1f65['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x230c25=_0x2d1f65['plugins']['get']('TrackChangesEditing'),_0x4c9aed=_0x2d1f65['locale'];_0x230c25['descriptionFactory']['registerElementLabel']('horizontalLine',_0x31613e=>wt(_0x4c9aed,'ELEMENT_HORIZONTAL_LINE',_0x31613e));}},ge=class extends _0x183f88{afterInit(){const _0x51f522=this['editor'];if(!_0x51f522['plugins']['has']('HtmlEmbed'))return;const _0x3ff7dc=_0x51f522['plugins']['get']('TrackChangesEditing'),_0x131dbd=_0x51f522['locale'];_0x3ff7dc['descriptionFactory']['registerElementLabel']('rawHtml',_0x3805b8=>wt(_0x131dbd,'ELEMENT_HTML_EMBED',_0x3805b8)),_0x3ff7dc['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3ff7dc['descriptionFactory']['registerDescriptionCallback'](_0xba980=>{if('attribute'!=_0xba980['type'])return;const {data:_0x49e09a}=_0xba980;if(_0x49e09a&&'value'==_0x49e09a['key']&&_0xba980['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x10549f=wt(_0x131dbd,'ELEMENT_HTML_EMBED');return{'type':'format','content':wt(_0x131dbd,'*Change\x20%0\x20content*',_0x10549f)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x9f08a8=this['editor'],_0x42e566=_0x9f08a8['locale'];_0x9f08a8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a04eb=>{if('formatBlock'!=_0x2a04eb['type'])return;const {data:_0x339af4}=_0x2a04eb;if(_0x339af4&&'htmlEmbed'==_0x339af4['commandName']){const _0x57ac66=wt(_0x42e566,'ELEMENT_HTML_EMBED');return{'type':'format','content':wt(_0x42e566,'*Change\x20%0\x20content*',_0x57ac66)};}});}},fe=class extends _0x183f88{afterInit(){const _0x27e0df=this['editor'];if(!_0x27e0df['plugins']['has']('ImageEditing'))return;const _0x4d9be3=_0x27e0df['plugins']['get']('TrackChangesEditing'),_0x3a6a5f=_0x27e0df['plugins']['get']('ImageUtils'),_0x566253=_0x27e0df['locale'];_0x4d9be3['enableCommand']('insertImage'),_0x4d9be3['descriptionFactory']['registerElementLabel']('imageBlock',_0x4112a8=>wt(_0x566253,'ELEMENT_IMAGE',_0x4112a8)),_0x4d9be3['descriptionFactory']['registerElementLabel']('imageInline',_0x3bc9be=>wt(_0x566253,'ELEMENT_INLINE_IMAGE',_0x3bc9be)),_0x4d9be3['descriptionFactory']['registerElementLabel']('caption',()=>wt(_0x566253,'ELEMENT_CAPTION')),_0x27e0df['plugins']['has']('ImageUploadEditing')&&_0x4d9be3['enableCommand']('uploadImage'),_0x27e0df['plugins']['has']('ImageBlockEditing')&&_0x27e0df['plugins']['has']('ImageInlineEditing')&&(_0x4d9be3['enableCommand']('imageTypeInline',(_0xe11eed,_0x27cec3)=>{const _0x1bcc51=_0x3a6a5f['getClosestSelectedImageElement'](_0x27e0df['model']['document']['selection']);_0x27e0df['model']['change'](()=>{_0x4d9be3['markBlockFormat'](_0x1bcc51,{'commandName':'imageTypeInline','commandParams':[_0x27cec3]},[],'convertBlockImageToInline');});}),_0x4d9be3['enableCommand']('imageTypeBlock',(_0xf33cbc,_0x455465)=>{_0x27e0df['model']['change'](_0x4eadc7=>{let _0x3add3b=_0x3a6a5f['getClosestSelectedImageElement'](_0x27e0df['model']['document']['selection']),_0x186f73=_0x4eadc7['createRangeOn'](_0x3add3b);const _0x18cf3f=ot['fromPosition'](_0x186f73['start'],'toPrevious'),_0x5e86ae=ot['fromPosition'](_0x186f73['end'],'toNext');_0x4d9be3['forceDefaultExecution'](()=>_0xf33cbc(_0x455465)),_0x3add3b=_0x3a6a5f['getClosestSelectedImageElement'](_0x27e0df['model']['document']['selection']),_0x186f73=_0x4eadc7['createRangeOn'](_0x3add3b);const _0x2a2688=_0x4eadc7['createRange'](_0x18cf3f,_0x5e86ae);_0x18cf3f['detach'](),_0x5e86ae['detach'](),_0x4d9be3['markBlockFormat'](_0x3add3b,{'commandName':'imageTypeInline','commandParams':[_0x455465]},[],'convertInlineImageToBlock'),_0x2a2688['start']['isBefore'](_0x186f73['start'])&&_0x4d9be3['markInsertion'](_0x4eadc7['createRange'](_0x2a2688['start'],_0x186f73['start']),'convertInlineImageToBlock'),_0x186f73['end']['isBefore'](_0x2a2688['end'])&&_0x4d9be3['markInsertion'](_0x4eadc7['createRange'](_0x186f73['end'],_0x2a2688['end']),'convertInlineImageToBlock');});}),_0x4d9be3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4d9be3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4d9be3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4d9be3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4d9be3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4d9be3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x533666])=>{const _0x5e51ab=_0x4d9be3['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x47a04a=_0x533666['start'],_0x521816=_0x533666['end'];const _0x424184=_0x27e0df['model']['schema']['getNearestSelectionRange'](_0x47a04a,'backward'),_0xdbf880=_0x27e0df['model']['schema']['getNearestSelectionRange'](_0x521816,'forward');_0x424184['isCollapsed']&&(_0x47a04a=_0x424184['start']),_0xdbf880['isCollapsed']&&(_0x521816=_0xdbf880['end']),_0x5e51ab([_0x27e0df['model']['createRange'](_0x47a04a,_0x521816)]);}),_0x4d9be3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x78b55a),_0x4d9be3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x78b55a)),_0x27e0df['plugins']['has']('ImageCaptionEditing')&&(_0x4d9be3['enableCommand']('toggleImageCaption',(_0xd97315,_0x539de4)=>{const _0x2f97f9=_0x27e0df['plugins']['get']('ImageCaptionUtils');let _0x1074a6=_0x3a6a5f['getClosestSelectedImageElement'](_0x27e0df['model']['document']['selection']),_0x46166e=_0x2f97f9['getCaptionFromImageModelElement'](_0x1074a6);_0x27e0df['model']['change'](()=>{if(_0x46166e)return void _0x4d9be3['markDeletion'](_0x27e0df['model']['createRangeOn'](_0x46166e));const _0x46e0b7=_0x3a6a5f['isBlockImage'](_0x1074a6);_0xd97315(_0x539de4),_0x1074a6=_0x3a6a5f['getClosestSelectedImageElement'](_0x27e0df['model']['document']['selection']),_0x46166e=_0x2f97f9['getCaptionFromImageModelElement'](_0x1074a6),_0x4d9be3['markInsertion'](_0x27e0df['model']['createRangeOn'](_0x46166e),_0x46e0b7?null:'imageCaption');});}),_0x4d9be3['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x78b55a));const _0x44e64c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x27b63d(_0xb07268,_0x7ca67b){const _0x2be33b=_0x44e64c['findIndex'](({type:_0x2b4754,subType:_0x2aea4b})=>_0xb07268['type']==_0x2b4754&&_0xb07268['subType']==_0x2aea4b),_0x147255=_0x44e64c['findIndex'](({type:_0x52d4a3,subType:_0x5da104})=>_0x7ca67b['type']==_0x52d4a3&&_0x7ca67b['subType']==_0x5da104);if(_0x2be33b<0x0||_0x147255<0x0)return!0x1;const _0xf646d0=_0xb07268['getFirstRange'](),_0x2e5628=_0x7ca67b['getFirstRange']();if((0x0==_0x2be33b||0x1==_0x2be33b)&&0x2==_0x147255&&_0xf646d0['isIntersecting'](_0x2e5628))return!0x0;if(0x2==_0x2be33b&&0x3==_0x147255){const _0x2e6a5a=_0x4d9be3['_findSuggestions'](_0xf646d0,'insertion')['filter'](({suggestion:_0x3762ea,meta:_0x3d1308})=>_0x3d1308['isOwn']&&'convertInlineImageToBlock'==_0x3762ea['subType']);if(_0x2e6a5a['length']>0x1&&_0x2e5628['end']['isEqual'](_0xf646d0['start']))return!0x0;if(0x1==_0x2e6a5a['length']&&(_0xf646d0['start']['isEqual'](_0x2e5628['end'])||_0xf646d0['end']['isEqual'](_0x2e5628['start'])))return!0x0;}if(0x3==_0x2be33b&&0x3==_0x147255&&_0xf646d0['start']['isBefore'](_0x2e5628['start'])){const _0x5a31e0=_0xf646d0['end']['nodeAfter'],_0x5606f0=_0x2e5628['start']['nodeBefore'];return _0x3a6a5f['isBlockImage'](_0x5a31e0)&&_0x5a31e0===_0x5606f0;}return!0x1;}function _0x78b55a(_0x247657,_0x1b22bc){return _0x27b63d(_0x247657,_0x1b22bc)?[_0x247657,_0x1b22bc]:_0x27b63d(_0x1b22bc,_0x247657)?[_0x1b22bc,_0x247657]:null;}_0x27e0df['plugins']['has']('ImageResize')&&(_0x4d9be3['enableDefaultAttributesIntegration']('resizeImage'),_0x4d9be3['descriptionFactory']['registerAttributeLabel']('resizedWidth',wt(_0x566253,'FORMAT_IMAGE_SIZE'))),_0x27e0df['plugins']['has']('ImageTextAlternativeEditing')&&_0x4d9be3['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x27e0df['plugins']['has']('PictureEditing')&&_0x4d9be3['descriptionFactory']['registerDescriptionCallback'](_0x2412ed=>{if('attribute'!=_0x2412ed['type'])return;const {data:_0xfc498c}=_0x2412ed;return _0xfc498c&&'sources'==_0xfc498c['key']?{'type':'format','content':''}:void 0x0;}),_0x27e0df['plugins']['has']('ImageSizeAttributes')&&_0x4d9be3['descriptionFactory']['registerDescriptionCallback'](_0x3201e5=>{if('attribute'!=_0x3201e5['type'])return;const {data:_0x2c09e7}=_0x3201e5;return!_0x2c09e7||'width'!=_0x2c09e7['key']&&'height'!=_0x2c09e7['key']?void 0x0:{'type':'format','content':''};}),_0x4d9be3['descriptionFactory']['registerDescriptionCallback'](_0x4cc863=>{if(_0x44e64c['find'](({type:_0x19e72a,subType:_0x4bb539})=>_0x4cc863['type']==_0x19e72a&&_0x4cc863['subType']==_0x4bb539))return _0x4cc863['previous']?{}:void 0x0;}),_0x4d9be3['descriptionFactory']['registerDescriptionCallback'](_0x126da6=>{if('insertion'==_0x126da6['type']||'deletion'==_0x126da6['type']){const _0x52921d=_0x126da6['getContainedElement']();if(_0x52921d&&_0x52921d['is']('element','caption'))return{'type':'insertion'==_0x126da6['type']?'addObject':'removeObject','element':_0x52921d,'quantity':0x1};}}),_0x4d9be3['descriptionFactory']['registerDescriptionCallback'](_0x1dcc86=>'formatBlock'==_0x1dcc86['type']&&'convertInlineImageToBlock'==_0x1dcc86['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1dcc86['type']&&'convertBlockImageToInline'==_0x1dcc86['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4d9be3['descriptionFactory']['registerDescriptionCallback'](_0x5aae0e=>{if('attribute'!=_0x5aae0e['type'])return;const {data:_0x1e2e02}=_0x5aae0e;if(!_0x1e2e02||'alt'!=_0x1e2e02['key'])return;const _0x8678f6=_0x1e2e02['newValue'];return _0x8678f6?{'type':'format','content':wt(_0x566253,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x8678f6+'\x22')}:{'type':'format','content':wt(_0x566253,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x56a79d=this['editor'],_0x349d53=_0x56a79d['locale'];_0x56a79d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x403b7d=>{if('formatBlock'!=_0x403b7d['type']&&'formatInline'!=_0x403b7d['type'])return;const {data:_0x3efc3f}=_0x403b7d;if(_0x3efc3f){if('imageTextAlternative'==_0x3efc3f['commandName']){const _0x55a3de=_0x3efc3f['commandParams'][0x0]['newValue'];return _0x55a3de?{'type':'format','content':wt(_0x349d53,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x55a3de+'\x22')}:{'type':'format','content':wt(_0x349d53,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3efc3f['commandName']){const _0x520e9c=_0x3efc3f['commandParams'][0x0]['width'];return _0x520e9c?{'type':'format','content':wt(_0x349d53,'*Set\x20image\x20width:*\x20%0',_0x520e9c)}:{'type':'format','content':wt(_0x349d53,'*Reset\x20image\x20width*')};}}});}},me=class extends _0x183f88{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4c2cff=this['editor']['locale'],_0x15bd44=this['editor']['plugins']['get']('TrackChangesEditing');_0x15bd44['enableDefaultAttributesIntegration']('replaceImageSource'),_0x15bd44['descriptionFactory']['registerDescriptionCallback'](_0x25da2b=>{if('attribute'!=_0x25da2b['type'])return;const {data:_0x1e1b6c}=_0x25da2b;return _0x1e1b6c&&'src'==_0x1e1b6c['key']?_0x1e1b6c['newValue']&&_0x1e1b6c['oldValue']?{'type':'format','content':wt(_0x4c2cff,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x3c159b=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c159b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3c159b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3c159b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3c159b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x339d42=this['editor'],_0x2f5606=_0x339d42['locale'];_0x339d42['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41ae70=>{if('formatBlock'!=_0x41ae70['type']&&'formatInline'!=_0x41ae70['type'])return;const {data:_0x2d5b16}=_0x41ae70;return _0x2d5b16&&'replaceImageSource'==_0x2d5b16['commandName']?{'type':'format','content':wt(_0x2f5606,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},Ee=class extends _0x183f88{afterInit(){const _0x3c3f5f=this['editor'];if(!_0x3c3f5f['plugins']['has']('ImageStyleEditing'))return;const _0x233b21=_0x3c3f5f['plugins']['get']('TrackChangesEditing'),_0x67e7cc=_0x3c3f5f['plugins']['get']('ImageUtils'),_0x5decef={};_0x233b21['enableCommand']('imageStyle',(_0x187048,_0x32363f)=>{const _0x56d307=_0x3c3f5f['plugins']['get']('Users')['me'],_0x285de9=_0x3c3f5f['commands']['get']('imageStyle');let _0x5ef50e=_0x67e7cc['getClosestSelectedImageElement'](_0x3c3f5f['model']['document']['selection']),_0x48e314=_0x3c3f5f['model']['createRangeOn'](_0x5ef50e),_0x135e57=_0x285de9['value'];if(_0x135e57==_0x32363f['value'])return;if(_0x32363f['value']&&_0x67e7cc['isInlineImage'](_0x5ef50e)&&!_0x285de9['isStyleEnabled'](_0x32363f['value']))return;const _0x26b1d7={'commandName':'imageStyle','commandParams':[_0x32363f],'formatGroupId':_0x1172bd()};_0x3c3f5f['model']['change'](()=>{if(_0x233b21['getSuggestions']()['filter'](_0x2ef899=>_0x2ef899['isInContent']&&_0x56d307==_0x2ef899['author']&&('formatBlock'==_0x2ef899['type']||'formatInline'==_0x2ef899['type'])&&('imageStylePreApply'==_0x2ef899['subType']||'imageStylePostApply'==_0x2ef899['subType'])&&_0x2ef899['getFirstRange']()['isEqual'](_0x48e314))['forEach'](_0x1bdd87=>_0x233b21['discardSuggestion'](_0x1bdd87['head'])),_0x5ef50e=_0x67e7cc['getClosestSelectedImageElement'](_0x3c3f5f['model']['document']['selection']),_0x48e314=_0x3c3f5f['model']['createRangeOn'](_0x5ef50e),_0x285de9['refresh'](),_0x3c3f5f['commands']['get']('imageTypeInline')['refresh'](),_0x3c3f5f['commands']['get']('imageTypeBlock')['refresh'](),_0x135e57=_0x285de9['value'],_0x135e57!=_0x32363f['value'])return _0x67e7cc['isInlineImage'](_0x5ef50e)&&_0x285de9['shouldConvertImageType'](_0x32363f['value'],_0x5ef50e)?(_0x187048({..._0x32363f,'setImageSizes':!0x1}),_0x5ef50e=_0x67e7cc['getClosestSelectedImageElement'](_0x3c3f5f['model']['document']['selection']),void _0x233b21['markBlockFormat'](_0x5ef50e,{..._0x26b1d7,'commandReversedParams':[{'value':_0x135e57||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x67e7cc['isBlockImage'](_0x5ef50e)?_0x233b21['markBlockFormat'](_0x5ef50e,_0x26b1d7,[],'imageStylePostApply'):_0x233b21['markInlineFormat'](_0x48e314,_0x26b1d7,'imageStylePostApply'));});});for(const _0xa56a07 of _0x3c3f5f['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5decef[_0xa56a07['name']]=_0xa56a07['title']['toLowerCase']();_0x233b21['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x233b21['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x233b21['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x233b21['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x76f8e3])=>{_0x67e7cc['setImageNaturalSizeAttributes'](_0x76f8e3['getContainedElement']());}),_0x233b21['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4a2993,_0x1b6f1a)=>{_0x233b21['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4a2993,{'commandName':_0x1b6f1a['commandName'],'commandParams':_0x1b6f1a['commandReversedParams']});}),_0x233b21['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xc5e85c,_0x234a33){return _0x152ed7(_0xc5e85c,_0x234a33)?[_0xc5e85c,_0x234a33]:_0x152ed7(_0x234a33,_0xc5e85c)?[_0x234a33,_0xc5e85c]:null;});const _0x4800ab=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x152ed7(_0x44fe20,_0xf8004a){const _0x1beae9=_0x4800ab['findIndex'](({type:_0x78d787,subType:_0x541a63})=>_0x44fe20['type']==_0x78d787&&_0x44fe20['subType']==_0x541a63),_0x872a14=_0x4800ab['findIndex'](({type:_0x1c2d7b,subType:_0x567415})=>_0xf8004a['type']==_0x1c2d7b&&_0xf8004a['subType']==_0x567415);if(_0x1beae9<0x0||_0x872a14<0x0)return!0x1;const _0x384e43=_0x44fe20['getFirstRange'](),_0x24af46=_0xf8004a['getFirstRange']();if((0x0==_0x1beae9||0x1==_0x1beae9)&&0x2==_0x872a14&&_0x384e43['isIntersecting'](_0x24af46))return!0x0;if(0x2==_0x1beae9&&0x3==_0x872a14){const _0x56a458=_0x233b21['_findSuggestions'](_0x384e43,'insertion')['filter'](({suggestion:_0x2b6d7e,meta:_0xd85e5c})=>_0xd85e5c['isOwn']&&'convertInlineImageToBlock'==_0x2b6d7e['subType']);if(_0x56a458['length']>0x1&&_0x24af46['end']['isEqual'](_0x384e43['start']))return!0x0;if(0x1==_0x56a458['length']&&(_0x384e43['start']['isEqual'](_0x24af46['end'])||_0x384e43['end']['isEqual'](_0x24af46['start'])))return!0x0;}if(0x3==_0x1beae9&&0x3==_0x872a14&&_0x384e43['start']['isBefore'](_0x24af46['start'])){const _0x4480be=_0x384e43['end']['nodeAfter'],_0x3860b2=_0x24af46['start']['nodeBefore'];return _0x67e7cc['isBlockImage'](_0x4480be)&&_0x4480be===_0x3860b2;}return!0x1;}_0x3c3f5f['model']['document']['registerPostFixer'](()=>{let _0x338fee=!0x1;const _0xc324f8=Array['from'](_0x3c3f5f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x38be7c,data:_0x3c7276}of _0xc324f8){const {group:_0x467283,type:_0x183b57,subType:_0x251396,id:_0x10dfda}=nt(_0x38be7c);if('suggestion'==_0x467283&&_0x233b21['hasSuggestion'](_0x10dfda)){if('formatBlock'==_0x183b57&&('imageStylePreApply'==_0x251396||'imageStylePostApply'==_0x251396)){const _0xd44603=_0x233b21['getSuggestion'](_0x10dfda);if(_0x3c7276['newRange']){const _0x16c3f2=_0xd44603['getFirstRange']()['getContainedElement']();if(_0x67e7cc['isBlockImage'](_0x16c3f2))continue;_0x233b21['discardSuggestion'](_0xd44603),_0x338fee=!0x0;}}if('insertion'==_0x183b57&&'imageCaption'==_0x251396&&!_0x3c7276['newRange']){const _0x310e7f=_0x233b21['getSuggestion'](_0x10dfda);_0x310e7f['next']&&_0x310e7f['next']['isInContent']&&(_0x233b21['discardSuggestion'](_0x310e7f['next']),_0x338fee=!0x0);}}}return _0x338fee;}),this['_registerLegacyDescription'](_0x5decef);}_registerLegacyDescription(_0x2970f4){const _0x495b63=this['editor'],_0x3e0981=_0x495b63['locale'];_0x495b63['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52c651=>{if('formatBlock'!=_0x52c651['type']&&'formatInline'!=_0x52c651['type'])return;const {data:_0x4c8255}=_0x52c651;if(!_0x4c8255||'imageStyle'!=_0x4c8255['commandName'])return;const _0x4db898=_0x4c8255['commandParams'][0x0]['value'];return _0x1be11e('side'===_0x4db898?wt(_0x3e0981,'FORMAT_SIDE_IMAGE'):_0x2970f4[_0x4db898]||_0x4db898);function _0x1be11e(_0x4d50f8){return{'type':'format','content':wt(_0x3e0981,'*Format:*\x20%0',_0x4d50f8)};}});}},Te=class extends _0x183f88{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0x9d98c3){super(_0x9d98c3),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0x4339c5=this['editor'],_0x5eb37e=_0x4339c5['commands']['get']('importWord'),_0x15389b=_0x4339c5['commands']['get']('trackChanges');_0x5eb37e&&(_0x5eb37e['on']('execute',(_0x1611e9,[,_0x2c283e])=>{this['_trackChangesValueDuringImport']=_0x15389b['value'],_0x2c283e['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5eb37e,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5eb37e,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x15389b['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4339c5['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0x124c67,_0x41d3dc){const {suggestions:_0x4bb890}=_0x41d3dc,_0x3f121a=this['editor']['commands']['get']('trackChanges'),_0xb92c25=_0x3f121a['value'];this['_trackChangesValueDuringImport']!==_0xb92c25&&(_0x3f121a['execute'](),this['_trackChangesExecuted']=!0x0),_0x4bb890&&_0x4bb890['forEach'](({id:_0x3855dd,type:_0x3088d3,author:_0x3e60f9,created_at:_0x89433b})=>{const _0x5107ab={'id':_0x3855dd,'type':_0x3088d3,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3e60f9,'createdAt':_0x89433b?new Date(_0x89433b):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5107ab);});}},_e=class extends _0x183f88{afterInit(){const _0x3d2a22=this['editor'],_0x16d3ab=_0x3d2a22['plugins']['get']('TrackChangesEditing');if(_0x3d2a22['plugins']['has']('IndentEditing')&&(_0x16d3ab['enableCommand']('indent'),_0x16d3ab['enableCommand']('outdent')),_0x3d2a22['plugins']['has']('IndentBlock')){for(const _0x18bf62 of['indentBlock','outdentBlock'])_0x16d3ab['enableDefaultAttributesIntegration'](_0x18bf62);if(_0x3d2a22['plugins']['has']('ListEditing')){for(const _0x22062c of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x16d3ab['enableDefaultAttributesIntegration'](_0x22062c);}}const _0x4ddc87=_0x3d2a22['locale'];_0x16d3ab['descriptionFactory']['registerAttributeLabel']('blockIndent',wt(_0x4ddc87,'FORMAT_INDENT')),_0x16d3ab['descriptionFactory']['registerAttributeLabel']('blockIndentList',wt(_0x4ddc87,'FORMAT_INDENT')),_0x16d3ab['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',wt(_0x4ddc87,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x53af0f=this['editor'],_0x407720=_0x53af0f['locale'],_0xc58412=_0x53af0f['plugins']['get']('TrackChangesEditing');_0xc58412['descriptionFactory']['registerDescriptionCallback'](_0x3f5cd3=>{if('formatBlock'!=_0x3f5cd3['type'])return;const {data:_0x4584d1}=_0x3f5cd3;if(!_0x4584d1)return;if('indentBlock'!=_0x4584d1['commandName']&&'outdentBlock'!=_0x4584d1['commandName'])return;const _0x3e6fcc=_0x3f5cd3['getItems']()[0x0],_0x166303=_0xc58412['descriptionFactory']['getItemLabel'](_0x3e6fcc);return'indentBlock'==_0x4584d1['commandName']?{'type':'format','content':wt(_0x407720,'*Indent:*\x20%0',_0x166303)}:'outdentBlock'==_0x4584d1['commandName']?{'type':'format','content':wt(_0x407720,'*Outdent:*\x20%0',_0x166303)}:void 0x0;});}},pe=class extends _0x183f88{static get requires(){return[Tt];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},Le=class extends _0x183f88{afterInit(){const _0x30a01d=this['editor'];if(!_0x30a01d['plugins']['has']('LinkEditing'))return;const _0x397941=_0x30a01d['plugins']['get']('TrackChangesEditing'),_0x5f5aca=_0x30a01d['commands']['get']('link');_0x397941['enableDefaultAttributesIntegration']('link'),_0x397941['enableDefaultAttributesIntegration']('unlink');for(const _0x24c16f of _0x5f5aca['manualDecorators'])_0x397941['descriptionFactory']['registerAttributeLabel'](_0x24c16f['id'],'link\x20('+_0x24c16f['label']['toLowerCase']()+')');_0x397941['descriptionFactory']['registerDescriptionCallback'](_0x480517=>{if('attribute'!=_0x480517['type'])return;const {data:_0x702701}=_0x480517;if(!_0x702701||'linkHref'!=_0x702701['key'])return;const _0x46a70a=_0x702701['newValue'],_0x52bf80=_0x30a01d['locale'];return{'type':'format','content':null==_0x46a70a?wt(_0x52bf80,'*Remove\x20link*'):wt(_0x52bf80,'*Set\x20link:*\x20%0','\x22'+_0x46a70a+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x2a18cd=this['editor'],_0x5a9ca2=_0x2a18cd['locale'];_0x2a18cd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x274866=>{if('formatInline'!=_0x274866['type'])return;const {data:_0x5d0ca}=_0x274866;if(_0x5d0ca){if('link'==_0x5d0ca['commandName']){const _0x20287a=_0x5d0ca['commandParams'][0x0];return{'type':'format','content':wt(_0x5a9ca2,'*Set\x20link:*\x20%0','\x22'+_0x20287a+'\x22')};}return'unlink'==_0x5d0ca['commandName']?{'type':'format','content':wt(_0x5a9ca2,'*Remove\x20link*')}:void 0x0;}});}},Ie=class extends _0x183f88{afterInit(){const _0x1dfa7c=this['editor'],_0x30e682=_0x1dfa7c['locale'];if(!_0x1dfa7c['plugins']['has']('LegacyListEditing'))return;const _0x1d2917=_0x1dfa7c['plugins']['get']('TrackChangesEditing'),_0x499e08=_0x1dfa7c['plugins']['has']('LegacyTodoListEditing');function _0x19c5eb(_0x581176){return()=>{const _0x3f9019=_0x1dfa7c['model']['document']['selection'],_0x31d506=_0x1dfa7c['commands']['get'](_0x581176);if(_0x31d506['value'])return void _0x1dfa7c['execute']('paragraph',{});const _0x107fb3=_0x581176['slice'](0x0,-0x4),_0x8dd97=function(_0x58a5f4,_0x382456,_0x8a0205){let _0x5afedb=Array['from'](_0x58a5f4)['filter'](_0x580fb4=>function(_0x47e50c,_0x3c01fd){return _0x3c01fd['checkChild'](_0x47e50c['parent'],'listItem')&&!_0x3c01fd['isObject'](_0x47e50c);}(_0x580fb4,_0x8a0205));_0x5afedb=_0x5afedb['filter'](_0xcff4da=>!_0xcff4da['is']('element','listItem')||_0xcff4da['getAttribute']('listType')!=_0x382456);const _0x118cc8=new Set();for(const _0x2e6537 of _0x5afedb)_0x2e6537['is']('element','listItem')?_0x118cc8['add'](Ae(_0x2e6537)):_0x118cc8['add'](_0x2e6537);return Array['from'](_0x118cc8);}(_0x3f9019['getSelectedBlocks'](),_0x107fb3,_0x1dfa7c['model']['schema']);_0x1dfa7c['model']['change'](()=>{for(const _0x31ff97 of _0x8dd97)_0x1d2917['markBlockFormat'](_0x31ff97,{'commandName':_0x581176,'commandParams':[{'forceValue':!_0x31d506['value']}],'formatGroupId':'blockName'},be(_0x31ff97));});};}function _0x327fd7(_0x25ab6b){return()=>{const _0x3700ef=function(_0xfab5d4){let _0x1359eb=Array['from'](_0xfab5d4);const _0x138933=_0x1359eb['findIndex'](_0x1b195c=>'listItem'!=_0x1b195c['name']);return _0x138933>-0x1&&(_0x1359eb=_0x1359eb['slice'](0x0,_0x138933)),_0x1359eb;}(_0x1dfa7c['model']['document']['selection']['getSelectedBlocks']()),_0x291d09=_0x1dfa7c['model']['createRange'](_0x1dfa7c['model']['createPositionAt'](_0x3700ef[0x0],'before'),_0x1dfa7c['model']['createPositionAt'](_0x3700ef[_0x3700ef['length']-0x1],'end'));_0x1dfa7c['model']['change'](()=>{_0x1d2917['markBlockFormat'](_0x291d09,{'commandName':_0x25ab6b,'commandParams':[],'formatGroupId':'listIndent'},function(_0x20eb3f){const _0x441b16=new Set();for(const _0x237a19 of _0x20eb3f){let _0x5cd6bc=_0x237a19['nextSibling'];for(;_0x5cd6bc&&_0x5cd6bc['getAttribute']('listIndent')>_0x237a19['getAttribute']('listIndent');)_0x441b16['add'](_0x5cd6bc),_0x5cd6bc=_0x5cd6bc['nextSibling'];}return Array['from'](_0x441b16);}(_0x3700ef));});};}_0x1d2917['enableCommand']('numberedList',_0x19c5eb('numberedList')),_0x1d2917['enableCommand']('bulletedList',_0x19c5eb('bulletedList')),_0x499e08&&_0x1d2917['enableCommand']('todoList',_0x19c5eb('todoList')),_0x1d2917['enableCommand']('indentList',_0x327fd7('indentList')),_0x1d2917['enableCommand']('outdentList',_0x327fd7('outdentList')),_0x499e08&&_0x1d2917['enableCommand']('checkTodoList',()=>{const _0x5d36bd=_0x1dfa7c['commands']['get']('checkTodoList'),_0x10f205=Array['from'](_0x5d36bd['_selectedElements']);_0x10f205['filter'](_0x4cf714=>_0x4cf714['getAttribute']('todoListChecked')!=_0x5d36bd['value']),_0x1dfa7c['model']['change'](()=>{for(const _0x3bd5c4 of _0x10f205)_0x1d2917['markBlockFormat'](_0x3bd5c4,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5d36bd['value']}]});});}),_0x1d2917['descriptionFactory']['registerElementLabel']('listItem',_0x1e91fd=>wt(_0x30e682,'ELEMENT_LIST_ITEM',_0x1e91fd)),_0x1d2917['descriptionFactory']['registerDescriptionCallback'](_0x109e25=>{if('formatBlock'!=_0x109e25['type']&&'formatInline'!=_0x109e25['type'])return;const {data:_0x2f4fe9}=_0x109e25;if(_0x2f4fe9){if('numberedList'==_0x2f4fe9['commandName']||'bulletedList'==_0x2f4fe9['commandName']||'todoList'==_0x2f4fe9['commandName'])switch(_0x2f4fe9['commandName']['replace']('List','')){case'bulleted':return _0x1f2834(wt(_0x30e682,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1f2834(wt(_0x30e682,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1f2834(wt(_0x30e682,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2f4fe9['commandName'])return{'type':'format','content':wt(_0x30e682,'*Indent:*\x20%0',wt(_0x30e682,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2f4fe9['commandName'])return{'type':'format','content':wt(_0x30e682,'*Outdent:*\x20%0',wt(_0x30e682,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2f4fe9['commandName'])return _0x2f4fe9['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x30e682,'*Check\x20item*')}:{'type':'format','content':wt(_0x30e682,'*Uncheck\x20item*')};}function _0x1f2834(_0x1cca79){return{'type':'format','content':wt(_0x30e682,'*Change\x20to:*\x20%0',_0x1cca79)};}});}};function Ae(_0x29a661){const _0xf7083b=_0x29a661['getAttribute']('listIndent');if(0x0==_0xf7083b)return _0x29a661;let _0x58ac5f=_0x29a661;for(;_0x29a661['previousSibling']&&_0x29a661['previousSibling']['is']('element','listItem');){const _0x4a3240=_0x29a661['previousSibling']['getAttribute']('listIndent');if(_0x4a3240==_0xf7083b)_0x58ac5f=_0x29a661['previousSibling'];else{if(_0x4a3240<_0xf7083b)break;}_0x29a661=_0x29a661['previousSibling'];}return _0x58ac5f;}function be(_0x496a44){const _0x2750e1=[];if(_0x496a44['is']('element','listItem')&&_0x496a44['getAttribute']('listIndent')>0x0){let _0x25a58d=_0x496a44['nextSibling'];for(;_0x25a58d&&'listItem'==_0x25a58d['name']&&_0x25a58d['getAttribute']('listIndent')==_0x496a44['getAttribute']('listIndent');)_0x2750e1['push'](_0x25a58d),_0x25a58d=_0x25a58d['nextSibling'];}return _0x2750e1;}var Ce=class extends _0x183f88{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x476410=this['editor']['config']['get']('list.properties'),_0x55c178=this['editor']['plugins']['get']('TrackChangesEditing');_0x476410['styles']&&_0x55c178['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x476410['reversed']&&_0x55c178['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x476410['startIndex']&&_0x55c178['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x55c178['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0xb73567,_0x7c6eac={}){const _0x536b03=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3fa46e=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x536b03['markMultiRangeBlockFormat'](_0x3fa46e,{'commandName':'listStyle','commandParams':[{'type':_0x7c6eac['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0x166900,_0x5f1a77={}){const _0xa170ac=this['editor']['plugins']['get']('TrackChangesEditing'),_0x36770a=this['_getSuggestionBlocks'](_0x2c7a00=>_0x2c7a00['is']('element','listItem')&&'numbered'===_0x2c7a00['getAttribute']('listType'));if(_0x36770a['length']<0x1)return;const _0xe53789=_0x36770a['map'](_0x758fd5=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x758fd5,'before'),this['editor']['model']['createPositionAt'](_0x758fd5,0x0)));this['editor']['model']['change'](()=>{_0xa170ac['markMultiRangeBlockFormat'](_0xe53789,{'commandName':'listReversed','commandParams':[{'reversed':_0x5f1a77['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0x8a613c,_0x5d2331={}){const _0x50ea7d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x149f4f=this['_getSuggestionBlocks'](_0x4e675f=>_0x4e675f['is']('element','listItem')&&'numbered'===_0x4e675f['getAttribute']('listType'));if(_0x149f4f['length']<0x1)return;const _0x5ec47b=_0x149f4f['map'](_0x3bd0d4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3bd0d4,'before'),this['editor']['model']['createPositionAt'](_0x3bd0d4,0x0)));this['editor']['model']['change'](()=>{_0x50ea7d['markMultiRangeBlockFormat'](_0x5ec47b,{'commandName':'listStart','commandParams':[{'startIndex':_0x5d2331['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0x342b6e){if('formatBlock'!=_0x342b6e['type']&&'formatInline'!=_0x342b6e['type'])return;const _0x2cb470=this['editor']['locale'],{data:_0x42c47f}=_0x342b6e;if(!_0x42c47f)return;let _0x39e411,_0x3cec5d;switch(_0x42c47f['commandName']){case'listStyle':_0x39e411='*Change\x20to:*\x20%0',_0x3cec5d={'type':'format','content':wt(_0x2cb470,_0x39e411,wt(_0x2cb470,this['_getTranslationKeyForListStyle'](_0x42c47f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x39e411=_0x42c47f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3cec5d={'type':'format','content':wt(_0x2cb470,_0x39e411)};break;case'listStart':_0x39e411='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3cec5d={'type':'format','content':wt(_0x2cb470,_0x39e411,_0x42c47f['commandParams'][0x0]['startIndex'])};}return _0x3cec5d;}_getSuggestionBlocksForListStyle(){const _0x51bd82=this['editor']['plugins']['get']('LegacyListUtils');let _0x5b25ff=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5b25ff[0x0]?.['is']('element','listItem')&&_0x5b25ff['unshift'](..._0x51bd82['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5b25ff[_0x5b25ff['length']-0x1]?.['is']('element','listItem')&&_0x5b25ff['push'](..._0x51bd82['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5b25ff=[...new Set(_0x5b25ff)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5b25ff=_0x5b25ff['filter'](_0x497628=>_0x497628['is']('element','listItem'))),_0x5b25ff;}_getSuggestionBlocks(_0x293419){const _0x1aec7d=this['editor']['plugins']['get']('LegacyListUtils');let _0x34b3c7=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x293419)['map'](_0x270098=>{const _0x306400=this['editor']['model']['createPositionAt'](_0x270098,0x0);return[..._0x1aec7d['getSiblingNodes'](_0x306400,'backward'),..._0x1aec7d['getSiblingNodes'](_0x306400,'forward')];})['flat']();return _0x34b3c7=[...new Set(_0x34b3c7)],_0x34b3c7;}_getTranslationKeyForListStyle(_0x39ff44){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x39ff44)||'default')['toUpperCase']()+'_LIST_'+_0x39ff44['toUpperCase']()['replace'](/-/g,'_');}},ke=class extends _0x183f88{afterInit(){const _0x27a930=this['editor'];if(!_0x27a930['plugins']['has']('MediaEmbedEditing'))return;const _0x11cc14=_0x27a930['plugins']['get']('TrackChangesEditing'),_0x56641d=_0x27a930['locale'];_0x11cc14['enableCommand']('mediaEmbed'),_0x11cc14['descriptionFactory']['registerElementLabel']('media',_0x54dd53=>wt(_0x56641d,'ELEMENT_MEDIA',_0x54dd53)),_0x27a930['plugins']['has']('MediaEmbedResizeEditing')&&(_0x11cc14['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x11cc14['descriptionFactory']['registerDescriptionCallback'](_0x29dcd5=>{if('attribute'!=_0x29dcd5['type'])return;const {data:_0x509caf}=_0x29dcd5;if(!_0x509caf||'resizedWidth'!=_0x509caf['key'])return;const _0x562ea2=_0x29dcd5['getContainedElement']();if(!_0x562ea2||!_0x562ea2['is']('element','media'))return;const _0x1ea6b5=wt(_0x56641d,'FORMAT_MEDIA_SIZE');return{'type':'format','content':wt(_0x56641d,'*Set\x20format:*\x20%0',_0x1ea6b5)};}));}},Re=class extends _0x183f88{afterInit(){const _0x2a2206=this['editor'];if(!_0x2a2206['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x55c25e=_0x2a2206['plugins']['get']('TrackChangesEditing'),_0x4cf958=_0x2a2206['locale'],_0x5e974d=_0x2a2206['plugins']['get']('MediaEmbedStyleEditing'),_0x5f51bd={};for(const _0x1645e2 of _0x5e974d['normalizedStyles'])_0x5f51bd[_0x1645e2['name']]=_0x1645e2['title']['toLowerCase']();const _0x2b81ea=_0x5e974d['normalizedStyles']['find'](_0x56663a=>_0x56663a['isDefault'])?.['name'];_0x55c25e['enableCommand']('mediaStyle',(_0x548fd7,_0x1b5f03)=>{const _0x678f9c=_0x2a2206['plugins']['get']('Users')['me'],_0x1b3716=_0x2a2206['commands']['get']('mediaStyle'),_0x412c7b=function(_0x1a975d){const _0x3d1d1a=_0x1a975d['model']['document']['selection']['getSelectedElement']();return _0x3d1d1a&&_0x3d1d1a['is']('element','media')?_0x3d1d1a:null;}(_0x2a2206);if(!_0x412c7b)return;const _0x102cad=_0x2a2206['model']['createRangeOn'](_0x412c7b);let _0x1b9b05=_0x1b3716['value'];if(_0x1b9b05==_0x1b5f03['value'])return;const _0x28db97={'commandName':'mediaStyle','commandParams':[_0x1b5f03],'formatGroupId':_0x1172bd()};_0x2a2206['model']['change'](()=>{_0x55c25e['getSuggestions']()['filter'](_0x15c2f7=>_0x15c2f7['isInContent']&&_0x678f9c==_0x15c2f7['author']&&'formatBlock'==_0x15c2f7['type']&&'mediaStylePostApply'==_0x15c2f7['subType']&&_0x15c2f7['getFirstRange']()['isEqual'](_0x102cad))['forEach'](_0x83c386=>_0x55c25e['discardSuggestion'](_0x83c386['head'])),_0x1b3716['refresh'](),_0x1b9b05=_0x1b3716['value'],_0x1b9b05!=_0x1b5f03['value']&&_0x55c25e['markBlockFormat'](_0x412c7b,{..._0x28db97,'commandReversedParams':[{'value':'string'==typeof _0x1b9b05?_0x1b9b05:null}]},[],'mediaStylePostApply');});}),_0x55c25e['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x55c25e['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x1e1651,_0x42e586)=>{_0x55c25e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1e1651,{'commandName':_0x42e586['commandName'],'commandParams':_0x42e586['commandReversedParams']});}),_0x55c25e['descriptionFactory']['registerDescriptionCallback'](_0x194da7=>{if('formatBlock'!=_0x194da7['type'])return;const {data:_0x4e04ae}=_0x194da7;if(!_0x4e04ae||'mediaStyle'!=_0x4e04ae['commandName'])return;const _0x5e398a=_0x4e04ae['commandParams'][0x0]['value']||_0x2b81ea;if(!_0x5e398a)return;const _0x2e2cdb=_0x5f51bd[_0x5e398a]||_0x5e398a;return{'type':'format','content':wt(_0x4cf958,'*Format:*\x20%0',_0x2e2cdb)};});}},Ne=class extends _0x183f88{afterInit(){const _0x3a0973=this['editor'];_0x3a0973['plugins']['has']('MentionEditing')&&_0x3a0973['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},ye=class extends _0x183f88{afterInit(){const _0x35dd2b=this['editor'];if(!_0x35dd2b['plugins']['has']('MergeFieldsEditing'))return;const _0x26fc05=_0x35dd2b['plugins']['get']('TrackChangesEditing'),_0xe054a=_0x35dd2b['locale'];_0x26fc05['enableCommand']('insertMergeField'),_0x26fc05['enableCommand']('insertMergeFieldBlock'),_0x26fc05['enableCommand']('insertMergeFieldImage'),_0x26fc05['descriptionFactory']['registerElementLabel']('mergeField',_0xd6bc5c=>wt(_0xe054a,'ELEMENT_MERGE_FIELD',_0xd6bc5c)),_0x26fc05['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0xc60a63=>wt(_0xe054a,'ELEMENT_MERGE_FIELD',_0xc60a63)),_0x26fc05['descriptionFactory']['registerDescriptionCallback'](_0x19da66=>{if('insertion'!=_0x19da66['type']&&'deletion'!=_0x19da66['type'])return;const _0x37a240=_0x19da66['getContainedElement']();if(null==_0x37a240)return;const _0x4a58c0=_0x35dd2b['plugins']['get']('MergeFieldsEditing');let _0x462c54;switch(_0x4a58c0['getMergeFieldType'](_0x37a240)){case null:return;case'image':{const _0x118d17=_0x4a58c0['unwrapAffixes'](_0x37a240['getAttribute']('src'));_0x462c54=_0x4a58c0['getLabel'](_0x118d17)||_0x118d17;break;}default:{const _0x51905f=_0x37a240['getAttribute']('id');_0x462c54=_0x4a58c0['getLabel'](_0x51905f)||_0x51905f;break;}}return'insertion'==_0x19da66['type']?{'type':'insertion','content':wt(_0xe054a,'*Insert:*\x20%0','\x22'+_0x462c54+'\x22\x20'+wt(_0xe054a,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':wt(_0xe054a,'*Remove:*\x20%0','\x22'+_0x462c54+'\x22\x20'+wt(_0xe054a,'ELEMENT_MERGE_FIELD'))};});}},Se=class extends _0x183f88{afterInit(){const _0xfb7623=this['editor'],_0x4bd80c=_0xfb7623['plugins']['get']('TrackChangesEditing');_0xfb7623['plugins']['has']('MultiLevelList')&&(_0x4bd80c['enableDefaultAttributesIntegration']('multiLevelList'),_0x4bd80c['descriptionFactory']['registerDescriptionCallback'](_0xd8acb2=>this['handleDescriptions'](_0xd8acb2)));}handleDescriptions(_0x59c4a7){const _0x5525ab=this['editor']['locale'],{data:_0xfebb6e}=_0x59c4a7,_0x426995={'type':'format','content':''};if(_0xfebb6e&&'listMarkerStyle'==_0xfebb6e['key']){if(!_0xfebb6e['oldValue'])return{'type':'format','content':wt(_0x5525ab,'*Set\x20format:*\x20%0',wt(_0x5525ab,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xfebb6e['newValue']+')'};if(!_0xfebb6e['newValue']){let _0x21a0fb=_0x59c4a7['head'];for(;_0x21a0fb;){if(_0x21a0fb['data']&&'listType'==_0x21a0fb['data']['key']&&_0x21a0fb['data']['newValue'])return _0x426995;_0x21a0fb=_0x21a0fb['next'];}return{'type':'format','content':wt(_0x5525ab,'*Remove\x20format:*\x20%0',wt(_0x5525ab,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xfebb6e['oldValue']+')'};}}}},Me=class extends _0x183f88{afterInit(){const _0xe2a5f3=this['editor'];if(!_0xe2a5f3['plugins']['has']('PageBreakEditing'))return;_0xe2a5f3['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x296307=_0xe2a5f3['plugins']['get']('TrackChangesEditing'),_0x190d0f=_0xe2a5f3['locale'];_0x296307['descriptionFactory']['registerElementLabel']('pageBreak',_0x282404=>wt(_0x190d0f,'ELEMENT_PAGE_BREAK',_0x282404));}},Oe=class extends _0x183f88{afterInit(){const _0x48adcc=this['editor'];if(!_0x48adcc['plugins']['has']('Paragraph'))return;const _0x48d4e6=_0x48adcc['locale'],_0x109d98=_0x48adcc['plugins']['get']('TrackChangesEditing');_0x109d98['descriptionFactory']['registerElementLabel']('paragraph',_0x459dcc=>wt(_0x48d4e6,'ELEMENT_PARAGRAPH',_0x459dcc)),_0x109d98['enableDefaultAttributesIntegration']('paragraph'),_0x109d98['enableCommand']('insertParagraph');const _0xeae6ee=_0x109d98['descriptionFactory'];_0xeae6ee['registerDescriptionCallback'](_0x2f17fb=>{if('insertion'!==_0x2f17fb['type'])return;const {start:_0x2c090e,end:_0x327651}=_0x2f17fb['getFirstRange']();if(!_0x2c090e['isTouching'](_0x327651)||!_0x2c090e['nodeAfter'])return;const _0x37803d=_0x48adcc['model']['schema'],_0x3b0cdd=_0x2c090e['nodeAfter'];return _0x37803d['isBlock'](_0x3b0cdd)&&!_0x37803d['isLimit'](_0x3b0cdd)&&_0x37803d['checkChild'](_0x3b0cdd,'$text')?{'type':'insertion','content':wt(_0x48d4e6,'*Insert:*\x20%0',_0xeae6ee['getItemLabel'](_0x3b0cdd,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x593c51=this['editor'],_0x4de8f3=_0x593c51['locale'];_0x593c51['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x31cd8c=>{if('formatBlock'!=_0x31cd8c['type'])return;const {data:_0x159242}=_0x31cd8c;return _0x159242&&'paragraph'==_0x159242['commandName']?{'type':'format','content':wt(_0x4de8f3,'*Change\x20to:*\x20%0',wt(_0x4de8f3,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},we=class extends _0x183f88{afterInit(){const _0x53a96f=this['editor'];_0x53a96f['commands']['get']('replaceSource')&&_0x53a96f['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},Be=class extends _0x183f88{afterInit(){const _0x57a106=this['editor'];_0x57a106['plugins']['has']('RemoveFormatEditing')&&(_0x57a106['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x193bb7=this['editor'];_0x193bb7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38661b=>{if('formatBlock'!=_0x38661b['type']&&'formatInline'!=_0x38661b['type'])return;const {data:_0xadafed}=_0x38661b;return _0xadafed&&'removeFormat'==_0xadafed['commandName']?{'type':'format','content':wt(_0x193bb7['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},Fe=class extends _0x183f88{afterInit(){const _0x162fdf=this['editor'];if(!_0x162fdf['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x51f126=_0x162fdf['plugins']['get']('TrackChangesEditing');_0x51f126['enableCommand']('goToPreviousRestrictedEditingException'),_0x51f126['enableCommand']('goToNextRestrictedEditingException');const _0x261d60=_0x162fdf['plugins']['get']('RestrictedEditingModeEditing');_0x261d60['enableCommand']('trackChanges'),_0x261d60['enableCommand']('acceptSuggestion'),_0x261d60['enableCommand']('discardSuggestion'),_0x261d60['enableCommand']('acceptAllSuggestions'),_0x261d60['enableCommand']('discardAllSuggestions'),_0x261d60['enableCommand']('acceptSelectedSuggestions'),_0x261d60['enableCommand']('discardSelectedSuggestions');}},ve=class extends _0x183f88{afterInit(){const _0x427692=this['editor'];if(!_0x427692['plugins']['has']('ShiftEnter'))return;const _0x2a62a0=_0x427692['plugins']['get']('TrackChangesEditing');_0x2a62a0['enableCommand']('shiftEnter'),_0x2a62a0['descriptionFactory']['registerElementLabel']('softBreak',_0x586038=>wt(_0x427692['locale'],'ELEMENT_LINE_BREAK',_0x586038));}};function De(_0x3d316b,_0x5f0309,_0x16fed5){const _0x332719=[];for(const _0x57e7c2 of _0x5f0309['getItems']())_0x57e7c2['hasAttribute'](_0x3d316b)&&_0x332719['push'](_0x16fed5['createRangeOn'](_0x57e7c2));return _0x332719;}var Ue=class extends _0x183f88{afterInit(){const _0x52276e=this['editor'],_0x32e658=_0x52276e['plugins']['get']('TrackChangesEditing');_0x52276e['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x32e658['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0x45dbbf=this['editor'],_0x3ff78d=_0x45dbbf['model'],_0x6d1b71=_0x45dbbf['locale'],_0x5a8c41=_0x45dbbf['plugins']['get']('TrackChangesEditing'),_0x434f61='restrictedEditingException',_0x96f36f=_0x45dbbf['commands']['get'](_0x434f61);_0x5a8c41['enableCommand'](_0x434f61,(_0x45a3fe,_0x24258b={})=>{const _0x48a35f=_0x3ff78d['document']['selection'];if(_0x48a35f['isCollapsed'])return void _0x45a3fe(_0x24258b);const _0x5ad201=void 0x0!==_0x24258b['forceValue']?_0x24258b['forceValue']:!_0x96f36f['value'];_0x3ff78d['change'](()=>{const _0x47ac1b=Array['from'](_0x48a35f['getRanges']());for(const _0x3e0f5e of _0x47ac1b){const _0x129970=_0x5ad201?[_0x3e0f5e]:De(_0x434f61,_0x3e0f5e,_0x3ff78d);for(const _0xcf563e of _0x129970)_0x5a8c41['markInlineFormat'](_0xcf563e,{'commandName':_0x434f61,'commandParams':[{'forceValue':_0x5ad201}]});}});}),_0x5a8c41['descriptionFactory']['registerDescriptionCallback'](_0x39eda0=>{if('formatBlock'!=_0x39eda0['type']&&'formatInline'!=_0x39eda0['type'])return;const {data:_0x1ee319}=_0x39eda0;return _0x1ee319&&_0x1ee319['commandName']==_0x434f61?_0x1ee319['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x6d1b71,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':wt(_0x6d1b71,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0x4e5630=this['editor'],_0x522121=_0x4e5630['locale'],_0x320a3c=_0x4e5630['plugins']['get']('TrackChangesEditing'),_0x2f6e04='restrictedEditingExceptionBlock',_0xf4d503=this['editor']['commands']['get'](_0x2f6e04);_0x320a3c['enableCommand'](_0x2f6e04,(_0x5b3b7d,_0x52f8f8={})=>{const _0x42f1d4=this['editor']['model']['document']['selection'],_0x4d181c=_0x52f8f8&&void 0x0!==_0x52f8f8['forceValue']?_0x52f8f8['forceValue']:!_0xf4d503['value'];let _0x530e03=[];if(_0x4d181c){const _0x15e023=Array['from'](_0x42f1d4['getSelectedBlocks']())['filter'](_0x6658c4=>function(_0x12f9f1){return!!_0x12f9f1['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x6658c4)||function(_0x2020fd,_0x450c76){const _0x1322a8=_0x450c76['createContext'](_0x2020fd['parent']);return!!_0x450c76['checkChild'](_0x1322a8,'restrictedEditingException')&&!!_0x450c76['checkChild'](_0x1322a8['push']('restrictedEditingException'),_0x2020fd);}(_0x6658c4,this['editor']['model']['schema']));_0x530e03=kt(_0x15e023,_0x4e5630['model']);}else{const _0x4198f9=Array['from'](_0x42f1d4['getSelectedBlocks']())['map'](_0x4a8ff0=>function(_0x186a6e){let _0x158f0f=_0x186a6e;for(;_0x158f0f['parent'];){if('restrictedEditingException'==_0x158f0f['parent']['name'])return _0x158f0f;_0x158f0f=_0x158f0f['parent'];}return null;}(_0x4a8ff0))['filter'](_0x8016e5=>!!_0x8016e5);_0x530e03=kt(_0x4198f9,_0x4e5630['model']);}_0x4e5630['model']['change'](()=>{for(const _0x359fcc of _0x530e03)_0x320a3c['markBlockFormat'](_0x359fcc,{'commandName':_0x2f6e04,'commandParams':[{'forceValue':_0x4d181c}]});});}),_0x320a3c['descriptionFactory']['registerDescriptionCallback'](_0x3af738=>{const {data:_0x2ec42f}=_0x3af738;if(_0x2ec42f&&_0x2ec42f['commandName']==_0x2f6e04)return _0x2ec42f['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x522121,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':wt(_0x522121,'FORMAT_RESTRICTED_DISABLED')};});}},Pe=class extends _0x183f88{afterInit(){const _0x1c9777=this['editor'];_0x1c9777['plugins']['has']('Style')&&_0x1c9777['plugins']['has']('DataSchema')&&(_0x1c9777['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x386d87=this['editor'],_0xf13c2a=_0x386d87['locale'];_0x386d87['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4550c6=>{if('formatBlock'!=_0x4550c6['type']&&'formatInline'!=_0x4550c6['type'])return;const {data:_0x566501}=_0x4550c6;return _0x566501&&'style'===_0x566501['commandName']?_0x566501['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0xf13c2a,'*Set\x20format:*\x20%0',_0x566501['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':wt(_0xf13c2a,'*Remove\x20format:*\x20%0',_0x566501['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},xe=class extends _0x183f88{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0x568b3e){super(_0x568b3e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x486400=this['editor'],_0x42bd3c=_0x486400['model']['document']['selection'];if(!_0x486400['plugins']['has']('TableEditing'))return;const _0x2376ab=_0x486400['locale'],_0x1b3bda=_0x486400['plugins']['get']('TrackChangesEditing'),_0x32d55b=_0x486400['plugins']['get']('TableUtils');_0x1b3bda['descriptionFactory']['registerElementLabel']('table',_0x24a8a6=>wt(_0x2376ab,'ELEMENT_TABLE',_0x24a8a6)),this['_setupColumnsRowsFixing'](),_0x1b3bda['enableCommand']('insertTable'),_0x1b3bda['enableCommand']('selectTableRow'),_0x1b3bda['enableCommand']('selectTableColumn');for(const _0x54c1dc of['insertTableRowAbove','insertTableRowBelow']){const _0x372053=_0x486400['commands']['get'](_0x54c1dc);_0x1b3bda['enableCommand'](_0x54c1dc,_0x5c530d=>{_0x486400['model']['change'](_0x5b297c=>{_0x5c530d();const _0x1fa023='above'===_0x372053['order'],_0x3ac003=_0x32d55b['getSelectionAffectedTableCells'](_0x42bd3c),_0x3bb758=_0x32d55b['getRowIndexes'](_0x3ac003),_0x2a033d=_0x1fa023?_0x3bb758['first']-0x1:_0x3bb758['last']+0x1,_0x1ab6dd=_0x3ac003[0x0]['findAncestor']('table'),_0x4fc5f9=_0x32d55b['createTableWalker'](_0x1ab6dd,{'startRow':_0x2a033d,'endRow':_0x2a033d}),_0x20016f=Array['from'](_0x4fc5f9)['map'](_0x606a43=>_0x5b297c['createRangeOn'](_0x606a43['cell']));_0x1b3bda['markMultiRangeInsertion'](_0x20016f,'tableRow');});});}for(const _0x4e919c of['insertTableColumnLeft','insertTableColumnRight']){const _0x1a51e1=_0x486400['commands']['get'](_0x4e919c);_0x1b3bda['enableCommand'](_0x4e919c,_0x5978c6=>{_0x486400['model']['change'](_0x30d215=>{_0x5978c6();const _0x53dd2c='left'===_0x1a51e1['order'],_0x4bc174=_0x32d55b['getSelectionAffectedTableCells'](_0x42bd3c),_0x2cf1b8=_0x32d55b['getColumnIndexes'](_0x4bc174),_0x3db59e=_0x53dd2c?_0x2cf1b8['first']-0x1:_0x2cf1b8['last']+0x1,_0x298de1=_0x4bc174[0x0]['findAncestor']('table'),_0x19eb37=_0x32d55b['createTableWalker'](_0x298de1,{'startRow':0x0,'column':_0x3db59e,'includeAllSlots':!0x1}),_0x598858=Array['from'](_0x19eb37)['map'](_0x30edc7=>_0x30d215['createRangeOn'](_0x30edc7['cell']));_0x1b3bda['markMultiRangeInsertion'](_0x598858,'tableColumn');});});}for(const _0x3bbe3a of['removeTableRow','removeTableColumn']){const _0x4f5f5a=_0x3bbe3a['substr'](0xb),_0x4b87ca=_0x4f5f5a['toLowerCase'](),_0x643421=_0x4b87ca['substr'](0x0,0x3)+'span',_0x455d8f='table'+_0x4f5f5a,_0x5e151d='min'+_0x4f5f5a,_0xee99a='max'+_0x4f5f5a;_0x1b3bda['enableCommand'](_0x3bbe3a,()=>{_0x486400['model']['change'](_0x4cd181=>{const _0x5441c1=_0x32d55b['getSelectionAffectedTableCells'](_0x42bd3c),_0x30ffca=_0x5441c1[0x0]['findAncestor']('table');let _0x2b2280;if('removeTableRow'==_0x3bbe3a){const _0x4bc876=_0x32d55b['getRowIndexes'](_0x5441c1);_0x2b2280={'startRow':_0x4bc876['first'],'endRow':_0x4bc876['last'],'includeAllSlots':!0x0};}else{const _0x2e4b0c=_0x32d55b['getColumnIndexes'](_0x5441c1);_0x2b2280={'startColumn':_0x2e4b0c['first'],'endColumn':_0x2e4b0c['last'],'includeAllSlots':!0x0};}const _0x363038=_0x32d55b['createTableWalker'](_0x30ffca,_0x2b2280),_0x2e5a91=Array['from'](_0x363038)['map'](({cell:_0x2a1bc4})=>_0x2a1bc4),_0xfba715=Ge(_0x2e5a91['filter'](_0xe82357=>_0xe82357['hasAttribute'](_0x643421))),_0x94c4e=Ge(_0x2e5a91['filter'](_0x5c02f4=>!_0x5c02f4['hasAttribute'](_0x643421)))['map'](_0x7fa2b7=>_0x4cd181['createRangeOn'](_0x7fa2b7)),_0x1fa635=_0x1b3bda['markMultiRangeDeletion'](_0x94c4e,_0x455d8f);if(_0x1fa635&&('tableRow'==_0x1fa635['subType']||'tableColumn'==_0x1fa635['subType'])){const _0x505c6f=this['_getSuggestionCoords'](_0x1fa635);for(const _0xf872fb of _0xfba715){const _0x1ec8a9=_0x4cd181['createRangeOn'](_0xf872fb),_0x218c3c=_0x32d55b['getCellLocation'](_0xf872fb),_0x4016b7=_0xf872fb['getAttribute'](_0x643421)-0x1,_0x1eddc2=_0x505c6f[_0x5e151d],_0x3bd45e=_0x505c6f[_0xee99a];_0x1eddc2<=_0x218c3c[_0x4b87ca]&&_0x218c3c[_0x4b87ca]+_0x4016b7<=_0x3bd45e&&_0x1fa635['addRange'](_0x1ec8a9);}}});});}function _0x57dded(_0x56a67c){const _0x453fbe=Array['from'](_0x42bd3c['getRanges']())['map'](_0x3d0166=>at['fromRange'](_0x3d0166));_0x486400['model']['change'](_0x596803=>{const _0x10b772=_0x596803['batch'];_0x56a67c=_0x56a67c['filter'](_0x215073=>'$graveyard'!=_0x215073['root']['rootName']),_0x596803['setSelection'](_0x56a67c),_0x486400['commands']['get']('removeTableRow')['refresh'](),_0x486400['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x486400['model']['enqueueChange'](()=>{_0x486400['model']['enqueueChange'](_0x10b772,_0x4b5c6e=>{const _0x85ddf4=_0x453fbe['filter'](_0x2cc78e=>'$graveyard'!=_0x2cc78e['root']['rootName']);_0x85ddf4['length']>0x0&&_0x4b5c6e['setSelection'](_0x85ddf4);for(const _0x44bf8c of _0x453fbe)_0x44bf8c['detach']();});});});}function _0x4b8af6(_0x4bf6fc){_0x486400['model']['change'](_0xe1defc=>{const _0x4f6280=Array['from'](_0x42bd3c['getRanges']())['map'](_0x4fc20b=>at['fromRange'](_0x4fc20b)),_0x40f464=[];for(const _0x40c746 of _0x4bf6fc)for(const _0x1728d3 of _0x40c746['getItems']({'shallow':!0x0}))_0x40f464['push'](_0x1728d3);for(const _0x1c542d of _0x40f464)'$graveyard'!=_0x1c542d['root']['rootName']&&(_0xe1defc['setSelection'](_0xe1defc['createPositionAt'](_0x1c542d,0x0)),_0x486400['commands']['get']('removeTableColumn')['refresh'](),_0x486400['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2edded=_0x4f6280['filter'](_0x48f00a=>'$graveyard'!=_0x48f00a['root']['rootName']);_0x2edded['length']>0x0&&_0xe1defc['setSelection'](_0x2edded);for(const _0x5b240f of _0x4f6280)_0x5b240f['detach']();});}function _0x3d2bbb(_0xb00281,_0x3c7b3b){return _0x3c7b3b['every'](_0x3568b6=>_0xb00281['some'](_0x4dbcd2=>_0x4dbcd2['end']['isEqual'](_0x3568b6['start'])||_0x3568b6['end']['isEqual'](_0x4dbcd2['start'])));}function _0x564b7c(_0x350a4b,_0x17cfe9){return!_0x350a4b['some'](_0xad722b=>_0x17cfe9['some'](_0x4ebda3=>_0xad722b['isIntersecting'](_0x4ebda3)))&&_0x350a4b['some'](_0x15ceda=>_0x17cfe9['some'](_0x5d32be=>_0x15ceda['end']['isTouching'](_0x5d32be['start'])));}_0x1b3bda['descriptionFactory']['registerDescriptionCallback'](_0x30e124=>{if('insertion'!=_0x30e124['type']&&'deletion'!=_0x30e124['type'])return;const _0x3be171=_0x30e124['getContainedElement']();if(null!=_0x3be171&&_0x3be171['is']('element','table')){if('insertion'==_0x30e124['type']){const _0x249c1a=_0x30e124['getItems']()['filter'](_0x3eb4cb=>_0x3eb4cb['is']('$textProxy'))['map'](_0x57cb35=>_0x57cb35['data']);if(_0x249c1a['length'])return{'type':'insertion','content':wt(_0x2376ab,'*Insert:*\x20%0',wt(_0x2376ab,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x249c1a['join']('\x20')+'\x22'))};}if('deletion'==_0x30e124['type']){const _0x95ffa5=_0x30e124['getItems']()['filter'](_0x4cdf37=>_0x4cdf37['is']('$textProxy'))['map'](_0x490032=>_0x490032['data']);if(_0x95ffa5['length'])return{'type':'deletion','content':wt(_0x2376ab,'*Remove:*\x20%0',wt(_0x2376ab,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x95ffa5['join']('\x20')+'\x22'))};}}}),_0x1b3bda['descriptionFactory']['registerDescriptionCallback'](_0x2b1b60=>{if('tableRow'==_0x2b1b60['subType']){const _0x30dea0=_0x2b1b60['getItems']()['filter'](_0x90d003=>_0x90d003['is']('$textProxy'))['map'](_0x51d3f5=>_0x51d3f5['data']),_0xd359b2=this['_getSuggestionCoords'](_0x2b1b60),_0x38e71c=_0xd359b2['maxRow']-_0xd359b2['minRow']+0x1;if('insertion'==_0x2b1b60['type'])return _0x30dea0['length']?{'type':'insertion','content':wt(_0x2376ab,'*Insert:*\x20%0',wt(_0x2376ab,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x38e71c,'\x22'+_0x30dea0['join']('\x20')+'\x22']))}:{'type':'insertion','content':wt(_0x2376ab,'*Insert:*\x20%0',wt(_0x2376ab,'ELEMENT_TABLE_ROW',_0x38e71c))};if('deletion'==_0x2b1b60['type'])return _0x30dea0['length']?{'type':'deletion','content':wt(_0x2376ab,'*Remove:*\x20%0',wt(_0x2376ab,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x38e71c,'\x22'+_0x30dea0['join']('\x20')+'\x22']))}:{'type':'deletion','content':wt(_0x2376ab,'*Remove:*\x20%0',wt(_0x2376ab,'ELEMENT_TABLE_ROW',_0x38e71c))};}if('tableColumn'==_0x2b1b60['subType']){const _0x4dc582=_0x2b1b60['getItems']()['filter'](_0x43096c=>_0x43096c['is']('$textProxy'))['map'](_0x55ecab=>_0x55ecab['data']),_0x27b48c=this['_getSuggestionCoords'](_0x2b1b60),_0x1a2ea3=_0x27b48c['maxColumn']-_0x27b48c['minColumn']+0x1;if('insertion'==_0x2b1b60['type'])return _0x4dc582['length']?{'type':'insertion','content':wt(_0x2376ab,'*Insert:*\x20%0',wt(_0x2376ab,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1a2ea3,'\x22'+_0x4dc582['join']('\x20')+'\x22']))}:{'type':'insertion','content':wt(_0x2376ab,'*Insert:*\x20%0',wt(_0x2376ab,'ELEMENT_TABLE_COLUMN',_0x1a2ea3))};if('deletion'==_0x2b1b60['type'])return _0x4dc582['length']?{'type':'deletion','content':wt(_0x2376ab,'*Remove:*\x20%0',wt(_0x2376ab,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1a2ea3,'\x22'+_0x4dc582['join']('\x20')+'\x22']))}:{'type':'deletion','content':wt(_0x2376ab,'*Remove:*\x20%0',wt(_0x2376ab,'ELEMENT_TABLE_COLUMN',_0x1a2ea3))};}}),_0x1b3bda['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x57dded),_0x1b3bda['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x57dded),_0x1b3bda['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4b8af6),_0x1b3bda['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4b8af6),_0x1b3bda['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3d2bbb),_0x1b3bda['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3d2bbb),_0x1b3bda['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x564b7c),_0x1b3bda['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x564b7c);}_acceptFormatSuggestionCallbackFactory(){const _0x47c429=this['editor'],_0x3e6c03=_0x47c429['model']['document']['selection'];return(_0x4016bb,_0x342e6d)=>{_0x47c429['model']['change'](_0x5ca511=>{const {commandName:_0x35ea10,commandParams:_0xaf9e15}=_0x342e6d;let _0x381f51=_0x4016bb[0x0]['end']['nodeBefore'];_0xaf9e15&&_0xaf9e15[0x0]&&!0x1===_0xaf9e15[0x0]['forceValue']&&(_0x381f51=_0x4016bb[0x0]['start']['nodeAfter']);const _0x28f5fa=_0x5ca511['createRangeIn'](_0x381f51);if('$graveyard'==_0x28f5fa['root']['rootName'])return;const _0x11d8c8=Array['from'](_0x3e6c03['getRanges']())['map'](_0x50f325=>at['fromRange'](_0x50f325));_0x5ca511['setSelection'](_0x28f5fa),_0x47c429['commands']['get'](_0x35ea10)['refresh'](),_0xaf9e15['push']({'forceDefaultExecution':!0x0}),_0x47c429['execute'](_0x35ea10,..._0xaf9e15);const _0x404b4e=_0x11d8c8['filter'](_0x3c8704=>'$graveyard'!=_0x3c8704['root']['rootName']);_0x404b4e['length']>0x0&&_0x5ca511['setSelection'](_0x404b4e);for(const _0xd9ecab of _0x11d8c8)_0xd9ecab['detach']();});};}_getCoordsForCells(_0x15ce8a){const _0x46a762=this['editor']['plugins']['get']('TableUtils');let _0x535caa=Number['MAX_SAFE_INTEGER'],_0x46b6bf=Number['MIN_SAFE_INTEGER'],_0x2e9230=Number['MAX_SAFE_INTEGER'],_0x490339=Number['MIN_SAFE_INTEGER'];for(const _0x2b67d7 of _0x15ce8a){if('$graveyard'==_0x2b67d7['root']['rootName'])continue;const {row:_0xa15cf6,column:_0x2bb3cc}=_0x46a762['getCellLocation'](_0x2b67d7),_0x3e71ac=_0x2b67d7['hasAttribute']('rowspan')?_0x2b67d7['getAttribute']('rowspan')-0x1:0x0,_0x20cbdc=_0x2b67d7['hasAttribute']('colspan')?_0x2b67d7['getAttribute']('colspan')-0x1:0x0;_0x535caa=_0xa15cf6<_0x535caa?_0xa15cf6:_0x535caa,_0x46b6bf=_0xa15cf6+_0x3e71ac>_0x46b6bf?_0xa15cf6+_0x3e71ac:_0x46b6bf,_0x2e9230=_0x2bb3cc<_0x2e9230?_0x2bb3cc:_0x2e9230,_0x490339=_0x2bb3cc+_0x20cbdc>_0x490339?_0x2bb3cc+_0x20cbdc:_0x490339;}return{'minRow':_0x535caa,'maxRow':_0x46b6bf,'minColumn':_0x2e9230,'maxColumn':_0x490339};}_setupColumnsRowsFixing(){const _0xf5d0fe=this['editor'],_0x5d839c=_0xf5d0fe['plugins']['get']('TrackChangesEditing'),_0x30d904=_0xf5d0fe['plugins']['get']('TableUtils');_0xf5d0fe['model']['document']['on']('change:data',()=>{const _0x4cc9f5=Array['from'](_0xf5d0fe['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5a8d15,data:_0x205686}of _0x4cc9f5){const {group:_0xb14aef,id:_0x49b66b,subType:_0x490fee}=nt(_0x5a8d15);if('suggestion'!=_0xb14aef)continue;if(null!=_0x205686['oldRange'])continue;const _0x12f182=_0x5d839c['getSuggestion'](_0x49b66b);this['_tablePostFixingSubtypes']['includes'](_0x490fee)&&this['_tableSuggestions']['add'](_0x12f182);}},{'priority':'low'});const _0x38b046=(_0x12eb00,_0x5d955c)=>{let _0x1f9ded=!0x1;const _0x1ea2c7=_0x5d955c['createRangeOn'](_0x12eb00),_0x330eaf=_0x12eb00['findAncestor']('table'),_0x148b9c=_0x30d904['getCellLocation'](_0x12eb00);for(const _0x37142d of this['_tableSuggestions']){const _0x36003d=_0x37142d['subType'],_0xf6a04d=_0x36003d['startsWith']('tablePaste'),_0x4d8add=_0x36003d['substr'](_0xf6a04d?0xa:0x5),_0x5bc2a6=_0x4d8add['toLowerCase'](),_0x19b2bd=_0x5bc2a6['substr'](0x0,0x3)+'span',_0x364404='min'+_0x4d8add,_0x476f70='max'+_0x4d8add;if(!_0x37142d['isInContent'])continue;if(_0x330eaf!=_0x37142d['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x37142d['isIntersectingWithRange'](_0x1ea2c7))continue;const _0x5e4b24=_0x12eb00['hasAttribute'](_0x19b2bd)?_0x12eb00['getAttribute'](_0x19b2bd)-0x1:0x0,_0x440018=this['_getSuggestionCoords'](_0x37142d),_0x59cfe4=_0x440018[_0x364404],_0x4f472f=_0x440018[_0x476f70];_0x59cfe4<=_0x148b9c[_0x5bc2a6]&&_0x148b9c[_0x5bc2a6]+_0x5e4b24<=_0x4f472f&&(_0x37142d['addRange'](_0x1ea2c7),_0x1f9ded=!0x0);}return _0x1f9ded;};_0xf5d0fe['model']['document']['registerPostFixer'](_0x301c8d=>{let _0x2075f0=!0x1;for(const _0x21fb2b of _0xf5d0fe['model']['document']['differ']['getChanges']())if('insert'==_0x21fb2b['type']){if('tableRow'==_0x21fb2b['name']){for(const _0x19b78e of _0x21fb2b['position']['nodeAfter']['getChildren']())_0x2075f0=_0x2075f0||_0x38b046(_0x19b78e,_0x301c8d);}else'tableCell'==_0x21fb2b['name']&&(_0x2075f0=_0x2075f0||_0x38b046(_0x21fb2b['position']['nodeAfter'],_0x301c8d));}return _0x2075f0;});}_getSuggestionCoords(_0x2d67ed){return this['_getCoordsForCells'](_0x2d67ed['getRanges']()['map'](_0x48231b=>_0x48231b['start']['nodeAfter']));}};function Ge(_0x3833c4){return Array['from'](new Set(_0x3833c4)['values']());}var He=class extends _0x183f88{static get requires(){return[xe];}afterInit(){const _0x13e419=this['editor'],_0x24a438=_0x13e419['model']['document']['selection'],_0x3424f0=_0x13e419['locale'];if(!_0x13e419['plugins']['has']('TableEditing'))return;const _0x214a6f=_0x13e419['plugins']['get']('TrackChangesEditing'),_0x48c08b=_0x13e419['plugins']['get']('TableUtils'),_0x5c5846=_0x13e419['plugins']['get'](xe);_0x5c5846['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x214a6f['enableCommand']('mergeTableCells',()=>{const _0x208ce0=_0x48c08b['getSelectionAffectedTableCells'](_0x13e419['model']['document']['selection']);_0x13e419['model']['change'](()=>{_0x214a6f['markMultiRangeBlockFormat'](_0x208ce0,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x13e419['commands']['get']('mergeTableCells')['on']('execute',(_0x3f1202,_0x18cc5e)=>{_0x13e419['commands']['get']('trackChanges')['value']&&(_0x18cc5e['length']>0x0&&_0x18cc5e[_0x18cc5e['length']-0x1]&&_0x18cc5e[_0x18cc5e['length']-0x1]['forceDefaultExecution']||_0x214a6f['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3f1202['stop']());},{'priority':'highest'});for(const _0x1807a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x140bc8=_0x13e419['commands']['get'](_0x1807a);_0x214a6f['enableCommand'](_0x1807a,()=>{const _0x4e796d=_0x13e419['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x589244=>_0x589244['is']('element','tableCell')),_0x4d6dd1=_0x140bc8['value'];_0x13e419['model']['change'](()=>{_0x214a6f['markMultiRangeBlockFormat']([_0x4e796d,_0x4d6dd1],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2cc31f of['splitTableCellVertically','splitTableCellHorizontally']){const _0x689ae4=_0x13e419['commands']['get'](_0x2cc31f);_0x214a6f['enableCommand'](_0x2cc31f,()=>{const _0x3c844b=_0x48c08b['getSelectionAffectedTableCells'](_0x13e419['model']['document']['selection']),_0x3babbf=_0x3c844b[0x0]['findAncestor']('table'),_0x66e7cd=new Set();for(const _0x3c7919 of _0x3c844b){const {column:_0x2f662f,row:_0x10638b}=_0x48c08b['getCellLocation'](_0x3c7919),_0x4f59b4='horizontally'==_0x689ae4['direction']?_0x48c08b['createTableWalker'](_0x3babbf,{'startRow':_0x10638b,'endRow':_0x10638b,'includeAllSlots':!0x0}):_0x48c08b['createTableWalker'](_0x3babbf,{'column':_0x2f662f,'includeAllSlots':!0x0});for(const {cell:_0x113c5b}of _0x4f59b4)_0x66e7cd['add'](_0x113c5b);}_0x13e419['model']['change'](()=>{_0x214a6f['markMultiRangeBlockFormat'](_0x3c844b,{'commandName':_0x2cc31f,'commandParams':[]},Array['from'](_0x66e7cd),_0x2cc31f);});});}_0x214a6f['descriptionFactory']['registerDescriptionCallback'](_0x15ffe6=>{if('formatBlock'!=_0x15ffe6['type']&&'formatInline'!=_0x15ffe6['type'])return;const {data:_0x48dff4}=_0x15ffe6;return _0x48dff4&&'mergeTableCells'==_0x48dff4['commandName']?{'type':'format','content':wt(_0x3424f0,'*Merge\x20cells*')}:void 0x0;}),_0x214a6f['descriptionFactory']['registerDescriptionCallback'](_0x15e66e=>{if('formatBlock'!=_0x15e66e['type']&&'formatInline'!=_0x15e66e['type'])return;const {data:_0x1fda28}=_0x15e66e;return _0x1fda28?'splitTableCellVertically'==_0x1fda28['commandName']?{'type':'format','content':wt(_0x3424f0,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1fda28['commandName']?{'type':'format','content':wt(_0x3424f0,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2f7c8d=_0x5c5846['_acceptFormatSuggestionCallbackFactory']();for(const _0x512b34 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x214a6f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x512b34,'accept',_0x2f7c8d);for(const _0x4311af of['splitTableCellVertically','splitTableCellHorizontally'])_0x214a6f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4311af,'accept',_0x1d5df1=>{_0x13e419['model']['change'](_0x573d9a=>{const _0x7cdeff=Array['from'](_0x1d5df1)['filter'](_0x41ba3f=>'$graveyard'!=_0x41ba3f['root']['rootName']&&!!_0x41ba3f['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0x7cdeff['length'])return;const _0x5b45e5=Array['from'](_0x24a438['getRanges']())['map'](_0xac7f9a=>at['fromRange'](_0xac7f9a));_0x573d9a['setSelection'](_0x7cdeff),_0x13e419['commands']['get'](_0x4311af)['refresh'](),_0x13e419['execute'](_0x4311af,{'forceDefaultExecution':!0x0});const _0x726474=_0x5b45e5['filter'](_0xfe44ed=>'$graveyard'!=_0xfe44ed['root']['rootName']);_0x726474['length']>0x0&&_0x573d9a['setSelection'](_0x726474);for(const _0x2e84fd of _0x5b45e5)_0x2e84fd['detach']();});});_0x214a6f['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2df9d0=>{_0x13e419['model']['change'](_0x59a18c=>{const _0x8ccb0c=Array['from'](_0x24a438['getRanges']())['map'](_0x10ac73=>at['fromRange'](_0x10ac73));_0x59a18c['setSelection'](_0x2df9d0),_0x13e419['commands']['get']('mergeTableCells')['refresh'](),_0x13e419['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x225d41=_0x8ccb0c['filter'](_0x3653bd=>'$graveyard'!=_0x3653bd['root']['rootName']);_0x225d41['length']>0x0&&_0x59a18c['setSelection'](_0x225d41);for(const _0x112808 of _0x8ccb0c)_0x112808['detach']();});});for(const _0x35baa9 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x22c9a5=_0x13e419['commands']['get'](_0x35baa9);_0x22c9a5['on']('set:isEnabled',(_0x310e7a,_0x2e180c,_0x351218)=>{if(_0x351218){const _0x76b19c=_0x13e419['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4fb4bc=>_0x4fb4bc['is']('element','tableCell'));this['_areMergableCells'](_0x22c9a5['value'],_0x76b19c)||(_0x310e7a['return']=!0x1,_0x310e7a['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0x462bd2=this['editor']['commands']['get']('mergeTableCells'),_0x2f199e=this['editor']['plugins']['get']('TableUtils');if(!_0x462bd2['isEnabled'])return!0x1;const _0x54dadf=_0x2f199e['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5a53e0 of _0x54dadf)for(const _0x8064ce of _0x54dadf)if(_0x5a53e0!=_0x8064ce&&!this['_areMergableCells'](_0x5a53e0,_0x8064ce))return!0x1;return!0x0;}['_areMergableCells'](_0x35f379,_0x2fe03c){const _0x2a6b31=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a2582=this['editor']['model']['createRangeOn'](_0x35f379),_0x2e5e62=this['editor']['model']['createRangeOn'](_0x2fe03c),_0x5d59ae=new Set(),_0x2f2438=new Set();for(const _0x5aa570 of _0x2a6b31['getSuggestions']())if(('insertion'==_0x5aa570['type']||'deletion'==_0x5aa570['type']||'mergeTableCells'==_0x5aa570['subType'])&&_0x5aa570['isInContent']){for(const _0x20efe1 of _0x5aa570['getRanges']())_0x20efe1['containsRange'](_0x3a2582,!0x0)&&_0x5d59ae['add'](_0x5aa570['type']+':'+_0x5aa570['author']['id']),_0x20efe1['containsRange'](_0x2e5e62,!0x0)&&_0x2f2438['add'](_0x5aa570['type']+':'+_0x5aa570['author']['id']);}if(_0x5d59ae['size']!=_0x2f2438['size'])return!0x1;for(const _0x3f883f of _0x5d59ae)if(!_0x2f2438['has'](_0x3f883f))return!0x1;return!0x0;}},$e=class extends _0x183f88{static get requires(){return[xe];}afterInit(){const _0x8b22dd=this['editor'];if(!_0x8b22dd['plugins']['has']('TableEditing'))return;const _0xab1019=_0x8b22dd['locale'],_0x5d7eb0=_0x8b22dd['plugins']['get']('TrackChangesEditing');_0x5d7eb0['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5d7eb0['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5d7eb0['descriptionFactory']['registerAttributeLabel']('headingRows',wt(_0xab1019,'FORMAT_HEADER_ROW')),_0x5d7eb0['descriptionFactory']['registerAttributeLabel']('headingColumns',wt(_0xab1019,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x12c9bb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ef538=this['editor']['plugins']['get'](xe)['_acceptFormatSuggestionCallbackFactory']();_0x12c9bb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5ef538),_0x12c9bb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5ef538),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0x60bde5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f9286=this['editor']['plugins']['get']('TableUtils');function _0x196e5f({showActiveMarker:_0x2094e2=!0x0,setDataAttribute:_0x3d7f3d=!0x0}={}){return(_0x5683a9,_0x45073c,_0x1c83a4)=>{const {type:_0x37d857,id:_0xa40405}=nt(_0x45073c['markerName']);if(!_0x60bde5['hasSuggestion'](_0xa40405))return;const _0x20df1e=_0x60bde5['getSuggestion'](_0xa40405),_0x2e1241=_0x20df1e['data'];if('formatBlock'!=_0x20df1e['type']||!_0x2e1241||'setTableColumnHeader'!=_0x2e1241['commandName'])return;if(_0x45073c['item'])return void _0x5683a9['stop']();if(!_0x1c83a4['consumable']['consume'](_0x45073c['markerRange'],_0x5683a9['name']))return;const _0x4513b8=_0x45073c['markerRange']['start']['nodeAfter'],_0x466112=_0x45073c['markerRange']['end']['nodeBefore'],_0x498de2=_0x4513b8['parent']['parent'],{column:_0x44c1e7}=_0x1f9286['getCellLocation'](_0x4513b8),{column:_0x48d977}=_0x1f9286['getCellLocation'](_0x466112);for(let _0x762912=_0x44c1e7;_0x762912<=_0x48d977;_0x762912++){const _0x10c938=_0x1f9286['createTableWalker'](_0x498de2,{'column':_0x762912,'includeAllSlots':!0x1});for(const _0x372b00 of _0x10c938){const _0x6959eb=_0x372b00['cell'],_0x44ca23=_0x1c83a4['mapper']['toViewElement'](_0x6959eb);_0x1c83a4['writer']['addClass']('ck-suggestion-marker-'+_0x37d857,_0x44ca23),_0x3d7f3d&&_0x1c83a4['writer']['setAttribute']('data-suggestion',_0xa40405,_0x44ca23),_0x1c83a4['mapper']['bindElementToMarker'](_0x44ca23,_0x45073c['markerName']),_0x2094e2&&(_0x60bde5['activeMarkers']['includes'](_0x45073c['markerName'])?_0x1c83a4['writer']['addClass']('ck-suggestion-marker--active',_0x44ca23):_0x1c83a4['writer']['removeClass']('ck-suggestion-marker--active',_0x44ca23));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x196e5f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5c8d02,_0x47f1aa,_0x22253b)=>{_0x22253b['options']['showSuggestionHighlights']&&_0x196e5f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5c8d02,_0x47f1aa,_0x22253b);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1f3df9,_0x41b516,_0x33cde0)=>{const {type:_0x36e6d8,id:_0x28b5a9}=nt(_0x41b516['markerName']);if(!_0x60bde5['hasSuggestion'](_0x28b5a9))return;const _0x174441=_0x60bde5['getSuggestion'](_0x28b5a9),_0x4839b8=_0x174441['data'];if('formatBlock'!=_0x174441['type']||!_0x4839b8||'setTableColumnHeader'!=_0x4839b8['commandName'])return;const _0x1a982a=_0x33cde0['mapper']['markerNameToElements'](_0x41b516['markerName']);if(_0x1a982a){for(const _0x6e69d9 of _0x1a982a)_0x33cde0['writer']['removeClass']('ck-suggestion-marker-'+_0x36e6d8,_0x6e69d9),_0x33cde0['writer']['removeClass']('ck-suggestion-marker--active',_0x6e69d9),_0x33cde0['writer']['removeAttribute']('data-suggestion',_0x6e69d9),_0x33cde0['mapper']['unbindElementFromMarkerName'](_0x6e69d9,_0x41b516['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0x52a826=this['editor'],_0x658713=_0x52a826['locale'];function _0x26d4a2(_0x4f326d){return{'type':'format','content':wt(_0x658713,'*Format:*\x20%0',_0x4f326d)};}_0x52a826['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c336b=>{if('formatBlock'!=_0x2c336b['type'])return;const {data:_0x1b4cac}=_0x2c336b;return _0x1b4cac?'setTableRowHeader'==_0x1b4cac['commandName']?_0x1b4cac['commandParams'][0x0]['forceValue']?_0x26d4a2(wt(_0x658713,'FORMAT_HEADER_ROW')):_0x26d4a2(wt(_0x658713,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x1b4cac['commandName']?_0x1b4cac['commandParams'][0x0]['forceValue']?_0x26d4a2(wt(_0x658713,'FORMAT_HEADER_COLUMN')):_0x26d4a2(wt(_0x658713,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},We=class extends _0x183f88{static get requires(){return[xe];}afterInit(){const _0x388613=this['editor'];if(!_0x388613['plugins']['has']('TableEditing')||!_0x388613['config']['get']('table.enableFooters'))return;const _0x29a750=_0x388613['locale'],_0x14ad5b=_0x388613['plugins']['get']('TrackChangesEditing');_0x14ad5b['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x14ad5b['descriptionFactory']['registerAttributeLabel']('footerRows',wt(_0x29a750,'FORMAT_FOOTER_ROW'));}},Ve=class extends _0x183f88{afterInit(){const _0x2779b4=this['editor'],_0x4287b6=_0x2779b4['locale'],_0x13c484=_0x2779b4['plugins']['get']('TrackChangesEditing');function _0x1b644d(_0x3e5781){return{'type':'format','content':''+wt(_0x4287b6,'*Set\x20table\x20type:*\x20%0',_0x3e5781)};}_0x2779b4['plugins']['has']('TableLayout')&&(_0x13c484['enableCommand']('insertTableLayout'),_0x13c484['enableDefaultAttributesIntegration']('tableType'),_0x13c484['descriptionFactory']['registerElementLabel'](_0x3dab00=>_0x3dab00['is']('element','table')&&'layout'===_0x3dab00['getAttribute']('tableType'),_0x2f4c6e=>wt(_0x4287b6,'ELEMENT_LAYOUT_TABLE',_0x2f4c6e)),_0x13c484['descriptionFactory']['registerDescriptionCallback'](_0x4c5339=>{const {data:_0x4bfa00}=_0x4c5339;if(_0x4bfa00&&'tableType'==_0x4bfa00['key'])switch(_0x4bfa00['newValue']){case'layout':return _0x1b644d(wt(_0x4287b6,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x1b644d(wt(_0x4287b6,'ELEMENT_CONTENT_TABLE'));}}));}};const ze=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],je=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](ze['map'](_0x23d4da=>[_0x23d4da,null]));var Ke=class extends _0x183f88{static get requires(){return[xe];}afterInit(){const _0x4a385f=this['editor'];if(!_0x4a385f['plugins']['has']('TableClipboard'))return;const _0x190902=_0x4a385f['plugins']['get']('TrackChangesEditing'),_0x33251c=_0x4a385f['plugins']['get']('TableUtils'),_0x4905fb=_0x4a385f['plugins']['get'](xe),_0xaf862e=_0x4a385f['plugins']['get']('TableClipboard'),_0x21c0b6=_0x4a385f['plugins']['get']('TableSelection'),_0x350b00=_0x4a385f['plugins']['get'](mt);_0x4905fb['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4a385f['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4a385f['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x283a45=null,_0x5aaa15=!0x1;_0x350b00['on']('contentInsertion',(_0x180ae4,_0x3f5bb8)=>{_0x5aaa15='paste'===_0x3f5bb8['method'];}),_0x4a385f['model']['on']('insertContent',(_0x892db8,_0x3e85a4)=>{if(!_0x5aaa15&&null===_0x21c0b6['getSelectedTableCells']())return;const [_0x3bc0f6,_0x42e57c]=_0x3e85a4,_0x1ef557=_0x3e85a4[_0x3e85a4['length']-0x1];_0x1ef557&&_0x1ef557['forceDefaultExecution']||_0x190902['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x539774,_0x1a6699,_0x2a2bb5,_0x4f18ee,_0x411927){if(_0x1a6699&&!_0x1a6699['is']('documentSelection'))return!0x1;const _0x2902e0=_0x411927['getTableIfOnlyTableInContent'](_0x539774,_0x2a2bb5);if(!_0x2902e0||!qe(_0x2902e0,void 0x0,_0x4f18ee))return!0x1;const _0x52aacd=_0x4f18ee['getSelectionAffectedTableCells'](_0x2a2bb5['document']['selection']);if(!_0x52aacd['length'])return!0x1;const _0x350210=_0x52aacd[0x0]['findAncestor']('table'),_0x542b65=_0x4f18ee['getRowIndexes'](_0x52aacd),_0x3f7940=_0x4f18ee['getColumnIndexes'](_0x52aacd),_0x26cd8c={'startRow':_0x542b65['first'],'endRow':_0x542b65['last'],'startColumn':_0x3f7940['first'],'endColumn':_0x3f7940['last']};return 0x1==_0x52aacd['length']&&(_0x26cd8c['endRow']+=_0x4f18ee['getRows'](_0x2902e0)-0x1,_0x26cd8c['endColumn']+=_0x4f18ee['getColumns'](_0x2902e0)-0x1),qe(_0x350210,_0x26cd8c,_0x4f18ee);}(_0x3bc0f6,_0x42e57c,_0x4a385f['model'],_0x33251c,_0xaf862e)&&(_0x892db8['stop'](),_0x283a45={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4a385f['model']['change'](()=>{_0x4a385f['model']['insertContent'](_0x3e85a4[0x0],_0x3e85a4[0x1],_0x3e85a4[0x2],{'forceDefaultExecution':!0x0});const _0x23ba74=_0x1172bd(),{rowInsertionRanges:_0x1dc1bd,columnInsertionRanges:_0x1f8691,insertionRanges:_0x48593a,deletionRanges:_0x3f5959,cells:_0x112f82}=_0x283a45;_0x1dc1bd['length']&&_0x190902['markMultiRangeInsertion'](_0x1dc1bd,'tablePasteRow',{'tablePasteChainId':_0x23ba74}),_0x1f8691['length']&&_0x190902['markMultiRangeInsertion'](_0x1f8691,'tablePasteColumn',{'tablePasteChainId':_0x23ba74}),_0x48593a['length']&&(_0x190902['markMultiRangeInsertion'](_0x48593a,'tablePaste',{'tablePasteChainId':_0x23ba74,'skipNestingCheck':!0x0}),_0x48593a['forEach'](_0x3f065c=>_0x3f065c['detach']?.())),_0x3f5959['length']&&(_0x190902['markMultiRangeDeletion'](_0x3f5959,'tablePaste',{'tablePasteChainId':_0x23ba74,'skipNestingCheck':!0x0}),_0x3f5959['forEach'](_0x29796f=>_0x29796f['detach']?.()));const _0x3644ac=_0x190902['markMultiRangeBlockFormat'](_0x112f82['map'](({element:_0x1c36a2})=>_0x1c36a2),{'formatGroupId':_0x1172bd()},[],'tablePasteCell',{'tablePasteChainId':_0x23ba74});if(_0x3644ac){const _0x25e43e=_0x3644ac['getMarkers'](),_0x4b0bbe=[];for(const {element:_0x3d3f1a,attributes:_0x54f534}of _0x112f82){if(!_0x54f534)continue;const _0x52fa5b=_0x4a385f['model']['createRangeOn'](_0x3d3f1a),_0x2ae17d=_0x25e43e['find'](_0x463cc3=>_0x463cc3['getRange']()['isEqual'](_0x52fa5b));_0x2ae17d&&_0x4b0bbe['push']([_0x2ae17d['name'],_0x54f534]);}_0x4b0bbe['length']&&_0x3644ac['setAttribute']('markerAttributes',Object['fromEntries'](_0x4b0bbe));}_0x283a45=null;}));},{'priority':_0x4d85be['high']+0xa}),_0x350b00['on']('contentInsertion',()=>{_0x5aaa15=!0x1;},{'priority':'lowest'}),_0x4a385f['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5e682d,_0xa79cda)=>{const [_0x292df3,_0x17d6f2,,_0x22d9a2]=_0xa79cda;if(!_0x283a45)return;_0x5e682d['stop']();const _0x2b5007=_0x292df3['cell'],_0x4ade01=_0x17d6f2,_0x5913eb=Xe(_0x2b5007),_0x28ffd3=Xe(_0x4ade01);_0x5e682d['return']=_0x2b5007;let _0x25b166=null,_0x6d7b90=null;if(_0x28ffd3||_0x5913eb){if(_0x5913eb&&!_0x28ffd3){_0x22d9a2['remove'](_0x2b5007['getChild'](0x0));for(const _0x4f6487 of Array['from'](_0x4ade01['getChildren']()))_0x22d9a2['insert'](_0x4f6487,_0x2b5007,'end');const _0x5f05d8=_0x283a45['rowInsertionIndexes']['includes'](_0x292df3['row']),_0x2629f=_0x283a45['columnInsertionIndexes']['includes'](_0x292df3['column']);_0x5f05d8||_0x2629f||(_0x25b166=at['fromRange'](_0x22d9a2['createRangeIn'](_0x2b5007)));}else _0x28ffd3&&!_0x5913eb&&(_0x6d7b90=_0x22d9a2['createRangeIn'](_0x2b5007));}else{const _0x1a8816=_0x22d9a2['createElement']('tableCellSuggestion'),_0xe7fcb8=_0x22d9a2['createElement']('tableCellSuggestion');_0x22d9a2['wrap'](_0x22d9a2['createRangeIn'](_0x2b5007),_0xe7fcb8),_0x22d9a2['insert'](_0x1a8816,_0x2b5007,0x0);for(const _0x13b6d1 of Array['from'](_0x4ade01['getChildren']()))_0x22d9a2['insert'](_0x13b6d1,_0x1a8816,'end');_0x25b166=at['fromRange'](_0x22d9a2['createRangeOn'](_0x1a8816)),_0x6d7b90=at['fromRange'](_0x22d9a2['createRangeOn'](_0xe7fcb8));}const _0x3539c5=Array['from'](_0x4ade01['getAttributes']())['filter'](([_0x40e546])=>ze['includes'](_0x40e546));_0x283a45['cells']['push']({'element':_0x2b5007,'attributes':_0x3539c5['length']?Object['fromEntries'](_0x3539c5):null}),_0x25b166&&_0x283a45['insertionRanges']['push'](_0x25b166),_0x6d7b90&&_0x283a45['deletionRanges']['push'](_0x6d7b90);},{'priority':'high'}),_0x33251c['on']('insertColumns',(_0xd4109b,_0x44b18c)=>{const [_0x3c1e6d,_0x536ef1={}]=_0x44b18c;if(!_0x283a45)return;const _0x367183=_0x536ef1['at']||0x0,_0x3b7c40=_0x536ef1['columns']||0x1;_0x283a45['columnInsertionIndexes']=new Array(_0x3b7c40)['fill'](_0x367183)['map']((_0x5560cc,_0x3488c3)=>_0x5560cc+_0x3488c3);for(const {cell:_0xd51625}of _0x33251c['createTableWalker'](_0x3c1e6d,{'startColumn':_0x367183,'endColumn':_0x367183+_0x3b7c40-0x1}))_0x283a45['columnInsertionRanges']['push'](_0x4a385f['model']['createRangeOn'](_0xd51625));},{'priority':'low'}),_0x33251c['on']('insertRows',(_0x2ad104,_0x2be8a3)=>{const [_0x27cb5b,_0xcc41e7={}]=_0x2be8a3;if(!_0x283a45)return;const _0x3581b8=_0xcc41e7['at']||0x0,_0x2b0ca3=_0xcc41e7['rows']||0x1;_0x283a45['rowInsertionIndexes']=new Array(_0x2b0ca3)['fill'](_0x3581b8)['map']((_0x1d0423,_0x2d304f)=>_0x1d0423+_0x2d304f);for(const {cell:_0x55a1d5}of _0x33251c['createTableWalker'](_0x27cb5b,{'startRow':_0x3581b8,'endRow':_0x3581b8+_0x2b0ca3-0x1}))_0x283a45['rowInsertionRanges']['push'](_0x4a385f['model']['createRangeOn'](_0x55a1d5));},{'priority':'low'}),_0x190902['descriptionFactory']['registerDescriptionCallback'](_0x404a33=>{if(_0x404a33['subType']&&_0x404a33['subType']['startsWith']('tablePaste'))return _0x404a33['previous']?{}:{'type':'insertion','content':wt(_0x4a385f['locale'],'*Replace\x20table\x20cells*')};});const _0x4863b2=()=>!0x1;for(const _0x4b5534 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x190902['_suggestionFactory']['registerCustomCallback']('insertion',_0x4b5534,'join',_0x4863b2),_0x190902['_suggestionFactory']['registerCustomCallback']('deletion',_0x4b5534,'join',_0x4863b2),_0x190902['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4b5534,'join',_0x4863b2);_0x190902['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4863b2),_0x190902['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1ca384,_0xb9a21e,_0x2a757a)=>{const _0x1ecca3=_0x1ca384['map'](_0x5a0afe=>_0x5a0afe['getContainedElement']())['filter'](_0x5035ba=>_0x5035ba),_0x4f7c5c=new Map(_0x1ecca3['map'](_0xd33a0=>[_0xd33a0,null]));if(_0x283a45){for(const {element:_0x4eca3c,attributes:_0x43fd9c}of _0x283a45['cells'])_0x43fd9c&&_0x4f7c5c['set'](_0x4eca3c,_0x43fd9c);}else{if(_0x2a757a&&_0x2a757a['markerAttributes'])for(const [_0x119128,_0x4ed077]of Object['entries'](_0x2a757a['markerAttributes'])){const _0x41fdea=_0x4a385f['model']['markers']['get'](_0x119128),_0x5c09ba=_0x41fdea?_0x41fdea['getRange']()['getContainedElement']():null;_0x5c09ba&&_0x4f7c5c['set'](_0x5c09ba,_0x4ed077);}}_0x4a385f['model']['change'](_0xe0c766=>{for(const [_0x1d64a2,_0x2b561b]of _0x4f7c5c)_0xe0c766['setAttributes']({...je,..._0x2b561b},_0x1d64a2);});});const _0x34a91c=(_0x5446d8,_0x2e1f28)=>{_0x190902['_suggestionFactory']['registerCustomCallback'](_0x5446d8,'tablePaste',_0x2e1f28,(_0x38d0d6,_0x27f4a6,_0x39ed64)=>{_0x4a385f['model']['change'](_0x1d6b19=>{const _0x23445f=[];for(const _0x2dcbd6 of _0x38d0d6){const _0x4943c4=_0x2dcbd6['start']['nodeAfter'];_0x4943c4['is']('element','tableCellSuggestion')&&_0x23445f['push'](_0x4943c4);}_0x190902['_suggestionFactory']['getSuggestionCallback'](_0x5446d8,null,_0x2e1f28)(_0x38d0d6,_0x27f4a6,_0x39ed64);for(const _0x4469f1 of _0x23445f)'$graveyard'!=_0x4469f1['root']['rootName']&&_0x1d6b19['unwrap'](_0x4469f1);});});};_0x34a91c('insertion','accept'),_0x34a91c('insertion','discard'),_0x34a91c('deletion','accept'),_0x34a91c('deletion','discard'),_0x190902['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x512189=>{const _0x5615ad=_0x512189['map'](_0x81ccb1=>_0x81ccb1['getContainedElement']()),_0x2786a9=_0x5615ad[0x0]['findAncestor']('table'),{minRow:_0x2e7c83,maxRow:_0x21d1e6}=_0x4905fb['_getCoordsForCells'](_0x5615ad);_0x33251c['removeRows'](_0x2786a9,{'at':_0x2e7c83,'rows':_0x21d1e6-_0x2e7c83+0x1});}),_0x190902['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x25a189=>{const _0x598710=_0x25a189['map'](_0x50ebd7=>_0x50ebd7['getContainedElement']()),_0x256073=_0x598710[0x0]['findAncestor']('table'),{minColumn:_0x2517db,maxColumn:_0xe53a31}=_0x4905fb['_getCoordsForCells'](_0x598710);_0x33251c['removeColumns'](_0x256073,{'at':_0x2517db,'columns':_0xe53a31-_0x2517db+0x1});});const _0x501251=(_0x28618d,_0x2cbefa)=>{if(!_0x2cbefa['subType']||!_0x2cbefa['subType']['startsWith']('tablePaste'))return;const _0x56e19f=_0x2cbefa['attributes']['tablePasteChainId'],_0x173d95=_0x190902['getSuggestions']()['filter'](_0xa22c8e=>_0xa22c8e['isInContent']&&_0xa22c8e['attributes']&&_0xa22c8e['attributes']['tablePasteChainId']==_0x56e19f);_0x173d95['length']&&_0x2cbefa['getAllAdjacentSuggestions']()['length']!=_0x173d95['length']&&_0x173d95['reduce']((_0x55f5b8,_0x21f722)=>(_0x55f5b8['next']=_0x21f722,_0x21f722['previous']=_0x55f5b8,_0x21f722));};function _0xa52492(_0x51fad8,_0x19eeb9=!0x0){const {id:_0x390ccb,authorId:_0x2454fa}=nt(_0x51fad8['markerName']),_0x35ce0b=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1bf111=_0x190902['activeMarkers']['includes'](_0x51fad8['markerName']);return _0x1bf111&&_0x35ce0b['push']('ck-suggestion-marker--active'),{'classes':_0x35ce0b,'attributes':{'data-suggestion':_0x390ccb,'data-author-id':_0x2454fa},'priority':_0x1bf111&&_0x19eeb9?0xbc2:0xbb8};}_0x190902['on']('suggestionLoaded',_0x501251,{'priority':'high'}),_0x190902['on']('suggestionUnloaded',_0x501251,{'priority':'high'}),_0x4a385f['model']['document']['registerPostFixer'](()=>{let _0x549004=!0x1;const _0xe86705=Array['from'](_0x4a385f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x271882,data:_0x1618ba}of _0xe86705){const {group:_0x25e52f,type:_0x5e0d39,id:_0x51ec52}=nt(_0x271882);if('suggestion'!=_0x25e52f||'deletion'!=_0x5e0d39||_0x1618ba['oldRange'])continue;if(!_0x190902['hasSuggestion'](_0x51ec52))continue;const _0x1151d1=_0x190902['getSuggestion'](_0x51ec52)['getRanges'](),_0x2526f8=_0x4a385f['plugins']['get']('Users')['me'];for(const _0x5a7359 of _0x190902['getSuggestions']())if(_0x5a7359['isInContent']&&_0x5a7359['author']==_0x2526f8&&'formatBlock'==_0x5a7359['type']&&'tablePasteCell'==_0x5a7359['subType']&&_0x5a7359['getRanges']()['every'](_0x1dd1a2=>_0x1151d1['some'](_0x4b72cd=>_0x4b72cd['containsRange'](_0x1dd1a2,!0x0)))){for(const _0x43eabf of _0x5a7359['getAllAdjacentSuggestions']())_0x43eabf['isInContent']&&(_0x43eabf['discard'](),_0x549004=!0x0);}}return _0x549004;}),_0x4a385f['model']['document']['registerPostFixer'](_0x2f4967=>{const _0x348b57=_0x4a385f['commands']['get']('redo');if(!_0x348b57||!_0x348b57['_createdBatches']['has'](_0x2f4967['batch']))return!0x1;let _0x5c8db9=!0x1;const _0x42c3ff=_0x4a385f['plugins']['get']('Users')['me'],_0x140014=_0x4a385f['model']['document']['differ']['getChanges'](),_0x2aaadd=Array['from'](_0x4a385f['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x76787a,data:_0xc007db})=>{const {group:_0x4d5778,subType:_0x2fe634,authorId:_0xc11bf2}=nt(_0x76787a);return'suggestion'==_0x4d5778&&'tablePaste'==_0x2fe634&&_0xc11bf2==_0x42c3ff['id']&&!_0xc007db['oldRange'];});for(const _0x36acba of _0x140014){if('insert'!=_0x36acba['type']||'tableCellSuggestion'!=_0x36acba['name']||0x1!=_0x36acba['length'])continue;const _0x5cb40a=_0x2f4967['createRange'](_0x36acba['position'],_0x36acba['position']['getShiftedBy'](0x1));if(!_0x2aaadd['find'](({data:_0x50e797})=>_0x50e797['newRange']['isEqual'](_0x5cb40a))){for(const {name:_0x9a7961,data:_0x44ebcc}of _0x2aaadd)if(_0x5cb40a['containsRange'](_0x44ebcc['newRange'])){_0x2f4967['updateMarker'](_0x9a7961,{'range':_0x5cb40a}),_0x5c8db9=!0x0;break;}}}return _0x5c8db9;}),_0x4a385f['model']['document']['registerPostFixer'](_0xf63835=>{let _0x5bcb4e=!0x1;const _0x439a4a=_0x4a385f['plugins']['get']('Users')['me'],_0x21fc6b=_0x190902['getSuggestions']()['filter'](_0x34a593=>_0x34a593['isInContent']&&_0x34a593['author']==_0x439a4a),_0x342c54=new Set(),_0x247234=new Set();for(const _0x595fc3 of _0x21fc6b)if('tablePaste'==_0x595fc3['subType'])for(const _0x5d3b3e of _0x595fc3['getMarkers']()){const _0x3b26a5=_0x5d3b3e['getRange']()['getContainedElement']();if(_0x3b26a5){if(_0x3b26a5['is']('element','tableCellSuggestion')&&Xe(_0x3b26a5)){_0x595fc3['removeMarker'](_0x5d3b3e['name']),_0x342c54['add'](_0x3b26a5),_0x5bcb4e=!0x0;const _0x26c731=_0x3b26a5['nextSibling'],_0x41620c=_0x3b26a5['previousSibling'],_0x5ac6af=_0x26c731&&_0x26c731['is']('element','tableCellSuggestion'),_0x169f7b=_0x41620c&&_0x41620c['is']('element','tableCellSuggestion');_0x5ac6af&&!_0x342c54['has'](_0x26c731)&&_0x247234['add'](_0x26c731),_0x169f7b&&!_0x342c54['has'](_0x41620c)&&_0x247234['add'](_0x41620c);}else _0x3b26a5['is']('element','paragraph')&&_0x3b26a5['isEmpty']&&(_0x595fc3['removeMarker'](_0x5d3b3e['name']),_0x5bcb4e=!0x0);}}else{if('tablePasteCell'==_0x595fc3['subType']){if(!_0x595fc3['attributes']||!_0x595fc3['attributes']['tablePasteChainId'])continue;const _0x5e0615=_0x595fc3['attributes']['markerAttributes'];if(_0x5e0615&&Object['keys'](_0x5e0615)['length'])continue;const _0x43b28f=_0x595fc3['attributes']['tablePasteChainId'];let _0x5f1083=!0x0,_0x2fce95=!0x0;for(const _0x3da007 of _0x21fc6b)if(_0x3da007['subType']&&_0x3da007['subType']['startsWith']('tablePaste')){if(!_0x3da007['attributes']['tablePasteChainId']){_0x2fce95=!0x1;break;}if(_0x3da007['id']!=_0x595fc3['id']&&_0x3da007['attributes']['tablePasteChainId']==_0x43b28f){_0x5f1083=!0x1;break;}}_0x2fce95&&_0x5f1083&&(_0x595fc3['removeMarkers'](),_0x5bcb4e=!0x0);}}for(const _0x520c22 of _0x342c54)_0xf63835['remove'](_0x520c22);for(const _0x2eccfa of _0x247234)_0xf63835['unwrap'](_0x2eccfa);return _0x5bcb4e;}),_0x4a385f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xd12262=>_0xa52492(_0xd12262),'converterPriority':'high'}),_0x4a385f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x30a65b,_0x4690a4)=>_0x4690a4['options']['showSuggestionHighlights']?_0xa52492(_0x30a65b,!0x1):null,'converterPriority':'high'});const _0x561d5b=_0x4a385f['editing']['view'];this['listenTo'](_0x561d5b['document'],'clipboardOutput',(_0x4519a9,_0x524fe6)=>{const _0x27eec3=[];for(const _0x489679 of _0x561d5b['createRangeIn'](_0x524fe6['content'])['getItems']())_0x489679['is']('element','suggestion-td')&&_0x27eec3['push'](_0x489679);_0x561d5b['change'](_0x19f932=>{for(const _0x41ffe3 of _0x27eec3)_0x19f932['move'](_0x19f932['createRangeIn'](_0x41ffe3),_0x19f932['createPositionBefore'](_0x41ffe3)),_0x19f932['remove'](_0x41ffe3);});});}};function Xe(_0x48cbf2){if(_0x48cbf2['isEmpty'])return!0x0;const _0x48f652=_0x48cbf2['getChild'](0x0);return _0x48f652['is']('element','paragraph')&&_0x48f652['isEmpty'];}function qe(_0x22e51f,_0xea0baf={},_0x5d0bce){for(const {isAnchor:_0x230086,cellHeight:_0x223b7b,cellWidth:_0x2bb1ac}of _0x5d0bce['createTableWalker'](_0x22e51f,{'includeAllSlots':!0x0,..._0xea0baf}))if(!_0x230086||0x1!=_0x223b7b||0x1!=_0x2bb1ac)return!0x1;return!0x0;}var Ye=class extends _0x183f88{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x54509b=this['editor']['plugins']['get']('TrackChangesEditing');_0x54509b['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0x54509b['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0x54509b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x54509b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0x1eb8ba=_0x54509b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0x54509b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0x187794,_0x6ad3f0)=>{_0x1eb8ba(_0x187794,_0x6ad3f0),this['_restoreCellWidths'](_0x187794[0x0]['start']['nodeAfter'],_0x6ad3f0['commandParams'][0x0]['cellWidths']);}),_0x54509b['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0x28593e,_0x115591){const _0x3e7a4a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x247203=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2016f6=_0x115591['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x58fba7=_0x247203['getColumnGroupElement'](_0x2016f6);let _0x11f894=_0x58fba7?_0x247203['getTableColumnsWidths'](_0x58fba7):null,_0x1ea914=_0x2016f6['getAttribute']('tableWidth')||null;const _0x4d2f7e=_0x115591['tableWidth']||_0x1ea914,_0x2e9e4b=_0x115591['columnWidths']||_0x11f894;let _0x20d6f0=this['_getCellWidths'](_0x2016f6);const _0x31a1bd=this['_foldResizeTableSuggestion'](_0x2016f6);_0x31a1bd&&(_0x1ea914=_0x31a1bd['tableWidth'],_0x11f894=_0x31a1bd['columnWidths'],_0x20d6f0=_0x31a1bd['cellWidths']||_0x20d6f0),_0x28593e({'table':_0x2016f6,'tableWidth':_0x4d2f7e,'columnWidths':_0x2e9e4b}),_0x3e7a4a['markBlockFormat'](_0x2016f6,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1ea914,'columnWidths':_0x11f894,'cellWidths':_0x20d6f0}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0x46e50f,_0xf73ede={}){if(void 0x0===_0xf73ede['value']||''===_0xf73ede['value'])return void _0x46e50f(_0xf73ede);const _0x4c059b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x56939e=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x244c5d=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0xf73ede['batch']||(_0xf73ede['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0xf73ede['batch'],()=>{const _0xa2081a=_0x56939e['getColumnGroupElement'](_0x244c5d);let _0x9d396f=_0xa2081a?_0x56939e['getTableColumnsWidths'](_0xa2081a):null,_0x59fb12=_0x244c5d['getAttribute']('tableWidth')||null,_0x45497f=this['_getCellWidths'](_0x244c5d);const _0x343f97=this['_foldResizeTableSuggestion'](_0x244c5d,!0x0);_0x343f97&&(_0x59fb12=_0x343f97['tableWidth'],_0x9d396f=_0x343f97['columnWidths'],_0x45497f=_0x343f97['cellWidths']||_0x45497f),_0x46e50f(_0xf73ede),_0x4c059b['markBlockFormat'](_0x244c5d,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x59fb12,'columnWidths':_0x9d396f,'cellWidths':_0x45497f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0x3b37ad,_0x1cf4dc=!0x1){const _0x2a17c6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a4fd9=this['editor']['plugins']['get']('Users')['me'];for(const _0x164db8 of _0x2a17c6['getSuggestions']({'skipNotAttached':!0x0})){const _0x22c0e3=_0x164db8['getContainedElement']();if('resizeTable'===_0x164db8['subType']&&_0x22c0e3===_0x3b37ad){_0x164db8['author']!==_0x2a4fd9&&(_0x1cf4dc?_0x164db8['removeMarkers']():_0x164db8['discard']());const _0x8dc01f=_0x164db8['data']['commandParams'];return{'tableWidth':_0x8dc01f[0x0]['tableWidth'],'columnWidths':_0x8dc01f[0x0]['columnWidths'],'cellWidths':_0x8dc01f[0x0]['cellWidths']};}}return null;}_getCellWidths(_0x2ebb5e){const _0x1dd497=[];for(const _0x31b284 of _0x2ebb5e['getChildren']())if(_0x31b284['is']('element','tableRow')){for(const _0xa216f6 of _0x31b284['getChildren']())_0x1dd497['push'](_0xa216f6['getAttribute']('tableCellWidth')||null);}return _0x1dd497;}_restoreCellWidths(_0x509a28,_0x46467c){_0x46467c&&this['editor']['model']['change'](_0x19dd12=>{let _0x2a1aeb=0x0;for(const _0x1feea4 of _0x509a28['getChildren']())if(_0x1feea4['is']('element','tableRow'))for(const _0x2b90cf of _0x1feea4['getChildren']()){const _0x2b5fe1=_0x46467c[_0x2a1aeb++];_0x2b5fe1&&_0x19dd12['setAttribute']('tableCellWidth',_0x2b5fe1,_0x2b90cf);}});}handleSuggestionDescription(_0x44d778){if('formatBlock'!=_0x44d778['type']&&'formatInline'!=_0x44d778['type'])return;const {data:_0x54b297}=_0x44d778;return _0x54b297&&'resizeTable'===_0x54b297['formatGroupId']?{'type':'format','content':wt(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},Qe=class extends _0x183f88{afterInit(){const _0x394666=this['editor'];_0x394666['plugins']['has']('Template')&&_0x394666['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Ze=class extends _0x183f88{afterInit(){const _0x5a6447=this['editor'];if(!_0x5a6447['commands']['get']('insertTableOfContents'))return;_0x5a6447['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1c6b3d=_0x5a6447['plugins']['get']('TrackChangesEditing'),_0x3a8450=_0x5a6447['locale'];_0x1c6b3d['descriptionFactory']['registerElementLabel']('tableOfContents',_0x282cd5=>wt(_0x3a8450,'ELEMENT_TABLE_OF_CONTENTS',_0x282cd5));}},Je=class extends _0x183f88{afterInit(){const _0x3a38d9=this['editor'];_0x3a38d9['plugins']['has']('Title')&&(_0x3a38d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>wt(_0x3a38d9['locale'],'ELEMENT_TITLE')),_0x3a38d9['model']['document']['registerPostFixer'](_0x1fc8bb=>{let _0x7e39f5=!0x1;const _0xb85975=Array['from'](_0x3a38d9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5132dd,data:_0x28312f}of _0xb85975){const {group:_0x8f2984}=nt(_0x5132dd);if('suggestion'!==_0x8f2984||!_0x28312f['newRange'])continue;const _0x4e46b6=_0x28312f['newRange'],_0x2631f1=_0x4e46b6['end']['nodeBefore'];if(!_0x2631f1||!_0x2631f1['is']('element','title-content'))continue;if(!_0x4e46b6['start']['isTouching'](_0x4e46b6['end']))continue;const _0x145ab5=_0x3a38d9['model']['schema']['getNearestSelectionRange'](_0x4e46b6['end'],'forward');if(_0x145ab5&&_0x145ab5['isCollapsed']){const _0xf7ed77=_0x1fc8bb['createRange'](_0x4e46b6['start'],_0x145ab5['start']);_0xf7ed77['isEqual'](_0x4e46b6)||(_0x1fc8bb['updateMarker'](_0x5132dd,{'range':_0xf7ed77}),_0x7e39f5=!0x0);}_0x7e39f5||(_0x1fc8bb['removeMarker'](_0x5132dd),_0x7e39f5=!0x0);}return _0x7e39f5;}));}},tn=class extends _0x183f88{afterInit(){const _0x4da45c=this['editor'],_0x50f192=_0x4da45c['plugins']['get']('TrackChangesEditing');_0x4da45c['plugins']['has']('Uploadcare')&&(_0x50f192['enableCommand']('uploadcare'),_0x4da45c['plugins']['has']('UploadcareImageEdit')&&(_0x50f192['enableCommand']('uploadcareImageEdit'),_0x50f192['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x50f192['descriptionFactory']['registerDescriptionCallback'](_0x1a4056=>{if('attribute'!=_0x1a4056['type'])return;const {data:_0x2d85ac}=_0x1a4056;return _0x2d85ac&&'uploadcareImageId'==_0x2d85ac['key']?{'type':'format','content':''}:void 0x0;})));}},en=class extends _0x183f88{afterInit(){const _0x2e9cb7=this['editor'],_0x332d1f=_0x2e9cb7['plugins']['get']('TrackChangesEditing');_0x2e9cb7['plugins']['has']('UndoEditing')&&(_0x332d1f['enableCommand']('undo'),_0x332d1f['enableCommand']('redo'));}},nn=class extends _0x183f88{static get requires(){return[xe];}afterInit(){const _0x1b1bdc=this['editor'];_0x1b1bdc['plugins']['has']('TableCaptionEditing')&&_0x1b1bdc['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},sn=class extends _0x183f88{tableProperties;tableCellProperties;constructor(_0x4d100c){super(_0x4d100c),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 _0x247327=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3f8599 of this['tableProperties'])_0x247327['enableCommand'](_0x3f8599,(_0x4973f4,_0x38bb7c)=>{const _0xaad5ca=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3f8599,[_0xaad5ca],this['tableProperties'],'tableProperties',_0x4973f4,_0x38bb7c);});_0x247327['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x247327['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x247327['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0xbfe99a,_0x462dd7)=>this['handleDiscardAction'](this['tableProperties'],_0xbfe99a,_0x462dd7)),_0x247327['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3a5c3a of this['tableCellProperties'])this['editor']['commands']['get'](_0x3a5c3a)&&_0x247327['enableCommand'](_0x3a5c3a,(_0x29b729,_0x5c5670)=>{const _0x3f5e92=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3a5c3a,_0x3f5e92,this['tableCellProperties'],'tableCellProperties',_0x29b729,_0x5c5670);});_0x247327['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x247327['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x247327['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2b1f6b,_0x5198b9)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2b1f6b,_0x5198b9)),_0x247327['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x247327['descriptionFactory']['registerAttributeLabel']('tableCellType',wt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x247327['descriptionFactory']['registerDescriptionCallback'](_0x101647=>this['handleSuggestionDescription'](_0x101647)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0x21ccc8,_0x809da3,_0x544da5,_0x1949a8,_0x447a0d,_0x1fb889){const _0x40527b=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1fb889['batch'],()=>{for(const _0x5d7355 of _0x809da3)if(this['_getSuggestion'](_0x5d7355,_0x1949a8))_0x447a0d(_0x1fb889);else{const _0x513994={};for(const _0x561be6 of _0x544da5){const _0x365ade=_0x5d7355['getAttribute'](_0x561be6);void 0x0!==_0x365ade&&(_0x513994[_0x561be6]=_0x365ade);}const _0x401f0d=this['_getResizedColumnWidths'](_0x5d7355);_0x401f0d&&(_0x513994['columnWidths']=_0x401f0d),_0x447a0d(_0x1fb889),_0x40527b['markBlockFormat'](_0x5d7355,{'commandParams':[_0x513994]},[],_0x1949a8);}});}handleDiscardAction(_0x43f370,_0x3ebf21,_0x101211){const _0x71b117=_0x3ebf21[0x0]['start']['nodeAfter'],_0x433d9d=_0x101211['commandParams'][0x0];this['editor']['model']['change'](_0x397234=>{for(const _0x37caa1 of _0x43f370)void 0x0!==_0x433d9d[_0x37caa1]?_0x397234['setAttribute'](_0x37caa1,_0x433d9d[_0x37caa1],_0x71b117):_0x397234['removeAttribute'](_0x37caa1,_0x71b117);if(_0x433d9d['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0x228a14=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3aa7fa=_0x228a14['getColumnGroupElement'](_0x71b117);if(_0x3aa7fa){const _0x3868a8=_0x228a14['getTableColumnsWidths'](_0x3aa7fa),_0x4285db=_0x71b117['getAttribute']('tableWidth');if(('string'==typeof _0x4285db&&_0x4285db['trim']()['endsWith']('px'))!==_0x3868a8['some'](_0x15f4a1=>'string'==typeof _0x15f4a1&&_0x15f4a1['endsWith']('px'))){const _0x3e4994=_0x228a14['getTableColumnElements'](_0x3aa7fa);_0x433d9d['columnWidths']['forEach']((_0x2130eb,_0x298fa7)=>{_0x3e4994[_0x298fa7]&&_0x397234['setAttribute']('columnWidth',_0x2130eb,_0x3e4994[_0x298fa7]);});}}}});}_getResizedColumnWidths(_0x9bfed3){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0x9bfed3['is']('element','table'))return;const _0x130f34=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x37fbd6=_0x130f34['getColumnGroupElement'](_0x9bfed3);return _0x37fbd6?_0x130f34['getTableColumnsWidths'](_0x37fbd6):void 0x0;}handleSuggestionDescription(_0x2bfaf6){if(_0x2bfaf6['data'])switch(_0x2bfaf6['subType']){case'tableProperties':return{'type':'format','content':wt(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':wt(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}_getSuggestion(_0x4b2f9d,_0x2e2b95){const _0xb60b66=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x28b443 of _0xb60b66['getSuggestions']({'skipNotAttached':!0x0})){const _0x1df1f7=_0x28b443['getContainedElement']();if(_0x28b443['subType']===_0x2e2b95&&_0x1df1f7===_0x4b2f9d)return _0x28b443;}return null;}_registerTablePropertiesAttributes(){const _0x37bd1b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x14f744=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x4ced5d of _0x14f744){const _0x304bac=_0x4ced5d['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x37bd1b['descriptionFactory']['registerAttributeLabel'](_0x4ced5d,wt(this['editor']['locale'],'FORMAT_'+_0x304bac));}}},rn=class extends _0x183f88{afterInit(){const _0xe45868=this['editor'];if(!_0xe45868['plugins']['has']('LineHeight'))return;const _0x3ad345=_0xe45868['plugins']['get']('TrackChangesEditing'),_0x5e2635=_0xe45868['locale'];_0x3ad345['enableDefaultAttributesIntegration']('lineHeight'),_0x3ad345['descriptionFactory']['registerAttributeLabel']('lineHeight',wt(_0x5e2635,'FORMAT_LINE_HEIGHT'));}};const on='$elementName';function an(_0x12a714){return'marker'==_0x12a714['type']&&_0x12a714['name']['startsWith']('$markedRemove');}function cn(_0x3619f4){return _0x3619f4?[_0x3619f4]:[];}var ln=class extends _0x183f88{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[_0x5197b4,_0x131b84,_0xd2b39a,_0x36758c,Ft,vt,Dt,Ut,xt,Gt,$t,Vt,Wt,zt,jt,Xt,qt,ee,ne,ie,re,oe,ae,le,ue,de,he,ge,fe,Ee,me,Te,_e,pe,Ie,Ce,Se,Le,Yt,rn,Zt,ke,Re,Ne,ye,Me,Oe,we,Be,Fe,ve,Ue,Pe,xe,He,$e,We,Ve,nn,Ke,Ye,Ze,sn,Qe,Je,tn,en];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x34620b){super(_0x34620b),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4c174f,_0x56dd5a,_0x116de0,_0x5506cb)=>{this['_model']['change'](()=>{for(const _0x3473cb of[..._0x5506cb,..._0x116de0])this['_model']['markers']['has'](_0x3473cb)&&_0x34620b['editing']['reconvertMarker'](_0x3473cb);});}),this['descriptionFactory']=new Bt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new un(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x34620b['plugins']['get'](_0x5197b4),this['_suggestionsConversion']=_0x34620b['plugins']['get'](_0x131b84),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x34620b['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x34620b['config']['get']('trackChanges.trackFormatChanges'),_0x34620b['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x34620b['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new pt(_0x34620b,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x4f912c=this['editor'];_0x4f912c['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3fdaa7,{writer:_0x305537})=>{let _0x204ae4='suggestion:'+_0x3fdaa7['getAttribute']('suggestion-type')+':'+_0x3fdaa7['getAttribute']('id');return _0x3fdaa7['getAttribute']('marker-count')&&(_0x204ae4+=':'+_0x3fdaa7['getAttribute']('marker-count')),_0x305537['createElement']('$marker',{'data-name':_0x204ae4});}}),_0x4f912c['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4f912c['model']['document']['registerPostFixer'](_0x5341b4=>{let _0x5938b9=!0x1;const _0x2f3585=Array['from'](_0x4f912c['model']['document']['differ']['getChangedMarkers']()),_0x915036=new Set();for(const {name:_0x5c2422,data:_0x4da2e1}of _0x2f3585){const {group:_0xf71d94,type:_0x314d27,subType:_0x382a63,id:_0x1474b5}=nt(_0x5c2422);if('suggestion'!==_0xf71d94)continue;const _0xb47a71=_0x382a63?'suggestion:'+_0x314d27+':'+_0x382a63+':'+_0x1474b5:'suggestion:'+_0x314d27+':'+_0x1474b5,_0x3b3f76=_0x4f912c['model']['markers']['getMarkersGroup'](_0xb47a71),_0x58c732=_0x4f912c['model']['markers']['get'](_0x5c2422),_0x1c7fb7=this['_suggestions']['get'](_0x1474b5);if(null!=_0x4da2e1['newRange']){'formatInline'==_0x314d27&&(_0x5938b9=_0x5938b9||gn(_0x4da2e1['newRange'],_0x5c2422,_0x5341b4,_0x4f912c['model']['schema']));const _0x4f6474='attribute'==_0x314d27&&this['_suggestionsConversion']['isBlockAttribute'](Cn(_0x382a63)),_0x49cf13='attribute'==_0x314d27&&this['_suggestionsConversion']['isInlineAttribute'](Cn(_0x382a63));if(_0x4da2e1['newRange']['isCollapsed']||'$graveyard'==_0x4da2e1['newRange']['root']['rootName']||'formatBlock'==_0x314d27&&!mn(_0x4da2e1['newRange'])||_0x4f6474&&!mn(_0x4da2e1['newRange'])||_0x49cf13&&En(_0x4da2e1['newRange'])||'deletion'==_0x314d27&&En(_0x4da2e1['newRange'])||_0x58c732&&Tn(_0x58c732,_0x3b3f76))_0x5341b4['removeMarker'](_0x5c2422),_0x5938b9=!0x0;else{if(!_0x1c7fb7||!_0x1c7fb7['isInContent'])continue;if(_0x4da2e1['newRange']&&_0x4da2e1['oldRange']&&_0x4da2e1['newRange']['isEqual'](_0x4da2e1['oldRange']))continue;_0x915036['add'](_0x1c7fb7);}}}return _0x915036['size']>0x0&&(_0x5938b9=!!this['_joinWithAdjacentSuggestions'](_0x915036)||_0x5938b9),_0x5938b9;}),_0x4f912c['model']['document']['registerPostFixer'](_0x8f682e=>{let _0xb54387=!0x1;for(const _0x478d4b of _0x4f912c['model']['document']['differ']['getChanges']())if('insert'==_0x478d4b['type'])for(const _0x5d2616 of this['_suggestions']['values']()){if(_0x5d2616['isMultiRange']||!_0x5d2616['isInContent'])continue;const _0x3e13f6='formatBlock'==_0x5d2616['type'],_0x106f48=this['_getAttributeKey'](_0x5d2616),_0x3639e1=_0x106f48&&this['_suggestionsConversion']['isBlockAttribute'](_0x106f48);if(!_0x3e13f6&&!_0x3639e1)continue;const _0x864988=_0x5d2616['getFirstRange']();if(_0x864988['start']['parent']!=_0x864988['end']['parent']&&!_0x864988['end']['isAtEnd']){const _0x2ab39c=_0x4f912c['model']['createPositionAt'](_0x864988['start']['nodeAfter'],'end'),_0x141dab=_0x4f912c['model']['createRange'](_0x864988['start'],_0x2ab39c);_0x8f682e['updateMarker'](_0x5d2616['getFirstMarker'](),{'range':_0x141dab}),_0xb54387=!0x0;}}return _0xb54387;}),_0x4f912c['model']['document']['registerPostFixer'](_0x68a1e9=>this['_processAttributeChanges'](_0x68a1e9)),_0x4f912c['model']['document']['registerPostFixer'](_0x5d52c5=>!_0x5d52c5['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5d52c5)),_0x4f912c['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4f912c['model']['document']['on']('change:data',(_0x545c52,_0x2e7b2c)=>{if(!_0x2e7b2c['isLocal']||_0x2e7b2c['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1e5acd=_0x4f912c['model']['document']['differ']['getChanges']();if(0x0==_0x1e5acd['length'])return;const _0x268205=[],_0x5540a4=_0x1e5acd['filter'](_0x590bcc=>'attribute'==_0x590bcc['type']),_0x4be7e6=_0x1e5acd['filter'](_0xe806d0=>'insert'==_0xe806d0['type']&&'$text'!=_0xe806d0['name']);for(const _0x191065 of _0x5540a4)this['_suggestionsConversion']['isRegisteredAttribute'](_0x191065['attributeKey'])&&_0x268205['push']({'key':_0x191065['attributeKey'],'newValue':_0x191065['attributeNewValue'],'oldValue':_0x191065['attributeOldValue'],'range':_n(_0x191065['range'],_0x4f912c['model'])});for(const _0x29eede of _0x4be7e6){if('rename'!=_0x29eede['action']&&'refresh'!=_0x29eede['action'])continue;const _0x477366=pn(_0x29eede['position']['nodeAfter'],_0x4f912c['model']),_0x1fd34a=_0x29eede['before'];'rename'==_0x29eede['action']&&_0x268205['push']({'key':on,'newValue':_0x29eede['name'],'oldValue':_0x1fd34a['name'],'range':_0x477366});for(const [_0x5de96d,_0x244200]of _0x1fd34a['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x5de96d))continue;const _0xcabc97=_0x29eede['attributes']['get'](_0x5de96d);_0x244200!==_0xcabc97&&_0x268205['push']({'key':_0x5de96d,'newValue':_0xcabc97,'oldValue':_0x244200,'range':_0x477366});}for(const [_0x4a2cf9,_0x2874d2]of _0x29eede['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x4a2cf9)&&(_0x1fd34a['attributes']['has'](_0x4a2cf9)||_0x268205['push']({'key':_0x4a2cf9,'newValue':_0x2874d2,'oldValue':null,'range':_0x477366}));}0x0!=_0x268205['length']&&_0x4f912c['model']['enqueueChange'](_0x2e7b2c,_0x586f0b=>{const _0x4259dd=_0x1172bd();for(const {range:_0x51a64c,key:_0x109768,oldValue:_0x12ab97,newValue:_0xfa535f}of _0x268205)this['markAttributeChange'](_0x51a64c,_0x109768,_0x12ab97,_0xfa535f,{'groupId':_0x4259dd});this['_reduceExistingSuggestions'](_0x586f0b,_0x268205);});},{'priority':'lowest'}),_0x4f912c['model']['markers']['on']('update:suggestion',(_0x100af6,_0x53d503,_0x2b70e6)=>{if(null==_0x2b70e6){const {id:_0x420dd2}=nt(_0x53d503['name']),_0x1767a6=this['_suggestions']['get'](_0x420dd2);_0x1767a6&&_0x1767a6['addMarkerName'](_0x53d503['name']);}}),_0x4f912c['model']['document']['on']('change:data',()=>{const _0x49ae09=Array['from'](_0x4f912c['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5a7dc1=>'suggestion'===nt(_0x5a7dc1['name'])['group']);if(0x0===_0x49ae09['length'])return;_0x49ae09['sort']((_0x5df8c3,_0x11e63b)=>{const _0x5d43ae=_0x5df8c3['data']['oldRange'],_0x217ee7=_0x11e63b['data']['oldRange'];return null===_0x5d43ae&&null===_0x217ee7?0x0:null===_0x5d43ae&&null!==_0x217ee7?-0x1:null!==_0x5d43ae&&null===_0x217ee7?0x1:_0x5d43ae['start']['isBefore'](_0x217ee7['start'])?-0x1:0x1;});const _0x553c66=new Set(),_0x3b26f0=new Set();for(const {name:_0x214ae7,data:_0x3a1c8f}of _0x49ae09){const {id:_0x1f42cb}=nt(_0x214ae7);if(null===_0x3a1c8f['oldRange']){const _0x1fb01f=this['_handleNewSuggestionMarker'](_0x214ae7);_0x3b26f0['add'](_0x1fb01f);}else{const _0x9f01b=this['_suggestions']['get'](_0x1f42cb);null!==_0x3a1c8f['newRange']||_0x9f01b['isInContent']?(_0x553c66['add'](_0x9f01b['head']),_0x3b26f0['add'](_0x9f01b)):this['_removeSuggestion'](_0x9f01b);}}_0x3b26f0['size']>0x0&&this['_refreshSuggestionsChain'](_0x3b26f0);for(const _0x2a5ff7 of _0x553c66)this['fire']('suggestionChanged',_0x2a5ff7);}),_0x4f912c['model']['on']('applyOperation',(_0x2ad1f7,_0x1782bf)=>{const _0x4081ce=_0x1782bf[0x0];if(!this['_suggestions']['size'])return;if(!_0x4081ce['isDocumentOperation'])return;if(_0x4081ce['batch']['isUndo']||!_0x4081ce['batch']['isLocal'])return;let _0x5c884d,_0x419047;switch(_0x4081ce['type']){case'insert':_0x5c884d=_0x4f912c['model']['createPositionAt'](_0x4081ce['position']),_0x419047=_0x5c884d['getShiftedBy'](_0x4081ce['howMany']);break;case'split':_0x5c884d=_0x4f912c['model']['createPositionAt'](_0x4081ce['splitPosition']),_0x419047=_0x4f912c['model']['createPositionAt'](_0x4081ce['moveTargetPosition']);break;case'move':_0x5c884d=_0x4f912c['model']['createPositionAt'](_0x4081ce['targetPosition']),_0x419047=_0x5c884d['getShiftedBy'](_0x4081ce['howMany']);break;default:return;}const _0x506105=_0x4f912c['model']['createRange'](_0x5c884d,_0x419047);_0x4f912c['model']['change'](()=>{for(const {suggestion:_0x1106b8,meta:_0x4a4084}of this['_findSuggestions'](_0x506105)){if(_0x1106b8['isMultiRange'])continue;if('formatInline'==_0x1106b8['type'])continue;const _0x4a8400=this['_getAttributeKey'](_0x1106b8);if(_0x4a8400&&this['_suggestionsConversion']['isBlockAttribute'](_0x4a8400)&&'split'!=_0x4081ce['type'])continue;const _0x1c9294=_0x1106b8['data']&&_0x1106b8['data']['multipleBlocks'];('formatBlock'!=_0x1106b8['type']||'split'==_0x4081ce['type']&&!_0x1c9294)&&(_0x4a4084['containsRangeInObject']||'insertion'==_0x1106b8['type']&&_0x4a4084['isOwn']||_0x1106b8['getFirstRange']()['containsRange'](_0x506105)&&this['_breakSuggestionMarker'](_0x1106b8,_0x5c884d,_0x419047));}});},{'priority':'lowest'}),_0x4f912c['model']['on']('deleteContent',(_0x39a254,_0x34b782)=>{const _0x122159=_0x34b782[0x0],_0x331f85=_0x34b782[0x1];if(_0x331f85&&_0x331f85['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x122159['isCollapsed'])return;const _0x299a43=_0x4f912c['model']['schema'],{start:_0x5c30fc,end:_0x2e3a4f}=_0x122159['getFirstRange'](),_0x3d6f1f=_0x5c30fc['nodeAfter']&&_0x299a43['isLimit'](_0x5c30fc['nodeAfter'])?null:_0x299a43['getNearestSelectionRange'](_0x5c30fc,'forward'),_0x1e5e82=_0x2e3a4f['nodeBefore']&&_0x299a43['isLimit'](_0x2e3a4f['nodeBefore'])?null:_0x299a43['getNearestSelectionRange'](_0x2e3a4f,'backward'),_0x1475f1=_0x4f912c['model']['createRange'](_0x3d6f1f?_0x3d6f1f['start']:_0x5c30fc,_0x1e5e82?_0x1e5e82['end']:_0x2e3a4f);_0x4f912c['model']['change'](_0x238f4f=>{this['markDeletion'](_0x1475f1);const _0x1988e7=_0x4f912c['model']['schema']['getNearestSelectionRange'](_0x1475f1['start']);_0x122159['is']('documentSelection')?_0x238f4f['setSelection'](_0x1988e7):_0x122159['setTo'](_0x1988e7);}),_0x39a254['stop']();},{'priority':_0x4d85be['normal']+0xa}),_0x4f912c['model']['on']('insertContent',(_0x19be6b,_0x353db5)=>{const _0x5f4cec=_0x353db5[_0x353db5['length']-0x1];_0x5f4cec&&_0x5f4cec['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4f912c['model']['change'](()=>{let _0x43aac4=_0x4f912c['model']['insertContent'](_0x353db5[0x0],_0x353db5[0x1],_0x353db5[0x2],{'forceDefaultExecution':!0x0});if(!_0x43aac4)return;_0x19be6b['return']=_0x43aac4['clone']();const _0x83b921=_0x43aac4['end']['nodeBefore'],_0x4757ec=_0x4f912c['model']['schema'];_0x83b921&&_0x4757ec['isBlock'](_0x83b921)&&!_0x4757ec['isObject'](_0x83b921)&&(_0x43aac4=_0x4f912c['model']['createRange'](_0x43aac4['start'],_0x4f912c['model']['createPositionAt'](_0x83b921,'end'))),this['markInsertion'](_0x43aac4);}),_0x19be6b['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x28adc6=new Lt(_0x4f912c,this['_suggestions']);_0x4f912c['commands']['add']('acceptSuggestion',_0x28adc6),this['enableCommand']('acceptSuggestion');const _0x675a7c=new It(_0x4f912c,this['_suggestions']);_0x4f912c['commands']['add']('discardSuggestion',_0x675a7c),this['enableCommand']('discardSuggestion'),_0x4f912c['commands']['add']('acceptAllSuggestions',new yt(_0x4f912c,_0x28adc6,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4f912c['commands']['add']('discardAllSuggestions',new yt(_0x4f912c,_0x675a7c,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4f912c['commands']['add']('acceptSelectedSuggestions',new St(_0x4f912c,_0x28adc6,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4f912c['commands']['add']('discardSelectedSuggestions',new St(_0x4f912c,_0x675a7c,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1f4df8=_0x4f912c['plugins']['get'](_0x5197b4);this['listenTo'](_0x1f4df8,'addComment',(_0x20ca7e,{threadId:_0x453484})=>{const _0x55e909=this['_suggestions']['get'](_0x453484);_0x55e909&&_0x55e909['commentThread']&&0x1===_0x55e909['commentThread']['length']&&this['_updateSuggestionData'](_0x453484,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1f4df8,'removeComment',(_0x5f1ffb,{threadId:_0x4ddff2})=>{const _0x3e0759=this['_suggestions']['get'](_0x4ddff2);_0x3e0759&&_0x3e0759['commentThread']&&!_0x3e0759['commentThread']['length']&&this['_updateSuggestionData'](_0x4ddff2,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0xe2cc2){const _0x571bff='7UHP2XzrDLEMsJRtqgZk6S8yf5Tn0pWl4YvIGbcF1xAeCi9wVQKho3mNdauOjB',_0x19113b=0x79788,_0x184e5c={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x53bfe0(_0x175f3e){const _0x214604=new window['Promise'](_0x3a047a=>{_0x175f3e['once']('ready',_0x3a047a);}),_0x3d76ee=window['Date']['now'](),_0x2d2739=_0x175f3e['config']['get']('licenseKey');async function _0x2673b3(){let _0xb4ff5a,_0x31187b=null,_0x24e6c6=null;try{return'GPL'==_0x2d2739?'NotAllowed':(_0xb4ff5a=_0x1e5139(),_0xb4ff5a?(_0xb4ff5a['usageEndpoint']&&(_0x24e6c6=_0x4d955d(_0xb4ff5a['usageEndpoint'],_0xb4ff5a['jti'])),await _0x278c64()?_0x353bfe()?_0x331b03()?'Expired':_0x16c229()?('evaluation'==_0xb4ff5a['licenseType']&&(_0x31187b=_0x22146d('EvaluationLimit')),await _0x3cd13c()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x331b03(){const _0x7ffae1=['evaluation','trial']['includes'](_0xb4ff5a['licenseType'])?_0x3d76ee/0x3e8:0xe10*_0x19113b;return _0xb4ff5a['exp']<_0x7ffae1;}function _0x353bfe(){const _0x3a7e49=_0xb4ff5a['features'];if(!_0x3a7e49)return!0x1;if(_0x3a7e49['includes']('*'))return!0x0;if(_0x3a7e49['includes']('TC'))return!0x0;if(_0x3a7e49['includes']('RTC')){if(_0x5d7836())return!0x0;if(_0x3ecfea()||_0x231f4e())return!0x0;}return!0x1;}function _0x16c229(){const _0x4df33d=_0xb4ff5a['licensedHosts'];if(!_0x4df33d||0x0==_0x4df33d['length'])return!0x0;const {hostname:_0x949104}=new URL(window['location']['href']);if(_0x4df33d['includes'](_0x949104))return!0x0;const _0x1ba3f3=_0x949104['split']('.');return _0x4df33d['filter'](_0xbe9863=>_0xbe9863['includes']('*'))['map'](_0x13eda0=>_0x13eda0['split']('.'))['filter'](_0x3538b6=>_0x3538b6['length']<=_0x1ba3f3['length'])['map'](_0x1dec2c=>Array(_0x1ba3f3['length']-_0x1dec2c['length'])['fill']('*'===_0x1dec2c[0x0]?'*':'')['concat'](_0x1dec2c))['some'](_0x2afdf2=>_0x1ba3f3['every']((_0x12afa6,_0x3d8b20)=>_0x2afdf2[_0x3d8b20]===_0x12afa6||'*'===_0x2afdf2[_0x3d8b20]));}function _0x3cd13c(){return _0x31187b&&_0x24e6c6?new window['Promise']((_0x28a460,_0x1a6728)=>{_0x31187b['then'](_0x28a460,_0x1a6728),_0x24e6c6['then'](_0x29eff7=>{'Valid'!=_0x29eff7&&_0x28a460(_0x29eff7);},_0x1a6728);}):_0x31187b||_0x24e6c6||'Valid';}}function _0x4d955d(_0x3d0909,_0x4a8325){return new window['Promise'](_0x30494b=>{if(_0x5c7dc2())return _0x30494b('Valid');_0x155a22(),_0x175f3e['decorate']('_sendUsageRequest');let _0x146863=!0x1;const _0x6ac8f8=_0x1172bd();function _0x470232(_0x226de5){return!!_0x226de5&&('object'==typeof _0x226de5||'function'==typeof _0x226de5)&&'function'==typeof _0x226de5['then']&&'function'==typeof _0x226de5['catch'];}function _0x3cccd5(_0x2681c1){_0x2f71f9(_0x2681c1)['then'](_0x33b4ff=>_0x33b4ff&&'ok'==_0x33b4ff['status']?_0xd0dfbc(_0x52ae50(_0x6ac8f8+_0x4a8325))!=_0x33b4ff['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x96713d=>(_0x2d3882(),_0x96713d),()=>{const _0x3c695d=_0x3f8b1e();return null==_0x3c695d?(_0x2d3882(),'Valid'):_0x3d76ee-_0x3c695d>0x240c8400?'UsageLimit':'Valid';})['then'](_0x30494b)['catch'](()=>{_0x30494b('UsageLimit');});const _0x23a1c9=0x36ee80;function _0x2d3882(){const _0x5b8dd6='llct-'+_0xd0dfbc(_0x52ae50(_0x3d0909)),_0xd71584=_0x5aaf9d(_0xd0dfbc(window['Math']['ceil'](_0x3d76ee/_0x23a1c9)));window['localStorage']['setItem'](_0x5b8dd6,_0xd71584);}function _0x3f8b1e(){const _0x2d9f4e='llct-'+_0xd0dfbc(_0x52ae50(_0x3d0909)),_0x35a9cb=window['localStorage']['getItem'](_0x2d9f4e);return _0x35a9cb?window['parseInt'](_0x5aaf9d(_0x35a9cb),0x10)*_0x23a1c9:null;}function _0x2f71f9(_0x114814){return new window['Promise']((_0x384c2a,_0x458f90)=>{_0x114814['then'](_0x384c2a,_0x458f90),window['setTimeout'](_0x458f90,0x1d4c0);});}}_0x175f3e['on']('_sendUsageRequest',(_0x5bc182,_0x22d80d)=>{if(_0x22d80d[0x0]!=_0x3d0909)return _0x30494b('UsageLimit');_0x22d80d[0x1]={..._0x22d80d[0x1],'requestId':_0x6ac8f8};},{'priority':'high'}),_0x175f3e['on']('_sendUsageRequest',_0x1cc0b1=>{_0x470232(_0x1cc0b1['return'])&&(_0x146863=!0x0,_0x3cccd5(_0x1cc0b1['return']));},{'priority':'low'}),_0x214604['then'](()=>{_0x146863||_0x30494b('UsageLimit');});});function _0x5c7dc2(){return'auto'==_0x175f3e['editing']['view']['_overlayModeHint'];}function _0x155a22(){_0x175f3e['editing']['view']['_overlayModeHint']='auto';}}function _0x22146d(_0x54ae6f){const _0x5b92ea=[new window['Promise'](_0x829a89=>setTimeout(_0x829a89,0x93ecc)),_0x214604['then'](()=>new window['Promise'](_0x1266df=>{let _0x14fb8c=0x0;_0x175f3e['model']['on']('applyOperation',(_0x3a9d52,_0x4f1970)=>{_0x4f1970[0x0]['isDocumentOperation']&&_0x14fb8c++,0x5e8==_0x14fb8c&&(_0x1266df(),_0x3a9d52['off']());});}))];return window['Promise']['race'](_0x5b92ea)['then'](()=>_0x54ae6f);}async function _0x13018a(){await _0x214604,_0x175f3e['model']['change']=_0x3240f0,_0x175f3e['model']['enqueueChange']=_0x3240f0,_0x175f3e['enableReadOnlyMode']('model');}function _0x5d7836(){return _0x15ebe7('WebSocketGateway')&&'connected'==_0x4b7bc5('WebSocketGateway')['state'];}function _0x3ecfea(){return _0x15ebe7('RevisionViewerIntegration');}function _0x231f4e(){return _0x15ebe7('TrackChangesDataGetter');}function _0x390029(_0x4705a1){const _0x439f2f=_0x2fb84a();_0x175f3e[_0x439f2f]='trackChangesLicenseKey'+_0x4705a1,'Valid'!=_0x4705a1&&_0x13018a();}function _0x2fb84a(){const _0x2b2944=window['String'](window['performance']['now']())['replace']('.','');let _0x2a00d9='U';for(let _0x23d0d8=0x0;_0x23d0d8<_0x2b2944['length'];_0x23d0d8+=0x2){let _0x18b996=window['parseInt'](_0x2b2944['substring'](_0x23d0d8,_0x23d0d8+0x2));_0x18b996>=0x3e&&(_0x18b996-=0x3e),_0x2a00d9+=_0x571bff[_0x18b996];}return _0x2a00d9;}function _0x1e5139(){const _0x1296fc=_0x2d2739['split']('.');if(0x3!=_0x1296fc['length'])return null;return _0xe7e501(_0x1296fc[0x1]);function _0xe7e501(_0x23f27b){const _0x2a81f1=_0xdcd312(_0x23f27b);return _0x2a81f1&&_0x5b469f()?_0x2a81f1:null;function _0x5b469f(){const _0x52f503=_0x2a81f1['jti'],_0x39648b=window['parseInt'](_0x52f503['substring'](_0x52f503['length']-0x8),0x10),_0x431e31={..._0x2a81f1,'jti':_0x52f503['substring'](0x0,_0x52f503['length']-0x8)};return delete _0x431e31['vc'],_0x52ae50(_0x431e31)==_0x39648b;}}}async function _0x278c64(){let _0x57b99b=!0x0;try{const [_0x385ed8,_0xee1dbd,_0x174099]=_0x2d2739['split']('.');return _0x8bd3aa(_0x385ed8),await _0x3fe517(_0x385ed8,_0xee1dbd,_0x174099),_0x57b99b;}catch{return!0x1;}function _0x8bd3aa(_0x1e9f0f){const _0x553a50=_0xdcd312(_0x1e9f0f);_0x553a50&&'ES256'==_0x553a50['alg']||(_0x57b99b=!0x1);}async function _0x3fe517(_0x158b7e,_0x248deb,_0x1c07ad){const _0x1b7cdb=window['Uint8Array']['from'](_0x58b1af(_0x1c07ad),_0x445cdb=>_0x445cdb['charCodeAt'](0x0)),_0x3d0dc7=new window['TextEncoder']()['encode'](_0x158b7e+'.'+_0x248deb),_0x5cd101=window['crypto']['subtle'];if(!_0x5cd101)return;const _0x13f4ad=await _0x5cd101['importKey']('jwk',_0x184e5c,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x5cd101['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x13f4ad,_0x1b7cdb,_0x3d0dc7)||(_0x57b99b=!0x1);}}function _0xdcd312(_0x53e4c8){return _0x53e4c8['startsWith']('ey')?JSON['parse'](_0x58b1af(_0x53e4c8)):null;}function _0x58b1af(_0x2caf2b){return window['atob'](_0x2caf2b['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x52ae50(_0x1d7066){let _0x2747bd=0x1505;function _0x480c41(_0x340638){for(let _0x56f558=0x0;_0x56f558<_0x340638['length'];_0x56f558++){const _0x40daab=_0x340638['charCodeAt'](_0x56f558);_0x2747bd=(_0x2747bd<<0x5)+_0x2747bd+_0x40daab,_0x2747bd&=_0x2747bd;}}function _0x1c1d9d(_0x15babd){Array['isArray'](_0x15babd)?_0x15babd['forEach'](_0x1c1d9d):_0x15babd&&'object'==typeof _0x15babd?Object['entries'](_0x15babd)['sort']()['forEach'](([_0x3dd2da,_0x235acf])=>{_0x480c41(_0x3dd2da),_0x1c1d9d(_0x235acf);}):_0x480c41(window['String'](_0x15babd));}return _0x1c1d9d(_0x1d7066),_0x2747bd>>>0x0;}function _0xd0dfbc(_0x2ab673){return _0x2ab673['toString'](0x10)['padStart'](0x8,'0');}function _0x5aaf9d(_0x45a011){return _0x45a011['split']('')['reverse']()['join']('');}function _0x15ebe7(_0x409b0f){return _0x175f3e['plugins']['has'](_0x409b0f);}function _0x4b7bc5(_0x1389ec){return _0x175f3e['plugins']['get'](_0x1389ec);}function _0x3240f0(){}_0x390029(await _0x2673b3());}_0x53bfe0(_0xe2cc2['editor']);}(this);}set adapter(_0x2415be){if(this['_adapter'])throw new _0x4a2c66('track-changes-adapter-already-set',this);this['_adapter']=_0x2415be;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0x988597=!0x1,toJSON:_0x41dea9=!0x1}={}){const _0x482af6=[];for(const _0x4fdd6c of this['_suggestions']['values']())_0x988597&&!_0x4fdd6c['isInContent']||_0x482af6['push'](_0x4fdd6c);return _0x41dea9?_0x482af6['map'](_0x300419=>_0x300419['toJSON']()):_0x482af6;}getSuggestion(_0x2fcff1){const _0x2a0371=this['_suggestions']['get'](_0x2fcff1);if(!_0x2a0371)throw new _0x4a2c66('track-changes-suggestion-not-found',this);return _0x2a0371;}hasSuggestion(_0x857dbc){return this['_suggestions']['has'](_0x857dbc);}addSuggestionData(_0x29eecf){const {authorId:_0x35d3c0,id:_0x49d63b,originalSuggestionId:_0x2fa22a,attributes:_0x2ce0e3}=_0x29eecf,[_0x2c48c3,_0x4dd679]=_0x29eecf['type']['split'](':'),_0x12ccdf=this['_suggestions']['get'](_0x49d63b)||this['_createSuggestion'](_0x2c48c3,_0x4dd679,_0x49d63b,_0x35d3c0,_0x2ce0e3,_0x2fa22a);if(this['_addThreadToSuggestion'](_0x12ccdf),this['_checkSuggestionCorrectness'](_0x12ccdf,_0x2c48c3,_0x4dd679||null,_0x35d3c0),_0x12ccdf['createdAt']=_0x29eecf['createdAt'],_0x12ccdf['_isDataLoaded']=!0x0,_0x2ce0e3&&_0x2ce0e3['@external']){const _0x1d19cd=_0x2ce0e3['@external'],_0x689d5b=this['_getExternalAuthor'](_0x1d19cd['authorName']);_0x12ccdf['authoredAt']=_0x1d19cd['createdAt'],_0x12ccdf['author']=_0x689d5b;}else _0x12ccdf['authoredAt']=_0x29eecf['createdAt'];switch(_0x29eecf['data']&&(_0x12ccdf['data']=_0x29eecf['data']),_0x29eecf['attributes']&&(_0x12ccdf['attributes']=_0x29eecf['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x12ccdf['_saved']=!0x0),this['_suggestionState']['get'](_0x12ccdf)){case'notReady':this['_suggestionState']['set'](_0x12ccdf,'dataReady');break;case'markerReady':_0x12ccdf['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x12ccdf])),this['_refreshSuggestionsChain'](new Set([_0x12ccdf])),this['_suggestionState']['set'](_0x12ccdf,'ready'),this['fire']('suggestionLoaded',_0x12ccdf)):this['_suggestionState']['set'](_0x12ccdf,'removed');}return _0x12ccdf;}acceptSuggestion(_0xd5e5a4){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x54c783 of _0xd5e5a4['getAllAdjacentSuggestions']())_0x54c783['accept']();});});}discardSuggestion(_0x29b7bc){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x42e8bd of _0x29b7bc['getAllAdjacentSuggestions']())_0x42e8bd['discard']();});});}['enableCommand'](_0x3f23f8,_0x59773b){const _0x14642e=this['editor']['commands']['get'](_0x3f23f8);if(!_0x14642e)throw new _0x4a2c66('track-changes-command-not-found',this,{'commandName':_0x3f23f8});if(this['_enabledCommands']['has'](_0x14642e))throw new _0x4a2c66('track-changes-enable-command-twice',this,{'commandName':_0x3f23f8});this['_enabledCommands']['add'](_0x14642e),_0x59773b&&_0x14642e['on']('execute',(_0x3919d5,_0x432c48)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x432c48['length']>0x0&&_0x432c48[_0x432c48['length']-0x1]&&_0x432c48[_0x432c48['length']-0x1]['forceDefaultExecution']?_0x432c48['pop']():(_0x3919d5['return']=_0x59773b((..._0x5c8bc7)=>_0x14642e['execute'](..._0x5c8bc7,{'forceDefaultExecution':!0x0}),..._0x432c48),_0x3919d5['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x3c7f9a){let _0x2b3a83,_0x29fb08;const _0x1919bd=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2b3a83=_0x3c7f9a();}catch(_0x12ce2c){_0x29fb08=_0x12ce2c;}return _0x1919bd||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x29fb08&&_0x4a2c66['rethrowUnexpectedError'](_0x29fb08,this),_0x2b3a83;}markInsertion(_0xc7d5ac,_0x36df32=null,_0x48ee3f={}){if(_0xc7d5ac['isCollapsed'])return null;const _0x1cbc1c=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x48ee3f['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4cd57e,meta:_0x4ec37e}of this['_findSuggestions'](_0xc7d5ac,'insertion'))if(_0x4ec37e['isOwn']){if(!_0x4ec37e['isNextTo']){if(_0x4ec37e['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!An(_0x4cd57e,_0x48ee3f))continue;return _0x4cd57e;}if(An(_0x4cd57e,_0x48ee3f))return _0x4cd57e;this['_breakSuggestionMarker'](_0x4cd57e,_0xc7d5ac['start'],_0xc7d5ac['end']);break;}if(_0x36df32==_0x4cd57e['subType']&&An(_0x4cd57e,_0x48ee3f)){const _0x1034b0=_0x4cd57e['getFirstRange']();return _0x1034b0['start']['isEqual'](_0xc7d5ac['end'])?this['_setSuggestionRange'](_0x4cd57e,this['_model']['createRange'](_0xc7d5ac['start'],_0x1034b0['end'])):this['_setSuggestionRange'](_0x4cd57e,this['_model']['createRange'](_0x1034b0['start'],_0xc7d5ac['end'])),_0x4cd57e;}}const _0x5aca0a=_0x1172bd(),_0x26f183=_0x1cbc1c['id'],_0x4619bf=_0x36df32?'insertion:'+_0x36df32:'insertion',_0x99d248=this['_setSuggestionData']({'id':_0x5aca0a,'type':_0x4619bf,'createdAt':new Date(),'authorId':_0x26f183,'attributes':_0x48ee3f});return this['_addSuggestionMarker'](_0x4619bf,_0x5aca0a,_0x26f183,_0xc7d5ac),_0x99d248;}markMultiRangeInsertion(_0x12578a,_0x1ee861='multi',_0x225dc1={}){const _0x4636ee=this['editor']['plugins']['get']('Users')['me'],_0x6dda36=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1ee861,'join');this['_trackingSessionId']&&(_0x225dc1['trackingSessionId']=this['_trackingSessionId']);for(const _0x20a93e of this['getSuggestions']())if(_0x20a93e['author']['id']==_0x4636ee['id']&&'insertion'==_0x20a93e['type']&&_0x20a93e['subType']==_0x1ee861&&An(_0x20a93e,_0x225dc1)&&(_0x6dda36(_0x20a93e['getRanges'](),_0x12578a)||_0x6dda36(_0x12578a,_0x20a93e['getRanges']()))){for(const _0x442fa7 of _0x12578a)_0x20a93e['addRange'](_0x442fa7);return _0x20a93e;}for(const {suggestion:_0x3d78c7,meta:_0x412172}of this['_findSuggestions'](_0x12578a,'insertion')){if(!_0x412172['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x412172['containsRangeInObject'])continue;if(!An(_0x3d78c7,_0x225dc1))continue;let _0x3fc3ac=!0x0;for(const _0x1a0c9d of _0x3d78c7['getRanges']())for(const _0x4e14c6 of _0x12578a)if(!_0x1a0c9d['containsRange'](_0x4e14c6)){_0x3fc3ac=!0x1;break;}if(_0x3fc3ac)return _0x3d78c7;}const _0x57c63c=_0x1172bd(),_0x250a88=_0x4636ee['id'],_0x1ea7b4='insertion:'+_0x1ee861,_0x494e56=this['_setSuggestionData']({'id':_0x57c63c,'type':_0x1ea7b4,'createdAt':new Date(),'authorId':_0x250a88,'attributes':_0x225dc1});for(const _0x526450 of _0x12578a)this['_addSuggestionMarker'](_0x1ea7b4,_0x57c63c,_0x250a88,_0x526450,Ot['getMultiRangeId']());return _0x494e56;}markInlineFormat(_0x4d8dbb,_0x11e32d,_0x382ece=null,_0x245c92={}){if(_0x382ece=_0x382ece||fn(_0x11e32d),_0x4d8dbb['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x245c92['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3d8d70=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x382ece,'accept');return this['forceDefaultExecution'](()=>_0x3d8d70([_0x4d8dbb],_0x11e32d,_0x245c92)),null;}const _0x5bf8fd=this['editor']['plugins']['get']('Users')['me'],_0x3856a3=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x49a3d5,meta:_0x3a4edf}of this['_findSuggestions'](_0x4d8dbb,'insertion'))_0x3a4edf['isOwn']&&!_0x3a4edf['isInsideObject']&&_0x3856a3['push'](..._0x49a3d5['getRanges']());}const _0x4deae9=function(_0x584bd3,_0xa8dadd){const _0x49cb5c=[];for(const _0xa63b64 of _0xa8dadd){const _0x561eb2=_0x584bd3['getIntersection'](_0xa63b64);_0x561eb2&&_0x49cb5c['push'](_0x561eb2);}return _0x49cb5c;}(_0x4d8dbb,_0x3856a3),_0x322ec5=function(_0x4437d1,_0x2abfdd){const _0x17fb7f=[_0x4437d1];for(const _0x3a42e4 of _0x2abfdd){let _0x2c35f2=0x0;for(;_0x2c35f2<_0x17fb7f['length'];){const _0x4c8f41=_0x17fb7f[_0x2c35f2]['getDifference'](_0x3a42e4);_0x17fb7f['splice'](_0x2c35f2,0x1,..._0x4c8f41),_0x2c35f2+=_0x4c8f41['length'];}}return _0x17fb7f;}(_0x4d8dbb,_0x3856a3);_0x4deae9['length']&&this['_model']['change'](()=>{for(const _0x55c758 of _0x4deae9){const _0x415aa8=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x382ece,'accept');this['forceDefaultExecution'](()=>_0x415aa8([_0x55c758],_0x11e32d,_0x245c92));}});for(const _0x3e1df5 of _0x322ec5){let _0x4fab60=null,_0x91b0bf=_0x3e1df5['start'],_0x49a269=_0x3e1df5['end'];for(const {suggestion:_0x2984b2,meta:_0x11b3bb}of this['_findSuggestions'](_0x3e1df5,'formatInline')){if(!_0x11b3bb['isOwn'])continue;if(_0x2984b2['subType']!=_0x382ece)continue;if(!An(_0x2984b2,_0x245c92))continue;const _0x2d64a7=_0x2984b2['getFirstRange']();if(_0x2d64a7['containsRange'](_0x3e1df5,!0x0))return null;_0x91b0bf=_0x91b0bf['isBefore'](_0x2d64a7['start'])?_0x91b0bf:_0x2d64a7['start'],_0x49a269=_0x49a269['isAfter'](_0x2d64a7['end'])?_0x49a269:_0x2d64a7['end'],_0x4fab60?_0x2d64a7['start']['isBefore'](_0x4fab60['getFirstRange']()['start'])?(_0x4fab60['removeMarkers'](),_0x4fab60=_0x2984b2):_0x2984b2['removeMarkers']():_0x4fab60=_0x2984b2;}const _0x328022=this['_model']['createRange'](_0x91b0bf,_0x49a269);if(_0x4fab60)this['_setSuggestionRange'](_0x4fab60,_0x328022);else{const _0x8b511f=_0x1172bd(),_0x10c91c=_0x5bf8fd['id'];this['_setSuggestionData']({'id':_0x8b511f,'type':'formatInline:'+_0x382ece,'data':_0x11e32d,'createdAt':new Date(),'authorId':_0x10c91c,'attributes':_0x245c92}),this['_addSuggestionMarker']('formatInline:'+_0x382ece,_0x8b511f,_0x10c91c,_0x328022);}}return null;}markBlockFormat(_0x2fe25d,_0x590e3e,_0xff8b0=[],_0x189cb3=null,_0x3e9f12={}){_0x590e3e['formatGroupId']||(_0x590e3e['formatGroupId']=_0x590e3e['commandName']),_0x590e3e['multipleBlocks']=_0x2fe25d['is']('range'),_0x189cb3=_0x189cb3||fn(_0x590e3e);const _0x584bc5=_0xff8b0['map'](_0x119a5f=>pn(_0x119a5f,this['_model'])),_0xd7c61f=_0x2fe25d['is']('range')?_0x2fe25d:pn(_0x2fe25d,this['_model']);if(this['_trackingSessionId']&&(_0x3e9f12['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5ced5c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x189cb3,'accept');return this['forceDefaultExecution'](()=>_0x5ced5c([_0xd7c61f],_0x590e3e,_0x3e9f12)),null;}_0x584bc5['push'](_0xd7c61f);let _0x2998d8=!0x0;for(const _0x4a28de of _0x584bc5)if(!this['_rangeIsInLocalUserInsertion'](_0x4a28de)){_0x2998d8=!0x1;break;}if(_0x2998d8&&'always'!==this['_trackFormatChanges']){const _0x195417=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x189cb3,'accept');return this['forceDefaultExecution'](()=>_0x195417([_0xd7c61f],_0x590e3e,_0x3e9f12)),null;}let _0x2f6716=null,_0x522cf8=_0xd7c61f['start'],_0x39acdd=_0xd7c61f['end'];for(const {suggestion:_0x22493a,meta:_0x7d102a}of this['_findSuggestions'](_0xd7c61f,'formatBlock')){if(!_0x7d102a['isOwn'])continue;if(_0x7d102a['isNextTo']||_0x7d102a['containsRangeInObject']||_0x7d102a['isInsideObject'])continue;if(_0x22493a['data']['formatGroupId']!=_0x590e3e['formatGroupId'])continue;if(!An(_0x22493a,_0x3e9f12))continue;const _0x4ae550=_0x22493a['getFirstRange']();if(_0x22493a['subType']==_0x189cb3){if(_0x4ae550['containsRange'](_0xd7c61f,!0x0))return null;_0x522cf8=_0x522cf8['isBefore'](_0x4ae550['start'])?_0x522cf8:_0x4ae550['start'],_0x39acdd=_0x39acdd['isAfter'](_0x4ae550['end'])?_0x39acdd:_0x4ae550['end'],_0x2f6716?_0x4ae550['start']['isBefore'](_0x2f6716['getFirstRange']()['start'])?(_0x2f6716['removeMarkers'](),_0x2f6716=_0x22493a):_0x22493a['removeMarkers']():_0x2f6716=_0x22493a;}else{const _0x25bda9=_0xd7c61f['getIntersection'](_0x4ae550);this['_cutOutSuggestionMarker'](_0x22493a,_0x25bda9);}}const _0x261d55=this['editor']['plugins']['get']('Users')['me'],_0x20decc=_0x1172bd(),_0x360b0d=_0x261d55['id'];if(_0x2f6716)return this['_setSuggestionRange'](_0x2f6716,this['_model']['createRange'](_0x522cf8,_0x39acdd)),_0x2f6716;{const _0x5e79a6=this['_setSuggestionData']({'id':_0x20decc,'type':'formatBlock:'+_0x189cb3,'data':_0x590e3e,'createdAt':new Date(),'authorId':_0x360b0d,'attributes':_0x3e9f12});return this['_addSuggestionMarker']('formatBlock:'+_0x189cb3,_0x20decc,_0x360b0d,this['_model']['createRange'](_0x522cf8,_0x39acdd)),_0x5e79a6;}}markMultiRangeBlockFormat(_0x1b4ad9,_0x26db53,_0x5b3df6=[],_0x11425d=null,_0x1c9428={}){_0x26db53['formatGroupId']||(_0x26db53['formatGroupId']=_0x26db53['commandName']);const _0x549d89=_0x1b4ad9[0x0];_0x26db53['multipleBlocks']=_0x549d89['is']('range'),_0x11425d=_0x11425d||fn(_0x26db53);const _0x301709=_0x5b3df6['map'](_0x25518e=>pn(_0x25518e,this['_model'])),_0x262d74=_0x549d89['is']('range')?_0x1b4ad9:_0x1b4ad9['map'](_0x1758de=>pn(_0x1758de,this['_model']));if(this['_trackingSessionId']&&(_0x1c9428['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x130743=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11425d,'accept');return this['forceDefaultExecution'](()=>_0x130743(_0x262d74,_0x26db53,_0x1c9428)),null;}_0x301709['push'](..._0x262d74);let _0x476667=!0x0;for(const _0x31dc73 of _0x301709)if(!this['_rangeIsInLocalUserInsertion'](_0x31dc73)){_0x476667=!0x1;break;}if(_0x476667&&'always'!==this['_trackFormatChanges']){const _0x346678=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11425d,'accept');return this['forceDefaultExecution'](()=>_0x346678(_0x262d74,_0x26db53,_0x1c9428)),null;}const _0x19d388=this['editor']['plugins']['get']('Users')['me'];for(const _0x3c1c25 of this['getSuggestions']()){const _0x17d194=_0x3c1c25['data'];if(_0x3c1c25['author']['id']!=_0x19d388['id'])continue;if('formatBlock'!=_0x3c1c25['type']||_0x17d194['formatGroupId']!=_0x26db53['formatGroupId'])continue;if(!An(_0x3c1c25,_0x1c9428))continue;const _0x19fba8=_0x3c1c25['subType']==_0x11425d;for(let _0x482504=0x0;_0x482504<_0x262d74['length'];_0x482504++){const _0x4f3771=_0x262d74[_0x482504];for(const _0x221248 of _0x3c1c25['getMarkers']()){const _0x19f65c=_0x221248['getRange']();if(_0x4f3771['isEqual'](_0x19f65c)){_0x19fba8?(_0x262d74['splice'](_0x482504,0x1),_0x482504--):_0x3c1c25['removeMarker'](_0x221248['name']);break;}}}}if(0x0==_0x262d74['length'])return null;const _0x44c653=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11425d,'join');for(const _0x24837e of this['getSuggestions']()){const _0x11bbd4=_0x24837e['data'];if(_0x24837e['author']['id']==_0x19d388['id']&&('formatBlock'==_0x24837e['type']&&_0x11bbd4['formatGroupId']==_0x26db53['formatGroupId']&&_0x24837e['subType']==_0x11425d&&An(_0x24837e,_0x1c9428)&&(_0x44c653(_0x24837e['getRanges'](),_0x262d74)||_0x44c653(_0x262d74,_0x24837e['getRanges']())))){for(const _0x2b7cde of _0x262d74)_0x24837e['addRange'](_0x2b7cde);return _0x24837e;}}const _0x8db569=_0x1172bd(),_0x294529=_0x19d388['id'],_0x1ce0c8='formatBlock:'+_0x11425d,_0x27b235=this['_setSuggestionData']({'id':_0x8db569,'type':_0x1ce0c8,'data':_0x26db53,'createdAt':new Date(),'authorId':_0x294529,'attributes':_0x1c9428});for(const _0x515efe of _0x262d74)this['_addSuggestionMarker'](_0x1ce0c8,_0x8db569,_0x294529,_0x515efe,Ot['getMultiRangeId']());return _0x27b235;}markDeletion(_0x49c6c7,_0x2000cb=null,_0x232a9e={}){if(_0x49c6c7['isCollapsed'])return null;const _0x3032c6=this['editor']['plugins']['get']('Users')['me'],_0x199273=new at(_0x49c6c7['start'],_0x49c6c7['end']);this['_trackingSessionId']&&(_0x232a9e['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x44214a,meta:_0x19b45a}of this['_findSuggestions'](_0x199273,'insertion'))if(_0x19b45a['isOwn']&&!_0x19b45a['isNextTo']){if(_0x44214a['isMultiRange']){const _0x113e84=_0x44214a['getRanges']()['filter'](_0x1d9e94=>'$graveyard'!=_0x1d9e94['root']['rootName']);if(_0x113e84['every'](_0x18f77b=>_0x199273['containsRange'](_0x18f77b,!0x0))&&_0x44214a['discard'](),_0x113e84['some'](_0x499624=>_0x499624['containsRange'](_0x199273,!0x0))){const _0x198604=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2000cb,'accept');return this['forceDefaultExecution'](()=>_0x198604([_0x199273],null,_0x232a9e)),null;}}else{const _0x1e1a28=_0x199273['getIntersection'](_0x44214a['getFirstRange']());null!==_0x1e1a28&&_0x44214a['_onDiscard']([_0x1e1a28],null,_0x232a9e);}}if(_0x199273['detach'](),_0x199273['isCollapsed']||'$graveyard'==_0x199273['root']['rootName'])return null;let _0x4a3ff9=null,_0x16744f=_0x199273['start'],_0x26e35e=_0x199273['end'];const _0x36aa06=this['_findSuggestions'](_0x199273,'deletion');for(const {suggestion:_0x5b1ff2,meta:_0x3ba8a5}of _0x36aa06){const _0x24dc8a=this['_model']['createRange'](_0x16744f,_0x26e35e);if(_0x3ba8a5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3ba8a5['containsRangeInObject']&&!_0x3ba8a5['isInsideObject'])){if(_0x5b1ff2['isMultiRange']){if(!An(_0x5b1ff2,_0x232a9e))continue;let _0x4c46ea=!0x0;for(const _0x472c73 of _0x5b1ff2['getRanges']()){if(_0x472c73['containsRange'](_0x24dc8a,!0x0))return _0x5b1ff2;_0x24dc8a['containsRange'](_0x472c73)||(_0x4c46ea=!0x1);}_0x4c46ea&&_0x5b1ff2['discard']();}else{const _0x4bea09=_0x5b1ff2['getFirstRange']();if(_0x4bea09['containsRange'](_0x24dc8a,!0x0))return _0x5b1ff2;if(!An(_0x5b1ff2,_0x232a9e)){_0x24dc8a['containsRange'](_0x4bea09)?_0x5b1ff2['removeMarkers']():_0x4bea09['containsPosition'](_0x16744f)?_0x16744f=_0x4bea09['end']:_0x4bea09['containsPosition'](_0x26e35e)&&(_0x26e35e=_0x4bea09['start']);continue;}_0x16744f=_0x16744f['isBefore'](_0x4bea09['start'])?_0x16744f:_0x4bea09['start'],_0x26e35e=_0x26e35e['isAfter'](_0x4bea09['end'])?_0x26e35e:_0x4bea09['end'],_0x232a9e=Object['assign']({},_0x5b1ff2['attributes']),_0x4a3ff9?_0x4bea09['start']['isBefore'](_0x4a3ff9['getFirstRange']()['start'])?(_0x4a3ff9['removeMarkers'](),_0x4a3ff9=_0x5b1ff2):_0x5b1ff2['removeMarkers']():_0x4a3ff9=_0x5b1ff2;}}}if(_0x4a3ff9)return this['_setSuggestionRange'](_0x4a3ff9,this['_model']['createRange'](_0x16744f,_0x26e35e)),_0x4a3ff9;{const _0x54c08b=_0x1172bd(),_0x2db3d5=this['_model']['createRange'](_0x16744f,_0x26e35e),_0x51f873=_0x3032c6['id'],_0x4a1491=_0x2000cb?'deletion:'+_0x2000cb:'deletion',_0x5b5012=this['_setSuggestionData']({'id':_0x54c08b,'type':_0x4a1491,'createdAt':new Date(),'authorId':_0x51f873,'attributes':_0x232a9e});return this['_addSuggestionMarker'](_0x4a1491,_0x54c08b,_0x51f873,_0x2db3d5),_0x5b5012;}}markMultiRangeDeletion(_0x3fa880,_0x4a40ed='multi',_0x1669cd={}){const _0x2410ae=this['editor']['plugins']['get']('Users')['me'],_0x497867=_0x3fa880['map'](_0x84a2ee=>new at(_0x84a2ee['start'],_0x84a2ee['end'])),_0xc72813=new Set();this['_trackingSessionId']&&(_0x1669cd['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5e4479,meta:_0x3739ec}of this['_findSuggestions'](_0x497867,'insertion'))_0x3739ec['isOwn']&&!_0x3739ec['isNextTo']&&_0xc72813['add'](_0x5e4479);for(const _0x16b2e2 of _0xc72813)if(_0x16b2e2['isMultiRange']){const _0x49b0d2=_0x16b2e2['getRanges']();if(_0x16b2e2['attributes']&&_0x16b2e2['attributes']['skipNestingCheck']||_0x49b0d2['every'](_0x309113=>_0x497867['some'](_0xc36cac=>_0xc36cac['containsRange'](_0x309113,!0x0)))&&_0x16b2e2['discard'](),_0x497867['every'](_0x122423=>_0x49b0d2['some'](_0x48fdb3=>_0x48fdb3['containsRange'](_0x122423,!0x0)))){const _0x1b5dbf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4a40ed,'accept');return this['forceDefaultExecution'](()=>_0x1b5dbf(_0x3fa880,null,_0x1669cd)),null;}}else{const _0x373785=_0x16b2e2['getFirstRange']();if(_0x497867['some'](_0x1a77ff=>_0x1a77ff['containsRange'](_0x373785,!0x0))&&_0x16b2e2['discard'](),_0x497867['every'](_0x19d289=>_0x373785['containsRange'](_0x19d289,!0x0))){const _0x476aae=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4a40ed,'accept');return this['forceDefaultExecution'](()=>_0x476aae(_0x497867,null,_0x1669cd)),null;}}const _0x122fab=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4a40ed,'join');let _0x430917=null;for(const _0x1c7355 of this['getSuggestions']())if(_0x1c7355['author']['id']==_0x2410ae['id']&&_0x1c7355['isInContent']&&'deletion'==_0x1c7355['type']&&_0x1c7355['subType']==_0x4a40ed&&An(_0x1c7355,_0x1669cd)&&(_0x122fab(_0x1c7355['getRanges'](),_0x497867)||_0x122fab(_0x497867,_0x1c7355['getRanges']()))){if(_0x430917){if(_0x1c7355['commentThread']&&_0x1c7355['commentThread']['length'])continue;for(const _0x2c356d of _0x1c7355['getRanges']())_0x430917['isIntersectingWithRange'](_0x2c356d)||_0x430917['addRange'](_0x2c356d);_0x1c7355['removeMarkers']();}else{_0x430917=_0x1c7355;for(const _0x5c3562 of _0x497867)_0x1c7355['isIntersectingWithRange'](_0x5c3562)||_0x1c7355['addRange'](_0x5c3562);}}if(_0x430917)return _0x430917;_0xc72813['clear']();for(const {suggestion:_0x396895,meta:_0x5915e7}of this['_findSuggestions'](_0x497867,'deletion'))_0x5915e7['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5915e7['containsRangeInObject']&&!_0x5915e7['isInsideObject'])&&An(_0x396895,_0x1669cd)&&_0xc72813['add'](_0x396895);for(const _0x550a7a of _0xc72813){const _0x5bdd56=_0x550a7a['getRanges']();if((!_0x1669cd||!_0x1669cd['skipNestingCheck'])&&_0x497867['every'](_0x700931=>_0x5bdd56['some'](_0x47e720=>_0x47e720['containsRange'](_0x700931,!0x0))))return _0x550a7a;_0x550a7a['attributes']&&_0x550a7a['attributes']['skipNestingCheck']||_0x5bdd56['every'](_0x4412d9=>_0x497867['some'](_0x4f9e47=>_0x4f9e47['containsRange'](_0x4412d9,!0x0)))&&_0x550a7a['discard']();}const _0x798f5=_0x1172bd(),_0xd6a7b4=_0x2410ae['id'],_0x3ebb78='deletion:'+_0x4a40ed,_0xd80af4=this['_setSuggestionData']({'id':_0x798f5,'type':_0x3ebb78,'createdAt':new Date(),'authorId':_0xd6a7b4,'attributes':_0x1669cd});for(const _0x57f7a6 of _0x497867)_0x57f7a6['detach'](),_0x57f7a6['isCollapsed']||'$graveyard'==_0x57f7a6['root']['rootName']||this['_addSuggestionMarker'](_0x3ebb78,_0x798f5,_0xd6a7b4,_0x57f7a6,Ot['getMultiRangeId']());return _0xd80af4;}markAttributeChange(_0x5e3074,_0x410ded,_0x3ca885,_0x3552ca,_0x5d2957){if(_0x5e3074['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x23b633=this['editor']['plugins']['get']('Users')['me']['id'],_0x9cd7ef=Array['from'](this['_suggestions']['values']())['filter'](_0xae6ea2=>'attribute'==_0xae6ea2['type']&&_0xae6ea2['data']['key']==_0x410ded&&_0xae6ea2['isIntersectingWithRange'](_0x5e3074));if(this['_trackingSessionId']&&(_0x5d2957['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x4fdb0f=this['_findSuggestions'](_0x5e3074,'insertion')['filter'](({meta:_0x2e94c1})=>_0x2e94c1['isOwn']&&!_0x2e94c1['isInsideObject']&&!_0x2e94c1['isNextTo'])['map'](({suggestion:_0xffab52})=>_0xffab52);_0x9cd7ef['unshift'](..._0x4fdb0f);}const _0x2fc9aa=new Map([[_0x5e3074,_0x3ca885]]);for(const _0x28cf33 of _0x9cd7ef){const _0x42c88a='attribute'==_0x28cf33['type']?_0x28cf33['data']['oldValue']:void 0x0,_0x16d262=_0x28cf33['getFirstRange'](),_0x3e9f71=Array['from'](_0x2fc9aa['keys']())['find'](_0x26cd28=>_0x26cd28['isIntersecting'](_0x16d262));if(!_0x3e9f71)continue;const _0x3b9956=_0x3e9f71['getDifference'](_0x16d262);this['_suggestionsConversion']['isBlockAttribute'](_0x410ded)&&'insertion'==_0x28cf33['type']&&0x0!=_0x3b9956['length']||(_0x2fc9aa['delete'](_0x3e9f71),_0x3b9956['forEach'](_0x50a624=>{_0x2fc9aa['set'](_0x50a624,_0x3ca885);}),'insertion'!=_0x28cf33['type']&&_0x42c88a!=_0x3552ca&&_0x2fc9aa['set'](_0x3e9f71['getIntersection'](_0x16d262),_0x42c88a));}const _0x439b65=[];for(const [_0x77c10c,_0x3448b7]of _0x2fc9aa){const _0x297f2e=_0x1172bd(),_0xb318c5={'key':_0x410ded,'oldValue':_0x3448b7,'newValue':_0x3552ca};_0x410ded['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':_0x410ded});const _0x13afab=('attribute:'+_0x410ded+'|'+fn({'newValue':_0x3552ca}))['substring'](0x0,0x3c),_0x57a0e4=this['_setSuggestionData']({'id':_0x297f2e,'type':_0x13afab,'data':_0xb318c5,'createdAt':new Date(),'authorId':_0x23b633,'attributes':_0x5d2957});_0x439b65['push'](_0x57a0e4),this['_addSuggestionMarker'](_0x13afab,_0x297f2e,_0x23b633,_0x77c10c);}return _0x439b65;}enableDefaultAttributesIntegration(_0xccee3c){this['enableCommand'](_0xccee3c,(_0x43cb7e,..._0x39600b)=>{this['recordAttributeChanges'](()=>{_0x43cb7e(..._0x39600b);});});}startTrackingSession(_0x215279){return this['_trackingSessionId']=void 0x0!==_0x215279?_0x215279:_0x1172bd(),this['_trackingSessionId'];}_getAttributeKey(_0x278f23){return'attribute'==_0x278f23['type']?Cn(_0x278f23['subType']):null;}_applyOperationsAsSuggestions(_0x12afc3){if(0x0==_0x12afc3['length'])return;const _0x3bde3b=this['editor'],_0x2a5d32=[],_0x32289a=_0x1f6a5f=>{const _0x3ee3ac=_0x1f6a5f['_aiSource'];return _0x3ee3ac?{'@ai':{'type':_0x3ee3ac}}:{};},_0x5f3149=(_0x279def,_0x28e184,_0x5bc962,_0x233794)=>{const _0x3f159d=new Set(_0x233794['flatMap'](_0x1689a3=>_0x1689a3['getMarkerNames']()));let _0x294497=!0x1;for(let _0x1e4447=_0x28e184;_0x1e4447<_0x279def['operations']['length'];_0x1e4447++){const _0x5ee8ba=_0x279def['operations'][_0x1e4447];if('marker'==_0x5ee8ba['type']){if(!_0x3f159d['has'](_0x5ee8ba['name']))continue;_0x294497=!0x0;}_0x5ee8ba['_aiSource']=_0x5bc962;}return _0x294497;};_0x3bde3b['model']['change'](_0x4ec05e=>{for(let _0xe351b2=0x0;_0xe351b2<_0x12afc3['length'];_0xe351b2++){const _0x490cb4=_0x12afc3[_0xe351b2],_0x13be25=_0x490cb4['_aiSource'];if(_0x490cb4['baseVersion']=_0x3bde3b['model']['document']['version'],_0x490cb4['isDocumentOperation']=!0x0,_0xb57974(_0x490cb4))continue;if(an(_0x490cb4)){const _0x21d57=_0x147493(_0x490cb4['newRange'],_0x3bde3b['model']);_0x2a5d32['unshift']({'range':at['fromRange'](_0x21d57),'operation':_0x490cb4});continue;}const _0x2eb28e=_0x4ec05e['batch']['operations']['length']+0x1;let _0x2e4fa1=[];switch(_0x490cb4['type']){case'rename':{const _0xd8c417=_0x490cb4['oldName'],_0x30f0c1=_0x490cb4['newName'];if(_0xd8c417==_0x30f0c1)break;_0x4ec05e['batch']['addOperation'](_0x490cb4),_0x3bde3b['model']['applyOperation'](_0x490cb4);const _0x13ec7f='$elementName',_0x340bc7=_0x490cb4['position'],_0x544f70=_0x3bde3b['model']['createRange'](_0x340bc7,_0x3bde3b['model']['createPositionAt'](_0x340bc7['nodeAfter'],'end'));_0x2e4fa1=this['markAttributeChange'](_0x544f70,_0x13ec7f,_0xd8c417,_0x30f0c1,{..._0x32289a(_0x490cb4),'groupId':_0x1172bd()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x1b2a93=_0x490cb4['oldValue'],_0x628f66=_0x490cb4['newValue'];if(_0x1b2a93==_0x628f66)break;_0x4ec05e['batch']['addOperation'](_0x490cb4),_0x3bde3b['model']['applyOperation'](_0x490cb4);const _0x26865a=_0x490cb4['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x26865a))break;const _0x4ad1a3=_0x147493(_0x490cb4['range'],_0x3bde3b['model']);_0x2e4fa1=this['markAttributeChange'](_0x4ad1a3,_0x26865a,_0x1b2a93,_0x628f66,{..._0x32289a(_0x490cb4),'groupId':_0x1172bd()});break;}case'insert':{if(_0x4ec05e['batch']['addOperation'](_0x490cb4),_0x3bde3b['model']['applyOperation'](_0x490cb4),_0x12afc3[_0xe351b2+0x1]&&'move'==_0x12afc3[_0xe351b2+0x1]['type'])break;const _0x51088b=_0x490cb4['position'],_0x5cca5a=_0x490cb4['howMany'],_0x30de1a=_0x147493(_0x3bde3b['model']['createRange'](_0x51088b,_0x51088b['getShiftedBy'](_0x5cca5a)),_0x3bde3b['model']);_0x2e4fa1=cn(this['markInsertion'](_0x30de1a,null,{..._0x32289a(_0x490cb4)}));break;}case'split':{_0x4ec05e['batch']['addOperation'](_0x490cb4),_0x3bde3b['model']['applyOperation'](_0x490cb4);const _0x24887e=_0x490cb4['splitPosition'],_0x57e7ef=_0x490cb4['moveTargetPosition'],_0x369203=_0x3bde3b['model']['createRange'](_0x24887e,_0x57e7ef);_0x2e4fa1=cn(this['markInsertion'](_0x369203,null,{..._0x32289a(_0x490cb4)}));break;}case'move':case'remove':_0x4ec05e['batch']['addOperation'](_0x490cb4),_0x3bde3b['model']['applyOperation'](_0x490cb4);}_0x13be25&&_0x5f3149(_0x4ec05e['batch'],_0x2eb28e,_0x13be25,_0x2e4fa1)&&delete _0x490cb4['_aiSource'];}for(const {range:_0x409085,operation:_0x1e887d}of _0x2a5d32){const _0x3afea0=_0x1e887d['_aiSource'],_0x38c91c=_0x32289a(_0x1e887d),_0x2cfbd1=_0x4ec05e['batch']['operations']['length'];_0x409085['detach']();const _0x931665=this['markDeletion'](_0x409085,null,{..._0x38c91c});_0x3afea0&&_0x5f3149(_0x4ec05e['batch'],_0x2cfbd1,_0x3afea0,cn(_0x931665));}});}_setSuggestionRange(_0xb56f9c,_0x34a1a3){const _0x3869c5=_0xb56f9c['getFirstMarker']();this['_model']['change'](_0x39c1bb=>{_0x39c1bb['updateMarker'](_0x3869c5,{'range':_0x34a1a3});});}_addThreadToSuggestion(_0xd16f6){const _0x478cf8=_0xd16f6['id'],_0x59a9bf=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x478cf8)||this['_commentsRepository']['addCommentThread']({'channelId':_0x59a9bf,'threadId':_0x478cf8,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x115fec=this['_commentsRepository']['getCommentThread'](_0x478cf8);_0x115fec['unbind']('isRemovable'),_0x115fec['isRemovable']=!0x1,_0xd16f6['commentThread']=_0x115fec;}_checkSuggestionCorrectness(_0x243425,_0x497044,_0x16b094,_0x468f45){if(_0x243425['type']!=_0x497044||_0x243425['subType']!=_0x16b094||_0x243425['creator']['id']!=_0x468f45)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4a2c66('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0xe2eb84,_0x22cb89){const _0x444ccb=_0xe2eb84['getFirstRange']();if(_0x22cb89['isEqual'](_0x444ccb))_0xe2eb84['removeMarkers']();else{if(_0x444ccb['containsRange'](_0x22cb89)){const _0x4a1b6d=this['_model']['createPositionAt'](_0x22cb89['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xe2eb84,this['_model']['createRange'](_0x444ccb['start'],_0x4a1b6d));const _0x4be592=_0x1172bd(),_0x2feee7=_0xe2eb84['creator']['id'],_0x51cb0b=_0xe2eb84['type']+':'+_0xe2eb84['subType'];this['_setSuggestionData']({'id':_0x4be592,'type':_0x51cb0b,'createdAt':new Date(),'authorId':_0x2feee7,'data':_0xe2eb84['data'],'attributes':_0xe2eb84['attributes']});const _0x293c73=this['_model']['createPositionAt'](_0x22cb89['end']['parent'],'after'),_0xacb626=this['_model']['createRange'](_0x293c73,_0x444ccb['end']);this['_addSuggestionMarker'](_0x51cb0b,_0x4be592,_0x2feee7,_0xacb626);}else{if(_0x444ccb['containsPosition'](_0x22cb89['start'])){const _0x578b45=this['_model']['createPositionAt'](_0x22cb89['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xe2eb84,this['_model']['createRange'](_0x444ccb['start'],_0x578b45));}else{const _0x317ad1=this['_model']['createPositionAt'](_0x22cb89['end']['parent'],'after');this['_setSuggestionRange'](_0xe2eb84,this['_model']['createRange'](_0x317ad1,_0x444ccb['end']));}}}}_rangeIsInLocalUserInsertion(_0x271082){for(const {suggestion:_0x3bdd05,meta:_0x3df9fe}of this['_findSuggestions'](_0x271082,'insertion')){if(!_0x3df9fe['isOwn'])continue;const _0x1c7d42=_0x3bdd05['getRanges']();for(const _0x3620ac of _0x1c7d42)if(!_0x271082['getDifference'](_0x3620ac)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0x240d08){return this['editor']['plugins']['get']('Users')['getUser'](_0x240d08);}_getExternalAuthor(_0x1be222){const _0x49cedc=this['editor']['plugins']['get']('Users'),_0x26dae3=_0x755104('external:'+_0x1be222),_0x5e70bf=_0x49cedc['getUser'](_0x26dae3);return _0x5e70bf||_0x49cedc['addUser']({'id':_0x26dae3,'name':_0x1be222});}_createSuggestion(_0x3eab1c,_0x4748e1,_0x561b02,_0x367ab5,_0x1da2a9,_0x3d824b){const _0x68cb7e=this['_getAuthorFromId'](_0x367ab5);if(!_0x68cb7e)throw new _0x4a2c66('track-changes-user-not-found',this,{'authorId':_0x367ab5,'suggestionId':_0x561b02});const _0x2b3f55=this['_suggestionFactory']['buildSuggestion'](_0x3eab1c,_0x4748e1,_0x561b02,_0x68cb7e,_0x1da2a9,_0x56028e=>{this['_updateSuggestionData'](_0x561b02,{'attributes':_0x56028e});const _0x1db9e5=this['getSuggestion'](_0x561b02);this['_joinWithAdjacentSuggestions'](new Set([_0x1db9e5])),this['_refreshSuggestionsChain'](new Set([_0x1db9e5]));},_0x3d824b);return this['listenTo'](_0x2b3f55,'accept',()=>{this['_updateSuggestionData'](_0x561b02,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2b3f55,'discard',()=>{this['_updateSuggestionData'](_0x561b02,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x561b02,_0x2b3f55),this['_suggestionState']['set'](_0x2b3f55,'notReady'),_0x2b3f55;}_breakSuggestionMarker(_0x219d9a,_0x13fed2,_0x318ffe){const _0x1c974b=_0x219d9a['getFirstRange'](),_0x5ecafa=_0x1c974b['start'],_0x50438e=_0x1c974b['end'];this['_setSuggestionRange'](_0x219d9a,this['_model']['createRange'](_0x5ecafa,_0x13fed2));const _0x44c3c6=_0x1172bd(),_0x720bc3=_0x219d9a['creator']['id'],_0x528f12=_0x219d9a['type']+(_0x219d9a['subType']?':'+_0x219d9a['subType']:'');this['_setSuggestionData']({'id':_0x44c3c6,'type':_0x528f12,'createdAt':new Date(),'authorId':_0x720bc3,'originalSuggestionId':_0x219d9a['_originalSuggestionId']||_0x219d9a['id'],'attributes':_0x219d9a['attributes'],'data':_0x219d9a['data']});const _0x134304=this['_getAttributeKey'](_0x219d9a);('formatBlock'==_0x219d9a['type']||_0x134304&&this['_suggestionsConversion']['isBlockAttribute'](_0x134304))&&(_0x318ffe=this['_model']['createPositionBefore'](_0x318ffe['parent'])),this['_addSuggestionMarker'](_0x528f12,_0x44c3c6,_0x720bc3,this['_model']['createRange'](_0x318ffe,_0x50438e));}_findSuggestions(_0x198e10,_0x93d4c2=null){const _0x5ec518=[],_0x3cf4fc=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x198e10)||(_0x198e10=[_0x198e10]);for(const _0x3dd0fb of this['getSuggestions']()){if(!_0x3dd0fb['isInContent'])continue;if(_0x93d4c2&&_0x3dd0fb['type']!=_0x93d4c2)continue;let _0x44fb15=!0x1;for(const _0x6adce4 of _0x3dd0fb['getRanges']()){for(const _0xf0a234 of _0x198e10){const _0x46ceef=_0xf0a234['start']['isEqual'](_0x6adce4['end'])||_0xf0a234['end']['isEqual'](_0x6adce4['start']);if(_0x46ceef||_0xf0a234['getIntersection'](_0x6adce4)){const _0x3faddf=_0xf0a234['containsRange'](_0x6adce4)&&dn(this['_model']['schema'],_0x6adce4['start'],_0xf0a234),_0x5c2704=_0x6adce4['containsRange'](_0xf0a234)&&dn(this['_model']['schema'],_0xf0a234['start'],_0x6adce4);_0x5ec518['push']({'suggestion':_0x3dd0fb,'meta':{'isOwn':_0x3cf4fc==_0x3dd0fb['author'],'isNextTo':_0x46ceef,'isInsideObject':_0x3faddf,'containsRangeInObject':_0x5c2704}}),_0x44fb15=!0x0;break;}}if(_0x44fb15)break;}}return _0x5ec518;}_addSuggestionMarker(_0x51bba0,_0x4ccda4,_0x15fc61,_0x4f975c,_0x4d7779){this['_model']['change'](_0x274f39=>{let _0x28b13f='suggestion:'+_0x51bba0+':'+_0x4ccda4+':'+_0x15fc61;_0x4d7779&&(_0x28b13f=_0x28b13f+':'+_0x4d7779),_0x274f39['addMarker'](_0x28b13f,{'range':_0x4f975c,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0x2d3b18){const _0x1999e6=_0x2d3b18['previous'],_0x3d9901=_0x2d3b18['next'];_0x2d3b18['previous']=null,_0x2d3b18['next']=null,null!=_0x1999e6&&_0x1999e6['next']==_0x2d3b18&&(_0x1999e6['next']=_0x3d9901),null!=_0x3d9901&&_0x3d9901['previous']==_0x2d3b18&&(_0x3d9901['previous']=_0x1999e6),'ready'==this['_suggestionState']['get'](_0x2d3b18)&&(this['_suggestionState']['set'](_0x2d3b18,'removed'),this['fire']('suggestionUnloaded',_0x2d3b18,_0x1999e6,_0x3d9901));}_setSuggestionData(_0x5b337d){const _0x388243=_0x5b337d['id'],_0x5dd60d=this['addSuggestionData'](_0x5b337d);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1d0c29=this['editor']['plugins']['get']('PendingActions'),_0x480d81=_0x5dd60d['hasComments'],_0x21afb3=_0x5dd60d['subType']?_0x5dd60d['type']+':'+_0x5dd60d['subType']:_0x5dd60d['type'],_0x20e96=this['editor']['locale'],_0x38c9b7=_0x1d0c29['add'](wt(_0x20e96,'PENDING_ACTION_SUGGESTION')),_0x12003b={'id':_0x388243,'type':_0x21afb3,'hasComments':_0x480d81,'data':_0x5b337d['data']||null,'originalSuggestionId':_0x5b337d['originalSuggestionId']||null,'attributes':_0x5dd60d['attributes']};this['_adapter']['addSuggestion'](_0x12003b)['then'](_0xce6efe=>{_0x5dd60d['_saved']=!0x0,_0x1d0c29['remove'](_0x38c9b7),_0xce6efe&&_0xce6efe['createdAt']&&(this['_suggestions']['get'](_0x388243)['createdAt']=_0xce6efe['createdAt']);})['catch'](_0x5a220c=>{throw _0x5600d2('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5dd60d['discard']();}),_0x5dd60d['stopListening'](),this['_suggestions']['delete'](_0x5dd60d['id']),this['_suggestionState']['delete'](_0x5dd60d),_0x5a220c;});}return _0x5dd60d;}_updateSuggestionData(_0x18d5d5,_0x237a5d){const _0x1f7ce3=this['editor']['plugins']['get']('PendingActions'),_0x9f892f=this['getSuggestion'](_0x18d5d5);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x9f892f['_saved']){const _0x22ec7f=_0x1f7ce3['add'](wt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x18d5d5,_0x237a5d)['then'](()=>{_0x1f7ce3['remove'](_0x22ec7f);});}else _0x9f892f['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x18d5d5,_0x237a5d);});}}_getSuggestionData(_0x3a8ae5){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4a2c66('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3a8ae5);}_handleNewSuggestionMarker(_0x57d5f2){const {id:_0x2ebaeb,type:_0x2dbb01,subType:_0x290d2c,authorId:_0xfa99b0}=nt(_0x57d5f2),_0x5246fc=this['_suggestions']['get'](_0x2ebaeb)||this['_createSuggestion'](_0x2dbb01,_0x290d2c,_0x2ebaeb,_0xfa99b0,{});switch(this['_checkSuggestionCorrectness'](_0x5246fc,_0x2dbb01,_0x290d2c,_0xfa99b0),this['_suggestionState']['get'](_0x5246fc)){case'notReady':this['_getSuggestionData'](_0x2ebaeb)['then'](_0x27a82b=>{let _0x3df7f0=Promise['resolve']();_0x27a82b['hasComments']&&(_0x3df7f0=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2ebaeb})),_0x3df7f0['then'](()=>{this['addSuggestionData'](_0x27a82b)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5246fc,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2ebaeb,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5246fc,'ready'),this['fire']('suggestionLoaded',_0x5246fc);break;case'ready':this['fire']('suggestionChanged',_0x5246fc);}return _0x5246fc['addMarkerName'](_0x57d5f2),_0x5246fc;}_refreshSuggestionsChain(_0x5e332b){const _0x3ce212=Array['from'](_0x5e332b),_0xafc274=_0x3ce212['filter'](_0xa4b6ce=>'attribute'==_0xa4b6ce['type']);this['_refreshAttributeSuggestionsChain'](_0xafc274);const _0xd4a488=_0x3ce212['filter'](_0x16b424=>!_0x16b424['isMultiRange']&&'attribute'!=_0x16b424['type']),_0x301ff9=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x28118e=>!_0x28118e['isMultiRange']&&'attribute'!=_0x28118e['type']),_0x355d62=_0x301ff9['filter'](_0x154e3d=>!_0x5e332b['has'](_0x154e3d)),_0x1d44bc=new Map(_0x301ff9['map'](_0x296529=>[_0x296529,this['_suggestionFactory']['getSuggestionCallback'](_0x296529['type'],_0x296529['subType'],'chain')])),_0x3be718=new Map(_0x301ff9['map'](_0x310982=>[_0x310982,_0x310982['getFirstRange']()])),_0x3e47f7=new Set(),_0x1cdb4d=new Set();for(let _0x907831=0x0;_0x907831<_0xd4a488['length'];_0x907831++)_0x98c112(_0xd4a488[_0x907831],_0xd4a488,_0x907831+0x1);for(let _0x387734=0x0;_0x387734<_0xd4a488['length'];_0x387734++)_0x98c112(_0xd4a488[_0x387734],_0x355d62,0x0);const _0x281023=new Set();for(let _0x38db17=0x0;_0x38db17<_0xd4a488['length'];_0x38db17++){const _0x1c76a6=_0xd4a488[_0x38db17];!_0x1cdb4d['has'](_0x1c76a6)&&_0x1c76a6['previous']&&(_0x281023['add'](_0x1c76a6['previous']),_0x1c76a6['previous']['next']===_0x1c76a6&&(_0x1c76a6['previous']['next']=null),_0x1c76a6['previous']=null),!_0x3e47f7['has'](_0x1c76a6)&&_0x1c76a6['next']&&(_0x281023['add'](_0x1c76a6['next']),_0x1c76a6['next']['previous']===_0x1c76a6&&(_0x1c76a6['next']['previous']=null),_0x1c76a6['next']=null);}function _0x98c112(_0x47b832,_0x4f2720,_0x44b989){for(let _0x2ef2d7=_0x44b989;_0x2ef2d7<_0x4f2720['length'];_0x2ef2d7++){const _0x3c3a41=_0x3a9e5c(_0x47b832,_0x4f2720[_0x2ef2d7]);_0x3c3a41&&(_0x3c3a41[0x0]['next']=_0x3c3a41[0x1],_0x3c3a41[0x1]['previous']=_0x3c3a41[0x0],_0x3e47f7['add'](_0x3c3a41[0x0]),_0x1cdb4d['add'](_0x3c3a41[0x1]));}}function _0x3a9e5c(_0x615c05,_0x5f498f){if(_0x615c05['author']['id']!==_0x5f498f['author']['id'])return null;const _0x8c4abd=_0x1d44bc['get'](_0x615c05)(_0x615c05,_0x5f498f,_0x3be718['get'](_0x615c05),_0x3be718['get'](_0x5f498f));return _0x8c4abd&&_0x1d44bc['get'](_0x5f498f)(_0x615c05,_0x5f498f,_0x3be718['get'](_0x615c05),_0x3be718['get'](_0x5f498f))?_0x8c4abd[0x1]['commentThread']&&_0x8c4abd[0x1]['commentThread']['length']?null:_0x8c4abd:null;}_0x281023['size']&&this['_refreshSuggestionsChain'](_0x281023);}_refreshAttributeSuggestionsChain(_0x2cfc6b){if(0x0==_0x2cfc6b['length'])return;const _0x59bb4b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3e3da5=>'attribute'==_0x3e3da5['type']&&_0x3e3da5['_isDataLoaded']),_0x166d9e=[],_0x5a8501=new Map();for(const _0x27341e of _0x59bb4b){const _0x36e86c=_0x755104(_0x27341e['attributes']);_0x5a8501['has'](_0x36e86c)||(_0x5a8501['set'](_0x36e86c,_0x166d9e['length']),_0x166d9e['push']([])),_0x166d9e[_0x5a8501['get'](_0x36e86c)]['push'](_0x27341e);}!(function(){_0x166d9e['sort']((_0x1145b6,_0x1e778c)=>{const _0x471718=_0x1145b6[0x0]['createdAt'],_0x34b7a8=_0x1e778c[0x0]['createdAt'];return _0x471718==_0x34b7a8?_0x1145b6[0x0]['attributes']['groupId']<_0x1e778c[0x0]['attributes']['groupId']?-0x1:0x1:_0x471718<_0x34b7a8?-0x1:0x1;});for(const _0x33a6e7 of _0x166d9e)_0x33a6e7['sort']((_0x24a53b,_0x3c5488)=>_0x24a53b['id']<_0x3c5488['id']?-0x1:0x1);}());for(let _0x23fc52=0x0;_0x23fc52<_0x166d9e['length'];_0x23fc52++){if(0x0==_0x166d9e[_0x23fc52]['length'])continue;const _0x342bf2=[];for(let _0x5ae389=_0x23fc52+0x1;_0x5ae389<_0x166d9e['length'];_0x5ae389++)0x0!=_0x166d9e[_0x5ae389]['length']&&_0x48d38d(_0x166d9e[_0x23fc52],_0x166d9e[_0x5ae389])&&_0x342bf2['push'](_0x5ae389);for(const _0xf3e3f4 of _0x342bf2)_0x166d9e[_0x23fc52]=_0x166d9e[_0x23fc52]['concat'](_0x166d9e[_0xf3e3f4]),_0x166d9e[_0xf3e3f4]=[];}for(const _0x421a4c of _0x166d9e)for(let _0x39c413=0x0;_0x39c413<_0x421a4c['length'];_0x39c413++){const _0x50587a=_0x421a4c[_0x39c413+0x1]||null;_0x421a4c[_0x39c413]['next']!==_0x50587a&&(_0x421a4c[_0x39c413]['next']=_0x50587a);}for(const _0x26c3e0 of _0x166d9e)for(let _0x3187b1=0x0;_0x3187b1<_0x26c3e0['length'];_0x3187b1++){const _0x3f479e=_0x26c3e0[_0x3187b1-0x1]||null;_0x26c3e0[_0x3187b1]['previous']!==_0x3f479e&&(_0x26c3e0[_0x3187b1]['previous']=_0x3f479e);}function _0x48d38d(_0x3757ff,_0x494921){if(_0x3757ff[0x0]['attributes']['groupId']!==_0x494921[0x0]['attributes']['groupId']&&_0x3757ff[0x0]['author']!==_0x494921[0x0]['author'])return!0x1;if(!function(_0x5c5f8a,_0x5ab55d){return!_0x5c5f8a['hasComments']&&!_0x5ab55d['hasComments']||(!_0x5c5f8a['hasComments']||!_0x5ab55d['hasComments'])&&(!!(_0x5c5f8a['hasComments']&&_0x5ab55d['createdAt']<_0x5c5f8a['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x5ab55d['hasComments']&&_0x5c5f8a['createdAt']<_0x5ab55d['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x3757ff[0x0],_0x494921[0x0]))return!0x1;const _0x5ccfff=dt(_0x3757ff[0x0]['attributes'],['groupId','trackingSessionId']),_0x47a011=dt(_0x494921[0x0]['attributes'],['groupId','trackingSessionId']);return!!ut(_0x5ccfff,_0x47a011)&&(_0x3757ff[0x0]['attributes']['groupId']==_0x494921[0x0]['attributes']['groupId']||_0x3757ff[0x0]['attributes']['trackingSessionId']===_0x494921[0x0]['attributes']['trackingSessionId']&&(!!_0x3757ff['every'](_0x1480b2=>_0x494921['some'](_0x68643f=>_0x1480b2['getFirstRange']()['isEqual'](_0x68643f['getFirstRange']())))&&_0x494921['every'](_0x39cfc6=>_0x3757ff['some'](_0x74110=>_0x39cfc6['getFirstRange']()['isEqual'](_0x74110['getFirstRange']())))));}}_joinWithAdjacentSuggestions(_0x4d0b76){const _0x4e2378=Array['from'](_0x4d0b76),_0x38adb8=this['getSuggestions']({'skipNotAttached':!0x0}),_0x40c676=_0x38adb8['filter'](_0x30c53b=>!_0x4d0b76['has'](_0x30c53b)),_0x1acf35=new Map(_0x4e2378['map'](_0x5a4231=>[_0x5a4231,this['_suggestionFactory']['getSuggestionCallback'](_0x5a4231['type'],_0x5a4231['subType'],'join')])),_0x43ad5a=new Map(_0x38adb8['map'](_0x3137d0=>[_0x3137d0,_0x3137d0['getRanges']()]));for(let _0x243182=0x0;_0x243182<_0x4e2378['length'];_0x243182++)if(_0x25e04f(this,_0x4e2378[_0x243182],_0x4e2378,_0x243182+0x1))return!0x0;for(let _0x586c02=0x0;_0x586c02<_0x4e2378['length'];_0x586c02++)if(_0x25e04f(this,_0x4e2378[_0x586c02],_0x40c676,0x0))return!0x0;return!0x1;function _0x25e04f(_0x49d58d,_0x22d0b7,_0x102bbc,_0x56149d){for(let _0x121dc5=_0x56149d;_0x121dc5<_0x102bbc['length'];_0x121dc5++){const _0x2e675b=_0x102bbc[_0x121dc5];if(_0x2e675b['type']!==_0x22d0b7['type']||_0x2e675b['author']['id']!==_0x22d0b7['author']['id']||_0x2e675b['subType']!==_0x22d0b7['subType'])continue;if(!In(_0x22d0b7,_0x2e675b))continue;if('attribute'==_0x22d0b7['type']&&_0x22d0b7['data']['oldValue']!=_0x2e675b['data']['oldValue'])continue;if('attribute'==_0x22d0b7['type']&&_0x49d58d['_suggestionsConversion']['isBlockAttribute'](_0x22d0b7['data']['key']))continue;if('formatBlock'==_0x22d0b7['type']){const _0x9b3bce=_0x49d58d['editor']['model'],_0x1193c8=_0x22d0b7['getContainedElement']();if(_0x1193c8&&(_0x9b3bce['schema']['isObject'](_0x1193c8)||_0x9b3bce['schema']['isLimit'](_0x1193c8)))continue;}const _0x3cb26c=_0x1acf35['get'](_0x22d0b7),_0xd41e33=_0x43ad5a['get'](_0x22d0b7),_0xb3d7d7=_0x43ad5a['get'](_0x2e675b),_0x6771bb=_0x22d0b7['commentThread']&&_0x22d0b7['commentThread']['length'],_0x5a36a5=_0x2e675b['commentThread']&&_0x2e675b['commentThread']['length'];if(!_0x6771bb&&_0x3cb26c(_0xb3d7d7,_0xd41e33))return _0x49d58d['_joinSuggestions'](_0x2e675b,_0x22d0b7),_0x43ad5a['delete'](_0x22d0b7),!0x0;if(!_0x5a36a5&&_0x3cb26c(_0xd41e33,_0xb3d7d7))return _0x49d58d['_joinSuggestions'](_0x22d0b7,_0x2e675b),_0x43ad5a['delete'](_0x2e675b),!0x0;}return!0x1;}}_joinSuggestions(_0x26248c,_0x4f8c72){if(_0x26248c['isMultiRange']){for(const _0x535fed of _0x4f8c72['getRanges']())_0x26248c['addRange'](_0x535fed);}else{const _0x473adb=_0x4f8c72['getFirstRange']()['end'];this['_setSuggestionRange'](_0x26248c,this['_model']['createRange'](_0x26248c['getFirstRange']()['start'],_0x473adb));}_0x4f8c72['removeMarkers']();}_getMarkerAnnouncementText(_0x1242a3,_0x467089,_0x537f51){const _0x4728c5=_0x1242a3['startsWith']('format')||_0x1242a3['startsWith']('attribute')?'FORMATTING':_0x1242a3['toUpperCase']();return wt(this['editor']['locale'],_0x467089+'_'+_0x4728c5+'_SUGGESTION_ANNOUNCEMENT',_0x537f51);}_initAriaMarkerChangeAnnouncements(){const _0xdf48e9=this['editor'];if(!_0xdf48e9['ui'])return;const {ariaLiveAnnouncer:_0x1e4d65}=_0xdf48e9['ui'];it(this['_model'],({left:_0x220ba8,entered:_0x1b4127})=>{for(const _0x493733 of _0x220ba8){const {group:_0x17d1eb,type:_0x3d3163}=nt(_0x493733['name']);if('suggestion'===_0x17d1eb){_0x1e4d65['announce'](this['_getMarkerAnnouncementText'](_0x3d3163,'LEAVE'));break;}}for(const _0x18d275 of _0x1b4127){const {group:_0x46c30a,type:_0x2ce55d}=nt(_0x18d275['name']);if('suggestion'===_0x46c30a){_0x1e4d65['announce'](this['_getMarkerAnnouncementText'](_0x2ce55d,'ENTER',_0x593510(_0x3aea87)));break;}}});}_processAttributeChanges(_0x479617){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2a90a1=this['editor'],_0x1657bd=_0x2a90a1['model']['document']['differ']['getChanges']();if(0x0==_0x1657bd['length'])return!0x1;const _0x2d6316=[],_0x456b29=_0x1657bd['filter'](_0x596550=>'attribute'==_0x596550['type']),_0x5bc908=_0x1657bd['filter'](_0x4886d9=>'insert'==_0x4886d9['type']&&'$text'!=_0x4886d9['name']),_0x3a6f9f=_0x1657bd['filter'](_0x20fede=>'remove'==_0x20fede['type']&&'$text'!=_0x20fede['name']);for(const _0x26a1b1 of _0x456b29)_0x2d6316['push']({'key':_0x26a1b1['attributeKey'],'newValue':_0x26a1b1['attributeNewValue'],'oldValue':_0x26a1b1['attributeOldValue'],'range':_n(_0x26a1b1['range'],_0x2a90a1['model'])});for(const _0x1e2b01 of _0x5bc908){const _0x2391b1=_0x3a6f9f['find'](_0x2ca881=>_0x2ca881['position']['isEqual'](_0x1e2b01['position']));_0x2391b1&&_0x2d6316['push']({'key':on,'newValue':_0x1e2b01['name'],'oldValue':_0x2391b1['name'],'range':_0x2a90a1['model']['createRangeOn'](_0x1e2b01['position']['nodeAfter'])});}return 0x0!=_0x2d6316['length']&&this['_reduceExistingSuggestions'](_0x479617,_0x2d6316);}_processAttributeSuggestions(_0x5535ad){let _0x142d60=!0x1;const _0x116550=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x482e0d=>_0x482e0d['data']['newRange']&&_0x482e0d['name']['startsWith']('suggestion:attribute:'));for(const _0x2ee7c9 of _0x116550){const {subType:_0x2830ba,id:_0x4c17d8}=nt(_0x2ee7c9['name']),_0x10c27f=_0x2830ba['split']('|')[0x0];for(const _0x19f01e of this['getSuggestions']({'skipNotAttached':!0x0}))_0x19f01e['id']!=_0x4c17d8&&'attribute'==_0x19f01e['type']&&_0x19f01e['data']&&_0x19f01e['data']['key']==_0x10c27f&&_0x19f01e['getFirstRange']()['isIntersecting'](_0x2ee7c9['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x19f01e,_0x2ee7c9['data']['newRange'],_0x5535ad),_0x142d60=!0x0);}return _0x142d60;}recordAttributeChanges(_0x59e9d4){this['_recordAttributeSuggestions']=!0x0,_0x59e9d4();}_reduceExistingSuggestions(_0x136fb8,_0x8d0bbf){if(0x0==_0x8d0bbf['length'])return!0x1;let _0x1ae4de=!0x1;for(const _0x226bcd of _0x8d0bbf){const _0x459675=this['_findSuggestions'](_0x226bcd['range'],'attribute')['filter'](_0x4015b3=>!_0x4015b3['meta']['isNextTo'])['map'](_0x173893=>_0x173893['suggestion']),_0x4dcc65=_0x755104({'newValue':_0x226bcd['newValue']});_0x459675['filter'](_0x238538=>{const [_0xb27b47,_0x403d22]=_0x238538['subType']['split']('|');return _0xb27b47==_0x226bcd['key']&&_0x403d22!=_0x4dcc65;})['forEach'](_0x11838e=>{this['_reduceSuggestionAttributeRange'](_0x11838e,_0x226bcd['range'],_0x136fb8),_0x1ae4de=!0x0;});}return _0x1ae4de;}_reduceSuggestionAttributeRange(_0x491529,_0x505766,_0x2ae02a){const _0x5d5866=_0x491529['getFirstRange']()['getDifference'](_0x505766);0x0!==_0x5d5866['length']?0x1!==_0x5d5866['length']?this['_breakSuggestionMarker'](_0x491529,_0x505766['start'],_0x505766['end']):this['_setSuggestionRange'](_0x491529,_0x5d5866[0x0]):_0x2ae02a['removeMarker'](_0x491529['getFirstMarker']());}},un=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0x2efbd5){this['_editor']=_0x2efbd5,this['_model']=_0x2efbd5['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0xa0233,_0x86ca22,_0x394a49,_0x4b7a25,_0x51e8d9,_0x16723b,_0x7d6936){return new Ot(this['_model'],{'type':_0xa0233,'subType':_0x86ca22,'id':_0x394a49,'originalSuggestionId':_0x7d6936,'author':_0x4b7a25,'creator':_0x4b7a25,'attributes':_0x51e8d9,'onAttributesChange':_0x16723b,'onAccept':(..._0x753e2f)=>this['getSuggestionCallback'](_0xa0233,_0x86ca22,'accept')(..._0x753e2f),'onDiscard':(..._0x2eca4d)=>this['getSuggestionCallback'](_0xa0233,_0x86ca22,'discard')(..._0x2eca4d)});}registerCustomCallback(_0x55c7c2,_0x5d0562,_0x332144,_0x49b2ee){const _0x3a4114=_0x55c7c2+':'+_0x5d0562+':'+_0x332144;this['_customCallbacks']['set'](_0x3a4114,_0x49b2ee);}getSuggestionCallback(_0x400b16,_0x2755bb,_0x1a6fb9){const _0x53da83=_0x400b16+':'+_0x2755bb+':'+_0x1a6fb9;return this['_customCallbacks']['get'](_0x53da83)||this['_defaultCallbacks']['get'](_0x400b16+':'+_0x1a6fb9);}_registerDefaultCallbacks(){const _0x2681e8=()=>!0x1,_0x376832=_0x297dd9=>{_0x297dd9['sort']((_0x3b7c84,_0x282f6c)=>_0x3b7c84['start']['isBefore'](_0x282f6c['start'])?0x1:-0x1),this['_model']['change'](_0x6af933=>{for(const _0x3dc743 of _0x297dd9){let _0x2369e9;_0x2369e9=_0x3dc743['end']['isAtEnd']&&_0x3dc743['end']['parent']==_0x3dc743['start']['nodeAfter']?_0x6af933['createSelection'](_0x3dc743['start']['nodeAfter'],'on'):_0x6af933['createSelection'](_0x3dc743),this['_model']['deleteContent'](_0x2369e9,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x4557bc=(_0x2f02eb,_0x26550a)=>{_0x26550a&&this['_model']['change'](_0xc35a6e=>{const {commandName:_0x5be880,commandParams:_0x159303=[]}=_0x26550a,_0x210bdb=_0x2f02eb['map'](_0xa6cfb1=>(hn(_0xa6cfb1)&&(_0xa6cfb1=this['_model']['createRange'](_0xa6cfb1['end'])),_0xa6cfb1))['filter'](_0x1440a2=>'$graveyard'!==_0x1440a2['root']['rootName']);if(_0x210bdb['length']<0x1)return;const _0x2b585e=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3b6293=>at['fromRange'](_0x3b6293));_0xc35a6e['setSelection'](_0x210bdb);for(const _0x1a8132 of this['_editor']['commands']['commands']())_0x1a8132['refresh']();_0x159303['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5be880,..._0x159303);const _0x39909c=_0x2b585e['filter'](_0x26d015=>'$graveyard'!=_0x26d015['root']['rootName']);_0x39909c['length']>0x0&&_0xc35a6e['setSelection'](_0x39909c);for(const _0x289686 of _0x2b585e)_0x289686['detach']();});},_0x489636=(_0x237a68,_0x7dde59)=>0x1==_0x237a68['length']&&0x1==_0x7dde59['length']&&_0x237a68[0x0]['end']['isEqual'](_0x7dde59[0x0]['start']),_0x3c5158=(_0xc4bdb5,_0x514f41,_0x12fe3b,_0x25abc4)=>Ln(_0xc4bdb5,_0x514f41,_0x12fe3b,_0x25abc4)?[_0xc4bdb5,_0x514f41]:Ln(_0x514f41,_0xc4bdb5,_0x25abc4,_0x12fe3b)?[_0x514f41,_0xc4bdb5]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2681e8),this['_defaultCallbacks']['set']('insertion:discard',_0x376832),this['_defaultCallbacks']['set']('insertion:join',_0x489636),this['_defaultCallbacks']['set']('insertion:chain',_0x3c5158),this['_defaultCallbacks']['set']('deletion:accept',_0x376832),this['_defaultCallbacks']['set']('deletion:discard',_0x2681e8),this['_defaultCallbacks']['set']('deletion:join',_0x489636),this['_defaultCallbacks']['set']('deletion:chain',_0x3c5158),this['_defaultCallbacks']['set']('formatInline:accept',_0x4557bc),this['_defaultCallbacks']['set']('formatInline:discard',_0x2681e8),this['_defaultCallbacks']['set']('formatInline:join',_0x489636),this['_defaultCallbacks']['set']('formatInline:chain',_0x2681e8),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4557bc),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2681e8),this['_defaultCallbacks']['set']('formatBlock:join',_0x489636),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2681e8),this['_defaultCallbacks']['set']('attribute:accept',_0x2681e8),this['_defaultCallbacks']['set']('attribute:discard',(_0x69bf0a,_0x339308)=>{if(!_0x339308)return;const _0x447a31=this['_editor']['plugins']['get'](_0x131b84);this['_model']['change'](_0x3fe65d=>{if('$elementName'==_0x339308['key'])for(const _0x312d3b of _0x69bf0a){const _0x5f18ee=_0x312d3b['start']['nodeAfter'],_0x13de05=_0x339308['oldValue'];_0x3fe65d['rename'](_0x5f18ee,_0x13de05);}else{if(_0x447a31['isBlockAttribute'](_0x339308['key'])){for(const _0x22dcb1 of _0x69bf0a)void 0x0!==_0x339308['oldValue']?_0x3fe65d['setAttribute'](_0x339308['key'],_0x339308['oldValue'],_0x22dcb1['start']['nodeAfter']):_0x3fe65d['removeAttribute'](_0x339308['key'],_0x22dcb1['start']['nodeAfter']);}else{for(const _0x5a1586 of _0x69bf0a)_0x339308['oldValue']?_0x3fe65d['setAttribute'](_0x339308['key'],_0x339308['oldValue'],_0x5a1586):_0x3fe65d['removeAttribute'](_0x339308['key'],_0x5a1586);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x489636);}};function dn(_0x1eab0e,_0x7bb264,_0x1421fe){for(const _0x2770e7 of _0x7bb264['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2770e7['root']==_0x2770e7)return!0x1;if(!_0x1421fe['containsItem'](_0x2770e7))return!0x1;if(_0x1eab0e['isObject'](_0x2770e7)||_0x1eab0e['isLimit'](_0x2770e7))return!0x0;}return!0x1;}function hn(_0x50afc4){return _0x50afc4['end']['parent']==_0x50afc4['start']['nodeAfter']&&_0x50afc4['end']['isAtStart'];}function gn(_0x19768d,_0x3ac41b,_0x569fe5,_0x188f1c){const _0x460425=_0x5d99f1=>!_0x5d99f1['item']['is']('$textProxy')&&!_0x188f1c['isObject'](_0x5d99f1['item']),_0x598b77=_0x19768d['start']['getLastMatchingPosition'](_0x460425),_0x5cda11=_0x19768d['end']['getLastMatchingPosition'](_0x460425,{'direction':'backward'});return(!_0x19768d['start']['isEqual'](_0x598b77)||!_0x19768d['end']['isEqual'](_0x5cda11))&&(_0x598b77['isBefore'](_0x5cda11)?_0x569fe5['updateMarker'](_0x3ac41b,{'range':_0x569fe5['createRange'](_0x598b77,_0x5cda11)}):_0x569fe5['removeMarker'](_0x3ac41b),!0x0);}function fn(_0x448303){return _0x755104(_0x448303);}function mn(_0x1b00a0){const _0x275c15=_0x1b00a0['start']['nodeAfter'];return _0x275c15&&_0x275c15['is']('element');}function En(_0xa48aa3){return hn(_0xa48aa3)||function(_0x244dc0){return _0x244dc0['start']['parent']==_0x244dc0['end']['nodeBefore']&&_0x244dc0['start']['isAtEnd'];}(_0xa48aa3);}function Tn(_0x3f8024,_0x5684a0){try{const _0x3418c8=_0x3f8024['getRange']();for(const _0x14b268 of _0x5684a0)if(_0x3f8024!==_0x14b268&&_0x3418c8&&_0x3418c8['isIntersecting'](_0x14b268['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function _n(_0x1ea284,_0x2d1e5a){return null==_0x1ea284['end']['nodeBefore']&&_0x1ea284['end']['parent']==_0x1ea284['start']['nodeAfter']?pn(_0x1ea284['start']['nodeAfter'],_0x2d1e5a):_0x1ea284;}function pn(_0x16b73b,_0xaaf84b){const _0x3e7542=_0xaaf84b['schema']['isObject'](_0x16b73b)||_0xaaf84b['schema']['isSelectable'](_0x16b73b);return _0xaaf84b['createRange'](_0xaaf84b['createPositionAt'](_0x16b73b,'before'),_0x3e7542?_0xaaf84b['createPositionAfter'](_0x16b73b):_0xaaf84b['createPositionAt'](_0x16b73b,'end'));}function Ln(_0x266bd4,_0x3b035e,_0x6f0e,_0x3fb777){return!!In(_0x266bd4,_0x3b035e)&&_0x6f0e['end']['isEqual'](_0x3fb777['start']);}function In(_0x6f6eb0,_0x4dc79d){if(!_0x6f6eb0['_isDataLoaded']||!_0x4dc79d['_isDataLoaded'])return!0x1;const _0x132129=new Set(Object['keys'](_0x6f6eb0['attributes'])),_0x119a8e=new Set(Object['keys'](_0x4dc79d['attributes']));if(_0x132129['delete']('groupId'),_0x119a8e['delete']('groupId'),0x0==_0x132129['size']&&0x0==_0x119a8e['size'])return!0x0;if(_0x132129['size']!=_0x119a8e['size'])return!0x1;const _0x23f477={..._0x6f6eb0['attributes']},_0x244d4a={..._0x4dc79d['attributes']};return delete _0x23f477['groupId'],delete _0x244d4a['groupId'],JSON['stringify'](_0x23f477)==JSON['stringify'](_0x244d4a);}function An(_0x239ea5,_0x399c0e){const _0x99a73c=bn(_0x239ea5['attributes']),_0x2bb7f1=bn(_0x399c0e);if(!_0x239ea5['_isDataLoaded'])return!0x1;if(!ut(_0x99a73c['@ai'],_0x2bb7f1['@ai']))return!0x1;for(const _0x4f05cd of Object['keys'](_0x2bb7f1))if(!ut(_0x99a73c[_0x4f05cd],_0x2bb7f1[_0x4f05cd]))return!0x1;return!0x0;}function bn(_0x4cd710){const _0x3b0f0a=Object['assign']({},_0x4cd710);return delete _0x3b0f0a['skipNestingCheck'],delete _0x3b0f0a['tablePasteChainId'],_0x3b0f0a;}function Cn(_0x56ad75){return _0x56ad75['split']('|')[0x0];}const kn=/* #__PURE__ -- @preserve */
26
+ _0x5e7ece();var Rn=class extends kn{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0x199c46,_0x236002,_0xf01158,_0x243cf2){super(),this['model']=_0x236002,this['view']=_0xf01158,this['commentThreadController']=_0x243cf2,this['_editor']=_0x199c46,this['_acceptCommand']=_0x199c46['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x199c46['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x408e4a,_0x4827f7)=>_0x408e4a||_0x4827f7),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x492dfb=>_0x492dfb&&this['_editor']['model']['canEditAt'](_0x236002['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x20db1e=>_0x20db1e&&this['_editor']['model']['canEditAt'](_0x236002['getRanges']())),this['_pendingAction']=null,_0xf01158['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xf01158,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xf01158,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xf01158,'change:isDirty',()=>{_0xf01158['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 _0x2a0c85=wt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2a0c85);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},Nn=class extends _0x11cf3b{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x243634,_0x76304b,_0x509e23,_0xc78dad){super(_0x243634),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1ebf89(_0x243634,wt(_0x243634,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x76304b['authoredAt']),this['bind']('authoredAt')['to'](_0x76304b),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',_0x76304b,'authoredAt',this,'descriptionParts',(_0x59a298,_0x55b608,_0x43adfd)=>{const _0x17a7e1=_0x43adfd['map'](_0x41d4c2=>At(_0x41d4c2['content']))['join']('.\x20')+'.',_0x353f07=_0x76304b['aiSource']&&'author'===_0xc78dad['showAISource']?_0xc78dad['aiAuthor']['name']:_0x76304b['author']['name'],_0xcdcab0=wt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x59a298-0x1,_0x353f07,_0x55b608?_0xc78dad['formatDateTime'](_0x55b608):'',new DOMParser()['parseFromString'](_0x22f8b0(_0x17a7e1),'text/html')['body']['textContent']]);return _0x76304b['aiSource']&&'pill'===_0xc78dad['showAISource']?_0xcdcab0+'\x20'+wt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0xcdcab0;}),this['focusables']=new _0x2f61b8(),this['focusTracker']=new _0x541fa6(),this['keystrokes']=new _0x12a3e0(),this['focusCycler']=new _0x23b8d0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4c2c14=>_0x4c2c14['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x76304b,this['_localUser']=_0x509e23,this['_config']=_0xc78dad,_0xc78dad['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),et(this,this['focusables']);}['focus'](){this['element']['focus']();}destroy(){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentViews(){const {CommentsListView:_0x21505d}=this['_config'];this['commentsListView']=new _0x21505d(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',_0x5ddae5=>_0x5ddae5+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2f3621,_0x2e4bbd)=>_0x2f3621||!!_0x2e4bbd);}_createCommentThreadInputView(){const {CommentThreadInputView:_0x1df2f1}=this['_config'],_0xaa9390=new _0x1df2f1(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5a4d6d=_0xaa9390['commentInputView'];return _0xaa9390['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5a4d6d,'value',(_0x4a62cc,_0x5d1974,_0x28cf44)=>!!_0x28cf44||_0x4a62cc&&!_0x5d1974),_0x5a4d6d['on']('submit',(_0x406c48,_0x39ddd3)=>{this['fire']('addComment',_0x39ddd3),_0x5a4d6d['editor']['setData']('');}),_0x5a4d6d['on']('cancel',()=>this['focus']()),_0x5a4d6d['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xaa9390;}},yn=class extends Nn{suggestionView;_descriptionElement;constructor(_0x3efffd,_0x4238b2,_0x3968a7,_0x331874){super(_0x3efffd,_0x4238b2,_0x3968a7,_0x331874),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x467157=>_0x467157&&_0x467157[0x0]?_0x467157[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x44ef94,_0x589fe6)=>{let _0x25f3a1='';for(const _0x50e88b of _0x44ef94)_0x25f3a1+='<p>'+At(_0x50e88b['content'],_0x50e88b['color'])+'</p>';return _0x589fe6?_0x25f3a1:st(_0x25f3a1,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x331874['SuggestionView'](_0x3efffd,_0x4238b2,{'formatDateTime':_0x331874['formatDateTime'],'showAISource':_0x331874['showAISource'],'aiAuthor':_0x331874['aiAuthor']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['acceptButton']['bind']('tooltip')['to'](this,'canAccept',_0x5bb132=>!!_0x5bb132||wt(_0x3efffd,'SUGGESTION_ACTIONS_DISABLED_TOOLTIP')),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['suggestionView']['discardButton']['bind']('tooltip')['to'](this,'canDiscard',_0xb5ef22=>!!_0xb5ef22||wt(_0x3efffd,'SUGGESTION_ACTIONS_DISABLED_TOOLTIP')),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 _0xf9e36d=this['bindTemplate'],_0x33fc31=[this['suggestionView']];return this['commentsListView']&&_0x33fc31['push'](this['commentsListView']),this['commentThreadInputView']&&_0x33fc31['push'](this['commentThreadInputView']),_0x33fc31['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0xf9e36d['if']('isActive','ck-suggestion-wrapper--active'),_0xf9e36d['to']('type',_0x1c5176=>'ck-suggestion-'+_0x1c5176),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':_0xf9e36d['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x33fc31};}['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));}},Sn=class extends _0x11cf3b{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0x536dea,_0x10cac7,_0x4854f6){super(_0x536dea),this['_model']=_0x10cac7,this['_config']=_0x4854f6,this['set']('description',''),this['bind']('authoredAt')['to'](_0x10cac7),this['acceptButton']=this['_createButton'](wt(_0x536dea,'Accept\x20suggestion'),_0x5378a4,'ck-suggestion--accept\x20ck-button_small','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](wt(_0x536dea,'Discard\x20suggestion'),_0x5cb59d,'ck-suggestion--discard\x20ck-button_small','discardSuggestion','sw');const _0x3e873f=!!_0x10cac7['aiSource']&&'author'===_0x4854f6['showAISource'],_0x1d40b8=_0x3e873f?this['_createAIUser'](_0x4854f6['aiAuthor']):_0x10cac7['author'],_0x288b86=_0x3e873f&&!_0x4854f6['aiAuthor']['avatar']?_0x4a5400:void 0x0;this['userView']=new _0x851ae0(_0x536dea,_0x1d40b8,this['getUserViewNotificationText'](),_0x288b86),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2f61b8([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x541fa6(),this['keystrokes']=new _0x12a3e0(),this['focusCycler']=new _0x23b8d0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x40d3d5=>_0x40d3d5['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x17d906=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x17d906['innerHTML']=_0x22f8b0(this['description']),this['on']('change:description',(_0x319e00,_0x1f5684,_0x4a4b63)=>{_0x17d906['innerHTML']=_0x22f8b0(_0x4a4b63);}),this['_setupKeyboardNavigation']();}getTemplate(){const _0x8aa3d6=this['bindTemplate'],_0x502916=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x8aa3d6['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x8aa3d6['to']('authoredAt',_0x3c16b4=>this['_config']['formatDateTime'](_0x3c16b4))}]}]},{'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']&&_0x502916['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x1a669a=new _0x5d0613(this['locale']);_0x1a669a['set']({'icon':_0x1e0692,'label':wt(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':wt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'size':'small','class':'ck-pill_ai'}),_0x502916['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x1a669a]});}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':_0x502916}]};}['focus'](){this['element']['focus']();}getUserViewNotificationText(){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?wt(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):wt(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}getExternalSuggestionNote(){return'importWord'===this['_model']['attributes']['@external']['source']?wt(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):wt(this['locale'],'EXTERNAL_SUGGESTION');}_createAIUser(_0x235ae9){return new _0x3d00b7({'id':'ck-ai-author','name':_0x235ae9['name'],'avatar':_0x235ae9['avatar'],'color':new _0x1d4191(0x0)});}_createButton(_0x11d38c,_0x1171fa,_0x53f466,_0x284be2,_0x2a0050){const _0x86ec4b=new _0xcbb2d1(this['locale']);return _0x86ec4b['set']({'label':_0x11d38c,'icon':_0x1171fa,'tooltip':!0x0,'tooltipPosition':_0x2a0050}),_0x86ec4b['extendTemplate']({'attributes':{'class':_0x53f466}}),_0x86ec4b['on']('execute',()=>{this['fire'](_0x284be2,this['_model']['id']);}),_0x86ec4b;}_setupKeyboardNavigation(){const _0x453662=this['element'];this['keystrokes']['listenTo'](_0x453662);for(const _0x2bef54 of this['focusables'])this['focusTracker']['add'](_0x2bef54['element']),this['keystrokes']['listenTo'](_0x2bef54['element']);this['keystrokes']['set']('enter',(_0x2df66e,_0x3845be)=>{_0x453662===_0x2df66e['target']&&(this['focusCycler']['focusFirst'](),_0x3845be());}),this['keystrokes']['set']('esc',(_0xe9fed2,_0x3fa771)=>{_0x453662!==_0xe9fed2['target']&&(this['focus'](),_0x3fa771());});}},Mn=class extends _0x183f88{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[ln,_0xd2b39a,_0x5197b4,_0x4b244e,_0x36e8c7];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x294c37){super(_0x294c37),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x167ace=this['editor']['config'];_0x167ace['define']('trackChanges.SuggestionThreadView',yn),_0x167ace['define']('trackChanges.SuggestionView',Sn),_0x167ace['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x167ace['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x4a2d22,_0x52ba2e){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x447565,_0x4e98bc]of this['_handleControllerBuffer']){const _0x24b329=this['_suggestionToController']['has'](_0x447565);_0x24b329||_0x4e98bc?_0x24b329&&_0x4e98bc&&this['_destroyController'](_0x447565):this['_initializeController'](_0x447565);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x36e8c7)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4a2d22,_0x52ba2e);}init(){const _0x1b6720=this['editor'],_0x370bd1=_0x1b6720['plugins']['get'](ln),_0x1a9795=_0x1b6720['plugins']['get'](_0x4b244e),_0x2e8caf=_0x1b6720['plugins']['get'](_0x36e8c7),_0x368227=_0x1b6720['plugins']['get'](_0x5197b4);this['_addUIComponentsToFactory'](),_0x2e8caf['addSourceCollector'](()=>{const _0x25da88=[];for(const [_0x4e2ecd,_0x935a56]of Array['from'](this['_suggestionToController'])){const _0x420361=_0x4e2ecd['getAllAdjacentSuggestions'](),_0xefc67e=[];for(const _0x145b4d of _0x420361){if(!_0x145b4d['isInContent'])continue;if(_0x145b4d['isMultiRange']){_0xefc67e['push'](..._0x145b4d['getRanges']());continue;}const _0x487b48=_0x145b4d['getFirstRange']();if(_0xefc67e['length']>0x0){const _0x1ca98a=_0xefc67e[0x0]['getJoined'](_0x487b48);if(_0x1ca98a){_0xefc67e[0x0]=_0x1ca98a;continue;}}_0xefc67e['push'](_0x487b48);}_0x25da88['push']([_0x935a56['view'],_0xefc67e]);}return _0x25da88;}),this['listenTo'](_0x370bd1,'suggestionLoaded',(_0x13fd06,_0x3a7aa7)=>{this['listenTo'](_0x3a7aa7,'change:previous',(_0x2919da,_0x24f679,_0x2fc70f,_0x3f2b7e)=>{_0x3a7aa7['isInContent']&&(null==_0x2fc70f?(this['_updateController'](_0x3f2b7e['head']),this['_handleSuggestionControllerDelayed'](_0x3a7aa7,!0x1)):(this['_updateController'](_0x2fc70f['head']),null==_0x3f2b7e&&this['_handleSuggestionControllerDelayed'](_0x3a7aa7,!0x0)));}),null!==_0x3a7aa7['previous']?this['_updateController'](_0x3a7aa7['head']):this['_handleSuggestionControllerDelayed'](_0x3a7aa7,!0x1);}),this['listenTo'](_0x370bd1,'suggestionUnloaded',(_0x412974,_0x33bc62,_0x22b9b3)=>{this['stopListening'](_0x33bc62,'change:previous'),this['_handleControllerBuffer']['delete'](_0x33bc62),this['_suggestionToController']['has'](_0x33bc62)&&this['_destroyController'](_0x33bc62),_0x22b9b3&&this['_updateController'](_0x22b9b3['head']);}),this['listenTo'](_0x370bd1,'suggestionChanged',(_0x123172,_0x5d792b)=>{this['_updateController'](_0x5d792b);}),this['listenTo'](_0x1a9795,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x368227,'addComment',(_0x4474fd,{threadId:_0x1f875b,isFromAdapter:_0x9bd39})=>{if(_0x9bd39||!_0x370bd1['hasSuggestion'](_0x1f875b))return;const _0x3abc42=_0x370bd1['getSuggestion'](_0x1f875b);this['_suggestionToController']['get'](_0x3abc42)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x491f28=[this['editor']];for(const _0x2d9132 of _0x491f28){let _0x5b33f1;for(const _0x435d3c in _0x2d9132){const _0x3a5701=_0x435d3c,_0x1c8c4c=_0x2d9132[_0x3a5701];if('trackChangesLicenseKeyValid'==_0x1c8c4c||'trackChangesLicenseKeyInvalid'==_0x1c8c4c||'trackChangesLicenseKeyExpired'==_0x1c8c4c||'trackChangesLicenseKeyDomainLimit'==_0x1c8c4c||'trackChangesLicenseKeyNotAllowed'==_0x1c8c4c||'trackChangesLicenseKeyEvaluationLimit'==_0x1c8c4c||'trackChangesLicenseKeyUsageLimit'==_0x1c8c4c){delete _0x2d9132[_0x3a5701],_0x5b33f1=_0x1c8c4c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5b33f1&&_0x2d9132['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5b33f1&&_0x2d9132['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5b33f1&&_0x2d9132['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5b33f1&&_0x2d9132['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5b33f1&&_0x2d9132['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5b33f1&&_0x2d9132['_showLicenseError']('usageLimit');}},0x3e8);}getAnnotationForSuggestion(_0x142d45){const _0x2cc9ff=this['_suggestionToController']['get'](_0x142d45);return _0x2cc9ff&&this['editor']['plugins']['get'](_0x4b244e)['getByInnerView'](_0x2cc9ff['view'])||null;}getSuggestionForAnnotation(_0x2b5b6d){const _0x306253=this['_viewToController']['get'](_0x2b5b6d['innerView']);return _0x306253?_0x306253['model']:null;}_refreshActiveMarkers(){const _0x44ff29=this['editor']['plugins']['get'](_0x4b244e),_0x408d37=this['editor']['plugins']['get'](ln),_0x4cfc90=Array['from'](_0x44ff29['activeAnnotations'],_0x586ee4=>_0x586ee4['innerView'])['filter'](_0x4908cb=>this['_viewToController']['has'](_0x4908cb)),_0x1e3850=[];for(const _0x1b402f of _0x4cfc90){const _0x376a32=this['_viewToController']['get'](_0x1b402f)['model']['getAllAdjacentSuggestions']();_0x1e3850['push'](..._0x376a32['reduce']((_0x404d8d,_0x13f151)=>[..._0x404d8d,..._0x13f151['getMarkerNames']()],[]));}_0x408d37['activeMarkers']=_0x1e3850;}_addUIComponentsToFactory(){const _0x48e7f6=this['editor'],_0xc6a666=_0x48e7f6['locale'],_0x24b9ac=wt(_0xc6a666,'Track\x20changes'),_0x3919a5=new _0x53037b([{'type':'switchbutton','model':new _0x2ace52({'withText':!0x0,'isToggleable':!0x0,'label':_0x24b9ac,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2ace52({'withText':!0x0,'label':wt(_0xc6a666,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2ace52({'withText':!0x0,'label':wt(_0xc6a666,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2ace52({'withText':!0x0,'label':wt(_0xc6a666,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2ace52({'withText':!0x0,'label':wt(_0xc6a666,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x48e7f6['plugins']['has']('TrackChangesPreview')&&_0x3919a5['addMany']([{'type':'separator'},{'type':'button','model':new _0x2ace52({'withText':!0x0,'label':wt(_0xc6a666,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2635e1 of _0x3919a5)if(On(_0x2635e1)){const _0x5e29f7=_0x48e7f6['commands']['get'](_0x2635e1['model']['commandName']);_0x2635e1['model']['bind']('isOn','isEnabled')['to'](_0x5e29f7,'value','isEnabled');}_0x48e7f6['ui']['componentFactory']['add']('trackChanges',_0x3c850b=>this['_createToolbarButton'](_0x3c850b,_0x3919a5,_0x24b9ac)),_0x48e7f6['ui']['componentFactory']['add']('menuBar:trackChanges',_0x130ab1=>this['_createMenuBarMenu'](_0x130ab1,_0x3919a5,_0x24b9ac));}_createToolbarButton(_0x1c16eb,_0x3fc686,_0x20c8ff){const _0x5f5709=_0x57750a(_0x1c16eb,_0x100bf8),_0x1f0ab4=this['editor']['commands']['get']('trackChanges');_0x5f5709['buttonView']['set']({'tooltip':_0x20c8ff,'label':_0x20c8ff,'icon':_0x104355}),_0x5f5709['buttonView']['bind']('isOn')['to'](_0x1f0ab4,'value'),_0x5f5709['buttonView']['on']('execute',()=>{_0x1f0ab4['execute'](),this['editor']['editing']['view']['focus']();}),_0x1c31eb(_0x5f5709,_0x3fc686,{'role':'menu'});const _0x515e9b=[];for(const _0x3f577c of _0x3fc686)On(_0x3f577c)&&_0x515e9b['push'](this['editor']['commands']['get'](_0x3f577c['model']['commandName']));const _0x1a71c7=_0x5f5709['buttonView'];return _0x1a71c7['actionView']['unbind']('isEnabled'),_0x1a71c7['arrowView']['unbind']('isEnabled'),_0x1a71c7['actionView']['bind']('isEnabled')['to'](_0x1f0ab4,'isEnabled'),_0x1a71c7['arrowView']['bind']('isEnabled')['toMany'](_0x515e9b,'isEnabled',(..._0x2abbf7)=>_0x2abbf7['some'](_0x4ce6c8=>_0x4ce6c8)),_0x5f5709['on']('execute',_0x37bb49=>{this['editor']['execute'](_0x37bb49['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5f5709;}_createMenuBarMenu(_0x24ac3d,_0xfaf333,_0x72412c){const _0x1b062d=new _0x3b404a(_0x24ac3d),_0x173a18=this['editor']['commands']['get']('trackChanges');_0x1b062d['buttonView']['set']({'label':_0x72412c,'icon':_0x104355});const _0x197404=new _0x4d394f(_0x24ac3d);for(const _0x10ba2b of _0xfaf333){if('separator'==_0x10ba2b['type']){_0x197404['items']['add'](new _0x518678(_0x24ac3d));continue;}const _0x25254f=new _0x417d65(_0x24ac3d,_0x1b062d),_0xc309db=new _0x1e5915(_0x24ac3d),_0x2a481a=_0x10ba2b['model'];_0xc309db['bind'](...Object['keys'](_0x2a481a))['to'](_0x2a481a),_0xc309db['delegate']('execute')['to'](_0x1b062d),_0xc309db['on']('execute',()=>{this['editor']['execute'](_0x2a481a['commandName']),this['editor']['editing']['view']['focus']();}),_0x25254f['children']['add'](_0xc309db),_0x197404['items']['add'](_0x25254f);}return _0x1b062d['bind']('isEnabled')['to'](_0x173a18,'isEnabled'),_0x1b062d['panelView']['children']['add'](_0x197404),_0x1b062d;}_initializeController(_0x23e55c){const _0x36f3c4=this['editor'],_0x2a6d3d=_0x36f3c4['config'],_0x1d2973=_0x36f3c4['plugins']['get'](_0x4b244e),_0xcb6188=_0x36f3c4['plugins']['get'](_0x5197b4),_0x3dbc35=_0x36f3c4['plugins']['get'](_0x36e8c7),_0x28bf0c=_0x36f3c4['plugins']['get'](_0xd2b39a)['me'],_0x431c05=_0x2a6d3d['get']('trackChanges')['SuggestionThreadView'],_0x35e500=_0x2a6d3d['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1a48ae,CommentThreadInputView:_0x8b7dae}=_0x36f3c4['plugins']['get']('CommentsUI');let _0x136a04,_0xbd2ba1,_0x40068b;this['_annotationViews']['has'](_0x23e55c['id'])?(_0xbd2ba1=this['_annotationViews']['get'](_0x23e55c['id']),_0x136a04=_0xbd2ba1['mainView']):(_0x136a04=new _0x431c05(_0x36f3c4['locale'],_0x23e55c,_0x28bf0c,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2a6d3d['get']('comments.editorConfig'),'licenseKey':_0x2a6d3d['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2a6d3d['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2a6d3d['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2a6d3d['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xd57683(_0x2a6d3d['get']('locale'),_0x36f3c4['locale']),'CommentView':_0x2a6d3d['get']('comments')['CommentView'],'CommentsListView':_0x1a48ae,'CommentThreadInputView':_0x8b7dae,'SuggestionView':_0x35e500,'showAISource':_0x2a6d3d['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x2a6d3d['get']('trackChanges.aiAuthor'),'name':_0x2a6d3d['get']('trackChanges.aiAuthor')?.['name']||wt(_0x36f3c4['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x136a04['suggestionView']['acceptButton']['on']('execute',()=>{_0x36f3c4['editing']['view']['focus']();}),_0x136a04['suggestionView']['discardButton']['on']('execute',()=>{_0x36f3c4['editing']['view']['focus']();}),_0xbd2ba1=_0x1d2973['createAnnotationView'](this['editor']['locale'],_0x136a04),_0xbd2ba1['bind']('isDirty')['to'](_0x136a04,'isDirty'),_0xbd2ba1['bind']('length')['to'](_0x136a04),_0xbd2ba1['bind']('type')['to'](_0x136a04,'type',_0x3f2e3b=>'suggestion-'+_0x3f2e3b),_0x136a04['on']('escape',()=>{_0x40068b['fire']('escape');}),this['_annotationViews']['set'](_0x23e55c['id'],_0xbd2ba1));const _0x42a94b=_0xcb6188['createCommentThreadController'](_0x23e55c['commentThread'],_0x136a04),_0x99fa12=new Rn(_0x36f3c4,_0x23e55c,_0x136a04,_0x42a94b),_0x510ce6=_0x23e55c['getAllAdjacentSuggestions']()['filter'](_0x13c43e=>_0x13c43e['isInContent']);_0x136a04['descriptionParts']=_0x36f3c4['plugins']['get'](ln)['descriptionFactory']['getDescriptions'](_0x510ce6),this['_suggestionToController']['set'](_0x23e55c,_0x99fa12),this['_viewToController']['set'](_0x136a04,_0x99fa12);const _0x25bc3e=()=>{const _0x5d3974=[],_0x49b941=_0x23e55c['getAllAdjacentSuggestions']()['filter'](_0xe1ee15=>_0xe1ee15['isInContent']);for(const _0xfe46a6 of _0x49b941)_0x5d3974['push'](..._0xfe46a6['getMarkers']());return _0x486d5(_0x36f3c4['editing'],_0x5d3974);};_0x40068b=_0x1d2973['createAnnotation']({'view':_0xbd2ba1,'target':_0x25bc3e,'type':()=>'suggestion-'+_0x99fa12['view']['type'],'isVisible':!!_0x25bc3e()}),_0xcb6188['_bindAnnotationToEditors'](_0x136a04,_0x40068b),_0x1d2973['add'](_0x40068b),_0x3dbc35['registerAnnotation'](_0x40068b);}_destroyController(_0x4e9b51){const _0x4eb590=this['editor']['plugins']['get'](_0x5197b4),_0x488109=this['editor']['plugins']['get'](_0x4b244e),_0x47ff4a=this['_suggestionToController']['get'](_0x4e9b51),_0x45aa53=_0x47ff4a['view'],_0x2a8136=_0x488109['getByInnerView'](_0x45aa53);_0x4eb590['_unbindEditors'](_0x45aa53),_0x2a8136&&_0x488109['remove'](_0x2a8136),this['_suggestionToController']['delete'](_0x4e9b51),this['_viewToController']['delete'](_0x45aa53),_0x47ff4a['destroy']();}_updateController(_0x4d6aea){if(!_0x4d6aea['isInContent']||!this['_suggestionToController']['has'](_0x4d6aea))return;const _0x16acf4=this['editor']['plugins']['get'](ln),_0x2cd6a7=this['_suggestionToController']['get'](_0x4d6aea),_0x50a3e2=_0x4d6aea['getAllAdjacentSuggestions']();_0x2cd6a7['view']['descriptionParts']=_0x16acf4['descriptionFactory']['getDescriptions'](_0x50a3e2);}destroy(){for(const _0x2d16f1 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2d16f1);for(const _0x7c084a of this['_annotationViews']['values']())_0x7c084a['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function On(_0x111180){return'model'in _0x111180;}var wn=class extends _0x183f88{static get requires(){return[ln,Mn,_0x2c0c25];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0x2b0fcd){this['editor']['plugins']['get'](ln)['adapter']=_0x2b0fcd;}get adapter(){return this['editor']['plugins']['get'](ln)['adapter'];}addSuggestion(_0x25bdca){return this['editor']['plugins']['get'](ln)['addSuggestionData'](_0x25bdca);}getSuggestions({skipNotAttached:_0x28953b=!0x1,toJSON:_0x6334b4=!0x1}={}){return this['editor']['plugins']['get'](ln)['getSuggestions']({'skipNotAttached':_0x28953b,'toJSON':_0x6334b4});}getSuggestion(_0xdb5a66){return this['editor']['plugins']['get'](ln)['getSuggestion'](_0xdb5a66);}};const Bn=['Pagination'];var Fn=class extends _0x183f88{static get requires(){return[ln];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x3d36d2=this['editor'];if(_0x3d36d2['config']['define']('trackChangesData.editorCreator',_0x45a01a=>{const _0x469a7c=_0x3d36d2['model']['document']['getRootNames']()['reduce']((_0x373edb,_0x168ef3)=>(_0x373edb[_0x168ef3]='',_0x373edb),{});return _0x3d36d2['constructor']['create'](_0x469a7c,_0x45a01a);}),'function'!=typeof _0x3d36d2['config']['get']('trackChangesData')['editorCreator'])throw new _0x4a2c66('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0x5ae6de){return Un(this['editor'],!0x0,_0x5ae6de);}getDataWithDiscardedSuggestions(_0x3ffa54){return Un(this['editor'],!0x1,_0x3ffa54);}},vn=class extends _0x183f88{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1f4a3b){super(_0x1f4a3b),this['result']='end',_0x1f4a3b['editing']['view']['_overlayModeHint']='auto',_0x1f4a3b['_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 Dn(_0x3194a7){return void 0x0!==_0x3194a7['getRootsAttributes'];}async function Un(_0x4b006c,_0x3fed92,_0x5c34c5){const _0x22abf8=tt(_0x4b006c,Bn);if(_0x22abf8['plugins']['push'](ln,vn),Dn(_0x4b006c)){_0x22abf8['roots']=Object['create'](null);for(const _0x459d12 of _0x4b006c['model']['document']['getRootNames']())_0x22abf8['roots'][_0x459d12]={'modelAttributes':_0x4b006c['getRootAttributes'](_0x459d12)};}const _0x4183e3=document['createDocumentFragment'](),_0x1d09db=_0x4b006c['config']['get']('trackChangesData')['editorCreator'],_0x29a12e=await _0x1d09db(_0x22abf8,()=>function(_0x389313){const _0x370741=document['createElement']('div');return _0x389313['appendChild'](_0x370741),_0x370741;}(_0x4183e3));!function(_0x546659,_0x1bb21f){const _0x517599=_0x546659['model']['document']['getRootNames']()['reduce']((_0x3477b4,_0x31ef4)=>(_0x3477b4[_0x31ef4]=_0x546659['data']['get']({'rootName':_0x31ef4}),_0x3477b4),{}),_0x2bf2d9=_0x546659['plugins']['get']('Users')['users']['map'](_0x19fda1=>({'id':_0x19fda1['id'],'name':_0x19fda1['name']})),_0x550780=_0x546659['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5be24c=_0x546659['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xb32f91=_0x1bb21f['plugins']['get']('Users'),_0x423963=_0x1bb21f['plugins']['get']('TrackChangesEditing'),_0x519b45=_0x1bb21f['plugins']['get']('CommentsRepository');for(const _0xbe4776 of _0x519b45['getCommentThreads']())_0xbe4776['remove']();for(const _0x2d8aeb of _0x2bf2d9)_0xb32f91['getUser'](_0x2d8aeb['id'])||_0xb32f91['addUser'](_0x2d8aeb);_0xb32f91['me']||_0xb32f91['useAnonymousUser']();for(const _0x48cd31 of _0x5be24c)_0x519b45['addCommentThread'](_0x48cd31);for(const _0x2e88c2 of _0x550780)_0x423963['addSuggestionData'](_0x2e88c2);_0x1bb21f['data']['set'](_0x517599);}(_0x4b006c,_0x29a12e),_0x29a12e['execute'](_0x3fed92?'acceptAllSuggestions':'discardAllSuggestions');const _0x3ebad3=Dn(_0x29a12e)?_0x29a12e['getFullData'](_0x5c34c5):_0x29a12e['data']['get'](_0x5c34c5);return await _0x29a12e['destroy'](),_0x3ebad3;}var Pn=class extends _0x11cf3b{options;constructor(_0x884d50,_0x31529c){super(_0x884d50),this['options']=_0x31529c,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(_0x322c4d,_0x26018f){if(!this['element'])return;const _0x296b0b=[];for(const [_0x106795,_0x502dd3]of _0x322c4d){const _0x29a078=document['createElement']('div');_0x29a078['setAttribute']('data-ck-root-name',_0x106795),_0x29a078['className']=_0x502dd3['classes']+'\x20ck-track-changes-preview__root-container',_0x29a078['innerHTML']=_0x22f8b0(_0x502dd3['content']),_0x296b0b['push'](_0x29a078);}_0x26018f(this['element'],_0x296b0b),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},xn=class extends _0x3f1090{constructor(_0xc5a565){super(_0xc5a565),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0x2e04bd=this['editor'],_0x17fa77=_0x2e04bd['locale'],_0x5a3977=_0x2e04bd['plugins']['get']('Dialog');let _0x9c8356;const _0x34b071=function(_0x5b1e9b){const _0x18de17={};if('editables'in _0x5b1e9b['ui']['view']){for(const [_0x51336a,_0x4d8010]of Object['entries'](_0x5b1e9b['ui']['view']['editables']))_0x18de17[_0x51336a]=_0x4d8010['element'];}else _0x18de17[_0x5b1e9b['model']['document']['getRootNames']()[0x0]]=_0x5b1e9b['ui']['view']['editable']['element'];return _0x18de17;}(_0x2e04bd),_0x1c4233=function(_0x12b38e){let _0x39138f=0x0;for(const _0x1f167d of Object['values'](_0x12b38e))_0x39138f=Math['max'](_0x39138f,_0x1f167d['getBoundingClientRect']()['width']);let _0x73711=0x0;for(const _0x2fe1f5 of Object['values'](_0x12b38e))_0x73711+=_0x2fe1f5['getBoundingClientRect']()['height'];const _0x173575=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x39138f,'height':Math['min'](_0x73711,_0x173575)};}(_0x34b071);_0x5a3977['show']({'id':'finalContentPreview','title':wt(_0x17fa77,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Pn(_0x17fa77,{'dialogRects':_0x1c4233}),'onHide':()=>{_0x9c8356['destroy']();},'onShow':()=>{_0x2e04bd['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4f5999=>{const _0x47154a=this['_standarizeRootsData'](_0x4f5999,_0x2e04bd,_0x34b071);_0x5a3977['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x47154a,_0x2e04bd['config']['get']('trackChanges.preview.renderFunction'));}),_0x9c8356=new _0x64505f(_0x17fa77,[_0x5a3977['view']]),_0x9c8356['attachToDom'](_0x2e04bd['ui']['view']['body']['mountTarget']),_0x9c8356['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x2e04bd['once']('destroy',()=>{_0x9c8356['destroy']();});const _0x27eca1=_0x5a3977['view']['headerView']['class'];_0x5a3977['view']['headerView']['class']=_0x27eca1?_0x27eca1+'\x20ck-reset_all':'ck-reset_all',_0x5a3977['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5a3977['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x18e0ca=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x372b50=_0x18e0ca['previewMode'],_0xd85e47={};if('$labels'===_0x372b50){for(const _0x346da3 of _0x18e0ca['getMergeFieldsIds']())_0xd85e47[_0x346da3]=_0x18e0ca['getLabel'](_0x346da3)||_0x346da3;}else{const _0x3c2de1='$defaultValues'===_0x372b50?_0x18e0ca['getDefaultValues']():_0x18e0ca['getDataSetValues'](_0x372b50,!0x0);for(const _0x43f7f9 of Object['entries'](_0x3c2de1)){const [_0x49b687,_0x524365]=_0x43f7f9;_0xd85e47[_0x49b687]=null!==_0x524365?_0x524365:_0x18e0ca['getLabel'](_0x49b687)||_0x49b687;}}return{'mergeFieldsData':_0xd85e47};}_standarizeRootsData(_0x2e1a5c,_0x308b5c,_0x53d807){let _0x5b3f50;_0x5b3f50='string'==typeof _0x2e1a5c?{[_0x308b5c['model']['document']['getRootNames']()[0x0]]:_0x2e1a5c}:_0x2e1a5c;const _0x24c092=this['_fixMediaEmbeds'](_0x5b3f50,_0x308b5c);return function(_0x423976,_0x2bd26c){for(const [_0x4b9285,_0x382d28]of _0x423976)_0x382d28['classes']=_0x2bd26c[_0x4b9285]['classList']['value']['replace']('ck-focused','');return _0x423976;}(this['_sortRoots'](_0x308b5c)['reduce']((_0x361076,_0x43cb5c)=>(_0x361076['push']([_0x43cb5c,{'content':_0x24c092[_0x43cb5c],'classes':''}]),_0x361076),[]),_0x53d807);}['_fixMediaEmbeds'](_0x14e4df,_0x288569){if(!_0x288569['plugins']['has']('MediaEmbedEditing'))return _0x14e4df;const _0x133489=_0x288569['plugins']['get']('MediaEmbedEditing');for(const [_0x20eaa1,_0x269af9]of Object['entries'](_0x14e4df)){const _0x5e03bd=document['createElement']('div');_0x5e03bd['innerHTML']=_0x22f8b0(_0x269af9),_0x5e03bd['querySelectorAll']('figure.media')['forEach'](_0x466dde=>{const _0x287cc=_0x466dde['querySelector']('oembed');if(_0x287cc){const _0xd3aea5=_0x287cc['getAttribute']('url');if(_0xd3aea5){const _0x3b6b95=_0x133489['registry']['getMediaViewElement'](new ct(_0x288569['editing']['view']['document']),_0xd3aea5,{'elementName':'','renderForEditingView':!0x0}),_0x10e241=document['createElement']('div');_0x10e241['classList']['add']('ck-media__wrapper'),_0x3b6b95['render'](_0x10e241,_0x288569['editing']['view']['domConverter']),_0x287cc['replaceWith'](_0x10e241);}}}),_0x14e4df[_0x20eaa1]=_0x5e03bd['innerHTML'];}return _0x14e4df;}_sortRoots(_0x598bce){if(!function(_0x27366f){return void 0x0!==_0x27366f['getRootsAttributes'];}(_0x598bce))return _0x598bce['model']['document']['getRootNames']();const _0x161efa=[],_0x157f9a=new Map();for(const _0x17a9bf of _0x598bce['model']['document']['getRootNames']()){const _0x3d3540=_0x598bce['editing']['view']['getDomRoot'](_0x17a9bf)['getClientRects']()['item'](0x0);_0x161efa['push'](_0x17a9bf),_0x157f9a['set'](_0x17a9bf,_0x3d3540);}return _0x161efa['sort']((_0x55cbfd,_0xe2c211)=>{const _0x9a2223=_0x157f9a['get'](_0x55cbfd),_0x5533d2=_0x157f9a['get'](_0xe2c211);return _0x9a2223['y']-_0x5533d2['y']||_0x9a2223['x']-_0x5533d2['x'];}),_0x161efa;}},Gn=class extends _0x183f88{static get requires(){return[Fn,_0x17b624];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2e9910){super(_0x2e9910),_0x2e9910['commands']['add']('previewFinalContent',new xn(this['editor'])),_0x2e9910['config']['define']('trackChanges.preview.renderFunction',(_0x2ae031,_0xc948a4)=>{for(const _0x2ea31e of _0xc948a4)_0x2ae031['appendChild'](_0x2ea31e);});}};export{Lt as AcceptSuggestionCommand,Nn as BaseSuggestionThreadView,It as DiscardSuggestionCommand,yt as ExecuteOnAllSuggestionsCommand,St as ExecuteOnSelectedSuggestionsCommand,xn as PreviewFinalContentCommand,Ot as Suggestion,Bt as SuggestionDescriptionFactory,yn as SuggestionThreadView,Sn as SuggestionView,wn as TrackChanges,pt as TrackChangesCommand,Fn as TrackChangesData,vn as TrackChangesDataGetter,ln as TrackChangesEditing,Gn as TrackChangesPreview,Mn as TrackChangesUI};