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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x5a0633,Plugin as _0x282945,PendingActions as _0x372fca}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x26e73b,ObservableMixin as _0x1a2cfb,uid as _0x31d37c,priorities as _0x4f4e3d,insertToPriorityArray as _0x49235f,toArray as _0x42ae64,logWarning as _0x490d61,getEnvKeystrokeText as _0x2f913b,FocusTracker as _0x268bfe,KeystrokeHandler as _0x2f650f,Collection as _0x67f686}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x2fed04,IconCancel as _0x3e0e7e,IconTrackChanges as _0x3ad971}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x1af663,View as _0x1868f3,ViewCollection as _0x393ec0,FocusCycler as _0x141c97,UIModel as _0x3b0aa4,createDropdown as _0x4fdd67,SplitButtonView as _0x58af67,addListToDropdown as _0x54e0ef,MenuBarMenuView as _0x22d59a,MenuBarMenuListView as _0x1a1985,ListSeparatorView as _0x3b8d59,MenuBarMenuListItemView as _0x36d9e7,MenuBarMenuListItemButtonView as _0x178445,BodyCollection as _0x4431a9,Dialog as _0x4d6eed}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x547438,DocumentCompare as _0x2b28d7,hashObject as _0x5816e7,surroundingMarkersDetector as _0x519d40,FOCUS_ANNOTATION_KEYSTROKE as _0x503ef8,AriaDescriptionView as _0x19030a,setupThreadKeyboardNavigation as _0x36abfc,trimHtml as _0x404817,UserView as _0x380cd8,LateFocusButtonView as _0x4d4366,getDateTimeFormatter as _0x5e566b,getAllMarkersDomElementsSorted as _0x179909,sanitizeEditorConfig as _0x292fd3}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x3ab53f,ModelLiveRange as _0x289cfe,ModelLivePosition as _0x5ca526,ModelPosition as _0xe67534,ModelRange as _0x2229c9,_DetachOperation as _0x43691b,ViewDowncastWriter as _0x5c1fbc}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0xff8d88,toWidget as _0x1154bb}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x5df093,set as _0x41e244,isEqual as _0x5a9c50,unset as _0x211734,omit as Gt}from'es-toolkit/compat';import{Delete as _0x43782a,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4dca4c}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x138405}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x5a0633{['_enabledCommands'];constructor(_0x4a30f8,_0x52ae78){super(_0x4a30f8),this['_enabledCommands']=_0x52ae78,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 _0x20f796 of this['editor']['commands']['commands']())_0x20f796['affectsData']&&!this['_enabledCommands']['has'](_0x20f796)&&_0x20f796['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x376699 of this['editor']['commands']['commands']())_0x376699['affectsData']&&!this['_enabledCommands']['has'](_0x376699)&&_0x376699['clearForceDisabled']('TrackChangesCommand');}}class T extends _0x5a0633{['_suggestions'];constructor(_0x563baa,_0x344a16){super(_0x563baa),this['_suggestions']=_0x344a16,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2f0c3c){const _0x448d32=this['_suggestions']['get'](_0x2f0c3c);if(!_0x448d32)throw new _0x26e73b('track-changes-accept-suggestion-not-found',this);const _0x707b42=_0x448d32['getRanges']();this['editor']['model']['canEditAt'](_0x707b42)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x448d32);}}class O extends _0x5a0633{['_suggestions'];constructor(_0x393b6f,_0x4ec05b){super(_0x393b6f),this['_suggestions']=_0x4ec05b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x125e91){const _0x51516c=this['_suggestions']['get'](_0x125e91);if(!_0x51516c)throw new _0x26e73b('track-changes-discard-suggestion-not-found',this);const _0xf94297=_0x51516c['getRanges']();this['editor']['model']['canEditAt'](_0xf94297)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x51516c);}}function ls(_0x5e8bed,_0xa77f85){let _0x563f2c='';return _0x563f2c+=_0x5e8bed['split']('*')['map']((_0x2b309e,_0x167253)=>_0x167253%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+tn(_0x2b309e)+'</span>':tn(_0x2b309e))['join'](''),_0xa77f85&&(_0x563f2c+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xa77f85['value']+'\x22\x20title=\x22'+_0xa77f85['title']+'\x22></span>'),_0x563f2c;}function tn(_0x2f150f){const _0x166a41=document['createElement']('span');return _0x166a41['innerText']=_0x2f150f,_0x166a41['innerHTML'];}function ts(_0x4cdcd8){return _0x4cdcd8['sort']((_0x454bb0,_0x3e08d0)=>'attribute'===_0x454bb0['type']&&'attribute'!==_0x3e08d0['type']?-0x1:'attribute'!==_0x454bb0['type']&&'attribute'===_0x3e08d0['type']?0x1:'deletion'==_0x454bb0['type']&&'deletion'!=_0x3e08d0['type']?-0x1:'deletion'!=_0x454bb0['type']&&'deletion'==_0x3e08d0['type']?0x1:0x0);}function to(_0x5631ce,_0xb8bdce){let _0x21b82f,_0x3de5a7=0x0;const _0x177a25=[],_0x5ca86e=_0xb8bdce['schema'];for(;_0x3de5a7<_0x5631ce['length'];){const _0x5ed6c0=_0x5631ce[_0x3de5a7],_0x476a2d=_0x5631ce[_0x3de5a7+0x1];_0x21b82f||(_0x21b82f=_0xb8bdce['createPositionBefore'](_0x5ed6c0)),nn(_0xb8bdce,_0x5ed6c0,_0x476a2d)||(_0x177a25['push'](_0xb8bdce['createRange'](_0x21b82f,_0x5ca86e['isObject'](_0x5ed6c0)?_0xb8bdce['createPositionAfter'](_0x5ed6c0):_0xb8bdce['createPositionAt'](_0x5ed6c0,'end'))),_0x21b82f=null),_0x3de5a7++;}return _0x177a25;}function nn(_0x347137,_0x2ba93b,_0x263f62){if(!_0x263f62)return!0x1;const _0x54ea41=_0x347137['createPositionAfter'](_0x2ba93b),_0x232100=_0x347137['createPositionBefore'](_0x263f62);return _0x54ea41['isTouching'](_0x232100);}function rs(_0x41a59c,_0x2cef92,_0x30ed08){for(;_0x30ed08['length'];){const _0x1fd077=_0x30ed08['splice'](0x0,0x64);_0x41a59c['change'](()=>{for(const _0x48ac3a of _0x1fd077)_0x48ac3a['isInContent']&&_0x2cef92['execute'](_0x48ac3a['id']);});}}class x extends _0x5a0633{['_command'];['_suggestions'];constructor(_0x29bab4,_0x4227d4,_0x617abb){super(_0x29bab4),this['_command']=_0x4227d4,this['_suggestions']=_0x617abb,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x411a95=Array['from'](this['_suggestions']['values']())['some'](_0x20f97d=>_0x20f97d['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x411a95;}['execute'](){const _0x35cd16=ts(Array['from'](this['_suggestions']['values']()));for(const _0x180da6 of _0x35cd16){const _0x3b6f34=_0x180da6['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3b6f34))return;}rs(this['editor']['model'],this['_command'],_0x35cd16);}}class E extends _0x5a0633{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x12fed5,_0x25b6a9,_0x9e8f89){super(_0x12fed5),this['_command']=_0x25b6a9,this['_suggestions']=_0x9e8f89,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x583805=this['editor']['model']['document']['selection'],_0x44e343=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x33e565,_0x85b271){const _0x5812da=Array['from'](_0x33e565['getRanges']()),_0x246e85=new Set();for(const _0x4910e5 of _0x85b271)if(_0x4910e5['isInContent']){for(const _0x448c35 of _0x5812da)for(const _0xeb29af of _0x4910e5['getRanges']())(_0x448c35['isIntersecting'](_0xeb29af)||_0x33e565['isCollapsed']&&!_0x4910e5['isMultiRange']&&_0x4910e5['next']&&_0xeb29af['end']['isTouching'](_0x448c35['start']))&&_0x246e85['add'](_0x4910e5);}return _0x246e85;}(_0x583805,_0x44e343),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x5c0367=ts(Array['from'](this['_selectedSuggestions']));for(const _0x2be22c of _0x5c0367){const _0x447518=_0x2be22c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x447518))return;}rs(this['editor']['model'],this['_command'],_0x5c0367);}}class R extends/* #__PURE__ -- @preserve */
24
- _0x1a2cfb(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4c791f,_0x4a90a3){super(),this['id']=_0x4a90a3['id'],this['type']=_0x4a90a3['type'],this['subType']=_0x4a90a3['subType']||null,this['author']=_0x4a90a3['author'],this['creator']=_0x4a90a3['creator']||_0x4a90a3['author'],this['isExternal']=Boolean(_0x4a90a3['attributes']&&_0x4a90a3['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x4a90a3['originalSuggestionId']||null,this['_model']=_0x4c791f,this['_onAccept']=_0x4a90a3['onAccept'],this['_onDiscard']=_0x4a90a3['onDiscard'],this['_onAttributesChange']=_0x4a90a3['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4a90a3['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 _0x27b600=this;for(;_0x27b600['previous'];)_0x27b600=_0x27b600['previous'];return _0x27b600;}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'](_0x473920){this['_markerNames']['add'](_0x473920);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x425f1c=>this['_model']['markers']['get'](_0x425f1c))['filter'](_0x1d583=>_0x1d583);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2c4190=>{for(const _0x367918 of this['getMarkers']())_0x2c4190['removeMarker'](_0x367918);}),this['_markerNames']['clear']();}['removeMarker'](_0x143161){this['_model']['change'](_0x36c8e7=>{_0x36c8e7['removeMarker'](_0x143161);}),this['_markerNames']['delete'](_0x143161);}['addRange'](_0x1e18cb){const _0x4ca12d='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+R['getMultiRangeId']();this['addMarkerName'](_0x4ca12d),this['_model']['change'](_0x3e3835=>{_0x3e3835['addMarker'](_0x4ca12d,{'range':_0x1e18cb,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5da391){for(const _0x5954e8 of this['getRanges']())if(_0x5954e8['isIntersecting'](_0x5da391))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x57bab5=>_0x57bab5['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x44368e,_0x42eedd)=>[..._0x44368e,..._0x42eedd['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x35a815=this['getRanges']();if(0x1!=_0x35a815['length'])return null;const _0x296307=_0x35a815[0x0],_0x50326=_0x296307['start']['nodeAfter'],_0xb53221=_0x296307['end']['nodeBefore'];return _0x50326 instanceof _0x3ab53f?_0x50326!=_0xb53221?null:_0x50326: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 _0x53d475=[];let _0x2dec51=this['head'];for(;_0x2dec51;)_0x53d475['push'](_0x2dec51),_0x2dec51=_0x2dec51['next'];return _0x53d475;}['setAttribute'](_0x309f83,_0x38d618){const _0x4749f1=_0x5df093(this['attributes']);_0x41e244(_0x4749f1,_0x309f83,_0x38d618),_0x5a9c50(_0x4749f1,this['attributes'])||(this['attributes']=_0x4749f1,this['_onAttributesChange'](_0x4749f1));}['removeAttribute'](_0xde6d60){const _0x3ed7ff=_0x5df093(this['attributes']);_0x211734(_0x3ed7ff,_0xde6d60),_0x5a9c50(_0x3ed7ff,this['attributes'])||(this['attributes']=_0x3ed7ff,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 _0x31d37c()['substr'](0x1,0x5);}}function o(_0x3d08d5,_0x57ce6c,_0x45aab7){const _0x17832e=_0x3d08d5['t'],t=_0x3d08d5['t'];switch(_0x57ce6c){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',_0x45aab7);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x45aab7);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x45aab7);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x45aab7);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x45aab7);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',_0x45aab7);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x45aab7);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',_0x45aab7);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x45aab7);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x45aab7);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x45aab7);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x45aab7);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x45aab7);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x45aab7);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x45aab7);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x45aab7);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x45aab7);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x45aab7);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x45aab7);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x45aab7);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x45aab7);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x45aab7);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x45aab7);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x45aab7);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x45aab7);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'},_0x45aab7);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x45aab7);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x45aab7);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x45aab7);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x45aab7);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x45aab7);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x45aab7);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x45aab7);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'},_0x45aab7);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x45aab7);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x45aab7);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x45aab7);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x45aab7);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'},_0x45aab7);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x45aab7);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'},_0x45aab7);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'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'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'},_0x45aab7);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x45aab7);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'},_0x45aab7);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x45aab7);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'},_0x45aab7);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x45aab7);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x45aab7);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'},_0x45aab7);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x45aab7);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 _0x17832e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x45aab7);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x17832e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x45aab7);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x45aab7);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'},_0x45aab7);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'},_0x45aab7);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'},_0x45aab7);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x57ce6c;}}class U{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x23be99,_0x4dd005){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x23be99,this['_locale']=_0x4dd005;}['getDescriptions'](_0x5dbc16){const _0xe55562=[],_0x523aba=new Set(),_0x9fbe2b=new Set();for(let _0x39fa74=0x0;_0x39fa74<_0x5dbc16['length'];_0x39fa74++){const _0x44ec76=_0x5dbc16[_0x39fa74];if(!_0x44ec76['isInContent'])continue;const _0x490806=this['_handleCustomCallbackDescription'](_0x44ec76);if(_0x490806){if(null!=_0x44ec76['subType']){if(_0x523aba['has'](_0x44ec76['subType']))continue;_0x523aba['add'](_0x44ec76['subType']);}_0xe55562['push'](_0x490806);}else{if('attribute'==_0x44ec76['type']){const _0x2f8b4e=_0x44ec76['data']['key'];if(_0x9fbe2b['has'](_0x2f8b4e))continue;_0x9fbe2b['add'](_0x44ec76['data']['key']),_0x2f8b4e==m?this['_handleRenameSuggestionDescription'](_0xe55562,_0x44ec76):this['_handleAttributeSuggestionDescription'](_0xe55562,_0x44ec76);continue;}'insertion'!=_0x44ec76['type']&&'deletion'!=_0x44ec76['type']||this['_handleInsertRemoveSuggestionDescription'](_0xe55562,_0x44ec76,_0x5dbc16[_0x39fa74+0x1]);}}return this['_resolveDescriptionItems'](_0xe55562);}['registerDescriptionCallback'](_0x48e119){this['_customCallbacks']['push'](_0x48e119);}['registerElementLabel'](_0x244371,_0x1604c2,_0x229eae=_0x4f4e3d['normal']){'function'==typeof _0x244371?_0x49235f(this['_itemLabelsCallbacks'],{'matchingCallback':_0x244371,'label':_0x1604c2,'priority':_0x229eae}):this['_itemLabels']['set'](_0x244371,_0x1604c2);}['registerAttributeLabel'](_0x2b40e3,_0x4cb31b){this['_attributeLabels']['set'](_0x2b40e3,_0x4cb31b);}['getItemLabel'](_0x56ff55,_0x426ad2=0x1){let _0x4a3e6f;for(const _0x12680d of this['_itemLabelsCallbacks'])if(_0x12680d['matchingCallback'](_0x56ff55)){_0x4a3e6f=_0x12680d['label'];break;}return _0x4a3e6f||(_0x4a3e6f=this['_itemLabels']['get'](_0x56ff55['name'])),_0x4a3e6f?_0x4a3e6f(_0x426ad2):0x1!==_0x426ad2?_0x426ad2+'\x20'+_0x56ff55['name']+'s':''+_0x56ff55['name'];}['_addDescriptionItems'](_0xbafdc3,_0x3ea6e6){const _0x1ad13a=_0x3ea6e6['getFirstRange']()['getWalker'](),_0x158f04='insertion'==_0x3ea6e6['type']?'add':'remove';for(const _0x1b0e04 of _0x1ad13a){const _0x34e95a=_0x1b0e04['item'],_0x2d6b3f=_0xbafdc3[_0xbafdc3['length']-0x1];if(_0x34e95a['is']('$textProxy'))_0x2d6b3f&&_0x2d6b3f['type']['indexOf']('Container')>-0x1&&_0xbafdc3['pop'](),_0x2d6b3f&&'text'==_0x2d6b3f['type']?_0x2d6b3f[_0x158f04]+=_0x34e95a['data']:_0xbafdc3['push']({'type':'text','add':'add'==_0x158f04?_0x34e95a['data']:'','remove':'remove'==_0x158f04?_0x34e95a['data']:''});else{if(this['_schema']['isObject'](_0x34e95a)){const _0x381acd=_0x34e95a;if(_0x2d6b3f&&_0x2d6b3f['type']['indexOf']('Container')>-0x1&&_0xbafdc3['pop'](),'elementEnd'==_0x1b0e04['type'])continue;_0x2d6b3f&&_0x2d6b3f['type']==_0x158f04+'Object'&&_0x2d6b3f['element']['name']==_0x381acd['name']?_0x2d6b3f['quantity']++:_0xbafdc3['push']({'type':_0x158f04+'Object','element':_0x381acd,'quantity':0x1}),_0x1ad13a['skip'](_0x364a70=>!('elementEnd'==_0x364a70['type']&&_0x364a70['item']==_0x34e95a));}else{if(this['_schema']['checkChild'](_0x34e95a,'$text')||_0x34e95a['is']('element','softBreak')){const _0x100481=_0x34e95a;if('add'==_0x158f04&&'elementStart'==_0x1b0e04['type']||'remove'==_0x158f04&&'elementEnd'==_0x1b0e04['type'])continue;if(_0x2d6b3f&&-0x1==_0x2d6b3f['type']['indexOf']('Container')){'text'==_0x2d6b3f['type']&&(_0x2d6b3f[_0x158f04]+='\x0a');continue;}let _0x282137;if(_0x282137='add'==_0x158f04?_0x100481['nextSibling']&&!this['_schema']['isObject'](_0x100481['nextSibling'])?_0x100481['nextSibling']:null:_0x100481['previousSibling']&&!this['_schema']['isObject'](_0x100481['previousSibling'])?_0x100481['previousSibling']:null,_0x100481['isEmpty']||_0x282137&&_0x282137['isEmpty']){const _0x36cee0=_0x282137&&_0x282137['isEmpty']?_0x282137:_0x100481;_0x2d6b3f&&_0x2d6b3f['type']==_0x158f04+'EmptyContainer'&&_0x2d6b3f['element']['name']==_0x36cee0['name']?_0x2d6b3f['quantity']++:_0xbafdc3['push']({'type':_0x158f04+'EmptyContainer','element':_0x36cee0,'quantity':0x1});}else _0xbafdc3['push']({'type':_0x158f04+'Container','element':_0x100481});}}}}}['_resolveDescriptionItems'](_0x1b94b9){const _0x42d6e9=this['_locale'],_0x35b8d2=[],_0x48a9c1=[],_0x5df3c6=[];for(const _0x47c060 of _0x1b94b9)switch(_0x47c060['type']){case'text':if(_0x47c060['add']=_0x47c060['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x47c060['remove']=_0x47c060['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x47c060['add']&&''!=_0x47c060['remove']){_0x35b8d2['push']({'type':'replace','content':o(_0x42d6e9,'REPLACE_TEXT',['\x22'+_0x47c060['remove']+'\x22','\x22'+_0x47c060['add']+'\x22'])});continue;}if(null!=_0x47c060['add']['match'](/^ +$/)){_0x35b8d2['push']({'type':'insertion','content':o(_0x42d6e9,'*Insert:*\x20%0',o(_0x42d6e9,'ELEMENT_SPACE',_0x47c060['add']['length']))});continue;}if(null!=_0x47c060['remove']['match'](/^ +$/)){_0x35b8d2['push']({'type':'deletion','content':o(_0x42d6e9,'*Remove:*\x20%0',o(_0x42d6e9,'ELEMENT_SPACE',_0x47c060['remove']['length']))});continue;}if(''!=_0x47c060['add']){_0x35b8d2['push']({'type':'insertion','content':o(_0x42d6e9,'*Insert:*\x20%0','\x22'+_0x47c060['add']+'\x22')});continue;}_0x35b8d2['push']({'type':'deletion','content':o(_0x42d6e9,'*Remove:*\x20%0','\x22'+_0x47c060['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x35b8d2['push']({'type':'insertion','content':o(_0x42d6e9,'*Insert:*\x20%0',this['getItemLabel'](_0x47c060['element'],_0x47c060['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x35b8d2['push']({'type':'deletion','content':o(_0x42d6e9,'*Remove:*\x20%0',this['getItemLabel'](_0x47c060['element'],_0x47c060['quantity']))});continue;case'addContainer':_0x35b8d2['push']({'type':'insertion','content':o(_0x42d6e9,'*Split:*\x20%0',this['getItemLabel'](_0x47c060['element'],_0x47c060['quantity']))});continue;case'removeContainer':_0x35b8d2['push']({'type':'deletion','content':o(_0x42d6e9,'*Merge:*\x20%0',this['getItemLabel'](_0x47c060['element'],_0x47c060['quantity']))});continue;case'addFormat':_0x48a9c1['push'](_0x47c060['key']);continue;case'removeFormat':_0x5df3c6['push'](_0x47c060['key']);continue;default:_0x35b8d2['push'](_0x47c060);}if(_0x48a9c1['length']){const _0x291d11=_0x48a9c1['map'](_0x50bec4=>this['_attributeLabels']['has'](_0x50bec4)?this['_attributeLabels']['get'](_0x50bec4):_0x50bec4)['join'](',\x20');_0x35b8d2['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x291d11)});}if(_0x5df3c6['length']){const _0x2dd04b=_0x5df3c6['map'](_0x795d0a=>this['_attributeLabels']['has'](_0x795d0a)?this['_attributeLabels']['get'](_0x795d0a):_0x795d0a)['join'](',\x20');_0x35b8d2['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x2dd04b)});}return _0x35b8d2;}['_handleCustomCallbackDescription'](_0x545bf3){for(const _0x2f92a8 of this['_customCallbacks']){const _0x5576a8=_0x2f92a8(_0x545bf3);if(_0x5576a8&&'type'in _0x5576a8)return _0x5576a8;}}['_handleAttributeSuggestionDescription'](_0x5f09df,_0x3b3992){const _0x1e986d=_0x3b3992['data'],_0x17b341=void 0x0===_0x1e986d['newValue']?'removeFormat':'addFormat';_0x5f09df['push']({'type':_0x17b341,'key':_0x1e986d['key']});}['_handleRenameSuggestionDescription'](_0x4920cf,_0x5db1a1){_0x4920cf['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5db1a1['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x43bc70,_0x11b38a,_0x2878e4){if(this['_addDescriptionItems'](_0x43bc70,_0x11b38a),_0x2878e4&&_0x2878e4['getFirstRange']()&&!_0x11b38a['getFirstRange']()['end']['isEqual'](_0x2878e4['getFirstRange']()['start'])){const _0x570fa0=_0x43bc70[_0x43bc70['length']-0x1],_0x4486d4='insertion'==_0x11b38a['type']?'add':'remove';_0x570fa0&&'text'==_0x570fa0['type']&&(_0x570fa0[_0x4486d4]+='\x0a');}}}class V extends _0x282945{['afterInit'](){const _0x5f3036=this['editor'],_0x56f6fe=_0x5f3036['plugins']['get']('TrackChangesEditing');_0x5f3036['commands']['get']('showAIAssistant')&&_0x56f6fe['enableCommand']('showAIAssistant');}}class F extends _0x282945{['afterInit'](){const _0x1ebe28=this['editor'],_0x5d4c2c=_0x1ebe28['locale'];if(!_0x1ebe28['plugins']['has']('AlignmentEditing'))return;const _0x128164=_0x1ebe28['plugins']['get']('TrackChangesEditing');_0x128164['enableDefaultAttributesIntegration']('alignment'),_0x128164['registerBlockAttribute']('alignment'),_0x128164['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x5d4c2c,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12bbfa=this['editor'],_0x4be020=_0x12bbfa['locale'];_0x12bbfa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x773f87=>{if('formatBlock'!=_0x773f87['type'])return;const {data:_0x4e8c24}=_0x773f87;if(_0x4e8c24&&'alignment'==_0x4e8c24['commandName']){const _0x39d210=_0x4e8c24['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4be020,'*Format:*\x20%0',function(_0x1fdbd0){switch(_0x1fdbd0){case'left':return o(_0x4be020,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4be020,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4be020,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4be020,'FORMAT_JUSTIFY_TEXT');}}(_0x39d210))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x282945{['afterInit'](){const _0x153f4e=this['editor'],_0x42ddef=_0x153f4e['plugins']['get']('TrackChangesEditing'),_0x1aacb8=_0x153f4e['locale'];for(const _0x312c9b of ti){if(!_0x153f4e['plugins']['has'](_0x312c9b))continue;const _0x55db8f=_0x312c9b['slice'](0x0,-0x7)['toLowerCase'](),_0x4deb64='FORMAT_'+_0x55db8f['toUpperCase']();_0x42ddef['enableDefaultAttributesIntegration'](_0x55db8f),_0x42ddef['registerInlineAttribute'](_0x55db8f),_0x42ddef['descriptionFactory']['registerAttributeLabel'](_0x55db8f,o(_0x1aacb8,_0x4deb64));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe2391c=this['editor'],_0x2c8834=_0xe2391c['locale'],_0x477f98=_0xe2391c['plugins']['get']('TrackChangesEditing');function _0x354968(_0xa90a78,_0x51b321){_0x477f98['descriptionFactory']['registerDescriptionCallback'](_0x416d26=>{if('formatInline'!=_0x416d26['type'])return;const {data:_0x1f9e71}=_0x416d26;return _0x1f9e71&&_0x1f9e71['commandName']===_0xa90a78?_0x1f9e71['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2c8834,'*Format:*\x20%0',_0x51b321)}:{'type':'format','content':o(_0x2c8834,'*Remove\x20format:*\x20%0',_0x51b321)}:void 0x0;});}_0x354968('bold',o(_0x2c8834,'FORMAT_BOLD')),_0x354968('italic',o(_0x2c8834,'FORMAT_ITALIC')),_0x354968('underline',o(_0x2c8834,'FORMAT_UNDERLINE')),_0x354968('code',o(_0x2c8834,'FORMAT_CODE')),_0x354968('strikethrough',o(_0x2c8834,'FORMAT_STRIKETHROUGH')),_0x354968('subscript',o(_0x2c8834,'FORMAT_SUBSCRIPT')),_0x354968('superscript',o(_0x2c8834,'FORMAT_SUPERSCRIPT'));}}class L extends _0x282945{['afterInit'](){const _0x505a71=this['editor'],_0x31b991=_0x505a71['locale'];if(!_0x505a71['plugins']['has']('BlockQuoteEditing'))return;const _0x4927cb=_0x505a71['plugins']['get']('TrackChangesEditing'),_0x3fe3f1=this['editor']['commands']['get']('blockQuote');_0x4927cb['enableCommand']('blockQuote',(_0x3c5918,_0x40dd62={})=>{const _0x416c94=this['editor']['model']['document']['selection'],_0x1fb815=_0x40dd62&&void 0x0!==_0x40dd62['forceValue']?_0x40dd62['forceValue']:!_0x3fe3f1['value'];let _0x3cbaa8=[];if(_0x1fb815){const _0x411cdd=Array['from'](_0x416c94['getSelectedBlocks']())['filter'](_0x510553=>oo(_0x510553)||function(_0x96b808,_0x3e69af){const _0x4e9f66=_0x3e69af['checkChild'](_0x96b808['parent'],'blockQuote'),_0x58030d=_0x3e69af['checkChild'](['$root','blockQuote'],_0x96b808);return _0x4e9f66&&_0x58030d;}(_0x510553,this['editor']['model']['schema']));_0x3cbaa8=to(_0x411cdd,_0x505a71['model']);}else{const _0x3b77fd=Array['from'](_0x416c94['getSelectedBlocks']())['filter'](_0x16d209=>oo(_0x16d209));_0x3cbaa8=to(_0x3b77fd,_0x505a71['model']);}_0x505a71['model']['change'](()=>{for(const _0x5202fb of _0x3cbaa8)_0x4927cb['markBlockFormat'](_0x5202fb,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1fb815}]});});}),_0x4927cb['descriptionFactory']['registerDescriptionCallback'](_0x3616f1=>{const {data:_0x56e726}=_0x3616f1;if(_0x56e726&&'blockQuote'==_0x56e726['commandName']){const _0x3cf536=o(_0x31b991,'ELEMENT_BLOCK_QUOTE');return _0x56e726['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x31b991,'*Set\x20format:*\x20%0',_0x3cf536)}:{'type':'format','content':o(_0x31b991,'*Remove\x20format:*\x20%0',_0x3cf536)};}});}}function oo(_0x2ffb0e){return'blockQuote'==_0x2ffb0e['parent']['name'];}class J extends _0x282945{['afterInit'](){const _0x2b7841=this['editor'],_0x421b7a=_0x2b7841['locale'],_0x28970a=_0x2b7841['plugins']['get']('TrackChangesEditing');_0x2b7841['plugins']['has']('BookmarkEditing')&&(_0x28970a['enableCommand']('insertBookmark'),_0x28970a['enableDefaultAttributesIntegration']('updateBookmark'),_0x28970a['registerBlockAttribute']('bookmarkId'),_0x28970a['descriptionFactory']['registerDescriptionCallback'](_0x2ac852=>{if('insertion'!=_0x2ac852['type']&&'deletion'!=_0x2ac852['type']&&'attribute'!=_0x2ac852['type'])return;const _0x3b6402=_0x2ac852['getContainedElement']();if(null==_0x3b6402)return;if(!_0x3b6402['is']('element','bookmark'))return;const _0xdbf1a9=_0x3b6402['getAttribute']('bookmarkId');if('insertion'==_0x2ac852['type'])return{'type':'insertion','content':o(_0x421b7a,'*Insert:*\x20%0','\x22'+_0xdbf1a9+'\x22\x20'+o(_0x421b7a,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2ac852['type'])return{'type':'deletion','content':o(_0x421b7a,'*Remove:*\x20%0','\x22'+_0xdbf1a9+'\x22\x20'+o(_0x421b7a,'ELEMENT_BOOKMARK'))};const {data:_0x268f64}=_0x2ac852;if(!_0x268f64||'bookmarkId'!=_0x268f64['key'])return;return{'type':'format','content':o(_0x421b7a,'*Set\x20bookmark:*\x20%0','\x22'+_0x268f64['newValue']+'\x22')};}));}}class K extends _0x282945{['afterInit'](){const _0xf7b0d3=this['editor'];_0xf7b0d3['plugins']['has']('CaseChange')&&(_0xf7b0d3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xf7b0d3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xf7b0d3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x282945{['afterInit'](){const _0x16d881=this['editor'];_0x16d881['commands']['get']('ckbox')&&_0x16d881['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0x282945{['afterInit'](){const _0x4a76c0=this['editor'];if(!_0x4a76c0['plugins']['has']('CodeBlock'))return;const _0x4621cb=_0x4a76c0['plugins']['get']('TrackChangesEditing'),_0x4b867a=_0x4a76c0['locale'],_0x3768f1=_0x4a76c0['config']['get']('codeBlock')['languages'],_0x53355b=_0x4a76c0['commands']['get']('codeBlock');_0x4621cb['enableCommand']('indentCodeBlock'),_0x4621cb['enableCommand']('outdentCodeBlock'),_0x4621cb['enableCommand']('codeBlock',(_0x193878,_0xb74fe2={})=>{const _0x4992c4=_0x4a76c0['model'],_0x3e067c=_0x4a76c0['model']['document']['selection'],_0x20d28e=_0xb74fe2&&void 0x0!==_0xb74fe2['forceValue']?_0xb74fe2['forceValue']:!_0x53355b['value'];let _0x45dc7c;_0xb74fe2['language']||(_0xb74fe2['language']=_0x3768f1[0x0]['language']),_0x45dc7c=_0x20d28e?Array['from'](_0x3e067c['getSelectedBlocks']())['filter'](_0x22e6ca=>co(_0x22e6ca)||function(_0x1ae9a8,_0x3e1c76){if(_0x1ae9a8['is']('rootElement')||_0x3e1c76['isLimit'](_0x1ae9a8))return!0x1;return _0x3e1c76['checkChild'](_0x1ae9a8['parent'],'codeBlock');}(_0x22e6ca,_0x4992c4['schema'])):Array['from'](_0x3e067c['getSelectedBlocks']())['filter'](_0x232ebc=>co(_0x232ebc));const _0x1f7f31=to(_0x45dc7c,_0x4992c4);_0x4992c4['change'](()=>{for(const _0x239b51 of _0x1f7f31)_0x4621cb['markBlockFormat'](_0x239b51,{'commandName':'codeBlock','commandParams':[{..._0xb74fe2,'forceValue':_0x20d28e}],'formatGroupId':'blockName'});});}),(_0x4621cb['descriptionFactory']['registerElementLabel']('codeBlock',_0x53bd7a=>o(_0x4b867a,'ELEMENT_CODE_BLOCK',_0x53bd7a)),_0x4621cb['descriptionFactory']['registerDescriptionCallback'](_0x4df9a5=>{if('formatBlock'!=_0x4df9a5['type'])return;const _0x5c0b11=_0x4b867a['t'],{data:_0x3dba67}=_0x4df9a5;if(!_0x3dba67||'codeBlock'!=_0x3dba67['commandName'])return;const _0x5c1a26=_0x3dba67['commandParams'][0x0]['language'],_0x29d17e=_0x5c0b11(_0x3768f1['find'](_0x31df8e=>_0x31df8e['language']===_0x5c1a26)['label'])['toLowerCase']();return _0x3dba67['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4b867a,'*Set\x20format:*\x20%0',o(_0x4b867a,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x29d17e+')')}:{'type':'format','content':o(_0x4b867a,'*Remove\x20format:*\x20%0',o(_0x4b867a,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0xc289ab){return'codeBlock'==_0xc289ab['name'];}class q extends _0x282945{['afterInit'](){const _0x19b278=this['editor'];if(!_0x19b278['plugins']['has']('CommentsEditing'))return;_0x19b278['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x1c53a6,_0xe24e0e,_0xbaaf2b){const _0x497377=[];for(const _0x2b501a of _0xe24e0e['getItems']())_0x2b501a['hasAttribute'](_0x1c53a6)&&_0x497377['push'](_0xbaaf2b['createRangeOn'](_0x2b501a));return _0x497377;}function Ge(_0x1bd3df,_0x3e8a7c,{showActiveMarker:_0xa0b7d4=!0x0}={}){const _0x117c86=_0x1bd3df['plugins']['get']('TrackChangesEditing');return(_0x217f3b,_0x86f50a,_0x4c3053)=>{if(!_0x4c3053['consumable']['test'](_0x86f50a['markerRange'],_0x217f3b['name']))return;const _0x27f34a=_0x86f50a['markerRange']['getWalker'](),_0x23fc63=_0x86f50a['markerRange']['start'],_0x18385e=_0x1bd3df['model']['schema'];let _0x4beb0f=null,_0x40443f=null,_0x4ed713=!0x1,_0xe8dc3e=!0x1;for(const _0x5f2435 of _0x27f34a){const _0x16772f=_0x5f2435['item'];_0x4ed713=_0x4ed713||_0x18385e['isContent'](_0x16772f);const _0x494c6d=_0x4c3053['mapper']['toViewElement'](_0x16772f);if(_0x494c6d&&_0x494c6d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5f2435['type']&&(_0x18385e['isBlock'](_0x16772f)&&!_0x18385e['isLimit'](_0x16772f)&&(_0x16772f['nextSibling']||_0x23fc63['isAtEnd']?_0x4beb0f&&_0x4beb0f['parent']==_0x16772f||(_0x4beb0f=_0x16772f,_0xd763d6(_0x5f2435['previousPosition']),_0xe8dc3e=!0x0):_0x40443f=_0x40443f||_0x5f2435['previousPosition']));}function _0xd763d6(_0x59e16a){const {id:_0x27b1e8,authorId:_0x521654}=_0x117c86['_splitMarkerName'](_0x86f50a['markerName']),_0x3b8cd0=_0x4c3053['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3e8a7c,'data-suggestion':_0x27b1e8,'data-author-id':_0x521654}),_0x37324b=_0x4c3053['mapper']['toViewPosition'](_0x59e16a);_0xa0b7d4&&_0x117c86['activeMarkers']['includes'](_0x86f50a['markerName'])&&_0x4c3053['writer']['addClass']('ck-suggestion-marker--active',_0x3b8cd0),_0x4c3053['writer']['insert'](_0x37324b,_0x3b8cd0),_0x4c3053['mapper']['bindElementToMarker'](_0x3b8cd0,_0x86f50a['markerName']);}_0x4ed713||_0xe8dc3e||!_0x40443f||_0xd763d6(_0x40443f);};}class z extends _0x282945{static get['requires'](){return[_0x43782a];}['init'](){const _0x4dc54f=this['editor'],_0x156380=_0x4dc54f['plugins']['get']('TrackChangesEditing');_0x156380['enableCommand']('delete');const _0xc67da2=_0x4dc54f['commands']['get']('deleteForward');_0x156380['enableCommand']('deleteForward',(_0x400723,_0x15ba54={})=>{const _0x33185f=_0x4dc54f['model']['createSelection'](_0x4dc54f['model']['document']['selection']);_0x33185f['isCollapsed']&&_0x4dc54f['model']['modifySelection'](_0x33185f,{'direction':'forward','unit':_0x15ba54['unit']});const _0x382eaa=_0x33185f['getFirstRange'](),_0x54844e=_0x289cfe['fromRange'](_0x382eaa);let _0x27ccc8;_0x400723(_0x15ba54),_0x27ccc8='$graveyard'==_0x54844e['root']['rootName']?_0x4dc54f['model']['createRange'](_0x382eaa['start']):_0x4dc54f['model']['createRange'](_0x54844e['start'],_0x54844e['end']),_0x54844e['detach'](),_0x4dc54f['model']['enqueueChange'](_0xc67da2['buffer']['batch'],_0x511be8=>{_0xc67da2['buffer']['lock'](),_0x511be8['setSelection'](_0x511be8['createRange'](_0x27ccc8['end'])),_0xc67da2['buffer']['unlock']();});}),_0x4dc54f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ge(_0x4dc54f,'merge'),{'priority':'high'}),_0x4dc54f['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0xb9fa7a,_0x267d7b,_0x3733d2)=>{_0x3733d2['options']['showSuggestionHighlights']&&Ge(_0x4dc54f,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0xb9fa7a,_0x267d7b,_0x3733d2);},{'priority':'high'}),_0x4dc54f['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x15d9fd,_0x105e0a,_0x3c08f8)=>{const _0x54f78c=_0x3c08f8['mapper']['markerNameToElements'](_0x105e0a['markerName']);if(_0x54f78c){for(const _0x1ff695 of _0x54f78c)_0x1ff695['is']('uiElement')&&(_0x3c08f8['mapper']['unbindElementFromMarkerName'](_0x1ff695,_0x105e0a['markerName']),_0x3c08f8['writer']['remove'](_0x1ff695));}},{'priority':'high'});}}class Q extends _0x282945{['afterInit'](){const _0x2cb7f6=this['editor'];if(!_0x2cb7f6['plugins']['has']('ListEditing'))return;const _0x350cf9=_0x2cb7f6['locale'],_0xd1ccce=_0x2cb7f6['plugins']['get']('TrackChangesEditing'),_0x4a0725=_0x2cb7f6['plugins']['has']('TodoListEditing'),_0x4acac5=!!_0x2cb7f6['config']['get']('list.multiBlock');function _0x361243(_0x423798){return{'type':'format','content':''+o(_0x350cf9,'*Set\x20format:*\x20%0',_0x423798)};}function _0x1de62f(_0x513816){return{'type':'format','content':''+o(_0x350cf9,'*Remove\x20format:*\x20%0',_0x513816)};}_0xd1ccce['enableDefaultAttributesIntegration']('numberedList'),_0xd1ccce['enableDefaultAttributesIntegration']('bulletedList'),_0xd1ccce['enableDefaultAttributesIntegration']('customNumberedList'),_0xd1ccce['enableDefaultAttributesIntegration']('customBulletedList'),_0xd1ccce['enableDefaultAttributesIntegration']('indentList'),_0xd1ccce['enableDefaultAttributesIntegration']('outdentList'),_0xd1ccce['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xd1ccce['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xd1ccce['registerBlockAttribute']('listItemId'),_0xd1ccce['registerBlockAttribute']('listType'),_0xd1ccce['registerBlockAttribute']('listIndent'),_0x4acac5&&(_0xd1ccce['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xd1ccce['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4a0725&&(_0xd1ccce['enableDefaultAttributesIntegration']('todoList'),_0xd1ccce['enableDefaultAttributesIntegration']('checkTodoList'),_0xd1ccce['registerBlockAttribute']('todoListChecked'),_0xd1ccce['descriptionFactory']['registerDescriptionCallback'](_0x312b7c=>{const {data:_0x1b7ad7}=_0x312b7c;if(_0x1b7ad7&&'todoListChecked'==_0x1b7ad7['key'])return{'type':'format','content':_0x1b7ad7['newValue']?o(_0x350cf9,'*Check\x20item*'):o(_0x350cf9,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xd2ff50=>{if(_0xd2ff50['batch']['isUndo'])return!0x1;let _0x377340=!0x1;const _0x4830cc=_0xd1ccce['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x571cbd=>'todoListChecked'===_0xd1ccce['_getAttributeKey'](_0x571cbd));for(const _0x579f65 of _0x4830cc){'todo'!=_0x579f65['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xd1ccce['_findSuggestions'](_0x579f65['getFirstRange'](),'attribute')['find'](_0x56482e=>'listType'===_0xd1ccce['_getAttributeKey'](_0x56482e['suggestion']))||(_0xd2ff50['removeMarker'](_0x579f65['getFirstMarker']()),_0x377340=!0x0));}return _0x377340;})),_0xd1ccce['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x350cf9,'FORMAT_INDENT'));const _0x160312={'type':'format','content':''};_0xd1ccce['descriptionFactory']['registerDescriptionCallback'](_0x31f093=>{const {data:_0x4a6cf2}=_0x31f093;if(!_0x4a6cf2||'listType'!=_0x4a6cf2['key'])return;let _0x39a36c=_0x31f093['head'];for(;_0x39a36c;){if(_0x39a36c['data']&&(('listStyle'==_0x39a36c['data']['key']||'listMarkerStyle'==_0x39a36c['data']['key'])&&(_0x39a36c['data']['newValue']&&'default'!=_0x39a36c['data']['newValue']||'default'!=_0x39a36c['data']['oldValue']&&!_0x4a6cf2['newValue'])||!_0x4acac5&&_0x39a36c['data']['key']==m))return _0x160312;_0x39a36c=_0x39a36c['next'];}if(null==_0x4a6cf2['newValue'])switch(_0x4a6cf2['oldValue']){case'bulleted':return _0x1de62f(o(_0x350cf9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1de62f(o(_0x350cf9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1de62f(o(_0x350cf9,'ELEMENT_TODO_LIST'));}switch(_0x4a6cf2['newValue']){case'bulleted':return _0x361243(o(_0x350cf9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x361243(o(_0x350cf9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x361243(o(_0x350cf9,'ELEMENT_TODO_LIST'));}}),_0xd1ccce['descriptionFactory']['registerDescriptionCallback'](_0x11f8ec=>{const {data:_0x47707d}=_0x11f8ec;if(_0x47707d&&'listIndent'==_0x47707d['key'])return null==_0x47707d['newValue']||null==_0x47707d['oldValue']&&0x0==_0x47707d['newValue']?_0x160312:void 0x0;}),_0xd1ccce['descriptionFactory']['registerDescriptionCallback'](_0x2157c8=>{if('attribute'!=_0x2157c8['type'])return;const {data:_0xcc6d9f}=_0x2157c8;if(!_0xcc6d9f||'listItemId'!=_0xcc6d9f['key'])return;const _0x47fc2a=Be(_0x2157c8);return'newValue'==_0x47fc2a?{'type':'format','content':o(_0x350cf9,'*Merge:*\x20list\x20item')}:'oldValue'==_0x47fc2a?{'type':'format','content':o(_0x350cf9,'*Split:*\x20list\x20item')}:_0x160312;}),_0x2cb7f6['model']['document']['registerPostFixer'](_0x1020a9=>this['listItemIdFixer'](_0x1020a9)),_0x2cb7f6['model']['document']['registerPostFixer'](_0x520ff2=>this['noTrackChangesFixer'](_0x520ff2)),_0x2cb7f6['model']['document']['on']('change:data',(_0x32a28f,_0x2310a3)=>{if(_0x2310a3['isUndo']||!_0x2310a3['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x38e7bf){if(_0x38e7bf['batch']['isUndo']||!_0x38e7bf['batch']['isLocal'])return!0x1;let _0x32da02=!0x1;const _0x27d909=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x612ba9=>_0x612ba9['data']&&'listItemId'==_0x612ba9['data']['key'])['filter'](_0x1bf5ee=>_0x1bf5ee['data']['newValue']&&_0x1bf5ee['data']['oldValue']);for(const _0x53f5cb of _0x27d909)Be(_0x53f5cb)||(_0x38e7bf['removeMarker'](_0x53f5cb['getFirstMarker']()),_0x32da02=!0x0);return _0x32da02;}['noTrackChangesFixer'](_0xcf7eac){if(_0xcf7eac['batch']['isUndo']||!_0xcf7eac['batch']['isLocal'])return!0x1;const _0x20aae3=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x20aae3['trackChangesCommand']['value'])return!0x1;let _0x14f3e5=!0x1;const _0x306a0d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5d0401=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4e0f78=>'attribute'==_0x4e0f78['type'])['filter'](_0x338c49=>_0x306a0d['includes'](_0x338c49['attributeKey']));if(0x0==_0x5d0401['length'])return _0x14f3e5;for(const _0x4bcdcb of _0x5d0401){const _0x6784d2=_0x20aae3['_findSuggestions'](_0x4bcdcb['range'],'attribute')['filter'](_0x2988ae=>!_0x2988ae['meta']['isNextTo'])['map'](_0x16c800=>_0x16c800['suggestion'])['filter'](_0x1885f6=>{const _0x5c4ef2=_0x20aae3['_getAttributeKey'](_0x1885f6);return _0x306a0d['includes'](_0x5c4ef2);});if(_0x6784d2['length']){for(const _0x12fbb9 of _0x6784d2)_0xcf7eac['removeMarker'](_0x12fbb9['getFirstMarker']());_0x14f3e5=!0x0;}}return _0x14f3e5;}['assureChains'](){const _0x7f8aa4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15ae31=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x33c346;const _0x3199b7=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x36e3be=>{if(_0x36e3be['data']['oldRange']||!_0x36e3be['data']['newRange'])return null;if(!_0x36e3be['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x44d08c}=_0x7f8aa4['_splitMarkerName'](_0x36e3be['name']);if(!_0x7f8aa4['hasSuggestion'](_0x44d08c))return null;const _0x3dec21=_0x7f8aa4['getSuggestion'](_0x44d08c);return _0x15ae31['includes'](_0x3dec21['data']['key']);})['map'](_0x31acf3=>{const {id:_0x1cebe4}=_0x7f8aa4['_splitMarkerName'](_0x31acf3['name']),_0x54b041=_0x7f8aa4['getSuggestion'](_0x1cebe4);return _0x33c346=_0x54b041['attributes']['groupId'],_0x54b041['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3199b7['size'])return;const _0x29638=_0x7f8aa4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x202a01=>'attribute'==_0x202a01['type']&&_0x202a01['data']&&_0x15ae31['includes'](_0x202a01['data']['key'])&&_0x202a01['attributes']['groupId']!=_0x33c346)['map'](_0x42937f=>({'listItem':_0x42937f['getFirstRange']()['start']['nodeAfter'],'groupId':_0x42937f['attributes']['groupId']})),_0x2df78d=new Set();for(const {groupId:_0x1e0cf9,listItem:_0x6ccf3a}of _0x29638)_0x3199b7['has'](_0x6ccf3a)&&_0x2df78d['add'](_0x1e0cf9);for(const _0x1e5b47 of _0x7f8aa4['getSuggestions']())_0x2df78d['has'](_0x1e5b47['attributes']['groupId'])&&_0x1e5b47['setAttribute']('groupId',_0x33c346);}['_supportLegacySuggestions'](){const _0x473c47=this['editor'],_0xefa524=_0x473c47['locale'],_0x92ae47=_0x473c47['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x92ae47['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x58e349,_0x9696ad){const _0xec9f67=[];for(let _0x353c4e of _0x58e349)_0x353c4e['start']['nodeAfter']===_0x353c4e['end']['parent']&&(_0x353c4e=_0x473c47['model']['createRange'](_0x473c47['model']['createPositionAt'](_0x353c4e['start']['nodeAfter'],0x0))),_0xec9f67['push'](_0x353c4e);_0x473c47['model']['change'](_0x472e08=>{const _0x11a058=_0x473c47['model']['document']['selection'],_0x5333d0=Array['from'](_0x11a058['getRanges']())['map'](_0x175b3d=>_0x289cfe['fromRange'](_0x175b3d));_0x472e08['setSelection'](_0xec9f67),_0x473c47['commands']['get'](_0x9696ad['commandName'])['refresh'](),_0x9696ad['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x473c47['execute'](_0x9696ad['commandName'],..._0x9696ad['commandParams']),_0x472e08['setSelection'](_0x5333d0);for(const _0x3f45f2 of _0x5333d0)_0x3f45f2['detach']();});}),_0x92ae47['descriptionFactory']['registerElementLabel'](function(_0x583893){const _0x242010=!_0x473c47['model']['schema']['isObject'](_0x583893),_0x24721=_0x583893['previousSibling'],_0x59aecb=_0x583893['nextSibling'],_0x10c7a8=_0x583893['getAttribute']('listItemId'),_0x5171e7=!_0x24721||_0x24721['getAttribute']('listItemId')!==_0x10c7a8,_0x2e2e00=!_0x59aecb||_0x59aecb['getAttribute']('listItemId')!==_0x10c7a8;return _0x242010&&Boolean(_0x10c7a8)&&_0x5171e7&&_0x2e2e00;},_0x4f02a3=>o(_0xefa524,'ELEMENT_LIST_ITEM',_0x4f02a3));}['_registerLegacyDescription'](){const _0x2e945c=this['editor'],_0x28465b=_0x2e945c['locale'];function _0x2bb595(_0x5b226e){const _0x58622a=_0x2e945c['commands']['get']('bulletedList')['value'],_0x28d69d=_0x2e945c['commands']['get']('numberedList')['value'];return'numberedList'===_0x5b226e?_0x58622a:_0x28d69d;}_0x2e945c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2f0e25){if('formatBlock'!=_0x2f0e25['type'])return;const {data:_0x27ed74}=_0x2f0e25;if(!_0x27ed74)return;let _0x3926de,_0x1fabb0,_0x2abb8,_0x52bad5;switch(_0x27ed74['commandName']){case'bulletedList':_0x2abb8=_0x27ed74['commandParams'][0x0]['forceValue'],_0x52bad5=_0x2bb595(_0x27ed74['commandName']),_0x3926de=_0x2abb8?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x52bad5&&_0x2e945c['config']['get']('list.multiBlock')||(_0x3926de='*Change\x20to:*\x20%0'),_0x1fabb0={'type':'format','content':o(_0x28465b,_0x3926de,o(_0x28465b,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2abb8=_0x27ed74['commandParams'][0x0]['forceValue'],_0x52bad5=_0x2bb595(_0x27ed74['commandName']),_0x3926de=_0x2abb8?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x52bad5&&_0x2e945c['config']['get']('list.multiBlock')||(_0x3926de='*Change\x20to:*\x20%0'),_0x1fabb0={'type':'format','content':o(_0x28465b,_0x3926de,o(_0x28465b,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3926de='*Indent:*\x20%0',_0x1fabb0={'type':'format','content':o(_0x28465b,_0x3926de,o(_0x28465b,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3926de=function(_0x2eefae){const _0x690997=_0x2eefae['getFirstRange']();let _0x3313fd=_0x690997['start']['nodeAfter'];for(;_0x3313fd&&_0x690997['containsItem'](_0x3313fd);){if(_0x3313fd['getAttribute']('listIndent')>0x0)return!0x1;_0x3313fd=_0x3313fd['nextSibling'];}return!0x0;}(_0x2f0e25)?o(_0x28465b,'*Format:*\x20remove\x20from\x20%0',o(_0x28465b,function(_0x24eb8d){return'ELEMENT_'+_0x24eb8d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2f0e25))):o(_0x28465b,'*Outdent:*\x20%0',o(_0x28465b,'ELEMENT_LIST_ITEM')),_0x1fabb0={'type':'format','content':_0x3926de};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x27ed74['multipleBlocks']&&(_0x3926de='*Merge:*\x20%0',_0x1fabb0={'type':'deletion','content':o(_0x28465b,_0x3926de,o(_0x28465b,'ELEMENT_LIST_ITEM'))});}return _0x1fabb0;});}}function Be(_0x46be30){let _0x352982=_0x46be30['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x352982;){const _0x49f95b=_0x352982['getAttribute']('listItemId');if(!_0x49f95b)return!0x1;if(_0x49f95b==_0x46be30['data']['newValue'])return'newValue';if(_0x49f95b==_0x46be30['data']['oldValue'])return'oldValue';_0x352982=_0x352982['previousSibling'];}return!0x1;}class X extends _0x282945{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x416079=this['editor']['config']['get']('list.properties'),_0x2e0237=this['editor']['plugins']['get']('TrackChangesEditing');_0x416079['styles']&&(_0x2e0237['enableDefaultAttributesIntegration']('listStyle'),_0x2e0237['registerBlockAttribute']('listStyle')),_0x416079['reversed']&&(_0x2e0237['enableDefaultAttributesIntegration']('listReversed'),_0x2e0237['registerBlockAttribute']('listReversed')),_0x416079['startIndex']&&(_0x2e0237['enableDefaultAttributesIntegration']('listStart'),_0x2e0237['registerBlockAttribute']('listStart'));const _0x4dd77d={'type':'format','content':''};_0x2e0237['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4cfa1a=this['editor']['locale'];_0x2e0237['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4cfa1a,'FORMAT_LIST_REVERSED')),_0x2e0237['descriptionFactory']['registerDescriptionCallback'](_0x12c537=>{const {data:_0x230547}=_0x12c537;if(_0x230547&&'listReversed'==_0x230547['key'])return null==_0x230547['newValue']||0x0==_0x230547['newValue']&&null==_0x230547['oldValue']?_0x4dd77d:void 0x0;}),_0x2e0237['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4cfa1a,'FORMAT_LIST_START')),_0x2e0237['descriptionFactory']['registerDescriptionCallback'](_0x42619a=>{const {data:_0x3fa98b}=_0x42619a;if(_0x3fa98b&&'listStart'==_0x3fa98b['key'])return null==_0x3fa98b['newValue']||0x1==_0x3fa98b['newValue']&&null==_0x3fa98b['oldValue']?_0x4dd77d:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4b2a77=>{if(_0x4b2a77['batch']['isUndo'])return!0x1;let _0x430433=!0x1;const _0x2d1313=_0x2e0237['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x25786e=>{const _0x448bc4=_0x2e0237['_getAttributeKey'](_0x25786e);return'listStart'==_0x448bc4||'listReversed'==_0x448bc4;});for(const _0x403d8e of _0x2d1313){const _0x5de052=_0x403d8e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5de052||'customNumbered'==_0x5de052)continue;_0x2e0237['_findSuggestions'](_0x403d8e['getFirstRange'](),'attribute')['find'](_0x3dafe5=>'listType'==_0x2e0237['_getAttributeKey'](_0x3dafe5['suggestion']))||(_0x4b2a77['removeMarker'](_0x403d8e['getFirstMarker']()),_0x430433=!0x0);}return _0x430433;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3da096){const _0x22bafc=this['editor']['locale'],{data:_0xb0484d}=_0x3da096,_0x2b9614={'type':'format','content':''};if(!_0xb0484d||'listStyle'!=_0xb0484d['key'])return;if(!_0xb0484d['oldValue'])return'default'==_0xb0484d['newValue']?_0x2b9614:{'type':'format','content':''+o(_0x22bafc,'*Set\x20format:*\x20%0',o(_0x22bafc,this['_getTranslationKeyForListStyle'](_0xb0484d['newValue'])))};if(!_0xb0484d['newValue']){if('default'==_0xb0484d['oldValue'])return _0x2b9614;let _0x46e490=_0x3da096['head'];for(;_0x46e490;){if(_0x46e490['data']&&'listType'==_0x46e490['data']['key']&&_0x46e490['data']['newValue'])return _0x2b9614;_0x46e490=_0x46e490['next'];}return{'type':'format','content':''+o(_0x22bafc,'*Remove\x20format:*\x20%0',o(_0x22bafc,this['_getTranslationKeyForListStyle'](_0xb0484d['oldValue'])))};}if('default'!=_0xb0484d['newValue'])return{'type':'format','content':''+o(_0x22bafc,'*Set\x20format:*\x20%0',o(_0x22bafc,this['_getTranslationKeyForListStyle'](_0xb0484d['newValue'])))};let _0x22be85=_0x3da096['head'];for(;_0x22be85;){if(_0x22be85['data']&&'listType'==_0x22be85['data']['key']&&_0x22be85['data']['newValue']&&_0x22be85['data']['oldValue'])return _0x2b9614;_0x22be85=_0x22be85['next'];}return{'type':'format','content':o(_0x22bafc,'*Set\x20format:*\x20%0',o(_0x22bafc,'ELEMENT_'+_0x3da096['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4c7067=this['editor'],_0x29dbf7=_0x4c7067['locale'];_0x4c7067['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x291c15=>{if('formatBlock'!=_0x291c15['type'])return;const {data:_0x300d8e}=_0x291c15;if(!_0x300d8e)return;let _0x40af14,_0x15067c;switch(_0x300d8e['commandName']){case'listStyle':_0x40af14='*Change\x20to:*\x20%0',_0x15067c={'type':'format','content':o(_0x29dbf7,_0x40af14,o(_0x29dbf7,this['_getTranslationKeyForListStyle'](_0x300d8e['commandParams'][0x0]['type'])))};break;case'listReversed':_0x40af14=_0x300d8e['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x15067c={'type':'format','content':o(_0x29dbf7,_0x40af14)};break;case'listStart':_0x40af14='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x15067c={'type':'format','content':o(_0x29dbf7,_0x40af14,_0x300d8e['commandParams'][0x0]['startIndex'])};}return _0x15067c;});}['_getTranslationKeyForListStyle'](_0x43a08e){return'ELEMENT_'+function(_0x1575df){if(Re['includes'](_0x1575df))return'bulleted';if(Fe['includes'](_0x1575df))return'numbered';return null;}(_0x43a08e)['toUpperCase']()+'_LIST_'+_0x43a08e['toUpperCase']()['replace'](/-/g,'_');}}const Re=['disc','circle','square'],Fe=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Y extends _0x282945{['afterInit'](){const _0x13a354=this['editor'];_0x13a354['commands']['get']('emoji')&&_0x13a354['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Z extends _0x282945{static get['requires'](){return[_0x4dca4c];}['init'](){const _0x29cb8b=this['editor'],_0x1d008d=_0x29cb8b['plugins']['get']('TrackChangesEditing'),_0xd9445d=_0x29cb8b['commands']['get']('enter');_0x1d008d['enableCommand']('enter',()=>{_0x29cb8b['model']['change'](_0x53d415=>{const _0xfa46b=_0x29cb8b['model']['document']['selection'],_0x57491a=_0xfa46b['getFirstPosition'](),_0x374bdd=_0x289cfe['fromRange'](_0xfa46b['getFirstRange']());if(_0xd9445d['enterBlock'](_0x53d415)){const _0x128f0b=_0x29cb8b['model']['createPositionAt'](_0x57491a['parent']['nextSibling'],0x0),_0x480d5a=_0x53d415['createRange'](_0x57491a,_0x128f0b);_0x1d008d['markInsertion'](_0x480d5a);}else _0x53d415['setSelection'](_0x53d415['createRange'](_0x374bdd['end']));_0x374bdd['detach'](),_0xd9445d['fire']('afterExecute',{'writer':_0x53d415});});}),_0x29cb8b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ge(_0x29cb8b,'split'),{'priority':'high'}),_0x29cb8b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2d677c,_0x47a8bc,_0x3e7c5b)=>{const _0x3111b9=_0x3e7c5b['mapper']['markerNameToElements'](_0x47a8bc['markerName']);if(_0x3111b9){for(const _0x768873 of _0x3111b9)_0x768873['hasClass']('ck-suggestion-marker-split')&&(_0x3e7c5b['mapper']['unbindElementFromMarkerName'](_0x768873,_0x47a8bc['markerName']),_0x3e7c5b['writer']['remove'](_0x768873));}},{'priority':'high'}),_0x29cb8b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2799ba,_0x3ca169,_0x5b727e)=>{_0x5b727e['options']['showSuggestionHighlights']&&Ge(_0x29cb8b,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x2799ba,_0x3ca169,_0x5b727e);},{'priority':'high'});}}class tt extends _0x282945{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x4425ed=this['editor']['plugins']['get']('TrackChangesEditing');_0x4425ed['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x4425ed['enableCommand']('findNext'),_0x4425ed['enableCommand']('findPrevious'),_0x4425ed['enableCommand']('replace'),_0x4425ed['enableCommand']('replaceAll');}['handleFindCommand'](_0x46cb65,_0x43722d,_0x2b595b={}){const _0x550096=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x46cb65(_0x58f672=>{let _0x214d5b=('string'==typeof _0x43722d?_0x550096['findByTextCallback'](_0x43722d,_0x2b595b):_0x43722d)(_0x58f672);Array['isArray'](_0x214d5b)&&(_0x214d5b={'results':_0x214d5b,'searchText':'string'==typeof _0x43722d?_0x43722d:''});const _0x51cd35=_0x214d5b['results']['filter'](_0x2fb33c=>!0x1===this['_isInDeletionRange'](_0x2fb33c,_0x58f672['item']));return{..._0x214d5b,'results':_0x51cd35};},_0x2b595b);}['_isInDeletionRange'](_0x6c2100,_0x2bfa71){const _0x5d97c1=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2bfa71,_0x6c2100['start']),this['editor']['model']['createPositionAt'](_0x2bfa71,_0x6c2100['end']));for(const _0x4a6f66 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5d97c1['getIntersection'](_0x4a6f66['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class et extends _0x282945{['afterInit'](){const _0x559961=this['editor']['locale'],_0x5c4b94=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2d5970,commandName:_0x2423c8}of eo)this['editor']['plugins']['has'](_0x2d5970)&&(_0x5c4b94['enableDefaultAttributesIntegration'](_0x2423c8),_0x5c4b94['registerInlineAttribute'](_0x2423c8));_0x5c4b94['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x559961,'FORMAT_FONT_SIZE')),_0x5c4b94['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x559961,'FORMAT_FONT_FAMILY')),_0x5c4b94['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x559961,'FORMAT_FONT_COLOR')),_0x5c4b94['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x559961,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4afedd=this['editor'],_0xae85a0=_0x4afedd['locale'];_0x4afedd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58db5d=>{const _0x428a01=_0xae85a0['t'];if('formatInline'!=_0x58db5d['type'])return;const {data:_0x25d022}=_0x58db5d;if(null!=_0x25d022){if('fontSize'==_0x25d022['commandName']){const _0x2db8bf=_0x25d022['commandParams'][0x0]['value'];if(_0x2db8bf){const _0x273371=_0x428a01(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5956df=>_0x5956df['model']==_0x2db8bf)['title'])['toLowerCase']();return{'type':'format','content':o(_0xae85a0,'*Set\x20font\x20size:*\x20%0',_0x273371)};}return{'type':'format','content':o(_0xae85a0,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x25d022['commandName']){const _0x1c6ee9=_0x25d022['commandParams'][0x0]['value'];return _0x1c6ee9?{'type':'format','content':o(_0xae85a0,'*Set\x20font\x20family:*\x20%0',_0x1c6ee9)}:{'type':'format','content':o(_0xae85a0,'*Reset\x20font\x20family*')};}if('fontColor'==_0x25d022['commandName']){const _0x365340=_0x25d022['commandParams'][0x0]['value'];if(_0x365340){const _0x212792=_0x1af663(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5f5b2b=>_0x5f5b2b['model']==_0x365340);let _0xdf121f=_0x365340,_0x4411c6='';return _0x212792&&(_0xdf121f=_0x212792['label'],_0x4411c6=_0x428a01(_0xdf121f)['toLowerCase']()),{'type':'format','content':o(_0xae85a0,'*Set\x20font\x20color:*\x20%0',_0x4411c6)['trim'](),'color':{'value':_0x365340,'title':_0x4411c6||_0xdf121f}};}return{'type':'format','content':o(_0xae85a0,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x25d022['commandName']){const _0xe7fdcd=_0x25d022['commandParams'][0x0]['value'];if(_0xe7fdcd){const _0x32ddab=_0x1af663(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x442d6b=>_0x442d6b['model']==_0xe7fdcd);let _0x319238=_0xe7fdcd,_0x2205aa='';return _0x32ddab&&(_0x319238=_0x32ddab['label'],_0x2205aa=_0x428a01(_0x319238)['toLowerCase']()),{'type':'format','content':o(_0xae85a0,'*Set\x20font\x20background\x20color:*\x20%0',_0x2205aa)['trim'](),'color':{'value':_0xe7fdcd,'title':_0x2205aa||_0x319238}};}return{'type':'format','content':o(_0xae85a0,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x282945{['afterInit'](){const _0x21cb9f=this['editor'],_0x198969=_0x21cb9f['plugins']['get']('TrackChangesEditing'),_0x28d360=_0x21cb9f['commands']['get']('copyFormat'),_0x63648a=_0x21cb9f['commands']['get']('pasteFormat');_0x28d360&&_0x63648a&&(_0x198969['enableDefaultAttributesIntegration']('pasteFormat'),_0x198969['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x30b500=this['editor'],_0x52c514=_0x30b500['locale'];_0x30b500['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fc307=>{if('formatBlock'!=_0x3fc307['type']&&'formatInline'!=_0x3fc307['type'])return;const {data:_0x72207d}=_0x3fc307;if(_0x72207d&&'pasteFormat'===_0x72207d['commandName']){const _0x1fe897=[],_0x2860a9=_0x72207d['commandParams'][0x0];for(const [_0x2aca94,_0x5a01]of Object['entries'](_0x2860a9))_0x1fe897['push'](ro(_0x30b500,_0x2aca94,_0x5a01));return _0x1fe897['length']?{'type':'format','content':o(_0x52c514,'*Set\x20format\x20to:*\x20%0',_0x1fe897['join'](',\x20'))}:{'type':'format','content':o(_0x52c514,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x102af1,_0x247618,_0x3ecc54){const _0x36d56d=_0x102af1['locale']['t'],_0x3005e3=_0x247618['split'](/(?=[A-Z])/)['join']('\x20'),_0x2c7a71=_0x36d56d(_0x3005e3['charAt'](0x0)['toUpperCase']()+_0x3005e3['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3ecc54)return _0x2c7a71;if('fontColor'===_0x247618||'fontBackgroundColor'===_0x247618){const _0x2cee79=_0x1af663(_0x102af1['config']['get']('fontColor.colors'))['find'](_0x2e4b9c=>_0x2e4b9c['model']==_0x3ecc54);return _0x2c7a71+'\x20('+(_0x2cee79?_0x36d56d(_0x2cee79['label'])['toLowerCase']():_0x3ecc54)+')';}if('fontSize'===_0x247618&&isNaN(parseFloat(_0x3ecc54))){const _0x16498c=_0x102af1['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x102af1['config']['get']('fontSize.options'))['find'](_0x42198e=>_0x42198e['model']==_0x3ecc54);return _0x2c7a71+'\x20('+(_0x16498c?_0x36d56d(_0x16498c['title'])['toLowerCase']():_0x3ecc54)+')';}return _0x2c7a71+'\x20('+_0x3ecc54+')';}class nt extends _0x282945{['_headingOptions'];['afterInit'](){const _0x448d06=this['editor'];if(!_0x448d06['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x448d06['config']['get']('heading.options');const _0x38730b=_0x448d06['locale'],_0x36584a=_0x448d06['plugins']['get']('TrackChangesEditing');_0x36584a['enableDefaultAttributesIntegration']('heading');for(const _0x254f0b of this['_headingOptions'])'paragraph'!=_0x254f0b['model']&&_0x36584a['descriptionFactory']['registerElementLabel'](_0x254f0b['model'],_0x546893=>{const _0x21d27a=this['_getHeadingLevel'](_0x254f0b['model']);return null!==_0x21d27a?_0x10168c(_0x546893,_0x21d27a):_0x4adc72(_0x546893,_0x254f0b['title']);});function _0x10168c(_0x248d52,_0x3cd1ae){return o(_0x38730b,'ELEMENT_HEADING',[_0x248d52,_0x3cd1ae]);}function _0x4adc72(_0x448a8c,_0x342f0c){return o(_0x38730b,'ELEMENT_HEADING_CUSTOM',[_0x448a8c,_0x342f0c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c0827=this['editor'],_0x14d3a3=_0x3c0827['locale'];function _0xca66ad(_0x5095d4,_0x34addc){return o(_0x14d3a3,'ELEMENT_HEADING_CUSTOM',[_0x5095d4,_0x34addc]);}_0x3c0827['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x170d53=>{if('formatBlock'!=_0x170d53['type'])return;const {data:_0xa97831}=_0x170d53;if(_0xa97831&&'heading'==_0xa97831['commandName']){const _0x45d954=_0xa97831['commandParams'][0x0]['value'],_0x56ebd2=this['_getHeadingLevel'](_0x45d954);if(null!==_0x56ebd2)return{'type':'format','content':o(_0x14d3a3,'*Change\x20to:*\x20%0',(_0x65695=0x1,_0x3e7654=_0x56ebd2,o(_0x14d3a3,'ELEMENT_HEADING',[_0x65695,_0x3e7654])))};const _0x48213d=this['_headingOptions']['find'](_0x378509=>_0x378509['model']===_0x45d954)['title'];return{'type':'format','content':o(_0x14d3a3,'*Change\x20to:*\x20%0',_0xca66ad(0x1,_0x48213d))};}var _0x65695,_0x3e7654;});}['_getHeadingLevel'](_0x540a45){const _0x4a4046=_0x540a45['match'](/^heading(\d+)/);if(_0x4a4046)return _0x4a4046[0x1];const _0x45ee0d=this['_headingOptions']?.['find'](_0x46a899=>_0x46a899['model']==_0x540a45);if(_0x45ee0d&&_0x45ee0d['view']){const _0xaa7580=_0x45ee0d['view'],_0x217103=(_0xaa7580['name']??_0xaa7580)['match'](/^h(\d+)/);if(_0x217103)return _0x217103[0x1];}return null;}}class st extends _0x282945{['afterInit'](){const _0x50e154=this['editor'];if(!_0x50e154['plugins']['has']('HighlightEditing'))return;const _0x586dc5=_0x50e154['plugins']['get']('TrackChangesEditing'),_0x4537c6=_0x50e154['locale'];_0x586dc5['enableDefaultAttributesIntegration']('highlight'),_0x586dc5['registerInlineAttribute']('highlight'),_0x586dc5['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4537c6,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d34d8=this['editor'],_0x3d094f=_0x4d34d8['locale'];_0x4d34d8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21df56=>{if('formatInline'!=_0x21df56['type'])return;const {data:_0x28f2dd}=_0x21df56;if(_0x28f2dd&&'highlight'==_0x28f2dd['commandName']){const _0x1644f0=_0x3d094f['t'],_0x4e09eb=_0x28f2dd['commandParams'][0x0]['value'];if(_0x4e09eb){const _0x557aa2=_0x4d34d8['config']['get']('highlight.options')['find'](_0x1170e0=>_0x1170e0['model']==_0x4e09eb),_0x59fc18=_0x1644f0(_0x557aa2['title'])['toLowerCase']();return{'type':'format','content':o(_0x3d094f,'*Set\x20highlight:*\x20%0',_0x59fc18),'color':{'value':_0x557aa2['color'],'title':_0x557aa2['title']}};}return{'type':'format','content':o(_0x3d094f,'*Remove\x20highlight*',o(_0x3d094f,'FORMAT_HIGHLIGHT'))};}});}}class ot extends _0x282945{['afterInit'](){const _0x438d24=this['editor'];if(!_0x438d24['plugins']['has']('HorizontalLineEditing'))return;_0x438d24['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x32d788=_0x438d24['plugins']['get']('TrackChangesEditing'),_0x4ffcbc=_0x438d24['locale'];_0x32d788['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5dc75a=>o(_0x4ffcbc,'ELEMENT_HORIZONTAL_LINE',_0x5dc75a)),_0x438d24['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2bc409,{writer:_0x4a6bfa,options:_0x2a814c})=>{if(!_0x2a814c['showSuggestionHighlights'])return null;const _0x14d68a=_0x4a6bfa['createContainerElement']('div'),_0x174031=_0x4a6bfa['createEmptyElement']('hr');return _0x4a6bfa['addClass']('ck-horizontal-line',_0x14d68a),_0x4a6bfa['insert'](_0x4a6bfa['createPositionAt'](_0x14d68a,0x0),_0x174031),_0x14d68a;},'converterPriority':'high'});}}class rt extends _0x282945{['afterInit'](){const _0x2a6636=this['editor'];if(!_0x2a6636['plugins']['has']('HtmlEmbed'))return;const _0x447a34=_0x2a6636['plugins']['get']('TrackChangesEditing'),_0x47135a=_0x2a6636['locale'];_0x447a34['descriptionFactory']['registerElementLabel']('rawHtml',_0x4370ec=>o(_0x47135a,'ELEMENT_HTML_EMBED',_0x4370ec)),_0x447a34['enableDefaultAttributesIntegration']('htmlEmbed'),_0x447a34['registerBlockAttribute']('value'),_0x447a34['descriptionFactory']['registerDescriptionCallback'](_0x356757=>{if('attribute'!=_0x356757['type'])return;const {data:_0x3da40b}=_0x356757;if(_0x3da40b&&'value'==_0x3da40b['key']&&_0x356757['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4fc4f9=o(_0x47135a,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x47135a,'*Change\x20%0\x20content*',_0x4fc4f9)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x153bb0=this['editor'],_0x887d91=_0x153bb0['locale'];_0x153bb0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x357961=>{if('formatBlock'!=_0x357961['type'])return;const {data:_0x4ccd17}=_0x357961;if(_0x4ccd17&&'htmlEmbed'==_0x4ccd17['commandName']){const _0x58effa=o(_0x887d91,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x887d91,'*Change\x20%0\x20content*',_0x58effa)};}});}}class at extends _0x282945{['afterInit'](){const _0x26557f=this['editor'];if(!_0x26557f['plugins']['has']('ImageEditing'))return;const _0x435f79=_0x26557f['plugins']['get']('TrackChangesEditing'),_0x9cf1f9=_0x26557f['plugins']['get']('ImageUtils'),_0x5aaf6a=_0x26557f['locale'];_0x435f79['enableCommand']('insertImage'),_0x435f79['descriptionFactory']['registerElementLabel']('imageBlock',_0x8e7f3=>o(_0x5aaf6a,'ELEMENT_IMAGE',_0x8e7f3)),_0x435f79['descriptionFactory']['registerElementLabel']('imageInline',_0x2cc85a=>o(_0x5aaf6a,'ELEMENT_INLINE_IMAGE',_0x2cc85a)),_0x435f79['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x5aaf6a,'ELEMENT_CAPTION')),_0x26557f['plugins']['has']('ImageUploadEditing')&&_0x435f79['enableCommand']('uploadImage'),_0x26557f['plugins']['has']('ImageBlockEditing')&&_0x26557f['plugins']['has']('ImageInlineEditing')&&(_0x435f79['enableCommand']('imageTypeInline',(_0x45e5e6,_0x2c5e47)=>{const _0x46bd00=_0x9cf1f9['getClosestSelectedImageElement'](_0x26557f['model']['document']['selection']);_0x26557f['model']['change'](()=>{_0x435f79['markBlockFormat'](_0x46bd00,{'commandName':'imageTypeInline','commandParams':[_0x2c5e47]},[],'convertBlockImageToInline');});}),_0x435f79['enableCommand']('imageTypeBlock',(_0xad1c26,_0x41d14e)=>{_0x26557f['model']['change'](_0x46ac2d=>{let _0x11826b=_0x9cf1f9['getClosestSelectedImageElement'](_0x26557f['model']['document']['selection']),_0xf963b7=_0x46ac2d['createRangeOn'](_0x11826b);const _0x1c3992=_0x5ca526['fromPosition'](_0xf963b7['start'],'toPrevious'),_0x5d020a=_0x5ca526['fromPosition'](_0xf963b7['end'],'toNext');_0x435f79['forceDefaultExecution'](()=>_0xad1c26(_0x41d14e)),_0x11826b=_0x9cf1f9['getClosestSelectedImageElement'](_0x26557f['model']['document']['selection']),_0xf963b7=_0x46ac2d['createRangeOn'](_0x11826b);const _0x4fe15b=_0x46ac2d['createRange'](_0x1c3992,_0x5d020a);_0x1c3992['detach'](),_0x5d020a['detach'](),_0x435f79['markBlockFormat'](_0x11826b,{'commandName':'imageTypeInline','commandParams':[_0x41d14e]},[],'convertInlineImageToBlock'),_0x4fe15b['start']['isBefore'](_0xf963b7['start'])&&_0x435f79['markInsertion'](_0x46ac2d['createRange'](_0x4fe15b['start'],_0xf963b7['start']),'convertInlineImageToBlock'),_0xf963b7['end']['isBefore'](_0x4fe15b['end'])&&_0x435f79['markInsertion'](_0x46ac2d['createRange'](_0xf963b7['end'],_0x4fe15b['end']),'convertInlineImageToBlock');});}),_0x435f79['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x435f79['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x435f79['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x435f79['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x435f79['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x435f79['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x161ca6])=>{const _0x534c24=_0x435f79['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5afbf7=_0x161ca6['start'],_0x52e2f1=_0x161ca6['end'];const _0x496d6a=_0x26557f['model']['schema']['getNearestSelectionRange'](_0x5afbf7,'backward'),_0xa103b1=_0x26557f['model']['schema']['getNearestSelectionRange'](_0x52e2f1,'forward');_0x496d6a['isCollapsed']&&(_0x5afbf7=_0x496d6a['start']),_0xa103b1['isCollapsed']&&(_0x52e2f1=_0xa103b1['end']),_0x534c24([_0x26557f['model']['createRange'](_0x5afbf7,_0x52e2f1)]);}),_0x435f79['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x22d9a7),_0x435f79['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x22d9a7)),_0x26557f['plugins']['has']('ImageCaptionEditing')&&(_0x435f79['enableCommand']('toggleImageCaption',(_0x464186,_0x1b4ffc)=>{const _0x54c3de=_0x26557f['plugins']['get']('ImageCaptionUtils');let _0x306b16=_0x9cf1f9['getClosestSelectedImageElement'](_0x26557f['model']['document']['selection']),_0x3383e3=_0x54c3de['getCaptionFromImageModelElement'](_0x306b16);_0x26557f['model']['change'](()=>{if(_0x3383e3)return void _0x435f79['markDeletion'](_0x26557f['model']['createRangeOn'](_0x3383e3));const _0xe10044=_0x9cf1f9['isBlockImage'](_0x306b16);_0x464186(_0x1b4ffc),_0x306b16=_0x9cf1f9['getClosestSelectedImageElement'](_0x26557f['model']['document']['selection']),_0x3383e3=_0x54c3de['getCaptionFromImageModelElement'](_0x306b16),_0x435f79['markInsertion'](_0x26557f['model']['createRangeOn'](_0x3383e3),_0xe10044?null:'imageCaption');});}),_0x435f79['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x22d9a7));const _0x3a89c9=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1ab621(_0x55c0be,_0xad6988){const _0xdf5ae4=_0x3a89c9['findIndex'](({type:_0x3e20b4,subType:_0x590ded})=>_0x55c0be['type']==_0x3e20b4&&_0x55c0be['subType']==_0x590ded),_0x16a126=_0x3a89c9['findIndex'](({type:_0x2e0b14,subType:_0x425301})=>_0xad6988['type']==_0x2e0b14&&_0xad6988['subType']==_0x425301);if(_0xdf5ae4<0x0||_0x16a126<0x0)return!0x1;const _0x4f8827=_0x55c0be['getFirstRange'](),_0x3e053f=_0xad6988['getFirstRange']();if((0x0==_0xdf5ae4||0x1==_0xdf5ae4)&&0x2==_0x16a126&&_0x4f8827['isIntersecting'](_0x3e053f))return!0x0;if(0x2==_0xdf5ae4&&0x3==_0x16a126){const _0xea49de=_0x435f79['_findSuggestions'](_0x4f8827,'insertion')['filter'](({suggestion:_0x9ab1f5,meta:_0x1c26c4})=>_0x1c26c4['isOwn']&&'convertInlineImageToBlock'==_0x9ab1f5['subType']);if(_0xea49de['length']>0x1&&_0x3e053f['end']['isEqual'](_0x4f8827['start']))return!0x0;if(0x1==_0xea49de['length']&&(_0x4f8827['start']['isEqual'](_0x3e053f['end'])||_0x4f8827['end']['isEqual'](_0x3e053f['start'])))return!0x0;}if(0x3==_0xdf5ae4&&0x3==_0x16a126&&_0x4f8827['start']['isBefore'](_0x3e053f['start'])){const _0x7844b=_0x4f8827['end']['nodeAfter'],_0x13eb5f=_0x3e053f['start']['nodeBefore'];return _0x9cf1f9['isBlockImage'](_0x7844b)&&_0x7844b===_0x13eb5f;}return!0x1;}function _0x22d9a7(_0x5e076d,_0xb821a6){return _0x1ab621(_0x5e076d,_0xb821a6)?[_0x5e076d,_0xb821a6]:_0x1ab621(_0xb821a6,_0x5e076d)?[_0xb821a6,_0x5e076d]:null;}_0x26557f['plugins']['has']('ImageResize')&&(_0x435f79['enableDefaultAttributesIntegration']('resizeImage'),_0x435f79['registerBlockAttribute']('resizedWidth'),_0x435f79['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x5aaf6a,'FORMAT_IMAGE_SIZE'))),_0x26557f['plugins']['has']('ImageTextAlternativeEditing')&&(_0x435f79['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x435f79['registerBlockAttribute']('alt')),_0x26557f['plugins']['has']('PictureEditing')&&(_0x435f79['registerBlockAttribute']('sources'),_0x435f79['descriptionFactory']['registerDescriptionCallback'](_0x180284=>{if('attribute'!=_0x180284['type'])return;const {data:_0x4cde11}=_0x180284;return _0x4cde11&&'sources'==_0x4cde11['key']?{'type':'format','content':''}:void 0x0;})),_0x26557f['plugins']['has']('ImageSizeAttributes')&&(_0x435f79['registerBlockAttribute']('width'),_0x435f79['registerBlockAttribute']('height'),_0x435f79['descriptionFactory']['registerDescriptionCallback'](_0x454249=>{if('attribute'!=_0x454249['type'])return;const {data:_0x8e50f1}=_0x454249;return!_0x8e50f1||'width'!=_0x8e50f1['key']&&'height'!=_0x8e50f1['key']?void 0x0:{'type':'format','content':''};})),_0x435f79['descriptionFactory']['registerDescriptionCallback'](_0x40b1bc=>{if(!!_0x3a89c9['find'](({type:_0x49839c,subType:_0x2e8a33})=>_0x40b1bc['type']==_0x49839c&&_0x40b1bc['subType']==_0x2e8a33))return _0x40b1bc['previous']?{}:void 0x0;}),_0x435f79['descriptionFactory']['registerDescriptionCallback'](_0x20d69c=>{if('insertion'==_0x20d69c['type']||'deletion'==_0x20d69c['type']){const _0x481c51=_0x20d69c['getContainedElement']();if(_0x481c51&&_0x481c51['is']('element','caption'))return{'type':'insertion'==_0x20d69c['type']?'addObject':'removeObject','element':_0x481c51,'quantity':0x1};}}),_0x435f79['descriptionFactory']['registerDescriptionCallback'](_0x223ab0=>'formatBlock'==_0x223ab0['type']&&'convertInlineImageToBlock'==_0x223ab0['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x223ab0['type']&&'convertBlockImageToInline'==_0x223ab0['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x435f79['descriptionFactory']['registerDescriptionCallback'](_0x139088=>{if('attribute'!=_0x139088['type'])return;const {data:_0x3c2002}=_0x139088;if(!_0x3c2002||'alt'!=_0x3c2002['key'])return;const _0x5b3ad9=_0x3c2002['newValue'];return _0x5b3ad9?{'type':'format','content':o(_0x5aaf6a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5b3ad9+'\x22')}:{'type':'format','content':o(_0x5aaf6a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52ac42=this['editor'],_0x16f8e7=_0x52ac42['locale'];_0x52ac42['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ea47a=>{if('formatBlock'!=_0x4ea47a['type']&&'formatInline'!=_0x4ea47a['type'])return;const {data:_0x1c5045}=_0x4ea47a;if(_0x1c5045){if('imageTextAlternative'==_0x1c5045['commandName']){const _0xad8ac8=_0x1c5045['commandParams'][0x0]['newValue'];return _0xad8ac8?{'type':'format','content':o(_0x16f8e7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xad8ac8+'\x22')}:{'type':'format','content':o(_0x16f8e7,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1c5045['commandName']){const _0x1c7792=_0x1c5045['commandParams'][0x0]['width'];return _0x1c7792?{'type':'format','content':o(_0x16f8e7,'*Set\x20image\x20width:*\x20%0',_0x1c7792)}:{'type':'format','content':o(_0x16f8e7,'*Reset\x20image\x20width*')};}}});}}class ct extends _0x282945{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x10e4dd=this['editor']['locale'],_0x20780f=this['editor']['plugins']['get']('TrackChangesEditing');_0x20780f['enableDefaultAttributesIntegration']('replaceImageSource'),_0x20780f['registerBlockAttribute']('src'),_0x20780f['descriptionFactory']['registerDescriptionCallback'](_0x1e18d0=>{if('attribute'!=_0x1e18d0['type'])return;const {data:_0x32c4b9}=_0x1e18d0;return _0x32c4b9&&'src'==_0x32c4b9['key']?_0x32c4b9['newValue']&&_0x32c4b9['oldValue']?{'type':'format','content':o(_0x10e4dd,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x7d56b=this['editor']['plugins']['get']('TrackChangesEditing');_0x7d56b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x7d56b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x7d56b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x7d56b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39bd1b=this['editor'],_0x4e4d13=_0x39bd1b['locale'];_0x39bd1b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5765cc=>{if('formatBlock'!=_0x5765cc['type']&&'formatInline'!=_0x5765cc['type'])return;const {data:_0x374d47}=_0x5765cc;if(!_0x374d47||'replaceImageSource'!=_0x374d47['commandName'])return;return{'type':'format','content':o(_0x4e4d13,'*Format:*\x20replace\x20image\x20URL')};});}}class ut extends _0x282945{['afterInit'](){const _0x228ad1=this['editor'];if(!_0x228ad1['plugins']['has']('ImageStyleEditing'))return;const _0x4d4cf4=_0x228ad1['plugins']['get']('TrackChangesEditing'),_0x82100e=_0x228ad1['plugins']['get']('ImageUtils'),_0x9f53d1={};_0x4d4cf4['enableCommand']('imageStyle',(_0x2b96b6,_0x1d5837)=>{const _0x482385=_0x228ad1['plugins']['get']('Users')['me'],_0x2f2cda=_0x228ad1['commands']['get']('imageStyle');let _0x3f4311=_0x82100e['getClosestSelectedImageElement'](_0x228ad1['model']['document']['selection']),_0x584eba=_0x228ad1['model']['createRangeOn'](_0x3f4311),_0x498df4=_0x2f2cda['value'];if(_0x498df4==_0x1d5837['value'])return;const _0x594d94={'commandName':'imageStyle','commandParams':[_0x1d5837],'formatGroupId':_0x31d37c()};_0x228ad1['model']['change'](()=>{if(_0x4d4cf4['getSuggestions']()['filter'](_0x57aebe=>_0x57aebe['isInContent']&&_0x482385==_0x57aebe['author']&&('formatBlock'==_0x57aebe['type']||'formatInline'==_0x57aebe['type'])&&('imageStylePreApply'==_0x57aebe['subType']||'imageStylePostApply'==_0x57aebe['subType'])&&_0x57aebe['getFirstRange']()['isEqual'](_0x584eba))['forEach'](_0x1cf398=>_0x4d4cf4['discardSuggestion'](_0x1cf398['head'])),_0x3f4311=_0x82100e['getClosestSelectedImageElement'](_0x228ad1['model']['document']['selection']),_0x584eba=_0x228ad1['model']['createRangeOn'](_0x3f4311),_0x2f2cda['refresh'](),_0x228ad1['commands']['get']('imageTypeInline')['refresh'](),_0x228ad1['commands']['get']('imageTypeBlock')['refresh'](),_0x498df4=_0x2f2cda['value'],_0x498df4!=_0x1d5837['value'])return _0x82100e['isInlineImage'](_0x3f4311)&&_0x2f2cda['shouldConvertImageType'](_0x1d5837['value'],_0x3f4311)?(_0x2b96b6({..._0x1d5837,'setImageSizes':!0x1}),_0x3f4311=_0x82100e['getClosestSelectedImageElement'](_0x228ad1['model']['document']['selection']),void _0x4d4cf4['markBlockFormat'](_0x3f4311,{..._0x594d94,'commandReversedParams':[{'value':_0x498df4||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x82100e['isBlockImage'](_0x3f4311)?_0x4d4cf4['markBlockFormat'](_0x3f4311,_0x594d94,[],'imageStylePostApply'):_0x4d4cf4['markInlineFormat'](_0x584eba,_0x594d94,'imageStylePostApply'));});});for(const _0x29d755 of _0x228ad1['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x9f53d1[_0x29d755['name']]=_0x29d755['title']['toLowerCase']();_0x4d4cf4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4d4cf4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4d4cf4['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4d4cf4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x11a55b])=>{_0x82100e['setImageNaturalSizeAttributes'](_0x11a55b['getContainedElement']());}),_0x4d4cf4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x582832,_0x430a0c)=>{_0x4d4cf4['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x582832,{'commandName':_0x430a0c['commandName'],'commandParams':_0x430a0c['commandReversedParams']});}),_0x4d4cf4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1f143c,_0x555f7d){if(_0x377ca1(_0x1f143c,_0x555f7d))return[_0x1f143c,_0x555f7d];if(_0x377ca1(_0x555f7d,_0x1f143c))return[_0x555f7d,_0x1f143c];return null;});const _0x43b710=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x377ca1(_0x2cf774,_0x2a739f){const _0x25a15e=_0x43b710['findIndex'](({type:_0x257004,subType:_0x355b5f})=>_0x2cf774['type']==_0x257004&&_0x2cf774['subType']==_0x355b5f),_0xc14c60=_0x43b710['findIndex'](({type:_0x4841ae,subType:_0x3de1ed})=>_0x2a739f['type']==_0x4841ae&&_0x2a739f['subType']==_0x3de1ed);if(_0x25a15e<0x0||_0xc14c60<0x0)return!0x1;const _0x5afc63=_0x2cf774['getFirstRange'](),_0x2c8252=_0x2a739f['getFirstRange']();if((0x0==_0x25a15e||0x1==_0x25a15e)&&0x2==_0xc14c60&&_0x5afc63['isIntersecting'](_0x2c8252))return!0x0;if(0x2==_0x25a15e&&0x3==_0xc14c60){const _0x34a494=_0x4d4cf4['_findSuggestions'](_0x5afc63,'insertion')['filter'](({suggestion:_0xf4291a,meta:_0x547854})=>_0x547854['isOwn']&&'convertInlineImageToBlock'==_0xf4291a['subType']);if(_0x34a494['length']>0x1&&_0x2c8252['end']['isEqual'](_0x5afc63['start']))return!0x0;if(0x1==_0x34a494['length']&&(_0x5afc63['start']['isEqual'](_0x2c8252['end'])||_0x5afc63['end']['isEqual'](_0x2c8252['start'])))return!0x0;}if(0x3==_0x25a15e&&0x3==_0xc14c60&&_0x5afc63['start']['isBefore'](_0x2c8252['start'])){const _0x5e57d7=_0x5afc63['end']['nodeAfter'],_0x524c1b=_0x2c8252['start']['nodeBefore'];return _0x82100e['isBlockImage'](_0x5e57d7)&&_0x5e57d7===_0x524c1b;}return!0x1;}_0x228ad1['model']['document']['registerPostFixer'](()=>{let _0x1b4126=!0x1;const _0x1249aa=Array['from'](_0x228ad1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2dc38f,data:_0x206c3d}of _0x1249aa){const {group:_0x38ef8e,type:_0xeef216,subType:_0x583851,id:_0x56db6b}=_0x4d4cf4['_splitMarkerName'](_0x2dc38f);if('suggestion'==_0x38ef8e&&_0x4d4cf4['hasSuggestion'](_0x56db6b)){if('formatBlock'==_0xeef216&&('imageStylePreApply'==_0x583851||'imageStylePostApply'==_0x583851)){const _0x7b5a3f=_0x4d4cf4['getSuggestion'](_0x56db6b);if(_0x206c3d['newRange']){const _0x98ec4c=_0x7b5a3f['getFirstRange']()['getContainedElement']();if(_0x82100e['isBlockImage'](_0x98ec4c))continue;_0x4d4cf4['discardSuggestion'](_0x7b5a3f),_0x1b4126=!0x0;}}if('insertion'==_0xeef216&&'imageCaption'==_0x583851&&!_0x206c3d['newRange']){const _0x711af9=_0x4d4cf4['getSuggestion'](_0x56db6b);_0x711af9['next']&&_0x711af9['next']['isInContent']&&(_0x4d4cf4['discardSuggestion'](_0x711af9['next']),_0x1b4126=!0x0);}}}return _0x1b4126;}),this['_registerLegacyDescription'](_0x9f53d1);}['_registerLegacyDescription'](_0x35813b){const _0x5c6ac8=this['editor'],_0x59e0d3=_0x5c6ac8['locale'];_0x5c6ac8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x241c25=>{if('formatBlock'!=_0x241c25['type']&&'formatInline'!=_0x241c25['type'])return;const {data:_0xf722c4}=_0x241c25;if(!_0xf722c4||'imageStyle'!=_0xf722c4['commandName'])return;const _0x5af06b=_0xf722c4['commandParams'][0x0]['value'];return _0x1e48d9('side'===_0x5af06b?o(_0x59e0d3,'FORMAT_SIDE_IMAGE'):_0x35813b[_0x5af06b]||_0x5af06b);function _0x1e48d9(_0x561e4d){return{'type':'format','content':o(_0x59e0d3,'*Format:*\x20%0',_0x561e4d)};}});}}class ft extends _0x282945{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x48fe64){super(_0x48fe64),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4e95e4=this['editor'],_0x22a230=_0x4e95e4['commands']['get']('importWord'),_0x326564=_0x4e95e4['commands']['get']('trackChanges');_0x22a230&&(_0x22a230['on']('execute',(_0x3a7ef0,[,_0x2f3d9e])=>{this['_trackChangesValueDuringImport']=_0x326564['value'],_0x2f3d9e['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x22a230,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x22a230,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x326564['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4e95e4['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2ae0b3,_0x14da58){const {suggestions:_0x2ed3ba}=_0x14da58,_0x3b432c=this['editor']['commands']['get']('trackChanges'),_0x4a8549=_0x3b432c['value'];this['_trackChangesValueDuringImport']!==_0x4a8549&&(_0x3b432c['execute'](),this['_trackChangesExecuted']=!0x0),_0x2ed3ba&&_0x2ed3ba['forEach'](({id:_0x10e889,type:_0x1fdf32,author:_0x2aeecd,created_at:_0x354960})=>{const _0x3fda82={'id':_0x10e889,'type':_0x1fdf32,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2aeecd,'createdAt':_0x354960?new Date(_0x354960):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3fda82);});}}class ht extends _0x282945{['afterInit'](){const _0xeb334a=this['editor'],_0x43d54d=_0xeb334a['plugins']['get']('TrackChangesEditing');if(_0xeb334a['plugins']['has']('IndentEditing')&&(_0x43d54d['enableCommand']('indent'),_0x43d54d['enableCommand']('outdent')),_0xeb334a['plugins']['has']('IndentBlock')){for(const _0x331ff0 of['indentBlock','outdentBlock'])_0x43d54d['enableDefaultAttributesIntegration'](_0x331ff0);}const _0x475917=_0xeb334a['locale'];_0x43d54d['registerBlockAttribute']('blockIndent'),_0x43d54d['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x475917,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ce4c6=this['editor'],_0x40efd2=_0x4ce4c6['locale'],_0x239d42=_0x4ce4c6['plugins']['get']('TrackChangesEditing');_0x239d42['descriptionFactory']['registerDescriptionCallback'](_0x104828=>{if('formatBlock'!=_0x104828['type'])return;const {data:_0x18ba4e}=_0x104828;if(!_0x18ba4e)return;if('indentBlock'!=_0x18ba4e['commandName']&&'outdentBlock'!=_0x18ba4e['commandName'])return;const _0x2f9914=_0x104828['getItems']()[0x0],_0x36472f=_0x239d42['descriptionFactory']['getItemLabel'](_0x2f9914);return'indentBlock'==_0x18ba4e['commandName']?{'type':'format','content':o(_0x40efd2,'*Indent:*\x20%0',_0x36472f)}:'outdentBlock'==_0x18ba4e['commandName']?{'type':'format','content':o(_0x40efd2,'*Outdent:*\x20%0',_0x36472f)}:void 0x0;});}}class gt extends _0x282945{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x282945{['afterInit'](){const _0x55c8be=this['editor'];if(!_0x55c8be['plugins']['has']('LinkEditing'))return;const _0x37d957=_0x55c8be['plugins']['get']('TrackChangesEditing'),_0x3c3b07=_0x55c8be['commands']['get']('link');_0x37d957['enableDefaultAttributesIntegration']('link'),_0x37d957['enableDefaultAttributesIntegration']('unlink'),_0x37d957['registerInlineAttribute']('linkHref');for(const _0x3084ed of _0x3c3b07['manualDecorators'])_0x37d957['registerInlineAttribute'](_0x3084ed['id']),_0x37d957['descriptionFactory']['registerAttributeLabel'](_0x3084ed['id'],'link\x20('+_0x3084ed['label']['toLowerCase']()+')');_0x37d957['descriptionFactory']['registerDescriptionCallback'](_0x326c39=>{if('attribute'!=_0x326c39['type'])return;const {data:_0x39cb8a}=_0x326c39;if(!_0x39cb8a||'linkHref'!=_0x39cb8a['key'])return;const _0x7c98c=_0x39cb8a['newValue'],_0x1baf41=_0x55c8be['locale'];return{'type':'format','content':null==_0x7c98c?o(_0x1baf41,'*Remove\x20link*'):o(_0x1baf41,'*Set\x20link:*\x20%0','\x22'+_0x7c98c+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30e11d=this['editor'],_0x1d9824=_0x30e11d['locale'];_0x30e11d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c3f4f=>{if('formatInline'!=_0x4c3f4f['type'])return;const {data:_0x2cc5af}=_0x4c3f4f;if(_0x2cc5af){if('link'==_0x2cc5af['commandName']){const _0x23fbea=_0x2cc5af['commandParams'][0x0];return{'type':'format','content':o(_0x1d9824,'*Set\x20link:*\x20%0','\x22'+_0x23fbea+'\x22')};}return'unlink'==_0x2cc5af['commandName']?{'type':'format','content':o(_0x1d9824,'*Remove\x20link*')}:void 0x0;}});}}class dt extends _0x282945{['afterInit'](){const _0x493c99=this['editor'],_0x586bcf=_0x493c99['locale'];if(!_0x493c99['plugins']['has']('LegacyListEditing'))return;const _0x30bcfb=_0x493c99['plugins']['get']('TrackChangesEditing'),_0x5ab54e=_0x493c99['plugins']['has']('LegacyTodoListEditing');function _0x5f29e2(_0x281066){return()=>{const _0x2873db=_0x493c99['model']['document']['selection'],_0x98d30b=_0x493c99['commands']['get'](_0x281066);if(_0x98d30b['value'])return void _0x493c99['execute']('paragraph',{});const _0x3ff594=_0x281066['slice'](0x0,-0x4),_0x289965=function(_0x34f19d,_0x525b05,_0x2bccd4){let _0x275d38=Array['from'](_0x34f19d)['filter'](_0x12e777=>function(_0x15990b,_0x3abe85){return _0x3abe85['checkChild'](_0x15990b['parent'],'listItem')&&!_0x3abe85['isObject'](_0x15990b);}(_0x12e777,_0x2bccd4));_0x275d38=_0x275d38['filter'](_0x1f8b4d=>!_0x1f8b4d['is']('element','listItem')||_0x1f8b4d['getAttribute']('listType')!=_0x525b05);const _0x181620=new Set();for(const _0x429899 of _0x275d38)_0x429899['is']('element','listItem')?_0x181620['add'](Ne(_0x429899)):_0x181620['add'](_0x429899);return Array['from'](_0x181620);}(_0x2873db['getSelectedBlocks'](),_0x3ff594,_0x493c99['model']['schema']);_0x493c99['model']['change'](()=>{for(const _0xde4235 of _0x289965)_0x30bcfb['markBlockFormat'](_0xde4235,{'commandName':_0x281066,'commandParams':[{'forceValue':!_0x98d30b['value']}],'formatGroupId':'blockName'},Se(_0xde4235));});};}function _0x299521(_0x4cddc8){return()=>{const _0x450390=function(_0x4ec768){let _0x5e9ce9=Array['from'](_0x4ec768);const _0x4dc205=_0x5e9ce9['findIndex'](_0x440927=>'listItem'!=_0x440927['name']);return _0x4dc205>-0x1&&(_0x5e9ce9=_0x5e9ce9['slice'](0x0,_0x4dc205)),_0x5e9ce9;}(_0x493c99['model']['document']['selection']['getSelectedBlocks']()),_0x203771=_0x493c99['model']['createRange'](_0x493c99['model']['createPositionAt'](_0x450390[0x0],'before'),_0x493c99['model']['createPositionAt'](_0x450390[_0x450390['length']-0x1],'end'));_0x493c99['model']['change'](()=>{_0x30bcfb['markBlockFormat'](_0x203771,{'commandName':_0x4cddc8,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3094b5){const _0x17e008=new Set();for(const _0x13322c of _0x3094b5){let _0x258377=_0x13322c['nextSibling'];for(;_0x258377&&_0x258377['getAttribute']('listIndent')>_0x13322c['getAttribute']('listIndent');)_0x17e008['add'](_0x258377),_0x258377=_0x258377['nextSibling'];}return Array['from'](_0x17e008);}(_0x450390));});};}_0x30bcfb['enableCommand']('numberedList',_0x5f29e2('numberedList')),_0x30bcfb['enableCommand']('bulletedList',_0x5f29e2('bulletedList')),_0x5ab54e&&_0x30bcfb['enableCommand']('todoList',_0x5f29e2('todoList')),_0x30bcfb['enableCommand']('indentList',_0x299521('indentList')),_0x30bcfb['enableCommand']('outdentList',_0x299521('outdentList')),_0x5ab54e&&_0x30bcfb['enableCommand']('checkTodoList',()=>{const _0xde69e2=_0x493c99['commands']['get']('checkTodoList'),_0x520459=Array['from'](_0xde69e2['_selectedElements']);_0x520459['filter'](_0xd6eaaf=>_0xd6eaaf['getAttribute']('todoListChecked')!=_0xde69e2['value']),_0x493c99['model']['change'](()=>{for(const _0x32f532 of _0x520459)_0x30bcfb['markBlockFormat'](_0x32f532,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xde69e2['value']}]});});}),_0x30bcfb['descriptionFactory']['registerElementLabel']('listItem',_0x215b6b=>o(_0x586bcf,'ELEMENT_LIST_ITEM',_0x215b6b)),_0x30bcfb['descriptionFactory']['registerDescriptionCallback'](_0x1e5daa=>{if('formatBlock'!=_0x1e5daa['type']&&'formatInline'!=_0x1e5daa['type'])return;const {data:_0x260e68}=_0x1e5daa;if(_0x260e68){if('numberedList'==_0x260e68['commandName']||'bulletedList'==_0x260e68['commandName']||'todoList'==_0x260e68['commandName'])switch(_0x260e68['commandName']['replace']('List','')){case'bulleted':return _0x3146f5(o(_0x586bcf,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3146f5(o(_0x586bcf,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3146f5(o(_0x586bcf,'ELEMENT_TODO_LIST'));}if('indentList'==_0x260e68['commandName'])return{'type':'format','content':o(_0x586bcf,'*Indent:*\x20%0',o(_0x586bcf,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x260e68['commandName'])return{'type':'format','content':o(_0x586bcf,'*Outdent:*\x20%0',o(_0x586bcf,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x260e68['commandName'])return _0x260e68['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x586bcf,'*Check\x20item*')}:{'type':'format','content':o(_0x586bcf,'*Uncheck\x20item*')};}function _0x3146f5(_0x360549){return{'type':'format','content':o(_0x586bcf,'*Change\x20to:*\x20%0',_0x360549)};}});}}function Ne(_0x5f5074){const _0x4bc4a8=_0x5f5074['getAttribute']('listIndent');if(0x0==_0x4bc4a8)return _0x5f5074;let _0x5b2f1e=_0x5f5074;for(;_0x5f5074['previousSibling']&&_0x5f5074['previousSibling']['is']('element','listItem');){const _0x520256=_0x5f5074['previousSibling']['getAttribute']('listIndent');if(_0x520256==_0x4bc4a8)_0x5b2f1e=_0x5f5074['previousSibling'];else{if(_0x520256<_0x4bc4a8)break;}_0x5f5074=_0x5f5074['previousSibling'];}return _0x5b2f1e;}function Se(_0x44458e){const _0x325129=[];if(_0x44458e['is']('element','listItem')&&_0x44458e['getAttribute']('listIndent')>0x0){let _0x36bebd=_0x44458e['nextSibling'];for(;_0x36bebd&&'listItem'==_0x36bebd['name']&&_0x36bebd['getAttribute']('listIndent')==_0x44458e['getAttribute']('listIndent');)_0x325129['push'](_0x36bebd),_0x36bebd=_0x36bebd['nextSibling'];}return _0x325129;}class mt extends _0x282945{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4af526=this['editor']['config']['get']('list.properties'),_0x2941f0=this['editor']['plugins']['get']('TrackChangesEditing');_0x4af526['styles']&&_0x2941f0['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4af526['reversed']&&_0x2941f0['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4af526['startIndex']&&_0x2941f0['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2941f0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5d2efc,_0x31213d={}){const _0x2a03ca=this['editor']['plugins']['get']('TrackChangesEditing'),_0x32e5cb=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2a03ca['markMultiRangeBlockFormat'](_0x32e5cb,{'commandName':'listStyle','commandParams':[{'type':_0x31213d['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5b07bb,_0x5dfc22={}){const _0x24dec9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1c3bab=this['_getSuggestionBlocks'](_0x15214f=>_0x15214f['is']('element','listItem')&&'numbered'===_0x15214f['getAttribute']('listType'));if(_0x1c3bab['length']<0x1)return;const _0x2251e0=_0x1c3bab['map'](_0x213bfe=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x213bfe,'before'),this['editor']['model']['createPositionAt'](_0x213bfe,0x0)));this['editor']['model']['change'](()=>{_0x24dec9['markMultiRangeBlockFormat'](_0x2251e0,{'commandName':'listReversed','commandParams':[{'reversed':_0x5dfc22['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5345d2,_0x3dffc2={}){const _0x2bfe27=this['editor']['plugins']['get']('TrackChangesEditing'),_0x12b370=this['_getSuggestionBlocks'](_0x261ddf=>_0x261ddf['is']('element','listItem')&&'numbered'===_0x261ddf['getAttribute']('listType'));if(_0x12b370['length']<0x1)return;const _0xb38f10=_0x12b370['map'](_0x4ca252=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4ca252,'before'),this['editor']['model']['createPositionAt'](_0x4ca252,0x0)));this['editor']['model']['change'](()=>{_0x2bfe27['markMultiRangeBlockFormat'](_0xb38f10,{'commandName':'listStart','commandParams':[{'startIndex':_0x3dffc2['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x27a8f1){if('formatBlock'!=_0x27a8f1['type']&&'formatInline'!=_0x27a8f1['type'])return;const _0x391371=this['editor']['locale'],{data:_0x1434f5}=_0x27a8f1;if(!_0x1434f5)return;let _0x186cb0,_0x1d0861;switch(_0x1434f5['commandName']){case'listStyle':_0x186cb0='*Change\x20to:*\x20%0',_0x1d0861={'type':'format','content':o(_0x391371,_0x186cb0,o(_0x391371,this['_getTranslationKeyForListStyle'](_0x1434f5['commandParams'][0x0]['type'])))};break;case'listReversed':_0x186cb0=_0x1434f5['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1d0861={'type':'format','content':o(_0x391371,_0x186cb0)};break;case'listStart':_0x186cb0='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1d0861={'type':'format','content':o(_0x391371,_0x186cb0,_0x1434f5['commandParams'][0x0]['startIndex'])};}return _0x1d0861;}['_getSuggestionBlocksForListStyle'](){const _0x353a01=this['editor']['plugins']['get']('LegacyListUtils');let _0x22f147=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x22f147[0x0]?.['is']('element','listItem')&&_0x22f147['unshift'](..._0x353a01['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x22f147[_0x22f147['length']-0x1]?.['is']('element','listItem')&&_0x22f147['push'](..._0x353a01['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x22f147=[...new Set(_0x22f147)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x22f147=_0x22f147['filter'](_0x868031=>_0x868031['is']('element','listItem'))),_0x22f147;}['_getSuggestionBlocks'](_0x44a635){const _0x210918=this['editor']['plugins']['get']('LegacyListUtils');let _0x4b0b56=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x44a635)['map'](_0x3a17f1=>{const _0x1ff4a6=this['editor']['model']['createPositionAt'](_0x3a17f1,0x0);return[..._0x210918['getSiblingNodes'](_0x1ff4a6,'backward'),..._0x210918['getSiblingNodes'](_0x1ff4a6,'forward')];})['flat']();return _0x4b0b56=[...new Set(_0x4b0b56)],_0x4b0b56;}['_getTranslationKeyForListStyle'](_0x5d0ba5){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5d0ba5)||'default')['toUpperCase']()+'_LIST_'+_0x5d0ba5['toUpperCase']()['replace'](/-/g,'_');}}class pt extends _0x282945{['afterInit'](){const _0x4959d1=this['editor'];if(!_0x4959d1['plugins']['has']('MediaEmbedEditing'))return;const _0x7f1387=_0x4959d1['plugins']['get']('TrackChangesEditing'),_0x12cc63=_0x4959d1['locale'];_0x7f1387['enableCommand']('mediaEmbed'),_0x7f1387['descriptionFactory']['registerElementLabel']('media',_0x2e4d06=>o(_0x12cc63,'ELEMENT_MEDIA',_0x2e4d06)),_0x4959d1['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xe7c718,{writer:_0x51e479,options:_0x203842})=>{if(_0x203842['showSuggestionHighlights'])return _0x51e479['createEmptyElement']('div');},'converterPriority':'high'}),_0x4959d1['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5099c8,_0x5e408b,_0x40f4b7)=>{_0x40f4b7['options']['showSuggestionHighlights']&&_0x5099c8['stop']();},{'priority':'high'});}}class kt extends _0x282945{['afterInit'](){const _0x48681e=this['editor'];_0x48681e['plugins']['has']('MentionEditing')&&_0x48681e['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x282945{['afterInit'](){const _0x285151=this['editor'];if(!_0x285151['plugins']['has']('MergeFieldsEditing'))return;const _0x2ec3ad=_0x285151['plugins']['get']('TrackChangesEditing'),_0x4639ed=_0x285151['locale'];_0x2ec3ad['enableCommand']('insertMergeField'),_0x2ec3ad['enableCommand']('insertMergeFieldBlock'),_0x2ec3ad['enableCommand']('insertMergeFieldImage'),_0x2ec3ad['descriptionFactory']['registerElementLabel']('mergeField',_0x2aecd4=>o(_0x4639ed,'ELEMENT_MERGE_FIELD',_0x2aecd4)),_0x2ec3ad['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x9a7efc=>o(_0x4639ed,'ELEMENT_MERGE_FIELD',_0x9a7efc)),_0x2ec3ad['descriptionFactory']['registerDescriptionCallback'](_0x1a410a=>{if('insertion'!=_0x1a410a['type']&&'deletion'!=_0x1a410a['type'])return;const _0x61ccb3=_0x1a410a['getContainedElement']();if(null==_0x61ccb3)return;const _0x4ad6c3=_0x285151['plugins']['get']('MergeFieldsEditing');let _0x388689;switch(_0x4ad6c3['getMergeFieldType'](_0x61ccb3)){case null:return;case'image':{const _0x5be9cb=_0x4ad6c3['unwrapAffixes'](_0x61ccb3['getAttribute']('src'));_0x388689=_0x4ad6c3['getLabel'](_0x5be9cb)||_0x5be9cb;break;}default:{const _0x34ba93=_0x61ccb3['getAttribute']('id');_0x388689=_0x4ad6c3['getLabel'](_0x34ba93)||_0x34ba93;break;}}return'insertion'==_0x1a410a['type']?{'type':'insertion','content':o(_0x4639ed,'*Insert:*\x20%0','\x22'+_0x388689+'\x22\x20'+o(_0x4639ed,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x4639ed,'*Remove:*\x20%0','\x22'+_0x388689+'\x22\x20'+o(_0x4639ed,'ELEMENT_MERGE_FIELD'))};});}}class bt extends _0x282945{['afterInit'](){const _0x501309=this['editor'],_0x3bb019=_0x501309['plugins']['get']('TrackChangesEditing');_0x501309['plugins']['has']('MultiLevelList')&&(_0x3bb019['enableDefaultAttributesIntegration']('multiLevelList'),_0x3bb019['registerBlockAttribute']('listMarkerStyle'),_0x3bb019['descriptionFactory']['registerDescriptionCallback'](_0x3311a4=>this['handleDescriptions'](_0x3311a4)));}['handleDescriptions'](_0x29d6e4){const _0x5e2545=this['editor']['locale'],{data:_0x2956e1}=_0x29d6e4,_0x14f4f5={'type':'format','content':''};if(_0x2956e1&&'listMarkerStyle'==_0x2956e1['key']){if(!_0x2956e1['oldValue'])return{'type':'format','content':o(_0x5e2545,'*Set\x20format:*\x20%0',o(_0x5e2545,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2956e1['newValue']+')'};if(!_0x2956e1['newValue']){let _0x25c211=_0x29d6e4['head'];for(;_0x25c211;){if(_0x25c211['data']&&'listType'==_0x25c211['data']['key']&&_0x25c211['data']['newValue'])return _0x14f4f5;_0x25c211=_0x25c211['next'];}return{'type':'format','content':o(_0x5e2545,'*Remove\x20format:*\x20%0',o(_0x5e2545,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2956e1['oldValue']+')'};}}}}class yt extends _0x282945{['afterInit'](){const _0x5579c2=this['editor'];if(!_0x5579c2['plugins']['has']('PageBreakEditing'))return;_0x5579c2['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x6bf2b=_0x5579c2['plugins']['get']('TrackChangesEditing'),_0x1c0cca=_0x5579c2['locale'];_0x6bf2b['descriptionFactory']['registerElementLabel']('pageBreak',_0x24ef3b=>o(_0x1c0cca,'ELEMENT_PAGE_BREAK',_0x24ef3b));}}class St extends _0x282945{['afterInit'](){const _0x40a157=this['editor'];if(!_0x40a157['plugins']['has']('Paragraph'))return;const _0x10dbc4=_0x40a157['locale'],_0x294b94=_0x40a157['plugins']['get']('TrackChangesEditing');_0x294b94['descriptionFactory']['registerElementLabel']('paragraph',_0x4b3778=>o(_0x10dbc4,'ELEMENT_PARAGRAPH',_0x4b3778)),_0x294b94['enableDefaultAttributesIntegration']('paragraph'),_0x294b94['enableCommand']('insertParagraph'),_0x40a157['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x40a157),{'priority':'highest'}),_0x40a157['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x28bcc9,_0x25c410,_0x9296c7)=>{_0x9296c7['options']['showSuggestionHighlights']&&nr(_0x40a157,{'showActiveMarker':!0x1})(_0x28bcc9,_0x25c410,_0x9296c7);},{'priority':'highest'});const _0x4f975d=_0x294b94['descriptionFactory'];_0x4f975d['registerDescriptionCallback'](_0x2111a9=>{if('insertion'!==_0x2111a9['type'])return;const {start:_0x23e1da,end:_0x128599}=_0x2111a9['getFirstRange']();if(!_0x23e1da['isTouching'](_0x128599)||!_0x23e1da['nodeAfter'])return;const _0x13f520=_0x40a157['model']['schema'],_0x293fa5=_0x23e1da['nodeAfter'];return _0x13f520['isBlock'](_0x293fa5)&&!_0x13f520['isLimit'](_0x293fa5)&&_0x13f520['checkChild'](_0x293fa5,'$text')?{'type':'insertion','content':o(_0x10dbc4,'*Insert:*\x20%0',_0x4f975d['getItemLabel'](_0x293fa5,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x152201=this['editor'],_0x154d24=_0x152201['locale'];_0x152201['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x490c28=>{if('formatBlock'!=_0x490c28['type'])return;const {data:_0x42574b}=_0x490c28;return _0x42574b&&'paragraph'==_0x42574b['commandName']?{'type':'format','content':o(_0x154d24,'*Change\x20to:*\x20%0',o(_0x154d24,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x19b74f,{showActiveMarker:_0x480c99=!0x0}={}){return(_0x473f95,_0x3bb192,_0x59b12b)=>{const _0x55a368=_0x19b74f['plugins']['get']('TrackChangesEditing'),_0x5cc1bf=_0x3bb192['markerRange']['start'],_0x516f81=_0x3bb192['markerRange']['end'],_0x243c9d=_0x19b74f['model']['schema'];if(!_0x5cc1bf['isTouching'](_0x516f81)||!_0x5cc1bf['nodeAfter'])return;const _0x27c643=_0x5cc1bf['nodeAfter'];if(_0x243c9d['isBlock'](_0x27c643)&&!_0x243c9d['isLimit'](_0x27c643)&&_0x243c9d['checkChild'](_0x27c643,'$text')){if(!_0x59b12b['consumable']['consume'](_0x3bb192['markerRange'],_0x473f95['name']))return;const {id:_0x3dd32c,authorId:_0x5dca17}=_0x55a368['_splitMarkerName'](_0x3bb192['markerName']),_0x12c744=_0x59b12b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x3dd32c,'data-author-id':_0x5dca17}),_0x3b2721=_0x59b12b['mapper']['toViewPosition'](_0x516f81);_0x480c99&&_0x55a368['activeMarkers']['includes'](_0x3bb192['markerName'])&&_0x59b12b['writer']['addClass']('ck-suggestion-marker--active',_0x12c744),_0x59b12b['writer']['insert'](_0x3b2721,_0x12c744),_0x59b12b['mapper']['bindElementToMarker'](_0x12c744,_0x3bb192['markerName']);}};}class jt extends _0x282945{['afterInit'](){const _0xefa450=this['editor'];_0xefa450['commands']['get']('replaceSource')&&_0xefa450['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class It extends _0x282945{['afterInit'](){const _0x4cdf6c=this['editor'];if(!_0x4cdf6c['plugins']['has']('RemoveFormatEditing'))return;_0x4cdf6c['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x153fa3=this['editor'];_0x153fa3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xef9468=>{if('formatBlock'!=_0xef9468['type']&&'formatInline'!=_0xef9468['type'])return;const {data:_0x4233bd}=_0xef9468;return _0x4233bd&&'removeFormat'==_0x4233bd['commandName']?{'type':'format','content':o(_0x153fa3['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x282945{['afterInit'](){const _0x2b5edc=this['editor'];if(!_0x2b5edc['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xbdddf2=_0x2b5edc['plugins']['get']('TrackChangesEditing');_0xbdddf2['enableCommand']('goToPreviousRestrictedEditingException'),_0xbdddf2['enableCommand']('goToNextRestrictedEditingException');const _0x1275e3=_0x2b5edc['plugins']['get']('RestrictedEditingModeEditing');_0x1275e3['enableCommand']('trackChanges'),_0x1275e3['enableCommand']('acceptSuggestion'),_0x1275e3['enableCommand']('discardSuggestion'),_0x1275e3['enableCommand']('acceptAllSuggestions'),_0x1275e3['enableCommand']('discardAllSuggestions'),_0x1275e3['enableCommand']('acceptSelectedSuggestions'),_0x1275e3['enableCommand']('discardSelectedSuggestions');}}class _t extends _0x282945{['afterInit'](){const _0x22844f=this['editor'];if(!_0x22844f['plugins']['has']('ShiftEnter'))return;const _0x132541=_0x22844f['plugins']['get']('TrackChangesEditing');_0x132541['enableCommand']('shiftEnter'),_0x22844f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ee(_0x22844f),{'priority':'high'}),_0x22844f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ee(_0x22844f),{'priority':'high'}),_0x22844f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1225b9,_0x33a0d1,_0x1c7c4b)=>{_0x1c7c4b['options']['showSuggestionHighlights']&&Ee(_0x22844f,{'showActiveMarker':!0x1})(_0x1225b9,_0x33a0d1,_0x1c7c4b);}),_0x132541['descriptionFactory']['registerElementLabel']('softBreak',_0x4ce2ee=>o(_0x22844f['locale'],'ELEMENT_LINE_BREAK',_0x4ce2ee));}}function Ee(_0x35eec5,{showActiveMarker:_0x179617=!0x0}={}){return(_0x3674fd,_0x3fdee5,_0x15e4b3)=>{const _0x4eba9b=_0x35eec5['plugins']['get']('TrackChangesEditing');if(!_0x15e4b3['consumable']['test'](_0x3fdee5['markerRange'],_0x3674fd['name']))return;const _0x11a995=_0x35eec5['model'];for(const _0x173f7b of _0x3fdee5['markerRange']['getItems']()){if(!_0x173f7b['is']('element','softBreak'))continue;const _0x4e3db8='deletion'==_0x3fdee5['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x5ad716,authorId:_0x284381}=_0x4eba9b['_splitMarkerName'](_0x3fdee5['markerName']),_0x148fbe=_0x15e4b3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4e3db8,'data-suggestion':_0x5ad716,'data-author-id':_0x284381}),_0x403e6b=_0x15e4b3['mapper']['toViewPosition'](_0x11a995['createPositionBefore'](_0x173f7b));_0x179617&&_0x4eba9b['activeMarkers']['includes'](_0x3fdee5['markerName'])&&_0x15e4b3['writer']['addClass']('ck-suggestion-marker--active',_0x148fbe),_0x15e4b3['writer']['insert'](_0x403e6b,_0x148fbe),_0x15e4b3['mapper']['bindElementToMarker'](_0x148fbe,_0x3fdee5['markerName']);}};}class vt extends _0x282945{['afterInit'](){const _0x465e1f=this['editor'],_0x3f40ee=_0x465e1f['model'],_0x552979=_0x465e1f['locale'];if(!_0x465e1f['plugins']['has']('StandardEditingModeEditing'))return;const _0x38c79a=_0x465e1f['plugins']['get']('TrackChangesEditing'),_0x36ef59='restrictedEditingException',_0xb042f1=_0x465e1f['commands']['get'](_0x36ef59);_0x38c79a['enableCommand'](_0x36ef59,(_0x142f99,_0x21e1d7={})=>{const _0x159637=_0x3f40ee['document']['selection'];if(_0x159637['isCollapsed'])return void _0x142f99(_0x21e1d7);const _0x172ede=void 0x0!==_0x21e1d7['forceValue']?_0x21e1d7['forceValue']:!_0xb042f1['value'];_0x3f40ee['change'](()=>{const _0x1624f1=Array['from'](_0x159637['getRanges']());for(const _0x4f5df8 of _0x1624f1){const _0x50732a=_0x172ede?[_0x4f5df8]:io(_0x36ef59,_0x4f5df8,_0x3f40ee);for(const _0x4ef4d2 of _0x50732a)_0x38c79a['markInlineFormat'](_0x4ef4d2,{'commandName':_0x36ef59,'commandParams':[{'forceValue':_0x172ede}]});}});}),_0x38c79a['descriptionFactory']['registerDescriptionCallback'](_0x346e71=>{if('formatBlock'!=_0x346e71['type']&&'formatInline'!=_0x346e71['type'])return;const {data:_0x218cea}=_0x346e71;return _0x218cea&&_0x218cea['commandName']==_0x36ef59?_0x218cea['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x552979,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x552979,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class Ct extends _0x282945{['afterInit'](){const _0x271584=this['editor'];if(!_0x271584['plugins']['has']('Style')||!_0x271584['plugins']['has']('DataSchema'))return;const _0x3ac279=_0x271584['plugins']['get']('TrackChangesEditing'),_0x5db67e=_0x271584['locale'],_0x4f931a=_0x271584['config']['get']('style')||{},_0x584348=_0x271584['plugins']['get']('GeneralHtmlSupport'),_0x1e7e9c=_0x271584['plugins']['get']('StyleUtils')['normalizeConfig'](_0x271584['plugins']['get']('DataSchema'),_0x4f931a['definitions']);_0x3ac279['enableDefaultAttributesIntegration']('style');const _0x536ed6=new Set();for(const _0xc372e8 of _0x1e7e9c['block']){const _0xf7b3b3=_0x584348['getGhsAttributeNameForElement'](_0xc372e8['element']);_0x536ed6['add'](_0xf7b3b3);}const _0x3972eb=new Set();for(const _0x27f24d of _0x1e7e9c['inline']){const _0x24232d=_0x584348['getGhsAttributeNameForElement'](_0x27f24d['element']);_0x3972eb['add'](_0x24232d);for(const _0x472060 of _0x27f24d['ghsAttributes'])_0x3972eb['add'](_0x472060);}for(const _0x4d4dce of _0x536ed6)_0x3ac279['registerBlockAttribute'](_0x4d4dce),_0x3ac279['descriptionFactory']['registerAttributeLabel'](_0x4d4dce,o(_0x5db67e,'FORMAT_STYLE'));for(const _0x6e2d74 of _0x3972eb)_0x3ac279['registerInlineAttribute'](_0x6e2d74),_0x3ac279['descriptionFactory']['registerAttributeLabel'](_0x6e2d74,o(_0x5db67e,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4cf138=this['editor'],_0x116220=_0x4cf138['locale'];_0x4cf138['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e3f04=>{if('formatBlock'!=_0x1e3f04['type']&&'formatInline'!=_0x1e3f04['type'])return;const {data:_0x2f0230}=_0x1e3f04;return _0x2f0230&&'style'===_0x2f0230['commandName']?_0x2f0230['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x116220,'*Set\x20format:*\x20%0',_0x2f0230['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x116220,'*Remove\x20format:*\x20%0',_0x2f0230['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class $t extends _0x282945{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x20ba8a){super(_0x20ba8a),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4be6c8=this['editor'],_0x25f902=_0x4be6c8['model']['document']['selection'];if(!_0x4be6c8['plugins']['has']('TableEditing'))return;const _0xd59d8c=_0x4be6c8['locale'],_0x7a95e=_0x4be6c8['plugins']['get']('TrackChangesEditing'),_0xfe97ed=_0x4be6c8['plugins']['get']('TableUtils');_0x7a95e['descriptionFactory']['registerElementLabel']('table',_0x56b675=>o(_0xd59d8c,'ELEMENT_TABLE',_0x56b675)),this['_setupColumnsRowsFixing'](),_0x7a95e['enableCommand']('insertTable'),_0x7a95e['enableCommand']('selectTableRow'),_0x7a95e['enableCommand']('selectTableColumn');for(const _0x531a65 of['insertTableRowAbove','insertTableRowBelow']){const _0x2b540f=_0x4be6c8['commands']['get'](_0x531a65);_0x7a95e['enableCommand'](_0x531a65,_0x3462a0=>{_0x4be6c8['model']['change'](_0x5e0b38=>{_0x3462a0();const _0x1ea65e='above'===_0x2b540f['order'],_0x10391c=_0xfe97ed['getSelectionAffectedTableCells'](_0x25f902),_0x5bec7f=_0xfe97ed['getRowIndexes'](_0x10391c),_0x19391a=_0x1ea65e?_0x5bec7f['first']-0x1:_0x5bec7f['last']+0x1,_0x1331c3=_0x10391c[0x0]['findAncestor']('table'),_0x3ac954=_0xfe97ed['createTableWalker'](_0x1331c3,{'startRow':_0x19391a,'endRow':_0x19391a}),_0x476a0a=Array['from'](_0x3ac954)['map'](_0x5586d1=>_0x5e0b38['createRangeOn'](_0x5586d1['cell']));_0x7a95e['markMultiRangeInsertion'](_0x476a0a,'tableRow');});});}for(const _0x31f94c of['insertTableColumnLeft','insertTableColumnRight']){const _0x1a604c=_0x4be6c8['commands']['get'](_0x31f94c);_0x7a95e['enableCommand'](_0x31f94c,_0x59b400=>{_0x4be6c8['model']['change'](_0x52d1a3=>{_0x59b400();const _0x334340='left'===_0x1a604c['order'],_0x43916b=_0xfe97ed['getSelectionAffectedTableCells'](_0x25f902),_0x59a474=_0xfe97ed['getColumnIndexes'](_0x43916b),_0x4a0e12=_0x334340?_0x59a474['first']-0x1:_0x59a474['last']+0x1,_0x3ff202=_0x43916b[0x0]['findAncestor']('table'),_0xd68ec4=_0xfe97ed['createTableWalker'](_0x3ff202,{'startRow':0x0,'column':_0x4a0e12,'includeAllSlots':!0x1}),_0x4c2c22=Array['from'](_0xd68ec4)['map'](_0x1de6b2=>_0x52d1a3['createRangeOn'](_0x1de6b2['cell']));_0x7a95e['markMultiRangeInsertion'](_0x4c2c22,'tableColumn');});});}for(const _0x4ba48a of['removeTableRow','removeTableColumn']){const _0x395cef=_0x4ba48a['substr'](0xb),_0x2e57ee=_0x395cef['toLowerCase'](),_0x5978f7=_0x2e57ee['substr'](0x0,0x3)+'span',_0x4ddfaa='table'+_0x395cef,_0x9111ce='min'+_0x395cef,_0x191c9c='max'+_0x395cef;_0x7a95e['enableCommand'](_0x4ba48a,()=>{_0x4be6c8['model']['change'](_0xee894f=>{const _0x4616c4=_0xfe97ed['getSelectionAffectedTableCells'](_0x25f902),_0x4c087f=_0x4616c4[0x0]['findAncestor']('table');let _0x569526;if('removeTableRow'==_0x4ba48a){const _0x178343=_0xfe97ed['getRowIndexes'](_0x4616c4);_0x569526={'startRow':_0x178343['first'],'endRow':_0x178343['last'],'includeAllSlots':!0x0};}else{const _0x5a6de7=_0xfe97ed['getColumnIndexes'](_0x4616c4);_0x569526={'startColumn':_0x5a6de7['first'],'endColumn':_0x5a6de7['last'],'includeAllSlots':!0x0};}const _0x5c4fc0=_0xfe97ed['createTableWalker'](_0x4c087f,_0x569526),_0x56d36f=Array['from'](_0x5c4fc0)['map'](({cell:_0x1d9669})=>_0x1d9669),_0x55e808=We(_0x56d36f['filter'](_0x1e41c2=>_0x1e41c2['hasAttribute'](_0x5978f7))),_0x1a382c=We(_0x56d36f['filter'](_0x1b2c05=>!_0x1b2c05['hasAttribute'](_0x5978f7)))['map'](_0x8e23c8=>_0xee894f['createRangeOn'](_0x8e23c8)),_0x28f772=_0x7a95e['markMultiRangeDeletion'](_0x1a382c,_0x4ddfaa);if(_0x28f772&&('tableRow'==_0x28f772['subType']||'tableColumn'==_0x28f772['subType'])){const _0x5e7df3=this['_getSuggestionCoords'](_0x28f772);for(const _0x32f429 of _0x55e808){const _0xbd4ba1=_0xee894f['createRangeOn'](_0x32f429),_0x467b0d=_0xfe97ed['getCellLocation'](_0x32f429),_0x3e4f62=_0x32f429['getAttribute'](_0x5978f7)-0x1,_0x55ea26=_0x5e7df3[_0x9111ce],_0x21c0a8=_0x5e7df3[_0x191c9c];_0x55ea26<=_0x467b0d[_0x2e57ee]&&_0x467b0d[_0x2e57ee]+_0x3e4f62<=_0x21c0a8&&_0x28f772['addRange'](_0xbd4ba1);}}});});}function _0xe64610(_0x25c363){const _0x3c8b3e=Array['from'](_0x25f902['getRanges']())['map'](_0x554df1=>_0x289cfe['fromRange'](_0x554df1));_0x4be6c8['model']['change'](_0x437d22=>{const _0x4707f4=_0x437d22['batch'];_0x25c363=_0x25c363['filter'](_0x5227bb=>'$graveyard'!=_0x5227bb['root']['rootName']),_0x437d22['setSelection'](_0x25c363),_0x4be6c8['commands']['get']('removeTableRow')['refresh'](),_0x4be6c8['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4be6c8['model']['enqueueChange'](()=>{_0x4be6c8['model']['enqueueChange'](_0x4707f4,_0x29d865=>{const _0x43b7d6=_0x3c8b3e['filter'](_0x360491=>'$graveyard'!=_0x360491['root']['rootName']);_0x43b7d6['length']>0x0&&_0x29d865['setSelection'](_0x43b7d6);for(const _0x4e7ad5 of _0x3c8b3e)_0x4e7ad5['detach']();});});});}function _0x1abcf6(_0x10b122){_0x4be6c8['model']['change'](_0x55e08c=>{const _0x55b2eb=Array['from'](_0x25f902['getRanges']())['map'](_0x33a564=>_0x289cfe['fromRange'](_0x33a564)),_0x9fd52a=[];for(const _0x4ef51e of _0x10b122)for(const _0x24ef44 of _0x4ef51e['getItems']({'shallow':!0x0}))_0x9fd52a['push'](_0x24ef44);for(const _0x50bc66 of _0x9fd52a)'$graveyard'!=_0x50bc66['root']['rootName']&&(_0x55e08c['setSelection'](_0x55e08c['createPositionAt'](_0x50bc66,0x0)),_0x4be6c8['commands']['get']('removeTableColumn')['refresh'](),_0x4be6c8['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x549072=_0x55b2eb['filter'](_0x1dcd61=>'$graveyard'!=_0x1dcd61['root']['rootName']);_0x549072['length']>0x0&&_0x55e08c['setSelection'](_0x549072);for(const _0x1aa8e0 of _0x55b2eb)_0x1aa8e0['detach']();});}function _0x1c9d98(_0x3c7426,_0xe677f){return _0xe677f['every'](_0x23ccf9=>_0x3c7426['some'](_0x2e6c16=>_0x2e6c16['end']['isEqual'](_0x23ccf9['start'])||_0x23ccf9['end']['isEqual'](_0x2e6c16['start'])));}function _0x1030ec(_0x24accf,_0x2047ea){return!_0x24accf['some'](_0x4fb5f6=>_0x2047ea['some'](_0x2e9044=>_0x4fb5f6['isIntersecting'](_0x2e9044)))&&_0x24accf['some'](_0x180c8d=>_0x2047ea['some'](_0x2a1e6c=>_0x180c8d['end']['isTouching'](_0x2a1e6c['start'])));}_0x4be6c8['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x7654b0,_0x51a858,_0x3171b7)=>{if(!_0x3171b7['options']['showSuggestionHighlights'])return;const _0x8043a5=_0x51a858['item'];if(!_0x8043a5||!_0x8043a5['is']('element','tableCell'))return;const _0x5be4dc=_0x3171b7['mapper']['toViewElement'](_0x8043a5);if(_0x5be4dc){const {id:_0x37cf48,authorId:_0x449336}=_0x7a95e['_splitMarkerName'](_0x51a858['markerName']);_0xff8d88(_0x5be4dc,_0x3171b7['writer'],(_0x25b32f,_0x1d8d3b,_0x54368a)=>{_0x54368a['addClass'](_0x42ae64(_0x1d8d3b['classes']),_0x25b32f),_0x54368a['setAttribute']('data-suggestion-id',_0x37cf48,_0x25b32f),_0x54368a['setAttribute']('data-author-id',_0x449336,_0x25b32f);},(_0x2377c0,_0x38f816,_0x4b5c34)=>{_0x4b5c34['removeClass'](_0x42ae64(_0x38f816['classes']),_0x2377c0),_0x4b5c34['removeAttribute']('data-suggestion-id',_0x2377c0),_0x4b5c34['removeAttribute']('data-author-id',_0x2377c0);});}},{'priority':'highest'}),_0x7a95e['descriptionFactory']['registerDescriptionCallback'](_0x54215b=>{if('insertion'!=_0x54215b['type']&&'deletion'!=_0x54215b['type'])return;const _0x370407=_0x54215b['getContainedElement']();if(null!=_0x370407&&_0x370407['is']('element','table')){if('insertion'==_0x54215b['type']){const _0xad4adb=_0x54215b['getItems']()['filter'](_0x6249b3=>_0x6249b3['is']('$textProxy'))['map'](_0x35e32c=>_0x35e32c['data']);if(_0xad4adb['length'])return{'type':'insertion','content':o(_0xd59d8c,'*Insert:*\x20%0',o(_0xd59d8c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xad4adb['join']('\x20')+'\x22'))};}if('deletion'==_0x54215b['type']){const _0x3003a8=_0x54215b['getItems']()['filter'](_0x31351b=>_0x31351b['is']('$textProxy'))['map'](_0xd48c15=>_0xd48c15['data']);if(_0x3003a8['length'])return{'type':'deletion','content':o(_0xd59d8c,'*Remove:*\x20%0',o(_0xd59d8c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3003a8['join']('\x20')+'\x22'))};}}}),_0x7a95e['descriptionFactory']['registerDescriptionCallback'](_0x48ab3d=>{if('tableRow'==_0x48ab3d['subType']){const _0x486e6d=_0x48ab3d['getItems']()['filter'](_0x81613b=>_0x81613b['is']('$textProxy'))['map'](_0x1e92f8=>_0x1e92f8['data']),_0x4b49d7=this['_getSuggestionCoords'](_0x48ab3d),_0x3f328a=_0x4b49d7['maxRow']-_0x4b49d7['minRow']+0x1;if('insertion'==_0x48ab3d['type'])return _0x486e6d['length']?{'type':'insertion','content':o(_0xd59d8c,'*Insert:*\x20%0',o(_0xd59d8c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3f328a,'\x22'+_0x486e6d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xd59d8c,'*Insert:*\x20%0',o(_0xd59d8c,'ELEMENT_TABLE_ROW',_0x3f328a))};if('deletion'==_0x48ab3d['type'])return _0x486e6d['length']?{'type':'deletion','content':o(_0xd59d8c,'*Remove:*\x20%0',o(_0xd59d8c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3f328a,'\x22'+_0x486e6d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xd59d8c,'*Remove:*\x20%0',o(_0xd59d8c,'ELEMENT_TABLE_ROW',_0x3f328a))};}if('tableColumn'==_0x48ab3d['subType']){const _0x1ccc8d=_0x48ab3d['getItems']()['filter'](_0x4192f2=>_0x4192f2['is']('$textProxy'))['map'](_0x4517b7=>_0x4517b7['data']),_0x300507=this['_getSuggestionCoords'](_0x48ab3d),_0x58b27e=_0x300507['maxColumn']-_0x300507['minColumn']+0x1;if('insertion'==_0x48ab3d['type'])return _0x1ccc8d['length']?{'type':'insertion','content':o(_0xd59d8c,'*Insert:*\x20%0',o(_0xd59d8c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x58b27e,'\x22'+_0x1ccc8d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xd59d8c,'*Insert:*\x20%0',o(_0xd59d8c,'ELEMENT_TABLE_COLUMN',_0x58b27e))};if('deletion'==_0x48ab3d['type'])return _0x1ccc8d['length']?{'type':'deletion','content':o(_0xd59d8c,'*Remove:*\x20%0',o(_0xd59d8c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x58b27e,'\x22'+_0x1ccc8d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xd59d8c,'*Remove:*\x20%0',o(_0xd59d8c,'ELEMENT_TABLE_COLUMN',_0x58b27e))};}}),_0x7a95e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xe64610),_0x7a95e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xe64610),_0x7a95e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1abcf6),_0x7a95e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1abcf6),_0x7a95e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1c9d98),_0x7a95e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1c9d98),_0x7a95e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1030ec),_0x7a95e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1030ec);}['_acceptFormatSuggestionCallbackFactory'](){const _0x19b19d=this['editor'],_0x3141cc=_0x19b19d['model']['document']['selection'];return(_0x2a40bf,_0x520e0f)=>{_0x19b19d['model']['change'](_0x3143e5=>{const {commandName:_0xe37b6e,commandParams:_0x3e0236}=_0x520e0f;let _0x3e880d=_0x2a40bf[0x0]['end']['nodeBefore'];_0x3e0236&&_0x3e0236[0x0]&&!0x1===_0x3e0236[0x0]['forceValue']&&(_0x3e880d=_0x2a40bf[0x0]['start']['nodeAfter']);const _0x24bf3f=_0x3143e5['createRangeIn'](_0x3e880d);if('$graveyard'==_0x24bf3f['root']['rootName'])return;const _0x26f886=Array['from'](_0x3141cc['getRanges']())['map'](_0x36b0eb=>_0x289cfe['fromRange'](_0x36b0eb));_0x3143e5['setSelection'](_0x24bf3f),_0x19b19d['commands']['get'](_0xe37b6e)['refresh'](),_0x3e0236['push']({'forceDefaultExecution':!0x0}),_0x19b19d['execute'](_0xe37b6e,..._0x3e0236);const _0x34675d=_0x26f886['filter'](_0x5a5a79=>'$graveyard'!=_0x5a5a79['root']['rootName']);_0x34675d['length']>0x0&&_0x3143e5['setSelection'](_0x34675d);for(const _0xbfbe70 of _0x26f886)_0xbfbe70['detach']();});};}['_getCoordsForCells'](_0x546d5c){const _0x583112=this['editor']['plugins']['get']('TableUtils');let _0x39b35d=Number['MAX_SAFE_INTEGER'],_0x311c7b=Number['MIN_SAFE_INTEGER'],_0x18ca86=Number['MAX_SAFE_INTEGER'],_0x27019a=Number['MIN_SAFE_INTEGER'];for(const _0x1e2b03 of _0x546d5c){if('$graveyard'==_0x1e2b03['root']['rootName'])continue;const {row:_0x282a29,column:_0x29e28d}=_0x583112['getCellLocation'](_0x1e2b03),_0x3e0477=_0x1e2b03['hasAttribute']('rowspan')?_0x1e2b03['getAttribute']('rowspan')-0x1:0x0,_0x16d732=_0x1e2b03['hasAttribute']('colspan')?_0x1e2b03['getAttribute']('colspan')-0x1:0x0;_0x39b35d=_0x282a29<_0x39b35d?_0x282a29:_0x39b35d,_0x311c7b=_0x282a29+_0x3e0477>_0x311c7b?_0x282a29+_0x3e0477:_0x311c7b,_0x18ca86=_0x29e28d<_0x18ca86?_0x29e28d:_0x18ca86,_0x27019a=_0x29e28d+_0x16d732>_0x27019a?_0x29e28d+_0x16d732:_0x27019a;}return{'minRow':_0x39b35d,'maxRow':_0x311c7b,'minColumn':_0x18ca86,'maxColumn':_0x27019a};}['_setupColumnsRowsFixing'](){const _0x4ff11a=this['editor'],_0x38a231=_0x4ff11a['plugins']['get']('TrackChangesEditing'),_0x8498c0=_0x4ff11a['plugins']['get']('TableUtils');_0x4ff11a['model']['document']['on']('change:data',()=>{const _0x327fea=Array['from'](_0x4ff11a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x224be0,data:_0x1557ea}of _0x327fea){const {group:_0x82045b,id:_0x5d525b,subType:_0x3f970e}=_0x38a231['_splitMarkerName'](_0x224be0);if('suggestion'!=_0x82045b)continue;if(null!=_0x1557ea['oldRange'])continue;const _0x4e5426=_0x38a231['getSuggestion'](_0x5d525b);this['_tablePostFixingSubtypes']['includes'](_0x3f970e)&&this['_tableSuggestions']['add'](_0x4e5426);}},{'priority':'low'});const _0x4f8cb9=(_0x27bbe2,_0x7b7a8a)=>{let _0xd3bcf5=!0x1;const _0x3337da=_0x7b7a8a['createRangeOn'](_0x27bbe2),_0x2d6857=_0x27bbe2['findAncestor']('table'),_0x56515b=_0x8498c0['getCellLocation'](_0x27bbe2);for(const _0x1473b4 of this['_tableSuggestions']){const _0x2bc982=_0x1473b4['subType'],_0x516fda=_0x2bc982['startsWith']('tablePaste'),_0x5316ec=_0x2bc982['substr'](_0x516fda?0xa:0x5),_0x2a1bd3=_0x5316ec['toLowerCase'](),_0x33cf8e=_0x2a1bd3['substr'](0x0,0x3)+'span',_0x328e59='min'+_0x5316ec,_0xd11aed='max'+_0x5316ec;if(!_0x1473b4['isInContent'])continue;if(_0x2d6857!=_0x1473b4['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1473b4['isIntersectingWithRange'](_0x3337da))continue;const _0xc186b=_0x27bbe2['hasAttribute'](_0x33cf8e)?_0x27bbe2['getAttribute'](_0x33cf8e)-0x1:0x0,_0x5d2e87=this['_getSuggestionCoords'](_0x1473b4),_0x297243=_0x5d2e87[_0x328e59],_0x2b07be=_0x5d2e87[_0xd11aed];_0x297243<=_0x56515b[_0x2a1bd3]&&_0x56515b[_0x2a1bd3]+_0xc186b<=_0x2b07be&&(_0x1473b4['addRange'](_0x3337da),_0xd3bcf5=!0x0);}return _0xd3bcf5;};_0x4ff11a['model']['document']['registerPostFixer'](_0x5780e0=>{let _0x4824d7=!0x1;for(const _0x265e7c of _0x4ff11a['model']['document']['differ']['getChanges']())if('insert'==_0x265e7c['type']){if('tableRow'==_0x265e7c['name']){for(const _0x3dc392 of _0x265e7c['position']['nodeAfter']['getChildren']())_0x4824d7=_0x4824d7||_0x4f8cb9(_0x3dc392,_0x5780e0);}else'tableCell'==_0x265e7c['name']&&(_0x4824d7=_0x4824d7||_0x4f8cb9(_0x265e7c['position']['nodeAfter'],_0x5780e0));}return _0x4824d7;});}['_getSuggestionCoords'](_0x26ee7d){return this['_getCoordsForCells'](_0x26ee7d['getRanges']()['map'](_0x4d0dba=>_0x4d0dba['start']['nodeAfter']));}}function We(_0x39ca){return Array['from'](new Set(_0x39ca)['values']());}class Nt extends _0x282945{static get['requires'](){return[$t];}['afterInit'](){const _0x56a8af=this['editor'],_0x323052=_0x56a8af['model']['document']['selection'],_0x408cf1=_0x56a8af['locale'];if(!_0x56a8af['plugins']['has']('TableEditing'))return;const _0x27e159=_0x56a8af['plugins']['get']('TrackChangesEditing'),_0x50511c=_0x56a8af['plugins']['get']('TableUtils'),_0x347132=_0x56a8af['plugins']['get']($t);_0x347132['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x27e159['enableCommand']('mergeTableCells',()=>{const _0x1aa36c=_0x50511c['getSelectionAffectedTableCells'](_0x56a8af['model']['document']['selection']);_0x56a8af['model']['change'](()=>{_0x27e159['markMultiRangeBlockFormat'](_0x1aa36c,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x56a8af['commands']['get']('mergeTableCells')['on']('execute',(_0x21e985,_0x153492)=>{_0x56a8af['commands']['get']('trackChanges')['value']&&(_0x153492['length']>0x0&&_0x153492[_0x153492['length']-0x1]&&_0x153492[_0x153492['length']-0x1]['forceDefaultExecution']||_0x27e159['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x21e985['stop']());},{'priority':'highest'});for(const _0x42e3f6 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3728f4=_0x56a8af['commands']['get'](_0x42e3f6);_0x27e159['enableCommand'](_0x42e3f6,()=>{const _0x1ea4fc=_0x56a8af['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5d22aa=>_0x5d22aa['is']('element','tableCell')),_0x38f725=_0x3728f4['value'];_0x56a8af['model']['change'](()=>{_0x27e159['markMultiRangeBlockFormat']([_0x1ea4fc,_0x38f725],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x30f26e of['splitTableCellVertically','splitTableCellHorizontally']){const _0x387f35=_0x56a8af['commands']['get'](_0x30f26e);_0x27e159['enableCommand'](_0x30f26e,()=>{const _0x94dea0=_0x50511c['getSelectionAffectedTableCells'](_0x56a8af['model']['document']['selection'])[0x0],_0x2d3024=_0x94dea0['findAncestor']('table'),{column:_0x5356b4,row:_0x3552f1}=_0x50511c['getCellLocation'](_0x94dea0);let _0x5db096=[];if('horizontally'==_0x387f35['direction']){const _0xbaa37b=_0x50511c['createTableWalker'](_0x2d3024,{'startRow':_0x3552f1,'endRow':_0x3552f1,'includeAllSlots':!0x0});_0x5db096=Array['from'](_0xbaa37b)['map'](_0x443517=>_0x443517['cell']);}else{const _0x32f991=_0x50511c['createTableWalker'](_0x2d3024,{'column':_0x5356b4,'includeAllSlots':!0x0});_0x5db096=Array['from'](_0x32f991)['map'](_0xd87751=>_0xd87751['cell']);}_0x56a8af['model']['change'](_0xb1cd8e=>{_0x27e159['markBlockFormat'](_0xb1cd8e['createRangeOn'](_0x94dea0),{'commandName':_0x30f26e,'commandParams':[]},_0x5db096,_0x30f26e);});});}_0x27e159['descriptionFactory']['registerDescriptionCallback'](_0x30b36f=>{if('formatBlock'!=_0x30b36f['type']&&'formatInline'!=_0x30b36f['type'])return;const {data:_0x47a4e4}=_0x30b36f;return _0x47a4e4&&'mergeTableCells'==_0x47a4e4['commandName']?{'type':'format','content':o(_0x408cf1,'*Merge\x20cells*')}:void 0x0;}),_0x27e159['descriptionFactory']['registerDescriptionCallback'](_0x9b0b31=>{if('formatBlock'!=_0x9b0b31['type']&&'formatInline'!=_0x9b0b31['type'])return;const {data:_0x4bc304}=_0x9b0b31;return _0x4bc304?'splitTableCellVertically'==_0x4bc304['commandName']?{'type':'format','content':o(_0x408cf1,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4bc304['commandName']?{'type':'format','content':o(_0x408cf1,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1d613e=_0x347132['_acceptFormatSuggestionCallbackFactory']();for(const _0x10a15c of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x27e159['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x10a15c,'accept',_0x1d613e);for(const _0x5715bd of['splitTableCellVertically','splitTableCellHorizontally'])_0x27e159['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5715bd,'accept',_0x1d613e);_0x27e159['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2bd53a=>{_0x56a8af['model']['change'](_0x2a28a8=>{const _0x5db2c6=Array['from'](_0x323052['getRanges']())['map'](_0x355ec6=>_0x289cfe['fromRange'](_0x355ec6));_0x2a28a8['setSelection'](_0x2bd53a),_0x56a8af['commands']['get']('mergeTableCells')['refresh'](),_0x56a8af['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4c65f7=_0x5db2c6['filter'](_0x24d29d=>'$graveyard'!=_0x24d29d['root']['rootName']);_0x4c65f7['length']>0x0&&_0x2a28a8['setSelection'](_0x4c65f7);for(const _0x16ac21 of _0x5db2c6)_0x16ac21['detach']();});});for(const _0x396e60 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x30031f=_0x56a8af['commands']['get'](_0x396e60);_0x30031f['on']('set:isEnabled',(_0x4548a9,_0x5124e8,_0x5508c3)=>{if(_0x5508c3){const _0x21ab14=_0x56a8af['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x518f93=>_0x518f93['is']('element','tableCell'));this['_areMergableCells'](_0x30031f['value'],_0x21ab14)||(_0x4548a9['return']=!0x1,_0x4548a9['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4db50c=this['editor']['commands']['get']('mergeTableCells'),_0x88781=this['editor']['plugins']['get']('TableUtils');if(!_0x4db50c['isEnabled'])return!0x1;const _0x71e3cb=_0x88781['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4075c6 of _0x71e3cb)for(const _0x241394 of _0x71e3cb)if(_0x4075c6!=_0x241394&&!this['_areMergableCells'](_0x4075c6,_0x241394))return!0x1;return!0x0;}['_areMergableCells'](_0x498dcb,_0x4fae68){const _0x2cf352=this['editor']['plugins']['get']('TrackChangesEditing'),_0x519006=this['editor']['model']['createRangeOn'](_0x498dcb),_0x381283=this['editor']['model']['createRangeOn'](_0x4fae68),_0xd8759f=new Set(),_0x1e5475=new Set();for(const _0x3fcaa3 of _0x2cf352['getSuggestions']())if(('insertion'==_0x3fcaa3['type']||'deletion'==_0x3fcaa3['type']||'mergeTableCells'==_0x3fcaa3['subType'])&&_0x3fcaa3['isInContent']){for(const _0x5f2cc9 of _0x3fcaa3['getRanges']())_0x5f2cc9['containsRange'](_0x519006,!0x0)&&_0xd8759f['add'](_0x3fcaa3['type']+':'+_0x3fcaa3['author']['id']),_0x5f2cc9['containsRange'](_0x381283,!0x0)&&_0x1e5475['add'](_0x3fcaa3['type']+':'+_0x3fcaa3['author']['id']);}if(_0xd8759f['size']!=_0x1e5475['size'])return!0x1;for(const _0x4dc4c3 of _0xd8759f)if(!_0x1e5475['has'](_0x4dc4c3))return!0x1;return!0x0;}}class Dt extends _0x282945{static get['requires'](){return[$t];}['afterInit'](){const _0x3de2fa=this['editor'];if(!_0x3de2fa['plugins']['has']('TableEditing'))return;const _0x468e06=_0x3de2fa['locale'],_0x2fd983=_0x3de2fa['plugins']['get']('TrackChangesEditing');_0x2fd983['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2fd983['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2fd983['registerBlockAttribute']('headingRows'),_0x2fd983['registerBlockAttribute']('headingColumns'),_0x2fd983['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x468e06,'FORMAT_HEADER_ROW')),_0x2fd983['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x468e06,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3743f8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18e6c3=this['editor']['plugins']['get']('TableUtils'),_0x37d51c=this['editor']['plugins']['get']($t)['_acceptFormatSuggestionCallbackFactory']();function _0x130e06({showActiveMarker:_0x35d42=!0x0,setDataAttribute:_0x2bf68f=!0x0}={}){return(_0x1e6cf8,_0x593aba,_0xfbd87a)=>{const {type:_0x3d0ecc,id:_0xd59c98}=_0x3743f8['_splitMarkerName'](_0x593aba['markerName']);if(!_0x3743f8['hasSuggestion'](_0xd59c98))return;const _0x384d8d=_0x3743f8['getSuggestion'](_0xd59c98),_0x5a247c=_0x384d8d['data'];if('formatBlock'!=_0x384d8d['type']||!_0x5a247c||'setTableColumnHeader'!=_0x5a247c['commandName'])return;if(_0x593aba['item'])return void _0x1e6cf8['stop']();if(!_0xfbd87a['consumable']['consume'](_0x593aba['markerRange'],_0x1e6cf8['name']))return;const _0x5babd1=_0x593aba['markerRange']['start']['nodeAfter'],_0x2cd8d2=_0x593aba['markerRange']['end']['nodeBefore'],_0x14f8e1=_0x5babd1['parent']['parent'],{column:_0x48d9d}=_0x18e6c3['getCellLocation'](_0x5babd1),{column:_0x49ec0c}=_0x18e6c3['getCellLocation'](_0x2cd8d2);for(let _0x4d8f37=_0x48d9d;_0x4d8f37<=_0x49ec0c;_0x4d8f37++){const _0x37872b=_0x18e6c3['createTableWalker'](_0x14f8e1,{'column':_0x4d8f37,'includeAllSlots':!0x1});for(const _0x4384ed of _0x37872b){const _0x1d9913=_0x4384ed['cell'],_0x1979a2=_0xfbd87a['mapper']['toViewElement'](_0x1d9913);_0xfbd87a['writer']['addClass']('ck-suggestion-marker-'+_0x3d0ecc,_0x1979a2),_0x2bf68f&&_0xfbd87a['writer']['setAttribute']('data-suggestion',_0xd59c98,_0x1979a2),_0xfbd87a['mapper']['bindElementToMarker'](_0x1979a2,_0x593aba['markerName']),_0x35d42&&(_0x3743f8['activeMarkers']['includes'](_0x593aba['markerName'])?_0xfbd87a['writer']['addClass']('ck-suggestion-marker--active',_0x1979a2):_0xfbd87a['writer']['removeClass']('ck-suggestion-marker--active',_0x1979a2));}}};}_0x3743f8['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x37d51c),_0x3743f8['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x37d51c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x130e06(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2d5482,_0x20c428,_0x2f61eb)=>{_0x2f61eb['options']['showSuggestionHighlights']&&_0x130e06({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2d5482,_0x20c428,_0x2f61eb);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4e8449,_0x580736,_0x3d384f)=>{const {type:_0x497c91,id:_0x5a870c}=_0x3743f8['_splitMarkerName'](_0x580736['markerName']);if(!_0x3743f8['hasSuggestion'](_0x5a870c))return;const _0x538327=_0x3743f8['getSuggestion'](_0x5a870c),_0x2d5b24=_0x538327['data'];if('formatBlock'!=_0x538327['type']||!_0x2d5b24||'setTableColumnHeader'!=_0x2d5b24['commandName'])return;const _0x4cd6a2=_0x3d384f['mapper']['markerNameToElements'](_0x580736['markerName']);if(_0x4cd6a2){for(const _0x5e1b49 of _0x4cd6a2)_0x3d384f['writer']['removeClass']('ck-suggestion-marker-'+_0x497c91,_0x5e1b49),_0x3d384f['writer']['removeClass']('ck-suggestion-marker--active',_0x5e1b49),_0x3d384f['writer']['removeAttribute']('data-suggestion',_0x5e1b49),_0x3d384f['mapper']['unbindElementFromMarkerName'](_0x5e1b49,_0x580736['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x227d91=this['editor'],_0x1e1bb5=_0x227d91['locale'];function _0x37c0ca(_0xf0d152){return{'type':'format','content':o(_0x1e1bb5,'*Format:*\x20%0',_0xf0d152)};}_0x227d91['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e7fb1=>{if('formatBlock'!=_0x4e7fb1['type'])return;const {data:_0x3f7e8f}=_0x4e7fb1;if(_0x3f7e8f){if('setTableRowHeader'==_0x3f7e8f['commandName']){const _0x4f3fb4=_0x3f7e8f['commandParams'][0x0]['forceValue'];return _0x37c0ca(o(_0x1e1bb5,_0x4f3fb4?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3f7e8f['commandName']){const _0x318a1e=_0x3f7e8f['commandParams'][0x0]['forceValue'];return _0x37c0ca(o(_0x1e1bb5,_0x318a1e?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Mt extends _0x282945{['afterInit'](){const _0x24065f=this['editor'],_0x23e2f8=_0x24065f['locale'],_0x36ab0b=_0x24065f['plugins']['get']('TrackChangesEditing');function _0x191292(_0x190bf6){return{'type':'format','content':''+o(_0x23e2f8,'*Set\x20table\x20type:*\x20%0',_0x190bf6)};}_0x24065f['plugins']['has']('TableLayout')&&(_0x36ab0b['enableCommand']('insertTableLayout'),_0x36ab0b['enableDefaultAttributesIntegration']('tableType'),_0x36ab0b['registerBlockAttribute']('tableType'),_0x36ab0b['descriptionFactory']['registerElementLabel'](_0x5b522e=>_0x5b522e['is']('element','table')&&'layout'===_0x5b522e['getAttribute']('tableType'),_0x30b30e=>o(_0x23e2f8,'ELEMENT_LAYOUT_TABLE',_0x30b30e)),_0x36ab0b['descriptionFactory']['registerDescriptionCallback'](_0x5c1989=>{const {data:_0x43b498}=_0x5c1989;if(_0x43b498&&'tableType'==_0x43b498['key'])switch(_0x43b498['newValue']){case'layout':return _0x191292(o(_0x23e2f8,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x191292(o(_0x23e2f8,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Oe['map'](_0x2bc059=>[_0x2bc059,null]));class Bt extends _0x282945{static get['requires'](){return[$t];}['afterInit'](){const _0x34bc33=this['editor'];if(!_0x34bc33['plugins']['has']('TableClipboard'))return;const _0x3ae55a=_0x34bc33['plugins']['get']('TrackChangesEditing'),_0xabdf3f=_0x34bc33['plugins']['get']('TableUtils'),_0x1bcb8b=_0x34bc33['plugins']['get']($t),_0x5b72e6=_0x34bc33['plugins']['get']('TableClipboard'),_0x26a5d2=_0x34bc33['plugins']['get']('TableSelection'),_0x49d196=_0x34bc33['plugins']['get'](_0x138405);_0x1bcb8b['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x34bc33['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x34bc33['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x40d154=null,_0x5e4bad=!0x1;_0x49d196['on']('contentInsertion',(_0xcc1473,_0x35bfb5)=>{_0x5e4bad='paste'===_0x35bfb5['method'];}),_0x34bc33['model']['on']('insertContent',(_0x1c079f,_0x16ecec)=>{if(!_0x5e4bad&&null===_0x26a5d2['getSelectedTableCells']())return;const [_0x2e6925,_0x988c40]=_0x16ecec,_0x3215de=_0x16ecec[_0x16ecec['length']-0x1];_0x3215de&&_0x3215de['forceDefaultExecution']||_0x3ae55a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2007dd,_0x2e427b,_0x4f6dc7,_0x2c3197,_0xcd2c97){if(_0x2e427b&&!_0x2e427b['is']('documentSelection'))return!0x1;const _0x263fb1=_0xcd2c97['getTableIfOnlyTableInContent'](_0x2007dd,_0x4f6dc7);if(!_0x263fb1||!He(_0x263fb1,void 0x0,_0x2c3197))return!0x1;const _0x414405=_0x2c3197['getSelectionAffectedTableCells'](_0x4f6dc7['document']['selection']);if(!_0x414405['length'])return!0x1;const _0x1f57fb=_0x414405[0x0]['findAncestor']('table'),_0x18840f=_0x2c3197['getRowIndexes'](_0x414405),_0x21bed5=_0x2c3197['getColumnIndexes'](_0x414405),_0x594f28={'startRow':_0x18840f['first'],'endRow':_0x18840f['last'],'startColumn':_0x21bed5['first'],'endColumn':_0x21bed5['last']};return 0x1==_0x414405['length']&&(_0x594f28['endRow']+=_0x2c3197['getRows'](_0x263fb1)-0x1,_0x594f28['endColumn']+=_0x2c3197['getColumns'](_0x263fb1)-0x1),He(_0x1f57fb,_0x594f28,_0x2c3197);}(_0x2e6925,_0x988c40,_0x34bc33['model'],_0xabdf3f,_0x5b72e6)&&(_0x1c079f['stop'](),_0x40d154={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x34bc33['model']['change'](()=>{_0x34bc33['model']['insertContent'](_0x16ecec[0x0],_0x16ecec[0x1],_0x16ecec[0x2],{'forceDefaultExecution':!0x0});const _0x5c0a1d=_0x31d37c(),{rowInsertionRanges:_0x2502c3,columnInsertionRanges:_0x154223,insertionRanges:_0x1f8c9c,deletionRanges:_0x362ba5,cells:_0x360f96}=_0x40d154;_0x2502c3['length']&&_0x3ae55a['markMultiRangeInsertion'](_0x2502c3,'tablePasteRow',{'tablePasteChainId':_0x5c0a1d}),_0x154223['length']&&_0x3ae55a['markMultiRangeInsertion'](_0x154223,'tablePasteColumn',{'tablePasteChainId':_0x5c0a1d}),_0x1f8c9c['length']&&(_0x3ae55a['markMultiRangeInsertion'](_0x1f8c9c,'tablePaste',{'tablePasteChainId':_0x5c0a1d,'skipNestingCheck':!0x0}),_0x1f8c9c['forEach'](_0x2232a3=>_0x2232a3['detach']?.())),_0x362ba5['length']&&(_0x3ae55a['markMultiRangeDeletion'](_0x362ba5,'tablePaste',{'tablePasteChainId':_0x5c0a1d,'skipNestingCheck':!0x0}),_0x362ba5['forEach'](_0x4a1cad=>_0x4a1cad['detach']?.()));const _0x25be16=_0x3ae55a['markMultiRangeBlockFormat'](_0x360f96['map'](({element:_0x467301})=>_0x467301),{'formatGroupId':_0x31d37c()},[],'tablePasteCell',{'tablePasteChainId':_0x5c0a1d});if(_0x25be16){const _0x46e2c4=_0x25be16['getMarkers'](),_0x447c46=[];for(const {element:_0x522bda,attributes:_0x5a67c6}of _0x360f96){if(!_0x5a67c6)continue;const _0x44914a=_0x34bc33['model']['createRangeOn'](_0x522bda),_0xb99a59=_0x46e2c4['find'](_0x380f62=>_0x380f62['getRange']()['isEqual'](_0x44914a));_0xb99a59&&_0x447c46['push']([_0xb99a59['name'],_0x5a67c6]);}_0x447c46['length']&&_0x25be16['setAttribute']('markerAttributes',Object['fromEntries'](_0x447c46));}_0x40d154=null;}));},{'priority':_0x4f4e3d['high']+0xa}),_0x49d196['on']('contentInsertion',()=>{_0x5e4bad=!0x1;},{'priority':'lowest'}),_0x34bc33['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4ea2ff,_0x39f32c)=>{const [_0x24a89c,_0x4fc22d,,_0x4c5876]=_0x39f32c;if(!_0x40d154)return;_0x4ea2ff['stop']();const _0x37d6b3=_0x24a89c['cell'],_0x102049=_0x4fc22d,_0x5b6449=De(_0x37d6b3),_0x32bd18=De(_0x102049);_0x4ea2ff['return']=_0x37d6b3;let _0x421200=null,_0x365126=null;if(_0x32bd18||_0x5b6449){if(_0x5b6449&&!_0x32bd18){_0x4c5876['remove'](_0x37d6b3['getChild'](0x0));for(const _0xb6350c of Array['from'](_0x102049['getChildren']()))_0x4c5876['insert'](_0xb6350c,_0x37d6b3,'end');const _0x167f7a=_0x40d154['rowInsertionIndexes']['includes'](_0x24a89c['row']),_0xc87588=_0x40d154['columnInsertionIndexes']['includes'](_0x24a89c['column']);_0x167f7a||_0xc87588||(_0x421200=_0x289cfe['fromRange'](_0x4c5876['createRangeIn'](_0x37d6b3)));}else _0x32bd18&&!_0x5b6449&&(_0x365126=_0x4c5876['createRangeIn'](_0x37d6b3));}else{const _0x3702a0=_0x4c5876['createElement']('tableCellSuggestion'),_0x32361e=_0x4c5876['createElement']('tableCellSuggestion');_0x4c5876['wrap'](_0x4c5876['createRangeIn'](_0x37d6b3),_0x32361e),_0x4c5876['insert'](_0x3702a0,_0x37d6b3,0x0);for(const _0x489807 of Array['from'](_0x102049['getChildren']()))_0x4c5876['insert'](_0x489807,_0x3702a0,'end');_0x421200=_0x289cfe['fromRange'](_0x4c5876['createRangeOn'](_0x3702a0)),_0x365126=_0x289cfe['fromRange'](_0x4c5876['createRangeOn'](_0x32361e));}const _0x308f95=Array['from'](_0x102049['getAttributes']())['filter'](([_0x5a9045])=>Oe['includes'](_0x5a9045));_0x40d154['cells']['push']({'element':_0x37d6b3,'attributes':_0x308f95['length']?Object['fromEntries'](_0x308f95):null}),_0x421200&&_0x40d154['insertionRanges']['push'](_0x421200),_0x365126&&_0x40d154['deletionRanges']['push'](_0x365126);},{'priority':'high'}),_0xabdf3f['on']('insertColumns',(_0x1eee75,_0x33c8fa)=>{const [_0xb4b10b,_0x590642={}]=_0x33c8fa;if(!_0x40d154)return;const _0x573b72=_0x590642['at']||0x0,_0x568d9d=_0x590642['columns']||0x1;_0x40d154['columnInsertionIndexes']=new Array(_0x568d9d)['fill'](_0x573b72)['map']((_0x30422f,_0x3f469a)=>_0x30422f+_0x3f469a);for(const {cell:_0x2089c4}of _0xabdf3f['createTableWalker'](_0xb4b10b,{'startColumn':_0x573b72,'endColumn':_0x573b72+_0x568d9d-0x1}))_0x40d154['columnInsertionRanges']['push'](_0x34bc33['model']['createRangeOn'](_0x2089c4));},{'priority':'low'}),_0xabdf3f['on']('insertRows',(_0xda113b,_0x186641)=>{const [_0x160ac8,_0x26be26={}]=_0x186641;if(!_0x40d154)return;const _0x5bffa6=_0x26be26['at']||0x0,_0x16c397=_0x26be26['rows']||0x1;_0x40d154['rowInsertionIndexes']=new Array(_0x16c397)['fill'](_0x5bffa6)['map']((_0x3a5a2a,_0x1efcaf)=>_0x3a5a2a+_0x1efcaf);for(const {cell:_0x4bab0b}of _0xabdf3f['createTableWalker'](_0x160ac8,{'startRow':_0x5bffa6,'endRow':_0x5bffa6+_0x16c397-0x1}))_0x40d154['rowInsertionRanges']['push'](_0x34bc33['model']['createRangeOn'](_0x4bab0b));},{'priority':'low'}),_0x3ae55a['descriptionFactory']['registerDescriptionCallback'](_0x113885=>{if(_0x113885['subType']&&_0x113885['subType']['startsWith']('tablePaste'))return _0x113885['previous']?{}:{'type':'insertion','content':o(_0x34bc33['locale'],'*Replace\x20table\x20cells*')};});const _0x27efae=()=>!0x1;for(const _0x16ddd2 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3ae55a['_suggestionFactory']['registerCustomCallback']('insertion',_0x16ddd2,'join',_0x27efae),_0x3ae55a['_suggestionFactory']['registerCustomCallback']('deletion',_0x16ddd2,'join',_0x27efae),_0x3ae55a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x16ddd2,'join',_0x27efae);_0x3ae55a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x27efae),_0x3ae55a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x272b76,_0x15a695,_0x4fb105)=>{const _0x44eb9b=_0x272b76['map'](_0x81ca9d=>_0x81ca9d['getContainedElement']())['filter'](_0x58ef49=>_0x58ef49),_0x7e830d=new Map(_0x44eb9b['map'](_0x10c3c8=>[_0x10c3c8,null]));if(_0x40d154){for(const {element:_0x3b2843,attributes:_0x64f823}of _0x40d154['cells'])_0x64f823&&_0x7e830d['set'](_0x3b2843,_0x64f823);}else{if(_0x4fb105&&_0x4fb105['markerAttributes'])for(const [_0x376840,_0x5f37f9]of Object['entries'](_0x4fb105['markerAttributes'])){const _0x4d55c8=_0x34bc33['model']['markers']['get'](_0x376840),_0x3bfa0f=_0x4d55c8?_0x4d55c8['getRange']()['getContainedElement']():null;_0x3bfa0f&&_0x7e830d['set'](_0x3bfa0f,_0x5f37f9);}}_0x34bc33['model']['change'](_0x5bbd70=>{for(const [_0x5cd35e,_0x87e204]of _0x7e830d)_0x5bbd70['setAttributes']({...Ue,..._0x87e204},_0x5cd35e);});});const _0x57febc=(_0x57acb8,_0xddccb0)=>{_0x3ae55a['_suggestionFactory']['registerCustomCallback'](_0x57acb8,'tablePaste',_0xddccb0,(_0x171a46,_0x109bae,_0x502c52)=>{_0x34bc33['model']['change'](_0x25acfc=>{const _0x5c699a=[];for(const _0x2e9e8a of _0x171a46){const _0xea5763=_0x2e9e8a['start']['nodeAfter'];_0xea5763['is']('element','tableCellSuggestion')&&_0x5c699a['push'](_0xea5763);}_0x3ae55a['_suggestionFactory']['getSuggestionCallback'](_0x57acb8,null,_0xddccb0)(_0x171a46,_0x109bae,_0x502c52);for(const _0x4555b1 of _0x5c699a)'$graveyard'!=_0x4555b1['root']['rootName']&&_0x25acfc['unwrap'](_0x4555b1);});});};_0x57febc('insertion','accept'),_0x57febc('insertion','discard'),_0x57febc('deletion','accept'),_0x57febc('deletion','discard'),_0x3ae55a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x51c2d3=>{const _0x40bd66=_0x51c2d3['map'](_0x3b7c56=>_0x3b7c56['getContainedElement']()),_0x5ea6e8=_0x40bd66[0x0]['findAncestor']('table'),{minRow:_0x523f52,maxRow:_0x4adaa5}=_0x1bcb8b['_getCoordsForCells'](_0x40bd66);_0xabdf3f['removeRows'](_0x5ea6e8,{'at':_0x523f52,'rows':_0x4adaa5-_0x523f52+0x1});}),_0x3ae55a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x35af68=>{const _0x4d18d3=_0x35af68['map'](_0x41afce=>_0x41afce['getContainedElement']()),_0x4c6076=_0x4d18d3[0x0]['findAncestor']('table'),{minColumn:_0x29a9b4,maxColumn:_0x2b16dd}=_0x1bcb8b['_getCoordsForCells'](_0x4d18d3);_0xabdf3f['removeColumns'](_0x4c6076,{'at':_0x29a9b4,'columns':_0x2b16dd-_0x29a9b4+0x1});});const _0xba2dd0=(_0x3050b1,_0x232d3a)=>{if(!_0x232d3a['subType']||!_0x232d3a['subType']['startsWith']('tablePaste'))return;const _0x273579=_0x232d3a['attributes']['tablePasteChainId'],_0x112c2e=_0x3ae55a['getSuggestions']()['filter'](_0x263755=>_0x263755['isInContent']&&_0x263755['attributes']&&_0x263755['attributes']['tablePasteChainId']==_0x273579);_0x112c2e['length']&&_0x232d3a['getAllAdjacentSuggestions']()['length']!=_0x112c2e['length']&&_0x112c2e['reduce']((_0x56283c,_0x24a62c)=>(_0x56283c['next']=_0x24a62c,_0x24a62c['previous']=_0x56283c,_0x24a62c));};function _0x29518c(_0x44a10b,_0x363710=!0x0){const {id:_0x16025b,authorId:_0x1b1918}=_0x3ae55a['_splitMarkerName'](_0x44a10b['markerName']),_0x2afe2f=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3129a6=_0x3ae55a['activeMarkers']['includes'](_0x44a10b['markerName']);return _0x3129a6&&_0x2afe2f['push']('ck-suggestion-marker--active'),{'classes':_0x2afe2f,'attributes':{'data-suggestion':_0x16025b,'data-author-id':_0x1b1918},'priority':_0x3129a6&&_0x363710?0xbc2:0xbb8};}_0x3ae55a['on']('suggestionLoaded',_0xba2dd0,{'priority':'high'}),_0x3ae55a['on']('suggestionUnloaded',_0xba2dd0,{'priority':'high'}),_0x34bc33['model']['document']['registerPostFixer'](()=>{let _0x38ef6c=!0x1;const _0xbb5088=Array['from'](_0x34bc33['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x494759,data:_0x4720a1}of _0xbb5088){const {group:_0x199f3f,type:_0x47a915,id:_0x56b635}=_0x3ae55a['_splitMarkerName'](_0x494759);if('suggestion'!=_0x199f3f||'deletion'!=_0x47a915||_0x4720a1['oldRange'])continue;if(!_0x3ae55a['hasSuggestion'](_0x56b635))continue;const _0x35daa3=_0x3ae55a['getSuggestion'](_0x56b635)['getRanges'](),_0x536cd1=_0x34bc33['plugins']['get']('Users')['me'];for(const _0x444076 of _0x3ae55a['getSuggestions']()){if(!_0x444076['isInContent']||_0x444076['author']!=_0x536cd1)continue;if('formatBlock'!=_0x444076['type']||'tablePasteCell'!=_0x444076['subType'])continue;if(_0x444076['getRanges']()['every'](_0x134dda=>_0x35daa3['some'](_0x5cb50b=>_0x5cb50b['containsRange'](_0x134dda,!0x0)))){for(const _0x242bc2 of _0x444076['getAllAdjacentSuggestions']())_0x242bc2['isInContent']&&(_0x242bc2['discard'](),_0x38ef6c=!0x0);}}}return _0x38ef6c;}),_0x34bc33['model']['document']['registerPostFixer'](_0x20cbf4=>{const _0x1ab841=_0x34bc33['commands']['get']('redo');if(!_0x1ab841||!_0x1ab841['_createdBatches']['has'](_0x20cbf4['batch']))return!0x1;let _0x19fcd7=!0x1;const _0x565832=_0x34bc33['plugins']['get']('Users')['me'],_0x24d47f=_0x34bc33['model']['document']['differ']['getChanges'](),_0x51466a=Array['from'](_0x34bc33['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x59a486,data:_0x1de9c6})=>{const {group:_0xe8a0fe,subType:_0x1be072,authorId:_0x15afee}=_0x3ae55a['_splitMarkerName'](_0x59a486);return'suggestion'==_0xe8a0fe&&'tablePaste'==_0x1be072&&_0x15afee==_0x565832['id']&&!_0x1de9c6['oldRange'];});for(const _0x1a1ff0 of _0x24d47f){if('insert'!=_0x1a1ff0['type']||'tableCellSuggestion'!=_0x1a1ff0['name']||0x1!=_0x1a1ff0['length'])continue;const _0x3b7faa=_0x20cbf4['createRange'](_0x1a1ff0['position'],_0x1a1ff0['position']['getShiftedBy'](0x1));if(!_0x51466a['find'](({data:_0x29b181})=>_0x29b181['newRange']['isEqual'](_0x3b7faa))){for(const {name:_0x546aa8,data:_0x491041}of _0x51466a)if(_0x3b7faa['containsRange'](_0x491041['newRange'])){_0x20cbf4['updateMarker'](_0x546aa8,{'range':_0x3b7faa}),_0x19fcd7=!0x0;break;}}}return _0x19fcd7;}),_0x34bc33['model']['document']['registerPostFixer'](_0x595dc8=>{let _0x407a26=!0x1;const _0x2d547d=_0x34bc33['plugins']['get']('Users')['me'],_0x564093=_0x3ae55a['getSuggestions']()['filter'](_0x3df717=>_0x3df717['isInContent']&&_0x3df717['author']==_0x2d547d),_0x2c6670=new Set(),_0x563c33=new Set();for(const _0x3ef98a of _0x564093)if('tablePaste'==_0x3ef98a['subType'])for(const _0x2861b9 of _0x3ef98a['getMarkers']()){const _0x1d5ef3=_0x2861b9['getRange']()['getContainedElement']();if(_0x1d5ef3){if(_0x1d5ef3['is']('element','tableCellSuggestion')&&De(_0x1d5ef3)){_0x3ef98a['removeMarker'](_0x2861b9['name']),_0x2c6670['add'](_0x1d5ef3),_0x407a26=!0x0;const _0x471068=_0x1d5ef3['nextSibling'],_0x25a322=_0x1d5ef3['previousSibling'],_0xcb55da=_0x471068&&_0x471068['is']('element','tableCellSuggestion'),_0x260324=_0x25a322&&_0x25a322['is']('element','tableCellSuggestion');_0xcb55da&&!_0x2c6670['has'](_0x471068)&&_0x563c33['add'](_0x471068),_0x260324&&!_0x2c6670['has'](_0x25a322)&&_0x563c33['add'](_0x25a322);}else _0x1d5ef3['is']('element','paragraph')&&_0x1d5ef3['isEmpty']&&(_0x3ef98a['removeMarker'](_0x2861b9['name']),_0x407a26=!0x0);}}else{if('tablePasteCell'==_0x3ef98a['subType']){if(!_0x3ef98a['attributes']||!_0x3ef98a['attributes']['tablePasteChainId'])continue;const _0x3cde6f=_0x3ef98a['attributes']['markerAttributes'];if(_0x3cde6f&&Object['keys'](_0x3cde6f)['length'])continue;const _0x2e16f6=_0x3ef98a['attributes']['tablePasteChainId'];let _0x11ecc6=!0x0,_0x32aa29=!0x0;for(const _0x38e558 of _0x564093)if(_0x38e558['subType']&&_0x38e558['subType']['startsWith']('tablePaste')){if(!_0x38e558['attributes']['tablePasteChainId']){_0x32aa29=!0x1;break;}if(_0x38e558['id']!=_0x3ef98a['id']&&_0x38e558['attributes']['tablePasteChainId']==_0x2e16f6){_0x11ecc6=!0x1;break;}}_0x32aa29&&_0x11ecc6&&(_0x3ef98a['removeMarkers'](),_0x407a26=!0x0);}}for(const _0x24d953 of _0x2c6670)_0x595dc8['remove'](_0x24d953);for(const _0x21a523 of _0x563c33)_0x595dc8['unwrap'](_0x21a523);return _0x407a26;}),_0x34bc33['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x48a424=>_0x29518c(_0x48a424),'converterPriority':'high'}),_0x34bc33['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3e5fc6,_0x103454)=>_0x103454['options']['showSuggestionHighlights']?_0x29518c(_0x3e5fc6,!0x1):null,'converterPriority':'high'});const _0x1d95f3=_0x34bc33['editing']['view'];this['listenTo'](_0x1d95f3['document'],'clipboardOutput',(_0x3c3b6d,_0x3aff6a)=>{const _0x577b9a=[];for(const _0x1063af of _0x1d95f3['createRangeIn'](_0x3aff6a['content'])['getItems']())_0x1063af['is']('element','suggestion-td')&&_0x577b9a['push'](_0x1063af);_0x1d95f3['change'](_0x5d07fa=>{for(const _0x2a046e of _0x577b9a)_0x5d07fa['move'](_0x5d07fa['createRangeIn'](_0x2a046e),_0x5d07fa['createPositionBefore'](_0x2a046e)),_0x5d07fa['remove'](_0x2a046e);});});}}function De(_0x5ea3b4){if(_0x5ea3b4['isEmpty'])return!0x0;const _0x3b5c37=_0x5ea3b4['getChild'](0x0);return _0x3b5c37['is']('element','paragraph')&&_0x3b5c37['isEmpty'];}function He(_0xc1dd64,_0xb59722={},_0x4eebcf){for(const {isAnchor:_0x3980f4,cellHeight:_0x44f442,cellWidth:_0x5b0298}of _0x4eebcf['createTableWalker'](_0xc1dd64,{'includeAllSlots':!0x0,..._0xb59722}))if(!_0x3980f4||0x1!=_0x44f442||0x1!=_0x5b0298)return!0x1;return!0x0;}class Tt extends _0x282945{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x480511=this['editor']['plugins']['get']('TrackChangesEditing');_0x480511['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x480511['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x480511['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x480511['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x480511['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x480511['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1cba35,_0x3c041e){const _0x574980=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc69b4=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x46b499=_0x3c041e['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xc80670=_0xc69b4['getColumnGroupElement'](_0x46b499);let _0x438f84=_0xc80670?_0xc69b4['getTableColumnsWidths'](_0xc80670):null,_0x168acb=_0x46b499['getAttribute']('tableWidth')||null;const _0x373121=_0x3c041e['tableWidth']||_0x168acb,_0x1db092=_0x3c041e['columnWidths']||_0x438f84,_0x2fcb39=this['editor']['plugins']['get']('Users')['me'];for(const _0x4c821a of _0x574980['getSuggestions']()){const _0x454c51=_0x4c821a['getContainedElement']();if('resizeTable'===_0x4c821a['subType']&&_0x454c51===_0x46b499){_0x4c821a['author']!==_0x2fcb39&&_0x4c821a['discard']();const _0x22c342=_0x4c821a['data']['commandParams'];_0x168acb=_0x22c342[0x0]['tableWidth'],_0x438f84=_0x22c342[0x0]['columnWidths'];break;}}_0x1cba35({'table':_0x46b499,'tableWidth':_0x373121,'columnWidths':_0x1db092}),_0x574980['markBlockFormat'](_0x46b499,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x168acb,'columnWidths':_0x438f84}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x439607){if('formatBlock'!=_0x439607['type']&&'formatInline'!=_0x439607['type'])return;const {data:_0x689425}=_0x439607;if(_0x689425&&'resizeTable'===_0x689425['formatGroupId']){const _0x5e69e9='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x5e69e9)};}}}class Ot extends _0x282945{['afterInit'](){const _0x47c556=this['editor'];_0x47c556['plugins']['has']('Template')&&_0x47c556['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class xt extends _0x282945{['afterInit'](){const _0x51ba39=this['editor'];if(!_0x51ba39['commands']['get']('insertTableOfContents'))return;_0x51ba39['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x11cced=_0x51ba39['plugins']['get']('TrackChangesEditing'),_0x429593=_0x51ba39['locale'];_0x11cced['descriptionFactory']['registerElementLabel']('tableOfContents',_0x132332=>o(_0x429593,'ELEMENT_TABLE_OF_CONTENTS',_0x132332));}}class Et extends _0x282945{['afterInit'](){const _0x101edd=this['editor'];if(!_0x101edd['plugins']['has']('Title'))return;const _0x5d660a=_0x101edd['plugins']['get']('TrackChangesEditing');_0x5d660a['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x101edd['locale'],'ELEMENT_TITLE')),_0x101edd['model']['document']['registerPostFixer'](_0x374572=>{let _0x5be0f4=!0x1;const _0x5d4284=Array['from'](_0x101edd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x316c33,data:_0x43c5dc}of _0x5d4284){const {group:_0x1b0744}=_0x5d660a['_splitMarkerName'](_0x316c33);if('suggestion'!==_0x1b0744||!_0x43c5dc['newRange'])continue;const _0x37f97b=_0x43c5dc['newRange'],_0x49f154=_0x37f97b['end']['nodeBefore'];if(!_0x49f154||!_0x49f154['is']('element','title-content'))continue;if(!_0x37f97b['start']['isTouching'](_0x37f97b['end']))continue;const _0x10f979=_0x101edd['model']['schema']['getNearestSelectionRange'](_0x37f97b['end'],'forward');if(_0x10f979&&_0x10f979['isCollapsed']){const _0x3461b1=_0x374572['createRange'](_0x37f97b['start'],_0x10f979['start']);_0x3461b1['isEqual'](_0x37f97b)||(_0x374572['updateMarker'](_0x316c33,{'range':_0x3461b1}),_0x5be0f4=!0x0);}_0x5be0f4||(_0x374572['removeMarker'](_0x316c33),_0x5be0f4=!0x0);}return _0x5be0f4;});}}class Rt extends _0x282945{['afterInit'](){const _0x13e323=this['editor'],_0x8e6097=_0x13e323['plugins']['get']('TrackChangesEditing');_0x13e323['plugins']['has']('Uploadcare')&&(_0x8e6097['enableCommand']('uploadcare'),_0x13e323['plugins']['has']('UploadcareImageEdit')&&(_0x8e6097['enableCommand']('uploadcareImageEdit'),_0x8e6097['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x8e6097['registerBlockAttribute']('uploadcareImageId'),_0x8e6097['descriptionFactory']['registerDescriptionCallback'](_0x815552=>{if('attribute'!=_0x815552['type'])return;const {data:_0x1532fc}=_0x815552;return _0x1532fc&&'uploadcareImageId'==_0x1532fc['key']?{'type':'format','content':''}:void 0x0;})));}}class Ut extends _0x282945{['afterInit'](){const _0x2d7a71=this['editor'],_0x51681a=_0x2d7a71['plugins']['get']('TrackChangesEditing');_0x2d7a71['plugins']['has']('UndoEditing')&&(_0x51681a['enableCommand']('undo'),_0x51681a['enableCommand']('redo'));}}class Vt extends _0x282945{static get['requires'](){return[$t];}['afterInit'](){const _0x2d32dd=this['editor'];if(!_0x2d32dd['plugins']['has']('TableCaptionEditing'))return;_0x2d32dd['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ft extends _0x282945{['tableProperties'];['tableCellProperties'];constructor(_0x2e30d3){super(_0x2e30d3),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 _0x4d8333=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x686a00 of this['tableProperties'])_0x4d8333['enableCommand'](_0x686a00,(_0x3ffdbd,_0x405daf)=>{const _0x5d9742=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x686a00,[_0x5d9742],this['tableProperties'],'tableProperties',_0x3ffdbd,_0x405daf);});_0x4d8333['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4d8333['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4d8333['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0xe63d66,_0x482cbd)=>this['handleDiscardAction'](this['tableProperties'],_0xe63d66,_0x482cbd)),_0x4d8333['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x43e16b of this['tableCellProperties'])_0x4d8333['enableCommand'](_0x43e16b,(_0x213eb8,_0x5c7f8d)=>{const _0x3d4e9c=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x43e16b,_0x3d4e9c,this['tableCellProperties'],'tableCellProperties',_0x213eb8,_0x5c7f8d);});_0x4d8333['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4d8333['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4d8333['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x7c58d1,_0x4ec90c)=>this['handleDiscardAction'](this['tableCellProperties'],_0x7c58d1,_0x4ec90c)),_0x4d8333['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4d8333['descriptionFactory']['registerDescriptionCallback'](_0x2ea26e=>this['handleSuggestionDescription'](_0x2ea26e)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x153be6,_0x496327,_0x1ad13e,_0x310ef0,_0x3ce041,_0xc60133){const _0x122378=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xc60133['batch'],()=>{for(const _0x183eaa of _0x496327){if(this['_getSuggestion'](_0x183eaa,_0x310ef0))_0x3ce041(_0xc60133);else{const _0x282355={};for(const _0x476429 of _0x1ad13e){const _0x5d35b2=_0x183eaa['getAttribute'](_0x476429);void 0x0!==_0x5d35b2&&(_0x282355[_0x476429]=_0x5d35b2);}_0x3ce041(_0xc60133),_0x122378['markBlockFormat'](_0x183eaa,{'commandParams':[_0x282355]},[],_0x310ef0);}}});}['handleDiscardAction'](_0x550a49,_0x148048,_0x4c6c5e){const _0x23b5e1=_0x148048[0x0]['start']['nodeAfter'],_0x5e2a3d=_0x4c6c5e['commandParams'][0x0];this['editor']['model']['change'](_0x42ce01=>{for(const _0x5cac30 of _0x550a49)void 0x0!==_0x5e2a3d[_0x5cac30]?_0x42ce01['setAttribute'](_0x5cac30,_0x5e2a3d[_0x5cac30],_0x23b5e1):_0x42ce01['removeAttribute'](_0x5cac30,_0x23b5e1);});}['handleSuggestionDescription'](_0x11b192){if(_0x11b192['data'])switch(_0x11b192['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x1ea9d4,_0x5ba7c1){const _0x2db2f0=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4531d6 of _0x2db2f0['getSuggestions']({'skipNotAttached':!0x0})){const _0x7c84a1=_0x4531d6['getContainedElement']();if(_0x4531d6['subType']===_0x5ba7c1&&_0x7c84a1===_0x1ea9d4)return _0x4531d6;}return null;}['_registerTablePropertiesAttributes'](){const _0x2b120f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x424536=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x4efd14 of _0x424536){const _0x4a29ba=_0x4efd14['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x2b120f['registerBlockAttribute'](_0x4efd14),_0x2b120f['descriptionFactory']['registerAttributeLabel'](_0x4efd14,o(this['editor']['locale'],'FORMAT_'+_0x4a29ba));}}}class Pt extends _0x282945{['afterInit'](){const _0xa28dd0=this['editor'];if(!_0xa28dd0['plugins']['has']('LineHeight'))return;const _0x5495ce=_0xa28dd0['plugins']['get']('TrackChangesEditing'),_0x170db2=_0xa28dd0['locale'];_0x5495ce['enableDefaultAttributesIntegration']('lineHeight'),_0x5495ce['registerBlockAttribute']('lineHeight'),_0x5495ce['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x170db2,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x282945{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x547438,_0x372fca,_0x2b28d7,V,F,G,L,J,H,K,W,q,z,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,ct,ft,ht,gt,dt,mt,bt,lt,Q,Pt,X,pt,kt,wt,yt,St,jt,It,At,_t,vt,Ct,$t,Nt,Dt,Mt,Vt,Bt,Tt,xt,Ft,Ot,Et,Rt,Ut];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x455f83){super(_0x455f83),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x74ad78,_0x5036ce,_0x5f3acd,_0x37bc53)=>{this['_model']['change'](()=>{for(const _0xf08bc of[..._0x37bc53,..._0x5f3acd])this['_model']['markers']['has'](_0xf08bc)&&_0x455f83['editing']['reconvertMarker'](_0xf08bc);});}),this['descriptionFactory']=new U(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Lt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x455f83['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x455f83['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x455f83['config']['get']('trackChanges.trackFormatChanges'),_0x455f83['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x455f83['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x455f83,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3f8e9a=this['editor'],_0x3f252a=(_0x2d2c5c,_0x30c9dc)=>{if('attribute'!=_0x2d2c5c)return'ck-suggestion-marker-'+_0x2d2c5c;const _0x31612e=_0x30c9dc['split']('|')[0x0];return this['_isBlockAttribute'](_0x31612e)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x3f8e9a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x20f4dd=>{const {id:_0x12cfbc,authorId:_0x43d5ac,type:_0x13ff57,subType:_0x3a4085}=this['_splitMarkerName'](_0x20f4dd['markerName']),_0x5d07f7=['ck-suggestion-marker',_0x3f252a(_0x13ff57,_0x3a4085)];let _0x44eb7c=0xbb8;return this['activeMarkers']['includes'](_0x20f4dd['markerName'])&&(_0x5d07f7['push']('ck-suggestion-marker--active'),_0x44eb7c=0xbc2),'deletion'==_0x13ff57&&(_0x44eb7c+=0x5),{'classes':_0x5d07f7,'attributes':{'data-suggestion':_0x12cfbc,'data-author-id':_0x43d5ac},'priority':_0x44eb7c};}}),_0x3f8e9a['conversion']['for']('dataDowncast')['add'](_0x50065b=>{_0x50065b['on']('addMarker:suggestion',(_0xc9159b,_0xe6b52f,_0xbf09a0)=>{if(!_0xbf09a0['options']['showSuggestionHighlights'])return;const _0x39078b=_0xe6b52f['item'];if(!_0x39078b)return;const _0x47ade9=_0xbf09a0['mapper']['toViewElement'](_0x39078b);_0x3f8e9a['model']['schema']['isObject'](_0x39078b)&&_0x47ade9&&!_0x47ade9['getCustomProperty']('widget')&&_0x47ade9['is']('containerElement')&&_0x1154bb(_0x47ade9,_0xbf09a0['writer']);},{'priority':'high'});}),_0x3f8e9a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xf4c715,_0x17be93)=>{if(!_0x17be93['options']['showSuggestionHighlights'])return null;const {id:_0x5dd54b,authorId:_0x43b775,type:_0x53f674,subType:_0x111d49}=this['_splitMarkerName'](_0xf4c715['markerName']);return{'classes':['ck-suggestion-marker',_0x3f252a(_0x53f674,_0x111d49)],'priority':0xbb8,'attributes':{'data-suggestion':_0x5dd54b,'data-author-id':_0x43b775}};}});const _0x334efc=({showActiveMarkers:_0x9a0043=!0x0,isAttributeSuggestion:_0x5466f3=!0x1}={})=>(_0x4f99ab,_0x4c5081,_0x1eb465)=>{if(!_0x4c5081['item'])return;const {id:_0x31fdf6,authorId:_0x3fa16f,subType:_0x27a08e}=this['_splitMarkerName'](_0x4c5081['markerName']);if(_0x5466f3){const _0x28a684=se(_0x27a08e);if(!this['_isBlockAttribute'](_0x28a684))return;}if(_0x4c5081['item']['is']('selection'))return void _0x1eb465['consumable']['consume'](_0x4c5081['item'],_0x4f99ab['name']);const _0x98afae=_0x1eb465['mapper']['toViewElement'](_0x4c5081['item']);if(_0x4c5081['item']['is']('element')&&_0x3f8e9a['model']['schema']['isBlock'](_0x4c5081['item'])&&!_0x98afae['getCustomProperty']('addHighlight')){_0x1eb465['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x98afae),_0x1eb465['writer']['setAttribute']('data-suggestion',_0x31fdf6,_0x98afae),_0x1eb465['writer']['setAttribute']('data-author-id',_0x3fa16f,_0x98afae),_0x1eb465['mapper']['bindElementToMarker'](_0x98afae,_0x4c5081['markerName']),_0x9a0043&&(this['activeMarkers']['includes'](_0x4c5081['markerName'])?_0x1eb465['writer']['addClass']('ck-suggestion-marker--active',_0x98afae):_0x1eb465['writer']['removeClass']('ck-suggestion-marker--active',_0x98afae));for(const _0x53251c of _0x3f8e9a['model']['createRangeIn'](_0x4c5081['item'])['getItems']())_0x1eb465['consumable']['consume'](_0x53251c,_0x4f99ab['name']);_0x1eb465['consumable']['consume'](_0x4c5081['item'],_0x4f99ab['name']);}};_0x3f8e9a['conversion']['for']('dataDowncast')['add'](_0x317204=>{_0x317204['on']('addMarker:suggestion:formatBlock',(_0x5d41d6,_0x4cdc94,_0x571328)=>{_0x571328['options']['showSuggestionHighlights']&&_0x334efc({'showActiveMarkers':!0x1})(_0x5d41d6,_0x4cdc94,_0x571328);},{'priority':'highest'});}),_0x3f8e9a['conversion']['for']('dataDowncast')['add'](_0x262af9=>{_0x262af9['on']('addMarker:suggestion:attribute',(_0x3ae93d,_0x4c20d2,_0x116121)=>{_0x116121['options']['showSuggestionHighlights']&&_0x334efc({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3ae93d,_0x4c20d2,_0x116121);},{'priority':'highest'});}),_0x3f8e9a['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x42b21a,_0x33d56f)=>{if(_0x33d56f['options']['showSuggestionHighlights']){const {id:_0x1db26b,authorId:_0x2fd9e8}=this['_splitMarkerName'](_0x42b21a);return _0x42b21a['includes'](':split')||_0x42b21a['includes'](':merge')?{'group':'suggestion','name':_0x42b21a['substr'](0xb),'attributes':{'data-suggestion':_0x1db26b,'data-author-id':_0x2fd9e8}}:null;}return{'group':'suggestion','name':_0x42b21a['substr'](0xb)};}}),_0x3f8e9a['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x108a6a,{writer:_0x5a6f39})=>{let _0x32bdf1='suggestion:'+_0x108a6a['getAttribute']('suggestion-type')+':'+_0x108a6a['getAttribute']('id');return _0x108a6a['getAttribute']('marker-count')&&(_0x32bdf1+=':'+_0x108a6a['getAttribute']('marker-count')),_0x5a6f39['createElement']('$marker',{'data-name':_0x32bdf1});}}),_0x3f8e9a['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3f8e9a['conversion']['for']('editingDowncast')['add'](_0x2b6910=>{_0x2b6910['on']('addMarker:suggestion:formatBlock',_0x334efc(),{'priority':'high'});}),_0x3f8e9a['conversion']['for']('editingDowncast')['add'](_0x4df1f1=>{_0x4df1f1['on']('addMarker:suggestion:attribute',_0x334efc({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x3f8e9a['conversion']['for']('editingDowncast')['add'](_0x4e2b9b=>{_0x4e2b9b['on']('removeMarker:suggestion:formatBlock',(_0x1a8499,_0x1c9525,_0x1a6ffc)=>{const _0x2850c1=_0x1a6ffc['mapper']['markerNameToElements'](_0x1c9525['markerName']);if(_0x2850c1){for(const _0xbd37aa of _0x2850c1)_0xbd37aa['getCustomProperty']('addHighlight')||(_0x1a6ffc['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xbd37aa),_0x1a6ffc['writer']['removeAttribute']('data-suggestion',_0xbd37aa),_0x1a6ffc['writer']['removeAttribute']('data-author-id',_0xbd37aa),_0x1a6ffc['mapper']['unbindElementFromMarkerName'](_0xbd37aa,_0x1c9525['markerName']));}},{'priority':'high'});}),_0x3f8e9a['conversion']['for']('editingDowncast')['add'](_0x85dc8a=>{_0x85dc8a['on']('removeMarker:suggestion:attribute',(_0x4b3466,_0x2f6e21,_0x40f445)=>{const _0x1c9ecd=_0x40f445['mapper']['markerNameToElements'](_0x2f6e21['markerName']);if(!_0x1c9ecd)return;const {subType:_0x185186}=this['_splitMarkerName'](_0x2f6e21['markerName']),_0x5ab25e=se(_0x185186);if(this['_isBlockAttribute'](_0x5ab25e)){for(const _0x55dc27 of _0x1c9ecd)_0x55dc27['getCustomProperty']('addHighlight')||(_0x40f445['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x55dc27),_0x40f445['writer']['removeAttribute']('data-suggestion',_0x55dc27),_0x40f445['writer']['removeAttribute']('data-author-id',_0x55dc27),_0x40f445['mapper']['unbindElementFromMarkerName'](_0x55dc27,_0x2f6e21['markerName']));}},{'priority':'high'});}),_0x3f8e9a['model']['document']['registerPostFixer'](_0x4a30b6=>{let _0x1d117e=!0x1;const _0x294ad2=Array['from'](_0x3f8e9a['model']['document']['differ']['getChangedMarkers']()),_0x17f1bf=new Set();for(const {name:_0x3e8af9,data:_0x281977}of _0x294ad2){const {group:_0x496a0,type:_0x47feee,subType:_0x4259e6,id:_0x31d912}=this['_splitMarkerName'](_0x3e8af9);if('suggestion'!==_0x496a0)continue;const _0x394c8b=_0x4259e6?'suggestion:'+_0x47feee+':'+_0x4259e6+':'+_0x31d912:'suggestion:'+_0x47feee+':'+_0x31d912,_0x4e6d81=_0x3f8e9a['model']['markers']['getMarkersGroup'](_0x394c8b),_0x5bcc28=_0x3f8e9a['model']['markers']['get'](_0x3e8af9),_0x326fe3=this['_suggestions']['get'](_0x31d912);if(null!=_0x281977['newRange']){'formatInline'==_0x47feee&&(_0x1d117e=_0x1d117e||Ht(_0x281977['newRange'],_0x3e8af9,_0x4a30b6,_0x3f8e9a['model']['schema']));const _0x2d1a7a='attribute'==_0x47feee&&this['_isBlockAttribute'](_0x4259e6['split']('|')[0x0]),_0x4d6f0d='attribute'==_0x47feee&&this['_isInlineAttribute'](_0x4259e6['split']('|')[0x0]);if(_0x281977['newRange']['isCollapsed']||'$graveyard'==_0x281977['newRange']['root']['rootName']||'formatBlock'==_0x47feee&&!qt(_0x281977['newRange'])||_0x2d1a7a&&!qt(_0x281977['newRange'])||_0x4d6f0d&&zt(_0x281977['newRange'])||'deletion'==_0x47feee&&zt(_0x281977['newRange'])||_0x5bcc28&&Qt(_0x5bcc28,_0x4e6d81))_0x4a30b6['removeMarker'](_0x3e8af9),_0x1d117e=!0x0;else{if(!_0x326fe3||!_0x326fe3['isInContent'])continue;if(_0x281977['newRange']&&_0x281977['oldRange']&&_0x281977['newRange']['isEqual'](_0x281977['oldRange']))continue;_0x17f1bf['add'](_0x326fe3);}}}return _0x17f1bf['size']>0x0&&(_0x1d117e=!!this['_joinWithAdjacentSuggestions'](_0x17f1bf)||_0x1d117e),_0x1d117e;}),_0x3f8e9a['model']['document']['registerPostFixer'](_0x2b6b67=>{let _0x409b67=!0x1;for(const _0x131b75 of _0x3f8e9a['model']['document']['differ']['getChanges']())if('insert'==_0x131b75['type'])for(const _0xf45ab9 of this['_suggestions']['values']()){if(_0xf45ab9['isMultiRange']||!_0xf45ab9['isInContent'])continue;const _0x594217='formatBlock'==_0xf45ab9['type'],_0x54a45f=this['_getAttributeKey'](_0xf45ab9),_0x1e3e31=_0x54a45f&&this['_isBlockAttribute'](_0x54a45f);if(!_0x594217&&!_0x1e3e31)continue;const _0x297dfe=_0xf45ab9['getFirstRange']();if(_0x297dfe['start']['parent']!=_0x297dfe['end']['parent']&&!_0x297dfe['end']['isAtEnd']){const _0x719f96=_0x3f8e9a['model']['createPositionAt'](_0x297dfe['start']['nodeAfter'],'end'),_0x29dcfa=_0x3f8e9a['model']['createRange'](_0x297dfe['start'],_0x719f96);_0x2b6b67['updateMarker'](_0xf45ab9['getFirstMarker'](),{'range':_0x29dcfa}),_0x409b67=!0x0;}}return _0x409b67;}),_0x3f8e9a['model']['document']['registerPostFixer'](_0x390425=>this['_processAttributeChanges'](_0x390425)),_0x3f8e9a['model']['document']['registerPostFixer'](_0x1cf3b0=>!_0x1cf3b0['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1cf3b0)),_0x3f8e9a['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3f8e9a['model']['document']['on']('change:data',(_0x514cc2,_0x49b28f)=>{if(!_0x49b28f['isLocal']||_0x49b28f['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x543455=_0x3f8e9a['model']['document']['differ']['getChanges']();if(0x0==_0x543455['length'])return;const _0x5d2c1c=[],_0x482bef=_0x543455['filter'](_0x4a383e=>'attribute'==_0x4a383e['type']),_0x70191a=_0x543455['filter'](_0x539611=>'insert'==_0x539611['type']&&'$text'!=_0x539611['name']);for(const _0x57016b of _0x482bef)this['_isRegisteredAttribute'](_0x57016b['attributeKey'])&&_0x5d2c1c['push']({'key':_0x57016b['attributeKey'],'newValue':_0x57016b['attributeNewValue'],'oldValue':_0x57016b['attributeOldValue'],'range':Yt(_0x57016b['range'],_0x3f8e9a['model'])});for(const _0xbc128f of _0x70191a){if('rename'!=_0xbc128f['action']&&'refresh'!=_0xbc128f['action'])continue;const _0x319846=Zt(_0xbc128f['position']['nodeAfter'],_0x3f8e9a['model']),_0x1510db=_0xbc128f['before'];'rename'==_0xbc128f['action']&&_0x5d2c1c['push']({'key':m,'newValue':_0xbc128f['name'],'oldValue':_0x1510db['name'],'range':_0x319846});for(const [_0x5174df,_0x80c5dd]of _0x1510db['attributes']){if(!this['_isRegisteredAttribute'](_0x5174df))continue;const _0x62771c=_0xbc128f['attributes']['get'](_0x5174df);_0x80c5dd!==_0x62771c&&_0x5d2c1c['push']({'key':_0x5174df,'newValue':_0x62771c,'oldValue':_0x80c5dd,'range':_0x319846});}for(const [_0x3608f7,_0x566aef]of _0xbc128f['attributes'])this['_isRegisteredAttribute'](_0x3608f7)&&(_0x1510db['attributes']['has'](_0x3608f7)||_0x5d2c1c['push']({'key':_0x3608f7,'newValue':_0x566aef,'oldValue':null,'range':_0x319846}));}0x0!=_0x5d2c1c['length']&&_0x3f8e9a['model']['enqueueChange'](_0x49b28f,_0x3f153f=>{const _0xedf9c0=_0x31d37c();for(const {range:_0x41913f,key:_0x47fe8e,oldValue:_0x39ceed,newValue:_0x58118a}of _0x5d2c1c)this['markAttributeChange'](_0x41913f,_0x47fe8e,_0x39ceed,_0x58118a,{'groupId':_0xedf9c0});this['_reduceExistingSuggestions'](_0x3f153f,_0x5d2c1c);});},{'priority':'lowest'}),_0x3f8e9a['model']['markers']['on']('update:suggestion',(_0xc429ba,_0x34810d,_0x55807c)=>{if(null==_0x55807c){const {id:_0x348dc6}=this['_splitMarkerName'](_0x34810d['name']),_0x137cc5=this['_suggestions']['get'](_0x348dc6);_0x137cc5&&_0x137cc5['addMarkerName'](_0x34810d['name']);}}),_0x3f8e9a['model']['document']['on']('change:data',()=>{const _0xdc3b3f=Array['from'](_0x3f8e9a['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5b4a34=>'suggestion'===this['_splitMarkerName'](_0x5b4a34['name'])['group']);if(0x0===_0xdc3b3f['length'])return;_0xdc3b3f['sort']((_0x1897cb,_0x55f11a)=>{const _0x53d149=_0x1897cb['data']['oldRange'],_0x273f8c=_0x55f11a['data']['oldRange'];return null===_0x53d149&&null===_0x273f8c?0x0:null===_0x53d149&&null!==_0x273f8c?-0x1:null!==_0x53d149&&null===_0x273f8c?0x1:_0x53d149['start']['isBefore'](_0x273f8c['start'])?-0x1:0x1;});const _0x13b874=new Set(),_0x460a1e=new Set();for(const {name:_0x2eeb4a,data:_0x3d7f51}of _0xdc3b3f){const {id:_0x40cb12}=this['_splitMarkerName'](_0x2eeb4a);if(null===_0x3d7f51['oldRange']){const _0x285a4f=this['_handleNewSuggestionMarker'](_0x2eeb4a);_0x460a1e['add'](_0x285a4f);}else{const _0x1a8f38=this['_suggestions']['get'](_0x40cb12);null!==_0x3d7f51['newRange']||_0x1a8f38['isInContent']?(_0x13b874['add'](_0x1a8f38['head']),_0x460a1e['add'](_0x1a8f38)):this['_removeSuggestion'](_0x1a8f38);}}_0x460a1e['size']>0x0&&this['_refreshSuggestionsChain'](_0x460a1e);for(const _0x16fa9a of _0x13b874)this['fire']('suggestionChanged',_0x16fa9a);}),_0x3f8e9a['model']['on']('applyOperation',(_0x2d89d7,_0x4bac99)=>{const _0x3cb6de=_0x4bac99[0x0];if(!this['_suggestions']['size'])return;if(!_0x3cb6de['isDocumentOperation'])return;if(_0x3cb6de['batch']['isUndo']||!_0x3cb6de['batch']['isLocal'])return;let _0x2b2d40,_0x4c7eb7;switch(_0x3cb6de['type']){case'insert':_0x2b2d40=_0x3f8e9a['model']['createPositionAt'](_0x3cb6de['position']),_0x4c7eb7=_0x2b2d40['getShiftedBy'](_0x3cb6de['howMany']);break;case'split':_0x2b2d40=_0x3f8e9a['model']['createPositionAt'](_0x3cb6de['splitPosition']),_0x4c7eb7=_0x3f8e9a['model']['createPositionAt'](_0x3cb6de['moveTargetPosition']);break;case'move':_0x2b2d40=_0x3f8e9a['model']['createPositionAt'](_0x3cb6de['targetPosition']),_0x4c7eb7=_0x2b2d40['getShiftedBy'](_0x3cb6de['howMany']);break;default:return;}const _0x4f9b8a=_0x3f8e9a['model']['createRange'](_0x2b2d40,_0x4c7eb7);_0x3f8e9a['model']['change'](()=>{for(const {suggestion:_0x242163,meta:_0x2dcd8b}of this['_findSuggestions'](_0x4f9b8a)){if(_0x242163['isMultiRange'])continue;if('formatInline'==_0x242163['type'])continue;const _0x46f822=this['_getAttributeKey'](_0x242163);if(_0x46f822&&this['_isBlockAttribute'](_0x46f822)&&'split'!=_0x3cb6de['type'])continue;const _0x2a2841=_0x242163['data']&&_0x242163['data']['multipleBlocks'];('formatBlock'!=_0x242163['type']||'split'==_0x3cb6de['type']&&!_0x2a2841)&&(_0x2dcd8b['containsRangeInObject']||'insertion'==_0x242163['type']&&_0x2dcd8b['isOwn']||_0x242163['getFirstRange']()['containsRange'](_0x4f9b8a)&&this['_breakSuggestionMarker'](_0x242163,_0x2b2d40,_0x4c7eb7));}});},{'priority':'lowest'}),_0x3f8e9a['model']['on']('deleteContent',(_0x32ff1b,_0x35ce49)=>{const _0x10e225=_0x35ce49[0x0],_0x9a51bb=_0x35ce49[0x1];if(_0x9a51bb&&_0x9a51bb['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x10e225['isCollapsed'])return;const _0x5769b0=_0x3f8e9a['model']['schema'],{start:_0x4f1967,end:_0x201ddc}=_0x10e225['getFirstRange'](),_0xc45118=_0x4f1967['nodeAfter']&&_0x5769b0['isLimit'](_0x4f1967['nodeAfter'])?null:_0x5769b0['getNearestSelectionRange'](_0x4f1967,'forward'),_0x1d1d08=_0x201ddc['nodeBefore']&&_0x5769b0['isLimit'](_0x201ddc['nodeBefore'])?null:_0x5769b0['getNearestSelectionRange'](_0x201ddc,'backward'),_0x5aa406=_0x3f8e9a['model']['createRange'](_0xc45118?_0xc45118['start']:_0x4f1967,_0x1d1d08?_0x1d1d08['end']:_0x201ddc);_0x3f8e9a['model']['change'](_0x1cd25b=>{this['markDeletion'](_0x5aa406);const _0x21d3bb=_0x3f8e9a['model']['schema']['getNearestSelectionRange'](_0x5aa406['start']);_0x10e225['is']('documentSelection')?_0x1cd25b['setSelection'](_0x21d3bb):_0x10e225['setTo'](_0x21d3bb);}),_0x32ff1b['stop']();},{'priority':_0x4f4e3d['normal']+0xa}),_0x3f8e9a['model']['on']('insertContent',(_0x238eed,_0x1f838e)=>{const _0x1d7127=_0x1f838e[_0x1f838e['length']-0x1];_0x1d7127&&_0x1d7127['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3f8e9a['model']['change'](()=>{let _0x2b0fba=_0x3f8e9a['model']['insertContent'](_0x1f838e[0x0],_0x1f838e[0x1],_0x1f838e[0x2],{'forceDefaultExecution':!0x0});if(!_0x2b0fba)return;_0x238eed['return']=_0x2b0fba['clone']();const _0x503b96=_0x2b0fba['end']['nodeBefore'],_0x2c90a5=_0x3f8e9a['model']['schema'];_0x503b96&&_0x2c90a5['isBlock'](_0x503b96)&&!_0x2c90a5['isObject'](_0x503b96)&&(_0x2b0fba=_0x3f8e9a['model']['createRange'](_0x2b0fba['start'],_0x3f8e9a['model']['createPositionAt'](_0x503b96,'end'))),this['markInsertion'](_0x2b0fba);}),_0x238eed['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3a6928=new T(_0x3f8e9a,this['_suggestions']);_0x3f8e9a['commands']['add']('acceptSuggestion',_0x3a6928),this['enableCommand']('acceptSuggestion');const _0x16a53e=new O(_0x3f8e9a,this['_suggestions']);_0x3f8e9a['commands']['add']('discardSuggestion',_0x16a53e),this['enableCommand']('discardSuggestion'),_0x3f8e9a['commands']['add']('acceptAllSuggestions',new x(_0x3f8e9a,_0x3a6928,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3f8e9a['commands']['add']('discardAllSuggestions',new x(_0x3f8e9a,_0x16a53e,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3f8e9a['commands']['add']('acceptSelectedSuggestions',new E(_0x3f8e9a,_0x3a6928,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3f8e9a['commands']['add']('discardSelectedSuggestions',new E(_0x3f8e9a,_0x16a53e,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3447ea=_0x3f8e9a['plugins']['get']('CommentsRepository');this['listenTo'](_0x3447ea,'addComment',(_0x4d2a7d,{threadId:_0x293e2d})=>{const _0x5aeed8=this['_suggestions']['get'](_0x293e2d);_0x5aeed8&&_0x5aeed8['commentThread']&&0x1===_0x5aeed8['commentThread']['length']&&this['_updateSuggestionData'](_0x293e2d,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3447ea,'removeComment',(_0x82679c,{threadId:_0x524802})=>{const _0x16d313=this['_suggestions']['get'](_0x524802);_0x16d313&&_0x16d313['commentThread']&&!_0x16d313['commentThread']['length']&&this['_updateSuggestionData'](_0x524802,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x55f12f){const _0x1dcf99=_0x25c17c([0x35,0x67,0x6f,0x4e,0x5a,0x52,0x78,0x48,0x7a,0x6d,0x42,0x66,0x72,0x6c,0x30,0x46,0x71,0x36,0x43,0x6b,0x73,0x31,0x61,0x68,0x44,0x47,0x53,0x32,0x4c,0x55,0x45,0x57,0x69,0x62,0x79,0x33,0x77,0x4b,0x76,0x75,0x34,0x49,0x56,0x50,0x64,0x65,0x54,0x38,0x6a,0x6e,0x39,0x4d,0x4f,0x51,0x4a,0x74,0x63,0x41,0x59,0x37,0x58,0x70]),_0x2b5a03=0x6b0f5e6f,_0x3cfcc7=0x6b082aff^_0x2b5a03,_0x53c283=window[_0x25c17c([0x44,0x61,0x74,0x65])][_0x25c17c([0x6e,0x6f,0x77])](),_0x500abc=_0x55f12f[_0x25c17c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1846d0=new window[(_0x25c17c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c1fb7=>{_0x500abc[_0x25c17c([0x6f,0x6e,0x63,0x65])](_0x25c17c([0x72,0x65,0x61,0x64,0x79]),_0x2c1fb7);}),_0x5d342e={[_0x25c17c([0x6b,0x74,0x79])]:_0x25c17c([0x45,0x43]),[_0x25c17c([0x75,0x73,0x65])]:_0x25c17c([0x73,0x69,0x67]),[_0x25c17c([0x63,0x72,0x76])]:_0x25c17c([0x50,0x2d,0x32,0x35,0x36]),[_0x25c17c([0x78])]:_0x25c17c([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]),[_0x25c17c([0x79])]:_0x25c17c([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]),[_0x25c17c([0x61,0x6c,0x67])]:_0x25c17c([0x45,0x53,0x32,0x35,0x36])},_0x4ccf0d=_0x500abc[_0x25c17c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x25c17c([0x67,0x65,0x74])](_0x25c17c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5f3a56(){let _0x4851b5,_0x5208dd=null,_0x55cf32=null;try{if(_0x4ccf0d==_0x25c17c([0x47,0x50,0x4c]))return _0x25c17c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4851b5=_0x3dbdc4(),!_0x4851b5)return _0x25c17c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4851b5[_0x25c17c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x55cf32=_0x50d453(_0x4851b5[_0x25c17c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4851b5[_0x25c17c([0x6a,0x74,0x69])])),await _0x47eb8e()?_0x519ecf()?_0x4abba9()?_0x25c17c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x28fd03()?(_0x4851b5[_0x25c17c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x25c17c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5208dd=_0x39c1e0(_0x25c17c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4851b5[_0x25c17c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x25c17c([0x74,0x72,0x69,0x61,0x6c])&&(_0x5208dd=_0x39c1e0(_0x25c17c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3fc813()):_0x25c17c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x25c17c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x25c17c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x25c17c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4abba9(){const _0x48635d=[_0x25c17c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x25c17c([0x74,0x72,0x69,0x61,0x6c])][_0x25c17c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4851b5[_0x25c17c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x53c283/0x3e8:0xe10*_0x3cfcc7;return _0x4851b5[_0x25c17c([0x65,0x78,0x70])]<_0x48635d;}function _0x519ecf(){const _0x336d4f=_0x4851b5[_0x25c17c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x336d4f)return!0x1;if(_0x336d4f[_0x25c17c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25c17c([0x2a])))return!0x0;if(_0x336d4f[_0x25c17c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25c17c([0x54,0x43])))return!0x0;if(_0x336d4f[_0x25c17c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25c17c([0x52,0x54,0x43]))){if(_0x51dae5())return!0x0;if(_0x36e62b()||_0x5f1091())return!0x0;}return!0x1;}function _0x28fd03(){const _0x4d65cd=_0x4851b5[_0x25c17c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4d65cd||0x0==_0x4d65cd[_0x25c17c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3af440}=new URL(window[_0x25c17c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4d65cd[_0x25c17c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3af440))return!0x0;const _0x31f5f0=_0x3af440[_0x25c17c([0x73,0x70,0x6c,0x69,0x74])](_0x25c17c([0x2e]));return _0x4d65cd[_0x25c17c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x328ab=>_0x328ab[_0x25c17c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25c17c([0x2a])))[_0x25c17c([0x6d,0x61,0x70])](_0x3bb6f6=>_0x3bb6f6[_0x25c17c([0x73,0x70,0x6c,0x69,0x74])](_0x25c17c([0x2e])))[_0x25c17c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x23955a=>_0x23955a[_0x25c17c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x31f5f0[_0x25c17c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x25c17c([0x6d,0x61,0x70])](_0x36be15=>Array(_0x31f5f0[_0x25c17c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x36be15[_0x25c17c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x25c17c([0x66,0x69,0x6c,0x6c])](_0x36be15[0x0]===_0x25c17c([0x2a])?_0x25c17c([0x2a]):'')[_0x25c17c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x36be15))[_0x25c17c([0x73,0x6f,0x6d,0x65])](_0x360b64=>_0x31f5f0[_0x25c17c([0x65,0x76,0x65,0x72,0x79])]((_0x213307,_0x5ccbd7)=>_0x360b64[_0x5ccbd7]===_0x213307||_0x360b64[_0x5ccbd7]===_0x25c17c([0x2a])));}function _0x3fc813(){return _0x5208dd&&_0x55cf32?new window[(_0x25c17c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1273c6,_0x47e337)=>{_0x5208dd[_0x25c17c([0x74,0x68,0x65,0x6e])](_0x1273c6,_0x47e337),_0x55cf32[_0x25c17c([0x74,0x68,0x65,0x6e])](_0x2ad8cb=>{_0x2ad8cb!=_0x25c17c([0x56,0x61,0x6c,0x69,0x64])&&_0x1273c6(_0x2ad8cb);},_0x47e337);}):_0x5208dd||_0x55cf32||_0x25c17c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x50d453(_0x49aa40,_0x1c1f74){return new window[(_0x25c17c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42c251=>{if(_0x1324b9())return _0x42c251(_0x25c17c([0x56,0x61,0x6c,0x69,0x64]));_0x56a5ac(),_0x500abc[_0x25c17c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x25c17c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2a3c30=!0x1;const _0x33a4f4=_0x31d37c();function _0x56c026(_0x97099d){return!!_0x97099d&&(typeof _0x97099d===_0x25c17c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x97099d===_0x25c17c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x97099d[_0x25c17c([0x74,0x68,0x65,0x6e])]===_0x25c17c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x97099d[_0x25c17c([0x63,0x61,0x74,0x63,0x68])]===_0x25c17c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x535839(_0x530007){_0xcbfb85(_0x530007)[_0x25c17c([0x74,0x68,0x65,0x6e])](_0xd83353=>{if(!_0xd83353||_0xd83353[_0x25c17c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x25c17c([0x6f,0x6b]))return _0x25c17c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x216381(_0xc88a4a(_0x33a4f4+_0x1c1f74))!=_0xd83353[_0x25c17c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x25c17c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x25c17c([0x56,0x61,0x6c,0x69,0x64]);})[_0x25c17c([0x74,0x68,0x65,0x6e])](_0x7dd8e7=>(_0x472b9b(),_0x7dd8e7),()=>{const _0x116f54=_0xe5ded4();return null==_0x116f54?(_0x472b9b(),_0x25c17c([0x56,0x61,0x6c,0x69,0x64])):_0x25c17c(_0x53c283-_0x116f54>(0x4f03da6f^_0x2b5a03)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x25c17c([0x74,0x68,0x65,0x6e])](_0x42c251)[_0x25c17c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x42c251(_0x25c17c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xec1b8b=0x6b39b0ef^_0x2b5a03;function _0x472b9b(){const _0x34f5f5=_0x25c17c([0x6c,0x6c,0x63,0x74,0x2d])+_0x216381(_0xc88a4a(_0x49aa40)),_0x401dce=_0x4bd639(_0x216381(window[_0x25c17c([0x4d,0x61,0x74,0x68])][_0x25c17c([0x63,0x65,0x69,0x6c])](_0x53c283/_0xec1b8b)));window[_0x25c17c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x25c17c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x34f5f5,_0x401dce);}function _0xe5ded4(){const _0x13a450=_0x25c17c([0x6c,0x6c,0x63,0x74,0x2d])+_0x216381(_0xc88a4a(_0x49aa40)),_0x46bc1a=window[_0x25c17c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x25c17c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x13a450);return _0x46bc1a?window[_0x25c17c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4bd639(_0x46bc1a),0x10)*_0xec1b8b:null;}function _0xcbfb85(_0x28f470){return new window[(_0x25c17c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d4fa5,_0x58c21e)=>{_0x28f470[_0x25c17c([0x74,0x68,0x65,0x6e])](_0x4d4fa5,_0x58c21e),window[_0x25c17c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x58c21e,0x6b0e8aaf^_0x2b5a03);});}}_0x500abc[_0x25c17c([0x6f,0x6e])](_0x25c17c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4a6634,_0x1af710)=>{if(_0x1af710[0x0]!=_0x49aa40)return _0x42c251(_0x25c17c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1af710[0x1]={..._0x1af710[0x1],[_0x25c17c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x33a4f4};},{[_0x25c17c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x25c17c([0x68,0x69,0x67,0x68])}),_0x500abc[_0x25c17c([0x6f,0x6e])](_0x25c17c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x345ef1=>{_0x56c026(_0x345ef1[_0x25c17c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2a3c30=!0x0,_0x535839(_0x345ef1[_0x25c17c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x25c17c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x25c17c([0x6c,0x6f,0x77])}),_0x1846d0[_0x25c17c([0x74,0x68,0x65,0x6e])](()=>{_0x2a3c30||_0x42c251(_0x25c17c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1324b9(){return _0x500abc[_0x25c17c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x25c17c([0x76,0x69,0x65,0x77])][_0x25c17c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x25c17c([0x61,0x75,0x74,0x6f]);}function _0x56a5ac(){_0x500abc[_0x25c17c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x25c17c([0x76,0x69,0x65,0x77])][_0x25c17c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x25c17c([0x61,0x75,0x74,0x6f]);}}function _0x39c1e0(_0x4baa52){const _0x1f0e8d=[new window[(_0x25c17c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xbb23a3=>setTimeout(_0xbb23a3,0x6b0660a3^_0x2b5a03)),_0x1846d0[_0x25c17c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x25c17c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48e5bf=>{let _0x3d5b64=0x0;_0x500abc[_0x25c17c([0x6d,0x6f,0x64,0x65,0x6c])][_0x25c17c([0x6f,0x6e])](_0x25c17c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5c2299,_0x529941)=>{_0x529941[0x0][_0x25c17c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3d5b64++,_0x3d5b64==(0x6b0f5f97^_0x2b5a03)&&(_0x48e5bf(),_0x5c2299[_0x25c17c([0x6f,0x66,0x66])]());});}))];return window[_0x25c17c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x25c17c([0x72,0x61,0x63,0x65])](_0x1f0e8d)[_0x25c17c([0x74,0x68,0x65,0x6e])](()=>_0x4baa52);}async function _0x9d7791(){await _0x1846d0,_0x500abc[_0x25c17c([0x6d,0x6f,0x64,0x65,0x6c])][_0x25c17c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4c5aba,_0x500abc[_0x25c17c([0x6d,0x6f,0x64,0x65,0x6c])][_0x25c17c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4c5aba,_0x500abc[_0x25c17c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x25c17c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x51dae5(){return _0x29a635(_0x25c17c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x22850a(_0x25c17c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x25c17c([0x73,0x74,0x61,0x74,0x65])]==_0x25c17c([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x36e62b(){return _0x29a635(_0x25c17c([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 _0x5f1091(){return _0x29a635(_0x25c17c([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2b9393(_0x3bb2b6){const _0x2ff5b4=_0x4a2b45();_0x500abc[_0x2ff5b4]=_0x25c17c([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3bb2b6,_0x3bb2b6!=_0x25c17c([0x56,0x61,0x6c,0x69,0x64])&&_0x9d7791();}function _0x4a2b45(){const _0x312672=window[_0x25c17c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x25c17c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x25c17c([0x6e,0x6f,0x77])]())[_0x25c17c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x25c17c([0x2e]),'');let _0x1f1068=_0x25c17c([0x67]);for(let _0x528183=0x0;_0x528183<_0x312672[_0x25c17c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x528183+=0x2){let _0x33ee20=window[_0x25c17c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x312672[_0x25c17c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x528183,_0x528183+0x2));_0x33ee20>=_0x1dcf99[_0x25c17c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x33ee20-=_0x1dcf99[_0x25c17c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1f1068+=_0x1dcf99[_0x33ee20];}return _0x1f1068;}function _0x3dbdc4(){const _0x2e0a0a=_0x4ccf0d[_0x25c17c([0x73,0x70,0x6c,0x69,0x74])](_0x25c17c([0x2e]));if(0x3!=_0x2e0a0a[_0x25c17c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3b3c79(_0x2e0a0a[0x1]);function _0x3b3c79(_0x316f17){const _0x405dc9=_0x18dc58(_0x316f17);return _0x405dc9&&_0x36bcbf()?_0x405dc9:null;function _0x36bcbf(){const _0x1cb370=_0x405dc9[_0x25c17c([0x6a,0x74,0x69])],_0x21a004=window[_0x25c17c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1cb370[_0x25c17c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1cb370[_0x25c17c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2a1448={..._0x405dc9,[_0x25c17c([0x6a,0x74,0x69])]:_0x1cb370[_0x25c17c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1cb370[_0x25c17c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2a1448[_0x25c17c([0x76,0x63])],_0xc88a4a(_0x2a1448)==_0x21a004;}}}async function _0x47eb8e(){let _0x437383=!0x0;try{const _0x4e7aee=_0x4ccf0d[_0x25c17c([0x73,0x70,0x6c,0x69,0x74])](_0x25c17c([0x2e])),[_0x5eae75,_0x3f6aa3,_0x33e11c]=_0x4e7aee;return _0x1a2c69(_0x5eae75),await _0x286657(_0x5eae75,_0x3f6aa3,_0x33e11c),_0x437383;}catch{return!0x1;}function _0x1a2c69(_0x7ce28f){const _0x1df55a=_0x18dc58(_0x7ce28f);_0x1df55a&&_0x1df55a[_0x25c17c([0x61,0x6c,0x67])]==_0x25c17c([0x45,0x53,0x32,0x35,0x36])||(_0x437383=!0x1);}async function _0x286657(_0x39fbac,_0x5c4fbe,_0x42b093){const _0x2f6bc0=window[_0x25c17c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x25c17c([0x66,0x72,0x6f,0x6d])](_0x43841c(_0x42b093),_0x2ccc0e=>_0x2ccc0e[_0x25c17c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4409c2=new window[(_0x25c17c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x25c17c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x39fbac+_0x25c17c([0x2e])+_0x5c4fbe),_0x588cb7=window[_0x25c17c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x25c17c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x588cb7)return;const _0x4bd569=await _0x588cb7[_0x25c17c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x25c17c([0x6a,0x77,0x6b]),_0x5d342e,{[_0x25c17c([0x6e,0x61,0x6d,0x65])]:_0x25c17c([0x45,0x43,0x44,0x53,0x41]),[_0x25c17c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x25c17c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x25c17c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x588cb7[_0x25c17c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x25c17c([0x6e,0x61,0x6d,0x65])]:_0x25c17c([0x45,0x43,0x44,0x53,0x41]),[_0x25c17c([0x68,0x61,0x73,0x68])]:{[_0x25c17c([0x6e,0x61,0x6d,0x65])]:_0x25c17c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4bd569,_0x2f6bc0,_0x4409c2)||(_0x437383=!0x1);}}function _0x18dc58(_0x18c02a){return _0x18c02a[_0x25c17c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x25c17c([0x65,0x79]))?JSON[_0x25c17c([0x70,0x61,0x72,0x73,0x65])](_0x43841c(_0x18c02a)):null;}function _0x43841c(_0x2d0cd3){return window[_0x25c17c([0x61,0x74,0x6f,0x62])](_0x2d0cd3[_0x25c17c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x25c17c([0x2b]))[_0x25c17c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x25c17c([0x2f])));}function _0xc88a4a(_0x4e9456){let _0x2bd8d0=0x1505;function _0x4546b2(_0x1dc794){for(let _0x531030=0x0;_0x531030<_0x1dc794[_0x25c17c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x531030++){const _0x42f89a=_0x1dc794[_0x25c17c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x531030);_0x2bd8d0=(_0x2bd8d0<<0x5)+_0x2bd8d0+_0x42f89a,_0x2bd8d0&=_0x2bd8d0;}}function _0x233b13(_0x44125f){Array[_0x25c17c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x44125f)?_0x44125f[_0x25c17c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x233b13):_0x44125f&&typeof _0x44125f==_0x25c17c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x25c17c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x44125f)[_0x25c17c([0x73,0x6f,0x72,0x74])]()[_0x25c17c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2411d0,_0x367336])=>{_0x4546b2(_0x2411d0),_0x233b13(_0x367336);}):_0x4546b2(window[_0x25c17c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x44125f));}return _0x233b13(_0x4e9456),_0x2bd8d0>>>0x0;}function _0x216381(_0x360558){return _0x360558[_0x25c17c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x25c17c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x25c17c([0x30]));}function _0x4bd639(_0x37f692){return _0x37f692[_0x25c17c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x25c17c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x25c17c([0x6a,0x6f,0x69,0x6e])]('');}function _0x29a635(_0xafcd78){return _0x500abc[_0x25c17c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x25c17c([0x68,0x61,0x73])](_0xafcd78);}function _0x22850a(_0x3256c3){return _0x500abc[_0x25c17c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x25c17c([0x67,0x65,0x74])](_0x3256c3);}function _0x4c5aba(){}function _0x25c17c(_0x50deea){return _0x50deea['map'](_0x203bd8=>String['fromCharCode'](_0x203bd8))['join']('');}_0x2b9393(await _0x5f3a56());}(this);}set['adapter'](_0x292917){if(this['_adapter'])throw new _0x26e73b('track-changes-adapter-already-set',this);this['_adapter']=_0x292917;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5e1ce3=!0x1,toJSON:_0x12771e=!0x1}={}){const _0x76cdc1=[];for(const _0xc9b32d of this['_suggestions']['values']())_0x5e1ce3&&!_0xc9b32d['isInContent']||_0x76cdc1['push'](_0xc9b32d);return _0x12771e?_0x76cdc1['map'](_0x5f24f4=>_0x5f24f4['toJSON']()):_0x76cdc1;}['getSuggestion'](_0x2eb658){const _0x411afe=this['_suggestions']['get'](_0x2eb658);if(!_0x411afe)throw new _0x26e73b('track-changes-suggestion-not-found',this);return _0x411afe;}['hasSuggestion'](_0x32ade7){return this['_suggestions']['has'](_0x32ade7);}['addSuggestionData'](_0x892d35){const {authorId:_0x4ff21a,id:_0xf897cc,originalSuggestionId:_0x5477ff,attributes:_0x54dedf}=_0x892d35,[_0x19c18f,_0x2125be]=_0x892d35['type']['split'](':'),_0xf6a605=this['_suggestions']['get'](_0xf897cc)||this['_createSuggestion'](_0x19c18f,_0x2125be,_0xf897cc,_0x4ff21a,_0x54dedf,_0x5477ff);if(this['_addThreadToSuggestion'](_0xf6a605),this['_checkSuggestionCorrectness'](_0xf6a605,_0x19c18f,_0x2125be||null,_0x4ff21a),_0xf6a605['createdAt']=_0x892d35['createdAt'],_0xf6a605['_isDataLoaded']=!0x0,_0x54dedf&&_0x54dedf['@external']){const _0x3300b9=_0x54dedf['@external'],_0xbcb68b=this['_getExternalAuthor'](_0x3300b9['authorName']);_0xf6a605['authoredAt']=_0x3300b9['createdAt'],_0xf6a605['author']=_0xbcb68b,_0xf6a605['isExternal']=!0x0;}else _0xf6a605['authoredAt']=_0x892d35['createdAt'];switch(_0x892d35['data']&&(_0xf6a605['data']=_0x892d35['data']),_0x892d35['attributes']&&(_0xf6a605['attributes']=_0x892d35['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xf6a605['_saved']=!0x0),this['_suggestionState']['get'](_0xf6a605)){case'notReady':this['_suggestionState']['set'](_0xf6a605,'dataReady');break;case'markerReady':_0xf6a605['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xf6a605])),this['_refreshSuggestionsChain'](new Set([_0xf6a605])),this['_suggestionState']['set'](_0xf6a605,'ready'),this['fire']('suggestionLoaded',_0xf6a605)):this['_suggestionState']['set'](_0xf6a605,'removed');}return _0xf6a605;}['acceptSuggestion'](_0x46cb74){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x56e71d of _0x46cb74['getAllAdjacentSuggestions']())_0x56e71d['accept']();});});}['discardSuggestion'](_0x2b99ba){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x119259 of _0x2b99ba['getAllAdjacentSuggestions']())_0x119259['discard']();});});}['enableCommand'](_0x114603,_0x4a8546){const _0x28aed9=this['editor']['commands']['get'](_0x114603);if(!_0x28aed9)throw new _0x26e73b('track-changes-command-not-found',this,{'commandName':_0x114603});if(this['_enabledCommands']['has'](_0x28aed9))throw new _0x26e73b('track-changes-enable-command-twice',this,{'commandName':_0x114603});this['_enabledCommands']['add'](_0x28aed9),_0x4a8546&&_0x28aed9['on']('execute',(_0x1da3a2,_0x3aa28a)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3aa28a['length']>0x0&&_0x3aa28a[_0x3aa28a['length']-0x1]&&_0x3aa28a[_0x3aa28a['length']-0x1]['forceDefaultExecution']?_0x3aa28a['pop']():(_0x1da3a2['return']=_0x4a8546((..._0x3e52ed)=>_0x28aed9['execute'](..._0x3e52ed,{'forceDefaultExecution':!0x0}),..._0x3aa28a),_0x1da3a2['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x532f20){let _0x5d5d1c,_0x571ee5;const _0x2c27be=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5d5d1c=_0x532f20();}catch(_0x13e956){_0x571ee5=_0x13e956;}return _0x2c27be||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x571ee5&&_0x26e73b['rethrowUnexpectedError'](_0x571ee5,this),_0x5d5d1c;}['markInsertion'](_0x16ccc3,_0x27914a=null,_0x4df5df={}){if(_0x16ccc3['isCollapsed'])return null;const _0x3a0e9a=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x4df5df['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x285c3e,meta:_0x3be851}of this['_findSuggestions'](_0x16ccc3,'insertion'))if(_0x3be851['isOwn']){if(!_0x3be851['isNextTo']){if(_0x3be851['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!ie(_0x285c3e,_0x4df5df))continue;return _0x285c3e;}if(ie(_0x285c3e,_0x4df5df))return _0x285c3e;this['_breakSuggestionMarker'](_0x285c3e,_0x16ccc3['start'],_0x16ccc3['end']);break;}if(_0x27914a==_0x285c3e['subType']&&ie(_0x285c3e,_0x4df5df)){const _0x4e22c0=_0x285c3e['getFirstRange']();return _0x4e22c0['start']['isEqual'](_0x16ccc3['end'])?this['_setSuggestionRange'](_0x285c3e,this['_model']['createRange'](_0x16ccc3['start'],_0x4e22c0['end'])):this['_setSuggestionRange'](_0x285c3e,this['_model']['createRange'](_0x4e22c0['start'],_0x16ccc3['end'])),_0x285c3e;}}const _0x5e57b5=_0x31d37c(),_0x48948c=_0x3a0e9a['id'],_0x3b9933=_0x27914a?'insertion:'+_0x27914a:'insertion',_0x320305=this['_setSuggestionData']({'id':_0x5e57b5,'type':_0x3b9933,'createdAt':new Date(),'authorId':_0x48948c,'attributes':_0x4df5df});return this['_addSuggestionMarker'](_0x3b9933,_0x5e57b5,_0x48948c,_0x16ccc3),_0x320305;}['markMultiRangeInsertion'](_0x1ec77b,_0x3d2831='multi',_0x13155b={}){const _0x1fda4a=this['editor']['plugins']['get']('Users')['me'],_0xfd6347=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3d2831,'join');this['_trackingSessionId']&&(_0x13155b['trackingSessionId']=this['_trackingSessionId']);for(const _0x6d91c2 of this['getSuggestions']())if(_0x6d91c2['author']['id']==_0x1fda4a['id']&&'insertion'==_0x6d91c2['type']&&_0x6d91c2['subType']==_0x3d2831&&ie(_0x6d91c2,_0x13155b)&&(_0xfd6347(_0x6d91c2['getRanges'](),_0x1ec77b)||_0xfd6347(_0x1ec77b,_0x6d91c2['getRanges']()))){for(const _0x3d4ec8 of _0x1ec77b)_0x6d91c2['addRange'](_0x3d4ec8);return _0x6d91c2;}for(const {suggestion:_0x4f6441,meta:_0x255b88}of this['_findSuggestions'](_0x1ec77b,'insertion')){if(!_0x255b88['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x255b88['containsRangeInObject'])continue;if(!ie(_0x4f6441,_0x13155b))continue;let _0x172a1a=!0x0;for(const _0x492b29 of _0x4f6441['getRanges']())for(const _0x56e63a of _0x1ec77b)if(!_0x492b29['containsRange'](_0x56e63a)){_0x172a1a=!0x1;break;}if(_0x172a1a)return _0x4f6441;}const _0x351f32=_0x31d37c(),_0x31a075=_0x1fda4a['id'],_0x1e1370='insertion:'+_0x3d2831,_0xecce6a=this['_setSuggestionData']({'id':_0x351f32,'type':_0x1e1370,'createdAt':new Date(),'authorId':_0x31a075,'attributes':_0x13155b});for(const _0x1f637b of _0x1ec77b)this['_addSuggestionMarker'](_0x1e1370,_0x351f32,_0x31a075,_0x1f637b,R['getMultiRangeId']());return _0xecce6a;}['markInlineFormat'](_0x18e840,_0x2e7029,_0x578ec5=null,_0x2c896b={}){if(_0x578ec5=_0x578ec5||Wt(_0x2e7029),_0x18e840['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x2c896b['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x16c8a3=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x578ec5,'accept');return this['forceDefaultExecution'](()=>_0x16c8a3([_0x18e840],_0x2e7029,_0x2c896b)),null;}const _0x24ed89=this['editor']['plugins']['get']('Users')['me'],_0x3e066c=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x331af4,meta:_0x1720c1}of this['_findSuggestions'](_0x18e840,'insertion'))_0x1720c1['isOwn']&&!_0x1720c1['isInsideObject']&&_0x3e066c['push'](..._0x331af4['getRanges']());}const _0x15c749=function(_0x57c5fd,_0x535393){const _0x4ec468=[];for(const _0x1889c3 of _0x535393){const _0x193590=_0x57c5fd['getIntersection'](_0x1889c3);_0x193590&&_0x4ec468['push'](_0x193590);}return _0x4ec468;}(_0x18e840,_0x3e066c),_0xa524ac=function(_0x429620,_0x50c570){const _0x17998a=[_0x429620];for(const _0x28dabb of _0x50c570){let _0x335240=0x0;for(;_0x335240<_0x17998a['length'];){const _0x134304=_0x17998a[_0x335240]['getDifference'](_0x28dabb);_0x17998a['splice'](_0x335240,0x1,..._0x134304),_0x335240+=_0x134304['length'];}}return _0x17998a;}(_0x18e840,_0x3e066c);_0x15c749['length']&&this['_model']['change'](()=>{for(const _0x20ac29 of _0x15c749){const _0x5c122d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x578ec5,'accept');this['forceDefaultExecution'](()=>_0x5c122d([_0x20ac29],_0x2e7029,_0x2c896b));}});for(const _0x13cf18 of _0xa524ac){let _0x484126=null,_0x75cbcb=_0x13cf18['start'],_0x62bb81=_0x13cf18['end'];for(const {suggestion:_0x373a2f,meta:_0x1140aa}of this['_findSuggestions'](_0x13cf18,'formatInline')){if(!_0x1140aa['isOwn'])continue;if(_0x373a2f['subType']!=_0x578ec5)continue;if(!ie(_0x373a2f,_0x2c896b))continue;const _0x1ab170=_0x373a2f['getFirstRange']();if(_0x1ab170['containsRange'](_0x13cf18,!0x0))return null;_0x75cbcb=_0x75cbcb['isBefore'](_0x1ab170['start'])?_0x75cbcb:_0x1ab170['start'],_0x62bb81=_0x62bb81['isAfter'](_0x1ab170['end'])?_0x62bb81:_0x1ab170['end'],_0x484126?_0x1ab170['start']['isBefore'](_0x484126['getFirstRange']()['start'])?(_0x484126['removeMarkers'](),_0x484126=_0x373a2f):_0x373a2f['removeMarkers']():_0x484126=_0x373a2f;}const _0x333604=this['_model']['createRange'](_0x75cbcb,_0x62bb81);if(_0x484126)this['_setSuggestionRange'](_0x484126,_0x333604);else{const _0x3c37fe=_0x31d37c(),_0x12bf7c=_0x24ed89['id'];this['_setSuggestionData']({'id':_0x3c37fe,'type':'formatInline:'+_0x578ec5,'data':_0x2e7029,'createdAt':new Date(),'authorId':_0x12bf7c,'attributes':_0x2c896b}),this['_addSuggestionMarker']('formatInline:'+_0x578ec5,_0x3c37fe,_0x12bf7c,_0x333604);}}return null;}['markBlockFormat'](_0x25960e,_0x4eb8f3,_0x2713c6=[],_0x764782=null,_0x150c43={}){_0x4eb8f3['formatGroupId']||(_0x4eb8f3['formatGroupId']=_0x4eb8f3['commandName']),_0x4eb8f3['multipleBlocks']=_0x25960e['is']('range'),_0x764782=_0x764782||Wt(_0x4eb8f3);const _0x48a868=_0x2713c6['map'](_0x183c40=>Zt(_0x183c40,this['_model'])),_0x36e8dc=_0x25960e['is']('range')?_0x25960e:Zt(_0x25960e,this['_model']);if(this['_trackingSessionId']&&(_0x150c43['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xb2c5bc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x764782,'accept');return this['forceDefaultExecution'](()=>_0xb2c5bc([_0x36e8dc],_0x4eb8f3,_0x150c43)),null;}_0x48a868['push'](_0x36e8dc);let _0x25000e=!0x0;for(const _0x1db01d of _0x48a868)if(!this['_rangeIsInLocalUserInsertion'](_0x1db01d)){_0x25000e=!0x1;break;}if(_0x25000e&&'always'!==this['_trackFormatChanges']){const _0xed1454=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x764782,'accept');return this['forceDefaultExecution'](()=>_0xed1454([_0x36e8dc],_0x4eb8f3,_0x150c43)),null;}let _0x247b45=null,_0x155625=_0x36e8dc['start'],_0x1e3fdd=_0x36e8dc['end'];for(const {suggestion:_0x11e37e,meta:_0x51f2f3}of this['_findSuggestions'](_0x36e8dc,'formatBlock')){if(!_0x51f2f3['isOwn'])continue;if(_0x51f2f3['isNextTo']||_0x51f2f3['containsRangeInObject']||_0x51f2f3['isInsideObject'])continue;if(_0x11e37e['data']['formatGroupId']!=_0x4eb8f3['formatGroupId'])continue;if(!ie(_0x11e37e,_0x150c43))continue;const _0x496191=_0x11e37e['getFirstRange']();if(_0x11e37e['subType']==_0x764782){if(_0x496191['containsRange'](_0x36e8dc,!0x0))return null;_0x155625=_0x155625['isBefore'](_0x496191['start'])?_0x155625:_0x496191['start'],_0x1e3fdd=_0x1e3fdd['isAfter'](_0x496191['end'])?_0x1e3fdd:_0x496191['end'],_0x247b45?_0x496191['start']['isBefore'](_0x247b45['getFirstRange']()['start'])?(_0x247b45['removeMarkers'](),_0x247b45=_0x11e37e):_0x11e37e['removeMarkers']():_0x247b45=_0x11e37e;}else{const _0x408072=_0x36e8dc['getIntersection'](_0x496191);this['_cutOutSuggestionMarker'](_0x11e37e,_0x408072);}}const _0x1e1072=this['editor']['plugins']['get']('Users')['me'],_0x133e87=_0x31d37c(),_0x3d80fa=_0x1e1072['id'];if(_0x247b45)return this['_setSuggestionRange'](_0x247b45,this['_model']['createRange'](_0x155625,_0x1e3fdd)),_0x247b45;{const _0x1cbd72=this['_setSuggestionData']({'id':_0x133e87,'type':'formatBlock:'+_0x764782,'data':_0x4eb8f3,'createdAt':new Date(),'authorId':_0x3d80fa,'attributes':_0x150c43});return this['_addSuggestionMarker']('formatBlock:'+_0x764782,_0x133e87,_0x3d80fa,this['_model']['createRange'](_0x155625,_0x1e3fdd)),_0x1cbd72;}}['markMultiRangeBlockFormat'](_0x1c6935,_0x315597,_0x2462ce=[],_0x4b2497=null,_0x26ad8c={}){_0x315597['formatGroupId']||(_0x315597['formatGroupId']=_0x315597['commandName']);const _0x34f9a4=_0x1c6935[0x0];_0x315597['multipleBlocks']=_0x34f9a4['is']('range'),_0x4b2497=_0x4b2497||Wt(_0x315597);const _0x15b97c=_0x2462ce['map'](_0x4742a9=>Zt(_0x4742a9,this['_model'])),_0x4580a2=_0x34f9a4['is']('range')?_0x1c6935:_0x1c6935['map'](_0xe650e6=>Zt(_0xe650e6,this['_model']));if(this['_trackingSessionId']&&(_0x26ad8c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x19d942=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4b2497,'accept');return this['forceDefaultExecution'](()=>_0x19d942(_0x4580a2,_0x315597,_0x26ad8c)),null;}_0x15b97c['push'](..._0x4580a2);let _0x13363b=!0x0;for(const _0x594482 of _0x15b97c)if(!this['_rangeIsInLocalUserInsertion'](_0x594482)){_0x13363b=!0x1;break;}if(_0x13363b&&'always'!==this['_trackFormatChanges']){const _0x54db8f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4b2497,'accept');return this['forceDefaultExecution'](()=>_0x54db8f(_0x4580a2,_0x315597,_0x26ad8c)),null;}const _0x349c20=this['editor']['plugins']['get']('Users')['me'];for(const _0x7c8c66 of this['getSuggestions']()){const _0x3bfd18=_0x7c8c66['data'];if(_0x7c8c66['author']['id']!=_0x349c20['id'])continue;if('formatBlock'!=_0x7c8c66['type']||_0x3bfd18['formatGroupId']!=_0x315597['formatGroupId'])continue;if(!ie(_0x7c8c66,_0x26ad8c))continue;const _0x1cd77d=_0x7c8c66['subType']==_0x4b2497;for(let _0x3c77c9=0x0;_0x3c77c9<_0x4580a2['length'];_0x3c77c9++){const _0x4cb73b=_0x4580a2[_0x3c77c9];for(const _0x1ada2b of _0x7c8c66['getMarkers']()){const _0x9d6260=_0x1ada2b['getRange']();if(_0x4cb73b['isEqual'](_0x9d6260)){_0x1cd77d?(_0x4580a2['splice'](_0x3c77c9,0x1),_0x3c77c9--):_0x7c8c66['removeMarker'](_0x1ada2b['name']);break;}}}}if(0x0==_0x4580a2['length'])return null;const _0x10657e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4b2497,'join');for(const _0x1b5299 of this['getSuggestions']()){const _0x34f010=_0x1b5299['data'];if(_0x1b5299['author']['id']==_0x349c20['id']&&('formatBlock'==_0x1b5299['type']&&_0x34f010['formatGroupId']==_0x315597['formatGroupId']&&_0x1b5299['subType']==_0x4b2497&&ie(_0x1b5299,_0x26ad8c)&&(_0x10657e(_0x1b5299['getRanges'](),_0x4580a2)||_0x10657e(_0x4580a2,_0x1b5299['getRanges']())))){for(const _0xfefd81 of _0x4580a2)_0x1b5299['addRange'](_0xfefd81);return _0x1b5299;}}const _0x19a592=_0x31d37c(),_0x3d5b22=_0x349c20['id'],_0x4967b5='formatBlock:'+_0x4b2497,_0x68955=this['_setSuggestionData']({'id':_0x19a592,'type':_0x4967b5,'data':_0x315597,'createdAt':new Date(),'authorId':_0x3d5b22,'attributes':_0x26ad8c});for(const _0x2a1f48 of _0x4580a2)this['_addSuggestionMarker'](_0x4967b5,_0x19a592,_0x3d5b22,_0x2a1f48,R['getMultiRangeId']());return _0x68955;}['markDeletion'](_0x25b5af,_0x5a6f70=null,_0x306c2b={}){if(_0x25b5af['isCollapsed'])return null;const _0x6aeaf8=this['editor']['plugins']['get']('Users')['me'],_0x28a31b=new _0x289cfe(_0x25b5af['start'],_0x25b5af['end']);this['_trackingSessionId']&&(_0x306c2b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xc8b337,meta:_0x113c37}of this['_findSuggestions'](_0x28a31b,'insertion'))if(_0x113c37['isOwn']&&!_0x113c37['isNextTo']){if(_0xc8b337['isMultiRange']){const _0x502a3b=_0xc8b337['getRanges']()['filter'](_0x200cf7=>'$graveyard'!=_0x200cf7['root']['rootName']);_0x502a3b['every'](_0x4ae5f5=>_0x28a31b['containsRange'](_0x4ae5f5,!0x0))&&_0xc8b337['discard']();if(_0x502a3b['some'](_0x4f9aa4=>_0x4f9aa4['containsRange'](_0x28a31b,!0x0))){const _0x539923=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5a6f70,'accept');return this['forceDefaultExecution'](()=>_0x539923([_0x28a31b],null,_0x306c2b)),null;}}else{const _0x393226=_0x28a31b['getIntersection'](_0xc8b337['getFirstRange']());null!==_0x393226&&_0xc8b337['_onDiscard']([_0x393226],null,_0x306c2b);}}if(_0x28a31b['detach'](),_0x28a31b['isCollapsed']||'$graveyard'==_0x28a31b['root']['rootName'])return null;let _0x521b32=null,_0x1f68db=_0x28a31b['start'],_0x15d30b=_0x28a31b['end'];const _0x7d1e07=this['_findSuggestions'](_0x28a31b,'deletion');for(const {suggestion:_0x127f6c,meta:_0x2f56b7}of _0x7d1e07){const _0x3b0318=this['_model']['createRange'](_0x1f68db,_0x15d30b);if(_0x2f56b7['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2f56b7['containsRangeInObject']&&!_0x2f56b7['isInsideObject'])){if(_0x127f6c['isMultiRange']){if(!ie(_0x127f6c,_0x306c2b))continue;let _0x4c2284=!0x0;for(const _0x49cceb of _0x127f6c['getRanges']()){if(_0x49cceb['containsRange'](_0x3b0318,!0x0))return _0x127f6c;_0x3b0318['containsRange'](_0x49cceb)||(_0x4c2284=!0x1);}_0x4c2284&&_0x127f6c['discard']();}else{const _0x49ef85=_0x127f6c['getFirstRange']();if(_0x49ef85['containsRange'](_0x3b0318,!0x0))return _0x127f6c;if(!ie(_0x127f6c,_0x306c2b)){_0x3b0318['containsRange'](_0x49ef85)?_0x127f6c['removeMarkers']():_0x49ef85['containsPosition'](_0x1f68db)?_0x1f68db=_0x49ef85['end']:_0x49ef85['containsPosition'](_0x15d30b)&&(_0x15d30b=_0x49ef85['start']);continue;}_0x1f68db=_0x1f68db['isBefore'](_0x49ef85['start'])?_0x1f68db:_0x49ef85['start'],_0x15d30b=_0x15d30b['isAfter'](_0x49ef85['end'])?_0x15d30b:_0x49ef85['end'],_0x306c2b=Object['assign']({},_0x127f6c['attributes']),_0x521b32?_0x49ef85['start']['isBefore'](_0x521b32['getFirstRange']()['start'])?(_0x521b32['removeMarkers'](),_0x521b32=_0x127f6c):_0x127f6c['removeMarkers']():_0x521b32=_0x127f6c;}}}if(_0x521b32)return this['_setSuggestionRange'](_0x521b32,this['_model']['createRange'](_0x1f68db,_0x15d30b)),_0x521b32;{const _0x409fa1=_0x31d37c(),_0x22cdcd=this['_model']['createRange'](_0x1f68db,_0x15d30b),_0x464ae8=_0x6aeaf8['id'],_0x2826e2=_0x5a6f70?'deletion:'+_0x5a6f70:'deletion',_0x3f2e26=this['_setSuggestionData']({'id':_0x409fa1,'type':_0x2826e2,'createdAt':new Date(),'authorId':_0x464ae8,'attributes':_0x306c2b});return this['_addSuggestionMarker'](_0x2826e2,_0x409fa1,_0x464ae8,_0x22cdcd),_0x3f2e26;}}['markMultiRangeDeletion'](_0x2095d5,_0x296b98='multi',_0x88e74={}){const _0x2d5884=this['editor']['plugins']['get']('Users')['me'],_0x2ed8f9=_0x2095d5['map'](_0x466d4a=>new _0x289cfe(_0x466d4a['start'],_0x466d4a['end'])),_0x4280a0=new Set();this['_trackingSessionId']&&(_0x88e74['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3f5329,meta:_0x148863}of this['_findSuggestions'](_0x2ed8f9,'insertion'))_0x148863['isOwn']&&!_0x148863['isNextTo']&&_0x4280a0['add'](_0x3f5329);for(const _0x19ba26 of _0x4280a0)if(_0x19ba26['isMultiRange']){const _0x4f69c9=_0x19ba26['getRanges']();(!_0x19ba26['attributes']||!_0x19ba26['attributes']['skipNestingCheck'])&&(_0x4f69c9['every'](_0x1a0766=>_0x2ed8f9['some'](_0x3f3213=>_0x3f3213['containsRange'](_0x1a0766,!0x0)))&&_0x19ba26['discard']());if(_0x2ed8f9['every'](_0x47f7cd=>_0x4f69c9['some'](_0x162aea=>_0x162aea['containsRange'](_0x47f7cd,!0x0)))){const _0x43bea1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x296b98,'accept');return this['forceDefaultExecution'](()=>_0x43bea1(_0x2095d5,null,_0x88e74)),null;}}else{const _0x3c885f=_0x19ba26['getFirstRange']();_0x2ed8f9['some'](_0x8c0c=>_0x8c0c['containsRange'](_0x3c885f,!0x0))&&_0x19ba26['discard']();if(_0x2ed8f9['every'](_0x21b533=>_0x3c885f['containsRange'](_0x21b533,!0x0))){const _0x114a8d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x296b98,'accept');return this['forceDefaultExecution'](()=>_0x114a8d(_0x2ed8f9,null,_0x88e74)),null;}}const _0x56c102=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x296b98,'join');let _0xfd5f4e=null;for(const _0x59b95a of this['getSuggestions']())if(_0x59b95a['author']['id']==_0x2d5884['id']&&_0x59b95a['isInContent']&&'deletion'==_0x59b95a['type']&&_0x59b95a['subType']==_0x296b98&&ie(_0x59b95a,_0x88e74)&&(_0x56c102(_0x59b95a['getRanges'](),_0x2ed8f9)||_0x56c102(_0x2ed8f9,_0x59b95a['getRanges']()))){if(_0xfd5f4e){if(_0x59b95a['commentThread']&&_0x59b95a['commentThread']['length'])continue;for(const _0x56f50d of _0x59b95a['getRanges']())_0xfd5f4e['isIntersectingWithRange'](_0x56f50d)||_0xfd5f4e['addRange'](_0x56f50d);_0x59b95a['removeMarkers']();}else{_0xfd5f4e=_0x59b95a;for(const _0x46cc42 of _0x2ed8f9)_0x59b95a['isIntersectingWithRange'](_0x46cc42)||_0x59b95a['addRange'](_0x46cc42);}}if(_0xfd5f4e)return _0xfd5f4e;_0x4280a0['clear']();for(const {suggestion:_0x127573,meta:_0x202c32}of this['_findSuggestions'](_0x2ed8f9,'deletion'))_0x202c32['isOwn']&&(this['_mergeNestedSuggestions']||!_0x202c32['containsRangeInObject']&&!_0x202c32['isInsideObject'])&&ie(_0x127573,_0x88e74)&&_0x4280a0['add'](_0x127573);for(const _0x49953f of _0x4280a0){const _0x59760e=_0x49953f['getRanges']();if(!_0x88e74||!_0x88e74['skipNestingCheck']){if(_0x2ed8f9['every'](_0x35d344=>_0x59760e['some'](_0x5032d9=>_0x5032d9['containsRange'](_0x35d344,!0x0))))return _0x49953f;}(!_0x49953f['attributes']||!_0x49953f['attributes']['skipNestingCheck'])&&(_0x59760e['every'](_0x2a1a13=>_0x2ed8f9['some'](_0x1c9986=>_0x1c9986['containsRange'](_0x2a1a13,!0x0)))&&_0x49953f['discard']());}const _0x233868=_0x31d37c(),_0x157cea=_0x2d5884['id'],_0x42678a='deletion:'+_0x296b98,_0x229836=this['_setSuggestionData']({'id':_0x233868,'type':_0x42678a,'createdAt':new Date(),'authorId':_0x157cea,'attributes':_0x88e74});for(const _0x1a0311 of _0x2ed8f9)_0x1a0311['detach'](),_0x1a0311['isCollapsed']||'$graveyard'==_0x1a0311['root']['rootName']||this['_addSuggestionMarker'](_0x42678a,_0x233868,_0x157cea,_0x1a0311,R['getMultiRangeId']());return _0x229836;}['markAttributeChange'](_0x1bc56b,_0x426cd8,_0x2c576f,_0xdf64b3,_0x49c09b){if(_0x1bc56b['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2f58af=this['editor']['plugins']['get']('Users')['me']['id'],_0x5cbdf6=Array['from'](this['_suggestions']['values']())['filter'](_0x386d03=>'attribute'==_0x386d03['type']&&_0x386d03['data']['key']==_0x426cd8&&_0x386d03['isIntersectingWithRange'](_0x1bc56b));if(this['_trackingSessionId']&&(_0x49c09b['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x5da10a=this['_findSuggestions'](_0x1bc56b,'insertion')['filter'](({meta:_0x5944e0})=>_0x5944e0['isOwn']&&!_0x5944e0['isInsideObject']&&!_0x5944e0['isNextTo'])['map'](({suggestion:_0x136597})=>_0x136597);_0x5cbdf6['unshift'](..._0x5da10a);}const _0xa26681=new Map([[_0x1bc56b,_0x2c576f]]);for(const _0x215211 of _0x5cbdf6){const _0x50440c='attribute'==_0x215211['type']?_0x215211['data']['oldValue']:void 0x0,_0x45614b=_0x215211['getFirstRange'](),_0xd97f75=Array['from'](_0xa26681['keys']())['find'](_0x3f2ed6=>_0x3f2ed6['isIntersecting'](_0x45614b));if(!_0xd97f75)continue;const _0x30e910=_0xd97f75['getDifference'](_0x45614b);this['_isBlockAttribute'](_0x426cd8)&&'insertion'==_0x215211['type']&&0x0!=_0x30e910['length']||(_0xa26681['delete'](_0xd97f75),_0x30e910['forEach'](_0x443e93=>{_0xa26681['set'](_0x443e93,_0x2c576f);}),'insertion'!=_0x215211['type']&&_0x50440c!=_0xdf64b3&&_0xa26681['set'](_0xd97f75['getIntersection'](_0x45614b),_0x50440c));}const _0x29389a=[];for(const [_0x191a47,_0x52a8eb]of _0xa26681){const _0x2bc172=_0x31d37c(),_0x2e7f7a={'key':_0x426cd8,'oldValue':_0x52a8eb,'newValue':_0xdf64b3};_0x426cd8['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':_0x426cd8});const _0x152928=('attribute:'+(_0x426cd8+'|'+Wt({'newValue':_0xdf64b3})))['substring'](0x0,0x3c),_0x50880c=this['_setSuggestionData']({'id':_0x2bc172,'type':_0x152928,'data':_0x2e7f7a,'createdAt':new Date(),'authorId':_0x2f58af,'attributes':_0x49c09b});_0x29389a['push'](_0x50880c),this['_addSuggestionMarker'](_0x152928,_0x2bc172,_0x2f58af,_0x191a47);}return _0x29389a;}['enableDefaultAttributesIntegration'](_0x3cfccf){this['enableCommand'](_0x3cfccf,(_0x353c06,..._0x3d7093)=>{this['recordAttributeChanges'](()=>{_0x353c06(..._0x3d7093);});});}['registerBlockAttribute'](_0x5c94aa){this['_blockAttributeKeys']['add'](_0x5c94aa);}['registerInlineAttribute'](_0x53d326){this['_inlineAttributeKeys']['add'](_0x53d326);}['startTrackingSession'](_0x4b4dfe){return this['_trackingSessionId']=void 0x0!==_0x4b4dfe?_0x4b4dfe:_0x31d37c(),this['_trackingSessionId'];}['_getAttributeKey'](_0x47237d){return'attribute'==_0x47237d['type']?se(_0x47237d['subType']):null;}['_applyOperationsAsSuggestions'](_0x8117e5){if(0x0==_0x8117e5['length'])return;const _0x4278cd=this['editor'],_0xb1a5f2=_0x4278cd['plugins']['get'](_0x2b28d7);let _0x84cbc1=!0x0;for(const _0x1be88f in _0x8117e5[0x0]){const _0x350bfd=_0x8117e5[0x0][_0x1be88f];if((_0x350bfd instanceof _0xe67534||_0x350bfd instanceof _0x2229c9)&&_0x350bfd['root']['is']('documentFragment')){_0x84cbc1=!0x1;break;}}_0x4278cd['model']['change'](_0x486e7b=>{const _0x2a4cdc=new Set();for(const _0x111a87 of _0x8117e5)if(_0x111a87['baseVersion']=_0x84cbc1?_0x4278cd['model']['document']['version']:null,_0x111a87['isDocumentOperation']=_0x84cbc1,_0xb1a5f2['isMarkedRemoveOperation'](_0x111a87)){const _0x37f2a7=Xt(_0x111a87['newRange'],_0x4278cd['model']);if(_0x84cbc1)this['markDeletion'](_0x37f2a7);else{const _0x12407c='suggestion:deletion:id:authorId:'+_0x31d37c();_0x37f2a7['root']['markers']['set'](_0x12407c,_0x37f2a7);}}else switch(_0x111a87['type']){case'rename':{const _0x30663d=_0x111a87['oldName'],_0xa4804=_0x111a87['newName'];if(_0x30663d==_0xa4804)break;_0x486e7b['batch']['addOperation'](_0x111a87),_0x4278cd['model']['applyOperation'](_0x111a87);const _0x11562e='$elementName',_0x32fb16=_0x111a87['position'],_0x599b6b=_0x4278cd['model']['createRange'](_0x32fb16,_0x4278cd['model']['createPositionAt'](_0x32fb16['nodeAfter'],'end'));if(_0x84cbc1)this['markAttributeChange'](_0x599b6b,_0x11562e,_0x30663d,_0xa4804,{'groupId':_0x31d37c()});else{const _0x191c01='suggestion:attribute:'+_0x11562e+':id:authorId:'+_0x31d37c();_0x599b6b['root']['markers']['set'](_0x191c01,_0x599b6b);}break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x2a51a2=_0x111a87['oldValue'],_0x366c76=_0x111a87['newValue'];if(_0x2a51a2==_0x366c76)break;_0x486e7b['batch']['addOperation'](_0x111a87),_0x4278cd['model']['applyOperation'](_0x111a87);const _0x3bd4a2=_0x111a87['key'];if(!this['_isRegisteredAttribute'](_0x3bd4a2))break;const _0xa20e05=Xt(_0x111a87['range'],_0x4278cd['model']);if(_0x84cbc1)this['markAttributeChange'](_0xa20e05,_0x3bd4a2,_0x2a51a2,_0x366c76,{'groupId':_0x31d37c()});else{const _0x35adf9='suggestion:attribute:'+_0x3bd4a2+':id:authorId:'+_0x31d37c();_0xa20e05['root']['markers']['set'](_0x35adf9,_0xa20e05);}break;}case'insert':{_0x486e7b['batch']['addOperation'](_0x111a87),_0x4278cd['model']['applyOperation'](_0x111a87);const _0xf890ba=_0x111a87['position'],_0x3a2739=_0x111a87['howMany'],_0x57051d=Xt(_0x4278cd['model']['createRange'](_0xf890ba,_0xf890ba['getShiftedBy'](_0x3a2739)),_0x4278cd['model']);if(_0x84cbc1)this['markInsertion'](_0x57051d);else{const _0x26e7a6='suggestion:insertion:id:authorId:'+_0x31d37c();_0x57051d['root']['markers']['set'](_0x26e7a6,_0x57051d);}break;}case'split':{_0x486e7b['batch']['addOperation'](_0x111a87),_0x4278cd['model']['applyOperation'](_0x111a87);const _0x368f39=_0x111a87['splitPosition'],_0x56333e=_0x111a87['moveTargetPosition'],_0x75356=_0x4278cd['model']['createRange'](_0x368f39,_0x56333e);if(_0x84cbc1)this['markInsertion'](_0x4278cd['model']['createRange'](_0x368f39,_0x56333e));else{const _0x40c801='suggestion:insertion:id:authorId:'+_0x31d37c();_0x75356['root']['markers']['set'](_0x40c801,_0x75356);}break;}case'move':if(_0x486e7b['batch']['addOperation'](_0x111a87),_0x4278cd['model']['applyOperation'](_0x111a87),!_0x84cbc1){const _0x878b38=_0x111a87['getMovedRangeStart'](),_0x518f41=_0x111a87['howMany'];for(let _0x220133=0x0;_0x220133<_0x518f41;_0x220133++){const _0x13d400=_0x878b38['getShiftedBy'](_0x220133)['nodeAfter'];_0x2a4cdc['add'](_0x13d400);}}break;case'remove':if(_0x84cbc1)_0x486e7b['batch']['addOperation'](_0x111a87),_0x4278cd['model']['applyOperation'](_0x111a87);else{const _0x540bb8=_0x111a87['sourcePosition'],_0x2fbf0e=_0x111a87['howMany'],_0xb35750=new _0x43691b(_0x540bb8,_0x2fbf0e);_0x486e7b['batch']['addOperation'](_0xb35750),_0x4278cd['model']['applyOperation'](_0xb35750);}}for(const _0x1377d3 of _0x2a4cdc){const _0x4dfced=_0x4278cd['model']['createRangeOn'](_0x1377d3),_0x55793d='suggestion:formatBlock:$fakeWrap:id:authorId:'+_0x31d37c();_0x4dfced['root']['markers']['set'](_0x55793d,Xt(_0x4dfced,_0x4278cd['model']));}});}['_setSuggestionRange'](_0x81a77f,_0x47b80d){const _0x86aa13=_0x81a77f['getFirstMarker']();this['_model']['change'](_0x14bc83=>{_0x14bc83['updateMarker'](_0x86aa13,{'range':_0x47b80d});});}['_addThreadToSuggestion'](_0x2cc4e6){const _0x1ec178=_0x2cc4e6['id'],_0x47dbdd=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1ec178)||this['_commentsRepository']['addCommentThread']({'channelId':_0x47dbdd,'threadId':_0x1ec178,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2dfdd9=this['_commentsRepository']['getCommentThread'](_0x1ec178);_0x2dfdd9['unbind']('isRemovable'),_0x2dfdd9['isRemovable']=!0x1,_0x2cc4e6['commentThread']=_0x2dfdd9;}['_checkSuggestionCorrectness'](_0x31ef9e,_0x17aa8e,_0x3b1cc7,_0x3b99cd){if(_0x31ef9e['type']!=_0x17aa8e||_0x31ef9e['subType']!=_0x3b1cc7||_0x31ef9e['creator']['id']!=_0x3b99cd)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x26e73b('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4bd856,_0x79ada3){const _0x14853b=_0x4bd856['getFirstRange']();if(_0x79ada3['isEqual'](_0x14853b))_0x4bd856['removeMarkers']();else{if(_0x14853b['containsRange'](_0x79ada3)){const _0x62e95c=this['_model']['createPositionAt'](_0x79ada3['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4bd856,this['_model']['createRange'](_0x14853b['start'],_0x62e95c));const _0xef0c5=_0x31d37c(),_0x45c6d9=_0x4bd856['creator']['id'],_0x223dde=_0x4bd856['type']+':'+_0x4bd856['subType'];this['_setSuggestionData']({'id':_0xef0c5,'type':_0x223dde,'createdAt':new Date(),'authorId':_0x45c6d9,'data':_0x4bd856['data'],'attributes':_0x4bd856['attributes']});const _0x45ac74=this['_model']['createPositionAt'](_0x79ada3['end']['parent'],'after'),_0x456836=this['_model']['createRange'](_0x45ac74,_0x14853b['end']);this['_addSuggestionMarker'](_0x223dde,_0xef0c5,_0x45c6d9,_0x456836);}else{if(_0x14853b['containsPosition'](_0x79ada3['start'])){const _0xec933b=this['_model']['createPositionAt'](_0x79ada3['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4bd856,this['_model']['createRange'](_0x14853b['start'],_0xec933b));}else{const _0x1f7a48=this['_model']['createPositionAt'](_0x79ada3['end']['parent'],'after');this['_setSuggestionRange'](_0x4bd856,this['_model']['createRange'](_0x1f7a48,_0x14853b['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xfe1268){for(const {suggestion:_0x149735,meta:_0x4ec3b8}of this['_findSuggestions'](_0xfe1268,'insertion')){if(!_0x4ec3b8['isOwn'])continue;const _0x5edd26=_0x149735['getRanges']();for(const _0x4fa479 of _0x5edd26)if(!_0xfe1268['getDifference'](_0x4fa479)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2e4918){return this['editor']['plugins']['get']('Users')['getUser'](_0x2e4918);}['_getExternalAuthor'](_0xd79cda){const _0x12316f=this['editor']['plugins']['get']('Users'),_0x26d26d=_0x5816e7('external:'+_0xd79cda),_0x1ab501=_0x12316f['getUser'](_0x26d26d);return _0x1ab501||_0x12316f['addUser']({'id':_0x26d26d,'name':_0xd79cda});}['_createSuggestion'](_0x58bd05,_0x466abd,_0x22af71,_0x98ca4b,_0x472652,_0x522a96){const _0x522dc2=this['_getAuthorFromId'](_0x98ca4b);if(!_0x522dc2)throw new _0x26e73b('track-changes-user-not-found',this,{'authorId':_0x98ca4b,'suggestionId':_0x22af71});const _0xb05459=this['_suggestionFactory']['buildSuggestion'](_0x58bd05,_0x466abd,_0x22af71,_0x522dc2,_0x472652,_0x26b287=>{this['_updateSuggestionData'](_0x22af71,{'attributes':_0x26b287});const _0x259549=this['getSuggestion'](_0x22af71);this['_joinWithAdjacentSuggestions'](new Set([_0x259549])),this['_refreshSuggestionsChain'](new Set([_0x259549]));},_0x522a96);return this['listenTo'](_0xb05459,'accept',()=>{this['_updateSuggestionData'](_0x22af71,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xb05459,'discard',()=>{this['_updateSuggestionData'](_0x22af71,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x22af71,_0xb05459),this['_suggestionState']['set'](_0xb05459,'notReady'),_0xb05459;}['_splitMarkerName'](_0x24d8b7){const _0x4d6a13=_0x24d8b7['split'](':');return{'group':_0x4d6a13[0x0],'type':_0x4d6a13[0x1],'subType':_0x4d6a13['length']>=0x5?_0x4d6a13[0x2]:null,'id':_0x4d6a13['length']<0x5?_0x4d6a13[0x2]:_0x4d6a13[0x3],'authorId':_0x4d6a13['length']<0x5?_0x4d6a13[0x3]:_0x4d6a13[0x4],'markerCount':0x6==_0x4d6a13['length']?_0x4d6a13[0x5]:null};}['_breakSuggestionMarker'](_0x53e793,_0x246f9a,_0x144c41){const _0x582171=_0x53e793['getFirstRange'](),_0x19bb64=_0x582171['start'],_0x373217=_0x582171['end'];this['_setSuggestionRange'](_0x53e793,this['_model']['createRange'](_0x19bb64,_0x246f9a));const _0x51b333=_0x31d37c(),_0x187f3c=_0x53e793['creator']['id'],_0x57c156=_0x53e793['type']+(_0x53e793['subType']?':'+_0x53e793['subType']:'');this['_setSuggestionData']({'id':_0x51b333,'type':_0x57c156,'createdAt':new Date(),'authorId':_0x187f3c,'originalSuggestionId':_0x53e793['_originalSuggestionId']||_0x53e793['id'],'attributes':_0x53e793['attributes'],'data':_0x53e793['data']});const _0x246221=this['_getAttributeKey'](_0x53e793);('formatBlock'==_0x53e793['type']||_0x246221&&this['_isBlockAttribute'](_0x246221))&&(_0x144c41=this['_model']['createPositionBefore'](_0x144c41['parent'])),this['_addSuggestionMarker'](_0x57c156,_0x51b333,_0x187f3c,this['_model']['createRange'](_0x144c41,_0x373217));}['_findSuggestions'](_0x4adb2f,_0x45ff2d=null){const _0xda46d=[],_0x568d58=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4adb2f)||(_0x4adb2f=[_0x4adb2f]);for(const _0x28f645 of this['getSuggestions']()){if(!_0x28f645['isInContent'])continue;if(_0x45ff2d&&_0x28f645['type']!=_0x45ff2d)continue;let _0x1d1a76=!0x1;for(const _0x75432a of _0x28f645['getRanges']()){for(const _0x654b91 of _0x4adb2f){const _0x184a79=_0x654b91['start']['isEqual'](_0x75432a['end'])||_0x654b91['end']['isEqual'](_0x75432a['start']);if(_0x184a79||_0x654b91['getIntersection'](_0x75432a)){const _0x5cad80=_0x654b91['containsRange'](_0x75432a)&&Jt(this['_model']['schema'],_0x75432a['start'],_0x654b91),_0x12028a=_0x75432a['containsRange'](_0x654b91)&&Jt(this['_model']['schema'],_0x654b91['start'],_0x75432a);_0xda46d['push']({'suggestion':_0x28f645,'meta':{'isOwn':_0x568d58==_0x28f645['author'],'isNextTo':_0x184a79,'isInsideObject':_0x5cad80,'containsRangeInObject':_0x12028a}}),_0x1d1a76=!0x0;break;}}if(_0x1d1a76)break;}}return _0xda46d;}['_addSuggestionMarker'](_0x2d92ea,_0x55da11,_0x3ce687,_0x2f567b,_0xdae77d){this['_model']['change'](_0x44ef17=>{let _0x329d86='suggestion:'+_0x2d92ea+':'+_0x55da11+':'+_0x3ce687;_0xdae77d&&(_0x329d86=_0x329d86+':'+_0xdae77d),_0x44ef17['addMarker'](_0x329d86,{'range':_0x2f567b,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3af979){const _0x7d9217=_0x3af979['previous'],_0x55c504=_0x3af979['next'];_0x3af979['previous']=null,_0x3af979['next']=null,null!=_0x7d9217&&_0x7d9217['next']==_0x3af979&&(_0x7d9217['next']=_0x55c504),null!=_0x55c504&&_0x55c504['previous']==_0x3af979&&(_0x55c504['previous']=_0x7d9217),'ready'==this['_suggestionState']['get'](_0x3af979)&&(this['_suggestionState']['set'](_0x3af979,'removed'),this['fire']('suggestionUnloaded',_0x3af979,_0x7d9217,_0x55c504));}['_setSuggestionData'](_0x33c631){const _0x277c71=_0x33c631['id'],_0x106ad6=this['addSuggestionData'](_0x33c631);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5ed434=this['editor']['plugins']['get']('PendingActions'),_0x3d1fa2=_0x106ad6['hasComments'],_0x1d5cdc=_0x106ad6['subType']?_0x106ad6['type']+':'+_0x106ad6['subType']:_0x106ad6['type'],_0x25c2a2=this['editor']['locale'],_0x51a16e=_0x5ed434['add'](o(_0x25c2a2,'PENDING_ACTION_SUGGESTION')),_0x3453e3={'id':_0x277c71,'type':_0x1d5cdc,'hasComments':_0x3d1fa2,'data':_0x33c631['data']||null,'originalSuggestionId':_0x33c631['originalSuggestionId']||null,'attributes':_0x106ad6['attributes']};this['_adapter']['addSuggestion'](_0x3453e3)['then'](_0x48da37=>{_0x106ad6['_saved']=!0x0,_0x5ed434['remove'](_0x51a16e),_0x48da37&&_0x48da37['createdAt']&&(this['_suggestions']['get'](_0x277c71)['createdAt']=_0x48da37['createdAt']);})['catch'](_0x40ab59=>{throw _0x490d61('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x106ad6['discard']();}),_0x106ad6['stopListening'](),this['_suggestions']['delete'](_0x106ad6['id']),this['_suggestionState']['delete'](_0x106ad6),_0x40ab59;});}return _0x106ad6;}['_isBlockAttribute'](_0x527138){return this['_blockAttributeKeys']['has'](_0x527138);}['_isInlineAttribute'](_0xcd7586){return this['_inlineAttributeKeys']['has'](_0xcd7586);}['_updateSuggestionData'](_0x377061,_0x4be98d){const _0x4faa67=this['editor']['plugins']['get']('PendingActions'),_0x5adaa0=this['getSuggestion'](_0x377061);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5adaa0['_saved']){const _0x4162f6=_0x4faa67['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x377061,_0x4be98d)['then'](()=>{_0x4faa67['remove'](_0x4162f6);});}else _0x5adaa0['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x377061,_0x4be98d);});}}['_getSuggestionData'](_0xc821e4){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x26e73b('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xc821e4);}['_handleNewSuggestionMarker'](_0x3e6fbf){const {id:_0x4f21e9,type:_0x179ae7,subType:_0x4eb013,authorId:_0x5d9ac5}=this['_splitMarkerName'](_0x3e6fbf),_0x382cc6=this['_suggestions']['get'](_0x4f21e9)||this['_createSuggestion'](_0x179ae7,_0x4eb013,_0x4f21e9,_0x5d9ac5,{});switch(this['_checkSuggestionCorrectness'](_0x382cc6,_0x179ae7,_0x4eb013,_0x5d9ac5),this['_suggestionState']['get'](_0x382cc6)){case'notReady':this['_getSuggestionData'](_0x4f21e9)['then'](_0x4e294a=>{let _0x147ef3=Promise['resolve']();_0x4e294a['hasComments']&&(_0x147ef3=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4f21e9})),_0x147ef3['then'](()=>{this['addSuggestionData'](_0x4e294a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x382cc6,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4f21e9,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x382cc6,'ready'),this['fire']('suggestionLoaded',_0x382cc6);break;case'ready':this['fire']('suggestionChanged',_0x382cc6);}return _0x382cc6['addMarkerName'](_0x3e6fbf),_0x382cc6;}['_refreshSuggestionsChain'](_0x5260a7){const _0x5a1c20=Array['from'](_0x5260a7),_0x373ba8=_0x5a1c20['filter'](_0x3a9b8b=>'attribute'==_0x3a9b8b['type']);this['_refreshAttributeSuggestionsChain'](_0x373ba8);const _0x3ba6f4=_0x5a1c20['filter'](_0x336f27=>!_0x336f27['isMultiRange']&&'attribute'!=_0x336f27['type']),_0xab1932=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x44a5da=>!_0x44a5da['isMultiRange']&&'attribute'!=_0x44a5da['type']),_0x2683e1=_0xab1932['filter'](_0x501e86=>!_0x5260a7['has'](_0x501e86)),_0x87bfe8=new Map(_0xab1932['map'](_0x183b80=>[_0x183b80,this['_suggestionFactory']['getSuggestionCallback'](_0x183b80['type'],_0x183b80['subType'],'chain')])),_0x5de69e=new Map(_0xab1932['map'](_0x1a7601=>[_0x1a7601,_0x1a7601['getFirstRange']()])),_0x8f513e=new Set(),_0x4b0457=new Set();for(let _0x216b44=0x0;_0x216b44<_0x3ba6f4['length'];_0x216b44++)_0x5bb1bb(_0x3ba6f4[_0x216b44],_0x3ba6f4,_0x216b44+0x1);for(let _0xe5ff33=0x0;_0xe5ff33<_0x3ba6f4['length'];_0xe5ff33++)_0x5bb1bb(_0x3ba6f4[_0xe5ff33],_0x2683e1,0x0);const _0x2089d4=new Set();for(let _0x218fab=0x0;_0x218fab<_0x3ba6f4['length'];_0x218fab++){const _0x2f1b86=_0x3ba6f4[_0x218fab];!_0x4b0457['has'](_0x2f1b86)&&_0x2f1b86['previous']&&(_0x2089d4['add'](_0x2f1b86['previous']),_0x2f1b86['previous']['next']===_0x2f1b86&&(_0x2f1b86['previous']['next']=null),_0x2f1b86['previous']=null),!_0x8f513e['has'](_0x2f1b86)&&_0x2f1b86['next']&&(_0x2089d4['add'](_0x2f1b86['next']),_0x2f1b86['next']['previous']===_0x2f1b86&&(_0x2f1b86['next']['previous']=null),_0x2f1b86['next']=null);}function _0x5bb1bb(_0x2fe132,_0x186d60,_0x229336){for(let _0x51841d=_0x229336;_0x51841d<_0x186d60['length'];_0x51841d++){const _0x226763=_0x1a297f(_0x2fe132,_0x186d60[_0x51841d]);_0x226763&&(_0x226763[0x0]['next']=_0x226763[0x1],_0x226763[0x1]['previous']=_0x226763[0x0],_0x8f513e['add'](_0x226763[0x0]),_0x4b0457['add'](_0x226763[0x1]));}}function _0x1a297f(_0x36edc6,_0x1c5b77){if(_0x36edc6['author']['id']!==_0x1c5b77['author']['id'])return null;const _0x5d4004=_0x87bfe8['get'](_0x36edc6)(_0x36edc6,_0x1c5b77,_0x5de69e['get'](_0x36edc6),_0x5de69e['get'](_0x1c5b77));if(!_0x5d4004)return null;return _0x87bfe8['get'](_0x1c5b77)(_0x36edc6,_0x1c5b77,_0x5de69e['get'](_0x36edc6),_0x5de69e['get'](_0x1c5b77))?_0x5d4004[0x1]['commentThread']&&_0x5d4004[0x1]['commentThread']['length']?null:_0x5d4004:null;}_0x2089d4['size']&&this['_refreshSuggestionsChain'](_0x2089d4);}['_refreshAttributeSuggestionsChain'](_0x42d391){if(0x0==_0x42d391['length'])return;const _0x58a5a1=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x101263=>'attribute'==_0x101263['type']&&_0x101263['_isDataLoaded']),_0x5c270c=[],_0x87ce87=new Map();for(const _0x48e476 of _0x58a5a1){const _0xedc3f9=_0x5816e7(_0x48e476['attributes']);_0x87ce87['has'](_0xedc3f9)||(_0x87ce87['set'](_0xedc3f9,_0x5c270c['length']),_0x5c270c['push']([]));const _0x2820d1=_0x87ce87['get'](_0xedc3f9);_0x5c270c[_0x2820d1]['push'](_0x48e476);}!(function(){_0x5c270c['sort']((_0x29a970,_0x461976)=>{const _0x5aa6e7=_0x29a970[0x0]['createdAt'],_0x54e962=_0x461976[0x0]['createdAt'];return _0x5aa6e7==_0x54e962?_0x29a970[0x0]['attributes']['groupId']<_0x461976[0x0]['attributes']['groupId']?-0x1:0x1:_0x5aa6e7<_0x54e962?-0x1:0x1;});for(const _0x433fda of _0x5c270c)_0x433fda['sort']((_0x330650,_0xa6b22d)=>_0x330650['id']<_0xa6b22d['id']?-0x1:0x1);}());for(let _0x37db38=0x0;_0x37db38<_0x5c270c['length'];_0x37db38++){if(0x0==_0x5c270c[_0x37db38]['length'])continue;const _0x2d67b9=[];for(let _0x57f0ba=_0x37db38+0x1;_0x57f0ba<_0x5c270c['length'];_0x57f0ba++)0x0!=_0x5c270c[_0x57f0ba]['length']&&_0x3fe1b7(_0x5c270c[_0x37db38],_0x5c270c[_0x57f0ba])&&_0x2d67b9['push'](_0x57f0ba);for(const _0x2be877 of _0x2d67b9)_0x5c270c[_0x37db38]=_0x5c270c[_0x37db38]['concat'](_0x5c270c[_0x2be877]),_0x5c270c[_0x2be877]=[];}for(const _0x4808b1 of _0x5c270c)for(let _0x4fdb2f=0x0;_0x4fdb2f<_0x4808b1['length'];_0x4fdb2f++){const _0x2f4a17=_0x4808b1[_0x4fdb2f+0x1]||null;_0x4808b1[_0x4fdb2f]['next']!==_0x2f4a17&&(_0x4808b1[_0x4fdb2f]['next']=_0x2f4a17);}for(const _0x4e3d47 of _0x5c270c)for(let _0x5190a7=0x0;_0x5190a7<_0x4e3d47['length'];_0x5190a7++){const _0x19f6a6=_0x4e3d47[_0x5190a7-0x1]||null;_0x4e3d47[_0x5190a7]['previous']!==_0x19f6a6&&(_0x4e3d47[_0x5190a7]['previous']=_0x19f6a6);}function _0x3fe1b7(_0x466ca8,_0x29d3c1){if(_0x466ca8[0x0]['attributes']['groupId']!==_0x29d3c1[0x0]['attributes']['groupId']&&_0x466ca8[0x0]['author']!==_0x29d3c1[0x0]['author'])return!0x1;if(!function(_0x87bc97,_0x20bbfe){if(!_0x87bc97['hasComments']&&!_0x20bbfe['hasComments'])return!0x0;if(_0x87bc97['hasComments']&&_0x20bbfe['hasComments'])return!0x1;if(_0x87bc97['hasComments']&&_0x20bbfe['createdAt']<_0x87bc97['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x20bbfe['hasComments']&&_0x87bc97['createdAt']<_0x20bbfe['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x466ca8[0x0],_0x29d3c1[0x0]))return!0x1;const _0x615d2=Gt(_0x466ca8[0x0]['attributes'],['groupId','trackingSessionId']),_0x111678=Gt(_0x29d3c1[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x5a9c50(_0x615d2,_0x111678))return!0x1;if(_0x466ca8[0x0]['attributes']['groupId']==_0x29d3c1[0x0]['attributes']['groupId'])return!0x0;if(_0x466ca8[0x0]['attributes']['trackingSessionId']!==_0x29d3c1[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x466ca8['every'](_0x2be44a=>_0x29d3c1['some'](_0x244066=>_0x2be44a['getFirstRange']()['isEqual'](_0x244066['getFirstRange']())))&&_0x29d3c1['every'](_0x407d88=>_0x466ca8['some'](_0x222f01=>_0x407d88['getFirstRange']()['isEqual'](_0x222f01['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x404603){const _0x2f4821=Array['from'](_0x404603),_0x2d42aa=this['getSuggestions']({'skipNotAttached':!0x0}),_0x388b0d=_0x2d42aa['filter'](_0x4f8848=>!_0x404603['has'](_0x4f8848)),_0x3a3d37=new Map(_0x2f4821['map'](_0x4e20bb=>[_0x4e20bb,this['_suggestionFactory']['getSuggestionCallback'](_0x4e20bb['type'],_0x4e20bb['subType'],'join')])),_0x5ea757=new Map(_0x2d42aa['map'](_0xced962=>[_0xced962,_0xced962['getRanges']()]));for(let _0x377e16=0x0;_0x377e16<_0x2f4821['length'];_0x377e16++){if(_0x364eb8(this,_0x2f4821[_0x377e16],_0x2f4821,_0x377e16+0x1))return!0x0;}for(let _0x41bb77=0x0;_0x41bb77<_0x2f4821['length'];_0x41bb77++){if(_0x364eb8(this,_0x2f4821[_0x41bb77],_0x388b0d,0x0))return!0x0;}return!0x1;function _0x364eb8(_0x2cfbf8,_0x4a9f55,_0x4009cd,_0x5f11a){for(let _0x2fdda3=_0x5f11a;_0x2fdda3<_0x4009cd['length'];_0x2fdda3++){const _0x1c471a=_0x4009cd[_0x2fdda3];if(_0x1c471a['type']!==_0x4a9f55['type']||_0x1c471a['author']['id']!==_0x4a9f55['author']['id']||_0x1c471a['subType']!==_0x4a9f55['subType'])continue;if(!ee(_0x4a9f55,_0x1c471a))continue;if('attribute'==_0x4a9f55['type']&&_0x4a9f55['data']['oldValue']!=_0x1c471a['data']['oldValue'])continue;if('attribute'==_0x4a9f55['type']&&_0x2cfbf8['_isBlockAttribute'](_0x4a9f55['data']['key']))continue;if('formatBlock'==_0x4a9f55['type']){const _0x5763b8=_0x2cfbf8['editor']['model'],_0x2c2423=_0x4a9f55['getContainedElement']();if(_0x2c2423&&(_0x5763b8['schema']['isObject'](_0x2c2423)||_0x5763b8['schema']['isLimit'](_0x2c2423)))continue;}const _0x347dfc=_0x3a3d37['get'](_0x4a9f55),_0x5e0dc4=_0x5ea757['get'](_0x4a9f55),_0x54a661=_0x5ea757['get'](_0x1c471a),_0x286aa9=_0x4a9f55['commentThread']&&_0x4a9f55['commentThread']['length'],_0x579f32=_0x1c471a['commentThread']&&_0x1c471a['commentThread']['length'];if(!_0x286aa9&&_0x347dfc(_0x54a661,_0x5e0dc4))return _0x2cfbf8['_joinSuggestions'](_0x1c471a,_0x4a9f55),_0x5ea757['delete'](_0x4a9f55),!0x0;if(!_0x579f32&&_0x347dfc(_0x5e0dc4,_0x54a661))return _0x2cfbf8['_joinSuggestions'](_0x4a9f55,_0x1c471a),_0x5ea757['delete'](_0x1c471a),!0x0;}return!0x1;}}['_joinSuggestions'](_0x211a06,_0x87ca4d){if(_0x211a06['isMultiRange']){for(const _0x50b048 of _0x87ca4d['getRanges']())_0x211a06['addRange'](_0x50b048);}else{const _0x26738e=_0x87ca4d['getFirstRange']()['end'];this['_setSuggestionRange'](_0x211a06,this['_model']['createRange'](_0x211a06['getFirstRange']()['start'],_0x26738e));}_0x87ca4d['removeMarkers']();}['_getMarkerAnnouncementText'](_0xc616aa,_0x3386e2,_0x344b2b){const _0x54ddfc=_0xc616aa['startsWith']('format')||_0xc616aa['startsWith']('attribute')?'FORMATTING':_0xc616aa['toUpperCase']();return o(this['editor']['locale'],_0x3386e2+'_'+_0x54ddfc+'_SUGGESTION_ANNOUNCEMENT',_0x344b2b);}['_initAriaMarkerChangeAnnouncements'](){const _0x204d11=this['editor'];if(!_0x204d11['ui'])return;const {ariaLiveAnnouncer:_0x19862d}=_0x204d11['ui'];_0x519d40(this['_model'],({left:_0x3fb7c1,entered:_0x3d7eac})=>{for(const _0x14d074 of _0x3fb7c1){const {group:_0x394809,type:_0x465943}=this['_splitMarkerName'](_0x14d074['name']);if('suggestion'===_0x394809){_0x19862d['announce'](this['_getMarkerAnnouncementText'](_0x465943,'LEAVE'));break;}}for(const _0xb9b9a of _0x3d7eac){const {group:_0x32d7b5,type:_0x1fd9a8}=this['_splitMarkerName'](_0xb9b9a['name']);if('suggestion'===_0x32d7b5){_0x19862d['announce'](this['_getMarkerAnnouncementText'](_0x1fd9a8,'ENTER',_0x2f913b(_0x503ef8)));break;}}});}['_processAttributeChanges'](_0x2c326d){if(this['_recordAttributeSuggestions'])return!0x1;const _0x12c8fa=this['editor'],_0x2688c6=_0x12c8fa['model']['document']['differ']['getChanges']();if(0x0==_0x2688c6['length'])return!0x1;const _0x263fa7=[],_0x337683=_0x2688c6['filter'](_0x9e00b6=>'attribute'==_0x9e00b6['type']),_0x3bc031=_0x2688c6['filter'](_0x56f11f=>'insert'==_0x56f11f['type']&&'$text'!=_0x56f11f['name']),_0x52ca8d=_0x2688c6['filter'](_0x1ca1e8=>'remove'==_0x1ca1e8['type']&&'$text'!=_0x1ca1e8['name']);for(const _0xcc638e of _0x337683)_0x263fa7['push']({'key':_0xcc638e['attributeKey'],'newValue':_0xcc638e['attributeNewValue'],'oldValue':_0xcc638e['attributeOldValue'],'range':Yt(_0xcc638e['range'],_0x12c8fa['model'])});for(const _0x1bc5b4 of _0x3bc031){const _0x13a1bd=_0x52ca8d['find'](_0x18a0a8=>_0x18a0a8['position']['isEqual'](_0x1bc5b4['position']));_0x13a1bd&&_0x263fa7['push']({'key':m,'newValue':_0x1bc5b4['name'],'oldValue':_0x13a1bd['name'],'range':_0x12c8fa['model']['createRangeOn'](_0x1bc5b4['position']['nodeAfter'])});}return 0x0!=_0x263fa7['length']&&this['_reduceExistingSuggestions'](_0x2c326d,_0x263fa7);}['_processAttributeSuggestions'](_0x90becd){let _0x450122=!0x1;const _0x21d1f0=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1ecbeb=>_0x1ecbeb['data']['newRange']&&_0x1ecbeb['name']['startsWith']('suggestion:attribute:'));for(const _0x411725 of _0x21d1f0){const {subType:_0x44a6f0,id:_0x388d7e}=this['_splitMarkerName'](_0x411725['name']),_0x3a4ef7=_0x44a6f0['split']('|')[0x0];for(const _0x8f77d8 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x8f77d8['id']!=_0x388d7e&&'attribute'==_0x8f77d8['type']&&_0x8f77d8['data']&&_0x8f77d8['data']['key']==_0x3a4ef7&&_0x8f77d8['getFirstRange']()['isIntersecting'](_0x411725['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x8f77d8,_0x411725['data']['newRange'],_0x90becd),_0x450122=!0x0);}return _0x450122;}['recordAttributeChanges'](_0x2c3c3e){this['_recordAttributeSuggestions']=!0x0,_0x2c3c3e();}['_isRegisteredAttribute'](_0x448fc1){const _0x8b34c2=this['_isBlockAttribute'](_0x448fc1),_0x164793=this['_isInlineAttribute'](_0x448fc1);return _0x8b34c2||_0x164793;}['_reduceExistingSuggestions'](_0x1ff5b0,_0x580611){if(0x0==_0x580611['length'])return!0x1;let _0x492691=!0x1;for(const _0x12f122 of _0x580611){const _0x31572c=this['_findSuggestions'](_0x12f122['range'],'attribute')['filter'](_0x4d56e2=>!_0x4d56e2['meta']['isNextTo'])['map'](_0x2c31a4=>_0x2c31a4['suggestion']),_0x11ea6=_0x5816e7({'newValue':_0x12f122['newValue']});_0x31572c['filter'](_0x223f45=>{const [_0x258a59,_0x3a0508]=_0x223f45['subType']['split']('|');return _0x258a59==_0x12f122['key']&&_0x3a0508!=_0x11ea6;})['forEach'](_0xc1d20e=>{this['_reduceSuggestionAttributeRange'](_0xc1d20e,_0x12f122['range'],_0x1ff5b0),_0x492691=!0x0;});}return _0x492691;}['_reduceSuggestionAttributeRange'](_0x3fcf6d,_0x11af75,_0x428265){const _0x25368c=_0x3fcf6d['getFirstRange']()['getDifference'](_0x11af75);0x0!==_0x25368c['length']?0x1!==_0x25368c['length']?this['_breakSuggestionMarker'](_0x3fcf6d,_0x11af75['start'],_0x11af75['end']):this['_setSuggestionRange'](_0x3fcf6d,_0x25368c[0x0]):_0x428265['removeMarker'](_0x3fcf6d['getFirstMarker']());}}class Lt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x574122){this['_editor']=_0x574122,this['_model']=_0x574122['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x56fcab,_0x8606f4,_0x114d1a,_0x8c2a99,_0xc322b6,_0x49dd2b,_0x4421cb){return new R(this['_model'],{'type':_0x56fcab,'subType':_0x8606f4,'id':_0x114d1a,'originalSuggestionId':_0x4421cb,'author':_0x8c2a99,'creator':_0x8c2a99,'attributes':_0xc322b6,'onAttributesChange':_0x49dd2b,'onAccept':(..._0x60db69)=>this['getSuggestionCallback'](_0x56fcab,_0x8606f4,'accept')(..._0x60db69),'onDiscard':(..._0x4148b2)=>this['getSuggestionCallback'](_0x56fcab,_0x8606f4,'discard')(..._0x4148b2)});}['registerCustomCallback'](_0x4141b8,_0x279b63,_0x1ce9f5,_0xa4c5d1){const _0x1f990d=_0x4141b8+':'+_0x279b63+':'+_0x1ce9f5;this['_customCallbacks']['set'](_0x1f990d,_0xa4c5d1);}['getSuggestionCallback'](_0x343258,_0x284dcc,_0x227e1d){const _0x3b312f=_0x343258+':'+_0x284dcc+':'+_0x227e1d;return this['_customCallbacks']['get'](_0x3b312f)||this['_defaultCallbacks']['get'](_0x343258+':'+_0x227e1d);}['_registerDefaultCallbacks'](){const _0x1ba81d=()=>!0x1,_0x53724b=_0x1c6590=>{_0x1c6590['sort']((_0x29c294,_0x348738)=>_0x29c294['start']['isBefore'](_0x348738['start'])?0x1:-0x1),this['_model']['change'](_0x2f0d25=>{for(const _0x1d6eae of _0x1c6590){let _0x2da3c8;_0x2da3c8=_0x1d6eae['end']['isAtEnd']&&_0x1d6eae['end']['parent']==_0x1d6eae['start']['nodeAfter']?_0x2f0d25['createSelection'](_0x1d6eae['start']['nodeAfter'],'on'):_0x2f0d25['createSelection'](_0x1d6eae),this['_model']['deleteContent'](_0x2da3c8,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x2a5b83=(_0x1109fb,_0x86766)=>{_0x86766&&this['_model']['change'](_0x38ec9f=>{const {commandName:_0xee1201,commandParams:_0xb2d2bb=[]}=_0x86766,_0x5eb54a=_0x1109fb['map'](_0x3cefe9=>(Kt(_0x3cefe9)&&(_0x3cefe9=this['_model']['createRange'](_0x3cefe9['end'])),_0x3cefe9))['filter'](_0x35d824=>'$graveyard'!==_0x35d824['root']['rootName']);if(_0x5eb54a['length']<0x1)return;const _0x258d8b=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5cfce8=>_0x289cfe['fromRange'](_0x5cfce8));_0x38ec9f['setSelection'](_0x5eb54a);for(const _0x31721f of this['_editor']['commands']['commands']())_0x31721f['refresh']();_0xb2d2bb['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xee1201,..._0xb2d2bb);const _0x1151f2=_0x258d8b['filter'](_0x3befc9=>'$graveyard'!=_0x3befc9['root']['rootName']);_0x1151f2['length']>0x0&&_0x38ec9f['setSelection'](_0x1151f2);for(const _0x23168d of _0x258d8b)_0x23168d['detach']();});},_0x1c38f1=(_0x233432,_0x4feaa3)=>0x1==_0x233432['length']&&0x1==_0x4feaa3['length']&&_0x233432[0x0]['end']['isEqual'](_0x4feaa3[0x0]['start']),_0x43a5c1=(_0x16f0cd,_0x4ec8ec,_0x5edc39,_0x65c8e8)=>te(_0x16f0cd,_0x4ec8ec,_0x5edc39,_0x65c8e8)?[_0x16f0cd,_0x4ec8ec]:te(_0x4ec8ec,_0x16f0cd,_0x65c8e8,_0x5edc39)?[_0x4ec8ec,_0x16f0cd]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1ba81d),this['_defaultCallbacks']['set']('insertion:discard',_0x53724b),this['_defaultCallbacks']['set']('insertion:join',_0x1c38f1),this['_defaultCallbacks']['set']('insertion:chain',_0x43a5c1),this['_defaultCallbacks']['set']('deletion:accept',_0x53724b),this['_defaultCallbacks']['set']('deletion:discard',_0x1ba81d),this['_defaultCallbacks']['set']('deletion:join',_0x1c38f1),this['_defaultCallbacks']['set']('deletion:chain',_0x43a5c1),this['_defaultCallbacks']['set']('formatInline:accept',_0x2a5b83),this['_defaultCallbacks']['set']('formatInline:discard',_0x1ba81d),this['_defaultCallbacks']['set']('formatInline:join',_0x1c38f1),this['_defaultCallbacks']['set']('formatInline:chain',_0x1ba81d),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2a5b83),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1ba81d),this['_defaultCallbacks']['set']('formatBlock:join',_0x1c38f1),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1ba81d),this['_defaultCallbacks']['set']('attribute:accept',_0x1ba81d),this['_defaultCallbacks']['set']('attribute:discard',(_0x16108b,_0x985654)=>{if(!_0x985654)return;const _0x54ff53=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x18a9ab=>{if(_0x985654['key']==m)for(const _0x12f3d0 of _0x16108b){const _0x3ca39a=_0x12f3d0['start']['nodeAfter'],_0x3e1f96=_0x985654['oldValue'];_0x18a9ab['rename'](_0x3ca39a,_0x3e1f96);}else{if(_0x54ff53['_isBlockAttribute'](_0x985654['key'])){for(const _0x76ccea of _0x16108b)void 0x0!==_0x985654['oldValue']?_0x18a9ab['setAttribute'](_0x985654['key'],_0x985654['oldValue'],_0x76ccea['start']['nodeAfter']):_0x18a9ab['removeAttribute'](_0x985654['key'],_0x76ccea['start']['nodeAfter']);}else{for(const _0x13030f of _0x16108b)_0x985654['oldValue']?_0x18a9ab['setAttribute'](_0x985654['key'],_0x985654['oldValue'],_0x13030f):_0x18a9ab['removeAttribute'](_0x985654['key'],_0x13030f);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1c38f1);}}function Jt(_0x502c20,_0x6aa74d,_0x5dc9dd){for(const _0x290b5f of _0x6aa74d['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x290b5f['root']==_0x290b5f)return!0x1;if(!_0x5dc9dd['containsItem'](_0x290b5f))return!0x1;if(_0x502c20['isObject'](_0x290b5f)||_0x502c20['isLimit'](_0x290b5f))return!0x0;}return!0x1;}function Kt(_0x56622d){return _0x56622d['end']['parent']==_0x56622d['start']['nodeAfter']&&_0x56622d['end']['isAtStart'];}function Ht(_0x41769b,_0x5a0dbb,_0x18238c,_0x10e658){const _0x34abe8=_0x1c3b85=>!_0x1c3b85['item']['is']('$textProxy')&&!_0x10e658['isObject'](_0x1c3b85['item']),_0x15d227=_0x41769b['start']['getLastMatchingPosition'](_0x34abe8),_0x45f07e=_0x41769b['end']['getLastMatchingPosition'](_0x34abe8,{'direction':'backward'});return(!_0x41769b['start']['isEqual'](_0x15d227)||!_0x41769b['end']['isEqual'](_0x45f07e))&&(_0x15d227['isBefore'](_0x45f07e)?_0x18238c['updateMarker'](_0x5a0dbb,{'range':_0x18238c['createRange'](_0x15d227,_0x45f07e)}):_0x18238c['removeMarker'](_0x5a0dbb),!0x0);}function Wt(_0xb831ac){return _0x5816e7(_0xb831ac);}function qt(_0x45bfe6){const _0x596cd0=_0x45bfe6['start']['nodeAfter'];return _0x596cd0&&_0x596cd0['is']('element');}function zt(_0xbe87fa){return Kt(_0xbe87fa)||function(_0x17a412){return _0x17a412['start']['parent']==_0x17a412['end']['nodeBefore']&&_0x17a412['start']['isAtEnd'];}(_0xbe87fa);}function Qt(_0x5976c4,_0x1eb185){try{const _0x3ce090=_0x5976c4['getRange']();for(const _0x26eda9 of _0x1eb185)if(_0x5976c4!==_0x26eda9&&_0x3ce090&&_0x3ce090['isIntersecting'](_0x26eda9['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Xt(_0x2b51f9,_0x471b68){const _0xccbbad=_0x2b51f9['end']['nodeBefore'];if(_0xccbbad&&_0xccbbad['is']('element')&&_0x471b68['schema']['isBlock'](_0xccbbad)&&!_0x471b68['schema']['isObject'](_0xccbbad)){const _0x2d457d=_0x471b68['createPositionAt'](_0xccbbad,'end');return _0x471b68['createRange'](_0x2b51f9['start'],_0x2d457d);}return _0x2b51f9;}function Yt(_0x540de1,_0x29ac24){return null==_0x540de1['end']['nodeBefore']&&_0x540de1['end']['parent']==_0x540de1['start']['nodeAfter']?Zt(_0x540de1['start']['nodeAfter'],_0x29ac24):_0x540de1;}function Zt(_0x429a0e,_0x5c89d9){const _0x3b32e3=_0x5c89d9['schema']['isObject'](_0x429a0e)||_0x5c89d9['schema']['isSelectable'](_0x429a0e);return _0x5c89d9['createRange'](_0x5c89d9['createPositionAt'](_0x429a0e,'before'),_0x3b32e3?_0x5c89d9['createPositionAfter'](_0x429a0e):_0x5c89d9['createPositionAt'](_0x429a0e,'end'));}function te(_0x4a6145,_0x285dd2,_0x2f4d18,_0x540d76){return!!ee(_0x4a6145,_0x285dd2)&&_0x2f4d18['end']['isEqual'](_0x540d76['start']);}function ee(_0x24c6b4,_0x2bd45d){if(!_0x24c6b4['_isDataLoaded']||!_0x2bd45d['_isDataLoaded'])return!0x1;const _0xb6f8e2=new Set(Object['keys'](_0x24c6b4['attributes'])),_0x4adb8d=new Set(Object['keys'](_0x2bd45d['attributes']));if(_0xb6f8e2['delete']('groupId'),_0x4adb8d['delete']('groupId'),0x0==_0xb6f8e2['size']&&0x0==_0x4adb8d['size'])return!0x0;if(_0xb6f8e2['size']!=_0x4adb8d['size'])return!0x1;const _0x355699={..._0x24c6b4['attributes']},_0x4642f1={..._0x2bd45d['attributes']};return delete _0x355699['groupId'],delete _0x4642f1['groupId'],JSON['stringify'](_0x355699)==JSON['stringify'](_0x4642f1);}function ie(_0x4c5882,_0x51c5e9){const _0x2f6e0d=ne(_0x4c5882['attributes']),_0x36ffee=ne(_0x51c5e9);if(!_0x4c5882['_isDataLoaded'])return!0x1;for(const _0x13ab0b of Object['keys'](_0x36ffee))if(!_0x5a9c50(_0x2f6e0d[_0x13ab0b],_0x36ffee[_0x13ab0b]))return!0x1;return!0x0;}function ne(_0x5151bd){const _0x35656f=Object['assign']({},_0x5151bd);return delete _0x35656f['skipNestingCheck'],delete _0x35656f['tablePasteChainId'],_0x35656f;}function se(_0x54a860){return _0x54a860['split']('|')[0x0];}class be extends/* #__PURE__ -- @preserve */
26
- _0x1a2cfb(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x27e862,_0x386cf5,_0x3c24ca,_0x183124){super(),this['model']=_0x386cf5,this['view']=_0x3c24ca,this['commentThreadController']=_0x183124,this['_editor']=_0x27e862,this['_acceptCommand']=_0x27e862['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x27e862['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x180913,_0x154c04)=>_0x180913||_0x154c04),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5649a4=>_0x5649a4&&this['_editor']['model']['canEditAt'](_0x386cf5['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2910cb=>_0x2910cb&&this['_editor']['model']['canEditAt'](_0x386cf5['getRanges']())),this['_pendingAction']=null,_0x3c24ca['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3c24ca,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3c24ca,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3c24ca,'change:isDirty',()=>{_0x3c24ca['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 _0x165f15=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x165f15);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x1868f3{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4bf21f,_0x1387ce,_0x3f0a89,_0x3b10fd){super(_0x4bf21f),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x19030a(_0x4bf21f,o(_0x4bf21f,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x1387ce['authoredAt']),this['bind']('authoredAt')['to'](_0x1387ce),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',_0x1387ce,'authoredAt',this,'descriptionParts',(_0x4086e2,_0x3934a4,_0xf9637)=>{const _0x25ffd2=_0xf9637['map'](_0x47e5ac=>ls(_0x47e5ac['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4086e2-0x1,_0x1387ce['author']['name'],_0x3934a4?_0x3b10fd['formatDateTime'](_0x3934a4):'',new DOMParser()['parseFromString'](_0x25ffd2,'text/html')['body']['textContent']]);}),this['focusables']=new _0x393ec0(),this['focusTracker']=new _0x268bfe(),this['keystrokes']=new _0x2f650f(),this['focusCycler']=new _0x141c97({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1d8737=>_0x1d8737['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x1387ce,this['_localUser']=_0x3f0a89,this['_config']=_0x3b10fd,_0x3b10fd['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x36abfc(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xe3a527}=this['_config'];this['commentsListView']=new _0xe3a527(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',_0x5f2e22=>_0x5f2e22+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5e2c2a,_0x4fc70f)=>_0x5e2c2a||!!_0x4fc70f);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4c6c21}=this['_config'],_0x1ccde9=new _0x4c6c21(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5d17b4=_0x1ccde9['commentInputView'];return _0x1ccde9['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5d17b4,'value',(_0x14883e,_0x542014,_0x5cad66)=>!!_0x5cad66||_0x14883e&&!_0x542014),_0x5d17b4['on']('submit',(_0x21629c,_0x195f18)=>{this['fire']('addComment',_0x195f18),_0x5d17b4['editor']['setData']('');}),_0x5d17b4['on']('cancel',()=>this['focus']()),_0x5d17b4['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1ccde9;}}class Te extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x1287b3,_0x5764a7,_0x3b95c6,_0x45d9d3){super(_0x1287b3,_0x5764a7,_0x3b95c6,_0x45d9d3),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5f4631=>_0x5f4631&&_0x5f4631[0x0]?_0x5f4631[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x472434,_0x546d7a)=>{let _0x1dfb7c='';for(const _0x561796 of _0x472434)_0x1dfb7c+='<p>'+ls(_0x561796['content'],_0x561796['color'])+'</p>';return _0x546d7a?_0x1dfb7c:_0x404817(_0x1dfb7c,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x45d9d3['SuggestionView'](_0x1287b3,_0x5764a7,{'formatDateTime':_0x45d9d3['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 _0x35bee4=this['bindTemplate'],_0x4e0a09=[this['suggestionView']];return this['commentsListView']&&_0x4e0a09['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4e0a09['push'](this['commentThreadInputView']),_0x4e0a09['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x35bee4['if']('isActive','ck-suggestion-wrapper--active'),_0x35bee4['to']('type',_0x1680bd=>'ck-suggestion-'+_0x1680bd),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':_0x35bee4['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4e0a09};}['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 Le extends _0x1868f3{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x32c2c1,_0x92a608,_0xc8e523){super(_0x32c2c1),this['_model']=_0x92a608,this['_config']=_0xc8e523,this['set']('description',''),this['bind']('authoredAt')['to'](_0x92a608),this['acceptButton']=this['_createButton'](o(_0x32c2c1,'Accept\x20suggestion'),_0x2fed04,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x32c2c1,'Discard\x20suggestion'),_0x3e0e7e,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x380cd8(_0x32c2c1,_0x92a608['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x393ec0([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x268bfe(),this['keystrokes']=new _0x2f650f(),this['focusCycler']=new _0x141c97({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x595e71=>_0x595e71['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2be32a=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2be32a['innerHTML']=this['description'],this['on']('change:description',(_0x1a7fc3,_0x143f14,_0x2a7d3b)=>{_0x2be32a['innerHTML']=_0x2a7d3b;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3be6e8=this['bindTemplate'],_0x521ec7=[{'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':_0x3be6e8['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3be6e8['to']('authoredAt',_0x12d99d=>this['_config']['formatDateTime'](_0x12d99d))}]}]},{'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']&&_0x521ec7['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':_0x521ec7}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x50e530,_0x2eed24,_0x51f226,_0x4ab21b,_0x306b50){const _0x4e74ca=new _0x4d4366(this['locale']);return _0x4e74ca['set']({'label':_0x50e530,'icon':_0x2eed24,'tooltip':!0x0,'tooltipPosition':_0x306b50}),_0x4e74ca['extendTemplate']({'attributes':{'class':_0x51f226}}),_0x4e74ca['on']('execute',()=>{this['fire'](_0x4ab21b,this['_model']['id']);}),_0x4e74ca;}['_setupKeyboardNavigation'](){const _0x3ad364=this['element'];this['keystrokes']['listenTo'](_0x3ad364);for(const _0x1380b5 of this['focusables'])this['focusTracker']['add'](_0x1380b5['element']),this['keystrokes']['listenTo'](_0x1380b5['element']);this['keystrokes']['set']('enter',(_0x4ca0c3,_0x1df749)=>{_0x3ad364===_0x4ca0c3['target']&&(this['focusCycler']['focusFirst'](),_0x1df749());}),this['keystrokes']['set']('esc',(_0x6e3830,_0x5df059)=>{_0x3ad364!==_0x6e3830['target']&&(this['focus'](),_0x5df059());});}}class u extends _0x282945{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x547438,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4a8adc){super(_0x4a8adc),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4c92b3=this['editor']['config'];_0x4c92b3['define']('trackChanges.SuggestionThreadView',Te),_0x4c92b3['define']('trackChanges.SuggestionView',Le),_0x4c92b3['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4c92b3['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x40aa47,_0x48a714){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1c4cb8,_0x304d98]of this['_handleControllerBuffer']){const _0x10a522=this['_suggestionToController']['has'](_0x1c4cb8);_0x10a522||_0x304d98?_0x10a522&&_0x304d98&&this['_destroyController'](_0x1c4cb8):this['_initializeController'](_0x1c4cb8);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x40aa47,_0x48a714);}['init'](){const _0x11d8d9=this['editor'],_0xe7443c=_0x11d8d9['plugins']['get']('TrackChangesEditing'),_0x39ce7b=_0x11d8d9['plugins']['get']('Annotations'),_0x3d05d7=_0x11d8d9['plugins']['get']('EditorAnnotations'),_0x12ce7e=_0x11d8d9['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3d05d7['addSourceCollector'](()=>{const _0x3fe760=[];for(const [_0x5f1895,_0x13d85b]of Array['from'](this['_suggestionToController'])){const _0x1fb66f=_0x5f1895['getAllAdjacentSuggestions'](),_0x1e5441=[];for(const _0x48920b of _0x1fb66f){if(!_0x48920b['isInContent'])continue;if(_0x48920b['isMultiRange']){_0x1e5441['push'](..._0x48920b['getRanges']());continue;}const _0x13459a=_0x48920b['getFirstRange']();if(_0x1e5441['length']>0x0){const _0x46746e=_0x1e5441[0x0]['getJoined'](_0x13459a);if(_0x46746e){_0x1e5441[0x0]=_0x46746e;continue;}}_0x1e5441['push'](_0x13459a);}_0x3fe760['push']([_0x13d85b['view'],_0x1e5441]);}return _0x3fe760;}),this['listenTo'](_0xe7443c,'suggestionLoaded',(_0x700fe1,_0x16c6fe)=>{this['listenTo'](_0x16c6fe,'change:previous',(_0xbc9038,_0x2c425f,_0x14f1f2,_0x433582)=>{_0x16c6fe['isInContent']&&(null==_0x14f1f2?(this['_updateController'](_0x433582['head']),this['_handleSuggestionControllerDelayed'](_0x16c6fe,!0x1)):(this['_updateController'](_0x14f1f2['head']),null==_0x433582&&this['_handleSuggestionControllerDelayed'](_0x16c6fe,!0x0)));}),null!==_0x16c6fe['previous']?this['_updateController'](_0x16c6fe['head']):this['_handleSuggestionControllerDelayed'](_0x16c6fe,!0x1);}),this['listenTo'](_0xe7443c,'suggestionUnloaded',(_0x128a38,_0x3c0ae9,_0x5af1a0)=>{this['stopListening'](_0x3c0ae9,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3c0ae9),this['_suggestionToController']['has'](_0x3c0ae9)&&this['_destroyController'](_0x3c0ae9),_0x5af1a0&&this['_updateController'](_0x5af1a0['head']);}),this['listenTo'](_0xe7443c,'suggestionChanged',(_0x9d7592,_0x41da61)=>{this['_updateController'](_0x41da61);}),this['listenTo'](_0x39ce7b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x12ce7e,'addComment',(_0x385763,{threadId:_0x57b2a1,isFromAdapter:_0x351840})=>{if(_0x351840||!_0xe7443c['hasSuggestion'](_0x57b2a1))return;const _0x666f34=_0xe7443c['getSuggestion'](_0x57b2a1);this['_suggestionToController']['get'](_0x666f34)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1f8fdd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x16328a;for(const _0x560e7a in _0x1f8fdd){const _0x3ebaa7=_0x560e7a,_0x3a81fc=_0x1f8fdd[_0x3ebaa7];if('trackChangesLicenseKeyValid'==_0x3a81fc||'trackChangesLicenseKeyInvalid'==_0x3a81fc||'trackChangesLicenseKeyExpired'==_0x3a81fc||'trackChangesLicenseKeyDomainLimit'==_0x3a81fc||'trackChangesLicenseKeyNotAllowed'==_0x3a81fc||'trackChangesLicenseKeyEvaluationLimit'==_0x3a81fc||'trackChangesLicenseKeyTrialLimit'==_0x3a81fc||'trackChangesLicenseKeyUsageLimit'==_0x3a81fc){delete _0x1f8fdd[_0x3ebaa7],_0x16328a=_0x3a81fc,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x16328a&&_0x1f8fdd['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x16328a&&_0x1f8fdd['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x16328a&&_0x1f8fdd['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x16328a&&_0x1f8fdd['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x16328a&&_0x1f8fdd['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x16328a&&_0x1f8fdd['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x16328a&&_0x1f8fdd['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x185e5d){const _0x32084f=this['_suggestionToController']['get'](_0x185e5d);if(!_0x32084f)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x32084f['view'])||null;}['getSuggestionForAnnotation'](_0x370504){const _0x56fd7f=this['_viewToController']['get'](_0x370504['innerView']);return _0x56fd7f?_0x56fd7f['model']:null;}['_refreshActiveMarkers'](){const _0x8b5c2a=this['editor']['plugins']['get']('Annotations'),_0x7c69f8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x33bb1f=Array['from'](_0x8b5c2a['activeAnnotations'],_0x12fec8=>_0x12fec8['innerView'])['filter'](_0x3c49db=>this['_viewToController']['has'](_0x3c49db)),_0x2202bc=[];for(const _0x55a728 of _0x33bb1f){const _0x138949=this['_viewToController']['get'](_0x55a728)['model']['getAllAdjacentSuggestions']();_0x2202bc['push'](..._0x138949['reduce']((_0x3af51f,_0x71767e)=>[..._0x3af51f,..._0x71767e['getMarkerNames']()],[]));}_0x7c69f8['activeMarkers']=_0x2202bc;}['_addUIComponentsToFactory'](){const _0x4c1194=this['editor'],_0x12a844=_0x4c1194['locale'],_0x1abe11=o(_0x12a844,'Track\x20changes'),_0x52be15=new _0x67f686([{'type':'switchbutton','model':new _0x3b0aa4({'withText':!0x0,'isToggleable':!0x0,'label':_0x1abe11,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3b0aa4({'withText':!0x0,'label':o(_0x12a844,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3b0aa4({'withText':!0x0,'label':o(_0x12a844,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3b0aa4({'withText':!0x0,'label':o(_0x12a844,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3b0aa4({'withText':!0x0,'label':o(_0x12a844,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x4c1194['plugins']['has']('TrackChangesPreview')&&_0x52be15['addMany']([{'type':'separator'},{'type':'button','model':new _0x3b0aa4({'withText':!0x0,'label':o(_0x12a844,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x5d76ef of _0x52be15)if(ve(_0x5d76ef)){const _0x38a416=_0x4c1194['commands']['get'](_0x5d76ef['model']['commandName']);_0x5d76ef['model']['bind']('isOn','isEnabled')['to'](_0x38a416,'value','isEnabled');}_0x4c1194['ui']['componentFactory']['add']('trackChanges',_0x53fa91=>this['_createToolbarButton'](_0x53fa91,_0x52be15,_0x1abe11)),_0x4c1194['ui']['componentFactory']['add']('menuBar:trackChanges',_0x56d7f1=>this['_createMenuBarMenu'](_0x56d7f1,_0x52be15,_0x1abe11));}['_createToolbarButton'](_0x1a00a7,_0x34f531,_0x2d7840){const _0x26e727=_0x4fdd67(_0x1a00a7,_0x58af67),_0x55dfa8=this['editor']['commands']['get']('trackChanges');_0x26e727['buttonView']['set']({'tooltip':_0x2d7840,'label':_0x2d7840,'icon':_0x3ad971}),_0x26e727['buttonView']['bind']('isOn')['to'](_0x55dfa8,'value'),_0x26e727['buttonView']['on']('execute',()=>{_0x55dfa8['execute'](),this['editor']['editing']['view']['focus']();}),_0x54e0ef(_0x26e727,_0x34f531,{'role':'menu'});const _0x1623e0=[];for(const _0x335fe1 of _0x34f531)ve(_0x335fe1)&&_0x1623e0['push'](this['editor']['commands']['get'](_0x335fe1['model']['commandName']));const _0x384713=_0x26e727['buttonView'];return _0x384713['actionView']['unbind']('isEnabled'),_0x384713['arrowView']['unbind']('isEnabled'),_0x384713['actionView']['bind']('isEnabled')['to'](_0x55dfa8,'isEnabled'),_0x384713['arrowView']['bind']('isEnabled')['toMany'](_0x1623e0,'isEnabled',(..._0x25472a)=>_0x25472a['some'](_0x41b1cb=>_0x41b1cb)),_0x26e727['on']('execute',_0x3a13c4=>{this['editor']['execute'](_0x3a13c4['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x26e727;}['_createMenuBarMenu'](_0x2c50be,_0x599bb0,_0xe1e42e){const _0xc4ae97=new _0x22d59a(_0x2c50be),_0x301789=this['editor']['commands']['get']('trackChanges');_0xc4ae97['buttonView']['set']({'label':_0xe1e42e,'icon':_0x3ad971});const _0x495ccc=new _0x1a1985(_0x2c50be);for(const _0x2fd9bb of _0x599bb0){if('separator'==_0x2fd9bb['type']){_0x495ccc['items']['add'](new _0x3b8d59(_0x2c50be));continue;}const _0x5bf2e1=new _0x36d9e7(_0x2c50be,_0xc4ae97),_0x46122a=new _0x178445(_0x2c50be),_0x4a4f69=_0x2fd9bb['model'];_0x46122a['bind'](...Object['keys'](_0x4a4f69))['to'](_0x4a4f69),_0x46122a['delegate']('execute')['to'](_0xc4ae97),_0x46122a['on']('execute',()=>{this['editor']['execute'](_0x4a4f69['commandName']),this['editor']['editing']['view']['focus']();}),_0x5bf2e1['children']['add'](_0x46122a),_0x495ccc['items']['add'](_0x5bf2e1);}return _0xc4ae97['bind']('isEnabled')['to'](_0x301789,'isEnabled'),_0xc4ae97['panelView']['children']['add'](_0x495ccc),_0xc4ae97;}['_initializeController'](_0x29b0f4){const _0x2484a0=this['editor'],_0x24c57e=_0x2484a0['config'],_0x225003=_0x2484a0['plugins']['get']('Annotations'),_0x32bbb1=_0x2484a0['plugins']['get']('CommentsRepository'),_0x5215cc=_0x2484a0['plugins']['get']('EditorAnnotations'),_0x1bfe0c=_0x2484a0['plugins']['get'](_0x547438)['me'],_0x2c2678=_0x24c57e['get']('trackChanges')['SuggestionThreadView'],_0x552d41=_0x24c57e['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x54311a,CommentThreadInputView:_0x5d6ebe}=_0x2484a0['plugins']['get']('CommentsUI');let _0x3a543d,_0x39d4d5,_0x361425;this['_annotationViews']['has'](_0x29b0f4['id'])?(_0x39d4d5=this['_annotationViews']['get'](_0x29b0f4['id']),_0x3a543d=_0x39d4d5['mainView']):(_0x3a543d=new _0x2c2678(_0x2484a0['locale'],_0x29b0f4,_0x1bfe0c,{'disableComments':this['_disableComments'],'editorConfig':{..._0x24c57e['get']('comments.editorConfig'),'licenseKey':_0x24c57e['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x24c57e['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x24c57e['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x24c57e['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5e566b(_0x24c57e['get']('locale'),_0x2484a0['locale']),'CommentView':_0x24c57e['get']('comments')['CommentView'],'CommentsListView':_0x54311a,'CommentThreadInputView':_0x5d6ebe,'SuggestionView':_0x552d41}),_0x3a543d['suggestionView']['acceptButton']['on']('execute',()=>{_0x2484a0['editing']['view']['focus']();}),_0x3a543d['suggestionView']['discardButton']['on']('execute',()=>{_0x2484a0['editing']['view']['focus']();}),_0x39d4d5=_0x225003['createAnnotationView'](this['editor']['locale'],_0x3a543d),_0x39d4d5['bind']('isDirty')['to'](_0x3a543d,'isDirty'),_0x39d4d5['bind']('length')['to'](_0x3a543d),_0x39d4d5['bind']('type')['to'](_0x3a543d,'type',_0x4b3569=>'suggestion-'+_0x4b3569),_0x3a543d['on']('escape',()=>{_0x361425['fire']('escape');}),this['_annotationViews']['set'](_0x29b0f4['id'],_0x39d4d5));const _0x4bc4c1=_0x32bbb1['createCommentThreadController'](_0x29b0f4['commentThread'],_0x3a543d),_0x1a6b10=new be(_0x2484a0,_0x29b0f4,_0x3a543d,_0x4bc4c1),_0x4e5e65=_0x29b0f4['getAllAdjacentSuggestions']()['filter'](_0x479e48=>_0x479e48['isInContent']);_0x3a543d['descriptionParts']=_0x2484a0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4e5e65),this['_suggestionToController']['set'](_0x29b0f4,_0x1a6b10),this['_viewToController']['set'](_0x3a543d,_0x1a6b10);const _0x2a23d7=()=>{const _0x8b6204=[],_0x2a5c88=_0x29b0f4['getAllAdjacentSuggestions']()['filter'](_0x411e89=>_0x411e89['isInContent']);for(const _0x286dfb of _0x2a5c88)_0x8b6204['push'](..._0x286dfb['getMarkers']());return _0x179909(_0x2484a0['editing'],_0x8b6204);};_0x361425=_0x225003['createAnnotation']({'view':_0x39d4d5,'target':_0x2a23d7,'type':()=>'suggestion-'+_0x1a6b10['view']['type'],'isVisible':!!_0x2a23d7()}),_0x32bbb1['_bindAnnotationToEditors'](_0x3a543d,_0x361425),_0x225003['add'](_0x361425),_0x5215cc['registerAnnotation'](_0x361425);}['_destroyController'](_0x280322){const _0x11f914=this['editor']['plugins']['get']('CommentsRepository'),_0x2649c6=this['editor']['plugins']['get']('Annotations'),_0x4d6b97=this['_suggestionToController']['get'](_0x280322),_0x12a594=_0x4d6b97['view'],_0x648b91=_0x2649c6['getByInnerView'](_0x12a594);_0x11f914['_unbindEditors'](_0x12a594),_0x648b91&&_0x2649c6['remove'](_0x648b91),this['_suggestionToController']['delete'](_0x280322),this['_viewToController']['delete'](_0x12a594),_0x4d6b97['destroy']();}['_updateController'](_0x4ad4fd){if(!_0x4ad4fd['isInContent']||!this['_suggestionToController']['has'](_0x4ad4fd))return;const _0x51673c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x197b62=this['_suggestionToController']['get'](_0x4ad4fd),_0x6f3446=_0x4ad4fd['getAllAdjacentSuggestions']();_0x197b62['view']['descriptionParts']=_0x51673c['descriptionFactory']['getDescriptions'](_0x6f3446);}['destroy'](){for(const _0x19c560 of this['_suggestionToController']['keys']())this['_destroyController'](_0x19c560);for(const _0x72a995 of this['_annotationViews']['values']())_0x72a995['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ve(_0x21d790){return'model'in _0x21d790;}class Ve extends _0x282945{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x26bd01){this['editor']['plugins']['get'](d)['adapter']=_0x26bd01;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x48cb67){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x48cb67);}['getSuggestions']({skipNotAttached:_0xbe616c=!0x1,toJSON:_0x1157e0=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0xbe616c,'toJSON':_0x1157e0});}['getSuggestion'](_0x1440a2){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x1440a2);}}const p=['Pagination'];class ce extends _0x282945{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3d2417=this['editor'];if(_0x3d2417['config']['define']('trackChangesData.editorCreator',_0x35d215=>{const _0x196e68=_0x3d2417['model']['document']['getRootNames']()['reduce']((_0x59d165,_0x39c6fb)=>(_0x59d165[_0x39c6fb]='',_0x59d165),{});return _0x3d2417['constructor']['create'](_0x196e68,_0x35d215);}),'function'!=typeof _0x3d2417['config']['get']('trackChangesData')['editorCreator'])throw new _0x26e73b('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5095aa){return P(this['editor'],!0x0,_0x5095aa);}['getDataWithDiscardedSuggestions'](_0x190202){return P(this['editor'],!0x1,_0x190202);}}class ze extends _0x282945{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x14bcd5){function _0x881362(_0x5e07ed){return _0x5e07ed['map'](_0x361954=>String['fromCharCode'](_0x361954))['join']('');}super(_0x14bcd5),this['result']='end',_0x14bcd5[_0x881362([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x881362([0x76,0x69,0x65,0x77])][_0x881362([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x881362([0x61,0x75,0x74,0x6f]),_0x14bcd5[_0x881362([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x881362([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x881362([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x881362([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x881362([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 Ke(_0x218c1d){return void 0x0!==_0x218c1d['getRootsAttributes'];}async function P(_0xdd1386,_0x489635,_0x181c0d){const _0x1cffc1=_0x292fd3(_0xdd1386,p);_0x1cffc1['plugins']['push'](d,ze),_0x1cffc1['rootsAttributes']=Ke(_0xdd1386)?_0xdd1386['getRootsAttributes']():void 0x0;const _0x4669e3=document['createDocumentFragment'](),_0x5513f4=_0xdd1386['config']['get']('trackChangesData')['editorCreator'],_0x433a07=await _0x5513f4(_0x1cffc1,()=>function(_0x28ffdf){const _0x2fec64=document['createElement']('div');return _0x28ffdf['appendChild'](_0x2fec64),_0x2fec64;}(_0x4669e3));!function(_0x24fba6,_0x1397b5){const _0xdbda2c=_0x24fba6['model']['document']['getRootNames']()['reduce']((_0x1708d5,_0x65fb55)=>(_0x1708d5[_0x65fb55]=_0x24fba6['data']['get']({'rootName':_0x65fb55}),_0x1708d5),{}),_0x3b999d=_0x24fba6['plugins']['get']('Users')['users']['map'](_0x1c7175=>({'id':_0x1c7175['id'],'name':_0x1c7175['name']})),_0x55b348=_0x24fba6['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x21935c=_0x24fba6['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1606bc=_0x1397b5['plugins']['get']('Users'),_0x445762=_0x1397b5['plugins']['get']('TrackChangesEditing'),_0x5783ca=_0x1397b5['plugins']['get']('CommentsRepository');for(const _0x357a5e of _0x5783ca['getCommentThreads']())_0x357a5e['remove']();for(const _0x33035c of _0x3b999d)_0x1606bc['getUser'](_0x33035c['id'])||_0x1606bc['addUser'](_0x33035c);_0x1606bc['me']||_0x1606bc['useAnonymousUser']();for(const _0x1c3a99 of _0x21935c)_0x5783ca['addCommentThread'](_0x1c3a99);for(const _0x3fc95c of _0x55b348)_0x445762['addSuggestionData'](_0x3fc95c);_0x1397b5['data']['set'](_0xdbda2c);}(_0xdd1386,_0x433a07),_0x433a07['execute'](_0x489635?'acceptAllSuggestions':'discardAllSuggestions');const _0x38583a=Ke(_0x433a07)?_0x433a07['getFullData'](_0x181c0d):_0x433a07['data']['get'](_0x181c0d);return await _0x433a07['destroy'](),_0x38583a;}class _e extends _0x1868f3{['options'];constructor(_0x5c7317,_0x156972){super(_0x5c7317),this['options']=_0x156972,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'](_0xef2224,_0x2632d6){if(!this['element'])return;const _0x194b5e=[];for(const [_0x476dec,_0xdd38b7]of _0xef2224){const _0xb18586=document['createElement']('div');_0xb18586['setAttribute']('data-ck-root-name',_0x476dec),_0xb18586['className']=_0xdd38b7['classes']+'\x20ck-track-changes-preview__root-container',_0xb18586['innerHTML']=_0xdd38b7['content'],_0x194b5e['push'](_0xb18586);}_0x2632d6(this['element'],_0x194b5e),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class ae extends _0x5a0633{constructor(_0x3b16b9){super(_0x3b16b9),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1ae50f=this['editor'],_0x49c443=_0x1ae50f['locale'],_0x3c65af=_0x1ae50f['plugins']['get']('Dialog');let _0x4abd87;const _0x14c5f4=function(_0x19b8a4){const _0x432785={};if('editables'in _0x19b8a4['ui']['view']){for(const [_0x52f6a5,_0xd5457b]of Object['entries'](_0x19b8a4['ui']['view']['editables']))_0x432785[_0x52f6a5]=_0xd5457b['element'];}else _0x432785[_0x19b8a4['model']['document']['getRootNames']()[0x0]]=_0x19b8a4['ui']['view']['editable']['element'];return _0x432785;}(_0x1ae50f),_0x474196=function(_0x4574f1){let _0xf70db9=0x0;for(const _0x577dbd of Object['values'](_0x4574f1))_0xf70db9=Math['max'](_0xf70db9,_0x577dbd['getBoundingClientRect']()['width']);let _0x546c8d=0x0;for(const _0x4356e5 of Object['values'](_0x4574f1))_0x546c8d+=_0x4356e5['getBoundingClientRect']()['height'];const _0x2956cb=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x418fa1=Math['min'](_0x546c8d,_0x2956cb);return{'width':_0xf70db9,'height':_0x418fa1};}(_0x14c5f4);_0x3c65af['show']({'id':'finalContentPreview','title':o(_0x49c443,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new _e(_0x49c443,{'dialogRects':_0x474196}),'onHide':()=>{_0x4abd87['detachFromDom']();},'onShow':()=>{_0x1ae50f['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4fc36a=>{const _0x80b559=this['_standarizeRootsData'](_0x4fc36a,_0x1ae50f,_0x14c5f4);_0x3c65af['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x80b559,_0x1ae50f['config']['get']('trackChanges.preview.renderFunction'));}),_0x4abd87=new _0x4431a9(_0x49c443,[_0x3c65af['view']]),_0x4abd87['attachToDom'](),_0x4abd87['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1ae50f['once']('destroy',()=>{_0x4abd87['detachFromDom']();});const _0x771462=_0x3c65af['view']['headerView']['class'];_0x3c65af['view']['headerView']['class']=_0x771462?_0x771462+'\x20ck-reset_all':'ck-reset_all',_0x3c65af['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x3c65af['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x534afd=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x449168=_0x534afd['previewMode'],_0x54d136={};if('$labels'===_0x449168){for(const _0x2554b9 of _0x534afd['getMergeFieldsIds']())_0x54d136[_0x2554b9]=_0x534afd['getLabel'](_0x2554b9)||_0x2554b9;}else{const _0x440f7e='$defaultValues'===_0x449168?_0x534afd['getDefaultValues']():_0x534afd['getDataSetValues'](_0x449168,!0x0);for(const _0x43bc0c of Object['entries'](_0x440f7e)){const [_0x2bbb92,_0x234dca]=_0x43bc0c;_0x54d136[_0x2bbb92]=null!==_0x234dca?_0x234dca:_0x534afd['getLabel'](_0x2bbb92)||_0x2bbb92;}}return{'mergeFieldsData':_0x54d136};}['_standarizeRootsData'](_0x43419e,_0x401343,_0x47a299){let _0x5ba859;if('string'==typeof _0x43419e){const _0x3a6516=_0x401343['model']['document']['getRootNames']()[0x0];_0x5ba859={[_0x3a6516]:_0x43419e};}else _0x5ba859=_0x43419e;const _0x169657=this['_fixMediaEmbeds'](_0x5ba859,_0x401343),_0x5aade6=function(_0x51985b,_0x21f1d1){for(const [_0x3dcbee,_0xe2321a]of _0x51985b)_0xe2321a['classes']=_0x21f1d1[_0x3dcbee]['classList']['value']['replace']('ck-focused','');return _0x51985b;}(this['_sortRoots'](_0x401343)['reduce']((_0x57c7be,_0x34621b)=>(_0x57c7be['push']([_0x34621b,{'content':_0x169657[_0x34621b],'classes':''}]),_0x57c7be),[]),_0x47a299);return _0x5aade6;}['_fixMediaEmbeds'](_0xf8bd8d,_0x32e466){if(!_0x32e466['plugins']['has']('MediaEmbedEditing'))return _0xf8bd8d;const _0x531bda=_0x32e466['plugins']['get']('MediaEmbedEditing');for(const [_0x523d29,_0x28c641]of Object['entries'](_0xf8bd8d)){const _0x517a13=document['createElement']('div');_0x517a13['innerHTML']=_0x28c641,(_0x517a13['querySelectorAll']('figure.media')['forEach'](_0x317711=>{const _0x411bde=_0x317711['querySelector']('oembed');if(_0x411bde){const _0x38018a=_0x411bde['getAttribute']('url');if(_0x38018a){const _0x94fef1=_0x531bda['registry']['getMediaViewElement'](new _0x5c1fbc(_0x32e466['editing']['view']['document']),_0x38018a,{'elementName':'','renderForEditingView':!0x0}),_0x8b7122=document['createElement']('div');_0x8b7122['classList']['add']('ck-media__wrapper'),_0x94fef1['render'](_0x8b7122,_0x32e466['editing']['view']['domConverter']),_0x411bde['replaceWith'](_0x8b7122);}}}),_0xf8bd8d[_0x523d29]=_0x517a13['innerHTML']);}return _0xf8bd8d;}['_sortRoots'](_0x29289b){if(!function(_0x4feb22){return void 0x0!==_0x4feb22['getRootsAttributes'];}(_0x29289b))return _0x29289b['model']['document']['getRootNames']();const _0x2385b7=[],_0x20e9a7=new Map();for(const _0x18c8ae of _0x29289b['model']['document']['getRootNames']()){const _0x3f0a68=_0x29289b['editing']['view']['getDomRoot'](_0x18c8ae)['getClientRects']()['item'](0x0);_0x2385b7['push'](_0x18c8ae),_0x20e9a7['set'](_0x18c8ae,_0x3f0a68);}return _0x2385b7['sort']((_0x179c3b,_0x461083)=>{const _0x30dba1=_0x20e9a7['get'](_0x179c3b),_0x130818=_0x20e9a7['get'](_0x461083);return _0x30dba1['y']-_0x130818['y']||_0x30dba1['x']-_0x130818['x'];}),_0x2385b7;}}class Xe extends _0x282945{static get['requires'](){return[ce,_0x4d6eed];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4080ef){super(_0x4080ef),_0x4080ef['commands']['add']('previewFinalContent',new ae(this['editor'])),_0x4080ef['config']['define']('trackChanges.preview.renderFunction',(_0x29eaa3,_0x12a3bc)=>{for(const _0x1c63c1 of _0x12a3bc)_0x29eaa3['appendChild'](_0x1c63c1);});}}export{T as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,O as DiscardSuggestionCommand,x as ExecuteOnAllSuggestionsCommand,E as ExecuteOnSelectedSuggestionsCommand,ae as PreviewFinalContentCommand,R as Suggestion,U as SuggestionDescriptionFactory,Te as SuggestionThreadView,Le as SuggestionView,Ve as TrackChanges,B as TrackChangesCommand,ce as TrackChangesData,ze as TrackChangesDataGetter,d as TrackChangesEditing,Xe as TrackChangesPreview,u as TrackChangesUI};
23
+ import{Command as _0x38e29d,Plugin as _0x44fd37,PendingActions as _0x49aa4c}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0xd89ffd,ObservableMixin as _0x138e14,uid as _0x5b7b63,priorities as _0x5aa02d,insertToPriorityArray as _0x3f1d12,toArray as _0x264178,logWarning as _0x3cddc9,getEnvKeystrokeText as _0x3456f1,FocusTracker as _0x41869d,KeystrokeHandler as _0x191f71,Collection as _0x355574}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x326a17,IconCancel as _0x36578a,IconTrackChanges as _0x332e69}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0xd4bd1a,View as _0x3eac6a,ViewCollection as _0x589a45,FocusCycler as _0x20a876,UIModel as _0x5caf39,createDropdown as _0x51d2fd,SplitButtonView as _0x2814af,addListToDropdown as _0x3835f2,MenuBarMenuView as _0x4c4b2c,MenuBarMenuListView as _0x4488be,ListSeparatorView as _0x44126c,MenuBarMenuListItemView as _0x1653c2,MenuBarMenuListItemButtonView as _0x501214,BodyCollection as _0x532d5a,Dialog as _0x5076e4}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x42acd4,DocumentCompare as _0x42d159,hashObject as _0x3d5284,surroundingMarkersDetector as _0x200985,FOCUS_ANNOTATION_KEYSTROKE as _0x332c58,AriaDescriptionView as _0x4491ed,setupThreadKeyboardNavigation as _0x1df716,trimHtml as _0x2e8b36,UserView as _0x27eb11,LateFocusButtonView as _0x166d5a,getDateTimeFormatter as _0x274625,getAllMarkersDomElementsSorted as _0x32e540,sanitizeEditorConfig as _0x18337b}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x23a550,ModelLiveRange as _0x39adac,ModelLivePosition as _0x55add0,ModelPosition as _0x3376f5,ModelRange as _0x345d35,_DetachOperation as _0x75aadc,ViewDowncastWriter as _0x15b0fe}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3371bf,toWidget as _0x1caa32}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x567142,set as _0x5523e3,isEqual as _0x28590f,unset as _0x4c8289,omit as Gt}from'es-toolkit/compat';import{Delete as _0x142b68,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0xd9c1a}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0xd7513a}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x38e29d{['_enabledCommands'];constructor(_0x40bb79,_0x379791){super(_0x40bb79),this['_enabledCommands']=_0x379791,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 _0x153b77 of this['editor']['commands']['commands']())_0x153b77['affectsData']&&!this['_enabledCommands']['has'](_0x153b77)&&_0x153b77['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xcabd45 of this['editor']['commands']['commands']())_0xcabd45['affectsData']&&!this['_enabledCommands']['has'](_0xcabd45)&&_0xcabd45['clearForceDisabled']('TrackChangesCommand');}}class T extends _0x38e29d{['_suggestions'];constructor(_0x2675f6,_0x3178a9){super(_0x2675f6),this['_suggestions']=_0x3178a9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1470f3){const _0x5fe71=this['_suggestions']['get'](_0x1470f3);if(!_0x5fe71)throw new _0xd89ffd('track-changes-accept-suggestion-not-found',this);const _0x13863c=_0x5fe71['getRanges']();this['editor']['model']['canEditAt'](_0x13863c)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x5fe71);}}class O extends _0x38e29d{['_suggestions'];constructor(_0xd44880,_0x428777){super(_0xd44880),this['_suggestions']=_0x428777,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3fc65b){const _0x24ff2e=this['_suggestions']['get'](_0x3fc65b);if(!_0x24ff2e)throw new _0xd89ffd('track-changes-discard-suggestion-not-found',this);const _0xfffba2=_0x24ff2e['getRanges']();this['editor']['model']['canEditAt'](_0xfffba2)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x24ff2e);}}function ls(_0x1cfd22,_0x386fd3){let _0x4f8562='';return _0x4f8562+=_0x1cfd22['split']('*')['map']((_0x1857b8,_0x3677c1)=>_0x3677c1%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+tn(_0x1857b8)+'</span>':tn(_0x1857b8))['join'](''),_0x386fd3&&(_0x4f8562+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x386fd3['value']+'\x22\x20title=\x22'+_0x386fd3['title']+'\x22></span>'),_0x4f8562;}function tn(_0x485b40){const _0x5d3534=document['createElement']('span');return _0x5d3534['innerText']=_0x485b40,_0x5d3534['innerHTML'];}function ts(_0x51d8d6){return _0x51d8d6['sort']((_0x39c7b4,_0x55b9dd)=>'attribute'===_0x39c7b4['type']&&'attribute'!==_0x55b9dd['type']?-0x1:'attribute'!==_0x39c7b4['type']&&'attribute'===_0x55b9dd['type']?0x1:'deletion'==_0x39c7b4['type']&&'deletion'!=_0x55b9dd['type']?-0x1:'deletion'!=_0x39c7b4['type']&&'deletion'==_0x55b9dd['type']?0x1:0x0);}function to(_0x21e5fa,_0x1ba371){let _0x3edf3f,_0x16c575=0x0;const _0x113754=[],_0x1d1827=_0x1ba371['schema'];for(;_0x16c575<_0x21e5fa['length'];){const _0x25c9e4=_0x21e5fa[_0x16c575],_0x2807ee=_0x21e5fa[_0x16c575+0x1];_0x3edf3f||(_0x3edf3f=_0x1ba371['createPositionBefore'](_0x25c9e4)),nn(_0x1ba371,_0x25c9e4,_0x2807ee)||(_0x113754['push'](_0x1ba371['createRange'](_0x3edf3f,_0x1d1827['isObject'](_0x25c9e4)?_0x1ba371['createPositionAfter'](_0x25c9e4):_0x1ba371['createPositionAt'](_0x25c9e4,'end'))),_0x3edf3f=null),_0x16c575++;}return _0x113754;}function nn(_0xf80970,_0x527d1a,_0x2e3c76){if(!_0x2e3c76)return!0x1;const _0xa7f3e6=_0xf80970['createPositionAfter'](_0x527d1a),_0xd1b2f8=_0xf80970['createPositionBefore'](_0x2e3c76);return _0xa7f3e6['isTouching'](_0xd1b2f8);}function rs(_0xf70ab4,_0x19417a,_0x4ee1a7){for(;_0x4ee1a7['length'];){const _0x57e5a5=_0x4ee1a7['splice'](0x0,0x64);_0xf70ab4['change'](()=>{for(const _0x1040c7 of _0x57e5a5)_0x1040c7['isInContent']&&_0x19417a['execute'](_0x1040c7['id']);});}}class x extends _0x38e29d{['_command'];['_suggestions'];constructor(_0x351bb3,_0x25a970,_0x1887f2){super(_0x351bb3),this['_command']=_0x25a970,this['_suggestions']=_0x1887f2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3168f4=Array['from'](this['_suggestions']['values']())['some'](_0x6b8b9f=>_0x6b8b9f['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3168f4;}['execute'](){const _0x388039=ts(Array['from'](this['_suggestions']['values']()));for(const _0x115551 of _0x388039){const _0x357491=_0x115551['getRanges']();if(!this['editor']['model']['canEditAt'](_0x357491))return;}rs(this['editor']['model'],this['_command'],_0x388039);}}class E extends _0x38e29d{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3738f6,_0x3c4ee4,_0x2f8726){super(_0x3738f6),this['_command']=_0x3c4ee4,this['_suggestions']=_0x2f8726,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x38ae44=this['editor']['model']['document']['selection'],_0x6be3f9=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x397ce6,_0x4bb955){const _0x3e79a5=Array['from'](_0x397ce6['getRanges']()),_0x4d110b=new Set();for(const _0x4346d7 of _0x4bb955)if(_0x4346d7['isInContent']){for(const _0xdd780c of _0x3e79a5)for(const _0x233cbc of _0x4346d7['getRanges']())(_0xdd780c['isIntersecting'](_0x233cbc)||_0x397ce6['isCollapsed']&&!_0x4346d7['isMultiRange']&&_0x4346d7['next']&&_0x233cbc['end']['isTouching'](_0xdd780c['start']))&&_0x4d110b['add'](_0x4346d7);}return _0x4d110b;}(_0x38ae44,_0x6be3f9),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xeacb5f=ts(Array['from'](this['_selectedSuggestions']));for(const _0x29c309 of _0xeacb5f){const _0xce1989=_0x29c309['getRanges']();if(!this['editor']['model']['canEditAt'](_0xce1989))return;}rs(this['editor']['model'],this['_command'],_0xeacb5f);}}class R extends/* #__PURE__ -- @preserve */
24
+ _0x138e14(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2757eb,_0x223b61){super(),this['id']=_0x223b61['id'],this['type']=_0x223b61['type'],this['subType']=_0x223b61['subType']||null,this['author']=_0x223b61['author'],this['creator']=_0x223b61['creator']||_0x223b61['author'],this['isExternal']=Boolean(_0x223b61['attributes']&&_0x223b61['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x223b61['originalSuggestionId']||null,this['_model']=_0x2757eb,this['_onAccept']=_0x223b61['onAccept'],this['_onDiscard']=_0x223b61['onDiscard'],this['_onAttributesChange']=_0x223b61['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x223b61['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 _0x570862=this;for(;_0x570862['previous'];)_0x570862=_0x570862['previous'];return _0x570862;}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'](_0x482528){this['_markerNames']['add'](_0x482528);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x305b1f=>this['_model']['markers']['get'](_0x305b1f))['filter'](_0x516e15=>_0x516e15);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1e324c=>{for(const _0xbd602a of this['getMarkers']())_0x1e324c['removeMarker'](_0xbd602a);}),this['_markerNames']['clear']();}['removeMarker'](_0x43227c){this['_model']['change'](_0xbe7a43=>{_0xbe7a43['removeMarker'](_0x43227c);}),this['_markerNames']['delete'](_0x43227c);}['addRange'](_0x51f36e){const _0x2c7e87='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+R['getMultiRangeId']();this['addMarkerName'](_0x2c7e87),this['_model']['change'](_0x18d72f=>{_0x18d72f['addMarker'](_0x2c7e87,{'range':_0x51f36e,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5d2087){for(const _0x3631ae of this['getRanges']())if(_0x3631ae['isIntersecting'](_0x5d2087))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x594559=>_0x594559['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2471e7,_0x43a77f)=>[..._0x2471e7,..._0x43a77f['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x484dbe=this['getRanges']();if(0x1!=_0x484dbe['length'])return null;const _0x38ef93=_0x484dbe[0x0],_0x11cc34=_0x38ef93['start']['nodeAfter'],_0x53599d=_0x38ef93['end']['nodeBefore'];return _0x11cc34 instanceof _0x23a550?_0x11cc34!=_0x53599d?null:_0x11cc34: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 _0x495d4b=[];let _0x2170eb=this['head'];for(;_0x2170eb;)_0x495d4b['push'](_0x2170eb),_0x2170eb=_0x2170eb['next'];return _0x495d4b;}['setAttribute'](_0x22719b,_0x339f8c){const _0x5f23d8=_0x567142(this['attributes']);_0x5523e3(_0x5f23d8,_0x22719b,_0x339f8c),_0x28590f(_0x5f23d8,this['attributes'])||(this['attributes']=_0x5f23d8,this['_onAttributesChange'](_0x5f23d8));}['removeAttribute'](_0x5f547a){const _0x4f53a5=_0x567142(this['attributes']);_0x4c8289(_0x4f53a5,_0x5f547a),_0x28590f(_0x4f53a5,this['attributes'])||(this['attributes']=_0x4f53a5,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 _0x5b7b63()['substr'](0x1,0x5);}}function o(_0x21f839,_0x4323f7,_0x21113e){const _0x5cebc7=_0x21f839['t'],t=_0x21f839['t'];switch(_0x4323f7){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',_0x21113e);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x21113e);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x21113e);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x21113e);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x21113e);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',_0x21113e);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x21113e);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',_0x21113e);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x21113e);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x21113e);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x21113e);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x21113e);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x21113e);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x21113e);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x21113e);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x21113e);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x21113e);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x21113e);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x21113e);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x21113e);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x21113e);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x21113e);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x21113e);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x21113e);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x21113e);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'},_0x21113e);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x21113e);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x21113e);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x21113e);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x21113e);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x21113e);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x21113e);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x21113e);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'},_0x21113e);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x21113e);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x21113e);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x21113e);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x21113e);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'},_0x21113e);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x21113e);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'},_0x21113e);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'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'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'},_0x21113e);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x21113e);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'},_0x21113e);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x21113e);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'},_0x21113e);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x21113e);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x21113e);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'},_0x21113e);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x21113e);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 _0x5cebc7({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x21113e);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5cebc7({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x21113e);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x21113e);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'},_0x21113e);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'},_0x21113e);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'},_0x21113e);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4323f7;}}class U{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x591fd5,_0x33f694){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x591fd5,this['_locale']=_0x33f694;}['getDescriptions'](_0xe2d9f4){const _0x1a9be2=[],_0x309bad=new Set(),_0x3c5b24=new Set();for(let _0x47d98f=0x0;_0x47d98f<_0xe2d9f4['length'];_0x47d98f++){const _0x156198=_0xe2d9f4[_0x47d98f];if(!_0x156198['isInContent'])continue;const _0x4e2432=this['_handleCustomCallbackDescription'](_0x156198);if(_0x4e2432){if(null!=_0x156198['subType']){if(_0x309bad['has'](_0x156198['subType']))continue;_0x309bad['add'](_0x156198['subType']);}_0x1a9be2['push'](_0x4e2432);}else{if('attribute'==_0x156198['type']){const _0x18f48b=_0x156198['data']['key'];if(_0x3c5b24['has'](_0x18f48b))continue;_0x3c5b24['add'](_0x156198['data']['key']),_0x18f48b==m?this['_handleRenameSuggestionDescription'](_0x1a9be2,_0x156198):this['_handleAttributeSuggestionDescription'](_0x1a9be2,_0x156198);continue;}'insertion'!=_0x156198['type']&&'deletion'!=_0x156198['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1a9be2,_0x156198,_0xe2d9f4[_0x47d98f+0x1]);}}return this['_resolveDescriptionItems'](_0x1a9be2);}['registerDescriptionCallback'](_0x7c7a13){this['_customCallbacks']['push'](_0x7c7a13);}['registerElementLabel'](_0x24076e,_0x129287,_0x56359b=_0x5aa02d['normal']){'function'==typeof _0x24076e?_0x3f1d12(this['_itemLabelsCallbacks'],{'matchingCallback':_0x24076e,'label':_0x129287,'priority':_0x56359b}):this['_itemLabels']['set'](_0x24076e,_0x129287);}['registerAttributeLabel'](_0x41d054,_0x1e4aea){this['_attributeLabels']['set'](_0x41d054,_0x1e4aea);}['getItemLabel'](_0xaf59e9,_0x3d334d=0x1){let _0x1c8b06;for(const _0x5dd993 of this['_itemLabelsCallbacks'])if(_0x5dd993['matchingCallback'](_0xaf59e9)){_0x1c8b06=_0x5dd993['label'];break;}return _0x1c8b06||(_0x1c8b06=this['_itemLabels']['get'](_0xaf59e9['name'])),_0x1c8b06?_0x1c8b06(_0x3d334d):0x1!==_0x3d334d?_0x3d334d+'\x20'+_0xaf59e9['name']+'s':''+_0xaf59e9['name'];}['_addDescriptionItems'](_0x4909e5,_0x3cdb5b){const _0x121506=_0x3cdb5b['getFirstRange']()['getWalker'](),_0x288a1a='insertion'==_0x3cdb5b['type']?'add':'remove';for(const _0x433940 of _0x121506){const _0x28b2a5=_0x433940['item'],_0x1f1a01=_0x4909e5[_0x4909e5['length']-0x1];if(_0x28b2a5['is']('$textProxy'))_0x1f1a01&&_0x1f1a01['type']['indexOf']('Container')>-0x1&&_0x4909e5['pop'](),_0x1f1a01&&'text'==_0x1f1a01['type']?_0x1f1a01[_0x288a1a]+=_0x28b2a5['data']:_0x4909e5['push']({'type':'text','add':'add'==_0x288a1a?_0x28b2a5['data']:'','remove':'remove'==_0x288a1a?_0x28b2a5['data']:''});else{if(this['_schema']['isObject'](_0x28b2a5)){const _0x365887=_0x28b2a5;if(_0x1f1a01&&_0x1f1a01['type']['indexOf']('Container')>-0x1&&_0x4909e5['pop'](),'elementEnd'==_0x433940['type'])continue;_0x1f1a01&&_0x1f1a01['type']==_0x288a1a+'Object'&&_0x1f1a01['element']['name']==_0x365887['name']?_0x1f1a01['quantity']++:_0x4909e5['push']({'type':_0x288a1a+'Object','element':_0x365887,'quantity':0x1}),_0x121506['skip'](_0x52b9f6=>!('elementEnd'==_0x52b9f6['type']&&_0x52b9f6['item']==_0x28b2a5));}else{if(this['_schema']['checkChild'](_0x28b2a5,'$text')||_0x28b2a5['is']('element','softBreak')){const _0x56614f=_0x28b2a5;if('add'==_0x288a1a&&'elementStart'==_0x433940['type']||'remove'==_0x288a1a&&'elementEnd'==_0x433940['type'])continue;if(_0x1f1a01&&-0x1==_0x1f1a01['type']['indexOf']('Container')){'text'==_0x1f1a01['type']&&(_0x1f1a01[_0x288a1a]+='\x0a');continue;}let _0x558a90;if(_0x558a90='add'==_0x288a1a?_0x56614f['nextSibling']&&!this['_schema']['isObject'](_0x56614f['nextSibling'])?_0x56614f['nextSibling']:null:_0x56614f['previousSibling']&&!this['_schema']['isObject'](_0x56614f['previousSibling'])?_0x56614f['previousSibling']:null,_0x56614f['isEmpty']||_0x558a90&&_0x558a90['isEmpty']){const _0x58ed4e=_0x558a90&&_0x558a90['isEmpty']?_0x558a90:_0x56614f;_0x1f1a01&&_0x1f1a01['type']==_0x288a1a+'EmptyContainer'&&_0x1f1a01['element']['name']==_0x58ed4e['name']?_0x1f1a01['quantity']++:_0x4909e5['push']({'type':_0x288a1a+'EmptyContainer','element':_0x58ed4e,'quantity':0x1});}else _0x4909e5['push']({'type':_0x288a1a+'Container','element':_0x56614f});}}}}}['_resolveDescriptionItems'](_0x1e0b0a){const _0x2e9c1c=this['_locale'],_0x25e43e=[],_0x1d6a4c=[],_0x4af656=[];for(const _0x4c1d16 of _0x1e0b0a)switch(_0x4c1d16['type']){case'text':if(_0x4c1d16['add']=_0x4c1d16['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4c1d16['remove']=_0x4c1d16['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4c1d16['add']&&''!=_0x4c1d16['remove']){_0x25e43e['push']({'type':'replace','content':o(_0x2e9c1c,'REPLACE_TEXT',['\x22'+_0x4c1d16['remove']+'\x22','\x22'+_0x4c1d16['add']+'\x22'])});continue;}if(null!=_0x4c1d16['add']['match'](/^ +$/)){_0x25e43e['push']({'type':'insertion','content':o(_0x2e9c1c,'*Insert:*\x20%0',o(_0x2e9c1c,'ELEMENT_SPACE',_0x4c1d16['add']['length']))});continue;}if(null!=_0x4c1d16['remove']['match'](/^ +$/)){_0x25e43e['push']({'type':'deletion','content':o(_0x2e9c1c,'*Remove:*\x20%0',o(_0x2e9c1c,'ELEMENT_SPACE',_0x4c1d16['remove']['length']))});continue;}if(''!=_0x4c1d16['add']){_0x25e43e['push']({'type':'insertion','content':o(_0x2e9c1c,'*Insert:*\x20%0','\x22'+_0x4c1d16['add']+'\x22')});continue;}_0x25e43e['push']({'type':'deletion','content':o(_0x2e9c1c,'*Remove:*\x20%0','\x22'+_0x4c1d16['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x25e43e['push']({'type':'insertion','content':o(_0x2e9c1c,'*Insert:*\x20%0',this['getItemLabel'](_0x4c1d16['element'],_0x4c1d16['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x25e43e['push']({'type':'deletion','content':o(_0x2e9c1c,'*Remove:*\x20%0',this['getItemLabel'](_0x4c1d16['element'],_0x4c1d16['quantity']))});continue;case'addContainer':_0x25e43e['push']({'type':'insertion','content':o(_0x2e9c1c,'*Split:*\x20%0',this['getItemLabel'](_0x4c1d16['element'],_0x4c1d16['quantity']))});continue;case'removeContainer':_0x25e43e['push']({'type':'deletion','content':o(_0x2e9c1c,'*Merge:*\x20%0',this['getItemLabel'](_0x4c1d16['element'],_0x4c1d16['quantity']))});continue;case'addFormat':_0x1d6a4c['push'](_0x4c1d16['key']);continue;case'removeFormat':_0x4af656['push'](_0x4c1d16['key']);continue;default:_0x25e43e['push'](_0x4c1d16);}if(_0x1d6a4c['length']){const _0x37d294=_0x1d6a4c['map'](_0x2526c3=>this['_attributeLabels']['has'](_0x2526c3)?this['_attributeLabels']['get'](_0x2526c3):_0x2526c3)['join'](',\x20');_0x25e43e['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x37d294)});}if(_0x4af656['length']){const _0x4be925=_0x4af656['map'](_0x2358b2=>this['_attributeLabels']['has'](_0x2358b2)?this['_attributeLabels']['get'](_0x2358b2):_0x2358b2)['join'](',\x20');_0x25e43e['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4be925)});}return _0x25e43e;}['_handleCustomCallbackDescription'](_0x5e4a6d){for(const _0xd7f15e of this['_customCallbacks']){const _0x67a764=_0xd7f15e(_0x5e4a6d);if(_0x67a764&&'type'in _0x67a764)return _0x67a764;}}['_handleAttributeSuggestionDescription'](_0xa9034e,_0x56565f){const _0x32e6e9=_0x56565f['data'],_0x123391=void 0x0===_0x32e6e9['newValue']?'removeFormat':'addFormat';_0xa9034e['push']({'type':_0x123391,'key':_0x32e6e9['key']});}['_handleRenameSuggestionDescription'](_0xc0463a,_0x46eb67){_0xc0463a['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x46eb67['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xaeaeb8,_0x1549c2,_0x2f91a1){if(this['_addDescriptionItems'](_0xaeaeb8,_0x1549c2),_0x2f91a1&&_0x2f91a1['getFirstRange']()&&!_0x1549c2['getFirstRange']()['end']['isEqual'](_0x2f91a1['getFirstRange']()['start'])){const _0x30ce09=_0xaeaeb8[_0xaeaeb8['length']-0x1],_0x49790e='insertion'==_0x1549c2['type']?'add':'remove';_0x30ce09&&'text'==_0x30ce09['type']&&(_0x30ce09[_0x49790e]+='\x0a');}}}class V extends _0x44fd37{['afterInit'](){const _0x329fd8=this['editor'],_0x1d90d2=_0x329fd8['plugins']['get']('TrackChangesEditing');_0x329fd8['commands']['get']('showAIAssistant')&&_0x1d90d2['enableCommand']('showAIAssistant');}}class F extends _0x44fd37{['afterInit'](){const _0x2577a5=this['editor'],_0x121689=_0x2577a5['locale'];if(!_0x2577a5['plugins']['has']('AlignmentEditing'))return;const _0xcb720b=_0x2577a5['plugins']['get']('TrackChangesEditing');_0xcb720b['enableDefaultAttributesIntegration']('alignment'),_0xcb720b['registerBlockAttribute']('alignment'),_0xcb720b['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x121689,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17b71b=this['editor'],_0x2cc419=_0x17b71b['locale'];_0x17b71b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8c7586=>{if('formatBlock'!=_0x8c7586['type'])return;const {data:_0x1513ad}=_0x8c7586;if(_0x1513ad&&'alignment'==_0x1513ad['commandName']){const _0x392caf=_0x1513ad['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2cc419,'*Format:*\x20%0',function(_0x5bfa7b){switch(_0x5bfa7b){case'left':return o(_0x2cc419,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2cc419,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2cc419,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2cc419,'FORMAT_JUSTIFY_TEXT');}}(_0x392caf))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x44fd37{['afterInit'](){const _0xa31fc6=this['editor'],_0x2c62a7=_0xa31fc6['plugins']['get']('TrackChangesEditing'),_0x5042bc=_0xa31fc6['locale'];for(const _0x5136ca of ti){if(!_0xa31fc6['plugins']['has'](_0x5136ca))continue;const _0x210ac9=_0x5136ca['slice'](0x0,-0x7)['toLowerCase'](),_0x2a6e5f='FORMAT_'+_0x210ac9['toUpperCase']();_0x2c62a7['enableDefaultAttributesIntegration'](_0x210ac9),_0x2c62a7['registerInlineAttribute'](_0x210ac9),_0x2c62a7['descriptionFactory']['registerAttributeLabel'](_0x210ac9,o(_0x5042bc,_0x2a6e5f));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d6323=this['editor'],_0x1770a8=_0x5d6323['locale'],_0x2d7fab=_0x5d6323['plugins']['get']('TrackChangesEditing');function _0x3ca09a(_0x10359e,_0x1a8fa0){_0x2d7fab['descriptionFactory']['registerDescriptionCallback'](_0x48b634=>{if('formatInline'!=_0x48b634['type'])return;const {data:_0x58ecad}=_0x48b634;return _0x58ecad&&_0x58ecad['commandName']===_0x10359e?_0x58ecad['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1770a8,'*Format:*\x20%0',_0x1a8fa0)}:{'type':'format','content':o(_0x1770a8,'*Remove\x20format:*\x20%0',_0x1a8fa0)}:void 0x0;});}_0x3ca09a('bold',o(_0x1770a8,'FORMAT_BOLD')),_0x3ca09a('italic',o(_0x1770a8,'FORMAT_ITALIC')),_0x3ca09a('underline',o(_0x1770a8,'FORMAT_UNDERLINE')),_0x3ca09a('code',o(_0x1770a8,'FORMAT_CODE')),_0x3ca09a('strikethrough',o(_0x1770a8,'FORMAT_STRIKETHROUGH')),_0x3ca09a('subscript',o(_0x1770a8,'FORMAT_SUBSCRIPT')),_0x3ca09a('superscript',o(_0x1770a8,'FORMAT_SUPERSCRIPT'));}}class L extends _0x44fd37{['afterInit'](){const _0x1e2c99=this['editor'],_0x1092dd=_0x1e2c99['locale'];if(!_0x1e2c99['plugins']['has']('BlockQuoteEditing'))return;const _0x32d82e=_0x1e2c99['plugins']['get']('TrackChangesEditing'),_0x4f6dba=this['editor']['commands']['get']('blockQuote');_0x32d82e['enableCommand']('blockQuote',(_0x13fcec,_0x48c28e={})=>{const _0x2de05d=this['editor']['model']['document']['selection'],_0x110e77=_0x48c28e&&void 0x0!==_0x48c28e['forceValue']?_0x48c28e['forceValue']:!_0x4f6dba['value'];let _0x22f92f=[];if(_0x110e77){const _0xd65e56=Array['from'](_0x2de05d['getSelectedBlocks']())['filter'](_0x4c798c=>oo(_0x4c798c)||function(_0x28422d,_0x2b4c28){const _0x122a15=_0x2b4c28['checkChild'](_0x28422d['parent'],'blockQuote'),_0x439956=_0x2b4c28['checkChild'](['$root','blockQuote'],_0x28422d);return _0x122a15&&_0x439956;}(_0x4c798c,this['editor']['model']['schema']));_0x22f92f=to(_0xd65e56,_0x1e2c99['model']);}else{const _0x22b952=Array['from'](_0x2de05d['getSelectedBlocks']())['filter'](_0x2e1b4c=>oo(_0x2e1b4c));_0x22f92f=to(_0x22b952,_0x1e2c99['model']);}_0x1e2c99['model']['change'](()=>{for(const _0x5c6333 of _0x22f92f)_0x32d82e['markBlockFormat'](_0x5c6333,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x110e77}]});});}),_0x32d82e['descriptionFactory']['registerDescriptionCallback'](_0x208ff3=>{const {data:_0x3ec4e6}=_0x208ff3;if(_0x3ec4e6&&'blockQuote'==_0x3ec4e6['commandName']){const _0x2b0507=o(_0x1092dd,'ELEMENT_BLOCK_QUOTE');return _0x3ec4e6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1092dd,'*Set\x20format:*\x20%0',_0x2b0507)}:{'type':'format','content':o(_0x1092dd,'*Remove\x20format:*\x20%0',_0x2b0507)};}});}}function oo(_0x4f34d3){return'blockQuote'==_0x4f34d3['parent']['name'];}class J extends _0x44fd37{['afterInit'](){const _0x5a607e=this['editor'],_0x47ecdd=_0x5a607e['locale'],_0x275930=_0x5a607e['plugins']['get']('TrackChangesEditing');_0x5a607e['plugins']['has']('BookmarkEditing')&&(_0x275930['enableCommand']('insertBookmark'),_0x275930['enableDefaultAttributesIntegration']('updateBookmark'),_0x275930['registerBlockAttribute']('bookmarkId'),_0x275930['descriptionFactory']['registerDescriptionCallback'](_0xd86d28=>{if('insertion'!=_0xd86d28['type']&&'deletion'!=_0xd86d28['type']&&'attribute'!=_0xd86d28['type'])return;const _0x2959b2=_0xd86d28['getContainedElement']();if(null==_0x2959b2)return;if(!_0x2959b2['is']('element','bookmark'))return;const _0x17ea14=_0x2959b2['getAttribute']('bookmarkId');if('insertion'==_0xd86d28['type'])return{'type':'insertion','content':o(_0x47ecdd,'*Insert:*\x20%0','\x22'+_0x17ea14+'\x22\x20'+o(_0x47ecdd,'ELEMENT_BOOKMARK'))};if('deletion'==_0xd86d28['type'])return{'type':'deletion','content':o(_0x47ecdd,'*Remove:*\x20%0','\x22'+_0x17ea14+'\x22\x20'+o(_0x47ecdd,'ELEMENT_BOOKMARK'))};const {data:_0x5cd854}=_0xd86d28;if(!_0x5cd854||'bookmarkId'!=_0x5cd854['key'])return;return{'type':'format','content':o(_0x47ecdd,'*Set\x20bookmark:*\x20%0','\x22'+_0x5cd854['newValue']+'\x22')};}));}}class K extends _0x44fd37{['afterInit'](){const _0x482224=this['editor'];_0x482224['plugins']['has']('CaseChange')&&(_0x482224['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x482224['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x482224['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x44fd37{['afterInit'](){const _0x175c84=this['editor'];_0x175c84['commands']['get']('ckbox')&&_0x175c84['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0x44fd37{['afterInit'](){const _0x135d24=this['editor'];if(!_0x135d24['plugins']['has']('CodeBlock'))return;const _0x46f6d0=_0x135d24['plugins']['get']('TrackChangesEditing'),_0x150628=_0x135d24['locale'],_0x4e1e9c=_0x135d24['config']['get']('codeBlock')['languages'],_0x57bdc0=_0x135d24['commands']['get']('codeBlock');_0x46f6d0['enableCommand']('indentCodeBlock'),_0x46f6d0['enableCommand']('outdentCodeBlock'),_0x46f6d0['enableCommand']('codeBlock',(_0x214c5e,_0x1c327b={})=>{const _0x4b33b7=_0x135d24['model'],_0x2ac38b=_0x135d24['model']['document']['selection'],_0xc36d3f=_0x1c327b&&void 0x0!==_0x1c327b['forceValue']?_0x1c327b['forceValue']:!_0x57bdc0['value'];let _0x13f799;_0x1c327b['language']||(_0x1c327b['language']=_0x4e1e9c[0x0]['language']),_0x13f799=_0xc36d3f?Array['from'](_0x2ac38b['getSelectedBlocks']())['filter'](_0x21669a=>co(_0x21669a)||function(_0x3b1198,_0x4ce7da){if(_0x3b1198['is']('rootElement')||_0x4ce7da['isLimit'](_0x3b1198))return!0x1;return _0x4ce7da['checkChild'](_0x3b1198['parent'],'codeBlock');}(_0x21669a,_0x4b33b7['schema'])):Array['from'](_0x2ac38b['getSelectedBlocks']())['filter'](_0x40e31e=>co(_0x40e31e));const _0xd3814a=to(_0x13f799,_0x4b33b7);_0x4b33b7['change'](()=>{for(const _0x1aa9ce of _0xd3814a)_0x46f6d0['markBlockFormat'](_0x1aa9ce,{'commandName':'codeBlock','commandParams':[{..._0x1c327b,'forceValue':_0xc36d3f}],'formatGroupId':'blockName'});});}),(_0x46f6d0['descriptionFactory']['registerElementLabel']('codeBlock',_0x4ee3ee=>o(_0x150628,'ELEMENT_CODE_BLOCK',_0x4ee3ee)),_0x46f6d0['descriptionFactory']['registerDescriptionCallback'](_0x17c1e0=>{if('formatBlock'!=_0x17c1e0['type'])return;const _0x117e82=_0x150628['t'],{data:_0x2ad5f8}=_0x17c1e0;if(!_0x2ad5f8||'codeBlock'!=_0x2ad5f8['commandName'])return;const _0x5d5895=_0x2ad5f8['commandParams'][0x0]['language'],_0x590adc=_0x117e82(_0x4e1e9c['find'](_0x2b2e2a=>_0x2b2e2a['language']===_0x5d5895)['label'])['toLowerCase']();return _0x2ad5f8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x150628,'*Set\x20format:*\x20%0',o(_0x150628,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x590adc+')')}:{'type':'format','content':o(_0x150628,'*Remove\x20format:*\x20%0',o(_0x150628,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x1b1462){return'codeBlock'==_0x1b1462['name'];}class q extends _0x44fd37{['afterInit'](){const _0x4b50f4=this['editor'];if(!_0x4b50f4['plugins']['has']('CommentsEditing'))return;_0x4b50f4['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x56e4ac,_0x8ee079,_0x486bcf){const _0x28adc9=[];for(const _0x4e77c0 of _0x8ee079['getItems']())_0x4e77c0['hasAttribute'](_0x56e4ac)&&_0x28adc9['push'](_0x486bcf['createRangeOn'](_0x4e77c0));return _0x28adc9;}function Ge(_0x5035f4,_0x179020,{showActiveMarker:_0x3432ab=!0x0}={}){const _0x4bfe26=_0x5035f4['plugins']['get']('TrackChangesEditing');return(_0x984876,_0x1b03bc,_0x27a177)=>{if(!_0x27a177['consumable']['test'](_0x1b03bc['markerRange'],_0x984876['name']))return;const _0x1e2447=_0x1b03bc['markerRange']['getWalker'](),_0x20c41d=_0x1b03bc['markerRange']['start'],_0x4416cd=_0x5035f4['model']['schema'];let _0x25e39f=null,_0x56e1cb=null,_0x3f4a78=!0x1,_0x4545b0=!0x1;for(const _0x57a953 of _0x1e2447){const _0x513e2c=_0x57a953['item'];_0x3f4a78=_0x3f4a78||_0x4416cd['isContent'](_0x513e2c);const _0x22cafe=_0x27a177['mapper']['toViewElement'](_0x513e2c);if(_0x22cafe&&_0x22cafe['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x57a953['type']&&(_0x4416cd['isBlock'](_0x513e2c)&&!_0x4416cd['isLimit'](_0x513e2c)&&(_0x513e2c['nextSibling']||_0x20c41d['isAtEnd']?_0x25e39f&&_0x25e39f['parent']==_0x513e2c||(_0x25e39f=_0x513e2c,_0x1ad5bb(_0x57a953['previousPosition']),_0x4545b0=!0x0):_0x56e1cb=_0x56e1cb||_0x57a953['previousPosition']));}function _0x1ad5bb(_0xe3ec10){const {id:_0x1fff4f,authorId:_0x3288ed}=_0x4bfe26['_splitMarkerName'](_0x1b03bc['markerName']),_0x1d9259=_0x27a177['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x179020,'data-suggestion':_0x1fff4f,'data-author-id':_0x3288ed}),_0x25da56=_0x27a177['mapper']['toViewPosition'](_0xe3ec10);_0x3432ab&&_0x4bfe26['activeMarkers']['includes'](_0x1b03bc['markerName'])&&_0x27a177['writer']['addClass']('ck-suggestion-marker--active',_0x1d9259),_0x27a177['writer']['insert'](_0x25da56,_0x1d9259),_0x27a177['mapper']['bindElementToMarker'](_0x1d9259,_0x1b03bc['markerName']);}_0x3f4a78||_0x4545b0||!_0x56e1cb||_0x1ad5bb(_0x56e1cb);};}class z extends _0x44fd37{static get['requires'](){return[_0x142b68];}['init'](){const _0x547373=this['editor'],_0x39568d=_0x547373['plugins']['get']('TrackChangesEditing');_0x39568d['enableCommand']('delete');const _0x519996=_0x547373['commands']['get']('deleteForward');_0x39568d['enableCommand']('deleteForward',(_0x5c5b9e,_0x51a4eb={})=>{const _0x2a2a6f=_0x547373['model']['createSelection'](_0x547373['model']['document']['selection']);_0x2a2a6f['isCollapsed']&&_0x547373['model']['modifySelection'](_0x2a2a6f,{'direction':'forward','unit':_0x51a4eb['unit']});const _0x54b8e5=_0x2a2a6f['getFirstRange'](),_0x21c753=_0x39adac['fromRange'](_0x54b8e5);let _0x54f072;_0x5c5b9e(_0x51a4eb),_0x54f072='$graveyard'==_0x21c753['root']['rootName']?_0x547373['model']['createRange'](_0x54b8e5['start']):_0x547373['model']['createRange'](_0x21c753['start'],_0x21c753['end']),_0x21c753['detach'](),_0x547373['model']['enqueueChange'](_0x519996['buffer']['batch'],_0x134d7c=>{_0x519996['buffer']['lock'](),_0x134d7c['setSelection'](_0x134d7c['createRange'](_0x54f072['end'])),_0x519996['buffer']['unlock']();});}),_0x547373['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ge(_0x547373,'merge'),{'priority':'high'}),_0x547373['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x54274c,_0x241906,_0x2eb4cc)=>{_0x2eb4cc['options']['showSuggestionHighlights']&&Ge(_0x547373,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x54274c,_0x241906,_0x2eb4cc);},{'priority':'high'}),_0x547373['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x219d2a,_0x1ac2f4,_0x5b0fb8)=>{const _0x5b96a4=_0x5b0fb8['mapper']['markerNameToElements'](_0x1ac2f4['markerName']);if(_0x5b96a4){for(const _0x4d2d95 of _0x5b96a4)_0x4d2d95['is']('uiElement')&&(_0x5b0fb8['mapper']['unbindElementFromMarkerName'](_0x4d2d95,_0x1ac2f4['markerName']),_0x5b0fb8['writer']['remove'](_0x4d2d95));}},{'priority':'high'});}}class Q extends _0x44fd37{['afterInit'](){const _0x595cc2=this['editor'];if(!_0x595cc2['plugins']['has']('ListEditing'))return;const _0x4831d2=_0x595cc2['locale'],_0x4a6c87=_0x595cc2['plugins']['get']('TrackChangesEditing'),_0x230823=_0x595cc2['plugins']['has']('TodoListEditing'),_0x4935a3=!!_0x595cc2['config']['get']('list.multiBlock');function _0x166e29(_0x5ab9d6){return{'type':'format','content':''+o(_0x4831d2,'*Set\x20format:*\x20%0',_0x5ab9d6)};}function _0x36e6f3(_0x585140){return{'type':'format','content':''+o(_0x4831d2,'*Remove\x20format:*\x20%0',_0x585140)};}_0x4a6c87['enableDefaultAttributesIntegration']('numberedList'),_0x4a6c87['enableDefaultAttributesIntegration']('bulletedList'),_0x4a6c87['enableDefaultAttributesIntegration']('customNumberedList'),_0x4a6c87['enableDefaultAttributesIntegration']('customBulletedList'),_0x4a6c87['enableDefaultAttributesIntegration']('indentList'),_0x4a6c87['enableDefaultAttributesIntegration']('outdentList'),_0x4a6c87['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4a6c87['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4a6c87['registerBlockAttribute']('listItemId'),_0x4a6c87['registerBlockAttribute']('listType'),_0x4a6c87['registerBlockAttribute']('listIndent'),_0x4935a3&&(_0x4a6c87['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4a6c87['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x230823&&(_0x4a6c87['enableDefaultAttributesIntegration']('todoList'),_0x4a6c87['enableDefaultAttributesIntegration']('checkTodoList'),_0x4a6c87['registerBlockAttribute']('todoListChecked'),_0x4a6c87['descriptionFactory']['registerDescriptionCallback'](_0x3dc6cb=>{const {data:_0x49a14c}=_0x3dc6cb;if(_0x49a14c&&'todoListChecked'==_0x49a14c['key'])return{'type':'format','content':_0x49a14c['newValue']?o(_0x4831d2,'*Check\x20item*'):o(_0x4831d2,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x31dfa2=>{if(_0x31dfa2['batch']['isUndo'])return!0x1;let _0x1e9b5c=!0x1;const _0x3fc6c6=_0x4a6c87['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4fceb5=>'todoListChecked'===_0x4a6c87['_getAttributeKey'](_0x4fceb5));for(const _0x57a403 of _0x3fc6c6){'todo'!=_0x57a403['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4a6c87['_findSuggestions'](_0x57a403['getFirstRange'](),'attribute')['find'](_0x301d1a=>'listType'===_0x4a6c87['_getAttributeKey'](_0x301d1a['suggestion']))||(_0x31dfa2['removeMarker'](_0x57a403['getFirstMarker']()),_0x1e9b5c=!0x0));}return _0x1e9b5c;})),_0x4a6c87['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4831d2,'FORMAT_INDENT'));const _0x35ab2d={'type':'format','content':''};_0x4a6c87['descriptionFactory']['registerDescriptionCallback'](_0x25f1b4=>{const {data:_0x45c452}=_0x25f1b4;if(!_0x45c452||'listType'!=_0x45c452['key'])return;let _0x5a7d45=_0x25f1b4['head'];for(;_0x5a7d45;){if(_0x5a7d45['data']&&(('listStyle'==_0x5a7d45['data']['key']||'listMarkerStyle'==_0x5a7d45['data']['key'])&&(_0x5a7d45['data']['newValue']&&'default'!=_0x5a7d45['data']['newValue']||'default'!=_0x5a7d45['data']['oldValue']&&!_0x45c452['newValue'])||!_0x4935a3&&_0x5a7d45['data']['key']==m))return _0x35ab2d;_0x5a7d45=_0x5a7d45['next'];}if(null==_0x45c452['newValue'])switch(_0x45c452['oldValue']){case'bulleted':return _0x36e6f3(o(_0x4831d2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x36e6f3(o(_0x4831d2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x36e6f3(o(_0x4831d2,'ELEMENT_TODO_LIST'));}switch(_0x45c452['newValue']){case'bulleted':return _0x166e29(o(_0x4831d2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x166e29(o(_0x4831d2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x166e29(o(_0x4831d2,'ELEMENT_TODO_LIST'));}}),_0x4a6c87['descriptionFactory']['registerDescriptionCallback'](_0x3c8b5b=>{const {data:_0x392160}=_0x3c8b5b;if(_0x392160&&'listIndent'==_0x392160['key'])return null==_0x392160['newValue']||null==_0x392160['oldValue']&&0x0==_0x392160['newValue']?_0x35ab2d:void 0x0;}),_0x4a6c87['descriptionFactory']['registerDescriptionCallback'](_0x500cab=>{if('attribute'!=_0x500cab['type'])return;const {data:_0x44dadb}=_0x500cab;if(!_0x44dadb||'listItemId'!=_0x44dadb['key'])return;const _0x23b5fe=Be(_0x500cab);return'newValue'==_0x23b5fe?{'type':'format','content':o(_0x4831d2,'*Merge:*\x20list\x20item')}:'oldValue'==_0x23b5fe?{'type':'format','content':o(_0x4831d2,'*Split:*\x20list\x20item')}:_0x35ab2d;}),_0x595cc2['model']['document']['registerPostFixer'](_0x3aa750=>this['listItemIdFixer'](_0x3aa750)),_0x595cc2['model']['document']['registerPostFixer'](_0x35ccd2=>this['noTrackChangesFixer'](_0x35ccd2)),_0x595cc2['model']['document']['on']('change:data',(_0x340a43,_0x144dbb)=>{if(_0x144dbb['isUndo']||!_0x144dbb['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4c5e79){if(_0x4c5e79['batch']['isUndo']||!_0x4c5e79['batch']['isLocal'])return!0x1;let _0x7102cd=!0x1;const _0x295a0f=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x409ca0=>_0x409ca0['data']&&'listItemId'==_0x409ca0['data']['key'])['filter'](_0x43ac20=>_0x43ac20['data']['newValue']&&_0x43ac20['data']['oldValue']);for(const _0x1f771c of _0x295a0f)Be(_0x1f771c)||(_0x4c5e79['removeMarker'](_0x1f771c['getFirstMarker']()),_0x7102cd=!0x0);return _0x7102cd;}['noTrackChangesFixer'](_0x195e3d){if(_0x195e3d['batch']['isUndo']||!_0x195e3d['batch']['isLocal'])return!0x1;const _0x46e56c=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x46e56c['trackChangesCommand']['value'])return!0x1;let _0x5629a1=!0x1;const _0x1c0928=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x406020=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4a4f76=>'attribute'==_0x4a4f76['type'])['filter'](_0xb5a536=>_0x1c0928['includes'](_0xb5a536['attributeKey']));if(0x0==_0x406020['length'])return _0x5629a1;for(const _0x228fb7 of _0x406020){const _0x502946=_0x46e56c['_findSuggestions'](_0x228fb7['range'],'attribute')['filter'](_0x4c6db2=>!_0x4c6db2['meta']['isNextTo'])['map'](_0x5e8453=>_0x5e8453['suggestion'])['filter'](_0x270665=>{const _0x1fd462=_0x46e56c['_getAttributeKey'](_0x270665);return _0x1c0928['includes'](_0x1fd462);});if(_0x502946['length']){for(const _0x5ca01c of _0x502946)_0x195e3d['removeMarker'](_0x5ca01c['getFirstMarker']());_0x5629a1=!0x0;}}return _0x5629a1;}['assureChains'](){const _0x133a6f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4023a3=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2a418e;const _0x1dc634=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x549fab=>{if(_0x549fab['data']['oldRange']||!_0x549fab['data']['newRange'])return null;if(!_0x549fab['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x10ff5b}=_0x133a6f['_splitMarkerName'](_0x549fab['name']);if(!_0x133a6f['hasSuggestion'](_0x10ff5b))return null;const _0x23f570=_0x133a6f['getSuggestion'](_0x10ff5b);return _0x4023a3['includes'](_0x23f570['data']['key']);})['map'](_0x321501=>{const {id:_0x51f8cb}=_0x133a6f['_splitMarkerName'](_0x321501['name']),_0x172059=_0x133a6f['getSuggestion'](_0x51f8cb);return _0x2a418e=_0x172059['attributes']['groupId'],_0x172059['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x1dc634['size'])return;const _0x5eb91c=_0x133a6f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3c8d9f=>'attribute'==_0x3c8d9f['type']&&_0x3c8d9f['data']&&_0x4023a3['includes'](_0x3c8d9f['data']['key'])&&_0x3c8d9f['attributes']['groupId']!=_0x2a418e)['map'](_0xdcf56c=>({'listItem':_0xdcf56c['getFirstRange']()['start']['nodeAfter'],'groupId':_0xdcf56c['attributes']['groupId']})),_0x2e509b=new Set();for(const {groupId:_0x31f304,listItem:_0x20f865}of _0x5eb91c)_0x1dc634['has'](_0x20f865)&&_0x2e509b['add'](_0x31f304);for(const _0x4c3e4d of _0x133a6f['getSuggestions']())_0x2e509b['has'](_0x4c3e4d['attributes']['groupId'])&&_0x4c3e4d['setAttribute']('groupId',_0x2a418e);}['_supportLegacySuggestions'](){const _0x38d0e6=this['editor'],_0x11cccc=_0x38d0e6['locale'],_0x115f1f=_0x38d0e6['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x115f1f['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x514375,_0x27692f){const _0x5ce8ff=[];for(let _0x2a4e3e of _0x514375)_0x2a4e3e['start']['nodeAfter']===_0x2a4e3e['end']['parent']&&(_0x2a4e3e=_0x38d0e6['model']['createRange'](_0x38d0e6['model']['createPositionAt'](_0x2a4e3e['start']['nodeAfter'],0x0))),_0x5ce8ff['push'](_0x2a4e3e);_0x38d0e6['model']['change'](_0xd6558=>{const _0x477329=_0x38d0e6['model']['document']['selection'],_0x5dd274=Array['from'](_0x477329['getRanges']())['map'](_0x3acccb=>_0x39adac['fromRange'](_0x3acccb));_0xd6558['setSelection'](_0x5ce8ff),_0x38d0e6['commands']['get'](_0x27692f['commandName'])['refresh'](),_0x27692f['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x38d0e6['execute'](_0x27692f['commandName'],..._0x27692f['commandParams']),_0xd6558['setSelection'](_0x5dd274);for(const _0x336e6a of _0x5dd274)_0x336e6a['detach']();});}),_0x115f1f['descriptionFactory']['registerElementLabel'](function(_0xa69017){const _0x3d0ac3=!_0x38d0e6['model']['schema']['isObject'](_0xa69017),_0x3bac12=_0xa69017['previousSibling'],_0x37d7f3=_0xa69017['nextSibling'],_0x13445f=_0xa69017['getAttribute']('listItemId'),_0x55adfb=!_0x3bac12||_0x3bac12['getAttribute']('listItemId')!==_0x13445f,_0x346301=!_0x37d7f3||_0x37d7f3['getAttribute']('listItemId')!==_0x13445f;return _0x3d0ac3&&Boolean(_0x13445f)&&_0x55adfb&&_0x346301;},_0x3cf062=>o(_0x11cccc,'ELEMENT_LIST_ITEM',_0x3cf062));}['_registerLegacyDescription'](){const _0x4fb819=this['editor'],_0x12d922=_0x4fb819['locale'];function _0x445a07(_0x13e41e){const _0x45633e=_0x4fb819['commands']['get']('bulletedList')['value'],_0x44cf79=_0x4fb819['commands']['get']('numberedList')['value'];return'numberedList'===_0x13e41e?_0x45633e:_0x44cf79;}_0x4fb819['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x45818e){if('formatBlock'!=_0x45818e['type'])return;const {data:_0x37f58e}=_0x45818e;if(!_0x37f58e)return;let _0x7014ec,_0x3a9659,_0x40bc58,_0x12a46f;switch(_0x37f58e['commandName']){case'bulletedList':_0x40bc58=_0x37f58e['commandParams'][0x0]['forceValue'],_0x12a46f=_0x445a07(_0x37f58e['commandName']),_0x7014ec=_0x40bc58?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x12a46f&&_0x4fb819['config']['get']('list.multiBlock')||(_0x7014ec='*Change\x20to:*\x20%0'),_0x3a9659={'type':'format','content':o(_0x12d922,_0x7014ec,o(_0x12d922,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x40bc58=_0x37f58e['commandParams'][0x0]['forceValue'],_0x12a46f=_0x445a07(_0x37f58e['commandName']),_0x7014ec=_0x40bc58?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x12a46f&&_0x4fb819['config']['get']('list.multiBlock')||(_0x7014ec='*Change\x20to:*\x20%0'),_0x3a9659={'type':'format','content':o(_0x12d922,_0x7014ec,o(_0x12d922,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x7014ec='*Indent:*\x20%0',_0x3a9659={'type':'format','content':o(_0x12d922,_0x7014ec,o(_0x12d922,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x7014ec=function(_0x2ce3a2){const _0x4bcdaa=_0x2ce3a2['getFirstRange']();let _0x404c7c=_0x4bcdaa['start']['nodeAfter'];for(;_0x404c7c&&_0x4bcdaa['containsItem'](_0x404c7c);){if(_0x404c7c['getAttribute']('listIndent')>0x0)return!0x1;_0x404c7c=_0x404c7c['nextSibling'];}return!0x0;}(_0x45818e)?o(_0x12d922,'*Format:*\x20remove\x20from\x20%0',o(_0x12d922,function(_0x583766){return'ELEMENT_'+_0x583766['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x45818e))):o(_0x12d922,'*Outdent:*\x20%0',o(_0x12d922,'ELEMENT_LIST_ITEM')),_0x3a9659={'type':'format','content':_0x7014ec};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x37f58e['multipleBlocks']&&(_0x7014ec='*Merge:*\x20%0',_0x3a9659={'type':'deletion','content':o(_0x12d922,_0x7014ec,o(_0x12d922,'ELEMENT_LIST_ITEM'))});}return _0x3a9659;});}}function Be(_0x22bb49){let _0x1aa56d=_0x22bb49['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1aa56d;){const _0x142d3a=_0x1aa56d['getAttribute']('listItemId');if(!_0x142d3a)return!0x1;if(_0x142d3a==_0x22bb49['data']['newValue'])return'newValue';if(_0x142d3a==_0x22bb49['data']['oldValue'])return'oldValue';_0x1aa56d=_0x1aa56d['previousSibling'];}return!0x1;}class X extends _0x44fd37{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x658f33=this['editor']['config']['get']('list.properties'),_0x883f64=this['editor']['plugins']['get']('TrackChangesEditing');_0x658f33['styles']&&(_0x883f64['enableDefaultAttributesIntegration']('listStyle'),_0x883f64['registerBlockAttribute']('listStyle')),_0x658f33['reversed']&&(_0x883f64['enableDefaultAttributesIntegration']('listReversed'),_0x883f64['registerBlockAttribute']('listReversed')),_0x658f33['startIndex']&&(_0x883f64['enableDefaultAttributesIntegration']('listStart'),_0x883f64['registerBlockAttribute']('listStart'));const _0x2a288b={'type':'format','content':''};_0x883f64['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4edee8=this['editor']['locale'];_0x883f64['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4edee8,'FORMAT_LIST_REVERSED')),_0x883f64['descriptionFactory']['registerDescriptionCallback'](_0x52406e=>{const {data:_0x33b180}=_0x52406e;if(_0x33b180&&'listReversed'==_0x33b180['key'])return null==_0x33b180['newValue']||0x0==_0x33b180['newValue']&&null==_0x33b180['oldValue']?_0x2a288b:void 0x0;}),_0x883f64['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4edee8,'FORMAT_LIST_START')),_0x883f64['descriptionFactory']['registerDescriptionCallback'](_0x4ec130=>{const {data:_0x91211a}=_0x4ec130;if(_0x91211a&&'listStart'==_0x91211a['key'])return null==_0x91211a['newValue']||0x1==_0x91211a['newValue']&&null==_0x91211a['oldValue']?_0x2a288b:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x948145=>{if(_0x948145['batch']['isUndo'])return!0x1;let _0x4a51a3=!0x1;const _0x1ccaa0=_0x883f64['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x368030=>{const _0x2d3df4=_0x883f64['_getAttributeKey'](_0x368030);return'listStart'==_0x2d3df4||'listReversed'==_0x2d3df4;});for(const _0x37fe2c of _0x1ccaa0){const _0x579667=_0x37fe2c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x579667||'customNumbered'==_0x579667)continue;_0x883f64['_findSuggestions'](_0x37fe2c['getFirstRange'](),'attribute')['find'](_0x56afbf=>'listType'==_0x883f64['_getAttributeKey'](_0x56afbf['suggestion']))||(_0x948145['removeMarker'](_0x37fe2c['getFirstMarker']()),_0x4a51a3=!0x0);}return _0x4a51a3;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4cb824){const _0x3db522=this['editor']['locale'],{data:_0x145486}=_0x4cb824,_0x274f6d={'type':'format','content':''};if(!_0x145486||'listStyle'!=_0x145486['key'])return;if(!_0x145486['oldValue'])return'default'==_0x145486['newValue']?_0x274f6d:{'type':'format','content':''+o(_0x3db522,'*Set\x20format:*\x20%0',o(_0x3db522,this['_getTranslationKeyForListStyle'](_0x145486['newValue'])))};if(!_0x145486['newValue']){if('default'==_0x145486['oldValue'])return _0x274f6d;let _0x5af25e=_0x4cb824['head'];for(;_0x5af25e;){if(_0x5af25e['data']&&'listType'==_0x5af25e['data']['key']&&_0x5af25e['data']['newValue'])return _0x274f6d;_0x5af25e=_0x5af25e['next'];}return{'type':'format','content':''+o(_0x3db522,'*Remove\x20format:*\x20%0',o(_0x3db522,this['_getTranslationKeyForListStyle'](_0x145486['oldValue'])))};}if('default'!=_0x145486['newValue'])return{'type':'format','content':''+o(_0x3db522,'*Set\x20format:*\x20%0',o(_0x3db522,this['_getTranslationKeyForListStyle'](_0x145486['newValue'])))};let _0x33a668=_0x4cb824['head'];for(;_0x33a668;){if(_0x33a668['data']&&'listType'==_0x33a668['data']['key']&&_0x33a668['data']['newValue']&&_0x33a668['data']['oldValue'])return _0x274f6d;_0x33a668=_0x33a668['next'];}return{'type':'format','content':o(_0x3db522,'*Set\x20format:*\x20%0',o(_0x3db522,'ELEMENT_'+_0x4cb824['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4aa1ac=this['editor'],_0xa476b9=_0x4aa1ac['locale'];_0x4aa1ac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc763fc=>{if('formatBlock'!=_0xc763fc['type'])return;const {data:_0x3f6b4c}=_0xc763fc;if(!_0x3f6b4c)return;let _0x50b3ad,_0x50bce6;switch(_0x3f6b4c['commandName']){case'listStyle':_0x50b3ad='*Change\x20to:*\x20%0',_0x50bce6={'type':'format','content':o(_0xa476b9,_0x50b3ad,o(_0xa476b9,this['_getTranslationKeyForListStyle'](_0x3f6b4c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x50b3ad=_0x3f6b4c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x50bce6={'type':'format','content':o(_0xa476b9,_0x50b3ad)};break;case'listStart':_0x50b3ad='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x50bce6={'type':'format','content':o(_0xa476b9,_0x50b3ad,_0x3f6b4c['commandParams'][0x0]['startIndex'])};}return _0x50bce6;});}['_getTranslationKeyForListStyle'](_0x38e824){return'ELEMENT_'+function(_0x3f93fe){if(Re['includes'](_0x3f93fe))return'bulleted';if(Fe['includes'](_0x3f93fe))return'numbered';return null;}(_0x38e824)['toUpperCase']()+'_LIST_'+_0x38e824['toUpperCase']()['replace'](/-/g,'_');}}const Re=['disc','circle','square'],Fe=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Y extends _0x44fd37{['afterInit'](){const _0x2b171c=this['editor'];_0x2b171c['commands']['get']('emoji')&&_0x2b171c['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Z extends _0x44fd37{static get['requires'](){return[_0xd9c1a];}['init'](){const _0x4a2cb3=this['editor'],_0x3fec8f=_0x4a2cb3['plugins']['get']('TrackChangesEditing'),_0x4a01fc=_0x4a2cb3['commands']['get']('enter');_0x3fec8f['enableCommand']('enter',()=>{_0x4a2cb3['model']['change'](_0x20a61a=>{const _0x1bd68f=_0x4a2cb3['model']['document']['selection'],_0x423a5f=_0x1bd68f['getFirstPosition'](),_0x59e93b=_0x39adac['fromRange'](_0x1bd68f['getFirstRange']());if(_0x4a01fc['enterBlock'](_0x20a61a)){const _0x4d4940=_0x4a2cb3['model']['createPositionAt'](_0x423a5f['parent']['nextSibling'],0x0),_0x3f3d19=_0x20a61a['createRange'](_0x423a5f,_0x4d4940);_0x3fec8f['markInsertion'](_0x3f3d19);}else _0x20a61a['setSelection'](_0x20a61a['createRange'](_0x59e93b['end']));_0x59e93b['detach'](),_0x4a01fc['fire']('afterExecute',{'writer':_0x20a61a});});}),_0x4a2cb3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ge(_0x4a2cb3,'split'),{'priority':'high'}),_0x4a2cb3['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5aa9a8,_0x5dd729,_0x6b558a)=>{const _0x4b9586=_0x6b558a['mapper']['markerNameToElements'](_0x5dd729['markerName']);if(_0x4b9586){for(const _0x43e552 of _0x4b9586)_0x43e552['hasClass']('ck-suggestion-marker-split')&&(_0x6b558a['mapper']['unbindElementFromMarkerName'](_0x43e552,_0x5dd729['markerName']),_0x6b558a['writer']['remove'](_0x43e552));}},{'priority':'high'}),_0x4a2cb3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x490bc7,_0x473da,_0x4b3712)=>{_0x4b3712['options']['showSuggestionHighlights']&&Ge(_0x4a2cb3,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x490bc7,_0x473da,_0x4b3712);},{'priority':'high'});}}class tt extends _0x44fd37{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x11fcf6=this['editor']['plugins']['get']('TrackChangesEditing');_0x11fcf6['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x11fcf6['enableCommand']('findNext'),_0x11fcf6['enableCommand']('findPrevious'),_0x11fcf6['enableCommand']('replace'),_0x11fcf6['enableCommand']('replaceAll');}['handleFindCommand'](_0x3c116e,_0x3d2144,_0x3e4d82={}){const _0x342ac9=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3c116e(_0x33ca9c=>{let _0x5b9f6c=('string'==typeof _0x3d2144?_0x342ac9['findByTextCallback'](_0x3d2144,_0x3e4d82):_0x3d2144)(_0x33ca9c);Array['isArray'](_0x5b9f6c)&&(_0x5b9f6c={'results':_0x5b9f6c,'searchText':'string'==typeof _0x3d2144?_0x3d2144:''});const _0x4d7e96=_0x5b9f6c['results']['filter'](_0x2e3d20=>!0x1===this['_isInDeletionRange'](_0x2e3d20,_0x33ca9c['item']));return{..._0x5b9f6c,'results':_0x4d7e96};},_0x3e4d82);}['_isInDeletionRange'](_0x289a63,_0x4a84ce){const _0x5f4904=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4a84ce,_0x289a63['start']),this['editor']['model']['createPositionAt'](_0x4a84ce,_0x289a63['end']));for(const _0x1f961d of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5f4904['getIntersection'](_0x1f961d['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class et extends _0x44fd37{['afterInit'](){const _0x422ce5=this['editor']['locale'],_0x2db4b0=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3eca8a,commandName:_0x5c63fc}of eo)this['editor']['plugins']['has'](_0x3eca8a)&&(_0x2db4b0['enableDefaultAttributesIntegration'](_0x5c63fc),_0x2db4b0['registerInlineAttribute'](_0x5c63fc));_0x2db4b0['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x422ce5,'FORMAT_FONT_SIZE')),_0x2db4b0['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x422ce5,'FORMAT_FONT_FAMILY')),_0x2db4b0['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x422ce5,'FORMAT_FONT_COLOR')),_0x2db4b0['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x422ce5,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x406ce7=this['editor'],_0x415217=_0x406ce7['locale'];_0x406ce7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x183dc1=>{const _0x2fc5c4=_0x415217['t'];if('formatInline'!=_0x183dc1['type'])return;const {data:_0x5075af}=_0x183dc1;if(null!=_0x5075af){if('fontSize'==_0x5075af['commandName']){const _0x3ad10a=_0x5075af['commandParams'][0x0]['value'];if(_0x3ad10a){const _0x4adf77=_0x2fc5c4(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3054ea=>_0x3054ea['model']==_0x3ad10a)['title'])['toLowerCase']();return{'type':'format','content':o(_0x415217,'*Set\x20font\x20size:*\x20%0',_0x4adf77)};}return{'type':'format','content':o(_0x415217,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5075af['commandName']){const _0x2a9467=_0x5075af['commandParams'][0x0]['value'];return _0x2a9467?{'type':'format','content':o(_0x415217,'*Set\x20font\x20family:*\x20%0',_0x2a9467)}:{'type':'format','content':o(_0x415217,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5075af['commandName']){const _0x2514d0=_0x5075af['commandParams'][0x0]['value'];if(_0x2514d0){const _0x52c252=_0xd4bd1a(this['editor']['config']['get']('fontColor.colors'))['find'](_0x39608b=>_0x39608b['model']==_0x2514d0);let _0x139907=_0x2514d0,_0x3daa16='';return _0x52c252&&(_0x139907=_0x52c252['label'],_0x3daa16=_0x2fc5c4(_0x139907)['toLowerCase']()),{'type':'format','content':o(_0x415217,'*Set\x20font\x20color:*\x20%0',_0x3daa16)['trim'](),'color':{'value':_0x2514d0,'title':_0x3daa16||_0x139907}};}return{'type':'format','content':o(_0x415217,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5075af['commandName']){const _0x5bda85=_0x5075af['commandParams'][0x0]['value'];if(_0x5bda85){const _0x4565b3=_0xd4bd1a(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x406972=>_0x406972['model']==_0x5bda85);let _0x516ac2=_0x5bda85,_0x4eb19f='';return _0x4565b3&&(_0x516ac2=_0x4565b3['label'],_0x4eb19f=_0x2fc5c4(_0x516ac2)['toLowerCase']()),{'type':'format','content':o(_0x415217,'*Set\x20font\x20background\x20color:*\x20%0',_0x4eb19f)['trim'](),'color':{'value':_0x5bda85,'title':_0x4eb19f||_0x516ac2}};}return{'type':'format','content':o(_0x415217,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x44fd37{['afterInit'](){const _0x48369c=this['editor'],_0x4d9928=_0x48369c['plugins']['get']('TrackChangesEditing'),_0x36bdd9=_0x48369c['commands']['get']('copyFormat'),_0x5ac63b=_0x48369c['commands']['get']('pasteFormat');_0x36bdd9&&_0x5ac63b&&(_0x4d9928['enableDefaultAttributesIntegration']('pasteFormat'),_0x4d9928['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x552225=this['editor'],_0x1e134c=_0x552225['locale'];_0x552225['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26b7aa=>{if('formatBlock'!=_0x26b7aa['type']&&'formatInline'!=_0x26b7aa['type'])return;const {data:_0x27d183}=_0x26b7aa;if(_0x27d183&&'pasteFormat'===_0x27d183['commandName']){const _0x1a519f=[],_0x1fb11d=_0x27d183['commandParams'][0x0];for(const [_0x30abc8,_0x54b8e1]of Object['entries'](_0x1fb11d))_0x1a519f['push'](ro(_0x552225,_0x30abc8,_0x54b8e1));return _0x1a519f['length']?{'type':'format','content':o(_0x1e134c,'*Set\x20format\x20to:*\x20%0',_0x1a519f['join'](',\x20'))}:{'type':'format','content':o(_0x1e134c,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x27c773,_0x564021,_0x46371b){const _0xb2d068=_0x27c773['locale']['t'],_0x89689=_0x564021['split'](/(?=[A-Z])/)['join']('\x20'),_0x55ff0a=_0xb2d068(_0x89689['charAt'](0x0)['toUpperCase']()+_0x89689['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x46371b)return _0x55ff0a;if('fontColor'===_0x564021||'fontBackgroundColor'===_0x564021){const _0x2179b2=_0xd4bd1a(_0x27c773['config']['get']('fontColor.colors'))['find'](_0x1a46d1=>_0x1a46d1['model']==_0x46371b);return _0x55ff0a+'\x20('+(_0x2179b2?_0xb2d068(_0x2179b2['label'])['toLowerCase']():_0x46371b)+')';}if('fontSize'===_0x564021&&isNaN(parseFloat(_0x46371b))){const _0x25e7d7=_0x27c773['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x27c773['config']['get']('fontSize.options'))['find'](_0x56260d=>_0x56260d['model']==_0x46371b);return _0x55ff0a+'\x20('+(_0x25e7d7?_0xb2d068(_0x25e7d7['title'])['toLowerCase']():_0x46371b)+')';}return _0x55ff0a+'\x20('+_0x46371b+')';}class nt extends _0x44fd37{['_headingOptions'];['afterInit'](){const _0x492282=this['editor'];if(!_0x492282['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x492282['config']['get']('heading.options');const _0x1a3371=_0x492282['locale'],_0x582f46=_0x492282['plugins']['get']('TrackChangesEditing');_0x582f46['enableDefaultAttributesIntegration']('heading');for(const _0x147331 of this['_headingOptions'])'paragraph'!=_0x147331['model']&&_0x582f46['descriptionFactory']['registerElementLabel'](_0x147331['model'],_0x31a35f=>{const _0x2c561a=this['_getHeadingLevel'](_0x147331['model']);return null!==_0x2c561a?_0xce369a(_0x31a35f,_0x2c561a):_0x9e70aa(_0x31a35f,_0x147331['title']);});function _0xce369a(_0xe123c8,_0x2d24be){return o(_0x1a3371,'ELEMENT_HEADING',[_0xe123c8,_0x2d24be]);}function _0x9e70aa(_0xe36af,_0x37f56b){return o(_0x1a3371,'ELEMENT_HEADING_CUSTOM',[_0xe36af,_0x37f56b]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x457502=this['editor'],_0x1eb0ea=_0x457502['locale'];function _0x26dbcd(_0x2efd1b,_0x42c0f7){return o(_0x1eb0ea,'ELEMENT_HEADING_CUSTOM',[_0x2efd1b,_0x42c0f7]);}_0x457502['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ebaf4=>{if('formatBlock'!=_0x1ebaf4['type'])return;const {data:_0x1f3cda}=_0x1ebaf4;if(_0x1f3cda&&'heading'==_0x1f3cda['commandName']){const _0x58a634=_0x1f3cda['commandParams'][0x0]['value'],_0x3608c8=this['_getHeadingLevel'](_0x58a634);if(null!==_0x3608c8)return{'type':'format','content':o(_0x1eb0ea,'*Change\x20to:*\x20%0',(_0x24cc32=0x1,_0x180cf8=_0x3608c8,o(_0x1eb0ea,'ELEMENT_HEADING',[_0x24cc32,_0x180cf8])))};const _0x463bba=this['_headingOptions']['find'](_0x3d42df=>_0x3d42df['model']===_0x58a634)['title'];return{'type':'format','content':o(_0x1eb0ea,'*Change\x20to:*\x20%0',_0x26dbcd(0x1,_0x463bba))};}var _0x24cc32,_0x180cf8;});}['_getHeadingLevel'](_0x2f97d){const _0xabef98=_0x2f97d['match'](/^heading(\d+)/);if(_0xabef98)return _0xabef98[0x1];const _0x12f9c7=this['_headingOptions']?.['find'](_0x52d031=>_0x52d031['model']==_0x2f97d);if(_0x12f9c7&&_0x12f9c7['view']){const _0xa262ca=_0x12f9c7['view'],_0x1b8296=(_0xa262ca['name']??_0xa262ca)['match'](/^h(\d+)/);if(_0x1b8296)return _0x1b8296[0x1];}return null;}}class st extends _0x44fd37{['afterInit'](){const _0xd51d19=this['editor'];if(!_0xd51d19['plugins']['has']('HighlightEditing'))return;const _0x499f5b=_0xd51d19['plugins']['get']('TrackChangesEditing'),_0x4e09a3=_0xd51d19['locale'];_0x499f5b['enableDefaultAttributesIntegration']('highlight'),_0x499f5b['registerInlineAttribute']('highlight'),_0x499f5b['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4e09a3,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4308d3=this['editor'],_0x1bc314=_0x4308d3['locale'];_0x4308d3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56c256=>{if('formatInline'!=_0x56c256['type'])return;const {data:_0x1fef6b}=_0x56c256;if(_0x1fef6b&&'highlight'==_0x1fef6b['commandName']){const _0x1368b9=_0x1bc314['t'],_0x1a6e5f=_0x1fef6b['commandParams'][0x0]['value'];if(_0x1a6e5f){const _0xce2524=_0x4308d3['config']['get']('highlight.options')['find'](_0x5724fd=>_0x5724fd['model']==_0x1a6e5f),_0x238a35=_0x1368b9(_0xce2524['title'])['toLowerCase']();return{'type':'format','content':o(_0x1bc314,'*Set\x20highlight:*\x20%0',_0x238a35),'color':{'value':_0xce2524['color'],'title':_0xce2524['title']}};}return{'type':'format','content':o(_0x1bc314,'*Remove\x20highlight*',o(_0x1bc314,'FORMAT_HIGHLIGHT'))};}});}}class ot extends _0x44fd37{['afterInit'](){const _0x1a7ba1=this['editor'];if(!_0x1a7ba1['plugins']['has']('HorizontalLineEditing'))return;_0x1a7ba1['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2f3166=_0x1a7ba1['plugins']['get']('TrackChangesEditing'),_0x124a60=_0x1a7ba1['locale'];_0x2f3166['descriptionFactory']['registerElementLabel']('horizontalLine',_0x327d4b=>o(_0x124a60,'ELEMENT_HORIZONTAL_LINE',_0x327d4b)),_0x1a7ba1['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x19cbde,{writer:_0x1ce1c6,options:_0x583a32})=>{if(!_0x583a32['showSuggestionHighlights'])return null;const _0x4babc1=_0x1ce1c6['createContainerElement']('div'),_0x4dc380=_0x1ce1c6['createEmptyElement']('hr');return _0x1ce1c6['addClass']('ck-horizontal-line',_0x4babc1),_0x1ce1c6['insert'](_0x1ce1c6['createPositionAt'](_0x4babc1,0x0),_0x4dc380),_0x4babc1;},'converterPriority':'high'});}}class rt extends _0x44fd37{['afterInit'](){const _0x45d084=this['editor'];if(!_0x45d084['plugins']['has']('HtmlEmbed'))return;const _0x260317=_0x45d084['plugins']['get']('TrackChangesEditing'),_0x301592=_0x45d084['locale'];_0x260317['descriptionFactory']['registerElementLabel']('rawHtml',_0xb46648=>o(_0x301592,'ELEMENT_HTML_EMBED',_0xb46648)),_0x260317['enableDefaultAttributesIntegration']('htmlEmbed'),_0x260317['registerBlockAttribute']('value'),_0x260317['descriptionFactory']['registerDescriptionCallback'](_0x4a25e0=>{if('attribute'!=_0x4a25e0['type'])return;const {data:_0x107b56}=_0x4a25e0;if(_0x107b56&&'value'==_0x107b56['key']&&_0x4a25e0['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x29dedd=o(_0x301592,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x301592,'*Change\x20%0\x20content*',_0x29dedd)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x378339=this['editor'],_0x11b8ae=_0x378339['locale'];_0x378339['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2441be=>{if('formatBlock'!=_0x2441be['type'])return;const {data:_0x28c181}=_0x2441be;if(_0x28c181&&'htmlEmbed'==_0x28c181['commandName']){const _0x3af8cf=o(_0x11b8ae,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x11b8ae,'*Change\x20%0\x20content*',_0x3af8cf)};}});}}class at extends _0x44fd37{['afterInit'](){const _0x107420=this['editor'];if(!_0x107420['plugins']['has']('ImageEditing'))return;const _0x3d3894=_0x107420['plugins']['get']('TrackChangesEditing'),_0x4f5124=_0x107420['plugins']['get']('ImageUtils'),_0x4ffbb5=_0x107420['locale'];_0x3d3894['enableCommand']('insertImage'),_0x3d3894['descriptionFactory']['registerElementLabel']('imageBlock',_0x1b1341=>o(_0x4ffbb5,'ELEMENT_IMAGE',_0x1b1341)),_0x3d3894['descriptionFactory']['registerElementLabel']('imageInline',_0x4a7dfb=>o(_0x4ffbb5,'ELEMENT_INLINE_IMAGE',_0x4a7dfb)),_0x3d3894['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4ffbb5,'ELEMENT_CAPTION')),_0x107420['plugins']['has']('ImageUploadEditing')&&_0x3d3894['enableCommand']('uploadImage'),_0x107420['plugins']['has']('ImageBlockEditing')&&_0x107420['plugins']['has']('ImageInlineEditing')&&(_0x3d3894['enableCommand']('imageTypeInline',(_0x100793,_0x2efd63)=>{const _0x54ce40=_0x4f5124['getClosestSelectedImageElement'](_0x107420['model']['document']['selection']);_0x107420['model']['change'](()=>{_0x3d3894['markBlockFormat'](_0x54ce40,{'commandName':'imageTypeInline','commandParams':[_0x2efd63]},[],'convertBlockImageToInline');});}),_0x3d3894['enableCommand']('imageTypeBlock',(_0x30b637,_0x3526ef)=>{_0x107420['model']['change'](_0x429435=>{let _0x5b1a01=_0x4f5124['getClosestSelectedImageElement'](_0x107420['model']['document']['selection']),_0x2d0a2a=_0x429435['createRangeOn'](_0x5b1a01);const _0x550cf6=_0x55add0['fromPosition'](_0x2d0a2a['start'],'toPrevious'),_0x298734=_0x55add0['fromPosition'](_0x2d0a2a['end'],'toNext');_0x3d3894['forceDefaultExecution'](()=>_0x30b637(_0x3526ef)),_0x5b1a01=_0x4f5124['getClosestSelectedImageElement'](_0x107420['model']['document']['selection']),_0x2d0a2a=_0x429435['createRangeOn'](_0x5b1a01);const _0x57df17=_0x429435['createRange'](_0x550cf6,_0x298734);_0x550cf6['detach'](),_0x298734['detach'](),_0x3d3894['markBlockFormat'](_0x5b1a01,{'commandName':'imageTypeInline','commandParams':[_0x3526ef]},[],'convertInlineImageToBlock'),_0x57df17['start']['isBefore'](_0x2d0a2a['start'])&&_0x3d3894['markInsertion'](_0x429435['createRange'](_0x57df17['start'],_0x2d0a2a['start']),'convertInlineImageToBlock'),_0x2d0a2a['end']['isBefore'](_0x57df17['end'])&&_0x3d3894['markInsertion'](_0x429435['createRange'](_0x2d0a2a['end'],_0x57df17['end']),'convertInlineImageToBlock');});}),_0x3d3894['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3d3894['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3d3894['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3d3894['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3d3894['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3d3894['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2b91a7])=>{const _0x3c5218=_0x3d3894['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x35b549=_0x2b91a7['start'],_0x518b54=_0x2b91a7['end'];const _0x1b399c=_0x107420['model']['schema']['getNearestSelectionRange'](_0x35b549,'backward'),_0x404fc8=_0x107420['model']['schema']['getNearestSelectionRange'](_0x518b54,'forward');_0x1b399c['isCollapsed']&&(_0x35b549=_0x1b399c['start']),_0x404fc8['isCollapsed']&&(_0x518b54=_0x404fc8['end']),_0x3c5218([_0x107420['model']['createRange'](_0x35b549,_0x518b54)]);}),_0x3d3894['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x36dad8),_0x3d3894['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x36dad8)),_0x107420['plugins']['has']('ImageCaptionEditing')&&(_0x3d3894['enableCommand']('toggleImageCaption',(_0x34befe,_0x4f7f8b)=>{const _0xf522b7=_0x107420['plugins']['get']('ImageCaptionUtils');let _0x398ac4=_0x4f5124['getClosestSelectedImageElement'](_0x107420['model']['document']['selection']),_0x103cae=_0xf522b7['getCaptionFromImageModelElement'](_0x398ac4);_0x107420['model']['change'](()=>{if(_0x103cae)return void _0x3d3894['markDeletion'](_0x107420['model']['createRangeOn'](_0x103cae));const _0x23c807=_0x4f5124['isBlockImage'](_0x398ac4);_0x34befe(_0x4f7f8b),_0x398ac4=_0x4f5124['getClosestSelectedImageElement'](_0x107420['model']['document']['selection']),_0x103cae=_0xf522b7['getCaptionFromImageModelElement'](_0x398ac4),_0x3d3894['markInsertion'](_0x107420['model']['createRangeOn'](_0x103cae),_0x23c807?null:'imageCaption');});}),_0x3d3894['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x36dad8));const _0x506bb9=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x261d82(_0x480359,_0x492047){const _0x50bafb=_0x506bb9['findIndex'](({type:_0x509a87,subType:_0x1b2547})=>_0x480359['type']==_0x509a87&&_0x480359['subType']==_0x1b2547),_0x3ff80e=_0x506bb9['findIndex'](({type:_0x341fcf,subType:_0x3097d0})=>_0x492047['type']==_0x341fcf&&_0x492047['subType']==_0x3097d0);if(_0x50bafb<0x0||_0x3ff80e<0x0)return!0x1;const _0x205e89=_0x480359['getFirstRange'](),_0x2b8982=_0x492047['getFirstRange']();if((0x0==_0x50bafb||0x1==_0x50bafb)&&0x2==_0x3ff80e&&_0x205e89['isIntersecting'](_0x2b8982))return!0x0;if(0x2==_0x50bafb&&0x3==_0x3ff80e){const _0x587b63=_0x3d3894['_findSuggestions'](_0x205e89,'insertion')['filter'](({suggestion:_0x4851f3,meta:_0x24362d})=>_0x24362d['isOwn']&&'convertInlineImageToBlock'==_0x4851f3['subType']);if(_0x587b63['length']>0x1&&_0x2b8982['end']['isEqual'](_0x205e89['start']))return!0x0;if(0x1==_0x587b63['length']&&(_0x205e89['start']['isEqual'](_0x2b8982['end'])||_0x205e89['end']['isEqual'](_0x2b8982['start'])))return!0x0;}if(0x3==_0x50bafb&&0x3==_0x3ff80e&&_0x205e89['start']['isBefore'](_0x2b8982['start'])){const _0x596158=_0x205e89['end']['nodeAfter'],_0x473e3e=_0x2b8982['start']['nodeBefore'];return _0x4f5124['isBlockImage'](_0x596158)&&_0x596158===_0x473e3e;}return!0x1;}function _0x36dad8(_0x5cc40f,_0x41653e){return _0x261d82(_0x5cc40f,_0x41653e)?[_0x5cc40f,_0x41653e]:_0x261d82(_0x41653e,_0x5cc40f)?[_0x41653e,_0x5cc40f]:null;}_0x107420['plugins']['has']('ImageResize')&&(_0x3d3894['enableDefaultAttributesIntegration']('resizeImage'),_0x3d3894['registerBlockAttribute']('resizedWidth'),_0x3d3894['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4ffbb5,'FORMAT_IMAGE_SIZE'))),_0x107420['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3d3894['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3d3894['registerBlockAttribute']('alt')),_0x107420['plugins']['has']('PictureEditing')&&(_0x3d3894['registerBlockAttribute']('sources'),_0x3d3894['descriptionFactory']['registerDescriptionCallback'](_0xb81af8=>{if('attribute'!=_0xb81af8['type'])return;const {data:_0x2631e3}=_0xb81af8;return _0x2631e3&&'sources'==_0x2631e3['key']?{'type':'format','content':''}:void 0x0;})),_0x107420['plugins']['has']('ImageSizeAttributes')&&(_0x3d3894['registerBlockAttribute']('width'),_0x3d3894['registerBlockAttribute']('height'),_0x3d3894['descriptionFactory']['registerDescriptionCallback'](_0x2dfcf0=>{if('attribute'!=_0x2dfcf0['type'])return;const {data:_0x4888e4}=_0x2dfcf0;return!_0x4888e4||'width'!=_0x4888e4['key']&&'height'!=_0x4888e4['key']?void 0x0:{'type':'format','content':''};})),_0x3d3894['descriptionFactory']['registerDescriptionCallback'](_0x5cfcaa=>{if(!!_0x506bb9['find'](({type:_0x4af753,subType:_0x5d8d46})=>_0x5cfcaa['type']==_0x4af753&&_0x5cfcaa['subType']==_0x5d8d46))return _0x5cfcaa['previous']?{}:void 0x0;}),_0x3d3894['descriptionFactory']['registerDescriptionCallback'](_0x546b77=>{if('insertion'==_0x546b77['type']||'deletion'==_0x546b77['type']){const _0x4f7149=_0x546b77['getContainedElement']();if(_0x4f7149&&_0x4f7149['is']('element','caption'))return{'type':'insertion'==_0x546b77['type']?'addObject':'removeObject','element':_0x4f7149,'quantity':0x1};}}),_0x3d3894['descriptionFactory']['registerDescriptionCallback'](_0x6b54a=>'formatBlock'==_0x6b54a['type']&&'convertInlineImageToBlock'==_0x6b54a['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x6b54a['type']&&'convertBlockImageToInline'==_0x6b54a['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3d3894['descriptionFactory']['registerDescriptionCallback'](_0x283ab8=>{if('attribute'!=_0x283ab8['type'])return;const {data:_0x456c1f}=_0x283ab8;if(!_0x456c1f||'alt'!=_0x456c1f['key'])return;const _0x44a147=_0x456c1f['newValue'];return _0x44a147?{'type':'format','content':o(_0x4ffbb5,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x44a147+'\x22')}:{'type':'format','content':o(_0x4ffbb5,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3cf91d=this['editor'],_0x41422f=_0x3cf91d['locale'];_0x3cf91d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1033cc=>{if('formatBlock'!=_0x1033cc['type']&&'formatInline'!=_0x1033cc['type'])return;const {data:_0x3fb179}=_0x1033cc;if(_0x3fb179){if('imageTextAlternative'==_0x3fb179['commandName']){const _0x59817e=_0x3fb179['commandParams'][0x0]['newValue'];return _0x59817e?{'type':'format','content':o(_0x41422f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x59817e+'\x22')}:{'type':'format','content':o(_0x41422f,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3fb179['commandName']){const _0x5c5615=_0x3fb179['commandParams'][0x0]['width'];return _0x5c5615?{'type':'format','content':o(_0x41422f,'*Set\x20image\x20width:*\x20%0',_0x5c5615)}:{'type':'format','content':o(_0x41422f,'*Reset\x20image\x20width*')};}}});}}class ct extends _0x44fd37{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x122427=this['editor']['locale'],_0x489305=this['editor']['plugins']['get']('TrackChangesEditing');_0x489305['enableDefaultAttributesIntegration']('replaceImageSource'),_0x489305['registerBlockAttribute']('src'),_0x489305['descriptionFactory']['registerDescriptionCallback'](_0x3c6575=>{if('attribute'!=_0x3c6575['type'])return;const {data:_0x541a03}=_0x3c6575;return _0x541a03&&'src'==_0x541a03['key']?_0x541a03['newValue']&&_0x541a03['oldValue']?{'type':'format','content':o(_0x122427,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4b8ebd=this['editor']['plugins']['get']('TrackChangesEditing');_0x4b8ebd['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4b8ebd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4b8ebd['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4b8ebd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xbdbe68=this['editor'],_0x47fe4b=_0xbdbe68['locale'];_0xbdbe68['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4820db=>{if('formatBlock'!=_0x4820db['type']&&'formatInline'!=_0x4820db['type'])return;const {data:_0x3f83b4}=_0x4820db;if(!_0x3f83b4||'replaceImageSource'!=_0x3f83b4['commandName'])return;return{'type':'format','content':o(_0x47fe4b,'*Format:*\x20replace\x20image\x20URL')};});}}class ut extends _0x44fd37{['afterInit'](){const _0x6eb365=this['editor'];if(!_0x6eb365['plugins']['has']('ImageStyleEditing'))return;const _0x460733=_0x6eb365['plugins']['get']('TrackChangesEditing'),_0x3af3b9=_0x6eb365['plugins']['get']('ImageUtils'),_0x2de8d8={};_0x460733['enableCommand']('imageStyle',(_0x584f81,_0x68cab)=>{const _0x45caff=_0x6eb365['plugins']['get']('Users')['me'],_0x5d5d13=_0x6eb365['commands']['get']('imageStyle');let _0x565071=_0x3af3b9['getClosestSelectedImageElement'](_0x6eb365['model']['document']['selection']),_0x57b969=_0x6eb365['model']['createRangeOn'](_0x565071),_0x30ba93=_0x5d5d13['value'];if(_0x30ba93==_0x68cab['value'])return;const _0x3c8c78={'commandName':'imageStyle','commandParams':[_0x68cab],'formatGroupId':_0x5b7b63()};_0x6eb365['model']['change'](()=>{if(_0x460733['getSuggestions']()['filter'](_0x3501d1=>_0x3501d1['isInContent']&&_0x45caff==_0x3501d1['author']&&('formatBlock'==_0x3501d1['type']||'formatInline'==_0x3501d1['type'])&&('imageStylePreApply'==_0x3501d1['subType']||'imageStylePostApply'==_0x3501d1['subType'])&&_0x3501d1['getFirstRange']()['isEqual'](_0x57b969))['forEach'](_0x232c47=>_0x460733['discardSuggestion'](_0x232c47['head'])),_0x565071=_0x3af3b9['getClosestSelectedImageElement'](_0x6eb365['model']['document']['selection']),_0x57b969=_0x6eb365['model']['createRangeOn'](_0x565071),_0x5d5d13['refresh'](),_0x6eb365['commands']['get']('imageTypeInline')['refresh'](),_0x6eb365['commands']['get']('imageTypeBlock')['refresh'](),_0x30ba93=_0x5d5d13['value'],_0x30ba93!=_0x68cab['value'])return _0x3af3b9['isInlineImage'](_0x565071)&&_0x5d5d13['shouldConvertImageType'](_0x68cab['value'],_0x565071)?(_0x584f81({..._0x68cab,'setImageSizes':!0x1}),_0x565071=_0x3af3b9['getClosestSelectedImageElement'](_0x6eb365['model']['document']['selection']),void _0x460733['markBlockFormat'](_0x565071,{..._0x3c8c78,'commandReversedParams':[{'value':_0x30ba93||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3af3b9['isBlockImage'](_0x565071)?_0x460733['markBlockFormat'](_0x565071,_0x3c8c78,[],'imageStylePostApply'):_0x460733['markInlineFormat'](_0x57b969,_0x3c8c78,'imageStylePostApply'));});});for(const _0x44fb3b of _0x6eb365['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2de8d8[_0x44fb3b['name']]=_0x44fb3b['title']['toLowerCase']();_0x460733['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x460733['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x460733['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x460733['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x34765e])=>{_0x3af3b9['setImageNaturalSizeAttributes'](_0x34765e['getContainedElement']());}),_0x460733['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1335ad,_0x301f72)=>{_0x460733['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1335ad,{'commandName':_0x301f72['commandName'],'commandParams':_0x301f72['commandReversedParams']});}),_0x460733['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5af2df,_0x4d599a){if(_0x3fd55b(_0x5af2df,_0x4d599a))return[_0x5af2df,_0x4d599a];if(_0x3fd55b(_0x4d599a,_0x5af2df))return[_0x4d599a,_0x5af2df];return null;});const _0x3355e9=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3fd55b(_0x383437,_0x2fedff){const _0x1c7158=_0x3355e9['findIndex'](({type:_0x507ae1,subType:_0x1559b7})=>_0x383437['type']==_0x507ae1&&_0x383437['subType']==_0x1559b7),_0x208906=_0x3355e9['findIndex'](({type:_0x326691,subType:_0x56964b})=>_0x2fedff['type']==_0x326691&&_0x2fedff['subType']==_0x56964b);if(_0x1c7158<0x0||_0x208906<0x0)return!0x1;const _0x4b26df=_0x383437['getFirstRange'](),_0x22af90=_0x2fedff['getFirstRange']();if((0x0==_0x1c7158||0x1==_0x1c7158)&&0x2==_0x208906&&_0x4b26df['isIntersecting'](_0x22af90))return!0x0;if(0x2==_0x1c7158&&0x3==_0x208906){const _0x702937=_0x460733['_findSuggestions'](_0x4b26df,'insertion')['filter'](({suggestion:_0x404eed,meta:_0xa2bdc4})=>_0xa2bdc4['isOwn']&&'convertInlineImageToBlock'==_0x404eed['subType']);if(_0x702937['length']>0x1&&_0x22af90['end']['isEqual'](_0x4b26df['start']))return!0x0;if(0x1==_0x702937['length']&&(_0x4b26df['start']['isEqual'](_0x22af90['end'])||_0x4b26df['end']['isEqual'](_0x22af90['start'])))return!0x0;}if(0x3==_0x1c7158&&0x3==_0x208906&&_0x4b26df['start']['isBefore'](_0x22af90['start'])){const _0xf7ed69=_0x4b26df['end']['nodeAfter'],_0x3110dd=_0x22af90['start']['nodeBefore'];return _0x3af3b9['isBlockImage'](_0xf7ed69)&&_0xf7ed69===_0x3110dd;}return!0x1;}_0x6eb365['model']['document']['registerPostFixer'](()=>{let _0x2b1ad0=!0x1;const _0x3ba3de=Array['from'](_0x6eb365['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3f5918,data:_0x5359ec}of _0x3ba3de){const {group:_0x5c57d1,type:_0x2d06ac,subType:_0x1b4d83,id:_0xf8fa76}=_0x460733['_splitMarkerName'](_0x3f5918);if('suggestion'==_0x5c57d1&&_0x460733['hasSuggestion'](_0xf8fa76)){if('formatBlock'==_0x2d06ac&&('imageStylePreApply'==_0x1b4d83||'imageStylePostApply'==_0x1b4d83)){const _0x233c49=_0x460733['getSuggestion'](_0xf8fa76);if(_0x5359ec['newRange']){const _0x3fb5d5=_0x233c49['getFirstRange']()['getContainedElement']();if(_0x3af3b9['isBlockImage'](_0x3fb5d5))continue;_0x460733['discardSuggestion'](_0x233c49),_0x2b1ad0=!0x0;}}if('insertion'==_0x2d06ac&&'imageCaption'==_0x1b4d83&&!_0x5359ec['newRange']){const _0xd327a1=_0x460733['getSuggestion'](_0xf8fa76);_0xd327a1['next']&&_0xd327a1['next']['isInContent']&&(_0x460733['discardSuggestion'](_0xd327a1['next']),_0x2b1ad0=!0x0);}}}return _0x2b1ad0;}),this['_registerLegacyDescription'](_0x2de8d8);}['_registerLegacyDescription'](_0x2899de){const _0x53330e=this['editor'],_0x7482a=_0x53330e['locale'];_0x53330e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55ee7f=>{if('formatBlock'!=_0x55ee7f['type']&&'formatInline'!=_0x55ee7f['type'])return;const {data:_0x21055a}=_0x55ee7f;if(!_0x21055a||'imageStyle'!=_0x21055a['commandName'])return;const _0x31d5e8=_0x21055a['commandParams'][0x0]['value'];return _0x33326f('side'===_0x31d5e8?o(_0x7482a,'FORMAT_SIDE_IMAGE'):_0x2899de[_0x31d5e8]||_0x31d5e8);function _0x33326f(_0x8e93dd){return{'type':'format','content':o(_0x7482a,'*Format:*\x20%0',_0x8e93dd)};}});}}class ft extends _0x44fd37{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x41ebb8){super(_0x41ebb8),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x380676=this['editor'],_0x3fd575=_0x380676['commands']['get']('importWord'),_0x2cf897=_0x380676['commands']['get']('trackChanges');_0x3fd575&&(_0x3fd575['on']('execute',(_0x3aba9b,[,_0x4e2c01])=>{this['_trackChangesValueDuringImport']=_0x2cf897['value'],_0x4e2c01['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3fd575,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3fd575,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2cf897['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x380676['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x534994,_0x5cb2c5){const {suggestions:_0x4e95ab}=_0x5cb2c5,_0x2de1cd=this['editor']['commands']['get']('trackChanges'),_0x2f8977=_0x2de1cd['value'];this['_trackChangesValueDuringImport']!==_0x2f8977&&(_0x2de1cd['execute'](),this['_trackChangesExecuted']=!0x0),_0x4e95ab&&_0x4e95ab['forEach'](({id:_0x1c0434,type:_0x53eb06,author:_0x219a2e,created_at:_0x592155})=>{const _0x31c7bc={'id':_0x1c0434,'type':_0x53eb06,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x219a2e,'createdAt':_0x592155?new Date(_0x592155):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x31c7bc);});}}class ht extends _0x44fd37{['afterInit'](){const _0x504338=this['editor'],_0x5b9be5=_0x504338['plugins']['get']('TrackChangesEditing');if(_0x504338['plugins']['has']('IndentEditing')&&(_0x5b9be5['enableCommand']('indent'),_0x5b9be5['enableCommand']('outdent')),_0x504338['plugins']['has']('IndentBlock')){for(const _0x296d9f of['indentBlock','outdentBlock'])_0x5b9be5['enableDefaultAttributesIntegration'](_0x296d9f);}const _0x559958=_0x504338['locale'];_0x5b9be5['registerBlockAttribute']('blockIndent'),_0x5b9be5['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x559958,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ac5ef=this['editor'],_0x36b4b0=_0x1ac5ef['locale'],_0x31cdbf=_0x1ac5ef['plugins']['get']('TrackChangesEditing');_0x31cdbf['descriptionFactory']['registerDescriptionCallback'](_0x24b567=>{if('formatBlock'!=_0x24b567['type'])return;const {data:_0x30a1dd}=_0x24b567;if(!_0x30a1dd)return;if('indentBlock'!=_0x30a1dd['commandName']&&'outdentBlock'!=_0x30a1dd['commandName'])return;const _0x324d57=_0x24b567['getItems']()[0x0],_0x2b8c2d=_0x31cdbf['descriptionFactory']['getItemLabel'](_0x324d57);return'indentBlock'==_0x30a1dd['commandName']?{'type':'format','content':o(_0x36b4b0,'*Indent:*\x20%0',_0x2b8c2d)}:'outdentBlock'==_0x30a1dd['commandName']?{'type':'format','content':o(_0x36b4b0,'*Outdent:*\x20%0',_0x2b8c2d)}:void 0x0;});}}class gt extends _0x44fd37{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x44fd37{['afterInit'](){const _0x4182a6=this['editor'];if(!_0x4182a6['plugins']['has']('LinkEditing'))return;const _0x3e1957=_0x4182a6['plugins']['get']('TrackChangesEditing'),_0x45469a=_0x4182a6['commands']['get']('link');_0x3e1957['enableDefaultAttributesIntegration']('link'),_0x3e1957['enableDefaultAttributesIntegration']('unlink'),_0x3e1957['registerInlineAttribute']('linkHref');for(const _0x52beb6 of _0x45469a['manualDecorators'])_0x3e1957['registerInlineAttribute'](_0x52beb6['id']),_0x3e1957['descriptionFactory']['registerAttributeLabel'](_0x52beb6['id'],'link\x20('+_0x52beb6['label']['toLowerCase']()+')');_0x3e1957['descriptionFactory']['registerDescriptionCallback'](_0x384a76=>{if('attribute'!=_0x384a76['type'])return;const {data:_0x27e876}=_0x384a76;if(!_0x27e876||'linkHref'!=_0x27e876['key'])return;const _0xca7a14=_0x27e876['newValue'],_0x55ee34=_0x4182a6['locale'];return{'type':'format','content':null==_0xca7a14?o(_0x55ee34,'*Remove\x20link*'):o(_0x55ee34,'*Set\x20link:*\x20%0','\x22'+_0xca7a14+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c7dea=this['editor'],_0x2a23ac=_0x1c7dea['locale'];_0x1c7dea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39fe52=>{if('formatInline'!=_0x39fe52['type'])return;const {data:_0x2e5af7}=_0x39fe52;if(_0x2e5af7){if('link'==_0x2e5af7['commandName']){const _0x42d31a=_0x2e5af7['commandParams'][0x0];return{'type':'format','content':o(_0x2a23ac,'*Set\x20link:*\x20%0','\x22'+_0x42d31a+'\x22')};}return'unlink'==_0x2e5af7['commandName']?{'type':'format','content':o(_0x2a23ac,'*Remove\x20link*')}:void 0x0;}});}}class dt extends _0x44fd37{['afterInit'](){const _0x22223a=this['editor'],_0x8214a5=_0x22223a['locale'];if(!_0x22223a['plugins']['has']('LegacyListEditing'))return;const _0x280b8c=_0x22223a['plugins']['get']('TrackChangesEditing'),_0x15662b=_0x22223a['plugins']['has']('LegacyTodoListEditing');function _0x190929(_0x99dae5){return()=>{const _0x5902ae=_0x22223a['model']['document']['selection'],_0x4854a8=_0x22223a['commands']['get'](_0x99dae5);if(_0x4854a8['value'])return void _0x22223a['execute']('paragraph',{});const _0x4aafbe=_0x99dae5['slice'](0x0,-0x4),_0x48e8f9=function(_0x2005df,_0x21479e,_0x383cfc){let _0x3758c1=Array['from'](_0x2005df)['filter'](_0x4dee56=>function(_0x2429b4,_0x2569db){return _0x2569db['checkChild'](_0x2429b4['parent'],'listItem')&&!_0x2569db['isObject'](_0x2429b4);}(_0x4dee56,_0x383cfc));_0x3758c1=_0x3758c1['filter'](_0x568d8f=>!_0x568d8f['is']('element','listItem')||_0x568d8f['getAttribute']('listType')!=_0x21479e);const _0x29fdbb=new Set();for(const _0x1e4323 of _0x3758c1)_0x1e4323['is']('element','listItem')?_0x29fdbb['add'](Ne(_0x1e4323)):_0x29fdbb['add'](_0x1e4323);return Array['from'](_0x29fdbb);}(_0x5902ae['getSelectedBlocks'](),_0x4aafbe,_0x22223a['model']['schema']);_0x22223a['model']['change'](()=>{for(const _0x279fba of _0x48e8f9)_0x280b8c['markBlockFormat'](_0x279fba,{'commandName':_0x99dae5,'commandParams':[{'forceValue':!_0x4854a8['value']}],'formatGroupId':'blockName'},Se(_0x279fba));});};}function _0x39fbaa(_0x1c2513){return()=>{const _0x4d62e7=function(_0x311023){let _0x428451=Array['from'](_0x311023);const _0x5aedde=_0x428451['findIndex'](_0x3a4df0=>'listItem'!=_0x3a4df0['name']);return _0x5aedde>-0x1&&(_0x428451=_0x428451['slice'](0x0,_0x5aedde)),_0x428451;}(_0x22223a['model']['document']['selection']['getSelectedBlocks']()),_0x23b327=_0x22223a['model']['createRange'](_0x22223a['model']['createPositionAt'](_0x4d62e7[0x0],'before'),_0x22223a['model']['createPositionAt'](_0x4d62e7[_0x4d62e7['length']-0x1],'end'));_0x22223a['model']['change'](()=>{_0x280b8c['markBlockFormat'](_0x23b327,{'commandName':_0x1c2513,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3c59ee){const _0x2d4b72=new Set();for(const _0x3d7332 of _0x3c59ee){let _0x529158=_0x3d7332['nextSibling'];for(;_0x529158&&_0x529158['getAttribute']('listIndent')>_0x3d7332['getAttribute']('listIndent');)_0x2d4b72['add'](_0x529158),_0x529158=_0x529158['nextSibling'];}return Array['from'](_0x2d4b72);}(_0x4d62e7));});};}_0x280b8c['enableCommand']('numberedList',_0x190929('numberedList')),_0x280b8c['enableCommand']('bulletedList',_0x190929('bulletedList')),_0x15662b&&_0x280b8c['enableCommand']('todoList',_0x190929('todoList')),_0x280b8c['enableCommand']('indentList',_0x39fbaa('indentList')),_0x280b8c['enableCommand']('outdentList',_0x39fbaa('outdentList')),_0x15662b&&_0x280b8c['enableCommand']('checkTodoList',()=>{const _0x5dfbbe=_0x22223a['commands']['get']('checkTodoList'),_0x37d533=Array['from'](_0x5dfbbe['_selectedElements']);_0x37d533['filter'](_0x115ae9=>_0x115ae9['getAttribute']('todoListChecked')!=_0x5dfbbe['value']),_0x22223a['model']['change'](()=>{for(const _0xbce34d of _0x37d533)_0x280b8c['markBlockFormat'](_0xbce34d,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5dfbbe['value']}]});});}),_0x280b8c['descriptionFactory']['registerElementLabel']('listItem',_0x348fc0=>o(_0x8214a5,'ELEMENT_LIST_ITEM',_0x348fc0)),_0x280b8c['descriptionFactory']['registerDescriptionCallback'](_0x3a8eff=>{if('formatBlock'!=_0x3a8eff['type']&&'formatInline'!=_0x3a8eff['type'])return;const {data:_0x53bf45}=_0x3a8eff;if(_0x53bf45){if('numberedList'==_0x53bf45['commandName']||'bulletedList'==_0x53bf45['commandName']||'todoList'==_0x53bf45['commandName'])switch(_0x53bf45['commandName']['replace']('List','')){case'bulleted':return _0x3cad4a(o(_0x8214a5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3cad4a(o(_0x8214a5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3cad4a(o(_0x8214a5,'ELEMENT_TODO_LIST'));}if('indentList'==_0x53bf45['commandName'])return{'type':'format','content':o(_0x8214a5,'*Indent:*\x20%0',o(_0x8214a5,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x53bf45['commandName'])return{'type':'format','content':o(_0x8214a5,'*Outdent:*\x20%0',o(_0x8214a5,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x53bf45['commandName'])return _0x53bf45['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x8214a5,'*Check\x20item*')}:{'type':'format','content':o(_0x8214a5,'*Uncheck\x20item*')};}function _0x3cad4a(_0x217aff){return{'type':'format','content':o(_0x8214a5,'*Change\x20to:*\x20%0',_0x217aff)};}});}}function Ne(_0x2eecb5){const _0x1ad4b5=_0x2eecb5['getAttribute']('listIndent');if(0x0==_0x1ad4b5)return _0x2eecb5;let _0x1afbb2=_0x2eecb5;for(;_0x2eecb5['previousSibling']&&_0x2eecb5['previousSibling']['is']('element','listItem');){const _0x338a9c=_0x2eecb5['previousSibling']['getAttribute']('listIndent');if(_0x338a9c==_0x1ad4b5)_0x1afbb2=_0x2eecb5['previousSibling'];else{if(_0x338a9c<_0x1ad4b5)break;}_0x2eecb5=_0x2eecb5['previousSibling'];}return _0x1afbb2;}function Se(_0x34fa8e){const _0x5b3397=[];if(_0x34fa8e['is']('element','listItem')&&_0x34fa8e['getAttribute']('listIndent')>0x0){let _0x3e22df=_0x34fa8e['nextSibling'];for(;_0x3e22df&&'listItem'==_0x3e22df['name']&&_0x3e22df['getAttribute']('listIndent')==_0x34fa8e['getAttribute']('listIndent');)_0x5b3397['push'](_0x3e22df),_0x3e22df=_0x3e22df['nextSibling'];}return _0x5b3397;}class mt extends _0x44fd37{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x13e3dd=this['editor']['config']['get']('list.properties'),_0x4d2284=this['editor']['plugins']['get']('TrackChangesEditing');_0x13e3dd['styles']&&_0x4d2284['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x13e3dd['reversed']&&_0x4d2284['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x13e3dd['startIndex']&&_0x4d2284['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4d2284['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x289164,_0x16825a={}){const _0x1b31d5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b1967=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1b31d5['markMultiRangeBlockFormat'](_0x4b1967,{'commandName':'listStyle','commandParams':[{'type':_0x16825a['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2cb221,_0x12812a={}){const _0x1f89a1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4acd10=this['_getSuggestionBlocks'](_0xe2bb19=>_0xe2bb19['is']('element','listItem')&&'numbered'===_0xe2bb19['getAttribute']('listType'));if(_0x4acd10['length']<0x1)return;const _0x32304c=_0x4acd10['map'](_0x165f0e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x165f0e,'before'),this['editor']['model']['createPositionAt'](_0x165f0e,0x0)));this['editor']['model']['change'](()=>{_0x1f89a1['markMultiRangeBlockFormat'](_0x32304c,{'commandName':'listReversed','commandParams':[{'reversed':_0x12812a['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x335bb5,_0x113042={}){const _0x4c4ed7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20f9b7=this['_getSuggestionBlocks'](_0x2a3241=>_0x2a3241['is']('element','listItem')&&'numbered'===_0x2a3241['getAttribute']('listType'));if(_0x20f9b7['length']<0x1)return;const _0x3f17a9=_0x20f9b7['map'](_0x339675=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x339675,'before'),this['editor']['model']['createPositionAt'](_0x339675,0x0)));this['editor']['model']['change'](()=>{_0x4c4ed7['markMultiRangeBlockFormat'](_0x3f17a9,{'commandName':'listStart','commandParams':[{'startIndex':_0x113042['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3eda08){if('formatBlock'!=_0x3eda08['type']&&'formatInline'!=_0x3eda08['type'])return;const _0x8c63a5=this['editor']['locale'],{data:_0xcd166e}=_0x3eda08;if(!_0xcd166e)return;let _0x14e616,_0x2ebb06;switch(_0xcd166e['commandName']){case'listStyle':_0x14e616='*Change\x20to:*\x20%0',_0x2ebb06={'type':'format','content':o(_0x8c63a5,_0x14e616,o(_0x8c63a5,this['_getTranslationKeyForListStyle'](_0xcd166e['commandParams'][0x0]['type'])))};break;case'listReversed':_0x14e616=_0xcd166e['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2ebb06={'type':'format','content':o(_0x8c63a5,_0x14e616)};break;case'listStart':_0x14e616='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2ebb06={'type':'format','content':o(_0x8c63a5,_0x14e616,_0xcd166e['commandParams'][0x0]['startIndex'])};}return _0x2ebb06;}['_getSuggestionBlocksForListStyle'](){const _0x48c5ae=this['editor']['plugins']['get']('LegacyListUtils');let _0x2f2c9c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2f2c9c[0x0]?.['is']('element','listItem')&&_0x2f2c9c['unshift'](..._0x48c5ae['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2f2c9c[_0x2f2c9c['length']-0x1]?.['is']('element','listItem')&&_0x2f2c9c['push'](..._0x48c5ae['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2f2c9c=[...new Set(_0x2f2c9c)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2f2c9c=_0x2f2c9c['filter'](_0x355587=>_0x355587['is']('element','listItem'))),_0x2f2c9c;}['_getSuggestionBlocks'](_0x44efc6){const _0x1bc79c=this['editor']['plugins']['get']('LegacyListUtils');let _0x181814=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x44efc6)['map'](_0x22b7ff=>{const _0x57a5cb=this['editor']['model']['createPositionAt'](_0x22b7ff,0x0);return[..._0x1bc79c['getSiblingNodes'](_0x57a5cb,'backward'),..._0x1bc79c['getSiblingNodes'](_0x57a5cb,'forward')];})['flat']();return _0x181814=[...new Set(_0x181814)],_0x181814;}['_getTranslationKeyForListStyle'](_0x3eea50){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3eea50)||'default')['toUpperCase']()+'_LIST_'+_0x3eea50['toUpperCase']()['replace'](/-/g,'_');}}class pt extends _0x44fd37{['afterInit'](){const _0x25a34f=this['editor'];if(!_0x25a34f['plugins']['has']('MediaEmbedEditing'))return;const _0x256cc2=_0x25a34f['plugins']['get']('TrackChangesEditing'),_0x3f02c3=_0x25a34f['locale'];_0x256cc2['enableCommand']('mediaEmbed'),_0x256cc2['descriptionFactory']['registerElementLabel']('media',_0x115f2b=>o(_0x3f02c3,'ELEMENT_MEDIA',_0x115f2b)),_0x25a34f['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1703f8,{writer:_0x123359,options:_0x3ac71b})=>{if(_0x3ac71b['showSuggestionHighlights'])return _0x123359['createEmptyElement']('div');},'converterPriority':'high'}),_0x25a34f['data']['downcastDispatcher']['on']('attribute:url:media',(_0x23ce42,_0x152d16,_0x1e152b)=>{_0x1e152b['options']['showSuggestionHighlights']&&_0x23ce42['stop']();},{'priority':'high'});}}class kt extends _0x44fd37{['afterInit'](){const _0x4c0fd3=this['editor'];_0x4c0fd3['plugins']['has']('MentionEditing')&&_0x4c0fd3['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x44fd37{['afterInit'](){const _0x30f956=this['editor'];if(!_0x30f956['plugins']['has']('MergeFieldsEditing'))return;const _0x49ec0a=_0x30f956['plugins']['get']('TrackChangesEditing'),_0x43c08b=_0x30f956['locale'];_0x49ec0a['enableCommand']('insertMergeField'),_0x49ec0a['enableCommand']('insertMergeFieldBlock'),_0x49ec0a['enableCommand']('insertMergeFieldImage'),_0x49ec0a['descriptionFactory']['registerElementLabel']('mergeField',_0x3e9a63=>o(_0x43c08b,'ELEMENT_MERGE_FIELD',_0x3e9a63)),_0x49ec0a['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3ba828=>o(_0x43c08b,'ELEMENT_MERGE_FIELD',_0x3ba828)),_0x49ec0a['descriptionFactory']['registerDescriptionCallback'](_0x5d7344=>{if('insertion'!=_0x5d7344['type']&&'deletion'!=_0x5d7344['type'])return;const _0x34eaed=_0x5d7344['getContainedElement']();if(null==_0x34eaed)return;const _0x3c9dd5=_0x30f956['plugins']['get']('MergeFieldsEditing');let _0x36a019;switch(_0x3c9dd5['getMergeFieldType'](_0x34eaed)){case null:return;case'image':{const _0x1e1c06=_0x3c9dd5['unwrapAffixes'](_0x34eaed['getAttribute']('src'));_0x36a019=_0x3c9dd5['getLabel'](_0x1e1c06)||_0x1e1c06;break;}default:{const _0x459cd7=_0x34eaed['getAttribute']('id');_0x36a019=_0x3c9dd5['getLabel'](_0x459cd7)||_0x459cd7;break;}}return'insertion'==_0x5d7344['type']?{'type':'insertion','content':o(_0x43c08b,'*Insert:*\x20%0','\x22'+_0x36a019+'\x22\x20'+o(_0x43c08b,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x43c08b,'*Remove:*\x20%0','\x22'+_0x36a019+'\x22\x20'+o(_0x43c08b,'ELEMENT_MERGE_FIELD'))};});}}class bt extends _0x44fd37{['afterInit'](){const _0x4bf79a=this['editor'],_0x5bfc98=_0x4bf79a['plugins']['get']('TrackChangesEditing');_0x4bf79a['plugins']['has']('MultiLevelList')&&(_0x5bfc98['enableDefaultAttributesIntegration']('multiLevelList'),_0x5bfc98['registerBlockAttribute']('listMarkerStyle'),_0x5bfc98['descriptionFactory']['registerDescriptionCallback'](_0xa25031=>this['handleDescriptions'](_0xa25031)));}['handleDescriptions'](_0x44cdd8){const _0x23a149=this['editor']['locale'],{data:_0x210366}=_0x44cdd8,_0xb06c6a={'type':'format','content':''};if(_0x210366&&'listMarkerStyle'==_0x210366['key']){if(!_0x210366['oldValue'])return{'type':'format','content':o(_0x23a149,'*Set\x20format:*\x20%0',o(_0x23a149,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x210366['newValue']+')'};if(!_0x210366['newValue']){let _0x3b5022=_0x44cdd8['head'];for(;_0x3b5022;){if(_0x3b5022['data']&&'listType'==_0x3b5022['data']['key']&&_0x3b5022['data']['newValue'])return _0xb06c6a;_0x3b5022=_0x3b5022['next'];}return{'type':'format','content':o(_0x23a149,'*Remove\x20format:*\x20%0',o(_0x23a149,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x210366['oldValue']+')'};}}}}class yt extends _0x44fd37{['afterInit'](){const _0x483f7d=this['editor'];if(!_0x483f7d['plugins']['has']('PageBreakEditing'))return;_0x483f7d['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x5ebbc3=_0x483f7d['plugins']['get']('TrackChangesEditing'),_0x423aaa=_0x483f7d['locale'];_0x5ebbc3['descriptionFactory']['registerElementLabel']('pageBreak',_0x143a0a=>o(_0x423aaa,'ELEMENT_PAGE_BREAK',_0x143a0a));}}class St extends _0x44fd37{['afterInit'](){const _0x1f9fc3=this['editor'];if(!_0x1f9fc3['plugins']['has']('Paragraph'))return;const _0x4d2b2d=_0x1f9fc3['locale'],_0x59206=_0x1f9fc3['plugins']['get']('TrackChangesEditing');_0x59206['descriptionFactory']['registerElementLabel']('paragraph',_0x300cfd=>o(_0x4d2b2d,'ELEMENT_PARAGRAPH',_0x300cfd)),_0x59206['enableDefaultAttributesIntegration']('paragraph'),_0x59206['enableCommand']('insertParagraph'),_0x1f9fc3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1f9fc3),{'priority':'highest'}),_0x1f9fc3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x51471c,_0x5b4539,_0x5c8d96)=>{_0x5c8d96['options']['showSuggestionHighlights']&&nr(_0x1f9fc3,{'showActiveMarker':!0x1})(_0x51471c,_0x5b4539,_0x5c8d96);},{'priority':'highest'});const _0x332fcb=_0x59206['descriptionFactory'];_0x332fcb['registerDescriptionCallback'](_0x3dcf70=>{if('insertion'!==_0x3dcf70['type'])return;const {start:_0x2606d7,end:_0x1273bf}=_0x3dcf70['getFirstRange']();if(!_0x2606d7['isTouching'](_0x1273bf)||!_0x2606d7['nodeAfter'])return;const _0x9d1cf1=_0x1f9fc3['model']['schema'],_0x5db719=_0x2606d7['nodeAfter'];return _0x9d1cf1['isBlock'](_0x5db719)&&!_0x9d1cf1['isLimit'](_0x5db719)&&_0x9d1cf1['checkChild'](_0x5db719,'$text')?{'type':'insertion','content':o(_0x4d2b2d,'*Insert:*\x20%0',_0x332fcb['getItemLabel'](_0x5db719,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e3a5a=this['editor'],_0x1578bf=_0x2e3a5a['locale'];_0x2e3a5a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25227c=>{if('formatBlock'!=_0x25227c['type'])return;const {data:_0x3602de}=_0x25227c;return _0x3602de&&'paragraph'==_0x3602de['commandName']?{'type':'format','content':o(_0x1578bf,'*Change\x20to:*\x20%0',o(_0x1578bf,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x473a62,{showActiveMarker:_0x148221=!0x0}={}){return(_0x383454,_0x180d3,_0x22d652)=>{const _0x2fc6aa=_0x473a62['plugins']['get']('TrackChangesEditing'),_0x1b1d17=_0x180d3['markerRange']['start'],_0x24fd7f=_0x180d3['markerRange']['end'],_0x310729=_0x473a62['model']['schema'];if(!_0x1b1d17['isTouching'](_0x24fd7f)||!_0x1b1d17['nodeAfter'])return;const _0x1d0ce4=_0x1b1d17['nodeAfter'];if(_0x310729['isBlock'](_0x1d0ce4)&&!_0x310729['isLimit'](_0x1d0ce4)&&_0x310729['checkChild'](_0x1d0ce4,'$text')){if(!_0x22d652['consumable']['consume'](_0x180d3['markerRange'],_0x383454['name']))return;const {id:_0x2157a8,authorId:_0x36e77a}=_0x2fc6aa['_splitMarkerName'](_0x180d3['markerName']),_0x1e1066=_0x22d652['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x2157a8,'data-author-id':_0x36e77a}),_0x53eac3=_0x22d652['mapper']['toViewPosition'](_0x24fd7f);_0x148221&&_0x2fc6aa['activeMarkers']['includes'](_0x180d3['markerName'])&&_0x22d652['writer']['addClass']('ck-suggestion-marker--active',_0x1e1066),_0x22d652['writer']['insert'](_0x53eac3,_0x1e1066),_0x22d652['mapper']['bindElementToMarker'](_0x1e1066,_0x180d3['markerName']);}};}class jt extends _0x44fd37{['afterInit'](){const _0x15ae86=this['editor'];_0x15ae86['commands']['get']('replaceSource')&&_0x15ae86['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class It extends _0x44fd37{['afterInit'](){const _0x448ee9=this['editor'];if(!_0x448ee9['plugins']['has']('RemoveFormatEditing'))return;_0x448ee9['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x70f4b2=this['editor'];_0x70f4b2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b3897=>{if('formatBlock'!=_0x1b3897['type']&&'formatInline'!=_0x1b3897['type'])return;const {data:_0xd5a240}=_0x1b3897;return _0xd5a240&&'removeFormat'==_0xd5a240['commandName']?{'type':'format','content':o(_0x70f4b2['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x44fd37{['afterInit'](){const _0x5aa747=this['editor'];if(!_0x5aa747['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1e1665=_0x5aa747['plugins']['get']('TrackChangesEditing');_0x1e1665['enableCommand']('goToPreviousRestrictedEditingException'),_0x1e1665['enableCommand']('goToNextRestrictedEditingException');const _0x3e0793=_0x5aa747['plugins']['get']('RestrictedEditingModeEditing');_0x3e0793['enableCommand']('trackChanges'),_0x3e0793['enableCommand']('acceptSuggestion'),_0x3e0793['enableCommand']('discardSuggestion'),_0x3e0793['enableCommand']('acceptAllSuggestions'),_0x3e0793['enableCommand']('discardAllSuggestions'),_0x3e0793['enableCommand']('acceptSelectedSuggestions'),_0x3e0793['enableCommand']('discardSelectedSuggestions');}}class _t extends _0x44fd37{['afterInit'](){const _0x333e8c=this['editor'];if(!_0x333e8c['plugins']['has']('ShiftEnter'))return;const _0x1e9ac6=_0x333e8c['plugins']['get']('TrackChangesEditing');_0x1e9ac6['enableCommand']('shiftEnter'),_0x333e8c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ee(_0x333e8c),{'priority':'high'}),_0x333e8c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ee(_0x333e8c),{'priority':'high'}),_0x333e8c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x757329,_0x52b168,_0x352f57)=>{_0x352f57['options']['showSuggestionHighlights']&&Ee(_0x333e8c,{'showActiveMarker':!0x1})(_0x757329,_0x52b168,_0x352f57);}),_0x1e9ac6['descriptionFactory']['registerElementLabel']('softBreak',_0x51fb27=>o(_0x333e8c['locale'],'ELEMENT_LINE_BREAK',_0x51fb27));}}function Ee(_0x5785e8,{showActiveMarker:_0x47b7c3=!0x0}={}){return(_0x5f485f,_0xb0c204,_0x54c219)=>{const _0x181f7f=_0x5785e8['plugins']['get']('TrackChangesEditing');if(!_0x54c219['consumable']['test'](_0xb0c204['markerRange'],_0x5f485f['name']))return;const _0x58352f=_0x5785e8['model'];for(const _0x2145f6 of _0xb0c204['markerRange']['getItems']()){if(!_0x2145f6['is']('element','softBreak'))continue;const _0x2b4514='deletion'==_0xb0c204['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x1e0efb,authorId:_0x4c20e2}=_0x181f7f['_splitMarkerName'](_0xb0c204['markerName']),_0x4b47d9=_0x54c219['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2b4514,'data-suggestion':_0x1e0efb,'data-author-id':_0x4c20e2}),_0x36940c=_0x54c219['mapper']['toViewPosition'](_0x58352f['createPositionBefore'](_0x2145f6));_0x47b7c3&&_0x181f7f['activeMarkers']['includes'](_0xb0c204['markerName'])&&_0x54c219['writer']['addClass']('ck-suggestion-marker--active',_0x4b47d9),_0x54c219['writer']['insert'](_0x36940c,_0x4b47d9),_0x54c219['mapper']['bindElementToMarker'](_0x4b47d9,_0xb0c204['markerName']);}};}class vt extends _0x44fd37{['afterInit'](){const _0x143cd2=this['editor'],_0x3af8be=_0x143cd2['model'],_0x4d99e5=_0x143cd2['locale'];if(!_0x143cd2['plugins']['has']('StandardEditingModeEditing'))return;const _0x45a6a2=_0x143cd2['plugins']['get']('TrackChangesEditing'),_0x997608='restrictedEditingException',_0x258ad7=_0x143cd2['commands']['get'](_0x997608);_0x45a6a2['enableCommand'](_0x997608,(_0x5cddfb,_0xf9edf={})=>{const _0x58d48e=_0x3af8be['document']['selection'];if(_0x58d48e['isCollapsed'])return void _0x5cddfb(_0xf9edf);const _0x4ea7b0=void 0x0!==_0xf9edf['forceValue']?_0xf9edf['forceValue']:!_0x258ad7['value'];_0x3af8be['change'](()=>{const _0x6c2bbe=Array['from'](_0x58d48e['getRanges']());for(const _0x30dd5a of _0x6c2bbe){const _0x2fcbc3=_0x4ea7b0?[_0x30dd5a]:io(_0x997608,_0x30dd5a,_0x3af8be);for(const _0x206970 of _0x2fcbc3)_0x45a6a2['markInlineFormat'](_0x206970,{'commandName':_0x997608,'commandParams':[{'forceValue':_0x4ea7b0}]});}});}),_0x45a6a2['descriptionFactory']['registerDescriptionCallback'](_0x1da44f=>{if('formatBlock'!=_0x1da44f['type']&&'formatInline'!=_0x1da44f['type'])return;const {data:_0x5b200e}=_0x1da44f;return _0x5b200e&&_0x5b200e['commandName']==_0x997608?_0x5b200e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4d99e5,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4d99e5,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class Ct extends _0x44fd37{['afterInit'](){const _0x503d7d=this['editor'];if(!_0x503d7d['plugins']['has']('Style')||!_0x503d7d['plugins']['has']('DataSchema'))return;const _0x2d113b=_0x503d7d['plugins']['get']('TrackChangesEditing'),_0x581ddd=_0x503d7d['locale'],_0x226590=_0x503d7d['config']['get']('style')||{},_0x4e084e=_0x503d7d['plugins']['get']('GeneralHtmlSupport'),_0x5e24c0=_0x503d7d['plugins']['get']('StyleUtils')['normalizeConfig'](_0x503d7d['plugins']['get']('DataSchema'),_0x226590['definitions']);_0x2d113b['enableDefaultAttributesIntegration']('style');const _0x32f2e7=new Set();for(const _0x1ad778 of _0x5e24c0['block']){const _0xbd62e4=_0x4e084e['getGhsAttributeNameForElement'](_0x1ad778['element']);_0x32f2e7['add'](_0xbd62e4);}const _0x3da4a2=new Set();for(const _0x5aa392 of _0x5e24c0['inline']){const _0x2967a3=_0x4e084e['getGhsAttributeNameForElement'](_0x5aa392['element']);_0x3da4a2['add'](_0x2967a3);for(const _0x502446 of _0x5aa392['ghsAttributes'])_0x3da4a2['add'](_0x502446);}for(const _0xdb2b58 of _0x32f2e7)_0x2d113b['registerBlockAttribute'](_0xdb2b58),_0x2d113b['descriptionFactory']['registerAttributeLabel'](_0xdb2b58,o(_0x581ddd,'FORMAT_STYLE'));for(const _0x321edf of _0x3da4a2)_0x2d113b['registerInlineAttribute'](_0x321edf),_0x2d113b['descriptionFactory']['registerAttributeLabel'](_0x321edf,o(_0x581ddd,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1eea36=this['editor'],_0x51be98=_0x1eea36['locale'];_0x1eea36['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3610cf=>{if('formatBlock'!=_0x3610cf['type']&&'formatInline'!=_0x3610cf['type'])return;const {data:_0x2fb12a}=_0x3610cf;return _0x2fb12a&&'style'===_0x2fb12a['commandName']?_0x2fb12a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x51be98,'*Set\x20format:*\x20%0',_0x2fb12a['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x51be98,'*Remove\x20format:*\x20%0',_0x2fb12a['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class $t extends _0x44fd37{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x39b8e1){super(_0x39b8e1),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x279976=this['editor'],_0x29edd2=_0x279976['model']['document']['selection'];if(!_0x279976['plugins']['has']('TableEditing'))return;const _0x661c5c=_0x279976['locale'],_0x43723b=_0x279976['plugins']['get']('TrackChangesEditing'),_0x1f0acf=_0x279976['plugins']['get']('TableUtils');_0x43723b['descriptionFactory']['registerElementLabel']('table',_0x903a0e=>o(_0x661c5c,'ELEMENT_TABLE',_0x903a0e)),this['_setupColumnsRowsFixing'](),_0x43723b['enableCommand']('insertTable'),_0x43723b['enableCommand']('selectTableRow'),_0x43723b['enableCommand']('selectTableColumn');for(const _0x464e29 of['insertTableRowAbove','insertTableRowBelow']){const _0x52a608=_0x279976['commands']['get'](_0x464e29);_0x43723b['enableCommand'](_0x464e29,_0x5b7cee=>{_0x279976['model']['change'](_0x5145d1=>{_0x5b7cee();const _0x2b8d1a='above'===_0x52a608['order'],_0x3cea43=_0x1f0acf['getSelectionAffectedTableCells'](_0x29edd2),_0x2f5bdb=_0x1f0acf['getRowIndexes'](_0x3cea43),_0x4532f5=_0x2b8d1a?_0x2f5bdb['first']-0x1:_0x2f5bdb['last']+0x1,_0x2697fd=_0x3cea43[0x0]['findAncestor']('table'),_0x2e0aff=_0x1f0acf['createTableWalker'](_0x2697fd,{'startRow':_0x4532f5,'endRow':_0x4532f5}),_0x37ae0d=Array['from'](_0x2e0aff)['map'](_0xf2b6b6=>_0x5145d1['createRangeOn'](_0xf2b6b6['cell']));_0x43723b['markMultiRangeInsertion'](_0x37ae0d,'tableRow');});});}for(const _0xc449dd of['insertTableColumnLeft','insertTableColumnRight']){const _0xcf69ad=_0x279976['commands']['get'](_0xc449dd);_0x43723b['enableCommand'](_0xc449dd,_0x314fd9=>{_0x279976['model']['change'](_0x3f2444=>{_0x314fd9();const _0x1e4aac='left'===_0xcf69ad['order'],_0xac5db9=_0x1f0acf['getSelectionAffectedTableCells'](_0x29edd2),_0x10465b=_0x1f0acf['getColumnIndexes'](_0xac5db9),_0x3ea0b3=_0x1e4aac?_0x10465b['first']-0x1:_0x10465b['last']+0x1,_0x1ebe6d=_0xac5db9[0x0]['findAncestor']('table'),_0x1e0e1e=_0x1f0acf['createTableWalker'](_0x1ebe6d,{'startRow':0x0,'column':_0x3ea0b3,'includeAllSlots':!0x1}),_0xab98cb=Array['from'](_0x1e0e1e)['map'](_0x332cd5=>_0x3f2444['createRangeOn'](_0x332cd5['cell']));_0x43723b['markMultiRangeInsertion'](_0xab98cb,'tableColumn');});});}for(const _0x28ed1a of['removeTableRow','removeTableColumn']){const _0x1c993d=_0x28ed1a['substr'](0xb),_0x257775=_0x1c993d['toLowerCase'](),_0x4daff6=_0x257775['substr'](0x0,0x3)+'span',_0x40e839='table'+_0x1c993d,_0x30ae68='min'+_0x1c993d,_0x2619ba='max'+_0x1c993d;_0x43723b['enableCommand'](_0x28ed1a,()=>{_0x279976['model']['change'](_0x5a30da=>{const _0x11f18e=_0x1f0acf['getSelectionAffectedTableCells'](_0x29edd2),_0x32a847=_0x11f18e[0x0]['findAncestor']('table');let _0xe45ef6;if('removeTableRow'==_0x28ed1a){const _0x4c5b7b=_0x1f0acf['getRowIndexes'](_0x11f18e);_0xe45ef6={'startRow':_0x4c5b7b['first'],'endRow':_0x4c5b7b['last'],'includeAllSlots':!0x0};}else{const _0x25dcbc=_0x1f0acf['getColumnIndexes'](_0x11f18e);_0xe45ef6={'startColumn':_0x25dcbc['first'],'endColumn':_0x25dcbc['last'],'includeAllSlots':!0x0};}const _0x3853f6=_0x1f0acf['createTableWalker'](_0x32a847,_0xe45ef6),_0x911ca7=Array['from'](_0x3853f6)['map'](({cell:_0x3c8486})=>_0x3c8486),_0x54f443=We(_0x911ca7['filter'](_0x699352=>_0x699352['hasAttribute'](_0x4daff6))),_0x7f6bcb=We(_0x911ca7['filter'](_0x4e22d8=>!_0x4e22d8['hasAttribute'](_0x4daff6)))['map'](_0x3ebbf4=>_0x5a30da['createRangeOn'](_0x3ebbf4)),_0x53809b=_0x43723b['markMultiRangeDeletion'](_0x7f6bcb,_0x40e839);if(_0x53809b&&('tableRow'==_0x53809b['subType']||'tableColumn'==_0x53809b['subType'])){const _0x300c17=this['_getSuggestionCoords'](_0x53809b);for(const _0x291ea3 of _0x54f443){const _0x5ee768=_0x5a30da['createRangeOn'](_0x291ea3),_0x3feaeb=_0x1f0acf['getCellLocation'](_0x291ea3),_0x399af7=_0x291ea3['getAttribute'](_0x4daff6)-0x1,_0x467ab3=_0x300c17[_0x30ae68],_0x1a2e58=_0x300c17[_0x2619ba];_0x467ab3<=_0x3feaeb[_0x257775]&&_0x3feaeb[_0x257775]+_0x399af7<=_0x1a2e58&&_0x53809b['addRange'](_0x5ee768);}}});});}function _0x34df77(_0x3d4c13){const _0x56d2fb=Array['from'](_0x29edd2['getRanges']())['map'](_0x4f0379=>_0x39adac['fromRange'](_0x4f0379));_0x279976['model']['change'](_0x18ffd1=>{const _0x72f883=_0x18ffd1['batch'];_0x3d4c13=_0x3d4c13['filter'](_0x53deaf=>'$graveyard'!=_0x53deaf['root']['rootName']),_0x18ffd1['setSelection'](_0x3d4c13),_0x279976['commands']['get']('removeTableRow')['refresh'](),_0x279976['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x279976['model']['enqueueChange'](()=>{_0x279976['model']['enqueueChange'](_0x72f883,_0x312490=>{const _0x5e9b3a=_0x56d2fb['filter'](_0x29c5bd=>'$graveyard'!=_0x29c5bd['root']['rootName']);_0x5e9b3a['length']>0x0&&_0x312490['setSelection'](_0x5e9b3a);for(const _0x3738c8 of _0x56d2fb)_0x3738c8['detach']();});});});}function _0x3d980b(_0x1e6697){_0x279976['model']['change'](_0x21c292=>{const _0x147934=Array['from'](_0x29edd2['getRanges']())['map'](_0x4ab701=>_0x39adac['fromRange'](_0x4ab701)),_0x19f552=[];for(const _0x3a972b of _0x1e6697)for(const _0x1c78e4 of _0x3a972b['getItems']({'shallow':!0x0}))_0x19f552['push'](_0x1c78e4);for(const _0x2eccaf of _0x19f552)'$graveyard'!=_0x2eccaf['root']['rootName']&&(_0x21c292['setSelection'](_0x21c292['createPositionAt'](_0x2eccaf,0x0)),_0x279976['commands']['get']('removeTableColumn')['refresh'](),_0x279976['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x100f94=_0x147934['filter'](_0x5dcd57=>'$graveyard'!=_0x5dcd57['root']['rootName']);_0x100f94['length']>0x0&&_0x21c292['setSelection'](_0x100f94);for(const _0x167de1 of _0x147934)_0x167de1['detach']();});}function _0x4fb48d(_0x97ff26,_0x36f81e){return _0x36f81e['every'](_0x390525=>_0x97ff26['some'](_0x17dd6d=>_0x17dd6d['end']['isEqual'](_0x390525['start'])||_0x390525['end']['isEqual'](_0x17dd6d['start'])));}function _0x2145d8(_0xd5a8ff,_0x2117aa){return!_0xd5a8ff['some'](_0x11b649=>_0x2117aa['some'](_0x28f3e3=>_0x11b649['isIntersecting'](_0x28f3e3)))&&_0xd5a8ff['some'](_0x400fc9=>_0x2117aa['some'](_0x139511=>_0x400fc9['end']['isTouching'](_0x139511['start'])));}_0x279976['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x52b645,_0x12d209,_0x34b49a)=>{if(!_0x34b49a['options']['showSuggestionHighlights'])return;const _0x989002=_0x12d209['item'];if(!_0x989002||!_0x989002['is']('element','tableCell'))return;const _0x3d352b=_0x34b49a['mapper']['toViewElement'](_0x989002);if(_0x3d352b){const {id:_0x54bc50,authorId:_0x279e42}=_0x43723b['_splitMarkerName'](_0x12d209['markerName']);_0x3371bf(_0x3d352b,_0x34b49a['writer'],(_0x156693,_0x50c8c1,_0x324f41)=>{_0x324f41['addClass'](_0x264178(_0x50c8c1['classes']),_0x156693),_0x324f41['setAttribute']('data-suggestion-id',_0x54bc50,_0x156693),_0x324f41['setAttribute']('data-author-id',_0x279e42,_0x156693);},(_0x3a9954,_0x4a9d33,_0x12e09d)=>{_0x12e09d['removeClass'](_0x264178(_0x4a9d33['classes']),_0x3a9954),_0x12e09d['removeAttribute']('data-suggestion-id',_0x3a9954),_0x12e09d['removeAttribute']('data-author-id',_0x3a9954);});}},{'priority':'highest'}),_0x43723b['descriptionFactory']['registerDescriptionCallback'](_0x258526=>{if('insertion'!=_0x258526['type']&&'deletion'!=_0x258526['type'])return;const _0x824287=_0x258526['getContainedElement']();if(null!=_0x824287&&_0x824287['is']('element','table')){if('insertion'==_0x258526['type']){const _0x1b0704=_0x258526['getItems']()['filter'](_0x2f49b2=>_0x2f49b2['is']('$textProxy'))['map'](_0x438a83=>_0x438a83['data']);if(_0x1b0704['length'])return{'type':'insertion','content':o(_0x661c5c,'*Insert:*\x20%0',o(_0x661c5c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1b0704['join']('\x20')+'\x22'))};}if('deletion'==_0x258526['type']){const _0x41a1a6=_0x258526['getItems']()['filter'](_0x4e972c=>_0x4e972c['is']('$textProxy'))['map'](_0x2e0499=>_0x2e0499['data']);if(_0x41a1a6['length'])return{'type':'deletion','content':o(_0x661c5c,'*Remove:*\x20%0',o(_0x661c5c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x41a1a6['join']('\x20')+'\x22'))};}}}),_0x43723b['descriptionFactory']['registerDescriptionCallback'](_0x5574dc=>{if('tableRow'==_0x5574dc['subType']){const _0x45e854=_0x5574dc['getItems']()['filter'](_0x4b4cf3=>_0x4b4cf3['is']('$textProxy'))['map'](_0xe786a8=>_0xe786a8['data']),_0x5c05e2=this['_getSuggestionCoords'](_0x5574dc),_0x106b0c=_0x5c05e2['maxRow']-_0x5c05e2['minRow']+0x1;if('insertion'==_0x5574dc['type'])return _0x45e854['length']?{'type':'insertion','content':o(_0x661c5c,'*Insert:*\x20%0',o(_0x661c5c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x106b0c,'\x22'+_0x45e854['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x661c5c,'*Insert:*\x20%0',o(_0x661c5c,'ELEMENT_TABLE_ROW',_0x106b0c))};if('deletion'==_0x5574dc['type'])return _0x45e854['length']?{'type':'deletion','content':o(_0x661c5c,'*Remove:*\x20%0',o(_0x661c5c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x106b0c,'\x22'+_0x45e854['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x661c5c,'*Remove:*\x20%0',o(_0x661c5c,'ELEMENT_TABLE_ROW',_0x106b0c))};}if('tableColumn'==_0x5574dc['subType']){const _0x4e5847=_0x5574dc['getItems']()['filter'](_0xde5509=>_0xde5509['is']('$textProxy'))['map'](_0x51426a=>_0x51426a['data']),_0x35c51b=this['_getSuggestionCoords'](_0x5574dc),_0x2b00f8=_0x35c51b['maxColumn']-_0x35c51b['minColumn']+0x1;if('insertion'==_0x5574dc['type'])return _0x4e5847['length']?{'type':'insertion','content':o(_0x661c5c,'*Insert:*\x20%0',o(_0x661c5c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2b00f8,'\x22'+_0x4e5847['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x661c5c,'*Insert:*\x20%0',o(_0x661c5c,'ELEMENT_TABLE_COLUMN',_0x2b00f8))};if('deletion'==_0x5574dc['type'])return _0x4e5847['length']?{'type':'deletion','content':o(_0x661c5c,'*Remove:*\x20%0',o(_0x661c5c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2b00f8,'\x22'+_0x4e5847['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x661c5c,'*Remove:*\x20%0',o(_0x661c5c,'ELEMENT_TABLE_COLUMN',_0x2b00f8))};}}),_0x43723b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x34df77),_0x43723b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x34df77),_0x43723b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3d980b),_0x43723b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3d980b),_0x43723b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4fb48d),_0x43723b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4fb48d),_0x43723b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2145d8),_0x43723b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2145d8);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4e1ed2=this['editor'],_0x10a85a=_0x4e1ed2['model']['document']['selection'];return(_0x2ba98a,_0x16d6a8)=>{_0x4e1ed2['model']['change'](_0x3c16c2=>{const {commandName:_0x439ae5,commandParams:_0x3052ae}=_0x16d6a8;let _0x1fd6a5=_0x2ba98a[0x0]['end']['nodeBefore'];_0x3052ae&&_0x3052ae[0x0]&&!0x1===_0x3052ae[0x0]['forceValue']&&(_0x1fd6a5=_0x2ba98a[0x0]['start']['nodeAfter']);const _0x494614=_0x3c16c2['createRangeIn'](_0x1fd6a5);if('$graveyard'==_0x494614['root']['rootName'])return;const _0x25fd79=Array['from'](_0x10a85a['getRanges']())['map'](_0x576980=>_0x39adac['fromRange'](_0x576980));_0x3c16c2['setSelection'](_0x494614),_0x4e1ed2['commands']['get'](_0x439ae5)['refresh'](),_0x3052ae['push']({'forceDefaultExecution':!0x0}),_0x4e1ed2['execute'](_0x439ae5,..._0x3052ae);const _0x16feb0=_0x25fd79['filter'](_0x5b0433=>'$graveyard'!=_0x5b0433['root']['rootName']);_0x16feb0['length']>0x0&&_0x3c16c2['setSelection'](_0x16feb0);for(const _0x57670d of _0x25fd79)_0x57670d['detach']();});};}['_getCoordsForCells'](_0x4cad45){const _0x122c6a=this['editor']['plugins']['get']('TableUtils');let _0x245754=Number['MAX_SAFE_INTEGER'],_0x3e12f4=Number['MIN_SAFE_INTEGER'],_0x54e25f=Number['MAX_SAFE_INTEGER'],_0x47fa2c=Number['MIN_SAFE_INTEGER'];for(const _0x4dba51 of _0x4cad45){if('$graveyard'==_0x4dba51['root']['rootName'])continue;const {row:_0x12363b,column:_0x404095}=_0x122c6a['getCellLocation'](_0x4dba51),_0x5a3ac2=_0x4dba51['hasAttribute']('rowspan')?_0x4dba51['getAttribute']('rowspan')-0x1:0x0,_0x32dc75=_0x4dba51['hasAttribute']('colspan')?_0x4dba51['getAttribute']('colspan')-0x1:0x0;_0x245754=_0x12363b<_0x245754?_0x12363b:_0x245754,_0x3e12f4=_0x12363b+_0x5a3ac2>_0x3e12f4?_0x12363b+_0x5a3ac2:_0x3e12f4,_0x54e25f=_0x404095<_0x54e25f?_0x404095:_0x54e25f,_0x47fa2c=_0x404095+_0x32dc75>_0x47fa2c?_0x404095+_0x32dc75:_0x47fa2c;}return{'minRow':_0x245754,'maxRow':_0x3e12f4,'minColumn':_0x54e25f,'maxColumn':_0x47fa2c};}['_setupColumnsRowsFixing'](){const _0x2cec87=this['editor'],_0x174da8=_0x2cec87['plugins']['get']('TrackChangesEditing'),_0x131d1f=_0x2cec87['plugins']['get']('TableUtils');_0x2cec87['model']['document']['on']('change:data',()=>{const _0x39ec42=Array['from'](_0x2cec87['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3da692,data:_0x4f61b5}of _0x39ec42){const {group:_0x35e17c,id:_0x5e3234,subType:_0x14f197}=_0x174da8['_splitMarkerName'](_0x3da692);if('suggestion'!=_0x35e17c)continue;if(null!=_0x4f61b5['oldRange'])continue;const _0x370cdf=_0x174da8['getSuggestion'](_0x5e3234);this['_tablePostFixingSubtypes']['includes'](_0x14f197)&&this['_tableSuggestions']['add'](_0x370cdf);}},{'priority':'low'});const _0x50d20d=(_0x1a0463,_0x18d962)=>{let _0x4d5675=!0x1;const _0x1f185e=_0x18d962['createRangeOn'](_0x1a0463),_0x176e89=_0x1a0463['findAncestor']('table'),_0x420cb0=_0x131d1f['getCellLocation'](_0x1a0463);for(const _0x70e3f6 of this['_tableSuggestions']){const _0x19c16e=_0x70e3f6['subType'],_0x5e6c26=_0x19c16e['startsWith']('tablePaste'),_0x3394c9=_0x19c16e['substr'](_0x5e6c26?0xa:0x5),_0x786657=_0x3394c9['toLowerCase'](),_0x34fa62=_0x786657['substr'](0x0,0x3)+'span',_0x15ec28='min'+_0x3394c9,_0xcf2cdd='max'+_0x3394c9;if(!_0x70e3f6['isInContent'])continue;if(_0x176e89!=_0x70e3f6['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x70e3f6['isIntersectingWithRange'](_0x1f185e))continue;const _0x524542=_0x1a0463['hasAttribute'](_0x34fa62)?_0x1a0463['getAttribute'](_0x34fa62)-0x1:0x0,_0x576c2b=this['_getSuggestionCoords'](_0x70e3f6),_0x4a2b00=_0x576c2b[_0x15ec28],_0x382d7d=_0x576c2b[_0xcf2cdd];_0x4a2b00<=_0x420cb0[_0x786657]&&_0x420cb0[_0x786657]+_0x524542<=_0x382d7d&&(_0x70e3f6['addRange'](_0x1f185e),_0x4d5675=!0x0);}return _0x4d5675;};_0x2cec87['model']['document']['registerPostFixer'](_0x60680a=>{let _0x252d7c=!0x1;for(const _0x1ba7aa of _0x2cec87['model']['document']['differ']['getChanges']())if('insert'==_0x1ba7aa['type']){if('tableRow'==_0x1ba7aa['name']){for(const _0x578a41 of _0x1ba7aa['position']['nodeAfter']['getChildren']())_0x252d7c=_0x252d7c||_0x50d20d(_0x578a41,_0x60680a);}else'tableCell'==_0x1ba7aa['name']&&(_0x252d7c=_0x252d7c||_0x50d20d(_0x1ba7aa['position']['nodeAfter'],_0x60680a));}return _0x252d7c;});}['_getSuggestionCoords'](_0x5db084){return this['_getCoordsForCells'](_0x5db084['getRanges']()['map'](_0x1610a2=>_0x1610a2['start']['nodeAfter']));}}function We(_0x12e73e){return Array['from'](new Set(_0x12e73e)['values']());}class Nt extends _0x44fd37{static get['requires'](){return[$t];}['afterInit'](){const _0x45e8c7=this['editor'],_0x364d25=_0x45e8c7['model']['document']['selection'],_0x1cfdf4=_0x45e8c7['locale'];if(!_0x45e8c7['plugins']['has']('TableEditing'))return;const _0x101eaf=_0x45e8c7['plugins']['get']('TrackChangesEditing'),_0x31ac9f=_0x45e8c7['plugins']['get']('TableUtils'),_0x554ffc=_0x45e8c7['plugins']['get']($t);_0x554ffc['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x101eaf['enableCommand']('mergeTableCells',()=>{const _0x38995d=_0x31ac9f['getSelectionAffectedTableCells'](_0x45e8c7['model']['document']['selection']);_0x45e8c7['model']['change'](()=>{_0x101eaf['markMultiRangeBlockFormat'](_0x38995d,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x45e8c7['commands']['get']('mergeTableCells')['on']('execute',(_0x27f2a8,_0x2bbd16)=>{_0x45e8c7['commands']['get']('trackChanges')['value']&&(_0x2bbd16['length']>0x0&&_0x2bbd16[_0x2bbd16['length']-0x1]&&_0x2bbd16[_0x2bbd16['length']-0x1]['forceDefaultExecution']||_0x101eaf['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x27f2a8['stop']());},{'priority':'highest'});for(const _0x46800e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3883c5=_0x45e8c7['commands']['get'](_0x46800e);_0x101eaf['enableCommand'](_0x46800e,()=>{const _0x1ea54c=_0x45e8c7['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4f2413=>_0x4f2413['is']('element','tableCell')),_0x27e1d0=_0x3883c5['value'];_0x45e8c7['model']['change'](()=>{_0x101eaf['markMultiRangeBlockFormat']([_0x1ea54c,_0x27e1d0],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x176f4f of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5e5fd8=_0x45e8c7['commands']['get'](_0x176f4f);_0x101eaf['enableCommand'](_0x176f4f,()=>{const _0x405e44=_0x31ac9f['getSelectionAffectedTableCells'](_0x45e8c7['model']['document']['selection'])[0x0],_0x29e501=_0x405e44['findAncestor']('table'),{column:_0x455cf8,row:_0x111222}=_0x31ac9f['getCellLocation'](_0x405e44);let _0x1277bd=[];if('horizontally'==_0x5e5fd8['direction']){const _0x20a2f7=_0x31ac9f['createTableWalker'](_0x29e501,{'startRow':_0x111222,'endRow':_0x111222,'includeAllSlots':!0x0});_0x1277bd=Array['from'](_0x20a2f7)['map'](_0x48c1dd=>_0x48c1dd['cell']);}else{const _0x4a8936=_0x31ac9f['createTableWalker'](_0x29e501,{'column':_0x455cf8,'includeAllSlots':!0x0});_0x1277bd=Array['from'](_0x4a8936)['map'](_0x3f409e=>_0x3f409e['cell']);}_0x45e8c7['model']['change'](_0x5eddd3=>{_0x101eaf['markBlockFormat'](_0x5eddd3['createRangeOn'](_0x405e44),{'commandName':_0x176f4f,'commandParams':[]},_0x1277bd,_0x176f4f);});});}_0x101eaf['descriptionFactory']['registerDescriptionCallback'](_0xf3444a=>{if('formatBlock'!=_0xf3444a['type']&&'formatInline'!=_0xf3444a['type'])return;const {data:_0x2e19e1}=_0xf3444a;return _0x2e19e1&&'mergeTableCells'==_0x2e19e1['commandName']?{'type':'format','content':o(_0x1cfdf4,'*Merge\x20cells*')}:void 0x0;}),_0x101eaf['descriptionFactory']['registerDescriptionCallback'](_0x3f652a=>{if('formatBlock'!=_0x3f652a['type']&&'formatInline'!=_0x3f652a['type'])return;const {data:_0x18d74c}=_0x3f652a;return _0x18d74c?'splitTableCellVertically'==_0x18d74c['commandName']?{'type':'format','content':o(_0x1cfdf4,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x18d74c['commandName']?{'type':'format','content':o(_0x1cfdf4,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2daba9=_0x554ffc['_acceptFormatSuggestionCallbackFactory']();for(const _0x4dad80 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x101eaf['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4dad80,'accept',_0x2daba9);for(const _0x533855 of['splitTableCellVertically','splitTableCellHorizontally'])_0x101eaf['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x533855,'accept',_0x2daba9);_0x101eaf['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1882d8=>{_0x45e8c7['model']['change'](_0x54705c=>{const _0x27223b=Array['from'](_0x364d25['getRanges']())['map'](_0x56b1b3=>_0x39adac['fromRange'](_0x56b1b3));_0x54705c['setSelection'](_0x1882d8),_0x45e8c7['commands']['get']('mergeTableCells')['refresh'](),_0x45e8c7['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x561473=_0x27223b['filter'](_0x593bc2=>'$graveyard'!=_0x593bc2['root']['rootName']);_0x561473['length']>0x0&&_0x54705c['setSelection'](_0x561473);for(const _0x33d39a of _0x27223b)_0x33d39a['detach']();});});for(const _0x237b63 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2a7d2e=_0x45e8c7['commands']['get'](_0x237b63);_0x2a7d2e['on']('set:isEnabled',(_0x46584f,_0x4e7a6d,_0x13c382)=>{if(_0x13c382){const _0x3649fd=_0x45e8c7['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x35d881=>_0x35d881['is']('element','tableCell'));this['_areMergableCells'](_0x2a7d2e['value'],_0x3649fd)||(_0x46584f['return']=!0x1,_0x46584f['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1c6a04=this['editor']['commands']['get']('mergeTableCells'),_0x3420ab=this['editor']['plugins']['get']('TableUtils');if(!_0x1c6a04['isEnabled'])return!0x1;const _0x45365b=_0x3420ab['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3a5f8a of _0x45365b)for(const _0x3d7999 of _0x45365b)if(_0x3a5f8a!=_0x3d7999&&!this['_areMergableCells'](_0x3a5f8a,_0x3d7999))return!0x1;return!0x0;}['_areMergableCells'](_0xbeefc,_0x51bdbf){const _0x3d2fcd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x457a38=this['editor']['model']['createRangeOn'](_0xbeefc),_0x3095a0=this['editor']['model']['createRangeOn'](_0x51bdbf),_0xb85aa8=new Set(),_0x747d0d=new Set();for(const _0x508007 of _0x3d2fcd['getSuggestions']())if(('insertion'==_0x508007['type']||'deletion'==_0x508007['type']||'mergeTableCells'==_0x508007['subType'])&&_0x508007['isInContent']){for(const _0x37e843 of _0x508007['getRanges']())_0x37e843['containsRange'](_0x457a38,!0x0)&&_0xb85aa8['add'](_0x508007['type']+':'+_0x508007['author']['id']),_0x37e843['containsRange'](_0x3095a0,!0x0)&&_0x747d0d['add'](_0x508007['type']+':'+_0x508007['author']['id']);}if(_0xb85aa8['size']!=_0x747d0d['size'])return!0x1;for(const _0x18e02a of _0xb85aa8)if(!_0x747d0d['has'](_0x18e02a))return!0x1;return!0x0;}}class Dt extends _0x44fd37{static get['requires'](){return[$t];}['afterInit'](){const _0x3a57bd=this['editor'];if(!_0x3a57bd['plugins']['has']('TableEditing'))return;const _0x111ef0=_0x3a57bd['locale'],_0x4c3d5d=_0x3a57bd['plugins']['get']('TrackChangesEditing');_0x4c3d5d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4c3d5d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4c3d5d['registerBlockAttribute']('headingRows'),_0x4c3d5d['registerBlockAttribute']('headingColumns'),_0x4c3d5d['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x111ef0,'FORMAT_HEADER_ROW')),_0x4c3d5d['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x111ef0,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xfc4679=this['editor']['plugins']['get']('TrackChangesEditing'),_0x162acc=this['editor']['plugins']['get']('TableUtils'),_0x473405=this['editor']['plugins']['get']($t)['_acceptFormatSuggestionCallbackFactory']();function _0x3e5d34({showActiveMarker:_0x1db4b5=!0x0,setDataAttribute:_0x3838d6=!0x0}={}){return(_0x25619d,_0x7d38e1,_0x28436f)=>{const {type:_0x436a89,id:_0x12b4ea}=_0xfc4679['_splitMarkerName'](_0x7d38e1['markerName']);if(!_0xfc4679['hasSuggestion'](_0x12b4ea))return;const _0x31ad11=_0xfc4679['getSuggestion'](_0x12b4ea),_0x283327=_0x31ad11['data'];if('formatBlock'!=_0x31ad11['type']||!_0x283327||'setTableColumnHeader'!=_0x283327['commandName'])return;if(_0x7d38e1['item'])return void _0x25619d['stop']();if(!_0x28436f['consumable']['consume'](_0x7d38e1['markerRange'],_0x25619d['name']))return;const _0x5d0238=_0x7d38e1['markerRange']['start']['nodeAfter'],_0x11aabe=_0x7d38e1['markerRange']['end']['nodeBefore'],_0x3fe0e5=_0x5d0238['parent']['parent'],{column:_0x44360b}=_0x162acc['getCellLocation'](_0x5d0238),{column:_0xb97d36}=_0x162acc['getCellLocation'](_0x11aabe);for(let _0x168884=_0x44360b;_0x168884<=_0xb97d36;_0x168884++){const _0xb58496=_0x162acc['createTableWalker'](_0x3fe0e5,{'column':_0x168884,'includeAllSlots':!0x1});for(const _0x1a3602 of _0xb58496){const _0xb1d577=_0x1a3602['cell'],_0x5d6e54=_0x28436f['mapper']['toViewElement'](_0xb1d577);_0x28436f['writer']['addClass']('ck-suggestion-marker-'+_0x436a89,_0x5d6e54),_0x3838d6&&_0x28436f['writer']['setAttribute']('data-suggestion',_0x12b4ea,_0x5d6e54),_0x28436f['mapper']['bindElementToMarker'](_0x5d6e54,_0x7d38e1['markerName']),_0x1db4b5&&(_0xfc4679['activeMarkers']['includes'](_0x7d38e1['markerName'])?_0x28436f['writer']['addClass']('ck-suggestion-marker--active',_0x5d6e54):_0x28436f['writer']['removeClass']('ck-suggestion-marker--active',_0x5d6e54));}}};}_0xfc4679['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x473405),_0xfc4679['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x473405),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3e5d34(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5d4012,_0x594417,_0x2ef0aa)=>{_0x2ef0aa['options']['showSuggestionHighlights']&&_0x3e5d34({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5d4012,_0x594417,_0x2ef0aa);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2ac67d,_0x14e345,_0x1d148a)=>{const {type:_0xe6f804,id:_0x80e08}=_0xfc4679['_splitMarkerName'](_0x14e345['markerName']);if(!_0xfc4679['hasSuggestion'](_0x80e08))return;const _0x582565=_0xfc4679['getSuggestion'](_0x80e08),_0xe107e5=_0x582565['data'];if('formatBlock'!=_0x582565['type']||!_0xe107e5||'setTableColumnHeader'!=_0xe107e5['commandName'])return;const _0x60ed5b=_0x1d148a['mapper']['markerNameToElements'](_0x14e345['markerName']);if(_0x60ed5b){for(const _0x4fc473 of _0x60ed5b)_0x1d148a['writer']['removeClass']('ck-suggestion-marker-'+_0xe6f804,_0x4fc473),_0x1d148a['writer']['removeClass']('ck-suggestion-marker--active',_0x4fc473),_0x1d148a['writer']['removeAttribute']('data-suggestion',_0x4fc473),_0x1d148a['mapper']['unbindElementFromMarkerName'](_0x4fc473,_0x14e345['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38bb9a=this['editor'],_0x38ac01=_0x38bb9a['locale'];function _0x1861fb(_0x1c40e5){return{'type':'format','content':o(_0x38ac01,'*Format:*\x20%0',_0x1c40e5)};}_0x38bb9a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x385ca2=>{if('formatBlock'!=_0x385ca2['type'])return;const {data:_0x16a4e3}=_0x385ca2;if(_0x16a4e3){if('setTableRowHeader'==_0x16a4e3['commandName']){const _0x5168c9=_0x16a4e3['commandParams'][0x0]['forceValue'];return _0x1861fb(o(_0x38ac01,_0x5168c9?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x16a4e3['commandName']){const _0x4b630f=_0x16a4e3['commandParams'][0x0]['forceValue'];return _0x1861fb(o(_0x38ac01,_0x4b630f?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Mt extends _0x44fd37{['afterInit'](){const _0xc0cfc3=this['editor'],_0x2bb31f=_0xc0cfc3['locale'],_0x54a47c=_0xc0cfc3['plugins']['get']('TrackChangesEditing');function _0x41d931(_0x51f775){return{'type':'format','content':''+o(_0x2bb31f,'*Set\x20table\x20type:*\x20%0',_0x51f775)};}_0xc0cfc3['plugins']['has']('TableLayout')&&(_0x54a47c['enableCommand']('insertTableLayout'),_0x54a47c['enableDefaultAttributesIntegration']('tableType'),_0x54a47c['registerBlockAttribute']('tableType'),_0x54a47c['descriptionFactory']['registerElementLabel'](_0x491f26=>_0x491f26['is']('element','table')&&'layout'===_0x491f26['getAttribute']('tableType'),_0x4f145c=>o(_0x2bb31f,'ELEMENT_LAYOUT_TABLE',_0x4f145c)),_0x54a47c['descriptionFactory']['registerDescriptionCallback'](_0x2ead75=>{const {data:_0x518f9d}=_0x2ead75;if(_0x518f9d&&'tableType'==_0x518f9d['key'])switch(_0x518f9d['newValue']){case'layout':return _0x41d931(o(_0x2bb31f,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x41d931(o(_0x2bb31f,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Oe['map'](_0x53dece=>[_0x53dece,null]));class Bt extends _0x44fd37{static get['requires'](){return[$t];}['afterInit'](){const _0x356a59=this['editor'];if(!_0x356a59['plugins']['has']('TableClipboard'))return;const _0x5a6989=_0x356a59['plugins']['get']('TrackChangesEditing'),_0x4411c1=_0x356a59['plugins']['get']('TableUtils'),_0xb3a2be=_0x356a59['plugins']['get']($t),_0x27196c=_0x356a59['plugins']['get']('TableClipboard'),_0x18b7bb=_0x356a59['plugins']['get']('TableSelection'),_0x8e9c28=_0x356a59['plugins']['get'](_0xd7513a);_0xb3a2be['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x356a59['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x356a59['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x186e5b=null,_0x35ebce=!0x1;_0x8e9c28['on']('contentInsertion',(_0x12a0c8,_0x3ce3fb)=>{_0x35ebce='paste'===_0x3ce3fb['method'];}),_0x356a59['model']['on']('insertContent',(_0x477534,_0x23a710)=>{if(!_0x35ebce&&null===_0x18b7bb['getSelectedTableCells']())return;const [_0x50cb3c,_0x2f18c8]=_0x23a710,_0x10c92e=_0x23a710[_0x23a710['length']-0x1];_0x10c92e&&_0x10c92e['forceDefaultExecution']||_0x5a6989['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x24c032,_0x567c2f,_0x31c85d,_0x3ceb94,_0x22f668){if(_0x567c2f&&!_0x567c2f['is']('documentSelection'))return!0x1;const _0x1c7d8a=_0x22f668['getTableIfOnlyTableInContent'](_0x24c032,_0x31c85d);if(!_0x1c7d8a||!He(_0x1c7d8a,void 0x0,_0x3ceb94))return!0x1;const _0x40799f=_0x3ceb94['getSelectionAffectedTableCells'](_0x31c85d['document']['selection']);if(!_0x40799f['length'])return!0x1;const _0x3cf31b=_0x40799f[0x0]['findAncestor']('table'),_0xe3049e=_0x3ceb94['getRowIndexes'](_0x40799f),_0x42b342=_0x3ceb94['getColumnIndexes'](_0x40799f),_0x5b331a={'startRow':_0xe3049e['first'],'endRow':_0xe3049e['last'],'startColumn':_0x42b342['first'],'endColumn':_0x42b342['last']};return 0x1==_0x40799f['length']&&(_0x5b331a['endRow']+=_0x3ceb94['getRows'](_0x1c7d8a)-0x1,_0x5b331a['endColumn']+=_0x3ceb94['getColumns'](_0x1c7d8a)-0x1),He(_0x3cf31b,_0x5b331a,_0x3ceb94);}(_0x50cb3c,_0x2f18c8,_0x356a59['model'],_0x4411c1,_0x27196c)&&(_0x477534['stop'](),_0x186e5b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x356a59['model']['change'](()=>{_0x356a59['model']['insertContent'](_0x23a710[0x0],_0x23a710[0x1],_0x23a710[0x2],{'forceDefaultExecution':!0x0});const _0xcda94f=_0x5b7b63(),{rowInsertionRanges:_0x21f59c,columnInsertionRanges:_0x474bb9,insertionRanges:_0x44968f,deletionRanges:_0x322ea0,cells:_0x1adc61}=_0x186e5b;_0x21f59c['length']&&_0x5a6989['markMultiRangeInsertion'](_0x21f59c,'tablePasteRow',{'tablePasteChainId':_0xcda94f}),_0x474bb9['length']&&_0x5a6989['markMultiRangeInsertion'](_0x474bb9,'tablePasteColumn',{'tablePasteChainId':_0xcda94f}),_0x44968f['length']&&(_0x5a6989['markMultiRangeInsertion'](_0x44968f,'tablePaste',{'tablePasteChainId':_0xcda94f,'skipNestingCheck':!0x0}),_0x44968f['forEach'](_0x3d106a=>_0x3d106a['detach']?.())),_0x322ea0['length']&&(_0x5a6989['markMultiRangeDeletion'](_0x322ea0,'tablePaste',{'tablePasteChainId':_0xcda94f,'skipNestingCheck':!0x0}),_0x322ea0['forEach'](_0x5ebf7c=>_0x5ebf7c['detach']?.()));const _0x4bfc5c=_0x5a6989['markMultiRangeBlockFormat'](_0x1adc61['map'](({element:_0x1d634c})=>_0x1d634c),{'formatGroupId':_0x5b7b63()},[],'tablePasteCell',{'tablePasteChainId':_0xcda94f});if(_0x4bfc5c){const _0x52b6ed=_0x4bfc5c['getMarkers'](),_0x183461=[];for(const {element:_0x65af66,attributes:_0x376c8e}of _0x1adc61){if(!_0x376c8e)continue;const _0x32795e=_0x356a59['model']['createRangeOn'](_0x65af66),_0x294bbe=_0x52b6ed['find'](_0xe3aec8=>_0xe3aec8['getRange']()['isEqual'](_0x32795e));_0x294bbe&&_0x183461['push']([_0x294bbe['name'],_0x376c8e]);}_0x183461['length']&&_0x4bfc5c['setAttribute']('markerAttributes',Object['fromEntries'](_0x183461));}_0x186e5b=null;}));},{'priority':_0x5aa02d['high']+0xa}),_0x8e9c28['on']('contentInsertion',()=>{_0x35ebce=!0x1;},{'priority':'lowest'}),_0x356a59['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1482d9,_0x488c17)=>{const [_0x20cfd2,_0x44a7e2,,_0x33ffc5]=_0x488c17;if(!_0x186e5b)return;_0x1482d9['stop']();const _0x324334=_0x20cfd2['cell'],_0x516a26=_0x44a7e2,_0x5dab82=De(_0x324334),_0x3c22c3=De(_0x516a26);_0x1482d9['return']=_0x324334;let _0x2f4e66=null,_0x2cc083=null;if(_0x3c22c3||_0x5dab82){if(_0x5dab82&&!_0x3c22c3){_0x33ffc5['remove'](_0x324334['getChild'](0x0));for(const _0x51c82f of Array['from'](_0x516a26['getChildren']()))_0x33ffc5['insert'](_0x51c82f,_0x324334,'end');const _0x1b8f5f=_0x186e5b['rowInsertionIndexes']['includes'](_0x20cfd2['row']),_0x573d61=_0x186e5b['columnInsertionIndexes']['includes'](_0x20cfd2['column']);_0x1b8f5f||_0x573d61||(_0x2f4e66=_0x39adac['fromRange'](_0x33ffc5['createRangeIn'](_0x324334)));}else _0x3c22c3&&!_0x5dab82&&(_0x2cc083=_0x33ffc5['createRangeIn'](_0x324334));}else{const _0x40b1c0=_0x33ffc5['createElement']('tableCellSuggestion'),_0x422c6f=_0x33ffc5['createElement']('tableCellSuggestion');_0x33ffc5['wrap'](_0x33ffc5['createRangeIn'](_0x324334),_0x422c6f),_0x33ffc5['insert'](_0x40b1c0,_0x324334,0x0);for(const _0x5c0a8e of Array['from'](_0x516a26['getChildren']()))_0x33ffc5['insert'](_0x5c0a8e,_0x40b1c0,'end');_0x2f4e66=_0x39adac['fromRange'](_0x33ffc5['createRangeOn'](_0x40b1c0)),_0x2cc083=_0x39adac['fromRange'](_0x33ffc5['createRangeOn'](_0x422c6f));}const _0x4292fc=Array['from'](_0x516a26['getAttributes']())['filter'](([_0x272862])=>Oe['includes'](_0x272862));_0x186e5b['cells']['push']({'element':_0x324334,'attributes':_0x4292fc['length']?Object['fromEntries'](_0x4292fc):null}),_0x2f4e66&&_0x186e5b['insertionRanges']['push'](_0x2f4e66),_0x2cc083&&_0x186e5b['deletionRanges']['push'](_0x2cc083);},{'priority':'high'}),_0x4411c1['on']('insertColumns',(_0x22959c,_0x30d062)=>{const [_0x1c6723,_0x298c36={}]=_0x30d062;if(!_0x186e5b)return;const _0x12e52e=_0x298c36['at']||0x0,_0x2e39bd=_0x298c36['columns']||0x1;_0x186e5b['columnInsertionIndexes']=new Array(_0x2e39bd)['fill'](_0x12e52e)['map']((_0x36b659,_0x211dba)=>_0x36b659+_0x211dba);for(const {cell:_0x101e3d}of _0x4411c1['createTableWalker'](_0x1c6723,{'startColumn':_0x12e52e,'endColumn':_0x12e52e+_0x2e39bd-0x1}))_0x186e5b['columnInsertionRanges']['push'](_0x356a59['model']['createRangeOn'](_0x101e3d));},{'priority':'low'}),_0x4411c1['on']('insertRows',(_0x23f6e9,_0x5b36e0)=>{const [_0x57160a,_0x18812c={}]=_0x5b36e0;if(!_0x186e5b)return;const _0x512c06=_0x18812c['at']||0x0,_0x4bc33d=_0x18812c['rows']||0x1;_0x186e5b['rowInsertionIndexes']=new Array(_0x4bc33d)['fill'](_0x512c06)['map']((_0x16efe1,_0x4fdb50)=>_0x16efe1+_0x4fdb50);for(const {cell:_0x31855d}of _0x4411c1['createTableWalker'](_0x57160a,{'startRow':_0x512c06,'endRow':_0x512c06+_0x4bc33d-0x1}))_0x186e5b['rowInsertionRanges']['push'](_0x356a59['model']['createRangeOn'](_0x31855d));},{'priority':'low'}),_0x5a6989['descriptionFactory']['registerDescriptionCallback'](_0x474324=>{if(_0x474324['subType']&&_0x474324['subType']['startsWith']('tablePaste'))return _0x474324['previous']?{}:{'type':'insertion','content':o(_0x356a59['locale'],'*Replace\x20table\x20cells*')};});const _0x324d07=()=>!0x1;for(const _0x66afac of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5a6989['_suggestionFactory']['registerCustomCallback']('insertion',_0x66afac,'join',_0x324d07),_0x5a6989['_suggestionFactory']['registerCustomCallback']('deletion',_0x66afac,'join',_0x324d07),_0x5a6989['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x66afac,'join',_0x324d07);_0x5a6989['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x324d07),_0x5a6989['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4a3fe1,_0xc0ee8b,_0x58a720)=>{const _0x345317=_0x4a3fe1['map'](_0xb76537=>_0xb76537['getContainedElement']())['filter'](_0x113890=>_0x113890),_0x2893b7=new Map(_0x345317['map'](_0x42ca76=>[_0x42ca76,null]));if(_0x186e5b){for(const {element:_0xf67b35,attributes:_0x52d9fe}of _0x186e5b['cells'])_0x52d9fe&&_0x2893b7['set'](_0xf67b35,_0x52d9fe);}else{if(_0x58a720&&_0x58a720['markerAttributes'])for(const [_0x393e93,_0x29e7ec]of Object['entries'](_0x58a720['markerAttributes'])){const _0xfac6d2=_0x356a59['model']['markers']['get'](_0x393e93),_0x2dd06c=_0xfac6d2?_0xfac6d2['getRange']()['getContainedElement']():null;_0x2dd06c&&_0x2893b7['set'](_0x2dd06c,_0x29e7ec);}}_0x356a59['model']['change'](_0x3e6818=>{for(const [_0x713c83,_0x16b694]of _0x2893b7)_0x3e6818['setAttributes']({...Ue,..._0x16b694},_0x713c83);});});const _0x57f865=(_0x31f346,_0x381b12)=>{_0x5a6989['_suggestionFactory']['registerCustomCallback'](_0x31f346,'tablePaste',_0x381b12,(_0x2588e7,_0x2f74d8,_0x560c70)=>{_0x356a59['model']['change'](_0xa75988=>{const _0x4e75c2=[];for(const _0x1f620f of _0x2588e7){const _0x1ebe5f=_0x1f620f['start']['nodeAfter'];_0x1ebe5f['is']('element','tableCellSuggestion')&&_0x4e75c2['push'](_0x1ebe5f);}_0x5a6989['_suggestionFactory']['getSuggestionCallback'](_0x31f346,null,_0x381b12)(_0x2588e7,_0x2f74d8,_0x560c70);for(const _0x29b44c of _0x4e75c2)'$graveyard'!=_0x29b44c['root']['rootName']&&_0xa75988['unwrap'](_0x29b44c);});});};_0x57f865('insertion','accept'),_0x57f865('insertion','discard'),_0x57f865('deletion','accept'),_0x57f865('deletion','discard'),_0x5a6989['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x441882=>{const _0x2cb4f6=_0x441882['map'](_0x1d0f71=>_0x1d0f71['getContainedElement']()),_0x2b82b6=_0x2cb4f6[0x0]['findAncestor']('table'),{minRow:_0x17412c,maxRow:_0x32a2ec}=_0xb3a2be['_getCoordsForCells'](_0x2cb4f6);_0x4411c1['removeRows'](_0x2b82b6,{'at':_0x17412c,'rows':_0x32a2ec-_0x17412c+0x1});}),_0x5a6989['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x59abb6=>{const _0x150efd=_0x59abb6['map'](_0x4e1c9a=>_0x4e1c9a['getContainedElement']()),_0x2eba58=_0x150efd[0x0]['findAncestor']('table'),{minColumn:_0x503fba,maxColumn:_0x31cae0}=_0xb3a2be['_getCoordsForCells'](_0x150efd);_0x4411c1['removeColumns'](_0x2eba58,{'at':_0x503fba,'columns':_0x31cae0-_0x503fba+0x1});});const _0x3f2c38=(_0x1daa4c,_0x207b55)=>{if(!_0x207b55['subType']||!_0x207b55['subType']['startsWith']('tablePaste'))return;const _0x313c13=_0x207b55['attributes']['tablePasteChainId'],_0x44a560=_0x5a6989['getSuggestions']()['filter'](_0x4fca57=>_0x4fca57['isInContent']&&_0x4fca57['attributes']&&_0x4fca57['attributes']['tablePasteChainId']==_0x313c13);_0x44a560['length']&&_0x207b55['getAllAdjacentSuggestions']()['length']!=_0x44a560['length']&&_0x44a560['reduce']((_0xa32ca,_0x40bff0)=>(_0xa32ca['next']=_0x40bff0,_0x40bff0['previous']=_0xa32ca,_0x40bff0));};function _0x64d1cd(_0x53a60e,_0x1704f7=!0x0){const {id:_0x2a1e27,authorId:_0x58c751}=_0x5a6989['_splitMarkerName'](_0x53a60e['markerName']),_0x14b9f5=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x453f97=_0x5a6989['activeMarkers']['includes'](_0x53a60e['markerName']);return _0x453f97&&_0x14b9f5['push']('ck-suggestion-marker--active'),{'classes':_0x14b9f5,'attributes':{'data-suggestion':_0x2a1e27,'data-author-id':_0x58c751},'priority':_0x453f97&&_0x1704f7?0xbc2:0xbb8};}_0x5a6989['on']('suggestionLoaded',_0x3f2c38,{'priority':'high'}),_0x5a6989['on']('suggestionUnloaded',_0x3f2c38,{'priority':'high'}),_0x356a59['model']['document']['registerPostFixer'](()=>{let _0x21822f=!0x1;const _0x48095a=Array['from'](_0x356a59['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1291a4,data:_0x318c63}of _0x48095a){const {group:_0x357c0a,type:_0x117678,id:_0x5ebde9}=_0x5a6989['_splitMarkerName'](_0x1291a4);if('suggestion'!=_0x357c0a||'deletion'!=_0x117678||_0x318c63['oldRange'])continue;if(!_0x5a6989['hasSuggestion'](_0x5ebde9))continue;const _0x553936=_0x5a6989['getSuggestion'](_0x5ebde9)['getRanges'](),_0x2b098c=_0x356a59['plugins']['get']('Users')['me'];for(const _0x292841 of _0x5a6989['getSuggestions']()){if(!_0x292841['isInContent']||_0x292841['author']!=_0x2b098c)continue;if('formatBlock'!=_0x292841['type']||'tablePasteCell'!=_0x292841['subType'])continue;if(_0x292841['getRanges']()['every'](_0xa02cd8=>_0x553936['some'](_0xc2862f=>_0xc2862f['containsRange'](_0xa02cd8,!0x0)))){for(const _0x4ca472 of _0x292841['getAllAdjacentSuggestions']())_0x4ca472['isInContent']&&(_0x4ca472['discard'](),_0x21822f=!0x0);}}}return _0x21822f;}),_0x356a59['model']['document']['registerPostFixer'](_0x16adb1=>{const _0xd13429=_0x356a59['commands']['get']('redo');if(!_0xd13429||!_0xd13429['_createdBatches']['has'](_0x16adb1['batch']))return!0x1;let _0x59638f=!0x1;const _0x4603cd=_0x356a59['plugins']['get']('Users')['me'],_0x270726=_0x356a59['model']['document']['differ']['getChanges'](),_0x3f6e54=Array['from'](_0x356a59['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xe9fb2a,data:_0x277aad})=>{const {group:_0x11ffc1,subType:_0x2ce517,authorId:_0xfa7bdc}=_0x5a6989['_splitMarkerName'](_0xe9fb2a);return'suggestion'==_0x11ffc1&&'tablePaste'==_0x2ce517&&_0xfa7bdc==_0x4603cd['id']&&!_0x277aad['oldRange'];});for(const _0x522fbb of _0x270726){if('insert'!=_0x522fbb['type']||'tableCellSuggestion'!=_0x522fbb['name']||0x1!=_0x522fbb['length'])continue;const _0x453387=_0x16adb1['createRange'](_0x522fbb['position'],_0x522fbb['position']['getShiftedBy'](0x1));if(!_0x3f6e54['find'](({data:_0x46e659})=>_0x46e659['newRange']['isEqual'](_0x453387))){for(const {name:_0xc6d3af,data:_0x7ce11f}of _0x3f6e54)if(_0x453387['containsRange'](_0x7ce11f['newRange'])){_0x16adb1['updateMarker'](_0xc6d3af,{'range':_0x453387}),_0x59638f=!0x0;break;}}}return _0x59638f;}),_0x356a59['model']['document']['registerPostFixer'](_0x321520=>{let _0x3c64c3=!0x1;const _0x3eb23a=_0x356a59['plugins']['get']('Users')['me'],_0xcc1ed5=_0x5a6989['getSuggestions']()['filter'](_0x109352=>_0x109352['isInContent']&&_0x109352['author']==_0x3eb23a),_0x369785=new Set(),_0x2dcc8b=new Set();for(const _0x250f00 of _0xcc1ed5)if('tablePaste'==_0x250f00['subType'])for(const _0x4baa0c of _0x250f00['getMarkers']()){const _0x150973=_0x4baa0c['getRange']()['getContainedElement']();if(_0x150973){if(_0x150973['is']('element','tableCellSuggestion')&&De(_0x150973)){_0x250f00['removeMarker'](_0x4baa0c['name']),_0x369785['add'](_0x150973),_0x3c64c3=!0x0;const _0x49764c=_0x150973['nextSibling'],_0x5e3e0a=_0x150973['previousSibling'],_0x256e32=_0x49764c&&_0x49764c['is']('element','tableCellSuggestion'),_0x2cf93a=_0x5e3e0a&&_0x5e3e0a['is']('element','tableCellSuggestion');_0x256e32&&!_0x369785['has'](_0x49764c)&&_0x2dcc8b['add'](_0x49764c),_0x2cf93a&&!_0x369785['has'](_0x5e3e0a)&&_0x2dcc8b['add'](_0x5e3e0a);}else _0x150973['is']('element','paragraph')&&_0x150973['isEmpty']&&(_0x250f00['removeMarker'](_0x4baa0c['name']),_0x3c64c3=!0x0);}}else{if('tablePasteCell'==_0x250f00['subType']){if(!_0x250f00['attributes']||!_0x250f00['attributes']['tablePasteChainId'])continue;const _0x374c84=_0x250f00['attributes']['markerAttributes'];if(_0x374c84&&Object['keys'](_0x374c84)['length'])continue;const _0x4fbead=_0x250f00['attributes']['tablePasteChainId'];let _0x109688=!0x0,_0x2d9284=!0x0;for(const _0x193edc of _0xcc1ed5)if(_0x193edc['subType']&&_0x193edc['subType']['startsWith']('tablePaste')){if(!_0x193edc['attributes']['tablePasteChainId']){_0x2d9284=!0x1;break;}if(_0x193edc['id']!=_0x250f00['id']&&_0x193edc['attributes']['tablePasteChainId']==_0x4fbead){_0x109688=!0x1;break;}}_0x2d9284&&_0x109688&&(_0x250f00['removeMarkers'](),_0x3c64c3=!0x0);}}for(const _0x19bb94 of _0x369785)_0x321520['remove'](_0x19bb94);for(const _0x3830da of _0x2dcc8b)_0x321520['unwrap'](_0x3830da);return _0x3c64c3;}),_0x356a59['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5796a7=>_0x64d1cd(_0x5796a7),'converterPriority':'high'}),_0x356a59['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x593aa2,_0xe2ec09)=>_0xe2ec09['options']['showSuggestionHighlights']?_0x64d1cd(_0x593aa2,!0x1):null,'converterPriority':'high'});const _0x4f2cc5=_0x356a59['editing']['view'];this['listenTo'](_0x4f2cc5['document'],'clipboardOutput',(_0x5dceac,_0x48183b)=>{const _0x4639bd=[];for(const _0x5c3507 of _0x4f2cc5['createRangeIn'](_0x48183b['content'])['getItems']())_0x5c3507['is']('element','suggestion-td')&&_0x4639bd['push'](_0x5c3507);_0x4f2cc5['change'](_0x51342a=>{for(const _0x7b89e7 of _0x4639bd)_0x51342a['move'](_0x51342a['createRangeIn'](_0x7b89e7),_0x51342a['createPositionBefore'](_0x7b89e7)),_0x51342a['remove'](_0x7b89e7);});});}}function De(_0x20d293){if(_0x20d293['isEmpty'])return!0x0;const _0x37e4fe=_0x20d293['getChild'](0x0);return _0x37e4fe['is']('element','paragraph')&&_0x37e4fe['isEmpty'];}function He(_0x457121,_0x486ab5={},_0x516c2a){for(const {isAnchor:_0xf3b28d,cellHeight:_0x3108c5,cellWidth:_0xfcb3c6}of _0x516c2a['createTableWalker'](_0x457121,{'includeAllSlots':!0x0,..._0x486ab5}))if(!_0xf3b28d||0x1!=_0x3108c5||0x1!=_0xfcb3c6)return!0x1;return!0x0;}class Tt extends _0x44fd37{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x28b8ca=this['editor']['plugins']['get']('TrackChangesEditing');_0x28b8ca['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x28b8ca['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x28b8ca['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x28b8ca['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x28b8ca['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x28b8ca['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2c08ce,_0x2180a1){const _0x1417d7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17c498=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4af8b9=_0x2180a1['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x517711=_0x17c498['getColumnGroupElement'](_0x4af8b9);let _0x2e7ec7=_0x517711?_0x17c498['getTableColumnsWidths'](_0x517711):null,_0xa1f359=_0x4af8b9['getAttribute']('tableWidth')||null;const _0x3291fc=_0x2180a1['tableWidth']||_0xa1f359,_0x14090e=_0x2180a1['columnWidths']||_0x2e7ec7,_0x5b0fa9=this['editor']['plugins']['get']('Users')['me'];for(const _0x301677 of _0x1417d7['getSuggestions']()){const _0x7e4b70=_0x301677['getContainedElement']();if('resizeTable'===_0x301677['subType']&&_0x7e4b70===_0x4af8b9){_0x301677['author']!==_0x5b0fa9&&_0x301677['discard']();const _0x3fd9eb=_0x301677['data']['commandParams'];_0xa1f359=_0x3fd9eb[0x0]['tableWidth'],_0x2e7ec7=_0x3fd9eb[0x0]['columnWidths'];break;}}_0x2c08ce({'table':_0x4af8b9,'tableWidth':_0x3291fc,'columnWidths':_0x14090e}),_0x1417d7['markBlockFormat'](_0x4af8b9,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xa1f359,'columnWidths':_0x2e7ec7}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x54f9c7){if('formatBlock'!=_0x54f9c7['type']&&'formatInline'!=_0x54f9c7['type'])return;const {data:_0x407cd6}=_0x54f9c7;if(_0x407cd6&&'resizeTable'===_0x407cd6['formatGroupId']){const _0x4d6f0f='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4d6f0f)};}}}class Ot extends _0x44fd37{['afterInit'](){const _0x5d419b=this['editor'];_0x5d419b['plugins']['has']('Template')&&_0x5d419b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class xt extends _0x44fd37{['afterInit'](){const _0x2c2812=this['editor'];if(!_0x2c2812['commands']['get']('insertTableOfContents'))return;_0x2c2812['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2e3e0a=_0x2c2812['plugins']['get']('TrackChangesEditing'),_0x5419bc=_0x2c2812['locale'];_0x2e3e0a['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2a499d=>o(_0x5419bc,'ELEMENT_TABLE_OF_CONTENTS',_0x2a499d));}}class Et extends _0x44fd37{['afterInit'](){const _0x14498c=this['editor'];if(!_0x14498c['plugins']['has']('Title'))return;const _0x71c03f=_0x14498c['plugins']['get']('TrackChangesEditing');_0x71c03f['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x14498c['locale'],'ELEMENT_TITLE')),_0x14498c['model']['document']['registerPostFixer'](_0x47075c=>{let _0x5b990a=!0x1;const _0x2c7f38=Array['from'](_0x14498c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2ba4cb,data:_0x398347}of _0x2c7f38){const {group:_0x273c2c}=_0x71c03f['_splitMarkerName'](_0x2ba4cb);if('suggestion'!==_0x273c2c||!_0x398347['newRange'])continue;const _0x516b3b=_0x398347['newRange'],_0x22118d=_0x516b3b['end']['nodeBefore'];if(!_0x22118d||!_0x22118d['is']('element','title-content'))continue;if(!_0x516b3b['start']['isTouching'](_0x516b3b['end']))continue;const _0xe40d7d=_0x14498c['model']['schema']['getNearestSelectionRange'](_0x516b3b['end'],'forward');if(_0xe40d7d&&_0xe40d7d['isCollapsed']){const _0x153de1=_0x47075c['createRange'](_0x516b3b['start'],_0xe40d7d['start']);_0x153de1['isEqual'](_0x516b3b)||(_0x47075c['updateMarker'](_0x2ba4cb,{'range':_0x153de1}),_0x5b990a=!0x0);}_0x5b990a||(_0x47075c['removeMarker'](_0x2ba4cb),_0x5b990a=!0x0);}return _0x5b990a;});}}class Rt extends _0x44fd37{['afterInit'](){const _0x1f2980=this['editor'],_0x59bcbb=_0x1f2980['plugins']['get']('TrackChangesEditing');_0x1f2980['plugins']['has']('Uploadcare')&&(_0x59bcbb['enableCommand']('uploadcare'),_0x1f2980['plugins']['has']('UploadcareImageEdit')&&(_0x59bcbb['enableCommand']('uploadcareImageEdit'),_0x59bcbb['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x59bcbb['registerBlockAttribute']('uploadcareImageId'),_0x59bcbb['descriptionFactory']['registerDescriptionCallback'](_0x3d90d1=>{if('attribute'!=_0x3d90d1['type'])return;const {data:_0x370338}=_0x3d90d1;return _0x370338&&'uploadcareImageId'==_0x370338['key']?{'type':'format','content':''}:void 0x0;})));}}class Ut extends _0x44fd37{['afterInit'](){const _0x93e032=this['editor'],_0x4a620b=_0x93e032['plugins']['get']('TrackChangesEditing');_0x93e032['plugins']['has']('UndoEditing')&&(_0x4a620b['enableCommand']('undo'),_0x4a620b['enableCommand']('redo'));}}class Vt extends _0x44fd37{static get['requires'](){return[$t];}['afterInit'](){const _0x392802=this['editor'];if(!_0x392802['plugins']['has']('TableCaptionEditing'))return;_0x392802['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ft extends _0x44fd37{['tableProperties'];['tableCellProperties'];constructor(_0x22a716){super(_0x22a716),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 _0x534c65=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3f2aff of this['tableProperties'])_0x534c65['enableCommand'](_0x3f2aff,(_0x238cb6,_0x2148c8)=>{const _0x3ca097=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3f2aff,[_0x3ca097],this['tableProperties'],'tableProperties',_0x238cb6,_0x2148c8);});_0x534c65['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x534c65['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x534c65['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x562dfa,_0x2b126f)=>this['handleDiscardAction'](this['tableProperties'],_0x562dfa,_0x2b126f)),_0x534c65['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4afbcc of this['tableCellProperties'])_0x534c65['enableCommand'](_0x4afbcc,(_0x31237f,_0x2d984a)=>{const _0x3ec3d0=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4afbcc,_0x3ec3d0,this['tableCellProperties'],'tableCellProperties',_0x31237f,_0x2d984a);});_0x534c65['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x534c65['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x534c65['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x465acd,_0x22f79c)=>this['handleDiscardAction'](this['tableCellProperties'],_0x465acd,_0x22f79c)),_0x534c65['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x534c65['descriptionFactory']['registerDescriptionCallback'](_0x5d5071=>this['handleSuggestionDescription'](_0x5d5071)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x555d3a,_0x1ba3a1,_0x420324,_0x22db09,_0x36688e,_0x581748){const _0x3b76b5=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x581748['batch'],()=>{for(const _0x2e9a83 of _0x1ba3a1){if(this['_getSuggestion'](_0x2e9a83,_0x22db09))_0x36688e(_0x581748);else{const _0x10d6a5={};for(const _0x426360 of _0x420324){const _0x27614e=_0x2e9a83['getAttribute'](_0x426360);void 0x0!==_0x27614e&&(_0x10d6a5[_0x426360]=_0x27614e);}_0x36688e(_0x581748),_0x3b76b5['markBlockFormat'](_0x2e9a83,{'commandParams':[_0x10d6a5]},[],_0x22db09);}}});}['handleDiscardAction'](_0x18b36a,_0x2ac23e,_0x38d677){const _0x298820=_0x2ac23e[0x0]['start']['nodeAfter'],_0x1047ae=_0x38d677['commandParams'][0x0];this['editor']['model']['change'](_0x20bede=>{for(const _0x2729f of _0x18b36a)void 0x0!==_0x1047ae[_0x2729f]?_0x20bede['setAttribute'](_0x2729f,_0x1047ae[_0x2729f],_0x298820):_0x20bede['removeAttribute'](_0x2729f,_0x298820);});}['handleSuggestionDescription'](_0x415bc4){if(_0x415bc4['data'])switch(_0x415bc4['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x486ae0,_0x1c3ad3){const _0x13938f=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x37b57e of _0x13938f['getSuggestions']({'skipNotAttached':!0x0})){const _0x553dce=_0x37b57e['getContainedElement']();if(_0x37b57e['subType']===_0x1c3ad3&&_0x553dce===_0x486ae0)return _0x37b57e;}return null;}['_registerTablePropertiesAttributes'](){const _0x11a77b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35cd3f=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x10981f of _0x35cd3f){const _0x900257=_0x10981f['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x11a77b['registerBlockAttribute'](_0x10981f),_0x11a77b['descriptionFactory']['registerAttributeLabel'](_0x10981f,o(this['editor']['locale'],'FORMAT_'+_0x900257));}}}class Pt extends _0x44fd37{['afterInit'](){const _0x4c72a3=this['editor'];if(!_0x4c72a3['plugins']['has']('LineHeight'))return;const _0x3684de=_0x4c72a3['plugins']['get']('TrackChangesEditing'),_0x3b4a54=_0x4c72a3['locale'];_0x3684de['enableDefaultAttributesIntegration']('lineHeight'),_0x3684de['registerBlockAttribute']('lineHeight'),_0x3684de['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x3b4a54,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x44fd37{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x42acd4,_0x49aa4c,_0x42d159,V,F,G,L,J,H,K,W,q,z,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,ct,ft,ht,gt,dt,mt,bt,lt,Q,Pt,X,pt,kt,wt,yt,St,jt,It,At,_t,vt,Ct,$t,Nt,Dt,Mt,Vt,Bt,Tt,xt,Ft,Ot,Et,Rt,Ut];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x16098c){super(_0x16098c),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x153e6c,_0x5ca04d,_0x43f9cf,_0x1ff517)=>{this['_model']['change'](()=>{for(const _0x53c641 of[..._0x1ff517,..._0x43f9cf])this['_model']['markers']['has'](_0x53c641)&&_0x16098c['editing']['reconvertMarker'](_0x53c641);});}),this['descriptionFactory']=new U(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Lt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x16098c['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x16098c['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x16098c['config']['get']('trackChanges.trackFormatChanges'),_0x16098c['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x16098c['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x16098c,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x36684d=this['editor'],_0x573062=(_0x585bb9,_0x3e0cb5)=>{if('attribute'!=_0x585bb9)return'ck-suggestion-marker-'+_0x585bb9;const _0x258dd0=_0x3e0cb5['split']('|')[0x0];return this['_isBlockAttribute'](_0x258dd0)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x36684d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x46d822=>{const {id:_0x494679,authorId:_0x128ebb,type:_0x1c60af,subType:_0x520cc1}=this['_splitMarkerName'](_0x46d822['markerName']),_0x2f032e=['ck-suggestion-marker',_0x573062(_0x1c60af,_0x520cc1)];let _0x3123f8=0xbb8;return this['activeMarkers']['includes'](_0x46d822['markerName'])&&(_0x2f032e['push']('ck-suggestion-marker--active'),_0x3123f8=0xbc2),'deletion'==_0x1c60af&&(_0x3123f8+=0x5),{'classes':_0x2f032e,'attributes':{'data-suggestion':_0x494679,'data-author-id':_0x128ebb},'priority':_0x3123f8};}}),_0x36684d['conversion']['for']('dataDowncast')['add'](_0x1cdc86=>{_0x1cdc86['on']('addMarker:suggestion',(_0xf83b66,_0x30907d,_0xf6a757)=>{if(!_0xf6a757['options']['showSuggestionHighlights'])return;const _0x479190=_0x30907d['item'];if(!_0x479190)return;const _0x3a91f1=_0xf6a757['mapper']['toViewElement'](_0x479190);_0x36684d['model']['schema']['isObject'](_0x479190)&&_0x3a91f1&&!_0x3a91f1['getCustomProperty']('widget')&&_0x3a91f1['is']('containerElement')&&_0x1caa32(_0x3a91f1,_0xf6a757['writer']);},{'priority':'high'});}),_0x36684d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2e6b00,_0x57d5c6)=>{if(!_0x57d5c6['options']['showSuggestionHighlights'])return null;const {id:_0x1de821,authorId:_0x270133,type:_0x22ca35,subType:_0x23c4d3}=this['_splitMarkerName'](_0x2e6b00['markerName']);return{'classes':['ck-suggestion-marker',_0x573062(_0x22ca35,_0x23c4d3)],'priority':0xbb8,'attributes':{'data-suggestion':_0x1de821,'data-author-id':_0x270133}};}});const _0x3e697a=({showActiveMarkers:_0x5da308=!0x0,isAttributeSuggestion:_0xc0185e=!0x1}={})=>(_0x7dc328,_0xf4ac11,_0xe1cd4e)=>{if(!_0xf4ac11['item'])return;const {id:_0x4a5466,authorId:_0x497ffc,subType:_0x47ab5a}=this['_splitMarkerName'](_0xf4ac11['markerName']);if(_0xc0185e){const _0x1dc0bc=se(_0x47ab5a);if(!this['_isBlockAttribute'](_0x1dc0bc))return;}if(_0xf4ac11['item']['is']('selection'))return void _0xe1cd4e['consumable']['consume'](_0xf4ac11['item'],_0x7dc328['name']);const _0x350fb7=_0xe1cd4e['mapper']['toViewElement'](_0xf4ac11['item']);if(_0xf4ac11['item']['is']('element')&&_0x36684d['model']['schema']['isBlock'](_0xf4ac11['item'])&&!_0x350fb7['getCustomProperty']('addHighlight')){_0xe1cd4e['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x350fb7),_0xe1cd4e['writer']['setAttribute']('data-suggestion',_0x4a5466,_0x350fb7),_0xe1cd4e['writer']['setAttribute']('data-author-id',_0x497ffc,_0x350fb7),_0xe1cd4e['mapper']['bindElementToMarker'](_0x350fb7,_0xf4ac11['markerName']),_0x5da308&&(this['activeMarkers']['includes'](_0xf4ac11['markerName'])?_0xe1cd4e['writer']['addClass']('ck-suggestion-marker--active',_0x350fb7):_0xe1cd4e['writer']['removeClass']('ck-suggestion-marker--active',_0x350fb7));for(const _0x437a9b of _0x36684d['model']['createRangeIn'](_0xf4ac11['item'])['getItems']())_0xe1cd4e['consumable']['consume'](_0x437a9b,_0x7dc328['name']);_0xe1cd4e['consumable']['consume'](_0xf4ac11['item'],_0x7dc328['name']);}};_0x36684d['conversion']['for']('dataDowncast')['add'](_0x22bf92=>{_0x22bf92['on']('addMarker:suggestion:formatBlock',(_0x131aa8,_0x588658,_0x2e1c49)=>{_0x2e1c49['options']['showSuggestionHighlights']&&_0x3e697a({'showActiveMarkers':!0x1})(_0x131aa8,_0x588658,_0x2e1c49);},{'priority':'highest'});}),_0x36684d['conversion']['for']('dataDowncast')['add'](_0x4d1636=>{_0x4d1636['on']('addMarker:suggestion:attribute',(_0x4bf044,_0x4c5b2e,_0x11858d)=>{_0x11858d['options']['showSuggestionHighlights']&&_0x3e697a({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4bf044,_0x4c5b2e,_0x11858d);},{'priority':'highest'});}),_0x36684d['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x25cbff,_0x48da5d)=>{if(_0x48da5d['options']['showSuggestionHighlights']){const {id:_0x33e8b2,authorId:_0x1375c6}=this['_splitMarkerName'](_0x25cbff);return _0x25cbff['includes'](':split')||_0x25cbff['includes'](':merge')?{'group':'suggestion','name':_0x25cbff['substr'](0xb),'attributes':{'data-suggestion':_0x33e8b2,'data-author-id':_0x1375c6}}:null;}return{'group':'suggestion','name':_0x25cbff['substr'](0xb)};}}),_0x36684d['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x44ebc8,{writer:_0x452f6a})=>{let _0x57201a='suggestion:'+_0x44ebc8['getAttribute']('suggestion-type')+':'+_0x44ebc8['getAttribute']('id');return _0x44ebc8['getAttribute']('marker-count')&&(_0x57201a+=':'+_0x44ebc8['getAttribute']('marker-count')),_0x452f6a['createElement']('$marker',{'data-name':_0x57201a});}}),_0x36684d['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x36684d['conversion']['for']('editingDowncast')['add'](_0x5f397d=>{_0x5f397d['on']('addMarker:suggestion:formatBlock',_0x3e697a(),{'priority':'high'});}),_0x36684d['conversion']['for']('editingDowncast')['add'](_0x45ca7c=>{_0x45ca7c['on']('addMarker:suggestion:attribute',_0x3e697a({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x36684d['conversion']['for']('editingDowncast')['add'](_0x176f51=>{_0x176f51['on']('removeMarker:suggestion:formatBlock',(_0x33b483,_0x36bd7c,_0x3c2b92)=>{const _0x11b04b=_0x3c2b92['mapper']['markerNameToElements'](_0x36bd7c['markerName']);if(_0x11b04b){for(const _0x50a758 of _0x11b04b)_0x50a758['getCustomProperty']('addHighlight')||(_0x3c2b92['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x50a758),_0x3c2b92['writer']['removeAttribute']('data-suggestion',_0x50a758),_0x3c2b92['writer']['removeAttribute']('data-author-id',_0x50a758),_0x3c2b92['mapper']['unbindElementFromMarkerName'](_0x50a758,_0x36bd7c['markerName']));}},{'priority':'high'});}),_0x36684d['conversion']['for']('editingDowncast')['add'](_0x58f4c1=>{_0x58f4c1['on']('removeMarker:suggestion:attribute',(_0x19d576,_0x398191,_0x12ef26)=>{const _0x51d710=_0x12ef26['mapper']['markerNameToElements'](_0x398191['markerName']);if(!_0x51d710)return;const {subType:_0x4de5d7}=this['_splitMarkerName'](_0x398191['markerName']),_0x3fa157=se(_0x4de5d7);if(this['_isBlockAttribute'](_0x3fa157)){for(const _0xcc1973 of _0x51d710)_0xcc1973['getCustomProperty']('addHighlight')||(_0x12ef26['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xcc1973),_0x12ef26['writer']['removeAttribute']('data-suggestion',_0xcc1973),_0x12ef26['writer']['removeAttribute']('data-author-id',_0xcc1973),_0x12ef26['mapper']['unbindElementFromMarkerName'](_0xcc1973,_0x398191['markerName']));}},{'priority':'high'});}),_0x36684d['model']['document']['registerPostFixer'](_0x31fe03=>{let _0x5d1f9e=!0x1;const _0x28870e=Array['from'](_0x36684d['model']['document']['differ']['getChangedMarkers']()),_0x475faf=new Set();for(const {name:_0x4af8c0,data:_0x1e6ae6}of _0x28870e){const {group:_0x4bca58,type:_0x30c0ac,subType:_0x24084d,id:_0x2b635f}=this['_splitMarkerName'](_0x4af8c0);if('suggestion'!==_0x4bca58)continue;const _0x3772c8=_0x24084d?'suggestion:'+_0x30c0ac+':'+_0x24084d+':'+_0x2b635f:'suggestion:'+_0x30c0ac+':'+_0x2b635f,_0x1437ac=_0x36684d['model']['markers']['getMarkersGroup'](_0x3772c8),_0x2ec9c0=_0x36684d['model']['markers']['get'](_0x4af8c0),_0x57500e=this['_suggestions']['get'](_0x2b635f);if(null!=_0x1e6ae6['newRange']){'formatInline'==_0x30c0ac&&(_0x5d1f9e=_0x5d1f9e||Ht(_0x1e6ae6['newRange'],_0x4af8c0,_0x31fe03,_0x36684d['model']['schema']));const _0x198582='attribute'==_0x30c0ac&&this['_isBlockAttribute'](_0x24084d['split']('|')[0x0]),_0x1d6d99='attribute'==_0x30c0ac&&this['_isInlineAttribute'](_0x24084d['split']('|')[0x0]);if(_0x1e6ae6['newRange']['isCollapsed']||'$graveyard'==_0x1e6ae6['newRange']['root']['rootName']||'formatBlock'==_0x30c0ac&&!qt(_0x1e6ae6['newRange'])||_0x198582&&!qt(_0x1e6ae6['newRange'])||_0x1d6d99&&zt(_0x1e6ae6['newRange'])||'deletion'==_0x30c0ac&&zt(_0x1e6ae6['newRange'])||_0x2ec9c0&&Qt(_0x2ec9c0,_0x1437ac))_0x31fe03['removeMarker'](_0x4af8c0),_0x5d1f9e=!0x0;else{if(!_0x57500e||!_0x57500e['isInContent'])continue;if(_0x1e6ae6['newRange']&&_0x1e6ae6['oldRange']&&_0x1e6ae6['newRange']['isEqual'](_0x1e6ae6['oldRange']))continue;_0x475faf['add'](_0x57500e);}}}return _0x475faf['size']>0x0&&(_0x5d1f9e=!!this['_joinWithAdjacentSuggestions'](_0x475faf)||_0x5d1f9e),_0x5d1f9e;}),_0x36684d['model']['document']['registerPostFixer'](_0x94d091=>{let _0x1b214e=!0x1;for(const _0x4e024d of _0x36684d['model']['document']['differ']['getChanges']())if('insert'==_0x4e024d['type'])for(const _0x5701ef of this['_suggestions']['values']()){if(_0x5701ef['isMultiRange']||!_0x5701ef['isInContent'])continue;const _0x1f71f7='formatBlock'==_0x5701ef['type'],_0x2b82b2=this['_getAttributeKey'](_0x5701ef),_0x13140b=_0x2b82b2&&this['_isBlockAttribute'](_0x2b82b2);if(!_0x1f71f7&&!_0x13140b)continue;const _0x64016f=_0x5701ef['getFirstRange']();if(_0x64016f['start']['parent']!=_0x64016f['end']['parent']&&!_0x64016f['end']['isAtEnd']){const _0x11b322=_0x36684d['model']['createPositionAt'](_0x64016f['start']['nodeAfter'],'end'),_0x12a03b=_0x36684d['model']['createRange'](_0x64016f['start'],_0x11b322);_0x94d091['updateMarker'](_0x5701ef['getFirstMarker'](),{'range':_0x12a03b}),_0x1b214e=!0x0;}}return _0x1b214e;}),_0x36684d['model']['document']['registerPostFixer'](_0x3e3979=>this['_processAttributeChanges'](_0x3e3979)),_0x36684d['model']['document']['registerPostFixer'](_0x31fa8a=>!_0x31fa8a['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x31fa8a)),_0x36684d['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x36684d['model']['document']['on']('change:data',(_0x4fb238,_0x36fb6f)=>{if(!_0x36fb6f['isLocal']||_0x36fb6f['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1cead2=_0x36684d['model']['document']['differ']['getChanges']();if(0x0==_0x1cead2['length'])return;const _0x21199d=[],_0x2c554e=_0x1cead2['filter'](_0x454d3b=>'attribute'==_0x454d3b['type']),_0x369e7e=_0x1cead2['filter'](_0x363f55=>'insert'==_0x363f55['type']&&'$text'!=_0x363f55['name']);for(const _0x387bd3 of _0x2c554e)this['_isRegisteredAttribute'](_0x387bd3['attributeKey'])&&_0x21199d['push']({'key':_0x387bd3['attributeKey'],'newValue':_0x387bd3['attributeNewValue'],'oldValue':_0x387bd3['attributeOldValue'],'range':Yt(_0x387bd3['range'],_0x36684d['model'])});for(const _0x19e73a of _0x369e7e){if('rename'!=_0x19e73a['action']&&'refresh'!=_0x19e73a['action'])continue;const _0x1ef3c7=Zt(_0x19e73a['position']['nodeAfter'],_0x36684d['model']),_0x2c5dc5=_0x19e73a['before'];'rename'==_0x19e73a['action']&&_0x21199d['push']({'key':m,'newValue':_0x19e73a['name'],'oldValue':_0x2c5dc5['name'],'range':_0x1ef3c7});for(const [_0x40119e,_0x25209e]of _0x2c5dc5['attributes']){if(!this['_isRegisteredAttribute'](_0x40119e))continue;const _0x1a9479=_0x19e73a['attributes']['get'](_0x40119e);_0x25209e!==_0x1a9479&&_0x21199d['push']({'key':_0x40119e,'newValue':_0x1a9479,'oldValue':_0x25209e,'range':_0x1ef3c7});}for(const [_0x7c3e69,_0xe7b467]of _0x19e73a['attributes'])this['_isRegisteredAttribute'](_0x7c3e69)&&(_0x2c5dc5['attributes']['has'](_0x7c3e69)||_0x21199d['push']({'key':_0x7c3e69,'newValue':_0xe7b467,'oldValue':null,'range':_0x1ef3c7}));}0x0!=_0x21199d['length']&&_0x36684d['model']['enqueueChange'](_0x36fb6f,_0x1c86b2=>{const _0x482533=_0x5b7b63();for(const {range:_0x4efe7c,key:_0x24726f,oldValue:_0x21ead4,newValue:_0x1425fb}of _0x21199d)this['markAttributeChange'](_0x4efe7c,_0x24726f,_0x21ead4,_0x1425fb,{'groupId':_0x482533});this['_reduceExistingSuggestions'](_0x1c86b2,_0x21199d);});},{'priority':'lowest'}),_0x36684d['model']['markers']['on']('update:suggestion',(_0x4122c0,_0x141086,_0x58369b)=>{if(null==_0x58369b){const {id:_0x5a587d}=this['_splitMarkerName'](_0x141086['name']),_0x877248=this['_suggestions']['get'](_0x5a587d);_0x877248&&_0x877248['addMarkerName'](_0x141086['name']);}}),_0x36684d['model']['document']['on']('change:data',()=>{const _0x49033f=Array['from'](_0x36684d['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5eff56=>'suggestion'===this['_splitMarkerName'](_0x5eff56['name'])['group']);if(0x0===_0x49033f['length'])return;_0x49033f['sort']((_0x4194db,_0x552d23)=>{const _0x36fa3a=_0x4194db['data']['oldRange'],_0x31adf8=_0x552d23['data']['oldRange'];return null===_0x36fa3a&&null===_0x31adf8?0x0:null===_0x36fa3a&&null!==_0x31adf8?-0x1:null!==_0x36fa3a&&null===_0x31adf8?0x1:_0x36fa3a['start']['isBefore'](_0x31adf8['start'])?-0x1:0x1;});const _0x2463d1=new Set(),_0x18f5c8=new Set();for(const {name:_0x30bbc0,data:_0x48e17c}of _0x49033f){const {id:_0x3826fc}=this['_splitMarkerName'](_0x30bbc0);if(null===_0x48e17c['oldRange']){const _0x40c05f=this['_handleNewSuggestionMarker'](_0x30bbc0);_0x18f5c8['add'](_0x40c05f);}else{const _0x25e937=this['_suggestions']['get'](_0x3826fc);null!==_0x48e17c['newRange']||_0x25e937['isInContent']?(_0x2463d1['add'](_0x25e937['head']),_0x18f5c8['add'](_0x25e937)):this['_removeSuggestion'](_0x25e937);}}_0x18f5c8['size']>0x0&&this['_refreshSuggestionsChain'](_0x18f5c8);for(const _0xb5214f of _0x2463d1)this['fire']('suggestionChanged',_0xb5214f);}),_0x36684d['model']['on']('applyOperation',(_0x8e925b,_0x5d2f01)=>{const _0x2cb721=_0x5d2f01[0x0];if(!this['_suggestions']['size'])return;if(!_0x2cb721['isDocumentOperation'])return;if(_0x2cb721['batch']['isUndo']||!_0x2cb721['batch']['isLocal'])return;let _0xdb6470,_0x45d50f;switch(_0x2cb721['type']){case'insert':_0xdb6470=_0x36684d['model']['createPositionAt'](_0x2cb721['position']),_0x45d50f=_0xdb6470['getShiftedBy'](_0x2cb721['howMany']);break;case'split':_0xdb6470=_0x36684d['model']['createPositionAt'](_0x2cb721['splitPosition']),_0x45d50f=_0x36684d['model']['createPositionAt'](_0x2cb721['moveTargetPosition']);break;case'move':_0xdb6470=_0x36684d['model']['createPositionAt'](_0x2cb721['targetPosition']),_0x45d50f=_0xdb6470['getShiftedBy'](_0x2cb721['howMany']);break;default:return;}const _0x46130d=_0x36684d['model']['createRange'](_0xdb6470,_0x45d50f);_0x36684d['model']['change'](()=>{for(const {suggestion:_0x2b393c,meta:_0x4208a1}of this['_findSuggestions'](_0x46130d)){if(_0x2b393c['isMultiRange'])continue;if('formatInline'==_0x2b393c['type'])continue;const _0x5d5230=this['_getAttributeKey'](_0x2b393c);if(_0x5d5230&&this['_isBlockAttribute'](_0x5d5230)&&'split'!=_0x2cb721['type'])continue;const _0x1e8cbe=_0x2b393c['data']&&_0x2b393c['data']['multipleBlocks'];('formatBlock'!=_0x2b393c['type']||'split'==_0x2cb721['type']&&!_0x1e8cbe)&&(_0x4208a1['containsRangeInObject']||'insertion'==_0x2b393c['type']&&_0x4208a1['isOwn']||_0x2b393c['getFirstRange']()['containsRange'](_0x46130d)&&this['_breakSuggestionMarker'](_0x2b393c,_0xdb6470,_0x45d50f));}});},{'priority':'lowest'}),_0x36684d['model']['on']('deleteContent',(_0x175f67,_0x151512)=>{const _0x359c9d=_0x151512[0x0],_0xab39aa=_0x151512[0x1];if(_0xab39aa&&_0xab39aa['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x359c9d['isCollapsed'])return;const _0x2653d6=_0x36684d['model']['schema'],{start:_0x3aafdd,end:_0x52a5c2}=_0x359c9d['getFirstRange'](),_0x5cf8b7=_0x3aafdd['nodeAfter']&&_0x2653d6['isLimit'](_0x3aafdd['nodeAfter'])?null:_0x2653d6['getNearestSelectionRange'](_0x3aafdd,'forward'),_0x52637f=_0x52a5c2['nodeBefore']&&_0x2653d6['isLimit'](_0x52a5c2['nodeBefore'])?null:_0x2653d6['getNearestSelectionRange'](_0x52a5c2,'backward'),_0x4afc25=_0x36684d['model']['createRange'](_0x5cf8b7?_0x5cf8b7['start']:_0x3aafdd,_0x52637f?_0x52637f['end']:_0x52a5c2);_0x36684d['model']['change'](_0x18e32a=>{this['markDeletion'](_0x4afc25);const _0x5ec544=_0x36684d['model']['schema']['getNearestSelectionRange'](_0x4afc25['start']);_0x359c9d['is']('documentSelection')?_0x18e32a['setSelection'](_0x5ec544):_0x359c9d['setTo'](_0x5ec544);}),_0x175f67['stop']();},{'priority':_0x5aa02d['normal']+0xa}),_0x36684d['model']['on']('insertContent',(_0x6a7fc,_0x28bb20)=>{const _0x3920ef=_0x28bb20[_0x28bb20['length']-0x1];_0x3920ef&&_0x3920ef['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x36684d['model']['change'](()=>{let _0x53ac0b=_0x36684d['model']['insertContent'](_0x28bb20[0x0],_0x28bb20[0x1],_0x28bb20[0x2],{'forceDefaultExecution':!0x0});if(!_0x53ac0b)return;_0x6a7fc['return']=_0x53ac0b['clone']();const _0x5c5487=_0x53ac0b['end']['nodeBefore'],_0x1d7449=_0x36684d['model']['schema'];_0x5c5487&&_0x1d7449['isBlock'](_0x5c5487)&&!_0x1d7449['isObject'](_0x5c5487)&&(_0x53ac0b=_0x36684d['model']['createRange'](_0x53ac0b['start'],_0x36684d['model']['createPositionAt'](_0x5c5487,'end'))),this['markInsertion'](_0x53ac0b);}),_0x6a7fc['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4e275d=new T(_0x36684d,this['_suggestions']);_0x36684d['commands']['add']('acceptSuggestion',_0x4e275d),this['enableCommand']('acceptSuggestion');const _0x59360=new O(_0x36684d,this['_suggestions']);_0x36684d['commands']['add']('discardSuggestion',_0x59360),this['enableCommand']('discardSuggestion'),_0x36684d['commands']['add']('acceptAllSuggestions',new x(_0x36684d,_0x4e275d,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x36684d['commands']['add']('discardAllSuggestions',new x(_0x36684d,_0x59360,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x36684d['commands']['add']('acceptSelectedSuggestions',new E(_0x36684d,_0x4e275d,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x36684d['commands']['add']('discardSelectedSuggestions',new E(_0x36684d,_0x59360,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x556507=_0x36684d['plugins']['get']('CommentsRepository');this['listenTo'](_0x556507,'addComment',(_0xd121d4,{threadId:_0x562f5c})=>{const _0x127ff7=this['_suggestions']['get'](_0x562f5c);_0x127ff7&&_0x127ff7['commentThread']&&0x1===_0x127ff7['commentThread']['length']&&this['_updateSuggestionData'](_0x562f5c,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x556507,'removeComment',(_0xd7f527,{threadId:_0xd632af})=>{const _0x3a6d96=this['_suggestions']['get'](_0xd632af);_0x3a6d96&&_0x3a6d96['commentThread']&&!_0x3a6d96['commentThread']['length']&&this['_updateSuggestionData'](_0xd632af,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2ec4d7){const _0x4240a7=_0x21d670([0x35,0x67,0x6f,0x4e,0x5a,0x52,0x78,0x48,0x7a,0x6d,0x42,0x66,0x72,0x6c,0x30,0x46,0x71,0x36,0x43,0x6b,0x73,0x31,0x61,0x68,0x44,0x47,0x53,0x32,0x4c,0x55,0x45,0x57,0x69,0x62,0x79,0x33,0x77,0x4b,0x76,0x75,0x34,0x49,0x56,0x50,0x64,0x65,0x54,0x38,0x6a,0x6e,0x39,0x4d,0x4f,0x51,0x4a,0x74,0x63,0x41,0x59,0x37,0x58,0x70]),_0x5c91d7=0x6b0f5e6f,_0x5f47e2=0x6b082ac7^_0x5c91d7,_0x54b479=window[_0x21d670([0x44,0x61,0x74,0x65])][_0x21d670([0x6e,0x6f,0x77])](),_0x25ecdb=_0x2ec4d7[_0x21d670([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x53cb4c=new window[(_0x21d670([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ead7f=>{_0x25ecdb[_0x21d670([0x6f,0x6e,0x63,0x65])](_0x21d670([0x72,0x65,0x61,0x64,0x79]),_0x2ead7f);}),_0x5575c9={[_0x21d670([0x6b,0x74,0x79])]:_0x21d670([0x45,0x43]),[_0x21d670([0x75,0x73,0x65])]:_0x21d670([0x73,0x69,0x67]),[_0x21d670([0x63,0x72,0x76])]:_0x21d670([0x50,0x2d,0x32,0x35,0x36]),[_0x21d670([0x78])]:_0x21d670([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]),[_0x21d670([0x79])]:_0x21d670([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]),[_0x21d670([0x61,0x6c,0x67])]:_0x21d670([0x45,0x53,0x32,0x35,0x36])},_0x31554f=_0x25ecdb[_0x21d670([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x21d670([0x67,0x65,0x74])](_0x21d670([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xbb5caa(){let _0x30db01,_0xc64253=null,_0x21acc3=null;try{if(_0x31554f==_0x21d670([0x47,0x50,0x4c]))return _0x21d670([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x30db01=_0x6655b1(),!_0x30db01)return _0x21d670([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x30db01[_0x21d670([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x21acc3=_0x7db6b4(_0x30db01[_0x21d670([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x30db01[_0x21d670([0x6a,0x74,0x69])])),await _0x44d0a9()?_0x21fcfd()?_0x54cbd5()?_0x21d670([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x46a3d7()?(_0x30db01[_0x21d670([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x21d670([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xc64253=_0x4b6636(_0x21d670([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x30db01[_0x21d670([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x21d670([0x74,0x72,0x69,0x61,0x6c])&&(_0xc64253=_0x4b6636(_0x21d670([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2f6376()):_0x21d670([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x21d670([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x21d670([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x21d670([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x54cbd5(){const _0x3929d1=[_0x21d670([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x21d670([0x74,0x72,0x69,0x61,0x6c])][_0x21d670([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30db01[_0x21d670([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x54b479/0x3e8:0xe10*_0x5f47e2;return _0x30db01[_0x21d670([0x65,0x78,0x70])]<_0x3929d1;}function _0x21fcfd(){const _0x10613f=_0x30db01[_0x21d670([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x10613f)return!0x1;if(_0x10613f[_0x21d670([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21d670([0x2a])))return!0x0;if(_0x10613f[_0x21d670([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21d670([0x54,0x43])))return!0x0;if(_0x10613f[_0x21d670([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21d670([0x52,0x54,0x43]))){if(_0x1b1854())return!0x0;if(_0x362e23()||_0x35bb41())return!0x0;}return!0x1;}function _0x46a3d7(){const _0x11f4cf=_0x30db01[_0x21d670([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x11f4cf||0x0==_0x11f4cf[_0x21d670([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x229ad2}=new URL(window[_0x21d670([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x11f4cf[_0x21d670([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x229ad2))return!0x0;const _0x1499b3=_0x229ad2[_0x21d670([0x73,0x70,0x6c,0x69,0x74])](_0x21d670([0x2e]));return _0x11f4cf[_0x21d670([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x9dc89=>_0x9dc89[_0x21d670([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21d670([0x2a])))[_0x21d670([0x6d,0x61,0x70])](_0x57f9ea=>_0x57f9ea[_0x21d670([0x73,0x70,0x6c,0x69,0x74])](_0x21d670([0x2e])))[_0x21d670([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5f58dd=>_0x5f58dd[_0x21d670([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1499b3[_0x21d670([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x21d670([0x6d,0x61,0x70])](_0xb46636=>Array(_0x1499b3[_0x21d670([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xb46636[_0x21d670([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x21d670([0x66,0x69,0x6c,0x6c])](_0xb46636[0x0]===_0x21d670([0x2a])?_0x21d670([0x2a]):'')[_0x21d670([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xb46636))[_0x21d670([0x73,0x6f,0x6d,0x65])](_0x204c09=>_0x1499b3[_0x21d670([0x65,0x76,0x65,0x72,0x79])]((_0x28c807,_0x5b2500)=>_0x204c09[_0x5b2500]===_0x28c807||_0x204c09[_0x5b2500]===_0x21d670([0x2a])));}function _0x2f6376(){return _0xc64253&&_0x21acc3?new window[(_0x21d670([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2037d7,_0x294857)=>{_0xc64253[_0x21d670([0x74,0x68,0x65,0x6e])](_0x2037d7,_0x294857),_0x21acc3[_0x21d670([0x74,0x68,0x65,0x6e])](_0x4233bd=>{_0x4233bd!=_0x21d670([0x56,0x61,0x6c,0x69,0x64])&&_0x2037d7(_0x4233bd);},_0x294857);}):_0xc64253||_0x21acc3||_0x21d670([0x56,0x61,0x6c,0x69,0x64]);}}function _0x7db6b4(_0x1462c9,_0xbcf7a4){return new window[(_0x21d670([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x436bea=>{if(_0x51112d())return _0x436bea(_0x21d670([0x56,0x61,0x6c,0x69,0x64]));_0x1853d1(),_0x25ecdb[_0x21d670([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x21d670([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3410c4=!0x1;const _0x180abf=_0x5b7b63();function _0x381279(_0x5397ce){return!!_0x5397ce&&(typeof _0x5397ce===_0x21d670([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5397ce===_0x21d670([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5397ce[_0x21d670([0x74,0x68,0x65,0x6e])]===_0x21d670([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5397ce[_0x21d670([0x63,0x61,0x74,0x63,0x68])]===_0x21d670([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x210893(_0x3b1fca){_0x1707f5(_0x3b1fca)[_0x21d670([0x74,0x68,0x65,0x6e])](_0x2b4dfe=>{if(!_0x2b4dfe||_0x2b4dfe[_0x21d670([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x21d670([0x6f,0x6b]))return _0x21d670([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x11aa2e(_0x1acf14(_0x180abf+_0xbcf7a4))!=_0x2b4dfe[_0x21d670([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x21d670([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x21d670([0x56,0x61,0x6c,0x69,0x64]);})[_0x21d670([0x74,0x68,0x65,0x6e])](_0x3b77fd=>(_0x21cfc4(),_0x3b77fd),()=>{const _0x25ed1f=_0x413790();return null==_0x25ed1f?(_0x21cfc4(),_0x21d670([0x56,0x61,0x6c,0x69,0x64])):_0x21d670(_0x54b479-_0x25ed1f>(0x4f03da6f^_0x5c91d7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x21d670([0x74,0x68,0x65,0x6e])](_0x436bea)[_0x21d670([0x63,0x61,0x74,0x63,0x68])](()=>{_0x436bea(_0x21d670([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xaa7fc3=0x6b39b0ef^_0x5c91d7;function _0x21cfc4(){const _0x5ea042=_0x21d670([0x6c,0x6c,0x63,0x74,0x2d])+_0x11aa2e(_0x1acf14(_0x1462c9)),_0x4edaf7=_0x5bf0ae(_0x11aa2e(window[_0x21d670([0x4d,0x61,0x74,0x68])][_0x21d670([0x63,0x65,0x69,0x6c])](_0x54b479/_0xaa7fc3)));window[_0x21d670([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x21d670([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ea042,_0x4edaf7);}function _0x413790(){const _0x401b09=_0x21d670([0x6c,0x6c,0x63,0x74,0x2d])+_0x11aa2e(_0x1acf14(_0x1462c9)),_0x4c3adc=window[_0x21d670([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x21d670([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x401b09);return _0x4c3adc?window[_0x21d670([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5bf0ae(_0x4c3adc),0x10)*_0xaa7fc3:null;}function _0x1707f5(_0x27cf2d){return new window[(_0x21d670([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb0052d,_0x51e714)=>{_0x27cf2d[_0x21d670([0x74,0x68,0x65,0x6e])](_0xb0052d,_0x51e714),window[_0x21d670([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x51e714,0x6b0e8aaf^_0x5c91d7);});}}_0x25ecdb[_0x21d670([0x6f,0x6e])](_0x21d670([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2797a7,_0x301554)=>{if(_0x301554[0x0]!=_0x1462c9)return _0x436bea(_0x21d670([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x301554[0x1]={..._0x301554[0x1],[_0x21d670([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x180abf};},{[_0x21d670([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x21d670([0x68,0x69,0x67,0x68])}),_0x25ecdb[_0x21d670([0x6f,0x6e])](_0x21d670([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x597b17=>{_0x381279(_0x597b17[_0x21d670([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3410c4=!0x0,_0x210893(_0x597b17[_0x21d670([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x21d670([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x21d670([0x6c,0x6f,0x77])}),_0x53cb4c[_0x21d670([0x74,0x68,0x65,0x6e])](()=>{_0x3410c4||_0x436bea(_0x21d670([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x51112d(){return _0x25ecdb[_0x21d670([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x21d670([0x76,0x69,0x65,0x77])][_0x21d670([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x21d670([0x61,0x75,0x74,0x6f]);}function _0x1853d1(){_0x25ecdb[_0x21d670([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x21d670([0x76,0x69,0x65,0x77])][_0x21d670([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x21d670([0x61,0x75,0x74,0x6f]);}}function _0x4b6636(_0x53142d){const _0x2c636e=[new window[(_0x21d670([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x491369=>setTimeout(_0x491369,0x6b0660a3^_0x5c91d7)),_0x53cb4c[_0x21d670([0x74,0x68,0x65,0x6e])](()=>new window[(_0x21d670([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4487f2=>{let _0x50b8cc=0x0;_0x25ecdb[_0x21d670([0x6d,0x6f,0x64,0x65,0x6c])][_0x21d670([0x6f,0x6e])](_0x21d670([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3e3467,_0xa36d35)=>{_0xa36d35[0x0][_0x21d670([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x50b8cc++,_0x50b8cc==(0x6b0f5f97^_0x5c91d7)&&(_0x4487f2(),_0x3e3467[_0x21d670([0x6f,0x66,0x66])]());});}))];return window[_0x21d670([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x21d670([0x72,0x61,0x63,0x65])](_0x2c636e)[_0x21d670([0x74,0x68,0x65,0x6e])](()=>_0x53142d);}async function _0x582a1a(){await _0x53cb4c,_0x25ecdb[_0x21d670([0x6d,0x6f,0x64,0x65,0x6c])][_0x21d670([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3f2b67,_0x25ecdb[_0x21d670([0x6d,0x6f,0x64,0x65,0x6c])][_0x21d670([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3f2b67,_0x25ecdb[_0x21d670([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x21d670([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1b1854(){return _0x3ef41e(_0x21d670([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x504f63(_0x21d670([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x21d670([0x73,0x74,0x61,0x74,0x65])]==_0x21d670([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x362e23(){return _0x3ef41e(_0x21d670([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 _0x35bb41(){return _0x3ef41e(_0x21d670([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2306f2(_0x39718d){const _0x4733da=_0x43cbfd();_0x25ecdb[_0x4733da]=_0x21d670([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x39718d,_0x39718d!=_0x21d670([0x56,0x61,0x6c,0x69,0x64])&&_0x582a1a();}function _0x43cbfd(){const _0x5b95d3=window[_0x21d670([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x21d670([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x21d670([0x6e,0x6f,0x77])]())[_0x21d670([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x21d670([0x2e]),'');let _0x48a33f=_0x21d670([0x67]);for(let _0x16628d=0x0;_0x16628d<_0x5b95d3[_0x21d670([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x16628d+=0x2){let _0xb8b09e=window[_0x21d670([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b95d3[_0x21d670([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x16628d,_0x16628d+0x2));_0xb8b09e>=_0x4240a7[_0x21d670([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xb8b09e-=_0x4240a7[_0x21d670([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x48a33f+=_0x4240a7[_0xb8b09e];}return _0x48a33f;}function _0x6655b1(){const _0x1024f3=_0x31554f[_0x21d670([0x73,0x70,0x6c,0x69,0x74])](_0x21d670([0x2e]));if(0x3!=_0x1024f3[_0x21d670([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x346189(_0x1024f3[0x1]);function _0x346189(_0x1fe193){const _0x174443=_0x42b7c8(_0x1fe193);return _0x174443&&_0x48d659()?_0x174443:null;function _0x48d659(){const _0x4567f5=_0x174443[_0x21d670([0x6a,0x74,0x69])],_0x3fa048=window[_0x21d670([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4567f5[_0x21d670([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4567f5[_0x21d670([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x59568a={..._0x174443,[_0x21d670([0x6a,0x74,0x69])]:_0x4567f5[_0x21d670([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4567f5[_0x21d670([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x59568a[_0x21d670([0x76,0x63])],_0x1acf14(_0x59568a)==_0x3fa048;}}}async function _0x44d0a9(){let _0x2f984e=!0x0;try{const _0x8956fd=_0x31554f[_0x21d670([0x73,0x70,0x6c,0x69,0x74])](_0x21d670([0x2e])),[_0x3d0e67,_0x555527,_0x10150a]=_0x8956fd;return _0x2a9f30(_0x3d0e67),await _0x5bd56e(_0x3d0e67,_0x555527,_0x10150a),_0x2f984e;}catch{return!0x1;}function _0x2a9f30(_0x22bb05){const _0x1185b2=_0x42b7c8(_0x22bb05);_0x1185b2&&_0x1185b2[_0x21d670([0x61,0x6c,0x67])]==_0x21d670([0x45,0x53,0x32,0x35,0x36])||(_0x2f984e=!0x1);}async function _0x5bd56e(_0x59925e,_0xc8ba59,_0x15ee58){const _0x2a084e=window[_0x21d670([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x21d670([0x66,0x72,0x6f,0x6d])](_0x14b4ac(_0x15ee58),_0x271b05=>_0x271b05[_0x21d670([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x626e59=new window[(_0x21d670([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x21d670([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x59925e+_0x21d670([0x2e])+_0xc8ba59),_0x30f9d8=window[_0x21d670([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x21d670([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x30f9d8)return;const _0x48dd8a=await _0x30f9d8[_0x21d670([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x21d670([0x6a,0x77,0x6b]),_0x5575c9,{[_0x21d670([0x6e,0x61,0x6d,0x65])]:_0x21d670([0x45,0x43,0x44,0x53,0x41]),[_0x21d670([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x21d670([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x21d670([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x30f9d8[_0x21d670([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x21d670([0x6e,0x61,0x6d,0x65])]:_0x21d670([0x45,0x43,0x44,0x53,0x41]),[_0x21d670([0x68,0x61,0x73,0x68])]:{[_0x21d670([0x6e,0x61,0x6d,0x65])]:_0x21d670([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x48dd8a,_0x2a084e,_0x626e59)||(_0x2f984e=!0x1);}}function _0x42b7c8(_0x4308f8){return _0x4308f8[_0x21d670([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x21d670([0x65,0x79]))?JSON[_0x21d670([0x70,0x61,0x72,0x73,0x65])](_0x14b4ac(_0x4308f8)):null;}function _0x14b4ac(_0x3f09a6){return window[_0x21d670([0x61,0x74,0x6f,0x62])](_0x3f09a6[_0x21d670([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x21d670([0x2b]))[_0x21d670([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x21d670([0x2f])));}function _0x1acf14(_0x5b142f){let _0x105558=0x1505;function _0x1080b5(_0x55ce63){for(let _0x2d4f4b=0x0;_0x2d4f4b<_0x55ce63[_0x21d670([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2d4f4b++){const _0x6d346b=_0x55ce63[_0x21d670([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2d4f4b);_0x105558=(_0x105558<<0x5)+_0x105558+_0x6d346b,_0x105558&=_0x105558;}}function _0x2b65f2(_0x11730e){Array[_0x21d670([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x11730e)?_0x11730e[_0x21d670([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2b65f2):_0x11730e&&typeof _0x11730e==_0x21d670([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x21d670([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x11730e)[_0x21d670([0x73,0x6f,0x72,0x74])]()[_0x21d670([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x462c47,_0x4743fb])=>{_0x1080b5(_0x462c47),_0x2b65f2(_0x4743fb);}):_0x1080b5(window[_0x21d670([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x11730e));}return _0x2b65f2(_0x5b142f),_0x105558>>>0x0;}function _0x11aa2e(_0x17f57f){return _0x17f57f[_0x21d670([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x21d670([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x21d670([0x30]));}function _0x5bf0ae(_0x2d4f39){return _0x2d4f39[_0x21d670([0x73,0x70,0x6c,0x69,0x74])]('')[_0x21d670([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x21d670([0x6a,0x6f,0x69,0x6e])]('');}function _0x3ef41e(_0x91c498){return _0x25ecdb[_0x21d670([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x21d670([0x68,0x61,0x73])](_0x91c498);}function _0x504f63(_0x90565e){return _0x25ecdb[_0x21d670([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x21d670([0x67,0x65,0x74])](_0x90565e);}function _0x3f2b67(){}function _0x21d670(_0x55a7c7){return _0x55a7c7['map'](_0x259f78=>String['fromCharCode'](_0x259f78))['join']('');}_0x2306f2(await _0xbb5caa());}(this);}set['adapter'](_0x39f95e){if(this['_adapter'])throw new _0xd89ffd('track-changes-adapter-already-set',this);this['_adapter']=_0x39f95e;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5b6133=!0x1,toJSON:_0x7ca487=!0x1}={}){const _0x5c85a0=[];for(const _0x11ae81 of this['_suggestions']['values']())_0x5b6133&&!_0x11ae81['isInContent']||_0x5c85a0['push'](_0x11ae81);return _0x7ca487?_0x5c85a0['map'](_0x30c66c=>_0x30c66c['toJSON']()):_0x5c85a0;}['getSuggestion'](_0x3eb6f9){const _0x2231db=this['_suggestions']['get'](_0x3eb6f9);if(!_0x2231db)throw new _0xd89ffd('track-changes-suggestion-not-found',this);return _0x2231db;}['hasSuggestion'](_0x417415){return this['_suggestions']['has'](_0x417415);}['addSuggestionData'](_0x347e23){const {authorId:_0x475f58,id:_0x1288a3,originalSuggestionId:_0x1c5e12,attributes:_0x5c6ed3}=_0x347e23,[_0x1e2787,_0x16c76d]=_0x347e23['type']['split'](':'),_0x3ea7d4=this['_suggestions']['get'](_0x1288a3)||this['_createSuggestion'](_0x1e2787,_0x16c76d,_0x1288a3,_0x475f58,_0x5c6ed3,_0x1c5e12);if(this['_addThreadToSuggestion'](_0x3ea7d4),this['_checkSuggestionCorrectness'](_0x3ea7d4,_0x1e2787,_0x16c76d||null,_0x475f58),_0x3ea7d4['createdAt']=_0x347e23['createdAt'],_0x3ea7d4['_isDataLoaded']=!0x0,_0x5c6ed3&&_0x5c6ed3['@external']){const _0x48b67a=_0x5c6ed3['@external'],_0x2c8741=this['_getExternalAuthor'](_0x48b67a['authorName']);_0x3ea7d4['authoredAt']=_0x48b67a['createdAt'],_0x3ea7d4['author']=_0x2c8741,_0x3ea7d4['isExternal']=!0x0;}else _0x3ea7d4['authoredAt']=_0x347e23['createdAt'];switch(_0x347e23['data']&&(_0x3ea7d4['data']=_0x347e23['data']),_0x347e23['attributes']&&(_0x3ea7d4['attributes']=_0x347e23['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3ea7d4['_saved']=!0x0),this['_suggestionState']['get'](_0x3ea7d4)){case'notReady':this['_suggestionState']['set'](_0x3ea7d4,'dataReady');break;case'markerReady':_0x3ea7d4['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3ea7d4])),this['_refreshSuggestionsChain'](new Set([_0x3ea7d4])),this['_suggestionState']['set'](_0x3ea7d4,'ready'),this['fire']('suggestionLoaded',_0x3ea7d4)):this['_suggestionState']['set'](_0x3ea7d4,'removed');}return _0x3ea7d4;}['acceptSuggestion'](_0x58a3a5){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x28bcd7 of _0x58a3a5['getAllAdjacentSuggestions']())_0x28bcd7['accept']();});});}['discardSuggestion'](_0xee202a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5c418b of _0xee202a['getAllAdjacentSuggestions']())_0x5c418b['discard']();});});}['enableCommand'](_0x50eb55,_0x11bddb){const _0x557382=this['editor']['commands']['get'](_0x50eb55);if(!_0x557382)throw new _0xd89ffd('track-changes-command-not-found',this,{'commandName':_0x50eb55});if(this['_enabledCommands']['has'](_0x557382))throw new _0xd89ffd('track-changes-enable-command-twice',this,{'commandName':_0x50eb55});this['_enabledCommands']['add'](_0x557382),_0x11bddb&&_0x557382['on']('execute',(_0x427afd,_0x3d9e21)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3d9e21['length']>0x0&&_0x3d9e21[_0x3d9e21['length']-0x1]&&_0x3d9e21[_0x3d9e21['length']-0x1]['forceDefaultExecution']?_0x3d9e21['pop']():(_0x427afd['return']=_0x11bddb((..._0x5a89fb)=>_0x557382['execute'](..._0x5a89fb,{'forceDefaultExecution':!0x0}),..._0x3d9e21),_0x427afd['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x6bd433){let _0x2021eb,_0x159365;const _0x2e6419=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2021eb=_0x6bd433();}catch(_0x47f050){_0x159365=_0x47f050;}return _0x2e6419||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x159365&&_0xd89ffd['rethrowUnexpectedError'](_0x159365,this),_0x2021eb;}['markInsertion'](_0x1f94be,_0x44603b=null,_0x3678cb={}){if(_0x1f94be['isCollapsed'])return null;const _0x310e8e=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x3678cb['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xc41603,meta:_0x753d15}of this['_findSuggestions'](_0x1f94be,'insertion'))if(_0x753d15['isOwn']){if(!_0x753d15['isNextTo']){if(_0x753d15['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!ie(_0xc41603,_0x3678cb))continue;return _0xc41603;}if(ie(_0xc41603,_0x3678cb))return _0xc41603;this['_breakSuggestionMarker'](_0xc41603,_0x1f94be['start'],_0x1f94be['end']);break;}if(_0x44603b==_0xc41603['subType']&&ie(_0xc41603,_0x3678cb)){const _0x5bc4a1=_0xc41603['getFirstRange']();return _0x5bc4a1['start']['isEqual'](_0x1f94be['end'])?this['_setSuggestionRange'](_0xc41603,this['_model']['createRange'](_0x1f94be['start'],_0x5bc4a1['end'])):this['_setSuggestionRange'](_0xc41603,this['_model']['createRange'](_0x5bc4a1['start'],_0x1f94be['end'])),_0xc41603;}}const _0x315c0f=_0x5b7b63(),_0x3bbb2d=_0x310e8e['id'],_0x30dae4=_0x44603b?'insertion:'+_0x44603b:'insertion',_0x5ac619=this['_setSuggestionData']({'id':_0x315c0f,'type':_0x30dae4,'createdAt':new Date(),'authorId':_0x3bbb2d,'attributes':_0x3678cb});return this['_addSuggestionMarker'](_0x30dae4,_0x315c0f,_0x3bbb2d,_0x1f94be),_0x5ac619;}['markMultiRangeInsertion'](_0x1efabe,_0x441966='multi',_0x49dfd2={}){const _0x54eff3=this['editor']['plugins']['get']('Users')['me'],_0x3c1e1f=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x441966,'join');this['_trackingSessionId']&&(_0x49dfd2['trackingSessionId']=this['_trackingSessionId']);for(const _0x12f9bf of this['getSuggestions']())if(_0x12f9bf['author']['id']==_0x54eff3['id']&&'insertion'==_0x12f9bf['type']&&_0x12f9bf['subType']==_0x441966&&ie(_0x12f9bf,_0x49dfd2)&&(_0x3c1e1f(_0x12f9bf['getRanges'](),_0x1efabe)||_0x3c1e1f(_0x1efabe,_0x12f9bf['getRanges']()))){for(const _0x4b84b3 of _0x1efabe)_0x12f9bf['addRange'](_0x4b84b3);return _0x12f9bf;}for(const {suggestion:_0x4e6f71,meta:_0x53b42a}of this['_findSuggestions'](_0x1efabe,'insertion')){if(!_0x53b42a['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x53b42a['containsRangeInObject'])continue;if(!ie(_0x4e6f71,_0x49dfd2))continue;let _0x523b7d=!0x0;for(const _0x2ba87a of _0x4e6f71['getRanges']())for(const _0x323a93 of _0x1efabe)if(!_0x2ba87a['containsRange'](_0x323a93)){_0x523b7d=!0x1;break;}if(_0x523b7d)return _0x4e6f71;}const _0x3d46c8=_0x5b7b63(),_0x500793=_0x54eff3['id'],_0x5757be='insertion:'+_0x441966,_0x4bdb81=this['_setSuggestionData']({'id':_0x3d46c8,'type':_0x5757be,'createdAt':new Date(),'authorId':_0x500793,'attributes':_0x49dfd2});for(const _0x3bb5b5 of _0x1efabe)this['_addSuggestionMarker'](_0x5757be,_0x3d46c8,_0x500793,_0x3bb5b5,R['getMultiRangeId']());return _0x4bdb81;}['markInlineFormat'](_0x30217a,_0x4a1932,_0x546223=null,_0x2991c7={}){if(_0x546223=_0x546223||Wt(_0x4a1932),_0x30217a['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x2991c7['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x42d000=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x546223,'accept');return this['forceDefaultExecution'](()=>_0x42d000([_0x30217a],_0x4a1932,_0x2991c7)),null;}const _0x4879df=this['editor']['plugins']['get']('Users')['me'],_0x390cd9=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x237563,meta:_0x915d45}of this['_findSuggestions'](_0x30217a,'insertion'))_0x915d45['isOwn']&&!_0x915d45['isInsideObject']&&_0x390cd9['push'](..._0x237563['getRanges']());}const _0x338621=function(_0xba9cff,_0x381ab5){const _0x4c3e8a=[];for(const _0x3792df of _0x381ab5){const _0x365b29=_0xba9cff['getIntersection'](_0x3792df);_0x365b29&&_0x4c3e8a['push'](_0x365b29);}return _0x4c3e8a;}(_0x30217a,_0x390cd9),_0x5047c9=function(_0x23c7a2,_0x1cb345){const _0x192538=[_0x23c7a2];for(const _0x9b0425 of _0x1cb345){let _0x5a6ff2=0x0;for(;_0x5a6ff2<_0x192538['length'];){const _0x4d903c=_0x192538[_0x5a6ff2]['getDifference'](_0x9b0425);_0x192538['splice'](_0x5a6ff2,0x1,..._0x4d903c),_0x5a6ff2+=_0x4d903c['length'];}}return _0x192538;}(_0x30217a,_0x390cd9);_0x338621['length']&&this['_model']['change'](()=>{for(const _0x12e957 of _0x338621){const _0xe14b50=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x546223,'accept');this['forceDefaultExecution'](()=>_0xe14b50([_0x12e957],_0x4a1932,_0x2991c7));}});for(const _0x2f2f4c of _0x5047c9){let _0x3909ae=null,_0x3cb749=_0x2f2f4c['start'],_0x3be48d=_0x2f2f4c['end'];for(const {suggestion:_0x105785,meta:_0x12635c}of this['_findSuggestions'](_0x2f2f4c,'formatInline')){if(!_0x12635c['isOwn'])continue;if(_0x105785['subType']!=_0x546223)continue;if(!ie(_0x105785,_0x2991c7))continue;const _0x2809e9=_0x105785['getFirstRange']();if(_0x2809e9['containsRange'](_0x2f2f4c,!0x0))return null;_0x3cb749=_0x3cb749['isBefore'](_0x2809e9['start'])?_0x3cb749:_0x2809e9['start'],_0x3be48d=_0x3be48d['isAfter'](_0x2809e9['end'])?_0x3be48d:_0x2809e9['end'],_0x3909ae?_0x2809e9['start']['isBefore'](_0x3909ae['getFirstRange']()['start'])?(_0x3909ae['removeMarkers'](),_0x3909ae=_0x105785):_0x105785['removeMarkers']():_0x3909ae=_0x105785;}const _0x420abe=this['_model']['createRange'](_0x3cb749,_0x3be48d);if(_0x3909ae)this['_setSuggestionRange'](_0x3909ae,_0x420abe);else{const _0x5b2935=_0x5b7b63(),_0x29677f=_0x4879df['id'];this['_setSuggestionData']({'id':_0x5b2935,'type':'formatInline:'+_0x546223,'data':_0x4a1932,'createdAt':new Date(),'authorId':_0x29677f,'attributes':_0x2991c7}),this['_addSuggestionMarker']('formatInline:'+_0x546223,_0x5b2935,_0x29677f,_0x420abe);}}return null;}['markBlockFormat'](_0x5de5c8,_0x50a5d9,_0x5b7e05=[],_0x33609f=null,_0x2ef6ed={}){_0x50a5d9['formatGroupId']||(_0x50a5d9['formatGroupId']=_0x50a5d9['commandName']),_0x50a5d9['multipleBlocks']=_0x5de5c8['is']('range'),_0x33609f=_0x33609f||Wt(_0x50a5d9);const _0xbe88b0=_0x5b7e05['map'](_0x48ae1e=>Zt(_0x48ae1e,this['_model'])),_0x4fbe81=_0x5de5c8['is']('range')?_0x5de5c8:Zt(_0x5de5c8,this['_model']);if(this['_trackingSessionId']&&(_0x2ef6ed['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4511e9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x33609f,'accept');return this['forceDefaultExecution'](()=>_0x4511e9([_0x4fbe81],_0x50a5d9,_0x2ef6ed)),null;}_0xbe88b0['push'](_0x4fbe81);let _0x3ee76e=!0x0;for(const _0x25a0a5 of _0xbe88b0)if(!this['_rangeIsInLocalUserInsertion'](_0x25a0a5)){_0x3ee76e=!0x1;break;}if(_0x3ee76e&&'always'!==this['_trackFormatChanges']){const _0x1be726=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x33609f,'accept');return this['forceDefaultExecution'](()=>_0x1be726([_0x4fbe81],_0x50a5d9,_0x2ef6ed)),null;}let _0x1519ec=null,_0x48369a=_0x4fbe81['start'],_0x5cbb01=_0x4fbe81['end'];for(const {suggestion:_0x32652c,meta:_0x21cd59}of this['_findSuggestions'](_0x4fbe81,'formatBlock')){if(!_0x21cd59['isOwn'])continue;if(_0x21cd59['isNextTo']||_0x21cd59['containsRangeInObject']||_0x21cd59['isInsideObject'])continue;if(_0x32652c['data']['formatGroupId']!=_0x50a5d9['formatGroupId'])continue;if(!ie(_0x32652c,_0x2ef6ed))continue;const _0x315c8b=_0x32652c['getFirstRange']();if(_0x32652c['subType']==_0x33609f){if(_0x315c8b['containsRange'](_0x4fbe81,!0x0))return null;_0x48369a=_0x48369a['isBefore'](_0x315c8b['start'])?_0x48369a:_0x315c8b['start'],_0x5cbb01=_0x5cbb01['isAfter'](_0x315c8b['end'])?_0x5cbb01:_0x315c8b['end'],_0x1519ec?_0x315c8b['start']['isBefore'](_0x1519ec['getFirstRange']()['start'])?(_0x1519ec['removeMarkers'](),_0x1519ec=_0x32652c):_0x32652c['removeMarkers']():_0x1519ec=_0x32652c;}else{const _0x227893=_0x4fbe81['getIntersection'](_0x315c8b);this['_cutOutSuggestionMarker'](_0x32652c,_0x227893);}}const _0x371381=this['editor']['plugins']['get']('Users')['me'],_0x46b054=_0x5b7b63(),_0x42290f=_0x371381['id'];if(_0x1519ec)return this['_setSuggestionRange'](_0x1519ec,this['_model']['createRange'](_0x48369a,_0x5cbb01)),_0x1519ec;{const _0x3227e6=this['_setSuggestionData']({'id':_0x46b054,'type':'formatBlock:'+_0x33609f,'data':_0x50a5d9,'createdAt':new Date(),'authorId':_0x42290f,'attributes':_0x2ef6ed});return this['_addSuggestionMarker']('formatBlock:'+_0x33609f,_0x46b054,_0x42290f,this['_model']['createRange'](_0x48369a,_0x5cbb01)),_0x3227e6;}}['markMultiRangeBlockFormat'](_0x30d379,_0x121224,_0x3d8137=[],_0x25b056=null,_0x37351b={}){_0x121224['formatGroupId']||(_0x121224['formatGroupId']=_0x121224['commandName']);const _0x791bcb=_0x30d379[0x0];_0x121224['multipleBlocks']=_0x791bcb['is']('range'),_0x25b056=_0x25b056||Wt(_0x121224);const _0x5abff4=_0x3d8137['map'](_0x4290b8=>Zt(_0x4290b8,this['_model'])),_0x297537=_0x791bcb['is']('range')?_0x30d379:_0x30d379['map'](_0x12f360=>Zt(_0x12f360,this['_model']));if(this['_trackingSessionId']&&(_0x37351b['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x48aa8f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x25b056,'accept');return this['forceDefaultExecution'](()=>_0x48aa8f(_0x297537,_0x121224,_0x37351b)),null;}_0x5abff4['push'](..._0x297537);let _0xa8d3ac=!0x0;for(const _0x5468f9 of _0x5abff4)if(!this['_rangeIsInLocalUserInsertion'](_0x5468f9)){_0xa8d3ac=!0x1;break;}if(_0xa8d3ac&&'always'!==this['_trackFormatChanges']){const _0x18913f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x25b056,'accept');return this['forceDefaultExecution'](()=>_0x18913f(_0x297537,_0x121224,_0x37351b)),null;}const _0x44688d=this['editor']['plugins']['get']('Users')['me'];for(const _0x1f8e66 of this['getSuggestions']()){const _0x18cda3=_0x1f8e66['data'];if(_0x1f8e66['author']['id']!=_0x44688d['id'])continue;if('formatBlock'!=_0x1f8e66['type']||_0x18cda3['formatGroupId']!=_0x121224['formatGroupId'])continue;if(!ie(_0x1f8e66,_0x37351b))continue;const _0x1702b6=_0x1f8e66['subType']==_0x25b056;for(let _0x4db284=0x0;_0x4db284<_0x297537['length'];_0x4db284++){const _0x44e866=_0x297537[_0x4db284];for(const _0x57cf50 of _0x1f8e66['getMarkers']()){const _0x109f87=_0x57cf50['getRange']();if(_0x44e866['isEqual'](_0x109f87)){_0x1702b6?(_0x297537['splice'](_0x4db284,0x1),_0x4db284--):_0x1f8e66['removeMarker'](_0x57cf50['name']);break;}}}}if(0x0==_0x297537['length'])return null;const _0x28f67f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x25b056,'join');for(const _0x336f0f of this['getSuggestions']()){const _0x33f3c0=_0x336f0f['data'];if(_0x336f0f['author']['id']==_0x44688d['id']&&('formatBlock'==_0x336f0f['type']&&_0x33f3c0['formatGroupId']==_0x121224['formatGroupId']&&_0x336f0f['subType']==_0x25b056&&ie(_0x336f0f,_0x37351b)&&(_0x28f67f(_0x336f0f['getRanges'](),_0x297537)||_0x28f67f(_0x297537,_0x336f0f['getRanges']())))){for(const _0x276c52 of _0x297537)_0x336f0f['addRange'](_0x276c52);return _0x336f0f;}}const _0x3c111e=_0x5b7b63(),_0x2568e8=_0x44688d['id'],_0x563988='formatBlock:'+_0x25b056,_0x5a83f5=this['_setSuggestionData']({'id':_0x3c111e,'type':_0x563988,'data':_0x121224,'createdAt':new Date(),'authorId':_0x2568e8,'attributes':_0x37351b});for(const _0x3aa826 of _0x297537)this['_addSuggestionMarker'](_0x563988,_0x3c111e,_0x2568e8,_0x3aa826,R['getMultiRangeId']());return _0x5a83f5;}['markDeletion'](_0x2092df,_0x17cbab=null,_0x533aa1={}){if(_0x2092df['isCollapsed'])return null;const _0x57b402=this['editor']['plugins']['get']('Users')['me'],_0x279361=new _0x39adac(_0x2092df['start'],_0x2092df['end']);this['_trackingSessionId']&&(_0x533aa1['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1330b8,meta:_0x294c35}of this['_findSuggestions'](_0x279361,'insertion'))if(_0x294c35['isOwn']&&!_0x294c35['isNextTo']){if(_0x1330b8['isMultiRange']){const _0x39effd=_0x1330b8['getRanges']()['filter'](_0x46da4b=>'$graveyard'!=_0x46da4b['root']['rootName']);_0x39effd['every'](_0x1849e2=>_0x279361['containsRange'](_0x1849e2,!0x0))&&_0x1330b8['discard']();if(_0x39effd['some'](_0x4e7fe1=>_0x4e7fe1['containsRange'](_0x279361,!0x0))){const _0x197d5d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x17cbab,'accept');return this['forceDefaultExecution'](()=>_0x197d5d([_0x279361],null,_0x533aa1)),null;}}else{const _0x742b6d=_0x279361['getIntersection'](_0x1330b8['getFirstRange']());null!==_0x742b6d&&_0x1330b8['_onDiscard']([_0x742b6d],null,_0x533aa1);}}if(_0x279361['detach'](),_0x279361['isCollapsed']||'$graveyard'==_0x279361['root']['rootName'])return null;let _0x13a8f6=null,_0x931fac=_0x279361['start'],_0x43da1c=_0x279361['end'];const _0x261927=this['_findSuggestions'](_0x279361,'deletion');for(const {suggestion:_0x23acea,meta:_0x3eb30f}of _0x261927){const _0x295d7d=this['_model']['createRange'](_0x931fac,_0x43da1c);if(_0x3eb30f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3eb30f['containsRangeInObject']&&!_0x3eb30f['isInsideObject'])){if(_0x23acea['isMultiRange']){if(!ie(_0x23acea,_0x533aa1))continue;let _0x2e2ccf=!0x0;for(const _0x174aca of _0x23acea['getRanges']()){if(_0x174aca['containsRange'](_0x295d7d,!0x0))return _0x23acea;_0x295d7d['containsRange'](_0x174aca)||(_0x2e2ccf=!0x1);}_0x2e2ccf&&_0x23acea['discard']();}else{const _0xb29bad=_0x23acea['getFirstRange']();if(_0xb29bad['containsRange'](_0x295d7d,!0x0))return _0x23acea;if(!ie(_0x23acea,_0x533aa1)){_0x295d7d['containsRange'](_0xb29bad)?_0x23acea['removeMarkers']():_0xb29bad['containsPosition'](_0x931fac)?_0x931fac=_0xb29bad['end']:_0xb29bad['containsPosition'](_0x43da1c)&&(_0x43da1c=_0xb29bad['start']);continue;}_0x931fac=_0x931fac['isBefore'](_0xb29bad['start'])?_0x931fac:_0xb29bad['start'],_0x43da1c=_0x43da1c['isAfter'](_0xb29bad['end'])?_0x43da1c:_0xb29bad['end'],_0x533aa1=Object['assign']({},_0x23acea['attributes']),_0x13a8f6?_0xb29bad['start']['isBefore'](_0x13a8f6['getFirstRange']()['start'])?(_0x13a8f6['removeMarkers'](),_0x13a8f6=_0x23acea):_0x23acea['removeMarkers']():_0x13a8f6=_0x23acea;}}}if(_0x13a8f6)return this['_setSuggestionRange'](_0x13a8f6,this['_model']['createRange'](_0x931fac,_0x43da1c)),_0x13a8f6;{const _0x2ce538=_0x5b7b63(),_0x2cecf5=this['_model']['createRange'](_0x931fac,_0x43da1c),_0x5515b3=_0x57b402['id'],_0x28131a=_0x17cbab?'deletion:'+_0x17cbab:'deletion',_0x2d67f3=this['_setSuggestionData']({'id':_0x2ce538,'type':_0x28131a,'createdAt':new Date(),'authorId':_0x5515b3,'attributes':_0x533aa1});return this['_addSuggestionMarker'](_0x28131a,_0x2ce538,_0x5515b3,_0x2cecf5),_0x2d67f3;}}['markMultiRangeDeletion'](_0x40f381,_0x28b4aa='multi',_0x38e50d={}){const _0x20bfe4=this['editor']['plugins']['get']('Users')['me'],_0x207143=_0x40f381['map'](_0x352e1a=>new _0x39adac(_0x352e1a['start'],_0x352e1a['end'])),_0x4c17de=new Set();this['_trackingSessionId']&&(_0x38e50d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3ac05c,meta:_0x18e9d2}of this['_findSuggestions'](_0x207143,'insertion'))_0x18e9d2['isOwn']&&!_0x18e9d2['isNextTo']&&_0x4c17de['add'](_0x3ac05c);for(const _0x51bfc6 of _0x4c17de)if(_0x51bfc6['isMultiRange']){const _0x103f76=_0x51bfc6['getRanges']();(!_0x51bfc6['attributes']||!_0x51bfc6['attributes']['skipNestingCheck'])&&(_0x103f76['every'](_0x57b087=>_0x207143['some'](_0x43fb59=>_0x43fb59['containsRange'](_0x57b087,!0x0)))&&_0x51bfc6['discard']());if(_0x207143['every'](_0x23874b=>_0x103f76['some'](_0x898dc2=>_0x898dc2['containsRange'](_0x23874b,!0x0)))){const _0x2054b4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x28b4aa,'accept');return this['forceDefaultExecution'](()=>_0x2054b4(_0x40f381,null,_0x38e50d)),null;}}else{const _0x10fccd=_0x51bfc6['getFirstRange']();_0x207143['some'](_0x3012d0=>_0x3012d0['containsRange'](_0x10fccd,!0x0))&&_0x51bfc6['discard']();if(_0x207143['every'](_0x1aece5=>_0x10fccd['containsRange'](_0x1aece5,!0x0))){const _0x1a9e5e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x28b4aa,'accept');return this['forceDefaultExecution'](()=>_0x1a9e5e(_0x207143,null,_0x38e50d)),null;}}const _0x29d757=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x28b4aa,'join');let _0x439627=null;for(const _0xf9bca7 of this['getSuggestions']())if(_0xf9bca7['author']['id']==_0x20bfe4['id']&&_0xf9bca7['isInContent']&&'deletion'==_0xf9bca7['type']&&_0xf9bca7['subType']==_0x28b4aa&&ie(_0xf9bca7,_0x38e50d)&&(_0x29d757(_0xf9bca7['getRanges'](),_0x207143)||_0x29d757(_0x207143,_0xf9bca7['getRanges']()))){if(_0x439627){if(_0xf9bca7['commentThread']&&_0xf9bca7['commentThread']['length'])continue;for(const _0x5b37ff of _0xf9bca7['getRanges']())_0x439627['isIntersectingWithRange'](_0x5b37ff)||_0x439627['addRange'](_0x5b37ff);_0xf9bca7['removeMarkers']();}else{_0x439627=_0xf9bca7;for(const _0x5f06f9 of _0x207143)_0xf9bca7['isIntersectingWithRange'](_0x5f06f9)||_0xf9bca7['addRange'](_0x5f06f9);}}if(_0x439627)return _0x439627;_0x4c17de['clear']();for(const {suggestion:_0xbe09c1,meta:_0x3acbc7}of this['_findSuggestions'](_0x207143,'deletion'))_0x3acbc7['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3acbc7['containsRangeInObject']&&!_0x3acbc7['isInsideObject'])&&ie(_0xbe09c1,_0x38e50d)&&_0x4c17de['add'](_0xbe09c1);for(const _0x299971 of _0x4c17de){const _0x376d55=_0x299971['getRanges']();if(!_0x38e50d||!_0x38e50d['skipNestingCheck']){if(_0x207143['every'](_0x1e15e6=>_0x376d55['some'](_0x19b58a=>_0x19b58a['containsRange'](_0x1e15e6,!0x0))))return _0x299971;}(!_0x299971['attributes']||!_0x299971['attributes']['skipNestingCheck'])&&(_0x376d55['every'](_0x32f567=>_0x207143['some'](_0x3777f7=>_0x3777f7['containsRange'](_0x32f567,!0x0)))&&_0x299971['discard']());}const _0x318d35=_0x5b7b63(),_0xac4773=_0x20bfe4['id'],_0x2c1a32='deletion:'+_0x28b4aa,_0x227ef9=this['_setSuggestionData']({'id':_0x318d35,'type':_0x2c1a32,'createdAt':new Date(),'authorId':_0xac4773,'attributes':_0x38e50d});for(const _0x1bf658 of _0x207143)_0x1bf658['detach'](),_0x1bf658['isCollapsed']||'$graveyard'==_0x1bf658['root']['rootName']||this['_addSuggestionMarker'](_0x2c1a32,_0x318d35,_0xac4773,_0x1bf658,R['getMultiRangeId']());return _0x227ef9;}['markAttributeChange'](_0x1478fc,_0x4a441a,_0x578592,_0x28513f,_0x4369c2){if(_0x1478fc['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3c9310=this['editor']['plugins']['get']('Users')['me']['id'],_0x377138=Array['from'](this['_suggestions']['values']())['filter'](_0x3fe734=>'attribute'==_0x3fe734['type']&&_0x3fe734['data']['key']==_0x4a441a&&_0x3fe734['isIntersectingWithRange'](_0x1478fc));if(this['_trackingSessionId']&&(_0x4369c2['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0xfa3842=this['_findSuggestions'](_0x1478fc,'insertion')['filter'](({meta:_0x3c20d8})=>_0x3c20d8['isOwn']&&!_0x3c20d8['isInsideObject']&&!_0x3c20d8['isNextTo'])['map'](({suggestion:_0x390e58})=>_0x390e58);_0x377138['unshift'](..._0xfa3842);}const _0x143929=new Map([[_0x1478fc,_0x578592]]);for(const _0x3dcf28 of _0x377138){const _0x549e86='attribute'==_0x3dcf28['type']?_0x3dcf28['data']['oldValue']:void 0x0,_0x2fd053=_0x3dcf28['getFirstRange'](),_0x1d483a=Array['from'](_0x143929['keys']())['find'](_0x490183=>_0x490183['isIntersecting'](_0x2fd053));if(!_0x1d483a)continue;const _0x183aa4=_0x1d483a['getDifference'](_0x2fd053);this['_isBlockAttribute'](_0x4a441a)&&'insertion'==_0x3dcf28['type']&&0x0!=_0x183aa4['length']||(_0x143929['delete'](_0x1d483a),_0x183aa4['forEach'](_0x23f454=>{_0x143929['set'](_0x23f454,_0x578592);}),'insertion'!=_0x3dcf28['type']&&_0x549e86!=_0x28513f&&_0x143929['set'](_0x1d483a['getIntersection'](_0x2fd053),_0x549e86));}const _0x4a16b7=[];for(const [_0xfa0a21,_0x1cea40]of _0x143929){const _0x39de22=_0x5b7b63(),_0x1b80b1={'key':_0x4a441a,'oldValue':_0x1cea40,'newValue':_0x28513f};_0x4a441a['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':_0x4a441a});const _0xc65b17=('attribute:'+(_0x4a441a+'|'+Wt({'newValue':_0x28513f})))['substring'](0x0,0x3c),_0x4b8e6c=this['_setSuggestionData']({'id':_0x39de22,'type':_0xc65b17,'data':_0x1b80b1,'createdAt':new Date(),'authorId':_0x3c9310,'attributes':_0x4369c2});_0x4a16b7['push'](_0x4b8e6c),this['_addSuggestionMarker'](_0xc65b17,_0x39de22,_0x3c9310,_0xfa0a21);}return _0x4a16b7;}['enableDefaultAttributesIntegration'](_0x57b2e6){this['enableCommand'](_0x57b2e6,(_0x29dee5,..._0x27006f)=>{this['recordAttributeChanges'](()=>{_0x29dee5(..._0x27006f);});});}['registerBlockAttribute'](_0x389d2b){this['_blockAttributeKeys']['add'](_0x389d2b);}['registerInlineAttribute'](_0x45bcc1){this['_inlineAttributeKeys']['add'](_0x45bcc1);}['startTrackingSession'](_0xd682b6){return this['_trackingSessionId']=void 0x0!==_0xd682b6?_0xd682b6:_0x5b7b63(),this['_trackingSessionId'];}['_getAttributeKey'](_0x5b5f96){return'attribute'==_0x5b5f96['type']?se(_0x5b5f96['subType']):null;}['_applyOperationsAsSuggestions'](_0x337e61){if(0x0==_0x337e61['length'])return;const _0x4832a0=this['editor'],_0x434901=_0x4832a0['plugins']['get'](_0x42d159);let _0x3ed346=!0x0;for(const _0x294010 in _0x337e61[0x0]){const _0x3f4295=_0x337e61[0x0][_0x294010];if((_0x3f4295 instanceof _0x3376f5||_0x3f4295 instanceof _0x345d35)&&_0x3f4295['root']['is']('documentFragment')){_0x3ed346=!0x1;break;}}_0x4832a0['model']['change'](_0x5d7059=>{const _0x54780b=new Set();for(const _0x1af05d of _0x337e61)if(_0x1af05d['baseVersion']=_0x3ed346?_0x4832a0['model']['document']['version']:null,_0x1af05d['isDocumentOperation']=_0x3ed346,_0x434901['isMarkedRemoveOperation'](_0x1af05d)){const _0x42e76e=Xt(_0x1af05d['newRange'],_0x4832a0['model']);if(_0x3ed346)this['markDeletion'](_0x42e76e);else{const _0x5541aa='suggestion:deletion:id:authorId:'+_0x5b7b63();_0x42e76e['root']['markers']['set'](_0x5541aa,_0x42e76e);}}else switch(_0x1af05d['type']){case'rename':{const _0x4c7ac3=_0x1af05d['oldName'],_0x200c4d=_0x1af05d['newName'];if(_0x4c7ac3==_0x200c4d)break;_0x5d7059['batch']['addOperation'](_0x1af05d),_0x4832a0['model']['applyOperation'](_0x1af05d);const _0xf4a7c3='$elementName',_0x3fc302=_0x1af05d['position'],_0x55f5b8=_0x4832a0['model']['createRange'](_0x3fc302,_0x4832a0['model']['createPositionAt'](_0x3fc302['nodeAfter'],'end'));if(_0x3ed346)this['markAttributeChange'](_0x55f5b8,_0xf4a7c3,_0x4c7ac3,_0x200c4d,{'groupId':_0x5b7b63()});else{const _0x3946c9='suggestion:attribute:'+_0xf4a7c3+':id:authorId:'+_0x5b7b63();_0x55f5b8['root']['markers']['set'](_0x3946c9,_0x55f5b8);}break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0xcedc79=_0x1af05d['oldValue'],_0x4719c0=_0x1af05d['newValue'];if(_0xcedc79==_0x4719c0)break;_0x5d7059['batch']['addOperation'](_0x1af05d),_0x4832a0['model']['applyOperation'](_0x1af05d);const _0x15324c=_0x1af05d['key'];if(!this['_isRegisteredAttribute'](_0x15324c))break;const _0x4288cc=Xt(_0x1af05d['range'],_0x4832a0['model']);if(_0x3ed346)this['markAttributeChange'](_0x4288cc,_0x15324c,_0xcedc79,_0x4719c0,{'groupId':_0x5b7b63()});else{const _0x4e5cd4='suggestion:attribute:'+_0x15324c+':id:authorId:'+_0x5b7b63();_0x4288cc['root']['markers']['set'](_0x4e5cd4,_0x4288cc);}break;}case'insert':{_0x5d7059['batch']['addOperation'](_0x1af05d),_0x4832a0['model']['applyOperation'](_0x1af05d);const _0x1828c8=_0x1af05d['position'],_0x4d713c=_0x1af05d['howMany'],_0x3d7670=Xt(_0x4832a0['model']['createRange'](_0x1828c8,_0x1828c8['getShiftedBy'](_0x4d713c)),_0x4832a0['model']);if(_0x3ed346)this['markInsertion'](_0x3d7670);else{const _0x1406d1='suggestion:insertion:id:authorId:'+_0x5b7b63();_0x3d7670['root']['markers']['set'](_0x1406d1,_0x3d7670);}break;}case'split':{_0x5d7059['batch']['addOperation'](_0x1af05d),_0x4832a0['model']['applyOperation'](_0x1af05d);const _0x11e773=_0x1af05d['splitPosition'],_0x5496bf=_0x1af05d['moveTargetPosition'],_0x38c899=_0x4832a0['model']['createRange'](_0x11e773,_0x5496bf);if(_0x3ed346)this['markInsertion'](_0x4832a0['model']['createRange'](_0x11e773,_0x5496bf));else{const _0x5a7b79='suggestion:insertion:id:authorId:'+_0x5b7b63();_0x38c899['root']['markers']['set'](_0x5a7b79,_0x38c899);}break;}case'move':if(_0x5d7059['batch']['addOperation'](_0x1af05d),_0x4832a0['model']['applyOperation'](_0x1af05d),!_0x3ed346){const _0x58224f=_0x1af05d['getMovedRangeStart'](),_0x24bc06=_0x1af05d['howMany'];for(let _0x47c00a=0x0;_0x47c00a<_0x24bc06;_0x47c00a++){const _0x42f936=_0x58224f['getShiftedBy'](_0x47c00a)['nodeAfter'];_0x54780b['add'](_0x42f936);}}break;case'remove':if(_0x3ed346)_0x5d7059['batch']['addOperation'](_0x1af05d),_0x4832a0['model']['applyOperation'](_0x1af05d);else{const _0x93d48d=_0x1af05d['sourcePosition'],_0x2353f2=_0x1af05d['howMany'],_0x54f203=new _0x75aadc(_0x93d48d,_0x2353f2);_0x5d7059['batch']['addOperation'](_0x54f203),_0x4832a0['model']['applyOperation'](_0x54f203);}}for(const _0x1a3610 of _0x54780b){const _0x4a9d6e=_0x4832a0['model']['createRangeOn'](_0x1a3610),_0x490a73='suggestion:formatBlock:$fakeWrap:id:authorId:'+_0x5b7b63();_0x4a9d6e['root']['markers']['set'](_0x490a73,Xt(_0x4a9d6e,_0x4832a0['model']));}});}['_setSuggestionRange'](_0x3d747e,_0xff74f1){const _0x3de334=_0x3d747e['getFirstMarker']();this['_model']['change'](_0x37746f=>{_0x37746f['updateMarker'](_0x3de334,{'range':_0xff74f1});});}['_addThreadToSuggestion'](_0x10994d){const _0x4a520d=_0x10994d['id'],_0x45ccad=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4a520d)||this['_commentsRepository']['addCommentThread']({'channelId':_0x45ccad,'threadId':_0x4a520d,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x551041=this['_commentsRepository']['getCommentThread'](_0x4a520d);_0x551041['unbind']('isRemovable'),_0x551041['isRemovable']=!0x1,_0x10994d['commentThread']=_0x551041;}['_checkSuggestionCorrectness'](_0x45732d,_0x3218e8,_0x47a046,_0x3c2592){if(_0x45732d['type']!=_0x3218e8||_0x45732d['subType']!=_0x47a046||_0x45732d['creator']['id']!=_0x3c2592)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xd89ffd('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1798bd,_0x641dfc){const _0x4fbf64=_0x1798bd['getFirstRange']();if(_0x641dfc['isEqual'](_0x4fbf64))_0x1798bd['removeMarkers']();else{if(_0x4fbf64['containsRange'](_0x641dfc)){const _0x1a3aed=this['_model']['createPositionAt'](_0x641dfc['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1798bd,this['_model']['createRange'](_0x4fbf64['start'],_0x1a3aed));const _0xa821ef=_0x5b7b63(),_0x5953f8=_0x1798bd['creator']['id'],_0x1fd159=_0x1798bd['type']+':'+_0x1798bd['subType'];this['_setSuggestionData']({'id':_0xa821ef,'type':_0x1fd159,'createdAt':new Date(),'authorId':_0x5953f8,'data':_0x1798bd['data'],'attributes':_0x1798bd['attributes']});const _0x434313=this['_model']['createPositionAt'](_0x641dfc['end']['parent'],'after'),_0x22437c=this['_model']['createRange'](_0x434313,_0x4fbf64['end']);this['_addSuggestionMarker'](_0x1fd159,_0xa821ef,_0x5953f8,_0x22437c);}else{if(_0x4fbf64['containsPosition'](_0x641dfc['start'])){const _0x2afa9b=this['_model']['createPositionAt'](_0x641dfc['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1798bd,this['_model']['createRange'](_0x4fbf64['start'],_0x2afa9b));}else{const _0x153b50=this['_model']['createPositionAt'](_0x641dfc['end']['parent'],'after');this['_setSuggestionRange'](_0x1798bd,this['_model']['createRange'](_0x153b50,_0x4fbf64['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1d6f9a){for(const {suggestion:_0x369f5d,meta:_0x473b4e}of this['_findSuggestions'](_0x1d6f9a,'insertion')){if(!_0x473b4e['isOwn'])continue;const _0x585d82=_0x369f5d['getRanges']();for(const _0x24da16 of _0x585d82)if(!_0x1d6f9a['getDifference'](_0x24da16)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2b35e7){return this['editor']['plugins']['get']('Users')['getUser'](_0x2b35e7);}['_getExternalAuthor'](_0xc92e14){const _0x5db5f4=this['editor']['plugins']['get']('Users'),_0x441272=_0x3d5284('external:'+_0xc92e14),_0x24b1c5=_0x5db5f4['getUser'](_0x441272);return _0x24b1c5||_0x5db5f4['addUser']({'id':_0x441272,'name':_0xc92e14});}['_createSuggestion'](_0xd8fa8d,_0x11704d,_0x19d16c,_0x5763f9,_0x34e165,_0x44d412){const _0x6e2993=this['_getAuthorFromId'](_0x5763f9);if(!_0x6e2993)throw new _0xd89ffd('track-changes-user-not-found',this,{'authorId':_0x5763f9,'suggestionId':_0x19d16c});const _0x35b0f2=this['_suggestionFactory']['buildSuggestion'](_0xd8fa8d,_0x11704d,_0x19d16c,_0x6e2993,_0x34e165,_0x427700=>{this['_updateSuggestionData'](_0x19d16c,{'attributes':_0x427700});const _0x39e825=this['getSuggestion'](_0x19d16c);this['_joinWithAdjacentSuggestions'](new Set([_0x39e825])),this['_refreshSuggestionsChain'](new Set([_0x39e825]));},_0x44d412);return this['listenTo'](_0x35b0f2,'accept',()=>{this['_updateSuggestionData'](_0x19d16c,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x35b0f2,'discard',()=>{this['_updateSuggestionData'](_0x19d16c,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x19d16c,_0x35b0f2),this['_suggestionState']['set'](_0x35b0f2,'notReady'),_0x35b0f2;}['_splitMarkerName'](_0x22a279){const _0x469f59=_0x22a279['split'](':');return{'group':_0x469f59[0x0],'type':_0x469f59[0x1],'subType':_0x469f59['length']>=0x5?_0x469f59[0x2]:null,'id':_0x469f59['length']<0x5?_0x469f59[0x2]:_0x469f59[0x3],'authorId':_0x469f59['length']<0x5?_0x469f59[0x3]:_0x469f59[0x4],'markerCount':0x6==_0x469f59['length']?_0x469f59[0x5]:null};}['_breakSuggestionMarker'](_0x3bc7f8,_0x1343ec,_0x174fd2){const _0x40f5b1=_0x3bc7f8['getFirstRange'](),_0x743a6b=_0x40f5b1['start'],_0x20198c=_0x40f5b1['end'];this['_setSuggestionRange'](_0x3bc7f8,this['_model']['createRange'](_0x743a6b,_0x1343ec));const _0x296e03=_0x5b7b63(),_0x3b2395=_0x3bc7f8['creator']['id'],_0x18285a=_0x3bc7f8['type']+(_0x3bc7f8['subType']?':'+_0x3bc7f8['subType']:'');this['_setSuggestionData']({'id':_0x296e03,'type':_0x18285a,'createdAt':new Date(),'authorId':_0x3b2395,'originalSuggestionId':_0x3bc7f8['_originalSuggestionId']||_0x3bc7f8['id'],'attributes':_0x3bc7f8['attributes'],'data':_0x3bc7f8['data']});const _0x5d122c=this['_getAttributeKey'](_0x3bc7f8);('formatBlock'==_0x3bc7f8['type']||_0x5d122c&&this['_isBlockAttribute'](_0x5d122c))&&(_0x174fd2=this['_model']['createPositionBefore'](_0x174fd2['parent'])),this['_addSuggestionMarker'](_0x18285a,_0x296e03,_0x3b2395,this['_model']['createRange'](_0x174fd2,_0x20198c));}['_findSuggestions'](_0x1597f3,_0x2fcd3f=null){const _0x51431b=[],_0x22a529=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1597f3)||(_0x1597f3=[_0x1597f3]);for(const _0x347eb6 of this['getSuggestions']()){if(!_0x347eb6['isInContent'])continue;if(_0x2fcd3f&&_0x347eb6['type']!=_0x2fcd3f)continue;let _0xa4b4b4=!0x1;for(const _0x85ea79 of _0x347eb6['getRanges']()){for(const _0x528d9b of _0x1597f3){const _0x351aae=_0x528d9b['start']['isEqual'](_0x85ea79['end'])||_0x528d9b['end']['isEqual'](_0x85ea79['start']);if(_0x351aae||_0x528d9b['getIntersection'](_0x85ea79)){const _0x3f626c=_0x528d9b['containsRange'](_0x85ea79)&&Jt(this['_model']['schema'],_0x85ea79['start'],_0x528d9b),_0x122e98=_0x85ea79['containsRange'](_0x528d9b)&&Jt(this['_model']['schema'],_0x528d9b['start'],_0x85ea79);_0x51431b['push']({'suggestion':_0x347eb6,'meta':{'isOwn':_0x22a529==_0x347eb6['author'],'isNextTo':_0x351aae,'isInsideObject':_0x3f626c,'containsRangeInObject':_0x122e98}}),_0xa4b4b4=!0x0;break;}}if(_0xa4b4b4)break;}}return _0x51431b;}['_addSuggestionMarker'](_0x4254b2,_0x41680e,_0x11ba0e,_0x45533b,_0xed8df5){this['_model']['change'](_0x70b272=>{let _0x4abec4='suggestion:'+_0x4254b2+':'+_0x41680e+':'+_0x11ba0e;_0xed8df5&&(_0x4abec4=_0x4abec4+':'+_0xed8df5),_0x70b272['addMarker'](_0x4abec4,{'range':_0x45533b,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x437cb0){const _0x77a24b=_0x437cb0['previous'],_0x33e10d=_0x437cb0['next'];_0x437cb0['previous']=null,_0x437cb0['next']=null,null!=_0x77a24b&&_0x77a24b['next']==_0x437cb0&&(_0x77a24b['next']=_0x33e10d),null!=_0x33e10d&&_0x33e10d['previous']==_0x437cb0&&(_0x33e10d['previous']=_0x77a24b),'ready'==this['_suggestionState']['get'](_0x437cb0)&&(this['_suggestionState']['set'](_0x437cb0,'removed'),this['fire']('suggestionUnloaded',_0x437cb0,_0x77a24b,_0x33e10d));}['_setSuggestionData'](_0x4f2aaa){const _0x56d580=_0x4f2aaa['id'],_0x4bb169=this['addSuggestionData'](_0x4f2aaa);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xcc7cd7=this['editor']['plugins']['get']('PendingActions'),_0x5a32a8=_0x4bb169['hasComments'],_0x34ef09=_0x4bb169['subType']?_0x4bb169['type']+':'+_0x4bb169['subType']:_0x4bb169['type'],_0x459ddb=this['editor']['locale'],_0x1f7a5d=_0xcc7cd7['add'](o(_0x459ddb,'PENDING_ACTION_SUGGESTION')),_0x51784b={'id':_0x56d580,'type':_0x34ef09,'hasComments':_0x5a32a8,'data':_0x4f2aaa['data']||null,'originalSuggestionId':_0x4f2aaa['originalSuggestionId']||null,'attributes':_0x4bb169['attributes']};this['_adapter']['addSuggestion'](_0x51784b)['then'](_0x38f2c8=>{_0x4bb169['_saved']=!0x0,_0xcc7cd7['remove'](_0x1f7a5d),_0x38f2c8&&_0x38f2c8['createdAt']&&(this['_suggestions']['get'](_0x56d580)['createdAt']=_0x38f2c8['createdAt']);})['catch'](_0x290c13=>{throw _0x3cddc9('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4bb169['discard']();}),_0x4bb169['stopListening'](),this['_suggestions']['delete'](_0x4bb169['id']),this['_suggestionState']['delete'](_0x4bb169),_0x290c13;});}return _0x4bb169;}['_isBlockAttribute'](_0x4663eb){return this['_blockAttributeKeys']['has'](_0x4663eb);}['_isInlineAttribute'](_0x66e4cf){return this['_inlineAttributeKeys']['has'](_0x66e4cf);}['_updateSuggestionData'](_0x1fc2fd,_0x1bd28c){const _0x399846=this['editor']['plugins']['get']('PendingActions'),_0xa44093=this['getSuggestion'](_0x1fc2fd);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xa44093['_saved']){const _0x2baaf1=_0x399846['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1fc2fd,_0x1bd28c)['then'](()=>{_0x399846['remove'](_0x2baaf1);});}else _0xa44093['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1fc2fd,_0x1bd28c);});}}['_getSuggestionData'](_0x2bf50a){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xd89ffd('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2bf50a);}['_handleNewSuggestionMarker'](_0x58ffb6){const {id:_0x41488d,type:_0x49763f,subType:_0x5b3921,authorId:_0x2ffa9d}=this['_splitMarkerName'](_0x58ffb6),_0x3b6192=this['_suggestions']['get'](_0x41488d)||this['_createSuggestion'](_0x49763f,_0x5b3921,_0x41488d,_0x2ffa9d,{});switch(this['_checkSuggestionCorrectness'](_0x3b6192,_0x49763f,_0x5b3921,_0x2ffa9d),this['_suggestionState']['get'](_0x3b6192)){case'notReady':this['_getSuggestionData'](_0x41488d)['then'](_0x38e421=>{let _0x348d8a=Promise['resolve']();_0x38e421['hasComments']&&(_0x348d8a=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x41488d})),_0x348d8a['then'](()=>{this['addSuggestionData'](_0x38e421)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3b6192,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x41488d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3b6192,'ready'),this['fire']('suggestionLoaded',_0x3b6192);break;case'ready':this['fire']('suggestionChanged',_0x3b6192);}return _0x3b6192['addMarkerName'](_0x58ffb6),_0x3b6192;}['_refreshSuggestionsChain'](_0x240397){const _0x189a37=Array['from'](_0x240397),_0x16df15=_0x189a37['filter'](_0x3f3e69=>'attribute'==_0x3f3e69['type']);this['_refreshAttributeSuggestionsChain'](_0x16df15);const _0x26a21a=_0x189a37['filter'](_0xd0ba0d=>!_0xd0ba0d['isMultiRange']&&'attribute'!=_0xd0ba0d['type']),_0x1bd98a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5cccd9=>!_0x5cccd9['isMultiRange']&&'attribute'!=_0x5cccd9['type']),_0x3f7466=_0x1bd98a['filter'](_0x53aa49=>!_0x240397['has'](_0x53aa49)),_0x348e61=new Map(_0x1bd98a['map'](_0x5bd550=>[_0x5bd550,this['_suggestionFactory']['getSuggestionCallback'](_0x5bd550['type'],_0x5bd550['subType'],'chain')])),_0x58b25b=new Map(_0x1bd98a['map'](_0xc4f7d3=>[_0xc4f7d3,_0xc4f7d3['getFirstRange']()])),_0x419c62=new Set(),_0xca139c=new Set();for(let _0x3e0fb8=0x0;_0x3e0fb8<_0x26a21a['length'];_0x3e0fb8++)_0x13bb14(_0x26a21a[_0x3e0fb8],_0x26a21a,_0x3e0fb8+0x1);for(let _0xcce0f3=0x0;_0xcce0f3<_0x26a21a['length'];_0xcce0f3++)_0x13bb14(_0x26a21a[_0xcce0f3],_0x3f7466,0x0);const _0x360bd3=new Set();for(let _0x1d1aae=0x0;_0x1d1aae<_0x26a21a['length'];_0x1d1aae++){const _0x2c022b=_0x26a21a[_0x1d1aae];!_0xca139c['has'](_0x2c022b)&&_0x2c022b['previous']&&(_0x360bd3['add'](_0x2c022b['previous']),_0x2c022b['previous']['next']===_0x2c022b&&(_0x2c022b['previous']['next']=null),_0x2c022b['previous']=null),!_0x419c62['has'](_0x2c022b)&&_0x2c022b['next']&&(_0x360bd3['add'](_0x2c022b['next']),_0x2c022b['next']['previous']===_0x2c022b&&(_0x2c022b['next']['previous']=null),_0x2c022b['next']=null);}function _0x13bb14(_0x173dd5,_0xb24db1,_0x40fa48){for(let _0x3797b8=_0x40fa48;_0x3797b8<_0xb24db1['length'];_0x3797b8++){const _0x4efcf9=_0xc119aa(_0x173dd5,_0xb24db1[_0x3797b8]);_0x4efcf9&&(_0x4efcf9[0x0]['next']=_0x4efcf9[0x1],_0x4efcf9[0x1]['previous']=_0x4efcf9[0x0],_0x419c62['add'](_0x4efcf9[0x0]),_0xca139c['add'](_0x4efcf9[0x1]));}}function _0xc119aa(_0xc499e1,_0x21d6a4){if(_0xc499e1['author']['id']!==_0x21d6a4['author']['id'])return null;const _0xe19c91=_0x348e61['get'](_0xc499e1)(_0xc499e1,_0x21d6a4,_0x58b25b['get'](_0xc499e1),_0x58b25b['get'](_0x21d6a4));if(!_0xe19c91)return null;return _0x348e61['get'](_0x21d6a4)(_0xc499e1,_0x21d6a4,_0x58b25b['get'](_0xc499e1),_0x58b25b['get'](_0x21d6a4))?_0xe19c91[0x1]['commentThread']&&_0xe19c91[0x1]['commentThread']['length']?null:_0xe19c91:null;}_0x360bd3['size']&&this['_refreshSuggestionsChain'](_0x360bd3);}['_refreshAttributeSuggestionsChain'](_0x5ee9df){if(0x0==_0x5ee9df['length'])return;const _0xcd5682=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x27286c=>'attribute'==_0x27286c['type']&&_0x27286c['_isDataLoaded']),_0x560329=[],_0x10ff80=new Map();for(const _0x869f78 of _0xcd5682){const _0x105fd2=_0x3d5284(_0x869f78['attributes']);_0x10ff80['has'](_0x105fd2)||(_0x10ff80['set'](_0x105fd2,_0x560329['length']),_0x560329['push']([]));const _0x49120c=_0x10ff80['get'](_0x105fd2);_0x560329[_0x49120c]['push'](_0x869f78);}!(function(){_0x560329['sort']((_0xd45d8d,_0x3ac442)=>{const _0x47a7a3=_0xd45d8d[0x0]['createdAt'],_0x28d3a0=_0x3ac442[0x0]['createdAt'];return _0x47a7a3==_0x28d3a0?_0xd45d8d[0x0]['attributes']['groupId']<_0x3ac442[0x0]['attributes']['groupId']?-0x1:0x1:_0x47a7a3<_0x28d3a0?-0x1:0x1;});for(const _0x25ad0d of _0x560329)_0x25ad0d['sort']((_0x5e64ae,_0x4ab2dd)=>_0x5e64ae['id']<_0x4ab2dd['id']?-0x1:0x1);}());for(let _0x4cb51d=0x0;_0x4cb51d<_0x560329['length'];_0x4cb51d++){if(0x0==_0x560329[_0x4cb51d]['length'])continue;const _0x31a71b=[];for(let _0x40aa96=_0x4cb51d+0x1;_0x40aa96<_0x560329['length'];_0x40aa96++)0x0!=_0x560329[_0x40aa96]['length']&&_0x30be84(_0x560329[_0x4cb51d],_0x560329[_0x40aa96])&&_0x31a71b['push'](_0x40aa96);for(const _0x16c237 of _0x31a71b)_0x560329[_0x4cb51d]=_0x560329[_0x4cb51d]['concat'](_0x560329[_0x16c237]),_0x560329[_0x16c237]=[];}for(const _0x16703b of _0x560329)for(let _0x12aa79=0x0;_0x12aa79<_0x16703b['length'];_0x12aa79++){const _0x191a86=_0x16703b[_0x12aa79+0x1]||null;_0x16703b[_0x12aa79]['next']!==_0x191a86&&(_0x16703b[_0x12aa79]['next']=_0x191a86);}for(const _0x148738 of _0x560329)for(let _0x2ba75f=0x0;_0x2ba75f<_0x148738['length'];_0x2ba75f++){const _0x4f0f83=_0x148738[_0x2ba75f-0x1]||null;_0x148738[_0x2ba75f]['previous']!==_0x4f0f83&&(_0x148738[_0x2ba75f]['previous']=_0x4f0f83);}function _0x30be84(_0x2c8839,_0x4aa4b6){if(_0x2c8839[0x0]['attributes']['groupId']!==_0x4aa4b6[0x0]['attributes']['groupId']&&_0x2c8839[0x0]['author']!==_0x4aa4b6[0x0]['author'])return!0x1;if(!function(_0x4940a6,_0xae9410){if(!_0x4940a6['hasComments']&&!_0xae9410['hasComments'])return!0x0;if(_0x4940a6['hasComments']&&_0xae9410['hasComments'])return!0x1;if(_0x4940a6['hasComments']&&_0xae9410['createdAt']<_0x4940a6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xae9410['hasComments']&&_0x4940a6['createdAt']<_0xae9410['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2c8839[0x0],_0x4aa4b6[0x0]))return!0x1;const _0x4ac6f4=Gt(_0x2c8839[0x0]['attributes'],['groupId','trackingSessionId']),_0x1cd13e=Gt(_0x4aa4b6[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x28590f(_0x4ac6f4,_0x1cd13e))return!0x1;if(_0x2c8839[0x0]['attributes']['groupId']==_0x4aa4b6[0x0]['attributes']['groupId'])return!0x0;if(_0x2c8839[0x0]['attributes']['trackingSessionId']!==_0x4aa4b6[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x2c8839['every'](_0x4e0de4=>_0x4aa4b6['some'](_0x49142d=>_0x4e0de4['getFirstRange']()['isEqual'](_0x49142d['getFirstRange']())))&&_0x4aa4b6['every'](_0x2eac07=>_0x2c8839['some'](_0x408c39=>_0x2eac07['getFirstRange']()['isEqual'](_0x408c39['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x521bf8){const _0x26c2f3=Array['from'](_0x521bf8),_0x1a11c7=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2333be=_0x1a11c7['filter'](_0x2004f1=>!_0x521bf8['has'](_0x2004f1)),_0x3ff455=new Map(_0x26c2f3['map'](_0xc8566b=>[_0xc8566b,this['_suggestionFactory']['getSuggestionCallback'](_0xc8566b['type'],_0xc8566b['subType'],'join')])),_0x4072b1=new Map(_0x1a11c7['map'](_0x202ebb=>[_0x202ebb,_0x202ebb['getRanges']()]));for(let _0x55deeb=0x0;_0x55deeb<_0x26c2f3['length'];_0x55deeb++){if(_0x41204e(this,_0x26c2f3[_0x55deeb],_0x26c2f3,_0x55deeb+0x1))return!0x0;}for(let _0x5ebbfe=0x0;_0x5ebbfe<_0x26c2f3['length'];_0x5ebbfe++){if(_0x41204e(this,_0x26c2f3[_0x5ebbfe],_0x2333be,0x0))return!0x0;}return!0x1;function _0x41204e(_0x3576c5,_0x522fd3,_0x26d597,_0x581001){for(let _0x2c8735=_0x581001;_0x2c8735<_0x26d597['length'];_0x2c8735++){const _0x470a8f=_0x26d597[_0x2c8735];if(_0x470a8f['type']!==_0x522fd3['type']||_0x470a8f['author']['id']!==_0x522fd3['author']['id']||_0x470a8f['subType']!==_0x522fd3['subType'])continue;if(!ee(_0x522fd3,_0x470a8f))continue;if('attribute'==_0x522fd3['type']&&_0x522fd3['data']['oldValue']!=_0x470a8f['data']['oldValue'])continue;if('attribute'==_0x522fd3['type']&&_0x3576c5['_isBlockAttribute'](_0x522fd3['data']['key']))continue;if('formatBlock'==_0x522fd3['type']){const _0x28c056=_0x3576c5['editor']['model'],_0x126c8a=_0x522fd3['getContainedElement']();if(_0x126c8a&&(_0x28c056['schema']['isObject'](_0x126c8a)||_0x28c056['schema']['isLimit'](_0x126c8a)))continue;}const _0x1d1dcf=_0x3ff455['get'](_0x522fd3),_0x5e8c4b=_0x4072b1['get'](_0x522fd3),_0x1f57eb=_0x4072b1['get'](_0x470a8f),_0x34220b=_0x522fd3['commentThread']&&_0x522fd3['commentThread']['length'],_0x3652f2=_0x470a8f['commentThread']&&_0x470a8f['commentThread']['length'];if(!_0x34220b&&_0x1d1dcf(_0x1f57eb,_0x5e8c4b))return _0x3576c5['_joinSuggestions'](_0x470a8f,_0x522fd3),_0x4072b1['delete'](_0x522fd3),!0x0;if(!_0x3652f2&&_0x1d1dcf(_0x5e8c4b,_0x1f57eb))return _0x3576c5['_joinSuggestions'](_0x522fd3,_0x470a8f),_0x4072b1['delete'](_0x470a8f),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4ed1ff,_0x49b722){if(_0x4ed1ff['isMultiRange']){for(const _0x5ca182 of _0x49b722['getRanges']())_0x4ed1ff['addRange'](_0x5ca182);}else{const _0x48a3e4=_0x49b722['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4ed1ff,this['_model']['createRange'](_0x4ed1ff['getFirstRange']()['start'],_0x48a3e4));}_0x49b722['removeMarkers']();}['_getMarkerAnnouncementText'](_0x41e5aa,_0x337a84,_0x410deb){const _0x5ad04e=_0x41e5aa['startsWith']('format')||_0x41e5aa['startsWith']('attribute')?'FORMATTING':_0x41e5aa['toUpperCase']();return o(this['editor']['locale'],_0x337a84+'_'+_0x5ad04e+'_SUGGESTION_ANNOUNCEMENT',_0x410deb);}['_initAriaMarkerChangeAnnouncements'](){const _0x4e72a7=this['editor'];if(!_0x4e72a7['ui'])return;const {ariaLiveAnnouncer:_0x45d03b}=_0x4e72a7['ui'];_0x200985(this['_model'],({left:_0x10f487,entered:_0x56e1c6})=>{for(const _0x3ed777 of _0x10f487){const {group:_0x74213,type:_0x39a3a5}=this['_splitMarkerName'](_0x3ed777['name']);if('suggestion'===_0x74213){_0x45d03b['announce'](this['_getMarkerAnnouncementText'](_0x39a3a5,'LEAVE'));break;}}for(const _0x3b8b62 of _0x56e1c6){const {group:_0x495787,type:_0x1414c4}=this['_splitMarkerName'](_0x3b8b62['name']);if('suggestion'===_0x495787){_0x45d03b['announce'](this['_getMarkerAnnouncementText'](_0x1414c4,'ENTER',_0x3456f1(_0x332c58)));break;}}});}['_processAttributeChanges'](_0x1ae065){if(this['_recordAttributeSuggestions'])return!0x1;const _0x289f4e=this['editor'],_0x2c8766=_0x289f4e['model']['document']['differ']['getChanges']();if(0x0==_0x2c8766['length'])return!0x1;const _0x3a6d2d=[],_0x4e0c86=_0x2c8766['filter'](_0x2d4eaf=>'attribute'==_0x2d4eaf['type']),_0x2c90c0=_0x2c8766['filter'](_0x1d3158=>'insert'==_0x1d3158['type']&&'$text'!=_0x1d3158['name']),_0x1cb872=_0x2c8766['filter'](_0x49678c=>'remove'==_0x49678c['type']&&'$text'!=_0x49678c['name']);for(const _0x46dbf3 of _0x4e0c86)_0x3a6d2d['push']({'key':_0x46dbf3['attributeKey'],'newValue':_0x46dbf3['attributeNewValue'],'oldValue':_0x46dbf3['attributeOldValue'],'range':Yt(_0x46dbf3['range'],_0x289f4e['model'])});for(const _0x1426be of _0x2c90c0){const _0x4a8d00=_0x1cb872['find'](_0x574521=>_0x574521['position']['isEqual'](_0x1426be['position']));_0x4a8d00&&_0x3a6d2d['push']({'key':m,'newValue':_0x1426be['name'],'oldValue':_0x4a8d00['name'],'range':_0x289f4e['model']['createRangeOn'](_0x1426be['position']['nodeAfter'])});}return 0x0!=_0x3a6d2d['length']&&this['_reduceExistingSuggestions'](_0x1ae065,_0x3a6d2d);}['_processAttributeSuggestions'](_0x452a9d){let _0x11eafb=!0x1;const _0x2b744f=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2be0a7=>_0x2be0a7['data']['newRange']&&_0x2be0a7['name']['startsWith']('suggestion:attribute:'));for(const _0x37aea6 of _0x2b744f){const {subType:_0x1aab60,id:_0x183595}=this['_splitMarkerName'](_0x37aea6['name']),_0x5cd914=_0x1aab60['split']('|')[0x0];for(const _0x13e295 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x13e295['id']!=_0x183595&&'attribute'==_0x13e295['type']&&_0x13e295['data']&&_0x13e295['data']['key']==_0x5cd914&&_0x13e295['getFirstRange']()['isIntersecting'](_0x37aea6['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x13e295,_0x37aea6['data']['newRange'],_0x452a9d),_0x11eafb=!0x0);}return _0x11eafb;}['recordAttributeChanges'](_0xb8d3e9){this['_recordAttributeSuggestions']=!0x0,_0xb8d3e9();}['_isRegisteredAttribute'](_0x5e15ea){const _0x6b6ec0=this['_isBlockAttribute'](_0x5e15ea),_0x655a0b=this['_isInlineAttribute'](_0x5e15ea);return _0x6b6ec0||_0x655a0b;}['_reduceExistingSuggestions'](_0x14fa7c,_0x878716){if(0x0==_0x878716['length'])return!0x1;let _0x13cf71=!0x1;for(const _0x5617b0 of _0x878716){const _0x31f028=this['_findSuggestions'](_0x5617b0['range'],'attribute')['filter'](_0x230bf3=>!_0x230bf3['meta']['isNextTo'])['map'](_0x47ce31=>_0x47ce31['suggestion']),_0x5365ab=_0x3d5284({'newValue':_0x5617b0['newValue']});_0x31f028['filter'](_0x3bab92=>{const [_0x31620c,_0x5dba17]=_0x3bab92['subType']['split']('|');return _0x31620c==_0x5617b0['key']&&_0x5dba17!=_0x5365ab;})['forEach'](_0x29dbd2=>{this['_reduceSuggestionAttributeRange'](_0x29dbd2,_0x5617b0['range'],_0x14fa7c),_0x13cf71=!0x0;});}return _0x13cf71;}['_reduceSuggestionAttributeRange'](_0x2ae828,_0x43206a,_0x4e2ddd){const _0x433d29=_0x2ae828['getFirstRange']()['getDifference'](_0x43206a);0x0!==_0x433d29['length']?0x1!==_0x433d29['length']?this['_breakSuggestionMarker'](_0x2ae828,_0x43206a['start'],_0x43206a['end']):this['_setSuggestionRange'](_0x2ae828,_0x433d29[0x0]):_0x4e2ddd['removeMarker'](_0x2ae828['getFirstMarker']());}}class Lt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x43786d){this['_editor']=_0x43786d,this['_model']=_0x43786d['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3db9f4,_0x206a2a,_0x1bb790,_0x27b11e,_0x53e5d3,_0x49d7bb,_0x1dc141){return new R(this['_model'],{'type':_0x3db9f4,'subType':_0x206a2a,'id':_0x1bb790,'originalSuggestionId':_0x1dc141,'author':_0x27b11e,'creator':_0x27b11e,'attributes':_0x53e5d3,'onAttributesChange':_0x49d7bb,'onAccept':(..._0x21c34d)=>this['getSuggestionCallback'](_0x3db9f4,_0x206a2a,'accept')(..._0x21c34d),'onDiscard':(..._0xf8c3de)=>this['getSuggestionCallback'](_0x3db9f4,_0x206a2a,'discard')(..._0xf8c3de)});}['registerCustomCallback'](_0x436c5f,_0x2d4ce3,_0x207c73,_0x187d1f){const _0x3fdf56=_0x436c5f+':'+_0x2d4ce3+':'+_0x207c73;this['_customCallbacks']['set'](_0x3fdf56,_0x187d1f);}['getSuggestionCallback'](_0x60354,_0x46217a,_0x11af3e){const _0x284966=_0x60354+':'+_0x46217a+':'+_0x11af3e;return this['_customCallbacks']['get'](_0x284966)||this['_defaultCallbacks']['get'](_0x60354+':'+_0x11af3e);}['_registerDefaultCallbacks'](){const _0x2b4cc8=()=>!0x1,_0x479da3=_0x4a60ea=>{_0x4a60ea['sort']((_0x37417e,_0x49e808)=>_0x37417e['start']['isBefore'](_0x49e808['start'])?0x1:-0x1),this['_model']['change'](_0x58b2c9=>{for(const _0x51fe39 of _0x4a60ea){let _0x7ae327;_0x7ae327=_0x51fe39['end']['isAtEnd']&&_0x51fe39['end']['parent']==_0x51fe39['start']['nodeAfter']?_0x58b2c9['createSelection'](_0x51fe39['start']['nodeAfter'],'on'):_0x58b2c9['createSelection'](_0x51fe39),this['_model']['deleteContent'](_0x7ae327,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x55512a=(_0x11914f,_0xab6b00)=>{_0xab6b00&&this['_model']['change'](_0x3dcff4=>{const {commandName:_0x575a60,commandParams:_0x7ba6de=[]}=_0xab6b00,_0x2c710a=_0x11914f['map'](_0x4b3349=>(Kt(_0x4b3349)&&(_0x4b3349=this['_model']['createRange'](_0x4b3349['end'])),_0x4b3349))['filter'](_0x2eecab=>'$graveyard'!==_0x2eecab['root']['rootName']);if(_0x2c710a['length']<0x1)return;const _0x390c27=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x45c407=>_0x39adac['fromRange'](_0x45c407));_0x3dcff4['setSelection'](_0x2c710a);for(const _0x58753a of this['_editor']['commands']['commands']())_0x58753a['refresh']();_0x7ba6de['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x575a60,..._0x7ba6de);const _0x5782c0=_0x390c27['filter'](_0x263a31=>'$graveyard'!=_0x263a31['root']['rootName']);_0x5782c0['length']>0x0&&_0x3dcff4['setSelection'](_0x5782c0);for(const _0x5da524 of _0x390c27)_0x5da524['detach']();});},_0x261f6f=(_0x5c641b,_0x4e54fa)=>0x1==_0x5c641b['length']&&0x1==_0x4e54fa['length']&&_0x5c641b[0x0]['end']['isEqual'](_0x4e54fa[0x0]['start']),_0x397b52=(_0x16930c,_0x56b86b,_0x59519c,_0x293803)=>te(_0x16930c,_0x56b86b,_0x59519c,_0x293803)?[_0x16930c,_0x56b86b]:te(_0x56b86b,_0x16930c,_0x293803,_0x59519c)?[_0x56b86b,_0x16930c]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2b4cc8),this['_defaultCallbacks']['set']('insertion:discard',_0x479da3),this['_defaultCallbacks']['set']('insertion:join',_0x261f6f),this['_defaultCallbacks']['set']('insertion:chain',_0x397b52),this['_defaultCallbacks']['set']('deletion:accept',_0x479da3),this['_defaultCallbacks']['set']('deletion:discard',_0x2b4cc8),this['_defaultCallbacks']['set']('deletion:join',_0x261f6f),this['_defaultCallbacks']['set']('deletion:chain',_0x397b52),this['_defaultCallbacks']['set']('formatInline:accept',_0x55512a),this['_defaultCallbacks']['set']('formatInline:discard',_0x2b4cc8),this['_defaultCallbacks']['set']('formatInline:join',_0x261f6f),this['_defaultCallbacks']['set']('formatInline:chain',_0x2b4cc8),this['_defaultCallbacks']['set']('formatBlock:accept',_0x55512a),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2b4cc8),this['_defaultCallbacks']['set']('formatBlock:join',_0x261f6f),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2b4cc8),this['_defaultCallbacks']['set']('attribute:accept',_0x2b4cc8),this['_defaultCallbacks']['set']('attribute:discard',(_0x16a369,_0x1bbe06)=>{if(!_0x1bbe06)return;const _0x4ef29f=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x53dc71=>{if(_0x1bbe06['key']==m)for(const _0x230ef9 of _0x16a369){const _0x32efe9=_0x230ef9['start']['nodeAfter'],_0x19211b=_0x1bbe06['oldValue'];_0x53dc71['rename'](_0x32efe9,_0x19211b);}else{if(_0x4ef29f['_isBlockAttribute'](_0x1bbe06['key'])){for(const _0x26e3cd of _0x16a369)void 0x0!==_0x1bbe06['oldValue']?_0x53dc71['setAttribute'](_0x1bbe06['key'],_0x1bbe06['oldValue'],_0x26e3cd['start']['nodeAfter']):_0x53dc71['removeAttribute'](_0x1bbe06['key'],_0x26e3cd['start']['nodeAfter']);}else{for(const _0x14381d of _0x16a369)_0x1bbe06['oldValue']?_0x53dc71['setAttribute'](_0x1bbe06['key'],_0x1bbe06['oldValue'],_0x14381d):_0x53dc71['removeAttribute'](_0x1bbe06['key'],_0x14381d);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x261f6f);}}function Jt(_0x18977d,_0x1a7010,_0x17cc7c){for(const _0x150d4e of _0x1a7010['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x150d4e['root']==_0x150d4e)return!0x1;if(!_0x17cc7c['containsItem'](_0x150d4e))return!0x1;if(_0x18977d['isObject'](_0x150d4e)||_0x18977d['isLimit'](_0x150d4e))return!0x0;}return!0x1;}function Kt(_0x3c277c){return _0x3c277c['end']['parent']==_0x3c277c['start']['nodeAfter']&&_0x3c277c['end']['isAtStart'];}function Ht(_0x29f4b9,_0xbc2efd,_0x51aec3,_0x5ef9b4){const _0x11b115=_0x6cb112=>!_0x6cb112['item']['is']('$textProxy')&&!_0x5ef9b4['isObject'](_0x6cb112['item']),_0xd35e60=_0x29f4b9['start']['getLastMatchingPosition'](_0x11b115),_0x443ee3=_0x29f4b9['end']['getLastMatchingPosition'](_0x11b115,{'direction':'backward'});return(!_0x29f4b9['start']['isEqual'](_0xd35e60)||!_0x29f4b9['end']['isEqual'](_0x443ee3))&&(_0xd35e60['isBefore'](_0x443ee3)?_0x51aec3['updateMarker'](_0xbc2efd,{'range':_0x51aec3['createRange'](_0xd35e60,_0x443ee3)}):_0x51aec3['removeMarker'](_0xbc2efd),!0x0);}function Wt(_0x48178f){return _0x3d5284(_0x48178f);}function qt(_0xea9b94){const _0x40ad94=_0xea9b94['start']['nodeAfter'];return _0x40ad94&&_0x40ad94['is']('element');}function zt(_0x493a8b){return Kt(_0x493a8b)||function(_0x633fc1){return _0x633fc1['start']['parent']==_0x633fc1['end']['nodeBefore']&&_0x633fc1['start']['isAtEnd'];}(_0x493a8b);}function Qt(_0x404e96,_0xc28cdb){try{const _0x1a2f31=_0x404e96['getRange']();for(const _0x21b5d1 of _0xc28cdb)if(_0x404e96!==_0x21b5d1&&_0x1a2f31&&_0x1a2f31['isIntersecting'](_0x21b5d1['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Xt(_0x5fe9c,_0x299dd0){const _0x58575f=_0x5fe9c['end']['nodeBefore'];if(_0x58575f&&_0x58575f['is']('element')&&_0x299dd0['schema']['isBlock'](_0x58575f)&&!_0x299dd0['schema']['isObject'](_0x58575f)){const _0x22c820=_0x299dd0['createPositionAt'](_0x58575f,'end');return _0x299dd0['createRange'](_0x5fe9c['start'],_0x22c820);}return _0x5fe9c;}function Yt(_0x4f6d1f,_0x401f80){return null==_0x4f6d1f['end']['nodeBefore']&&_0x4f6d1f['end']['parent']==_0x4f6d1f['start']['nodeAfter']?Zt(_0x4f6d1f['start']['nodeAfter'],_0x401f80):_0x4f6d1f;}function Zt(_0x43b4ba,_0x3c1df2){const _0x25c0f1=_0x3c1df2['schema']['isObject'](_0x43b4ba)||_0x3c1df2['schema']['isSelectable'](_0x43b4ba);return _0x3c1df2['createRange'](_0x3c1df2['createPositionAt'](_0x43b4ba,'before'),_0x25c0f1?_0x3c1df2['createPositionAfter'](_0x43b4ba):_0x3c1df2['createPositionAt'](_0x43b4ba,'end'));}function te(_0x7fc383,_0x181c76,_0x4cad6e,_0x10cfde){return!!ee(_0x7fc383,_0x181c76)&&_0x4cad6e['end']['isEqual'](_0x10cfde['start']);}function ee(_0x3d0cc2,_0x19a1c3){if(!_0x3d0cc2['_isDataLoaded']||!_0x19a1c3['_isDataLoaded'])return!0x1;const _0xae99e6=new Set(Object['keys'](_0x3d0cc2['attributes'])),_0x13b396=new Set(Object['keys'](_0x19a1c3['attributes']));if(_0xae99e6['delete']('groupId'),_0x13b396['delete']('groupId'),0x0==_0xae99e6['size']&&0x0==_0x13b396['size'])return!0x0;if(_0xae99e6['size']!=_0x13b396['size'])return!0x1;const _0x23325b={..._0x3d0cc2['attributes']},_0x385e37={..._0x19a1c3['attributes']};return delete _0x23325b['groupId'],delete _0x385e37['groupId'],JSON['stringify'](_0x23325b)==JSON['stringify'](_0x385e37);}function ie(_0x1403ae,_0x35db35){const _0x277c54=ne(_0x1403ae['attributes']),_0x32ce4f=ne(_0x35db35);if(!_0x1403ae['_isDataLoaded'])return!0x1;for(const _0x480b4a of Object['keys'](_0x32ce4f))if(!_0x28590f(_0x277c54[_0x480b4a],_0x32ce4f[_0x480b4a]))return!0x1;return!0x0;}function ne(_0x3d1e9e){const _0x254cde=Object['assign']({},_0x3d1e9e);return delete _0x254cde['skipNestingCheck'],delete _0x254cde['tablePasteChainId'],_0x254cde;}function se(_0x42e2ee){return _0x42e2ee['split']('|')[0x0];}class be extends/* #__PURE__ -- @preserve */
26
+ _0x138e14(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3a9dd2,_0x2de79a,_0x4a1d07,_0x5ebd55){super(),this['model']=_0x2de79a,this['view']=_0x4a1d07,this['commentThreadController']=_0x5ebd55,this['_editor']=_0x3a9dd2,this['_acceptCommand']=_0x3a9dd2['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3a9dd2['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x28f129,_0x306a6a)=>_0x28f129||_0x306a6a),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x58242a=>_0x58242a&&this['_editor']['model']['canEditAt'](_0x2de79a['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x105955=>_0x105955&&this['_editor']['model']['canEditAt'](_0x2de79a['getRanges']())),this['_pendingAction']=null,_0x4a1d07['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4a1d07,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4a1d07,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4a1d07,'change:isDirty',()=>{_0x4a1d07['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 _0x35117b=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x35117b);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x3eac6a{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2a9c1c,_0x3dadcc,_0x352edf,_0x5c375f){super(_0x2a9c1c),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x4491ed(_0x2a9c1c,o(_0x2a9c1c,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3dadcc['authoredAt']),this['bind']('authoredAt')['to'](_0x3dadcc),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',_0x3dadcc,'authoredAt',this,'descriptionParts',(_0x573607,_0x4364e1,_0x438937)=>{const _0x5509ae=_0x438937['map'](_0x235fa9=>ls(_0x235fa9['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x573607-0x1,_0x3dadcc['author']['name'],_0x4364e1?_0x5c375f['formatDateTime'](_0x4364e1):'',new DOMParser()['parseFromString'](_0x5509ae,'text/html')['body']['textContent']]);}),this['focusables']=new _0x589a45(),this['focusTracker']=new _0x41869d(),this['keystrokes']=new _0x191f71(),this['focusCycler']=new _0x20a876({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2c2d57=>_0x2c2d57['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3dadcc,this['_localUser']=_0x352edf,this['_config']=_0x5c375f,_0x5c375f['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x1df716(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x275322}=this['_config'];this['commentsListView']=new _0x275322(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',_0x150a97=>_0x150a97+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x52bfcf,_0x182161)=>_0x52bfcf||!!_0x182161);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xb8ede3}=this['_config'],_0x52b286=new _0xb8ede3(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x445958=_0x52b286['commentInputView'];return _0x52b286['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x445958,'value',(_0x102d68,_0x19583f,_0x286c66)=>!!_0x286c66||_0x102d68&&!_0x19583f),_0x445958['on']('submit',(_0x55017f,_0xeb870a)=>{this['fire']('addComment',_0xeb870a),_0x445958['editor']['setData']('');}),_0x445958['on']('cancel',()=>this['focus']()),_0x445958['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x52b286;}}class Te extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x1f836e,_0x317e23,_0x368d2b,_0xfc1c94){super(_0x1f836e,_0x317e23,_0x368d2b,_0xfc1c94),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x31158d=>_0x31158d&&_0x31158d[0x0]?_0x31158d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1565fd,_0x345d05)=>{let _0x46ed12='';for(const _0x15b5cf of _0x1565fd)_0x46ed12+='<p>'+ls(_0x15b5cf['content'],_0x15b5cf['color'])+'</p>';return _0x345d05?_0x46ed12:_0x2e8b36(_0x46ed12,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xfc1c94['SuggestionView'](_0x1f836e,_0x317e23,{'formatDateTime':_0xfc1c94['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 _0x178f53=this['bindTemplate'],_0x2181ea=[this['suggestionView']];return this['commentsListView']&&_0x2181ea['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2181ea['push'](this['commentThreadInputView']),_0x2181ea['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x178f53['if']('isActive','ck-suggestion-wrapper--active'),_0x178f53['to']('type',_0x40d586=>'ck-suggestion-'+_0x40d586),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':_0x178f53['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2181ea};}['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 Le extends _0x3eac6a{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x39b454,_0x46eea2,_0x13982b){super(_0x39b454),this['_model']=_0x46eea2,this['_config']=_0x13982b,this['set']('description',''),this['bind']('authoredAt')['to'](_0x46eea2),this['acceptButton']=this['_createButton'](o(_0x39b454,'Accept\x20suggestion'),_0x326a17,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x39b454,'Discard\x20suggestion'),_0x36578a,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x27eb11(_0x39b454,_0x46eea2['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x589a45([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x41869d(),this['keystrokes']=new _0x191f71(),this['focusCycler']=new _0x20a876({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x12f513=>_0x12f513['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2785c7=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2785c7['innerHTML']=this['description'],this['on']('change:description',(_0x57cc07,_0x5bf3ef,_0x2addd3)=>{_0x2785c7['innerHTML']=_0x2addd3;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1e52c9=this['bindTemplate'],_0x4ac9ca=[{'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':_0x1e52c9['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1e52c9['to']('authoredAt',_0x966069=>this['_config']['formatDateTime'](_0x966069))}]}]},{'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']&&_0x4ac9ca['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':_0x4ac9ca}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x2bfe61,_0x48fdef,_0x550a6b,_0x23cafc,_0x2aae2f){const _0x11a569=new _0x166d5a(this['locale']);return _0x11a569['set']({'label':_0x2bfe61,'icon':_0x48fdef,'tooltip':!0x0,'tooltipPosition':_0x2aae2f}),_0x11a569['extendTemplate']({'attributes':{'class':_0x550a6b}}),_0x11a569['on']('execute',()=>{this['fire'](_0x23cafc,this['_model']['id']);}),_0x11a569;}['_setupKeyboardNavigation'](){const _0x1693d8=this['element'];this['keystrokes']['listenTo'](_0x1693d8);for(const _0x186b30 of this['focusables'])this['focusTracker']['add'](_0x186b30['element']),this['keystrokes']['listenTo'](_0x186b30['element']);this['keystrokes']['set']('enter',(_0x5b3069,_0x3a6852)=>{_0x1693d8===_0x5b3069['target']&&(this['focusCycler']['focusFirst'](),_0x3a6852());}),this['keystrokes']['set']('esc',(_0x22d866,_0x405a68)=>{_0x1693d8!==_0x22d866['target']&&(this['focus'](),_0x405a68());});}}class u extends _0x44fd37{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x42acd4,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4120fa){super(_0x4120fa),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x50f94d=this['editor']['config'];_0x50f94d['define']('trackChanges.SuggestionThreadView',Te),_0x50f94d['define']('trackChanges.SuggestionView',Le),_0x50f94d['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x50f94d['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xee6960,_0x23cd96){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x13cb61,_0x5277a6]of this['_handleControllerBuffer']){const _0x3c3737=this['_suggestionToController']['has'](_0x13cb61);_0x3c3737||_0x5277a6?_0x3c3737&&_0x5277a6&&this['_destroyController'](_0x13cb61):this['_initializeController'](_0x13cb61);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xee6960,_0x23cd96);}['init'](){const _0x42ab07=this['editor'],_0x54f42e=_0x42ab07['plugins']['get']('TrackChangesEditing'),_0x5c4601=_0x42ab07['plugins']['get']('Annotations'),_0x2f5e46=_0x42ab07['plugins']['get']('EditorAnnotations'),_0x27e86e=_0x42ab07['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2f5e46['addSourceCollector'](()=>{const _0x5adc25=[];for(const [_0x1eb6fd,_0x561084]of Array['from'](this['_suggestionToController'])){const _0x48e648=_0x1eb6fd['getAllAdjacentSuggestions'](),_0x512ea6=[];for(const _0x46c750 of _0x48e648){if(!_0x46c750['isInContent'])continue;if(_0x46c750['isMultiRange']){_0x512ea6['push'](..._0x46c750['getRanges']());continue;}const _0xfd582c=_0x46c750['getFirstRange']();if(_0x512ea6['length']>0x0){const _0x12b775=_0x512ea6[0x0]['getJoined'](_0xfd582c);if(_0x12b775){_0x512ea6[0x0]=_0x12b775;continue;}}_0x512ea6['push'](_0xfd582c);}_0x5adc25['push']([_0x561084['view'],_0x512ea6]);}return _0x5adc25;}),this['listenTo'](_0x54f42e,'suggestionLoaded',(_0x1bc309,_0x28574c)=>{this['listenTo'](_0x28574c,'change:previous',(_0x43094e,_0x59b1e4,_0x5313a3,_0x5658de)=>{_0x28574c['isInContent']&&(null==_0x5313a3?(this['_updateController'](_0x5658de['head']),this['_handleSuggestionControllerDelayed'](_0x28574c,!0x1)):(this['_updateController'](_0x5313a3['head']),null==_0x5658de&&this['_handleSuggestionControllerDelayed'](_0x28574c,!0x0)));}),null!==_0x28574c['previous']?this['_updateController'](_0x28574c['head']):this['_handleSuggestionControllerDelayed'](_0x28574c,!0x1);}),this['listenTo'](_0x54f42e,'suggestionUnloaded',(_0x543b0d,_0x1f18ee,_0x341188)=>{this['stopListening'](_0x1f18ee,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1f18ee),this['_suggestionToController']['has'](_0x1f18ee)&&this['_destroyController'](_0x1f18ee),_0x341188&&this['_updateController'](_0x341188['head']);}),this['listenTo'](_0x54f42e,'suggestionChanged',(_0x3618c0,_0x51c320)=>{this['_updateController'](_0x51c320);}),this['listenTo'](_0x5c4601,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x27e86e,'addComment',(_0xb705b1,{threadId:_0x38b2bb,isFromAdapter:_0x399fff})=>{if(_0x399fff||!_0x54f42e['hasSuggestion'](_0x38b2bb))return;const _0x1d36c5=_0x54f42e['getSuggestion'](_0x38b2bb);this['_suggestionToController']['get'](_0x1d36c5)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3917f8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5d298d;for(const _0x545c19 in _0x3917f8){const _0x34b487=_0x545c19,_0x44b5e5=_0x3917f8[_0x34b487];if('trackChangesLicenseKeyValid'==_0x44b5e5||'trackChangesLicenseKeyInvalid'==_0x44b5e5||'trackChangesLicenseKeyExpired'==_0x44b5e5||'trackChangesLicenseKeyDomainLimit'==_0x44b5e5||'trackChangesLicenseKeyNotAllowed'==_0x44b5e5||'trackChangesLicenseKeyEvaluationLimit'==_0x44b5e5||'trackChangesLicenseKeyTrialLimit'==_0x44b5e5||'trackChangesLicenseKeyUsageLimit'==_0x44b5e5){delete _0x3917f8[_0x34b487],_0x5d298d=_0x44b5e5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5d298d&&_0x3917f8['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5d298d&&_0x3917f8['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5d298d&&_0x3917f8['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5d298d&&_0x3917f8['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5d298d&&_0x3917f8['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x5d298d&&_0x3917f8['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5d298d&&_0x3917f8['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x465d58){const _0x49e569=this['_suggestionToController']['get'](_0x465d58);if(!_0x49e569)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x49e569['view'])||null;}['getSuggestionForAnnotation'](_0x49d046){const _0x4555e3=this['_viewToController']['get'](_0x49d046['innerView']);return _0x4555e3?_0x4555e3['model']:null;}['_refreshActiveMarkers'](){const _0x1e2ee3=this['editor']['plugins']['get']('Annotations'),_0x1be6d2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f76a8=Array['from'](_0x1e2ee3['activeAnnotations'],_0x4e2341=>_0x4e2341['innerView'])['filter'](_0x391a6b=>this['_viewToController']['has'](_0x391a6b)),_0x20f7e8=[];for(const _0x1f4be7 of _0x2f76a8){const _0x57bda3=this['_viewToController']['get'](_0x1f4be7)['model']['getAllAdjacentSuggestions']();_0x20f7e8['push'](..._0x57bda3['reduce']((_0x102973,_0x15e208)=>[..._0x102973,..._0x15e208['getMarkerNames']()],[]));}_0x1be6d2['activeMarkers']=_0x20f7e8;}['_addUIComponentsToFactory'](){const _0x4cf6cd=this['editor'],_0x455316=_0x4cf6cd['locale'],_0x1931da=o(_0x455316,'Track\x20changes'),_0x4b6029=new _0x355574([{'type':'switchbutton','model':new _0x5caf39({'withText':!0x0,'isToggleable':!0x0,'label':_0x1931da,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5caf39({'withText':!0x0,'label':o(_0x455316,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5caf39({'withText':!0x0,'label':o(_0x455316,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5caf39({'withText':!0x0,'label':o(_0x455316,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5caf39({'withText':!0x0,'label':o(_0x455316,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x4cf6cd['plugins']['has']('TrackChangesPreview')&&_0x4b6029['addMany']([{'type':'separator'},{'type':'button','model':new _0x5caf39({'withText':!0x0,'label':o(_0x455316,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3ce2c3 of _0x4b6029)if(ve(_0x3ce2c3)){const _0xd6f737=_0x4cf6cd['commands']['get'](_0x3ce2c3['model']['commandName']);_0x3ce2c3['model']['bind']('isOn','isEnabled')['to'](_0xd6f737,'value','isEnabled');}_0x4cf6cd['ui']['componentFactory']['add']('trackChanges',_0x82ba41=>this['_createToolbarButton'](_0x82ba41,_0x4b6029,_0x1931da)),_0x4cf6cd['ui']['componentFactory']['add']('menuBar:trackChanges',_0x19791e=>this['_createMenuBarMenu'](_0x19791e,_0x4b6029,_0x1931da));}['_createToolbarButton'](_0x1b457c,_0x241605,_0x106871){const _0x37891a=_0x51d2fd(_0x1b457c,_0x2814af),_0x448031=this['editor']['commands']['get']('trackChanges');_0x37891a['buttonView']['set']({'tooltip':_0x106871,'label':_0x106871,'icon':_0x332e69}),_0x37891a['buttonView']['bind']('isOn')['to'](_0x448031,'value'),_0x37891a['buttonView']['on']('execute',()=>{_0x448031['execute'](),this['editor']['editing']['view']['focus']();}),_0x3835f2(_0x37891a,_0x241605,{'role':'menu'});const _0x9ce9ee=[];for(const _0x27cdd7 of _0x241605)ve(_0x27cdd7)&&_0x9ce9ee['push'](this['editor']['commands']['get'](_0x27cdd7['model']['commandName']));const _0x24fe87=_0x37891a['buttonView'];return _0x24fe87['actionView']['unbind']('isEnabled'),_0x24fe87['arrowView']['unbind']('isEnabled'),_0x24fe87['actionView']['bind']('isEnabled')['to'](_0x448031,'isEnabled'),_0x24fe87['arrowView']['bind']('isEnabled')['toMany'](_0x9ce9ee,'isEnabled',(..._0xe2a5ea)=>_0xe2a5ea['some'](_0xfec679=>_0xfec679)),_0x37891a['on']('execute',_0x4a7eba=>{this['editor']['execute'](_0x4a7eba['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x37891a;}['_createMenuBarMenu'](_0x28824a,_0x2ed6f9,_0x2135a9){const _0x5b462e=new _0x4c4b2c(_0x28824a),_0x5676a0=this['editor']['commands']['get']('trackChanges');_0x5b462e['buttonView']['set']({'label':_0x2135a9,'icon':_0x332e69});const _0x1e64a2=new _0x4488be(_0x28824a);for(const _0x295b8d of _0x2ed6f9){if('separator'==_0x295b8d['type']){_0x1e64a2['items']['add'](new _0x44126c(_0x28824a));continue;}const _0x240f41=new _0x1653c2(_0x28824a,_0x5b462e),_0x554662=new _0x501214(_0x28824a),_0x13251e=_0x295b8d['model'];_0x554662['bind'](...Object['keys'](_0x13251e))['to'](_0x13251e),_0x554662['delegate']('execute')['to'](_0x5b462e),_0x554662['on']('execute',()=>{this['editor']['execute'](_0x13251e['commandName']),this['editor']['editing']['view']['focus']();}),_0x240f41['children']['add'](_0x554662),_0x1e64a2['items']['add'](_0x240f41);}return _0x5b462e['bind']('isEnabled')['to'](_0x5676a0,'isEnabled'),_0x5b462e['panelView']['children']['add'](_0x1e64a2),_0x5b462e;}['_initializeController'](_0x4a0c90){const _0x3fb324=this['editor'],_0x2ae2b9=_0x3fb324['config'],_0x4b4612=_0x3fb324['plugins']['get']('Annotations'),_0x403205=_0x3fb324['plugins']['get']('CommentsRepository'),_0x19a1e8=_0x3fb324['plugins']['get']('EditorAnnotations'),_0x2f10d2=_0x3fb324['plugins']['get'](_0x42acd4)['me'],_0x3d0140=_0x2ae2b9['get']('trackChanges')['SuggestionThreadView'],_0x49c9e1=_0x2ae2b9['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x19751d,CommentThreadInputView:_0x1a9148}=_0x3fb324['plugins']['get']('CommentsUI');let _0x50ae98,_0x5655aa,_0x5db7e7;this['_annotationViews']['has'](_0x4a0c90['id'])?(_0x5655aa=this['_annotationViews']['get'](_0x4a0c90['id']),_0x50ae98=_0x5655aa['mainView']):(_0x50ae98=new _0x3d0140(_0x3fb324['locale'],_0x4a0c90,_0x2f10d2,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2ae2b9['get']('comments.editorConfig'),'licenseKey':_0x2ae2b9['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2ae2b9['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2ae2b9['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2ae2b9['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x274625(_0x2ae2b9['get']('locale'),_0x3fb324['locale']),'CommentView':_0x2ae2b9['get']('comments')['CommentView'],'CommentsListView':_0x19751d,'CommentThreadInputView':_0x1a9148,'SuggestionView':_0x49c9e1}),_0x50ae98['suggestionView']['acceptButton']['on']('execute',()=>{_0x3fb324['editing']['view']['focus']();}),_0x50ae98['suggestionView']['discardButton']['on']('execute',()=>{_0x3fb324['editing']['view']['focus']();}),_0x5655aa=_0x4b4612['createAnnotationView'](this['editor']['locale'],_0x50ae98),_0x5655aa['bind']('isDirty')['to'](_0x50ae98,'isDirty'),_0x5655aa['bind']('length')['to'](_0x50ae98),_0x5655aa['bind']('type')['to'](_0x50ae98,'type',_0x3c8142=>'suggestion-'+_0x3c8142),_0x50ae98['on']('escape',()=>{_0x5db7e7['fire']('escape');}),this['_annotationViews']['set'](_0x4a0c90['id'],_0x5655aa));const _0x400ab7=_0x403205['createCommentThreadController'](_0x4a0c90['commentThread'],_0x50ae98),_0x4ccce8=new be(_0x3fb324,_0x4a0c90,_0x50ae98,_0x400ab7),_0x5478c5=_0x4a0c90['getAllAdjacentSuggestions']()['filter'](_0x3d072d=>_0x3d072d['isInContent']);_0x50ae98['descriptionParts']=_0x3fb324['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5478c5),this['_suggestionToController']['set'](_0x4a0c90,_0x4ccce8),this['_viewToController']['set'](_0x50ae98,_0x4ccce8);const _0x2dbaad=()=>{const _0x418d5f=[],_0x2f8d9b=_0x4a0c90['getAllAdjacentSuggestions']()['filter'](_0x5af2ff=>_0x5af2ff['isInContent']);for(const _0x12cd27 of _0x2f8d9b)_0x418d5f['push'](..._0x12cd27['getMarkers']());return _0x32e540(_0x3fb324['editing'],_0x418d5f);};_0x5db7e7=_0x4b4612['createAnnotation']({'view':_0x5655aa,'target':_0x2dbaad,'type':()=>'suggestion-'+_0x4ccce8['view']['type'],'isVisible':!!_0x2dbaad()}),_0x403205['_bindAnnotationToEditors'](_0x50ae98,_0x5db7e7),_0x4b4612['add'](_0x5db7e7),_0x19a1e8['registerAnnotation'](_0x5db7e7);}['_destroyController'](_0x5a37f7){const _0x92f2a9=this['editor']['plugins']['get']('CommentsRepository'),_0x5d106c=this['editor']['plugins']['get']('Annotations'),_0x5a98c3=this['_suggestionToController']['get'](_0x5a37f7),_0x177d51=_0x5a98c3['view'],_0xc98ae6=_0x5d106c['getByInnerView'](_0x177d51);_0x92f2a9['_unbindEditors'](_0x177d51),_0xc98ae6&&_0x5d106c['remove'](_0xc98ae6),this['_suggestionToController']['delete'](_0x5a37f7),this['_viewToController']['delete'](_0x177d51),_0x5a98c3['destroy']();}['_updateController'](_0x1489a4){if(!_0x1489a4['isInContent']||!this['_suggestionToController']['has'](_0x1489a4))return;const _0x48aeeb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f8df0=this['_suggestionToController']['get'](_0x1489a4),_0x326f68=_0x1489a4['getAllAdjacentSuggestions']();_0x1f8df0['view']['descriptionParts']=_0x48aeeb['descriptionFactory']['getDescriptions'](_0x326f68);}['destroy'](){for(const _0x5b7713 of this['_suggestionToController']['keys']())this['_destroyController'](_0x5b7713);for(const _0x52a8e8 of this['_annotationViews']['values']())_0x52a8e8['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ve(_0x4be8d9){return'model'in _0x4be8d9;}class Ve extends _0x44fd37{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x15aedf){this['editor']['plugins']['get'](d)['adapter']=_0x15aedf;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x47eda3){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x47eda3);}['getSuggestions']({skipNotAttached:_0x589b21=!0x1,toJSON:_0x5827ca=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x589b21,'toJSON':_0x5827ca});}['getSuggestion'](_0x124561){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x124561);}}const p=['Pagination'];class ce extends _0x44fd37{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x118b72=this['editor'];if(_0x118b72['config']['define']('trackChangesData.editorCreator',_0x211c0f=>{const _0x3302b9=_0x118b72['model']['document']['getRootNames']()['reduce']((_0x3e2dbb,_0x90cb40)=>(_0x3e2dbb[_0x90cb40]='',_0x3e2dbb),{});return _0x118b72['constructor']['create'](_0x3302b9,_0x211c0f);}),'function'!=typeof _0x118b72['config']['get']('trackChangesData')['editorCreator'])throw new _0xd89ffd('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x574c35){return P(this['editor'],!0x0,_0x574c35);}['getDataWithDiscardedSuggestions'](_0x1430c6){return P(this['editor'],!0x1,_0x1430c6);}}class ze extends _0x44fd37{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x59e40d){function _0x538599(_0x3361e9){return _0x3361e9['map'](_0x819e2b=>String['fromCharCode'](_0x819e2b))['join']('');}super(_0x59e40d),this['result']='end',_0x59e40d[_0x538599([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x538599([0x76,0x69,0x65,0x77])][_0x538599([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x538599([0x61,0x75,0x74,0x6f]),_0x59e40d[_0x538599([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x538599([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x538599([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x538599([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x538599([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 Ke(_0x12f8d3){return void 0x0!==_0x12f8d3['getRootsAttributes'];}async function P(_0x5f154c,_0x30a25f,_0x585d40){const _0x5945c1=_0x18337b(_0x5f154c,p);_0x5945c1['plugins']['push'](d,ze),_0x5945c1['rootsAttributes']=Ke(_0x5f154c)?_0x5f154c['getRootsAttributes']():void 0x0;const _0x164d0d=document['createDocumentFragment'](),_0x3f93fd=_0x5f154c['config']['get']('trackChangesData')['editorCreator'],_0xa11fb=await _0x3f93fd(_0x5945c1,()=>function(_0x5d557e){const _0x2c70b1=document['createElement']('div');return _0x5d557e['appendChild'](_0x2c70b1),_0x2c70b1;}(_0x164d0d));!function(_0x530a56,_0x205adc){const _0x311b04=_0x530a56['model']['document']['getRootNames']()['reduce']((_0x4961bd,_0x4cf86c)=>(_0x4961bd[_0x4cf86c]=_0x530a56['data']['get']({'rootName':_0x4cf86c}),_0x4961bd),{}),_0x3c104f=_0x530a56['plugins']['get']('Users')['users']['map'](_0x4016e7=>({'id':_0x4016e7['id'],'name':_0x4016e7['name']})),_0x55c7de=_0x530a56['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x49873f=_0x530a56['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3b0b4b=_0x205adc['plugins']['get']('Users'),_0x328cf6=_0x205adc['plugins']['get']('TrackChangesEditing'),_0x1948eb=_0x205adc['plugins']['get']('CommentsRepository');for(const _0xe3ef71 of _0x1948eb['getCommentThreads']())_0xe3ef71['remove']();for(const _0x3435ae of _0x3c104f)_0x3b0b4b['getUser'](_0x3435ae['id'])||_0x3b0b4b['addUser'](_0x3435ae);_0x3b0b4b['me']||_0x3b0b4b['useAnonymousUser']();for(const _0xd3ca84 of _0x49873f)_0x1948eb['addCommentThread'](_0xd3ca84);for(const _0x956a9d of _0x55c7de)_0x328cf6['addSuggestionData'](_0x956a9d);_0x205adc['data']['set'](_0x311b04);}(_0x5f154c,_0xa11fb),_0xa11fb['execute'](_0x30a25f?'acceptAllSuggestions':'discardAllSuggestions');const _0x4503be=Ke(_0xa11fb)?_0xa11fb['getFullData'](_0x585d40):_0xa11fb['data']['get'](_0x585d40);return await _0xa11fb['destroy'](),_0x4503be;}class _e extends _0x3eac6a{['options'];constructor(_0xf8a631,_0x89f4a1){super(_0xf8a631),this['options']=_0x89f4a1,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'](_0x29dda6,_0x687dbb){if(!this['element'])return;const _0x270539=[];for(const [_0x5908e4,_0x50cf20]of _0x29dda6){const _0x4ccf4d=document['createElement']('div');_0x4ccf4d['setAttribute']('data-ck-root-name',_0x5908e4),_0x4ccf4d['className']=_0x50cf20['classes']+'\x20ck-track-changes-preview__root-container',_0x4ccf4d['innerHTML']=_0x50cf20['content'],_0x270539['push'](_0x4ccf4d);}_0x687dbb(this['element'],_0x270539),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class ae extends _0x38e29d{constructor(_0x1d2261){super(_0x1d2261),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x524411=this['editor'],_0xd9627e=_0x524411['locale'],_0x57f0b7=_0x524411['plugins']['get']('Dialog');let _0x4392e9;const _0x20655f=function(_0xfbb0ef){const _0x2f4ecf={};if('editables'in _0xfbb0ef['ui']['view']){for(const [_0x47eb4c,_0x28a0bd]of Object['entries'](_0xfbb0ef['ui']['view']['editables']))_0x2f4ecf[_0x47eb4c]=_0x28a0bd['element'];}else _0x2f4ecf[_0xfbb0ef['model']['document']['getRootNames']()[0x0]]=_0xfbb0ef['ui']['view']['editable']['element'];return _0x2f4ecf;}(_0x524411),_0x13e207=function(_0x336021){let _0x3e1910=0x0;for(const _0x23a604 of Object['values'](_0x336021))_0x3e1910=Math['max'](_0x3e1910,_0x23a604['getBoundingClientRect']()['width']);let _0x33efa3=0x0;for(const _0x584edd of Object['values'](_0x336021))_0x33efa3+=_0x584edd['getBoundingClientRect']()['height'];const _0x4eca9c=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x37ee7a=Math['min'](_0x33efa3,_0x4eca9c);return{'width':_0x3e1910,'height':_0x37ee7a};}(_0x20655f);_0x57f0b7['show']({'id':'finalContentPreview','title':o(_0xd9627e,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new _e(_0xd9627e,{'dialogRects':_0x13e207}),'onHide':()=>{_0x4392e9['detachFromDom']();},'onShow':()=>{_0x524411['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x3a8395=>{const _0x7e3bb5=this['_standarizeRootsData'](_0x3a8395,_0x524411,_0x20655f);_0x57f0b7['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x7e3bb5,_0x524411['config']['get']('trackChanges.preview.renderFunction'));}),_0x4392e9=new _0x532d5a(_0xd9627e,[_0x57f0b7['view']]),_0x4392e9['attachToDom'](),_0x4392e9['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x524411['once']('destroy',()=>{_0x4392e9['detachFromDom']();});const _0x3961c5=_0x57f0b7['view']['headerView']['class'];_0x57f0b7['view']['headerView']['class']=_0x3961c5?_0x3961c5+'\x20ck-reset_all':'ck-reset_all',_0x57f0b7['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x57f0b7['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x562b6e=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x2a75f5=_0x562b6e['previewMode'],_0xb715e2={};if('$labels'===_0x2a75f5){for(const _0x385c8f of _0x562b6e['getMergeFieldsIds']())_0xb715e2[_0x385c8f]=_0x562b6e['getLabel'](_0x385c8f)||_0x385c8f;}else{const _0x3977ef='$defaultValues'===_0x2a75f5?_0x562b6e['getDefaultValues']():_0x562b6e['getDataSetValues'](_0x2a75f5,!0x0);for(const _0x26492b of Object['entries'](_0x3977ef)){const [_0x5e02d7,_0x38ee5e]=_0x26492b;_0xb715e2[_0x5e02d7]=null!==_0x38ee5e?_0x38ee5e:_0x562b6e['getLabel'](_0x5e02d7)||_0x5e02d7;}}return{'mergeFieldsData':_0xb715e2};}['_standarizeRootsData'](_0x3cae63,_0x361c69,_0x15dbab){let _0x574b09;if('string'==typeof _0x3cae63){const _0x148ea3=_0x361c69['model']['document']['getRootNames']()[0x0];_0x574b09={[_0x148ea3]:_0x3cae63};}else _0x574b09=_0x3cae63;const _0x4dbfa3=this['_fixMediaEmbeds'](_0x574b09,_0x361c69),_0x54f8fa=function(_0x4fec3b,_0x337cbf){for(const [_0x211496,_0x4f5c3c]of _0x4fec3b)_0x4f5c3c['classes']=_0x337cbf[_0x211496]['classList']['value']['replace']('ck-focused','');return _0x4fec3b;}(this['_sortRoots'](_0x361c69)['reduce']((_0x409c9b,_0x59bbe2)=>(_0x409c9b['push']([_0x59bbe2,{'content':_0x4dbfa3[_0x59bbe2],'classes':''}]),_0x409c9b),[]),_0x15dbab);return _0x54f8fa;}['_fixMediaEmbeds'](_0x197e54,_0x1c36c6){if(!_0x1c36c6['plugins']['has']('MediaEmbedEditing'))return _0x197e54;const _0x1d063d=_0x1c36c6['plugins']['get']('MediaEmbedEditing');for(const [_0x227ad0,_0x27b3df]of Object['entries'](_0x197e54)){const _0x2c60d6=document['createElement']('div');_0x2c60d6['innerHTML']=_0x27b3df,(_0x2c60d6['querySelectorAll']('figure.media')['forEach'](_0x5c91d5=>{const _0x2b5673=_0x5c91d5['querySelector']('oembed');if(_0x2b5673){const _0x4030ab=_0x2b5673['getAttribute']('url');if(_0x4030ab){const _0xbf2658=_0x1d063d['registry']['getMediaViewElement'](new _0x15b0fe(_0x1c36c6['editing']['view']['document']),_0x4030ab,{'elementName':'','renderForEditingView':!0x0}),_0x5a492b=document['createElement']('div');_0x5a492b['classList']['add']('ck-media__wrapper'),_0xbf2658['render'](_0x5a492b,_0x1c36c6['editing']['view']['domConverter']),_0x2b5673['replaceWith'](_0x5a492b);}}}),_0x197e54[_0x227ad0]=_0x2c60d6['innerHTML']);}return _0x197e54;}['_sortRoots'](_0xb4fa13){if(!function(_0x429fbd){return void 0x0!==_0x429fbd['getRootsAttributes'];}(_0xb4fa13))return _0xb4fa13['model']['document']['getRootNames']();const _0x4b8d80=[],_0x766eb8=new Map();for(const _0x1d26e5 of _0xb4fa13['model']['document']['getRootNames']()){const _0x27b562=_0xb4fa13['editing']['view']['getDomRoot'](_0x1d26e5)['getClientRects']()['item'](0x0);_0x4b8d80['push'](_0x1d26e5),_0x766eb8['set'](_0x1d26e5,_0x27b562);}return _0x4b8d80['sort']((_0x1a3959,_0xb14aa9)=>{const _0x5bd22d=_0x766eb8['get'](_0x1a3959),_0x187434=_0x766eb8['get'](_0xb14aa9);return _0x5bd22d['y']-_0x187434['y']||_0x5bd22d['x']-_0x187434['x'];}),_0x4b8d80;}}class Xe extends _0x44fd37{static get['requires'](){return[ce,_0x5076e4];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5c7e1e){super(_0x5c7e1e),_0x5c7e1e['commands']['add']('previewFinalContent',new ae(this['editor'])),_0x5c7e1e['config']['define']('trackChanges.preview.renderFunction',(_0x10f650,_0x1ded08)=>{for(const _0x355756 of _0x1ded08)_0x10f650['appendChild'](_0x355756);});}}export{T as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,O as DiscardSuggestionCommand,x as ExecuteOnAllSuggestionsCommand,E as ExecuteOnSelectedSuggestionsCommand,ae as PreviewFinalContentCommand,R as Suggestion,U as SuggestionDescriptionFactory,Te as SuggestionThreadView,Le as SuggestionView,Ve as TrackChanges,B as TrackChangesCommand,ce as TrackChangesData,ze as TrackChangesDataGetter,d as TrackChangesEditing,Xe as TrackChangesPreview,u as TrackChangesUI};