@ckeditor/ckeditor5-track-changes 45.1.0-alpha.4 → 45.1.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.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x1b6f03,Plugin as _0x5c1181,PendingActions as _0x2f18b2}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x27ba3f,ObservableMixin as _0x52bea3,uid as _0x1b595f,priorities as _0x4b8f33,insertToPriorityArray as _0x16f9a1,toArray as _0x4f6f0d,logWarning as _0x7309e5,getEnvKeystrokeText as _0x2d0d08,FocusTracker as _0x4b0c7e,KeystrokeHandler as _0x1a0162,Collection as _0x1fedff}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x480e97,IconCancel as _0x101f8f,IconTrackChanges as _0xaf24d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x275dee,View as _0x1a544d,ViewCollection as _0x4468c6,FocusCycler as _0x28c7b7,ViewModel as _0x1b419b,createDropdown as _0x3c0e80,SplitButtonView as _0x53e4cf,addListToDropdown as _0x45bee5,MenuBarMenuView as _0x52108a,MenuBarMenuListView as _0x3b3307,ListSeparatorView as _0x1dd12e,MenuBarMenuListItemView as _0x2891fd,MenuBarMenuListItemButtonView as _0x5ec854,BodyCollection as _0x4f698a,Dialog as _0x236eb9}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x4a4901,hashObject as _0x14dbbf,surroundingMarkersDetector as _0xd99fe4,FOCUS_ANNOTATION_KEYSTROKE as _0x3d13f0,AriaDescriptionView as _0x50f820,setupThreadKeyboardNavigation as _0x5058bd,trimHtml as ti,UserView as _0x595140,LateFocusButtonView as _0x5edada,getDateTimeFormatter as _0x4af0d7,getAllMarkersDomElementsSorted as _0x1e60ff,sanitizeEditorConfig as _0x420930}from'ckeditor5-collaboration/dist/index.js';import{Element as _0xb007b4,LiveRange as _0x597cd7,LivePosition as _0xcc0df3,DowncastWriter as _0x20bc2a}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3adf2c,toWidget as _0x586b6a}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x59f217,set as _0x5464db,isEqual as _0x16f315,unset as _0x4b3ed5,omit as Ft}from'es-toolkit/compat';import{Delete as _0x29e068,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x31970b}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x47d534}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x1b6f03{['_enabledCommands'];constructor(_0x2f32c8,_0x42c3f5){super(_0x2f32c8),this['_enabledCommands']=_0x42c3f5,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 _0x416cb7 of this['editor']['commands']['commands']())_0x416cb7['affectsData']&&!this['_enabledCommands']['has'](_0x416cb7)&&_0x416cb7['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2ad589 of this['editor']['commands']['commands']())_0x2ad589['affectsData']&&!this['_enabledCommands']['has'](_0x2ad589)&&_0x2ad589['clearForceDisabled']('TrackChangesCommand');}}class x extends _0x1b6f03{['_suggestions'];constructor(_0x44a5d9,_0x166658){super(_0x44a5d9),this['_suggestions']=_0x166658,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x376233){const _0x3c45ac=this['_suggestions']['get'](_0x376233);if(!_0x3c45ac)throw new _0x27ba3f('track-changes-accept-suggestion-not-found',this);const _0x456f4e=_0x3c45ac['getRanges']();this['editor']['model']['canEditAt'](_0x456f4e)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3c45ac);}}class O extends _0x1b6f03{['_suggestions'];constructor(_0x364164,_0x51ac90){super(_0x364164),this['_suggestions']=_0x51ac90,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x228e07){const _0x420e86=this['_suggestions']['get'](_0x228e07);if(!_0x420e86)throw new _0x27ba3f('track-changes-discard-suggestion-not-found',this);const _0x4ce1c9=_0x420e86['getRanges']();this['editor']['model']['canEditAt'](_0x4ce1c9)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x420e86);}}function ls(_0x3911ff,_0x474501){let _0x304ebc='';return _0x304ebc+=_0x3911ff['split']('*')['map']((_0x199853,_0x36bd58)=>_0x36bd58%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x199853)+'</span>':nn(_0x199853))['join'](''),_0x474501&&(_0x304ebc+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x474501['value']+'\x22\x20title=\x22'+_0x474501['title']+'\x22></span>'),_0x304ebc;}function nn(_0x375796){const _0xb1f555=document['createElement']('span');return _0xb1f555['innerText']=_0x375796,_0xb1f555['innerHTML'];}function ts(_0x2f5eac){return _0x2f5eac['sort']((_0x593770,_0x3f9bbb)=>'deletion'==_0x593770['type']&&'deletion'!=_0x3f9bbb['type']?-0x1:'deletion'!=_0x593770['type']&&'deletion'==_0x3f9bbb['type']?0x1:0x0);}function to(_0x3a1937,_0x563812){let _0x5dba3e,_0x406d58=0x0;const _0x4ed200=[],_0x200da7=_0x563812['schema'];for(;_0x406d58<_0x3a1937['length'];){const _0x52bb52=_0x3a1937[_0x406d58],_0x54d0ee=_0x3a1937[_0x406d58+0x1];_0x5dba3e||(_0x5dba3e=_0x563812['createPositionBefore'](_0x52bb52)),on(_0x563812,_0x52bb52,_0x54d0ee)||(_0x4ed200['push'](_0x563812['createRange'](_0x5dba3e,_0x200da7['isObject'](_0x52bb52)?_0x563812['createPositionAfter'](_0x52bb52):_0x563812['createPositionAt'](_0x52bb52,'end'))),_0x5dba3e=null),_0x406d58++;}return _0x4ed200;}function on(_0x27de8e,_0x39dbbe,_0x1f816b){if(!_0x1f816b)return!0x1;const _0x322d01=_0x27de8e['createPositionAfter'](_0x39dbbe),_0x350e53=_0x27de8e['createPositionBefore'](_0x1f816b);return _0x322d01['isTouching'](_0x350e53);}function rs(_0x4c1b5d,_0x30a9cc,_0x41ef20){for(;_0x41ef20['length'];){const _0x1176d6=_0x41ef20['splice'](0x0,0x64);_0x4c1b5d['change'](()=>{for(const _0x45d352 of _0x1176d6)_0x45d352['isInContent']&&_0x30a9cc['execute'](_0x45d352['id']);});}}class R extends _0x1b6f03{['_command'];['_suggestions'];constructor(_0x13915b,_0x38732f,_0x5db001){super(_0x13915b),this['_command']=_0x38732f,this['_suggestions']=_0x5db001,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x41b5d1=Array['from'](this['_suggestions']['values']())['some'](_0x486d72=>_0x486d72['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x41b5d1;}['execute'](){const _0x5c87fd=ts(Array['from'](this['_suggestions']['values']()));for(const _0x4593df of _0x5c87fd){const _0x10426e=_0x4593df['getRanges']();if(!this['editor']['model']['canEditAt'](_0x10426e))return;}rs(this['editor']['model'],this['_command'],_0x5c87fd);}}class E extends _0x1b6f03{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x53e1cc,_0x5617a2,_0x55c567){super(_0x53e1cc),this['_command']=_0x5617a2,this['_suggestions']=_0x55c567,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x419f3=this['editor']['model']['document']['selection'],_0x59fce9=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4eaa1a,_0x5a147a){const _0x236867=Array['from'](_0x4eaa1a['getRanges']()),_0x404469=new Set();for(const _0x45ae44 of _0x5a147a)if(_0x45ae44['isInContent']){for(const _0x554fc8 of _0x236867)for(const _0x1402f8 of _0x45ae44['getRanges']())(_0x554fc8['isIntersecting'](_0x1402f8)||_0x4eaa1a['isCollapsed']&&!_0x45ae44['isMultiRange']&&_0x45ae44['next']&&_0x1402f8['end']['isTouching'](_0x554fc8['start']))&&_0x404469['add'](_0x45ae44);}return _0x404469;}(_0x419f3,_0x59fce9),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x100ad5=ts(Array['from'](this['_selectedSuggestions']));for(const _0x303492 of _0x100ad5){const _0x66f517=_0x303492['getRanges']();if(!this['editor']['model']['canEditAt'](_0x66f517))return;}rs(this['editor']['model'],this['_command'],_0x100ad5);}}class o extends/* #__PURE__ -- @preserve */
24
- _0x52bea3(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x12c665,_0x4fd756){super(),this['id']=_0x4fd756['id'],this['type']=_0x4fd756['type'],this['subType']=_0x4fd756['subType']||null,this['author']=_0x4fd756['author'],this['creator']=_0x4fd756['creator']||_0x4fd756['author'],this['isExternal']=Boolean(_0x4fd756['attributes']&&_0x4fd756['attributes']['@external']),this['data']=null,this['_model']=_0x12c665,this['_onAccept']=_0x4fd756['onAccept'],this['_onDiscard']=_0x4fd756['onDiscard'],this['_onAttributesChange']=_0x4fd756['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4fd756['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x32cf53=this;for(;_0x32cf53['previous'];)_0x32cf53=_0x32cf53['previous'];return _0x32cf53;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x5511c0){this['_markerNames']['add'](_0x5511c0);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x20bd6a=>this['_model']['markers']['get'](_0x20bd6a))['filter'](_0xd3a00d=>_0xd3a00d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x69ba53=>{for(const _0x182f88 of this['getMarkers']())_0x69ba53['removeMarker'](_0x182f88);}),this['_markerNames']['clear']();}['removeMarker'](_0x4c1608){this['_model']['change'](_0x56444b=>{_0x56444b['removeMarker'](_0x4c1608);}),this['_markerNames']['delete'](_0x4c1608);}['addRange'](_0x103748){const _0x24af20='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x24af20),this['_model']['change'](_0x4440fe=>{_0x4440fe['addMarker'](_0x24af20,{'range':_0x103748,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x27a0c3){for(const _0x2263a2 of this['getRanges']())if(_0x2263a2['isIntersecting'](_0x27a0c3))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x36f6fc=>_0x36f6fc['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3b0483,_0x278b76)=>[..._0x3b0483,..._0x278b76['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x142e6e=this['getRanges']();if(0x1!=_0x142e6e['length'])return null;const _0x52cefe=_0x142e6e[0x0],_0x460393=_0x52cefe['start']['nodeAfter'],_0x1116bf=_0x52cefe['end']['nodeBefore'];return _0x460393 instanceof _0xb007b4?_0x460393!=_0x1116bf?null:_0x460393: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 _0x48feb9=[];let _0x49b397=this['head'];for(;_0x49b397;)_0x48feb9['push'](_0x49b397),_0x49b397=_0x49b397['next'];return _0x48feb9;}['setAttribute'](_0x8e3aa8,_0x31dfab){const _0x2127fc=_0x59f217(this['attributes']);_0x5464db(_0x2127fc,_0x8e3aa8,_0x31dfab),_0x16f315(_0x2127fc,this['attributes'])||(this['attributes']=_0x2127fc,this['_onAttributesChange'](_0x2127fc));}['removeAttribute'](_0x9812b8){const _0x26651e=_0x59f217(this['attributes']);_0x4b3ed5(_0x26651e,_0x9812b8),_0x16f315(_0x26651e,this['attributes'])||(this['attributes']=_0x26651e,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 _0x1b595f()['substr'](0x1,0x5);}}function c(_0x19c801,_0x51c375,_0x4b4713){const _0x4bd6fb=_0x19c801['t'],t=_0x19c801['t'];switch(_0x51c375){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',_0x4b4713);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4b4713);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4b4713);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4b4713);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4b4713);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',_0x4b4713);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4b4713);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',_0x4b4713);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4b4713);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4b4713);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4b4713);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4b4713);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4b4713);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4b4713);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4b4713);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4b4713);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4b4713);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4b4713);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4b4713);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4b4713);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4b4713);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4b4713);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4b4713);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4b4713);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x4b4713);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'},_0x4b4713);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x4b4713);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x4b4713);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4b4713);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4b4713);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4b4713);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4b4713);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4b4713);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x4b4713);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4b4713);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4b4713);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4b4713);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4b4713);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x4b4713);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4b4713);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'},_0x4b4713);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x4b4713);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4b4713);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'},_0x4b4713);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4b4713);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'},_0x4b4713);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4b4713);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4b4713);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'},_0x4b4713);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4b4713);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return _0x4bd6fb({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4b4713);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4bd6fb({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4b4713);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4b4713);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'},_0x4b4713);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'},_0x4b4713);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'},_0x4b4713);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x51c375;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x91c089,_0x13a290){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x91c089,this['_locale']=_0x13a290;}['getDescriptions'](_0x54cb1a){const _0x411511=[],_0x37e157=new Set(),_0x1a4518=new Set();for(let _0x1c4c8b=0x0;_0x1c4c8b<_0x54cb1a['length'];_0x1c4c8b++){const _0x293890=_0x54cb1a[_0x1c4c8b];if(!_0x293890['isInContent'])continue;const _0x2f20ae=this['_handleCustomCallbackDescription'](_0x293890);if(_0x2f20ae){if(null!=_0x293890['subType']){if(_0x37e157['has'](_0x293890['subType']))continue;_0x37e157['add'](_0x293890['subType']);}_0x411511['push'](_0x2f20ae);}else{if('attribute'!=_0x293890['type'])'insertion'!=_0x293890['type']&&'deletion'!=_0x293890['type']||this['_handleInsertRemoveSuggestionDescription'](_0x411511,_0x293890,_0x54cb1a[_0x1c4c8b+0x1]);else{const _0x4e794d=_0x293890['data']['key'];if(_0x1a4518['has'](_0x4e794d))continue;_0x1a4518['add'](_0x293890['data']['key']),_0x4e794d==u?this['_handleRenameSuggestionDescription'](_0x411511,_0x293890):this['_handleAttributeSuggestionDescription'](_0x411511,_0x293890);}}}return this['_resolveDescriptionItems'](_0x411511);}['registerDescriptionCallback'](_0x6b78c6){this['_customCallbacks']['push'](_0x6b78c6);}['registerElementLabel'](_0x329882,_0x591e22,_0x1af609=_0x4b8f33['normal']){'function'==typeof _0x329882?_0x16f9a1(this['_itemLabelsCallbacks'],{'matchingCallback':_0x329882,'label':_0x591e22,'priority':_0x1af609}):this['_itemLabels']['set'](_0x329882,_0x591e22);}['registerAttributeLabel'](_0x2e0e14,_0x118494){this['_attributeLabels']['set'](_0x2e0e14,_0x118494);}['getItemLabel'](_0x15ad34,_0x370868=0x1){let _0x32b114;for(const _0x5cabc6 of this['_itemLabelsCallbacks'])if(_0x5cabc6['matchingCallback'](_0x15ad34)){_0x32b114=_0x5cabc6['label'];break;}return _0x32b114||(_0x32b114=this['_itemLabels']['get'](_0x15ad34['name'])),_0x32b114?_0x32b114(_0x370868):0x1!==_0x370868?_0x370868+'\x20'+_0x15ad34['name']+'s':''+_0x15ad34['name'];}['_addDescriptionItems'](_0x14736d,_0x3b70b9){const _0x33ddc0=_0x3b70b9['getFirstRange']()['getWalker'](),_0x58f17c='insertion'==_0x3b70b9['type']?'add':'remove';for(const _0x152a30 of _0x33ddc0){const _0xb85c07=_0x152a30['item'],_0x3b2a37=_0x14736d[_0x14736d['length']-0x1];if(_0xb85c07['is']('$textProxy'))_0x3b2a37&&_0x3b2a37['type']['indexOf']('Container')>-0x1&&_0x14736d['pop'](),_0x3b2a37&&'text'==_0x3b2a37['type']?_0x3b2a37[_0x58f17c]+=_0xb85c07['data']:_0x14736d['push']({'type':'text','add':'add'==_0x58f17c?_0xb85c07['data']:'','remove':'remove'==_0x58f17c?_0xb85c07['data']:''});else{if(this['_schema']['isObject'](_0xb85c07)){const _0x3debc7=_0xb85c07;if(_0x3b2a37&&_0x3b2a37['type']['indexOf']('Container')>-0x1&&_0x14736d['pop'](),'elementEnd'==_0x152a30['type'])continue;_0x3b2a37&&_0x3b2a37['type']==_0x58f17c+'Object'&&_0x3b2a37['element']['name']==_0x3debc7['name']?_0x3b2a37['quantity']++:_0x14736d['push']({'type':_0x58f17c+'Object','element':_0x3debc7,'quantity':0x1}),_0x33ddc0['skip'](_0x1df014=>!('elementEnd'==_0x1df014['type']&&_0x1df014['item']==_0xb85c07));}else{if(this['_schema']['checkChild'](_0xb85c07,'$text')||_0xb85c07['is']('element','softBreak')){const _0x582c8a=_0xb85c07;if('add'==_0x58f17c&&'elementStart'==_0x152a30['type']||'remove'==_0x58f17c&&'elementEnd'==_0x152a30['type'])continue;if(_0x3b2a37&&-0x1==_0x3b2a37['type']['indexOf']('Container')){'text'==_0x3b2a37['type']&&(_0x3b2a37[_0x58f17c]+='\x0a');continue;}let _0x4f1a1d;if(_0x4f1a1d='add'==_0x58f17c?_0x582c8a['nextSibling']&&!this['_schema']['isObject'](_0x582c8a['nextSibling'])?_0x582c8a['nextSibling']:null:_0x582c8a['previousSibling']&&!this['_schema']['isObject'](_0x582c8a['previousSibling'])?_0x582c8a['previousSibling']:null,_0x582c8a['isEmpty']||_0x4f1a1d&&_0x4f1a1d['isEmpty']){const _0x4f64e5=_0x4f1a1d&&_0x4f1a1d['isEmpty']?_0x4f1a1d:_0x582c8a;_0x3b2a37&&_0x3b2a37['type']==_0x58f17c+'EmptyContainer'&&_0x3b2a37['element']['name']==_0x4f64e5['name']?_0x3b2a37['quantity']++:_0x14736d['push']({'type':_0x58f17c+'EmptyContainer','element':_0x4f64e5,'quantity':0x1});}else _0x14736d['push']({'type':_0x58f17c+'Container','element':_0x582c8a});}}}}}['_resolveDescriptionItems'](_0x4be09d){const _0x2627b7=this['_locale'],_0x3ee78a=[],_0x6ea583=[],_0x5c56b8=[];for(const _0x5cc0ea of _0x4be09d)switch(_0x5cc0ea['type']){case'text':if(_0x5cc0ea['add']=_0x5cc0ea['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5cc0ea['remove']=_0x5cc0ea['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5cc0ea['add']&&''!=_0x5cc0ea['remove']){_0x3ee78a['push']({'type':'replace','content':c(_0x2627b7,'REPLACE_TEXT',['\x22'+_0x5cc0ea['remove']+'\x22','\x22'+_0x5cc0ea['add']+'\x22'])});continue;}if(null!=_0x5cc0ea['add']['match'](/^ +$/)){_0x3ee78a['push']({'type':'insertion','content':c(_0x2627b7,'*Insert:*\x20%0',c(_0x2627b7,'ELEMENT_SPACE',_0x5cc0ea['add']['length']))});continue;}if(null!=_0x5cc0ea['remove']['match'](/^ +$/)){_0x3ee78a['push']({'type':'deletion','content':c(_0x2627b7,'*Remove:*\x20%0',c(_0x2627b7,'ELEMENT_SPACE',_0x5cc0ea['remove']['length']))});continue;}if(''!=_0x5cc0ea['add']){_0x3ee78a['push']({'type':'insertion','content':c(_0x2627b7,'*Insert:*\x20%0','\x22'+_0x5cc0ea['add']+'\x22')});continue;}_0x3ee78a['push']({'type':'deletion','content':c(_0x2627b7,'*Remove:*\x20%0','\x22'+_0x5cc0ea['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3ee78a['push']({'type':'insertion','content':c(_0x2627b7,'*Insert:*\x20%0',this['getItemLabel'](_0x5cc0ea['element'],_0x5cc0ea['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3ee78a['push']({'type':'deletion','content':c(_0x2627b7,'*Remove:*\x20%0',this['getItemLabel'](_0x5cc0ea['element'],_0x5cc0ea['quantity']))});continue;case'addContainer':_0x3ee78a['push']({'type':'insertion','content':c(_0x2627b7,'*Split:*\x20%0',this['getItemLabel'](_0x5cc0ea['element'],_0x5cc0ea['quantity']))});continue;case'removeContainer':_0x3ee78a['push']({'type':'deletion','content':c(_0x2627b7,'*Merge:*\x20%0',this['getItemLabel'](_0x5cc0ea['element'],_0x5cc0ea['quantity']))});continue;case'addFormat':_0x6ea583['push'](_0x5cc0ea['key']);continue;case'removeFormat':_0x5c56b8['push'](_0x5cc0ea['key']);continue;default:_0x3ee78a['push'](_0x5cc0ea);}if(_0x6ea583['length']){const _0x4d478f=_0x6ea583['map'](_0x4f1121=>this['_attributeLabels']['has'](_0x4f1121)?this['_attributeLabels']['get'](_0x4f1121):_0x4f1121)['join'](',\x20');_0x3ee78a['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x4d478f)});}if(_0x5c56b8['length']){const _0x58448e=_0x5c56b8['map'](_0x14cfce=>this['_attributeLabels']['has'](_0x14cfce)?this['_attributeLabels']['get'](_0x14cfce):_0x14cfce)['join'](',\x20');_0x3ee78a['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x58448e)});}return _0x3ee78a;}['_handleCustomCallbackDescription'](_0x3a6892){for(const _0x2bcde6 of this['_customCallbacks']){const _0x3e0991=_0x2bcde6(_0x3a6892);if(_0x3e0991&&'type'in _0x3e0991)return _0x3e0991;}}['_handleAttributeSuggestionDescription'](_0x413214,_0x487692){const _0x2a63eb=_0x487692['data'],_0x9b6ffa=void 0x0===_0x2a63eb['newValue']?'removeFormat':'addFormat';_0x413214['push']({'type':_0x9b6ffa,'key':_0x2a63eb['key']});}['_handleRenameSuggestionDescription'](_0x42ef89,_0x47d3fc){_0x42ef89['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x47d3fc['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x515562,_0x2f64a6,_0x2dc77e){if(this['_addDescriptionItems'](_0x515562,_0x2f64a6),_0x2dc77e&&_0x2dc77e['getFirstRange']()&&!_0x2f64a6['getFirstRange']()['end']['isEqual'](_0x2dc77e['getFirstRange']()['start'])){const _0xb7ed33=_0x515562[_0x515562['length']-0x1],_0x18a0fa='insertion'==_0x2f64a6['type']?'add':'remove';_0xb7ed33&&'text'==_0xb7ed33['type']&&(_0xb7ed33[_0x18a0fa]+='\x0a');}}}class U extends _0x5c1181{['afterInit'](){const _0x23ae9e=this['editor'],_0x5e3db9=_0x23ae9e['plugins']['get']('TrackChangesEditing');_0x23ae9e['commands']['get']('showAIAssistant')&&_0x5e3db9['enableCommand']('showAIAssistant');}}class V extends _0x5c1181{['afterInit'](){const _0x1dcaa6=this['editor'],_0x16f1f6=_0x1dcaa6['locale'];if(!_0x1dcaa6['plugins']['has']('AlignmentEditing'))return;const _0x581e57=_0x1dcaa6['plugins']['get']('TrackChangesEditing');_0x581e57['enableDefaultAttributesIntegration']('alignment'),_0x581e57['registerBlockAttribute']('alignment'),_0x581e57['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x16f1f6,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e65c8=this['editor'],_0x507bec=_0x4e65c8['locale'];_0x4e65c8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x194ea4=>{if('formatBlock'!=_0x194ea4['type'])return;const {data:_0xb9b82a}=_0x194ea4;if(_0xb9b82a&&'alignment'==_0xb9b82a['commandName']){const _0x48ebec=_0xb9b82a['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x507bec,'*Format:*\x20%0',function(_0x521541){switch(_0x521541){case'left':return c(_0x507bec,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x507bec,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x507bec,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x507bec,'FORMAT_JUSTIFY_TEXT');}}(_0x48ebec))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x5c1181{['afterInit'](){const _0x5493a0=this['editor'],_0x282820=_0x5493a0['plugins']['get']('TrackChangesEditing'),_0x3df2b1=_0x5493a0['locale'];for(const _0x4b0b81 of Zt){if(!_0x5493a0['plugins']['has'](_0x4b0b81))continue;const _0x140228=_0x4b0b81['slice'](0x0,-0x7)['toLowerCase'](),_0x41e546='FORMAT_'+_0x140228['toUpperCase']();_0x282820['enableDefaultAttributesIntegration'](_0x140228),_0x282820['registerInlineAttribute'](_0x140228),_0x282820['descriptionFactory']['registerAttributeLabel'](_0x140228,c(_0x3df2b1,_0x41e546));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c0175=this['editor'],_0x14671d=_0x2c0175['locale'],_0x3e9384=_0x2c0175['plugins']['get']('TrackChangesEditing');function _0x2f48eb(_0x5c9e24,_0x2c7054){_0x3e9384['descriptionFactory']['registerDescriptionCallback'](_0x2db230=>{if('formatInline'!=_0x2db230['type'])return;const {data:_0x410124}=_0x2db230;return _0x410124&&_0x410124['commandName']===_0x5c9e24?_0x410124['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x14671d,'*Format:*\x20%0',_0x2c7054)}:{'type':'format','content':c(_0x14671d,'*Remove\x20format:*\x20%0',_0x2c7054)}:void 0x0;});}_0x2f48eb('bold',c(_0x14671d,'FORMAT_BOLD')),_0x2f48eb('italic',c(_0x14671d,'FORMAT_ITALIC')),_0x2f48eb('underline',c(_0x14671d,'FORMAT_UNDERLINE')),_0x2f48eb('code',c(_0x14671d,'FORMAT_CODE')),_0x2f48eb('strikethrough',c(_0x14671d,'FORMAT_STRIKETHROUGH')),_0x2f48eb('subscript',c(_0x14671d,'FORMAT_SUBSCRIPT')),_0x2f48eb('superscript',c(_0x14671d,'FORMAT_SUPERSCRIPT'));}}class G extends _0x5c1181{['afterInit'](){const _0x6a5a88=this['editor'],_0x4eaef6=_0x6a5a88['locale'];if(!_0x6a5a88['plugins']['has']('BlockQuoteEditing'))return;const _0x357cc4=_0x6a5a88['plugins']['get']('TrackChangesEditing'),_0x413547=this['editor']['commands']['get']('blockQuote');_0x357cc4['enableCommand']('blockQuote',(_0x2be189,_0x4f9713={})=>{const _0x371ee3=this['editor']['model']['document']['selection'],_0x30303a=_0x4f9713&&void 0x0!==_0x4f9713['forceValue']?_0x4f9713['forceValue']:!_0x413547['value'];let _0x1eff00=[];if(_0x30303a){const _0x3927ec=Array['from'](_0x371ee3['getSelectedBlocks']())['filter'](_0x21752e=>oo(_0x21752e)||function(_0x137bf7,_0x31b118){const _0x2d0bb6=_0x31b118['checkChild'](_0x137bf7['parent'],'blockQuote'),_0x15af9d=_0x31b118['checkChild'](['$root','blockQuote'],_0x137bf7);return _0x2d0bb6&&_0x15af9d;}(_0x21752e,this['editor']['model']['schema']));_0x1eff00=to(_0x3927ec,_0x6a5a88['model']);}else{const _0x1bdcfe=Array['from'](_0x371ee3['getSelectedBlocks']())['filter'](_0x37eafd=>oo(_0x37eafd));_0x1eff00=to(_0x1bdcfe,_0x6a5a88['model']);}_0x6a5a88['model']['change'](()=>{for(const _0x226f2e of _0x1eff00)_0x357cc4['markBlockFormat'](_0x226f2e,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x30303a}]});});}),_0x357cc4['descriptionFactory']['registerDescriptionCallback'](_0x25e27b=>{const {data:_0x334c96}=_0x25e27b;if(_0x334c96&&'blockQuote'==_0x334c96['commandName']){const _0xb68b8a=c(_0x4eaef6,'ELEMENT_BLOCK_QUOTE');return _0x334c96['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4eaef6,'*Set\x20format:*\x20%0',_0xb68b8a)}:{'type':'format','content':c(_0x4eaef6,'*Remove\x20format:*\x20%0',_0xb68b8a)};}});}}function oo(_0x469001){return'blockQuote'==_0x469001['parent']['name'];}class L extends _0x5c1181{['afterInit'](){const _0x54ec32=this['editor'],_0x22404e=_0x54ec32['locale'],_0x24d23b=_0x54ec32['plugins']['get']('TrackChangesEditing');_0x54ec32['plugins']['has']('BookmarkEditing')&&(_0x24d23b['enableCommand']('insertBookmark'),_0x24d23b['enableDefaultAttributesIntegration']('updateBookmark'),_0x24d23b['registerBlockAttribute']('bookmarkId'),_0x24d23b['descriptionFactory']['registerDescriptionCallback'](_0x26916f=>{if('insertion'!=_0x26916f['type']&&'deletion'!=_0x26916f['type']&&'attribute'!=_0x26916f['type'])return;const _0x1f7ab6=_0x26916f['getContainedElement']();if(null==_0x1f7ab6)return;if(!_0x1f7ab6['is']('element','bookmark'))return;const _0x136fee=_0x1f7ab6['getAttribute']('bookmarkId');if('insertion'==_0x26916f['type'])return{'type':'insertion','content':c(_0x22404e,'*Insert:*\x20%0','\x22'+_0x136fee+'\x22\x20'+c(_0x22404e,'ELEMENT_BOOKMARK'))};if('deletion'==_0x26916f['type'])return{'type':'deletion','content':c(_0x22404e,'*Remove:*\x20%0','\x22'+_0x136fee+'\x22\x20'+c(_0x22404e,'ELEMENT_BOOKMARK'))};const {data:_0x5ab4a2}=_0x26916f;if(!_0x5ab4a2||'bookmarkId'!=_0x5ab4a2['key'])return;return{'type':'format','content':c(_0x22404e,'*Set\x20bookmark:*\x20%0','\x22'+_0x5ab4a2['newValue']+'\x22')};}));}}class J extends _0x5c1181{['afterInit'](){const _0x22a8d2=this['editor'];_0x22a8d2['plugins']['has']('CaseChange')&&(_0x22a8d2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x22a8d2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x22a8d2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x5c1181{['afterInit'](){const _0x50ac04=this['editor'];_0x50ac04['commands']['get']('ckbox')&&_0x50ac04['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x5c1181{['afterInit'](){const _0x287b3c=this['editor'];if(!_0x287b3c['plugins']['has']('CodeBlock'))return;const _0xd02e81=_0x287b3c['plugins']['get']('TrackChangesEditing'),_0x52799d=_0x287b3c['locale'],_0x53198c=_0x287b3c['config']['get']('codeBlock')['languages'],_0x2e5369=_0x287b3c['commands']['get']('codeBlock');_0xd02e81['enableCommand']('indentCodeBlock'),_0xd02e81['enableCommand']('outdentCodeBlock'),_0xd02e81['enableCommand']('codeBlock',(_0x593df4,_0x60d10a={})=>{const _0x28632f=_0x287b3c['model'],_0x5ef807=_0x287b3c['model']['document']['selection'],_0x367110=_0x60d10a&&void 0x0!==_0x60d10a['forceValue']?_0x60d10a['forceValue']:!_0x2e5369['value'];let _0x38da36;_0x60d10a['language']||(_0x60d10a['language']=_0x53198c[0x0]['language']),_0x38da36=_0x367110?Array['from'](_0x5ef807['getSelectedBlocks']())['filter'](_0x56e1e9=>eo(_0x56e1e9)||function(_0x4d2efe,_0x43d962){if(_0x4d2efe['is']('rootElement')||_0x43d962['isLimit'](_0x4d2efe))return!0x1;return _0x43d962['checkChild'](_0x4d2efe['parent'],'codeBlock');}(_0x56e1e9,_0x28632f['schema'])):Array['from'](_0x5ef807['getSelectedBlocks']())['filter'](_0x1d56b5=>eo(_0x1d56b5));const _0x22927c=to(_0x38da36,_0x28632f);_0x28632f['change'](()=>{for(const _0x25e8d6 of _0x22927c)_0xd02e81['markBlockFormat'](_0x25e8d6,{'commandName':'codeBlock','commandParams':[{..._0x60d10a,'forceValue':_0x367110}],'formatGroupId':'blockName'});});}),(_0xd02e81['descriptionFactory']['registerElementLabel']('codeBlock',_0x3b1633=>c(_0x52799d,'ELEMENT_CODE_BLOCK',_0x3b1633)),_0xd02e81['descriptionFactory']['registerDescriptionCallback'](_0x46f653=>{if('formatBlock'!=_0x46f653['type'])return;const _0x5e34d9=_0x52799d['t'],{data:_0x38aef4}=_0x46f653;if(!_0x38aef4||'codeBlock'!=_0x38aef4['commandName'])return;const _0x3e77f4=_0x38aef4['commandParams'][0x0]['language'],_0x11ad70=_0x5e34d9(_0x53198c['find'](_0x224d80=>_0x224d80['language']===_0x3e77f4)['label'])['toLowerCase']();return _0x38aef4['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x52799d,'*Set\x20format:*\x20%0',c(_0x52799d,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x11ad70+')')}:{'type':'format','content':c(_0x52799d,'*Remove\x20format:*\x20%0',c(_0x52799d,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x56d985){return'codeBlock'==_0x56d985['name'];}class q extends _0x5c1181{['afterInit'](){const _0x265688=this['editor'];if(!_0x265688['plugins']['has']('CommentsEditing'))return;_0x265688['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x526168,_0x993381,_0x442a68){const _0x53b619=[];for(const _0x1bbcd2 of _0x993381['getItems']())_0x1bbcd2['hasAttribute'](_0x526168)&&_0x53b619['push'](_0x442a68['createRangeOn'](_0x1bbcd2));return _0x53b619;}function Fe(_0x492738,_0x2cfb4f,{showActiveMarker:_0x426d64=!0x0}={}){const _0x54d2ae=_0x492738['plugins']['get']('TrackChangesEditing');return(_0x96f765,_0xfb21b5,_0xd95da)=>{if(!_0xd95da['consumable']['test'](_0xfb21b5['markerRange'],_0x96f765['name']))return;const _0x26e343=_0xfb21b5['markerRange']['getWalker'](),_0x3041e0=_0xfb21b5['markerRange']['start'],_0x5210a2=_0x492738['model']['schema'];let _0x254b92=null,_0x1a8f60=null,_0xb2168f=!0x1,_0x5d1511=!0x1;for(const _0x10e846 of _0x26e343){const _0x3b08ac=_0x10e846['item'];_0xb2168f=_0xb2168f||_0x5210a2['isContent'](_0x3b08ac);const _0x20dda5=_0xd95da['mapper']['toViewElement'](_0x3b08ac);if(_0x20dda5&&_0x20dda5['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x10e846['type']&&(_0x5210a2['isBlock'](_0x3b08ac)&&!_0x5210a2['isLimit'](_0x3b08ac)&&(_0x3b08ac['nextSibling']||_0x3041e0['isAtEnd']?_0x254b92&&_0x254b92['parent']==_0x3b08ac||(_0x254b92=_0x3b08ac,_0x39af97(_0x10e846['previousPosition']),_0x5d1511=!0x0):_0x1a8f60=_0x1a8f60||_0x10e846['previousPosition']));}function _0x39af97(_0x35343a){const {id:_0x466927,authorId:_0xe1afb7}=_0x54d2ae['_splitMarkerName'](_0xfb21b5['markerName']),_0x25a56a=_0xd95da['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2cfb4f,'data-suggestion':_0x466927,'data-author-id':_0xe1afb7}),_0x2a6488=_0xd95da['mapper']['toViewPosition'](_0x35343a);_0x426d64&&_0x54d2ae['activeMarkers']['includes'](_0xfb21b5['markerName'])&&_0xd95da['writer']['addClass']('ck-suggestion-marker--active',_0x25a56a),_0xd95da['writer']['insert'](_0x2a6488,_0x25a56a),_0xd95da['mapper']['bindElementToMarker'](_0x25a56a,_0xfb21b5['markerName']);}_0xb2168f||_0x5d1511||!_0x1a8f60||_0x39af97(_0x1a8f60);};}class z extends _0x5c1181{static get['requires'](){return[_0x29e068];}['init'](){const _0x2253d0=this['editor'],_0x51b3d8=_0x2253d0['plugins']['get']('TrackChangesEditing');_0x51b3d8['enableCommand']('delete');const _0xf4be99=_0x2253d0['commands']['get']('deleteForward');_0x51b3d8['enableCommand']('deleteForward',(_0x3c8120,_0x1c9659={})=>{const _0x2d38bd=_0x2253d0['model']['createSelection'](_0x2253d0['model']['document']['selection']);_0x2d38bd['isCollapsed']&&_0x2253d0['model']['modifySelection'](_0x2d38bd,{'direction':'forward','unit':_0x1c9659['unit']});const _0x1f4ce0=_0x2d38bd['getFirstRange'](),_0x36f3db=_0x597cd7['fromRange'](_0x1f4ce0);let _0x34f5d5;_0x3c8120(_0x1c9659),_0x34f5d5='$graveyard'==_0x36f3db['root']['rootName']?_0x2253d0['model']['createRange'](_0x1f4ce0['start']):_0x2253d0['model']['createRange'](_0x36f3db['start'],_0x36f3db['end']),_0x36f3db['detach'](),_0x2253d0['model']['enqueueChange'](_0xf4be99['buffer']['batch'],_0x8d0435=>{_0xf4be99['buffer']['lock'](),_0x8d0435['setSelection'](_0x8d0435['createRange'](_0x34f5d5['end'])),_0xf4be99['buffer']['unlock']();});}),_0x2253d0['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x2253d0,'merge'),{'priority':'high'}),_0x2253d0['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x85b199,_0x6b63d0,_0x1fef67)=>{_0x1fef67['options']['showSuggestionHighlights']&&Fe(_0x2253d0,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x85b199,_0x6b63d0,_0x1fef67);},{'priority':'high'}),_0x2253d0['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4fc11b,_0x26648f,_0x1d974b)=>{const _0x891678=_0x1d974b['mapper']['markerNameToElements'](_0x26648f['markerName']);if(_0x891678){for(const _0xd99ab4 of _0x891678)_0xd99ab4['is']('uiElement')&&(_0x1d974b['mapper']['unbindElementFromMarkerName'](_0xd99ab4,_0x26648f['markerName']),_0x1d974b['writer']['remove'](_0xd99ab4));}},{'priority':'high'});}}class W extends _0x5c1181{['afterInit'](){const _0x2d6839=this['editor'];if(!_0x2d6839['plugins']['has']('ListEditing'))return;const _0xf5461f=_0x2d6839['locale'],_0x738265=_0x2d6839['plugins']['get']('TrackChangesEditing'),_0x279f57=_0x2d6839['plugins']['has']('TodoListEditing'),_0x41335c=!!_0x2d6839['config']['get']('list.multiBlock');function _0x59192e(_0x51463c){return{'type':'format','content':''+c(_0xf5461f,'*Set\x20format:*\x20%0',_0x51463c)};}function _0x1ddd7f(_0x374e3c){return{'type':'format','content':''+c(_0xf5461f,'*Remove\x20format:*\x20%0',_0x374e3c)};}_0x738265['enableDefaultAttributesIntegration']('numberedList'),_0x738265['enableDefaultAttributesIntegration']('bulletedList'),_0x738265['enableDefaultAttributesIntegration']('customNumberedList'),_0x738265['enableDefaultAttributesIntegration']('customBulletedList'),_0x738265['enableDefaultAttributesIntegration']('indentList'),_0x738265['enableDefaultAttributesIntegration']('outdentList'),_0x738265['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x738265['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x738265['registerBlockAttribute']('listItemId'),_0x738265['registerBlockAttribute']('listType'),_0x738265['registerBlockAttribute']('listIndent'),_0x41335c&&(_0x738265['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x738265['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x279f57&&(_0x738265['enableDefaultAttributesIntegration']('todoList'),_0x738265['enableDefaultAttributesIntegration']('checkTodoList'),_0x738265['registerBlockAttribute']('todoListChecked'),_0x738265['descriptionFactory']['registerDescriptionCallback'](_0x509a6a=>{const {data:_0x9e620b}=_0x509a6a;if(_0x9e620b&&'todoListChecked'==_0x9e620b['key'])return{'type':'format','content':_0x9e620b['newValue']?c(_0xf5461f,'*Check\x20item*'):c(_0xf5461f,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x558aa1=>{if(_0x558aa1['batch']['isUndo'])return!0x1;let _0x4f452f=!0x1;const _0x4eb5c9=_0x738265['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x9860c1=>'todoListChecked'===_0x738265['_getAttributeKey'](_0x9860c1));for(const _0x26783a of _0x4eb5c9){'todo'!=_0x26783a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x738265['_findSuggestions'](_0x26783a['getFirstRange'](),'attribute')['find'](_0x15f672=>'listType'===_0x738265['_getAttributeKey'](_0x15f672['suggestion']))||(_0x558aa1['removeMarker'](_0x26783a['getFirstMarker']()),_0x4f452f=!0x0));}return _0x4f452f;})),_0x738265['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0xf5461f,'FORMAT_INDENT'));const _0x366a59={'type':'format','content':''};_0x738265['descriptionFactory']['registerDescriptionCallback'](_0x59d2ec=>{const {data:_0x47e9d2}=_0x59d2ec;if(!_0x47e9d2||'listType'!=_0x47e9d2['key'])return;let _0x15dcf1=_0x59d2ec['head'];for(;_0x15dcf1;){if(_0x15dcf1['data']&&(('listStyle'==_0x15dcf1['data']['key']||'listMarkerStyle'==_0x15dcf1['data']['key'])&&(_0x15dcf1['data']['newValue']&&'default'!=_0x15dcf1['data']['newValue']||'default'!=_0x15dcf1['data']['oldValue']&&!_0x47e9d2['newValue'])||!_0x41335c&&_0x15dcf1['data']['key']==u))return _0x366a59;_0x15dcf1=_0x15dcf1['next'];}if(null==_0x47e9d2['newValue'])switch(_0x47e9d2['oldValue']){case'bulleted':return _0x1ddd7f(c(_0xf5461f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1ddd7f(c(_0xf5461f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1ddd7f(c(_0xf5461f,'ELEMENT_TODO_LIST'));}switch(_0x47e9d2['newValue']){case'bulleted':return _0x59192e(c(_0xf5461f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x59192e(c(_0xf5461f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x59192e(c(_0xf5461f,'ELEMENT_TODO_LIST'));}}),_0x738265['descriptionFactory']['registerDescriptionCallback'](_0x3f8a0e=>{const {data:_0x3d6a38}=_0x3f8a0e;if(_0x3d6a38&&'listIndent'==_0x3d6a38['key'])return null==_0x3d6a38['newValue']||null==_0x3d6a38['oldValue']&&0x0==_0x3d6a38['newValue']?_0x366a59:void 0x0;}),_0x738265['descriptionFactory']['registerDescriptionCallback'](_0x51cedf=>{if('attribute'!=_0x51cedf['type'])return;const {data:_0x53e0a1}=_0x51cedf;if(!_0x53e0a1||'listItemId'!=_0x53e0a1['key'])return;const _0x4530d2=Te(_0x51cedf);return'newValue'==_0x4530d2?{'type':'format','content':c(_0xf5461f,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4530d2?{'type':'format','content':c(_0xf5461f,'*Split:*\x20list\x20item')}:_0x366a59;}),_0x2d6839['model']['document']['registerPostFixer'](_0x401504=>this['listItemIdFixer'](_0x401504)),_0x2d6839['model']['document']['registerPostFixer'](_0x37801d=>this['noTrackChangesFixer'](_0x37801d)),_0x2d6839['model']['document']['on']('change:data',(_0x325991,_0x53ee05)=>{if(_0x53ee05['isUndo']||!_0x53ee05['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x17f886){if(_0x17f886['batch']['isUndo']||!_0x17f886['batch']['isLocal'])return!0x1;let _0x38beaa=!0x1;const _0x5e7b2f=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x8a061b=>_0x8a061b['data']&&'listItemId'==_0x8a061b['data']['key'])['filter'](_0x164279=>_0x164279['data']['newValue']&&_0x164279['data']['oldValue']);for(const _0x377961 of _0x5e7b2f)Te(_0x377961)||(_0x17f886['removeMarker'](_0x377961['getFirstMarker']()),_0x38beaa=!0x0);return _0x38beaa;}['noTrackChangesFixer'](_0x39821d){if(_0x39821d['batch']['isUndo']||!_0x39821d['batch']['isLocal'])return!0x1;const _0x2667b5=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2667b5['trackChangesCommand']['value'])return!0x1;let _0x3989e0=!0x1;const _0x5d0fc2=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3e08e5=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x464bfe=>'attribute'==_0x464bfe['type'])['filter'](_0x219bf7=>_0x5d0fc2['includes'](_0x219bf7['attributeKey']));if(0x0==_0x3e08e5['length'])return _0x3989e0;for(const _0x400ac7 of _0x3e08e5){const _0x271e88=_0x2667b5['_findSuggestions'](_0x400ac7['range'],'attribute')['filter'](_0x52b029=>!_0x52b029['meta']['isNextTo'])['map'](_0x550b3c=>_0x550b3c['suggestion'])['filter'](_0x3703f7=>{const _0x415dae=_0x2667b5['_getAttributeKey'](_0x3703f7);return _0x5d0fc2['includes'](_0x415dae);});if(_0x271e88['length']){for(const _0x4750e1 of _0x271e88)_0x39821d['removeMarker'](_0x4750e1['getFirstMarker']());_0x3989e0=!0x0;}}return _0x3989e0;}['assureChains'](){const _0x52fa41=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52552d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2a8678;const _0x26faa6=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x199866=>{if(_0x199866['data']['oldRange']||!_0x199866['data']['newRange'])return null;if(!_0x199866['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x39dfc2}=_0x52fa41['_splitMarkerName'](_0x199866['name']);if(!_0x52fa41['hasSuggestion'](_0x39dfc2))return null;const _0x1e031c=_0x52fa41['getSuggestion'](_0x39dfc2);return _0x52552d['includes'](_0x1e031c['data']['key']);})['map'](_0x445703=>{const {id:_0x362936}=_0x52fa41['_splitMarkerName'](_0x445703['name']),_0x1a27ed=_0x52fa41['getSuggestion'](_0x362936);return _0x2a8678=_0x1a27ed['attributes']['groupId'],_0x1a27ed['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x26faa6['size'])return;const _0x41162f=_0x52fa41['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x19c5ee=>'attribute'==_0x19c5ee['type']&&_0x19c5ee['data']&&_0x52552d['includes'](_0x19c5ee['data']['key'])&&_0x19c5ee['attributes']['groupId']!=_0x2a8678)['map'](_0x46aea1=>({'listItem':_0x46aea1['getFirstRange']()['start']['nodeAfter'],'groupId':_0x46aea1['attributes']['groupId']})),_0x1cbd46=new Set();for(const {groupId:_0xd4ef51,listItem:_0x13a4b7}of _0x41162f)_0x26faa6['has'](_0x13a4b7)&&_0x1cbd46['add'](_0xd4ef51);for(const _0x48a0c4 of _0x52fa41['getSuggestions']())_0x1cbd46['has'](_0x48a0c4['attributes']['groupId'])&&_0x48a0c4['setAttribute']('groupId',_0x2a8678);}['_supportLegacySuggestions'](){const _0x5aa4e0=this['editor'],_0xc4e4af=_0x5aa4e0['locale'],_0x104093=_0x5aa4e0['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x104093['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3d95db,_0x3bb836){const _0x3f764d=[];for(let _0x301378 of _0x3d95db)_0x301378['start']['nodeAfter']===_0x301378['end']['parent']&&(_0x301378=_0x5aa4e0['model']['createRange'](_0x5aa4e0['model']['createPositionAt'](_0x301378['start']['nodeAfter'],0x0))),_0x3f764d['push'](_0x301378);_0x5aa4e0['model']['change'](_0x292870=>{const _0x5dd78b=_0x5aa4e0['model']['document']['selection'],_0x2d94a7=Array['from'](_0x5dd78b['getRanges']())['map'](_0x2a38d1=>_0x597cd7['fromRange'](_0x2a38d1));_0x292870['setSelection'](_0x3f764d),_0x5aa4e0['commands']['get'](_0x3bb836['commandName'])['refresh'](),_0x3bb836['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5aa4e0['execute'](_0x3bb836['commandName'],..._0x3bb836['commandParams']),_0x292870['setSelection'](_0x2d94a7);for(const _0xe162eb of _0x2d94a7)_0xe162eb['detach']();});}),_0x104093['descriptionFactory']['registerElementLabel'](function(_0x1ef22a){const _0x204d62=!_0x5aa4e0['model']['schema']['isObject'](_0x1ef22a),_0x545f8d=_0x1ef22a['previousSibling'],_0x4557c1=_0x1ef22a['nextSibling'],_0x3a7b7f=_0x1ef22a['getAttribute']('listItemId'),_0x175866=!_0x545f8d||_0x545f8d['getAttribute']('listItemId')!==_0x3a7b7f,_0x246397=!_0x4557c1||_0x4557c1['getAttribute']('listItemId')!==_0x3a7b7f;return _0x204d62&&Boolean(_0x3a7b7f)&&_0x175866&&_0x246397;},_0x46946a=>c(_0xc4e4af,'ELEMENT_LIST_ITEM',_0x46946a));}['_registerLegacyDescription'](){const _0x56c742=this['editor'],_0xf95ee9=_0x56c742['locale'];function _0x567cc0(_0x5b6b4d){const _0x21aa34=_0x56c742['commands']['get']('bulletedList')['value'],_0x1f167a=_0x56c742['commands']['get']('numberedList')['value'];return'numberedList'===_0x5b6b4d?_0x21aa34:_0x1f167a;}_0x56c742['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x270e86){if('formatBlock'!=_0x270e86['type'])return;const {data:_0x1ead48}=_0x270e86;if(!_0x1ead48)return;let _0x4e1199,_0x575071,_0x519a85,_0x1d2a01;switch(_0x1ead48['commandName']){case'bulletedList':_0x519a85=_0x1ead48['commandParams'][0x0]['forceValue'],_0x1d2a01=_0x567cc0(_0x1ead48['commandName']),_0x4e1199=_0x519a85?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1d2a01&&_0x56c742['config']['get']('list.multiBlock')||(_0x4e1199='*Change\x20to:*\x20%0'),_0x575071={'type':'format','content':c(_0xf95ee9,_0x4e1199,c(_0xf95ee9,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x519a85=_0x1ead48['commandParams'][0x0]['forceValue'],_0x1d2a01=_0x567cc0(_0x1ead48['commandName']),_0x4e1199=_0x519a85?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1d2a01&&_0x56c742['config']['get']('list.multiBlock')||(_0x4e1199='*Change\x20to:*\x20%0'),_0x575071={'type':'format','content':c(_0xf95ee9,_0x4e1199,c(_0xf95ee9,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4e1199='*Indent:*\x20%0',_0x575071={'type':'format','content':c(_0xf95ee9,_0x4e1199,c(_0xf95ee9,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4e1199=function(_0x2dc0b9){const _0x267140=_0x2dc0b9['getFirstRange']();let _0x421c34=_0x267140['start']['nodeAfter'];for(;_0x421c34&&_0x267140['containsItem'](_0x421c34);){if(_0x421c34['getAttribute']('listIndent')>0x0)return!0x1;_0x421c34=_0x421c34['nextSibling'];}return!0x0;}(_0x270e86)?c(_0xf95ee9,'*Format:*\x20remove\x20from\x20%0',c(_0xf95ee9,function(_0x336de2){return'ELEMENT_'+_0x336de2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x270e86))):c(_0xf95ee9,'*Outdent:*\x20%0',c(_0xf95ee9,'ELEMENT_LIST_ITEM')),_0x575071={'type':'format','content':_0x4e1199};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1ead48['multipleBlocks']&&(_0x4e1199='*Merge:*\x20%0',_0x575071={'type':'deletion','content':c(_0xf95ee9,_0x4e1199,c(_0xf95ee9,'ELEMENT_LIST_ITEM'))});}return _0x575071;});}}function Te(_0x45c33b){let _0x21ac2f=_0x45c33b['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x21ac2f;){const _0x16b845=_0x21ac2f['getAttribute']('listItemId');if(!_0x16b845)return!0x1;if(_0x16b845==_0x45c33b['data']['newValue'])return'newValue';if(_0x16b845==_0x45c33b['data']['oldValue'])return'oldValue';_0x21ac2f=_0x21ac2f['previousSibling'];}return!0x1;}class Se extends _0x5c1181{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1531e5=this['editor']['config']['get']('list.properties'),_0x31983d=this['editor']['plugins']['get']('TrackChangesEditing');_0x1531e5['styles']&&(_0x31983d['enableDefaultAttributesIntegration']('listStyle'),_0x31983d['registerBlockAttribute']('listStyle')),_0x1531e5['reversed']&&(_0x31983d['enableDefaultAttributesIntegration']('listReversed'),_0x31983d['registerBlockAttribute']('listReversed')),_0x1531e5['startIndex']&&(_0x31983d['enableDefaultAttributesIntegration']('listStart'),_0x31983d['registerBlockAttribute']('listStart'));const _0x28b05b={'type':'format','content':''};_0x31983d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x8d45ef=this['editor']['locale'];_0x31983d['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x8d45ef,'FORMAT_LIST_REVERSED')),_0x31983d['descriptionFactory']['registerDescriptionCallback'](_0x5cf369=>{const {data:_0x4b35e2}=_0x5cf369;if(_0x4b35e2&&'listReversed'==_0x4b35e2['key'])return null==_0x4b35e2['newValue']||0x0==_0x4b35e2['newValue']&&null==_0x4b35e2['oldValue']?_0x28b05b:void 0x0;}),_0x31983d['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x8d45ef,'FORMAT_LIST_START')),_0x31983d['descriptionFactory']['registerDescriptionCallback'](_0x593be9=>{const {data:_0xe93ae}=_0x593be9;if(_0xe93ae&&'listStart'==_0xe93ae['key'])return null==_0xe93ae['newValue']||0x1==_0xe93ae['newValue']&&null==_0xe93ae['oldValue']?_0x28b05b:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x29326f=>{if(_0x29326f['batch']['isUndo'])return!0x1;let _0x3d4a0d=!0x1;const _0x5ce55f=_0x31983d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc8577a=>{const _0x529b95=_0x31983d['_getAttributeKey'](_0xc8577a);return'listStart'==_0x529b95||'listReversed'==_0x529b95;});for(const _0x43862e of _0x5ce55f){const _0x58874e=_0x43862e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x58874e||'customNumbered'==_0x58874e)continue;_0x31983d['_findSuggestions'](_0x43862e['getFirstRange'](),'attribute')['find'](_0x6048dd=>'listType'==_0x31983d['_getAttributeKey'](_0x6048dd['suggestion']))||(_0x29326f['removeMarker'](_0x43862e['getFirstMarker']()),_0x3d4a0d=!0x0);}return _0x3d4a0d;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3a66b8){const _0x45ca7b=this['editor']['locale'],{data:_0x4818ac}=_0x3a66b8,_0x4fca21={'type':'format','content':''};if(!_0x4818ac||'listStyle'!=_0x4818ac['key'])return;if(!_0x4818ac['oldValue'])return'default'==_0x4818ac['newValue']?_0x4fca21:{'type':'format','content':''+c(_0x45ca7b,'*Set\x20format:*\x20%0',c(_0x45ca7b,this['_getTranslationKeyForListStyle'](_0x4818ac['newValue'])))};if(!_0x4818ac['newValue']){if('default'==_0x4818ac['oldValue'])return _0x4fca21;let _0x3ff3dd=_0x3a66b8['head'];for(;_0x3ff3dd;){if(_0x3ff3dd['data']&&'listType'==_0x3ff3dd['data']['key']&&_0x3ff3dd['data']['newValue'])return _0x4fca21;_0x3ff3dd=_0x3ff3dd['next'];}return{'type':'format','content':''+c(_0x45ca7b,'*Remove\x20format:*\x20%0',c(_0x45ca7b,this['_getTranslationKeyForListStyle'](_0x4818ac['oldValue'])))};}if('default'!=_0x4818ac['newValue'])return{'type':'format','content':''+c(_0x45ca7b,'*Set\x20format:*\x20%0',c(_0x45ca7b,this['_getTranslationKeyForListStyle'](_0x4818ac['newValue'])))};let _0x2b57c5=_0x3a66b8['head'];for(;_0x2b57c5;){if(_0x2b57c5['data']&&'listType'==_0x2b57c5['data']['key']&&_0x2b57c5['data']['newValue']&&_0x2b57c5['data']['oldValue'])return _0x4fca21;_0x2b57c5=_0x2b57c5['next'];}return{'type':'format','content':c(_0x45ca7b,'*Set\x20format:*\x20%0',c(_0x45ca7b,'ELEMENT_'+_0x3a66b8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x23c084=this['editor'],_0x2099a4=_0x23c084['locale'];_0x23c084['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x300188=>{if('formatBlock'!=_0x300188['type'])return;const {data:_0x1474a9}=_0x300188;if(!_0x1474a9)return;let _0x4a91f9,_0x3a8b9a;switch(_0x1474a9['commandName']){case'listStyle':_0x4a91f9='*Change\x20to:*\x20%0',_0x3a8b9a={'type':'format','content':c(_0x2099a4,_0x4a91f9,c(_0x2099a4,this['_getTranslationKeyForListStyle'](_0x1474a9['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4a91f9=_0x1474a9['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3a8b9a={'type':'format','content':c(_0x2099a4,_0x4a91f9)};break;case'listStart':_0x4a91f9='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3a8b9a={'type':'format','content':c(_0x2099a4,_0x4a91f9,_0x1474a9['commandParams'][0x0]['startIndex'])};}return _0x3a8b9a;});}['_getTranslationKeyForListStyle'](_0x4d145a){return'ELEMENT_'+function(_0x236a02){if(_e['includes'](_0x236a02))return'bulleted';if(Re['includes'](_0x236a02))return'numbered';return null;}(_0x4d145a)['toUpperCase']()+'_LIST_'+_0x4d145a['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x5c1181{['afterInit'](){const _0x229418=this['editor'];_0x229418['commands']['get']('emoji')&&_0x229418['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x5c1181{static get['requires'](){return[_0x31970b];}['init'](){const _0xaf9800=this['editor'],_0x4d39e8=_0xaf9800['plugins']['get']('TrackChangesEditing'),_0x310dc6=_0xaf9800['commands']['get']('enter');_0x4d39e8['enableCommand']('enter',()=>{_0xaf9800['model']['change'](_0x19556d=>{const _0x369c59=_0xaf9800['model']['document']['selection'],_0x2ba90a=_0x369c59['getFirstPosition'](),_0xaf9574=_0x597cd7['fromRange'](_0x369c59['getFirstRange']());if(_0x310dc6['enterBlock'](_0x19556d)){const _0xd8ff24=_0xaf9800['model']['createPositionAt'](_0x2ba90a['parent']['nextSibling'],0x0),_0x2d6b97=_0x19556d['createRange'](_0x2ba90a,_0xd8ff24);_0x4d39e8['markInsertion'](_0x2d6b97);}else _0x19556d['setSelection'](_0x19556d['createRange'](_0xaf9574['end']));_0xaf9574['detach'](),_0x310dc6['fire']('afterExecute',{'writer':_0x19556d});});}),_0xaf9800['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0xaf9800,'split'),{'priority':'high'}),_0xaf9800['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5ea2d8,_0x404cfa,_0x40d9ff)=>{const _0xf8ef69=_0x40d9ff['mapper']['markerNameToElements'](_0x404cfa['markerName']);if(_0xf8ef69){for(const _0x3f5912 of _0xf8ef69)_0x3f5912['hasClass']('ck-suggestion-marker-split')&&(_0x40d9ff['mapper']['unbindElementFromMarkerName'](_0x3f5912,_0x404cfa['markerName']),_0x40d9ff['writer']['remove'](_0x3f5912));}},{'priority':'high'}),_0xaf9800['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x212d2a,_0x18fad3,_0x8df92d)=>{_0x8df92d['options']['showSuggestionHighlights']&&Fe(_0xaf9800,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x212d2a,_0x18fad3,_0x8df92d);},{'priority':'high'});}}class Z extends _0x5c1181{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x25984b=this['editor']['plugins']['get']('TrackChangesEditing');_0x25984b['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x25984b['enableCommand']('findNext'),_0x25984b['enableCommand']('findPrevious'),_0x25984b['enableCommand']('replace'),_0x25984b['enableCommand']('replaceAll');}['handleFindCommand'](_0x109119,_0x2ef9ca,_0x1f1f59={}){const _0x574c91=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x109119(_0x4d7392=>{let _0x2f3223=('string'==typeof _0x2ef9ca?_0x574c91['findByTextCallback'](_0x2ef9ca,_0x1f1f59):_0x2ef9ca)(_0x4d7392);Array['isArray'](_0x2f3223)&&(_0x2f3223={'results':_0x2f3223,'searchText':'string'==typeof _0x2ef9ca?_0x2ef9ca:''});const _0x4bff32=_0x2f3223['results']['filter'](_0xceea2d=>!0x1===this['_isInDeletionRange'](_0xceea2d,_0x4d7392['item']));return{..._0x2f3223,'results':_0x4bff32};},_0x1f1f59);}['_isInDeletionRange'](_0x22db37,_0x2c8f2c){const _0x48906f=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2c8f2c,_0x22db37['start']),this['editor']['model']['createPositionAt'](_0x2c8f2c,_0x22db37['end']));for(const _0x2f51cc of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x48906f['getIntersection'](_0x2f51cc['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x5c1181{['afterInit'](){const _0x34b18c=this['editor']['locale'],_0x46c147=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x463737,commandName:_0xf4dc34}of ro)this['editor']['plugins']['has'](_0x463737)&&(_0x46c147['enableDefaultAttributesIntegration'](_0xf4dc34),_0x46c147['registerInlineAttribute'](_0xf4dc34));_0x46c147['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x34b18c,'FORMAT_FONT_SIZE')),_0x46c147['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x34b18c,'FORMAT_FONT_FAMILY')),_0x46c147['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x34b18c,'FORMAT_FONT_COLOR')),_0x46c147['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x34b18c,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30b573=this['editor'],_0x9c6c6e=_0x30b573['locale'];_0x30b573['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39128d=>{const _0x4e695c=_0x9c6c6e['t'];if('formatInline'!=_0x39128d['type'])return;const {data:_0x421ed6}=_0x39128d;if(null!=_0x421ed6){if('fontSize'==_0x421ed6['commandName']){const _0x15e630=_0x421ed6['commandParams'][0x0]['value'];if(_0x15e630){const _0x3c54c8=_0x4e695c(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1dd124=>_0x1dd124['model']==_0x15e630)['title'])['toLowerCase']();return{'type':'format','content':c(_0x9c6c6e,'*Set\x20font\x20size:*\x20%0',_0x3c54c8)};}return{'type':'format','content':c(_0x9c6c6e,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x421ed6['commandName']){const _0x1e2ede=_0x421ed6['commandParams'][0x0]['value'];return _0x1e2ede?{'type':'format','content':c(_0x9c6c6e,'*Set\x20font\x20family:*\x20%0',_0x1e2ede)}:{'type':'format','content':c(_0x9c6c6e,'*Reset\x20font\x20family*')};}if('fontColor'==_0x421ed6['commandName']){const _0xe0d6c3=_0x421ed6['commandParams'][0x0]['value'];if(_0xe0d6c3){const _0x43937b=_0x275dee(this['editor']['config']['get']('fontColor.colors'))['find'](_0x52967d=>_0x52967d['model']==_0xe0d6c3);let _0x518015=_0xe0d6c3,_0x4eed41='';return _0x43937b&&(_0x518015=_0x43937b['label'],_0x4eed41=_0x4e695c(_0x518015)['toLowerCase']()),{'type':'format','content':c(_0x9c6c6e,'*Set\x20font\x20color:*\x20%0',_0x4eed41)['trim'](),'color':{'value':_0xe0d6c3,'title':_0x4eed41||_0x518015}};}return{'type':'format','content':c(_0x9c6c6e,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x421ed6['commandName']){const _0x3e76f3=_0x421ed6['commandParams'][0x0]['value'];if(_0x3e76f3){const _0x34b4f4=_0x275dee(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x142db0=>_0x142db0['model']==_0x3e76f3);let _0x302173=_0x3e76f3,_0x4cb19c='';return _0x34b4f4&&(_0x302173=_0x34b4f4['label'],_0x4cb19c=_0x4e695c(_0x302173)['toLowerCase']()),{'type':'format','content':c(_0x9c6c6e,'*Set\x20font\x20background\x20color:*\x20%0',_0x4cb19c)['trim'](),'color':{'value':_0x3e76f3,'title':_0x4cb19c||_0x302173}};}return{'type':'format','content':c(_0x9c6c6e,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x5c1181{['afterInit'](){const _0x42d2d6=this['editor'],_0x27b302=_0x42d2d6['plugins']['get']('TrackChangesEditing'),_0x2a1e9c=_0x42d2d6['commands']['get']('copyFormat'),_0x19a8a8=_0x42d2d6['commands']['get']('pasteFormat');_0x2a1e9c&&_0x19a8a8&&(_0x27b302['enableDefaultAttributesIntegration']('pasteFormat'),_0x27b302['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2f2813=this['editor'],_0x559d54=_0x2f2813['locale'];_0x2f2813['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e35b1=>{if('formatBlock'!=_0x2e35b1['type']&&'formatInline'!=_0x2e35b1['type'])return;const {data:_0x2ea49f}=_0x2e35b1;if(_0x2ea49f&&'pasteFormat'===_0x2ea49f['commandName']){const _0x530044=[],_0x3c40d4=_0x2ea49f['commandParams'][0x0];for(const [_0x377933,_0x1e7ae2]of Object['entries'](_0x3c40d4))_0x530044['push'](so(_0x2f2813,_0x377933,_0x1e7ae2));return _0x530044['length']?{'type':'format','content':c(_0x559d54,'*Set\x20format\x20to:*\x20%0',_0x530044['join'](',\x20'))}:{'type':'format','content':c(_0x559d54,'*Remove\x20all\x20formatting*')};}});}}function so(_0x487abe,_0xce948e,_0x2445d1){const _0x50e32e=_0x487abe['locale']['t'],_0x3c6f52=_0xce948e['split'](/(?=[A-Z])/)['join']('\x20'),_0x25ab63=_0x50e32e(_0x3c6f52['charAt'](0x0)['toUpperCase']()+_0x3c6f52['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2445d1)return _0x25ab63;if('fontColor'===_0xce948e||'fontBackgroundColor'===_0xce948e){const _0x2fe621=_0x275dee(_0x487abe['config']['get']('fontColor.colors'))['find'](_0x5ef219=>_0x5ef219['model']==_0x2445d1);return _0x25ab63+'\x20('+(_0x2fe621?_0x50e32e(_0x2fe621['label'])['toLowerCase']():_0x2445d1)+')';}if('fontSize'===_0xce948e&&isNaN(parseFloat(_0x2445d1))){const _0x1e1c12=_0x487abe['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x487abe['config']['get']('fontSize.options'))['find'](_0x374d8f=>_0x374d8f['model']==_0x2445d1);return _0x25ab63+'\x20('+(_0x1e1c12?_0x50e32e(_0x1e1c12['title'])['toLowerCase']():_0x2445d1)+')';}return _0x25ab63+'\x20('+_0x2445d1+')';}class et extends _0x5c1181{['_headingOptions'];['afterInit'](){const _0x5b7de6=this['editor'];if(!_0x5b7de6['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5b7de6['config']['get']('heading.options');const _0x4cf315=_0x5b7de6['locale'],_0x759bc3=_0x5b7de6['plugins']['get']('TrackChangesEditing');_0x759bc3['enableDefaultAttributesIntegration']('heading');for(const _0x45e9dd of this['_headingOptions'])'paragraph'!=_0x45e9dd['model']&&_0x759bc3['descriptionFactory']['registerElementLabel'](_0x45e9dd['model'],_0x13d7be=>{const _0xcdb62=this['_getHeadingLevel'](_0x45e9dd['model']);return null!==_0xcdb62?_0x32b127(_0x13d7be,_0xcdb62):_0x3589cd(_0x13d7be,_0x45e9dd['title']);});function _0x32b127(_0x53d150,_0x4a469e){return c(_0x4cf315,'ELEMENT_HEADING',[_0x53d150,_0x4a469e]);}function _0x3589cd(_0x5e278a,_0x5e2ecb){return c(_0x4cf315,'ELEMENT_HEADING_CUSTOM',[_0x5e278a,_0x5e2ecb]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e1a93=this['editor'],_0x31ca00=_0x1e1a93['locale'];function _0x71cf77(_0xce456e,_0x444774){return c(_0x31ca00,'ELEMENT_HEADING_CUSTOM',[_0xce456e,_0x444774]);}_0x1e1a93['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f6937=>{if('formatBlock'!=_0x2f6937['type'])return;const {data:_0x39fd48}=_0x2f6937;if(_0x39fd48&&'heading'==_0x39fd48['commandName']){const _0x3f3388=_0x39fd48['commandParams'][0x0]['value'],_0x43cf02=this['_getHeadingLevel'](_0x3f3388);if(null!==_0x43cf02)return{'type':'format','content':c(_0x31ca00,'*Change\x20to:*\x20%0',(_0xaf069=0x1,_0x3b9dd4=_0x43cf02,c(_0x31ca00,'ELEMENT_HEADING',[_0xaf069,_0x3b9dd4])))};const _0x3f80fa=this['_headingOptions']['find'](_0x29adad=>_0x29adad['model']===_0x3f3388)['title'];return{'type':'format','content':c(_0x31ca00,'*Change\x20to:*\x20%0',_0x71cf77(0x1,_0x3f80fa))};}var _0xaf069,_0x3b9dd4;});}['_getHeadingLevel'](_0x107558){const _0x10f4f5=_0x107558['match'](/^heading(\d+)/);if(_0x10f4f5)return _0x10f4f5[0x1];const _0x4a3199=this['_headingOptions']?.['find'](_0x34926c=>_0x34926c['model']==_0x107558);if(_0x4a3199&&_0x4a3199['view']){const _0x1353b6=_0x4a3199['view'],_0x4eed2b=(_0x1353b6['name']??_0x1353b6)['match'](/^h(\d+)/);if(_0x4eed2b)return _0x4eed2b[0x1];}return null;}}class nt extends _0x5c1181{['afterInit'](){const _0x35b5f4=this['editor'];if(!_0x35b5f4['plugins']['has']('HighlightEditing'))return;const _0x41e01d=_0x35b5f4['plugins']['get']('TrackChangesEditing'),_0x313c2a=_0x35b5f4['locale'];_0x41e01d['enableDefaultAttributesIntegration']('highlight'),_0x41e01d['registerInlineAttribute']('highlight'),_0x41e01d['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x313c2a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x512dd1=this['editor'],_0x28287c=_0x512dd1['locale'];_0x512dd1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3efde5=>{if('formatInline'!=_0x3efde5['type'])return;const {data:_0x6d3670}=_0x3efde5;if(_0x6d3670&&'highlight'==_0x6d3670['commandName']){const _0x211986=_0x28287c['t'],_0x5b939e=_0x6d3670['commandParams'][0x0]['value'];if(_0x5b939e){const _0x11faed=_0x512dd1['config']['get']('highlight.options')['find'](_0x8f2101=>_0x8f2101['model']==_0x5b939e),_0x3af5aa=_0x211986(_0x11faed['title'])['toLowerCase']();return{'type':'format','content':c(_0x28287c,'*Set\x20highlight:*\x20%0',_0x3af5aa),'color':{'value':_0x11faed['color'],'title':_0x11faed['title']}};}return{'type':'format','content':c(_0x28287c,'*Remove\x20highlight*',c(_0x28287c,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x5c1181{['afterInit'](){const _0xc09fd8=this['editor'];if(!_0xc09fd8['plugins']['has']('HorizontalLineEditing'))return;_0xc09fd8['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5394e8=_0xc09fd8['plugins']['get']('TrackChangesEditing'),_0x8b7eff=_0xc09fd8['locale'];_0x5394e8['descriptionFactory']['registerElementLabel']('horizontalLine',_0x290e68=>c(_0x8b7eff,'ELEMENT_HORIZONTAL_LINE',_0x290e68)),_0xc09fd8['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3b8055,{writer:_0x2ac288,options:_0x35cd72})=>{if(!_0x35cd72['showSuggestionHighlights'])return null;const _0x2e1909=_0x2ac288['createContainerElement']('div'),_0x134878=_0x2ac288['createEmptyElement']('hr');return _0x2ac288['addClass']('ck-horizontal-line',_0x2e1909),_0x2ac288['insert'](_0x2ac288['createPositionAt'](_0x2e1909,0x0),_0x134878),_0x2e1909;},'converterPriority':'high'});}}class ot extends _0x5c1181{['afterInit'](){const _0x5ad426=this['editor'];if(!_0x5ad426['plugins']['has']('HtmlEmbed'))return;const _0x4dcbe9=_0x5ad426['plugins']['get']('TrackChangesEditing'),_0x56a21a=_0x5ad426['locale'];_0x4dcbe9['descriptionFactory']['registerElementLabel']('rawHtml',_0x2955f8=>c(_0x56a21a,'ELEMENT_HTML_EMBED',_0x2955f8)),_0x4dcbe9['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4dcbe9['registerBlockAttribute']('value'),_0x4dcbe9['descriptionFactory']['registerDescriptionCallback'](_0x323474=>{if('attribute'!=_0x323474['type'])return;const {data:_0x2f7787}=_0x323474;if(_0x2f7787&&'value'==_0x2f7787['key']&&_0x323474['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x18718b=c(_0x56a21a,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x56a21a,'*Change\x20%0\x20content*',_0x18718b)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b9b8f=this['editor'],_0x31b8b9=_0x5b9b8f['locale'];_0x5b9b8f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d3cdb=>{if('formatBlock'!=_0x3d3cdb['type'])return;const {data:_0x30cb4b}=_0x3d3cdb;if(_0x30cb4b&&'htmlEmbed'==_0x30cb4b['commandName']){const _0x1f31ef=c(_0x31b8b9,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x31b8b9,'*Change\x20%0\x20content*',_0x1f31ef)};}});}}class rt extends _0x5c1181{['afterInit'](){const _0x53d61f=this['editor'];if(!_0x53d61f['plugins']['has']('ImageEditing'))return;const _0x37c1a6=_0x53d61f['plugins']['get']('TrackChangesEditing'),_0x25851b=_0x53d61f['plugins']['get']('ImageUtils'),_0x297627=_0x53d61f['locale'];_0x37c1a6['enableCommand']('insertImage'),_0x37c1a6['descriptionFactory']['registerElementLabel']('imageBlock',_0x17393f=>c(_0x297627,'ELEMENT_IMAGE',_0x17393f)),_0x37c1a6['descriptionFactory']['registerElementLabel']('imageInline',_0x257179=>c(_0x297627,'ELEMENT_INLINE_IMAGE',_0x257179)),_0x37c1a6['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x297627,'ELEMENT_CAPTION')),_0x53d61f['plugins']['has']('ImageUploadEditing')&&_0x37c1a6['enableCommand']('uploadImage'),_0x53d61f['plugins']['has']('ImageBlockEditing')&&_0x53d61f['plugins']['has']('ImageInlineEditing')&&(_0x37c1a6['enableCommand']('imageTypeInline',(_0x16a32f,_0xcbd25e)=>{const _0x111385=_0x25851b['getClosestSelectedImageElement'](_0x53d61f['model']['document']['selection']);_0x53d61f['model']['change'](()=>{_0x37c1a6['markBlockFormat'](_0x111385,{'commandName':'imageTypeInline','commandParams':[_0xcbd25e]},[],'convertBlockImageToInline');});}),_0x37c1a6['enableCommand']('imageTypeBlock',(_0xaeacf3,_0x182b47)=>{_0x53d61f['model']['change'](_0x4ef4fc=>{let _0x538b7e=_0x25851b['getClosestSelectedImageElement'](_0x53d61f['model']['document']['selection']),_0x16639e=_0x4ef4fc['createRangeOn'](_0x538b7e);const _0x51fef3=_0xcc0df3['fromPosition'](_0x16639e['start'],'toPrevious'),_0xd9902d=_0xcc0df3['fromPosition'](_0x16639e['end'],'toNext');_0x37c1a6['forceDefaultExecution'](()=>_0xaeacf3(_0x182b47)),_0x538b7e=_0x25851b['getClosestSelectedImageElement'](_0x53d61f['model']['document']['selection']),_0x16639e=_0x4ef4fc['createRangeOn'](_0x538b7e);const _0x327745=_0x4ef4fc['createRange'](_0x51fef3,_0xd9902d);_0x51fef3['detach'](),_0xd9902d['detach'](),_0x37c1a6['markBlockFormat'](_0x538b7e,{'commandName':'imageTypeInline','commandParams':[_0x182b47]},[],'convertInlineImageToBlock'),_0x327745['start']['isBefore'](_0x16639e['start'])&&_0x37c1a6['markInsertion'](_0x4ef4fc['createRange'](_0x327745['start'],_0x16639e['start']),'convertInlineImageToBlock'),_0x16639e['end']['isBefore'](_0x327745['end'])&&_0x37c1a6['markInsertion'](_0x4ef4fc['createRange'](_0x16639e['end'],_0x327745['end']),'convertInlineImageToBlock');});}),_0x37c1a6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x37c1a6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x37c1a6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x37c1a6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x37c1a6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x37c1a6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3b62cf])=>{const _0x510553=_0x37c1a6['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x19c6ef=_0x3b62cf['start'],_0x27a82b=_0x3b62cf['end'];const _0xfc9c00=_0x53d61f['model']['schema']['getNearestSelectionRange'](_0x19c6ef,'backward'),_0x2f615b=_0x53d61f['model']['schema']['getNearestSelectionRange'](_0x27a82b,'forward');_0xfc9c00['isCollapsed']&&(_0x19c6ef=_0xfc9c00['start']),_0x2f615b['isCollapsed']&&(_0x27a82b=_0x2f615b['end']),_0x510553([_0x53d61f['model']['createRange'](_0x19c6ef,_0x27a82b)]);}),_0x37c1a6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xd3a944),_0x37c1a6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xd3a944)),_0x53d61f['plugins']['has']('ImageCaptionEditing')&&(_0x37c1a6['enableCommand']('toggleImageCaption',(_0x1f328a,_0x47e182)=>{const _0x4a2a00=_0x53d61f['plugins']['get']('ImageCaptionUtils');let _0x53337c=_0x25851b['getClosestSelectedImageElement'](_0x53d61f['model']['document']['selection']),_0xf6c982=_0x4a2a00['getCaptionFromImageModelElement'](_0x53337c);_0x53d61f['model']['change'](()=>{if(_0xf6c982)return void _0x37c1a6['markDeletion'](_0x53d61f['model']['createRangeOn'](_0xf6c982));const _0x1fb151=_0x25851b['isBlockImage'](_0x53337c);_0x1f328a(_0x47e182),_0x53337c=_0x25851b['getClosestSelectedImageElement'](_0x53d61f['model']['document']['selection']),_0xf6c982=_0x4a2a00['getCaptionFromImageModelElement'](_0x53337c),_0x37c1a6['markInsertion'](_0x53d61f['model']['createRangeOn'](_0xf6c982),_0x1fb151?null:'imageCaption');});}),_0x37c1a6['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xd3a944));const _0x31aaff=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x47909a(_0xbe84dc,_0x2f4c20){const _0x14ce0f=_0x31aaff['findIndex'](({type:_0x370c95,subType:_0x100d57})=>_0xbe84dc['type']==_0x370c95&&_0xbe84dc['subType']==_0x100d57),_0x5d5743=_0x31aaff['findIndex'](({type:_0x42182d,subType:_0x5dfd80})=>_0x2f4c20['type']==_0x42182d&&_0x2f4c20['subType']==_0x5dfd80);if(_0x14ce0f<0x0||_0x5d5743<0x0)return!0x1;const _0x4f54ad=_0xbe84dc['getFirstRange'](),_0x4f1ee7=_0x2f4c20['getFirstRange']();if((0x0==_0x14ce0f||0x1==_0x14ce0f)&&0x2==_0x5d5743&&_0x4f54ad['isIntersecting'](_0x4f1ee7))return!0x0;if(0x2==_0x14ce0f&&0x3==_0x5d5743){const _0xaa51d1=_0x37c1a6['_findSuggestions'](_0x4f54ad,'insertion')['filter'](({suggestion:_0x184053,meta:_0x3940d6})=>_0x3940d6['isOwn']&&'convertInlineImageToBlock'==_0x184053['subType']);if(_0xaa51d1['length']>0x1&&_0x4f1ee7['end']['isEqual'](_0x4f54ad['start']))return!0x0;if(0x1==_0xaa51d1['length']&&(_0x4f54ad['start']['isEqual'](_0x4f1ee7['end'])||_0x4f54ad['end']['isEqual'](_0x4f1ee7['start'])))return!0x0;}if(0x3==_0x14ce0f&&0x3==_0x5d5743&&_0x4f54ad['start']['isBefore'](_0x4f1ee7['start'])){const _0x494cb4=_0x4f54ad['end']['nodeAfter'],_0xc5ad86=_0x4f1ee7['start']['nodeBefore'];return _0x25851b['isBlockImage'](_0x494cb4)&&_0x494cb4===_0xc5ad86;}return!0x1;}function _0xd3a944(_0x34e9fb,_0x20853e){return _0x47909a(_0x34e9fb,_0x20853e)?[_0x34e9fb,_0x20853e]:_0x47909a(_0x20853e,_0x34e9fb)?[_0x20853e,_0x34e9fb]:null;}_0x53d61f['plugins']['has']('ImageResize')&&(_0x37c1a6['enableDefaultAttributesIntegration']('resizeImage'),_0x37c1a6['registerBlockAttribute']('resizedWidth'),_0x37c1a6['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x297627,'FORMAT_IMAGE_SIZE'))),_0x53d61f['plugins']['has']('ImageTextAlternativeEditing')&&(_0x37c1a6['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x37c1a6['registerBlockAttribute']('alt')),_0x53d61f['plugins']['has']('PictureEditing')&&(_0x37c1a6['registerBlockAttribute']('sources'),_0x37c1a6['descriptionFactory']['registerDescriptionCallback'](_0x54d3c9=>{if('attribute'!=_0x54d3c9['type'])return;const {data:_0xf82a1f}=_0x54d3c9;return _0xf82a1f&&'sources'==_0xf82a1f['key']?{'type':'format','content':''}:void 0x0;})),_0x53d61f['plugins']['has']('ImageSizeAttributes')&&(_0x37c1a6['registerBlockAttribute']('width'),_0x37c1a6['registerBlockAttribute']('height'),_0x37c1a6['descriptionFactory']['registerDescriptionCallback'](_0x53e055=>{if('attribute'!=_0x53e055['type'])return;const {data:_0x1a4ee0}=_0x53e055;return!_0x1a4ee0||'width'!=_0x1a4ee0['key']&&'height'!=_0x1a4ee0['key']?void 0x0:{'type':'format','content':''};})),_0x37c1a6['descriptionFactory']['registerDescriptionCallback'](_0x16b107=>{if(!!_0x31aaff['find'](({type:_0x40368b,subType:_0x38984e})=>_0x16b107['type']==_0x40368b&&_0x16b107['subType']==_0x38984e))return _0x16b107['previous']?{}:void 0x0;}),_0x37c1a6['descriptionFactory']['registerDescriptionCallback'](_0x4ad534=>{if('insertion'==_0x4ad534['type']||'deletion'==_0x4ad534['type']){const _0x92a124=_0x4ad534['getContainedElement']();if(_0x92a124&&_0x92a124['is']('element','caption'))return{'type':'insertion'==_0x4ad534['type']?'addObject':'removeObject','element':_0x92a124,'quantity':0x1};}}),_0x37c1a6['descriptionFactory']['registerDescriptionCallback'](_0x526906=>'formatBlock'==_0x526906['type']&&'convertInlineImageToBlock'==_0x526906['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x526906['type']&&'convertBlockImageToInline'==_0x526906['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x37c1a6['descriptionFactory']['registerDescriptionCallback'](_0x1d102a=>{if('attribute'!=_0x1d102a['type'])return;const {data:_0xc3837c}=_0x1d102a;if(!_0xc3837c||'alt'!=_0xc3837c['key'])return;const _0x252592=_0xc3837c['newValue'];return _0x252592?{'type':'format','content':c(_0x297627,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x252592+'\x22')}:{'type':'format','content':c(_0x297627,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ec4af=this['editor'],_0x40c06a=_0x3ec4af['locale'];_0x3ec4af['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26a69d=>{if('formatBlock'!=_0x26a69d['type']&&'formatInline'!=_0x26a69d['type'])return;const {data:_0xed4f5c}=_0x26a69d;if(_0xed4f5c){if('imageTextAlternative'==_0xed4f5c['commandName']){const _0x302a57=_0xed4f5c['commandParams'][0x0]['newValue'];return _0x302a57?{'type':'format','content':c(_0x40c06a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x302a57+'\x22')}:{'type':'format','content':c(_0x40c06a,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xed4f5c['commandName']){const _0x62e665=_0xed4f5c['commandParams'][0x0]['width'];return _0x62e665?{'type':'format','content':c(_0x40c06a,'*Set\x20image\x20width:*\x20%0',_0x62e665)}:{'type':'format','content':c(_0x40c06a,'*Reset\x20image\x20width*')};}}});}}class at extends _0x5c1181{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x424a7f=this['editor']['locale'],_0x812c40=this['editor']['plugins']['get']('TrackChangesEditing');_0x812c40['enableDefaultAttributesIntegration']('replaceImageSource'),_0x812c40['registerBlockAttribute']('src'),_0x812c40['descriptionFactory']['registerDescriptionCallback'](_0x1aa157=>{if('attribute'!=_0x1aa157['type'])return;const {data:_0x5aebbd}=_0x1aa157;return _0x5aebbd&&'src'==_0x5aebbd['key']?_0x5aebbd['newValue']&&_0x5aebbd['oldValue']?{'type':'format','content':c(_0x424a7f,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x43c68d=this['editor']['plugins']['get']('TrackChangesEditing');_0x43c68d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x43c68d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x43c68d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x43c68d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ae9cb=this['editor'],_0x51d09e=_0x3ae9cb['locale'];_0x3ae9cb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22aafe=>{if('formatBlock'!=_0x22aafe['type']&&'formatInline'!=_0x22aafe['type'])return;const {data:_0x33a43e}=_0x22aafe;if(!_0x33a43e||'replaceImageSource'!=_0x33a43e['commandName'])return;return{'type':'format','content':c(_0x51d09e,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x5c1181{['afterInit'](){const _0x3d71ce=this['editor'];if(!_0x3d71ce['plugins']['has']('ImageStyleEditing'))return;const _0x4ca04a=_0x3d71ce['plugins']['get']('TrackChangesEditing'),_0x28e8d8=_0x3d71ce['plugins']['get']('ImageUtils'),_0x3fbc86={};_0x4ca04a['enableCommand']('imageStyle',(_0x21465e,_0x587fa8)=>{const _0x10c8b8=_0x3d71ce['plugins']['get']('Users')['me'],_0xb28fe3=_0x3d71ce['commands']['get']('imageStyle');let _0x5e42e0=_0x28e8d8['getClosestSelectedImageElement'](_0x3d71ce['model']['document']['selection']),_0x45a081=_0x3d71ce['model']['createRangeOn'](_0x5e42e0),_0x26d149=_0xb28fe3['value'];if(_0x26d149==_0x587fa8['value'])return;const _0x4885d0={'commandName':'imageStyle','commandParams':[_0x587fa8],'formatGroupId':_0x1b595f()};_0x3d71ce['model']['change'](()=>{if(_0x4ca04a['getSuggestions']()['filter'](_0x554d11=>_0x554d11['isInContent']&&_0x10c8b8==_0x554d11['author']&&('formatBlock'==_0x554d11['type']||'formatInline'==_0x554d11['type'])&&('imageStylePreApply'==_0x554d11['subType']||'imageStylePostApply'==_0x554d11['subType'])&&_0x554d11['getFirstRange']()['isEqual'](_0x45a081))['forEach'](_0x3e74c7=>_0x4ca04a['discardSuggestion'](_0x3e74c7['head'])),_0x5e42e0=_0x28e8d8['getClosestSelectedImageElement'](_0x3d71ce['model']['document']['selection']),_0x45a081=_0x3d71ce['model']['createRangeOn'](_0x5e42e0),_0xb28fe3['refresh'](),_0x3d71ce['commands']['get']('imageTypeInline')['refresh'](),_0x3d71ce['commands']['get']('imageTypeBlock')['refresh'](),_0x26d149=_0xb28fe3['value'],_0x26d149!=_0x587fa8['value'])return _0x28e8d8['isInlineImage'](_0x5e42e0)&&_0xb28fe3['shouldConvertImageType'](_0x587fa8['value'],_0x5e42e0)?(_0x21465e({..._0x587fa8,'setImageSizes':!0x1}),_0x5e42e0=_0x28e8d8['getClosestSelectedImageElement'](_0x3d71ce['model']['document']['selection']),void _0x4ca04a['markBlockFormat'](_0x5e42e0,{..._0x4885d0,'commandReversedParams':[{'value':_0x26d149||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x28e8d8['isBlockImage'](_0x5e42e0)?_0x4ca04a['markBlockFormat'](_0x5e42e0,_0x4885d0,[],'imageStylePostApply'):_0x4ca04a['markInlineFormat'](_0x45a081,_0x4885d0,'imageStylePostApply'));});});for(const _0xfe93aa of _0x3d71ce['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3fbc86[_0xfe93aa['name']]=_0xfe93aa['title']['toLowerCase']();_0x4ca04a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4ca04a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4ca04a['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4ca04a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5cb6e4])=>{_0x28e8d8['setImageNaturalSizeAttributes'](_0x5cb6e4['getContainedElement']());}),_0x4ca04a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x6cd3d0,_0x21f92a)=>{_0x4ca04a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x6cd3d0,{'commandName':_0x21f92a['commandName'],'commandParams':_0x21f92a['commandReversedParams']});}),_0x4ca04a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x6d8b18,_0x230361){if(_0x20f4d2(_0x6d8b18,_0x230361))return[_0x6d8b18,_0x230361];if(_0x20f4d2(_0x230361,_0x6d8b18))return[_0x230361,_0x6d8b18];return null;});const _0x2b00bd=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x20f4d2(_0x9b1d4b,_0x51a11a){const _0x146a36=_0x2b00bd['findIndex'](({type:_0x50a32d,subType:_0x2eb204})=>_0x9b1d4b['type']==_0x50a32d&&_0x9b1d4b['subType']==_0x2eb204),_0x3055c8=_0x2b00bd['findIndex'](({type:_0x404ba8,subType:_0x2ca2a6})=>_0x51a11a['type']==_0x404ba8&&_0x51a11a['subType']==_0x2ca2a6);if(_0x146a36<0x0||_0x3055c8<0x0)return!0x1;const _0x5a11b1=_0x9b1d4b['getFirstRange'](),_0x4ff9b7=_0x51a11a['getFirstRange']();if((0x0==_0x146a36||0x1==_0x146a36)&&0x2==_0x3055c8&&_0x5a11b1['isIntersecting'](_0x4ff9b7))return!0x0;if(0x2==_0x146a36&&0x3==_0x3055c8){const _0x28768a=_0x4ca04a['_findSuggestions'](_0x5a11b1,'insertion')['filter'](({suggestion:_0x1dc732,meta:_0x170958})=>_0x170958['isOwn']&&'convertInlineImageToBlock'==_0x1dc732['subType']);if(_0x28768a['length']>0x1&&_0x4ff9b7['end']['isEqual'](_0x5a11b1['start']))return!0x0;if(0x1==_0x28768a['length']&&(_0x5a11b1['start']['isEqual'](_0x4ff9b7['end'])||_0x5a11b1['end']['isEqual'](_0x4ff9b7['start'])))return!0x0;}if(0x3==_0x146a36&&0x3==_0x3055c8&&_0x5a11b1['start']['isBefore'](_0x4ff9b7['start'])){const _0x2a0c01=_0x5a11b1['end']['nodeAfter'],_0xd3c6a5=_0x4ff9b7['start']['nodeBefore'];return _0x28e8d8['isBlockImage'](_0x2a0c01)&&_0x2a0c01===_0xd3c6a5;}return!0x1;}_0x3d71ce['model']['document']['registerPostFixer'](()=>{let _0x57c725=!0x1;const _0x32b6f2=Array['from'](_0x3d71ce['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xeede50,data:_0x5c1d26}of _0x32b6f2){const {group:_0x45706a,type:_0x16bb23,subType:_0x325745,id:_0x27452b}=_0x4ca04a['_splitMarkerName'](_0xeede50);if('suggestion'==_0x45706a&&_0x4ca04a['hasSuggestion'](_0x27452b)){if('formatBlock'==_0x16bb23&&('imageStylePreApply'==_0x325745||'imageStylePostApply'==_0x325745)){const _0x39e798=_0x4ca04a['getSuggestion'](_0x27452b);if(_0x5c1d26['newRange']){const _0x5c4a0d=_0x39e798['getFirstRange']()['getContainedElement']();if(_0x28e8d8['isBlockImage'](_0x5c4a0d))continue;_0x4ca04a['discardSuggestion'](_0x39e798),_0x57c725=!0x0;}}if('insertion'==_0x16bb23&&'imageCaption'==_0x325745&&!_0x5c1d26['newRange']){const _0x3fb36c=_0x4ca04a['getSuggestion'](_0x27452b);_0x3fb36c['next']&&_0x3fb36c['next']['isInContent']&&(_0x4ca04a['discardSuggestion'](_0x3fb36c['next']),_0x57c725=!0x0);}}}return _0x57c725;}),this['_registerLegacyDescription'](_0x3fbc86);}['_registerLegacyDescription'](_0x4b1cbc){const _0x40368d=this['editor'],_0x1d732e=_0x40368d['locale'];_0x40368d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b75aa=>{if('formatBlock'!=_0x5b75aa['type']&&'formatInline'!=_0x5b75aa['type'])return;const {data:_0x45ccba}=_0x5b75aa;if(!_0x45ccba||'imageStyle'!=_0x45ccba['commandName'])return;const _0x127c89=_0x45ccba['commandParams'][0x0]['value'];return _0x40be8f('side'===_0x127c89?c(_0x1d732e,'FORMAT_SIDE_IMAGE'):_0x4b1cbc[_0x127c89]||_0x127c89);function _0x40be8f(_0xf3ffe3){return{'type':'format','content':c(_0x1d732e,'*Format:*\x20%0',_0xf3ffe3)};}});}}class ut extends _0x5c1181{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x165e01){super(_0x165e01),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x531147=this['editor'],_0x28a9e3=_0x531147['commands']['get']('importWord'),_0x29edac=_0x531147['commands']['get']('trackChanges');_0x28a9e3&&(_0x28a9e3['on']('execute',(_0x5399ab,[,_0x522501])=>{this['_trackChangesValueDuringImport']=_0x29edac['value'],_0x522501['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x28a9e3,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x28a9e3,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x29edac['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x531147['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x42a1e1,_0x44f573){const {suggestions:_0x57cbe3}=_0x44f573,_0x43e95e=this['editor']['commands']['get']('trackChanges'),_0xec3471=_0x43e95e['value'];this['_trackChangesValueDuringImport']!==_0xec3471&&(_0x43e95e['execute'](),this['_trackChangesExecuted']=!0x0),_0x57cbe3&&_0x57cbe3['forEach'](({id:_0x54f8ab,type:_0x5db368,author:_0x265979,created_at:_0x11e4bc})=>{const _0x262f58={'id':_0x54f8ab,'type':_0x5db368,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x265979,'createdAt':_0x11e4bc?new Date(_0x11e4bc):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x262f58);});}}class ft extends _0x5c1181{['afterInit'](){const _0x382e84=this['editor'],_0x271550=_0x382e84['plugins']['get']('TrackChangesEditing');if(_0x382e84['plugins']['has']('IndentEditing')&&(_0x271550['enableCommand']('indent'),_0x271550['enableCommand']('outdent')),_0x382e84['plugins']['has']('IndentBlock')){for(const _0x5b145c of['indentBlock','outdentBlock'])_0x271550['enableDefaultAttributesIntegration'](_0x5b145c);}const _0x56a228=_0x382e84['locale'];_0x271550['registerBlockAttribute']('blockIndent'),_0x271550['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x56a228,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x443a0d=this['editor'],_0x3d1d4d=_0x443a0d['locale'],_0x4fa06d=_0x443a0d['plugins']['get']('TrackChangesEditing');_0x4fa06d['descriptionFactory']['registerDescriptionCallback'](_0x18222f=>{if('formatBlock'!=_0x18222f['type'])return;const {data:_0x2912ad}=_0x18222f;if(!_0x2912ad)return;if('indentBlock'!=_0x2912ad['commandName']&&'outdentBlock'!=_0x2912ad['commandName'])return;const _0x2f8572=_0x18222f['getItems']()[0x0],_0x3abacc=_0x4fa06d['descriptionFactory']['getItemLabel'](_0x2f8572);return'indentBlock'==_0x2912ad['commandName']?{'type':'format','content':c(_0x3d1d4d,'*Indent:*\x20%0',_0x3abacc)}:'outdentBlock'==_0x2912ad['commandName']?{'type':'format','content':c(_0x3d1d4d,'*Outdent:*\x20%0',_0x3abacc)}:void 0x0;});}}class ht extends _0x5c1181{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x5c1181{['afterInit'](){const _0x495644=this['editor'];if(!_0x495644['plugins']['has']('LinkEditing'))return;const _0x260428=_0x495644['plugins']['get']('TrackChangesEditing'),_0x22d3c0=_0x495644['commands']['get']('link');_0x260428['enableDefaultAttributesIntegration']('link'),_0x260428['enableDefaultAttributesIntegration']('unlink'),_0x260428['registerInlineAttribute']('linkHref');for(const _0xda141c of _0x22d3c0['manualDecorators'])_0x260428['registerInlineAttribute'](_0xda141c['id']),_0x260428['descriptionFactory']['registerAttributeLabel'](_0xda141c['id'],'link\x20('+_0xda141c['label']['toLowerCase']()+')');_0x260428['descriptionFactory']['registerDescriptionCallback'](_0x476b47=>{if('attribute'!=_0x476b47['type'])return;const {data:_0x525c05}=_0x476b47;if(!_0x525c05||'linkHref'!=_0x525c05['key'])return;const _0x14a924=_0x525c05['newValue'],_0xb269ef=_0x495644['locale'];return{'type':'format','content':null==_0x14a924?c(_0xb269ef,'*Remove\x20link*'):c(_0xb269ef,'*Set\x20link:*\x20%0','\x22'+_0x14a924+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x277f77=this['editor'],_0x493752=_0x277f77['locale'];_0x277f77['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x890deb=>{if('formatInline'!=_0x890deb['type'])return;const {data:_0x4073bb}=_0x890deb;if(_0x4073bb){if('link'==_0x4073bb['commandName']){const _0x3f3839=_0x4073bb['commandParams'][0x0];return{'type':'format','content':c(_0x493752,'*Set\x20link:*\x20%0','\x22'+_0x3f3839+'\x22')};}return'unlink'==_0x4073bb['commandName']?{'type':'format','content':c(_0x493752,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x5c1181{['afterInit'](){const _0x28ea8a=this['editor'],_0xb46465=_0x28ea8a['locale'];if(!_0x28ea8a['plugins']['has']('LegacyListEditing'))return;const _0x3a61b8=_0x28ea8a['plugins']['get']('TrackChangesEditing'),_0x1c2383=_0x28ea8a['plugins']['has']('LegacyTodoListEditing');function _0x27e1dc(_0x5e634c){return()=>{const _0x287f19=_0x28ea8a['model']['document']['selection'],_0x44beea=_0x28ea8a['commands']['get'](_0x5e634c);if(_0x44beea['value'])return void _0x28ea8a['execute']('paragraph',{});const _0x5b9f88=_0x5e634c['slice'](0x0,-0x4),_0x2607bf=function(_0x4e69ec,_0x5ae196,_0x5d4c25){let _0x2380ce=Array['from'](_0x4e69ec)['filter'](_0x302241=>function(_0x2a5901,_0x1a3ff8){return _0x1a3ff8['checkChild'](_0x2a5901['parent'],'listItem')&&!_0x1a3ff8['isObject'](_0x2a5901);}(_0x302241,_0x5d4c25));_0x2380ce=_0x2380ce['filter'](_0x1a641d=>!_0x1a641d['is']('element','listItem')||_0x1a641d['getAttribute']('listType')!=_0x5ae196);const _0x5f2ec4=new Set();for(const _0x2d0947 of _0x2380ce)_0x2d0947['is']('element','listItem')?_0x5f2ec4['add'](Le(_0x2d0947)):_0x5f2ec4['add'](_0x2d0947);return Array['from'](_0x5f2ec4);}(_0x287f19['getSelectedBlocks'](),_0x5b9f88,_0x28ea8a['model']['schema']);_0x28ea8a['model']['change'](()=>{for(const _0x30e9c8 of _0x2607bf)_0x3a61b8['markBlockFormat'](_0x30e9c8,{'commandName':_0x5e634c,'commandParams':[{'forceValue':!_0x44beea['value']}],'formatGroupId':'blockName'},Ee(_0x30e9c8));});};}function _0x3ef6dc(_0x408a0b){return()=>{const _0x55f5aa=function(_0x4eaba4){let _0x9eb5f5=Array['from'](_0x4eaba4);const _0x413627=_0x9eb5f5['findIndex'](_0x4b704a=>'listItem'!=_0x4b704a['name']);return _0x413627>-0x1&&(_0x9eb5f5=_0x9eb5f5['slice'](0x0,_0x413627)),_0x9eb5f5;}(_0x28ea8a['model']['document']['selection']['getSelectedBlocks']()),_0x3338f8=_0x28ea8a['model']['createRange'](_0x28ea8a['model']['createPositionAt'](_0x55f5aa[0x0],'before'),_0x28ea8a['model']['createPositionAt'](_0x55f5aa[_0x55f5aa['length']-0x1],'end'));_0x28ea8a['model']['change'](()=>{_0x3a61b8['markBlockFormat'](_0x3338f8,{'commandName':_0x408a0b,'commandParams':[],'formatGroupId':'listIndent'},function(_0x48f0b2){const _0x3950d1=new Set();for(const _0x467554 of _0x48f0b2){let _0x8d5b9b=_0x467554['nextSibling'];for(;_0x8d5b9b&&_0x8d5b9b['getAttribute']('listIndent')>_0x467554['getAttribute']('listIndent');)_0x3950d1['add'](_0x8d5b9b),_0x8d5b9b=_0x8d5b9b['nextSibling'];}return Array['from'](_0x3950d1);}(_0x55f5aa));});};}_0x3a61b8['enableCommand']('numberedList',_0x27e1dc('numberedList')),_0x3a61b8['enableCommand']('bulletedList',_0x27e1dc('bulletedList')),_0x1c2383&&_0x3a61b8['enableCommand']('todoList',_0x27e1dc('todoList')),_0x3a61b8['enableCommand']('indentList',_0x3ef6dc('indentList')),_0x3a61b8['enableCommand']('outdentList',_0x3ef6dc('outdentList')),_0x1c2383&&_0x3a61b8['enableCommand']('checkTodoList',()=>{const _0xe06984=_0x28ea8a['commands']['get']('checkTodoList'),_0x208f64=Array['from'](_0xe06984['_selectedElements']);_0x208f64['filter'](_0x4cc8f7=>_0x4cc8f7['getAttribute']('todoListChecked')!=_0xe06984['value']),_0x28ea8a['model']['change'](()=>{for(const _0x1b09ab of _0x208f64)_0x3a61b8['markBlockFormat'](_0x1b09ab,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xe06984['value']}]});});}),_0x3a61b8['descriptionFactory']['registerElementLabel']('listItem',_0x142ed0=>c(_0xb46465,'ELEMENT_LIST_ITEM',_0x142ed0)),_0x3a61b8['descriptionFactory']['registerDescriptionCallback'](_0xd5a4d2=>{if('formatBlock'!=_0xd5a4d2['type']&&'formatInline'!=_0xd5a4d2['type'])return;const {data:_0xf9654d}=_0xd5a4d2;if(_0xf9654d){if('numberedList'==_0xf9654d['commandName']||'bulletedList'==_0xf9654d['commandName']||'todoList'==_0xf9654d['commandName'])switch(_0xf9654d['commandName']['replace']('List','')){case'bulleted':return _0x5059f5(c(_0xb46465,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5059f5(c(_0xb46465,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5059f5(c(_0xb46465,'ELEMENT_TODO_LIST'));}if('indentList'==_0xf9654d['commandName'])return{'type':'format','content':c(_0xb46465,'*Indent:*\x20%0',c(_0xb46465,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xf9654d['commandName'])return{'type':'format','content':c(_0xb46465,'*Outdent:*\x20%0',c(_0xb46465,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xf9654d['commandName'])return _0xf9654d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xb46465,'*Check\x20item*')}:{'type':'format','content':c(_0xb46465,'*Uncheck\x20item*')};}function _0x5059f5(_0x9d6dd1){return{'type':'format','content':c(_0xb46465,'*Change\x20to:*\x20%0',_0x9d6dd1)};}});}}function Le(_0x50a7a6){const _0x10a38e=_0x50a7a6['getAttribute']('listIndent');if(0x0==_0x10a38e)return _0x50a7a6;let _0x399f8c=_0x50a7a6;for(;_0x50a7a6['previousSibling']&&_0x50a7a6['previousSibling']['is']('element','listItem');){const _0x5155b4=_0x50a7a6['previousSibling']['getAttribute']('listIndent');if(_0x5155b4==_0x10a38e)_0x399f8c=_0x50a7a6['previousSibling'];else{if(_0x5155b4<_0x10a38e)break;}_0x50a7a6=_0x50a7a6['previousSibling'];}return _0x399f8c;}function Ee(_0x33d74e){const _0x165808=[];if(_0x33d74e['is']('element','listItem')&&_0x33d74e['getAttribute']('listIndent')>0x0){let _0x21bb9e=_0x33d74e['nextSibling'];for(;_0x21bb9e&&'listItem'==_0x21bb9e['name']&&_0x21bb9e['getAttribute']('listIndent')==_0x33d74e['getAttribute']('listIndent');)_0x165808['push'](_0x21bb9e),_0x21bb9e=_0x21bb9e['nextSibling'];}return _0x165808;}class Q extends _0x5c1181{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4942d2=this['editor']['config']['get']('list.properties'),_0x32970f=this['editor']['plugins']['get']('TrackChangesEditing');_0x4942d2['styles']&&_0x32970f['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4942d2['reversed']&&_0x32970f['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4942d2['startIndex']&&_0x32970f['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x32970f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4f5deb,_0x147977={}){const _0x4562e7=this['editor']['plugins']['get']('TrackChangesEditing'),_0xffb982=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x4562e7['markMultiRangeBlockFormat'](_0xffb982,{'commandName':'listStyle','commandParams':[{'type':_0x147977['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1a120f,_0x9f5425={}){const _0x211fa7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5903c9=this['_getSuggestionBlocks'](_0x258714=>_0x258714['is']('element','listItem')&&'numbered'===_0x258714['getAttribute']('listType'));if(_0x5903c9['length']<0x1)return;const _0x44e113=_0x5903c9['map'](_0x3cb6f9=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3cb6f9,'before'),this['editor']['model']['createPositionAt'](_0x3cb6f9,0x0)));this['editor']['model']['change'](()=>{_0x211fa7['markMultiRangeBlockFormat'](_0x44e113,{'commandName':'listReversed','commandParams':[{'reversed':_0x9f5425['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4032a8,_0x48c399={}){const _0x533d85=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55ba65=this['_getSuggestionBlocks'](_0x32f963=>_0x32f963['is']('element','listItem')&&'numbered'===_0x32f963['getAttribute']('listType'));if(_0x55ba65['length']<0x1)return;const _0x46a274=_0x55ba65['map'](_0x3c6b5c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3c6b5c,'before'),this['editor']['model']['createPositionAt'](_0x3c6b5c,0x0)));this['editor']['model']['change'](()=>{_0x533d85['markMultiRangeBlockFormat'](_0x46a274,{'commandName':'listStart','commandParams':[{'startIndex':_0x48c399['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x341745){if('formatBlock'!=_0x341745['type']&&'formatInline'!=_0x341745['type'])return;const _0x1fe9b7=this['editor']['locale'],{data:_0x1ac6d1}=_0x341745;if(!_0x1ac6d1)return;let _0x29a43f,_0x4390c2;switch(_0x1ac6d1['commandName']){case'listStyle':_0x29a43f='*Change\x20to:*\x20%0',_0x4390c2={'type':'format','content':c(_0x1fe9b7,_0x29a43f,c(_0x1fe9b7,this['_getTranslationKeyForListStyle'](_0x1ac6d1['commandParams'][0x0]['type'])))};break;case'listReversed':_0x29a43f=_0x1ac6d1['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4390c2={'type':'format','content':c(_0x1fe9b7,_0x29a43f)};break;case'listStart':_0x29a43f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4390c2={'type':'format','content':c(_0x1fe9b7,_0x29a43f,_0x1ac6d1['commandParams'][0x0]['startIndex'])};}return _0x4390c2;}['_getSuggestionBlocksForListStyle'](){const _0x4f3b22=this['editor']['plugins']['get']('LegacyListUtils');let _0x3b6ebf=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3b6ebf[0x0]?.['is']('element','listItem')&&_0x3b6ebf['unshift'](..._0x4f3b22['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3b6ebf[_0x3b6ebf['length']-0x1]?.['is']('element','listItem')&&_0x3b6ebf['push'](..._0x4f3b22['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3b6ebf=[...new Set(_0x3b6ebf)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3b6ebf=_0x3b6ebf['filter'](_0x4ed106=>_0x4ed106['is']('element','listItem'))),_0x3b6ebf;}['_getSuggestionBlocks'](_0x83b986){const _0x231eee=this['editor']['plugins']['get']('LegacyListUtils');let _0x4f1f8e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x83b986)['map'](_0x336800=>{const _0x48de3c=this['editor']['model']['createPositionAt'](_0x336800,0x0);return[..._0x231eee['getSiblingNodes'](_0x48de3c,'backward'),..._0x231eee['getSiblingNodes'](_0x48de3c,'forward')];})['flat']();return _0x4f1f8e=[...new Set(_0x4f1f8e)],_0x4f1f8e;}['_getTranslationKeyForListStyle'](_0x403096){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x403096)||'default')['toUpperCase']()+'_LIST_'+_0x403096['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x5c1181{['afterInit'](){const _0x37b04e=this['editor'];if(!_0x37b04e['plugins']['has']('MediaEmbedEditing'))return;const _0x218137=_0x37b04e['plugins']['get']('TrackChangesEditing'),_0x165a01=_0x37b04e['locale'];_0x218137['enableCommand']('mediaEmbed'),_0x218137['descriptionFactory']['registerElementLabel']('media',_0x2a8a3b=>c(_0x165a01,'ELEMENT_MEDIA',_0x2a8a3b)),_0x37b04e['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x33133f,{writer:_0x258e52,options:_0x517341})=>{if(_0x517341['showSuggestionHighlights'])return _0x258e52['createEmptyElement']('div');},'converterPriority':'high'}),_0x37b04e['data']['downcastDispatcher']['on']('attribute:url:media',(_0x244c8c,_0x58ac2c,_0x317fa6)=>{_0x317fa6['options']['showSuggestionHighlights']&&_0x244c8c['stop']();},{'priority':'high'});}}class pt extends _0x5c1181{['afterInit'](){const _0x57c6bc=this['editor'];_0x57c6bc['plugins']['has']('MentionEditing')&&_0x57c6bc['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x5c1181{['afterInit'](){const _0x558a0c=this['editor'];if(!_0x558a0c['plugins']['has']('MergeFieldsEditing'))return;const _0x4c4db7=_0x558a0c['plugins']['get']('TrackChangesEditing'),_0x24cdda=_0x558a0c['locale'];_0x4c4db7['enableCommand']('insertMergeField'),_0x4c4db7['enableCommand']('insertMergeFieldBlock'),_0x4c4db7['enableCommand']('insertMergeFieldImage'),_0x4c4db7['descriptionFactory']['registerElementLabel']('mergeField',_0x521ad7=>c(_0x24cdda,'ELEMENT_MERGE_FIELD',_0x521ad7)),_0x4c4db7['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1aabed=>c(_0x24cdda,'ELEMENT_MERGE_FIELD',_0x1aabed)),_0x4c4db7['descriptionFactory']['registerDescriptionCallback'](_0x96cc0b=>{if('insertion'!=_0x96cc0b['type']&&'deletion'!=_0x96cc0b['type'])return;const _0x30a40e=_0x96cc0b['getContainedElement']();if(null==_0x30a40e)return;const _0x39a50d=_0x558a0c['plugins']['get']('MergeFieldsEditing');let _0x44d0d3;switch(_0x39a50d['getMergeFieldType'](_0x30a40e)){case null:return;case'image':{const _0x36bfa9=_0x39a50d['unwrapAffixes'](_0x30a40e['getAttribute']('src'));_0x44d0d3=_0x39a50d['getLabel'](_0x36bfa9)||_0x36bfa9;break;}default:{const _0x41a0be=_0x30a40e['getAttribute']('id');_0x44d0d3=_0x39a50d['getLabel'](_0x41a0be)||_0x41a0be;break;}}return'insertion'==_0x96cc0b['type']?{'type':'insertion','content':c(_0x24cdda,'*Insert:*\x20%0','\x22'+_0x44d0d3+'\x22\x20'+c(_0x24cdda,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x24cdda,'*Remove:*\x20%0','\x22'+_0x44d0d3+'\x22\x20'+c(_0x24cdda,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x5c1181{['afterInit'](){const _0xf7626c=this['editor'],_0xdd0d5f=_0xf7626c['plugins']['get']('TrackChangesEditing');_0xf7626c['plugins']['has']('MultiLevelList')&&(_0xdd0d5f['enableDefaultAttributesIntegration']('multiLevelList'),_0xdd0d5f['registerBlockAttribute']('listMarkerStyle'),_0xdd0d5f['descriptionFactory']['registerDescriptionCallback'](_0x5bed16=>this['handleDescriptions'](_0x5bed16)));}['handleDescriptions'](_0x489fea){const _0x39ad62=this['editor']['locale'],{data:_0x9f08cb}=_0x489fea,_0x867d32={'type':'format','content':''};if(_0x9f08cb&&'listMarkerStyle'==_0x9f08cb['key']){if(!_0x9f08cb['oldValue'])return{'type':'format','content':c(_0x39ad62,'*Set\x20format:*\x20%0',c(_0x39ad62,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x9f08cb['newValue']+')'};if(!_0x9f08cb['newValue']){let _0x38c3b8=_0x489fea['head'];for(;_0x38c3b8;){if(_0x38c3b8['data']&&'listType'==_0x38c3b8['data']['key']&&_0x38c3b8['data']['newValue'])return _0x867d32;_0x38c3b8=_0x38c3b8['next'];}return{'type':'format','content':c(_0x39ad62,'*Remove\x20format:*\x20%0',c(_0x39ad62,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x9f08cb['oldValue']+')'};}}}}class bt extends _0x5c1181{['afterInit'](){const _0x15a56c=this['editor'];if(!_0x15a56c['plugins']['has']('PageBreakEditing'))return;_0x15a56c['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x128e39=_0x15a56c['plugins']['get']('TrackChangesEditing'),_0x5c3984=_0x15a56c['locale'];_0x128e39['descriptionFactory']['registerElementLabel']('pageBreak',_0x4b6024=>c(_0x5c3984,'ELEMENT_PAGE_BREAK',_0x4b6024));}}class yt extends _0x5c1181{['afterInit'](){const _0x313f9a=this['editor'];if(!_0x313f9a['plugins']['has']('Paragraph'))return;const _0x271cde=_0x313f9a['locale'],_0x12527f=_0x313f9a['plugins']['get']('TrackChangesEditing');_0x12527f['descriptionFactory']['registerElementLabel']('paragraph',_0x5a3988=>c(_0x271cde,'ELEMENT_PARAGRAPH',_0x5a3988)),_0x12527f['enableDefaultAttributesIntegration']('paragraph'),_0x12527f['enableCommand']('insertParagraph'),_0x313f9a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x313f9a),{'priority':'highest'}),_0x313f9a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x662a84,_0x191d23,_0x2eb014)=>{_0x2eb014['options']['showSuggestionHighlights']&&nr(_0x313f9a,{'showActiveMarker':!0x1})(_0x662a84,_0x191d23,_0x2eb014);},{'priority':'highest'});const _0x5b2d78=_0x12527f['descriptionFactory'];_0x5b2d78['registerDescriptionCallback'](_0x104563=>{if('insertion'!==_0x104563['type'])return;const {start:_0xa419ca,end:_0x88adf0}=_0x104563['getFirstRange']();if(!_0xa419ca['isTouching'](_0x88adf0)||!_0xa419ca['nodeAfter'])return;const _0x58bbe1=_0x313f9a['model']['schema'],_0x403d6d=_0xa419ca['nodeAfter'];return _0x58bbe1['isBlock'](_0x403d6d)&&!_0x58bbe1['isLimit'](_0x403d6d)&&_0x58bbe1['checkChild'](_0x403d6d,'$text')?{'type':'insertion','content':c(_0x271cde,'*Insert:*\x20%0',_0x5b2d78['getItemLabel'](_0x403d6d,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3876e3=this['editor'],_0x1931ce=_0x3876e3['locale'];_0x3876e3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x575547=>{if('formatBlock'!=_0x575547['type'])return;const {data:_0x45f066}=_0x575547;return _0x45f066&&'paragraph'==_0x45f066['commandName']?{'type':'format','content':c(_0x1931ce,'*Change\x20to:*\x20%0',c(_0x1931ce,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x19a55b,{showActiveMarker:_0x5a805a=!0x0}={}){return(_0x1082e5,_0x3f1df0,_0xe16bef)=>{const _0x5eeedb=_0x19a55b['plugins']['get']('TrackChangesEditing'),_0x4deaaf=_0x3f1df0['markerRange']['start'],_0x5819c9=_0x3f1df0['markerRange']['end'],_0x20808d=_0x19a55b['model']['schema'];if(!_0x4deaaf['isTouching'](_0x5819c9)||!_0x4deaaf['nodeAfter'])return;const _0x12cdd0=_0x4deaaf['nodeAfter'];if(_0x20808d['isBlock'](_0x12cdd0)&&!_0x20808d['isLimit'](_0x12cdd0)&&_0x20808d['checkChild'](_0x12cdd0,'$text')){if(!_0xe16bef['consumable']['consume'](_0x3f1df0['markerRange'],_0x1082e5['name']))return;const {id:_0x4e6b3f,authorId:_0x38b303}=_0x5eeedb['_splitMarkerName'](_0x3f1df0['markerName']),_0xe5906=_0xe16bef['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x4e6b3f,'data-author-id':_0x38b303}),_0x358ef8=_0xe16bef['mapper']['toViewPosition'](_0x5819c9);_0x5a805a&&_0x5eeedb['activeMarkers']['includes'](_0x3f1df0['markerName'])&&_0xe16bef['writer']['addClass']('ck-suggestion-marker--active',_0xe5906),_0xe16bef['writer']['insert'](_0x358ef8,_0xe5906),_0xe16bef['mapper']['bindElementToMarker'](_0xe5906,_0x3f1df0['markerName']);}};}class jt extends _0x5c1181{['afterInit'](){const _0x544872=this['editor'];_0x544872['commands']['get']('replaceSource')&&_0x544872['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x5c1181{['afterInit'](){const _0x4c7034=this['editor'];if(!_0x4c7034['plugins']['has']('RemoveFormatEditing'))return;_0x4c7034['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x14b582=this['editor'];_0x14b582['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38c08a=>{if('formatBlock'!=_0x38c08a['type']&&'formatInline'!=_0x38c08a['type'])return;const {data:_0x3dffab}=_0x38c08a;return _0x3dffab&&'removeFormat'==_0x3dffab['commandName']?{'type':'format','content':c(_0x14b582['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x5c1181{['afterInit'](){const _0x14e339=this['editor'];if(!_0x14e339['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x378d96=_0x14e339['plugins']['get']('TrackChangesEditing');_0x378d96['enableCommand']('goToPreviousRestrictedEditingException'),_0x378d96['enableCommand']('goToNextRestrictedEditingException');const _0x21eeaf=_0x14e339['plugins']['get']('RestrictedEditingModeEditing');_0x21eeaf['enableCommand']('trackChanges'),_0x21eeaf['enableCommand']('acceptSuggestion'),_0x21eeaf['enableCommand']('discardSuggestion'),_0x21eeaf['enableCommand']('acceptAllSuggestions'),_0x21eeaf['enableCommand']('discardAllSuggestions'),_0x21eeaf['enableCommand']('acceptSelectedSuggestions'),_0x21eeaf['enableCommand']('discardSelectedSuggestions');}}class It extends _0x5c1181{['afterInit'](){const _0x2ab6f3=this['editor'];if(!_0x2ab6f3['plugins']['has']('ShiftEnter'))return;const _0x4c01a4=_0x2ab6f3['plugins']['get']('TrackChangesEditing');_0x4c01a4['enableCommand']('shiftEnter'),_0x2ab6f3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x2ab6f3),{'priority':'high'}),_0x2ab6f3['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x2ab6f3),{'priority':'high'}),_0x2ab6f3['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2d4e77,_0x57c849,_0x578b06)=>{_0x578b06['options']['showSuggestionHighlights']&&je(_0x2ab6f3,{'showActiveMarker':!0x1})(_0x2d4e77,_0x57c849,_0x578b06);}),_0x4c01a4['descriptionFactory']['registerElementLabel']('softBreak',_0x5c97a6=>c(_0x2ab6f3['locale'],'ELEMENT_LINE_BREAK',_0x5c97a6));}}function je(_0x51c80b,{showActiveMarker:_0x33b1aa=!0x0}={}){return(_0x2cf5ae,_0x35c851,_0x435b13)=>{const _0x5b948b=_0x51c80b['plugins']['get']('TrackChangesEditing');if(!_0x435b13['consumable']['test'](_0x35c851['markerRange'],_0x2cf5ae['name']))return;const _0x19d24c=_0x51c80b['model'];for(const _0xd3dc20 of _0x35c851['markerRange']['getItems']()){if(!_0xd3dc20['is']('element','softBreak'))continue;const _0x2c8328='deletion'==_0x35c851['markerName']['split'](':')[0x1]?'merge':'split',{id:_0xd72984,authorId:_0x590195}=_0x5b948b['_splitMarkerName'](_0x35c851['markerName']),_0x2d9190=_0x435b13['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2c8328,'data-suggestion':_0xd72984,'data-author-id':_0x590195}),_0x2f7f34=_0x435b13['mapper']['toViewPosition'](_0x19d24c['createPositionBefore'](_0xd3dc20));_0x33b1aa&&_0x5b948b['activeMarkers']['includes'](_0x35c851['markerName'])&&_0x435b13['writer']['addClass']('ck-suggestion-marker--active',_0x2d9190),_0x435b13['writer']['insert'](_0x2f7f34,_0x2d9190),_0x435b13['mapper']['bindElementToMarker'](_0x2d9190,_0x35c851['markerName']);}};}class _t extends _0x5c1181{['afterInit'](){const _0x1cfe32=this['editor'],_0x3bf2a1=_0x1cfe32['model'],_0x3e863e=_0x1cfe32['locale'];if(!_0x1cfe32['plugins']['has']('StandardEditingModeEditing'))return;const _0x1f3ed7=_0x1cfe32['plugins']['get']('TrackChangesEditing'),_0x50df6d='restrictedEditingException',_0x35e0b6=_0x1cfe32['commands']['get'](_0x50df6d);_0x1f3ed7['enableCommand'](_0x50df6d,(_0x360c93,_0x556ce6={})=>{const _0xfa6e35=_0x3bf2a1['document']['selection'];if(_0xfa6e35['isCollapsed'])return void _0x360c93(_0x556ce6);const _0x152b01=void 0x0!==_0x556ce6['forceValue']?_0x556ce6['forceValue']:!_0x35e0b6['value'];_0x3bf2a1['change'](()=>{const _0x45758e=Array['from'](_0xfa6e35['getRanges']());for(const _0x4d5603 of _0x45758e){const _0x585d1d=_0x152b01?[_0x4d5603]:io(_0x50df6d,_0x4d5603,_0x3bf2a1);for(const _0x5ecf77 of _0x585d1d)_0x1f3ed7['markInlineFormat'](_0x5ecf77,{'commandName':_0x50df6d,'commandParams':[{'forceValue':_0x152b01}]});}});}),_0x1f3ed7['descriptionFactory']['registerDescriptionCallback'](_0x494b42=>{if('formatBlock'!=_0x494b42['type']&&'formatInline'!=_0x494b42['type'])return;const {data:_0x1acf51}=_0x494b42;return _0x1acf51&&_0x1acf51['commandName']==_0x50df6d?_0x1acf51['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3e863e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x3e863e,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x5c1181{['afterInit'](){const _0x318ed9=this['editor'];if(!_0x318ed9['plugins']['has']('Style')||!_0x318ed9['plugins']['has']('DataSchema'))return;const _0x2d59d7=_0x318ed9['plugins']['get']('TrackChangesEditing'),_0x339337=_0x318ed9['locale'],_0x21cf3d=_0x318ed9['config']['get']('style')||{},_0x252131=_0x318ed9['plugins']['get']('GeneralHtmlSupport'),_0x416cd8=_0x318ed9['plugins']['get']('StyleUtils')['normalizeConfig'](_0x318ed9['plugins']['get']('DataSchema'),_0x21cf3d['definitions']);_0x2d59d7['enableDefaultAttributesIntegration']('style');const _0x1b1299=new Set();for(const _0x2631be of _0x416cd8['block']){const _0x177dae=_0x252131['getGhsAttributeNameForElement'](_0x2631be['element']);_0x1b1299['add'](_0x177dae);}const _0x5a5110=new Set();for(const _0x53623 of _0x416cd8['inline']){const _0x4450ec=_0x252131['getGhsAttributeNameForElement'](_0x53623['element']);_0x5a5110['add'](_0x4450ec);for(const _0xfee731 of _0x53623['ghsAttributes'])_0x5a5110['add'](_0xfee731);}for(const _0x39ed88 of _0x1b1299)_0x2d59d7['registerBlockAttribute'](_0x39ed88),_0x2d59d7['descriptionFactory']['registerAttributeLabel'](_0x39ed88,c(_0x339337,'FORMAT_STYLE'));for(const _0x5297d4 of _0x5a5110)_0x2d59d7['registerInlineAttribute'](_0x5297d4),_0x2d59d7['descriptionFactory']['registerAttributeLabel'](_0x5297d4,c(_0x339337,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3499ff=this['editor'],_0x12d355=_0x3499ff['locale'];_0x3499ff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x178aba=>{if('formatBlock'!=_0x178aba['type']&&'formatInline'!=_0x178aba['type'])return;const {data:_0x1f2507}=_0x178aba;return _0x1f2507&&'style'===_0x1f2507['commandName']?_0x1f2507['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x12d355,'*Set\x20format:*\x20%0',_0x1f2507['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x12d355,'*Remove\x20format:*\x20%0',_0x1f2507['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x5c1181{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1ef109){super(_0x1ef109),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x57e576=this['editor'],_0xa3374f=_0x57e576['model']['document']['selection'];if(!_0x57e576['plugins']['has']('TableEditing'))return;const _0xb11b81=_0x57e576['locale'],_0x8c1bf9=_0x57e576['plugins']['get']('TrackChangesEditing'),_0x1e2bb0=_0x57e576['plugins']['get']('TableUtils');_0x8c1bf9['descriptionFactory']['registerElementLabel']('table',_0x113a89=>c(_0xb11b81,'ELEMENT_TABLE',_0x113a89)),this['_setupColumnsRowsFixing'](),_0x8c1bf9['enableCommand']('insertTable'),_0x8c1bf9['enableCommand']('selectTableRow'),_0x8c1bf9['enableCommand']('selectTableColumn');for(const _0x2505f8 of['insertTableRowAbove','insertTableRowBelow']){const _0x3be292=_0x57e576['commands']['get'](_0x2505f8);_0x8c1bf9['enableCommand'](_0x2505f8,_0xd5ab25=>{_0x57e576['model']['change'](_0x3ec080=>{_0xd5ab25();const _0x4d6ea4='above'===_0x3be292['order'],_0x48dca6=_0x1e2bb0['getSelectionAffectedTableCells'](_0xa3374f),_0x1f203f=_0x1e2bb0['getRowIndexes'](_0x48dca6),_0x2d6ea2=_0x4d6ea4?_0x1f203f['first']-0x1:_0x1f203f['last']+0x1,_0x41cc91=_0x48dca6[0x0]['findAncestor']('table'),_0x345c1d=_0x1e2bb0['createTableWalker'](_0x41cc91,{'startRow':_0x2d6ea2,'endRow':_0x2d6ea2}),_0x3de694=Array['from'](_0x345c1d)['map'](_0x17b622=>_0x3ec080['createRangeOn'](_0x17b622['cell']));_0x8c1bf9['markMultiRangeInsertion'](_0x3de694,'tableRow');});});}for(const _0x1ac714 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5cf812=_0x57e576['commands']['get'](_0x1ac714);_0x8c1bf9['enableCommand'](_0x1ac714,_0x4583fd=>{_0x57e576['model']['change'](_0x374c66=>{_0x4583fd();const _0x15d843='left'===_0x5cf812['order'],_0x44efaf=_0x1e2bb0['getSelectionAffectedTableCells'](_0xa3374f),_0x3da570=_0x1e2bb0['getColumnIndexes'](_0x44efaf),_0x1e90ca=_0x15d843?_0x3da570['first']-0x1:_0x3da570['last']+0x1,_0x169b21=_0x44efaf[0x0]['findAncestor']('table'),_0x3e4d7c=_0x1e2bb0['createTableWalker'](_0x169b21,{'startRow':0x0,'column':_0x1e90ca,'includeAllSlots':!0x1}),_0x1dc74e=Array['from'](_0x3e4d7c)['map'](_0x645c02=>_0x374c66['createRangeOn'](_0x645c02['cell']));_0x8c1bf9['markMultiRangeInsertion'](_0x1dc74e,'tableColumn');});});}for(const _0x32b901 of['removeTableRow','removeTableColumn']){const _0x4f56e0=_0x32b901['substr'](0xb),_0x5d6c10=_0x4f56e0['toLowerCase'](),_0x404fb3=_0x5d6c10['substr'](0x0,0x3)+'span',_0x210c12='table'+_0x4f56e0,_0x2323d1='min'+_0x4f56e0,_0xbb2abd='max'+_0x4f56e0;_0x8c1bf9['enableCommand'](_0x32b901,()=>{_0x57e576['model']['change'](_0x354ead=>{const _0x569ff2=_0x1e2bb0['getSelectionAffectedTableCells'](_0xa3374f),_0x1487d0=_0x569ff2[0x0]['findAncestor']('table');let _0x24a66b;if('removeTableRow'==_0x32b901){const _0x3258cc=_0x1e2bb0['getRowIndexes'](_0x569ff2);_0x24a66b={'startRow':_0x3258cc['first'],'endRow':_0x3258cc['last'],'includeAllSlots':!0x0};}else{const _0x4a1fea=_0x1e2bb0['getColumnIndexes'](_0x569ff2);_0x24a66b={'startColumn':_0x4a1fea['first'],'endColumn':_0x4a1fea['last'],'includeAllSlots':!0x0};}const _0x13a4d1=_0x1e2bb0['createTableWalker'](_0x1487d0,_0x24a66b),_0x5228dd=Array['from'](_0x13a4d1)['map'](({cell:_0x328a6e})=>_0x328a6e),_0x267236=xe(_0x5228dd['filter'](_0x11f588=>_0x11f588['hasAttribute'](_0x404fb3))),_0x19e3c7=xe(_0x5228dd['filter'](_0x4e03d5=>!_0x4e03d5['hasAttribute'](_0x404fb3)))['map'](_0x397950=>_0x354ead['createRangeOn'](_0x397950)),_0x637803=_0x8c1bf9['markMultiRangeDeletion'](_0x19e3c7,_0x210c12);if(_0x637803&&('tableRow'==_0x637803['subType']||'tableColumn'==_0x637803['subType'])){const _0x4adf48=this['_getSuggestionCoords'](_0x637803);for(const _0x349518 of _0x267236){const _0x45194f=_0x354ead['createRangeOn'](_0x349518),_0x43dba1=_0x1e2bb0['getCellLocation'](_0x349518),_0x158157=_0x349518['getAttribute'](_0x404fb3)-0x1,_0x1c834b=_0x4adf48[_0x2323d1],_0x3ba80e=_0x4adf48[_0xbb2abd];_0x1c834b<=_0x43dba1[_0x5d6c10]&&_0x43dba1[_0x5d6c10]+_0x158157<=_0x3ba80e&&_0x637803['addRange'](_0x45194f);}}});});}function _0x5e713e(_0x52e2d5){const _0x4e3574=Array['from'](_0xa3374f['getRanges']())['map'](_0xdfa02c=>_0x597cd7['fromRange'](_0xdfa02c));_0x57e576['model']['change'](_0x3832b6=>{const _0x4d69bf=_0x3832b6['batch'];_0x52e2d5=_0x52e2d5['filter'](_0x1ff1cc=>'$graveyard'!=_0x1ff1cc['root']['rootName']),_0x3832b6['setSelection'](_0x52e2d5),_0x57e576['commands']['get']('removeTableRow')['refresh'](),_0x57e576['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x57e576['model']['enqueueChange'](()=>{_0x57e576['model']['enqueueChange'](_0x4d69bf,_0x3af659=>{const _0x451f69=_0x4e3574['filter'](_0x38de7e=>'$graveyard'!=_0x38de7e['root']['rootName']);_0x451f69['length']>0x0&&_0x3af659['setSelection'](_0x451f69);for(const _0x43d185 of _0x4e3574)_0x43d185['detach']();});});});}function _0x2c8f90(_0x30cfe9){_0x57e576['model']['change'](_0x285949=>{const _0x2a2b4a=Array['from'](_0xa3374f['getRanges']())['map'](_0x3626f2=>_0x597cd7['fromRange'](_0x3626f2)),_0x4be49a=[];for(const _0x1348e3 of _0x30cfe9)for(const _0x19c5d5 of _0x1348e3['getItems']({'shallow':!0x0}))_0x4be49a['push'](_0x19c5d5);for(const _0x15000f of _0x4be49a)'$graveyard'!=_0x15000f['root']['rootName']&&(_0x285949['setSelection'](_0x285949['createPositionAt'](_0x15000f,0x0)),_0x57e576['commands']['get']('removeTableColumn')['refresh'](),_0x57e576['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0xa073de=_0x2a2b4a['filter'](_0x25156e=>'$graveyard'!=_0x25156e['root']['rootName']);_0xa073de['length']>0x0&&_0x285949['setSelection'](_0xa073de);for(const _0x18d8b3 of _0x2a2b4a)_0x18d8b3['detach']();});}function _0x45dfd5(_0x1fde30,_0x4eeec6){return _0x4eeec6['every'](_0x34899f=>_0x1fde30['some'](_0x3b8d9a=>_0x3b8d9a['end']['isEqual'](_0x34899f['start'])||_0x34899f['end']['isEqual'](_0x3b8d9a['start'])));}function _0x647545(_0x3d041b,_0x3bc82d){return!_0x3d041b['some'](_0x3c36d1=>_0x3bc82d['some'](_0x429bfd=>_0x3c36d1['isIntersecting'](_0x429bfd)))&&_0x3d041b['some'](_0x51462f=>_0x3bc82d['some'](_0x4dade5=>_0x51462f['end']['isTouching'](_0x4dade5['start'])));}_0x57e576['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x772040,_0xc7fca3,_0x47d182)=>{if(!_0x47d182['options']['showSuggestionHighlights'])return;const _0x21df90=_0xc7fca3['item'];if(!_0x21df90||!_0x21df90['is']('element','tableCell'))return;const _0x4776ab=_0x47d182['mapper']['toViewElement'](_0x21df90);if(_0x4776ab){const {id:_0x4b7e53,authorId:_0x276ef5}=_0x8c1bf9['_splitMarkerName'](_0xc7fca3['markerName']);_0x3adf2c(_0x4776ab,_0x47d182['writer'],(_0x139e90,_0x22ea14,_0x4dec12)=>{_0x4dec12['addClass'](_0x4f6f0d(_0x22ea14['classes']),_0x139e90),_0x4dec12['setAttribute']('data-suggestion-id',_0x4b7e53,_0x139e90),_0x4dec12['setAttribute']('data-author-id',_0x276ef5,_0x139e90);},(_0x2b8146,_0x2e88d4,_0x5dade7)=>{_0x5dade7['removeClass'](_0x4f6f0d(_0x2e88d4['classes']),_0x2b8146),_0x5dade7['removeAttribute']('data-suggestion-id',_0x2b8146),_0x5dade7['removeAttribute']('data-author-id',_0x2b8146);});}},{'priority':'highest'}),_0x8c1bf9['descriptionFactory']['registerDescriptionCallback'](_0x55bb87=>{if('insertion'!=_0x55bb87['type']&&'deletion'!=_0x55bb87['type'])return;const _0x3f7cf5=_0x55bb87['getContainedElement']();if(null!=_0x3f7cf5&&_0x3f7cf5['is']('element','table')){if('insertion'==_0x55bb87['type']){const _0x5dffc6=_0x55bb87['getItems']()['filter'](_0x37bdc4=>_0x37bdc4['is']('$textProxy'))['map'](_0x11d980=>_0x11d980['data']);if(_0x5dffc6['length'])return{'type':'insertion','content':c(_0xb11b81,'*Insert:*\x20%0',c(_0xb11b81,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5dffc6['join']('\x20')+'\x22'))};}if('deletion'==_0x55bb87['type']){const _0x233bb2=_0x55bb87['getItems']()['filter'](_0x32ea12=>_0x32ea12['is']('$textProxy'))['map'](_0x449d34=>_0x449d34['data']);if(_0x233bb2['length'])return{'type':'deletion','content':c(_0xb11b81,'*Remove:*\x20%0',c(_0xb11b81,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x233bb2['join']('\x20')+'\x22'))};}}}),_0x8c1bf9['descriptionFactory']['registerDescriptionCallback'](_0x361650=>{if('tableRow'==_0x361650['subType']){const _0x493699=_0x361650['getItems']()['filter'](_0x11ba87=>_0x11ba87['is']('$textProxy'))['map'](_0x16374f=>_0x16374f['data']),_0x2fda7d=this['_getSuggestionCoords'](_0x361650),_0x4efdbc=_0x2fda7d['maxRow']-_0x2fda7d['minRow']+0x1;if('insertion'==_0x361650['type'])return _0x493699['length']?{'type':'insertion','content':c(_0xb11b81,'*Insert:*\x20%0',c(_0xb11b81,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4efdbc,'\x22'+_0x493699['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0xb11b81,'*Insert:*\x20%0',c(_0xb11b81,'ELEMENT_TABLE_ROW',_0x4efdbc))};if('deletion'==_0x361650['type'])return _0x493699['length']?{'type':'deletion','content':c(_0xb11b81,'*Remove:*\x20%0',c(_0xb11b81,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4efdbc,'\x22'+_0x493699['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0xb11b81,'*Remove:*\x20%0',c(_0xb11b81,'ELEMENT_TABLE_ROW',_0x4efdbc))};}if('tableColumn'==_0x361650['subType']){const _0x1a074a=_0x361650['getItems']()['filter'](_0x402499=>_0x402499['is']('$textProxy'))['map'](_0x3062b8=>_0x3062b8['data']),_0x3ab509=this['_getSuggestionCoords'](_0x361650),_0x2598bc=_0x3ab509['maxColumn']-_0x3ab509['minColumn']+0x1;if('insertion'==_0x361650['type'])return _0x1a074a['length']?{'type':'insertion','content':c(_0xb11b81,'*Insert:*\x20%0',c(_0xb11b81,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2598bc,'\x22'+_0x1a074a['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0xb11b81,'*Insert:*\x20%0',c(_0xb11b81,'ELEMENT_TABLE_COLUMN',_0x2598bc))};if('deletion'==_0x361650['type'])return _0x1a074a['length']?{'type':'deletion','content':c(_0xb11b81,'*Remove:*\x20%0',c(_0xb11b81,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2598bc,'\x22'+_0x1a074a['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0xb11b81,'*Remove:*\x20%0',c(_0xb11b81,'ELEMENT_TABLE_COLUMN',_0x2598bc))};}}),_0x8c1bf9['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5e713e),_0x8c1bf9['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5e713e),_0x8c1bf9['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2c8f90),_0x8c1bf9['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2c8f90),_0x8c1bf9['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x45dfd5),_0x8c1bf9['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x45dfd5),_0x8c1bf9['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x647545),_0x8c1bf9['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x647545);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4a3b1d=this['editor'],_0x3e4d81=_0x4a3b1d['model']['document']['selection'];return(_0x4c7641,_0x27f545)=>{_0x4a3b1d['model']['change'](_0x7b835=>{const {commandName:_0x3db69f,commandParams:_0x1bebbc}=_0x27f545;let _0x5d4cb4=_0x4c7641[0x0]['end']['nodeBefore'];_0x1bebbc&&_0x1bebbc[0x0]&&!0x1===_0x1bebbc[0x0]['forceValue']&&(_0x5d4cb4=_0x4c7641[0x0]['start']['nodeAfter']);const _0x2c0c31=_0x7b835['createRangeIn'](_0x5d4cb4);if('$graveyard'==_0x2c0c31['root']['rootName'])return;const _0x25d38f=Array['from'](_0x3e4d81['getRanges']())['map'](_0x45dba2=>_0x597cd7['fromRange'](_0x45dba2));_0x7b835['setSelection'](_0x2c0c31),_0x4a3b1d['commands']['get'](_0x3db69f)['refresh'](),_0x1bebbc['push']({'forceDefaultExecution':!0x0}),_0x4a3b1d['execute'](_0x3db69f,..._0x1bebbc);const _0x54adf6=_0x25d38f['filter'](_0x33529d=>'$graveyard'!=_0x33529d['root']['rootName']);_0x54adf6['length']>0x0&&_0x7b835['setSelection'](_0x54adf6);for(const _0x1017a5 of _0x25d38f)_0x1017a5['detach']();});};}['_getCoordsForCells'](_0x3902bc){const _0x2dd335=this['editor']['plugins']['get']('TableUtils');let _0x4a1679=Number['MAX_SAFE_INTEGER'],_0x4bf90f=Number['MIN_SAFE_INTEGER'],_0x2a8448=Number['MAX_SAFE_INTEGER'],_0x3aa7a3=Number['MIN_SAFE_INTEGER'];for(const _0x51142b of _0x3902bc){if('$graveyard'==_0x51142b['root']['rootName'])continue;const {row:_0x918ce8,column:_0x4d40bc}=_0x2dd335['getCellLocation'](_0x51142b),_0x414cff=_0x51142b['hasAttribute']('rowspan')?_0x51142b['getAttribute']('rowspan')-0x1:0x0,_0x387c16=_0x51142b['hasAttribute']('colspan')?_0x51142b['getAttribute']('colspan')-0x1:0x0;_0x4a1679=_0x918ce8<_0x4a1679?_0x918ce8:_0x4a1679,_0x4bf90f=_0x918ce8+_0x414cff>_0x4bf90f?_0x918ce8+_0x414cff:_0x4bf90f,_0x2a8448=_0x4d40bc<_0x2a8448?_0x4d40bc:_0x2a8448,_0x3aa7a3=_0x4d40bc+_0x387c16>_0x3aa7a3?_0x4d40bc+_0x387c16:_0x3aa7a3;}return{'minRow':_0x4a1679,'maxRow':_0x4bf90f,'minColumn':_0x2a8448,'maxColumn':_0x3aa7a3};}['_setupColumnsRowsFixing'](){const _0x51c472=this['editor'],_0x5e8aee=_0x51c472['plugins']['get']('TrackChangesEditing'),_0x4da5a8=_0x51c472['plugins']['get']('TableUtils');_0x51c472['model']['document']['on']('change:data',()=>{const _0x47f6f0=Array['from'](_0x51c472['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x25698b,data:_0x3aeba3}of _0x47f6f0){const {group:_0x21beb7,id:_0x35fcea,subType:_0x55e64b}=_0x5e8aee['_splitMarkerName'](_0x25698b);if('suggestion'!=_0x21beb7)continue;if(null!=_0x3aeba3['oldRange'])continue;const _0x516d17=_0x5e8aee['getSuggestion'](_0x35fcea);this['_tablePostFixingSubtypes']['includes'](_0x55e64b)&&this['_tableSuggestions']['add'](_0x516d17);}},{'priority':'low'});const _0xbea5bc=(_0x16c669,_0x4d7da4)=>{let _0x10aab2=!0x1;const _0x13fab=_0x4d7da4['createRangeOn'](_0x16c669),_0x263c90=_0x16c669['findAncestor']('table'),_0x4bcce8=_0x4da5a8['getCellLocation'](_0x16c669);for(const _0x415c89 of this['_tableSuggestions']){const _0x45bcd8=_0x415c89['subType'],_0x20e6b8=_0x45bcd8['startsWith']('tablePaste'),_0x597ae7=_0x45bcd8['substr'](_0x20e6b8?0xa:0x5),_0x1be13f=_0x597ae7['toLowerCase'](),_0x40dd92=_0x1be13f['substr'](0x0,0x3)+'span',_0x68a9bd='min'+_0x597ae7,_0x44932a='max'+_0x597ae7;if(!_0x415c89['isInContent'])continue;if(_0x263c90!=_0x415c89['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x415c89['isIntersectingWithRange'](_0x13fab))continue;const _0x30a02c=_0x16c669['hasAttribute'](_0x40dd92)?_0x16c669['getAttribute'](_0x40dd92)-0x1:0x0,_0x5480a0=this['_getSuggestionCoords'](_0x415c89),_0x197036=_0x5480a0[_0x68a9bd],_0x47d768=_0x5480a0[_0x44932a];_0x197036<=_0x4bcce8[_0x1be13f]&&_0x4bcce8[_0x1be13f]+_0x30a02c<=_0x47d768&&(_0x415c89['addRange'](_0x13fab),_0x10aab2=!0x0);}return _0x10aab2;};_0x51c472['model']['document']['registerPostFixer'](_0x40e61e=>{let _0x2986d1=!0x1;for(const _0x588482 of _0x51c472['model']['document']['differ']['getChanges']())if('insert'==_0x588482['type']){if('tableRow'==_0x588482['name']){for(const _0x3799e0 of _0x588482['position']['nodeAfter']['getChildren']())_0x2986d1=_0x2986d1||_0xbea5bc(_0x3799e0,_0x40e61e);}else'tableCell'==_0x588482['name']&&(_0x2986d1=_0x2986d1||_0xbea5bc(_0x588482['position']['nodeAfter'],_0x40e61e));}return _0x2986d1;});}['_getSuggestionCoords'](_0x3e9edc){return this['_getCoordsForCells'](_0x3e9edc['getRanges']()['map'](_0x4cbf2b=>_0x4cbf2b['start']['nodeAfter']));}}function xe(_0xd3f111){return Array['from'](new Set(_0xd3f111)['values']());}class Nt extends _0x5c1181{static get['requires'](){return[Ct];}['afterInit'](){const _0x118743=this['editor'],_0x22fb83=_0x118743['model']['document']['selection'],_0x56df16=_0x118743['locale'];if(!_0x118743['plugins']['has']('TableEditing'))return;const _0xba5eed=_0x118743['plugins']['get']('TrackChangesEditing'),_0x19f79f=_0x118743['plugins']['get']('TableUtils'),_0x30dc06=_0x118743['plugins']['get'](Ct);_0x30dc06['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xba5eed['enableCommand']('mergeTableCells',()=>{const _0x2ed95f=_0x19f79f['getSelectionAffectedTableCells'](_0x118743['model']['document']['selection']);_0x118743['model']['change'](()=>{_0xba5eed['markMultiRangeBlockFormat'](_0x2ed95f,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x118743['commands']['get']('mergeTableCells')['on']('execute',(_0x115638,_0x20034a)=>{_0x118743['commands']['get']('trackChanges')['value']&&(_0x20034a['length']>0x0&&_0x20034a[_0x20034a['length']-0x1]&&_0x20034a[_0x20034a['length']-0x1]['forceDefaultExecution']||_0xba5eed['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x115638['stop']());},{'priority':'highest'});for(const _0x1bb830 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x33d15d=_0x118743['commands']['get'](_0x1bb830);_0xba5eed['enableCommand'](_0x1bb830,()=>{const _0x48358d=_0x118743['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x42664f=>_0x42664f['is']('element','tableCell')),_0x2e688c=_0x33d15d['value'];_0x118743['model']['change'](()=>{_0xba5eed['markMultiRangeBlockFormat']([_0x48358d,_0x2e688c],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3971bf of['splitTableCellVertically','splitTableCellHorizontally']){const _0x588bb9=_0x118743['commands']['get'](_0x3971bf);_0xba5eed['enableCommand'](_0x3971bf,()=>{const _0x129405=_0x19f79f['getSelectionAffectedTableCells'](_0x118743['model']['document']['selection'])[0x0],_0x5c4e7c=_0x129405['findAncestor']('table'),{column:_0x1b036b,row:_0x29cec9}=_0x19f79f['getCellLocation'](_0x129405);let _0x1cabc6=[];if('horizontally'==_0x588bb9['direction']){const _0x2270f9=_0x19f79f['createTableWalker'](_0x5c4e7c,{'startRow':_0x29cec9,'endRow':_0x29cec9,'includeAllSlots':!0x0});_0x1cabc6=Array['from'](_0x2270f9)['map'](_0x1cedb9=>_0x1cedb9['cell']);}else{const _0x38f608=_0x19f79f['createTableWalker'](_0x5c4e7c,{'column':_0x1b036b,'includeAllSlots':!0x0});_0x1cabc6=Array['from'](_0x38f608)['map'](_0x38c993=>_0x38c993['cell']);}_0x118743['model']['change'](_0x4e1ac5=>{_0xba5eed['markBlockFormat'](_0x4e1ac5['createRangeOn'](_0x129405),{'commandName':_0x3971bf,'commandParams':[]},_0x1cabc6,_0x3971bf);});});}_0xba5eed['descriptionFactory']['registerDescriptionCallback'](_0x4e6dea=>{if('formatBlock'!=_0x4e6dea['type']&&'formatInline'!=_0x4e6dea['type'])return;const {data:_0x1042de}=_0x4e6dea;return _0x1042de&&'mergeTableCells'==_0x1042de['commandName']?{'type':'format','content':c(_0x56df16,'*Merge\x20cells*')}:void 0x0;}),_0xba5eed['descriptionFactory']['registerDescriptionCallback'](_0x52cbaf=>{if('formatBlock'!=_0x52cbaf['type']&&'formatInline'!=_0x52cbaf['type'])return;const {data:_0x3f658a}=_0x52cbaf;return _0x3f658a?'splitTableCellVertically'==_0x3f658a['commandName']?{'type':'format','content':c(_0x56df16,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3f658a['commandName']?{'type':'format','content':c(_0x56df16,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x56b17c=_0x30dc06['_acceptFormatSuggestionCallbackFactory']();for(const _0x539c33 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xba5eed['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x539c33,'accept',_0x56b17c);for(const _0x3e4937 of['splitTableCellVertically','splitTableCellHorizontally'])_0xba5eed['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3e4937,'accept',_0x56b17c);_0xba5eed['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x42658a=>{_0x118743['model']['change'](_0x4f3031=>{const _0x562f0f=Array['from'](_0x22fb83['getRanges']())['map'](_0x2fb9b3=>_0x597cd7['fromRange'](_0x2fb9b3));_0x4f3031['setSelection'](_0x42658a),_0x118743['commands']['get']('mergeTableCells')['refresh'](),_0x118743['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x43b3b8=_0x562f0f['filter'](_0x76a11b=>'$graveyard'!=_0x76a11b['root']['rootName']);_0x43b3b8['length']>0x0&&_0x4f3031['setSelection'](_0x43b3b8);for(const _0x17f383 of _0x562f0f)_0x17f383['detach']();});});for(const _0x6f8b78 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x31b405=_0x118743['commands']['get'](_0x6f8b78);_0x31b405['on']('set:isEnabled',(_0x35ff14,_0x6cbec1,_0x5222e6)=>{if(_0x5222e6){const _0x1d7033=_0x118743['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3cc38f=>_0x3cc38f['is']('element','tableCell'));this['_areMergableCells'](_0x31b405['value'],_0x1d7033)||(_0x35ff14['return']=!0x1,_0x35ff14['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3d33ec=this['editor']['commands']['get']('mergeTableCells'),_0x74b01a=this['editor']['plugins']['get']('TableUtils');if(!_0x3d33ec['isEnabled'])return!0x1;const _0x404937=_0x74b01a['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2d95d8 of _0x404937)for(const _0x1db6bf of _0x404937)if(_0x2d95d8!=_0x1db6bf&&!this['_areMergableCells'](_0x2d95d8,_0x1db6bf))return!0x1;return!0x0;}['_areMergableCells'](_0x4f2c9f,_0x453b53){const _0x174cc6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a4e0d=this['editor']['model']['createRangeOn'](_0x4f2c9f),_0x5609f7=this['editor']['model']['createRangeOn'](_0x453b53),_0x1f3d28=new Set(),_0x4f2f1c=new Set();for(const _0x4e5811 of _0x174cc6['getSuggestions']())if(('insertion'==_0x4e5811['type']||'deletion'==_0x4e5811['type']||'mergeTableCells'==_0x4e5811['subType'])&&_0x4e5811['isInContent']){for(const _0x43701a of _0x4e5811['getRanges']())_0x43701a['containsRange'](_0x2a4e0d,!0x0)&&_0x1f3d28['add'](_0x4e5811['type']+':'+_0x4e5811['author']['id']),_0x43701a['containsRange'](_0x5609f7,!0x0)&&_0x4f2f1c['add'](_0x4e5811['type']+':'+_0x4e5811['author']['id']);}if(_0x1f3d28['size']!=_0x4f2f1c['size'])return!0x1;for(const _0x19782c of _0x1f3d28)if(!_0x4f2f1c['has'](_0x19782c))return!0x1;return!0x0;}}class Dt extends _0x5c1181{static get['requires'](){return[Ct];}['afterInit'](){const _0x5114ef=this['editor'];if(!_0x5114ef['plugins']['has']('TableEditing'))return;const _0x432e28=_0x5114ef['locale'],_0x2fa127=_0x5114ef['plugins']['get']('TrackChangesEditing');_0x2fa127['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2fa127['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2fa127['registerBlockAttribute']('headingRows'),_0x2fa127['registerBlockAttribute']('headingColumns'),_0x2fa127['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x432e28,'FORMAT_HEADER_ROW')),_0x2fa127['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x432e28,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x280e7f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4946db=this['editor']['plugins']['get']('TableUtils'),_0x32b77d=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x6f8e46({showActiveMarker:_0x3895cd=!0x0,setDataAttribute:_0x6a502c=!0x0}={}){return(_0x14b264,_0x2b56fb,_0x9b882e)=>{const {type:_0x33e6a1,id:_0x1b33d2}=_0x280e7f['_splitMarkerName'](_0x2b56fb['markerName']),_0x4a538d=_0x280e7f['getSuggestion'](_0x1b33d2),_0x122f79=_0x4a538d['data'];if('formatBlock'!=_0x4a538d['type']||!_0x122f79||'setTableColumnHeader'!=_0x122f79['commandName'])return;if(_0x2b56fb['item'])return void _0x14b264['stop']();if(!_0x9b882e['consumable']['consume'](_0x2b56fb['markerRange'],_0x14b264['name']))return;const _0x4ba097=_0x2b56fb['markerRange']['start']['nodeAfter'],_0xaec9ca=_0x2b56fb['markerRange']['end']['nodeBefore'],_0x4a92ae=_0x4ba097['parent']['parent'],{column:_0x5ba43e}=_0x4946db['getCellLocation'](_0x4ba097),{column:_0x39a2df}=_0x4946db['getCellLocation'](_0xaec9ca);for(let _0xef3aff=_0x5ba43e;_0xef3aff<=_0x39a2df;_0xef3aff++){const _0xd1e047=_0x4946db['createTableWalker'](_0x4a92ae,{'column':_0xef3aff,'includeAllSlots':!0x1});for(const _0x4cf010 of _0xd1e047){const _0x12e85c=_0x4cf010['cell'],_0x5aef2f=_0x9b882e['mapper']['toViewElement'](_0x12e85c);_0x9b882e['writer']['addClass']('ck-suggestion-marker-'+_0x33e6a1,_0x5aef2f),_0x6a502c&&_0x9b882e['writer']['setAttribute']('data-suggestion',_0x1b33d2,_0x5aef2f),_0x9b882e['mapper']['bindElementToMarker'](_0x5aef2f,_0x2b56fb['markerName']),_0x3895cd&&(_0x280e7f['activeMarkers']['includes'](_0x2b56fb['markerName'])?_0x9b882e['writer']['addClass']('ck-suggestion-marker--active',_0x5aef2f):_0x9b882e['writer']['removeClass']('ck-suggestion-marker--active',_0x5aef2f));}}};}_0x280e7f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x32b77d),_0x280e7f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x32b77d),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x6f8e46(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3db401,_0x3d00c3,_0x2a2e61)=>{_0x2a2e61['options']['showSuggestionHighlights']&&_0x6f8e46({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3db401,_0x3d00c3,_0x2a2e61);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4856a7,_0x21dd47,_0x82cb43)=>{const {type:_0x315457,id:_0x4fb6e4}=_0x280e7f['_splitMarkerName'](_0x21dd47['markerName']),_0x20b7be=_0x280e7f['getSuggestion'](_0x4fb6e4),_0x93b82b=_0x20b7be['data'];if('formatBlock'!=_0x20b7be['type']||!_0x93b82b||'setTableColumnHeader'!=_0x93b82b['commandName'])return;const _0x2c3b6f=_0x82cb43['mapper']['markerNameToElements'](_0x21dd47['markerName']);if(_0x2c3b6f){for(const _0x1f959d of _0x2c3b6f)_0x82cb43['writer']['removeClass']('ck-suggestion-marker-'+_0x315457,_0x1f959d),_0x82cb43['writer']['removeClass']('ck-suggestion-marker--active',_0x1f959d),_0x82cb43['writer']['removeAttribute']('data-suggestion',_0x1f959d),_0x82cb43['mapper']['unbindElementFromMarkerName'](_0x1f959d,_0x21dd47['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7c1297=this['editor'],_0x1a813b=_0x7c1297['locale'];function _0x526e5a(_0x170fcf){return{'type':'format','content':c(_0x1a813b,'*Format:*\x20%0',_0x170fcf)};}_0x7c1297['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4697e1=>{if('formatBlock'!=_0x4697e1['type'])return;const {data:_0x269050}=_0x4697e1;if(_0x269050){if('setTableRowHeader'==_0x269050['commandName']){const _0x27bef4=_0x269050['commandParams'][0x0]['forceValue'];return _0x526e5a(c(_0x1a813b,_0x27bef4?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x269050['commandName']){const _0x31857d=_0x269050['commandParams'][0x0]['forceValue'];return _0x526e5a(c(_0x1a813b,_0x31857d?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x5c1181{['afterInit'](){const _0x1e8da9=this['editor'],_0x276247=_0x1e8da9['locale'],_0x5d4cf8=_0x1e8da9['plugins']['get']('TrackChangesEditing');function _0x2ac53d(_0x14ce99){return{'type':'format','content':''+c(_0x276247,'*Set\x20table\x20type:*\x20%0',_0x14ce99)};}_0x1e8da9['plugins']['has']('TableLayout')&&(_0x5d4cf8['enableCommand']('insertTableLayout'),_0x5d4cf8['enableDefaultAttributesIntegration']('tableType'),_0x5d4cf8['registerBlockAttribute']('tableType'),_0x5d4cf8['descriptionFactory']['registerElementLabel'](_0xb0cfdb=>_0xb0cfdb['is']('element','table')&&'layout'===_0xb0cfdb['getAttribute']('tableType'),_0x47075e=>c(_0x276247,'ELEMENT_LAYOUT_TABLE',_0x47075e)),_0x5d4cf8['descriptionFactory']['registerDescriptionCallback'](_0x325f01=>{const {data:_0x341fbc}=_0x325f01;if(_0x341fbc&&'tableType'==_0x341fbc['key'])switch(_0x341fbc['newValue']){case'layout':return _0x2ac53d(c(_0x276247,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x2ac53d(c(_0x276247,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x12ed10=>[_0x12ed10,null]));class $t extends _0x5c1181{static get['requires'](){return[Ct];}['afterInit'](){const _0x73ff8=this['editor'];if(!_0x73ff8['plugins']['has']('TableClipboard'))return;const _0x57f583=_0x73ff8['plugins']['get']('TrackChangesEditing'),_0x1737f5=_0x73ff8['plugins']['get']('TableUtils'),_0x4dc73d=_0x73ff8['plugins']['get'](Ct),_0x4926c3=_0x73ff8['plugins']['get']('TableClipboard'),_0x543fe4=_0x73ff8['plugins']['get']('TableSelection'),_0x374e84=_0x73ff8['plugins']['get'](_0x47d534);_0x4dc73d['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x73ff8['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x73ff8['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x46c0f0=null,_0x5b47af=!0x1;_0x374e84['on']('contentInsertion',(_0x2e16e6,_0x518a5c)=>{_0x5b47af='paste'===_0x518a5c['method'];}),_0x73ff8['model']['on']('insertContent',(_0x320b37,_0x2a1264)=>{if(!_0x5b47af&&null===_0x543fe4['getSelectedTableCells']())return;const [_0x446dc1,_0x5b5b36]=_0x2a1264,_0x5c5935=_0x2a1264[_0x2a1264['length']-0x1];_0x5c5935&&_0x5c5935['forceDefaultExecution']||_0x57f583['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x7e0f93,_0x240f10,_0x4011ed,_0x257b07,_0x28d98b){if(_0x240f10&&!_0x240f10['is']('documentSelection'))return!0x1;const _0x351046=_0x28d98b['getTableIfOnlyTableInContent'](_0x7e0f93,_0x4011ed);if(!_0x351046||!He(_0x351046,void 0x0,_0x257b07))return!0x1;const _0x45affd=_0x257b07['getSelectionAffectedTableCells'](_0x4011ed['document']['selection']);if(!_0x45affd['length'])return!0x1;const _0x38f035=_0x45affd[0x0]['findAncestor']('table'),_0x4414b0=_0x257b07['getRowIndexes'](_0x45affd),_0x2c4d42=_0x257b07['getColumnIndexes'](_0x45affd),_0x572745={'startRow':_0x4414b0['first'],'endRow':_0x4414b0['last'],'startColumn':_0x2c4d42['first'],'endColumn':_0x2c4d42['last']};return 0x1==_0x45affd['length']&&(_0x572745['endRow']+=_0x257b07['getRows'](_0x351046)-0x1,_0x572745['endColumn']+=_0x257b07['getColumns'](_0x351046)-0x1),He(_0x38f035,_0x572745,_0x257b07);}(_0x446dc1,_0x5b5b36,_0x73ff8['model'],_0x1737f5,_0x4926c3)&&(_0x320b37['stop'](),_0x46c0f0={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x73ff8['model']['change'](()=>{_0x73ff8['model']['insertContent'](_0x2a1264[0x0],_0x2a1264[0x1],_0x2a1264[0x2],{'forceDefaultExecution':!0x0});const _0x574895=_0x1b595f(),{rowInsertionRanges:_0x18dd96,columnInsertionRanges:_0x539803,insertionRanges:_0x334640,deletionRanges:_0x293b4d,cells:_0x5bdeb5}=_0x46c0f0;_0x18dd96['length']&&_0x57f583['markMultiRangeInsertion'](_0x18dd96,'tablePasteRow',{'tablePasteChainId':_0x574895}),_0x539803['length']&&_0x57f583['markMultiRangeInsertion'](_0x539803,'tablePasteColumn',{'tablePasteChainId':_0x574895}),_0x334640['length']&&(_0x57f583['markMultiRangeInsertion'](_0x334640,'tablePaste',{'tablePasteChainId':_0x574895,'skipNestingCheck':!0x0}),_0x334640['forEach'](_0xfbfafc=>_0xfbfafc['detach']?.())),_0x293b4d['length']&&(_0x57f583['markMultiRangeDeletion'](_0x293b4d,'tablePaste',{'tablePasteChainId':_0x574895,'skipNestingCheck':!0x0}),_0x293b4d['forEach'](_0x1aef95=>_0x1aef95['detach']?.()));const _0x38d19e=_0x57f583['markMultiRangeBlockFormat'](_0x5bdeb5['map'](({element:_0x3e482a})=>_0x3e482a),{'formatGroupId':_0x1b595f()},[],'tablePasteCell',{'tablePasteChainId':_0x574895});if(_0x38d19e){const _0x5f062e=_0x38d19e['getMarkers'](),_0x53e8ad=[];for(const {element:_0x598b50,attributes:_0x1d3f26}of _0x5bdeb5){if(!_0x1d3f26)continue;const _0x2ea6bc=_0x73ff8['model']['createRangeOn'](_0x598b50),_0x44848b=_0x5f062e['find'](_0x1328d9=>_0x1328d9['getRange']()['isEqual'](_0x2ea6bc));_0x44848b&&_0x53e8ad['push']([_0x44848b['name'],_0x1d3f26]);}_0x53e8ad['length']&&_0x38d19e['setAttribute']('markerAttributes',Object['fromEntries'](_0x53e8ad));}_0x46c0f0=null;}));},{'priority':_0x4b8f33['high']+0xa}),_0x374e84['on']('contentInsertion',()=>{_0x5b47af=!0x1;},{'priority':'lowest'}),_0x73ff8['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5d6c80,_0x39e42d)=>{const [_0x9ff03e,_0x4c1621,,_0x8d7076]=_0x39e42d;if(!_0x46c0f0)return;_0x5d6c80['stop']();const _0x3ba080=_0x9ff03e['cell'],_0x3791fd=_0x4c1621,_0x1700c7=De(_0x3ba080),_0x3ef618=De(_0x3791fd);_0x5d6c80['return']=_0x3ba080;let _0x31e5b7=null,_0x1c7ffc=null;if(_0x3ef618||_0x1700c7){if(_0x1700c7&&!_0x3ef618){_0x8d7076['remove'](_0x3ba080['getChild'](0x0));for(const _0x39a105 of Array['from'](_0x3791fd['getChildren']()))_0x8d7076['insert'](_0x39a105,_0x3ba080,'end');const _0x72e7ef=_0x46c0f0['rowInsertionIndexes']['includes'](_0x9ff03e['row']),_0x296e77=_0x46c0f0['columnInsertionIndexes']['includes'](_0x9ff03e['column']);_0x72e7ef||_0x296e77||(_0x31e5b7=_0x597cd7['fromRange'](_0x8d7076['createRangeIn'](_0x3ba080)));}else _0x3ef618&&!_0x1700c7&&(_0x1c7ffc=_0x8d7076['createRangeIn'](_0x3ba080));}else{const _0x365c2f=_0x8d7076['createElement']('tableCellSuggestion'),_0x3e8c81=_0x8d7076['createElement']('tableCellSuggestion');_0x8d7076['wrap'](_0x8d7076['createRangeIn'](_0x3ba080),_0x3e8c81),_0x8d7076['insert'](_0x365c2f,_0x3ba080,0x0);for(const _0x31020a of Array['from'](_0x3791fd['getChildren']()))_0x8d7076['insert'](_0x31020a,_0x365c2f,'end');_0x31e5b7=_0x597cd7['fromRange'](_0x8d7076['createRangeOn'](_0x365c2f)),_0x1c7ffc=_0x597cd7['fromRange'](_0x8d7076['createRangeOn'](_0x3e8c81));}const _0x51a8a0=Array['from'](_0x3791fd['getAttributes']())['filter'](([_0x10bfe3])=>Oe['includes'](_0x10bfe3));_0x46c0f0['cells']['push']({'element':_0x3ba080,'attributes':_0x51a8a0['length']?Object['fromEntries'](_0x51a8a0):null}),_0x31e5b7&&_0x46c0f0['insertionRanges']['push'](_0x31e5b7),_0x1c7ffc&&_0x46c0f0['deletionRanges']['push'](_0x1c7ffc);},{'priority':'high'}),_0x1737f5['on']('insertColumns',(_0x2a968c,_0x422223)=>{const [_0x1ec8f0,_0x41440c={}]=_0x422223;if(!_0x46c0f0)return;const _0x1609cd=_0x41440c['at']||0x0,_0x12fde7=_0x41440c['columns']||0x1;_0x46c0f0['columnInsertionIndexes']=new Array(_0x12fde7)['fill'](_0x1609cd)['map']((_0x39eb9a,_0xa6bc08)=>_0x39eb9a+_0xa6bc08);for(const {cell:_0x4cb6dc}of _0x1737f5['createTableWalker'](_0x1ec8f0,{'startColumn':_0x1609cd,'endColumn':_0x1609cd+_0x12fde7-0x1}))_0x46c0f0['columnInsertionRanges']['push'](_0x73ff8['model']['createRangeOn'](_0x4cb6dc));},{'priority':'low'}),_0x1737f5['on']('insertRows',(_0x2cf119,_0x180d23)=>{const [_0x5439dc,_0x2c0bb3={}]=_0x180d23;if(!_0x46c0f0)return;const _0xf5ba1c=_0x2c0bb3['at']||0x0,_0x1bcc63=_0x2c0bb3['rows']||0x1;_0x46c0f0['rowInsertionIndexes']=new Array(_0x1bcc63)['fill'](_0xf5ba1c)['map']((_0x49c7a3,_0xa817ae)=>_0x49c7a3+_0xa817ae);for(const {cell:_0x171578}of _0x1737f5['createTableWalker'](_0x5439dc,{'startRow':_0xf5ba1c,'endRow':_0xf5ba1c+_0x1bcc63-0x1}))_0x46c0f0['rowInsertionRanges']['push'](_0x73ff8['model']['createRangeOn'](_0x171578));},{'priority':'low'}),_0x57f583['descriptionFactory']['registerDescriptionCallback'](_0x3ee1db=>{if(_0x3ee1db['subType']&&_0x3ee1db['subType']['startsWith']('tablePaste'))return _0x3ee1db['previous']?{}:{'type':'insertion','content':c(_0x73ff8['locale'],'*Replace\x20table\x20cells*')};});const _0x3edf0e=()=>!0x1;for(const _0x5da8ab of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x57f583['_suggestionFactory']['registerCustomCallback']('insertion',_0x5da8ab,'join',_0x3edf0e),_0x57f583['_suggestionFactory']['registerCustomCallback']('deletion',_0x5da8ab,'join',_0x3edf0e),_0x57f583['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5da8ab,'join',_0x3edf0e);_0x57f583['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3edf0e),_0x57f583['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x53b615,_0x342703,_0x591bae)=>{const _0x1d4fe2=_0x53b615['map'](_0x35c2bd=>_0x35c2bd['getContainedElement']())['filter'](_0x29716d=>_0x29716d),_0x5a4a99=new Map(_0x1d4fe2['map'](_0x8a72b9=>[_0x8a72b9,null]));if(_0x46c0f0){for(const {element:_0x5963f7,attributes:_0x14eb9b}of _0x46c0f0['cells'])_0x14eb9b&&_0x5a4a99['set'](_0x5963f7,_0x14eb9b);}else{if(_0x591bae&&_0x591bae['markerAttributes'])for(const [_0x49fd7c,_0x5ab748]of Object['entries'](_0x591bae['markerAttributes'])){const _0x278a41=_0x73ff8['model']['markers']['get'](_0x49fd7c),_0x36535c=_0x278a41?_0x278a41['getRange']()['getContainedElement']():null;_0x36535c&&_0x5a4a99['set'](_0x36535c,_0x5ab748);}}_0x73ff8['model']['change'](_0x549734=>{for(const [_0x20ae9a,_0x4f6ec0]of _0x5a4a99)_0x549734['setAttributes']({...Ue,..._0x4f6ec0},_0x20ae9a);});});const _0x17b9ff=(_0x204047,_0x401e6e)=>{_0x57f583['_suggestionFactory']['registerCustomCallback'](_0x204047,'tablePaste',_0x401e6e,(_0x70f32b,_0x5b14b3,_0x1857ef)=>{_0x73ff8['model']['change'](_0x1e07dd=>{const _0x48be72=[];for(const _0x8b203f of _0x70f32b){const _0x77af71=_0x8b203f['start']['nodeAfter'];_0x77af71['is']('element','tableCellSuggestion')&&_0x48be72['push'](_0x77af71);}_0x57f583['_suggestionFactory']['getSuggestionCallback'](_0x204047,null,_0x401e6e)(_0x70f32b,_0x5b14b3,_0x1857ef);for(const _0x4fca3c of _0x48be72)'$graveyard'!=_0x4fca3c['root']['rootName']&&_0x1e07dd['unwrap'](_0x4fca3c);});});};_0x17b9ff('insertion','accept'),_0x17b9ff('insertion','discard'),_0x17b9ff('deletion','accept'),_0x17b9ff('deletion','discard'),_0x57f583['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5973ef=>{const _0x2611c5=_0x5973ef['map'](_0x158b48=>_0x158b48['getContainedElement']()),_0x240273=_0x2611c5[0x0]['findAncestor']('table'),{minRow:_0x1b97f1,maxRow:_0x20bcbc}=_0x4dc73d['_getCoordsForCells'](_0x2611c5);_0x1737f5['removeRows'](_0x240273,{'at':_0x1b97f1,'rows':_0x20bcbc-_0x1b97f1+0x1});}),_0x57f583['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xd5eb66=>{const _0x2a8b7d=_0xd5eb66['map'](_0x88d2f4=>_0x88d2f4['getContainedElement']()),_0x407c91=_0x2a8b7d[0x0]['findAncestor']('table'),{minColumn:_0x46e219,maxColumn:_0x178516}=_0x4dc73d['_getCoordsForCells'](_0x2a8b7d);_0x1737f5['removeColumns'](_0x407c91,{'at':_0x46e219,'columns':_0x178516-_0x46e219+0x1});});const _0x94e5e9=(_0x24169a,_0x3354c0)=>{if(!_0x3354c0['subType']||!_0x3354c0['subType']['startsWith']('tablePaste'))return;const _0x5f747e=_0x3354c0['attributes']['tablePasteChainId'],_0x37c937=_0x57f583['getSuggestions']()['filter'](_0x1539fd=>_0x1539fd['isInContent']&&_0x1539fd['attributes']&&_0x1539fd['attributes']['tablePasteChainId']==_0x5f747e);_0x37c937['length']&&_0x3354c0['getAllAdjacentSuggestions']()['length']!=_0x37c937['length']&&_0x37c937['reduce']((_0x26d444,_0x230816)=>(_0x26d444['next']=_0x230816,_0x230816['previous']=_0x26d444,_0x230816));};function _0x2b0a57(_0x57beea,_0x1ac47f=!0x0){const {id:_0xeaa9ed,authorId:_0x1f5fa1}=_0x57f583['_splitMarkerName'](_0x57beea['markerName']),_0x312e7a=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5094c1=_0x57f583['activeMarkers']['includes'](_0x57beea['markerName']);return _0x5094c1&&_0x312e7a['push']('ck-suggestion-marker--active'),{'classes':_0x312e7a,'attributes':{'data-suggestion':_0xeaa9ed,'data-author-id':_0x1f5fa1},'priority':_0x5094c1&&_0x1ac47f?0xbc2:0xbb8};}_0x57f583['on']('suggestionLoaded',_0x94e5e9,{'priority':'high'}),_0x57f583['on']('suggestionUnloaded',_0x94e5e9,{'priority':'high'}),_0x73ff8['model']['document']['registerPostFixer'](()=>{let _0x1eeabf=!0x1;const _0x292c88=Array['from'](_0x73ff8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x42de37,data:_0x2ce2f6}of _0x292c88){const {group:_0x4eac86,type:_0x46d34b,id:_0x320522}=_0x57f583['_splitMarkerName'](_0x42de37);if('suggestion'!=_0x4eac86||'deletion'!=_0x46d34b||_0x2ce2f6['oldRange'])continue;if(!_0x57f583['hasSuggestion'](_0x320522))continue;const _0x28dc55=_0x57f583['getSuggestion'](_0x320522)['getRanges'](),_0x3cb35a=_0x73ff8['plugins']['get']('Users')['me'];for(const _0x92704b of _0x57f583['getSuggestions']()){if(!_0x92704b['isInContent']||_0x92704b['author']!=_0x3cb35a)continue;if('formatBlock'!=_0x92704b['type']||'tablePasteCell'!=_0x92704b['subType'])continue;if(_0x92704b['getRanges']()['every'](_0x3076c2=>_0x28dc55['some'](_0x3efc84=>_0x3efc84['containsRange'](_0x3076c2,!0x0)))){for(const _0x2a2516 of _0x92704b['getAllAdjacentSuggestions']())_0x2a2516['isInContent']&&(_0x2a2516['discard'](),_0x1eeabf=!0x0);}}}return _0x1eeabf;}),_0x73ff8['model']['document']['registerPostFixer'](_0xc257cd=>{const _0x4087f2=_0x73ff8['commands']['get']('redo');if(!_0x4087f2||!_0x4087f2['_createdBatches']['has'](_0xc257cd['batch']))return!0x1;let _0x397a69=!0x1;const _0x103dfe=_0x73ff8['plugins']['get']('Users')['me'],_0x1a7661=_0x73ff8['model']['document']['differ']['getChanges'](),_0x3ab427=Array['from'](_0x73ff8['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x21f894,data:_0x329c6a})=>{const {group:_0x46ca97,subType:_0x401b37,authorId:_0x2be004}=_0x57f583['_splitMarkerName'](_0x21f894);return'suggestion'==_0x46ca97&&'tablePaste'==_0x401b37&&_0x2be004==_0x103dfe['id']&&!_0x329c6a['oldRange'];});for(const _0x1e4f40 of _0x1a7661){if('insert'!=_0x1e4f40['type']||'tableCellSuggestion'!=_0x1e4f40['name']||0x1!=_0x1e4f40['length'])continue;const _0x1a9354=_0xc257cd['createRange'](_0x1e4f40['position'],_0x1e4f40['position']['getShiftedBy'](0x1));if(!_0x3ab427['find'](({data:_0x26b28e})=>_0x26b28e['newRange']['isEqual'](_0x1a9354))){for(const {name:_0x124dee,data:_0x52b0d8}of _0x3ab427)if(_0x1a9354['containsRange'](_0x52b0d8['newRange'])){_0xc257cd['updateMarker'](_0x124dee,{'range':_0x1a9354}),_0x397a69=!0x0;break;}}}return _0x397a69;}),_0x73ff8['model']['document']['registerPostFixer'](_0x570ce7=>{let _0x31695c=!0x1;const _0x55002d=_0x73ff8['plugins']['get']('Users')['me'],_0x400629=_0x57f583['getSuggestions']()['filter'](_0x435e9e=>_0x435e9e['isInContent']&&_0x435e9e['author']==_0x55002d),_0x1ae5f4=new Set(),_0xecf94d=new Set();for(const _0x4e35a0 of _0x400629)if('tablePaste'==_0x4e35a0['subType'])for(const _0x16dbf1 of _0x4e35a0['getMarkers']()){const _0x26c214=_0x16dbf1['getRange']()['getContainedElement']();if(_0x26c214){if(_0x26c214['is']('element','tableCellSuggestion')&&De(_0x26c214)){_0x4e35a0['removeMarker'](_0x16dbf1['name']),_0x1ae5f4['add'](_0x26c214),_0x31695c=!0x0;const _0x363230=_0x26c214['nextSibling'],_0x259456=_0x26c214['previousSibling'],_0x3d0ec3=_0x363230&&_0x363230['is']('element','tableCellSuggestion'),_0x5b699b=_0x259456&&_0x259456['is']('element','tableCellSuggestion');_0x3d0ec3&&!_0x1ae5f4['has'](_0x363230)&&_0xecf94d['add'](_0x363230),_0x5b699b&&!_0x1ae5f4['has'](_0x259456)&&_0xecf94d['add'](_0x259456);}else _0x26c214['is']('element','paragraph')&&_0x26c214['isEmpty']&&(_0x4e35a0['removeMarker'](_0x16dbf1['name']),_0x31695c=!0x0);}}else{if('tablePasteCell'==_0x4e35a0['subType']){if(!_0x4e35a0['attributes']||!_0x4e35a0['attributes']['tablePasteChainId'])continue;const _0x1c775c=_0x4e35a0['attributes']['markerAttributes'];if(_0x1c775c&&Object['keys'](_0x1c775c)['length'])continue;const _0x3df7be=_0x4e35a0['attributes']['tablePasteChainId'];let _0x2b9e6f=!0x0,_0x39630f=!0x0;for(const _0xecaaa0 of _0x400629)if(_0xecaaa0['subType']&&_0xecaaa0['subType']['startsWith']('tablePaste')){if(!_0xecaaa0['attributes']['tablePasteChainId']){_0x39630f=!0x1;break;}if(_0xecaaa0['id']!=_0x4e35a0['id']&&_0xecaaa0['attributes']['tablePasteChainId']==_0x3df7be){_0x2b9e6f=!0x1;break;}}_0x39630f&&_0x2b9e6f&&(_0x4e35a0['removeMarkers'](),_0x31695c=!0x0);}}for(const _0x54ee75 of _0x1ae5f4)_0x570ce7['remove'](_0x54ee75);for(const _0xaa8ced of _0xecf94d)_0x570ce7['unwrap'](_0xaa8ced);return _0x31695c;}),_0x73ff8['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2be315=>_0x2b0a57(_0x2be315),'converterPriority':'high'}),_0x73ff8['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1f8e0d,_0x43d100)=>_0x43d100['options']['showSuggestionHighlights']?_0x2b0a57(_0x1f8e0d,!0x1):null,'converterPriority':'high'});const _0x15104d=_0x73ff8['editing']['view'];this['listenTo'](_0x15104d['document'],'clipboardOutput',(_0x2ecfbc,_0x1b1215)=>{const _0x14dacd=[];for(const _0x2e07dd of _0x15104d['createRangeIn'](_0x1b1215['content'])['getItems']())_0x2e07dd['is']('element','suggestion-td')&&_0x14dacd['push'](_0x2e07dd);_0x15104d['change'](_0x490d86=>{for(const _0x50297c of _0x14dacd)_0x490d86['move'](_0x490d86['createRangeIn'](_0x50297c),_0x490d86['createPositionBefore'](_0x50297c)),_0x490d86['remove'](_0x50297c);});});}}function De(_0x30c8ae){if(_0x30c8ae['isEmpty'])return!0x0;const _0x480335=_0x30c8ae['getChild'](0x0);return _0x480335['is']('element','paragraph')&&_0x480335['isEmpty'];}function He(_0x1a8f41,_0x2356aa={},_0x5ead01){for(const {isAnchor:_0x33792d,cellHeight:_0xb76efb,cellWidth:_0x295531}of _0x5ead01['createTableWalker'](_0x1a8f41,{'includeAllSlots':!0x0,..._0x2356aa}))if(!_0x33792d||0x1!=_0xb76efb||0x1!=_0x295531)return!0x1;return!0x0;}class Bt extends _0x5c1181{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3969e1=this['editor']['plugins']['get']('TrackChangesEditing');_0x3969e1['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3969e1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3969e1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3969e1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3969e1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3969e1['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x227295,_0x150f96){const _0x4a9869=this['editor']['plugins']['get']('TrackChangesEditing'),_0x91d15f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x292853=_0x150f96['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x347104=_0x91d15f['getColumnGroupElement'](_0x292853);let _0x873a46=_0x347104?_0x91d15f['getTableColumnsWidths'](_0x347104):null,_0x6178c9=_0x292853['getAttribute']('tableWidth')||null;const _0x2821bd=_0x150f96['tableWidth']||_0x6178c9,_0x348546=_0x150f96['columnWidths']||_0x873a46,_0x2407ee=this['editor']['plugins']['get']('Users')['me'];for(const _0x58b90a of _0x4a9869['getSuggestions']()){const _0x53d001=_0x58b90a['getContainedElement']();if('resizeTable'===_0x58b90a['subType']&&_0x53d001===_0x292853){_0x58b90a['author']!==_0x2407ee&&_0x58b90a['discard']();const _0x8799e1=_0x58b90a['data']['commandParams'];_0x6178c9=_0x8799e1[0x0]['tableWidth'],_0x873a46=_0x8799e1[0x0]['columnWidths'];break;}}_0x227295({'table':_0x292853,'tableWidth':_0x2821bd,'columnWidths':_0x348546}),_0x4a9869['markBlockFormat'](_0x292853,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x6178c9,'columnWidths':_0x873a46}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x43acb1){if('formatBlock'!=_0x43acb1['type']&&'formatInline'!=_0x43acb1['type'])return;const {data:_0x558f5f}=_0x43acb1;if(_0x558f5f&&'resizeTable'===_0x558f5f['formatGroupId']){const _0x351f39='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x351f39)};}}}class xt extends _0x5c1181{['afterInit'](){const _0x1bab27=this['editor'];_0x1bab27['plugins']['has']('Template')&&_0x1bab27['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x5c1181{['afterInit'](){const _0x376765=this['editor'];if(!_0x376765['commands']['get']('insertTableOfContents'))return;_0x376765['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x572a21=_0x376765['plugins']['get']('TrackChangesEditing'),_0x4f2f9b=_0x376765['locale'];_0x572a21['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5845f4=>c(_0x4f2f9b,'ELEMENT_TABLE_OF_CONTENTS',_0x5845f4));}}class Rt extends _0x5c1181{['afterInit'](){const _0x394c72=this['editor'];if(!_0x394c72['plugins']['has']('Title'))return;const _0xef86a5=_0x394c72['plugins']['get']('TrackChangesEditing');_0xef86a5['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x394c72['locale'],'ELEMENT_TITLE')),_0x394c72['model']['document']['registerPostFixer'](_0xa029ee=>{let _0x924f91=!0x1;const _0x3a6905=Array['from'](_0x394c72['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5dcb49,data:_0x103fac}of _0x3a6905){const {group:_0x3facf9}=_0xef86a5['_splitMarkerName'](_0x5dcb49);if('suggestion'!==_0x3facf9||!_0x103fac['newRange'])continue;const _0x3c82ca=_0x103fac['newRange'],_0x4d1024=_0x3c82ca['end']['nodeBefore'];if(!_0x4d1024||!_0x4d1024['is']('element','title-content'))continue;if(!_0x3c82ca['start']['isTouching'](_0x3c82ca['end']))continue;const _0xda8261=_0x394c72['model']['schema']['getNearestSelectionRange'](_0x3c82ca['end'],'forward');if(_0xda8261&&_0xda8261['isCollapsed']){const _0x13e695=_0xa029ee['createRange'](_0x3c82ca['start'],_0xda8261['start']);_0x13e695['isEqual'](_0x3c82ca)||(_0xa029ee['updateMarker'](_0x5dcb49,{'range':_0x13e695}),_0x924f91=!0x0);}_0x924f91||(_0xa029ee['removeMarker'](_0x5dcb49),_0x924f91=!0x0);}return _0x924f91;});}}class Tt extends _0x5c1181{['afterInit'](){const _0x3b0cc0=this['editor'],_0x2f3849=_0x3b0cc0['plugins']['get']('TrackChangesEditing');_0x3b0cc0['plugins']['has']('Uploadcare')&&(_0x2f3849['enableCommand']('uploadcare'),_0x3b0cc0['plugins']['has']('UploadcareImageEdit')&&(_0x2f3849['enableCommand']('uploadcareImageEdit'),_0x2f3849['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2f3849['registerBlockAttribute']('uploadcareImageId'),_0x2f3849['descriptionFactory']['registerDescriptionCallback'](_0x45f021=>{if('attribute'!=_0x45f021['type'])return;const {data:_0x1da00f}=_0x45f021;return _0x1da00f&&'uploadcareImageId'==_0x1da00f['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x5c1181{['afterInit'](){const _0x570d49=this['editor'],_0x339f37=_0x570d49['plugins']['get']('TrackChangesEditing');_0x570d49['plugins']['has']('UndoEditing')&&(_0x339f37['enableCommand']('undo'),_0x339f37['enableCommand']('redo'));}}class Ut extends _0x5c1181{static get['requires'](){return[Ct];}['afterInit'](){const _0x432e05=this['editor'];if(!_0x432e05['plugins']['has']('TableCaptionEditing'))return;_0x432e05['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x5c1181{['tableProperties'];['tableCellProperties'];constructor(_0x4a96bc){super(_0x4a96bc),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x45724e=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x422929 of this['tableProperties'])_0x45724e['enableCommand'](_0x422929,(_0x475fd3,_0xbf8f31)=>{const _0x2e8790=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x422929,[_0x2e8790],this['tableProperties'],'tableProperties',_0x475fd3,_0xbf8f31);});_0x45724e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x45724e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x45724e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x12dc53,_0x1a78a9)=>this['handleDiscardAction'](this['tableProperties'],_0x12dc53,_0x1a78a9)),_0x45724e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3d8aa3 of this['tableCellProperties'])_0x45724e['enableCommand'](_0x3d8aa3,(_0x967719,_0x41b70a)=>{const _0x469ef0=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3d8aa3,_0x469ef0,this['tableCellProperties'],'tableCellProperties',_0x967719,_0x41b70a);});_0x45724e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x45724e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x45724e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x270605,_0x2ffae1)=>this['handleDiscardAction'](this['tableCellProperties'],_0x270605,_0x2ffae1)),_0x45724e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x45724e['descriptionFactory']['registerDescriptionCallback'](_0x4f9c9a=>this['handleSuggestionDescription'](_0x4f9c9a));}['_handlePropertyChange'](_0x54cd60,_0x4c0dbd,_0x47f6ba,_0x1a5dda,_0x5c1891,_0x43e813){const _0x103985=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x43e813['batch'],()=>{for(const _0x6294d of _0x4c0dbd){if(this['_getSuggestion'](_0x6294d,_0x1a5dda))_0x5c1891(_0x43e813);else{const _0x88abd0={};for(const _0x588a3f of _0x47f6ba){const _0x1249a=_0x6294d['getAttribute'](_0x588a3f);void 0x0!==_0x1249a&&(_0x88abd0[_0x588a3f]=_0x1249a);}_0x5c1891(_0x43e813),_0x103985['markBlockFormat'](_0x6294d,{'commandParams':[_0x88abd0]},[],_0x1a5dda);}}});}['handleDiscardAction'](_0x272848,_0x8f6f53,_0x4e65e0){const _0x276dcb=_0x8f6f53[0x0]['start']['nodeAfter'],_0x49aebe=_0x4e65e0['commandParams'][0x0];this['editor']['model']['change'](_0x2c9a90=>{for(const _0x1a487c of _0x272848)void 0x0!==_0x49aebe[_0x1a487c]?_0x2c9a90['setAttribute'](_0x1a487c,_0x49aebe[_0x1a487c],_0x276dcb):_0x2c9a90['removeAttribute'](_0x1a487c,_0x276dcb);});}['handleSuggestionDescription'](_0x116d15){if(_0x116d15['data'])switch(_0x116d15['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x236924,_0x1c5957){const _0x29a88c=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x28dcdf of _0x29a88c['getSuggestions']({'skipNotAttached':!0x0})){const _0x5d83cd=_0x28dcdf['getContainedElement']();if(_0x28dcdf['subType']===_0x1c5957&&_0x5d83cd===_0x236924)return _0x28dcdf;}return null;}}const u='$elementName';class p extends _0x5c1181{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x4a4901,_0x2f18b2,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,it,et,nt,st,ot,rt,ct,at,ut,ft,ht,gt,Q,wt,lt,W,Se,mt,pt,kt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Ot,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x23ce1b){super(_0x23ce1b),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x542b8e,_0x1cdbe5,_0x507ca1,_0x31a80d)=>{this['_model']['change'](()=>{for(const _0x59f763 of[..._0x31a80d,..._0x507ca1])this['_model']['markers']['has'](_0x59f763)&&_0x23ce1b['editing']['reconvertMarker'](_0x59f763);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x23ce1b['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x23ce1b['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x23ce1b['config']['get']('trackChanges.trackFormatChanges'),_0x23ce1b['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x23ce1b['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x23ce1b,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x27bdfc=this['editor'],_0x58e709=(_0xe0a5c8,_0x184635)=>{if('attribute'!=_0xe0a5c8)return'ck-suggestion-marker-'+_0xe0a5c8;const _0x3708cb=_0x184635['split']('|')[0x0];return this['_isBlockAttribute'](_0x3708cb)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x27bdfc['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x42636d=>{const {id:_0x9ae946,authorId:_0x25ff33,type:_0x4f2165,subType:_0x5d5537}=this['_splitMarkerName'](_0x42636d['markerName']),_0x3ffda=['ck-suggestion-marker',_0x58e709(_0x4f2165,_0x5d5537)];let _0x43f9a9=0xbb8;return this['activeMarkers']['includes'](_0x42636d['markerName'])&&(_0x3ffda['push']('ck-suggestion-marker--active'),_0x43f9a9=0xbc2),'deletion'==_0x4f2165&&(_0x43f9a9+=0x5),{'classes':_0x3ffda,'attributes':{'data-suggestion':_0x9ae946,'data-author-id':_0x25ff33},'priority':_0x43f9a9};}}),_0x27bdfc['conversion']['for']('dataDowncast')['add'](_0x14070a=>{_0x14070a['on']('addMarker:suggestion',(_0x5adf9c,_0x181634,_0x3ade61)=>{if(!_0x3ade61['options']['showSuggestionHighlights'])return;const _0x3e5f55=_0x181634['item'];if(!_0x3e5f55)return;const _0x27bc8a=_0x3ade61['mapper']['toViewElement'](_0x3e5f55);_0x27bdfc['model']['schema']['isObject'](_0x3e5f55)&&_0x27bc8a&&!_0x27bc8a['getCustomProperty']('widget')&&_0x27bc8a['is']('containerElement')&&_0x586b6a(_0x27bc8a,_0x3ade61['writer']);},{'priority':'high'});}),_0x27bdfc['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x9e9787,_0xcebd7a)=>{if(!_0xcebd7a['options']['showSuggestionHighlights'])return null;const {id:_0x2180bf,authorId:_0x54f9ad,type:_0x114650,subType:_0x48c3e0}=this['_splitMarkerName'](_0x9e9787['markerName']);return{'classes':['ck-suggestion-marker',_0x58e709(_0x114650,_0x48c3e0)],'priority':0xbb8,'attributes':{'data-suggestion':_0x2180bf,'data-author-id':_0x54f9ad}};}});const _0x56f5f9=({showActiveMarkers:_0xd1f67a=!0x0,isAttributeSuggestion:_0x35bd7d=!0x1}={})=>(_0x38e9ba,_0x540d10,_0x2bda81)=>{if(!_0x540d10['item'])return;const {id:_0x8837a7,authorId:_0x5ef822}=this['_splitMarkerName'](_0x540d10['markerName']);if(_0x35bd7d){const _0x7f65b3=this['_suggestions']['get'](_0x8837a7),_0x4823c8=this['_getAttributeKey'](_0x7f65b3);if(!this['_isBlockAttribute'](_0x4823c8))return;}if(_0x540d10['item']['is']('selection'))return void _0x2bda81['consumable']['consume'](_0x540d10['item'],_0x38e9ba['name']);const _0x123394=_0x2bda81['mapper']['toViewElement'](_0x540d10['item']);if(_0x540d10['item']['is']('element')&&_0x27bdfc['model']['schema']['isBlock'](_0x540d10['item'])&&!_0x123394['getCustomProperty']('addHighlight')){_0x2bda81['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x123394),_0x2bda81['writer']['setAttribute']('data-suggestion',_0x8837a7,_0x123394),_0x2bda81['writer']['setAttribute']('data-author-id',_0x5ef822,_0x123394),_0x2bda81['mapper']['bindElementToMarker'](_0x123394,_0x540d10['markerName']),_0xd1f67a&&(this['activeMarkers']['includes'](_0x540d10['markerName'])?_0x2bda81['writer']['addClass']('ck-suggestion-marker--active',_0x123394):_0x2bda81['writer']['removeClass']('ck-suggestion-marker--active',_0x123394));for(const _0x23599e of _0x27bdfc['model']['createRangeIn'](_0x540d10['item'])['getItems']())_0x2bda81['consumable']['consume'](_0x23599e,_0x38e9ba['name']);_0x2bda81['consumable']['consume'](_0x540d10['item'],_0x38e9ba['name']);}};_0x27bdfc['conversion']['for']('dataDowncast')['add'](_0x1ae102=>{_0x1ae102['on']('addMarker:suggestion:formatBlock',(_0x2c6289,_0x540165,_0x248e19)=>{_0x248e19['options']['showSuggestionHighlights']&&_0x56f5f9({'showActiveMarkers':!0x1})(_0x2c6289,_0x540165,_0x248e19);},{'priority':'highest'});}),_0x27bdfc['conversion']['for']('dataDowncast')['add'](_0x11da31=>{_0x11da31['on']('addMarker:suggestion:attribute',(_0x448100,_0x457581,_0x211673)=>{_0x211673['options']['showSuggestionHighlights']&&_0x56f5f9({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x448100,_0x457581,_0x211673);},{'priority':'highest'});}),_0x27bdfc['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x554929,_0x5550a6)=>{if(_0x5550a6['options']['showSuggestionHighlights']){const {id:_0x307adb,authorId:_0x23c175}=this['_splitMarkerName'](_0x554929);return _0x554929['includes'](':split')||_0x554929['includes'](':merge')?{'group':'suggestion','name':_0x554929['substr'](0xb),'attributes':{'data-suggestion':_0x307adb,'data-author-id':_0x23c175}}:null;}return{'group':'suggestion','name':_0x554929['substr'](0xb)};}}),_0x27bdfc['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3f89cd,{writer:_0x95d2de})=>{let _0x19de02='suggestion:'+_0x3f89cd['getAttribute']('suggestion-type')+':'+_0x3f89cd['getAttribute']('id');return _0x3f89cd['getAttribute']('marker-count')&&(_0x19de02+=':'+_0x3f89cd['getAttribute']('marker-count')),_0x95d2de['createElement']('$marker',{'data-name':_0x19de02});}}),_0x27bdfc['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x27bdfc['conversion']['for']('editingDowncast')['add'](_0x1c0678=>{_0x1c0678['on']('addMarker:suggestion:formatBlock',_0x56f5f9(),{'priority':'high'});}),_0x27bdfc['conversion']['for']('editingDowncast')['add'](_0x4f1a29=>{_0x4f1a29['on']('addMarker:suggestion:attribute',_0x56f5f9({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x27bdfc['conversion']['for']('editingDowncast')['add'](_0x178c6b=>{_0x178c6b['on']('removeMarker:suggestion:formatBlock',(_0x4c02ad,_0x4a7a07,_0x44024b)=>{const _0x5d8c9f=_0x44024b['mapper']['markerNameToElements'](_0x4a7a07['markerName']);if(_0x5d8c9f){for(const _0x53157b of _0x5d8c9f)_0x53157b['getCustomProperty']('addHighlight')||(_0x44024b['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x53157b),_0x44024b['writer']['removeAttribute']('data-suggestion',_0x53157b),_0x44024b['writer']['removeAttribute']('data-author-id',_0x53157b),_0x44024b['mapper']['unbindElementFromMarkerName'](_0x53157b,_0x4a7a07['markerName']));}},{'priority':'high'});}),_0x27bdfc['conversion']['for']('editingDowncast')['add'](_0x3a196e=>{_0x3a196e['on']('removeMarker:suggestion:attribute',(_0x31f6a4,_0x58a796,_0x2f592a)=>{const _0x494800=_0x2f592a['mapper']['markerNameToElements'](_0x58a796['markerName']);if(!_0x494800)return;const {id:_0x4aacb9}=this['_splitMarkerName'](_0x58a796['markerName']),_0x55c613=this['_suggestions']['get'](_0x4aacb9),_0x2ad7a5=this['_getAttributeKey'](_0x55c613);if(this['_isBlockAttribute'](_0x2ad7a5)){for(const _0x3fe9ed of _0x494800)_0x3fe9ed['getCustomProperty']('addHighlight')||(_0x2f592a['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3fe9ed),_0x2f592a['writer']['removeAttribute']('data-suggestion',_0x3fe9ed),_0x2f592a['writer']['removeAttribute']('data-author-id',_0x3fe9ed),_0x2f592a['mapper']['unbindElementFromMarkerName'](_0x3fe9ed,_0x58a796['markerName']));}},{'priority':'high'});}),_0x27bdfc['model']['document']['registerPostFixer'](_0xadfc78=>{let _0x467c5a=!0x1;const _0x4dda9d=Array['from'](_0x27bdfc['model']['document']['differ']['getChangedMarkers']()),_0x3b5bd9=new Set();for(const {name:_0x580c09,data:_0x13f1cd}of _0x4dda9d){const {group:_0x42645b,type:_0x44d4b9,subType:_0x4e8c15,id:_0x2d27e4}=this['_splitMarkerName'](_0x580c09);if('suggestion'!==_0x42645b)continue;const _0x439c13=this['_suggestions']['get'](_0x2d27e4);if(null!=_0x13f1cd['newRange']){'formatInline'==_0x44d4b9&&(_0x467c5a=_0x467c5a||Jt(_0x13f1cd['newRange'],_0x580c09,_0xadfc78,_0x27bdfc['model']['schema']));const _0x3b4d87='attribute'==_0x44d4b9&&this['_isBlockAttribute'](_0x4e8c15['split']('|')[0x0]);if(_0x13f1cd['newRange']['isCollapsed']||'$graveyard'==_0x13f1cd['newRange']['root']['rootName']||'formatBlock'==_0x44d4b9&&!Ht(_0x13f1cd['newRange'])||_0x3b4d87&&!Ht(_0x13f1cd['newRange'])||'deletion'==_0x44d4b9&&!(!Lt(_0xbb1453=_0x13f1cd['newRange'])&&!function(_0x1d5216){return _0x1d5216['start']['parent']==_0x1d5216['end']['nodeBefore']&&_0x1d5216['start']['isAtEnd'];}(_0xbb1453)))_0xadfc78['removeMarker'](_0x580c09),_0x467c5a=!0x0;else{if(!_0x439c13||!_0x439c13['isInContent'])continue;if(_0x13f1cd['newRange']&&_0x13f1cd['oldRange']&&_0x13f1cd['newRange']['isEqual'](_0x13f1cd['oldRange']))continue;_0x3b5bd9['add'](_0x439c13);}}}var _0xbb1453;return _0x3b5bd9['size']>0x0&&(_0x467c5a=!!this['_joinWithAdjacentSuggestions'](_0x3b5bd9)||_0x467c5a),_0x467c5a;}),_0x27bdfc['model']['document']['registerPostFixer'](_0xcb3fbc=>{let _0x3fa8eb=!0x1;for(const _0x1cf71f of _0x27bdfc['model']['document']['differ']['getChanges']())if('insert'==_0x1cf71f['type'])for(const _0x478887 of this['_suggestions']['values']()){if(_0x478887['isMultiRange']||!_0x478887['isInContent'])continue;const _0x1c501c='formatBlock'==_0x478887['type'],_0x306233=this['_getAttributeKey'](_0x478887),_0x4c1ac6=_0x306233&&this['_isBlockAttribute'](_0x306233);if(!_0x1c501c&&!_0x4c1ac6)continue;const _0x1a6bb4=_0x478887['getFirstRange']();if(_0x1a6bb4['start']['parent']!=_0x1a6bb4['end']['parent']&&!_0x1a6bb4['end']['isAtEnd']){const _0x3fe5c7=_0x27bdfc['model']['createPositionAt'](_0x1a6bb4['start']['nodeAfter'],'end'),_0x2d60c1=_0x27bdfc['model']['createRange'](_0x1a6bb4['start'],_0x3fe5c7);_0xcb3fbc['updateMarker'](_0x478887['getFirstMarker'](),{'range':_0x2d60c1}),_0x3fa8eb=!0x0;}}return _0x3fa8eb;}),_0x27bdfc['model']['document']['registerPostFixer'](_0x456794=>this['_processAttributeChanges'](_0x456794)),_0x27bdfc['model']['document']['registerPostFixer'](_0x2bd9fa=>!_0x2bd9fa['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2bd9fa)),_0x27bdfc['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x27bdfc['model']['document']['on']('change:data',(_0xf6f88e,_0x575f3b)=>{if(!_0x575f3b['isLocal']||_0x575f3b['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2b52ec=_0x27bdfc['model']['document']['differ']['getChanges']();if(0x0==_0x2b52ec['length'])return;const _0x2a91d1=[],_0x4e4fef=_0x2b52ec['filter'](_0x7b1cf1=>'attribute'==_0x7b1cf1['type']),_0x287ce1=_0x2b52ec['filter'](_0x1782a5=>'insert'==_0x1782a5['type']&&'$text'!=_0x1782a5['name']);for(const _0x2f10f1 of _0x4e4fef)this['_isRegisteredAttribute'](_0x2f10f1['attributeKey'])&&_0x2a91d1['push']({'key':_0x2f10f1['attributeKey'],'newValue':_0x2f10f1['attributeNewValue'],'oldValue':_0x2f10f1['attributeOldValue'],'range':qt(_0x2f10f1['range'],_0x27bdfc['model'])});for(const _0x50f0ce of _0x287ce1){if('rename'!=_0x50f0ce['action']&&'refresh'!=_0x50f0ce['action'])continue;const _0xa53430=zt(_0x50f0ce['position']['nodeAfter'],_0x27bdfc['model']),_0x26ffa7=_0x50f0ce['before'];'rename'==_0x50f0ce['action']&&_0x2a91d1['push']({'key':u,'newValue':_0x50f0ce['name'],'oldValue':_0x26ffa7['name'],'range':_0xa53430});for(const [_0x16f017,_0x486e85]of _0x26ffa7['attributes']){if(!this['_isRegisteredAttribute'](_0x16f017))continue;const _0x2d89cd=_0x50f0ce['attributes']['get'](_0x16f017);_0x486e85!==_0x2d89cd&&_0x2a91d1['push']({'key':_0x16f017,'newValue':_0x2d89cd,'oldValue':_0x486e85,'range':_0xa53430});}for(const [_0x3dd5fe,_0x35f5b9]of _0x50f0ce['attributes'])this['_isRegisteredAttribute'](_0x3dd5fe)&&(_0x26ffa7['attributes']['has'](_0x3dd5fe)||_0x2a91d1['push']({'key':_0x3dd5fe,'newValue':_0x35f5b9,'oldValue':null,'range':_0xa53430}));}0x0!=_0x2a91d1['length']&&_0x27bdfc['model']['enqueueChange'](_0x575f3b,_0xb50389=>{const _0x4ab150=_0x1b595f();for(const {range:_0x326a40,key:_0x317137,oldValue:_0x1d7332,newValue:_0x37fc76}of _0x2a91d1)this['markAttributeChange'](_0x326a40,_0x317137,_0x1d7332,_0x37fc76,{'groupId':_0x4ab150});this['_reduceExistingSuggestions'](_0xb50389,_0x2a91d1);});},{'priority':'lowest'}),_0x27bdfc['model']['markers']['on']('update:suggestion',(_0xa35f07,_0x108d88,_0x1bf24d)=>{if(null==_0x1bf24d){const {id:_0x1dd81d}=this['_splitMarkerName'](_0x108d88['name']),_0x2273b0=this['_suggestions']['get'](_0x1dd81d);_0x2273b0&&_0x2273b0['addMarkerName'](_0x108d88['name']);}}),_0x27bdfc['model']['document']['on']('change:data',()=>{const _0x2afd02=Array['from'](_0x27bdfc['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2a28ff=>'suggestion'===this['_splitMarkerName'](_0x2a28ff['name'])['group']);if(0x0===_0x2afd02['length'])return;_0x2afd02['sort']((_0x41fed7,_0x56229e)=>{const _0x752787=_0x41fed7['data']['oldRange'],_0x14d30f=_0x56229e['data']['oldRange'];return null===_0x752787&&null===_0x14d30f?0x0:null===_0x752787&&null!==_0x14d30f?-0x1:null!==_0x752787&&null===_0x14d30f?0x1:_0x752787['start']['isBefore'](_0x14d30f['start'])?-0x1:0x1;});const _0x35ebd4=new Set(),_0x493ac4=new Set();for(const {name:_0x54c021,data:_0x1d25de}of _0x2afd02){const {id:_0x5bd328}=this['_splitMarkerName'](_0x54c021);if(null===_0x1d25de['oldRange']){const _0x585905=this['_handleNewSuggestionMarker'](_0x54c021);_0x493ac4['add'](_0x585905);}else{const _0x2fae8a=this['_suggestions']['get'](_0x5bd328);null!==_0x1d25de['newRange']||_0x2fae8a['isInContent']?(_0x35ebd4['add'](_0x2fae8a['head']),_0x493ac4['add'](_0x2fae8a)):this['_removeSuggestion'](_0x2fae8a);}}_0x493ac4['size']>0x0&&this['_refreshSuggestionsChain'](_0x493ac4);for(const _0x528f05 of _0x35ebd4)this['fire']('suggestionChanged',_0x528f05);}),_0x27bdfc['model']['on']('applyOperation',(_0x3c1cbe,_0x3b3298)=>{const _0x34988e=_0x3b3298[0x0];if(!this['_suggestions']['size'])return;if(!_0x34988e['isDocumentOperation'])return;if(_0x34988e['batch']['isUndo']||!_0x34988e['batch']['isLocal'])return;let _0x5ee98e,_0x50fb5d;switch(_0x34988e['type']){case'insert':_0x5ee98e=_0x27bdfc['model']['createPositionAt'](_0x34988e['position']),_0x50fb5d=_0x5ee98e['getShiftedBy'](_0x34988e['howMany']);break;case'split':_0x5ee98e=_0x27bdfc['model']['createPositionAt'](_0x34988e['splitPosition']),_0x50fb5d=_0x27bdfc['model']['createPositionAt'](_0x34988e['moveTargetPosition']);break;case'move':_0x5ee98e=_0x27bdfc['model']['createPositionAt'](_0x34988e['targetPosition']),_0x50fb5d=_0x5ee98e['getShiftedBy'](_0x34988e['howMany']);break;default:return;}const _0x5a3239=_0x27bdfc['model']['createRange'](_0x5ee98e,_0x50fb5d);_0x27bdfc['model']['change'](()=>{for(const {suggestion:_0x4e05f4,meta:_0x101a0a}of this['_findSuggestions'](_0x5a3239)){if(_0x4e05f4['isMultiRange'])continue;if('formatInline'==_0x4e05f4['type'])continue;const _0x1dadb2=this['_getAttributeKey'](_0x4e05f4);if(_0x1dadb2&&this['_isBlockAttribute'](_0x1dadb2)&&'split'!=_0x34988e['type'])continue;const _0x17ecd0=_0x4e05f4['data']&&_0x4e05f4['data']['multipleBlocks'];('formatBlock'!=_0x4e05f4['type']||'split'==_0x34988e['type']&&!_0x17ecd0)&&(_0x101a0a['containsRangeInObject']||'insertion'==_0x4e05f4['type']&&_0x101a0a['isOwn']||_0x4e05f4['getFirstRange']()['containsRange'](_0x5a3239)&&this['_breakSuggestionMarker'](_0x4e05f4,_0x5ee98e,_0x50fb5d));}});},{'priority':'lowest'}),_0x27bdfc['model']['on']('deleteContent',(_0x3c7033,_0x3b3051)=>{const _0x2bd991=_0x3b3051[0x0],_0x30dcdf=_0x3b3051[0x1];if(_0x30dcdf&&_0x30dcdf['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2bd991['isCollapsed'])return;const _0x2b8be7=_0x27bdfc['model']['schema'],{start:_0x442002,end:_0x58677c}=_0x2bd991['getFirstRange'](),_0x42e5b=_0x442002['nodeAfter']&&_0x2b8be7['isLimit'](_0x442002['nodeAfter'])?null:_0x2b8be7['getNearestSelectionRange'](_0x442002,'forward'),_0x1a3a00=_0x58677c['nodeBefore']&&_0x2b8be7['isLimit'](_0x58677c['nodeBefore'])?null:_0x2b8be7['getNearestSelectionRange'](_0x58677c,'backward'),_0x413234=_0x27bdfc['model']['createRange'](_0x42e5b?_0x42e5b['start']:_0x442002,_0x1a3a00?_0x1a3a00['end']:_0x58677c);_0x27bdfc['model']['change'](_0x599c63=>{this['markDeletion'](_0x413234);const _0x21f4e5=_0x27bdfc['model']['schema']['getNearestSelectionRange'](_0x413234['start']);_0x2bd991['is']('documentSelection')?_0x599c63['setSelection'](_0x21f4e5):_0x2bd991['setTo'](_0x21f4e5);}),_0x3c7033['stop']();},{'priority':_0x4b8f33['normal']+0xa}),_0x27bdfc['model']['on']('insertContent',(_0xc8d6e2,_0x907cf1)=>{const _0x39c94a=_0x907cf1[_0x907cf1['length']-0x1];_0x39c94a&&_0x39c94a['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x27bdfc['model']['change'](()=>{let _0x2d1fb1=_0x27bdfc['model']['insertContent'](_0x907cf1[0x0],_0x907cf1[0x1],_0x907cf1[0x2],{'forceDefaultExecution':!0x0});if(!_0x2d1fb1)return;_0xc8d6e2['return']=_0x2d1fb1['clone']();const _0x39a679=_0x2d1fb1['end']['nodeBefore'],_0xa352e0=_0x27bdfc['model']['schema'];_0x39a679&&_0xa352e0['isBlock'](_0x39a679)&&!_0xa352e0['isObject'](_0x39a679)&&(_0x2d1fb1=_0x27bdfc['model']['createRange'](_0x2d1fb1['start'],_0x27bdfc['model']['createPositionAt'](_0x39a679,'end'))),this['markInsertion'](_0x2d1fb1);}),_0xc8d6e2['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x6477ff=new x(_0x27bdfc,this['_suggestions']);_0x27bdfc['commands']['add']('acceptSuggestion',_0x6477ff),this['enableCommand']('acceptSuggestion');const _0x39ecb0=new O(_0x27bdfc,this['_suggestions']);_0x27bdfc['commands']['add']('discardSuggestion',_0x39ecb0),this['enableCommand']('discardSuggestion'),_0x27bdfc['commands']['add']('acceptAllSuggestions',new R(_0x27bdfc,_0x6477ff,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x27bdfc['commands']['add']('discardAllSuggestions',new R(_0x27bdfc,_0x39ecb0,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x27bdfc['commands']['add']('acceptSelectedSuggestions',new E(_0x27bdfc,_0x6477ff,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x27bdfc['commands']['add']('discardSelectedSuggestions',new E(_0x27bdfc,_0x39ecb0,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x45a24d=_0x27bdfc['plugins']['get']('CommentsRepository');this['listenTo'](_0x45a24d,'addComment',(_0x38b74c,{threadId:_0x5570d1})=>{const _0x4c626b=this['_suggestions']['get'](_0x5570d1);_0x4c626b&&_0x4c626b['commentThread']&&0x1===_0x4c626b['commentThread']['length']&&this['_updateSuggestionData'](_0x5570d1,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x45a24d,'removeComment',(_0x209817,{threadId:_0xde2e00})=>{const _0x5c337a=this['_suggestions']['get'](_0xde2e00);_0x5c337a&&_0x5c337a['commentThread']&&!_0x5c337a['commentThread']['length']&&this['_updateSuggestionData'](_0xde2e00,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x5c263a){const _0x396a95=_0x244c3f([0x69,0x4a,0x68,0x37,0x6f,0x35,0x6d,0x32,0x54,0x6c,0x5a,0x72,0x39,0x64,0x47,0x71,0x58,0x79,0x45,0x75,0x31,0x4b,0x4d,0x48,0x76,0x46,0x70,0x50,0x6b,0x4f,0x73,0x67,0x4c,0x57,0x78,0x36,0x49,0x6e,0x33,0x55,0x65,0x38,0x42,0x63,0x7a,0x62,0x34,0x59,0x51,0x30,0x66,0x53,0x6a,0x43,0x61,0x74,0x77,0x44,0x4e,0x41,0x56,0x52]),_0x1f573c=0x38ed8500,_0x530f7b=0x38eae288^_0x1f573c,_0x86b5a7=window[_0x244c3f([0x44,0x61,0x74,0x65])][_0x244c3f([0x6e,0x6f,0x77])](),_0x576d50=_0x5c263a[_0x244c3f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3a6316=new window[(_0x244c3f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10122e=>{_0x576d50[_0x244c3f([0x6f,0x6e,0x63,0x65])](_0x244c3f([0x72,0x65,0x61,0x64,0x79]),_0x10122e);}),_0x249101={[_0x244c3f([0x6b,0x74,0x79])]:_0x244c3f([0x45,0x43]),[_0x244c3f([0x75,0x73,0x65])]:_0x244c3f([0x73,0x69,0x67]),[_0x244c3f([0x63,0x72,0x76])]:_0x244c3f([0x50,0x2d,0x32,0x35,0x36]),[_0x244c3f([0x78])]:_0x244c3f([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x244c3f([0x79])]:_0x244c3f([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x244c3f([0x61,0x6c,0x67])]:_0x244c3f([0x45,0x53,0x32,0x35,0x36])},_0x142b8a=_0x576d50[_0x244c3f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x244c3f([0x67,0x65,0x74])](_0x244c3f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2cb41f(){let _0x3b40b6,_0x1601ee=null,_0x3afaba=null;try{if(_0x142b8a==_0x244c3f([0x47,0x50,0x4c]))return _0x244c3f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3b40b6=_0x6a9165(),!_0x3b40b6)return _0x244c3f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3b40b6[_0x244c3f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3afaba=_0x4437c0(_0x3b40b6[_0x244c3f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3b40b6[_0x244c3f([0x6a,0x74,0x69])])),await _0x3c6dc6()?_0x339992()?_0x47327f()?_0x244c3f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x40e750()?(_0x3b40b6[_0x244c3f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x244c3f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1601ee=_0x4b0d7e(_0x244c3f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3b40b6[_0x244c3f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x244c3f([0x74,0x72,0x69,0x61,0x6c])&&(_0x1601ee=_0x4b0d7e(_0x244c3f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2c9601()):_0x244c3f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x244c3f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x244c3f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2296a3){return _0x244c3f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x47327f(){const _0xec1351=[_0x244c3f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x244c3f([0x74,0x72,0x69,0x61,0x6c])][_0x244c3f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b40b6[_0x244c3f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x86b5a7/0x3e8:0xe10*_0x530f7b;return _0x3b40b6[_0x244c3f([0x65,0x78,0x70])]<_0xec1351;}function _0x339992(){const _0x62c6e3=_0x3b40b6[_0x244c3f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x62c6e3)return!0x1;if(_0x62c6e3[_0x244c3f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x244c3f([0x2a])))return!0x0;if(_0x62c6e3[_0x244c3f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x244c3f([0x54,0x43])))return!0x0;if(_0x62c6e3[_0x244c3f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x244c3f([0x52,0x54,0x43]))){if(_0x1cc6aa())return!0x0;if(_0x41a6f8()||_0x277b5c())return!0x0;}return!0x1;}function _0x40e750(){const _0x262c91=_0x3b40b6[_0x244c3f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x262c91||0x0==_0x262c91[_0x244c3f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x6fc0a9}=new URL(window[_0x244c3f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x262c91[_0x244c3f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6fc0a9))return!0x0;const _0x41b3a2=_0x6fc0a9[_0x244c3f([0x73,0x70,0x6c,0x69,0x74])](_0x244c3f([0x2e]));return _0x262c91[_0x244c3f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x24ee2d=>_0x24ee2d[_0x244c3f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x244c3f([0x2a])))[_0x244c3f([0x6d,0x61,0x70])](_0x8b5385=>_0x8b5385[_0x244c3f([0x73,0x70,0x6c,0x69,0x74])](_0x244c3f([0x2e])))[_0x244c3f([0x73,0x6f,0x6d,0x65])](_0x1c38f5=>_0x41b3a2[_0x244c3f([0x65,0x76,0x65,0x72,0x79])]((_0x2e5bec,_0x520398)=>_0x1c38f5[_0x520398]===_0x2e5bec||_0x1c38f5[_0x520398]===_0x244c3f([0x2a])));}function _0x2c9601(){return _0x1601ee&&_0x3afaba?new window[(_0x244c3f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4736e9,_0x4aeffb)=>{_0x1601ee[_0x244c3f([0x74,0x68,0x65,0x6e])](_0x4736e9,_0x4aeffb),_0x3afaba[_0x244c3f([0x74,0x68,0x65,0x6e])](_0x1cb066=>{_0x1cb066!=_0x244c3f([0x56,0x61,0x6c,0x69,0x64])&&_0x4736e9(_0x1cb066);},_0x4aeffb);}):_0x1601ee||_0x3afaba||_0x244c3f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4437c0(_0x2e41c4,_0x5955cd){return new window[(_0x244c3f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d033a=>{if(_0x35b4b6())return _0x5d033a(_0x244c3f([0x56,0x61,0x6c,0x69,0x64]));_0x58a48e(),_0x576d50[_0x244c3f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x244c3f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x28e10b=!0x1;const _0xfab0fb=_0x1b595f();function _0x5d18d0(_0x1cef14){return!!_0x1cef14&&(typeof _0x1cef14===_0x244c3f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1cef14===_0x244c3f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1cef14[_0x244c3f([0x74,0x68,0x65,0x6e])]===_0x244c3f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1cef14[_0x244c3f([0x63,0x61,0x74,0x63,0x68])]===_0x244c3f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5de5f1(_0x8d96a4){_0x59af7e(_0x8d96a4)[_0x244c3f([0x74,0x68,0x65,0x6e])](_0x202fa4=>{if(!_0x202fa4||_0x202fa4[_0x244c3f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x244c3f([0x6f,0x6b]))return _0x244c3f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x222e37(_0x39cd92(_0xfab0fb+_0x5955cd))!=_0x202fa4[_0x244c3f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x244c3f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x244c3f([0x56,0x61,0x6c,0x69,0x64]);})[_0x244c3f([0x74,0x68,0x65,0x6e])](_0x380014=>(_0x547f16(),_0x380014),()=>{const _0x4a6c24=_0x4b7475();return null==_0x4a6c24?(_0x547f16(),_0x244c3f([0x56,0x61,0x6c,0x69,0x64])):_0x244c3f(_0x86b5a7-_0x4a6c24>(0x1ce10100^_0x1f573c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x244c3f([0x74,0x68,0x65,0x6e])](_0x5d033a)[_0x244c3f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5d033a(_0x244c3f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x53d047=0x38db6b80^_0x1f573c;function _0x547f16(){const _0x442bd0=_0x244c3f([0x6c,0x6c,0x63,0x74,0x2d])+_0x222e37(_0x39cd92(_0x2e41c4)),_0xa7dca0=_0x3c1040(_0x222e37(window[_0x244c3f([0x4d,0x61,0x74,0x68])][_0x244c3f([0x63,0x65,0x69,0x6c])](_0x86b5a7/_0x53d047)));window[_0x244c3f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x244c3f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x442bd0,_0xa7dca0);}function _0x4b7475(){const _0x5e381d=_0x244c3f([0x6c,0x6c,0x63,0x74,0x2d])+_0x222e37(_0x39cd92(_0x2e41c4)),_0x40810b=window[_0x244c3f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x244c3f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5e381d);return _0x40810b?window[_0x244c3f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c1040(_0x40810b),0x10)*_0x53d047:null;}function _0x59af7e(_0xb1c5){return new window[(_0x244c3f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4ed941,_0x2dcc88)=>{_0xb1c5[_0x244c3f([0x74,0x68,0x65,0x6e])](_0x4ed941,_0x2dcc88),window[_0x244c3f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2dcc88,0x38ec51c0^_0x1f573c);});}}_0x576d50[_0x244c3f([0x6f,0x6e])](_0x244c3f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x9a7ee6,_0x5b5111)=>{if(_0x5b5111[0x0]!=_0x2e41c4)return _0x5d033a(_0x244c3f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5b5111[0x1]={..._0x5b5111[0x1],[_0x244c3f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xfab0fb};},{[_0x244c3f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x244c3f([0x68,0x69,0x67,0x68])}),_0x576d50[_0x244c3f([0x6f,0x6e])](_0x244c3f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4fed5f=>{_0x5d18d0(_0x4fed5f[_0x244c3f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x28e10b=!0x0,_0x5de5f1(_0x4fed5f[_0x244c3f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x244c3f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x244c3f([0x6c,0x6f,0x77])}),_0x3a6316[_0x244c3f([0x74,0x68,0x65,0x6e])](()=>{_0x28e10b||_0x5d033a(_0x244c3f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x35b4b6(){return _0x576d50[_0x244c3f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x244c3f([0x76,0x69,0x65,0x77])][_0x244c3f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x244c3f([0x61,0x75,0x74,0x6f]);}function _0x58a48e(){_0x576d50[_0x244c3f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x244c3f([0x76,0x69,0x65,0x77])][_0x244c3f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x244c3f([0x61,0x75,0x74,0x6f]);}}function _0x4b0d7e(_0x4887c8){const _0x35ed4f=[new window[(_0x244c3f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x212045=>setTimeout(_0x212045,0x38e4bbcc^_0x1f573c)),_0x3a6316[_0x244c3f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x244c3f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x343828=>{let _0xea9ecb=0x0;_0x576d50[_0x244c3f([0x6d,0x6f,0x64,0x65,0x6c])][_0x244c3f([0x6f,0x6e])](_0x244c3f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3b4c27,_0x2325c8)=>{_0x2325c8[0x0][_0x244c3f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xea9ecb++,_0xea9ecb==(0x38ed84f8^_0x1f573c)&&(_0x343828(),_0x3b4c27[_0x244c3f([0x6f,0x66,0x66])]());});}))];return window[_0x244c3f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x244c3f([0x72,0x61,0x63,0x65])](_0x35ed4f)[_0x244c3f([0x74,0x68,0x65,0x6e])](()=>_0x4887c8);}async function _0x984e84(){await _0x3a6316,_0x576d50[_0x244c3f([0x6d,0x6f,0x64,0x65,0x6c])][_0x244c3f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x206a5e,_0x576d50[_0x244c3f([0x6d,0x6f,0x64,0x65,0x6c])][_0x244c3f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x206a5e,_0x576d50[_0x244c3f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x244c3f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1cc6aa(){return _0x434d4e(_0x244c3f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xcc5a93(_0x244c3f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x244c3f([0x73,0x74,0x61,0x74,0x65])]==_0x244c3f([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x41a6f8(){return _0x434d4e(_0x244c3f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x277b5c(){return _0x434d4e(_0x244c3f([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xc9fe6d(_0x5d6681){const _0x57c8b0=_0xfa8228();_0x576d50[_0x57c8b0]=_0x244c3f([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5d6681,_0x5d6681!=_0x244c3f([0x56,0x61,0x6c,0x69,0x64])&&_0x984e84();}function _0xfa8228(){const _0x4d5deb=window[_0x244c3f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x244c3f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x244c3f([0x6e,0x6f,0x77])]())[_0x244c3f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x244c3f([0x2e]),'');let _0x51b00b=_0x244c3f([0x69]);for(let _0x3131a5=0x0;_0x3131a5<_0x4d5deb[_0x244c3f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3131a5+=0x2){let _0x29f5d9=window[_0x244c3f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d5deb[_0x244c3f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3131a5,_0x3131a5+0x2));_0x29f5d9>=_0x396a95[_0x244c3f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x29f5d9-=_0x396a95[_0x244c3f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x51b00b+=_0x396a95[_0x29f5d9];}return _0x51b00b;}function _0x6a9165(){const _0x1babed=_0x142b8a[_0x244c3f([0x73,0x70,0x6c,0x69,0x74])](_0x244c3f([0x2e]));if(0x3!=_0x1babed[_0x244c3f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xb8f8bc(_0x1babed[0x1]);function _0xb8f8bc(_0x20ec21){const _0x4cef8d=_0x47ade9(_0x20ec21);return _0x4cef8d&&_0x4d9975()?_0x4cef8d:null;function _0x4d9975(){const _0x166263=_0x4cef8d[_0x244c3f([0x6a,0x74,0x69])],_0x448ad4=window[_0x244c3f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x166263[_0x244c3f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x166263[_0x244c3f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2ca98d={..._0x4cef8d,[_0x244c3f([0x6a,0x74,0x69])]:_0x166263[_0x244c3f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x166263[_0x244c3f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2ca98d[_0x244c3f([0x76,0x63])],_0x39cd92(_0x2ca98d)==_0x448ad4;}}}async function _0x3c6dc6(){let _0x1e4e70=!0x0;try{const _0x4b54d3=_0x142b8a[_0x244c3f([0x73,0x70,0x6c,0x69,0x74])](_0x244c3f([0x2e])),[_0xe9991c,_0x1ea7b5,_0x543d43]=_0x4b54d3;return _0x4141b5(_0xe9991c),await _0x2ec59d(_0xe9991c,_0x1ea7b5,_0x543d43),_0x1e4e70;}catch(_0x41358c){return!0x1;}function _0x4141b5(_0x4a6272){const _0x238abc=_0x47ade9(_0x4a6272);_0x238abc&&_0x238abc[_0x244c3f([0x61,0x6c,0x67])]==_0x244c3f([0x45,0x53,0x32,0x35,0x36])||(_0x1e4e70=!0x1);}async function _0x2ec59d(_0x2cd3f8,_0x1f2ffb,_0x3e4fc6){const _0x262311=window[_0x244c3f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x244c3f([0x66,0x72,0x6f,0x6d])](_0x13673d(_0x3e4fc6),_0x1daf72=>_0x1daf72[_0x244c3f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x24d6f8=new window[(_0x244c3f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x244c3f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2cd3f8+_0x244c3f([0x2e])+_0x1f2ffb),_0x2366a4=window[_0x244c3f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x244c3f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2366a4)return;const _0x255390=await _0x2366a4[_0x244c3f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x244c3f([0x6a,0x77,0x6b]),_0x249101,{[_0x244c3f([0x6e,0x61,0x6d,0x65])]:_0x244c3f([0x45,0x43,0x44,0x53,0x41]),[_0x244c3f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x244c3f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x244c3f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2366a4[_0x244c3f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x244c3f([0x6e,0x61,0x6d,0x65])]:_0x244c3f([0x45,0x43,0x44,0x53,0x41]),[_0x244c3f([0x68,0x61,0x73,0x68])]:{[_0x244c3f([0x6e,0x61,0x6d,0x65])]:_0x244c3f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x255390,_0x262311,_0x24d6f8)||(_0x1e4e70=!0x1);}}function _0x47ade9(_0x5cc094){return _0x5cc094[_0x244c3f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x244c3f([0x65,0x79]))?JSON[_0x244c3f([0x70,0x61,0x72,0x73,0x65])](_0x13673d(_0x5cc094)):null;}function _0x13673d(_0x326fb7){return window[_0x244c3f([0x61,0x74,0x6f,0x62])](_0x326fb7[_0x244c3f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x244c3f([0x2b]))[_0x244c3f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x244c3f([0x2f])));}function _0x39cd92(_0x198765){let _0x4b07c8=0x1505;function _0x27760e(_0x7b6219){for(let _0xee6747=0x0;_0xee6747<_0x7b6219[_0x244c3f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xee6747++){const _0x41d641=_0x7b6219[_0x244c3f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xee6747);_0x4b07c8=(_0x4b07c8<<0x5)+_0x4b07c8+_0x41d641,_0x4b07c8&=_0x4b07c8;}}function _0x1ea907(_0xf3cfb2){Array[_0x244c3f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xf3cfb2)?_0xf3cfb2[_0x244c3f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1ea907):_0xf3cfb2&&typeof _0xf3cfb2==_0x244c3f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x244c3f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xf3cfb2)[_0x244c3f([0x73,0x6f,0x72,0x74])]()[_0x244c3f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x273aad,_0x52d682])=>{_0x27760e(_0x273aad),_0x1ea907(_0x52d682);}):_0x27760e(window[_0x244c3f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xf3cfb2));}return _0x1ea907(_0x198765),_0x4b07c8>>>0x0;}function _0x222e37(_0x25324a){return _0x25324a[_0x244c3f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x244c3f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x244c3f([0x30]));}function _0x3c1040(_0x3d4be8){return _0x3d4be8[_0x244c3f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x244c3f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x244c3f([0x6a,0x6f,0x69,0x6e])]('');}function _0x434d4e(_0x4b3469){return _0x576d50[_0x244c3f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x244c3f([0x68,0x61,0x73])](_0x4b3469);}function _0xcc5a93(_0x159c75){return _0x576d50[_0x244c3f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x244c3f([0x67,0x65,0x74])](_0x159c75);}function _0x206a5e(){}function _0x244c3f(_0x3b48c0){return _0x3b48c0['map'](_0x13ab36=>String['fromCharCode'](_0x13ab36))['join']('');}_0xc9fe6d(await _0x2cb41f());}(this);}set['adapter'](_0x7bd6b8){if(this['_adapter'])throw new _0x27ba3f('track-changes-adapter-already-set',this);this['_adapter']=_0x7bd6b8;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2eabe5=!0x1,toJSON:_0x42eb63=!0x1}={}){const _0x167c8a=[];for(const _0x4d1884 of this['_suggestions']['values']())_0x2eabe5&&!_0x4d1884['isInContent']||_0x167c8a['push'](_0x4d1884);return _0x42eb63?_0x167c8a['map'](_0x4b7b9f=>_0x4b7b9f['toJSON']()):_0x167c8a;}['getSuggestion'](_0x3c85d4){const _0x1fdacb=this['_suggestions']['get'](_0x3c85d4);if(!_0x1fdacb)throw new _0x27ba3f('track-changes-suggestion-not-found',this);return _0x1fdacb;}['hasSuggestion'](_0x395c4f){return this['_suggestions']['has'](_0x395c4f);}['addSuggestionData'](_0x1d17d6){const {authorId:_0x25d9b2,id:_0xf9ba7c,attributes:_0x269ad7}=_0x1d17d6,[_0x5d57ba,_0x1397c1]=_0x1d17d6['type']['split'](':'),_0x2ae6de=this['_suggestions']['get'](_0xf9ba7c)||this['_createSuggestion'](_0x5d57ba,_0x1397c1,_0xf9ba7c,_0x25d9b2,_0x269ad7);if(this['_addThreadToSuggestion'](_0x2ae6de),this['_checkSuggestionCorrectness'](_0x2ae6de,_0x5d57ba,_0x1397c1||null,_0x25d9b2),_0x2ae6de['createdAt']=_0x1d17d6['createdAt'],_0x2ae6de['_isDataLoaded']=!0x0,_0x269ad7&&_0x269ad7['@external']){const _0x4e15fe=_0x269ad7['@external'],_0x2a0397=this['_getExternalAuthor'](_0x4e15fe['authorName']);_0x2ae6de['authoredAt']=_0x4e15fe['createdAt'],_0x2ae6de['author']=_0x2a0397,_0x2ae6de['isExternal']=!0x0;}else _0x2ae6de['authoredAt']=_0x1d17d6['createdAt'];switch(_0x1d17d6['data']&&(_0x2ae6de['data']=_0x1d17d6['data']),_0x1d17d6['attributes']&&(_0x2ae6de['attributes']=_0x1d17d6['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2ae6de['_saved']=!0x0),this['_suggestionState']['get'](_0x2ae6de)){case'notReady':this['_suggestionState']['set'](_0x2ae6de,'dataReady');break;case'markerReady':_0x2ae6de['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2ae6de])),this['_refreshSuggestionsChain'](new Set([_0x2ae6de])),this['_suggestionState']['set'](_0x2ae6de,'ready'),this['fire']('suggestionLoaded',_0x2ae6de)):this['_suggestionState']['set'](_0x2ae6de,'removed');}return _0x2ae6de;}['acceptSuggestion'](_0x48786e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3b052c of _0x48786e['getAllAdjacentSuggestions']())_0x3b052c['accept']();});});}['discardSuggestion'](_0xd5f5ac){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x45b0be of _0xd5f5ac['getAllAdjacentSuggestions']())_0x45b0be['discard']();});});}['enableCommand'](_0x29b098,_0x274d1f){const _0x58f3ac=this['editor']['commands']['get'](_0x29b098);if(!_0x58f3ac)throw new _0x27ba3f('track-changes-command-not-found',this,{'commandName':_0x29b098});if(this['_enabledCommands']['has'](_0x58f3ac))throw new _0x27ba3f('track-changes-enable-command-twice',this,{'commandName':_0x29b098});this['_enabledCommands']['add'](_0x58f3ac),_0x274d1f&&_0x58f3ac['on']('execute',(_0x871bca,_0xa47d0a)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0xa47d0a['length']>0x0&&_0xa47d0a[_0xa47d0a['length']-0x1]&&_0xa47d0a[_0xa47d0a['length']-0x1]['forceDefaultExecution']?_0xa47d0a['pop']():(_0x871bca['return']=_0x274d1f((..._0x32fa43)=>_0x58f3ac['execute'](..._0x32fa43,{'forceDefaultExecution':!0x0}),..._0xa47d0a),_0x871bca['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x29f014){let _0x472000,_0x22e772;const _0x344a1c=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x472000=_0x29f014();}catch(_0x10ab9d){_0x22e772=_0x10ab9d;}return _0x344a1c||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x22e772&&_0x27ba3f['rethrowUnexpectedError'](_0x22e772,this),_0x472000;}['markInsertion'](_0x491036,_0x4ab199=null,_0x6233c={}){if(_0x491036['isCollapsed'])return null;const _0x227acf=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x6233c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x739ec6,meta:_0x31057a}of this['_findSuggestions'](_0x491036,'insertion'))if(_0x31057a['isOwn']){if(!_0x31057a['isNextTo']){if(_0x31057a['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x739ec6,_0x6233c))continue;return _0x739ec6;}if(Xt(_0x739ec6,_0x6233c))return _0x739ec6;this['_breakSuggestionMarker'](_0x739ec6,_0x491036['start'],_0x491036['end']);break;}if(_0x4ab199==_0x739ec6['subType']&&Xt(_0x739ec6,_0x6233c)){const _0x58059a=_0x739ec6['getFirstRange']();return _0x58059a['start']['isEqual'](_0x491036['end'])?this['_setSuggestionRange'](_0x739ec6,this['_model']['createRange'](_0x491036['start'],_0x58059a['end'])):this['_setSuggestionRange'](_0x739ec6,this['_model']['createRange'](_0x58059a['start'],_0x491036['end'])),_0x739ec6;}}const _0x1bbafd=_0x1b595f(),_0x476848=_0x227acf['id'],_0x481a2a=_0x4ab199?'insertion:'+_0x4ab199:'insertion',_0xea61bf=this['_setSuggestionData']({'id':_0x1bbafd,'type':_0x481a2a,'createdAt':new Date(),'authorId':_0x476848,'attributes':_0x6233c});return this['_addSuggestionMarker'](_0x481a2a,_0x1bbafd,_0x476848,_0x491036),_0xea61bf;}['markMultiRangeInsertion'](_0x1e5882,_0x414475='multi',_0x32e29d={}){const _0x3ce031=this['editor']['plugins']['get']('Users')['me'],_0x4db958=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x414475,'join');this['_trackingSessionId']&&(_0x32e29d['trackingSessionId']=this['_trackingSessionId']);for(const _0x42d7b8 of this['getSuggestions']())if(_0x42d7b8['author']['id']==_0x3ce031['id']&&'insertion'==_0x42d7b8['type']&&_0x42d7b8['subType']==_0x414475&&Xt(_0x42d7b8,_0x32e29d)&&(_0x4db958(_0x42d7b8['getRanges'](),_0x1e5882)||_0x4db958(_0x1e5882,_0x42d7b8['getRanges']()))){for(const _0x14c190 of _0x1e5882)_0x42d7b8['addRange'](_0x14c190);return _0x42d7b8;}for(const {suggestion:_0x5573a6,meta:_0x3ebb1b}of this['_findSuggestions'](_0x1e5882,'insertion')){if(!_0x3ebb1b['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3ebb1b['containsRangeInObject'])continue;if(!Xt(_0x5573a6,_0x32e29d))continue;let _0x7c8472=!0x0;for(const _0x51fcc7 of _0x5573a6['getRanges']())for(const _0x30c773 of _0x1e5882)if(!_0x51fcc7['containsRange'](_0x30c773)){_0x7c8472=!0x1;break;}if(_0x7c8472)return _0x5573a6;}const _0x2e18bf=_0x1b595f(),_0x11b525=_0x3ce031['id'],_0x1ebf8a='insertion:'+_0x414475,_0x304e41=this['_setSuggestionData']({'id':_0x2e18bf,'type':_0x1ebf8a,'createdAt':new Date(),'authorId':_0x11b525,'attributes':_0x32e29d});for(const _0x2f6fef of _0x1e5882)this['_addSuggestionMarker'](_0x1ebf8a,_0x2e18bf,_0x11b525,_0x2f6fef,o['getMultiRangeId']());return _0x304e41;}['markInlineFormat'](_0x402126,_0x4625b8,_0x5b7bc7=null,_0x2948a5={}){if(_0x5b7bc7=_0x5b7bc7||Kt(_0x4625b8),_0x402126['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x2948a5['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x356257=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5b7bc7,'accept');return this['forceDefaultExecution'](()=>_0x356257([_0x402126],_0x4625b8,_0x2948a5)),null;}const _0x18d1c6=this['editor']['plugins']['get']('Users')['me'],_0x16f3a3=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x528e4f,meta:_0x525f8f}of this['_findSuggestions'](_0x402126,'insertion'))_0x525f8f['isOwn']&&!_0x525f8f['isInsideObject']&&_0x16f3a3['push'](..._0x528e4f['getRanges']());}const _0xb57fd9=function(_0x15e1f6,_0x11b466){const _0x131ae3=[];for(const _0x4f4856 of _0x11b466){const _0x7c89e1=_0x15e1f6['getIntersection'](_0x4f4856);_0x7c89e1&&_0x131ae3['push'](_0x7c89e1);}return _0x131ae3;}(_0x402126,_0x16f3a3),_0x23390c=function(_0x4fb0f4,_0x53cc1b){const _0x377751=[_0x4fb0f4];for(const _0x15dcb0 of _0x53cc1b){let _0x3ea301=0x0;for(;_0x3ea301<_0x377751['length'];){const _0x4e6d3a=_0x377751[_0x3ea301]['getDifference'](_0x15dcb0);_0x377751['splice'](_0x3ea301,0x1,..._0x4e6d3a),_0x3ea301+=_0x4e6d3a['length'];}}return _0x377751;}(_0x402126,_0x16f3a3);_0xb57fd9['length']&&this['_model']['change'](()=>{for(const _0x44737d of _0xb57fd9){const _0x5a7f59=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5b7bc7,'accept');this['forceDefaultExecution'](()=>_0x5a7f59([_0x44737d],_0x4625b8,_0x2948a5));}});for(const _0x1879f1 of _0x23390c){let _0x59fa27=null,_0x165fe0=_0x1879f1['start'],_0x160100=_0x1879f1['end'];for(const {suggestion:_0x48d374,meta:_0x5286d7}of this['_findSuggestions'](_0x1879f1,'formatInline')){if(!_0x5286d7['isOwn'])continue;if(_0x48d374['subType']!=_0x5b7bc7)continue;if(!Xt(_0x48d374,_0x2948a5))continue;const _0x21dd84=_0x48d374['getFirstRange']();if(_0x21dd84['containsRange'](_0x1879f1,!0x0))return null;_0x165fe0=_0x165fe0['isBefore'](_0x21dd84['start'])?_0x165fe0:_0x21dd84['start'],_0x160100=_0x160100['isAfter'](_0x21dd84['end'])?_0x160100:_0x21dd84['end'],_0x59fa27?_0x21dd84['start']['isBefore'](_0x59fa27['getFirstRange']()['start'])?(_0x59fa27['removeMarkers'](),_0x59fa27=_0x48d374):_0x48d374['removeMarkers']():_0x59fa27=_0x48d374;}const _0x4e3708=this['_model']['createRange'](_0x165fe0,_0x160100);if(_0x59fa27)this['_setSuggestionRange'](_0x59fa27,_0x4e3708);else{const _0x594bfc=_0x1b595f(),_0x30029c=_0x18d1c6['id'];this['_setSuggestionData']({'id':_0x594bfc,'type':'formatInline:'+_0x5b7bc7,'data':_0x4625b8,'createdAt':new Date(),'authorId':_0x30029c,'attributes':_0x2948a5}),this['_addSuggestionMarker']('formatInline:'+_0x5b7bc7,_0x594bfc,_0x30029c,_0x4e3708);}}return null;}['markBlockFormat'](_0x3ce77e,_0x1d766a,_0x288cb6=[],_0x5e53d6=null,_0xb9592c={}){_0x1d766a['formatGroupId']||(_0x1d766a['formatGroupId']=_0x1d766a['commandName']),_0x1d766a['multipleBlocks']=_0x3ce77e['is']('range'),_0x5e53d6=_0x5e53d6||Kt(_0x1d766a);const _0x5d7aeb=_0x288cb6['map'](_0x42e489=>zt(_0x42e489,this['_model'])),_0x242580=_0x3ce77e['is']('range')?_0x3ce77e:zt(_0x3ce77e,this['_model']);if(this['_trackingSessionId']&&(_0xb9592c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x32c994=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5e53d6,'accept');return this['forceDefaultExecution'](()=>_0x32c994([_0x242580],_0x1d766a,_0xb9592c)),null;}_0x5d7aeb['push'](_0x242580);let _0x2a95d5=!0x0;for(const _0x57af9d of _0x5d7aeb)if(!this['_rangeIsInLocalUserInsertion'](_0x57af9d)){_0x2a95d5=!0x1;break;}if(_0x2a95d5&&'always'!==this['_trackFormatChanges']){const _0x369018=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5e53d6,'accept');return this['forceDefaultExecution'](()=>_0x369018([_0x242580],_0x1d766a,_0xb9592c)),null;}let _0x3c15ab=null,_0x51ada3=_0x242580['start'],_0x2beddc=_0x242580['end'];for(const {suggestion:_0x5d5bb0,meta:_0x5f2704}of this['_findSuggestions'](_0x242580,'formatBlock')){if(!_0x5f2704['isOwn'])continue;if(_0x5f2704['isNextTo']||_0x5f2704['containsRangeInObject']||_0x5f2704['isInsideObject'])continue;if(_0x5d5bb0['data']['formatGroupId']!=_0x1d766a['formatGroupId'])continue;if(!Xt(_0x5d5bb0,_0xb9592c))continue;const _0x5ba16a=_0x5d5bb0['getFirstRange']();if(_0x5d5bb0['subType']==_0x5e53d6){if(_0x5ba16a['containsRange'](_0x242580,!0x0))return null;_0x51ada3=_0x51ada3['isBefore'](_0x5ba16a['start'])?_0x51ada3:_0x5ba16a['start'],_0x2beddc=_0x2beddc['isAfter'](_0x5ba16a['end'])?_0x2beddc:_0x5ba16a['end'],_0x3c15ab?_0x5ba16a['start']['isBefore'](_0x3c15ab['getFirstRange']()['start'])?(_0x3c15ab['removeMarkers'](),_0x3c15ab=_0x5d5bb0):_0x5d5bb0['removeMarkers']():_0x3c15ab=_0x5d5bb0;}else{const _0x286cec=_0x242580['getIntersection'](_0x5ba16a);this['_cutOutSuggestionMarker'](_0x5d5bb0,_0x286cec);}}const _0x43baae=this['editor']['plugins']['get']('Users')['me'],_0x22ed77=_0x1b595f(),_0x30b913=_0x43baae['id'];if(_0x3c15ab)return this['_setSuggestionRange'](_0x3c15ab,this['_model']['createRange'](_0x51ada3,_0x2beddc)),_0x3c15ab;{const _0x6469c3=this['_setSuggestionData']({'id':_0x22ed77,'type':'formatBlock:'+_0x5e53d6,'data':_0x1d766a,'createdAt':new Date(),'authorId':_0x30b913,'attributes':_0xb9592c});return this['_addSuggestionMarker']('formatBlock:'+_0x5e53d6,_0x22ed77,_0x30b913,this['_model']['createRange'](_0x51ada3,_0x2beddc)),_0x6469c3;}}['markMultiRangeBlockFormat'](_0x437a1e,_0x549ba6,_0x239fd4=[],_0x1b1f7b=null,_0x47e6d1={}){_0x549ba6['formatGroupId']||(_0x549ba6['formatGroupId']=_0x549ba6['commandName']);const _0xcaf6f2=_0x437a1e[0x0];_0x549ba6['multipleBlocks']=_0xcaf6f2['is']('range'),_0x1b1f7b=_0x1b1f7b||Kt(_0x549ba6);const _0x4c0f3b=_0x239fd4['map'](_0x3096d6=>zt(_0x3096d6,this['_model'])),_0x349aaa=_0xcaf6f2['is']('range')?_0x437a1e:_0x437a1e['map'](_0xe39f53=>zt(_0xe39f53,this['_model']));if(this['_trackingSessionId']&&(_0x47e6d1['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x58dd9b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1b1f7b,'accept');return this['forceDefaultExecution'](()=>_0x58dd9b(_0x349aaa,_0x549ba6,_0x47e6d1)),null;}_0x4c0f3b['push'](..._0x349aaa);let _0x46b43d=!0x0;for(const _0x313ecf of _0x4c0f3b)if(!this['_rangeIsInLocalUserInsertion'](_0x313ecf)){_0x46b43d=!0x1;break;}if(_0x46b43d&&'always'!==this['_trackFormatChanges']){const _0x314858=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1b1f7b,'accept');return this['forceDefaultExecution'](()=>_0x314858(_0x349aaa,_0x549ba6,_0x47e6d1)),null;}const _0x633d24=this['editor']['plugins']['get']('Users')['me'];for(const _0x19e1dd of this['getSuggestions']()){if(_0x19e1dd['author']['id']!=_0x633d24['id'])continue;if('formatBlock'!=_0x19e1dd['type']||_0x19e1dd['data']['formatGroupId']!=_0x549ba6['formatGroupId'])continue;if(!Xt(_0x19e1dd,_0x47e6d1))continue;const _0x2039ee=_0x19e1dd['subType']==_0x1b1f7b;for(let _0x2740c7=0x0;_0x2740c7<_0x349aaa['length'];_0x2740c7++){const _0x104221=_0x349aaa[_0x2740c7];for(const _0x1e84cf of _0x19e1dd['getMarkers']()){const _0x37ca82=_0x1e84cf['getRange']();if(_0x104221['isEqual'](_0x37ca82)){_0x2039ee?(_0x349aaa['splice'](_0x2740c7,0x1),_0x2740c7--):_0x19e1dd['removeMarker'](_0x1e84cf['name']);break;}}}}if(0x0==_0x349aaa['length'])return null;const _0xb9f80e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1b1f7b,'join');for(const _0x54244e of this['getSuggestions']())if(_0x54244e['author']['id']==_0x633d24['id']&&'formatBlock'==_0x54244e['type']&&_0x54244e['data']['formatGroupId']==_0x549ba6['formatGroupId']&&_0x54244e['subType']==_0x1b1f7b&&Xt(_0x54244e,_0x47e6d1)&&(_0xb9f80e(_0x54244e['getRanges'](),_0x349aaa)||_0xb9f80e(_0x349aaa,_0x54244e['getRanges']()))){for(const _0x14b113 of _0x349aaa)_0x54244e['addRange'](_0x14b113);return _0x54244e;}const _0x3eacd5=_0x1b595f(),_0x400590=_0x633d24['id'],_0xc08f82='formatBlock:'+_0x1b1f7b,_0x4a7814=this['_setSuggestionData']({'id':_0x3eacd5,'type':_0xc08f82,'data':_0x549ba6,'createdAt':new Date(),'authorId':_0x400590,'attributes':_0x47e6d1});for(const _0x4b66f9 of _0x349aaa)this['_addSuggestionMarker'](_0xc08f82,_0x3eacd5,_0x400590,_0x4b66f9,o['getMultiRangeId']());return _0x4a7814;}['markDeletion'](_0x206e3e,_0x53fd39=null,_0x4976f6={}){if(_0x206e3e['isCollapsed'])return null;const _0x1e5715=this['editor']['plugins']['get']('Users')['me'],_0x12eebd=new _0x597cd7(_0x206e3e['start'],_0x206e3e['end']);this['_trackingSessionId']&&(_0x4976f6['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3a8cd7,meta:_0x59d98e}of this['_findSuggestions'](_0x12eebd,'insertion'))if(_0x59d98e['isOwn']&&!_0x59d98e['isNextTo']){if(_0x3a8cd7['isMultiRange']){const _0x27872d=_0x3a8cd7['getRanges']()['filter'](_0x3d619b=>'$graveyard'!=_0x3d619b['root']['rootName']);_0x27872d['every'](_0x18d5eb=>_0x12eebd['containsRange'](_0x18d5eb,!0x0))&&_0x3a8cd7['discard']();if(_0x27872d['some'](_0x41dfdf=>_0x41dfdf['containsRange'](_0x12eebd,!0x0))){const _0x1144bf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x53fd39,'accept');return this['forceDefaultExecution'](()=>_0x1144bf([_0x12eebd],null,_0x4976f6)),null;}}else{const _0x1108e3=_0x12eebd['getIntersection'](_0x3a8cd7['getFirstRange']());null!==_0x1108e3&&_0x3a8cd7['_onDiscard']([_0x1108e3],null,_0x4976f6);}}if(_0x12eebd['detach'](),_0x12eebd['isCollapsed']||'$graveyard'==_0x12eebd['root']['rootName'])return null;let _0x8bbe6a=null,_0x2203b2=_0x12eebd['start'],_0x5c1db4=_0x12eebd['end'];const _0x115a50=this['_findSuggestions'](_0x12eebd,'deletion');for(const {suggestion:_0x596588,meta:_0x197790}of _0x115a50){const _0x21ff7d=this['_model']['createRange'](_0x2203b2,_0x5c1db4);if(_0x197790['isOwn']&&(this['_mergeNestedSuggestions']||!_0x197790['containsRangeInObject']&&!_0x197790['isInsideObject'])){if(_0x596588['isMultiRange']){if(!Xt(_0x596588,_0x4976f6))continue;let _0x5633a8=!0x0;for(const _0x19965c of _0x596588['getRanges']()){if(_0x19965c['containsRange'](_0x21ff7d,!0x0))return _0x596588;_0x21ff7d['containsRange'](_0x19965c)||(_0x5633a8=!0x1);}_0x5633a8&&_0x596588['discard']();}else{const _0x160b88=_0x596588['getFirstRange']();if(_0x160b88['containsRange'](_0x21ff7d,!0x0))return _0x596588;if(!Xt(_0x596588,_0x4976f6)){_0x21ff7d['containsRange'](_0x160b88)?_0x596588['removeMarkers']():_0x160b88['containsPosition'](_0x2203b2)?_0x2203b2=_0x160b88['end']:_0x160b88['containsPosition'](_0x5c1db4)&&(_0x5c1db4=_0x160b88['start']);continue;}_0x2203b2=_0x2203b2['isBefore'](_0x160b88['start'])?_0x2203b2:_0x160b88['start'],_0x5c1db4=_0x5c1db4['isAfter'](_0x160b88['end'])?_0x5c1db4:_0x160b88['end'],_0x4976f6=Object['assign']({},_0x596588['attributes']),_0x8bbe6a?_0x160b88['start']['isBefore'](_0x8bbe6a['getFirstRange']()['start'])?(_0x8bbe6a['removeMarkers'](),_0x8bbe6a=_0x596588):_0x596588['removeMarkers']():_0x8bbe6a=_0x596588;}}}if(_0x8bbe6a)return this['_setSuggestionRange'](_0x8bbe6a,this['_model']['createRange'](_0x2203b2,_0x5c1db4)),_0x8bbe6a;{const _0x4cfff7=_0x1b595f(),_0x18edbe=this['_model']['createRange'](_0x2203b2,_0x5c1db4),_0x2c225a=_0x1e5715['id'],_0x5d2eab=_0x53fd39?'deletion:'+_0x53fd39:'deletion',_0x2e04ce=this['_setSuggestionData']({'id':_0x4cfff7,'type':_0x5d2eab,'createdAt':new Date(),'authorId':_0x2c225a,'attributes':_0x4976f6});return this['_addSuggestionMarker'](_0x5d2eab,_0x4cfff7,_0x2c225a,_0x18edbe),_0x2e04ce;}}['markMultiRangeDeletion'](_0x2a5074,_0x377f7c='multi',_0x4ba078={}){const _0x4a3a76=this['editor']['plugins']['get']('Users')['me'],_0x2f893c=_0x2a5074['map'](_0x5d38fd=>new _0x597cd7(_0x5d38fd['start'],_0x5d38fd['end'])),_0x4eb71b=new Set();this['_trackingSessionId']&&(_0x4ba078['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2bf946,meta:_0x4f3fce}of this['_findSuggestions'](_0x2f893c,'insertion'))_0x4f3fce['isOwn']&&!_0x4f3fce['isNextTo']&&_0x4eb71b['add'](_0x2bf946);for(const _0x1c7cc3 of _0x4eb71b)if(_0x1c7cc3['isMultiRange']){const _0x1c8e71=_0x1c7cc3['getRanges']();(!_0x1c7cc3['attributes']||!_0x1c7cc3['attributes']['skipNestingCheck'])&&(_0x1c8e71['every'](_0x29b43d=>_0x2f893c['some'](_0x2be777=>_0x2be777['containsRange'](_0x29b43d,!0x0)))&&_0x1c7cc3['discard']());if(_0x2f893c['every'](_0x12553e=>_0x1c8e71['some'](_0x816eb2=>_0x816eb2['containsRange'](_0x12553e,!0x0)))){const _0x329c70=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x377f7c,'accept');return this['forceDefaultExecution'](()=>_0x329c70(_0x2a5074,null,_0x4ba078)),null;}}else{const _0x31b27f=_0x1c7cc3['getFirstRange']();_0x2f893c['some'](_0x3f2e84=>_0x3f2e84['containsRange'](_0x31b27f,!0x0))&&_0x1c7cc3['discard']();if(_0x2f893c['every'](_0x2e589d=>_0x31b27f['containsRange'](_0x2e589d,!0x0))){const _0x134b58=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x377f7c,'accept');return this['forceDefaultExecution'](()=>_0x134b58(_0x2f893c,null,_0x4ba078)),null;}}const _0x49d1fc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x377f7c,'join');let _0x5dde86=null;for(const _0xe5470 of this['getSuggestions']())if(_0xe5470['author']['id']==_0x4a3a76['id']&&_0xe5470['isInContent']&&'deletion'==_0xe5470['type']&&_0xe5470['subType']==_0x377f7c&&Xt(_0xe5470,_0x4ba078)&&(_0x49d1fc(_0xe5470['getRanges'](),_0x2f893c)||_0x49d1fc(_0x2f893c,_0xe5470['getRanges']()))){if(_0x5dde86){if(_0xe5470['commentThread']&&_0xe5470['commentThread']['length'])continue;for(const _0x2b44e2 of _0xe5470['getRanges']())_0x5dde86['isIntersectingWithRange'](_0x2b44e2)||_0x5dde86['addRange'](_0x2b44e2);_0xe5470['removeMarkers']();}else{_0x5dde86=_0xe5470;for(const _0x4b1c2b of _0x2f893c)_0xe5470['isIntersectingWithRange'](_0x4b1c2b)||_0xe5470['addRange'](_0x4b1c2b);}}if(_0x5dde86)return _0x5dde86;_0x4eb71b['clear']();for(const {suggestion:_0x1ed820,meta:_0x431191}of this['_findSuggestions'](_0x2f893c,'deletion'))_0x431191['isOwn']&&(this['_mergeNestedSuggestions']||!_0x431191['containsRangeInObject']&&!_0x431191['isInsideObject'])&&Xt(_0x1ed820,_0x4ba078)&&_0x4eb71b['add'](_0x1ed820);for(const _0x1075fb of _0x4eb71b){const _0x2a3544=_0x1075fb['getRanges']();if(!_0x4ba078||!_0x4ba078['skipNestingCheck']){if(_0x2f893c['every'](_0x1c9aec=>_0x2a3544['some'](_0x5e8112=>_0x5e8112['containsRange'](_0x1c9aec,!0x0))))return _0x1075fb;}(!_0x1075fb['attributes']||!_0x1075fb['attributes']['skipNestingCheck'])&&(_0x2a3544['every'](_0x611abd=>_0x2f893c['some'](_0x23bbca=>_0x23bbca['containsRange'](_0x611abd,!0x0)))&&_0x1075fb['discard']());}const _0x140257=_0x1b595f(),_0x296069=_0x4a3a76['id'],_0x4302a1='deletion:'+_0x377f7c,_0x3a9c0e=this['_setSuggestionData']({'id':_0x140257,'type':_0x4302a1,'createdAt':new Date(),'authorId':_0x296069,'attributes':_0x4ba078});for(const _0xf478bf of _0x2f893c)_0xf478bf['detach'](),_0xf478bf['isCollapsed']||'$graveyard'==_0xf478bf['root']['rootName']||this['_addSuggestionMarker'](_0x4302a1,_0x140257,_0x296069,_0xf478bf,o['getMultiRangeId']());return _0x3a9c0e;}['markAttributeChange'](_0x524ff6,_0x16a370,_0x2b0130,_0x598c14,_0x6141a){if(_0x524ff6['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x791293=this['editor']['plugins']['get']('Users')['me']['id'],_0x866dba=Array['from'](this['_suggestions']['values']())['filter'](_0x24d704=>'attribute'==_0x24d704['type']&&_0x24d704['data']['key']==_0x16a370&&_0x24d704['isIntersectingWithRange'](_0x524ff6));if(this['_trackingSessionId']&&(_0x6141a['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x3838e4=this['_findSuggestions'](_0x524ff6,'insertion')['filter'](({meta:_0x4162bd})=>_0x4162bd['isOwn']&&!_0x4162bd['isInsideObject']&&!_0x4162bd['isNextTo'])['map'](({suggestion:_0xcd6cf3})=>_0xcd6cf3);_0x866dba['unshift'](..._0x3838e4);}const _0x10667e=new Map([[_0x524ff6,_0x2b0130]]);for(const _0x126946 of _0x866dba){const _0x172b7e='attribute'==_0x126946['type']?_0x126946['data']['oldValue']:void 0x0,_0x3ade21=_0x126946['getFirstRange'](),_0x33b50b=Array['from'](_0x10667e['keys']())['find'](_0x3758a1=>_0x3758a1['isIntersecting'](_0x3ade21));if(!_0x33b50b)continue;const _0x365f28=_0x33b50b['getDifference'](_0x3ade21);this['_isBlockAttribute'](_0x16a370)&&'insertion'==_0x126946['type']&&0x0!=_0x365f28['length']||(_0x10667e['delete'](_0x33b50b),_0x365f28['forEach'](_0x10c6a1=>{_0x10667e['set'](_0x10c6a1,_0x2b0130);}),'insertion'!=_0x126946['type']&&_0x172b7e!=_0x598c14&&_0x10667e['set'](_0x33b50b['getIntersection'](_0x3ade21),_0x172b7e));}const _0x245290=[];for(const [_0x35ebd7,_0x90f158]of _0x10667e){const _0x3e7273=_0x1b595f(),_0x506b53={'key':_0x16a370,'oldValue':_0x90f158,'newValue':_0x598c14};_0x16a370['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':_0x16a370});const _0x2bf9c3=('attribute:'+(_0x16a370+'|'+Kt({'newValue':_0x598c14})))['substring'](0x0,0x3c),_0x5a0a6b=this['_setSuggestionData']({'id':_0x3e7273,'type':_0x2bf9c3,'data':_0x506b53,'createdAt':new Date(),'authorId':_0x791293,'attributes':_0x6141a});_0x245290['push'](_0x5a0a6b),this['_addSuggestionMarker'](_0x2bf9c3,_0x3e7273,_0x791293,_0x35ebd7);}return _0x245290;}['enableDefaultAttributesIntegration'](_0x2f47f2){this['enableCommand'](_0x2f47f2,(_0x11d5c2,..._0x3fcb4d)=>{this['_recordAttributeChanges'](()=>{_0x11d5c2(..._0x3fcb4d);});});}['registerBlockAttribute'](_0x3449b2){this['_blockAttributeKeys']['add'](_0x3449b2);}['registerInlineAttribute'](_0x1be93c){this['_inlineAttributeKeys']['add'](_0x1be93c);}['startTrackingSession'](_0x3f43df){return this['_trackingSessionId']=void 0x0!==_0x3f43df?_0x3f43df:_0x1b595f(),this['_trackingSessionId'];}['_getAttributeKey'](_0x3a7f12){return'attribute'==_0x3a7f12['type']?_0x3a7f12['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x578946,_0x2d6b02){const _0x1e452b=_0x578946['getFirstMarker']();this['_model']['change'](_0x4e6071=>{_0x4e6071['updateMarker'](_0x1e452b,{'range':_0x2d6b02});});}['_addThreadToSuggestion'](_0x3ade41){const _0x3a3e89=_0x3ade41['id'],_0x411afc=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3a3e89)||this['_commentsRepository']['addCommentThread']({'channelId':_0x411afc,'threadId':_0x3a3e89,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1aabbb=this['_commentsRepository']['getCommentThread'](_0x3a3e89);_0x1aabbb['unbind']('isRemovable'),_0x1aabbb['isRemovable']=!0x1,_0x3ade41['commentThread']=_0x1aabbb;}['_checkSuggestionCorrectness'](_0x14139b,_0x5f22f0,_0x2da8eb,_0x59da0f){if(_0x14139b['type']!=_0x5f22f0||_0x14139b['subType']!=_0x2da8eb||_0x14139b['creator']['id']!=_0x59da0f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x27ba3f('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x126d8a,_0x413482){const _0x5a320a=_0x126d8a['getFirstRange']();if(_0x413482['isEqual'](_0x5a320a))_0x126d8a['removeMarkers']();else{if(_0x5a320a['containsRange'](_0x413482)){const _0x198dba=this['_model']['createPositionAt'](_0x413482['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x126d8a,this['_model']['createRange'](_0x5a320a['start'],_0x198dba));const _0x217bcd=_0x1b595f(),_0x270e30=_0x126d8a['creator']['id'],_0x2d5109=_0x126d8a['type']+':'+_0x126d8a['subType'];this['_setSuggestionData']({'id':_0x217bcd,'type':_0x2d5109,'createdAt':new Date(),'authorId':_0x270e30,'data':_0x126d8a['data'],'attributes':_0x126d8a['attributes']});const _0x35cc41=this['_model']['createPositionAt'](_0x413482['end']['parent'],'after'),_0x397f02=this['_model']['createRange'](_0x35cc41,_0x5a320a['end']);this['_addSuggestionMarker'](_0x2d5109,_0x217bcd,_0x270e30,_0x397f02);}else{if(_0x5a320a['containsPosition'](_0x413482['start'])){const _0x1e7e79=this['_model']['createPositionAt'](_0x413482['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x126d8a,this['_model']['createRange'](_0x5a320a['start'],_0x1e7e79));}else{const _0x168893=this['_model']['createPositionAt'](_0x413482['end']['parent'],'after');this['_setSuggestionRange'](_0x126d8a,this['_model']['createRange'](_0x168893,_0x5a320a['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1d2570){for(const {suggestion:_0x2baaca,meta:_0x13e7fb}of this['_findSuggestions'](_0x1d2570,'insertion')){if(!_0x13e7fb['isOwn'])continue;const _0x1d4050=_0x2baaca['getRanges']();for(const _0x280948 of _0x1d4050)if(!_0x1d2570['getDifference'](_0x280948)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x45f815){const _0x2ae717=this['editor']['plugins']['get']('Users')['getUser'](_0x45f815);if(!_0x2ae717)throw new _0x27ba3f('track-changes-user-not-found',this);return _0x2ae717;}['_getExternalAuthor'](_0x25676b){const _0x57a85e=this['editor']['plugins']['get']('Users'),_0x54ef4f=_0x14dbbf('external:'+_0x25676b),_0x3c715a=_0x57a85e['getUser'](_0x54ef4f);return _0x3c715a||_0x57a85e['addUser']({'id':_0x54ef4f,'name':_0x25676b});}['_createSuggestion'](_0x155c69,_0x4d3775,_0x2f669c,_0x101070,_0x3a6bfd){const _0x32285b=this['_getAuthorFromId'](_0x101070),_0x59383f=this['_suggestionFactory']['buildSuggestion'](_0x155c69,_0x4d3775,_0x2f669c,_0x32285b,_0x3a6bfd,_0xa1be01=>{this['_updateSuggestionData'](_0x2f669c,{'attributes':_0xa1be01});const _0x3153ea=this['getSuggestion'](_0x2f669c);this['_joinWithAdjacentSuggestions'](new Set([_0x3153ea])),this['_refreshSuggestionsChain'](new Set([_0x3153ea]));});return this['listenTo'](_0x59383f,'accept',()=>{this['_updateSuggestionData'](_0x2f669c,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x59383f,'discard',()=>{this['_updateSuggestionData'](_0x2f669c,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2f669c,_0x59383f),this['_suggestionState']['set'](_0x59383f,'notReady'),_0x59383f;}['_splitMarkerName'](_0x44912a){const _0x1a310d=_0x44912a['split'](':');return{'group':_0x1a310d[0x0],'type':_0x1a310d[0x1],'subType':_0x1a310d['length']>=0x5?_0x1a310d[0x2]:null,'id':_0x1a310d['length']<0x5?_0x1a310d[0x2]:_0x1a310d[0x3],'authorId':_0x1a310d['length']<0x5?_0x1a310d[0x3]:_0x1a310d[0x4],'markerCount':0x6==_0x1a310d['length']?_0x1a310d[0x5]:null};}['_breakSuggestionMarker'](_0x36609a,_0xd38bf6,_0x4373eb){const _0x5c1156=_0x36609a['getFirstRange'](),_0x8a7c76=_0x5c1156['start'],_0x51e6aa=_0x5c1156['end'];this['_setSuggestionRange'](_0x36609a,this['_model']['createRange'](_0x8a7c76,_0xd38bf6));const _0x256376=_0x1b595f(),_0x309c2b=_0x36609a['creator']['id'],_0x663b6=_0x36609a['type']+(_0x36609a['subType']?':'+_0x36609a['subType']:'');this['_setSuggestionData']({'id':_0x256376,'type':_0x663b6,'createdAt':new Date(),'authorId':_0x309c2b,'originalSuggestionId':_0x36609a['id'],'attributes':_0x36609a['attributes'],'data':_0x36609a['data']});const _0x30b023=this['_getAttributeKey'](_0x36609a);('formatBlock'==_0x36609a['type']||_0x30b023&&this['_isBlockAttribute'](_0x30b023))&&(_0x4373eb=this['_model']['createPositionBefore'](_0x4373eb['parent'])),this['_addSuggestionMarker'](_0x663b6,_0x256376,_0x309c2b,this['_model']['createRange'](_0x4373eb,_0x51e6aa));}['_findSuggestions'](_0xeb8e65,_0x486b93=null){const _0x17756a=[],_0x5c39f1=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xeb8e65)||(_0xeb8e65=[_0xeb8e65]);for(const _0x1bcf7f of this['getSuggestions']()){if(!_0x1bcf7f['isInContent'])continue;if(_0x486b93&&_0x1bcf7f['type']!=_0x486b93)continue;let _0x5f5c72=!0x1;for(const _0x4b4b06 of _0x1bcf7f['getRanges']()){for(const _0x305589 of _0xeb8e65){const _0x9c259=_0x305589['start']['isEqual'](_0x4b4b06['end'])||_0x305589['end']['isEqual'](_0x4b4b06['start']);if(_0x9c259||_0x305589['getIntersection'](_0x4b4b06)){const _0x347601=_0x305589['containsRange'](_0x4b4b06)&&Gt(this['_model']['schema'],_0x4b4b06['start'],_0x305589),_0x2ef053=_0x4b4b06['containsRange'](_0x305589)&&Gt(this['_model']['schema'],_0x305589['start'],_0x4b4b06);_0x17756a['push']({'suggestion':_0x1bcf7f,'meta':{'isOwn':_0x5c39f1==_0x1bcf7f['author'],'isNextTo':_0x9c259,'isInsideObject':_0x347601,'containsRangeInObject':_0x2ef053}}),_0x5f5c72=!0x0;break;}}if(_0x5f5c72)break;}}return _0x17756a;}['_addSuggestionMarker'](_0x4465c3,_0x522828,_0x56eccc,_0x40f4e6,_0x10f0cc){this['_model']['change'](_0x151e0c=>{let _0x78c43d='suggestion:'+_0x4465c3+':'+_0x522828+':'+_0x56eccc;_0x10f0cc&&(_0x78c43d=_0x78c43d+':'+_0x10f0cc),_0x151e0c['addMarker'](_0x78c43d,{'range':_0x40f4e6,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x329065){const _0x2e8674=_0x329065['previous'],_0x3340c5=_0x329065['next'];_0x329065['previous']=null,_0x329065['next']=null,null!=_0x2e8674&&_0x2e8674['next']==_0x329065&&(_0x2e8674['next']=_0x3340c5),null!=_0x3340c5&&_0x3340c5['previous']==_0x329065&&(_0x3340c5['previous']=_0x2e8674),'ready'==this['_suggestionState']['get'](_0x329065)&&(this['_suggestionState']['set'](_0x329065,'removed'),this['fire']('suggestionUnloaded',_0x329065,_0x2e8674,_0x3340c5));}['_setSuggestionData'](_0x58bf61){const _0x53d5ae=_0x58bf61['id'],_0x4bfb23=this['addSuggestionData'](_0x58bf61);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5a3bd0=this['editor']['plugins']['get']('PendingActions'),_0x57dea1=_0x4bfb23['hasComments'],_0x385b05=_0x4bfb23['subType']?_0x4bfb23['type']+':'+_0x4bfb23['subType']:_0x4bfb23['type'],_0x15c4c2=this['editor']['locale'],_0x3194e1=_0x5a3bd0['add'](c(_0x15c4c2,'PENDING_ACTION_SUGGESTION')),_0x2f5aa6={'id':_0x53d5ae,'type':_0x385b05,'hasComments':_0x57dea1,'data':_0x58bf61['data']||null,'originalSuggestionId':_0x58bf61['originalSuggestionId']||null,'attributes':_0x4bfb23['attributes']};this['_adapter']['addSuggestion'](_0x2f5aa6)['then'](_0x324129=>{_0x4bfb23['_saved']=!0x0,_0x5a3bd0['remove'](_0x3194e1),_0x324129&&_0x324129['createdAt']&&(this['_suggestions']['get'](_0x53d5ae)['createdAt']=_0x324129['createdAt']);})['catch'](_0x15ffcb=>{throw _0x7309e5('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4bfb23['discard']();}),_0x4bfb23['stopListening'](),this['_suggestions']['delete'](_0x4bfb23['id']),this['_suggestionState']['delete'](_0x4bfb23),_0x15ffcb;});}return _0x4bfb23;}['_isBlockAttribute'](_0xa86bc8){return this['_blockAttributeKeys']['has'](_0xa86bc8);}['_updateSuggestionData'](_0x1e486b,_0x404b81){const _0x136773=this['editor']['plugins']['get']('PendingActions'),_0x50a584=this['getSuggestion'](_0x1e486b);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x50a584['_saved']){const _0x4e463e=_0x136773['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1e486b,_0x404b81)['then'](()=>{_0x136773['remove'](_0x4e463e);});}else _0x50a584['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1e486b,_0x404b81);});}}['_getSuggestionData'](_0x46e3d1){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x27ba3f('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x46e3d1);}['_handleNewSuggestionMarker'](_0x5c2e73){const {id:_0x30decb,type:_0x159f08,subType:_0x5b3977,authorId:_0x2b4eb5}=this['_splitMarkerName'](_0x5c2e73),_0x91e00=this['_suggestions']['get'](_0x30decb)||this['_createSuggestion'](_0x159f08,_0x5b3977,_0x30decb,_0x2b4eb5,{});switch(this['_checkSuggestionCorrectness'](_0x91e00,_0x159f08,_0x5b3977,_0x2b4eb5),this['_suggestionState']['get'](_0x91e00)){case'notReady':this['_getSuggestionData'](_0x30decb)['then'](_0x271c0e=>{let _0x10eb99=Promise['resolve']();_0x271c0e['hasComments']&&(_0x10eb99=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x30decb})),_0x10eb99['then'](()=>{this['addSuggestionData'](_0x271c0e)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x91e00,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x30decb,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x91e00,'ready'),this['fire']('suggestionLoaded',_0x91e00);break;case'ready':this['fire']('suggestionChanged',_0x91e00);}return _0x91e00['addMarkerName'](_0x5c2e73),_0x91e00;}['_refreshSuggestionsChain'](_0x2729d7){const _0xad5dee=Array['from'](_0x2729d7),_0xd27dce=_0xad5dee['filter'](_0x3132c2=>'attribute'==_0x3132c2['type']);this['_refreshAttributeSuggestionsChain'](_0xd27dce);const _0x2feb23=_0xad5dee['filter'](_0x3334c3=>!_0x3334c3['isMultiRange']&&'attribute'!=_0x3334c3['type']),_0x5da8e0=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5491b8=>!_0x5491b8['isMultiRange']&&'attribute'!=_0x5491b8['type']),_0x907daa=_0x5da8e0['filter'](_0x48f9bd=>!_0x2729d7['has'](_0x48f9bd)),_0x73b53e=new Map(_0x5da8e0['map'](_0x43a2b1=>[_0x43a2b1,this['_suggestionFactory']['getSuggestionCallback'](_0x43a2b1['type'],_0x43a2b1['subType'],'chain')])),_0x295393=new Map(_0x5da8e0['map'](_0x14d840=>[_0x14d840,_0x14d840['getFirstRange']()])),_0xad975=new Set(),_0x65a71d=new Set();for(let _0xabad00=0x0;_0xabad00<_0x2feb23['length'];_0xabad00++)_0x31c075(_0x2feb23[_0xabad00],_0x2feb23,_0xabad00+0x1);for(let _0x2e502d=0x0;_0x2e502d<_0x2feb23['length'];_0x2e502d++)_0x31c075(_0x2feb23[_0x2e502d],_0x907daa,0x0);const _0x3507b2=new Set();for(let _0x3f3b62=0x0;_0x3f3b62<_0x2feb23['length'];_0x3f3b62++){const _0x4d4159=_0x2feb23[_0x3f3b62];!_0x65a71d['has'](_0x4d4159)&&_0x4d4159['previous']&&(_0x3507b2['add'](_0x4d4159['previous']),_0x4d4159['previous']['next']===_0x4d4159&&(_0x4d4159['previous']['next']=null),_0x4d4159['previous']=null),!_0xad975['has'](_0x4d4159)&&_0x4d4159['next']&&(_0x3507b2['add'](_0x4d4159['next']),_0x4d4159['next']['previous']===_0x4d4159&&(_0x4d4159['next']['previous']=null),_0x4d4159['next']=null);}function _0x31c075(_0x384e18,_0x5239e6,_0x5aa853){for(let _0x3803dc=_0x5aa853;_0x3803dc<_0x5239e6['length'];_0x3803dc++){const _0x51aa6a=_0x17fa0d(_0x384e18,_0x5239e6[_0x3803dc]);_0x51aa6a&&(_0x51aa6a[0x0]['next']=_0x51aa6a[0x1],_0x51aa6a[0x1]['previous']=_0x51aa6a[0x0],_0xad975['add'](_0x51aa6a[0x0]),_0x65a71d['add'](_0x51aa6a[0x1]));}}function _0x17fa0d(_0x41b0ae,_0x1bf624){if(_0x41b0ae['author']['id']!==_0x1bf624['author']['id'])return null;const _0xa44495=_0x73b53e['get'](_0x41b0ae)(_0x41b0ae,_0x1bf624,_0x295393['get'](_0x41b0ae),_0x295393['get'](_0x1bf624));if(!_0xa44495)return null;return _0x73b53e['get'](_0x1bf624)(_0x41b0ae,_0x1bf624,_0x295393['get'](_0x41b0ae),_0x295393['get'](_0x1bf624))?_0xa44495[0x1]['commentThread']&&_0xa44495[0x1]['commentThread']['length']?null:_0xa44495:null;}_0x3507b2['size']&&this['_refreshSuggestionsChain'](_0x3507b2);}['_refreshAttributeSuggestionsChain'](_0x12a956){if(0x0==_0x12a956['length'])return;const _0x4b7711=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4039ca=>'attribute'==_0x4039ca['type']&&_0x4039ca['_isDataLoaded']),_0x152e22=[],_0x4bcd2a=new Map();for(const _0x3db85f of _0x4b7711){const _0x2ef82f=_0x14dbbf(_0x3db85f['attributes']);_0x4bcd2a['has'](_0x2ef82f)||(_0x4bcd2a['set'](_0x2ef82f,_0x152e22['length']),_0x152e22['push']([]));const _0x434a37=_0x4bcd2a['get'](_0x2ef82f);_0x152e22[_0x434a37]['push'](_0x3db85f);}!(function(){_0x152e22['sort']((_0x919fc9,_0x1f6f86)=>{const _0x5f1b91=_0x919fc9[0x0]['createdAt'],_0x3299e7=_0x1f6f86[0x0]['createdAt'];return _0x5f1b91==_0x3299e7?_0x919fc9[0x0]['attributes']['groupId']<_0x1f6f86[0x0]['attributes']['groupId']?-0x1:0x1:_0x5f1b91<_0x3299e7?-0x1:0x1;});for(const _0x32201 of _0x152e22)_0x32201['sort']((_0x5e9868,_0xda3a0a)=>_0x5e9868['id']<_0xda3a0a['id']?-0x1:0x1);}());for(let _0x207efa=0x0;_0x207efa<_0x152e22['length'];_0x207efa++){if(0x0==_0x152e22[_0x207efa]['length'])continue;const _0x3fdba2=[];for(let _0x25a21d=_0x207efa+0x1;_0x25a21d<_0x152e22['length'];_0x25a21d++)0x0!=_0x152e22[_0x25a21d]['length']&&_0x113bc3(_0x152e22[_0x207efa],_0x152e22[_0x25a21d])&&_0x3fdba2['push'](_0x25a21d);for(const _0x29bc37 of _0x3fdba2)_0x152e22[_0x207efa]=_0x152e22[_0x207efa]['concat'](_0x152e22[_0x29bc37]),_0x152e22[_0x29bc37]=[];}for(const _0xfa83d0 of _0x152e22)for(let _0x75f793=0x0;_0x75f793<_0xfa83d0['length'];_0x75f793++){const _0x3efb92=_0xfa83d0[_0x75f793+0x1]||null;_0xfa83d0[_0x75f793]['next']!==_0x3efb92&&(_0xfa83d0[_0x75f793]['next']=_0x3efb92);}for(const _0x3b2699 of _0x152e22)for(let _0x525eb0=0x0;_0x525eb0<_0x3b2699['length'];_0x525eb0++){const _0x49e0e9=_0x3b2699[_0x525eb0-0x1]||null;_0x3b2699[_0x525eb0]['previous']!==_0x49e0e9&&(_0x3b2699[_0x525eb0]['previous']=_0x49e0e9);}function _0x113bc3(_0x45bb39,_0x590b17){if(_0x45bb39[0x0]['attributes']['groupId']!==_0x590b17[0x0]['attributes']['groupId']&&_0x45bb39[0x0]['author']!==_0x590b17[0x0]['author'])return!0x1;if(!function(_0x3c4dc4,_0xcad3dc){if(!_0x3c4dc4['hasComments']&&!_0xcad3dc['hasComments'])return!0x0;if(_0x3c4dc4['hasComments']&&_0xcad3dc['hasComments'])return!0x1;if(_0x3c4dc4['hasComments']&&_0xcad3dc['createdAt']<_0x3c4dc4['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xcad3dc['hasComments']&&_0x3c4dc4['createdAt']<_0xcad3dc['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x45bb39[0x0],_0x590b17[0x0]))return!0x1;const _0x367bf2=Ft(_0x45bb39[0x0]['attributes'],['groupId','trackingSessionId']),_0x1f3342=Ft(_0x590b17[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x16f315(_0x367bf2,_0x1f3342))return!0x1;if(_0x45bb39[0x0]['attributes']['groupId']==_0x590b17[0x0]['attributes']['groupId'])return!0x0;if(_0x45bb39[0x0]['attributes']['trackingSessionId']!==_0x590b17[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x45bb39['every'](_0x4b2209=>_0x590b17['some'](_0x15f27e=>_0x4b2209['getFirstRange']()['isEqual'](_0x15f27e['getFirstRange']())))&&_0x590b17['every'](_0x35fceb=>_0x45bb39['some'](_0x170268=>_0x35fceb['getFirstRange']()['isEqual'](_0x170268['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x24d08c){const _0x1c16f8=Array['from'](_0x24d08c),_0x406b14=this['getSuggestions']({'skipNotAttached':!0x0}),_0x22862e=_0x406b14['filter'](_0x21f313=>!_0x24d08c['has'](_0x21f313)),_0x4a3f23=new Map(_0x1c16f8['map'](_0x3728c5=>[_0x3728c5,this['_suggestionFactory']['getSuggestionCallback'](_0x3728c5['type'],_0x3728c5['subType'],'join')])),_0x14163d=new Map(_0x406b14['map'](_0x1dc311=>[_0x1dc311,_0x1dc311['getRanges']()]));for(let _0xf3f239=0x0;_0xf3f239<_0x1c16f8['length'];_0xf3f239++){if(_0x1cb0e6(this,_0x1c16f8[_0xf3f239],_0x1c16f8,_0xf3f239+0x1))return!0x0;}for(let _0x571ad9=0x0;_0x571ad9<_0x1c16f8['length'];_0x571ad9++){if(_0x1cb0e6(this,_0x1c16f8[_0x571ad9],_0x22862e,0x0))return!0x0;}return!0x1;function _0x1cb0e6(_0x3fe3d9,_0x453cfa,_0x497c00,_0x510473){for(let _0x368490=_0x510473;_0x368490<_0x497c00['length'];_0x368490++){const _0x17e97f=_0x497c00[_0x368490];if(_0x17e97f['type']!==_0x453cfa['type']||_0x17e97f['author']['id']!==_0x453cfa['author']['id']||_0x17e97f['subType']!==_0x453cfa['subType'])continue;if(!Qt(_0x453cfa,_0x17e97f))continue;if('attribute'==_0x453cfa['type']&&_0x453cfa['data']['oldValue']!=_0x17e97f['data']['oldValue'])continue;if('attribute'==_0x453cfa['type']&&_0x3fe3d9['_isBlockAttribute'](_0x453cfa['data']['key']))continue;if('formatBlock'==_0x453cfa['type']){const _0x202da8=_0x3fe3d9['editor']['model'],_0x50d5a4=_0x453cfa['getContainedElement']();if(_0x50d5a4&&(_0x202da8['schema']['isObject'](_0x50d5a4)||_0x202da8['schema']['isLimit'](_0x50d5a4)))continue;}const _0x47b4e9=_0x4a3f23['get'](_0x453cfa),_0x156cf3=_0x14163d['get'](_0x453cfa),_0x4ab35b=_0x14163d['get'](_0x17e97f),_0x380d90=_0x453cfa['commentThread']&&_0x453cfa['commentThread']['length'],_0x2821dc=_0x17e97f['commentThread']&&_0x17e97f['commentThread']['length'];if(!_0x380d90&&_0x47b4e9(_0x4ab35b,_0x156cf3))return _0x3fe3d9['_joinSuggestions'](_0x17e97f,_0x453cfa),_0x14163d['delete'](_0x453cfa),!0x0;if(!_0x2821dc&&_0x47b4e9(_0x156cf3,_0x4ab35b))return _0x3fe3d9['_joinSuggestions'](_0x453cfa,_0x17e97f),_0x14163d['delete'](_0x17e97f),!0x0;}return!0x1;}}['_joinSuggestions'](_0x49fed3,_0x4723fe){if(_0x49fed3['isMultiRange']){for(const _0x52f3d9 of _0x4723fe['getRanges']())_0x49fed3['addRange'](_0x52f3d9);}else{const _0x5bb5d3=_0x4723fe['getFirstRange']()['end'];this['_setSuggestionRange'](_0x49fed3,this['_model']['createRange'](_0x49fed3['getFirstRange']()['start'],_0x5bb5d3));}_0x4723fe['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2648e1,_0x5159b9,_0x23d257){const _0x3129e1=_0x2648e1['startsWith']('format')||_0x2648e1['startsWith']('attribute')?'FORMATTING':_0x2648e1['toUpperCase']();return c(this['editor']['locale'],_0x5159b9+'_'+_0x3129e1+'_SUGGESTION_ANNOUNCEMENT',_0x23d257);}['_initAriaMarkerChangeAnnouncements'](){const _0xe58a69=this['editor'];if(!_0xe58a69['ui'])return;const {ariaLiveAnnouncer:_0x3ba1d3}=_0xe58a69['ui'];_0xd99fe4(this['_model'],({left:_0x28b30f,entered:_0x577f07})=>{for(const _0x57a9c0 of _0x28b30f){const {group:_0x37b6f6,type:_0x32ca04}=this['_splitMarkerName'](_0x57a9c0['name']);if('suggestion'===_0x37b6f6){_0x3ba1d3['announce'](this['_getMarkerAnnouncementText'](_0x32ca04,'LEAVE'));break;}}for(const _0xc7cc8e of _0x577f07){const {group:_0x568090,type:_0x853994}=this['_splitMarkerName'](_0xc7cc8e['name']);if('suggestion'===_0x568090){_0x3ba1d3['announce'](this['_getMarkerAnnouncementText'](_0x853994,'ENTER',_0x2d0d08(_0x3d13f0)));break;}}});}['_processAttributeChanges'](_0x18e8a7){if(this['_recordAttributeSuggestions'])return!0x1;const _0xd84029=this['editor'],_0x77316c=_0xd84029['model']['document']['differ']['getChanges']();if(0x0==_0x77316c['length'])return!0x1;const _0x144591=[],_0x32aa0c=_0x77316c['filter'](_0x9d223a=>'attribute'==_0x9d223a['type']),_0x36f855=_0x77316c['filter'](_0x4d0684=>'insert'==_0x4d0684['type']&&'$text'!=_0x4d0684['name']),_0x5a8d5e=_0x77316c['filter'](_0x2753ec=>'remove'==_0x2753ec['type']&&'$text'!=_0x2753ec['name']);for(const _0xd41ea6 of _0x32aa0c)_0x144591['push']({'key':_0xd41ea6['attributeKey'],'newValue':_0xd41ea6['attributeNewValue'],'oldValue':_0xd41ea6['attributeOldValue'],'range':qt(_0xd41ea6['range'],_0xd84029['model'])});for(const _0x4b42c9 of _0x36f855){const _0x2ea34b=_0x5a8d5e['find'](_0x4ec725=>_0x4ec725['position']['isEqual'](_0x4b42c9['position']));_0x2ea34b&&_0x144591['push']({'key':u,'newValue':_0x4b42c9['name'],'oldValue':_0x2ea34b['name'],'range':_0xd84029['model']['createRangeOn'](_0x4b42c9['position']['nodeAfter'])});}return 0x0!=_0x144591['length']&&this['_reduceExistingSuggestions'](_0x18e8a7,_0x144591);}['_processAttributeSuggestions'](_0x21bfb5){let _0x3afb3a=!0x1;const _0x8692ac=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x570358=>_0x570358['data']['newRange']&&_0x570358['name']['startsWith']('suggestion:attribute:'));for(const _0x438e2a of _0x8692ac){const {subType:_0x477211,id:_0x2bf0cb}=this['_splitMarkerName'](_0x438e2a['name']),_0x10b38e=_0x477211['split']('|')[0x0];for(const _0x17317e of this['getSuggestions']({'skipNotAttached':!0x0}))_0x17317e['id']!=_0x2bf0cb&&'attribute'==_0x17317e['type']&&_0x17317e['data']&&_0x17317e['data']['key']==_0x10b38e&&_0x17317e['getFirstRange']()['isIntersecting'](_0x438e2a['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x17317e,_0x438e2a['data']['newRange'],_0x21bfb5),_0x3afb3a=!0x0);}return _0x3afb3a;}['_recordAttributeChanges'](_0x1a9bd9){this['_recordAttributeSuggestions']=!0x0,_0x1a9bd9();}['_isRegisteredAttribute'](_0x3edf22){const _0x4c7b2b=this['_isBlockAttribute'](_0x3edf22),_0x42c1d1=this['_inlineAttributeKeys']['has'](_0x3edf22);return _0x4c7b2b||_0x42c1d1;}['_reduceExistingSuggestions'](_0x48fda3,_0xe3b2d8){if(0x0==_0xe3b2d8['length'])return!0x1;let _0x4a259b=!0x1;for(const _0x43b680 of _0xe3b2d8){const _0x2e2619=this['_findSuggestions'](_0x43b680['range'],'attribute')['filter'](_0x371715=>!_0x371715['meta']['isNextTo'])['map'](_0x379647=>_0x379647['suggestion']),_0x547c5b=_0x14dbbf({'newValue':_0x43b680['newValue']});_0x2e2619['filter'](_0x221e39=>{const [_0x55663a,_0x19e444]=_0x221e39['subType']['split']('|');return _0x55663a==_0x43b680['key']&&_0x19e444!=_0x547c5b;})['forEach'](_0x447ecd=>{this['_reduceSuggestionAttributeRange'](_0x447ecd,_0x43b680['range'],_0x48fda3),_0x4a259b=!0x0;});}return _0x4a259b;}['_reduceSuggestionAttributeRange'](_0x7c4038,_0xe38601,_0x2d66b3){const _0x152499=_0x7c4038['getFirstRange']()['getDifference'](_0xe38601);0x0!==_0x152499['length']?0x1!==_0x152499['length']?this['_breakSuggestionMarker'](_0x7c4038,_0xe38601['start'],_0xe38601['end']):this['_setSuggestionRange'](_0x7c4038,_0x152499[0x0]):_0x2d66b3['removeMarker'](_0x7c4038['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xd56356){this['_editor']=_0xd56356,this['_model']=_0xd56356['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4c0f2c,_0x4d4c0e,_0x4d148,_0x534034,_0x58586a,_0x39fbd7){return new o(this['_model'],{'type':_0x4c0f2c,'subType':_0x4d4c0e,'id':_0x4d148,'author':_0x534034,'creator':_0x534034,'attributes':_0x58586a,'onAttributesChange':_0x39fbd7,'onAccept':(..._0x3348dc)=>this['getSuggestionCallback'](_0x4c0f2c,_0x4d4c0e,'accept')(..._0x3348dc),'onDiscard':(..._0x573b10)=>this['getSuggestionCallback'](_0x4c0f2c,_0x4d4c0e,'discard')(..._0x573b10)});}['registerCustomCallback'](_0x2af03c,_0x5697de,_0x182ec9,_0x16a51b){const _0x152388=_0x2af03c+':'+_0x5697de+':'+_0x182ec9;this['_customCallbacks']['set'](_0x152388,_0x16a51b);}['getSuggestionCallback'](_0x355893,_0xd21f2e,_0x38601a){const _0x2acde8=_0x355893+':'+_0xd21f2e+':'+_0x38601a;return this['_customCallbacks']['get'](_0x2acde8)||this['_defaultCallbacks']['get'](_0x355893+':'+_0x38601a);}['_registerDefaultCallbacks'](){const _0x50ae55=()=>!0x1,_0x566ede=_0x333d6a=>{_0x333d6a['sort']((_0x265220,_0x1f6a47)=>_0x265220['start']['isBefore'](_0x1f6a47['start'])?0x1:-0x1),this['_model']['change'](_0xd58211=>{for(const _0x158fb3 of _0x333d6a){let _0x6fe662;_0x6fe662=_0x158fb3['end']['isAtEnd']&&_0x158fb3['end']['parent']==_0x158fb3['start']['nodeAfter']?_0xd58211['createSelection'](_0x158fb3['start']['nodeAfter'],'on'):_0xd58211['createSelection'](_0x158fb3),this['_model']['deleteContent'](_0x6fe662,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x1c1b8c=(_0x10ed31,_0x3cff22)=>{_0x3cff22&&this['_model']['change'](_0x3aadec=>{const {commandName:_0x5f4b91,commandParams:_0x4cda29=[]}=_0x3cff22,_0x3c9434=_0x10ed31['map'](_0x12ddd2=>(Lt(_0x12ddd2)&&(_0x12ddd2=this['_model']['createRange'](_0x12ddd2['end'])),_0x12ddd2))['filter'](_0x16f846=>'$graveyard'!==_0x16f846['root']['rootName']);if(_0x3c9434['length']<0x1)return;const _0x19e71c=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x300918=>_0x597cd7['fromRange'](_0x300918));_0x3aadec['setSelection'](_0x3c9434);for(const _0x1c15fe of this['_editor']['commands']['commands']())_0x1c15fe['refresh']();_0x4cda29['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5f4b91,..._0x4cda29);const _0x255767=_0x19e71c['filter'](_0x12a658=>'$graveyard'!=_0x12a658['root']['rootName']);_0x255767['length']>0x0&&_0x3aadec['setSelection'](_0x255767);for(const _0x32c1bd of _0x19e71c)_0x32c1bd['detach']();});},_0x5958c8=(_0x2a5d6a,_0x592d45)=>0x1==_0x2a5d6a['length']&&0x1==_0x592d45['length']&&_0x2a5d6a[0x0]['end']['isEqual'](_0x592d45[0x0]['start']),_0x32dfb1=(_0x5b040c,_0x629ae9,_0xe56fe2,_0x1d6533)=>Wt(_0x5b040c,_0x629ae9,_0xe56fe2,_0x1d6533)?[_0x5b040c,_0x629ae9]:Wt(_0x629ae9,_0x5b040c,_0x1d6533,_0xe56fe2)?[_0x629ae9,_0x5b040c]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x50ae55),this['_defaultCallbacks']['set']('insertion:discard',_0x566ede),this['_defaultCallbacks']['set']('insertion:join',_0x5958c8),this['_defaultCallbacks']['set']('insertion:chain',_0x32dfb1),this['_defaultCallbacks']['set']('deletion:accept',_0x566ede),this['_defaultCallbacks']['set']('deletion:discard',_0x50ae55),this['_defaultCallbacks']['set']('deletion:join',_0x5958c8),this['_defaultCallbacks']['set']('deletion:chain',_0x32dfb1),this['_defaultCallbacks']['set']('formatInline:accept',_0x1c1b8c),this['_defaultCallbacks']['set']('formatInline:discard',_0x50ae55),this['_defaultCallbacks']['set']('formatInline:join',_0x5958c8),this['_defaultCallbacks']['set']('formatInline:chain',_0x50ae55),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1c1b8c),this['_defaultCallbacks']['set']('formatBlock:discard',_0x50ae55),this['_defaultCallbacks']['set']('formatBlock:join',_0x5958c8),this['_defaultCallbacks']['set']('formatBlock:chain',_0x50ae55),this['_defaultCallbacks']['set']('attribute:accept',_0x50ae55),this['_defaultCallbacks']['set']('attribute:discard',(_0x115019,_0x1b5e25)=>{if(!_0x1b5e25)return;const _0xcaf941=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x546749=>{if(_0x1b5e25['key']==u)for(const _0x2045bf of _0x115019){const _0x27bec8=_0x2045bf['start']['nodeAfter'],_0x2d30c2=_0x1b5e25['oldValue'];_0x546749['rename'](_0x27bec8,_0x2d30c2);}else{if(_0xcaf941['_isBlockAttribute'](_0x1b5e25['key'])){for(const _0x2469c0 of _0x115019)void 0x0!==_0x1b5e25['oldValue']?_0x546749['setAttribute'](_0x1b5e25['key'],_0x1b5e25['oldValue'],_0x2469c0['start']['nodeAfter']):_0x546749['removeAttribute'](_0x1b5e25['key'],_0x2469c0['start']['nodeAfter']);}else{for(const _0x824532 of _0x115019)_0x1b5e25['oldValue']?_0x546749['setAttribute'](_0x1b5e25['key'],_0x1b5e25['oldValue'],_0x824532):_0x546749['removeAttribute'](_0x1b5e25['key'],_0x824532);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5958c8);}}function Gt(_0x45e587,_0x4b7cd4,_0x18ca35){for(const _0x2f9616 of _0x4b7cd4['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2f9616['root']==_0x2f9616)return!0x1;if(!_0x18ca35['containsItem'](_0x2f9616))return!0x1;if(_0x45e587['isObject'](_0x2f9616)||_0x45e587['isLimit'](_0x2f9616))return!0x0;}return!0x1;}function Lt(_0xbacc6c){return _0xbacc6c['end']['parent']==_0xbacc6c['start']['nodeAfter']&&_0xbacc6c['end']['isAtStart'];}function Jt(_0x33bb83,_0x383308,_0x4c80f3,_0x2c04a3){const _0xe0da74=_0xf08bba=>!_0xf08bba['item']['is']('$textProxy')&&!_0x2c04a3['isObject'](_0xf08bba['item']),_0x6f8c07=_0x33bb83['start']['getLastMatchingPosition'](_0xe0da74),_0x135e20=_0x33bb83['end']['getLastMatchingPosition'](_0xe0da74,{'direction':'backward'});return(!_0x33bb83['start']['isEqual'](_0x6f8c07)||!_0x33bb83['end']['isEqual'](_0x135e20))&&(_0x6f8c07['isBefore'](_0x135e20)?_0x4c80f3['updateMarker'](_0x383308,{'range':_0x4c80f3['createRange'](_0x6f8c07,_0x135e20)}):_0x4c80f3['removeMarker'](_0x383308),!0x0);}function Kt(_0x4f1602){return _0x14dbbf(_0x4f1602);}function Ht(_0x51e115){const _0x6b033b=_0x51e115['start']['nodeAfter'];return _0x6b033b&&_0x6b033b['is']('element');}function qt(_0x1ae194,_0x300a03){return null==_0x1ae194['end']['nodeBefore']&&_0x1ae194['end']['parent']==_0x1ae194['start']['nodeAfter']?zt(_0x1ae194['start']['nodeAfter'],_0x300a03):_0x1ae194;}function zt(_0xdcdac6,_0x5ed868){const _0x5094fa=_0x5ed868['schema']['isObject'](_0xdcdac6)||_0x5ed868['schema']['isSelectable'](_0xdcdac6);return _0x5ed868['createRange'](_0x5ed868['createPositionAt'](_0xdcdac6,'before'),_0x5094fa?_0x5ed868['createPositionAfter'](_0xdcdac6):_0x5ed868['createPositionAt'](_0xdcdac6,'end'));}function Wt(_0x38ab1c,_0x13c7c4,_0x50daf2,_0x4115d6){return!!Qt(_0x38ab1c,_0x13c7c4)&&_0x50daf2['end']['isEqual'](_0x4115d6['start']);}function Qt(_0x20abbe,_0x1703ad){if(!_0x20abbe['_isDataLoaded']||!_0x1703ad['_isDataLoaded'])return!0x1;const _0x3096a1=new Set(Object['keys'](_0x20abbe['attributes'])),_0x837f5d=new Set(Object['keys'](_0x1703ad['attributes']));if(_0x3096a1['delete']('groupId'),_0x837f5d['delete']('groupId'),0x0==_0x3096a1['size']&&0x0==_0x837f5d['size'])return!0x0;if(_0x3096a1['size']!=_0x837f5d['size'])return!0x1;const _0x3a2fb2={..._0x20abbe['attributes']},_0x48e155={..._0x1703ad['attributes']};return delete _0x3a2fb2['groupId'],delete _0x48e155['groupId'],JSON['stringify'](_0x3a2fb2)==JSON['stringify'](_0x48e155);}function Xt(_0x120ea3,_0x4dc8ae){const _0x190b0f=Yt(_0x120ea3['attributes']),_0x4a43c1=Yt(_0x4dc8ae);if(!_0x120ea3['_isDataLoaded'])return!0x1;for(const _0x53a538 of Object['keys'](_0x4a43c1))if(!_0x16f315(_0x190b0f[_0x53a538],_0x4a43c1[_0x53a538]))return!0x1;return!0x0;}function Yt(_0xcbb90c){const _0x382c02=Object['assign']({},_0xcbb90c);return delete _0x382c02['skipNestingCheck'],delete _0x382c02['tablePasteChainId'],_0x382c02;}class pe extends/* #__PURE__ -- @preserve */
25
- _0x52bea3(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x278dce,_0x30a5d7,_0x546600,_0x295e99){super(),this['model']=_0x30a5d7,this['view']=_0x546600,this['commentThreadController']=_0x295e99,this['_editor']=_0x278dce,this['_acceptCommand']=_0x278dce['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x278dce['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2e0122,_0x131284)=>_0x2e0122||_0x131284),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x283e00=>_0x283e00&&this['_editor']['model']['canEditAt'](_0x30a5d7['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x66e74=>_0x66e74&&this['_editor']['model']['canEditAt'](_0x30a5d7['getRanges']())),this['_pendingAction']=null,_0x546600['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x546600,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x546600,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x546600,'change:isDirty',()=>{_0x546600['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 _0x2caadb=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2caadb);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x1a544d{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4b4efd,_0x3bc722,_0x1aa08b,_0x2095b6){super(_0x4b4efd),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x50f820(_0x4b4efd,c(_0x4b4efd,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3bc722['authoredAt']),this['bind']('authoredAt')['to'](_0x3bc722),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',_0x3bc722,'authoredAt',this,'descriptionParts',(_0x400170,_0x207b9a,_0x15c60b)=>{const _0x1af1ea=_0x15c60b['map'](_0x4b1fdf=>ls(_0x4b1fdf['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x400170-0x1,_0x3bc722['author']['name'],_0x207b9a?_0x2095b6['formatDateTime'](_0x207b9a):'',new DOMParser()['parseFromString'](_0x1af1ea,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4468c6(),this['focusTracker']=new _0x4b0c7e(),this['keystrokes']=new _0x1a0162(),this['focusCycler']=new _0x28c7b7({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x579d9f=>_0x579d9f['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3bc722,this['_localUser']=_0x1aa08b,this['_config']=_0x2095b6,_0x2095b6['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x5058bd(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3787ff}=this['_config'];this['commentsListView']=new _0x3787ff(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',_0x3be854=>_0x3be854+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x18a545,_0x4835e6)=>_0x18a545||!!_0x4835e6);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1745c8}=this['_config'],_0x1e4818=new _0x1745c8(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xe8ab94=_0x1e4818['commentInputView'];return _0x1e4818['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xe8ab94,'value',(_0x34183c,_0x39539d,_0x292728)=>!!_0x292728||_0x34183c&&!_0x39539d),_0xe8ab94['on']('submit',(_0x2107f8,_0x25062e)=>{this['fire']('addComment',_0x25062e),_0xe8ab94['editor']['setData']('');}),_0xe8ab94['on']('cancel',()=>this['focus']()),_0xe8ab94['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1e4818;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x37774f,_0x183629,_0x4f0b7e,_0x24ef6e){super(_0x37774f,_0x183629,_0x4f0b7e,_0x24ef6e),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x173f30=>_0x173f30&&_0x173f30[0x0]?_0x173f30[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x26c75b,_0x5b644f)=>{let _0x16b1a9='';for(const _0x28c0f0 of _0x26c75b)_0x16b1a9+='<p>'+ls(_0x28c0f0['content'],_0x28c0f0['color'])+'</p>';return _0x5b644f?_0x16b1a9:ti(_0x16b1a9,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x24ef6e['SuggestionView'](_0x37774f,_0x183629,{'formatDateTime':_0x24ef6e['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x35bc3a=this['bindTemplate'],_0x1b738e=[this['suggestionView']];return this['commentsListView']&&_0x1b738e['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1b738e['push'](this['commentThreadInputView']),_0x1b738e['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x35bc3a['if']('isActive','ck-suggestion-wrapper--active'),_0x35bc3a['to']('type',_0x474a44=>'ck-suggestion-'+_0x474a44),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':_0x35bc3a['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1b738e};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x1a544d{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x443ec4,_0x2628f1,_0x368fab){super(_0x443ec4),this['_model']=_0x2628f1,this['_config']=_0x368fab,this['set']('description',''),this['bind']('authoredAt')['to'](_0x2628f1),this['acceptButton']=this['_createButton'](c(_0x443ec4,'Accept\x20suggestion'),_0x480e97,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x443ec4,'Discard\x20suggestion'),_0x101f8f,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x595140(_0x443ec4,_0x2628f1['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4468c6([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4b0c7e(),this['keystrokes']=new _0x1a0162(),this['focusCycler']=new _0x28c7b7({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3f4aa2=>_0x3f4aa2['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x485f3d=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x485f3d['innerHTML']=this['description'],this['on']('change:description',(_0x201743,_0x530c52,_0xbcc965)=>{_0x485f3d['innerHTML']=_0xbcc965;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1cafcc=this['bindTemplate'],_0x5cb8e1=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x1cafcc['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1cafcc['to']('authoredAt',_0x1dcc5f=>this['_config']['formatDateTime'](_0x1dcc5f))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x5cb8e1['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x5cb8e1}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x49d792,_0x4fe5c3,_0x281733,_0x580e50,_0x2db415){const _0x14d6b9=new _0x5edada(this['locale']);return _0x14d6b9['set']({'label':_0x49d792,'icon':_0x4fe5c3,'tooltip':!0x0,'tooltipPosition':_0x2db415}),_0x14d6b9['extendTemplate']({'attributes':{'class':_0x281733}}),_0x14d6b9['on']('execute',()=>{this['fire'](_0x580e50,this['_model']['id']);}),_0x14d6b9;}['_setupKeyboardNavigation'](){const _0x2de1f7=this['element'];this['keystrokes']['listenTo'](_0x2de1f7);for(const _0x451678 of this['focusables'])this['focusTracker']['add'](_0x451678['element']),this['keystrokes']['listenTo'](_0x451678['element']);this['keystrokes']['set']('enter',(_0x33eb55,_0x1f6746)=>{_0x2de1f7===_0x33eb55['target']&&(this['focusCycler']['focusFirst'](),_0x1f6746());}),this['keystrokes']['set']('esc',(_0x457df7,_0x5787d9)=>{_0x2de1f7!==_0x457df7['target']&&(this['focus'](),_0x5787d9());});}}class d extends _0x5c1181{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4a4901,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x45c0ac){super(_0x45c0ac),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xc05fdf=this['editor']['config'];_0xc05fdf['define']('trackChanges.SuggestionThreadView',fe),_0xc05fdf['define']('trackChanges.SuggestionView',we),_0xc05fdf['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xc05fdf['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3564ca,_0x150e51){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x340554,_0x3b5321]of this['_handleControllerBuffer']){const _0x6cf43d=this['_suggestionToController']['has'](_0x340554);_0x6cf43d||_0x3b5321?_0x6cf43d&&_0x3b5321&&this['_destroyController'](_0x340554):this['_initializeController'](_0x340554);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3564ca,_0x150e51);}['init'](){const _0x2e19b6=this['editor'],_0x357c22=_0x2e19b6['plugins']['get']('TrackChangesEditing'),_0x86e2de=_0x2e19b6['plugins']['get']('Annotations'),_0xaa2d6f=_0x2e19b6['plugins']['get']('EditorAnnotations'),_0x531304=_0x2e19b6['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0xaa2d6f['addSourceCollector'](()=>{const _0x38fac0=[];for(const [_0x4f62fa,_0xee3ecc]of Array['from'](this['_suggestionToController'])){const _0x16352d=_0x4f62fa['getAllAdjacentSuggestions'](),_0x1b94e6=[];for(const _0x45da47 of _0x16352d){if(!_0x45da47['isInContent'])continue;if(_0x45da47['isMultiRange']){_0x1b94e6['push'](..._0x45da47['getRanges']());continue;}const _0x5a9c4=_0x45da47['getFirstRange']();if(_0x1b94e6['length']>0x0){const _0x2ccf4e=_0x1b94e6[0x0]['getJoined'](_0x5a9c4);if(_0x2ccf4e){_0x1b94e6[0x0]=_0x2ccf4e;continue;}}_0x1b94e6['push'](_0x5a9c4);}_0x38fac0['push']([_0xee3ecc['view'],_0x1b94e6]);}return _0x38fac0;}),this['listenTo'](_0x357c22,'suggestionLoaded',(_0x3b4ee2,_0x4428dd)=>{this['listenTo'](_0x4428dd,'change:previous',(_0x3cbab2,_0x400aad,_0x2c74e7,_0x38b4f5)=>{_0x4428dd['isInContent']&&(null==_0x2c74e7?(this['_updateController'](_0x38b4f5['head']),this['_handleSuggestionControllerDelayed'](_0x4428dd,!0x1)):(this['_updateController'](_0x2c74e7['head']),null==_0x38b4f5&&this['_handleSuggestionControllerDelayed'](_0x4428dd,!0x0)));}),null!==_0x4428dd['previous']?this['_updateController'](_0x4428dd['head']):this['_handleSuggestionControllerDelayed'](_0x4428dd,!0x1);}),this['listenTo'](_0x357c22,'suggestionUnloaded',(_0x5ecc7b,_0x52326d,_0x544ccb)=>{this['stopListening'](_0x52326d,'change:previous'),this['_handleControllerBuffer']['delete'](_0x52326d),this['_suggestionToController']['has'](_0x52326d)&&this['_destroyController'](_0x52326d),_0x544ccb&&this['_updateController'](_0x544ccb['head']);}),this['listenTo'](_0x357c22,'suggestionChanged',(_0x1284c5,_0x2e31ba)=>{this['_updateController'](_0x2e31ba);}),this['listenTo'](_0x86e2de,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x531304,'addComment',(_0x35fa20,{threadId:_0x24d8fc,isFromAdapter:_0x1ed5ff})=>{if(_0x1ed5ff||!_0x357c22['hasSuggestion'](_0x24d8fc))return;const _0x46cf3c=_0x357c22['getSuggestion'](_0x24d8fc);this['_suggestionToController']['get'](_0x46cf3c)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x52eaca=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x55f968;for(const _0x2856cf in _0x52eaca){const _0x3f347b=_0x2856cf,_0x3b042d=_0x52eaca[_0x3f347b];if('trackChangesLicenseKeyValid'==_0x3b042d||'trackChangesLicenseKeyInvalid'==_0x3b042d||'trackChangesLicenseKeyExpired'==_0x3b042d||'trackChangesLicenseKeyDomainLimit'==_0x3b042d||'trackChangesLicenseKeyNotAllowed'==_0x3b042d||'trackChangesLicenseKeyEvaluationLimit'==_0x3b042d||'trackChangesLicenseKeyTrialLimit'==_0x3b042d||'trackChangesLicenseKeyUsageLimit'==_0x3b042d){delete _0x52eaca[_0x3f347b],_0x55f968=_0x3b042d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x55f968&&_0x52eaca['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x55f968&&_0x52eaca['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x55f968&&_0x52eaca['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x55f968&&_0x52eaca['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x55f968&&_0x52eaca['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x55f968&&_0x52eaca['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x55f968&&_0x52eaca['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x14a77b=this['editor']['plugins']['get']('Annotations'),_0x41e3bf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51a008=Array['from'](_0x14a77b['activeAnnotations'],_0x562103=>_0x562103['innerView'])['filter'](_0x33946b=>this['_viewToController']['has'](_0x33946b)),_0x51a1e8=[];for(const _0x48dce4 of _0x51a008){const _0x1dc293=this['_viewToController']['get'](_0x48dce4)['model']['getAllAdjacentSuggestions']();_0x51a1e8['push'](..._0x1dc293['reduce']((_0x500d45,_0x4d4ac7)=>[..._0x500d45,..._0x4d4ac7['getMarkerNames']()],[]));}_0x41e3bf['activeMarkers']=_0x51a1e8;}['_addUIComponentsToFactory'](){const _0x53ccec=this['editor'],_0x1c3706=_0x53ccec['locale'],_0x57b994=c(_0x1c3706,'Track\x20changes'),_0x40238e=new _0x1fedff([{'type':'switchbutton','model':new _0x1b419b({'withText':!0x0,'isToggleable':!0x0,'label':_0x57b994,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1b419b({'withText':!0x0,'label':c(_0x1c3706,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1b419b({'withText':!0x0,'label':c(_0x1c3706,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1b419b({'withText':!0x0,'label':c(_0x1c3706,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1b419b({'withText':!0x0,'label':c(_0x1c3706,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x53ccec['plugins']['has']('TrackChangesPreview')&&_0x40238e['addMany']([{'type':'separator'},{'type':'button','model':new _0x1b419b({'withText':!0x0,'label':c(_0x1c3706,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x260dc6 of _0x40238e)if(ke(_0x260dc6)){const _0xdd3b96=_0x53ccec['commands']['get'](_0x260dc6['model']['commandName']);_0x260dc6['model']['bind']('isOn','isEnabled')['to'](_0xdd3b96,'value','isEnabled');}_0x53ccec['ui']['componentFactory']['add']('trackChanges',_0x1799bd=>this['_createToolbarButton'](_0x1799bd,_0x40238e,_0x57b994)),_0x53ccec['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2ea15b=>this['_createMenuBarMenu'](_0x2ea15b,_0x40238e,_0x57b994));}['_createToolbarButton'](_0x41a4cf,_0x561feb,_0xdd47){const _0x271d45=_0x3c0e80(_0x41a4cf,_0x53e4cf),_0x5f0f7=this['editor']['commands']['get']('trackChanges');_0x271d45['buttonView']['set']({'tooltip':_0xdd47,'label':_0xdd47,'icon':_0xaf24d}),_0x271d45['buttonView']['bind']('isOn')['to'](_0x5f0f7,'value'),_0x271d45['buttonView']['on']('execute',()=>{_0x5f0f7['execute'](),this['editor']['editing']['view']['focus']();}),_0x45bee5(_0x271d45,_0x561feb,{'role':'menu'});const _0x1071c2=[];for(const _0x2aa82e of _0x561feb)ke(_0x2aa82e)&&_0x1071c2['push'](this['editor']['commands']['get'](_0x2aa82e['model']['commandName']));const _0x58e51c=_0x271d45['buttonView'];return _0x58e51c['actionView']['unbind']('isEnabled'),_0x58e51c['arrowView']['unbind']('isEnabled'),_0x58e51c['actionView']['bind']('isEnabled')['to'](_0x5f0f7,'isEnabled'),_0x58e51c['arrowView']['bind']('isEnabled')['toMany'](_0x1071c2,'isEnabled',(..._0x121f32)=>_0x121f32['some'](_0x13091b=>_0x13091b)),_0x271d45['on']('execute',_0x362eb2=>{this['editor']['execute'](_0x362eb2['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x271d45;}['_createMenuBarMenu'](_0x475c7b,_0x4c89c8,_0x135964){const _0x4ef2dd=new _0x52108a(_0x475c7b),_0x14bcf5=this['editor']['commands']['get']('trackChanges');_0x4ef2dd['buttonView']['set']({'label':_0x135964,'icon':_0xaf24d});const _0x2c4783=new _0x3b3307(_0x475c7b);for(const _0x4fa81b of _0x4c89c8){if('separator'==_0x4fa81b['type']){_0x2c4783['items']['add'](new _0x1dd12e(_0x475c7b));continue;}const _0x3d70a2=new _0x2891fd(_0x475c7b,_0x4ef2dd),_0x13d3d2=new _0x5ec854(_0x475c7b),_0x2f6696=_0x4fa81b['model'];_0x13d3d2['bind'](...Object['keys'](_0x2f6696))['to'](_0x2f6696),_0x13d3d2['delegate']('execute')['to'](_0x4ef2dd),_0x13d3d2['on']('execute',()=>{this['editor']['execute'](_0x2f6696['commandName']),this['editor']['editing']['view']['focus']();}),_0x3d70a2['children']['add'](_0x13d3d2),_0x2c4783['items']['add'](_0x3d70a2);}return _0x4ef2dd['bind']('isEnabled')['to'](_0x14bcf5,'isEnabled'),_0x4ef2dd['panelView']['children']['add'](_0x2c4783),_0x4ef2dd;}['_initializeController'](_0x5b7fdf){const _0x33c6a7=this['editor'],_0x122ef0=_0x33c6a7['config'],_0x4cf2ac=_0x33c6a7['plugins']['get']('Annotations'),_0x2cb97d=_0x33c6a7['plugins']['get']('CommentsRepository'),_0x50c6fa=_0x33c6a7['plugins']['get']('EditorAnnotations'),_0x1febe1=_0x33c6a7['plugins']['get'](_0x4a4901)['me'],_0xcf30e=_0x122ef0['get']('trackChanges')['SuggestionThreadView'],_0x5d6958=_0x122ef0['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x258c59,CommentThreadInputView:_0x2f8fb2}=_0x33c6a7['plugins']['get']('CommentsUI');let _0x5cef19,_0x408aa7,_0x4597b6;this['_annotationViews']['has'](_0x5b7fdf['id'])?(_0x408aa7=this['_annotationViews']['get'](_0x5b7fdf['id']),_0x5cef19=_0x408aa7['mainView']):(_0x5cef19=new _0xcf30e(_0x33c6a7['locale'],_0x5b7fdf,_0x1febe1,{'disableComments':this['_disableComments'],'editorConfig':{..._0x122ef0['get']('comments.editorConfig'),'licenseKey':_0x122ef0['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x122ef0['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x122ef0['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x122ef0['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4af0d7(_0x122ef0['get']('locale'),_0x33c6a7['locale']),'CommentView':_0x122ef0['get']('comments')['CommentView'],'CommentsListView':_0x258c59,'CommentThreadInputView':_0x2f8fb2,'SuggestionView':_0x5d6958}),_0x5cef19['suggestionView']['acceptButton']['on']('execute',()=>{_0x33c6a7['editing']['view']['focus']();}),_0x5cef19['suggestionView']['discardButton']['on']('execute',()=>{_0x33c6a7['editing']['view']['focus']();}),_0x408aa7=_0x4cf2ac['createAnnotationView'](this['editor']['locale'],_0x5cef19),_0x408aa7['bind']('isDirty')['to'](_0x5cef19,'isDirty'),_0x408aa7['bind']('length')['to'](_0x5cef19),_0x408aa7['bind']('type')['to'](_0x5cef19,'type',_0x341f35=>'suggestion-'+_0x341f35),_0x5cef19['on']('escape',()=>{_0x4597b6['fire']('escape');}),this['_annotationViews']['set'](_0x5b7fdf['id'],_0x408aa7));const _0x4357c2=_0x2cb97d['createCommentThreadController'](_0x5b7fdf['commentThread'],_0x5cef19),_0x9a2a7d=new pe(_0x33c6a7,_0x5b7fdf,_0x5cef19,_0x4357c2),_0x42a7c5=_0x5b7fdf['getAllAdjacentSuggestions']()['filter'](_0x193d37=>_0x193d37['isInContent']);_0x5cef19['descriptionParts']=_0x33c6a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x42a7c5),this['_suggestionToController']['set'](_0x5b7fdf,_0x9a2a7d),this['_viewToController']['set'](_0x5cef19,_0x9a2a7d),_0x4597b6=_0x4cf2ac['createAnnotation']({'view':_0x408aa7,'target':()=>{const _0x10e788=[],_0x41ccf9=_0x5b7fdf['getAllAdjacentSuggestions']()['filter'](_0x243168=>_0x243168['isInContent']);for(const _0x43bb48 of _0x41ccf9)_0x10e788['push'](..._0x43bb48['getMarkers']());return _0x1e60ff(_0x33c6a7['editing'],_0x10e788);},'type':()=>'suggestion-'+_0x9a2a7d['view']['type']}),_0x2cb97d['_bindAnnotationToEditors'](_0x5cef19,_0x4597b6),_0x4cf2ac['add'](_0x4597b6),_0x50c6fa['registerAnnotation'](_0x4597b6);}['_destroyController'](_0x57718b){const _0x545737=this['editor']['plugins']['get']('CommentsRepository'),_0x2d2821=this['editor']['plugins']['get']('Annotations'),_0xc03532=this['_suggestionToController']['get'](_0x57718b),_0x43d1d3=_0xc03532['view'],_0x32e894=_0x2d2821['getByInnerView'](_0x43d1d3);_0x545737['_unbindEditors'](_0x43d1d3),_0x32e894&&_0x2d2821['remove'](_0x32e894),this['_suggestionToController']['delete'](_0x57718b),this['_viewToController']['delete'](_0x43d1d3),_0xc03532['destroy']();}['_updateController'](_0x3abd3f){if(!_0x3abd3f['isInContent']||!this['_suggestionToController']['has'](_0x3abd3f))return;const _0x4f3521=this['editor']['plugins']['get']('TrackChangesEditing'),_0xd13dad=this['_suggestionToController']['get'](_0x3abd3f),_0x46d017=_0x3abd3f['getAllAdjacentSuggestions']();_0xd13dad['view']['descriptionParts']=_0x4f3521['descriptionFactory']['getDescriptions'](_0x46d017);}['destroy'](){for(const _0x9b0dd of this['_suggestionToController']['keys']())this['_destroyController'](_0x9b0dd);for(const _0x31da68 of this['_annotationViews']['values']())_0x31da68['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x565010){return'model'in _0x565010;}class k extends _0x5c1181{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x23f33d){this['editor']['plugins']['get'](p)['adapter']=_0x23f33d;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x116c58){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x116c58);}['getSuggestions']({skipNotAttached:_0x3bf23e=!0x1,toJSON:_0x370545=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x3bf23e,'toJSON':_0x370545});}['getSuggestion'](_0x60048f){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x60048f);}}const w=['Pagination'];class T extends _0x5c1181{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x54fa6e=this['editor'];if(_0x54fa6e['config']['define']('trackChangesData.editorCreator',_0x315b1d=>{const _0x47a972=_0x54fa6e['model']['document']['getRootNames']()['reduce']((_0x1b1887,_0x115d72)=>(_0x1b1887[_0x115d72]='',_0x1b1887),{});return _0x54fa6e['constructor']['create'](_0x47a972,_0x315b1d);}),'function'!=typeof _0x54fa6e['config']['get']('trackChangesData')['editorCreator'])throw new _0x27ba3f('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x538908){return N(this['editor'],!0x0,_0x538908);}['getDataWithDiscardedSuggestions'](_0x5d089d){return N(this['editor'],!0x1,_0x5d089d);}}class D extends _0x5c1181{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2bfb6c){function _0x3d3f8a(_0x2588f4){return _0x2588f4['map'](_0x3d3a05=>String['fromCharCode'](_0x3d3a05))['join']('');}super(_0x2bfb6c),this['result']='end',_0x2bfb6c[_0x3d3f8a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d3f8a([0x76,0x69,0x65,0x77])][_0x3d3f8a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d3f8a([0x61,0x75,0x74,0x6f]),_0x2bfb6c[_0x3d3f8a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3d3f8a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d3f8a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3d3f8a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3d3f8a([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Ge(_0x149913){return void 0x0!==_0x149913['getRootsAttributes'];}async function N(_0x85fd99,_0x35fd29,_0x3327f7){const _0x138adf=_0x420930(_0x85fd99,w);_0x138adf['plugins']['push'](p,D),_0x138adf['rootsAttributes']=Ge(_0x85fd99)?_0x85fd99['getRootsAttributes']():void 0x0;const _0x400d2c=document['createDocumentFragment'](),_0xc8168a=_0x85fd99['config']['get']('trackChangesData')['editorCreator'],_0x50cd46=await _0xc8168a(_0x138adf,()=>function(_0x3de939){const _0x54d41a=document['createElement']('div');return _0x3de939['appendChild'](_0x54d41a),_0x54d41a;}(_0x400d2c));!function(_0x29e257,_0x59a484){const _0x318496=_0x29e257['model']['document']['getRootNames']()['reduce']((_0xc66e20,_0x41f008)=>(_0xc66e20[_0x41f008]=_0x29e257['data']['get']({'rootName':_0x41f008}),_0xc66e20),{}),_0x3cbce4=_0x29e257['plugins']['get']('Users')['users']['map'](_0x52977c=>({'id':_0x52977c['id'],'name':_0x52977c['name']})),_0x4ef197=_0x29e257['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xa8c8db=_0x29e257['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x16fe01=_0x59a484['plugins']['get']('Users'),_0x1d5167=_0x59a484['plugins']['get']('TrackChangesEditing'),_0x4cdf70=_0x59a484['plugins']['get']('CommentsRepository');for(const _0x38eb30 of _0x4cdf70['getCommentThreads']())_0x38eb30['remove']();for(const _0x4e99ef of _0x3cbce4)_0x16fe01['getUser'](_0x4e99ef['id'])||_0x16fe01['addUser'](_0x4e99ef);_0x16fe01['me']||_0x16fe01['useAnonymousUser']();for(const _0x56e03f of _0xa8c8db)_0x4cdf70['addCommentThread'](_0x56e03f);for(const _0x34c416 of _0x4ef197)_0x1d5167['addSuggestionData'](_0x34c416);_0x59a484['data']['set'](_0x318496);}(_0x85fd99,_0x50cd46),_0x50cd46['execute'](_0x35fd29?'acceptAllSuggestions':'discardAllSuggestions');const _0x1a48b8=Ge(_0x50cd46)?_0x50cd46['getFullData'](_0x3327f7):_0x50cd46['data']['get'](_0x3327f7);return await _0x50cd46['destroy'](),_0x1a48b8;}class Me extends _0x1a544d{['options'];constructor(_0x3ca307,_0x5738d8){super(_0x3ca307),this['options']=_0x5738d8,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'](_0x84d0e,_0x3a02c2){if(!this['element'])return;const _0x4abf17=[];for(const [_0x15d7c9,_0x53634c]of _0x84d0e){const _0x51548f=document['createElement']('div');_0x51548f['setAttribute']('data-ck-root-name',_0x15d7c9),_0x51548f['className']=_0x53634c['classes']+'\x20ck-track-changes-preview__root-container',_0x51548f['innerHTML']=_0x53634c['content'],_0x4abf17['push'](_0x51548f);}_0x3a02c2(this['element'],_0x4abf17),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x1b6f03{constructor(_0x152558){super(_0x152558),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x40e4c6=this['editor'],_0x1eb686=_0x40e4c6['locale'],_0x245e82=_0x40e4c6['plugins']['get']('Dialog');let _0x1accae;const _0x1c42ad=function(_0x58e8a3){const _0x5003b3={};if('editables'in _0x58e8a3['ui']['view']){for(const [_0x4ef1a4,_0x37ad86]of Object['entries'](_0x58e8a3['ui']['view']['editables']))_0x5003b3[_0x4ef1a4]=_0x37ad86['element'];}else _0x5003b3[_0x58e8a3['model']['document']['getRootNames']()[0x0]]=_0x58e8a3['ui']['view']['editable']['element'];return _0x5003b3;}(_0x40e4c6),_0x33e44c=function(_0x15b11c){let _0x4f84b3=0x0;for(const _0x23b1af of Object['values'](_0x15b11c))_0x4f84b3=Math['max'](_0x4f84b3,_0x23b1af['getBoundingClientRect']()['width']);let _0x20ad4e=0x0;for(const _0x175945 of Object['values'](_0x15b11c))_0x20ad4e+=_0x175945['getBoundingClientRect']()['height'];const _0x5768c8=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x300a84=Math['min'](_0x20ad4e,_0x5768c8);return{'width':_0x4f84b3,'height':_0x300a84};}(_0x1c42ad);_0x245e82['show']({'id':'finalContentPreview','title':c(_0x1eb686,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x1eb686,{'dialogRects':_0x33e44c}),'onHide':()=>{_0x1accae['detachFromDom']();},'onShow':()=>{_0x40e4c6['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x540a17=>{const _0x2d30ab=this['_standarizeRootsData'](_0x540a17,_0x40e4c6,_0x1c42ad);_0x245e82['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2d30ab,_0x40e4c6['config']['get']('trackChanges.preview.renderFunction'));}),_0x1accae=new _0x4f698a(_0x1eb686,[_0x245e82['view']]),_0x1accae['attachToDom'](),_0x1accae['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x40e4c6['once']('destroy',()=>{_0x1accae['detachFromDom']();});const _0x3753ab=_0x245e82['view']['headerView']['class'];_0x245e82['view']['headerView']['class']=_0x3753ab?_0x3753ab+'\x20ck-reset_all':'ck-reset_all',_0x245e82['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x245e82['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3fc1c9=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4ddf51=_0x3fc1c9['previewMode'],_0x471d66={};if('$labels'===_0x4ddf51){for(const _0x168c43 of _0x3fc1c9['getMergeFieldsIds']())_0x471d66[_0x168c43]=_0x3fc1c9['getLabel'](_0x168c43)||_0x168c43;}else{const _0x38c0a0='$defaultValues'===_0x4ddf51?_0x3fc1c9['getDefaultValues']():_0x3fc1c9['getDataSetValues'](_0x4ddf51,!0x0);for(const _0x5c1175 of Object['entries'](_0x38c0a0)){const [_0x46f934,_0x3bf578]=_0x5c1175;_0x471d66[_0x46f934]=null!==_0x3bf578?_0x3bf578:_0x3fc1c9['getLabel'](_0x46f934)||_0x46f934;}}return{'mergeFieldsData':_0x471d66};}['_standarizeRootsData'](_0x1a6b75,_0x3fde72,_0x5828dc){let _0x3309f6;if('string'==typeof _0x1a6b75){const _0x3e750d=_0x3fde72['model']['document']['getRootNames']()[0x0];_0x3309f6={[_0x3e750d]:_0x1a6b75};}else _0x3309f6=_0x1a6b75;const _0x414602=this['_fixMediaEmbeds'](_0x3309f6,_0x3fde72),_0x12eaa1=function(_0x3fd53c,_0x4c9857){for(const [_0x3c23bd,_0x376160]of _0x3fd53c)_0x376160['classes']=_0x4c9857[_0x3c23bd]['classList']['value']['replace']('ck-focused','');return _0x3fd53c;}(this['_sortRoots'](_0x3fde72)['reduce']((_0x16dc4f,_0x2d891a)=>(_0x16dc4f['push']([_0x2d891a,{'content':_0x414602[_0x2d891a],'classes':''}]),_0x16dc4f),[]),_0x5828dc);return _0x12eaa1;}['_fixMediaEmbeds'](_0x1c1bce,_0x1824c0){if(!_0x1824c0['plugins']['has']('MediaEmbedEditing'))return _0x1c1bce;const _0x2190d7=_0x1824c0['plugins']['get']('MediaEmbedEditing');for(const [_0x1bda9c,_0x3b2df3]of Object['entries'](_0x1c1bce)){const _0x4695e7=document['createElement']('div');_0x4695e7['innerHTML']=_0x3b2df3,(_0x4695e7['querySelectorAll']('figure.media')['forEach'](_0x559715=>{const _0x1e07f6=_0x559715['querySelector']('oembed');if(_0x1e07f6){const _0x2b3dd7=_0x1e07f6['getAttribute']('url');if(_0x2b3dd7){const _0x2f77b6=_0x2190d7['registry']['getMediaViewElement'](new _0x20bc2a(_0x1824c0['editing']['view']['document']),_0x2b3dd7,{'elementName':'','renderForEditingView':!0x0}),_0x197689=document['createElement']('div');_0x197689['classList']['add']('ck-media__wrapper'),_0x2f77b6['render'](_0x197689,_0x1824c0['editing']['view']['domConverter']),_0x1e07f6['replaceWith'](_0x197689);}}}),_0x1c1bce[_0x1bda9c]=_0x4695e7['innerHTML']);}return _0x1c1bce;}['_sortRoots'](_0x432acd){if(!function(_0x27d1fe){return void 0x0!==_0x27d1fe['getRootsAttributes'];}(_0x432acd))return _0x432acd['model']['document']['getRootNames']();const _0x1a4181=[],_0x43d9da=new Map();for(const _0x4323dc of _0x432acd['model']['document']['getRootNames']()){const _0x3e6929=_0x432acd['editing']['view']['getDomRoot'](_0x4323dc)['getClientRects']()['item'](0x0);_0x1a4181['push'](_0x4323dc),_0x43d9da['set'](_0x4323dc,_0x3e6929);}return _0x1a4181['sort']((_0x50d1ad,_0x50123b)=>{const _0x1e6541=_0x43d9da['get'](_0x50d1ad),_0x33a75d=_0x43d9da['get'](_0x50123b);return _0x1e6541['y']-_0x33a75d['y']||_0x1e6541['x']-_0x33a75d['x'];}),_0x1a4181;}}class te extends _0x5c1181{static get['requires'](){return[T,_0x236eb9];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3e8994){super(_0x3e8994),_0x3e8994['commands']['add']('previewFinalContent',new re(this['editor'])),_0x3e8994['config']['define']('trackChanges.preview.renderFunction',(_0x2e934b,_0x3ddb65)=>{for(const _0x280269 of _0x3ddb65)_0x2e934b['appendChild'](_0x280269);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
23
+ import{Command as _0xd9491d,Plugin as _0x6abf95,PendingActions as _0x55f448}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3d469d,ObservableMixin as _0x20a8ec,uid as _0x5d446a,priorities as _0x23dcbe,insertToPriorityArray as _0x302f21,toArray as _0x3449c0,logWarning as _0x20fa00,getEnvKeystrokeText as _0x593b55,FocusTracker as _0x170b6f,KeystrokeHandler as _0x21fab9,Collection as _0x1eb513}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x331d03,IconCancel as _0x4c74c8,IconTrackChanges as _0x21c474}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x370301,View as _0x4869c9,ViewCollection as _0x2b238a,FocusCycler as _0x4816ad,ViewModel as _0x2a21a9,createDropdown as _0x256442,SplitButtonView as _0x113e9f,addListToDropdown as _0x2ba772,MenuBarMenuView as _0xada8a8,MenuBarMenuListView as _0x4dea8c,ListSeparatorView as _0x24ca2b,MenuBarMenuListItemView as _0x2cab97,MenuBarMenuListItemButtonView as _0x153ad4,BodyCollection as _0x4dcb6c,Dialog as _0x85a51a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x50e121,hashObject as _0x2313a4,surroundingMarkersDetector as _0x184fc2,FOCUS_ANNOTATION_KEYSTROKE as _0x3ae0da,AriaDescriptionView as _0x4ed1c1,setupThreadKeyboardNavigation as _0x4db541,trimHtml as ti,UserView as _0x59bb09,LateFocusButtonView as _0x344f20,getDateTimeFormatter as _0x475024,getAllMarkersDomElementsSorted as _0x53e677,sanitizeEditorConfig as _0x3c2b33}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x2f8b89,LiveRange as _0xd0daae,LivePosition as _0xc7aebc,DowncastWriter as _0x43f942}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x29e2ec,toWidget as _0xa6607b}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x5b5a0d,set as _0x1ae88a,isEqual as _0x2ed42c,unset as _0x13f8e5,omit as Ft}from'es-toolkit/compat';import{Delete as _0x18ebbf,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x2d7c2e}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x52a09d}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0xd9491d{['_enabledCommands'];constructor(_0xb5098e,_0x142f78){super(_0xb5098e),this['_enabledCommands']=_0x142f78,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 _0x1b5a6b of this['editor']['commands']['commands']())_0x1b5a6b['affectsData']&&!this['_enabledCommands']['has'](_0x1b5a6b)&&_0x1b5a6b['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3623b0 of this['editor']['commands']['commands']())_0x3623b0['affectsData']&&!this['_enabledCommands']['has'](_0x3623b0)&&_0x3623b0['clearForceDisabled']('TrackChangesCommand');}}class x extends _0xd9491d{['_suggestions'];constructor(_0xba2222,_0x4012c7){super(_0xba2222),this['_suggestions']=_0x4012c7,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x437b74){const _0x180e0b=this['_suggestions']['get'](_0x437b74);if(!_0x180e0b)throw new _0x3d469d('track-changes-accept-suggestion-not-found',this);const _0x535bf9=_0x180e0b['getRanges']();this['editor']['model']['canEditAt'](_0x535bf9)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x180e0b);}}class O extends _0xd9491d{['_suggestions'];constructor(_0x440f80,_0x3e1fa3){super(_0x440f80),this['_suggestions']=_0x3e1fa3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4e1c78){const _0x3005ad=this['_suggestions']['get'](_0x4e1c78);if(!_0x3005ad)throw new _0x3d469d('track-changes-discard-suggestion-not-found',this);const _0x35977a=_0x3005ad['getRanges']();this['editor']['model']['canEditAt'](_0x35977a)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3005ad);}}function ls(_0x10eac2,_0x3a0e5a){let _0x5671e1='';return _0x5671e1+=_0x10eac2['split']('*')['map']((_0xdff8d5,_0x18e89c)=>_0x18e89c%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0xdff8d5)+'</span>':nn(_0xdff8d5))['join'](''),_0x3a0e5a&&(_0x5671e1+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3a0e5a['value']+'\x22\x20title=\x22'+_0x3a0e5a['title']+'\x22></span>'),_0x5671e1;}function nn(_0x4c0921){const _0x1a6808=document['createElement']('span');return _0x1a6808['innerText']=_0x4c0921,_0x1a6808['innerHTML'];}function ts(_0xd2667a){return _0xd2667a['sort']((_0x55d95c,_0x11cf57)=>'deletion'==_0x55d95c['type']&&'deletion'!=_0x11cf57['type']?-0x1:'deletion'!=_0x55d95c['type']&&'deletion'==_0x11cf57['type']?0x1:0x0);}function to(_0x359108,_0x39676f){let _0x19ec3a,_0x110392=0x0;const _0x1c38b2=[],_0x5df286=_0x39676f['schema'];for(;_0x110392<_0x359108['length'];){const _0xc9214a=_0x359108[_0x110392],_0xb04ecf=_0x359108[_0x110392+0x1];_0x19ec3a||(_0x19ec3a=_0x39676f['createPositionBefore'](_0xc9214a)),on(_0x39676f,_0xc9214a,_0xb04ecf)||(_0x1c38b2['push'](_0x39676f['createRange'](_0x19ec3a,_0x5df286['isObject'](_0xc9214a)?_0x39676f['createPositionAfter'](_0xc9214a):_0x39676f['createPositionAt'](_0xc9214a,'end'))),_0x19ec3a=null),_0x110392++;}return _0x1c38b2;}function on(_0x68783a,_0x2b75b0,_0x5e37b8){if(!_0x5e37b8)return!0x1;const _0x1f44fd=_0x68783a['createPositionAfter'](_0x2b75b0),_0x5e6e2c=_0x68783a['createPositionBefore'](_0x5e37b8);return _0x1f44fd['isTouching'](_0x5e6e2c);}function rs(_0x1a6abf,_0x5756ce,_0x4014f8){for(;_0x4014f8['length'];){const _0x1e5a84=_0x4014f8['splice'](0x0,0x64);_0x1a6abf['change'](()=>{for(const _0x4b6785 of _0x1e5a84)_0x4b6785['isInContent']&&_0x5756ce['execute'](_0x4b6785['id']);});}}class R extends _0xd9491d{['_command'];['_suggestions'];constructor(_0x115116,_0x4365a7,_0x1518cb){super(_0x115116),this['_command']=_0x4365a7,this['_suggestions']=_0x1518cb,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5f30cd=Array['from'](this['_suggestions']['values']())['some'](_0x269c26=>_0x269c26['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5f30cd;}['execute'](){const _0x825524=ts(Array['from'](this['_suggestions']['values']()));for(const _0x218576 of _0x825524){const _0xc8fbc1=_0x218576['getRanges']();if(!this['editor']['model']['canEditAt'](_0xc8fbc1))return;}rs(this['editor']['model'],this['_command'],_0x825524);}}class E extends _0xd9491d{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x375520,_0x9c4f5,_0x5bd620){super(_0x375520),this['_command']=_0x9c4f5,this['_suggestions']=_0x5bd620,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xdf866c=this['editor']['model']['document']['selection'],_0xf437bc=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x242e78,_0xccf3a5){const _0x2596ff=Array['from'](_0x242e78['getRanges']()),_0x38a729=new Set();for(const _0x18890c of _0xccf3a5)if(_0x18890c['isInContent']){for(const _0x332929 of _0x2596ff)for(const _0x46ca1a of _0x18890c['getRanges']())(_0x332929['isIntersecting'](_0x46ca1a)||_0x242e78['isCollapsed']&&!_0x18890c['isMultiRange']&&_0x18890c['next']&&_0x46ca1a['end']['isTouching'](_0x332929['start']))&&_0x38a729['add'](_0x18890c);}return _0x38a729;}(_0xdf866c,_0xf437bc),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x3bd22e=ts(Array['from'](this['_selectedSuggestions']));for(const _0x2aa962 of _0x3bd22e){const _0x609935=_0x2aa962['getRanges']();if(!this['editor']['model']['canEditAt'](_0x609935))return;}rs(this['editor']['model'],this['_command'],_0x3bd22e);}}class o extends/* #__PURE__ -- @preserve */
24
+ _0x20a8ec(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x155994,_0x3736a6){super(),this['id']=_0x3736a6['id'],this['type']=_0x3736a6['type'],this['subType']=_0x3736a6['subType']||null,this['author']=_0x3736a6['author'],this['creator']=_0x3736a6['creator']||_0x3736a6['author'],this['isExternal']=Boolean(_0x3736a6['attributes']&&_0x3736a6['attributes']['@external']),this['data']=null,this['_model']=_0x155994,this['_onAccept']=_0x3736a6['onAccept'],this['_onDiscard']=_0x3736a6['onDiscard'],this['_onAttributesChange']=_0x3736a6['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3736a6['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x5bedc5=this;for(;_0x5bedc5['previous'];)_0x5bedc5=_0x5bedc5['previous'];return _0x5bedc5;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x3c1c06){this['_markerNames']['add'](_0x3c1c06);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x6229bb=>this['_model']['markers']['get'](_0x6229bb))['filter'](_0x48ac19=>_0x48ac19);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2e4144=>{for(const _0x5404c4 of this['getMarkers']())_0x2e4144['removeMarker'](_0x5404c4);}),this['_markerNames']['clear']();}['removeMarker'](_0x512794){this['_model']['change'](_0x22f995=>{_0x22f995['removeMarker'](_0x512794);}),this['_markerNames']['delete'](_0x512794);}['addRange'](_0xb1ab16){const _0x12b31c='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x12b31c),this['_model']['change'](_0x2378ea=>{_0x2378ea['addMarker'](_0x12b31c,{'range':_0xb1ab16,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x58e40c){for(const _0x343041 of this['getRanges']())if(_0x343041['isIntersecting'](_0x58e40c))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x582fcb=>_0x582fcb['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0xf71e7c,_0x5acebb)=>[..._0xf71e7c,..._0x5acebb['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1a8d74=this['getRanges']();if(0x1!=_0x1a8d74['length'])return null;const _0x1a7f12=_0x1a8d74[0x0],_0x1f58bb=_0x1a7f12['start']['nodeAfter'],_0x431078=_0x1a7f12['end']['nodeBefore'];return _0x1f58bb instanceof _0x2f8b89?_0x1f58bb!=_0x431078?null:_0x1f58bb: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 _0x18e6c7=[];let _0xafe409=this['head'];for(;_0xafe409;)_0x18e6c7['push'](_0xafe409),_0xafe409=_0xafe409['next'];return _0x18e6c7;}['setAttribute'](_0x32f80a,_0x1a9818){const _0x4d76ad=_0x5b5a0d(this['attributes']);_0x1ae88a(_0x4d76ad,_0x32f80a,_0x1a9818),_0x2ed42c(_0x4d76ad,this['attributes'])||(this['attributes']=_0x4d76ad,this['_onAttributesChange'](_0x4d76ad));}['removeAttribute'](_0x4b1e5c){const _0x2a8f55=_0x5b5a0d(this['attributes']);_0x13f8e5(_0x2a8f55,_0x4b1e5c),_0x2ed42c(_0x2a8f55,this['attributes'])||(this['attributes']=_0x2a8f55,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 _0x5d446a()['substr'](0x1,0x5);}}function c(_0x456860,_0x344eee,_0x399420){const _0x270b94=_0x456860['t'],t=_0x456860['t'];switch(_0x344eee){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',_0x399420);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x399420);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x399420);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x399420);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x399420);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',_0x399420);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x399420);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',_0x399420);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x399420);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x399420);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x399420);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x399420);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x399420);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x399420);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x399420);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x399420);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x399420);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x399420);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x399420);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x399420);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x399420);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x399420);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x399420);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x399420);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x399420);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'},_0x399420);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x399420);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x399420);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x399420);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x399420);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x399420);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x399420);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x399420);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x399420);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x399420);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x399420);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x399420);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x399420);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x399420);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x399420);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'},_0x399420);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x399420);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x399420);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'},_0x399420);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x399420);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'},_0x399420);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x399420);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x399420);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'},_0x399420);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x399420);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return _0x270b94({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x399420);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x270b94({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x399420);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x399420);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'},_0x399420);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'},_0x399420);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'},_0x399420);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x344eee;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xb4720f,_0x162b69){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xb4720f,this['_locale']=_0x162b69;}['getDescriptions'](_0x16ecf4){const _0x3801ec=[],_0x503a23=new Set(),_0x237d14=new Set();for(let _0x3b092f=0x0;_0x3b092f<_0x16ecf4['length'];_0x3b092f++){const _0xd3719d=_0x16ecf4[_0x3b092f];if(!_0xd3719d['isInContent'])continue;const _0x3b2c0f=this['_handleCustomCallbackDescription'](_0xd3719d);if(_0x3b2c0f){if(null!=_0xd3719d['subType']){if(_0x503a23['has'](_0xd3719d['subType']))continue;_0x503a23['add'](_0xd3719d['subType']);}_0x3801ec['push'](_0x3b2c0f);}else{if('attribute'!=_0xd3719d['type'])'insertion'!=_0xd3719d['type']&&'deletion'!=_0xd3719d['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3801ec,_0xd3719d,_0x16ecf4[_0x3b092f+0x1]);else{const _0x53accb=_0xd3719d['data']['key'];if(_0x237d14['has'](_0x53accb))continue;_0x237d14['add'](_0xd3719d['data']['key']),_0x53accb==u?this['_handleRenameSuggestionDescription'](_0x3801ec,_0xd3719d):this['_handleAttributeSuggestionDescription'](_0x3801ec,_0xd3719d);}}}return this['_resolveDescriptionItems'](_0x3801ec);}['registerDescriptionCallback'](_0x3c3197){this['_customCallbacks']['push'](_0x3c3197);}['registerElementLabel'](_0x1905c3,_0x268147,_0xd826af=_0x23dcbe['normal']){'function'==typeof _0x1905c3?_0x302f21(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1905c3,'label':_0x268147,'priority':_0xd826af}):this['_itemLabels']['set'](_0x1905c3,_0x268147);}['registerAttributeLabel'](_0x12f93c,_0x2ce6ee){this['_attributeLabels']['set'](_0x12f93c,_0x2ce6ee);}['getItemLabel'](_0x1b8a20,_0x152214=0x1){let _0x599bc0;for(const _0x383b2f of this['_itemLabelsCallbacks'])if(_0x383b2f['matchingCallback'](_0x1b8a20)){_0x599bc0=_0x383b2f['label'];break;}return _0x599bc0||(_0x599bc0=this['_itemLabels']['get'](_0x1b8a20['name'])),_0x599bc0?_0x599bc0(_0x152214):0x1!==_0x152214?_0x152214+'\x20'+_0x1b8a20['name']+'s':''+_0x1b8a20['name'];}['_addDescriptionItems'](_0x5e703c,_0x6f7656){const _0x4feff8=_0x6f7656['getFirstRange']()['getWalker'](),_0x103146='insertion'==_0x6f7656['type']?'add':'remove';for(const _0x3245b2 of _0x4feff8){const _0x3eef56=_0x3245b2['item'],_0x2a4663=_0x5e703c[_0x5e703c['length']-0x1];if(_0x3eef56['is']('$textProxy'))_0x2a4663&&_0x2a4663['type']['indexOf']('Container')>-0x1&&_0x5e703c['pop'](),_0x2a4663&&'text'==_0x2a4663['type']?_0x2a4663[_0x103146]+=_0x3eef56['data']:_0x5e703c['push']({'type':'text','add':'add'==_0x103146?_0x3eef56['data']:'','remove':'remove'==_0x103146?_0x3eef56['data']:''});else{if(this['_schema']['isObject'](_0x3eef56)){const _0x5a62f7=_0x3eef56;if(_0x2a4663&&_0x2a4663['type']['indexOf']('Container')>-0x1&&_0x5e703c['pop'](),'elementEnd'==_0x3245b2['type'])continue;_0x2a4663&&_0x2a4663['type']==_0x103146+'Object'&&_0x2a4663['element']['name']==_0x5a62f7['name']?_0x2a4663['quantity']++:_0x5e703c['push']({'type':_0x103146+'Object','element':_0x5a62f7,'quantity':0x1}),_0x4feff8['skip'](_0x5b203b=>!('elementEnd'==_0x5b203b['type']&&_0x5b203b['item']==_0x3eef56));}else{if(this['_schema']['checkChild'](_0x3eef56,'$text')||_0x3eef56['is']('element','softBreak')){const _0x4775ac=_0x3eef56;if('add'==_0x103146&&'elementStart'==_0x3245b2['type']||'remove'==_0x103146&&'elementEnd'==_0x3245b2['type'])continue;if(_0x2a4663&&-0x1==_0x2a4663['type']['indexOf']('Container')){'text'==_0x2a4663['type']&&(_0x2a4663[_0x103146]+='\x0a');continue;}let _0x14a546;if(_0x14a546='add'==_0x103146?_0x4775ac['nextSibling']&&!this['_schema']['isObject'](_0x4775ac['nextSibling'])?_0x4775ac['nextSibling']:null:_0x4775ac['previousSibling']&&!this['_schema']['isObject'](_0x4775ac['previousSibling'])?_0x4775ac['previousSibling']:null,_0x4775ac['isEmpty']||_0x14a546&&_0x14a546['isEmpty']){const _0x4cc96c=_0x14a546&&_0x14a546['isEmpty']?_0x14a546:_0x4775ac;_0x2a4663&&_0x2a4663['type']==_0x103146+'EmptyContainer'&&_0x2a4663['element']['name']==_0x4cc96c['name']?_0x2a4663['quantity']++:_0x5e703c['push']({'type':_0x103146+'EmptyContainer','element':_0x4cc96c,'quantity':0x1});}else _0x5e703c['push']({'type':_0x103146+'Container','element':_0x4775ac});}}}}}['_resolveDescriptionItems'](_0x596bff){const _0x318cdf=this['_locale'],_0x51aa76=[],_0x31c6b5=[],_0x23396b=[];for(const _0x3235e8 of _0x596bff)switch(_0x3235e8['type']){case'text':if(_0x3235e8['add']=_0x3235e8['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3235e8['remove']=_0x3235e8['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3235e8['add']&&''!=_0x3235e8['remove']){_0x51aa76['push']({'type':'replace','content':c(_0x318cdf,'REPLACE_TEXT',['\x22'+_0x3235e8['remove']+'\x22','\x22'+_0x3235e8['add']+'\x22'])});continue;}if(null!=_0x3235e8['add']['match'](/^ +$/)){_0x51aa76['push']({'type':'insertion','content':c(_0x318cdf,'*Insert:*\x20%0',c(_0x318cdf,'ELEMENT_SPACE',_0x3235e8['add']['length']))});continue;}if(null!=_0x3235e8['remove']['match'](/^ +$/)){_0x51aa76['push']({'type':'deletion','content':c(_0x318cdf,'*Remove:*\x20%0',c(_0x318cdf,'ELEMENT_SPACE',_0x3235e8['remove']['length']))});continue;}if(''!=_0x3235e8['add']){_0x51aa76['push']({'type':'insertion','content':c(_0x318cdf,'*Insert:*\x20%0','\x22'+_0x3235e8['add']+'\x22')});continue;}_0x51aa76['push']({'type':'deletion','content':c(_0x318cdf,'*Remove:*\x20%0','\x22'+_0x3235e8['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x51aa76['push']({'type':'insertion','content':c(_0x318cdf,'*Insert:*\x20%0',this['getItemLabel'](_0x3235e8['element'],_0x3235e8['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x51aa76['push']({'type':'deletion','content':c(_0x318cdf,'*Remove:*\x20%0',this['getItemLabel'](_0x3235e8['element'],_0x3235e8['quantity']))});continue;case'addContainer':_0x51aa76['push']({'type':'insertion','content':c(_0x318cdf,'*Split:*\x20%0',this['getItemLabel'](_0x3235e8['element'],_0x3235e8['quantity']))});continue;case'removeContainer':_0x51aa76['push']({'type':'deletion','content':c(_0x318cdf,'*Merge:*\x20%0',this['getItemLabel'](_0x3235e8['element'],_0x3235e8['quantity']))});continue;case'addFormat':_0x31c6b5['push'](_0x3235e8['key']);continue;case'removeFormat':_0x23396b['push'](_0x3235e8['key']);continue;default:_0x51aa76['push'](_0x3235e8);}if(_0x31c6b5['length']){const _0x43673b=_0x31c6b5['map'](_0x480a51=>this['_attributeLabels']['has'](_0x480a51)?this['_attributeLabels']['get'](_0x480a51):_0x480a51)['join'](',\x20');_0x51aa76['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x43673b)});}if(_0x23396b['length']){const _0x254948=_0x23396b['map'](_0x5a5cbc=>this['_attributeLabels']['has'](_0x5a5cbc)?this['_attributeLabels']['get'](_0x5a5cbc):_0x5a5cbc)['join'](',\x20');_0x51aa76['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x254948)});}return _0x51aa76;}['_handleCustomCallbackDescription'](_0x375800){for(const _0x347eef of this['_customCallbacks']){const _0x24190b=_0x347eef(_0x375800);if(_0x24190b&&'type'in _0x24190b)return _0x24190b;}}['_handleAttributeSuggestionDescription'](_0x14ee81,_0x8efb10){const _0xcc7221=_0x8efb10['data'],_0x3b6085=void 0x0===_0xcc7221['newValue']?'removeFormat':'addFormat';_0x14ee81['push']({'type':_0x3b6085,'key':_0xcc7221['key']});}['_handleRenameSuggestionDescription'](_0x267cbb,_0x33f23d){_0x267cbb['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x33f23d['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xed8979,_0x389b83,_0x17ab89){if(this['_addDescriptionItems'](_0xed8979,_0x389b83),_0x17ab89&&_0x17ab89['getFirstRange']()&&!_0x389b83['getFirstRange']()['end']['isEqual'](_0x17ab89['getFirstRange']()['start'])){const _0x22bd8c=_0xed8979[_0xed8979['length']-0x1],_0x201ae5='insertion'==_0x389b83['type']?'add':'remove';_0x22bd8c&&'text'==_0x22bd8c['type']&&(_0x22bd8c[_0x201ae5]+='\x0a');}}}class U extends _0x6abf95{['afterInit'](){const _0x8afd6c=this['editor'],_0x99b590=_0x8afd6c['plugins']['get']('TrackChangesEditing');_0x8afd6c['commands']['get']('showAIAssistant')&&_0x99b590['enableCommand']('showAIAssistant');}}class V extends _0x6abf95{['afterInit'](){const _0x16a31d=this['editor'],_0xc78104=_0x16a31d['locale'];if(!_0x16a31d['plugins']['has']('AlignmentEditing'))return;const _0x4d188e=_0x16a31d['plugins']['get']('TrackChangesEditing');_0x4d188e['enableDefaultAttributesIntegration']('alignment'),_0x4d188e['registerBlockAttribute']('alignment'),_0x4d188e['descriptionFactory']['registerAttributeLabel']('alignment',c(_0xc78104,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52c969=this['editor'],_0x5b1fcb=_0x52c969['locale'];_0x52c969['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x222b35=>{if('formatBlock'!=_0x222b35['type'])return;const {data:_0x1b782e}=_0x222b35;if(_0x1b782e&&'alignment'==_0x1b782e['commandName']){const _0x574105=_0x1b782e['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x5b1fcb,'*Format:*\x20%0',function(_0x5afa5d){switch(_0x5afa5d){case'left':return c(_0x5b1fcb,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x5b1fcb,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x5b1fcb,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x5b1fcb,'FORMAT_JUSTIFY_TEXT');}}(_0x574105))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x6abf95{['afterInit'](){const _0x30840e=this['editor'],_0x34f7f8=_0x30840e['plugins']['get']('TrackChangesEditing'),_0x2311b3=_0x30840e['locale'];for(const _0x2d1d5f of Zt){if(!_0x30840e['plugins']['has'](_0x2d1d5f))continue;const _0x2912d6=_0x2d1d5f['slice'](0x0,-0x7)['toLowerCase'](),_0x15e32b='FORMAT_'+_0x2912d6['toUpperCase']();_0x34f7f8['enableDefaultAttributesIntegration'](_0x2912d6),_0x34f7f8['registerInlineAttribute'](_0x2912d6),_0x34f7f8['descriptionFactory']['registerAttributeLabel'](_0x2912d6,c(_0x2311b3,_0x15e32b));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b0a2d=this['editor'],_0xe25e5a=_0x4b0a2d['locale'],_0x18aaec=_0x4b0a2d['plugins']['get']('TrackChangesEditing');function _0x85829(_0x3788ab,_0x284d92){_0x18aaec['descriptionFactory']['registerDescriptionCallback'](_0x4e17c5=>{if('formatInline'!=_0x4e17c5['type'])return;const {data:_0xd18852}=_0x4e17c5;return _0xd18852&&_0xd18852['commandName']===_0x3788ab?_0xd18852['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xe25e5a,'*Format:*\x20%0',_0x284d92)}:{'type':'format','content':c(_0xe25e5a,'*Remove\x20format:*\x20%0',_0x284d92)}:void 0x0;});}_0x85829('bold',c(_0xe25e5a,'FORMAT_BOLD')),_0x85829('italic',c(_0xe25e5a,'FORMAT_ITALIC')),_0x85829('underline',c(_0xe25e5a,'FORMAT_UNDERLINE')),_0x85829('code',c(_0xe25e5a,'FORMAT_CODE')),_0x85829('strikethrough',c(_0xe25e5a,'FORMAT_STRIKETHROUGH')),_0x85829('subscript',c(_0xe25e5a,'FORMAT_SUBSCRIPT')),_0x85829('superscript',c(_0xe25e5a,'FORMAT_SUPERSCRIPT'));}}class G extends _0x6abf95{['afterInit'](){const _0x39d2c2=this['editor'],_0x16ca25=_0x39d2c2['locale'];if(!_0x39d2c2['plugins']['has']('BlockQuoteEditing'))return;const _0x32a38b=_0x39d2c2['plugins']['get']('TrackChangesEditing'),_0x3a700b=this['editor']['commands']['get']('blockQuote');_0x32a38b['enableCommand']('blockQuote',(_0x6fde8a,_0x329b39={})=>{const _0x2adc43=this['editor']['model']['document']['selection'],_0x4771ad=_0x329b39&&void 0x0!==_0x329b39['forceValue']?_0x329b39['forceValue']:!_0x3a700b['value'];let _0x222ba8=[];if(_0x4771ad){const _0x2cb00c=Array['from'](_0x2adc43['getSelectedBlocks']())['filter'](_0x218b94=>oo(_0x218b94)||function(_0x2f5e47,_0x13d6d1){const _0x4f0cfd=_0x13d6d1['checkChild'](_0x2f5e47['parent'],'blockQuote'),_0x3c750f=_0x13d6d1['checkChild'](['$root','blockQuote'],_0x2f5e47);return _0x4f0cfd&&_0x3c750f;}(_0x218b94,this['editor']['model']['schema']));_0x222ba8=to(_0x2cb00c,_0x39d2c2['model']);}else{const _0x394239=Array['from'](_0x2adc43['getSelectedBlocks']())['filter'](_0x447289=>oo(_0x447289));_0x222ba8=to(_0x394239,_0x39d2c2['model']);}_0x39d2c2['model']['change'](()=>{for(const _0x295298 of _0x222ba8)_0x32a38b['markBlockFormat'](_0x295298,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4771ad}]});});}),_0x32a38b['descriptionFactory']['registerDescriptionCallback'](_0xe9ee10=>{const {data:_0x38a33}=_0xe9ee10;if(_0x38a33&&'blockQuote'==_0x38a33['commandName']){const _0x303152=c(_0x16ca25,'ELEMENT_BLOCK_QUOTE');return _0x38a33['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x16ca25,'*Set\x20format:*\x20%0',_0x303152)}:{'type':'format','content':c(_0x16ca25,'*Remove\x20format:*\x20%0',_0x303152)};}});}}function oo(_0x423722){return'blockQuote'==_0x423722['parent']['name'];}class L extends _0x6abf95{['afterInit'](){const _0x4b9fc1=this['editor'],_0x32ffeb=_0x4b9fc1['locale'],_0x1a04c3=_0x4b9fc1['plugins']['get']('TrackChangesEditing');_0x4b9fc1['plugins']['has']('BookmarkEditing')&&(_0x1a04c3['enableCommand']('insertBookmark'),_0x1a04c3['enableDefaultAttributesIntegration']('updateBookmark'),_0x1a04c3['registerBlockAttribute']('bookmarkId'),_0x1a04c3['descriptionFactory']['registerDescriptionCallback'](_0x4d2824=>{if('insertion'!=_0x4d2824['type']&&'deletion'!=_0x4d2824['type']&&'attribute'!=_0x4d2824['type'])return;const _0x4b43db=_0x4d2824['getContainedElement']();if(null==_0x4b43db)return;if(!_0x4b43db['is']('element','bookmark'))return;const _0xd64ab6=_0x4b43db['getAttribute']('bookmarkId');if('insertion'==_0x4d2824['type'])return{'type':'insertion','content':c(_0x32ffeb,'*Insert:*\x20%0','\x22'+_0xd64ab6+'\x22\x20'+c(_0x32ffeb,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4d2824['type'])return{'type':'deletion','content':c(_0x32ffeb,'*Remove:*\x20%0','\x22'+_0xd64ab6+'\x22\x20'+c(_0x32ffeb,'ELEMENT_BOOKMARK'))};const {data:_0x2ca8dd}=_0x4d2824;if(!_0x2ca8dd||'bookmarkId'!=_0x2ca8dd['key'])return;return{'type':'format','content':c(_0x32ffeb,'*Set\x20bookmark:*\x20%0','\x22'+_0x2ca8dd['newValue']+'\x22')};}));}}class J extends _0x6abf95{['afterInit'](){const _0x187c61=this['editor'];_0x187c61['plugins']['has']('CaseChange')&&(_0x187c61['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x187c61['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x187c61['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x6abf95{['afterInit'](){const _0x254d99=this['editor'];_0x254d99['commands']['get']('ckbox')&&_0x254d99['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x6abf95{['afterInit'](){const _0xc96098=this['editor'];if(!_0xc96098['plugins']['has']('CodeBlock'))return;const _0x896231=_0xc96098['plugins']['get']('TrackChangesEditing'),_0x87ad18=_0xc96098['locale'],_0x37f722=_0xc96098['config']['get']('codeBlock')['languages'],_0x29fd88=_0xc96098['commands']['get']('codeBlock');_0x896231['enableCommand']('indentCodeBlock'),_0x896231['enableCommand']('outdentCodeBlock'),_0x896231['enableCommand']('codeBlock',(_0x3f10d4,_0x5f4fae={})=>{const _0x44496b=_0xc96098['model'],_0x5f0ecb=_0xc96098['model']['document']['selection'],_0x21e31a=_0x5f4fae&&void 0x0!==_0x5f4fae['forceValue']?_0x5f4fae['forceValue']:!_0x29fd88['value'];let _0x29ff9d;_0x5f4fae['language']||(_0x5f4fae['language']=_0x37f722[0x0]['language']),_0x29ff9d=_0x21e31a?Array['from'](_0x5f0ecb['getSelectedBlocks']())['filter'](_0x415650=>eo(_0x415650)||function(_0x10168e,_0x1f83c8){if(_0x10168e['is']('rootElement')||_0x1f83c8['isLimit'](_0x10168e))return!0x1;return _0x1f83c8['checkChild'](_0x10168e['parent'],'codeBlock');}(_0x415650,_0x44496b['schema'])):Array['from'](_0x5f0ecb['getSelectedBlocks']())['filter'](_0x47eafe=>eo(_0x47eafe));const _0x2f072e=to(_0x29ff9d,_0x44496b);_0x44496b['change'](()=>{for(const _0x306112 of _0x2f072e)_0x896231['markBlockFormat'](_0x306112,{'commandName':'codeBlock','commandParams':[{..._0x5f4fae,'forceValue':_0x21e31a}],'formatGroupId':'blockName'});});}),(_0x896231['descriptionFactory']['registerElementLabel']('codeBlock',_0x3a3ebe=>c(_0x87ad18,'ELEMENT_CODE_BLOCK',_0x3a3ebe)),_0x896231['descriptionFactory']['registerDescriptionCallback'](_0x528881=>{if('formatBlock'!=_0x528881['type'])return;const _0x58c715=_0x87ad18['t'],{data:_0x525fa6}=_0x528881;if(!_0x525fa6||'codeBlock'!=_0x525fa6['commandName'])return;const _0x27ae36=_0x525fa6['commandParams'][0x0]['language'],_0x2ae23a=_0x58c715(_0x37f722['find'](_0x23aba6=>_0x23aba6['language']===_0x27ae36)['label'])['toLowerCase']();return _0x525fa6['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x87ad18,'*Set\x20format:*\x20%0',c(_0x87ad18,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2ae23a+')')}:{'type':'format','content':c(_0x87ad18,'*Remove\x20format:*\x20%0',c(_0x87ad18,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x420223){return'codeBlock'==_0x420223['name'];}class q extends _0x6abf95{['afterInit'](){const _0x1191ad=this['editor'];if(!_0x1191ad['plugins']['has']('CommentsEditing'))return;_0x1191ad['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4710f2,_0x10159c,_0x126525){const _0x5158b8=[];for(const _0x1f94ab of _0x10159c['getItems']())_0x1f94ab['hasAttribute'](_0x4710f2)&&_0x5158b8['push'](_0x126525['createRangeOn'](_0x1f94ab));return _0x5158b8;}function Fe(_0x3cbaf1,_0x10ed21,{showActiveMarker:_0x3944ed=!0x0}={}){const _0x1938c5=_0x3cbaf1['plugins']['get']('TrackChangesEditing');return(_0x130dee,_0xdd3b79,_0x143755)=>{if(!_0x143755['consumable']['test'](_0xdd3b79['markerRange'],_0x130dee['name']))return;const _0xda05ba=_0xdd3b79['markerRange']['getWalker'](),_0x5d5b97=_0xdd3b79['markerRange']['start'],_0x244bd5=_0x3cbaf1['model']['schema'];let _0x4c3a7a=null,_0x24d6f0=null,_0x5f5448=!0x1,_0x5f45dc=!0x1;for(const _0x45412d of _0xda05ba){const _0x101f9f=_0x45412d['item'];_0x5f5448=_0x5f5448||_0x244bd5['isContent'](_0x101f9f);const _0x1779b9=_0x143755['mapper']['toViewElement'](_0x101f9f);if(_0x1779b9&&_0x1779b9['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x45412d['type']&&(_0x244bd5['isBlock'](_0x101f9f)&&!_0x244bd5['isLimit'](_0x101f9f)&&(_0x101f9f['nextSibling']||_0x5d5b97['isAtEnd']?_0x4c3a7a&&_0x4c3a7a['parent']==_0x101f9f||(_0x4c3a7a=_0x101f9f,_0x230cb4(_0x45412d['previousPosition']),_0x5f45dc=!0x0):_0x24d6f0=_0x24d6f0||_0x45412d['previousPosition']));}function _0x230cb4(_0xe26d5){const {id:_0x420002,authorId:_0x5a0076}=_0x1938c5['_splitMarkerName'](_0xdd3b79['markerName']),_0x4b723a=_0x143755['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x10ed21,'data-suggestion':_0x420002,'data-author-id':_0x5a0076}),_0x554f96=_0x143755['mapper']['toViewPosition'](_0xe26d5);_0x3944ed&&_0x1938c5['activeMarkers']['includes'](_0xdd3b79['markerName'])&&_0x143755['writer']['addClass']('ck-suggestion-marker--active',_0x4b723a),_0x143755['writer']['insert'](_0x554f96,_0x4b723a),_0x143755['mapper']['bindElementToMarker'](_0x4b723a,_0xdd3b79['markerName']);}_0x5f5448||_0x5f45dc||!_0x24d6f0||_0x230cb4(_0x24d6f0);};}class z extends _0x6abf95{static get['requires'](){return[_0x18ebbf];}['init'](){const _0x245c82=this['editor'],_0x5b2b3c=_0x245c82['plugins']['get']('TrackChangesEditing');_0x5b2b3c['enableCommand']('delete');const _0x5971df=_0x245c82['commands']['get']('deleteForward');_0x5b2b3c['enableCommand']('deleteForward',(_0x2b047c,_0x2abe94={})=>{const _0x522442=_0x245c82['model']['createSelection'](_0x245c82['model']['document']['selection']);_0x522442['isCollapsed']&&_0x245c82['model']['modifySelection'](_0x522442,{'direction':'forward','unit':_0x2abe94['unit']});const _0x349622=_0x522442['getFirstRange'](),_0x397d5a=_0xd0daae['fromRange'](_0x349622);let _0x568ee7;_0x2b047c(_0x2abe94),_0x568ee7='$graveyard'==_0x397d5a['root']['rootName']?_0x245c82['model']['createRange'](_0x349622['start']):_0x245c82['model']['createRange'](_0x397d5a['start'],_0x397d5a['end']),_0x397d5a['detach'](),_0x245c82['model']['enqueueChange'](_0x5971df['buffer']['batch'],_0x48c991=>{_0x5971df['buffer']['lock'](),_0x48c991['setSelection'](_0x48c991['createRange'](_0x568ee7['end'])),_0x5971df['buffer']['unlock']();});}),_0x245c82['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x245c82,'merge'),{'priority':'high'}),_0x245c82['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5eb373,_0x5bbbe1,_0x545ce6)=>{_0x545ce6['options']['showSuggestionHighlights']&&Fe(_0x245c82,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x5eb373,_0x5bbbe1,_0x545ce6);},{'priority':'high'}),_0x245c82['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5c87c1,_0x5ebbda,_0x11059c)=>{const _0x15b1a6=_0x11059c['mapper']['markerNameToElements'](_0x5ebbda['markerName']);if(_0x15b1a6){for(const _0x5a870a of _0x15b1a6)_0x5a870a['is']('uiElement')&&(_0x11059c['mapper']['unbindElementFromMarkerName'](_0x5a870a,_0x5ebbda['markerName']),_0x11059c['writer']['remove'](_0x5a870a));}},{'priority':'high'});}}class W extends _0x6abf95{['afterInit'](){const _0x2b025f=this['editor'];if(!_0x2b025f['plugins']['has']('ListEditing'))return;const _0x30c696=_0x2b025f['locale'],_0x33af6e=_0x2b025f['plugins']['get']('TrackChangesEditing'),_0x410d7e=_0x2b025f['plugins']['has']('TodoListEditing'),_0x176c10=!!_0x2b025f['config']['get']('list.multiBlock');function _0x2b44da(_0x5e3d39){return{'type':'format','content':''+c(_0x30c696,'*Set\x20format:*\x20%0',_0x5e3d39)};}function _0x2a8312(_0x52134e){return{'type':'format','content':''+c(_0x30c696,'*Remove\x20format:*\x20%0',_0x52134e)};}_0x33af6e['enableDefaultAttributesIntegration']('numberedList'),_0x33af6e['enableDefaultAttributesIntegration']('bulletedList'),_0x33af6e['enableDefaultAttributesIntegration']('customNumberedList'),_0x33af6e['enableDefaultAttributesIntegration']('customBulletedList'),_0x33af6e['enableDefaultAttributesIntegration']('indentList'),_0x33af6e['enableDefaultAttributesIntegration']('outdentList'),_0x33af6e['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x33af6e['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x33af6e['registerBlockAttribute']('listItemId'),_0x33af6e['registerBlockAttribute']('listType'),_0x33af6e['registerBlockAttribute']('listIndent'),_0x176c10&&(_0x33af6e['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x33af6e['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x410d7e&&(_0x33af6e['enableDefaultAttributesIntegration']('todoList'),_0x33af6e['enableDefaultAttributesIntegration']('checkTodoList'),_0x33af6e['registerBlockAttribute']('todoListChecked'),_0x33af6e['descriptionFactory']['registerDescriptionCallback'](_0x37218f=>{const {data:_0x587837}=_0x37218f;if(_0x587837&&'todoListChecked'==_0x587837['key'])return{'type':'format','content':_0x587837['newValue']?c(_0x30c696,'*Check\x20item*'):c(_0x30c696,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5863bd=>{if(_0x5863bd['batch']['isUndo'])return!0x1;let _0x1ed14d=!0x1;const _0x4a951=_0x33af6e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1c191e=>'todoListChecked'===_0x33af6e['_getAttributeKey'](_0x1c191e));for(const _0x5468b0 of _0x4a951){'todo'!=_0x5468b0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x33af6e['_findSuggestions'](_0x5468b0['getFirstRange'](),'attribute')['find'](_0x1a1b9a=>'listType'===_0x33af6e['_getAttributeKey'](_0x1a1b9a['suggestion']))||(_0x5863bd['removeMarker'](_0x5468b0['getFirstMarker']()),_0x1ed14d=!0x0));}return _0x1ed14d;})),_0x33af6e['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x30c696,'FORMAT_INDENT'));const _0x103a34={'type':'format','content':''};_0x33af6e['descriptionFactory']['registerDescriptionCallback'](_0x5535ed=>{const {data:_0x208d59}=_0x5535ed;if(!_0x208d59||'listType'!=_0x208d59['key'])return;let _0x2a34dd=_0x5535ed['head'];for(;_0x2a34dd;){if(_0x2a34dd['data']&&(('listStyle'==_0x2a34dd['data']['key']||'listMarkerStyle'==_0x2a34dd['data']['key'])&&(_0x2a34dd['data']['newValue']&&'default'!=_0x2a34dd['data']['newValue']||'default'!=_0x2a34dd['data']['oldValue']&&!_0x208d59['newValue'])||!_0x176c10&&_0x2a34dd['data']['key']==u))return _0x103a34;_0x2a34dd=_0x2a34dd['next'];}if(null==_0x208d59['newValue'])switch(_0x208d59['oldValue']){case'bulleted':return _0x2a8312(c(_0x30c696,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2a8312(c(_0x30c696,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2a8312(c(_0x30c696,'ELEMENT_TODO_LIST'));}switch(_0x208d59['newValue']){case'bulleted':return _0x2b44da(c(_0x30c696,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2b44da(c(_0x30c696,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2b44da(c(_0x30c696,'ELEMENT_TODO_LIST'));}}),_0x33af6e['descriptionFactory']['registerDescriptionCallback'](_0x2567bf=>{const {data:_0x3eedef}=_0x2567bf;if(_0x3eedef&&'listIndent'==_0x3eedef['key'])return null==_0x3eedef['newValue']||null==_0x3eedef['oldValue']&&0x0==_0x3eedef['newValue']?_0x103a34:void 0x0;}),_0x33af6e['descriptionFactory']['registerDescriptionCallback'](_0x31bb05=>{if('attribute'!=_0x31bb05['type'])return;const {data:_0xfca00}=_0x31bb05;if(!_0xfca00||'listItemId'!=_0xfca00['key'])return;const _0x276731=Te(_0x31bb05);return'newValue'==_0x276731?{'type':'format','content':c(_0x30c696,'*Merge:*\x20list\x20item')}:'oldValue'==_0x276731?{'type':'format','content':c(_0x30c696,'*Split:*\x20list\x20item')}:_0x103a34;}),_0x2b025f['model']['document']['registerPostFixer'](_0x3fe5f2=>this['listItemIdFixer'](_0x3fe5f2)),_0x2b025f['model']['document']['registerPostFixer'](_0x5ddb7f=>this['noTrackChangesFixer'](_0x5ddb7f)),_0x2b025f['model']['document']['on']('change:data',(_0x44f90b,_0x1e1c16)=>{if(_0x1e1c16['isUndo']||!_0x1e1c16['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2bffb7){if(_0x2bffb7['batch']['isUndo']||!_0x2bffb7['batch']['isLocal'])return!0x1;let _0x484991=!0x1;const _0x54bd7e=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x52b3b5=>_0x52b3b5['data']&&'listItemId'==_0x52b3b5['data']['key'])['filter'](_0xb0789f=>_0xb0789f['data']['newValue']&&_0xb0789f['data']['oldValue']);for(const _0x27da32 of _0x54bd7e)Te(_0x27da32)||(_0x2bffb7['removeMarker'](_0x27da32['getFirstMarker']()),_0x484991=!0x0);return _0x484991;}['noTrackChangesFixer'](_0x323910){if(_0x323910['batch']['isUndo']||!_0x323910['batch']['isLocal'])return!0x1;const _0x8a736a=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x8a736a['trackChangesCommand']['value'])return!0x1;let _0x26249f=!0x1;const _0x3aed5a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x147689=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x510d86=>'attribute'==_0x510d86['type'])['filter'](_0x5e5a68=>_0x3aed5a['includes'](_0x5e5a68['attributeKey']));if(0x0==_0x147689['length'])return _0x26249f;for(const _0x15e2cd of _0x147689){const _0x53d7b4=_0x8a736a['_findSuggestions'](_0x15e2cd['range'],'attribute')['filter'](_0x1e7982=>!_0x1e7982['meta']['isNextTo'])['map'](_0x2551b2=>_0x2551b2['suggestion'])['filter'](_0x3f2246=>{const _0x27e070=_0x8a736a['_getAttributeKey'](_0x3f2246);return _0x3aed5a['includes'](_0x27e070);});if(_0x53d7b4['length']){for(const _0x4c6de6 of _0x53d7b4)_0x323910['removeMarker'](_0x4c6de6['getFirstMarker']());_0x26249f=!0x0;}}return _0x26249f;}['assureChains'](){const _0x593b53=this['editor']['plugins']['get']('TrackChangesEditing'),_0x99b33a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xfaa4ac;const _0x20006b=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3a232f=>{if(_0x3a232f['data']['oldRange']||!_0x3a232f['data']['newRange'])return null;if(!_0x3a232f['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x3a3e92}=_0x593b53['_splitMarkerName'](_0x3a232f['name']);if(!_0x593b53['hasSuggestion'](_0x3a3e92))return null;const _0x4a502c=_0x593b53['getSuggestion'](_0x3a3e92);return _0x99b33a['includes'](_0x4a502c['data']['key']);})['map'](_0x469ed4=>{const {id:_0x172aeb}=_0x593b53['_splitMarkerName'](_0x469ed4['name']),_0x32990c=_0x593b53['getSuggestion'](_0x172aeb);return _0xfaa4ac=_0x32990c['attributes']['groupId'],_0x32990c['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x20006b['size'])return;const _0x3a799b=_0x593b53['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x305d13=>'attribute'==_0x305d13['type']&&_0x305d13['data']&&_0x99b33a['includes'](_0x305d13['data']['key'])&&_0x305d13['attributes']['groupId']!=_0xfaa4ac)['map'](_0x348f84=>({'listItem':_0x348f84['getFirstRange']()['start']['nodeAfter'],'groupId':_0x348f84['attributes']['groupId']})),_0x6e5eef=new Set();for(const {groupId:_0x1942e6,listItem:_0x2ef054}of _0x3a799b)_0x20006b['has'](_0x2ef054)&&_0x6e5eef['add'](_0x1942e6);for(const _0x37778c of _0x593b53['getSuggestions']())_0x6e5eef['has'](_0x37778c['attributes']['groupId'])&&_0x37778c['setAttribute']('groupId',_0xfaa4ac);}['_supportLegacySuggestions'](){const _0x3995d8=this['editor'],_0x617125=_0x3995d8['locale'],_0x19a138=_0x3995d8['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x19a138['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x534d27,_0x5b895c){const _0x2b5283=[];for(let _0x1248b7 of _0x534d27)_0x1248b7['start']['nodeAfter']===_0x1248b7['end']['parent']&&(_0x1248b7=_0x3995d8['model']['createRange'](_0x3995d8['model']['createPositionAt'](_0x1248b7['start']['nodeAfter'],0x0))),_0x2b5283['push'](_0x1248b7);_0x3995d8['model']['change'](_0x3714f3=>{const _0x54f95c=_0x3995d8['model']['document']['selection'],_0x38b94b=Array['from'](_0x54f95c['getRanges']())['map'](_0x387749=>_0xd0daae['fromRange'](_0x387749));_0x3714f3['setSelection'](_0x2b5283),_0x3995d8['commands']['get'](_0x5b895c['commandName'])['refresh'](),_0x5b895c['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3995d8['execute'](_0x5b895c['commandName'],..._0x5b895c['commandParams']),_0x3714f3['setSelection'](_0x38b94b);for(const _0x3e8ea8 of _0x38b94b)_0x3e8ea8['detach']();});}),_0x19a138['descriptionFactory']['registerElementLabel'](function(_0x5d2d8e){const _0x55e0e9=!_0x3995d8['model']['schema']['isObject'](_0x5d2d8e),_0x21f901=_0x5d2d8e['previousSibling'],_0x35610e=_0x5d2d8e['nextSibling'],_0x1c6f75=_0x5d2d8e['getAttribute']('listItemId'),_0x466736=!_0x21f901||_0x21f901['getAttribute']('listItemId')!==_0x1c6f75,_0x310f5e=!_0x35610e||_0x35610e['getAttribute']('listItemId')!==_0x1c6f75;return _0x55e0e9&&Boolean(_0x1c6f75)&&_0x466736&&_0x310f5e;},_0x209d8e=>c(_0x617125,'ELEMENT_LIST_ITEM',_0x209d8e));}['_registerLegacyDescription'](){const _0x4950b8=this['editor'],_0x159590=_0x4950b8['locale'];function _0x4b7f4a(_0x4e1872){const _0xe9e51=_0x4950b8['commands']['get']('bulletedList')['value'],_0xfe7ea8=_0x4950b8['commands']['get']('numberedList')['value'];return'numberedList'===_0x4e1872?_0xe9e51:_0xfe7ea8;}_0x4950b8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3c5b6b){if('formatBlock'!=_0x3c5b6b['type'])return;const {data:_0x445cb6}=_0x3c5b6b;if(!_0x445cb6)return;let _0x3277e1,_0x25761e,_0x372541,_0x37667e;switch(_0x445cb6['commandName']){case'bulletedList':_0x372541=_0x445cb6['commandParams'][0x0]['forceValue'],_0x37667e=_0x4b7f4a(_0x445cb6['commandName']),_0x3277e1=_0x372541?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x37667e&&_0x4950b8['config']['get']('list.multiBlock')||(_0x3277e1='*Change\x20to:*\x20%0'),_0x25761e={'type':'format','content':c(_0x159590,_0x3277e1,c(_0x159590,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x372541=_0x445cb6['commandParams'][0x0]['forceValue'],_0x37667e=_0x4b7f4a(_0x445cb6['commandName']),_0x3277e1=_0x372541?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x37667e&&_0x4950b8['config']['get']('list.multiBlock')||(_0x3277e1='*Change\x20to:*\x20%0'),_0x25761e={'type':'format','content':c(_0x159590,_0x3277e1,c(_0x159590,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3277e1='*Indent:*\x20%0',_0x25761e={'type':'format','content':c(_0x159590,_0x3277e1,c(_0x159590,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3277e1=function(_0x3ecf75){const _0x746e58=_0x3ecf75['getFirstRange']();let _0x5ebe1f=_0x746e58['start']['nodeAfter'];for(;_0x5ebe1f&&_0x746e58['containsItem'](_0x5ebe1f);){if(_0x5ebe1f['getAttribute']('listIndent')>0x0)return!0x1;_0x5ebe1f=_0x5ebe1f['nextSibling'];}return!0x0;}(_0x3c5b6b)?c(_0x159590,'*Format:*\x20remove\x20from\x20%0',c(_0x159590,function(_0x2c45c0){return'ELEMENT_'+_0x2c45c0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3c5b6b))):c(_0x159590,'*Outdent:*\x20%0',c(_0x159590,'ELEMENT_LIST_ITEM')),_0x25761e={'type':'format','content':_0x3277e1};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x445cb6['multipleBlocks']&&(_0x3277e1='*Merge:*\x20%0',_0x25761e={'type':'deletion','content':c(_0x159590,_0x3277e1,c(_0x159590,'ELEMENT_LIST_ITEM'))});}return _0x25761e;});}}function Te(_0x108f16){let _0x46de04=_0x108f16['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x46de04;){const _0x6dd914=_0x46de04['getAttribute']('listItemId');if(!_0x6dd914)return!0x1;if(_0x6dd914==_0x108f16['data']['newValue'])return'newValue';if(_0x6dd914==_0x108f16['data']['oldValue'])return'oldValue';_0x46de04=_0x46de04['previousSibling'];}return!0x1;}class Se extends _0x6abf95{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x45e6bd=this['editor']['config']['get']('list.properties'),_0x5b9d94=this['editor']['plugins']['get']('TrackChangesEditing');_0x45e6bd['styles']&&(_0x5b9d94['enableDefaultAttributesIntegration']('listStyle'),_0x5b9d94['registerBlockAttribute']('listStyle')),_0x45e6bd['reversed']&&(_0x5b9d94['enableDefaultAttributesIntegration']('listReversed'),_0x5b9d94['registerBlockAttribute']('listReversed')),_0x45e6bd['startIndex']&&(_0x5b9d94['enableDefaultAttributesIntegration']('listStart'),_0x5b9d94['registerBlockAttribute']('listStart'));const _0x1babbc={'type':'format','content':''};_0x5b9d94['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4b98ae=this['editor']['locale'];_0x5b9d94['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x4b98ae,'FORMAT_LIST_REVERSED')),_0x5b9d94['descriptionFactory']['registerDescriptionCallback'](_0x1dabd6=>{const {data:_0x3c96cb}=_0x1dabd6;if(_0x3c96cb&&'listReversed'==_0x3c96cb['key'])return null==_0x3c96cb['newValue']||0x0==_0x3c96cb['newValue']&&null==_0x3c96cb['oldValue']?_0x1babbc:void 0x0;}),_0x5b9d94['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x4b98ae,'FORMAT_LIST_START')),_0x5b9d94['descriptionFactory']['registerDescriptionCallback'](_0x2142ec=>{const {data:_0x28243c}=_0x2142ec;if(_0x28243c&&'listStart'==_0x28243c['key'])return null==_0x28243c['newValue']||0x1==_0x28243c['newValue']&&null==_0x28243c['oldValue']?_0x1babbc:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x506146=>{if(_0x506146['batch']['isUndo'])return!0x1;let _0x1aa070=!0x1;const _0x55e678=_0x5b9d94['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x396faa=>{const _0x4b1a50=_0x5b9d94['_getAttributeKey'](_0x396faa);return'listStart'==_0x4b1a50||'listReversed'==_0x4b1a50;});for(const _0x409c96 of _0x55e678){const _0x54563b=_0x409c96['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x54563b||'customNumbered'==_0x54563b)continue;_0x5b9d94['_findSuggestions'](_0x409c96['getFirstRange'](),'attribute')['find'](_0x2e3c6f=>'listType'==_0x5b9d94['_getAttributeKey'](_0x2e3c6f['suggestion']))||(_0x506146['removeMarker'](_0x409c96['getFirstMarker']()),_0x1aa070=!0x0);}return _0x1aa070;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x376f01){const _0x52fb67=this['editor']['locale'],{data:_0x4396e3}=_0x376f01,_0x597a63={'type':'format','content':''};if(!_0x4396e3||'listStyle'!=_0x4396e3['key'])return;if(!_0x4396e3['oldValue'])return'default'==_0x4396e3['newValue']?_0x597a63:{'type':'format','content':''+c(_0x52fb67,'*Set\x20format:*\x20%0',c(_0x52fb67,this['_getTranslationKeyForListStyle'](_0x4396e3['newValue'])))};if(!_0x4396e3['newValue']){if('default'==_0x4396e3['oldValue'])return _0x597a63;let _0xcfd606=_0x376f01['head'];for(;_0xcfd606;){if(_0xcfd606['data']&&'listType'==_0xcfd606['data']['key']&&_0xcfd606['data']['newValue'])return _0x597a63;_0xcfd606=_0xcfd606['next'];}return{'type':'format','content':''+c(_0x52fb67,'*Remove\x20format:*\x20%0',c(_0x52fb67,this['_getTranslationKeyForListStyle'](_0x4396e3['oldValue'])))};}if('default'!=_0x4396e3['newValue'])return{'type':'format','content':''+c(_0x52fb67,'*Set\x20format:*\x20%0',c(_0x52fb67,this['_getTranslationKeyForListStyle'](_0x4396e3['newValue'])))};let _0x561e52=_0x376f01['head'];for(;_0x561e52;){if(_0x561e52['data']&&'listType'==_0x561e52['data']['key']&&_0x561e52['data']['newValue']&&_0x561e52['data']['oldValue'])return _0x597a63;_0x561e52=_0x561e52['next'];}return{'type':'format','content':c(_0x52fb67,'*Set\x20format:*\x20%0',c(_0x52fb67,'ELEMENT_'+_0x376f01['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x373d9f=this['editor'],_0x2535f0=_0x373d9f['locale'];_0x373d9f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56560c=>{if('formatBlock'!=_0x56560c['type'])return;const {data:_0x4f74fd}=_0x56560c;if(!_0x4f74fd)return;let _0x1ef736,_0x3c4732;switch(_0x4f74fd['commandName']){case'listStyle':_0x1ef736='*Change\x20to:*\x20%0',_0x3c4732={'type':'format','content':c(_0x2535f0,_0x1ef736,c(_0x2535f0,this['_getTranslationKeyForListStyle'](_0x4f74fd['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1ef736=_0x4f74fd['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3c4732={'type':'format','content':c(_0x2535f0,_0x1ef736)};break;case'listStart':_0x1ef736='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3c4732={'type':'format','content':c(_0x2535f0,_0x1ef736,_0x4f74fd['commandParams'][0x0]['startIndex'])};}return _0x3c4732;});}['_getTranslationKeyForListStyle'](_0x15c093){return'ELEMENT_'+function(_0x179ab3){if(_e['includes'](_0x179ab3))return'bulleted';if(Re['includes'](_0x179ab3))return'numbered';return null;}(_0x15c093)['toUpperCase']()+'_LIST_'+_0x15c093['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x6abf95{['afterInit'](){const _0x2a4466=this['editor'];_0x2a4466['commands']['get']('emoji')&&_0x2a4466['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x6abf95{static get['requires'](){return[_0x2d7c2e];}['init'](){const _0x439b58=this['editor'],_0x26d4c9=_0x439b58['plugins']['get']('TrackChangesEditing'),_0x3ea35d=_0x439b58['commands']['get']('enter');_0x26d4c9['enableCommand']('enter',()=>{_0x439b58['model']['change'](_0x31c4dc=>{const _0x2e8d79=_0x439b58['model']['document']['selection'],_0x554b38=_0x2e8d79['getFirstPosition'](),_0x2e2a0b=_0xd0daae['fromRange'](_0x2e8d79['getFirstRange']());if(_0x3ea35d['enterBlock'](_0x31c4dc)){const _0x169bbe=_0x439b58['model']['createPositionAt'](_0x554b38['parent']['nextSibling'],0x0),_0x56c1f0=_0x31c4dc['createRange'](_0x554b38,_0x169bbe);_0x26d4c9['markInsertion'](_0x56c1f0);}else _0x31c4dc['setSelection'](_0x31c4dc['createRange'](_0x2e2a0b['end']));_0x2e2a0b['detach'](),_0x3ea35d['fire']('afterExecute',{'writer':_0x31c4dc});});}),_0x439b58['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x439b58,'split'),{'priority':'high'}),_0x439b58['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x52374a,_0x42711e,_0x49ec54)=>{const _0x2afe3d=_0x49ec54['mapper']['markerNameToElements'](_0x42711e['markerName']);if(_0x2afe3d){for(const _0x415b75 of _0x2afe3d)_0x415b75['hasClass']('ck-suggestion-marker-split')&&(_0x49ec54['mapper']['unbindElementFromMarkerName'](_0x415b75,_0x42711e['markerName']),_0x49ec54['writer']['remove'](_0x415b75));}},{'priority':'high'}),_0x439b58['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x343565,_0xc949f9,_0x6edb53)=>{_0x6edb53['options']['showSuggestionHighlights']&&Fe(_0x439b58,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x343565,_0xc949f9,_0x6edb53);},{'priority':'high'});}}class Z extends _0x6abf95{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x587d39=this['editor']['plugins']['get']('TrackChangesEditing');_0x587d39['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x587d39['enableCommand']('findNext'),_0x587d39['enableCommand']('findPrevious'),_0x587d39['enableCommand']('replace'),_0x587d39['enableCommand']('replaceAll');}['handleFindCommand'](_0xdaa465,_0x42307e,_0xbe5dcf={}){const _0x2f2ff6=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xdaa465(_0x37fc0f=>{let _0x429c64=('string'==typeof _0x42307e?_0x2f2ff6['findByTextCallback'](_0x42307e,_0xbe5dcf):_0x42307e)(_0x37fc0f);Array['isArray'](_0x429c64)&&(_0x429c64={'results':_0x429c64,'searchText':'string'==typeof _0x42307e?_0x42307e:''});const _0x1ef630=_0x429c64['results']['filter'](_0x97190d=>!0x1===this['_isInDeletionRange'](_0x97190d,_0x37fc0f['item']));return{..._0x429c64,'results':_0x1ef630};},_0xbe5dcf);}['_isInDeletionRange'](_0x13063c,_0x2b20ed){const _0x25e28f=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2b20ed,_0x13063c['start']),this['editor']['model']['createPositionAt'](_0x2b20ed,_0x13063c['end']));for(const _0x50f710 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x25e28f['getIntersection'](_0x50f710['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x6abf95{['afterInit'](){const _0xc6f11=this['editor']['locale'],_0x59377b=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x22fa28,commandName:_0x46ac84}of ro)this['editor']['plugins']['has'](_0x22fa28)&&(_0x59377b['enableDefaultAttributesIntegration'](_0x46ac84),_0x59377b['registerInlineAttribute'](_0x46ac84));_0x59377b['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0xc6f11,'FORMAT_FONT_SIZE')),_0x59377b['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0xc6f11,'FORMAT_FONT_FAMILY')),_0x59377b['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0xc6f11,'FORMAT_FONT_COLOR')),_0x59377b['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0xc6f11,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c972f=this['editor'],_0x185dec=_0x4c972f['locale'];_0x4c972f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ceee9=>{const _0x18f3c4=_0x185dec['t'];if('formatInline'!=_0x3ceee9['type'])return;const {data:_0x3919bf}=_0x3ceee9;if(null!=_0x3919bf){if('fontSize'==_0x3919bf['commandName']){const _0x2528de=_0x3919bf['commandParams'][0x0]['value'];if(_0x2528de){const _0x6c687f=_0x18f3c4(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3e80db=>_0x3e80db['model']==_0x2528de)['title'])['toLowerCase']();return{'type':'format','content':c(_0x185dec,'*Set\x20font\x20size:*\x20%0',_0x6c687f)};}return{'type':'format','content':c(_0x185dec,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3919bf['commandName']){const _0x3422a9=_0x3919bf['commandParams'][0x0]['value'];return _0x3422a9?{'type':'format','content':c(_0x185dec,'*Set\x20font\x20family:*\x20%0',_0x3422a9)}:{'type':'format','content':c(_0x185dec,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3919bf['commandName']){const _0x543bf2=_0x3919bf['commandParams'][0x0]['value'];if(_0x543bf2){const _0x3de460=_0x370301(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4e544a=>_0x4e544a['model']==_0x543bf2);let _0x3c303e=_0x543bf2,_0xdc8cfc='';return _0x3de460&&(_0x3c303e=_0x3de460['label'],_0xdc8cfc=_0x18f3c4(_0x3c303e)['toLowerCase']()),{'type':'format','content':c(_0x185dec,'*Set\x20font\x20color:*\x20%0',_0xdc8cfc)['trim'](),'color':{'value':_0x543bf2,'title':_0xdc8cfc||_0x3c303e}};}return{'type':'format','content':c(_0x185dec,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3919bf['commandName']){const _0x5f172f=_0x3919bf['commandParams'][0x0]['value'];if(_0x5f172f){const _0x2922fd=_0x370301(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5a667c=>_0x5a667c['model']==_0x5f172f);let _0x3e4fcb=_0x5f172f,_0x4c1483='';return _0x2922fd&&(_0x3e4fcb=_0x2922fd['label'],_0x4c1483=_0x18f3c4(_0x3e4fcb)['toLowerCase']()),{'type':'format','content':c(_0x185dec,'*Set\x20font\x20background\x20color:*\x20%0',_0x4c1483)['trim'](),'color':{'value':_0x5f172f,'title':_0x4c1483||_0x3e4fcb}};}return{'type':'format','content':c(_0x185dec,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x6abf95{['afterInit'](){const _0x8d7d1a=this['editor'],_0x28aa5e=_0x8d7d1a['plugins']['get']('TrackChangesEditing'),_0x54217c=_0x8d7d1a['commands']['get']('copyFormat'),_0x4b868f=_0x8d7d1a['commands']['get']('pasteFormat');_0x54217c&&_0x4b868f&&(_0x28aa5e['enableDefaultAttributesIntegration']('pasteFormat'),_0x28aa5e['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x9dc0fb=this['editor'],_0x4dc209=_0x9dc0fb['locale'];_0x9dc0fb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4dcc45=>{if('formatBlock'!=_0x4dcc45['type']&&'formatInline'!=_0x4dcc45['type'])return;const {data:_0x5c5443}=_0x4dcc45;if(_0x5c5443&&'pasteFormat'===_0x5c5443['commandName']){const _0x5466bf=[],_0x52ed09=_0x5c5443['commandParams'][0x0];for(const [_0x1c92e5,_0x2d0e2e]of Object['entries'](_0x52ed09))_0x5466bf['push'](so(_0x9dc0fb,_0x1c92e5,_0x2d0e2e));return _0x5466bf['length']?{'type':'format','content':c(_0x4dc209,'*Set\x20format\x20to:*\x20%0',_0x5466bf['join'](',\x20'))}:{'type':'format','content':c(_0x4dc209,'*Remove\x20all\x20formatting*')};}});}}function so(_0x28a11a,_0x2bb52f,_0x554f08){const _0x2e5696=_0x28a11a['locale']['t'],_0x26dcb3=_0x2bb52f['split'](/(?=[A-Z])/)['join']('\x20'),_0x39d728=_0x2e5696(_0x26dcb3['charAt'](0x0)['toUpperCase']()+_0x26dcb3['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x554f08)return _0x39d728;if('fontColor'===_0x2bb52f||'fontBackgroundColor'===_0x2bb52f){const _0x43cae8=_0x370301(_0x28a11a['config']['get']('fontColor.colors'))['find'](_0x2276a1=>_0x2276a1['model']==_0x554f08);return _0x39d728+'\x20('+(_0x43cae8?_0x2e5696(_0x43cae8['label'])['toLowerCase']():_0x554f08)+')';}if('fontSize'===_0x2bb52f&&isNaN(parseFloat(_0x554f08))){const _0x31fc38=_0x28a11a['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x28a11a['config']['get']('fontSize.options'))['find'](_0x34749a=>_0x34749a['model']==_0x554f08);return _0x39d728+'\x20('+(_0x31fc38?_0x2e5696(_0x31fc38['title'])['toLowerCase']():_0x554f08)+')';}return _0x39d728+'\x20('+_0x554f08+')';}class et extends _0x6abf95{['_headingOptions'];['afterInit'](){const _0x210625=this['editor'];if(!_0x210625['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x210625['config']['get']('heading.options');const _0x42b4eb=_0x210625['locale'],_0x1f58ae=_0x210625['plugins']['get']('TrackChangesEditing');_0x1f58ae['enableDefaultAttributesIntegration']('heading');for(const _0x1f14b6 of this['_headingOptions'])'paragraph'!=_0x1f14b6['model']&&_0x1f58ae['descriptionFactory']['registerElementLabel'](_0x1f14b6['model'],_0x5fec1f=>{const _0xa3762a=this['_getHeadingLevel'](_0x1f14b6['model']);return null!==_0xa3762a?_0xfa0f22(_0x5fec1f,_0xa3762a):_0x465d27(_0x5fec1f,_0x1f14b6['title']);});function _0xfa0f22(_0x18ec1a,_0x513feb){return c(_0x42b4eb,'ELEMENT_HEADING',[_0x18ec1a,_0x513feb]);}function _0x465d27(_0x13face,_0x3d6c78){return c(_0x42b4eb,'ELEMENT_HEADING_CUSTOM',[_0x13face,_0x3d6c78]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8bf810=this['editor'],_0x326693=_0x8bf810['locale'];function _0x3865b4(_0xe5a712,_0x2d81b7){return c(_0x326693,'ELEMENT_HEADING_CUSTOM',[_0xe5a712,_0x2d81b7]);}_0x8bf810['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56633a=>{if('formatBlock'!=_0x56633a['type'])return;const {data:_0x2cef18}=_0x56633a;if(_0x2cef18&&'heading'==_0x2cef18['commandName']){const _0x10c2de=_0x2cef18['commandParams'][0x0]['value'],_0x398bc0=this['_getHeadingLevel'](_0x10c2de);if(null!==_0x398bc0)return{'type':'format','content':c(_0x326693,'*Change\x20to:*\x20%0',(_0x3fbb7e=0x1,_0x42f86a=_0x398bc0,c(_0x326693,'ELEMENT_HEADING',[_0x3fbb7e,_0x42f86a])))};const _0x2f555b=this['_headingOptions']['find'](_0x5c09bf=>_0x5c09bf['model']===_0x10c2de)['title'];return{'type':'format','content':c(_0x326693,'*Change\x20to:*\x20%0',_0x3865b4(0x1,_0x2f555b))};}var _0x3fbb7e,_0x42f86a;});}['_getHeadingLevel'](_0x27424d){const _0x3251c2=_0x27424d['match'](/^heading(\d+)/);if(_0x3251c2)return _0x3251c2[0x1];const _0x58c419=this['_headingOptions']?.['find'](_0x59db93=>_0x59db93['model']==_0x27424d);if(_0x58c419&&_0x58c419['view']){const _0x17a6ac=_0x58c419['view'],_0x1c49d8=(_0x17a6ac['name']??_0x17a6ac)['match'](/^h(\d+)/);if(_0x1c49d8)return _0x1c49d8[0x1];}return null;}}class nt extends _0x6abf95{['afterInit'](){const _0x4cf81f=this['editor'];if(!_0x4cf81f['plugins']['has']('HighlightEditing'))return;const _0x31ac42=_0x4cf81f['plugins']['get']('TrackChangesEditing'),_0x2385e1=_0x4cf81f['locale'];_0x31ac42['enableDefaultAttributesIntegration']('highlight'),_0x31ac42['registerInlineAttribute']('highlight'),_0x31ac42['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x2385e1,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27d727=this['editor'],_0x440cce=_0x27d727['locale'];_0x27d727['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xcb770c=>{if('formatInline'!=_0xcb770c['type'])return;const {data:_0x32be75}=_0xcb770c;if(_0x32be75&&'highlight'==_0x32be75['commandName']){const _0x495ae1=_0x440cce['t'],_0x219a58=_0x32be75['commandParams'][0x0]['value'];if(_0x219a58){const _0x129d0f=_0x27d727['config']['get']('highlight.options')['find'](_0x302af8=>_0x302af8['model']==_0x219a58),_0x32b6c3=_0x495ae1(_0x129d0f['title'])['toLowerCase']();return{'type':'format','content':c(_0x440cce,'*Set\x20highlight:*\x20%0',_0x32b6c3),'color':{'value':_0x129d0f['color'],'title':_0x129d0f['title']}};}return{'type':'format','content':c(_0x440cce,'*Remove\x20highlight*',c(_0x440cce,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x6abf95{['afterInit'](){const _0x48c573=this['editor'];if(!_0x48c573['plugins']['has']('HorizontalLineEditing'))return;_0x48c573['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xe8d753=_0x48c573['plugins']['get']('TrackChangesEditing'),_0x591a00=_0x48c573['locale'];_0xe8d753['descriptionFactory']['registerElementLabel']('horizontalLine',_0xc61baa=>c(_0x591a00,'ELEMENT_HORIZONTAL_LINE',_0xc61baa)),_0x48c573['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x11250b,{writer:_0x113811,options:_0x329712})=>{if(!_0x329712['showSuggestionHighlights'])return null;const _0x22b6b1=_0x113811['createContainerElement']('div'),_0x3f880f=_0x113811['createEmptyElement']('hr');return _0x113811['addClass']('ck-horizontal-line',_0x22b6b1),_0x113811['insert'](_0x113811['createPositionAt'](_0x22b6b1,0x0),_0x3f880f),_0x22b6b1;},'converterPriority':'high'});}}class ot extends _0x6abf95{['afterInit'](){const _0x4ff1e8=this['editor'];if(!_0x4ff1e8['plugins']['has']('HtmlEmbed'))return;const _0x3b35fd=_0x4ff1e8['plugins']['get']('TrackChangesEditing'),_0x31c475=_0x4ff1e8['locale'];_0x3b35fd['descriptionFactory']['registerElementLabel']('rawHtml',_0x3177aa=>c(_0x31c475,'ELEMENT_HTML_EMBED',_0x3177aa)),_0x3b35fd['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3b35fd['registerBlockAttribute']('value'),_0x3b35fd['descriptionFactory']['registerDescriptionCallback'](_0x342f47=>{if('attribute'!=_0x342f47['type'])return;const {data:_0x33a1da}=_0x342f47;if(_0x33a1da&&'value'==_0x33a1da['key']&&_0x342f47['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x571fe3=c(_0x31c475,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x31c475,'*Change\x20%0\x20content*',_0x571fe3)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x161f75=this['editor'],_0x2088b5=_0x161f75['locale'];_0x161f75['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4eee10=>{if('formatBlock'!=_0x4eee10['type'])return;const {data:_0x52bbe8}=_0x4eee10;if(_0x52bbe8&&'htmlEmbed'==_0x52bbe8['commandName']){const _0x5c6f01=c(_0x2088b5,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x2088b5,'*Change\x20%0\x20content*',_0x5c6f01)};}});}}class rt extends _0x6abf95{['afterInit'](){const _0x4f6ba4=this['editor'];if(!_0x4f6ba4['plugins']['has']('ImageEditing'))return;const _0x63b915=_0x4f6ba4['plugins']['get']('TrackChangesEditing'),_0x39dd78=_0x4f6ba4['plugins']['get']('ImageUtils'),_0x4e32b8=_0x4f6ba4['locale'];_0x63b915['enableCommand']('insertImage'),_0x63b915['descriptionFactory']['registerElementLabel']('imageBlock',_0x1f24d4=>c(_0x4e32b8,'ELEMENT_IMAGE',_0x1f24d4)),_0x63b915['descriptionFactory']['registerElementLabel']('imageInline',_0x26c108=>c(_0x4e32b8,'ELEMENT_INLINE_IMAGE',_0x26c108)),_0x63b915['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x4e32b8,'ELEMENT_CAPTION')),_0x4f6ba4['plugins']['has']('ImageUploadEditing')&&_0x63b915['enableCommand']('uploadImage'),_0x4f6ba4['plugins']['has']('ImageBlockEditing')&&_0x4f6ba4['plugins']['has']('ImageInlineEditing')&&(_0x63b915['enableCommand']('imageTypeInline',(_0x9888f4,_0x3e558d)=>{const _0x5afdc9=_0x39dd78['getClosestSelectedImageElement'](_0x4f6ba4['model']['document']['selection']);_0x4f6ba4['model']['change'](()=>{_0x63b915['markBlockFormat'](_0x5afdc9,{'commandName':'imageTypeInline','commandParams':[_0x3e558d]},[],'convertBlockImageToInline');});}),_0x63b915['enableCommand']('imageTypeBlock',(_0x4181f3,_0x18d837)=>{_0x4f6ba4['model']['change'](_0x5c2f22=>{let _0x287243=_0x39dd78['getClosestSelectedImageElement'](_0x4f6ba4['model']['document']['selection']),_0x22dfa4=_0x5c2f22['createRangeOn'](_0x287243);const _0x1ba634=_0xc7aebc['fromPosition'](_0x22dfa4['start'],'toPrevious'),_0x1430c2=_0xc7aebc['fromPosition'](_0x22dfa4['end'],'toNext');_0x63b915['forceDefaultExecution'](()=>_0x4181f3(_0x18d837)),_0x287243=_0x39dd78['getClosestSelectedImageElement'](_0x4f6ba4['model']['document']['selection']),_0x22dfa4=_0x5c2f22['createRangeOn'](_0x287243);const _0x2aae19=_0x5c2f22['createRange'](_0x1ba634,_0x1430c2);_0x1ba634['detach'](),_0x1430c2['detach'](),_0x63b915['markBlockFormat'](_0x287243,{'commandName':'imageTypeInline','commandParams':[_0x18d837]},[],'convertInlineImageToBlock'),_0x2aae19['start']['isBefore'](_0x22dfa4['start'])&&_0x63b915['markInsertion'](_0x5c2f22['createRange'](_0x2aae19['start'],_0x22dfa4['start']),'convertInlineImageToBlock'),_0x22dfa4['end']['isBefore'](_0x2aae19['end'])&&_0x63b915['markInsertion'](_0x5c2f22['createRange'](_0x22dfa4['end'],_0x2aae19['end']),'convertInlineImageToBlock');});}),_0x63b915['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x63b915['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x63b915['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x63b915['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x63b915['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x63b915['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x45dadb])=>{const _0x51e9bb=_0x63b915['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x45777d=_0x45dadb['start'],_0x55a9d8=_0x45dadb['end'];const _0x6fc5fc=_0x4f6ba4['model']['schema']['getNearestSelectionRange'](_0x45777d,'backward'),_0x24f9e7=_0x4f6ba4['model']['schema']['getNearestSelectionRange'](_0x55a9d8,'forward');_0x6fc5fc['isCollapsed']&&(_0x45777d=_0x6fc5fc['start']),_0x24f9e7['isCollapsed']&&(_0x55a9d8=_0x24f9e7['end']),_0x51e9bb([_0x4f6ba4['model']['createRange'](_0x45777d,_0x55a9d8)]);}),_0x63b915['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2b3727),_0x63b915['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2b3727)),_0x4f6ba4['plugins']['has']('ImageCaptionEditing')&&(_0x63b915['enableCommand']('toggleImageCaption',(_0x405c19,_0x2c8a93)=>{const _0x5cb542=_0x4f6ba4['plugins']['get']('ImageCaptionUtils');let _0x4fa3ca=_0x39dd78['getClosestSelectedImageElement'](_0x4f6ba4['model']['document']['selection']),_0x98a51=_0x5cb542['getCaptionFromImageModelElement'](_0x4fa3ca);_0x4f6ba4['model']['change'](()=>{if(_0x98a51)return void _0x63b915['markDeletion'](_0x4f6ba4['model']['createRangeOn'](_0x98a51));const _0x61e944=_0x39dd78['isBlockImage'](_0x4fa3ca);_0x405c19(_0x2c8a93),_0x4fa3ca=_0x39dd78['getClosestSelectedImageElement'](_0x4f6ba4['model']['document']['selection']),_0x98a51=_0x5cb542['getCaptionFromImageModelElement'](_0x4fa3ca),_0x63b915['markInsertion'](_0x4f6ba4['model']['createRangeOn'](_0x98a51),_0x61e944?null:'imageCaption');});}),_0x63b915['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2b3727));const _0x11934c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3eb7bc(_0x75b004,_0x23ae47){const _0x42ec62=_0x11934c['findIndex'](({type:_0x4b1a64,subType:_0x4cbc76})=>_0x75b004['type']==_0x4b1a64&&_0x75b004['subType']==_0x4cbc76),_0x1d09fa=_0x11934c['findIndex'](({type:_0x596a0e,subType:_0x31374e})=>_0x23ae47['type']==_0x596a0e&&_0x23ae47['subType']==_0x31374e);if(_0x42ec62<0x0||_0x1d09fa<0x0)return!0x1;const _0x6a5764=_0x75b004['getFirstRange'](),_0x1b0af5=_0x23ae47['getFirstRange']();if((0x0==_0x42ec62||0x1==_0x42ec62)&&0x2==_0x1d09fa&&_0x6a5764['isIntersecting'](_0x1b0af5))return!0x0;if(0x2==_0x42ec62&&0x3==_0x1d09fa){const _0x38af68=_0x63b915['_findSuggestions'](_0x6a5764,'insertion')['filter'](({suggestion:_0x2448e5,meta:_0x59f97a})=>_0x59f97a['isOwn']&&'convertInlineImageToBlock'==_0x2448e5['subType']);if(_0x38af68['length']>0x1&&_0x1b0af5['end']['isEqual'](_0x6a5764['start']))return!0x0;if(0x1==_0x38af68['length']&&(_0x6a5764['start']['isEqual'](_0x1b0af5['end'])||_0x6a5764['end']['isEqual'](_0x1b0af5['start'])))return!0x0;}if(0x3==_0x42ec62&&0x3==_0x1d09fa&&_0x6a5764['start']['isBefore'](_0x1b0af5['start'])){const _0x31cc07=_0x6a5764['end']['nodeAfter'],_0x3d86cb=_0x1b0af5['start']['nodeBefore'];return _0x39dd78['isBlockImage'](_0x31cc07)&&_0x31cc07===_0x3d86cb;}return!0x1;}function _0x2b3727(_0x17e97d,_0x12c3f0){return _0x3eb7bc(_0x17e97d,_0x12c3f0)?[_0x17e97d,_0x12c3f0]:_0x3eb7bc(_0x12c3f0,_0x17e97d)?[_0x12c3f0,_0x17e97d]:null;}_0x4f6ba4['plugins']['has']('ImageResize')&&(_0x63b915['enableDefaultAttributesIntegration']('resizeImage'),_0x63b915['registerBlockAttribute']('resizedWidth'),_0x63b915['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x4e32b8,'FORMAT_IMAGE_SIZE'))),_0x4f6ba4['plugins']['has']('ImageTextAlternativeEditing')&&(_0x63b915['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x63b915['registerBlockAttribute']('alt')),_0x4f6ba4['plugins']['has']('PictureEditing')&&(_0x63b915['registerBlockAttribute']('sources'),_0x63b915['descriptionFactory']['registerDescriptionCallback'](_0x2078d2=>{if('attribute'!=_0x2078d2['type'])return;const {data:_0x2e240f}=_0x2078d2;return _0x2e240f&&'sources'==_0x2e240f['key']?{'type':'format','content':''}:void 0x0;})),_0x4f6ba4['plugins']['has']('ImageSizeAttributes')&&(_0x63b915['registerBlockAttribute']('width'),_0x63b915['registerBlockAttribute']('height'),_0x63b915['descriptionFactory']['registerDescriptionCallback'](_0x2eb84a=>{if('attribute'!=_0x2eb84a['type'])return;const {data:_0x4ce356}=_0x2eb84a;return!_0x4ce356||'width'!=_0x4ce356['key']&&'height'!=_0x4ce356['key']?void 0x0:{'type':'format','content':''};})),_0x63b915['descriptionFactory']['registerDescriptionCallback'](_0x2b39e0=>{if(!!_0x11934c['find'](({type:_0x4372ec,subType:_0x25422d})=>_0x2b39e0['type']==_0x4372ec&&_0x2b39e0['subType']==_0x25422d))return _0x2b39e0['previous']?{}:void 0x0;}),_0x63b915['descriptionFactory']['registerDescriptionCallback'](_0xbc3186=>{if('insertion'==_0xbc3186['type']||'deletion'==_0xbc3186['type']){const _0x4e9c18=_0xbc3186['getContainedElement']();if(_0x4e9c18&&_0x4e9c18['is']('element','caption'))return{'type':'insertion'==_0xbc3186['type']?'addObject':'removeObject','element':_0x4e9c18,'quantity':0x1};}}),_0x63b915['descriptionFactory']['registerDescriptionCallback'](_0x10554c=>'formatBlock'==_0x10554c['type']&&'convertInlineImageToBlock'==_0x10554c['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x10554c['type']&&'convertBlockImageToInline'==_0x10554c['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x63b915['descriptionFactory']['registerDescriptionCallback'](_0x20c554=>{if('attribute'!=_0x20c554['type'])return;const {data:_0x22d2a7}=_0x20c554;if(!_0x22d2a7||'alt'!=_0x22d2a7['key'])return;const _0x4ba853=_0x22d2a7['newValue'];return _0x4ba853?{'type':'format','content':c(_0x4e32b8,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4ba853+'\x22')}:{'type':'format','content':c(_0x4e32b8,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11d4c5=this['editor'],_0x2ae19d=_0x11d4c5['locale'];_0x11d4c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x312a1e=>{if('formatBlock'!=_0x312a1e['type']&&'formatInline'!=_0x312a1e['type'])return;const {data:_0x47d87f}=_0x312a1e;if(_0x47d87f){if('imageTextAlternative'==_0x47d87f['commandName']){const _0x10b2b1=_0x47d87f['commandParams'][0x0]['newValue'];return _0x10b2b1?{'type':'format','content':c(_0x2ae19d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x10b2b1+'\x22')}:{'type':'format','content':c(_0x2ae19d,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x47d87f['commandName']){const _0x1461da=_0x47d87f['commandParams'][0x0]['width'];return _0x1461da?{'type':'format','content':c(_0x2ae19d,'*Set\x20image\x20width:*\x20%0',_0x1461da)}:{'type':'format','content':c(_0x2ae19d,'*Reset\x20image\x20width*')};}}});}}class at extends _0x6abf95{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xf69c0d=this['editor']['locale'],_0x4b7a7d=this['editor']['plugins']['get']('TrackChangesEditing');_0x4b7a7d['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4b7a7d['registerBlockAttribute']('src'),_0x4b7a7d['descriptionFactory']['registerDescriptionCallback'](_0x423d78=>{if('attribute'!=_0x423d78['type'])return;const {data:_0x4ea1d9}=_0x423d78;return _0x4ea1d9&&'src'==_0x4ea1d9['key']?_0x4ea1d9['newValue']&&_0x4ea1d9['oldValue']?{'type':'format','content':c(_0xf69c0d,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2ca4e4=this['editor']['plugins']['get']('TrackChangesEditing');_0x2ca4e4['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2ca4e4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2ca4e4['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2ca4e4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12ecb2=this['editor'],_0x3d2299=_0x12ecb2['locale'];_0x12ecb2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x69f497=>{if('formatBlock'!=_0x69f497['type']&&'formatInline'!=_0x69f497['type'])return;const {data:_0x30339b}=_0x69f497;if(!_0x30339b||'replaceImageSource'!=_0x30339b['commandName'])return;return{'type':'format','content':c(_0x3d2299,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x6abf95{['afterInit'](){const _0x5c781a=this['editor'];if(!_0x5c781a['plugins']['has']('ImageStyleEditing'))return;const _0x2ea31f=_0x5c781a['plugins']['get']('TrackChangesEditing'),_0x3ccd3a=_0x5c781a['plugins']['get']('ImageUtils'),_0xc182e5={};_0x2ea31f['enableCommand']('imageStyle',(_0x52d1dd,_0x6f36a3)=>{const _0x53c77a=_0x5c781a['plugins']['get']('Users')['me'],_0x11e2f4=_0x5c781a['commands']['get']('imageStyle');let _0x24f095=_0x3ccd3a['getClosestSelectedImageElement'](_0x5c781a['model']['document']['selection']),_0x2bb008=_0x5c781a['model']['createRangeOn'](_0x24f095),_0x5f427e=_0x11e2f4['value'];if(_0x5f427e==_0x6f36a3['value'])return;const _0x1fc571={'commandName':'imageStyle','commandParams':[_0x6f36a3],'formatGroupId':_0x5d446a()};_0x5c781a['model']['change'](()=>{if(_0x2ea31f['getSuggestions']()['filter'](_0x211d38=>_0x211d38['isInContent']&&_0x53c77a==_0x211d38['author']&&('formatBlock'==_0x211d38['type']||'formatInline'==_0x211d38['type'])&&('imageStylePreApply'==_0x211d38['subType']||'imageStylePostApply'==_0x211d38['subType'])&&_0x211d38['getFirstRange']()['isEqual'](_0x2bb008))['forEach'](_0x2b7f2b=>_0x2ea31f['discardSuggestion'](_0x2b7f2b['head'])),_0x24f095=_0x3ccd3a['getClosestSelectedImageElement'](_0x5c781a['model']['document']['selection']),_0x2bb008=_0x5c781a['model']['createRangeOn'](_0x24f095),_0x11e2f4['refresh'](),_0x5c781a['commands']['get']('imageTypeInline')['refresh'](),_0x5c781a['commands']['get']('imageTypeBlock')['refresh'](),_0x5f427e=_0x11e2f4['value'],_0x5f427e!=_0x6f36a3['value'])return _0x3ccd3a['isInlineImage'](_0x24f095)&&_0x11e2f4['shouldConvertImageType'](_0x6f36a3['value'],_0x24f095)?(_0x52d1dd({..._0x6f36a3,'setImageSizes':!0x1}),_0x24f095=_0x3ccd3a['getClosestSelectedImageElement'](_0x5c781a['model']['document']['selection']),void _0x2ea31f['markBlockFormat'](_0x24f095,{..._0x1fc571,'commandReversedParams':[{'value':_0x5f427e||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3ccd3a['isBlockImage'](_0x24f095)?_0x2ea31f['markBlockFormat'](_0x24f095,_0x1fc571,[],'imageStylePostApply'):_0x2ea31f['markInlineFormat'](_0x2bb008,_0x1fc571,'imageStylePostApply'));});});for(const _0x53fd9a of _0x5c781a['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xc182e5[_0x53fd9a['name']]=_0x53fd9a['title']['toLowerCase']();_0x2ea31f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2ea31f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2ea31f['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2ea31f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x92d0f4])=>{_0x3ccd3a['setImageNaturalSizeAttributes'](_0x92d0f4['getContainedElement']());}),_0x2ea31f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x22acc7,_0x515293)=>{_0x2ea31f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x22acc7,{'commandName':_0x515293['commandName'],'commandParams':_0x515293['commandReversedParams']});}),_0x2ea31f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1047f4,_0x547977){if(_0x15efd6(_0x1047f4,_0x547977))return[_0x1047f4,_0x547977];if(_0x15efd6(_0x547977,_0x1047f4))return[_0x547977,_0x1047f4];return null;});const _0x3e81c6=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x15efd6(_0x219d58,_0x16377e){const _0x2b4ad1=_0x3e81c6['findIndex'](({type:_0x5c1502,subType:_0x40b7b6})=>_0x219d58['type']==_0x5c1502&&_0x219d58['subType']==_0x40b7b6),_0x300d07=_0x3e81c6['findIndex'](({type:_0x5547e4,subType:_0x45da81})=>_0x16377e['type']==_0x5547e4&&_0x16377e['subType']==_0x45da81);if(_0x2b4ad1<0x0||_0x300d07<0x0)return!0x1;const _0x119434=_0x219d58['getFirstRange'](),_0x328695=_0x16377e['getFirstRange']();if((0x0==_0x2b4ad1||0x1==_0x2b4ad1)&&0x2==_0x300d07&&_0x119434['isIntersecting'](_0x328695))return!0x0;if(0x2==_0x2b4ad1&&0x3==_0x300d07){const _0x9f208a=_0x2ea31f['_findSuggestions'](_0x119434,'insertion')['filter'](({suggestion:_0x5b507f,meta:_0x4b49bf})=>_0x4b49bf['isOwn']&&'convertInlineImageToBlock'==_0x5b507f['subType']);if(_0x9f208a['length']>0x1&&_0x328695['end']['isEqual'](_0x119434['start']))return!0x0;if(0x1==_0x9f208a['length']&&(_0x119434['start']['isEqual'](_0x328695['end'])||_0x119434['end']['isEqual'](_0x328695['start'])))return!0x0;}if(0x3==_0x2b4ad1&&0x3==_0x300d07&&_0x119434['start']['isBefore'](_0x328695['start'])){const _0x5dcff7=_0x119434['end']['nodeAfter'],_0x2e09bd=_0x328695['start']['nodeBefore'];return _0x3ccd3a['isBlockImage'](_0x5dcff7)&&_0x5dcff7===_0x2e09bd;}return!0x1;}_0x5c781a['model']['document']['registerPostFixer'](()=>{let _0xc218e6=!0x1;const _0x2b8cc9=Array['from'](_0x5c781a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2921ca,data:_0x208d48}of _0x2b8cc9){const {group:_0x24e3e4,type:_0x1c6baa,subType:_0x1ccf1b,id:_0x4ca300}=_0x2ea31f['_splitMarkerName'](_0x2921ca);if('suggestion'==_0x24e3e4&&_0x2ea31f['hasSuggestion'](_0x4ca300)){if('formatBlock'==_0x1c6baa&&('imageStylePreApply'==_0x1ccf1b||'imageStylePostApply'==_0x1ccf1b)){const _0x628b56=_0x2ea31f['getSuggestion'](_0x4ca300);if(_0x208d48['newRange']){const _0x5ee0ae=_0x628b56['getFirstRange']()['getContainedElement']();if(_0x3ccd3a['isBlockImage'](_0x5ee0ae))continue;_0x2ea31f['discardSuggestion'](_0x628b56),_0xc218e6=!0x0;}}if('insertion'==_0x1c6baa&&'imageCaption'==_0x1ccf1b&&!_0x208d48['newRange']){const _0x136d0b=_0x2ea31f['getSuggestion'](_0x4ca300);_0x136d0b['next']&&_0x136d0b['next']['isInContent']&&(_0x2ea31f['discardSuggestion'](_0x136d0b['next']),_0xc218e6=!0x0);}}}return _0xc218e6;}),this['_registerLegacyDescription'](_0xc182e5);}['_registerLegacyDescription'](_0x498e4d){const _0x2beb9c=this['editor'],_0x371289=_0x2beb9c['locale'];_0x2beb9c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ce602=>{if('formatBlock'!=_0x4ce602['type']&&'formatInline'!=_0x4ce602['type'])return;const {data:_0x4fbabe}=_0x4ce602;if(!_0x4fbabe||'imageStyle'!=_0x4fbabe['commandName'])return;const _0x1d2a4a=_0x4fbabe['commandParams'][0x0]['value'];return _0x186948('side'===_0x1d2a4a?c(_0x371289,'FORMAT_SIDE_IMAGE'):_0x498e4d[_0x1d2a4a]||_0x1d2a4a);function _0x186948(_0x371452){return{'type':'format','content':c(_0x371289,'*Format:*\x20%0',_0x371452)};}});}}class ut extends _0x6abf95{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2ba062){super(_0x2ba062),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x54afd1=this['editor'],_0x4c76ac=_0x54afd1['commands']['get']('importWord'),_0x3a7740=_0x54afd1['commands']['get']('trackChanges');_0x4c76ac&&(_0x4c76ac['on']('execute',(_0x43dcd0,[,_0x3413b3])=>{this['_trackChangesValueDuringImport']=_0x3a7740['value'],_0x3413b3['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4c76ac,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4c76ac,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3a7740['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x54afd1['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4fa777,_0x22222c){const {suggestions:_0xc6a7e2}=_0x22222c,_0x3298f7=this['editor']['commands']['get']('trackChanges'),_0xf861f9=_0x3298f7['value'];this['_trackChangesValueDuringImport']!==_0xf861f9&&(_0x3298f7['execute'](),this['_trackChangesExecuted']=!0x0),_0xc6a7e2&&_0xc6a7e2['forEach'](({id:_0x2e39e3,type:_0x2defb1,author:_0x350ddd,created_at:_0x3609c7})=>{const _0x24a39d={'id':_0x2e39e3,'type':_0x2defb1,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x350ddd,'createdAt':_0x3609c7?new Date(_0x3609c7):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x24a39d);});}}class ft extends _0x6abf95{['afterInit'](){const _0x461846=this['editor'],_0x84a985=_0x461846['plugins']['get']('TrackChangesEditing');if(_0x461846['plugins']['has']('IndentEditing')&&(_0x84a985['enableCommand']('indent'),_0x84a985['enableCommand']('outdent')),_0x461846['plugins']['has']('IndentBlock')){for(const _0xa76572 of['indentBlock','outdentBlock'])_0x84a985['enableDefaultAttributesIntegration'](_0xa76572);}const _0x3d7934=_0x461846['locale'];_0x84a985['registerBlockAttribute']('blockIndent'),_0x84a985['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x3d7934,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c0317=this['editor'],_0x4f155d=_0x4c0317['locale'],_0x3bebd5=_0x4c0317['plugins']['get']('TrackChangesEditing');_0x3bebd5['descriptionFactory']['registerDescriptionCallback'](_0x15f6c3=>{if('formatBlock'!=_0x15f6c3['type'])return;const {data:_0x2b1668}=_0x15f6c3;if(!_0x2b1668)return;if('indentBlock'!=_0x2b1668['commandName']&&'outdentBlock'!=_0x2b1668['commandName'])return;const _0x195b09=_0x15f6c3['getItems']()[0x0],_0x1d1e11=_0x3bebd5['descriptionFactory']['getItemLabel'](_0x195b09);return'indentBlock'==_0x2b1668['commandName']?{'type':'format','content':c(_0x4f155d,'*Indent:*\x20%0',_0x1d1e11)}:'outdentBlock'==_0x2b1668['commandName']?{'type':'format','content':c(_0x4f155d,'*Outdent:*\x20%0',_0x1d1e11)}:void 0x0;});}}class ht extends _0x6abf95{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x6abf95{['afterInit'](){const _0x257618=this['editor'];if(!_0x257618['plugins']['has']('LinkEditing'))return;const _0x405c4d=_0x257618['plugins']['get']('TrackChangesEditing'),_0x49569b=_0x257618['commands']['get']('link');_0x405c4d['enableDefaultAttributesIntegration']('link'),_0x405c4d['enableDefaultAttributesIntegration']('unlink'),_0x405c4d['registerInlineAttribute']('linkHref');for(const _0x4115bb of _0x49569b['manualDecorators'])_0x405c4d['registerInlineAttribute'](_0x4115bb['id']),_0x405c4d['descriptionFactory']['registerAttributeLabel'](_0x4115bb['id'],'link\x20('+_0x4115bb['label']['toLowerCase']()+')');_0x405c4d['descriptionFactory']['registerDescriptionCallback'](_0x54013b=>{if('attribute'!=_0x54013b['type'])return;const {data:_0x163baa}=_0x54013b;if(!_0x163baa||'linkHref'!=_0x163baa['key'])return;const _0x196aee=_0x163baa['newValue'],_0x1229f3=_0x257618['locale'];return{'type':'format','content':null==_0x196aee?c(_0x1229f3,'*Remove\x20link*'):c(_0x1229f3,'*Set\x20link:*\x20%0','\x22'+_0x196aee+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf11914=this['editor'],_0x47f7d2=_0xf11914['locale'];_0xf11914['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6b18e4=>{if('formatInline'!=_0x6b18e4['type'])return;const {data:_0x4fbde4}=_0x6b18e4;if(_0x4fbde4){if('link'==_0x4fbde4['commandName']){const _0x3bce47=_0x4fbde4['commandParams'][0x0];return{'type':'format','content':c(_0x47f7d2,'*Set\x20link:*\x20%0','\x22'+_0x3bce47+'\x22')};}return'unlink'==_0x4fbde4['commandName']?{'type':'format','content':c(_0x47f7d2,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x6abf95{['afterInit'](){const _0x1145d9=this['editor'],_0x2721b6=_0x1145d9['locale'];if(!_0x1145d9['plugins']['has']('LegacyListEditing'))return;const _0xd7e31=_0x1145d9['plugins']['get']('TrackChangesEditing'),_0xcd562e=_0x1145d9['plugins']['has']('LegacyTodoListEditing');function _0x13f751(_0x1fe633){return()=>{const _0x9e26c8=_0x1145d9['model']['document']['selection'],_0x1f007b=_0x1145d9['commands']['get'](_0x1fe633);if(_0x1f007b['value'])return void _0x1145d9['execute']('paragraph',{});const _0x3ce4c5=_0x1fe633['slice'](0x0,-0x4),_0x3ded17=function(_0x393585,_0x7a0684,_0x149c6f){let _0xf73ec9=Array['from'](_0x393585)['filter'](_0x3ab255=>function(_0x44f152,_0x5e9bea){return _0x5e9bea['checkChild'](_0x44f152['parent'],'listItem')&&!_0x5e9bea['isObject'](_0x44f152);}(_0x3ab255,_0x149c6f));_0xf73ec9=_0xf73ec9['filter'](_0x13351e=>!_0x13351e['is']('element','listItem')||_0x13351e['getAttribute']('listType')!=_0x7a0684);const _0x2e7555=new Set();for(const _0x47a8e5 of _0xf73ec9)_0x47a8e5['is']('element','listItem')?_0x2e7555['add'](Le(_0x47a8e5)):_0x2e7555['add'](_0x47a8e5);return Array['from'](_0x2e7555);}(_0x9e26c8['getSelectedBlocks'](),_0x3ce4c5,_0x1145d9['model']['schema']);_0x1145d9['model']['change'](()=>{for(const _0x34e28f of _0x3ded17)_0xd7e31['markBlockFormat'](_0x34e28f,{'commandName':_0x1fe633,'commandParams':[{'forceValue':!_0x1f007b['value']}],'formatGroupId':'blockName'},Ee(_0x34e28f));});};}function _0x2be4f9(_0x33430b){return()=>{const _0x49afe8=function(_0x5ee316){let _0x5e9e1d=Array['from'](_0x5ee316);const _0x3a3528=_0x5e9e1d['findIndex'](_0x4cf2b5=>'listItem'!=_0x4cf2b5['name']);return _0x3a3528>-0x1&&(_0x5e9e1d=_0x5e9e1d['slice'](0x0,_0x3a3528)),_0x5e9e1d;}(_0x1145d9['model']['document']['selection']['getSelectedBlocks']()),_0x531ca9=_0x1145d9['model']['createRange'](_0x1145d9['model']['createPositionAt'](_0x49afe8[0x0],'before'),_0x1145d9['model']['createPositionAt'](_0x49afe8[_0x49afe8['length']-0x1],'end'));_0x1145d9['model']['change'](()=>{_0xd7e31['markBlockFormat'](_0x531ca9,{'commandName':_0x33430b,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5943b5){const _0x46469a=new Set();for(const _0x3a182b of _0x5943b5){let _0xca8e58=_0x3a182b['nextSibling'];for(;_0xca8e58&&_0xca8e58['getAttribute']('listIndent')>_0x3a182b['getAttribute']('listIndent');)_0x46469a['add'](_0xca8e58),_0xca8e58=_0xca8e58['nextSibling'];}return Array['from'](_0x46469a);}(_0x49afe8));});};}_0xd7e31['enableCommand']('numberedList',_0x13f751('numberedList')),_0xd7e31['enableCommand']('bulletedList',_0x13f751('bulletedList')),_0xcd562e&&_0xd7e31['enableCommand']('todoList',_0x13f751('todoList')),_0xd7e31['enableCommand']('indentList',_0x2be4f9('indentList')),_0xd7e31['enableCommand']('outdentList',_0x2be4f9('outdentList')),_0xcd562e&&_0xd7e31['enableCommand']('checkTodoList',()=>{const _0x155f3c=_0x1145d9['commands']['get']('checkTodoList'),_0x33a6eb=Array['from'](_0x155f3c['_selectedElements']);_0x33a6eb['filter'](_0x20ceb2=>_0x20ceb2['getAttribute']('todoListChecked')!=_0x155f3c['value']),_0x1145d9['model']['change'](()=>{for(const _0x5315dc of _0x33a6eb)_0xd7e31['markBlockFormat'](_0x5315dc,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x155f3c['value']}]});});}),_0xd7e31['descriptionFactory']['registerElementLabel']('listItem',_0xe21780=>c(_0x2721b6,'ELEMENT_LIST_ITEM',_0xe21780)),_0xd7e31['descriptionFactory']['registerDescriptionCallback'](_0x4533d3=>{if('formatBlock'!=_0x4533d3['type']&&'formatInline'!=_0x4533d3['type'])return;const {data:_0x5c54e9}=_0x4533d3;if(_0x5c54e9){if('numberedList'==_0x5c54e9['commandName']||'bulletedList'==_0x5c54e9['commandName']||'todoList'==_0x5c54e9['commandName'])switch(_0x5c54e9['commandName']['replace']('List','')){case'bulleted':return _0x369548(c(_0x2721b6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x369548(c(_0x2721b6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x369548(c(_0x2721b6,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5c54e9['commandName'])return{'type':'format','content':c(_0x2721b6,'*Indent:*\x20%0',c(_0x2721b6,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5c54e9['commandName'])return{'type':'format','content':c(_0x2721b6,'*Outdent:*\x20%0',c(_0x2721b6,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5c54e9['commandName'])return _0x5c54e9['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2721b6,'*Check\x20item*')}:{'type':'format','content':c(_0x2721b6,'*Uncheck\x20item*')};}function _0x369548(_0xd4f424){return{'type':'format','content':c(_0x2721b6,'*Change\x20to:*\x20%0',_0xd4f424)};}});}}function Le(_0x244265){const _0x52b31e=_0x244265['getAttribute']('listIndent');if(0x0==_0x52b31e)return _0x244265;let _0x24a6fa=_0x244265;for(;_0x244265['previousSibling']&&_0x244265['previousSibling']['is']('element','listItem');){const _0x2728f2=_0x244265['previousSibling']['getAttribute']('listIndent');if(_0x2728f2==_0x52b31e)_0x24a6fa=_0x244265['previousSibling'];else{if(_0x2728f2<_0x52b31e)break;}_0x244265=_0x244265['previousSibling'];}return _0x24a6fa;}function Ee(_0x18c21c){const _0x1c84e9=[];if(_0x18c21c['is']('element','listItem')&&_0x18c21c['getAttribute']('listIndent')>0x0){let _0x4dfacf=_0x18c21c['nextSibling'];for(;_0x4dfacf&&'listItem'==_0x4dfacf['name']&&_0x4dfacf['getAttribute']('listIndent')==_0x18c21c['getAttribute']('listIndent');)_0x1c84e9['push'](_0x4dfacf),_0x4dfacf=_0x4dfacf['nextSibling'];}return _0x1c84e9;}class Q extends _0x6abf95{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1b7463=this['editor']['config']['get']('list.properties'),_0x4c4b01=this['editor']['plugins']['get']('TrackChangesEditing');_0x1b7463['styles']&&_0x4c4b01['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1b7463['reversed']&&_0x4c4b01['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1b7463['startIndex']&&_0x4c4b01['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4c4b01['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x419167,_0x9a7b2b={}){const _0x2abd05=this['editor']['plugins']['get']('TrackChangesEditing'),_0x50501b=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2abd05['markMultiRangeBlockFormat'](_0x50501b,{'commandName':'listStyle','commandParams':[{'type':_0x9a7b2b['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x15cb36,_0x4265c4={}){const _0x68cf74=this['editor']['plugins']['get']('TrackChangesEditing'),_0x113143=this['_getSuggestionBlocks'](_0x580c46=>_0x580c46['is']('element','listItem')&&'numbered'===_0x580c46['getAttribute']('listType'));if(_0x113143['length']<0x1)return;const _0x594303=_0x113143['map'](_0x2d765c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2d765c,'before'),this['editor']['model']['createPositionAt'](_0x2d765c,0x0)));this['editor']['model']['change'](()=>{_0x68cf74['markMultiRangeBlockFormat'](_0x594303,{'commandName':'listReversed','commandParams':[{'reversed':_0x4265c4['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xeacbae,_0x5f34c1={}){const _0x1fb9fa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1dd904=this['_getSuggestionBlocks'](_0x2c0b97=>_0x2c0b97['is']('element','listItem')&&'numbered'===_0x2c0b97['getAttribute']('listType'));if(_0x1dd904['length']<0x1)return;const _0x1475ab=_0x1dd904['map'](_0x7912d5=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x7912d5,'before'),this['editor']['model']['createPositionAt'](_0x7912d5,0x0)));this['editor']['model']['change'](()=>{_0x1fb9fa['markMultiRangeBlockFormat'](_0x1475ab,{'commandName':'listStart','commandParams':[{'startIndex':_0x5f34c1['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x179da3){if('formatBlock'!=_0x179da3['type']&&'formatInline'!=_0x179da3['type'])return;const _0x91e765=this['editor']['locale'],{data:_0x177418}=_0x179da3;if(!_0x177418)return;let _0x4aa985,_0x593f65;switch(_0x177418['commandName']){case'listStyle':_0x4aa985='*Change\x20to:*\x20%0',_0x593f65={'type':'format','content':c(_0x91e765,_0x4aa985,c(_0x91e765,this['_getTranslationKeyForListStyle'](_0x177418['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4aa985=_0x177418['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x593f65={'type':'format','content':c(_0x91e765,_0x4aa985)};break;case'listStart':_0x4aa985='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x593f65={'type':'format','content':c(_0x91e765,_0x4aa985,_0x177418['commandParams'][0x0]['startIndex'])};}return _0x593f65;}['_getSuggestionBlocksForListStyle'](){const _0x3b6766=this['editor']['plugins']['get']('LegacyListUtils');let _0x272cf0=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x272cf0[0x0]?.['is']('element','listItem')&&_0x272cf0['unshift'](..._0x3b6766['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x272cf0[_0x272cf0['length']-0x1]?.['is']('element','listItem')&&_0x272cf0['push'](..._0x3b6766['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x272cf0=[...new Set(_0x272cf0)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x272cf0=_0x272cf0['filter'](_0x2881f0=>_0x2881f0['is']('element','listItem'))),_0x272cf0;}['_getSuggestionBlocks'](_0x59dd06){const _0x212caf=this['editor']['plugins']['get']('LegacyListUtils');let _0x32637e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x59dd06)['map'](_0x56d045=>{const _0x2ffd18=this['editor']['model']['createPositionAt'](_0x56d045,0x0);return[..._0x212caf['getSiblingNodes'](_0x2ffd18,'backward'),..._0x212caf['getSiblingNodes'](_0x2ffd18,'forward')];})['flat']();return _0x32637e=[...new Set(_0x32637e)],_0x32637e;}['_getTranslationKeyForListStyle'](_0x3c89db){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3c89db)||'default')['toUpperCase']()+'_LIST_'+_0x3c89db['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x6abf95{['afterInit'](){const _0x21564e=this['editor'];if(!_0x21564e['plugins']['has']('MediaEmbedEditing'))return;const _0x183c9a=_0x21564e['plugins']['get']('TrackChangesEditing'),_0xb6c321=_0x21564e['locale'];_0x183c9a['enableCommand']('mediaEmbed'),_0x183c9a['descriptionFactory']['registerElementLabel']('media',_0x8e15b8=>c(_0xb6c321,'ELEMENT_MEDIA',_0x8e15b8)),_0x21564e['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x495020,{writer:_0x28397a,options:_0x402844})=>{if(_0x402844['showSuggestionHighlights'])return _0x28397a['createEmptyElement']('div');},'converterPriority':'high'}),_0x21564e['data']['downcastDispatcher']['on']('attribute:url:media',(_0x59333f,_0xbbf265,_0x1c44f9)=>{_0x1c44f9['options']['showSuggestionHighlights']&&_0x59333f['stop']();},{'priority':'high'});}}class pt extends _0x6abf95{['afterInit'](){const _0x208b9e=this['editor'];_0x208b9e['plugins']['has']('MentionEditing')&&_0x208b9e['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x6abf95{['afterInit'](){const _0x26f68f=this['editor'];if(!_0x26f68f['plugins']['has']('MergeFieldsEditing'))return;const _0x312f3f=_0x26f68f['plugins']['get']('TrackChangesEditing'),_0x3a4739=_0x26f68f['locale'];_0x312f3f['enableCommand']('insertMergeField'),_0x312f3f['enableCommand']('insertMergeFieldBlock'),_0x312f3f['enableCommand']('insertMergeFieldImage'),_0x312f3f['descriptionFactory']['registerElementLabel']('mergeField',_0x44398d=>c(_0x3a4739,'ELEMENT_MERGE_FIELD',_0x44398d)),_0x312f3f['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4b79b8=>c(_0x3a4739,'ELEMENT_MERGE_FIELD',_0x4b79b8)),_0x312f3f['descriptionFactory']['registerDescriptionCallback'](_0x3e510f=>{if('insertion'!=_0x3e510f['type']&&'deletion'!=_0x3e510f['type'])return;const _0x34f818=_0x3e510f['getContainedElement']();if(null==_0x34f818)return;const _0x3b3031=_0x26f68f['plugins']['get']('MergeFieldsEditing');let _0x339bd6;switch(_0x3b3031['getMergeFieldType'](_0x34f818)){case null:return;case'image':{const _0x4cebca=_0x3b3031['unwrapAffixes'](_0x34f818['getAttribute']('src'));_0x339bd6=_0x3b3031['getLabel'](_0x4cebca)||_0x4cebca;break;}default:{const _0x51f334=_0x34f818['getAttribute']('id');_0x339bd6=_0x3b3031['getLabel'](_0x51f334)||_0x51f334;break;}}return'insertion'==_0x3e510f['type']?{'type':'insertion','content':c(_0x3a4739,'*Insert:*\x20%0','\x22'+_0x339bd6+'\x22\x20'+c(_0x3a4739,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x3a4739,'*Remove:*\x20%0','\x22'+_0x339bd6+'\x22\x20'+c(_0x3a4739,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x6abf95{['afterInit'](){const _0x58bad9=this['editor'],_0x202ca2=_0x58bad9['plugins']['get']('TrackChangesEditing');_0x58bad9['plugins']['has']('MultiLevelList')&&(_0x202ca2['enableDefaultAttributesIntegration']('multiLevelList'),_0x202ca2['registerBlockAttribute']('listMarkerStyle'),_0x202ca2['descriptionFactory']['registerDescriptionCallback'](_0x429347=>this['handleDescriptions'](_0x429347)));}['handleDescriptions'](_0x2aa4d2){const _0x5aca4b=this['editor']['locale'],{data:_0x401ffb}=_0x2aa4d2,_0xc33b3f={'type':'format','content':''};if(_0x401ffb&&'listMarkerStyle'==_0x401ffb['key']){if(!_0x401ffb['oldValue'])return{'type':'format','content':c(_0x5aca4b,'*Set\x20format:*\x20%0',c(_0x5aca4b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x401ffb['newValue']+')'};if(!_0x401ffb['newValue']){let _0x2328fb=_0x2aa4d2['head'];for(;_0x2328fb;){if(_0x2328fb['data']&&'listType'==_0x2328fb['data']['key']&&_0x2328fb['data']['newValue'])return _0xc33b3f;_0x2328fb=_0x2328fb['next'];}return{'type':'format','content':c(_0x5aca4b,'*Remove\x20format:*\x20%0',c(_0x5aca4b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x401ffb['oldValue']+')'};}}}}class bt extends _0x6abf95{['afterInit'](){const _0x4589ab=this['editor'];if(!_0x4589ab['plugins']['has']('PageBreakEditing'))return;_0x4589ab['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x481036=_0x4589ab['plugins']['get']('TrackChangesEditing'),_0x7ba071=_0x4589ab['locale'];_0x481036['descriptionFactory']['registerElementLabel']('pageBreak',_0x59b2a3=>c(_0x7ba071,'ELEMENT_PAGE_BREAK',_0x59b2a3));}}class yt extends _0x6abf95{['afterInit'](){const _0xf3dc9f=this['editor'];if(!_0xf3dc9f['plugins']['has']('Paragraph'))return;const _0x473552=_0xf3dc9f['locale'],_0x445c17=_0xf3dc9f['plugins']['get']('TrackChangesEditing');_0x445c17['descriptionFactory']['registerElementLabel']('paragraph',_0x92ecd0=>c(_0x473552,'ELEMENT_PARAGRAPH',_0x92ecd0)),_0x445c17['enableDefaultAttributesIntegration']('paragraph'),_0x445c17['enableCommand']('insertParagraph'),_0xf3dc9f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0xf3dc9f),{'priority':'highest'}),_0xf3dc9f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4eb6f8,_0x1655a0,_0x549732)=>{_0x549732['options']['showSuggestionHighlights']&&nr(_0xf3dc9f,{'showActiveMarker':!0x1})(_0x4eb6f8,_0x1655a0,_0x549732);},{'priority':'highest'});const _0x5c1524=_0x445c17['descriptionFactory'];_0x5c1524['registerDescriptionCallback'](_0x3b3c86=>{if('insertion'!==_0x3b3c86['type'])return;const {start:_0x5a04fe,end:_0x152792}=_0x3b3c86['getFirstRange']();if(!_0x5a04fe['isTouching'](_0x152792)||!_0x5a04fe['nodeAfter'])return;const _0x5ef993=_0xf3dc9f['model']['schema'],_0x3fbfb8=_0x5a04fe['nodeAfter'];return _0x5ef993['isBlock'](_0x3fbfb8)&&!_0x5ef993['isLimit'](_0x3fbfb8)&&_0x5ef993['checkChild'](_0x3fbfb8,'$text')?{'type':'insertion','content':c(_0x473552,'*Insert:*\x20%0',_0x5c1524['getItemLabel'](_0x3fbfb8,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21b79b=this['editor'],_0x3be732=_0x21b79b['locale'];_0x21b79b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18cbcf=>{if('formatBlock'!=_0x18cbcf['type'])return;const {data:_0x34c87c}=_0x18cbcf;return _0x34c87c&&'paragraph'==_0x34c87c['commandName']?{'type':'format','content':c(_0x3be732,'*Change\x20to:*\x20%0',c(_0x3be732,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x170155,{showActiveMarker:_0x1fa6e6=!0x0}={}){return(_0xf1f3bc,_0x1a28b4,_0x584afb)=>{const _0x51efdd=_0x170155['plugins']['get']('TrackChangesEditing'),_0x2567e1=_0x1a28b4['markerRange']['start'],_0x41a962=_0x1a28b4['markerRange']['end'],_0x2925fe=_0x170155['model']['schema'];if(!_0x2567e1['isTouching'](_0x41a962)||!_0x2567e1['nodeAfter'])return;const _0x330721=_0x2567e1['nodeAfter'];if(_0x2925fe['isBlock'](_0x330721)&&!_0x2925fe['isLimit'](_0x330721)&&_0x2925fe['checkChild'](_0x330721,'$text')){if(!_0x584afb['consumable']['consume'](_0x1a28b4['markerRange'],_0xf1f3bc['name']))return;const {id:_0xb2abaa,authorId:_0x378a9b}=_0x51efdd['_splitMarkerName'](_0x1a28b4['markerName']),_0x3971d9=_0x584afb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0xb2abaa,'data-author-id':_0x378a9b}),_0x4b11f4=_0x584afb['mapper']['toViewPosition'](_0x41a962);_0x1fa6e6&&_0x51efdd['activeMarkers']['includes'](_0x1a28b4['markerName'])&&_0x584afb['writer']['addClass']('ck-suggestion-marker--active',_0x3971d9),_0x584afb['writer']['insert'](_0x4b11f4,_0x3971d9),_0x584afb['mapper']['bindElementToMarker'](_0x3971d9,_0x1a28b4['markerName']);}};}class jt extends _0x6abf95{['afterInit'](){const _0x4e3a01=this['editor'];_0x4e3a01['commands']['get']('replaceSource')&&_0x4e3a01['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x6abf95{['afterInit'](){const _0x5ba4f8=this['editor'];if(!_0x5ba4f8['plugins']['has']('RemoveFormatEditing'))return;_0x5ba4f8['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa0403b=this['editor'];_0xa0403b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7cea28=>{if('formatBlock'!=_0x7cea28['type']&&'formatInline'!=_0x7cea28['type'])return;const {data:_0x2ccf10}=_0x7cea28;return _0x2ccf10&&'removeFormat'==_0x2ccf10['commandName']?{'type':'format','content':c(_0xa0403b['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x6abf95{['afterInit'](){const _0x18c30b=this['editor'];if(!_0x18c30b['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x170994=_0x18c30b['plugins']['get']('TrackChangesEditing');_0x170994['enableCommand']('goToPreviousRestrictedEditingException'),_0x170994['enableCommand']('goToNextRestrictedEditingException');const _0x18e2db=_0x18c30b['plugins']['get']('RestrictedEditingModeEditing');_0x18e2db['enableCommand']('trackChanges'),_0x18e2db['enableCommand']('acceptSuggestion'),_0x18e2db['enableCommand']('discardSuggestion'),_0x18e2db['enableCommand']('acceptAllSuggestions'),_0x18e2db['enableCommand']('discardAllSuggestions'),_0x18e2db['enableCommand']('acceptSelectedSuggestions'),_0x18e2db['enableCommand']('discardSelectedSuggestions');}}class It extends _0x6abf95{['afterInit'](){const _0x4e669f=this['editor'];if(!_0x4e669f['plugins']['has']('ShiftEnter'))return;const _0x1cb39f=_0x4e669f['plugins']['get']('TrackChangesEditing');_0x1cb39f['enableCommand']('shiftEnter'),_0x4e669f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x4e669f),{'priority':'high'}),_0x4e669f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x4e669f),{'priority':'high'}),_0x4e669f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x230332,_0x2c2aa7,_0x265ba2)=>{_0x265ba2['options']['showSuggestionHighlights']&&je(_0x4e669f,{'showActiveMarker':!0x1})(_0x230332,_0x2c2aa7,_0x265ba2);}),_0x1cb39f['descriptionFactory']['registerElementLabel']('softBreak',_0x37722e=>c(_0x4e669f['locale'],'ELEMENT_LINE_BREAK',_0x37722e));}}function je(_0x41c6ed,{showActiveMarker:_0x906ef7=!0x0}={}){return(_0x161527,_0x3f3713,_0x473077)=>{const _0x12eafe=_0x41c6ed['plugins']['get']('TrackChangesEditing');if(!_0x473077['consumable']['test'](_0x3f3713['markerRange'],_0x161527['name']))return;const _0x33ad8c=_0x41c6ed['model'];for(const _0x2614a9 of _0x3f3713['markerRange']['getItems']()){if(!_0x2614a9['is']('element','softBreak'))continue;const _0x58b7b3='deletion'==_0x3f3713['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x23cf6a,authorId:_0x14f255}=_0x12eafe['_splitMarkerName'](_0x3f3713['markerName']),_0xbedb1d=_0x473077['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x58b7b3,'data-suggestion':_0x23cf6a,'data-author-id':_0x14f255}),_0x219501=_0x473077['mapper']['toViewPosition'](_0x33ad8c['createPositionBefore'](_0x2614a9));_0x906ef7&&_0x12eafe['activeMarkers']['includes'](_0x3f3713['markerName'])&&_0x473077['writer']['addClass']('ck-suggestion-marker--active',_0xbedb1d),_0x473077['writer']['insert'](_0x219501,_0xbedb1d),_0x473077['mapper']['bindElementToMarker'](_0xbedb1d,_0x3f3713['markerName']);}};}class _t extends _0x6abf95{['afterInit'](){const _0x28a91a=this['editor'],_0x1eaef4=_0x28a91a['model'],_0x51efb5=_0x28a91a['locale'];if(!_0x28a91a['plugins']['has']('StandardEditingModeEditing'))return;const _0x32e3cd=_0x28a91a['plugins']['get']('TrackChangesEditing'),_0x40dbce='restrictedEditingException',_0x2ae7e7=_0x28a91a['commands']['get'](_0x40dbce);_0x32e3cd['enableCommand'](_0x40dbce,(_0x332626,_0x52b220={})=>{const _0x1abd21=_0x1eaef4['document']['selection'];if(_0x1abd21['isCollapsed'])return void _0x332626(_0x52b220);const _0x1b951c=void 0x0!==_0x52b220['forceValue']?_0x52b220['forceValue']:!_0x2ae7e7['value'];_0x1eaef4['change'](()=>{const _0x309144=Array['from'](_0x1abd21['getRanges']());for(const _0x501aa0 of _0x309144){const _0x170d3a=_0x1b951c?[_0x501aa0]:io(_0x40dbce,_0x501aa0,_0x1eaef4);for(const _0x2f371b of _0x170d3a)_0x32e3cd['markInlineFormat'](_0x2f371b,{'commandName':_0x40dbce,'commandParams':[{'forceValue':_0x1b951c}]});}});}),_0x32e3cd['descriptionFactory']['registerDescriptionCallback'](_0xb59efd=>{if('formatBlock'!=_0xb59efd['type']&&'formatInline'!=_0xb59efd['type'])return;const {data:_0x2d7b9d}=_0xb59efd;return _0x2d7b9d&&_0x2d7b9d['commandName']==_0x40dbce?_0x2d7b9d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x51efb5,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x51efb5,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x6abf95{['afterInit'](){const _0x360d16=this['editor'];if(!_0x360d16['plugins']['has']('Style')||!_0x360d16['plugins']['has']('DataSchema'))return;const _0x50c66c=_0x360d16['plugins']['get']('TrackChangesEditing'),_0x221b6b=_0x360d16['locale'],_0x493990=_0x360d16['config']['get']('style')||{},_0x47ed96=_0x360d16['plugins']['get']('GeneralHtmlSupport'),_0x390c60=_0x360d16['plugins']['get']('StyleUtils')['normalizeConfig'](_0x360d16['plugins']['get']('DataSchema'),_0x493990['definitions']);_0x50c66c['enableDefaultAttributesIntegration']('style');const _0x27c68f=new Set();for(const _0x2e1887 of _0x390c60['block']){const _0x18dcda=_0x47ed96['getGhsAttributeNameForElement'](_0x2e1887['element']);_0x27c68f['add'](_0x18dcda);}const _0x546756=new Set();for(const _0x4e48d4 of _0x390c60['inline']){const _0x3abee8=_0x47ed96['getGhsAttributeNameForElement'](_0x4e48d4['element']);_0x546756['add'](_0x3abee8);for(const _0x3bbcaa of _0x4e48d4['ghsAttributes'])_0x546756['add'](_0x3bbcaa);}for(const _0x285e2c of _0x27c68f)_0x50c66c['registerBlockAttribute'](_0x285e2c),_0x50c66c['descriptionFactory']['registerAttributeLabel'](_0x285e2c,c(_0x221b6b,'FORMAT_STYLE'));for(const _0x3db939 of _0x546756)_0x50c66c['registerInlineAttribute'](_0x3db939),_0x50c66c['descriptionFactory']['registerAttributeLabel'](_0x3db939,c(_0x221b6b,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19fa7f=this['editor'],_0x454bd3=_0x19fa7f['locale'];_0x19fa7f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22fe6e=>{if('formatBlock'!=_0x22fe6e['type']&&'formatInline'!=_0x22fe6e['type'])return;const {data:_0x2edec4}=_0x22fe6e;return _0x2edec4&&'style'===_0x2edec4['commandName']?_0x2edec4['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x454bd3,'*Set\x20format:*\x20%0',_0x2edec4['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x454bd3,'*Remove\x20format:*\x20%0',_0x2edec4['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x6abf95{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x49b3f8){super(_0x49b3f8),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4d6867=this['editor'],_0x504236=_0x4d6867['model']['document']['selection'];if(!_0x4d6867['plugins']['has']('TableEditing'))return;const _0x346ae6=_0x4d6867['locale'],_0x12ca8e=_0x4d6867['plugins']['get']('TrackChangesEditing'),_0x493da0=_0x4d6867['plugins']['get']('TableUtils');_0x12ca8e['descriptionFactory']['registerElementLabel']('table',_0x48f498=>c(_0x346ae6,'ELEMENT_TABLE',_0x48f498)),this['_setupColumnsRowsFixing'](),_0x12ca8e['enableCommand']('insertTable'),_0x12ca8e['enableCommand']('selectTableRow'),_0x12ca8e['enableCommand']('selectTableColumn');for(const _0x229a84 of['insertTableRowAbove','insertTableRowBelow']){const _0x2a19fa=_0x4d6867['commands']['get'](_0x229a84);_0x12ca8e['enableCommand'](_0x229a84,_0x1115a8=>{_0x4d6867['model']['change'](_0x538d93=>{_0x1115a8();const _0x3d202c='above'===_0x2a19fa['order'],_0x1adce1=_0x493da0['getSelectionAffectedTableCells'](_0x504236),_0x3b2b50=_0x493da0['getRowIndexes'](_0x1adce1),_0x423de6=_0x3d202c?_0x3b2b50['first']-0x1:_0x3b2b50['last']+0x1,_0x677c83=_0x1adce1[0x0]['findAncestor']('table'),_0xf7403c=_0x493da0['createTableWalker'](_0x677c83,{'startRow':_0x423de6,'endRow':_0x423de6}),_0x5300f3=Array['from'](_0xf7403c)['map'](_0x27d721=>_0x538d93['createRangeOn'](_0x27d721['cell']));_0x12ca8e['markMultiRangeInsertion'](_0x5300f3,'tableRow');});});}for(const _0x1209ff of['insertTableColumnLeft','insertTableColumnRight']){const _0x1fca95=_0x4d6867['commands']['get'](_0x1209ff);_0x12ca8e['enableCommand'](_0x1209ff,_0x274468=>{_0x4d6867['model']['change'](_0x6ae0ec=>{_0x274468();const _0x26b2b4='left'===_0x1fca95['order'],_0x513e45=_0x493da0['getSelectionAffectedTableCells'](_0x504236),_0x2ee100=_0x493da0['getColumnIndexes'](_0x513e45),_0x20155e=_0x26b2b4?_0x2ee100['first']-0x1:_0x2ee100['last']+0x1,_0x4dedc2=_0x513e45[0x0]['findAncestor']('table'),_0x3c4013=_0x493da0['createTableWalker'](_0x4dedc2,{'startRow':0x0,'column':_0x20155e,'includeAllSlots':!0x1}),_0x5a0d6e=Array['from'](_0x3c4013)['map'](_0x2f3c22=>_0x6ae0ec['createRangeOn'](_0x2f3c22['cell']));_0x12ca8e['markMultiRangeInsertion'](_0x5a0d6e,'tableColumn');});});}for(const _0x510302 of['removeTableRow','removeTableColumn']){const _0x617cbd=_0x510302['substr'](0xb),_0x46571f=_0x617cbd['toLowerCase'](),_0x1639b0=_0x46571f['substr'](0x0,0x3)+'span',_0x35ef07='table'+_0x617cbd,_0x572a6d='min'+_0x617cbd,_0x344ec6='max'+_0x617cbd;_0x12ca8e['enableCommand'](_0x510302,()=>{_0x4d6867['model']['change'](_0x5c1a92=>{const _0x412d2a=_0x493da0['getSelectionAffectedTableCells'](_0x504236),_0x359196=_0x412d2a[0x0]['findAncestor']('table');let _0x5d0380;if('removeTableRow'==_0x510302){const _0x34371b=_0x493da0['getRowIndexes'](_0x412d2a);_0x5d0380={'startRow':_0x34371b['first'],'endRow':_0x34371b['last'],'includeAllSlots':!0x0};}else{const _0x9b0de6=_0x493da0['getColumnIndexes'](_0x412d2a);_0x5d0380={'startColumn':_0x9b0de6['first'],'endColumn':_0x9b0de6['last'],'includeAllSlots':!0x0};}const _0x45acc4=_0x493da0['createTableWalker'](_0x359196,_0x5d0380),_0x5e6de2=Array['from'](_0x45acc4)['map'](({cell:_0x242bf7})=>_0x242bf7),_0x4fc181=xe(_0x5e6de2['filter'](_0x37bec5=>_0x37bec5['hasAttribute'](_0x1639b0))),_0x43ec17=xe(_0x5e6de2['filter'](_0x321e07=>!_0x321e07['hasAttribute'](_0x1639b0)))['map'](_0x2123e1=>_0x5c1a92['createRangeOn'](_0x2123e1)),_0x2c224a=_0x12ca8e['markMultiRangeDeletion'](_0x43ec17,_0x35ef07);if(_0x2c224a&&('tableRow'==_0x2c224a['subType']||'tableColumn'==_0x2c224a['subType'])){const _0x338e63=this['_getSuggestionCoords'](_0x2c224a);for(const _0x32c2e0 of _0x4fc181){const _0x3fff65=_0x5c1a92['createRangeOn'](_0x32c2e0),_0x3aa16c=_0x493da0['getCellLocation'](_0x32c2e0),_0x3d97d9=_0x32c2e0['getAttribute'](_0x1639b0)-0x1,_0x3a0f7c=_0x338e63[_0x572a6d],_0x93854b=_0x338e63[_0x344ec6];_0x3a0f7c<=_0x3aa16c[_0x46571f]&&_0x3aa16c[_0x46571f]+_0x3d97d9<=_0x93854b&&_0x2c224a['addRange'](_0x3fff65);}}});});}function _0x179eca(_0x461d77){const _0x1aef4e=Array['from'](_0x504236['getRanges']())['map'](_0x275da3=>_0xd0daae['fromRange'](_0x275da3));_0x4d6867['model']['change'](_0x12bebb=>{const _0x36ab95=_0x12bebb['batch'];_0x461d77=_0x461d77['filter'](_0x1631da=>'$graveyard'!=_0x1631da['root']['rootName']),_0x12bebb['setSelection'](_0x461d77),_0x4d6867['commands']['get']('removeTableRow')['refresh'](),_0x4d6867['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4d6867['model']['enqueueChange'](()=>{_0x4d6867['model']['enqueueChange'](_0x36ab95,_0x2c6ce9=>{const _0x297ae6=_0x1aef4e['filter'](_0x1f278b=>'$graveyard'!=_0x1f278b['root']['rootName']);_0x297ae6['length']>0x0&&_0x2c6ce9['setSelection'](_0x297ae6);for(const _0x1016dd of _0x1aef4e)_0x1016dd['detach']();});});});}function _0x4e66be(_0x4e0b01){_0x4d6867['model']['change'](_0x4b6c46=>{const _0x42bce9=Array['from'](_0x504236['getRanges']())['map'](_0xb6407=>_0xd0daae['fromRange'](_0xb6407)),_0x2e36d9=[];for(const _0x449d6e of _0x4e0b01)for(const _0x1fac3a of _0x449d6e['getItems']({'shallow':!0x0}))_0x2e36d9['push'](_0x1fac3a);for(const _0x17305a of _0x2e36d9)'$graveyard'!=_0x17305a['root']['rootName']&&(_0x4b6c46['setSelection'](_0x4b6c46['createPositionAt'](_0x17305a,0x0)),_0x4d6867['commands']['get']('removeTableColumn')['refresh'](),_0x4d6867['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3d71d5=_0x42bce9['filter'](_0x54d88e=>'$graveyard'!=_0x54d88e['root']['rootName']);_0x3d71d5['length']>0x0&&_0x4b6c46['setSelection'](_0x3d71d5);for(const _0x154b5a of _0x42bce9)_0x154b5a['detach']();});}function _0x19718c(_0x4be21c,_0x56169f){return _0x56169f['every'](_0x53a74a=>_0x4be21c['some'](_0x1bc224=>_0x1bc224['end']['isEqual'](_0x53a74a['start'])||_0x53a74a['end']['isEqual'](_0x1bc224['start'])));}function _0x435ebe(_0x345559,_0x4169cf){return!_0x345559['some'](_0x338e55=>_0x4169cf['some'](_0x74803b=>_0x338e55['isIntersecting'](_0x74803b)))&&_0x345559['some'](_0x51da88=>_0x4169cf['some'](_0x220fad=>_0x51da88['end']['isTouching'](_0x220fad['start'])));}_0x4d6867['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x425cfb,_0x50d2eb,_0x3403c5)=>{if(!_0x3403c5['options']['showSuggestionHighlights'])return;const _0x435008=_0x50d2eb['item'];if(!_0x435008||!_0x435008['is']('element','tableCell'))return;const _0xe8bd42=_0x3403c5['mapper']['toViewElement'](_0x435008);if(_0xe8bd42){const {id:_0x3c2044,authorId:_0x3890c5}=_0x12ca8e['_splitMarkerName'](_0x50d2eb['markerName']);_0x29e2ec(_0xe8bd42,_0x3403c5['writer'],(_0x5ce00e,_0x1ef835,_0x273c9c)=>{_0x273c9c['addClass'](_0x3449c0(_0x1ef835['classes']),_0x5ce00e),_0x273c9c['setAttribute']('data-suggestion-id',_0x3c2044,_0x5ce00e),_0x273c9c['setAttribute']('data-author-id',_0x3890c5,_0x5ce00e);},(_0x5a4041,_0x30330a,_0x767984)=>{_0x767984['removeClass'](_0x3449c0(_0x30330a['classes']),_0x5a4041),_0x767984['removeAttribute']('data-suggestion-id',_0x5a4041),_0x767984['removeAttribute']('data-author-id',_0x5a4041);});}},{'priority':'highest'}),_0x12ca8e['descriptionFactory']['registerDescriptionCallback'](_0x4cf28e=>{if('insertion'!=_0x4cf28e['type']&&'deletion'!=_0x4cf28e['type'])return;const _0x238926=_0x4cf28e['getContainedElement']();if(null!=_0x238926&&_0x238926['is']('element','table')){if('insertion'==_0x4cf28e['type']){const _0x435708=_0x4cf28e['getItems']()['filter'](_0x58bfdd=>_0x58bfdd['is']('$textProxy'))['map'](_0x2f0cf2=>_0x2f0cf2['data']);if(_0x435708['length'])return{'type':'insertion','content':c(_0x346ae6,'*Insert:*\x20%0',c(_0x346ae6,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x435708['join']('\x20')+'\x22'))};}if('deletion'==_0x4cf28e['type']){const _0x486270=_0x4cf28e['getItems']()['filter'](_0x315422=>_0x315422['is']('$textProxy'))['map'](_0x29314d=>_0x29314d['data']);if(_0x486270['length'])return{'type':'deletion','content':c(_0x346ae6,'*Remove:*\x20%0',c(_0x346ae6,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x486270['join']('\x20')+'\x22'))};}}}),_0x12ca8e['descriptionFactory']['registerDescriptionCallback'](_0x536133=>{if('tableRow'==_0x536133['subType']){const _0x1cf6e9=_0x536133['getItems']()['filter'](_0x27d8e5=>_0x27d8e5['is']('$textProxy'))['map'](_0x348c6a=>_0x348c6a['data']),_0x3c22a2=this['_getSuggestionCoords'](_0x536133),_0x1d7476=_0x3c22a2['maxRow']-_0x3c22a2['minRow']+0x1;if('insertion'==_0x536133['type'])return _0x1cf6e9['length']?{'type':'insertion','content':c(_0x346ae6,'*Insert:*\x20%0',c(_0x346ae6,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1d7476,'\x22'+_0x1cf6e9['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x346ae6,'*Insert:*\x20%0',c(_0x346ae6,'ELEMENT_TABLE_ROW',_0x1d7476))};if('deletion'==_0x536133['type'])return _0x1cf6e9['length']?{'type':'deletion','content':c(_0x346ae6,'*Remove:*\x20%0',c(_0x346ae6,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1d7476,'\x22'+_0x1cf6e9['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x346ae6,'*Remove:*\x20%0',c(_0x346ae6,'ELEMENT_TABLE_ROW',_0x1d7476))};}if('tableColumn'==_0x536133['subType']){const _0x265f86=_0x536133['getItems']()['filter'](_0x578164=>_0x578164['is']('$textProxy'))['map'](_0x5d6c46=>_0x5d6c46['data']),_0x1ddc36=this['_getSuggestionCoords'](_0x536133),_0xe22597=_0x1ddc36['maxColumn']-_0x1ddc36['minColumn']+0x1;if('insertion'==_0x536133['type'])return _0x265f86['length']?{'type':'insertion','content':c(_0x346ae6,'*Insert:*\x20%0',c(_0x346ae6,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xe22597,'\x22'+_0x265f86['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x346ae6,'*Insert:*\x20%0',c(_0x346ae6,'ELEMENT_TABLE_COLUMN',_0xe22597))};if('deletion'==_0x536133['type'])return _0x265f86['length']?{'type':'deletion','content':c(_0x346ae6,'*Remove:*\x20%0',c(_0x346ae6,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xe22597,'\x22'+_0x265f86['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x346ae6,'*Remove:*\x20%0',c(_0x346ae6,'ELEMENT_TABLE_COLUMN',_0xe22597))};}}),_0x12ca8e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x179eca),_0x12ca8e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x179eca),_0x12ca8e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4e66be),_0x12ca8e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4e66be),_0x12ca8e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x19718c),_0x12ca8e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x19718c),_0x12ca8e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x435ebe),_0x12ca8e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x435ebe);}['_acceptFormatSuggestionCallbackFactory'](){const _0x42b7f2=this['editor'],_0x4b05d0=_0x42b7f2['model']['document']['selection'];return(_0x53ffae,_0x1cf3cd)=>{_0x42b7f2['model']['change'](_0xeb9303=>{const {commandName:_0x3dc5c5,commandParams:_0x441f77}=_0x1cf3cd;let _0x3f60d0=_0x53ffae[0x0]['end']['nodeBefore'];_0x441f77&&_0x441f77[0x0]&&!0x1===_0x441f77[0x0]['forceValue']&&(_0x3f60d0=_0x53ffae[0x0]['start']['nodeAfter']);const _0xe779b6=_0xeb9303['createRangeIn'](_0x3f60d0);if('$graveyard'==_0xe779b6['root']['rootName'])return;const _0x12f5ad=Array['from'](_0x4b05d0['getRanges']())['map'](_0x2b20d9=>_0xd0daae['fromRange'](_0x2b20d9));_0xeb9303['setSelection'](_0xe779b6),_0x42b7f2['commands']['get'](_0x3dc5c5)['refresh'](),_0x441f77['push']({'forceDefaultExecution':!0x0}),_0x42b7f2['execute'](_0x3dc5c5,..._0x441f77);const _0x53f8f7=_0x12f5ad['filter'](_0x36f94e=>'$graveyard'!=_0x36f94e['root']['rootName']);_0x53f8f7['length']>0x0&&_0xeb9303['setSelection'](_0x53f8f7);for(const _0xc5a60 of _0x12f5ad)_0xc5a60['detach']();});};}['_getCoordsForCells'](_0x3042ba){const _0x12c75f=this['editor']['plugins']['get']('TableUtils');let _0x4b0d8f=Number['MAX_SAFE_INTEGER'],_0x49a8a7=Number['MIN_SAFE_INTEGER'],_0x5680a6=Number['MAX_SAFE_INTEGER'],_0x493aff=Number['MIN_SAFE_INTEGER'];for(const _0x118485 of _0x3042ba){if('$graveyard'==_0x118485['root']['rootName'])continue;const {row:_0x40d9dd,column:_0x26bb73}=_0x12c75f['getCellLocation'](_0x118485),_0x4645ff=_0x118485['hasAttribute']('rowspan')?_0x118485['getAttribute']('rowspan')-0x1:0x0,_0x3d38a1=_0x118485['hasAttribute']('colspan')?_0x118485['getAttribute']('colspan')-0x1:0x0;_0x4b0d8f=_0x40d9dd<_0x4b0d8f?_0x40d9dd:_0x4b0d8f,_0x49a8a7=_0x40d9dd+_0x4645ff>_0x49a8a7?_0x40d9dd+_0x4645ff:_0x49a8a7,_0x5680a6=_0x26bb73<_0x5680a6?_0x26bb73:_0x5680a6,_0x493aff=_0x26bb73+_0x3d38a1>_0x493aff?_0x26bb73+_0x3d38a1:_0x493aff;}return{'minRow':_0x4b0d8f,'maxRow':_0x49a8a7,'minColumn':_0x5680a6,'maxColumn':_0x493aff};}['_setupColumnsRowsFixing'](){const _0x2445d5=this['editor'],_0x3389eb=_0x2445d5['plugins']['get']('TrackChangesEditing'),_0x4ffe78=_0x2445d5['plugins']['get']('TableUtils');_0x2445d5['model']['document']['on']('change:data',()=>{const _0x43c0c2=Array['from'](_0x2445d5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x14f90d,data:_0x1f1852}of _0x43c0c2){const {group:_0x38d43f,id:_0x591b62,subType:_0x451d23}=_0x3389eb['_splitMarkerName'](_0x14f90d);if('suggestion'!=_0x38d43f)continue;if(null!=_0x1f1852['oldRange'])continue;const _0x1d0a53=_0x3389eb['getSuggestion'](_0x591b62);this['_tablePostFixingSubtypes']['includes'](_0x451d23)&&this['_tableSuggestions']['add'](_0x1d0a53);}},{'priority':'low'});const _0x5139c5=(_0x1b6dcb,_0x3f54a8)=>{let _0x72573c=!0x1;const _0x1fc177=_0x3f54a8['createRangeOn'](_0x1b6dcb),_0x18b8a8=_0x1b6dcb['findAncestor']('table'),_0x2149a1=_0x4ffe78['getCellLocation'](_0x1b6dcb);for(const _0x46f7f2 of this['_tableSuggestions']){const _0x44fbe7=_0x46f7f2['subType'],_0x358fba=_0x44fbe7['startsWith']('tablePaste'),_0x3e60d8=_0x44fbe7['substr'](_0x358fba?0xa:0x5),_0x1d7e40=_0x3e60d8['toLowerCase'](),_0x1d8fff=_0x1d7e40['substr'](0x0,0x3)+'span',_0x1203eb='min'+_0x3e60d8,_0x159804='max'+_0x3e60d8;if(!_0x46f7f2['isInContent'])continue;if(_0x18b8a8!=_0x46f7f2['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x46f7f2['isIntersectingWithRange'](_0x1fc177))continue;const _0x5dcec8=_0x1b6dcb['hasAttribute'](_0x1d8fff)?_0x1b6dcb['getAttribute'](_0x1d8fff)-0x1:0x0,_0x42c90a=this['_getSuggestionCoords'](_0x46f7f2),_0xf43e57=_0x42c90a[_0x1203eb],_0x38b7a2=_0x42c90a[_0x159804];_0xf43e57<=_0x2149a1[_0x1d7e40]&&_0x2149a1[_0x1d7e40]+_0x5dcec8<=_0x38b7a2&&(_0x46f7f2['addRange'](_0x1fc177),_0x72573c=!0x0);}return _0x72573c;};_0x2445d5['model']['document']['registerPostFixer'](_0x9b93db=>{let _0x1476f1=!0x1;for(const _0x42a90a of _0x2445d5['model']['document']['differ']['getChanges']())if('insert'==_0x42a90a['type']){if('tableRow'==_0x42a90a['name']){for(const _0x8fa492 of _0x42a90a['position']['nodeAfter']['getChildren']())_0x1476f1=_0x1476f1||_0x5139c5(_0x8fa492,_0x9b93db);}else'tableCell'==_0x42a90a['name']&&(_0x1476f1=_0x1476f1||_0x5139c5(_0x42a90a['position']['nodeAfter'],_0x9b93db));}return _0x1476f1;});}['_getSuggestionCoords'](_0x518ecf){return this['_getCoordsForCells'](_0x518ecf['getRanges']()['map'](_0x50d34a=>_0x50d34a['start']['nodeAfter']));}}function xe(_0x1c9588){return Array['from'](new Set(_0x1c9588)['values']());}class Nt extends _0x6abf95{static get['requires'](){return[Ct];}['afterInit'](){const _0x48608d=this['editor'],_0x542aab=_0x48608d['model']['document']['selection'],_0x578da0=_0x48608d['locale'];if(!_0x48608d['plugins']['has']('TableEditing'))return;const _0xa09c97=_0x48608d['plugins']['get']('TrackChangesEditing'),_0x1aaae5=_0x48608d['plugins']['get']('TableUtils'),_0x4246e=_0x48608d['plugins']['get'](Ct);_0x4246e['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xa09c97['enableCommand']('mergeTableCells',()=>{const _0x25f4c5=_0x1aaae5['getSelectionAffectedTableCells'](_0x48608d['model']['document']['selection']);_0x48608d['model']['change'](()=>{_0xa09c97['markMultiRangeBlockFormat'](_0x25f4c5,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x48608d['commands']['get']('mergeTableCells')['on']('execute',(_0x4f09e9,_0x3c2e0c)=>{_0x48608d['commands']['get']('trackChanges')['value']&&(_0x3c2e0c['length']>0x0&&_0x3c2e0c[_0x3c2e0c['length']-0x1]&&_0x3c2e0c[_0x3c2e0c['length']-0x1]['forceDefaultExecution']||_0xa09c97['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4f09e9['stop']());},{'priority':'highest'});for(const _0x4559d9 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1b2a32=_0x48608d['commands']['get'](_0x4559d9);_0xa09c97['enableCommand'](_0x4559d9,()=>{const _0x2a085a=_0x48608d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4cca4e=>_0x4cca4e['is']('element','tableCell')),_0x256162=_0x1b2a32['value'];_0x48608d['model']['change'](()=>{_0xa09c97['markMultiRangeBlockFormat']([_0x2a085a,_0x256162],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1bdee5 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x30cca1=_0x48608d['commands']['get'](_0x1bdee5);_0xa09c97['enableCommand'](_0x1bdee5,()=>{const _0x10efd3=_0x1aaae5['getSelectionAffectedTableCells'](_0x48608d['model']['document']['selection'])[0x0],_0x4a2add=_0x10efd3['findAncestor']('table'),{column:_0x5b04c2,row:_0x3fe503}=_0x1aaae5['getCellLocation'](_0x10efd3);let _0x11c1fe=[];if('horizontally'==_0x30cca1['direction']){const _0x217d06=_0x1aaae5['createTableWalker'](_0x4a2add,{'startRow':_0x3fe503,'endRow':_0x3fe503,'includeAllSlots':!0x0});_0x11c1fe=Array['from'](_0x217d06)['map'](_0x16f101=>_0x16f101['cell']);}else{const _0x56c6a6=_0x1aaae5['createTableWalker'](_0x4a2add,{'column':_0x5b04c2,'includeAllSlots':!0x0});_0x11c1fe=Array['from'](_0x56c6a6)['map'](_0x51a0e8=>_0x51a0e8['cell']);}_0x48608d['model']['change'](_0x2570e9=>{_0xa09c97['markBlockFormat'](_0x2570e9['createRangeOn'](_0x10efd3),{'commandName':_0x1bdee5,'commandParams':[]},_0x11c1fe,_0x1bdee5);});});}_0xa09c97['descriptionFactory']['registerDescriptionCallback'](_0x2db136=>{if('formatBlock'!=_0x2db136['type']&&'formatInline'!=_0x2db136['type'])return;const {data:_0x1f470f}=_0x2db136;return _0x1f470f&&'mergeTableCells'==_0x1f470f['commandName']?{'type':'format','content':c(_0x578da0,'*Merge\x20cells*')}:void 0x0;}),_0xa09c97['descriptionFactory']['registerDescriptionCallback'](_0x57c8f4=>{if('formatBlock'!=_0x57c8f4['type']&&'formatInline'!=_0x57c8f4['type'])return;const {data:_0x48fc67}=_0x57c8f4;return _0x48fc67?'splitTableCellVertically'==_0x48fc67['commandName']?{'type':'format','content':c(_0x578da0,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x48fc67['commandName']?{'type':'format','content':c(_0x578da0,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2428d1=_0x4246e['_acceptFormatSuggestionCallbackFactory']();for(const _0x48084d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xa09c97['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x48084d,'accept',_0x2428d1);for(const _0x468c2a of['splitTableCellVertically','splitTableCellHorizontally'])_0xa09c97['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x468c2a,'accept',_0x2428d1);_0xa09c97['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0xe58283=>{_0x48608d['model']['change'](_0x4891da=>{const _0x38da11=Array['from'](_0x542aab['getRanges']())['map'](_0x2591f5=>_0xd0daae['fromRange'](_0x2591f5));_0x4891da['setSelection'](_0xe58283),_0x48608d['commands']['get']('mergeTableCells')['refresh'](),_0x48608d['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x33690e=_0x38da11['filter'](_0xa7bef=>'$graveyard'!=_0xa7bef['root']['rootName']);_0x33690e['length']>0x0&&_0x4891da['setSelection'](_0x33690e);for(const _0x214c67 of _0x38da11)_0x214c67['detach']();});});for(const _0x310a55 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3946ae=_0x48608d['commands']['get'](_0x310a55);_0x3946ae['on']('set:isEnabled',(_0x5e5abd,_0x3d1308,_0x2ecbe6)=>{if(_0x2ecbe6){const _0x1a5749=_0x48608d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x35e8d0=>_0x35e8d0['is']('element','tableCell'));this['_areMergableCells'](_0x3946ae['value'],_0x1a5749)||(_0x5e5abd['return']=!0x1,_0x5e5abd['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x48658f=this['editor']['commands']['get']('mergeTableCells'),_0x4c3a20=this['editor']['plugins']['get']('TableUtils');if(!_0x48658f['isEnabled'])return!0x1;const _0x230250=_0x4c3a20['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2eedc7 of _0x230250)for(const _0x24462e of _0x230250)if(_0x2eedc7!=_0x24462e&&!this['_areMergableCells'](_0x2eedc7,_0x24462e))return!0x1;return!0x0;}['_areMergableCells'](_0x55a50f,_0x3f9a01){const _0x16cf50=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4e1842=this['editor']['model']['createRangeOn'](_0x55a50f),_0xf15160=this['editor']['model']['createRangeOn'](_0x3f9a01),_0x55435e=new Set(),_0x124b14=new Set();for(const _0x38e5e9 of _0x16cf50['getSuggestions']())if(('insertion'==_0x38e5e9['type']||'deletion'==_0x38e5e9['type']||'mergeTableCells'==_0x38e5e9['subType'])&&_0x38e5e9['isInContent']){for(const _0x4d6a3f of _0x38e5e9['getRanges']())_0x4d6a3f['containsRange'](_0x4e1842,!0x0)&&_0x55435e['add'](_0x38e5e9['type']+':'+_0x38e5e9['author']['id']),_0x4d6a3f['containsRange'](_0xf15160,!0x0)&&_0x124b14['add'](_0x38e5e9['type']+':'+_0x38e5e9['author']['id']);}if(_0x55435e['size']!=_0x124b14['size'])return!0x1;for(const _0x47e722 of _0x55435e)if(!_0x124b14['has'](_0x47e722))return!0x1;return!0x0;}}class Dt extends _0x6abf95{static get['requires'](){return[Ct];}['afterInit'](){const _0x192fa8=this['editor'];if(!_0x192fa8['plugins']['has']('TableEditing'))return;const _0x4ef499=_0x192fa8['locale'],_0x468b75=_0x192fa8['plugins']['get']('TrackChangesEditing');_0x468b75['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x468b75['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x468b75['registerBlockAttribute']('headingRows'),_0x468b75['registerBlockAttribute']('headingColumns'),_0x468b75['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x4ef499,'FORMAT_HEADER_ROW')),_0x468b75['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x4ef499,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xb49d93=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3fca63=this['editor']['plugins']['get']('TableUtils'),_0x5edaf1=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x54e0d2({showActiveMarker:_0xaf99db=!0x0,setDataAttribute:_0x10c534=!0x0}={}){return(_0x544717,_0x299de1,_0x3dd2ad)=>{const {type:_0x2c4c6f,id:_0x21dac2}=_0xb49d93['_splitMarkerName'](_0x299de1['markerName']),_0x297393=_0xb49d93['getSuggestion'](_0x21dac2),_0x4d0ce0=_0x297393['data'];if('formatBlock'!=_0x297393['type']||!_0x4d0ce0||'setTableColumnHeader'!=_0x4d0ce0['commandName'])return;if(_0x299de1['item'])return void _0x544717['stop']();if(!_0x3dd2ad['consumable']['consume'](_0x299de1['markerRange'],_0x544717['name']))return;const _0xcc657f=_0x299de1['markerRange']['start']['nodeAfter'],_0x15ed4d=_0x299de1['markerRange']['end']['nodeBefore'],_0x526cf0=_0xcc657f['parent']['parent'],{column:_0x3e9012}=_0x3fca63['getCellLocation'](_0xcc657f),{column:_0x4559db}=_0x3fca63['getCellLocation'](_0x15ed4d);for(let _0x1234d4=_0x3e9012;_0x1234d4<=_0x4559db;_0x1234d4++){const _0x7cef42=_0x3fca63['createTableWalker'](_0x526cf0,{'column':_0x1234d4,'includeAllSlots':!0x1});for(const _0x4e6d86 of _0x7cef42){const _0x184025=_0x4e6d86['cell'],_0x376875=_0x3dd2ad['mapper']['toViewElement'](_0x184025);_0x3dd2ad['writer']['addClass']('ck-suggestion-marker-'+_0x2c4c6f,_0x376875),_0x10c534&&_0x3dd2ad['writer']['setAttribute']('data-suggestion',_0x21dac2,_0x376875),_0x3dd2ad['mapper']['bindElementToMarker'](_0x376875,_0x299de1['markerName']),_0xaf99db&&(_0xb49d93['activeMarkers']['includes'](_0x299de1['markerName'])?_0x3dd2ad['writer']['addClass']('ck-suggestion-marker--active',_0x376875):_0x3dd2ad['writer']['removeClass']('ck-suggestion-marker--active',_0x376875));}}};}_0xb49d93['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5edaf1),_0xb49d93['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5edaf1),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x54e0d2(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1d7acb,_0x2c3960,_0x17a663)=>{_0x17a663['options']['showSuggestionHighlights']&&_0x54e0d2({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1d7acb,_0x2c3960,_0x17a663);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x8486a6,_0x917375,_0x260645)=>{const {type:_0x457212,id:_0x3f3e35}=_0xb49d93['_splitMarkerName'](_0x917375['markerName']),_0x5b8835=_0xb49d93['getSuggestion'](_0x3f3e35),_0x58fd15=_0x5b8835['data'];if('formatBlock'!=_0x5b8835['type']||!_0x58fd15||'setTableColumnHeader'!=_0x58fd15['commandName'])return;const _0x14a239=_0x260645['mapper']['markerNameToElements'](_0x917375['markerName']);if(_0x14a239){for(const _0x39a7ce of _0x14a239)_0x260645['writer']['removeClass']('ck-suggestion-marker-'+_0x457212,_0x39a7ce),_0x260645['writer']['removeClass']('ck-suggestion-marker--active',_0x39a7ce),_0x260645['writer']['removeAttribute']('data-suggestion',_0x39a7ce),_0x260645['mapper']['unbindElementFromMarkerName'](_0x39a7ce,_0x917375['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fa86d=this['editor'],_0x2bfb6c=_0x4fa86d['locale'];function _0x6c76f4(_0x1d1038){return{'type':'format','content':c(_0x2bfb6c,'*Format:*\x20%0',_0x1d1038)};}_0x4fa86d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a4c51=>{if('formatBlock'!=_0x2a4c51['type'])return;const {data:_0x453260}=_0x2a4c51;if(_0x453260){if('setTableRowHeader'==_0x453260['commandName']){const _0x1b8155=_0x453260['commandParams'][0x0]['forceValue'];return _0x6c76f4(c(_0x2bfb6c,_0x1b8155?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x453260['commandName']){const _0x57a48f=_0x453260['commandParams'][0x0]['forceValue'];return _0x6c76f4(c(_0x2bfb6c,_0x57a48f?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x6abf95{['afterInit'](){const _0x1c9f9c=this['editor'],_0xfa9eff=_0x1c9f9c['locale'],_0xb792eb=_0x1c9f9c['plugins']['get']('TrackChangesEditing');function _0x2d7dfd(_0x1e32f6){return{'type':'format','content':''+c(_0xfa9eff,'*Set\x20table\x20type:*\x20%0',_0x1e32f6)};}_0x1c9f9c['plugins']['has']('TableLayout')&&(_0xb792eb['enableCommand']('insertTableLayout'),_0xb792eb['enableDefaultAttributesIntegration']('tableType'),_0xb792eb['registerBlockAttribute']('tableType'),_0xb792eb['descriptionFactory']['registerElementLabel'](_0x4ba4ea=>_0x4ba4ea['is']('element','table')&&'layout'===_0x4ba4ea['getAttribute']('tableType'),_0x4897cd=>c(_0xfa9eff,'ELEMENT_LAYOUT_TABLE',_0x4897cd)),_0xb792eb['descriptionFactory']['registerDescriptionCallback'](_0x855233=>{const {data:_0x3792d4}=_0x855233;if(_0x3792d4&&'tableType'==_0x3792d4['key'])switch(_0x3792d4['newValue']){case'layout':return _0x2d7dfd(c(_0xfa9eff,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x2d7dfd(c(_0xfa9eff,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x11d119=>[_0x11d119,null]));class $t extends _0x6abf95{static get['requires'](){return[Ct];}['afterInit'](){const _0x271b6c=this['editor'];if(!_0x271b6c['plugins']['has']('TableClipboard'))return;const _0x49ba7f=_0x271b6c['plugins']['get']('TrackChangesEditing'),_0x301ecc=_0x271b6c['plugins']['get']('TableUtils'),_0x50dcda=_0x271b6c['plugins']['get'](Ct),_0x117183=_0x271b6c['plugins']['get']('TableClipboard'),_0x1844a8=_0x271b6c['plugins']['get']('TableSelection'),_0x29ba70=_0x271b6c['plugins']['get'](_0x52a09d);_0x50dcda['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x271b6c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x271b6c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x34785b=null,_0x1ee8ea=!0x1;_0x29ba70['on']('contentInsertion',(_0x2004b6,_0x4adfb3)=>{_0x1ee8ea='paste'===_0x4adfb3['method'];}),_0x271b6c['model']['on']('insertContent',(_0x14bd65,_0x59964f)=>{if(!_0x1ee8ea&&null===_0x1844a8['getSelectedTableCells']())return;const [_0x1ae328,_0x1f2e26]=_0x59964f,_0x3f81e2=_0x59964f[_0x59964f['length']-0x1];_0x3f81e2&&_0x3f81e2['forceDefaultExecution']||_0x49ba7f['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5e5c13,_0xc55e9f,_0x21c96e,_0x1205a3,_0x16d2e7){if(_0xc55e9f&&!_0xc55e9f['is']('documentSelection'))return!0x1;const _0x5a8f4a=_0x16d2e7['getTableIfOnlyTableInContent'](_0x5e5c13,_0x21c96e);if(!_0x5a8f4a||!He(_0x5a8f4a,void 0x0,_0x1205a3))return!0x1;const _0x125798=_0x1205a3['getSelectionAffectedTableCells'](_0x21c96e['document']['selection']);if(!_0x125798['length'])return!0x1;const _0x41608c=_0x125798[0x0]['findAncestor']('table'),_0x230c66=_0x1205a3['getRowIndexes'](_0x125798),_0x1f094b=_0x1205a3['getColumnIndexes'](_0x125798),_0x3beb66={'startRow':_0x230c66['first'],'endRow':_0x230c66['last'],'startColumn':_0x1f094b['first'],'endColumn':_0x1f094b['last']};return 0x1==_0x125798['length']&&(_0x3beb66['endRow']+=_0x1205a3['getRows'](_0x5a8f4a)-0x1,_0x3beb66['endColumn']+=_0x1205a3['getColumns'](_0x5a8f4a)-0x1),He(_0x41608c,_0x3beb66,_0x1205a3);}(_0x1ae328,_0x1f2e26,_0x271b6c['model'],_0x301ecc,_0x117183)&&(_0x14bd65['stop'](),_0x34785b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x271b6c['model']['change'](()=>{_0x271b6c['model']['insertContent'](_0x59964f[0x0],_0x59964f[0x1],_0x59964f[0x2],{'forceDefaultExecution':!0x0});const _0x5e93b0=_0x5d446a(),{rowInsertionRanges:_0x524a98,columnInsertionRanges:_0x27670f,insertionRanges:_0x2cc435,deletionRanges:_0x109fa1,cells:_0x41d7f9}=_0x34785b;_0x524a98['length']&&_0x49ba7f['markMultiRangeInsertion'](_0x524a98,'tablePasteRow',{'tablePasteChainId':_0x5e93b0}),_0x27670f['length']&&_0x49ba7f['markMultiRangeInsertion'](_0x27670f,'tablePasteColumn',{'tablePasteChainId':_0x5e93b0}),_0x2cc435['length']&&(_0x49ba7f['markMultiRangeInsertion'](_0x2cc435,'tablePaste',{'tablePasteChainId':_0x5e93b0,'skipNestingCheck':!0x0}),_0x2cc435['forEach'](_0xa56ffa=>_0xa56ffa['detach']?.())),_0x109fa1['length']&&(_0x49ba7f['markMultiRangeDeletion'](_0x109fa1,'tablePaste',{'tablePasteChainId':_0x5e93b0,'skipNestingCheck':!0x0}),_0x109fa1['forEach'](_0xf3eab2=>_0xf3eab2['detach']?.()));const _0x314ec0=_0x49ba7f['markMultiRangeBlockFormat'](_0x41d7f9['map'](({element:_0x1dc3ac})=>_0x1dc3ac),{'formatGroupId':_0x5d446a()},[],'tablePasteCell',{'tablePasteChainId':_0x5e93b0});if(_0x314ec0){const _0x56230c=_0x314ec0['getMarkers'](),_0x498cba=[];for(const {element:_0x26b7be,attributes:_0x29e183}of _0x41d7f9){if(!_0x29e183)continue;const _0x3cdc62=_0x271b6c['model']['createRangeOn'](_0x26b7be),_0xeb50e5=_0x56230c['find'](_0x56285f=>_0x56285f['getRange']()['isEqual'](_0x3cdc62));_0xeb50e5&&_0x498cba['push']([_0xeb50e5['name'],_0x29e183]);}_0x498cba['length']&&_0x314ec0['setAttribute']('markerAttributes',Object['fromEntries'](_0x498cba));}_0x34785b=null;}));},{'priority':_0x23dcbe['high']+0xa}),_0x29ba70['on']('contentInsertion',()=>{_0x1ee8ea=!0x1;},{'priority':'lowest'}),_0x271b6c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x39267f,_0x4094e9)=>{const [_0x5e4b82,_0x5090e9,,_0x2e5416]=_0x4094e9;if(!_0x34785b)return;_0x39267f['stop']();const _0x1eaf8e=_0x5e4b82['cell'],_0x37ce4c=_0x5090e9,_0x125e2c=De(_0x1eaf8e),_0x1d5991=De(_0x37ce4c);_0x39267f['return']=_0x1eaf8e;let _0x4ec19c=null,_0x1b7028=null;if(_0x1d5991||_0x125e2c){if(_0x125e2c&&!_0x1d5991){_0x2e5416['remove'](_0x1eaf8e['getChild'](0x0));for(const _0x2069b3 of Array['from'](_0x37ce4c['getChildren']()))_0x2e5416['insert'](_0x2069b3,_0x1eaf8e,'end');const _0x3ecd2f=_0x34785b['rowInsertionIndexes']['includes'](_0x5e4b82['row']),_0x21f9ee=_0x34785b['columnInsertionIndexes']['includes'](_0x5e4b82['column']);_0x3ecd2f||_0x21f9ee||(_0x4ec19c=_0xd0daae['fromRange'](_0x2e5416['createRangeIn'](_0x1eaf8e)));}else _0x1d5991&&!_0x125e2c&&(_0x1b7028=_0x2e5416['createRangeIn'](_0x1eaf8e));}else{const _0x127ab5=_0x2e5416['createElement']('tableCellSuggestion'),_0x425664=_0x2e5416['createElement']('tableCellSuggestion');_0x2e5416['wrap'](_0x2e5416['createRangeIn'](_0x1eaf8e),_0x425664),_0x2e5416['insert'](_0x127ab5,_0x1eaf8e,0x0);for(const _0x32c3eb of Array['from'](_0x37ce4c['getChildren']()))_0x2e5416['insert'](_0x32c3eb,_0x127ab5,'end');_0x4ec19c=_0xd0daae['fromRange'](_0x2e5416['createRangeOn'](_0x127ab5)),_0x1b7028=_0xd0daae['fromRange'](_0x2e5416['createRangeOn'](_0x425664));}const _0x1d946b=Array['from'](_0x37ce4c['getAttributes']())['filter'](([_0x385031])=>Oe['includes'](_0x385031));_0x34785b['cells']['push']({'element':_0x1eaf8e,'attributes':_0x1d946b['length']?Object['fromEntries'](_0x1d946b):null}),_0x4ec19c&&_0x34785b['insertionRanges']['push'](_0x4ec19c),_0x1b7028&&_0x34785b['deletionRanges']['push'](_0x1b7028);},{'priority':'high'}),_0x301ecc['on']('insertColumns',(_0x49c48f,_0x55ea9b)=>{const [_0x2a9752,_0x1995ae={}]=_0x55ea9b;if(!_0x34785b)return;const _0x20e952=_0x1995ae['at']||0x0,_0x5887f2=_0x1995ae['columns']||0x1;_0x34785b['columnInsertionIndexes']=new Array(_0x5887f2)['fill'](_0x20e952)['map']((_0x56f959,_0x511afb)=>_0x56f959+_0x511afb);for(const {cell:_0x2798d8}of _0x301ecc['createTableWalker'](_0x2a9752,{'startColumn':_0x20e952,'endColumn':_0x20e952+_0x5887f2-0x1}))_0x34785b['columnInsertionRanges']['push'](_0x271b6c['model']['createRangeOn'](_0x2798d8));},{'priority':'low'}),_0x301ecc['on']('insertRows',(_0x1b6fe3,_0x57c26f)=>{const [_0x42ab48,_0xae07f0={}]=_0x57c26f;if(!_0x34785b)return;const _0x5da371=_0xae07f0['at']||0x0,_0x321008=_0xae07f0['rows']||0x1;_0x34785b['rowInsertionIndexes']=new Array(_0x321008)['fill'](_0x5da371)['map']((_0x3656dc,_0x221fe3)=>_0x3656dc+_0x221fe3);for(const {cell:_0x1efefa}of _0x301ecc['createTableWalker'](_0x42ab48,{'startRow':_0x5da371,'endRow':_0x5da371+_0x321008-0x1}))_0x34785b['rowInsertionRanges']['push'](_0x271b6c['model']['createRangeOn'](_0x1efefa));},{'priority':'low'}),_0x49ba7f['descriptionFactory']['registerDescriptionCallback'](_0x3c0f21=>{if(_0x3c0f21['subType']&&_0x3c0f21['subType']['startsWith']('tablePaste'))return _0x3c0f21['previous']?{}:{'type':'insertion','content':c(_0x271b6c['locale'],'*Replace\x20table\x20cells*')};});const _0x4c104c=()=>!0x1;for(const _0x2a2a4d of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x49ba7f['_suggestionFactory']['registerCustomCallback']('insertion',_0x2a2a4d,'join',_0x4c104c),_0x49ba7f['_suggestionFactory']['registerCustomCallback']('deletion',_0x2a2a4d,'join',_0x4c104c),_0x49ba7f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2a2a4d,'join',_0x4c104c);_0x49ba7f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4c104c),_0x49ba7f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x11d483,_0x487729,_0x2ff602)=>{const _0x572ea8=_0x11d483['map'](_0x1aa936=>_0x1aa936['getContainedElement']())['filter'](_0x40234e=>_0x40234e),_0x14f765=new Map(_0x572ea8['map'](_0x4050b5=>[_0x4050b5,null]));if(_0x34785b){for(const {element:_0x4a74bd,attributes:_0x222b6e}of _0x34785b['cells'])_0x222b6e&&_0x14f765['set'](_0x4a74bd,_0x222b6e);}else{if(_0x2ff602&&_0x2ff602['markerAttributes'])for(const [_0x281842,_0x49bae1]of Object['entries'](_0x2ff602['markerAttributes'])){const _0x10e7b0=_0x271b6c['model']['markers']['get'](_0x281842),_0x1dd402=_0x10e7b0?_0x10e7b0['getRange']()['getContainedElement']():null;_0x1dd402&&_0x14f765['set'](_0x1dd402,_0x49bae1);}}_0x271b6c['model']['change'](_0x7d276b=>{for(const [_0x28f066,_0x38de8b]of _0x14f765)_0x7d276b['setAttributes']({...Ue,..._0x38de8b},_0x28f066);});});const _0x55453a=(_0x2a249,_0x4913da)=>{_0x49ba7f['_suggestionFactory']['registerCustomCallback'](_0x2a249,'tablePaste',_0x4913da,(_0x72e9cf,_0x11052e,_0x2ce0c2)=>{_0x271b6c['model']['change'](_0x1ea092=>{const _0x5b35b2=[];for(const _0x186013 of _0x72e9cf){const _0x2ccdc7=_0x186013['start']['nodeAfter'];_0x2ccdc7['is']('element','tableCellSuggestion')&&_0x5b35b2['push'](_0x2ccdc7);}_0x49ba7f['_suggestionFactory']['getSuggestionCallback'](_0x2a249,null,_0x4913da)(_0x72e9cf,_0x11052e,_0x2ce0c2);for(const _0x40cfbb of _0x5b35b2)'$graveyard'!=_0x40cfbb['root']['rootName']&&_0x1ea092['unwrap'](_0x40cfbb);});});};_0x55453a('insertion','accept'),_0x55453a('insertion','discard'),_0x55453a('deletion','accept'),_0x55453a('deletion','discard'),_0x49ba7f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x12f308=>{const _0x240d62=_0x12f308['map'](_0x5e2c97=>_0x5e2c97['getContainedElement']()),_0xbe2586=_0x240d62[0x0]['findAncestor']('table'),{minRow:_0x55994e,maxRow:_0x11ad4d}=_0x50dcda['_getCoordsForCells'](_0x240d62);_0x301ecc['removeRows'](_0xbe2586,{'at':_0x55994e,'rows':_0x11ad4d-_0x55994e+0x1});}),_0x49ba7f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1d00aa=>{const _0x934e5e=_0x1d00aa['map'](_0x43a6d1=>_0x43a6d1['getContainedElement']()),_0x3294c4=_0x934e5e[0x0]['findAncestor']('table'),{minColumn:_0x4c6044,maxColumn:_0x80f23b}=_0x50dcda['_getCoordsForCells'](_0x934e5e);_0x301ecc['removeColumns'](_0x3294c4,{'at':_0x4c6044,'columns':_0x80f23b-_0x4c6044+0x1});});const _0x7bed6=(_0x105b7d,_0x3e16d0)=>{if(!_0x3e16d0['subType']||!_0x3e16d0['subType']['startsWith']('tablePaste'))return;const _0x1041b7=_0x3e16d0['attributes']['tablePasteChainId'],_0x1cd09e=_0x49ba7f['getSuggestions']()['filter'](_0x382513=>_0x382513['isInContent']&&_0x382513['attributes']&&_0x382513['attributes']['tablePasteChainId']==_0x1041b7);_0x1cd09e['length']&&_0x3e16d0['getAllAdjacentSuggestions']()['length']!=_0x1cd09e['length']&&_0x1cd09e['reduce']((_0x35a1a3,_0x1ea351)=>(_0x35a1a3['next']=_0x1ea351,_0x1ea351['previous']=_0x35a1a3,_0x1ea351));};function _0x4f1eb3(_0x570cc9,_0x2ffd20=!0x0){const {id:_0x52fe7d,authorId:_0x3c6519}=_0x49ba7f['_splitMarkerName'](_0x570cc9['markerName']),_0x2f34a5=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x13dcb3=_0x49ba7f['activeMarkers']['includes'](_0x570cc9['markerName']);return _0x13dcb3&&_0x2f34a5['push']('ck-suggestion-marker--active'),{'classes':_0x2f34a5,'attributes':{'data-suggestion':_0x52fe7d,'data-author-id':_0x3c6519},'priority':_0x13dcb3&&_0x2ffd20?0xbc2:0xbb8};}_0x49ba7f['on']('suggestionLoaded',_0x7bed6,{'priority':'high'}),_0x49ba7f['on']('suggestionUnloaded',_0x7bed6,{'priority':'high'}),_0x271b6c['model']['document']['registerPostFixer'](()=>{let _0x42d2bf=!0x1;const _0x419e7=Array['from'](_0x271b6c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x33fb2c,data:_0x596cb8}of _0x419e7){const {group:_0x2424b7,type:_0x29b23c,id:_0x4bfd54}=_0x49ba7f['_splitMarkerName'](_0x33fb2c);if('suggestion'!=_0x2424b7||'deletion'!=_0x29b23c||_0x596cb8['oldRange'])continue;if(!_0x49ba7f['hasSuggestion'](_0x4bfd54))continue;const _0x227c07=_0x49ba7f['getSuggestion'](_0x4bfd54)['getRanges'](),_0x45c171=_0x271b6c['plugins']['get']('Users')['me'];for(const _0x1f79dd of _0x49ba7f['getSuggestions']()){if(!_0x1f79dd['isInContent']||_0x1f79dd['author']!=_0x45c171)continue;if('formatBlock'!=_0x1f79dd['type']||'tablePasteCell'!=_0x1f79dd['subType'])continue;if(_0x1f79dd['getRanges']()['every'](_0x1508ea=>_0x227c07['some'](_0x72e675=>_0x72e675['containsRange'](_0x1508ea,!0x0)))){for(const _0x3aab2d of _0x1f79dd['getAllAdjacentSuggestions']())_0x3aab2d['isInContent']&&(_0x3aab2d['discard'](),_0x42d2bf=!0x0);}}}return _0x42d2bf;}),_0x271b6c['model']['document']['registerPostFixer'](_0x117cc8=>{const _0x4dd649=_0x271b6c['commands']['get']('redo');if(!_0x4dd649||!_0x4dd649['_createdBatches']['has'](_0x117cc8['batch']))return!0x1;let _0x3dc3db=!0x1;const _0x3d1b60=_0x271b6c['plugins']['get']('Users')['me'],_0x2bc5ed=_0x271b6c['model']['document']['differ']['getChanges'](),_0xaf7257=Array['from'](_0x271b6c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4fe687,data:_0x277238})=>{const {group:_0x53ef60,subType:_0x55e04d,authorId:_0x48e298}=_0x49ba7f['_splitMarkerName'](_0x4fe687);return'suggestion'==_0x53ef60&&'tablePaste'==_0x55e04d&&_0x48e298==_0x3d1b60['id']&&!_0x277238['oldRange'];});for(const _0x2dc429 of _0x2bc5ed){if('insert'!=_0x2dc429['type']||'tableCellSuggestion'!=_0x2dc429['name']||0x1!=_0x2dc429['length'])continue;const _0x43dee4=_0x117cc8['createRange'](_0x2dc429['position'],_0x2dc429['position']['getShiftedBy'](0x1));if(!_0xaf7257['find'](({data:_0x4fa3ec})=>_0x4fa3ec['newRange']['isEqual'](_0x43dee4))){for(const {name:_0x5ea80e,data:_0x251abb}of _0xaf7257)if(_0x43dee4['containsRange'](_0x251abb['newRange'])){_0x117cc8['updateMarker'](_0x5ea80e,{'range':_0x43dee4}),_0x3dc3db=!0x0;break;}}}return _0x3dc3db;}),_0x271b6c['model']['document']['registerPostFixer'](_0x35d9a5=>{let _0x295f20=!0x1;const _0x1351ae=_0x271b6c['plugins']['get']('Users')['me'],_0x59e7b5=_0x49ba7f['getSuggestions']()['filter'](_0x4b62d2=>_0x4b62d2['isInContent']&&_0x4b62d2['author']==_0x1351ae),_0x17b916=new Set(),_0x12ae85=new Set();for(const _0x32f094 of _0x59e7b5)if('tablePaste'==_0x32f094['subType'])for(const _0x398508 of _0x32f094['getMarkers']()){const _0x3222ff=_0x398508['getRange']()['getContainedElement']();if(_0x3222ff){if(_0x3222ff['is']('element','tableCellSuggestion')&&De(_0x3222ff)){_0x32f094['removeMarker'](_0x398508['name']),_0x17b916['add'](_0x3222ff),_0x295f20=!0x0;const _0x1cbe6e=_0x3222ff['nextSibling'],_0x26fe16=_0x3222ff['previousSibling'],_0x1264c3=_0x1cbe6e&&_0x1cbe6e['is']('element','tableCellSuggestion'),_0x3001da=_0x26fe16&&_0x26fe16['is']('element','tableCellSuggestion');_0x1264c3&&!_0x17b916['has'](_0x1cbe6e)&&_0x12ae85['add'](_0x1cbe6e),_0x3001da&&!_0x17b916['has'](_0x26fe16)&&_0x12ae85['add'](_0x26fe16);}else _0x3222ff['is']('element','paragraph')&&_0x3222ff['isEmpty']&&(_0x32f094['removeMarker'](_0x398508['name']),_0x295f20=!0x0);}}else{if('tablePasteCell'==_0x32f094['subType']){if(!_0x32f094['attributes']||!_0x32f094['attributes']['tablePasteChainId'])continue;const _0x11ddbf=_0x32f094['attributes']['markerAttributes'];if(_0x11ddbf&&Object['keys'](_0x11ddbf)['length'])continue;const _0x49abe7=_0x32f094['attributes']['tablePasteChainId'];let _0x2fae2e=!0x0,_0x5ab1bf=!0x0;for(const _0xf85df3 of _0x59e7b5)if(_0xf85df3['subType']&&_0xf85df3['subType']['startsWith']('tablePaste')){if(!_0xf85df3['attributes']['tablePasteChainId']){_0x5ab1bf=!0x1;break;}if(_0xf85df3['id']!=_0x32f094['id']&&_0xf85df3['attributes']['tablePasteChainId']==_0x49abe7){_0x2fae2e=!0x1;break;}}_0x5ab1bf&&_0x2fae2e&&(_0x32f094['removeMarkers'](),_0x295f20=!0x0);}}for(const _0x8c820c of _0x17b916)_0x35d9a5['remove'](_0x8c820c);for(const _0x2177f0 of _0x12ae85)_0x35d9a5['unwrap'](_0x2177f0);return _0x295f20;}),_0x271b6c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x41e901=>_0x4f1eb3(_0x41e901),'converterPriority':'high'}),_0x271b6c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5706f2,_0x197f96)=>_0x197f96['options']['showSuggestionHighlights']?_0x4f1eb3(_0x5706f2,!0x1):null,'converterPriority':'high'});const _0x57c811=_0x271b6c['editing']['view'];this['listenTo'](_0x57c811['document'],'clipboardOutput',(_0x43f636,_0x46ad2c)=>{const _0x9bdef2=[];for(const _0x40f4a9 of _0x57c811['createRangeIn'](_0x46ad2c['content'])['getItems']())_0x40f4a9['is']('element','suggestion-td')&&_0x9bdef2['push'](_0x40f4a9);_0x57c811['change'](_0xf0d766=>{for(const _0x2aefa7 of _0x9bdef2)_0xf0d766['move'](_0xf0d766['createRangeIn'](_0x2aefa7),_0xf0d766['createPositionBefore'](_0x2aefa7)),_0xf0d766['remove'](_0x2aefa7);});});}}function De(_0x241222){if(_0x241222['isEmpty'])return!0x0;const _0x2fb415=_0x241222['getChild'](0x0);return _0x2fb415['is']('element','paragraph')&&_0x2fb415['isEmpty'];}function He(_0x42c76b,_0xe1f37c={},_0x27194a){for(const {isAnchor:_0x3daba0,cellHeight:_0x150c6d,cellWidth:_0x18d1f2}of _0x27194a['createTableWalker'](_0x42c76b,{'includeAllSlots':!0x0,..._0xe1f37c}))if(!_0x3daba0||0x1!=_0x150c6d||0x1!=_0x18d1f2)return!0x1;return!0x0;}class Bt extends _0x6abf95{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xa29a4b=this['editor']['plugins']['get']('TrackChangesEditing');_0xa29a4b['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xa29a4b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xa29a4b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xa29a4b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xa29a4b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xa29a4b['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x16af2b,_0x49fff9){const _0xb07a4d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1421a8=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x25539f=_0x49fff9['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x303cb2=_0x1421a8['getColumnGroupElement'](_0x25539f);let _0x4f0b22=_0x303cb2?_0x1421a8['getTableColumnsWidths'](_0x303cb2):null,_0x2f7476=_0x25539f['getAttribute']('tableWidth')||null;const _0xfe960d=_0x49fff9['tableWidth']||_0x2f7476,_0x1a548b=_0x49fff9['columnWidths']||_0x4f0b22,_0x2d17ec=this['editor']['plugins']['get']('Users')['me'];for(const _0x57bf0d of _0xb07a4d['getSuggestions']()){const _0x2e268e=_0x57bf0d['getContainedElement']();if('resizeTable'===_0x57bf0d['subType']&&_0x2e268e===_0x25539f){_0x57bf0d['author']!==_0x2d17ec&&_0x57bf0d['discard']();const _0x3e8836=_0x57bf0d['data']['commandParams'];_0x2f7476=_0x3e8836[0x0]['tableWidth'],_0x4f0b22=_0x3e8836[0x0]['columnWidths'];break;}}_0x16af2b({'table':_0x25539f,'tableWidth':_0xfe960d,'columnWidths':_0x1a548b}),_0xb07a4d['markBlockFormat'](_0x25539f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2f7476,'columnWidths':_0x4f0b22}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xa9dcd8){if('formatBlock'!=_0xa9dcd8['type']&&'formatInline'!=_0xa9dcd8['type'])return;const {data:_0x2e482d}=_0xa9dcd8;if(_0x2e482d&&'resizeTable'===_0x2e482d['formatGroupId']){const _0x996c2e='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x996c2e)};}}}class xt extends _0x6abf95{['afterInit'](){const _0x5c68b2=this['editor'];_0x5c68b2['plugins']['has']('Template')&&_0x5c68b2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x6abf95{['afterInit'](){const _0x38cec7=this['editor'];if(!_0x38cec7['commands']['get']('insertTableOfContents'))return;_0x38cec7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1f3708=_0x38cec7['plugins']['get']('TrackChangesEditing'),_0x367f16=_0x38cec7['locale'];_0x1f3708['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4af6b3=>c(_0x367f16,'ELEMENT_TABLE_OF_CONTENTS',_0x4af6b3));}}class Rt extends _0x6abf95{['afterInit'](){const _0x528521=this['editor'];if(!_0x528521['plugins']['has']('Title'))return;const _0x4f9220=_0x528521['plugins']['get']('TrackChangesEditing');_0x4f9220['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x528521['locale'],'ELEMENT_TITLE')),_0x528521['model']['document']['registerPostFixer'](_0x9a992f=>{let _0xc85a4b=!0x1;const _0x50afb7=Array['from'](_0x528521['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x43ca3f,data:_0xaf3ba2}of _0x50afb7){const {group:_0x36e2ec}=_0x4f9220['_splitMarkerName'](_0x43ca3f);if('suggestion'!==_0x36e2ec||!_0xaf3ba2['newRange'])continue;const _0x9b9913=_0xaf3ba2['newRange'],_0x1d3430=_0x9b9913['end']['nodeBefore'];if(!_0x1d3430||!_0x1d3430['is']('element','title-content'))continue;if(!_0x9b9913['start']['isTouching'](_0x9b9913['end']))continue;const _0x221a54=_0x528521['model']['schema']['getNearestSelectionRange'](_0x9b9913['end'],'forward');if(_0x221a54&&_0x221a54['isCollapsed']){const _0x399e97=_0x9a992f['createRange'](_0x9b9913['start'],_0x221a54['start']);_0x399e97['isEqual'](_0x9b9913)||(_0x9a992f['updateMarker'](_0x43ca3f,{'range':_0x399e97}),_0xc85a4b=!0x0);}_0xc85a4b||(_0x9a992f['removeMarker'](_0x43ca3f),_0xc85a4b=!0x0);}return _0xc85a4b;});}}class Tt extends _0x6abf95{['afterInit'](){const _0x172990=this['editor'],_0x3c8c35=_0x172990['plugins']['get']('TrackChangesEditing');_0x172990['plugins']['has']('Uploadcare')&&(_0x3c8c35['enableCommand']('uploadcare'),_0x172990['plugins']['has']('UploadcareImageEdit')&&(_0x3c8c35['enableCommand']('uploadcareImageEdit'),_0x3c8c35['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3c8c35['registerBlockAttribute']('uploadcareImageId'),_0x3c8c35['descriptionFactory']['registerDescriptionCallback'](_0x1bec2e=>{if('attribute'!=_0x1bec2e['type'])return;const {data:_0x24f60b}=_0x1bec2e;return _0x24f60b&&'uploadcareImageId'==_0x24f60b['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x6abf95{['afterInit'](){const _0x1968b0=this['editor'],_0x45d3e2=_0x1968b0['plugins']['get']('TrackChangesEditing');_0x1968b0['plugins']['has']('UndoEditing')&&(_0x45d3e2['enableCommand']('undo'),_0x45d3e2['enableCommand']('redo'));}}class Ut extends _0x6abf95{static get['requires'](){return[Ct];}['afterInit'](){const _0x15919d=this['editor'];if(!_0x15919d['plugins']['has']('TableCaptionEditing'))return;_0x15919d['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x6abf95{['tableProperties'];['tableCellProperties'];constructor(_0x33c605){super(_0x33c605),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x3b0415=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1a5240 of this['tableProperties'])_0x3b0415['enableCommand'](_0x1a5240,(_0x41ce21,_0x7ddec9)=>{const _0x4d2bc2=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1a5240,[_0x4d2bc2],this['tableProperties'],'tableProperties',_0x41ce21,_0x7ddec9);});_0x3b0415['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3b0415['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3b0415['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x36f753,_0x1ae6e3)=>this['handleDiscardAction'](this['tableProperties'],_0x36f753,_0x1ae6e3)),_0x3b0415['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x30a646 of this['tableCellProperties'])_0x3b0415['enableCommand'](_0x30a646,(_0x15754b,_0xb3d22f)=>{const _0x410e1d=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x30a646,_0x410e1d,this['tableCellProperties'],'tableCellProperties',_0x15754b,_0xb3d22f);});_0x3b0415['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3b0415['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3b0415['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3f1524,_0x2c6847)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3f1524,_0x2c6847)),_0x3b0415['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3b0415['descriptionFactory']['registerDescriptionCallback'](_0x4c6eca=>this['handleSuggestionDescription'](_0x4c6eca));}['_handlePropertyChange'](_0x4b50e6,_0x45e694,_0x1fe631,_0x55807a,_0x52205f,_0x1f1a47){const _0x561929=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1f1a47['batch'],()=>{for(const _0x53865d of _0x45e694){if(this['_getSuggestion'](_0x53865d,_0x55807a))_0x52205f(_0x1f1a47);else{const _0x2fe1d5={};for(const _0x295ac8 of _0x1fe631){const _0x486c5e=_0x53865d['getAttribute'](_0x295ac8);void 0x0!==_0x486c5e&&(_0x2fe1d5[_0x295ac8]=_0x486c5e);}_0x52205f(_0x1f1a47),_0x561929['markBlockFormat'](_0x53865d,{'commandParams':[_0x2fe1d5]},[],_0x55807a);}}});}['handleDiscardAction'](_0xabe7aa,_0x274009,_0x34daba){const _0x45afe4=_0x274009[0x0]['start']['nodeAfter'],_0x1d5c3b=_0x34daba['commandParams'][0x0];this['editor']['model']['change'](_0x528617=>{for(const _0x45a73b of _0xabe7aa)void 0x0!==_0x1d5c3b[_0x45a73b]?_0x528617['setAttribute'](_0x45a73b,_0x1d5c3b[_0x45a73b],_0x45afe4):_0x528617['removeAttribute'](_0x45a73b,_0x45afe4);});}['handleSuggestionDescription'](_0x58f101){if(_0x58f101['data'])switch(_0x58f101['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x1c0404,_0x4a6288){const _0x527e33=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5b20fa of _0x527e33['getSuggestions']({'skipNotAttached':!0x0})){const _0x5c7f0a=_0x5b20fa['getContainedElement']();if(_0x5b20fa['subType']===_0x4a6288&&_0x5c7f0a===_0x1c0404)return _0x5b20fa;}return null;}}const u='$elementName';class p extends _0x6abf95{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x50e121,_0x55f448,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,it,et,nt,st,ot,rt,ct,at,ut,ft,ht,gt,Q,wt,lt,W,Se,mt,pt,kt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Ot,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2232de){super(_0x2232de),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x359081,_0x5d44a1,_0x5d57bc,_0x98ff06)=>{this['_model']['change'](()=>{for(const _0x39353d of[..._0x98ff06,..._0x5d57bc])this['_model']['markers']['has'](_0x39353d)&&_0x2232de['editing']['reconvertMarker'](_0x39353d);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x2232de['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x2232de['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2232de['config']['get']('trackChanges.trackFormatChanges'),_0x2232de['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2232de['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x2232de,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3a8eb7=this['editor'],_0x185ae6=(_0x2e6453,_0x40db14)=>{if('attribute'!=_0x2e6453)return'ck-suggestion-marker-'+_0x2e6453;const _0x107988=_0x40db14['split']('|')[0x0];return this['_isBlockAttribute'](_0x107988)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x3a8eb7['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4fe64f=>{const {id:_0x15f3ab,authorId:_0xf4ac87,type:_0x5cfb28,subType:_0x4a3476}=this['_splitMarkerName'](_0x4fe64f['markerName']),_0x223fa5=['ck-suggestion-marker',_0x185ae6(_0x5cfb28,_0x4a3476)];let _0x98d294=0xbb8;return this['activeMarkers']['includes'](_0x4fe64f['markerName'])&&(_0x223fa5['push']('ck-suggestion-marker--active'),_0x98d294=0xbc2),'deletion'==_0x5cfb28&&(_0x98d294+=0x5),{'classes':_0x223fa5,'attributes':{'data-suggestion':_0x15f3ab,'data-author-id':_0xf4ac87},'priority':_0x98d294};}}),_0x3a8eb7['conversion']['for']('dataDowncast')['add'](_0x2f9f1c=>{_0x2f9f1c['on']('addMarker:suggestion',(_0x483948,_0xfa5604,_0x556ea2)=>{if(!_0x556ea2['options']['showSuggestionHighlights'])return;const _0x5162b7=_0xfa5604['item'];if(!_0x5162b7)return;const _0x2d5da8=_0x556ea2['mapper']['toViewElement'](_0x5162b7);_0x3a8eb7['model']['schema']['isObject'](_0x5162b7)&&_0x2d5da8&&!_0x2d5da8['getCustomProperty']('widget')&&_0x2d5da8['is']('containerElement')&&_0xa6607b(_0x2d5da8,_0x556ea2['writer']);},{'priority':'high'});}),_0x3a8eb7['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x389211,_0x297bc3)=>{if(!_0x297bc3['options']['showSuggestionHighlights'])return null;const {id:_0x132026,authorId:_0x3c2fd3,type:_0x308bb5,subType:_0x39702b}=this['_splitMarkerName'](_0x389211['markerName']);return{'classes':['ck-suggestion-marker',_0x185ae6(_0x308bb5,_0x39702b)],'priority':0xbb8,'attributes':{'data-suggestion':_0x132026,'data-author-id':_0x3c2fd3}};}});const _0x5b83e3=({showActiveMarkers:_0x13e942=!0x0,isAttributeSuggestion:_0x33cc19=!0x1}={})=>(_0x2715e1,_0x464643,_0x22c50d)=>{if(!_0x464643['item'])return;const {id:_0x2fdeb6,authorId:_0x3ed75d}=this['_splitMarkerName'](_0x464643['markerName']);if(_0x33cc19){const _0x59bd93=this['_suggestions']['get'](_0x2fdeb6),_0x885bef=this['_getAttributeKey'](_0x59bd93);if(!this['_isBlockAttribute'](_0x885bef))return;}if(_0x464643['item']['is']('selection'))return void _0x22c50d['consumable']['consume'](_0x464643['item'],_0x2715e1['name']);const _0x325468=_0x22c50d['mapper']['toViewElement'](_0x464643['item']);if(_0x464643['item']['is']('element')&&_0x3a8eb7['model']['schema']['isBlock'](_0x464643['item'])&&!_0x325468['getCustomProperty']('addHighlight')){_0x22c50d['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x325468),_0x22c50d['writer']['setAttribute']('data-suggestion',_0x2fdeb6,_0x325468),_0x22c50d['writer']['setAttribute']('data-author-id',_0x3ed75d,_0x325468),_0x22c50d['mapper']['bindElementToMarker'](_0x325468,_0x464643['markerName']),_0x13e942&&(this['activeMarkers']['includes'](_0x464643['markerName'])?_0x22c50d['writer']['addClass']('ck-suggestion-marker--active',_0x325468):_0x22c50d['writer']['removeClass']('ck-suggestion-marker--active',_0x325468));for(const _0xdd8ed3 of _0x3a8eb7['model']['createRangeIn'](_0x464643['item'])['getItems']())_0x22c50d['consumable']['consume'](_0xdd8ed3,_0x2715e1['name']);_0x22c50d['consumable']['consume'](_0x464643['item'],_0x2715e1['name']);}};_0x3a8eb7['conversion']['for']('dataDowncast')['add'](_0x2682f7=>{_0x2682f7['on']('addMarker:suggestion:formatBlock',(_0x37049f,_0x40b570,_0x5cca0b)=>{_0x5cca0b['options']['showSuggestionHighlights']&&_0x5b83e3({'showActiveMarkers':!0x1})(_0x37049f,_0x40b570,_0x5cca0b);},{'priority':'highest'});}),_0x3a8eb7['conversion']['for']('dataDowncast')['add'](_0x3cd2e7=>{_0x3cd2e7['on']('addMarker:suggestion:attribute',(_0x1b59df,_0x3fc672,_0x39b71c)=>{_0x39b71c['options']['showSuggestionHighlights']&&_0x5b83e3({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1b59df,_0x3fc672,_0x39b71c);},{'priority':'highest'});}),_0x3a8eb7['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3ec96f,_0x485739)=>{if(_0x485739['options']['showSuggestionHighlights']){const {id:_0x108d46,authorId:_0x49e8f8}=this['_splitMarkerName'](_0x3ec96f);return _0x3ec96f['includes'](':split')||_0x3ec96f['includes'](':merge')?{'group':'suggestion','name':_0x3ec96f['substr'](0xb),'attributes':{'data-suggestion':_0x108d46,'data-author-id':_0x49e8f8}}:null;}return{'group':'suggestion','name':_0x3ec96f['substr'](0xb)};}}),_0x3a8eb7['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x52b2b2,{writer:_0x38ab44})=>{let _0x136bf0='suggestion:'+_0x52b2b2['getAttribute']('suggestion-type')+':'+_0x52b2b2['getAttribute']('id');return _0x52b2b2['getAttribute']('marker-count')&&(_0x136bf0+=':'+_0x52b2b2['getAttribute']('marker-count')),_0x38ab44['createElement']('$marker',{'data-name':_0x136bf0});}}),_0x3a8eb7['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3a8eb7['conversion']['for']('editingDowncast')['add'](_0x1c75fe=>{_0x1c75fe['on']('addMarker:suggestion:formatBlock',_0x5b83e3(),{'priority':'high'});}),_0x3a8eb7['conversion']['for']('editingDowncast')['add'](_0x11260d=>{_0x11260d['on']('addMarker:suggestion:attribute',_0x5b83e3({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x3a8eb7['conversion']['for']('editingDowncast')['add'](_0xfe75cb=>{_0xfe75cb['on']('removeMarker:suggestion:formatBlock',(_0x2c4859,_0x585fd4,_0x7a83c0)=>{const _0x27e80c=_0x7a83c0['mapper']['markerNameToElements'](_0x585fd4['markerName']);if(_0x27e80c){for(const _0x1a7404 of _0x27e80c)_0x1a7404['getCustomProperty']('addHighlight')||(_0x7a83c0['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1a7404),_0x7a83c0['writer']['removeAttribute']('data-suggestion',_0x1a7404),_0x7a83c0['writer']['removeAttribute']('data-author-id',_0x1a7404),_0x7a83c0['mapper']['unbindElementFromMarkerName'](_0x1a7404,_0x585fd4['markerName']));}},{'priority':'high'});}),_0x3a8eb7['conversion']['for']('editingDowncast')['add'](_0x5f2190=>{_0x5f2190['on']('removeMarker:suggestion:attribute',(_0x5c16a5,_0x2a0ae5,_0x1b7a6c)=>{const _0x48230c=_0x1b7a6c['mapper']['markerNameToElements'](_0x2a0ae5['markerName']);if(!_0x48230c)return;const {id:_0x56cdaa}=this['_splitMarkerName'](_0x2a0ae5['markerName']),_0x5893c7=this['_suggestions']['get'](_0x56cdaa),_0x45bf9d=this['_getAttributeKey'](_0x5893c7);if(this['_isBlockAttribute'](_0x45bf9d)){for(const _0x468351 of _0x48230c)_0x468351['getCustomProperty']('addHighlight')||(_0x1b7a6c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x468351),_0x1b7a6c['writer']['removeAttribute']('data-suggestion',_0x468351),_0x1b7a6c['writer']['removeAttribute']('data-author-id',_0x468351),_0x1b7a6c['mapper']['unbindElementFromMarkerName'](_0x468351,_0x2a0ae5['markerName']));}},{'priority':'high'});}),_0x3a8eb7['model']['document']['registerPostFixer'](_0x3e533b=>{let _0x8dd576=!0x1;const _0x62f2c8=Array['from'](_0x3a8eb7['model']['document']['differ']['getChangedMarkers']()),_0x50983c=new Set();for(const {name:_0x4696d3,data:_0xf50762}of _0x62f2c8){const {group:_0x528299,type:_0x4a4af1,subType:_0x267121,id:_0x58f607}=this['_splitMarkerName'](_0x4696d3);if('suggestion'!==_0x528299)continue;const _0x29f9d1=this['_suggestions']['get'](_0x58f607);if(null!=_0xf50762['newRange']){'formatInline'==_0x4a4af1&&(_0x8dd576=_0x8dd576||Jt(_0xf50762['newRange'],_0x4696d3,_0x3e533b,_0x3a8eb7['model']['schema']));const _0x2d8c0f='attribute'==_0x4a4af1&&this['_isBlockAttribute'](_0x267121['split']('|')[0x0]);if(_0xf50762['newRange']['isCollapsed']||'$graveyard'==_0xf50762['newRange']['root']['rootName']||'formatBlock'==_0x4a4af1&&!Ht(_0xf50762['newRange'])||_0x2d8c0f&&!Ht(_0xf50762['newRange'])||'deletion'==_0x4a4af1&&!(!Lt(_0x48cdc6=_0xf50762['newRange'])&&!function(_0x2652c5){return _0x2652c5['start']['parent']==_0x2652c5['end']['nodeBefore']&&_0x2652c5['start']['isAtEnd'];}(_0x48cdc6)))_0x3e533b['removeMarker'](_0x4696d3),_0x8dd576=!0x0;else{if(!_0x29f9d1||!_0x29f9d1['isInContent'])continue;if(_0xf50762['newRange']&&_0xf50762['oldRange']&&_0xf50762['newRange']['isEqual'](_0xf50762['oldRange']))continue;_0x50983c['add'](_0x29f9d1);}}}var _0x48cdc6;return _0x50983c['size']>0x0&&(_0x8dd576=!!this['_joinWithAdjacentSuggestions'](_0x50983c)||_0x8dd576),_0x8dd576;}),_0x3a8eb7['model']['document']['registerPostFixer'](_0x61d01a=>{let _0x32b928=!0x1;for(const _0xee78e2 of _0x3a8eb7['model']['document']['differ']['getChanges']())if('insert'==_0xee78e2['type'])for(const _0x2bca1f of this['_suggestions']['values']()){if(_0x2bca1f['isMultiRange']||!_0x2bca1f['isInContent'])continue;const _0x3ef3d4='formatBlock'==_0x2bca1f['type'],_0x1d7c4e=this['_getAttributeKey'](_0x2bca1f),_0xd4f550=_0x1d7c4e&&this['_isBlockAttribute'](_0x1d7c4e);if(!_0x3ef3d4&&!_0xd4f550)continue;const _0x389974=_0x2bca1f['getFirstRange']();if(_0x389974['start']['parent']!=_0x389974['end']['parent']&&!_0x389974['end']['isAtEnd']){const _0x5de399=_0x3a8eb7['model']['createPositionAt'](_0x389974['start']['nodeAfter'],'end'),_0x4b7f1a=_0x3a8eb7['model']['createRange'](_0x389974['start'],_0x5de399);_0x61d01a['updateMarker'](_0x2bca1f['getFirstMarker'](),{'range':_0x4b7f1a}),_0x32b928=!0x0;}}return _0x32b928;}),_0x3a8eb7['model']['document']['registerPostFixer'](_0x34e31a=>this['_processAttributeChanges'](_0x34e31a)),_0x3a8eb7['model']['document']['registerPostFixer'](_0x1fb132=>!_0x1fb132['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1fb132)),_0x3a8eb7['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3a8eb7['model']['document']['on']('change:data',(_0x2b819f,_0x12b589)=>{if(!_0x12b589['isLocal']||_0x12b589['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x343777=_0x3a8eb7['model']['document']['differ']['getChanges']();if(0x0==_0x343777['length'])return;const _0x2cfa6f=[],_0x4b2f3c=_0x343777['filter'](_0x51bcb2=>'attribute'==_0x51bcb2['type']),_0x3dcab3=_0x343777['filter'](_0xeb3bd9=>'insert'==_0xeb3bd9['type']&&'$text'!=_0xeb3bd9['name']);for(const _0x28403d of _0x4b2f3c)this['_isRegisteredAttribute'](_0x28403d['attributeKey'])&&_0x2cfa6f['push']({'key':_0x28403d['attributeKey'],'newValue':_0x28403d['attributeNewValue'],'oldValue':_0x28403d['attributeOldValue'],'range':qt(_0x28403d['range'],_0x3a8eb7['model'])});for(const _0x54a84e of _0x3dcab3){if('rename'!=_0x54a84e['action']&&'refresh'!=_0x54a84e['action'])continue;const _0x450c22=zt(_0x54a84e['position']['nodeAfter'],_0x3a8eb7['model']),_0x3ce473=_0x54a84e['before'];'rename'==_0x54a84e['action']&&_0x2cfa6f['push']({'key':u,'newValue':_0x54a84e['name'],'oldValue':_0x3ce473['name'],'range':_0x450c22});for(const [_0x46d01d,_0x14b978]of _0x3ce473['attributes']){if(!this['_isRegisteredAttribute'](_0x46d01d))continue;const _0x52c360=_0x54a84e['attributes']['get'](_0x46d01d);_0x14b978!==_0x52c360&&_0x2cfa6f['push']({'key':_0x46d01d,'newValue':_0x52c360,'oldValue':_0x14b978,'range':_0x450c22});}for(const [_0x228f18,_0x1b4648]of _0x54a84e['attributes'])this['_isRegisteredAttribute'](_0x228f18)&&(_0x3ce473['attributes']['has'](_0x228f18)||_0x2cfa6f['push']({'key':_0x228f18,'newValue':_0x1b4648,'oldValue':null,'range':_0x450c22}));}0x0!=_0x2cfa6f['length']&&_0x3a8eb7['model']['enqueueChange'](_0x12b589,_0x3c92f9=>{const _0x1b05e8=_0x5d446a();for(const {range:_0x26a64d,key:_0x217510,oldValue:_0x4749ee,newValue:_0x56272f}of _0x2cfa6f)this['markAttributeChange'](_0x26a64d,_0x217510,_0x4749ee,_0x56272f,{'groupId':_0x1b05e8});this['_reduceExistingSuggestions'](_0x3c92f9,_0x2cfa6f);});},{'priority':'lowest'}),_0x3a8eb7['model']['markers']['on']('update:suggestion',(_0x35dedf,_0x3128d8,_0x19afed)=>{if(null==_0x19afed){const {id:_0x22cccf}=this['_splitMarkerName'](_0x3128d8['name']),_0x43bba5=this['_suggestions']['get'](_0x22cccf);_0x43bba5&&_0x43bba5['addMarkerName'](_0x3128d8['name']);}}),_0x3a8eb7['model']['document']['on']('change:data',()=>{const _0x5a6fe7=Array['from'](_0x3a8eb7['model']['document']['differ']['getChangedMarkers']())['filter'](_0x57bb2a=>'suggestion'===this['_splitMarkerName'](_0x57bb2a['name'])['group']);if(0x0===_0x5a6fe7['length'])return;_0x5a6fe7['sort']((_0x4bc07d,_0x404fa4)=>{const _0x2d59ca=_0x4bc07d['data']['oldRange'],_0xd3767a=_0x404fa4['data']['oldRange'];return null===_0x2d59ca&&null===_0xd3767a?0x0:null===_0x2d59ca&&null!==_0xd3767a?-0x1:null!==_0x2d59ca&&null===_0xd3767a?0x1:_0x2d59ca['start']['isBefore'](_0xd3767a['start'])?-0x1:0x1;});const _0x3b7c16=new Set(),_0x5a64f1=new Set();for(const {name:_0x253fc3,data:_0xfa6305}of _0x5a6fe7){const {id:_0x48c110}=this['_splitMarkerName'](_0x253fc3);if(null===_0xfa6305['oldRange']){const _0x3e9a03=this['_handleNewSuggestionMarker'](_0x253fc3);_0x5a64f1['add'](_0x3e9a03);}else{const _0x343099=this['_suggestions']['get'](_0x48c110);null!==_0xfa6305['newRange']||_0x343099['isInContent']?(_0x3b7c16['add'](_0x343099['head']),_0x5a64f1['add'](_0x343099)):this['_removeSuggestion'](_0x343099);}}_0x5a64f1['size']>0x0&&this['_refreshSuggestionsChain'](_0x5a64f1);for(const _0x299472 of _0x3b7c16)this['fire']('suggestionChanged',_0x299472);}),_0x3a8eb7['model']['on']('applyOperation',(_0x1c8aa3,_0x47a68f)=>{const _0x22c750=_0x47a68f[0x0];if(!this['_suggestions']['size'])return;if(!_0x22c750['isDocumentOperation'])return;if(_0x22c750['batch']['isUndo']||!_0x22c750['batch']['isLocal'])return;let _0x475570,_0x19ad75;switch(_0x22c750['type']){case'insert':_0x475570=_0x3a8eb7['model']['createPositionAt'](_0x22c750['position']),_0x19ad75=_0x475570['getShiftedBy'](_0x22c750['howMany']);break;case'split':_0x475570=_0x3a8eb7['model']['createPositionAt'](_0x22c750['splitPosition']),_0x19ad75=_0x3a8eb7['model']['createPositionAt'](_0x22c750['moveTargetPosition']);break;case'move':_0x475570=_0x3a8eb7['model']['createPositionAt'](_0x22c750['targetPosition']),_0x19ad75=_0x475570['getShiftedBy'](_0x22c750['howMany']);break;default:return;}const _0x5e91f6=_0x3a8eb7['model']['createRange'](_0x475570,_0x19ad75);_0x3a8eb7['model']['change'](()=>{for(const {suggestion:_0x633ace,meta:_0x39a351}of this['_findSuggestions'](_0x5e91f6)){if(_0x633ace['isMultiRange'])continue;if('formatInline'==_0x633ace['type'])continue;const _0x906995=this['_getAttributeKey'](_0x633ace);if(_0x906995&&this['_isBlockAttribute'](_0x906995)&&'split'!=_0x22c750['type'])continue;const _0x419e2e=_0x633ace['data']&&_0x633ace['data']['multipleBlocks'];('formatBlock'!=_0x633ace['type']||'split'==_0x22c750['type']&&!_0x419e2e)&&(_0x39a351['containsRangeInObject']||'insertion'==_0x633ace['type']&&_0x39a351['isOwn']||_0x633ace['getFirstRange']()['containsRange'](_0x5e91f6)&&this['_breakSuggestionMarker'](_0x633ace,_0x475570,_0x19ad75));}});},{'priority':'lowest'}),_0x3a8eb7['model']['on']('deleteContent',(_0x498e13,_0x522724)=>{const _0x359ce6=_0x522724[0x0],_0x480a7c=_0x522724[0x1];if(_0x480a7c&&_0x480a7c['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x359ce6['isCollapsed'])return;const _0x5e269a=_0x3a8eb7['model']['schema'],{start:_0x1ff4b3,end:_0x5c4e4a}=_0x359ce6['getFirstRange'](),_0x416f00=_0x1ff4b3['nodeAfter']&&_0x5e269a['isLimit'](_0x1ff4b3['nodeAfter'])?null:_0x5e269a['getNearestSelectionRange'](_0x1ff4b3,'forward'),_0x2130ad=_0x5c4e4a['nodeBefore']&&_0x5e269a['isLimit'](_0x5c4e4a['nodeBefore'])?null:_0x5e269a['getNearestSelectionRange'](_0x5c4e4a,'backward'),_0x158ed8=_0x3a8eb7['model']['createRange'](_0x416f00?_0x416f00['start']:_0x1ff4b3,_0x2130ad?_0x2130ad['end']:_0x5c4e4a);_0x3a8eb7['model']['change'](_0x229ce5=>{this['markDeletion'](_0x158ed8);const _0x51f09f=_0x3a8eb7['model']['schema']['getNearestSelectionRange'](_0x158ed8['start']);_0x359ce6['is']('documentSelection')?_0x229ce5['setSelection'](_0x51f09f):_0x359ce6['setTo'](_0x51f09f);}),_0x498e13['stop']();},{'priority':_0x23dcbe['normal']+0xa}),_0x3a8eb7['model']['on']('insertContent',(_0x5f0a72,_0x325a77)=>{const _0x649eae=_0x325a77[_0x325a77['length']-0x1];_0x649eae&&_0x649eae['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3a8eb7['model']['change'](()=>{let _0x5f57ae=_0x3a8eb7['model']['insertContent'](_0x325a77[0x0],_0x325a77[0x1],_0x325a77[0x2],{'forceDefaultExecution':!0x0});if(!_0x5f57ae)return;_0x5f0a72['return']=_0x5f57ae['clone']();const _0x5bdbba=_0x5f57ae['end']['nodeBefore'],_0x30d368=_0x3a8eb7['model']['schema'];_0x5bdbba&&_0x30d368['isBlock'](_0x5bdbba)&&!_0x30d368['isObject'](_0x5bdbba)&&(_0x5f57ae=_0x3a8eb7['model']['createRange'](_0x5f57ae['start'],_0x3a8eb7['model']['createPositionAt'](_0x5bdbba,'end'))),this['markInsertion'](_0x5f57ae);}),_0x5f0a72['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x37e7fa=new x(_0x3a8eb7,this['_suggestions']);_0x3a8eb7['commands']['add']('acceptSuggestion',_0x37e7fa),this['enableCommand']('acceptSuggestion');const _0x151df4=new O(_0x3a8eb7,this['_suggestions']);_0x3a8eb7['commands']['add']('discardSuggestion',_0x151df4),this['enableCommand']('discardSuggestion'),_0x3a8eb7['commands']['add']('acceptAllSuggestions',new R(_0x3a8eb7,_0x37e7fa,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3a8eb7['commands']['add']('discardAllSuggestions',new R(_0x3a8eb7,_0x151df4,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3a8eb7['commands']['add']('acceptSelectedSuggestions',new E(_0x3a8eb7,_0x37e7fa,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3a8eb7['commands']['add']('discardSelectedSuggestions',new E(_0x3a8eb7,_0x151df4,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x10ada0=_0x3a8eb7['plugins']['get']('CommentsRepository');this['listenTo'](_0x10ada0,'addComment',(_0x1a3710,{threadId:_0x4c691e})=>{const _0x6f40e8=this['_suggestions']['get'](_0x4c691e);_0x6f40e8&&_0x6f40e8['commentThread']&&0x1===_0x6f40e8['commentThread']['length']&&this['_updateSuggestionData'](_0x4c691e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x10ada0,'removeComment',(_0x19d1b9,{threadId:_0x51cfa6})=>{const _0x1e081c=this['_suggestions']['get'](_0x51cfa6);_0x1e081c&&_0x1e081c['commentThread']&&!_0x1e081c['commentThread']['length']&&this['_updateSuggestionData'](_0x51cfa6,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x41917a){const _0x23dbbe=_0x4af112([0x59,0x4f,0x49,0x6c,0x6a,0x45,0x6b,0x4d,0x56,0x63,0x72,0x37,0x4b,0x6f,0x61,0x46,0x77,0x75,0x34,0x58,0x52,0x43,0x6e,0x6d,0x41,0x4c,0x4a,0x78,0x5a,0x48,0x31,0x76,0x73,0x36,0x64,0x67,0x74,0x55,0x32,0x68,0x50,0x42,0x7a,0x66,0x38,0x53,0x69,0x71,0x62,0x4e,0x54,0x79,0x39,0x47,0x70,0x65,0x35,0x51,0x33,0x30,0x57,0x44]),_0x265877=0x6bbef98e,_0x3d813f=0x6bb99e2e^_0x265877,_0x2be5a0=window[_0x4af112([0x44,0x61,0x74,0x65])][_0x4af112([0x6e,0x6f,0x77])](),_0x4a5703=_0x41917a[_0x4af112([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3187d3=new window[(_0x4af112([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x337585=>{_0x4a5703[_0x4af112([0x6f,0x6e,0x63,0x65])](_0x4af112([0x72,0x65,0x61,0x64,0x79]),_0x337585);}),_0x450999={[_0x4af112([0x6b,0x74,0x79])]:_0x4af112([0x45,0x43]),[_0x4af112([0x75,0x73,0x65])]:_0x4af112([0x73,0x69,0x67]),[_0x4af112([0x63,0x72,0x76])]:_0x4af112([0x50,0x2d,0x32,0x35,0x36]),[_0x4af112([0x78])]:_0x4af112([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x4af112([0x79])]:_0x4af112([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x4af112([0x61,0x6c,0x67])]:_0x4af112([0x45,0x53,0x32,0x35,0x36])},_0x525816=_0x4a5703[_0x4af112([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4af112([0x67,0x65,0x74])](_0x4af112([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4a140d(){let _0x11dcd1,_0x370529=null,_0x7efcb4=null;try{if(_0x525816==_0x4af112([0x47,0x50,0x4c]))return _0x4af112([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x11dcd1=_0x201adf(),!_0x11dcd1)return _0x4af112([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x11dcd1[_0x4af112([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x7efcb4=_0x234338(_0x11dcd1[_0x4af112([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x11dcd1[_0x4af112([0x6a,0x74,0x69])])),await _0x2577c7()?_0x2802a7()?_0x45c4a7()?_0x4af112([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3209e5()?(_0x11dcd1[_0x4af112([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4af112([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x370529=_0x27e3c5(_0x4af112([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x11dcd1[_0x4af112([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4af112([0x74,0x72,0x69,0x61,0x6c])&&(_0x370529=_0x27e3c5(_0x4af112([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1d9bca()):_0x4af112([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4af112([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4af112([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xc6295e){return _0x4af112([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x45c4a7(){const _0x3e0861=[_0x4af112([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4af112([0x74,0x72,0x69,0x61,0x6c])][_0x4af112([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11dcd1[_0x4af112([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2be5a0/0x3e8:0xe10*_0x3d813f;return _0x11dcd1[_0x4af112([0x65,0x78,0x70])]<_0x3e0861;}function _0x2802a7(){const _0x4f8801=_0x11dcd1[_0x4af112([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4f8801)return!0x1;if(_0x4f8801[_0x4af112([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4af112([0x2a])))return!0x0;if(_0x4f8801[_0x4af112([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4af112([0x54,0x43])))return!0x0;if(_0x4f8801[_0x4af112([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4af112([0x52,0x54,0x43]))){if(_0xb83857())return!0x0;if(_0x27353e()||_0x278f65())return!0x0;}return!0x1;}function _0x3209e5(){const _0x5d8aea=_0x11dcd1[_0x4af112([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5d8aea||0x0==_0x5d8aea[_0x4af112([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5c9eb3}=new URL(window[_0x4af112([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5d8aea[_0x4af112([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c9eb3))return!0x0;const _0x421453=_0x5c9eb3[_0x4af112([0x73,0x70,0x6c,0x69,0x74])](_0x4af112([0x2e]));return _0x5d8aea[_0x4af112([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x257af4=>_0x257af4[_0x4af112([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4af112([0x2a])))[_0x4af112([0x6d,0x61,0x70])](_0x32d612=>_0x32d612[_0x4af112([0x73,0x70,0x6c,0x69,0x74])](_0x4af112([0x2e])))[_0x4af112([0x73,0x6f,0x6d,0x65])](_0x2b8743=>_0x421453[_0x4af112([0x65,0x76,0x65,0x72,0x79])]((_0x13f094,_0x1484e3)=>_0x2b8743[_0x1484e3]===_0x13f094||_0x2b8743[_0x1484e3]===_0x4af112([0x2a])));}function _0x1d9bca(){return _0x370529&&_0x7efcb4?new window[(_0x4af112([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x15699b,_0x426565)=>{_0x370529[_0x4af112([0x74,0x68,0x65,0x6e])](_0x15699b,_0x426565),_0x7efcb4[_0x4af112([0x74,0x68,0x65,0x6e])](_0x204011=>{_0x204011!=_0x4af112([0x56,0x61,0x6c,0x69,0x64])&&_0x15699b(_0x204011);},_0x426565);}):_0x370529||_0x7efcb4||_0x4af112([0x56,0x61,0x6c,0x69,0x64]);}}function _0x234338(_0x2d3517,_0x2ac8c0){return new window[(_0x4af112([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4313ec=>{if(_0x30a340())return _0x4313ec(_0x4af112([0x56,0x61,0x6c,0x69,0x64]));_0x23fff6(),_0x4a5703[_0x4af112([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4af112([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x10cddd=!0x1;const _0x1e41af=_0x5d446a();function _0x2f3507(_0x35e497){return!!_0x35e497&&(typeof _0x35e497===_0x4af112([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x35e497===_0x4af112([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x35e497[_0x4af112([0x74,0x68,0x65,0x6e])]===_0x4af112([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x35e497[_0x4af112([0x63,0x61,0x74,0x63,0x68])]===_0x4af112([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xbfcd6e(_0xf3d880){_0x34d9c1(_0xf3d880)[_0x4af112([0x74,0x68,0x65,0x6e])](_0x4daebf=>{if(!_0x4daebf||_0x4daebf[_0x4af112([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4af112([0x6f,0x6b]))return _0x4af112([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x103582(_0x3944af(_0x1e41af+_0x2ac8c0))!=_0x4daebf[_0x4af112([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4af112([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4af112([0x56,0x61,0x6c,0x69,0x64]);})[_0x4af112([0x74,0x68,0x65,0x6e])](_0x2ecf7e=>(_0x29676c(),_0x2ecf7e),()=>{const _0xc13cec=_0x40a53e();return null==_0xc13cec?(_0x29676c(),_0x4af112([0x56,0x61,0x6c,0x69,0x64])):_0x4af112(_0x2be5a0-_0xc13cec>(0x4fb27d8e^_0x265877)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4af112([0x74,0x68,0x65,0x6e])](_0x4313ec)[_0x4af112([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4313ec(_0x4af112([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x165e5a=0x6b88170e^_0x265877;function _0x29676c(){const _0x6ae4b1=_0x4af112([0x6c,0x6c,0x63,0x74,0x2d])+_0x103582(_0x3944af(_0x2d3517)),_0x23f4b3=_0x515f94(_0x103582(window[_0x4af112([0x4d,0x61,0x74,0x68])][_0x4af112([0x63,0x65,0x69,0x6c])](_0x2be5a0/_0x165e5a)));window[_0x4af112([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4af112([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x6ae4b1,_0x23f4b3);}function _0x40a53e(){const _0x298e40=_0x4af112([0x6c,0x6c,0x63,0x74,0x2d])+_0x103582(_0x3944af(_0x2d3517)),_0x38bbdf=window[_0x4af112([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4af112([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x298e40);return _0x38bbdf?window[_0x4af112([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x515f94(_0x38bbdf),0x10)*_0x165e5a:null;}function _0x34d9c1(_0x3e4484){return new window[(_0x4af112([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x223e16,_0x38ef15)=>{_0x3e4484[_0x4af112([0x74,0x68,0x65,0x6e])](_0x223e16,_0x38ef15),window[_0x4af112([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x38ef15,0x6bbf2d4e^_0x265877);});}}_0x4a5703[_0x4af112([0x6f,0x6e])](_0x4af112([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x45fb8a,_0x416bea)=>{if(_0x416bea[0x0]!=_0x2d3517)return _0x4313ec(_0x4af112([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x416bea[0x1]={..._0x416bea[0x1],[_0x4af112([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1e41af};},{[_0x4af112([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4af112([0x68,0x69,0x67,0x68])}),_0x4a5703[_0x4af112([0x6f,0x6e])](_0x4af112([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2c3033=>{_0x2f3507(_0x2c3033[_0x4af112([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x10cddd=!0x0,_0xbfcd6e(_0x2c3033[_0x4af112([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4af112([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4af112([0x6c,0x6f,0x77])}),_0x3187d3[_0x4af112([0x74,0x68,0x65,0x6e])](()=>{_0x10cddd||_0x4313ec(_0x4af112([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x30a340(){return _0x4a5703[_0x4af112([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4af112([0x76,0x69,0x65,0x77])][_0x4af112([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4af112([0x61,0x75,0x74,0x6f]);}function _0x23fff6(){_0x4a5703[_0x4af112([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4af112([0x76,0x69,0x65,0x77])][_0x4af112([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4af112([0x61,0x75,0x74,0x6f]);}}function _0x27e3c5(_0x502e84){const _0x325ddd=[new window[(_0x4af112([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d696=>setTimeout(_0x3d696,0x6bb7c742^_0x265877)),_0x3187d3[_0x4af112([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4af112([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57146e=>{let _0x26ef37=0x0;_0x4a5703[_0x4af112([0x6d,0x6f,0x64,0x65,0x6c])][_0x4af112([0x6f,0x6e])](_0x4af112([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x138cf7,_0x55c20c)=>{_0x55c20c[0x0][_0x4af112([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x26ef37++,_0x26ef37==(0x6bbef876^_0x265877)&&(_0x57146e(),_0x138cf7[_0x4af112([0x6f,0x66,0x66])]());});}))];return window[_0x4af112([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4af112([0x72,0x61,0x63,0x65])](_0x325ddd)[_0x4af112([0x74,0x68,0x65,0x6e])](()=>_0x502e84);}async function _0x4afb14(){await _0x3187d3,_0x4a5703[_0x4af112([0x6d,0x6f,0x64,0x65,0x6c])][_0x4af112([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5a1d75,_0x4a5703[_0x4af112([0x6d,0x6f,0x64,0x65,0x6c])][_0x4af112([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5a1d75,_0x4a5703[_0x4af112([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4af112([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xb83857(){return _0x2479ff(_0x4af112([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x54dca1(_0x4af112([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4af112([0x73,0x74,0x61,0x74,0x65])]==_0x4af112([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x27353e(){return _0x2479ff(_0x4af112([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x278f65(){return _0x2479ff(_0x4af112([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2cfec3(_0x516311){const _0x1e9b79=_0x52492a();_0x4a5703[_0x1e9b79]=_0x4af112([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x516311,_0x516311!=_0x4af112([0x56,0x61,0x6c,0x69,0x64])&&_0x4afb14();}function _0x52492a(){const _0x417864=window[_0x4af112([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4af112([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4af112([0x6e,0x6f,0x77])]())[_0x4af112([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4af112([0x2e]),'');let _0x4deceb=_0x4af112([0x59]);for(let _0x2bde0a=0x0;_0x2bde0a<_0x417864[_0x4af112([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2bde0a+=0x2){let _0x1ab768=window[_0x4af112([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x417864[_0x4af112([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2bde0a,_0x2bde0a+0x2));_0x1ab768>=_0x23dbbe[_0x4af112([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1ab768-=_0x23dbbe[_0x4af112([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4deceb+=_0x23dbbe[_0x1ab768];}return _0x4deceb;}function _0x201adf(){const _0x389886=_0x525816[_0x4af112([0x73,0x70,0x6c,0x69,0x74])](_0x4af112([0x2e]));if(0x3!=_0x389886[_0x4af112([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x50a234(_0x389886[0x1]);function _0x50a234(_0x23f1bd){const _0x11b022=_0x51b606(_0x23f1bd);return _0x11b022&&_0x48146b()?_0x11b022:null;function _0x48146b(){const _0x832235=_0x11b022[_0x4af112([0x6a,0x74,0x69])],_0x1c59c8=window[_0x4af112([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x832235[_0x4af112([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x832235[_0x4af112([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1c71d4={..._0x11b022,[_0x4af112([0x6a,0x74,0x69])]:_0x832235[_0x4af112([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x832235[_0x4af112([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1c71d4[_0x4af112([0x76,0x63])],_0x3944af(_0x1c71d4)==_0x1c59c8;}}}async function _0x2577c7(){let _0x4e7971=!0x0;try{const _0x1e91d3=_0x525816[_0x4af112([0x73,0x70,0x6c,0x69,0x74])](_0x4af112([0x2e])),[_0x16da5b,_0x3a73c9,_0x3111f2]=_0x1e91d3;return _0x264ed3(_0x16da5b),await _0x44fda1(_0x16da5b,_0x3a73c9,_0x3111f2),_0x4e7971;}catch(_0x248ada){return!0x1;}function _0x264ed3(_0x54dead){const _0x111158=_0x51b606(_0x54dead);_0x111158&&_0x111158[_0x4af112([0x61,0x6c,0x67])]==_0x4af112([0x45,0x53,0x32,0x35,0x36])||(_0x4e7971=!0x1);}async function _0x44fda1(_0xd2132e,_0x4a511a,_0x40c4c3){const _0x5217dc=window[_0x4af112([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4af112([0x66,0x72,0x6f,0x6d])](_0x4344cf(_0x40c4c3),_0x4b9f0e=>_0x4b9f0e[_0x4af112([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x18883a=new window[(_0x4af112([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4af112([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xd2132e+_0x4af112([0x2e])+_0x4a511a),_0x5e1229=window[_0x4af112([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4af112([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5e1229)return;const _0x203696=await _0x5e1229[_0x4af112([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4af112([0x6a,0x77,0x6b]),_0x450999,{[_0x4af112([0x6e,0x61,0x6d,0x65])]:_0x4af112([0x45,0x43,0x44,0x53,0x41]),[_0x4af112([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4af112([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4af112([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5e1229[_0x4af112([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4af112([0x6e,0x61,0x6d,0x65])]:_0x4af112([0x45,0x43,0x44,0x53,0x41]),[_0x4af112([0x68,0x61,0x73,0x68])]:{[_0x4af112([0x6e,0x61,0x6d,0x65])]:_0x4af112([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x203696,_0x5217dc,_0x18883a)||(_0x4e7971=!0x1);}}function _0x51b606(_0x49baa2){return _0x49baa2[_0x4af112([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4af112([0x65,0x79]))?JSON[_0x4af112([0x70,0x61,0x72,0x73,0x65])](_0x4344cf(_0x49baa2)):null;}function _0x4344cf(_0x1b3234){return window[_0x4af112([0x61,0x74,0x6f,0x62])](_0x1b3234[_0x4af112([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4af112([0x2b]))[_0x4af112([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4af112([0x2f])));}function _0x3944af(_0x4dee4c){let _0x4b3850=0x1505;function _0x43da51(_0x24aaeb){for(let _0x349eff=0x0;_0x349eff<_0x24aaeb[_0x4af112([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x349eff++){const _0x3a3047=_0x24aaeb[_0x4af112([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x349eff);_0x4b3850=(_0x4b3850<<0x5)+_0x4b3850+_0x3a3047,_0x4b3850&=_0x4b3850;}}function _0x280f30(_0xd8b049){Array[_0x4af112([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xd8b049)?_0xd8b049[_0x4af112([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x280f30):_0xd8b049&&typeof _0xd8b049==_0x4af112([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4af112([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xd8b049)[_0x4af112([0x73,0x6f,0x72,0x74])]()[_0x4af112([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x37aadf,_0x29814a])=>{_0x43da51(_0x37aadf),_0x280f30(_0x29814a);}):_0x43da51(window[_0x4af112([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xd8b049));}return _0x280f30(_0x4dee4c),_0x4b3850>>>0x0;}function _0x103582(_0x5a3b57){return _0x5a3b57[_0x4af112([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4af112([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4af112([0x30]));}function _0x515f94(_0x4d9620){return _0x4d9620[_0x4af112([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4af112([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4af112([0x6a,0x6f,0x69,0x6e])]('');}function _0x2479ff(_0x4b4dc0){return _0x4a5703[_0x4af112([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4af112([0x68,0x61,0x73])](_0x4b4dc0);}function _0x54dca1(_0x3e9393){return _0x4a5703[_0x4af112([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4af112([0x67,0x65,0x74])](_0x3e9393);}function _0x5a1d75(){}function _0x4af112(_0xa2992){return _0xa2992['map'](_0x39adde=>String['fromCharCode'](_0x39adde))['join']('');}_0x2cfec3(await _0x4a140d());}(this);}set['adapter'](_0x3edc33){if(this['_adapter'])throw new _0x3d469d('track-changes-adapter-already-set',this);this['_adapter']=_0x3edc33;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x37c0b7=!0x1,toJSON:_0x275b1a=!0x1}={}){const _0x109d7e=[];for(const _0x10a901 of this['_suggestions']['values']())_0x37c0b7&&!_0x10a901['isInContent']||_0x109d7e['push'](_0x10a901);return _0x275b1a?_0x109d7e['map'](_0x2f9652=>_0x2f9652['toJSON']()):_0x109d7e;}['getSuggestion'](_0x7493af){const _0x2c49cc=this['_suggestions']['get'](_0x7493af);if(!_0x2c49cc)throw new _0x3d469d('track-changes-suggestion-not-found',this);return _0x2c49cc;}['hasSuggestion'](_0x3813ff){return this['_suggestions']['has'](_0x3813ff);}['addSuggestionData'](_0x506bee){const {authorId:_0x5db131,id:_0x161a7b,attributes:_0x51e08a}=_0x506bee,[_0x3ee4d8,_0x4addaf]=_0x506bee['type']['split'](':'),_0x26ebf7=this['_suggestions']['get'](_0x161a7b)||this['_createSuggestion'](_0x3ee4d8,_0x4addaf,_0x161a7b,_0x5db131,_0x51e08a);if(this['_addThreadToSuggestion'](_0x26ebf7),this['_checkSuggestionCorrectness'](_0x26ebf7,_0x3ee4d8,_0x4addaf||null,_0x5db131),_0x26ebf7['createdAt']=_0x506bee['createdAt'],_0x26ebf7['_isDataLoaded']=!0x0,_0x51e08a&&_0x51e08a['@external']){const _0x54ca01=_0x51e08a['@external'],_0x1f0a47=this['_getExternalAuthor'](_0x54ca01['authorName']);_0x26ebf7['authoredAt']=_0x54ca01['createdAt'],_0x26ebf7['author']=_0x1f0a47,_0x26ebf7['isExternal']=!0x0;}else _0x26ebf7['authoredAt']=_0x506bee['createdAt'];switch(_0x506bee['data']&&(_0x26ebf7['data']=_0x506bee['data']),_0x506bee['attributes']&&(_0x26ebf7['attributes']=_0x506bee['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x26ebf7['_saved']=!0x0),this['_suggestionState']['get'](_0x26ebf7)){case'notReady':this['_suggestionState']['set'](_0x26ebf7,'dataReady');break;case'markerReady':_0x26ebf7['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x26ebf7])),this['_refreshSuggestionsChain'](new Set([_0x26ebf7])),this['_suggestionState']['set'](_0x26ebf7,'ready'),this['fire']('suggestionLoaded',_0x26ebf7)):this['_suggestionState']['set'](_0x26ebf7,'removed');}return _0x26ebf7;}['acceptSuggestion'](_0x2d3600){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3f619a of _0x2d3600['getAllAdjacentSuggestions']())_0x3f619a['accept']();});});}['discardSuggestion'](_0x223113){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2ba3f0 of _0x223113['getAllAdjacentSuggestions']())_0x2ba3f0['discard']();});});}['enableCommand'](_0x5bd835,_0x10f5ff){const _0x4f962d=this['editor']['commands']['get'](_0x5bd835);if(!_0x4f962d)throw new _0x3d469d('track-changes-command-not-found',this,{'commandName':_0x5bd835});if(this['_enabledCommands']['has'](_0x4f962d))throw new _0x3d469d('track-changes-enable-command-twice',this,{'commandName':_0x5bd835});this['_enabledCommands']['add'](_0x4f962d),_0x10f5ff&&_0x4f962d['on']('execute',(_0x3d1295,_0x31f69e)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x31f69e['length']>0x0&&_0x31f69e[_0x31f69e['length']-0x1]&&_0x31f69e[_0x31f69e['length']-0x1]['forceDefaultExecution']?_0x31f69e['pop']():(_0x3d1295['return']=_0x10f5ff((..._0x263af3)=>_0x4f962d['execute'](..._0x263af3,{'forceDefaultExecution':!0x0}),..._0x31f69e),_0x3d1295['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x567f61){let _0x52c1d8,_0x29f4fe;const _0x4987c5=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x52c1d8=_0x567f61();}catch(_0x68bbc6){_0x29f4fe=_0x68bbc6;}return _0x4987c5||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x29f4fe&&_0x3d469d['rethrowUnexpectedError'](_0x29f4fe,this),_0x52c1d8;}['markInsertion'](_0x3e5f5a,_0xe79ad8=null,_0x3aa208={}){if(_0x3e5f5a['isCollapsed'])return null;const _0x2bdd73=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x3aa208['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1a1d42,meta:_0xb5fa87}of this['_findSuggestions'](_0x3e5f5a,'insertion'))if(_0xb5fa87['isOwn']){if(!_0xb5fa87['isNextTo']){if(_0xb5fa87['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x1a1d42,_0x3aa208))continue;return _0x1a1d42;}if(Xt(_0x1a1d42,_0x3aa208))return _0x1a1d42;this['_breakSuggestionMarker'](_0x1a1d42,_0x3e5f5a['start'],_0x3e5f5a['end']);break;}if(_0xe79ad8==_0x1a1d42['subType']&&Xt(_0x1a1d42,_0x3aa208)){const _0x193cdc=_0x1a1d42['getFirstRange']();return _0x193cdc['start']['isEqual'](_0x3e5f5a['end'])?this['_setSuggestionRange'](_0x1a1d42,this['_model']['createRange'](_0x3e5f5a['start'],_0x193cdc['end'])):this['_setSuggestionRange'](_0x1a1d42,this['_model']['createRange'](_0x193cdc['start'],_0x3e5f5a['end'])),_0x1a1d42;}}const _0x1f32c9=_0x5d446a(),_0x317e44=_0x2bdd73['id'],_0x4c9060=_0xe79ad8?'insertion:'+_0xe79ad8:'insertion',_0x1b57f1=this['_setSuggestionData']({'id':_0x1f32c9,'type':_0x4c9060,'createdAt':new Date(),'authorId':_0x317e44,'attributes':_0x3aa208});return this['_addSuggestionMarker'](_0x4c9060,_0x1f32c9,_0x317e44,_0x3e5f5a),_0x1b57f1;}['markMultiRangeInsertion'](_0x36d635,_0x58265e='multi',_0x2bc997={}){const _0x40d88d=this['editor']['plugins']['get']('Users')['me'],_0x5cb03a=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x58265e,'join');this['_trackingSessionId']&&(_0x2bc997['trackingSessionId']=this['_trackingSessionId']);for(const _0x199ef7 of this['getSuggestions']())if(_0x199ef7['author']['id']==_0x40d88d['id']&&'insertion'==_0x199ef7['type']&&_0x199ef7['subType']==_0x58265e&&Xt(_0x199ef7,_0x2bc997)&&(_0x5cb03a(_0x199ef7['getRanges'](),_0x36d635)||_0x5cb03a(_0x36d635,_0x199ef7['getRanges']()))){for(const _0x58feea of _0x36d635)_0x199ef7['addRange'](_0x58feea);return _0x199ef7;}for(const {suggestion:_0x4e7507,meta:_0x31786a}of this['_findSuggestions'](_0x36d635,'insertion')){if(!_0x31786a['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x31786a['containsRangeInObject'])continue;if(!Xt(_0x4e7507,_0x2bc997))continue;let _0x8e8d11=!0x0;for(const _0x41c874 of _0x4e7507['getRanges']())for(const _0x4c5472 of _0x36d635)if(!_0x41c874['containsRange'](_0x4c5472)){_0x8e8d11=!0x1;break;}if(_0x8e8d11)return _0x4e7507;}const _0xf92c76=_0x5d446a(),_0x5bf05c=_0x40d88d['id'],_0x153695='insertion:'+_0x58265e,_0xb0b95b=this['_setSuggestionData']({'id':_0xf92c76,'type':_0x153695,'createdAt':new Date(),'authorId':_0x5bf05c,'attributes':_0x2bc997});for(const _0x35908f of _0x36d635)this['_addSuggestionMarker'](_0x153695,_0xf92c76,_0x5bf05c,_0x35908f,o['getMultiRangeId']());return _0xb0b95b;}['markInlineFormat'](_0x1281f8,_0xfa1d74,_0x4178d7=null,_0x274b00={}){if(_0x4178d7=_0x4178d7||Kt(_0xfa1d74),_0x1281f8['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x274b00['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x36ec7f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4178d7,'accept');return this['forceDefaultExecution'](()=>_0x36ec7f([_0x1281f8],_0xfa1d74,_0x274b00)),null;}const _0x17c8b4=this['editor']['plugins']['get']('Users')['me'],_0x46994c=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x35da8c,meta:_0xc46197}of this['_findSuggestions'](_0x1281f8,'insertion'))_0xc46197['isOwn']&&!_0xc46197['isInsideObject']&&_0x46994c['push'](..._0x35da8c['getRanges']());}const _0x14fc08=function(_0x4ee7ea,_0x406ef2){const _0x35884b=[];for(const _0x10f3ab of _0x406ef2){const _0x8608a9=_0x4ee7ea['getIntersection'](_0x10f3ab);_0x8608a9&&_0x35884b['push'](_0x8608a9);}return _0x35884b;}(_0x1281f8,_0x46994c),_0x10c9e9=function(_0x8ffc27,_0x4d2a8a){const _0xbbb8bd=[_0x8ffc27];for(const _0x626dd4 of _0x4d2a8a){let _0x4c51b9=0x0;for(;_0x4c51b9<_0xbbb8bd['length'];){const _0x3aa39e=_0xbbb8bd[_0x4c51b9]['getDifference'](_0x626dd4);_0xbbb8bd['splice'](_0x4c51b9,0x1,..._0x3aa39e),_0x4c51b9+=_0x3aa39e['length'];}}return _0xbbb8bd;}(_0x1281f8,_0x46994c);_0x14fc08['length']&&this['_model']['change'](()=>{for(const _0xc7b9b4 of _0x14fc08){const _0x4afe20=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4178d7,'accept');this['forceDefaultExecution'](()=>_0x4afe20([_0xc7b9b4],_0xfa1d74,_0x274b00));}});for(const _0x15f973 of _0x10c9e9){let _0x477344=null,_0x21d83b=_0x15f973['start'],_0x2bbbe5=_0x15f973['end'];for(const {suggestion:_0xf925db,meta:_0xbecc28}of this['_findSuggestions'](_0x15f973,'formatInline')){if(!_0xbecc28['isOwn'])continue;if(_0xf925db['subType']!=_0x4178d7)continue;if(!Xt(_0xf925db,_0x274b00))continue;const _0x1f1c4a=_0xf925db['getFirstRange']();if(_0x1f1c4a['containsRange'](_0x15f973,!0x0))return null;_0x21d83b=_0x21d83b['isBefore'](_0x1f1c4a['start'])?_0x21d83b:_0x1f1c4a['start'],_0x2bbbe5=_0x2bbbe5['isAfter'](_0x1f1c4a['end'])?_0x2bbbe5:_0x1f1c4a['end'],_0x477344?_0x1f1c4a['start']['isBefore'](_0x477344['getFirstRange']()['start'])?(_0x477344['removeMarkers'](),_0x477344=_0xf925db):_0xf925db['removeMarkers']():_0x477344=_0xf925db;}const _0x4f8c18=this['_model']['createRange'](_0x21d83b,_0x2bbbe5);if(_0x477344)this['_setSuggestionRange'](_0x477344,_0x4f8c18);else{const _0x23d6d9=_0x5d446a(),_0x54112f=_0x17c8b4['id'];this['_setSuggestionData']({'id':_0x23d6d9,'type':'formatInline:'+_0x4178d7,'data':_0xfa1d74,'createdAt':new Date(),'authorId':_0x54112f,'attributes':_0x274b00}),this['_addSuggestionMarker']('formatInline:'+_0x4178d7,_0x23d6d9,_0x54112f,_0x4f8c18);}}return null;}['markBlockFormat'](_0x46da9a,_0x3223d8,_0x46c6cf=[],_0x5b6201=null,_0x671e94={}){_0x3223d8['formatGroupId']||(_0x3223d8['formatGroupId']=_0x3223d8['commandName']),_0x3223d8['multipleBlocks']=_0x46da9a['is']('range'),_0x5b6201=_0x5b6201||Kt(_0x3223d8);const _0x2296c4=_0x46c6cf['map'](_0x251e4a=>zt(_0x251e4a,this['_model'])),_0x2ba186=_0x46da9a['is']('range')?_0x46da9a:zt(_0x46da9a,this['_model']);if(this['_trackingSessionId']&&(_0x671e94['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x325bd0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5b6201,'accept');return this['forceDefaultExecution'](()=>_0x325bd0([_0x2ba186],_0x3223d8,_0x671e94)),null;}_0x2296c4['push'](_0x2ba186);let _0x55da1f=!0x0;for(const _0x5889ff of _0x2296c4)if(!this['_rangeIsInLocalUserInsertion'](_0x5889ff)){_0x55da1f=!0x1;break;}if(_0x55da1f&&'always'!==this['_trackFormatChanges']){const _0x3244ca=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5b6201,'accept');return this['forceDefaultExecution'](()=>_0x3244ca([_0x2ba186],_0x3223d8,_0x671e94)),null;}let _0x4896e2=null,_0x2f8f9f=_0x2ba186['start'],_0x1baa43=_0x2ba186['end'];for(const {suggestion:_0x251102,meta:_0x352dbc}of this['_findSuggestions'](_0x2ba186,'formatBlock')){if(!_0x352dbc['isOwn'])continue;if(_0x352dbc['isNextTo']||_0x352dbc['containsRangeInObject']||_0x352dbc['isInsideObject'])continue;if(_0x251102['data']['formatGroupId']!=_0x3223d8['formatGroupId'])continue;if(!Xt(_0x251102,_0x671e94))continue;const _0x4fc715=_0x251102['getFirstRange']();if(_0x251102['subType']==_0x5b6201){if(_0x4fc715['containsRange'](_0x2ba186,!0x0))return null;_0x2f8f9f=_0x2f8f9f['isBefore'](_0x4fc715['start'])?_0x2f8f9f:_0x4fc715['start'],_0x1baa43=_0x1baa43['isAfter'](_0x4fc715['end'])?_0x1baa43:_0x4fc715['end'],_0x4896e2?_0x4fc715['start']['isBefore'](_0x4896e2['getFirstRange']()['start'])?(_0x4896e2['removeMarkers'](),_0x4896e2=_0x251102):_0x251102['removeMarkers']():_0x4896e2=_0x251102;}else{const _0x5b274a=_0x2ba186['getIntersection'](_0x4fc715);this['_cutOutSuggestionMarker'](_0x251102,_0x5b274a);}}const _0x4c4ff2=this['editor']['plugins']['get']('Users')['me'],_0x19140c=_0x5d446a(),_0x2579f9=_0x4c4ff2['id'];if(_0x4896e2)return this['_setSuggestionRange'](_0x4896e2,this['_model']['createRange'](_0x2f8f9f,_0x1baa43)),_0x4896e2;{const _0x4bfc61=this['_setSuggestionData']({'id':_0x19140c,'type':'formatBlock:'+_0x5b6201,'data':_0x3223d8,'createdAt':new Date(),'authorId':_0x2579f9,'attributes':_0x671e94});return this['_addSuggestionMarker']('formatBlock:'+_0x5b6201,_0x19140c,_0x2579f9,this['_model']['createRange'](_0x2f8f9f,_0x1baa43)),_0x4bfc61;}}['markMultiRangeBlockFormat'](_0x407fa1,_0x182b3e,_0x401566=[],_0x343df9=null,_0x2b8452={}){_0x182b3e['formatGroupId']||(_0x182b3e['formatGroupId']=_0x182b3e['commandName']);const _0x21d695=_0x407fa1[0x0];_0x182b3e['multipleBlocks']=_0x21d695['is']('range'),_0x343df9=_0x343df9||Kt(_0x182b3e);const _0x518672=_0x401566['map'](_0x1be0f5=>zt(_0x1be0f5,this['_model'])),_0x35e732=_0x21d695['is']('range')?_0x407fa1:_0x407fa1['map'](_0xb3e9b0=>zt(_0xb3e9b0,this['_model']));if(this['_trackingSessionId']&&(_0x2b8452['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x32d953=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x343df9,'accept');return this['forceDefaultExecution'](()=>_0x32d953(_0x35e732,_0x182b3e,_0x2b8452)),null;}_0x518672['push'](..._0x35e732);let _0x2a56e7=!0x0;for(const _0x344986 of _0x518672)if(!this['_rangeIsInLocalUserInsertion'](_0x344986)){_0x2a56e7=!0x1;break;}if(_0x2a56e7&&'always'!==this['_trackFormatChanges']){const _0x1fa1bf=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x343df9,'accept');return this['forceDefaultExecution'](()=>_0x1fa1bf(_0x35e732,_0x182b3e,_0x2b8452)),null;}const _0x28cfbc=this['editor']['plugins']['get']('Users')['me'];for(const _0x3f85f4 of this['getSuggestions']()){if(_0x3f85f4['author']['id']!=_0x28cfbc['id'])continue;if('formatBlock'!=_0x3f85f4['type']||_0x3f85f4['data']['formatGroupId']!=_0x182b3e['formatGroupId'])continue;if(!Xt(_0x3f85f4,_0x2b8452))continue;const _0x35acbd=_0x3f85f4['subType']==_0x343df9;for(let _0x2e604e=0x0;_0x2e604e<_0x35e732['length'];_0x2e604e++){const _0x10507b=_0x35e732[_0x2e604e];for(const _0x250f18 of _0x3f85f4['getMarkers']()){const _0x5cb8ca=_0x250f18['getRange']();if(_0x10507b['isEqual'](_0x5cb8ca)){_0x35acbd?(_0x35e732['splice'](_0x2e604e,0x1),_0x2e604e--):_0x3f85f4['removeMarker'](_0x250f18['name']);break;}}}}if(0x0==_0x35e732['length'])return null;const _0x363ddd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x343df9,'join');for(const _0x321351 of this['getSuggestions']())if(_0x321351['author']['id']==_0x28cfbc['id']&&'formatBlock'==_0x321351['type']&&_0x321351['data']['formatGroupId']==_0x182b3e['formatGroupId']&&_0x321351['subType']==_0x343df9&&Xt(_0x321351,_0x2b8452)&&(_0x363ddd(_0x321351['getRanges'](),_0x35e732)||_0x363ddd(_0x35e732,_0x321351['getRanges']()))){for(const _0x5329e0 of _0x35e732)_0x321351['addRange'](_0x5329e0);return _0x321351;}const _0x182759=_0x5d446a(),_0x18b02b=_0x28cfbc['id'],_0x401dc7='formatBlock:'+_0x343df9,_0x4d1cc6=this['_setSuggestionData']({'id':_0x182759,'type':_0x401dc7,'data':_0x182b3e,'createdAt':new Date(),'authorId':_0x18b02b,'attributes':_0x2b8452});for(const _0xa033e of _0x35e732)this['_addSuggestionMarker'](_0x401dc7,_0x182759,_0x18b02b,_0xa033e,o['getMultiRangeId']());return _0x4d1cc6;}['markDeletion'](_0x5c58fd,_0x52b9f1=null,_0x281b3a={}){if(_0x5c58fd['isCollapsed'])return null;const _0x426120=this['editor']['plugins']['get']('Users')['me'],_0x56a084=new _0xd0daae(_0x5c58fd['start'],_0x5c58fd['end']);this['_trackingSessionId']&&(_0x281b3a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x39b11a,meta:_0x51b9a6}of this['_findSuggestions'](_0x56a084,'insertion'))if(_0x51b9a6['isOwn']&&!_0x51b9a6['isNextTo']){if(_0x39b11a['isMultiRange']){const _0x4c5a35=_0x39b11a['getRanges']()['filter'](_0xfa330f=>'$graveyard'!=_0xfa330f['root']['rootName']);_0x4c5a35['every'](_0x7347a3=>_0x56a084['containsRange'](_0x7347a3,!0x0))&&_0x39b11a['discard']();if(_0x4c5a35['some'](_0x58aa52=>_0x58aa52['containsRange'](_0x56a084,!0x0))){const _0x4436cf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x52b9f1,'accept');return this['forceDefaultExecution'](()=>_0x4436cf([_0x56a084],null,_0x281b3a)),null;}}else{const _0x5f8c03=_0x56a084['getIntersection'](_0x39b11a['getFirstRange']());null!==_0x5f8c03&&_0x39b11a['_onDiscard']([_0x5f8c03],null,_0x281b3a);}}if(_0x56a084['detach'](),_0x56a084['isCollapsed']||'$graveyard'==_0x56a084['root']['rootName'])return null;let _0x1668db=null,_0x17f031=_0x56a084['start'],_0x223d2e=_0x56a084['end'];const _0x52f166=this['_findSuggestions'](_0x56a084,'deletion');for(const {suggestion:_0x2f2a3d,meta:_0x4d96c7}of _0x52f166){const _0x1c8ac3=this['_model']['createRange'](_0x17f031,_0x223d2e);if(_0x4d96c7['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4d96c7['containsRangeInObject']&&!_0x4d96c7['isInsideObject'])){if(_0x2f2a3d['isMultiRange']){if(!Xt(_0x2f2a3d,_0x281b3a))continue;let _0xc1a14c=!0x0;for(const _0x45c4a8 of _0x2f2a3d['getRanges']()){if(_0x45c4a8['containsRange'](_0x1c8ac3,!0x0))return _0x2f2a3d;_0x1c8ac3['containsRange'](_0x45c4a8)||(_0xc1a14c=!0x1);}_0xc1a14c&&_0x2f2a3d['discard']();}else{const _0x324f2e=_0x2f2a3d['getFirstRange']();if(_0x324f2e['containsRange'](_0x1c8ac3,!0x0))return _0x2f2a3d;if(!Xt(_0x2f2a3d,_0x281b3a)){_0x1c8ac3['containsRange'](_0x324f2e)?_0x2f2a3d['removeMarkers']():_0x324f2e['containsPosition'](_0x17f031)?_0x17f031=_0x324f2e['end']:_0x324f2e['containsPosition'](_0x223d2e)&&(_0x223d2e=_0x324f2e['start']);continue;}_0x17f031=_0x17f031['isBefore'](_0x324f2e['start'])?_0x17f031:_0x324f2e['start'],_0x223d2e=_0x223d2e['isAfter'](_0x324f2e['end'])?_0x223d2e:_0x324f2e['end'],_0x281b3a=Object['assign']({},_0x2f2a3d['attributes']),_0x1668db?_0x324f2e['start']['isBefore'](_0x1668db['getFirstRange']()['start'])?(_0x1668db['removeMarkers'](),_0x1668db=_0x2f2a3d):_0x2f2a3d['removeMarkers']():_0x1668db=_0x2f2a3d;}}}if(_0x1668db)return this['_setSuggestionRange'](_0x1668db,this['_model']['createRange'](_0x17f031,_0x223d2e)),_0x1668db;{const _0x18e00b=_0x5d446a(),_0x582c53=this['_model']['createRange'](_0x17f031,_0x223d2e),_0x39312a=_0x426120['id'],_0x213275=_0x52b9f1?'deletion:'+_0x52b9f1:'deletion',_0x3d8bd9=this['_setSuggestionData']({'id':_0x18e00b,'type':_0x213275,'createdAt':new Date(),'authorId':_0x39312a,'attributes':_0x281b3a});return this['_addSuggestionMarker'](_0x213275,_0x18e00b,_0x39312a,_0x582c53),_0x3d8bd9;}}['markMultiRangeDeletion'](_0x1ca6fe,_0x5f01ce='multi',_0x4034c5={}){const _0x41fdaf=this['editor']['plugins']['get']('Users')['me'],_0x4f64d8=_0x1ca6fe['map'](_0x13384c=>new _0xd0daae(_0x13384c['start'],_0x13384c['end'])),_0x785b59=new Set();this['_trackingSessionId']&&(_0x4034c5['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xdb8eab,meta:_0x5ece64}of this['_findSuggestions'](_0x4f64d8,'insertion'))_0x5ece64['isOwn']&&!_0x5ece64['isNextTo']&&_0x785b59['add'](_0xdb8eab);for(const _0x5a9564 of _0x785b59)if(_0x5a9564['isMultiRange']){const _0x1aad9b=_0x5a9564['getRanges']();(!_0x5a9564['attributes']||!_0x5a9564['attributes']['skipNestingCheck'])&&(_0x1aad9b['every'](_0x581d4b=>_0x4f64d8['some'](_0x1f891d=>_0x1f891d['containsRange'](_0x581d4b,!0x0)))&&_0x5a9564['discard']());if(_0x4f64d8['every'](_0x301bc2=>_0x1aad9b['some'](_0x1f4e13=>_0x1f4e13['containsRange'](_0x301bc2,!0x0)))){const _0x2ffdca=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5f01ce,'accept');return this['forceDefaultExecution'](()=>_0x2ffdca(_0x1ca6fe,null,_0x4034c5)),null;}}else{const _0x36b871=_0x5a9564['getFirstRange']();_0x4f64d8['some'](_0x358c7c=>_0x358c7c['containsRange'](_0x36b871,!0x0))&&_0x5a9564['discard']();if(_0x4f64d8['every'](_0xc91a50=>_0x36b871['containsRange'](_0xc91a50,!0x0))){const _0x5432cb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5f01ce,'accept');return this['forceDefaultExecution'](()=>_0x5432cb(_0x4f64d8,null,_0x4034c5)),null;}}const _0x44763c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5f01ce,'join');let _0x17ea71=null;for(const _0x3828af of this['getSuggestions']())if(_0x3828af['author']['id']==_0x41fdaf['id']&&_0x3828af['isInContent']&&'deletion'==_0x3828af['type']&&_0x3828af['subType']==_0x5f01ce&&Xt(_0x3828af,_0x4034c5)&&(_0x44763c(_0x3828af['getRanges'](),_0x4f64d8)||_0x44763c(_0x4f64d8,_0x3828af['getRanges']()))){if(_0x17ea71){if(_0x3828af['commentThread']&&_0x3828af['commentThread']['length'])continue;for(const _0x1387bd of _0x3828af['getRanges']())_0x17ea71['isIntersectingWithRange'](_0x1387bd)||_0x17ea71['addRange'](_0x1387bd);_0x3828af['removeMarkers']();}else{_0x17ea71=_0x3828af;for(const _0x2c3d20 of _0x4f64d8)_0x3828af['isIntersectingWithRange'](_0x2c3d20)||_0x3828af['addRange'](_0x2c3d20);}}if(_0x17ea71)return _0x17ea71;_0x785b59['clear']();for(const {suggestion:_0x35dfa9,meta:_0x3ae324}of this['_findSuggestions'](_0x4f64d8,'deletion'))_0x3ae324['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3ae324['containsRangeInObject']&&!_0x3ae324['isInsideObject'])&&Xt(_0x35dfa9,_0x4034c5)&&_0x785b59['add'](_0x35dfa9);for(const _0x57b15c of _0x785b59){const _0x49cb25=_0x57b15c['getRanges']();if(!_0x4034c5||!_0x4034c5['skipNestingCheck']){if(_0x4f64d8['every'](_0x3c86a1=>_0x49cb25['some'](_0x16273b=>_0x16273b['containsRange'](_0x3c86a1,!0x0))))return _0x57b15c;}(!_0x57b15c['attributes']||!_0x57b15c['attributes']['skipNestingCheck'])&&(_0x49cb25['every'](_0x5db817=>_0x4f64d8['some'](_0x7e649d=>_0x7e649d['containsRange'](_0x5db817,!0x0)))&&_0x57b15c['discard']());}const _0x456386=_0x5d446a(),_0x291ca7=_0x41fdaf['id'],_0x1cb0ed='deletion:'+_0x5f01ce,_0x312afe=this['_setSuggestionData']({'id':_0x456386,'type':_0x1cb0ed,'createdAt':new Date(),'authorId':_0x291ca7,'attributes':_0x4034c5});for(const _0x3da476 of _0x4f64d8)_0x3da476['detach'](),_0x3da476['isCollapsed']||'$graveyard'==_0x3da476['root']['rootName']||this['_addSuggestionMarker'](_0x1cb0ed,_0x456386,_0x291ca7,_0x3da476,o['getMultiRangeId']());return _0x312afe;}['markAttributeChange'](_0x5e64a7,_0x41357b,_0x37c431,_0x88eee4,_0x507659){if(_0x5e64a7['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x27d67e=this['editor']['plugins']['get']('Users')['me']['id'],_0x998dd6=Array['from'](this['_suggestions']['values']())['filter'](_0x2bcadc=>'attribute'==_0x2bcadc['type']&&_0x2bcadc['data']['key']==_0x41357b&&_0x2bcadc['isIntersectingWithRange'](_0x5e64a7));if(this['_trackingSessionId']&&(_0x507659['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x8af986=this['_findSuggestions'](_0x5e64a7,'insertion')['filter'](({meta:_0x489745})=>_0x489745['isOwn']&&!_0x489745['isInsideObject']&&!_0x489745['isNextTo'])['map'](({suggestion:_0x717755})=>_0x717755);_0x998dd6['unshift'](..._0x8af986);}const _0x4e770=new Map([[_0x5e64a7,_0x37c431]]);for(const _0x5a1246 of _0x998dd6){const _0x9b0f55='attribute'==_0x5a1246['type']?_0x5a1246['data']['oldValue']:void 0x0,_0x1c4737=_0x5a1246['getFirstRange'](),_0x1c5f19=Array['from'](_0x4e770['keys']())['find'](_0x5e4313=>_0x5e4313['isIntersecting'](_0x1c4737));if(!_0x1c5f19)continue;const _0x27e575=_0x1c5f19['getDifference'](_0x1c4737);this['_isBlockAttribute'](_0x41357b)&&'insertion'==_0x5a1246['type']&&0x0!=_0x27e575['length']||(_0x4e770['delete'](_0x1c5f19),_0x27e575['forEach'](_0x213d6b=>{_0x4e770['set'](_0x213d6b,_0x37c431);}),'insertion'!=_0x5a1246['type']&&_0x9b0f55!=_0x88eee4&&_0x4e770['set'](_0x1c5f19['getIntersection'](_0x1c4737),_0x9b0f55));}const _0x2aed6e=[];for(const [_0x44d176,_0x347f32]of _0x4e770){const _0x557e21=_0x5d446a(),_0x1877aa={'key':_0x41357b,'oldValue':_0x347f32,'newValue':_0x88eee4};_0x41357b['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':_0x41357b});const _0x40fc69=('attribute:'+(_0x41357b+'|'+Kt({'newValue':_0x88eee4})))['substring'](0x0,0x3c),_0x3052bd=this['_setSuggestionData']({'id':_0x557e21,'type':_0x40fc69,'data':_0x1877aa,'createdAt':new Date(),'authorId':_0x27d67e,'attributes':_0x507659});_0x2aed6e['push'](_0x3052bd),this['_addSuggestionMarker'](_0x40fc69,_0x557e21,_0x27d67e,_0x44d176);}return _0x2aed6e;}['enableDefaultAttributesIntegration'](_0x510ad0){this['enableCommand'](_0x510ad0,(_0x549b9b,..._0x3880d9)=>{this['_recordAttributeChanges'](()=>{_0x549b9b(..._0x3880d9);});});}['registerBlockAttribute'](_0x189a1a){this['_blockAttributeKeys']['add'](_0x189a1a);}['registerInlineAttribute'](_0x48d631){this['_inlineAttributeKeys']['add'](_0x48d631);}['startTrackingSession'](_0x364d5a){return this['_trackingSessionId']=void 0x0!==_0x364d5a?_0x364d5a:_0x5d446a(),this['_trackingSessionId'];}['_getAttributeKey'](_0x3bd65e){return'attribute'==_0x3bd65e['type']?_0x3bd65e['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x41b00f,_0x1fb0a8){const _0x4d9b8f=_0x41b00f['getFirstMarker']();this['_model']['change'](_0x5cbc6d=>{_0x5cbc6d['updateMarker'](_0x4d9b8f,{'range':_0x1fb0a8});});}['_addThreadToSuggestion'](_0x5e1786){const _0x4092b7=_0x5e1786['id'],_0x516f2a=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4092b7)||this['_commentsRepository']['addCommentThread']({'channelId':_0x516f2a,'threadId':_0x4092b7,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x47c935=this['_commentsRepository']['getCommentThread'](_0x4092b7);_0x47c935['unbind']('isRemovable'),_0x47c935['isRemovable']=!0x1,_0x5e1786['commentThread']=_0x47c935;}['_checkSuggestionCorrectness'](_0x4709b9,_0x1bee56,_0x21bfe4,_0x1f1933){if(_0x4709b9['type']!=_0x1bee56||_0x4709b9['subType']!=_0x21bfe4||_0x4709b9['creator']['id']!=_0x1f1933)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3d469d('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0xa750ca,_0x1648f1){const _0xf5479d=_0xa750ca['getFirstRange']();if(_0x1648f1['isEqual'](_0xf5479d))_0xa750ca['removeMarkers']();else{if(_0xf5479d['containsRange'](_0x1648f1)){const _0x2935b7=this['_model']['createPositionAt'](_0x1648f1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xa750ca,this['_model']['createRange'](_0xf5479d['start'],_0x2935b7));const _0x38df77=_0x5d446a(),_0x11d609=_0xa750ca['creator']['id'],_0x506c8f=_0xa750ca['type']+':'+_0xa750ca['subType'];this['_setSuggestionData']({'id':_0x38df77,'type':_0x506c8f,'createdAt':new Date(),'authorId':_0x11d609,'data':_0xa750ca['data'],'attributes':_0xa750ca['attributes']});const _0x25219c=this['_model']['createPositionAt'](_0x1648f1['end']['parent'],'after'),_0x4315d6=this['_model']['createRange'](_0x25219c,_0xf5479d['end']);this['_addSuggestionMarker'](_0x506c8f,_0x38df77,_0x11d609,_0x4315d6);}else{if(_0xf5479d['containsPosition'](_0x1648f1['start'])){const _0x28c1d5=this['_model']['createPositionAt'](_0x1648f1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xa750ca,this['_model']['createRange'](_0xf5479d['start'],_0x28c1d5));}else{const _0x40b650=this['_model']['createPositionAt'](_0x1648f1['end']['parent'],'after');this['_setSuggestionRange'](_0xa750ca,this['_model']['createRange'](_0x40b650,_0xf5479d['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x412b16){for(const {suggestion:_0x5b1acc,meta:_0x5c037a}of this['_findSuggestions'](_0x412b16,'insertion')){if(!_0x5c037a['isOwn'])continue;const _0x5f8c25=_0x5b1acc['getRanges']();for(const _0x19640e of _0x5f8c25)if(!_0x412b16['getDifference'](_0x19640e)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x592784){const _0x576ce4=this['editor']['plugins']['get']('Users')['getUser'](_0x592784);if(!_0x576ce4)throw new _0x3d469d('track-changes-user-not-found',this);return _0x576ce4;}['_getExternalAuthor'](_0x18dc8c){const _0x2f5151=this['editor']['plugins']['get']('Users'),_0x48bce9=_0x2313a4('external:'+_0x18dc8c),_0x53b63c=_0x2f5151['getUser'](_0x48bce9);return _0x53b63c||_0x2f5151['addUser']({'id':_0x48bce9,'name':_0x18dc8c});}['_createSuggestion'](_0x3bad49,_0x154050,_0x2f43c3,_0x252ac2,_0x41eab7){const _0xe9ec5e=this['_getAuthorFromId'](_0x252ac2),_0x3be03d=this['_suggestionFactory']['buildSuggestion'](_0x3bad49,_0x154050,_0x2f43c3,_0xe9ec5e,_0x41eab7,_0xb02eb2=>{this['_updateSuggestionData'](_0x2f43c3,{'attributes':_0xb02eb2});const _0x448275=this['getSuggestion'](_0x2f43c3);this['_joinWithAdjacentSuggestions'](new Set([_0x448275])),this['_refreshSuggestionsChain'](new Set([_0x448275]));});return this['listenTo'](_0x3be03d,'accept',()=>{this['_updateSuggestionData'](_0x2f43c3,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3be03d,'discard',()=>{this['_updateSuggestionData'](_0x2f43c3,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2f43c3,_0x3be03d),this['_suggestionState']['set'](_0x3be03d,'notReady'),_0x3be03d;}['_splitMarkerName'](_0x3a5d98){const _0x425b78=_0x3a5d98['split'](':');return{'group':_0x425b78[0x0],'type':_0x425b78[0x1],'subType':_0x425b78['length']>=0x5?_0x425b78[0x2]:null,'id':_0x425b78['length']<0x5?_0x425b78[0x2]:_0x425b78[0x3],'authorId':_0x425b78['length']<0x5?_0x425b78[0x3]:_0x425b78[0x4],'markerCount':0x6==_0x425b78['length']?_0x425b78[0x5]:null};}['_breakSuggestionMarker'](_0x39ccf0,_0x26fc58,_0x164819){const _0x48f2a5=_0x39ccf0['getFirstRange'](),_0x44006d=_0x48f2a5['start'],_0xd15a52=_0x48f2a5['end'];this['_setSuggestionRange'](_0x39ccf0,this['_model']['createRange'](_0x44006d,_0x26fc58));const _0x73676c=_0x5d446a(),_0x44bb6e=_0x39ccf0['creator']['id'],_0x445c67=_0x39ccf0['type']+(_0x39ccf0['subType']?':'+_0x39ccf0['subType']:'');this['_setSuggestionData']({'id':_0x73676c,'type':_0x445c67,'createdAt':new Date(),'authorId':_0x44bb6e,'originalSuggestionId':_0x39ccf0['id'],'attributes':_0x39ccf0['attributes'],'data':_0x39ccf0['data']});const _0xcece9=this['_getAttributeKey'](_0x39ccf0);('formatBlock'==_0x39ccf0['type']||_0xcece9&&this['_isBlockAttribute'](_0xcece9))&&(_0x164819=this['_model']['createPositionBefore'](_0x164819['parent'])),this['_addSuggestionMarker'](_0x445c67,_0x73676c,_0x44bb6e,this['_model']['createRange'](_0x164819,_0xd15a52));}['_findSuggestions'](_0x231e2d,_0x48e96d=null){const _0x171560=[],_0x5c24cf=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x231e2d)||(_0x231e2d=[_0x231e2d]);for(const _0x1deacf of this['getSuggestions']()){if(!_0x1deacf['isInContent'])continue;if(_0x48e96d&&_0x1deacf['type']!=_0x48e96d)continue;let _0x11faca=!0x1;for(const _0x2e4ef6 of _0x1deacf['getRanges']()){for(const _0x3a8c61 of _0x231e2d){const _0x2011e7=_0x3a8c61['start']['isEqual'](_0x2e4ef6['end'])||_0x3a8c61['end']['isEqual'](_0x2e4ef6['start']);if(_0x2011e7||_0x3a8c61['getIntersection'](_0x2e4ef6)){const _0x4f870d=_0x3a8c61['containsRange'](_0x2e4ef6)&&Gt(this['_model']['schema'],_0x2e4ef6['start'],_0x3a8c61),_0x3aa8f2=_0x2e4ef6['containsRange'](_0x3a8c61)&&Gt(this['_model']['schema'],_0x3a8c61['start'],_0x2e4ef6);_0x171560['push']({'suggestion':_0x1deacf,'meta':{'isOwn':_0x5c24cf==_0x1deacf['author'],'isNextTo':_0x2011e7,'isInsideObject':_0x4f870d,'containsRangeInObject':_0x3aa8f2}}),_0x11faca=!0x0;break;}}if(_0x11faca)break;}}return _0x171560;}['_addSuggestionMarker'](_0x367779,_0x45454b,_0x2d8f60,_0x141208,_0x12a7ab){this['_model']['change'](_0x1e8e26=>{let _0x1f72d8='suggestion:'+_0x367779+':'+_0x45454b+':'+_0x2d8f60;_0x12a7ab&&(_0x1f72d8=_0x1f72d8+':'+_0x12a7ab),_0x1e8e26['addMarker'](_0x1f72d8,{'range':_0x141208,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x860933){const _0x1acbe5=_0x860933['previous'],_0x589466=_0x860933['next'];_0x860933['previous']=null,_0x860933['next']=null,null!=_0x1acbe5&&_0x1acbe5['next']==_0x860933&&(_0x1acbe5['next']=_0x589466),null!=_0x589466&&_0x589466['previous']==_0x860933&&(_0x589466['previous']=_0x1acbe5),'ready'==this['_suggestionState']['get'](_0x860933)&&(this['_suggestionState']['set'](_0x860933,'removed'),this['fire']('suggestionUnloaded',_0x860933,_0x1acbe5,_0x589466));}['_setSuggestionData'](_0x37746a){const _0x433638=_0x37746a['id'],_0x12b3e6=this['addSuggestionData'](_0x37746a);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x56c18b=this['editor']['plugins']['get']('PendingActions'),_0x322d23=_0x12b3e6['hasComments'],_0x4c62f7=_0x12b3e6['subType']?_0x12b3e6['type']+':'+_0x12b3e6['subType']:_0x12b3e6['type'],_0x5ed26e=this['editor']['locale'],_0x1cd2ac=_0x56c18b['add'](c(_0x5ed26e,'PENDING_ACTION_SUGGESTION')),_0x57636b={'id':_0x433638,'type':_0x4c62f7,'hasComments':_0x322d23,'data':_0x37746a['data']||null,'originalSuggestionId':_0x37746a['originalSuggestionId']||null,'attributes':_0x12b3e6['attributes']};this['_adapter']['addSuggestion'](_0x57636b)['then'](_0x587d01=>{_0x12b3e6['_saved']=!0x0,_0x56c18b['remove'](_0x1cd2ac),_0x587d01&&_0x587d01['createdAt']&&(this['_suggestions']['get'](_0x433638)['createdAt']=_0x587d01['createdAt']);})['catch'](_0x349648=>{throw _0x20fa00('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x12b3e6['discard']();}),_0x12b3e6['stopListening'](),this['_suggestions']['delete'](_0x12b3e6['id']),this['_suggestionState']['delete'](_0x12b3e6),_0x349648;});}return _0x12b3e6;}['_isBlockAttribute'](_0x32a65b){return this['_blockAttributeKeys']['has'](_0x32a65b);}['_updateSuggestionData'](_0x2db8c5,_0x298fb5){const _0x188ad3=this['editor']['plugins']['get']('PendingActions'),_0xe50c34=this['getSuggestion'](_0x2db8c5);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xe50c34['_saved']){const _0x2ce2c1=_0x188ad3['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2db8c5,_0x298fb5)['then'](()=>{_0x188ad3['remove'](_0x2ce2c1);});}else _0xe50c34['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2db8c5,_0x298fb5);});}}['_getSuggestionData'](_0x36a701){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3d469d('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x36a701);}['_handleNewSuggestionMarker'](_0x418338){const {id:_0xed00e5,type:_0x44f05c,subType:_0x1998f0,authorId:_0x5d1dba}=this['_splitMarkerName'](_0x418338),_0x11f16e=this['_suggestions']['get'](_0xed00e5)||this['_createSuggestion'](_0x44f05c,_0x1998f0,_0xed00e5,_0x5d1dba,{});switch(this['_checkSuggestionCorrectness'](_0x11f16e,_0x44f05c,_0x1998f0,_0x5d1dba),this['_suggestionState']['get'](_0x11f16e)){case'notReady':this['_getSuggestionData'](_0xed00e5)['then'](_0x55212d=>{let _0x3fedb1=Promise['resolve']();_0x55212d['hasComments']&&(_0x3fedb1=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xed00e5})),_0x3fedb1['then'](()=>{this['addSuggestionData'](_0x55212d)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x11f16e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xed00e5,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x11f16e,'ready'),this['fire']('suggestionLoaded',_0x11f16e);break;case'ready':this['fire']('suggestionChanged',_0x11f16e);}return _0x11f16e['addMarkerName'](_0x418338),_0x11f16e;}['_refreshSuggestionsChain'](_0x468e57){const _0x3834c5=Array['from'](_0x468e57),_0x58979f=_0x3834c5['filter'](_0x3528b0=>'attribute'==_0x3528b0['type']);this['_refreshAttributeSuggestionsChain'](_0x58979f);const _0x1a7446=_0x3834c5['filter'](_0x163de7=>!_0x163de7['isMultiRange']&&'attribute'!=_0x163de7['type']),_0x2d6443=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x272e32=>!_0x272e32['isMultiRange']&&'attribute'!=_0x272e32['type']),_0x36f417=_0x2d6443['filter'](_0x13a437=>!_0x468e57['has'](_0x13a437)),_0x4cb1de=new Map(_0x2d6443['map'](_0x107d6c=>[_0x107d6c,this['_suggestionFactory']['getSuggestionCallback'](_0x107d6c['type'],_0x107d6c['subType'],'chain')])),_0x5405a6=new Map(_0x2d6443['map'](_0x49bdac=>[_0x49bdac,_0x49bdac['getFirstRange']()])),_0x294994=new Set(),_0x34e186=new Set();for(let _0x364ab9=0x0;_0x364ab9<_0x1a7446['length'];_0x364ab9++)_0x308d37(_0x1a7446[_0x364ab9],_0x1a7446,_0x364ab9+0x1);for(let _0x1d3051=0x0;_0x1d3051<_0x1a7446['length'];_0x1d3051++)_0x308d37(_0x1a7446[_0x1d3051],_0x36f417,0x0);const _0x2ae4ad=new Set();for(let _0x5d756b=0x0;_0x5d756b<_0x1a7446['length'];_0x5d756b++){const _0x7c1ef9=_0x1a7446[_0x5d756b];!_0x34e186['has'](_0x7c1ef9)&&_0x7c1ef9['previous']&&(_0x2ae4ad['add'](_0x7c1ef9['previous']),_0x7c1ef9['previous']['next']===_0x7c1ef9&&(_0x7c1ef9['previous']['next']=null),_0x7c1ef9['previous']=null),!_0x294994['has'](_0x7c1ef9)&&_0x7c1ef9['next']&&(_0x2ae4ad['add'](_0x7c1ef9['next']),_0x7c1ef9['next']['previous']===_0x7c1ef9&&(_0x7c1ef9['next']['previous']=null),_0x7c1ef9['next']=null);}function _0x308d37(_0x18dd9b,_0x39cfdf,_0x17e977){for(let _0x3485aa=_0x17e977;_0x3485aa<_0x39cfdf['length'];_0x3485aa++){const _0x65026d=_0xf88367(_0x18dd9b,_0x39cfdf[_0x3485aa]);_0x65026d&&(_0x65026d[0x0]['next']=_0x65026d[0x1],_0x65026d[0x1]['previous']=_0x65026d[0x0],_0x294994['add'](_0x65026d[0x0]),_0x34e186['add'](_0x65026d[0x1]));}}function _0xf88367(_0x317ae6,_0x46efe8){if(_0x317ae6['author']['id']!==_0x46efe8['author']['id'])return null;const _0x3a044e=_0x4cb1de['get'](_0x317ae6)(_0x317ae6,_0x46efe8,_0x5405a6['get'](_0x317ae6),_0x5405a6['get'](_0x46efe8));if(!_0x3a044e)return null;return _0x4cb1de['get'](_0x46efe8)(_0x317ae6,_0x46efe8,_0x5405a6['get'](_0x317ae6),_0x5405a6['get'](_0x46efe8))?_0x3a044e[0x1]['commentThread']&&_0x3a044e[0x1]['commentThread']['length']?null:_0x3a044e:null;}_0x2ae4ad['size']&&this['_refreshSuggestionsChain'](_0x2ae4ad);}['_refreshAttributeSuggestionsChain'](_0x3674f6){if(0x0==_0x3674f6['length'])return;const _0x2dcf9d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5e2b70=>'attribute'==_0x5e2b70['type']&&_0x5e2b70['_isDataLoaded']),_0x34098f=[],_0x4a020a=new Map();for(const _0x35906b of _0x2dcf9d){const _0x88fd4a=_0x2313a4(_0x35906b['attributes']);_0x4a020a['has'](_0x88fd4a)||(_0x4a020a['set'](_0x88fd4a,_0x34098f['length']),_0x34098f['push']([]));const _0x39c25f=_0x4a020a['get'](_0x88fd4a);_0x34098f[_0x39c25f]['push'](_0x35906b);}!(function(){_0x34098f['sort']((_0x1f8a13,_0x646ac5)=>{const _0x199e17=_0x1f8a13[0x0]['createdAt'],_0x17dcac=_0x646ac5[0x0]['createdAt'];return _0x199e17==_0x17dcac?_0x1f8a13[0x0]['attributes']['groupId']<_0x646ac5[0x0]['attributes']['groupId']?-0x1:0x1:_0x199e17<_0x17dcac?-0x1:0x1;});for(const _0x3772a1 of _0x34098f)_0x3772a1['sort']((_0x5280e8,_0x25cb41)=>_0x5280e8['id']<_0x25cb41['id']?-0x1:0x1);}());for(let _0x494253=0x0;_0x494253<_0x34098f['length'];_0x494253++){if(0x0==_0x34098f[_0x494253]['length'])continue;const _0x25ed54=[];for(let _0x107487=_0x494253+0x1;_0x107487<_0x34098f['length'];_0x107487++)0x0!=_0x34098f[_0x107487]['length']&&_0x574832(_0x34098f[_0x494253],_0x34098f[_0x107487])&&_0x25ed54['push'](_0x107487);for(const _0x8fd454 of _0x25ed54)_0x34098f[_0x494253]=_0x34098f[_0x494253]['concat'](_0x34098f[_0x8fd454]),_0x34098f[_0x8fd454]=[];}for(const _0x3c290e of _0x34098f)for(let _0x3324b0=0x0;_0x3324b0<_0x3c290e['length'];_0x3324b0++){const _0x2a1667=_0x3c290e[_0x3324b0+0x1]||null;_0x3c290e[_0x3324b0]['next']!==_0x2a1667&&(_0x3c290e[_0x3324b0]['next']=_0x2a1667);}for(const _0x4650b4 of _0x34098f)for(let _0x419f0f=0x0;_0x419f0f<_0x4650b4['length'];_0x419f0f++){const _0x387efe=_0x4650b4[_0x419f0f-0x1]||null;_0x4650b4[_0x419f0f]['previous']!==_0x387efe&&(_0x4650b4[_0x419f0f]['previous']=_0x387efe);}function _0x574832(_0x41b96d,_0x238d17){if(_0x41b96d[0x0]['attributes']['groupId']!==_0x238d17[0x0]['attributes']['groupId']&&_0x41b96d[0x0]['author']!==_0x238d17[0x0]['author'])return!0x1;if(!function(_0x2fb6a7,_0x3a7051){if(!_0x2fb6a7['hasComments']&&!_0x3a7051['hasComments'])return!0x0;if(_0x2fb6a7['hasComments']&&_0x3a7051['hasComments'])return!0x1;if(_0x2fb6a7['hasComments']&&_0x3a7051['createdAt']<_0x2fb6a7['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3a7051['hasComments']&&_0x2fb6a7['createdAt']<_0x3a7051['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x41b96d[0x0],_0x238d17[0x0]))return!0x1;const _0x2c0142=Ft(_0x41b96d[0x0]['attributes'],['groupId','trackingSessionId']),_0x3997cb=Ft(_0x238d17[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x2ed42c(_0x2c0142,_0x3997cb))return!0x1;if(_0x41b96d[0x0]['attributes']['groupId']==_0x238d17[0x0]['attributes']['groupId'])return!0x0;if(_0x41b96d[0x0]['attributes']['trackingSessionId']!==_0x238d17[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x41b96d['every'](_0x506cae=>_0x238d17['some'](_0x25589a=>_0x506cae['getFirstRange']()['isEqual'](_0x25589a['getFirstRange']())))&&_0x238d17['every'](_0x24a45f=>_0x41b96d['some'](_0x39ae30=>_0x24a45f['getFirstRange']()['isEqual'](_0x39ae30['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4fde97){const _0x1c4106=Array['from'](_0x4fde97),_0x596220=this['getSuggestions']({'skipNotAttached':!0x0}),_0x151856=_0x596220['filter'](_0xc97404=>!_0x4fde97['has'](_0xc97404)),_0x558412=new Map(_0x1c4106['map'](_0x44d1a5=>[_0x44d1a5,this['_suggestionFactory']['getSuggestionCallback'](_0x44d1a5['type'],_0x44d1a5['subType'],'join')])),_0x2e8b1b=new Map(_0x596220['map'](_0x3edbfb=>[_0x3edbfb,_0x3edbfb['getRanges']()]));for(let _0x3f1be0=0x0;_0x3f1be0<_0x1c4106['length'];_0x3f1be0++){if(_0x221a7e(this,_0x1c4106[_0x3f1be0],_0x1c4106,_0x3f1be0+0x1))return!0x0;}for(let _0x3bede5=0x0;_0x3bede5<_0x1c4106['length'];_0x3bede5++){if(_0x221a7e(this,_0x1c4106[_0x3bede5],_0x151856,0x0))return!0x0;}return!0x1;function _0x221a7e(_0x5663df,_0x3801aa,_0x3b18e0,_0x108942){for(let _0x55613a=_0x108942;_0x55613a<_0x3b18e0['length'];_0x55613a++){const _0x4c1773=_0x3b18e0[_0x55613a];if(_0x4c1773['type']!==_0x3801aa['type']||_0x4c1773['author']['id']!==_0x3801aa['author']['id']||_0x4c1773['subType']!==_0x3801aa['subType'])continue;if(!Qt(_0x3801aa,_0x4c1773))continue;if('attribute'==_0x3801aa['type']&&_0x3801aa['data']['oldValue']!=_0x4c1773['data']['oldValue'])continue;if('attribute'==_0x3801aa['type']&&_0x5663df['_isBlockAttribute'](_0x3801aa['data']['key']))continue;if('formatBlock'==_0x3801aa['type']){const _0x1d441f=_0x5663df['editor']['model'],_0x423b04=_0x3801aa['getContainedElement']();if(_0x423b04&&(_0x1d441f['schema']['isObject'](_0x423b04)||_0x1d441f['schema']['isLimit'](_0x423b04)))continue;}const _0x2142b0=_0x558412['get'](_0x3801aa),_0x3f9ee1=_0x2e8b1b['get'](_0x3801aa),_0x4bf2bf=_0x2e8b1b['get'](_0x4c1773),_0x44fa17=_0x3801aa['commentThread']&&_0x3801aa['commentThread']['length'],_0x977e2c=_0x4c1773['commentThread']&&_0x4c1773['commentThread']['length'];if(!_0x44fa17&&_0x2142b0(_0x4bf2bf,_0x3f9ee1))return _0x5663df['_joinSuggestions'](_0x4c1773,_0x3801aa),_0x2e8b1b['delete'](_0x3801aa),!0x0;if(!_0x977e2c&&_0x2142b0(_0x3f9ee1,_0x4bf2bf))return _0x5663df['_joinSuggestions'](_0x3801aa,_0x4c1773),_0x2e8b1b['delete'](_0x4c1773),!0x0;}return!0x1;}}['_joinSuggestions'](_0x7bf612,_0x196ff2){if(_0x7bf612['isMultiRange']){for(const _0x89e415 of _0x196ff2['getRanges']())_0x7bf612['addRange'](_0x89e415);}else{const _0x3b7e13=_0x196ff2['getFirstRange']()['end'];this['_setSuggestionRange'](_0x7bf612,this['_model']['createRange'](_0x7bf612['getFirstRange']()['start'],_0x3b7e13));}_0x196ff2['removeMarkers']();}['_getMarkerAnnouncementText'](_0x53ecb8,_0x51b288,_0x2837c0){const _0x49c754=_0x53ecb8['startsWith']('format')||_0x53ecb8['startsWith']('attribute')?'FORMATTING':_0x53ecb8['toUpperCase']();return c(this['editor']['locale'],_0x51b288+'_'+_0x49c754+'_SUGGESTION_ANNOUNCEMENT',_0x2837c0);}['_initAriaMarkerChangeAnnouncements'](){const _0x414694=this['editor'];if(!_0x414694['ui'])return;const {ariaLiveAnnouncer:_0x29227b}=_0x414694['ui'];_0x184fc2(this['_model'],({left:_0x56dcdf,entered:_0x40c7f9})=>{for(const _0x103b94 of _0x56dcdf){const {group:_0x558bb9,type:_0x3c00c8}=this['_splitMarkerName'](_0x103b94['name']);if('suggestion'===_0x558bb9){_0x29227b['announce'](this['_getMarkerAnnouncementText'](_0x3c00c8,'LEAVE'));break;}}for(const _0x1da5b5 of _0x40c7f9){const {group:_0x14e840,type:_0x136063}=this['_splitMarkerName'](_0x1da5b5['name']);if('suggestion'===_0x14e840){_0x29227b['announce'](this['_getMarkerAnnouncementText'](_0x136063,'ENTER',_0x593b55(_0x3ae0da)));break;}}});}['_processAttributeChanges'](_0x4dbd6d){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1d9637=this['editor'],_0x4e3fe4=_0x1d9637['model']['document']['differ']['getChanges']();if(0x0==_0x4e3fe4['length'])return!0x1;const _0x29d4a9=[],_0x400d35=_0x4e3fe4['filter'](_0x24f45b=>'attribute'==_0x24f45b['type']),_0x4979e5=_0x4e3fe4['filter'](_0x23c61e=>'insert'==_0x23c61e['type']&&'$text'!=_0x23c61e['name']),_0x182a7e=_0x4e3fe4['filter'](_0x3f972b=>'remove'==_0x3f972b['type']&&'$text'!=_0x3f972b['name']);for(const _0x416fd7 of _0x400d35)_0x29d4a9['push']({'key':_0x416fd7['attributeKey'],'newValue':_0x416fd7['attributeNewValue'],'oldValue':_0x416fd7['attributeOldValue'],'range':qt(_0x416fd7['range'],_0x1d9637['model'])});for(const _0x16bf3f of _0x4979e5){const _0x20f869=_0x182a7e['find'](_0x37d38f=>_0x37d38f['position']['isEqual'](_0x16bf3f['position']));_0x20f869&&_0x29d4a9['push']({'key':u,'newValue':_0x16bf3f['name'],'oldValue':_0x20f869['name'],'range':_0x1d9637['model']['createRangeOn'](_0x16bf3f['position']['nodeAfter'])});}return 0x0!=_0x29d4a9['length']&&this['_reduceExistingSuggestions'](_0x4dbd6d,_0x29d4a9);}['_processAttributeSuggestions'](_0x4b2063){let _0x36750b=!0x1;const _0x1ceb17=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x414254=>_0x414254['data']['newRange']&&_0x414254['name']['startsWith']('suggestion:attribute:'));for(const _0x102952 of _0x1ceb17){const {subType:_0x429e23,id:_0x1e8ea3}=this['_splitMarkerName'](_0x102952['name']),_0x1a725d=_0x429e23['split']('|')[0x0];for(const _0x3bbf5f of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3bbf5f['id']!=_0x1e8ea3&&'attribute'==_0x3bbf5f['type']&&_0x3bbf5f['data']&&_0x3bbf5f['data']['key']==_0x1a725d&&_0x3bbf5f['getFirstRange']()['isIntersecting'](_0x102952['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3bbf5f,_0x102952['data']['newRange'],_0x4b2063),_0x36750b=!0x0);}return _0x36750b;}['_recordAttributeChanges'](_0x1d8c32){this['_recordAttributeSuggestions']=!0x0,_0x1d8c32();}['_isRegisteredAttribute'](_0x2d17c7){const _0x43e252=this['_isBlockAttribute'](_0x2d17c7),_0x20b6c4=this['_inlineAttributeKeys']['has'](_0x2d17c7);return _0x43e252||_0x20b6c4;}['_reduceExistingSuggestions'](_0x358dd4,_0x52e434){if(0x0==_0x52e434['length'])return!0x1;let _0x55580b=!0x1;for(const _0x4f50ed of _0x52e434){const _0x49f7b3=this['_findSuggestions'](_0x4f50ed['range'],'attribute')['filter'](_0x2ac70e=>!_0x2ac70e['meta']['isNextTo'])['map'](_0x54fa9d=>_0x54fa9d['suggestion']),_0x296944=_0x2313a4({'newValue':_0x4f50ed['newValue']});_0x49f7b3['filter'](_0x4bdb99=>{const [_0xb65a20,_0x5766ff]=_0x4bdb99['subType']['split']('|');return _0xb65a20==_0x4f50ed['key']&&_0x5766ff!=_0x296944;})['forEach'](_0x2953e6=>{this['_reduceSuggestionAttributeRange'](_0x2953e6,_0x4f50ed['range'],_0x358dd4),_0x55580b=!0x0;});}return _0x55580b;}['_reduceSuggestionAttributeRange'](_0x5f5b91,_0x387e0b,_0x23b50d){const _0x12bb14=_0x5f5b91['getFirstRange']()['getDifference'](_0x387e0b);0x0!==_0x12bb14['length']?0x1!==_0x12bb14['length']?this['_breakSuggestionMarker'](_0x5f5b91,_0x387e0b['start'],_0x387e0b['end']):this['_setSuggestionRange'](_0x5f5b91,_0x12bb14[0x0]):_0x23b50d['removeMarker'](_0x5f5b91['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x57a020){this['_editor']=_0x57a020,this['_model']=_0x57a020['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x38b24d,_0x2b7b93,_0x43a2e0,_0x570ae4,_0x5db68f,_0x738ee3){return new o(this['_model'],{'type':_0x38b24d,'subType':_0x2b7b93,'id':_0x43a2e0,'author':_0x570ae4,'creator':_0x570ae4,'attributes':_0x5db68f,'onAttributesChange':_0x738ee3,'onAccept':(..._0x529fd6)=>this['getSuggestionCallback'](_0x38b24d,_0x2b7b93,'accept')(..._0x529fd6),'onDiscard':(..._0x324e4e)=>this['getSuggestionCallback'](_0x38b24d,_0x2b7b93,'discard')(..._0x324e4e)});}['registerCustomCallback'](_0x6ddffd,_0x4beeb5,_0x11146b,_0x25c65f){const _0x11fd91=_0x6ddffd+':'+_0x4beeb5+':'+_0x11146b;this['_customCallbacks']['set'](_0x11fd91,_0x25c65f);}['getSuggestionCallback'](_0x2d200b,_0x24145c,_0x1c5a53){const _0x56d664=_0x2d200b+':'+_0x24145c+':'+_0x1c5a53;return this['_customCallbacks']['get'](_0x56d664)||this['_defaultCallbacks']['get'](_0x2d200b+':'+_0x1c5a53);}['_registerDefaultCallbacks'](){const _0x50b42e=()=>!0x1,_0x35b6d6=_0x54896b=>{_0x54896b['sort']((_0x16e9b2,_0x1ccbce)=>_0x16e9b2['start']['isBefore'](_0x1ccbce['start'])?0x1:-0x1),this['_model']['change'](_0x593cdf=>{for(const _0x41c6d2 of _0x54896b){let _0x4401b6;_0x4401b6=_0x41c6d2['end']['isAtEnd']&&_0x41c6d2['end']['parent']==_0x41c6d2['start']['nodeAfter']?_0x593cdf['createSelection'](_0x41c6d2['start']['nodeAfter'],'on'):_0x593cdf['createSelection'](_0x41c6d2),this['_model']['deleteContent'](_0x4401b6,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x99f880=(_0x3da96,_0x5c1ca8)=>{_0x5c1ca8&&this['_model']['change'](_0x252146=>{const {commandName:_0x523a02,commandParams:_0x46e93b=[]}=_0x5c1ca8,_0x5e476e=_0x3da96['map'](_0x19ff21=>(Lt(_0x19ff21)&&(_0x19ff21=this['_model']['createRange'](_0x19ff21['end'])),_0x19ff21))['filter'](_0x194dda=>'$graveyard'!==_0x194dda['root']['rootName']);if(_0x5e476e['length']<0x1)return;const _0x4cc2c5=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xc4c5d7=>_0xd0daae['fromRange'](_0xc4c5d7));_0x252146['setSelection'](_0x5e476e);for(const _0x130425 of this['_editor']['commands']['commands']())_0x130425['refresh']();_0x46e93b['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x523a02,..._0x46e93b);const _0x52a61a=_0x4cc2c5['filter'](_0x3a8b10=>'$graveyard'!=_0x3a8b10['root']['rootName']);_0x52a61a['length']>0x0&&_0x252146['setSelection'](_0x52a61a);for(const _0x35aa7a of _0x4cc2c5)_0x35aa7a['detach']();});},_0x361c90=(_0x2fb188,_0x4a0c3e)=>0x1==_0x2fb188['length']&&0x1==_0x4a0c3e['length']&&_0x2fb188[0x0]['end']['isEqual'](_0x4a0c3e[0x0]['start']),_0x328013=(_0x1e855c,_0x99dd8c,_0x3e9cd5,_0x156159)=>Wt(_0x1e855c,_0x99dd8c,_0x3e9cd5,_0x156159)?[_0x1e855c,_0x99dd8c]:Wt(_0x99dd8c,_0x1e855c,_0x156159,_0x3e9cd5)?[_0x99dd8c,_0x1e855c]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x50b42e),this['_defaultCallbacks']['set']('insertion:discard',_0x35b6d6),this['_defaultCallbacks']['set']('insertion:join',_0x361c90),this['_defaultCallbacks']['set']('insertion:chain',_0x328013),this['_defaultCallbacks']['set']('deletion:accept',_0x35b6d6),this['_defaultCallbacks']['set']('deletion:discard',_0x50b42e),this['_defaultCallbacks']['set']('deletion:join',_0x361c90),this['_defaultCallbacks']['set']('deletion:chain',_0x328013),this['_defaultCallbacks']['set']('formatInline:accept',_0x99f880),this['_defaultCallbacks']['set']('formatInline:discard',_0x50b42e),this['_defaultCallbacks']['set']('formatInline:join',_0x361c90),this['_defaultCallbacks']['set']('formatInline:chain',_0x50b42e),this['_defaultCallbacks']['set']('formatBlock:accept',_0x99f880),this['_defaultCallbacks']['set']('formatBlock:discard',_0x50b42e),this['_defaultCallbacks']['set']('formatBlock:join',_0x361c90),this['_defaultCallbacks']['set']('formatBlock:chain',_0x50b42e),this['_defaultCallbacks']['set']('attribute:accept',_0x50b42e),this['_defaultCallbacks']['set']('attribute:discard',(_0xa4662,_0x494b42)=>{if(!_0x494b42)return;const _0x1bb753=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x560f7c=>{if(_0x494b42['key']==u)for(const _0x41eb62 of _0xa4662){const _0x18627f=_0x41eb62['start']['nodeAfter'],_0x5869c8=_0x494b42['oldValue'];_0x560f7c['rename'](_0x18627f,_0x5869c8);}else{if(_0x1bb753['_isBlockAttribute'](_0x494b42['key'])){for(const _0xf5e665 of _0xa4662)void 0x0!==_0x494b42['oldValue']?_0x560f7c['setAttribute'](_0x494b42['key'],_0x494b42['oldValue'],_0xf5e665['start']['nodeAfter']):_0x560f7c['removeAttribute'](_0x494b42['key'],_0xf5e665['start']['nodeAfter']);}else{for(const _0x1ee25e of _0xa4662)_0x494b42['oldValue']?_0x560f7c['setAttribute'](_0x494b42['key'],_0x494b42['oldValue'],_0x1ee25e):_0x560f7c['removeAttribute'](_0x494b42['key'],_0x1ee25e);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x361c90);}}function Gt(_0xba2ef3,_0x32456c,_0x1df4ed){for(const _0x31e3c5 of _0x32456c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x31e3c5['root']==_0x31e3c5)return!0x1;if(!_0x1df4ed['containsItem'](_0x31e3c5))return!0x1;if(_0xba2ef3['isObject'](_0x31e3c5)||_0xba2ef3['isLimit'](_0x31e3c5))return!0x0;}return!0x1;}function Lt(_0xcc1d26){return _0xcc1d26['end']['parent']==_0xcc1d26['start']['nodeAfter']&&_0xcc1d26['end']['isAtStart'];}function Jt(_0x589b68,_0x30e4ce,_0x4f2bc6,_0x395e33){const _0x46f5f2=_0x2ec1c3=>!_0x2ec1c3['item']['is']('$textProxy')&&!_0x395e33['isObject'](_0x2ec1c3['item']),_0x1e721a=_0x589b68['start']['getLastMatchingPosition'](_0x46f5f2),_0xec0b9=_0x589b68['end']['getLastMatchingPosition'](_0x46f5f2,{'direction':'backward'});return(!_0x589b68['start']['isEqual'](_0x1e721a)||!_0x589b68['end']['isEqual'](_0xec0b9))&&(_0x1e721a['isBefore'](_0xec0b9)?_0x4f2bc6['updateMarker'](_0x30e4ce,{'range':_0x4f2bc6['createRange'](_0x1e721a,_0xec0b9)}):_0x4f2bc6['removeMarker'](_0x30e4ce),!0x0);}function Kt(_0x220e24){return _0x2313a4(_0x220e24);}function Ht(_0xca7bce){const _0x439be5=_0xca7bce['start']['nodeAfter'];return _0x439be5&&_0x439be5['is']('element');}function qt(_0x4a2c96,_0x5aa714){return null==_0x4a2c96['end']['nodeBefore']&&_0x4a2c96['end']['parent']==_0x4a2c96['start']['nodeAfter']?zt(_0x4a2c96['start']['nodeAfter'],_0x5aa714):_0x4a2c96;}function zt(_0x339df4,_0x4e3630){const _0x3f7be8=_0x4e3630['schema']['isObject'](_0x339df4)||_0x4e3630['schema']['isSelectable'](_0x339df4);return _0x4e3630['createRange'](_0x4e3630['createPositionAt'](_0x339df4,'before'),_0x3f7be8?_0x4e3630['createPositionAfter'](_0x339df4):_0x4e3630['createPositionAt'](_0x339df4,'end'));}function Wt(_0x226e64,_0x29d627,_0x1c6502,_0x1882f4){return!!Qt(_0x226e64,_0x29d627)&&_0x1c6502['end']['isEqual'](_0x1882f4['start']);}function Qt(_0x2de69f,_0x4940fd){if(!_0x2de69f['_isDataLoaded']||!_0x4940fd['_isDataLoaded'])return!0x1;const _0x199406=new Set(Object['keys'](_0x2de69f['attributes'])),_0x220872=new Set(Object['keys'](_0x4940fd['attributes']));if(_0x199406['delete']('groupId'),_0x220872['delete']('groupId'),0x0==_0x199406['size']&&0x0==_0x220872['size'])return!0x0;if(_0x199406['size']!=_0x220872['size'])return!0x1;const _0x470419={..._0x2de69f['attributes']},_0x5556f9={..._0x4940fd['attributes']};return delete _0x470419['groupId'],delete _0x5556f9['groupId'],JSON['stringify'](_0x470419)==JSON['stringify'](_0x5556f9);}function Xt(_0x5f4dec,_0x5e9fe3){const _0x4b23cb=Yt(_0x5f4dec['attributes']),_0x3bb79e=Yt(_0x5e9fe3);if(!_0x5f4dec['_isDataLoaded'])return!0x1;for(const _0x201a6e of Object['keys'](_0x3bb79e))if(!_0x2ed42c(_0x4b23cb[_0x201a6e],_0x3bb79e[_0x201a6e]))return!0x1;return!0x0;}function Yt(_0x365b64){const _0x37ffa7=Object['assign']({},_0x365b64);return delete _0x37ffa7['skipNestingCheck'],delete _0x37ffa7['tablePasteChainId'],_0x37ffa7;}class pe extends/* #__PURE__ -- @preserve */
25
+ _0x20a8ec(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x6a2d2d,_0x4b9797,_0x433d52,_0xbfcb72){super(),this['model']=_0x4b9797,this['view']=_0x433d52,this['commentThreadController']=_0xbfcb72,this['_editor']=_0x6a2d2d,this['_acceptCommand']=_0x6a2d2d['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x6a2d2d['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x41fa6e,_0x22f6d4)=>_0x41fa6e||_0x22f6d4),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0xca48a9=>_0xca48a9&&this['_editor']['model']['canEditAt'](_0x4b9797['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2323ab=>_0x2323ab&&this['_editor']['model']['canEditAt'](_0x4b9797['getRanges']())),this['_pendingAction']=null,_0x433d52['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x433d52,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x433d52,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x433d52,'change:isDirty',()=>{_0x433d52['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 _0x15dd18=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x15dd18);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x4869c9{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5e0029,_0x378419,_0x2cca69,_0x266b37){super(_0x5e0029),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x4ed1c1(_0x5e0029,c(_0x5e0029,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x378419['authoredAt']),this['bind']('authoredAt')['to'](_0x378419),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',_0x378419,'authoredAt',this,'descriptionParts',(_0x48855b,_0x890c40,_0x9a4776)=>{const _0x3cb0c9=_0x9a4776['map'](_0x24ffcb=>ls(_0x24ffcb['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x48855b-0x1,_0x378419['author']['name'],_0x890c40?_0x266b37['formatDateTime'](_0x890c40):'',new DOMParser()['parseFromString'](_0x3cb0c9,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2b238a(),this['focusTracker']=new _0x170b6f(),this['keystrokes']=new _0x21fab9(),this['focusCycler']=new _0x4816ad({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4d1be6=>_0x4d1be6['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x378419,this['_localUser']=_0x2cca69,this['_config']=_0x266b37,_0x266b37['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4db541(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xaa238a}=this['_config'];this['commentsListView']=new _0xaa238a(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',_0x28b1cd=>_0x28b1cd+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x276993,_0x56450b)=>_0x276993||!!_0x56450b);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1c858e}=this['_config'],_0x45b9f9=new _0x1c858e(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1feadc=_0x45b9f9['commentInputView'];return _0x45b9f9['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1feadc,'value',(_0x130c81,_0x55a527,_0x8e3959)=>!!_0x8e3959||_0x130c81&&!_0x55a527),_0x1feadc['on']('submit',(_0x350b66,_0x46af59)=>{this['fire']('addComment',_0x46af59),_0x1feadc['editor']['setData']('');}),_0x1feadc['on']('cancel',()=>this['focus']()),_0x1feadc['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x45b9f9;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x583494,_0x3971aa,_0x3e3a0d,_0x5707e9){super(_0x583494,_0x3971aa,_0x3e3a0d,_0x5707e9),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x338319=>_0x338319&&_0x338319[0x0]?_0x338319[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3cf3f1,_0x3b1079)=>{let _0x45bdf8='';for(const _0x2643ba of _0x3cf3f1)_0x45bdf8+='<p>'+ls(_0x2643ba['content'],_0x2643ba['color'])+'</p>';return _0x3b1079?_0x45bdf8:ti(_0x45bdf8,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5707e9['SuggestionView'](_0x583494,_0x3971aa,{'formatDateTime':_0x5707e9['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x20af5b=this['bindTemplate'],_0x48ce58=[this['suggestionView']];return this['commentsListView']&&_0x48ce58['push'](this['commentsListView']),this['commentThreadInputView']&&_0x48ce58['push'](this['commentThreadInputView']),_0x48ce58['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x20af5b['if']('isActive','ck-suggestion-wrapper--active'),_0x20af5b['to']('type',_0x32c0b9=>'ck-suggestion-'+_0x32c0b9),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':_0x20af5b['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x48ce58};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x4869c9{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x406ab6,_0x102dc3,_0x3ee02a){super(_0x406ab6),this['_model']=_0x102dc3,this['_config']=_0x3ee02a,this['set']('description',''),this['bind']('authoredAt')['to'](_0x102dc3),this['acceptButton']=this['_createButton'](c(_0x406ab6,'Accept\x20suggestion'),_0x331d03,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x406ab6,'Discard\x20suggestion'),_0x4c74c8,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x59bb09(_0x406ab6,_0x102dc3['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2b238a([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x170b6f(),this['keystrokes']=new _0x21fab9(),this['focusCycler']=new _0x4816ad({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x120324=>_0x120324['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xb09379=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xb09379['innerHTML']=this['description'],this['on']('change:description',(_0xeeca23,_0x561648,_0x5069a5)=>{_0xb09379['innerHTML']=_0x5069a5;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x4e0e31=this['bindTemplate'],_0x4ae734=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x4e0e31['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4e0e31['to']('authoredAt',_0x2b4c46=>this['_config']['formatDateTime'](_0x2b4c46))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x4ae734['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x4ae734}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x537144,_0x43dd3c,_0x44037b,_0x14fde7,_0x22314a){const _0x215e98=new _0x344f20(this['locale']);return _0x215e98['set']({'label':_0x537144,'icon':_0x43dd3c,'tooltip':!0x0,'tooltipPosition':_0x22314a}),_0x215e98['extendTemplate']({'attributes':{'class':_0x44037b}}),_0x215e98['on']('execute',()=>{this['fire'](_0x14fde7,this['_model']['id']);}),_0x215e98;}['_setupKeyboardNavigation'](){const _0x38a02d=this['element'];this['keystrokes']['listenTo'](_0x38a02d);for(const _0x2c9802 of this['focusables'])this['focusTracker']['add'](_0x2c9802['element']),this['keystrokes']['listenTo'](_0x2c9802['element']);this['keystrokes']['set']('enter',(_0x5c48df,_0x48797a)=>{_0x38a02d===_0x5c48df['target']&&(this['focusCycler']['focusFirst'](),_0x48797a());}),this['keystrokes']['set']('esc',(_0x58d2f9,_0x547392)=>{_0x38a02d!==_0x58d2f9['target']&&(this['focus'](),_0x547392());});}}class d extends _0x6abf95{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x50e121,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1f9d64){super(_0x1f9d64),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x529e5e=this['editor']['config'];_0x529e5e['define']('trackChanges.SuggestionThreadView',fe),_0x529e5e['define']('trackChanges.SuggestionView',we),_0x529e5e['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x529e5e['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1d4f66,_0x30c97a){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x369572,_0x1d8228]of this['_handleControllerBuffer']){const _0x17036a=this['_suggestionToController']['has'](_0x369572);_0x17036a||_0x1d8228?_0x17036a&&_0x1d8228&&this['_destroyController'](_0x369572):this['_initializeController'](_0x369572);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1d4f66,_0x30c97a);}['init'](){const _0x743e2f=this['editor'],_0x47c7cd=_0x743e2f['plugins']['get']('TrackChangesEditing'),_0x69847=_0x743e2f['plugins']['get']('Annotations'),_0x5e8647=_0x743e2f['plugins']['get']('EditorAnnotations'),_0x2a546e=_0x743e2f['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5e8647['addSourceCollector'](()=>{const _0x4042a9=[];for(const [_0x30756e,_0x281648]of Array['from'](this['_suggestionToController'])){const _0x156a4d=_0x30756e['getAllAdjacentSuggestions'](),_0x469bce=[];for(const _0x37022f of _0x156a4d){if(!_0x37022f['isInContent'])continue;if(_0x37022f['isMultiRange']){_0x469bce['push'](..._0x37022f['getRanges']());continue;}const _0xa0a43e=_0x37022f['getFirstRange']();if(_0x469bce['length']>0x0){const _0x148ca9=_0x469bce[0x0]['getJoined'](_0xa0a43e);if(_0x148ca9){_0x469bce[0x0]=_0x148ca9;continue;}}_0x469bce['push'](_0xa0a43e);}_0x4042a9['push']([_0x281648['view'],_0x469bce]);}return _0x4042a9;}),this['listenTo'](_0x47c7cd,'suggestionLoaded',(_0x3fe3f4,_0x35fa04)=>{this['listenTo'](_0x35fa04,'change:previous',(_0x379cee,_0x55ba7e,_0x4cd3bf,_0x42121a)=>{_0x35fa04['isInContent']&&(null==_0x4cd3bf?(this['_updateController'](_0x42121a['head']),this['_handleSuggestionControllerDelayed'](_0x35fa04,!0x1)):(this['_updateController'](_0x4cd3bf['head']),null==_0x42121a&&this['_handleSuggestionControllerDelayed'](_0x35fa04,!0x0)));}),null!==_0x35fa04['previous']?this['_updateController'](_0x35fa04['head']):this['_handleSuggestionControllerDelayed'](_0x35fa04,!0x1);}),this['listenTo'](_0x47c7cd,'suggestionUnloaded',(_0x1563af,_0x3cae08,_0x4ce2c8)=>{this['stopListening'](_0x3cae08,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3cae08),this['_suggestionToController']['has'](_0x3cae08)&&this['_destroyController'](_0x3cae08),_0x4ce2c8&&this['_updateController'](_0x4ce2c8['head']);}),this['listenTo'](_0x47c7cd,'suggestionChanged',(_0x440011,_0x5a6401)=>{this['_updateController'](_0x5a6401);}),this['listenTo'](_0x69847,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2a546e,'addComment',(_0xcd5b4b,{threadId:_0x3a69ff,isFromAdapter:_0x14ff41})=>{if(_0x14ff41||!_0x47c7cd['hasSuggestion'](_0x3a69ff))return;const _0x39c99d=_0x47c7cd['getSuggestion'](_0x3a69ff);this['_suggestionToController']['get'](_0x39c99d)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1059ec=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3374c6;for(const _0x575d91 in _0x1059ec){const _0x213268=_0x575d91,_0x54eb31=_0x1059ec[_0x213268];if('trackChangesLicenseKeyValid'==_0x54eb31||'trackChangesLicenseKeyInvalid'==_0x54eb31||'trackChangesLicenseKeyExpired'==_0x54eb31||'trackChangesLicenseKeyDomainLimit'==_0x54eb31||'trackChangesLicenseKeyNotAllowed'==_0x54eb31||'trackChangesLicenseKeyEvaluationLimit'==_0x54eb31||'trackChangesLicenseKeyTrialLimit'==_0x54eb31||'trackChangesLicenseKeyUsageLimit'==_0x54eb31){delete _0x1059ec[_0x213268],_0x3374c6=_0x54eb31,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x3374c6&&_0x1059ec['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x3374c6&&_0x1059ec['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x3374c6&&_0x1059ec['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x3374c6&&_0x1059ec['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x3374c6&&_0x1059ec['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x3374c6&&_0x1059ec['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x3374c6&&_0x1059ec['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x48ddcf=this['editor']['plugins']['get']('Annotations'),_0x36d822=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54a8b1=Array['from'](_0x48ddcf['activeAnnotations'],_0x30c049=>_0x30c049['innerView'])['filter'](_0x559cdd=>this['_viewToController']['has'](_0x559cdd)),_0x26d1f6=[];for(const _0xb38222 of _0x54a8b1){const _0x14c080=this['_viewToController']['get'](_0xb38222)['model']['getAllAdjacentSuggestions']();_0x26d1f6['push'](..._0x14c080['reduce']((_0xc3cb24,_0x508129)=>[..._0xc3cb24,..._0x508129['getMarkerNames']()],[]));}_0x36d822['activeMarkers']=_0x26d1f6;}['_addUIComponentsToFactory'](){const _0x16ace4=this['editor'],_0x3305aa=_0x16ace4['locale'],_0x2353d1=c(_0x3305aa,'Track\x20changes'),_0xbadfaa=new _0x1eb513([{'type':'switchbutton','model':new _0x2a21a9({'withText':!0x0,'isToggleable':!0x0,'label':_0x2353d1,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2a21a9({'withText':!0x0,'label':c(_0x3305aa,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2a21a9({'withText':!0x0,'label':c(_0x3305aa,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2a21a9({'withText':!0x0,'label':c(_0x3305aa,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2a21a9({'withText':!0x0,'label':c(_0x3305aa,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x16ace4['plugins']['has']('TrackChangesPreview')&&_0xbadfaa['addMany']([{'type':'separator'},{'type':'button','model':new _0x2a21a9({'withText':!0x0,'label':c(_0x3305aa,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3c62f0 of _0xbadfaa)if(ke(_0x3c62f0)){const _0x24301b=_0x16ace4['commands']['get'](_0x3c62f0['model']['commandName']);_0x3c62f0['model']['bind']('isOn','isEnabled')['to'](_0x24301b,'value','isEnabled');}_0x16ace4['ui']['componentFactory']['add']('trackChanges',_0x193b8f=>this['_createToolbarButton'](_0x193b8f,_0xbadfaa,_0x2353d1)),_0x16ace4['ui']['componentFactory']['add']('menuBar:trackChanges',_0x52ce40=>this['_createMenuBarMenu'](_0x52ce40,_0xbadfaa,_0x2353d1));}['_createToolbarButton'](_0x2b54eb,_0x4b5c79,_0xbb3879){const _0x4c3bab=_0x256442(_0x2b54eb,_0x113e9f),_0x4270a3=this['editor']['commands']['get']('trackChanges');_0x4c3bab['buttonView']['set']({'tooltip':_0xbb3879,'label':_0xbb3879,'icon':_0x21c474}),_0x4c3bab['buttonView']['bind']('isOn')['to'](_0x4270a3,'value'),_0x4c3bab['buttonView']['on']('execute',()=>{_0x4270a3['execute'](),this['editor']['editing']['view']['focus']();}),_0x2ba772(_0x4c3bab,_0x4b5c79,{'role':'menu'});const _0x479659=[];for(const _0x1f69e8 of _0x4b5c79)ke(_0x1f69e8)&&_0x479659['push'](this['editor']['commands']['get'](_0x1f69e8['model']['commandName']));const _0x47176c=_0x4c3bab['buttonView'];return _0x47176c['actionView']['unbind']('isEnabled'),_0x47176c['arrowView']['unbind']('isEnabled'),_0x47176c['actionView']['bind']('isEnabled')['to'](_0x4270a3,'isEnabled'),_0x47176c['arrowView']['bind']('isEnabled')['toMany'](_0x479659,'isEnabled',(..._0x19f764)=>_0x19f764['some'](_0x3c52ab=>_0x3c52ab)),_0x4c3bab['on']('execute',_0x5dad5b=>{this['editor']['execute'](_0x5dad5b['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4c3bab;}['_createMenuBarMenu'](_0x23e7b1,_0x1f82ac,_0x3a2d7e){const _0x18bc3c=new _0xada8a8(_0x23e7b1),_0x4b6eac=this['editor']['commands']['get']('trackChanges');_0x18bc3c['buttonView']['set']({'label':_0x3a2d7e,'icon':_0x21c474});const _0x371660=new _0x4dea8c(_0x23e7b1);for(const _0x2a6f5d of _0x1f82ac){if('separator'==_0x2a6f5d['type']){_0x371660['items']['add'](new _0x24ca2b(_0x23e7b1));continue;}const _0x14efef=new _0x2cab97(_0x23e7b1,_0x18bc3c),_0x54bf04=new _0x153ad4(_0x23e7b1),_0x17d4db=_0x2a6f5d['model'];_0x54bf04['bind'](...Object['keys'](_0x17d4db))['to'](_0x17d4db),_0x54bf04['delegate']('execute')['to'](_0x18bc3c),_0x54bf04['on']('execute',()=>{this['editor']['execute'](_0x17d4db['commandName']),this['editor']['editing']['view']['focus']();}),_0x14efef['children']['add'](_0x54bf04),_0x371660['items']['add'](_0x14efef);}return _0x18bc3c['bind']('isEnabled')['to'](_0x4b6eac,'isEnabled'),_0x18bc3c['panelView']['children']['add'](_0x371660),_0x18bc3c;}['_initializeController'](_0x6a2a83){const _0x159af6=this['editor'],_0x4a93c2=_0x159af6['config'],_0x421042=_0x159af6['plugins']['get']('Annotations'),_0x232739=_0x159af6['plugins']['get']('CommentsRepository'),_0x57e0e1=_0x159af6['plugins']['get']('EditorAnnotations'),_0x35750b=_0x159af6['plugins']['get'](_0x50e121)['me'],_0x10fa76=_0x4a93c2['get']('trackChanges')['SuggestionThreadView'],_0x21bdba=_0x4a93c2['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x6483e0,CommentThreadInputView:_0x385a86}=_0x159af6['plugins']['get']('CommentsUI');let _0x1eacfe,_0x57e371,_0x358512;this['_annotationViews']['has'](_0x6a2a83['id'])?(_0x57e371=this['_annotationViews']['get'](_0x6a2a83['id']),_0x1eacfe=_0x57e371['mainView']):(_0x1eacfe=new _0x10fa76(_0x159af6['locale'],_0x6a2a83,_0x35750b,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4a93c2['get']('comments.editorConfig'),'licenseKey':_0x4a93c2['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4a93c2['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4a93c2['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4a93c2['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x475024(_0x4a93c2['get']('locale'),_0x159af6['locale']),'CommentView':_0x4a93c2['get']('comments')['CommentView'],'CommentsListView':_0x6483e0,'CommentThreadInputView':_0x385a86,'SuggestionView':_0x21bdba}),_0x1eacfe['suggestionView']['acceptButton']['on']('execute',()=>{_0x159af6['editing']['view']['focus']();}),_0x1eacfe['suggestionView']['discardButton']['on']('execute',()=>{_0x159af6['editing']['view']['focus']();}),_0x57e371=_0x421042['createAnnotationView'](this['editor']['locale'],_0x1eacfe),_0x57e371['bind']('isDirty')['to'](_0x1eacfe,'isDirty'),_0x57e371['bind']('length')['to'](_0x1eacfe),_0x57e371['bind']('type')['to'](_0x1eacfe,'type',_0x17d28f=>'suggestion-'+_0x17d28f),_0x1eacfe['on']('escape',()=>{_0x358512['fire']('escape');}),this['_annotationViews']['set'](_0x6a2a83['id'],_0x57e371));const _0x3461a3=_0x232739['createCommentThreadController'](_0x6a2a83['commentThread'],_0x1eacfe),_0x4cd773=new pe(_0x159af6,_0x6a2a83,_0x1eacfe,_0x3461a3),_0x119893=_0x6a2a83['getAllAdjacentSuggestions']()['filter'](_0x5a6939=>_0x5a6939['isInContent']);_0x1eacfe['descriptionParts']=_0x159af6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x119893),this['_suggestionToController']['set'](_0x6a2a83,_0x4cd773),this['_viewToController']['set'](_0x1eacfe,_0x4cd773),_0x358512=_0x421042['createAnnotation']({'view':_0x57e371,'target':()=>{const _0x559af8=[],_0x40daac=_0x6a2a83['getAllAdjacentSuggestions']()['filter'](_0x30053e=>_0x30053e['isInContent']);for(const _0x3a5cb8 of _0x40daac)_0x559af8['push'](..._0x3a5cb8['getMarkers']());return _0x53e677(_0x159af6['editing'],_0x559af8);},'type':()=>'suggestion-'+_0x4cd773['view']['type']}),_0x232739['_bindAnnotationToEditors'](_0x1eacfe,_0x358512),_0x421042['add'](_0x358512),_0x57e0e1['registerAnnotation'](_0x358512);}['_destroyController'](_0x311690){const _0x1792b0=this['editor']['plugins']['get']('CommentsRepository'),_0x23acf1=this['editor']['plugins']['get']('Annotations'),_0x27af6a=this['_suggestionToController']['get'](_0x311690),_0x39a61b=_0x27af6a['view'],_0x7ec405=_0x23acf1['getByInnerView'](_0x39a61b);_0x1792b0['_unbindEditors'](_0x39a61b),_0x7ec405&&_0x23acf1['remove'](_0x7ec405),this['_suggestionToController']['delete'](_0x311690),this['_viewToController']['delete'](_0x39a61b),_0x27af6a['destroy']();}['_updateController'](_0x320d2f){if(!_0x320d2f['isInContent']||!this['_suggestionToController']['has'](_0x320d2f))return;const _0x28cd1e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d3c7a=this['_suggestionToController']['get'](_0x320d2f),_0x5523e6=_0x320d2f['getAllAdjacentSuggestions']();_0x5d3c7a['view']['descriptionParts']=_0x28cd1e['descriptionFactory']['getDescriptions'](_0x5523e6);}['destroy'](){for(const _0x5e35c5 of this['_suggestionToController']['keys']())this['_destroyController'](_0x5e35c5);for(const _0x1eff65 of this['_annotationViews']['values']())_0x1eff65['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x37f5d0){return'model'in _0x37f5d0;}class k extends _0x6abf95{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x299d2f){this['editor']['plugins']['get'](p)['adapter']=_0x299d2f;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x48026){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x48026);}['getSuggestions']({skipNotAttached:_0x12ff62=!0x1,toJSON:_0x478515=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x12ff62,'toJSON':_0x478515});}['getSuggestion'](_0x2404f1){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2404f1);}}const w=['Pagination'];class T extends _0x6abf95{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x465289=this['editor'];if(_0x465289['config']['define']('trackChangesData.editorCreator',_0x37a7f1=>{const _0x3ec443=_0x465289['model']['document']['getRootNames']()['reduce']((_0x32ca76,_0x25ca5a)=>(_0x32ca76[_0x25ca5a]='',_0x32ca76),{});return _0x465289['constructor']['create'](_0x3ec443,_0x37a7f1);}),'function'!=typeof _0x465289['config']['get']('trackChangesData')['editorCreator'])throw new _0x3d469d('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x1f1060){return N(this['editor'],!0x0,_0x1f1060);}['getDataWithDiscardedSuggestions'](_0x454cd5){return N(this['editor'],!0x1,_0x454cd5);}}class D extends _0x6abf95{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x116537){function _0x143e4f(_0x2cecc6){return _0x2cecc6['map'](_0x308e=>String['fromCharCode'](_0x308e))['join']('');}super(_0x116537),this['result']='end',_0x116537[_0x143e4f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x143e4f([0x76,0x69,0x65,0x77])][_0x143e4f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x143e4f([0x61,0x75,0x74,0x6f]),_0x116537[_0x143e4f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x143e4f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x143e4f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x143e4f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x143e4f([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Ge(_0x50a34a){return void 0x0!==_0x50a34a['getRootsAttributes'];}async function N(_0x55c164,_0x2a55a8,_0x3f35b6){const _0x25e615=_0x3c2b33(_0x55c164,w);_0x25e615['plugins']['push'](p,D),_0x25e615['rootsAttributes']=Ge(_0x55c164)?_0x55c164['getRootsAttributes']():void 0x0;const _0x23bbdf=document['createDocumentFragment'](),_0x27415a=_0x55c164['config']['get']('trackChangesData')['editorCreator'],_0x1e1a00=await _0x27415a(_0x25e615,()=>function(_0x295842){const _0x4b6e68=document['createElement']('div');return _0x295842['appendChild'](_0x4b6e68),_0x4b6e68;}(_0x23bbdf));!function(_0xfe17b5,_0x349a37){const _0x3da2df=_0xfe17b5['model']['document']['getRootNames']()['reduce']((_0x2e567b,_0x5c6e66)=>(_0x2e567b[_0x5c6e66]=_0xfe17b5['data']['get']({'rootName':_0x5c6e66}),_0x2e567b),{}),_0x3f9655=_0xfe17b5['plugins']['get']('Users')['users']['map'](_0x2be255=>({'id':_0x2be255['id'],'name':_0x2be255['name']})),_0x3639ff=_0xfe17b5['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x791ad=_0xfe17b5['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x311203=_0x349a37['plugins']['get']('Users'),_0x1092e9=_0x349a37['plugins']['get']('TrackChangesEditing'),_0x4aec31=_0x349a37['plugins']['get']('CommentsRepository');for(const _0x3588a3 of _0x4aec31['getCommentThreads']())_0x3588a3['remove']();for(const _0x56b70f of _0x3f9655)_0x311203['getUser'](_0x56b70f['id'])||_0x311203['addUser'](_0x56b70f);_0x311203['me']||_0x311203['useAnonymousUser']();for(const _0x5eefd3 of _0x791ad)_0x4aec31['addCommentThread'](_0x5eefd3);for(const _0x51427d of _0x3639ff)_0x1092e9['addSuggestionData'](_0x51427d);_0x349a37['data']['set'](_0x3da2df);}(_0x55c164,_0x1e1a00),_0x1e1a00['execute'](_0x2a55a8?'acceptAllSuggestions':'discardAllSuggestions');const _0x2b0731=Ge(_0x1e1a00)?_0x1e1a00['getFullData'](_0x3f35b6):_0x1e1a00['data']['get'](_0x3f35b6);return await _0x1e1a00['destroy'](),_0x2b0731;}class Me extends _0x4869c9{['options'];constructor(_0x3dee5a,_0x337ffa){super(_0x3dee5a),this['options']=_0x337ffa,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'](_0x488f31,_0x49f18f){if(!this['element'])return;const _0x2a68eb=[];for(const [_0x160729,_0x1f7e55]of _0x488f31){const _0x17c8a1=document['createElement']('div');_0x17c8a1['setAttribute']('data-ck-root-name',_0x160729),_0x17c8a1['className']=_0x1f7e55['classes']+'\x20ck-track-changes-preview__root-container',_0x17c8a1['innerHTML']=_0x1f7e55['content'],_0x2a68eb['push'](_0x17c8a1);}_0x49f18f(this['element'],_0x2a68eb),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0xd9491d{constructor(_0x56b9ef){super(_0x56b9ef),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x2fce96=this['editor'],_0x214e6b=_0x2fce96['locale'],_0x20034b=_0x2fce96['plugins']['get']('Dialog');let _0x25fc89;const _0x6cc145=function(_0x5b1962){const _0x5ecdc1={};if('editables'in _0x5b1962['ui']['view']){for(const [_0x225f07,_0x324235]of Object['entries'](_0x5b1962['ui']['view']['editables']))_0x5ecdc1[_0x225f07]=_0x324235['element'];}else _0x5ecdc1[_0x5b1962['model']['document']['getRootNames']()[0x0]]=_0x5b1962['ui']['view']['editable']['element'];return _0x5ecdc1;}(_0x2fce96),_0x43f11b=function(_0x2e31b4){let _0x4789b9=0x0;for(const _0x177d9f of Object['values'](_0x2e31b4))_0x4789b9=Math['max'](_0x4789b9,_0x177d9f['getBoundingClientRect']()['width']);let _0x339bf3=0x0;for(const _0x20e879 of Object['values'](_0x2e31b4))_0x339bf3+=_0x20e879['getBoundingClientRect']()['height'];const _0x52e222=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x908e92=Math['min'](_0x339bf3,_0x52e222);return{'width':_0x4789b9,'height':_0x908e92};}(_0x6cc145);_0x20034b['show']({'id':'finalContentPreview','title':c(_0x214e6b,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x214e6b,{'dialogRects':_0x43f11b}),'onHide':()=>{_0x25fc89['detachFromDom']();},'onShow':()=>{_0x2fce96['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x231db8=>{const _0x40872c=this['_standarizeRootsData'](_0x231db8,_0x2fce96,_0x6cc145);_0x20034b['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x40872c,_0x2fce96['config']['get']('trackChanges.preview.renderFunction'));}),_0x25fc89=new _0x4dcb6c(_0x214e6b,[_0x20034b['view']]),_0x25fc89['attachToDom'](),_0x25fc89['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x2fce96['once']('destroy',()=>{_0x25fc89['detachFromDom']();});const _0x5bc486=_0x20034b['view']['headerView']['class'];_0x20034b['view']['headerView']['class']=_0x5bc486?_0x5bc486+'\x20ck-reset_all':'ck-reset_all',_0x20034b['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x20034b['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3145ee=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x307de0=_0x3145ee['previewMode'],_0x31864e={};if('$labels'===_0x307de0){for(const _0x10a729 of _0x3145ee['getMergeFieldsIds']())_0x31864e[_0x10a729]=_0x3145ee['getLabel'](_0x10a729)||_0x10a729;}else{const _0xff01b='$defaultValues'===_0x307de0?_0x3145ee['getDefaultValues']():_0x3145ee['getDataSetValues'](_0x307de0,!0x0);for(const _0x593329 of Object['entries'](_0xff01b)){const [_0x4926a0,_0x1ceaca]=_0x593329;_0x31864e[_0x4926a0]=null!==_0x1ceaca?_0x1ceaca:_0x3145ee['getLabel'](_0x4926a0)||_0x4926a0;}}return{'mergeFieldsData':_0x31864e};}['_standarizeRootsData'](_0x29e315,_0x35af2c,_0x43d433){let _0x24cd38;if('string'==typeof _0x29e315){const _0x1ef391=_0x35af2c['model']['document']['getRootNames']()[0x0];_0x24cd38={[_0x1ef391]:_0x29e315};}else _0x24cd38=_0x29e315;const _0x2e1bbd=this['_fixMediaEmbeds'](_0x24cd38,_0x35af2c),_0x1c6612=function(_0x1efb7d,_0x31ed05){for(const [_0x17c46e,_0x7156da]of _0x1efb7d)_0x7156da['classes']=_0x31ed05[_0x17c46e]['classList']['value']['replace']('ck-focused','');return _0x1efb7d;}(this['_sortRoots'](_0x35af2c)['reduce']((_0x5d42fa,_0x22dfb7)=>(_0x5d42fa['push']([_0x22dfb7,{'content':_0x2e1bbd[_0x22dfb7],'classes':''}]),_0x5d42fa),[]),_0x43d433);return _0x1c6612;}['_fixMediaEmbeds'](_0x51c69b,_0x316095){if(!_0x316095['plugins']['has']('MediaEmbedEditing'))return _0x51c69b;const _0x200c46=_0x316095['plugins']['get']('MediaEmbedEditing');for(const [_0xc34a63,_0x5922c1]of Object['entries'](_0x51c69b)){const _0x2d4553=document['createElement']('div');_0x2d4553['innerHTML']=_0x5922c1,(_0x2d4553['querySelectorAll']('figure.media')['forEach'](_0x5b81ed=>{const _0x567091=_0x5b81ed['querySelector']('oembed');if(_0x567091){const _0x211f14=_0x567091['getAttribute']('url');if(_0x211f14){const _0x26ceb6=_0x200c46['registry']['getMediaViewElement'](new _0x43f942(_0x316095['editing']['view']['document']),_0x211f14,{'elementName':'','renderForEditingView':!0x0}),_0x368c38=document['createElement']('div');_0x368c38['classList']['add']('ck-media__wrapper'),_0x26ceb6['render'](_0x368c38,_0x316095['editing']['view']['domConverter']),_0x567091['replaceWith'](_0x368c38);}}}),_0x51c69b[_0xc34a63]=_0x2d4553['innerHTML']);}return _0x51c69b;}['_sortRoots'](_0xbc2284){if(!function(_0xa64b93){return void 0x0!==_0xa64b93['getRootsAttributes'];}(_0xbc2284))return _0xbc2284['model']['document']['getRootNames']();const _0x205a3c=[],_0x15ebd9=new Map();for(const _0x23b989 of _0xbc2284['model']['document']['getRootNames']()){const _0x105e2f=_0xbc2284['editing']['view']['getDomRoot'](_0x23b989)['getClientRects']()['item'](0x0);_0x205a3c['push'](_0x23b989),_0x15ebd9['set'](_0x23b989,_0x105e2f);}return _0x205a3c['sort']((_0x5c29c5,_0x28d7b6)=>{const _0x30dcfd=_0x15ebd9['get'](_0x5c29c5),_0x46665b=_0x15ebd9['get'](_0x28d7b6);return _0x30dcfd['y']-_0x46665b['y']||_0x30dcfd['x']-_0x46665b['x'];}),_0x205a3c;}}class te extends _0x6abf95{static get['requires'](){return[T,_0x85a51a];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5720d7){super(_0x5720d7),_0x5720d7['commands']['add']('previewFinalContent',new re(this['editor'])),_0x5720d7['config']['define']('trackChanges.preview.renderFunction',(_0x56b145,_0x3f60fb)=>{for(const _0x2a6d32 of _0x3f60fb)_0x56b145['appendChild'](_0x2a6d32);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};