@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250209.0 → 0.0.0-nightly-20250210.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as Qt,Plugin as _0x32d277,PendingActions as _0x46e603,icons as _0x1280c7}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3c4487,ObservableMixin as _0x6fb9b,uid as _0x12e0b6,priorities as _0x3e5933,insertToPriorityArray as _0x3a2fa8,logWarning as _0x194bc4,getEnvKeystrokeText as _0xe7169f,FocusTracker as _0x127950,KeystrokeHandler as _0x260502,Collection as _0x3a7b8e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x9dac81,View as _0x19b550,ViewCollection as _0xd0bff9,FocusCycler as ts,ViewModel as _0x127161,createDropdown as _0x111af9,SplitButtonView as _0x4045c4,addListToDropdown as _0x387a00,MenuBarMenuView as _0x544f32,MenuBarMenuListView as _0x10e9be,ListSeparatorView as _0x1b58c6,MenuBarMenuListItemView as _0x30c9f3,MenuBarMenuListItemButtonView as _0x28a4cd,BodyCollection as _0x2cf5af,Dialog as _0x2e48b0}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x485da9,hashObject as _0x1f57d0,surroundingMarkersDetector as _0x54a2c9,FOCUS_ANNOTATION_KEYSTROKE as _0x1980b7,AriaDescriptionView as _0x3d12d4,setupThreadKeyboardNavigation as _0x418455,trimHtml as _0x5e35a2,UserView as _0x163e6a,LateFocusButtonView as _0x3e0fbb,getDateTimeFormatter as _0x4fcd9d,getAllMarkersDomElementsSorted as _0x54bfae,sanitizeEditorConfig as _0x218599}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x45cc74,LiveRange as _0x14dd4f,LivePosition as _0x1adf65,DowncastWriter as _0x2200ff}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0xb393f7,toWidget as _0x20d843}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x4538e0,set as _0x315543,isEqual as _0x42e77d,unset as _0x585406,omit as Et}from'lodash-es';import{Delete as _0x4c5371,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0xc65384,ShiftEnter as _0x4ae6b1}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x1ef2e1,_0x4aeb3f){super(_0x1ef2e1),this['_enabledCommands']=_0x4aeb3f,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 _0x3c234d of this['editor']['commands']['commands']())_0x3c234d['affectsData']&&!this['_enabledCommands']['has'](_0x3c234d)&&_0x3c234d['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x939c5b of this['editor']['commands']['commands']())_0x939c5b['affectsData']&&!this['_enabledCommands']['has'](_0x939c5b)&&_0x939c5b['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x5629d4,_0x101918){super(_0x5629d4),this['_suggestions']=_0x101918,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4e5b1b){const _0x3f03bd=this['_suggestions']['get'](_0x4e5b1b);if(!_0x3f03bd)throw new _0x3c4487('track-changes-accept-suggestion-not-found',this);const _0x3d9ce5=_0x3f03bd['getRanges']();this['editor']['model']['canEditAt'](_0x3d9ce5)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3f03bd);}}class R extends Qt{['_suggestions'];constructor(_0x52f0af,_0x12489c){super(_0x52f0af),this['_suggestions']=_0x12489c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2760fe){const _0x482cc8=this['_suggestions']['get'](_0x2760fe);if(!_0x482cc8)throw new _0x3c4487('track-changes-discard-suggestion-not-found',this);const _0x23abee=_0x482cc8['getRanges']();this['editor']['model']['canEditAt'](_0x23abee)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x482cc8);}}function ns(_0x489950,_0x4f3fb8){let _0xcafa34='';return _0xcafa34+=_0x489950['split']('*')['map']((_0x5b6312,_0x4793dd)=>_0x4793dd%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x5b6312)+'</span>':nn(_0x5b6312))['join'](''),_0x4f3fb8&&(_0xcafa34+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4f3fb8['value']+'\x22\x20title=\x22'+_0x4f3fb8['title']+'\x22></span>'),_0xcafa34;}function nn(_0x3eb8fa){const _0x2dfe1c=document['createElement']('span');return _0x2dfe1c['innerText']=_0x3eb8fa,_0x2dfe1c['innerHTML'];}function Xt(_0x5e5e23){return _0x5e5e23['sort']((_0x175940,_0x3cdf96)=>'deletion'==_0x175940['type']&&'deletion'!=_0x3cdf96['type']?-0x1:'deletion'!=_0x175940['type']&&'deletion'==_0x3cdf96['type']?0x1:0x0);}function to(_0x4cc98f,_0xf04925){let _0x552505,_0x1087e9=0x0;const _0x1c4086=[],_0x18e46c=_0xf04925['schema'];for(;_0x1087e9<_0x4cc98f['length'];){const _0x40c19a=_0x4cc98f[_0x1087e9],_0x18c8c3=_0x4cc98f[_0x1087e9+0x1];_0x552505||(_0x552505=_0xf04925['createPositionBefore'](_0x40c19a)),on(_0xf04925,_0x40c19a,_0x18c8c3)||(_0x1c4086['push'](_0xf04925['createRange'](_0x552505,_0x18e46c['isObject'](_0x40c19a)?_0xf04925['createPositionAfter'](_0x40c19a):_0xf04925['createPositionAt'](_0x40c19a,'end'))),_0x552505=null),_0x1087e9++;}return _0x1c4086;}function on(_0x299e21,_0x267fd5,_0x253f67){if(!_0x253f67)return!0x1;const _0x144b78=_0x299e21['createPositionAfter'](_0x267fd5),_0x48a701=_0x299e21['createPositionBefore'](_0x253f67);return _0x144b78['isTouching'](_0x48a701);}function Yt(_0x261203,_0x3e72c3,_0x5228d2){for(;_0x5228d2['length'];){const _0x1ef5e7=_0x5228d2['splice'](0x0,0x64);_0x261203['change'](()=>{for(const _0x5f3d80 of _0x1ef5e7)_0x5f3d80['isInContent']&&_0x3e72c3['execute'](_0x5f3d80['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x2c3600,_0xb999ed,_0x5f0365){super(_0x2c3600),this['_command']=_0xb999ed,this['_suggestions']=_0x5f0365,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x435b43=Array['from'](this['_suggestions']['values']())['some'](_0x337c48=>_0x337c48['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x435b43;}['execute'](){const _0x1e7674=Xt(Array['from'](this['_suggestions']['values']()));for(const _0x5df445 of _0x1e7674){const _0x5c2936=_0x5df445['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5c2936))return;}Yt(this['editor']['model'],this['_command'],_0x1e7674);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4a0e1c,_0x241d2d,_0x526944){super(_0x4a0e1c),this['_command']=_0x241d2d,this['_suggestions']=_0x526944,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x486460=this['editor']['model']['document']['selection'],_0x1b0d3a=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4fd1f0,_0x30bf14){const _0x4f3c63=Array['from'](_0x4fd1f0['getRanges']()),_0x1fc5cb=new Set();for(const _0x3092ca of _0x30bf14)if(_0x3092ca['isInContent']){for(const _0x5061bf of _0x4f3c63)for(const _0xd0806d of _0x3092ca['getRanges']())(_0x5061bf['isIntersecting'](_0xd0806d)||_0x4fd1f0['isCollapsed']&&!_0x3092ca['isMultiRange']&&_0x3092ca['next']&&_0xd0806d['end']['isTouching'](_0x5061bf['start']))&&_0x1fc5cb['add'](_0x3092ca);}return _0x1fc5cb;}(_0x486460,_0x1b0d3a),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x207e3e=Xt(Array['from'](this['_selectedSuggestions']));for(const _0x535467 of _0x207e3e){const _0x28d6e9=_0x535467['getRanges']();if(!this['editor']['model']['canEditAt'](_0x28d6e9))return;}Yt(this['editor']['model'],this['_command'],_0x207e3e);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x6fb9b(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x413174,_0x5cc3c3){super(),this['id']=_0x5cc3c3['id'],this['type']=_0x5cc3c3['type'],this['subType']=_0x5cc3c3['subType']||null,this['author']=_0x5cc3c3['author'],this['creator']=_0x5cc3c3['creator']||_0x5cc3c3['author'],this['isExternal']=Boolean(_0x5cc3c3['attributes']&&_0x5cc3c3['attributes']['@external']),this['data']=null,this['_model']=_0x413174,this['_onAccept']=_0x5cc3c3['onAccept'],this['_onDiscard']=_0x5cc3c3['onDiscard'],this['_onAttributesChange']=_0x5cc3c3['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5cc3c3['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 _0x35b491=this;for(;_0x35b491['previous'];)_0x35b491=_0x35b491['previous'];return _0x35b491;}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'](_0x1ed62a){this['_markerNames']['add'](_0x1ed62a);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2096c5=>this['_model']['markers']['get'](_0x2096c5))['filter'](_0xd5cf5c=>_0xd5cf5c);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x498419=>{for(const _0x4d2b97 of this['getMarkers']())_0x498419['removeMarker'](_0x4d2b97);}),this['_markerNames']['clear']();}['removeMarker'](_0x1f6f7c){this['_model']['change'](_0xf373ef=>{_0xf373ef['removeMarker'](_0x1f6f7c);}),this['_markerNames']['delete'](_0x1f6f7c);}['addRange'](_0x3af636){const _0x68f1ca='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x68f1ca),this['_model']['change'](_0x173de6=>{_0x173de6['addMarker'](_0x68f1ca,{'range':_0x3af636,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3e3377){for(const _0x1d97b2 of this['getRanges']())if(_0x1d97b2['isIntersecting'](_0x3e3377))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x46d6f5=>_0x46d6f5['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4bc200,_0xa4a238)=>[..._0x4bc200,..._0xa4a238['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3f2e83=this['getRanges']();if(0x1!=_0x3f2e83['length'])return null;const _0x32d5ff=_0x3f2e83[0x0],_0x563b20=_0x32d5ff['start']['nodeAfter'],_0x5206c1=_0x32d5ff['end']['nodeBefore'];return _0x563b20 instanceof _0x45cc74?_0x563b20!=_0x5206c1?null:_0x563b20: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 _0x3019d3=[];let _0x23d0ca=this['head'];for(;_0x23d0ca;)_0x3019d3['push'](_0x23d0ca),_0x23d0ca=_0x23d0ca['next'];return _0x3019d3;}['setAttribute'](_0x3a6179,_0x3bf1cb){const _0x55350c=_0x4538e0(this['attributes']);_0x315543(_0x55350c,_0x3a6179,_0x3bf1cb),_0x42e77d(_0x55350c,this['attributes'])||(this['attributes']=_0x55350c,this['_onAttributesChange'](_0x55350c));}['removeAttribute'](_0x3ea053){const _0x36b9c0=_0x4538e0(this['attributes']);_0x585406(_0x36b9c0,_0x3ea053),_0x42e77d(_0x36b9c0,this['attributes'])||(this['attributes']=_0x36b9c0,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 _0x12e0b6()['substr'](0x1,0x5);}}function o(_0x617f0c,_0x29ab23,_0x46edcb){const _0x7c1e65=_0x617f0c['t'],t=_0x617f0c['t'];switch(_0x29ab23){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',_0x46edcb);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x46edcb);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x46edcb);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x46edcb);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x46edcb);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',_0x46edcb);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x46edcb);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',_0x46edcb);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x46edcb);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x46edcb);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x46edcb);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x46edcb);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x46edcb);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x46edcb);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x46edcb);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x46edcb);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x46edcb);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x46edcb);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x46edcb);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x46edcb);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x46edcb);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x46edcb);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x46edcb);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x46edcb);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'},_0x46edcb);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x46edcb);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x46edcb);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x46edcb);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x46edcb);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x46edcb);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'},_0x46edcb);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x46edcb);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x46edcb);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x46edcb);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x46edcb);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'},_0x46edcb);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x46edcb);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'},_0x46edcb);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x46edcb);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x46edcb);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'},_0x46edcb);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x46edcb);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'},_0x46edcb);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x46edcb);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x46edcb);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'},_0x46edcb);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x46edcb);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 _0x7c1e65({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x46edcb);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x7c1e65({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x46edcb);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x46edcb);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'},_0x46edcb);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'},_0x46edcb);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'},_0x46edcb);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x29ab23;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5d5f79,_0x17a7ab){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5d5f79,this['_locale']=_0x17a7ab;}['getDescriptions'](_0x445669){const _0x308257=[],_0x2e512d=new Set(),_0x3844c1=new Set();for(let _0x5238c3=0x0;_0x5238c3<_0x445669['length'];_0x5238c3++){const _0x487177=_0x445669[_0x5238c3];if(!_0x487177['isInContent'])continue;const _0x6b35d2=this['_handleCustomCallbackDescription'](_0x487177);if(_0x6b35d2){if(null!=_0x487177['subType']){if(_0x2e512d['has'](_0x487177['subType']))continue;_0x2e512d['add'](_0x487177['subType']);}_0x308257['push'](_0x6b35d2);}else{if('attribute'!=_0x487177['type'])'insertion'!=_0x487177['type']&&'deletion'!=_0x487177['type']||this['_handleInsertRemoveSuggestionDescription'](_0x308257,_0x487177,_0x445669[_0x5238c3+0x1]);else{const _0x3a9d22=_0x487177['data']['key'];if(_0x3844c1['has'](_0x3a9d22))continue;_0x3844c1['add'](_0x487177['data']['key']),_0x3a9d22==m?this['_handleRenameSuggestionDescription'](_0x308257,_0x487177):this['_handleAttributeSuggestionDescription'](_0x308257,_0x487177);}}}return this['_resolveDescriptionItems'](_0x308257);}['registerDescriptionCallback'](_0x269bc6){this['_customCallbacks']['push'](_0x269bc6);}['registerElementLabel'](_0x1af446,_0x22d942,_0x2e2eaa=_0x3e5933['normal']){'function'==typeof _0x1af446?_0x3a2fa8(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1af446,'label':_0x22d942,'priority':_0x2e2eaa}):this['_itemLabels']['set'](_0x1af446,_0x22d942);}['registerAttributeLabel'](_0x539157,_0x4f07ed){this['_attributeLabels']['set'](_0x539157,_0x4f07ed);}['getItemLabel'](_0x42f12e,_0x39dd51=0x1){let _0x27f383;for(const _0x5f34e1 of this['_itemLabelsCallbacks'])if(_0x5f34e1['matchingCallback'](_0x42f12e)){_0x27f383=_0x5f34e1['label'];break;}return _0x27f383||(_0x27f383=this['_itemLabels']['get'](_0x42f12e['name'])),_0x27f383?_0x27f383(_0x39dd51):0x1!==_0x39dd51?_0x39dd51+'\x20'+_0x42f12e['name']+'s':''+_0x42f12e['name'];}['_addDescriptionItems'](_0x524b30,_0x37ca78){const _0x20ea06=_0x37ca78['getFirstRange']()['getWalker'](),_0x1cd5cc='insertion'==_0x37ca78['type']?'add':'remove';for(const _0x4e4510 of _0x20ea06){const _0x11323e=_0x4e4510['item'],_0x358a0d=_0x524b30[_0x524b30['length']-0x1];if(_0x11323e['is']('$textProxy'))_0x358a0d&&_0x358a0d['type']['indexOf']('Container')>-0x1&&_0x524b30['pop'](),_0x358a0d&&'text'==_0x358a0d['type']?_0x358a0d[_0x1cd5cc]+=_0x11323e['data']:_0x524b30['push']({'type':'text','add':'add'==_0x1cd5cc?_0x11323e['data']:'','remove':'remove'==_0x1cd5cc?_0x11323e['data']:''});else{if(this['_schema']['isObject'](_0x11323e)){const _0x38b14c=_0x11323e;if(_0x358a0d&&_0x358a0d['type']['indexOf']('Container')>-0x1&&_0x524b30['pop'](),'elementEnd'==_0x4e4510['type'])continue;_0x358a0d&&_0x358a0d['type']==_0x1cd5cc+'Object'&&_0x358a0d['element']['name']==_0x38b14c['name']?_0x358a0d['quantity']++:_0x524b30['push']({'type':_0x1cd5cc+'Object','element':_0x38b14c,'quantity':0x1}),_0x20ea06['skip'](_0x22ae42=>!('elementEnd'==_0x22ae42['type']&&_0x22ae42['item']==_0x11323e));}else{if(this['_schema']['checkChild'](_0x11323e,'$text')||_0x11323e['is']('element','softBreak')){const _0x15808c=_0x11323e;if('add'==_0x1cd5cc&&'elementStart'==_0x4e4510['type']||'remove'==_0x1cd5cc&&'elementEnd'==_0x4e4510['type'])continue;if(_0x358a0d&&-0x1==_0x358a0d['type']['indexOf']('Container')){'text'==_0x358a0d['type']&&(_0x358a0d[_0x1cd5cc]+='\x0a');continue;}let _0x4858a7;if(_0x4858a7='add'==_0x1cd5cc?_0x15808c['nextSibling']&&!this['_schema']['isObject'](_0x15808c['nextSibling'])?_0x15808c['nextSibling']:null:_0x15808c['previousSibling']&&!this['_schema']['isObject'](_0x15808c['previousSibling'])?_0x15808c['previousSibling']:null,_0x15808c['isEmpty']||_0x4858a7&&_0x4858a7['isEmpty']){const _0x467bc7=_0x4858a7&&_0x4858a7['isEmpty']?_0x4858a7:_0x15808c;_0x358a0d&&_0x358a0d['type']==_0x1cd5cc+'EmptyContainer'&&_0x358a0d['element']['name']==_0x467bc7['name']?_0x358a0d['quantity']++:_0x524b30['push']({'type':_0x1cd5cc+'EmptyContainer','element':_0x467bc7,'quantity':0x1});}else _0x524b30['push']({'type':_0x1cd5cc+'Container','element':_0x15808c});}}}}}['_resolveDescriptionItems'](_0x5a20e5){const _0x57bc89=this['_locale'],_0x3b80d2=[],_0x588ec0=[],_0xed432=[];for(const _0x436c3f of _0x5a20e5)switch(_0x436c3f['type']){case'text':if(_0x436c3f['add']=_0x436c3f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x436c3f['remove']=_0x436c3f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x436c3f['add']&&''!=_0x436c3f['remove']){_0x3b80d2['push']({'type':'replace','content':o(_0x57bc89,'REPLACE_TEXT',['\x22'+_0x436c3f['remove']+'\x22','\x22'+_0x436c3f['add']+'\x22'])});continue;}if(null!=_0x436c3f['add']['match'](/^ +$/)){_0x3b80d2['push']({'type':'insertion','content':o(_0x57bc89,'*Insert:*\x20%0',o(_0x57bc89,'ELEMENT_SPACE',_0x436c3f['add']['length']))});continue;}if(null!=_0x436c3f['remove']['match'](/^ +$/)){_0x3b80d2['push']({'type':'deletion','content':o(_0x57bc89,'*Remove:*\x20%0',o(_0x57bc89,'ELEMENT_SPACE',_0x436c3f['remove']['length']))});continue;}if(''!=_0x436c3f['add']){_0x3b80d2['push']({'type':'insertion','content':o(_0x57bc89,'*Insert:*\x20%0','\x22'+_0x436c3f['add']+'\x22')});continue;}_0x3b80d2['push']({'type':'deletion','content':o(_0x57bc89,'*Remove:*\x20%0','\x22'+_0x436c3f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3b80d2['push']({'type':'insertion','content':o(_0x57bc89,'*Insert:*\x20%0',this['getItemLabel'](_0x436c3f['element'],_0x436c3f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3b80d2['push']({'type':'deletion','content':o(_0x57bc89,'*Remove:*\x20%0',this['getItemLabel'](_0x436c3f['element'],_0x436c3f['quantity']))});continue;case'addContainer':_0x3b80d2['push']({'type':'insertion','content':o(_0x57bc89,'*Split:*\x20%0',this['getItemLabel'](_0x436c3f['element'],_0x436c3f['quantity']))});continue;case'removeContainer':_0x3b80d2['push']({'type':'deletion','content':o(_0x57bc89,'*Merge:*\x20%0',this['getItemLabel'](_0x436c3f['element'],_0x436c3f['quantity']))});continue;case'addFormat':_0x588ec0['push'](_0x436c3f['key']);continue;case'removeFormat':_0xed432['push'](_0x436c3f['key']);continue;default:_0x3b80d2['push'](_0x436c3f);}if(_0x588ec0['length']){const _0x4850b6=_0x588ec0['map'](_0xafc0a1=>this['_attributeLabels']['has'](_0xafc0a1)?this['_attributeLabels']['get'](_0xafc0a1):_0xafc0a1)['join'](',\x20');_0x3b80d2['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4850b6)});}if(_0xed432['length']){const _0x495398=_0xed432['map'](_0x34f367=>this['_attributeLabels']['has'](_0x34f367)?this['_attributeLabels']['get'](_0x34f367):_0x34f367)['join'](',\x20');_0x3b80d2['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x495398)});}return _0x3b80d2;}['_handleCustomCallbackDescription'](_0x29a58c){for(const _0x1aeaaf of this['_customCallbacks']){const _0x3e8ee9=_0x1aeaaf(_0x29a58c);if(_0x3e8ee9&&'type'in _0x3e8ee9)return _0x3e8ee9;}}['_handleAttributeSuggestionDescription'](_0x511597,_0x559a28){const _0x2faa0f=_0x559a28['data'],_0x5b7d98=void 0x0===_0x2faa0f['newValue']?'removeFormat':'addFormat';_0x511597['push']({'type':_0x5b7d98,'key':_0x2faa0f['key']});}['_handleRenameSuggestionDescription'](_0x2fdd74,_0x371ffc){_0x2fdd74['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x371ffc['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x462a8c,_0x20094a,_0x5429a4){if(this['_addDescriptionItems'](_0x462a8c,_0x20094a),_0x5429a4&&_0x5429a4['getFirstRange']()&&!_0x20094a['getFirstRange']()['end']['isEqual'](_0x5429a4['getFirstRange']()['start'])){const _0x3638c1=_0x462a8c[_0x462a8c['length']-0x1],_0x5274ff='insertion'==_0x20094a['type']?'add':'remove';_0x3638c1&&'text'==_0x3638c1['type']&&(_0x3638c1[_0x5274ff]+='\x0a');}}}class U extends _0x32d277{['afterInit'](){const _0x59dbdd=this['editor'],_0x1774db=_0x59dbdd['plugins']['get']('TrackChangesEditing');_0x59dbdd['commands']['get']('showAIAssistant')&&_0x1774db['enableCommand']('showAIAssistant');}}class V extends _0x32d277{['afterInit'](){const _0x374ae0=this['editor'],_0x43f583=_0x374ae0['locale'];if(!_0x374ae0['plugins']['has']('AlignmentEditing'))return;const _0x35b0e5=_0x374ae0['plugins']['get']('TrackChangesEditing');_0x35b0e5['enableDefaultAttributesIntegration']('alignment'),_0x35b0e5['registerBlockAttribute']('alignment'),_0x35b0e5['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x43f583,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x198fde=this['editor'],_0x5e21a4=_0x198fde['locale'];_0x198fde['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e5f4c=>{if('formatBlock'!=_0x2e5f4c['type'])return;const {data:_0x2c8620}=_0x2e5f4c;if(_0x2c8620&&'alignment'==_0x2c8620['commandName']){const _0x202a74=_0x2c8620['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5e21a4,'*Format:*\x20%0',function(_0x2bb794){switch(_0x2bb794){case'left':return o(_0x5e21a4,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5e21a4,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5e21a4,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5e21a4,'FORMAT_JUSTIFY_TEXT');}}(_0x202a74))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x32d277{['afterInit'](){const _0x1fc509=this['editor'],_0x14a099=_0x1fc509['plugins']['get']('TrackChangesEditing'),_0x2762d9=_0x1fc509['locale'];for(const _0x1e39ad of ti){if(!_0x1fc509['plugins']['has'](_0x1e39ad))continue;const _0x4ee649=_0x1e39ad['slice'](0x0,-0x7)['toLowerCase'](),_0x4f442b='FORMAT_'+_0x4ee649['toUpperCase']();_0x14a099['enableDefaultAttributesIntegration'](_0x4ee649),_0x14a099['registerInlineAttribute'](_0x4ee649),_0x14a099['descriptionFactory']['registerAttributeLabel'](_0x4ee649,o(_0x2762d9,_0x4f442b));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1dc4ad=this['editor'],_0x4e3b72=_0x1dc4ad['locale'],_0x56284f=_0x1dc4ad['plugins']['get']('TrackChangesEditing');function _0x1dbf4d(_0x5a78c7,_0x5a303d){_0x56284f['descriptionFactory']['registerDescriptionCallback'](_0x27887d=>{if('formatInline'!=_0x27887d['type'])return;const {data:_0x5be476}=_0x27887d;return _0x5be476&&_0x5be476['commandName']===_0x5a78c7?_0x5be476['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4e3b72,'*Format:*\x20%0',_0x5a303d)}:{'type':'format','content':o(_0x4e3b72,'*Remove\x20format:*\x20%0',_0x5a303d)}:void 0x0;});}_0x1dbf4d('bold',o(_0x4e3b72,'FORMAT_BOLD')),_0x1dbf4d('italic',o(_0x4e3b72,'FORMAT_ITALIC')),_0x1dbf4d('underline',o(_0x4e3b72,'FORMAT_UNDERLINE')),_0x1dbf4d('code',o(_0x4e3b72,'FORMAT_CODE')),_0x1dbf4d('strikethrough',o(_0x4e3b72,'FORMAT_STRIKETHROUGH')),_0x1dbf4d('subscript',o(_0x4e3b72,'FORMAT_SUBSCRIPT')),_0x1dbf4d('superscript',o(_0x4e3b72,'FORMAT_SUPERSCRIPT'));}}class F extends _0x32d277{['afterInit'](){const _0xeac70b=this['editor'],_0x3dc1c8=_0xeac70b['locale'];if(!_0xeac70b['plugins']['has']('BlockQuoteEditing'))return;const _0x2559f3=_0xeac70b['plugins']['get']('TrackChangesEditing'),_0x3ad922=this['editor']['commands']['get']('blockQuote');_0x2559f3['enableCommand']('blockQuote',(_0x31438f,_0x234bff={})=>{const _0x429553=this['editor']['model']['document']['selection'],_0x10ebca=_0x234bff&&void 0x0!==_0x234bff['forceValue']?_0x234bff['forceValue']:!_0x3ad922['value'];let _0x2a9558=[];if(_0x10ebca){const _0x49e35d=Array['from'](_0x429553['getSelectedBlocks']())['filter'](_0x211bc1=>oo(_0x211bc1)||function(_0x1a5dfa,_0x418fee){const _0x3ccfde=_0x418fee['checkChild'](_0x1a5dfa['parent'],'blockQuote'),_0xee2764=_0x418fee['checkChild'](['$root','blockQuote'],_0x1a5dfa);return _0x3ccfde&&_0xee2764;}(_0x211bc1,this['editor']['model']['schema']));_0x2a9558=to(_0x49e35d,_0xeac70b['model']);}else{const _0x52f5a3=Array['from'](_0x429553['getSelectedBlocks']())['filter'](_0x2f2548=>oo(_0x2f2548));_0x2a9558=to(_0x52f5a3,_0xeac70b['model']);}_0xeac70b['model']['change'](()=>{for(const _0x4e897e of _0x2a9558)_0x2559f3['markBlockFormat'](_0x4e897e,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x10ebca}]});});}),_0x2559f3['descriptionFactory']['registerDescriptionCallback'](_0x2823f9=>{const {data:_0x571cf7}=_0x2823f9;if(_0x571cf7&&'blockQuote'==_0x571cf7['commandName']){const _0x1ba73f=o(_0x3dc1c8,'ELEMENT_BLOCK_QUOTE');return _0x571cf7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3dc1c8,'*Set\x20format:*\x20%0',_0x1ba73f)}:{'type':'format','content':o(_0x3dc1c8,'*Remove\x20format:*\x20%0',_0x1ba73f)};}});}}function oo(_0x151ae8){return'blockQuote'==_0x151ae8['parent']['name'];}class L extends _0x32d277{['afterInit'](){const _0x44f2e2=this['editor'],_0x5bdf7c=_0x44f2e2['locale'],_0x110949=_0x44f2e2['plugins']['get']('TrackChangesEditing');_0x44f2e2['plugins']['has']('BookmarkEditing')&&(_0x110949['enableCommand']('insertBookmark'),_0x110949['enableDefaultAttributesIntegration']('updateBookmark'),_0x110949['registerBlockAttribute']('bookmarkId'),_0x110949['descriptionFactory']['registerDescriptionCallback'](_0x50cbcc=>{if('insertion'!=_0x50cbcc['type']&&'deletion'!=_0x50cbcc['type']&&'attribute'!=_0x50cbcc['type'])return;const _0x121596=_0x50cbcc['getContainedElement']();if(null==_0x121596)return;if(!_0x121596['is']('element','bookmark'))return;const _0x3ee900=_0x121596['getAttribute']('bookmarkId');if('insertion'==_0x50cbcc['type'])return{'type':'insertion','content':o(_0x5bdf7c,'*Insert:*\x20%0','\x22'+_0x3ee900+'\x22\x20'+o(_0x5bdf7c,'ELEMENT_BOOKMARK'))};if('deletion'==_0x50cbcc['type'])return{'type':'deletion','content':o(_0x5bdf7c,'*Remove:*\x20%0','\x22'+_0x3ee900+'\x22\x20'+o(_0x5bdf7c,'ELEMENT_BOOKMARK'))};const {data:_0x37279e}=_0x50cbcc;if(!_0x37279e||'bookmarkId'!=_0x37279e['key'])return;return{'type':'format','content':o(_0x5bdf7c,'*Set\x20bookmark:*\x20%0','\x22'+_0x37279e['newValue']+'\x22')};}));}}class J extends _0x32d277{['afterInit'](){const _0x299b78=this['editor'];_0x299b78['plugins']['has']('CaseChange')&&(_0x299b78['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x299b78['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x299b78['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x32d277{['afterInit'](){const _0xf246c2=this['editor'];_0xf246c2['commands']['get']('ckbox')&&_0xf246c2['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x32d277{['afterInit'](){const _0x3d135d=this['editor'];if(!_0x3d135d['plugins']['has']('CodeBlock'))return;const _0x59a31d=_0x3d135d['plugins']['get']('TrackChangesEditing'),_0x31fef8=_0x3d135d['locale'],_0x19ff2d=_0x3d135d['config']['get']('codeBlock')['languages'],_0x5f1880=_0x3d135d['commands']['get']('codeBlock');_0x59a31d['enableCommand']('indentCodeBlock'),_0x59a31d['enableCommand']('outdentCodeBlock'),_0x59a31d['enableCommand']('codeBlock',(_0x3489b7,_0x16f2c1={})=>{const _0x2b0133=_0x3d135d['model'],_0x537c99=_0x3d135d['model']['document']['selection'],_0x2f0134=_0x16f2c1&&void 0x0!==_0x16f2c1['forceValue']?_0x16f2c1['forceValue']:!_0x5f1880['value'];let _0x4e664c;_0x16f2c1['language']||(_0x16f2c1['language']=_0x19ff2d[0x0]['language']),_0x4e664c=_0x2f0134?Array['from'](_0x537c99['getSelectedBlocks']())['filter'](_0x490563=>eo(_0x490563)||function(_0xb17ed7,_0x1ab9e2){if(_0xb17ed7['is']('rootElement')||_0x1ab9e2['isLimit'](_0xb17ed7))return!0x1;return _0x1ab9e2['checkChild'](_0xb17ed7['parent'],'codeBlock');}(_0x490563,_0x2b0133['schema'])):Array['from'](_0x537c99['getSelectedBlocks']())['filter'](_0x1f8189=>eo(_0x1f8189));const _0x4f0429=to(_0x4e664c,_0x2b0133);_0x2b0133['change'](()=>{for(const _0x15890f of _0x4f0429)_0x59a31d['markBlockFormat'](_0x15890f,{'commandName':'codeBlock','commandParams':[{..._0x16f2c1,'forceValue':_0x2f0134}],'formatGroupId':'blockName'});});}),(_0x59a31d['descriptionFactory']['registerElementLabel']('codeBlock',_0x5e4ca7=>o(_0x31fef8,'ELEMENT_CODE_BLOCK',_0x5e4ca7)),_0x59a31d['descriptionFactory']['registerDescriptionCallback'](_0x4499a2=>{if('formatBlock'!=_0x4499a2['type'])return;const _0xe224c9=_0x31fef8['t'],{data:_0x5a76bf}=_0x4499a2;if(!_0x5a76bf||'codeBlock'!=_0x5a76bf['commandName'])return;const _0xfcc7e0=_0x5a76bf['commandParams'][0x0]['language'],_0x5951d=_0xe224c9(_0x19ff2d['find'](_0x447d3e=>_0x447d3e['language']===_0xfcc7e0)['label'])['toLowerCase']();return _0x5a76bf['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x31fef8,'*Set\x20format:*\x20%0',o(_0x31fef8,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5951d+')')}:{'type':'format','content':o(_0x31fef8,'*Remove\x20format:*\x20%0',o(_0x31fef8,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4c6b34){return'codeBlock'==_0x4c6b34['name'];}class z extends _0x32d277{['afterInit'](){const _0x3ddf36=this['editor'];if(!_0x3ddf36['plugins']['has']('CommentsEditing'))return;_0x3ddf36['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x572181,_0x56ac81,_0x589b57){const _0x301512=[];for(const _0x444fb3 of _0x56ac81['getItems']())_0x444fb3['hasAttribute'](_0x572181)&&_0x301512['push'](_0x589b57['createRangeOn'](_0x444fb3));return _0x301512;}function De(_0x3163a0,_0x42c275,{showActiveMarker:_0x47321a=!0x0}={}){const _0x3178d9=_0x3163a0['plugins']['get']('TrackChangesEditing');return(_0xd96937,_0x1b26b6,_0x50b0f1)=>{if(!_0x50b0f1['consumable']['test'](_0x1b26b6['markerRange'],_0xd96937['name']))return;const _0x3bf2f6=_0x1b26b6['markerRange']['getWalker'](),_0x65b99a=_0x1b26b6['markerRange']['start'],_0x755913=_0x3163a0['model']['schema'];let _0x498a7b=null,_0x35ad86=null,_0x51165f=!0x1,_0x3d8fe4=!0x1;for(const _0x58c066 of _0x3bf2f6){const _0x426bc8=_0x58c066['item'];_0x51165f=_0x51165f||_0x755913['isContent'](_0x426bc8);const _0x3ce40a=_0x50b0f1['mapper']['toViewElement'](_0x426bc8);if(_0x3ce40a&&_0x3ce40a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x58c066['type']&&(_0x755913['isBlock'](_0x426bc8)&&!_0x755913['isLimit'](_0x426bc8)&&(_0x426bc8['nextSibling']||_0x65b99a['isAtEnd']?_0x498a7b&&_0x498a7b['parent']==_0x426bc8||(_0x498a7b=_0x426bc8,_0x4abde7(_0x58c066['previousPosition']),_0x3d8fe4=!0x0):_0x35ad86=_0x35ad86||_0x58c066['previousPosition']));}function _0x4abde7(_0x2b0c0a){const {authorId:_0x133165}=_0x3178d9['_splitMarkerName'](_0x1b26b6['markerName']),_0x12e7f2=_0x50b0f1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x42c275,'data-author-id':_0x133165}),_0x528624=_0x50b0f1['mapper']['toViewPosition'](_0x2b0c0a);_0x47321a&&_0x3178d9['activeMarkers']['includes'](_0x1b26b6['markerName'])&&_0x50b0f1['writer']['addClass']('ck-suggestion-marker--active',_0x12e7f2),_0x50b0f1['writer']['insert'](_0x528624,_0x12e7f2),_0x50b0f1['mapper']['bindElementToMarker'](_0x12e7f2,_0x1b26b6['markerName']);}_0x51165f||_0x3d8fe4||!_0x35ad86||_0x4abde7(_0x35ad86);};}class K extends _0x32d277{static get['requires'](){return[_0x4c5371];}['init'](){const _0x59c56b=this['editor'],_0x52c508=_0x59c56b['plugins']['get']('TrackChangesEditing');_0x52c508['enableCommand']('delete');const _0x1a768a=_0x59c56b['commands']['get']('deleteForward');_0x52c508['enableCommand']('deleteForward',(_0x28a10e,_0x28a84a={})=>{const _0xb7db70=_0x59c56b['model']['createSelection'](_0x59c56b['model']['document']['selection']);_0xb7db70['isCollapsed']&&_0x59c56b['model']['modifySelection'](_0xb7db70,{'direction':'forward','unit':_0x28a84a['unit']});const _0x2c3dbd=_0xb7db70['getFirstRange'](),_0x59ebf3=_0x14dd4f['fromRange'](_0x2c3dbd);let _0xb0bab6;_0x28a10e(_0x28a84a),_0xb0bab6='$graveyard'==_0x59ebf3['root']['rootName']?_0x59c56b['model']['createRange'](_0x2c3dbd['start']):_0x59c56b['model']['createRange'](_0x59ebf3['start'],_0x59ebf3['end']),_0x59ebf3['detach'](),_0x59c56b['model']['enqueueChange'](_0x1a768a['buffer']['batch'],_0x4c6512=>{_0x1a768a['buffer']['lock'](),_0x4c6512['setSelection'](_0x4c6512['createRange'](_0xb0bab6['end'])),_0x1a768a['buffer']['unlock']();});}),_0x59c56b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x59c56b,'merge'),{'priority':'high'}),_0x59c56b['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x27bdf2,_0x201bb9,_0x1e818f)=>{_0x1e818f['options']['showSuggestionHighlights']&&De(_0x59c56b,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x27bdf2,_0x201bb9,_0x1e818f);},{'priority':'high'}),_0x59c56b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1902a0,_0x2c3dad,_0x4c35f6)=>{const _0x3dc0ff=_0x4c35f6['mapper']['markerNameToElements'](_0x2c3dad['markerName']);if(_0x3dc0ff){for(const _0x55604d of _0x3dc0ff)_0x55604d['is']('uiElement')&&(_0x4c35f6['mapper']['unbindElementFromMarkerName'](_0x55604d,_0x2c3dad['markerName']),_0x4c35f6['writer']['remove'](_0x55604d));}},{'priority':'high'});}}class W extends _0x32d277{['afterInit'](){const _0x19de56=this['editor'];if(!_0x19de56['plugins']['has']('ListEditing'))return;const _0x44f395=_0x19de56['locale'],_0x5e03ad=_0x19de56['plugins']['get']('TrackChangesEditing'),_0x1bfe78=_0x19de56['plugins']['has']('TodoListEditing'),_0x1d70ea=!!_0x19de56['config']['get']('list.multiBlock');function _0x13f0a8(_0x1e65b8){return{'type':'format','content':''+o(_0x44f395,'*Set\x20format:*\x20%0',_0x1e65b8)};}function _0x3b4610(_0x3711f5){return{'type':'format','content':''+o(_0x44f395,'*Remove\x20format:*\x20%0',_0x3711f5)};}_0x5e03ad['enableDefaultAttributesIntegration']('numberedList'),_0x5e03ad['enableDefaultAttributesIntegration']('bulletedList'),_0x5e03ad['enableDefaultAttributesIntegration']('customNumberedList'),_0x5e03ad['enableDefaultAttributesIntegration']('customBulletedList'),_0x5e03ad['enableDefaultAttributesIntegration']('indentList'),_0x5e03ad['enableDefaultAttributesIntegration']('outdentList'),_0x5e03ad['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5e03ad['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5e03ad['registerBlockAttribute']('listItemId'),_0x5e03ad['registerBlockAttribute']('listType'),_0x5e03ad['registerBlockAttribute']('listIndent'),_0x1d70ea&&(_0x5e03ad['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5e03ad['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1bfe78&&(_0x5e03ad['enableDefaultAttributesIntegration']('todoList'),_0x5e03ad['enableDefaultAttributesIntegration']('checkTodoList'),_0x5e03ad['registerBlockAttribute']('todoListChecked'),_0x5e03ad['descriptionFactory']['registerDescriptionCallback'](_0x195cf3=>{const {data:_0x2027f5}=_0x195cf3;if(_0x2027f5&&'todoListChecked'==_0x2027f5['key'])return{'type':'format','content':_0x2027f5['newValue']?o(_0x44f395,'*Check\x20item*'):o(_0x44f395,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5bf56f=>{if(_0x5bf56f['batch']['isUndo'])return!0x1;let _0x2aff77=!0x1;const _0x1d633e=_0x5e03ad['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3747f5=>'todoListChecked'===_0x5e03ad['_getAttributeKey'](_0x3747f5));for(const _0x448e9a of _0x1d633e){'todo'!=_0x448e9a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5e03ad['_findSuggestions'](_0x448e9a['getFirstRange'](),'attribute')['find'](_0x50a25d=>'listType'===_0x5e03ad['_getAttributeKey'](_0x50a25d['suggestion']))||(_0x5bf56f['removeMarker'](_0x448e9a['getFirstMarker']()),_0x2aff77=!0x0));}return _0x2aff77;})),_0x5e03ad['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x44f395,'FORMAT_INDENT'));const _0x55f30c={'type':'format','content':''};_0x5e03ad['descriptionFactory']['registerDescriptionCallback'](_0xd2bb02=>{const {data:_0xd1af07}=_0xd2bb02;if(!_0xd1af07||'listType'!=_0xd1af07['key'])return;let _0x40b168=_0xd2bb02['head'];for(;_0x40b168;){if(_0x40b168['data']&&(('listStyle'==_0x40b168['data']['key']||'listMarkerStyle'==_0x40b168['data']['key'])&&(_0x40b168['data']['newValue']&&'default'!=_0x40b168['data']['newValue']||'default'!=_0x40b168['data']['oldValue']&&!_0xd1af07['newValue'])||!_0x1d70ea&&_0x40b168['data']['key']==m))return _0x55f30c;_0x40b168=_0x40b168['next'];}if(null==_0xd1af07['newValue'])switch(_0xd1af07['oldValue']){case'bulleted':return _0x3b4610(o(_0x44f395,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3b4610(o(_0x44f395,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3b4610(o(_0x44f395,'ELEMENT_TODO_LIST'));}switch(_0xd1af07['newValue']){case'bulleted':return _0x13f0a8(o(_0x44f395,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x13f0a8(o(_0x44f395,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x13f0a8(o(_0x44f395,'ELEMENT_TODO_LIST'));}}),_0x5e03ad['descriptionFactory']['registerDescriptionCallback'](_0x55d802=>{const {data:_0x155eaf}=_0x55d802;if(_0x155eaf&&'listIndent'==_0x155eaf['key'])return null==_0x155eaf['newValue']||null==_0x155eaf['oldValue']&&0x0==_0x155eaf['newValue']?_0x55f30c:void 0x0;}),_0x5e03ad['descriptionFactory']['registerDescriptionCallback'](_0x4871ea=>{if('attribute'!=_0x4871ea['type'])return;const {data:_0x48298f}=_0x4871ea;if(!_0x48298f||'listItemId'!=_0x48298f['key'])return;const _0x566cb0=Te(_0x4871ea);return'newValue'==_0x566cb0?{'type':'format','content':o(_0x44f395,'*Merge:*\x20list\x20item')}:'oldValue'==_0x566cb0?{'type':'format','content':o(_0x44f395,'*Split:*\x20list\x20item')}:_0x55f30c;}),_0x19de56['model']['document']['registerPostFixer'](_0x22be3b=>this['listItemIdFixer'](_0x22be3b)),_0x19de56['model']['document']['registerPostFixer'](_0x575b68=>this['noTrackChangesFixer'](_0x575b68)),_0x19de56['model']['document']['on']('change:data',(_0x2fa27e,_0x58f1dd)=>{if(_0x58f1dd['isUndo']||!_0x58f1dd['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2e3fbd){if(_0x2e3fbd['batch']['isUndo']||!_0x2e3fbd['batch']['isLocal'])return!0x1;let _0x4c7cd0=!0x1;const _0x30a964=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3a6cec=>_0x3a6cec['data']&&'listItemId'==_0x3a6cec['data']['key'])['filter'](_0x40f6a7=>_0x40f6a7['data']['newValue']&&_0x40f6a7['data']['oldValue']);for(const _0x38fac2 of _0x30a964)Te(_0x38fac2)||(_0x2e3fbd['removeMarker'](_0x38fac2['getFirstMarker']()),_0x4c7cd0=!0x0);return _0x4c7cd0;}['noTrackChangesFixer'](_0x480fb3){if(_0x480fb3['batch']['isUndo']||!_0x480fb3['batch']['isLocal'])return!0x1;const _0xeaef08=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xeaef08['trackChangesCommand']['value'])return!0x1;let _0x222c68=!0x1;const _0x33c8e8=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x23ef13=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4630e1=>'attribute'==_0x4630e1['type'])['filter'](_0x26a235=>_0x33c8e8['includes'](_0x26a235['attributeKey']));if(0x0==_0x23ef13['length'])return _0x222c68;for(const _0x14b7c4 of _0x23ef13){const _0x1155ef=_0xeaef08['_findSuggestions'](_0x14b7c4['range'],'attribute')['filter'](_0x426fdd=>!_0x426fdd['meta']['isNextTo'])['map'](_0xccfe25=>_0xccfe25['suggestion'])['filter'](_0x4a0a3c=>{const _0x3e2f05=_0xeaef08['_getAttributeKey'](_0x4a0a3c);return _0x33c8e8['includes'](_0x3e2f05);});if(_0x1155ef['length']){for(const _0x2cd03e of _0x1155ef)_0x480fb3['removeMarker'](_0x2cd03e['getFirstMarker']());_0x222c68=!0x0;}}return _0x222c68;}['assureChains'](){const _0x3737f9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x37df11=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xc421fe;const _0x5c64ba=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4303e0=>{if(_0x4303e0['data']['oldRange']||!_0x4303e0['data']['newRange'])return null;if(!_0x4303e0['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x52c10a}=_0x3737f9['_splitMarkerName'](_0x4303e0['name']);if(!_0x3737f9['hasSuggestion'](_0x52c10a))return null;const _0x1b4e9a=_0x3737f9['getSuggestion'](_0x52c10a);return _0x37df11['includes'](_0x1b4e9a['data']['key']);})['map'](_0xc25f86=>{const {id:_0x5b3256}=_0x3737f9['_splitMarkerName'](_0xc25f86['name']),_0x1d2c30=_0x3737f9['getSuggestion'](_0x5b3256);return _0xc421fe=_0x1d2c30['attributes']['groupId'],_0x1d2c30['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5c64ba['size'])return;const _0x4b08c8=_0x3737f9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xba538f=>'attribute'==_0xba538f['type']&&_0xba538f['data']&&_0x37df11['includes'](_0xba538f['data']['key'])&&_0xba538f['attributes']['groupId']!=_0xc421fe)['map'](_0x21630e=>({'listItem':_0x21630e['getFirstRange']()['start']['nodeAfter'],'groupId':_0x21630e['attributes']['groupId']})),_0x51cac8=new Set();for(const {groupId:_0x55a4c2,listItem:_0x88825b}of _0x4b08c8)_0x5c64ba['has'](_0x88825b)&&_0x51cac8['add'](_0x55a4c2);for(const _0x46a6ec of _0x3737f9['getSuggestions']())_0x51cac8['has'](_0x46a6ec['attributes']['groupId'])&&_0x46a6ec['setAttribute']('groupId',_0xc421fe);}['_supportLegacySuggestions'](){const _0x109305=this['editor'],_0x18fd80=_0x109305['locale'],_0x14c5cf=_0x109305['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x14c5cf['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1ffb44,_0x3b1131){const _0x31d413=[];for(let _0x345500 of _0x1ffb44)_0x345500['start']['nodeAfter']===_0x345500['end']['parent']&&(_0x345500=_0x109305['model']['createRange'](_0x109305['model']['createPositionAt'](_0x345500['start']['nodeAfter'],0x0))),_0x31d413['push'](_0x345500);_0x109305['model']['change'](_0x4ca0b7=>{const _0x3a3572=_0x109305['model']['document']['selection'],_0x1b534f=Array['from'](_0x3a3572['getRanges']())['map'](_0x579529=>_0x14dd4f['fromRange'](_0x579529));_0x4ca0b7['setSelection'](_0x31d413),_0x109305['commands']['get'](_0x3b1131['commandName'])['refresh'](),_0x3b1131['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x109305['execute'](_0x3b1131['commandName'],..._0x3b1131['commandParams']),_0x4ca0b7['setSelection'](_0x1b534f);for(const _0x1f242a of _0x1b534f)_0x1f242a['detach']();});}),_0x14c5cf['descriptionFactory']['registerElementLabel'](function(_0x55ef69){const _0x3d5a80=!_0x109305['model']['schema']['isObject'](_0x55ef69),_0x2261f1=_0x55ef69['previousSibling'],_0x464bb5=_0x55ef69['nextSibling'],_0xfef34e=_0x55ef69['getAttribute']('listItemId'),_0x5ea3d9=!_0x2261f1||_0x2261f1['getAttribute']('listItemId')!==_0xfef34e,_0x2cced5=!_0x464bb5||_0x464bb5['getAttribute']('listItemId')!==_0xfef34e;return _0x3d5a80&&Boolean(_0xfef34e)&&_0x5ea3d9&&_0x2cced5;},_0x33f141=>o(_0x18fd80,'ELEMENT_LIST_ITEM',_0x33f141));}['_registerLegacyDescription'](){const _0x3c61ed=this['editor'],_0x68990f=_0x3c61ed['locale'];function _0x5be3c3(_0x3d6a1a){const _0x266d95=_0x3c61ed['commands']['get']('bulletedList')['value'],_0x34be82=_0x3c61ed['commands']['get']('numberedList')['value'];return'numberedList'===_0x3d6a1a?_0x266d95:_0x34be82;}_0x3c61ed['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5d2481){if('formatBlock'!=_0x5d2481['type'])return;const {data:_0x570af9}=_0x5d2481;if(!_0x570af9)return;let _0x911850,_0x2fd532,_0xde4350,_0x153db8;switch(_0x570af9['commandName']){case'bulletedList':_0xde4350=_0x570af9['commandParams'][0x0]['forceValue'],_0x153db8=_0x5be3c3(_0x570af9['commandName']),_0x911850=_0xde4350?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x153db8&&_0x3c61ed['config']['get']('list.multiBlock')||(_0x911850='*Change\x20to:*\x20%0'),_0x2fd532={'type':'format','content':o(_0x68990f,_0x911850,o(_0x68990f,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xde4350=_0x570af9['commandParams'][0x0]['forceValue'],_0x153db8=_0x5be3c3(_0x570af9['commandName']),_0x911850=_0xde4350?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x153db8&&_0x3c61ed['config']['get']('list.multiBlock')||(_0x911850='*Change\x20to:*\x20%0'),_0x2fd532={'type':'format','content':o(_0x68990f,_0x911850,o(_0x68990f,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x911850='*Indent:*\x20%0',_0x2fd532={'type':'format','content':o(_0x68990f,_0x911850,o(_0x68990f,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x911850=function(_0x45f9c8){const _0x33e329=_0x45f9c8['getFirstRange']();let _0x1e4f8e=_0x33e329['start']['nodeAfter'];for(;_0x1e4f8e&&_0x33e329['containsItem'](_0x1e4f8e);){if(_0x1e4f8e['getAttribute']('listIndent')>0x0)return!0x1;_0x1e4f8e=_0x1e4f8e['nextSibling'];}return!0x0;}(_0x5d2481)?o(_0x68990f,'*Format:*\x20remove\x20from\x20%0',o(_0x68990f,function(_0x3ccb8c){return'ELEMENT_'+_0x3ccb8c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5d2481))):o(_0x68990f,'*Outdent:*\x20%0',o(_0x68990f,'ELEMENT_LIST_ITEM')),_0x2fd532={'type':'format','content':_0x911850};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x570af9['multipleBlocks']&&(_0x911850='*Merge:*\x20%0',_0x2fd532={'type':'deletion','content':o(_0x68990f,_0x911850,o(_0x68990f,'ELEMENT_LIST_ITEM'))});}return _0x2fd532;});}}function Te(_0x57b144){let _0x52e323=_0x57b144['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x52e323;){const _0x9619f3=_0x52e323['getAttribute']('listItemId');if(!_0x9619f3)return!0x1;if(_0x9619f3==_0x57b144['data']['newValue'])return'newValue';if(_0x9619f3==_0x57b144['data']['oldValue'])return'oldValue';_0x52e323=_0x52e323['previousSibling'];}return!0x1;}class Se extends _0x32d277{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x324721=this['editor']['config']['get']('list.properties'),_0x3b17c5=this['editor']['plugins']['get']('TrackChangesEditing');_0x324721['styles']&&(_0x3b17c5['enableDefaultAttributesIntegration']('listStyle'),_0x3b17c5['registerBlockAttribute']('listStyle')),_0x324721['reversed']&&(_0x3b17c5['enableDefaultAttributesIntegration']('listReversed'),_0x3b17c5['registerBlockAttribute']('listReversed')),_0x324721['startIndex']&&(_0x3b17c5['enableDefaultAttributesIntegration']('listStart'),_0x3b17c5['registerBlockAttribute']('listStart'));const _0x4abe1b={'type':'format','content':''};_0x3b17c5['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4ffe4b=this['editor']['locale'];_0x3b17c5['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4ffe4b,'FORMAT_LIST_REVERSED')),_0x3b17c5['descriptionFactory']['registerDescriptionCallback'](_0x37ac45=>{const {data:_0x6e28f3}=_0x37ac45;if(_0x6e28f3&&'listReversed'==_0x6e28f3['key'])return null==_0x6e28f3['newValue']||0x0==_0x6e28f3['newValue']&&null==_0x6e28f3['oldValue']?_0x4abe1b:void 0x0;}),_0x3b17c5['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4ffe4b,'FORMAT_LIST_START')),_0x3b17c5['descriptionFactory']['registerDescriptionCallback'](_0x47b4cf=>{const {data:_0x2e65f5}=_0x47b4cf;if(_0x2e65f5&&'listStart'==_0x2e65f5['key'])return null==_0x2e65f5['newValue']||0x1==_0x2e65f5['newValue']&&null==_0x2e65f5['oldValue']?_0x4abe1b:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x14715a=>{if(_0x14715a['batch']['isUndo'])return!0x1;let _0x479b01=!0x1;const _0x42764e=_0x3b17c5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5ba884=>{const _0x4d21c5=_0x3b17c5['_getAttributeKey'](_0x5ba884);return'listStart'==_0x4d21c5||'listReversed'==_0x4d21c5;});for(const _0x59c9c5 of _0x42764e){const _0x3bd771=_0x59c9c5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3bd771||'customNumbered'==_0x3bd771)continue;_0x3b17c5['_findSuggestions'](_0x59c9c5['getFirstRange'](),'attribute')['find'](_0xac7c8a=>'listType'==_0x3b17c5['_getAttributeKey'](_0xac7c8a['suggestion']))||(_0x14715a['removeMarker'](_0x59c9c5['getFirstMarker']()),_0x479b01=!0x0);}return _0x479b01;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2cc41d){const _0x11dc63=this['editor']['locale'],{data:_0x21ab34}=_0x2cc41d,_0x4f9f84={'type':'format','content':''};if(!_0x21ab34||'listStyle'!=_0x21ab34['key'])return;if(!_0x21ab34['oldValue'])return'default'==_0x21ab34['newValue']?_0x4f9f84:{'type':'format','content':''+o(_0x11dc63,'*Set\x20format:*\x20%0',o(_0x11dc63,this['_getTranslationKeyForListStyle'](_0x21ab34['newValue'])))};if(!_0x21ab34['newValue']){if('default'==_0x21ab34['oldValue'])return _0x4f9f84;let _0x3823b6=_0x2cc41d['head'];for(;_0x3823b6;){if(_0x3823b6['data']&&'listType'==_0x3823b6['data']['key']&&_0x3823b6['data']['newValue'])return _0x4f9f84;_0x3823b6=_0x3823b6['next'];}return{'type':'format','content':''+o(_0x11dc63,'*Remove\x20format:*\x20%0',o(_0x11dc63,this['_getTranslationKeyForListStyle'](_0x21ab34['oldValue'])))};}if('default'!=_0x21ab34['newValue'])return{'type':'format','content':''+o(_0x11dc63,'*Set\x20format:*\x20%0',o(_0x11dc63,this['_getTranslationKeyForListStyle'](_0x21ab34['newValue'])))};let _0x3aef28=_0x2cc41d['head'];for(;_0x3aef28;){if(_0x3aef28['data']&&'listType'==_0x3aef28['data']['key']&&_0x3aef28['data']['newValue']&&_0x3aef28['data']['oldValue'])return _0x4f9f84;_0x3aef28=_0x3aef28['next'];}return{'type':'format','content':o(_0x11dc63,'*Set\x20format:*\x20%0',o(_0x11dc63,'ELEMENT_'+_0x2cc41d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x491cc5=this['editor'],_0x387907=_0x491cc5['locale'];_0x491cc5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28a8af=>{if('formatBlock'!=_0x28a8af['type'])return;const {data:_0x1ee152}=_0x28a8af;if(!_0x1ee152)return;let _0x4602a3,_0x274e98;switch(_0x1ee152['commandName']){case'listStyle':_0x4602a3='*Change\x20to:*\x20%0',_0x274e98={'type':'format','content':o(_0x387907,_0x4602a3,o(_0x387907,this['_getTranslationKeyForListStyle'](_0x1ee152['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4602a3=_0x1ee152['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x274e98={'type':'format','content':o(_0x387907,_0x4602a3)};break;case'listStart':_0x4602a3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x274e98={'type':'format','content':o(_0x387907,_0x4602a3,_0x1ee152['commandParams'][0x0]['startIndex'])};}return _0x274e98;});}['_getTranslationKeyForListStyle'](_0x5dd8b4){return'ELEMENT_'+function(_0x37be40){if(_e['includes'](_0x37be40))return'bulleted';if(Re['includes'](_0x37be40))return'numbered';return null;}(_0x5dd8b4)['toUpperCase']()+'_LIST_'+_0x5dd8b4['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x32d277{static get['requires'](){return[_0xc65384];}['init'](){const _0x1a1d95=this['editor'],_0x2bc819=_0x1a1d95['plugins']['get']('TrackChangesEditing'),_0xef40a3=_0x1a1d95['commands']['get']('enter');_0x2bc819['enableCommand']('enter',()=>{_0x1a1d95['model']['change'](_0x3d1b17=>{const _0x291c4e=_0x1a1d95['model']['document']['selection'],_0x21609a=_0x291c4e['getFirstPosition'](),_0xa34627=_0x14dd4f['fromRange'](_0x291c4e['getFirstRange']());if(_0xef40a3['enterBlock'](_0x3d1b17)){const _0x5776e7=_0x1a1d95['model']['createPositionAt'](_0x21609a['parent']['nextSibling'],0x0),_0x15641b=_0x3d1b17['createRange'](_0x21609a,_0x5776e7);_0x2bc819['markInsertion'](_0x15641b);}else _0x3d1b17['setSelection'](_0x3d1b17['createRange'](_0xa34627['end']));_0xa34627['detach'](),_0xef40a3['fire']('afterExecute',{'writer':_0x3d1b17});});}),_0x1a1d95['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x1a1d95,'split'),{'priority':'high'}),_0x1a1d95['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0xada386,_0x800653,_0x185983)=>{const _0x5e0dad=_0x185983['mapper']['markerNameToElements'](_0x800653['markerName']);if(_0x5e0dad){for(const _0x187c9c of _0x5e0dad)_0x187c9c['hasClass']('ck-suggestion-marker-split')&&(_0x185983['mapper']['unbindElementFromMarkerName'](_0x187c9c,_0x800653['markerName']),_0x185983['writer']['remove'](_0x187c9c));}},{'priority':'high'}),_0x1a1d95['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2b8102,_0x5ba37e,_0x350aed)=>{_0x350aed['options']['showSuggestionHighlights']&&De(_0x1a1d95,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x2b8102,_0x5ba37e,_0x350aed);},{'priority':'high'});}}class Y extends _0x32d277{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x460912=this['editor']['plugins']['get']('TrackChangesEditing');_0x460912['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x460912['enableCommand']('findNext'),_0x460912['enableCommand']('findPrevious'),_0x460912['enableCommand']('replace'),_0x460912['enableCommand']('replaceAll');}['handleFindCommand'](_0x1a7fc9,_0x43ecd7,_0xe43343={}){const _0x28bdb4=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1a7fc9(_0x539307=>{let _0x141d86=('string'==typeof _0x43ecd7?_0x28bdb4['findByTextCallback'](_0x43ecd7,_0xe43343):_0x43ecd7)(_0x539307);Array['isArray'](_0x141d86)&&(_0x141d86={'results':_0x141d86,'searchText':'string'==typeof _0x43ecd7?_0x43ecd7:''});const _0x3e3314=_0x141d86['results']['filter'](_0xfcfbbf=>!0x1===this['_isInDeletionRange'](_0xfcfbbf,_0x539307['item']));return{..._0x141d86,'results':_0x3e3314};},_0xe43343);}['_isInDeletionRange'](_0x52b076,_0x1993fe){const _0x5cb9cd=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1993fe,_0x52b076['start']),this['editor']['model']['createPositionAt'](_0x1993fe,_0x52b076['end']));for(const _0x543838 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5cb9cd['getIntersection'](_0x543838['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x32d277{['afterInit'](){const _0x4a29be=this['editor']['locale'],_0x395033=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4101f0,commandName:_0x2c6d64}of ro)this['editor']['plugins']['has'](_0x4101f0)&&(_0x395033['enableDefaultAttributesIntegration'](_0x2c6d64),_0x395033['registerInlineAttribute'](_0x2c6d64));_0x395033['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4a29be,'FORMAT_FONT_SIZE')),_0x395033['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4a29be,'FORMAT_FONT_FAMILY')),_0x395033['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4a29be,'FORMAT_FONT_COLOR')),_0x395033['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4a29be,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3758e5=this['editor'],_0x35370f=_0x3758e5['locale'];_0x3758e5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42ae71=>{const _0x4940af=_0x35370f['t'];if('formatInline'!=_0x42ae71['type'])return;const {data:_0x271765}=_0x42ae71;if(null!=_0x271765){if('fontSize'==_0x271765['commandName']){const _0x2ca4ec=_0x271765['commandParams'][0x0]['value'];if(_0x2ca4ec){const _0x491030=_0x4940af(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5a817a=>_0x5a817a['model']==_0x2ca4ec)['title'])['toLowerCase']();return{'type':'format','content':o(_0x35370f,'*Set\x20font\x20size:*\x20%0',_0x491030)};}return{'type':'format','content':o(_0x35370f,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x271765['commandName']){const _0x15f9a5=_0x271765['commandParams'][0x0]['value'];return _0x15f9a5?{'type':'format','content':o(_0x35370f,'*Set\x20font\x20family:*\x20%0',_0x15f9a5)}:{'type':'format','content':o(_0x35370f,'*Reset\x20font\x20family*')};}if('fontColor'==_0x271765['commandName']){const _0x558705=_0x271765['commandParams'][0x0]['value'];if(_0x558705){const _0x6c11e=_0x9dac81(this['editor']['config']['get']('fontColor.colors'))['find'](_0x51699a=>_0x51699a['model']==_0x558705);let _0xe74109=_0x558705,_0x1dd66e='';return _0x6c11e&&(_0xe74109=_0x6c11e['label'],_0x1dd66e=_0x4940af(_0xe74109)['toLowerCase']()),{'type':'format','content':o(_0x35370f,'*Set\x20font\x20color:*\x20%0',_0x1dd66e)['trim'](),'color':{'value':_0x558705,'title':_0x1dd66e||_0xe74109}};}return{'type':'format','content':o(_0x35370f,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x271765['commandName']){const _0x3ef7e2=_0x271765['commandParams'][0x0]['value'];if(_0x3ef7e2){const _0x45456d=_0x9dac81(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x472035=>_0x472035['model']==_0x3ef7e2);let _0x6c69f0=_0x3ef7e2,_0x4e626b='';return _0x45456d&&(_0x6c69f0=_0x45456d['label'],_0x4e626b=_0x4940af(_0x6c69f0)['toLowerCase']()),{'type':'format','content':o(_0x35370f,'*Set\x20font\x20background\x20color:*\x20%0',_0x4e626b)['trim'](),'color':{'value':_0x3ef7e2,'title':_0x4e626b||_0x6c69f0}};}return{'type':'format','content':o(_0x35370f,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x32d277{['afterInit'](){const _0x309d29=this['editor'],_0x22eb85=_0x309d29['plugins']['get']('TrackChangesEditing'),_0x35ef7f=_0x309d29['commands']['get']('copyFormat'),_0x1a4c57=_0x309d29['commands']['get']('pasteFormat');_0x35ef7f&&_0x1a4c57&&(_0x22eb85['enableDefaultAttributesIntegration']('pasteFormat'),_0x22eb85['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2763b6=this['editor'],_0x186671=_0x2763b6['locale'];_0x2763b6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a76c2=>{if('formatBlock'!=_0x1a76c2['type']&&'formatInline'!=_0x1a76c2['type'])return;const {data:_0x18f202}=_0x1a76c2;if(_0x18f202&&'pasteFormat'===_0x18f202['commandName']){const _0x40d35c=[],_0x3c354e=_0x18f202['commandParams'][0x0];for(const [_0x4dfbb2,_0x596099]of Object['entries'](_0x3c354e))_0x40d35c['push'](so(_0x2763b6,_0x4dfbb2,_0x596099));return _0x40d35c['length']?{'type':'format','content':o(_0x186671,'*Set\x20format\x20to:*\x20%0',_0x40d35c['join'](',\x20'))}:{'type':'format','content':o(_0x186671,'*Remove\x20all\x20formatting*')};}});}}function so(_0xa76cd,_0x371257,_0x5a8287){const _0x496d3f=_0xa76cd['locale']['t'],_0x38b466=_0x371257['split'](/(?=[A-Z])/)['join']('\x20'),_0x1c514b=_0x496d3f(_0x38b466['charAt'](0x0)['toUpperCase']()+_0x38b466['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5a8287)return _0x1c514b;if('fontColor'===_0x371257||'fontBackgroundColor'===_0x371257){const _0xa3a7fb=_0x9dac81(_0xa76cd['config']['get']('fontColor.colors'))['find'](_0x33b60b=>_0x33b60b['model']==_0x5a8287);return _0x1c514b+'\x20('+(_0xa3a7fb?_0x496d3f(_0xa3a7fb['label'])['toLowerCase']():_0x5a8287)+')';}if('fontSize'===_0x371257&&isNaN(parseFloat(_0x5a8287))){const _0x22f4b6=_0xa76cd['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xa76cd['config']['get']('fontSize.options'))['find'](_0x1fe36e=>_0x1fe36e['model']==_0x5a8287);return _0x1c514b+'\x20('+(_0x22f4b6?_0x496d3f(_0x22f4b6['title'])['toLowerCase']():_0x5a8287)+')';}return _0x1c514b+'\x20('+_0x5a8287+')';}class nt extends _0x32d277{['_headingOptions'];['afterInit'](){const _0x55e319=this['editor'];if(!_0x55e319['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x55e319['config']['get']('heading.options');const _0x2e28df=_0x55e319['locale'],_0x4c6d89=_0x55e319['plugins']['get']('TrackChangesEditing');_0x4c6d89['enableDefaultAttributesIntegration']('heading');for(const _0x477618 of this['_headingOptions'])'paragraph'!=_0x477618['model']&&_0x4c6d89['descriptionFactory']['registerElementLabel'](_0x477618['model'],_0x4a97b2=>{const _0x525d3b=this['_getHeadingLevel'](_0x477618['model']);return null!==_0x525d3b?_0x475128(_0x4a97b2,_0x525d3b):_0x4bb9d2(_0x4a97b2,_0x477618['title']);});function _0x475128(_0xf49c47,_0x9f5e45){return o(_0x2e28df,'ELEMENT_HEADING',[_0xf49c47,_0x9f5e45]);}function _0x4bb9d2(_0x1d07f5,_0x58ec2e){return o(_0x2e28df,'ELEMENT_HEADING_CUSTOM',[_0x1d07f5,_0x58ec2e]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x927245=this['editor'],_0x3503ed=_0x927245['locale'];function _0x18b1b9(_0x23c607,_0x40a6b4){return o(_0x3503ed,'ELEMENT_HEADING_CUSTOM',[_0x23c607,_0x40a6b4]);}_0x927245['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x72f655=>{if('formatBlock'!=_0x72f655['type'])return;const {data:_0x2aee2f}=_0x72f655;if(_0x2aee2f&&'heading'==_0x2aee2f['commandName']){const _0x21e00c=_0x2aee2f['commandParams'][0x0]['value'],_0x9c87b1=this['_getHeadingLevel'](_0x21e00c);if(null!==_0x9c87b1)return{'type':'format','content':o(_0x3503ed,'*Change\x20to:*\x20%0',(_0x5aa635=0x1,_0x1bc03b=_0x9c87b1,o(_0x3503ed,'ELEMENT_HEADING',[_0x5aa635,_0x1bc03b])))};const _0x44d6de=this['_headingOptions']['find'](_0x2c6f36=>_0x2c6f36['model']===_0x21e00c)['title'];return{'type':'format','content':o(_0x3503ed,'*Change\x20to:*\x20%0',_0x18b1b9(0x1,_0x44d6de))};}var _0x5aa635,_0x1bc03b;});}['_getHeadingLevel'](_0x555e7d){const _0x36343d=_0x555e7d['match'](/^heading(\d+)/);if(_0x36343d)return _0x36343d[0x1];const _0x147785=this['_headingOptions']?.['find'](_0x21a8d5=>_0x21a8d5['model']==_0x555e7d);if(_0x147785&&_0x147785['view']){const _0x4bff1a=_0x147785['view'],_0x3c7c5a=(_0x4bff1a['name']??_0x4bff1a)['match'](/^h(\d+)/);if(_0x3c7c5a)return _0x3c7c5a[0x1];}return null;}}class it extends _0x32d277{['afterInit'](){const _0x1fd659=this['editor'];if(!_0x1fd659['plugins']['has']('HighlightEditing'))return;const _0x4e541a=_0x1fd659['plugins']['get']('TrackChangesEditing'),_0x5463da=_0x1fd659['locale'];_0x4e541a['enableDefaultAttributesIntegration']('highlight'),_0x4e541a['registerInlineAttribute']('highlight'),_0x4e541a['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5463da,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1fc46d=this['editor'],_0x3f0e80=_0x1fc46d['locale'];_0x1fc46d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2547d2=>{if('formatInline'!=_0x2547d2['type'])return;const {data:_0x130a06}=_0x2547d2;if(_0x130a06&&'highlight'==_0x130a06['commandName']){const _0x1ba02b=_0x3f0e80['t'],_0x422730=_0x130a06['commandParams'][0x0]['value'];if(_0x422730){const _0x5f4829=_0x1fc46d['config']['get']('highlight.options')['find'](_0x35c3bc=>_0x35c3bc['model']==_0x422730),_0x3925c1=_0x1ba02b(_0x5f4829['title'])['toLowerCase']();return{'type':'format','content':o(_0x3f0e80,'*Set\x20highlight:*\x20%0',_0x3925c1),'color':{'value':_0x5f4829['color'],'title':_0x5f4829['title']}};}return{'type':'format','content':o(_0x3f0e80,'*Remove\x20highlight*',o(_0x3f0e80,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x32d277{['afterInit'](){const _0xbf3d74=this['editor'];if(!_0xbf3d74['plugins']['has']('HorizontalLineEditing'))return;_0xbf3d74['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x21e9d6=_0xbf3d74['plugins']['get']('TrackChangesEditing'),_0x22b380=_0xbf3d74['locale'];_0x21e9d6['descriptionFactory']['registerElementLabel']('horizontalLine',_0xd5bb2d=>o(_0x22b380,'ELEMENT_HORIZONTAL_LINE',_0xd5bb2d)),_0xbf3d74['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5ed6cb,{writer:_0x1828d6,options:_0x54049e})=>{if(!_0x54049e['showSuggestionHighlights'])return null;const _0x46865b=_0x1828d6['createContainerElement']('div'),_0x26a9e5=_0x1828d6['createEmptyElement']('hr');return _0x1828d6['addClass']('ck-horizontal-line',_0x46865b),_0x1828d6['insert'](_0x1828d6['createPositionAt'](_0x46865b,0x0),_0x26a9e5),_0x46865b;},'converterPriority':'high'});}}class st extends _0x32d277{['afterInit'](){const _0x5c8a2b=this['editor'];if(!_0x5c8a2b['plugins']['has']('HtmlEmbed'))return;const _0x1de44c=_0x5c8a2b['plugins']['get']('TrackChangesEditing'),_0x1c28e1=_0x5c8a2b['locale'];_0x1de44c['descriptionFactory']['registerElementLabel']('rawHtml',_0x50615a=>o(_0x1c28e1,'ELEMENT_HTML_EMBED',_0x50615a)),_0x1de44c['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1de44c['registerBlockAttribute']('value'),_0x1de44c['descriptionFactory']['registerDescriptionCallback'](_0x1994fc=>{if('attribute'!=_0x1994fc['type'])return;const {data:_0x3dda3b}=_0x1994fc;if(_0x3dda3b&&'value'==_0x3dda3b['key']&&_0x1994fc['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x67ed86=o(_0x1c28e1,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1c28e1,'*Change\x20%0\x20content*',_0x67ed86)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31940a=this['editor'],_0x40b6c3=_0x31940a['locale'];_0x31940a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4eadd4=>{if('formatBlock'!=_0x4eadd4['type'])return;const {data:_0x294240}=_0x4eadd4;if(_0x294240&&'htmlEmbed'==_0x294240['commandName']){const _0x4af025=o(_0x40b6c3,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x40b6c3,'*Change\x20%0\x20content*',_0x4af025)};}});}}class ot extends _0x32d277{['afterInit'](){const _0x49ba12=this['editor'];if(!_0x49ba12['plugins']['has']('ImageEditing'))return;const _0x101bee=_0x49ba12['plugins']['get']('TrackChangesEditing'),_0x556d7e=_0x49ba12['plugins']['get']('ImageUtils'),_0x17836a=_0x49ba12['locale'];_0x101bee['enableCommand']('insertImage'),_0x101bee['descriptionFactory']['registerElementLabel']('imageBlock',_0x216e29=>o(_0x17836a,'ELEMENT_IMAGE',_0x216e29)),_0x101bee['descriptionFactory']['registerElementLabel']('imageInline',_0x1e1fad=>o(_0x17836a,'ELEMENT_INLINE_IMAGE',_0x1e1fad)),_0x101bee['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x17836a,'ELEMENT_CAPTION')),_0x49ba12['plugins']['has']('ImageUploadEditing')&&_0x101bee['enableCommand']('uploadImage'),_0x49ba12['plugins']['has']('ImageBlockEditing')&&_0x49ba12['plugins']['has']('ImageInlineEditing')&&(_0x101bee['enableCommand']('imageTypeInline',(_0x49d577,_0x650116)=>{const _0x53e826=_0x556d7e['getClosestSelectedImageElement'](_0x49ba12['model']['document']['selection']);_0x49ba12['model']['change'](()=>{_0x101bee['markBlockFormat'](_0x53e826,{'commandName':'imageTypeInline','commandParams':[_0x650116]},[],'convertBlockImageToInline');});}),_0x101bee['enableCommand']('imageTypeBlock',(_0x551d6a,_0x342aea)=>{_0x49ba12['model']['change'](_0x1fd227=>{let _0x29fd15=_0x556d7e['getClosestSelectedImageElement'](_0x49ba12['model']['document']['selection']),_0x37a2ba=_0x1fd227['createRangeOn'](_0x29fd15);const _0x22056a=_0x1adf65['fromPosition'](_0x37a2ba['start'],'toPrevious'),_0x5c23c1=_0x1adf65['fromPosition'](_0x37a2ba['end'],'toNext');_0x101bee['forceDefaultExecution'](()=>_0x551d6a(_0x342aea)),_0x29fd15=_0x556d7e['getClosestSelectedImageElement'](_0x49ba12['model']['document']['selection']),_0x37a2ba=_0x1fd227['createRangeOn'](_0x29fd15);const _0x546865=_0x1fd227['createRange'](_0x22056a,_0x5c23c1);_0x22056a['detach'](),_0x5c23c1['detach'](),_0x101bee['markBlockFormat'](_0x29fd15,{'commandName':'imageTypeInline','commandParams':[_0x342aea]},[],'convertInlineImageToBlock'),_0x546865['start']['isBefore'](_0x37a2ba['start'])&&_0x101bee['markInsertion'](_0x1fd227['createRange'](_0x546865['start'],_0x37a2ba['start']),'convertInlineImageToBlock'),_0x37a2ba['end']['isBefore'](_0x546865['end'])&&_0x101bee['markInsertion'](_0x1fd227['createRange'](_0x37a2ba['end'],_0x546865['end']),'convertInlineImageToBlock');});}),_0x101bee['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x101bee['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x101bee['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x101bee['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x101bee['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x101bee['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1555b8])=>{const _0x179223=_0x101bee['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2daabc=_0x1555b8['start'],_0x41f816=_0x1555b8['end'];const _0x3900b8=_0x49ba12['model']['schema']['getNearestSelectionRange'](_0x2daabc,'backward'),_0x2bb3c7=_0x49ba12['model']['schema']['getNearestSelectionRange'](_0x41f816,'forward');_0x3900b8['isCollapsed']&&(_0x2daabc=_0x3900b8['start']),_0x2bb3c7['isCollapsed']&&(_0x41f816=_0x2bb3c7['end']),_0x179223([_0x49ba12['model']['createRange'](_0x2daabc,_0x41f816)]);}),_0x101bee['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3716a6),_0x101bee['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3716a6)),_0x49ba12['plugins']['has']('ImageCaptionEditing')&&(_0x101bee['enableCommand']('toggleImageCaption',(_0x3e42a5,_0x41bdbd)=>{const _0x422dfa=_0x49ba12['plugins']['get']('ImageCaptionUtils');let _0x2dc42b=_0x556d7e['getClosestSelectedImageElement'](_0x49ba12['model']['document']['selection']),_0x5d477f=_0x422dfa['getCaptionFromImageModelElement'](_0x2dc42b);_0x49ba12['model']['change'](()=>{if(_0x5d477f)return void _0x101bee['markDeletion'](_0x49ba12['model']['createRangeOn'](_0x5d477f));const _0x18a239=_0x556d7e['isBlockImage'](_0x2dc42b);_0x3e42a5(_0x41bdbd),_0x2dc42b=_0x556d7e['getClosestSelectedImageElement'](_0x49ba12['model']['document']['selection']),_0x5d477f=_0x422dfa['getCaptionFromImageModelElement'](_0x2dc42b),_0x101bee['markInsertion'](_0x49ba12['model']['createRangeOn'](_0x5d477f),_0x18a239?null:'imageCaption');});}),_0x101bee['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3716a6));const _0x5583de=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4d615e(_0x1d9e1d,_0x3df6e4){const _0x3bb64b=_0x5583de['findIndex'](({type:_0x1ffef2,subType:_0x40ee65})=>_0x1d9e1d['type']==_0x1ffef2&&_0x1d9e1d['subType']==_0x40ee65),_0x1ff7b0=_0x5583de['findIndex'](({type:_0x2d02df,subType:_0x3014c5})=>_0x3df6e4['type']==_0x2d02df&&_0x3df6e4['subType']==_0x3014c5);if(_0x3bb64b<0x0||_0x1ff7b0<0x0)return!0x1;const _0x3e5c1e=_0x1d9e1d['getFirstRange'](),_0x28093a=_0x3df6e4['getFirstRange']();if((0x0==_0x3bb64b||0x1==_0x3bb64b)&&0x2==_0x1ff7b0&&_0x3e5c1e['isIntersecting'](_0x28093a))return!0x0;if(0x2==_0x3bb64b&&0x3==_0x1ff7b0){const _0x4b4451=_0x101bee['_findSuggestions'](_0x3e5c1e,'insertion')['filter'](({suggestion:_0xe37eac,meta:_0x30637b})=>_0x30637b['isOwn']&&'convertInlineImageToBlock'==_0xe37eac['subType']);if(_0x4b4451['length']>0x1&&_0x28093a['end']['isEqual'](_0x3e5c1e['start']))return!0x0;if(0x1==_0x4b4451['length']&&(_0x3e5c1e['start']['isEqual'](_0x28093a['end'])||_0x3e5c1e['end']['isEqual'](_0x28093a['start'])))return!0x0;}if(0x3==_0x3bb64b&&0x3==_0x1ff7b0&&_0x3e5c1e['start']['isBefore'](_0x28093a['start'])){const _0x56c2f0=_0x3e5c1e['end']['nodeAfter'],_0x5cf400=_0x28093a['start']['nodeBefore'];return _0x556d7e['isBlockImage'](_0x56c2f0)&&_0x56c2f0===_0x5cf400;}return!0x1;}function _0x3716a6(_0x3846c0,_0x45be8b){return _0x4d615e(_0x3846c0,_0x45be8b)?[_0x3846c0,_0x45be8b]:_0x4d615e(_0x45be8b,_0x3846c0)?[_0x45be8b,_0x3846c0]:null;}_0x49ba12['plugins']['has']('ImageResize')&&(_0x101bee['enableDefaultAttributesIntegration']('resizeImage'),_0x101bee['registerBlockAttribute']('resizedWidth'),_0x101bee['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x17836a,'FORMAT_IMAGE_SIZE'))),_0x49ba12['plugins']['has']('ImageTextAlternativeEditing')&&(_0x101bee['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x101bee['registerBlockAttribute']('alt')),_0x49ba12['plugins']['has']('PictureEditing')&&(_0x101bee['registerBlockAttribute']('sources'),_0x101bee['descriptionFactory']['registerDescriptionCallback'](_0x7a8e4c=>{if('attribute'!=_0x7a8e4c['type'])return;const {data:_0x563dcc}=_0x7a8e4c;return _0x563dcc&&'sources'==_0x563dcc['key']?{'type':'format','content':''}:void 0x0;})),_0x49ba12['plugins']['has']('ImageSizeAttributes')&&(_0x101bee['registerBlockAttribute']('width'),_0x101bee['registerBlockAttribute']('height'),_0x101bee['descriptionFactory']['registerDescriptionCallback'](_0x2ca697=>{if('attribute'!=_0x2ca697['type'])return;const {data:_0x54c0d2}=_0x2ca697;return!_0x54c0d2||'width'!=_0x54c0d2['key']&&'height'!=_0x54c0d2['key']?void 0x0:{'type':'format','content':''};})),_0x101bee['descriptionFactory']['registerDescriptionCallback'](_0x34c36f=>{if(!!_0x5583de['find'](({type:_0x20fe78,subType:_0x3e88d1})=>_0x34c36f['type']==_0x20fe78&&_0x34c36f['subType']==_0x3e88d1))return _0x34c36f['previous']?{}:void 0x0;}),_0x101bee['descriptionFactory']['registerDescriptionCallback'](_0x3abfc2=>{if('insertion'==_0x3abfc2['type']||'deletion'==_0x3abfc2['type']){const _0x14917b=_0x3abfc2['getContainedElement']();if(_0x14917b&&_0x14917b['is']('element','caption'))return{'type':'insertion'==_0x3abfc2['type']?'addObject':'removeObject','element':_0x14917b,'quantity':0x1};}}),_0x101bee['descriptionFactory']['registerDescriptionCallback'](_0x298088=>'formatBlock'==_0x298088['type']&&'convertInlineImageToBlock'==_0x298088['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x298088['type']&&'convertBlockImageToInline'==_0x298088['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x101bee['descriptionFactory']['registerDescriptionCallback'](_0x58b589=>{if('attribute'!=_0x58b589['type'])return;const {data:_0x342834}=_0x58b589;if(!_0x342834||'alt'!=_0x342834['key'])return;const _0x44c90d=_0x342834['newValue'];return _0x44c90d?{'type':'format','content':o(_0x17836a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x44c90d+'\x22')}:{'type':'format','content':o(_0x17836a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18dc23=this['editor'],_0x3be3ec=_0x18dc23['locale'];_0x18dc23['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x272d41=>{if('formatBlock'!=_0x272d41['type']&&'formatInline'!=_0x272d41['type'])return;const {data:_0x272ce6}=_0x272d41;if(_0x272ce6){if('imageTextAlternative'==_0x272ce6['commandName']){const _0x1fa2fe=_0x272ce6['commandParams'][0x0]['newValue'];return _0x1fa2fe?{'type':'format','content':o(_0x3be3ec,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1fa2fe+'\x22')}:{'type':'format','content':o(_0x3be3ec,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x272ce6['commandName']){const _0x4cfe3e=_0x272ce6['commandParams'][0x0]['width'];return _0x4cfe3e?{'type':'format','content':o(_0x3be3ec,'*Set\x20image\x20width:*\x20%0',_0x4cfe3e)}:{'type':'format','content':o(_0x3be3ec,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x32d277{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x19e6e7=this['editor']['locale'],_0x29f27a=this['editor']['plugins']['get']('TrackChangesEditing');_0x29f27a['enableDefaultAttributesIntegration']('replaceImageSource'),_0x29f27a['registerBlockAttribute']('src'),_0x29f27a['descriptionFactory']['registerDescriptionCallback'](_0xeccfcb=>{if('attribute'!=_0xeccfcb['type'])return;const {data:_0x59cafb}=_0xeccfcb;return _0x59cafb&&'src'==_0x59cafb['key']?_0x59cafb['newValue']&&_0x59cafb['oldValue']?{'type':'format','content':o(_0x19e6e7,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x53b14b=this['editor']['plugins']['get']('TrackChangesEditing');_0x53b14b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x53b14b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x53b14b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x53b14b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52e9ae=this['editor'],_0x5daa1d=_0x52e9ae['locale'];_0x52e9ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5515c9=>{if('formatBlock'!=_0x5515c9['type']&&'formatInline'!=_0x5515c9['type'])return;const {data:_0x1254d9}=_0x5515c9;if(!_0x1254d9||'replaceImageSource'!=_0x1254d9['commandName'])return;return{'type':'format','content':o(_0x5daa1d,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x32d277{['afterInit'](){const _0x2f1316=this['editor'];if(!_0x2f1316['plugins']['has']('ImageStyleEditing'))return;const _0x543c0c=_0x2f1316['plugins']['get']('TrackChangesEditing'),_0x851765=_0x2f1316['plugins']['get']('ImageUtils'),_0x55bc26={};_0x543c0c['enableCommand']('imageStyle',(_0x7ad9ad,_0x4ca501)=>{const _0x52690d=_0x2f1316['plugins']['get']('Users')['me'],_0x47c4ce=_0x2f1316['commands']['get']('imageStyle');let _0x43371b=_0x851765['getClosestSelectedImageElement'](_0x2f1316['model']['document']['selection']),_0x52d98f=_0x2f1316['model']['createRangeOn'](_0x43371b),_0x10f439=_0x47c4ce['value'];if(_0x10f439==_0x4ca501['value'])return;const _0x1de771={'commandName':'imageStyle','commandParams':[_0x4ca501],'formatGroupId':_0x12e0b6()};_0x2f1316['model']['change'](()=>{if(_0x543c0c['getSuggestions']()['filter'](_0x3cba7e=>_0x3cba7e['isInContent']&&_0x52690d==_0x3cba7e['author']&&('formatBlock'==_0x3cba7e['type']||'formatInline'==_0x3cba7e['type'])&&('imageStylePreApply'==_0x3cba7e['subType']||'imageStylePostApply'==_0x3cba7e['subType'])&&_0x3cba7e['getFirstRange']()['isEqual'](_0x52d98f))['forEach'](_0x55d2ce=>_0x543c0c['discardSuggestion'](_0x55d2ce['head'])),_0x43371b=_0x851765['getClosestSelectedImageElement'](_0x2f1316['model']['document']['selection']),_0x52d98f=_0x2f1316['model']['createRangeOn'](_0x43371b),_0x47c4ce['refresh'](),_0x2f1316['commands']['get']('imageTypeInline')['refresh'](),_0x2f1316['commands']['get']('imageTypeBlock')['refresh'](),_0x10f439=_0x47c4ce['value'],_0x10f439!=_0x4ca501['value'])return _0x851765['isInlineImage'](_0x43371b)&&_0x47c4ce['shouldConvertImageType'](_0x4ca501['value'],_0x43371b)?(_0x7ad9ad({..._0x4ca501,'setImageSizes':!0x1}),_0x43371b=_0x851765['getClosestSelectedImageElement'](_0x2f1316['model']['document']['selection']),void _0x543c0c['markBlockFormat'](_0x43371b,{..._0x1de771,'commandReversedParams':[{'value':_0x10f439||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x851765['isBlockImage'](_0x43371b)?_0x543c0c['markBlockFormat'](_0x43371b,_0x1de771,[],'imageStylePostApply'):_0x543c0c['markInlineFormat'](_0x52d98f,_0x1de771,'imageStylePostApply'));});});for(const _0x4175d3 of _0x2f1316['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x55bc26[_0x4175d3['name']]=_0x4175d3['title']['toLowerCase']();_0x543c0c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x543c0c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x543c0c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x543c0c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x8c8dc2])=>{_0x851765['setImageNaturalSizeAttributes'](_0x8c8dc2['getContainedElement']());}),_0x543c0c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3041c0,_0x2fce1d)=>{_0x543c0c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3041c0,{'commandName':_0x2fce1d['commandName'],'commandParams':_0x2fce1d['commandReversedParams']});}),_0x543c0c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x15278b,_0x4b5a84){if(_0x585fc0(_0x15278b,_0x4b5a84))return[_0x15278b,_0x4b5a84];if(_0x585fc0(_0x4b5a84,_0x15278b))return[_0x4b5a84,_0x15278b];return null;});const _0x1123cd=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x585fc0(_0x46a6ac,_0x395e55){const _0x51146c=_0x1123cd['findIndex'](({type:_0x4a0939,subType:_0x1f62d1})=>_0x46a6ac['type']==_0x4a0939&&_0x46a6ac['subType']==_0x1f62d1),_0x474cbb=_0x1123cd['findIndex'](({type:_0x53638f,subType:_0x3c2e52})=>_0x395e55['type']==_0x53638f&&_0x395e55['subType']==_0x3c2e52);if(_0x51146c<0x0||_0x474cbb<0x0)return!0x1;const _0x55b12c=_0x46a6ac['getFirstRange'](),_0x57b4ae=_0x395e55['getFirstRange']();if((0x0==_0x51146c||0x1==_0x51146c)&&0x2==_0x474cbb&&_0x55b12c['isIntersecting'](_0x57b4ae))return!0x0;if(0x2==_0x51146c&&0x3==_0x474cbb){const _0x31ebea=_0x543c0c['_findSuggestions'](_0x55b12c,'insertion')['filter'](({suggestion:_0x45a0ac,meta:_0xc00bb})=>_0xc00bb['isOwn']&&'convertInlineImageToBlock'==_0x45a0ac['subType']);if(_0x31ebea['length']>0x1&&_0x57b4ae['end']['isEqual'](_0x55b12c['start']))return!0x0;if(0x1==_0x31ebea['length']&&(_0x55b12c['start']['isEqual'](_0x57b4ae['end'])||_0x55b12c['end']['isEqual'](_0x57b4ae['start'])))return!0x0;}if(0x3==_0x51146c&&0x3==_0x474cbb&&_0x55b12c['start']['isBefore'](_0x57b4ae['start'])){const _0x56bab7=_0x55b12c['end']['nodeAfter'],_0x566e82=_0x57b4ae['start']['nodeBefore'];return _0x851765['isBlockImage'](_0x56bab7)&&_0x56bab7===_0x566e82;}return!0x1;}_0x2f1316['model']['document']['registerPostFixer'](()=>{let _0x32f511=!0x1;const _0xc4b6cc=Array['from'](_0x2f1316['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x25f7db,data:_0x564fbd}of _0xc4b6cc){const {group:_0x455de3,type:_0x5cb822,subType:_0xc600a2,id:_0x147086}=_0x543c0c['_splitMarkerName'](_0x25f7db);if('suggestion'==_0x455de3&&_0x543c0c['hasSuggestion'](_0x147086)){if('formatBlock'==_0x5cb822&&('imageStylePreApply'==_0xc600a2||'imageStylePostApply'==_0xc600a2)){const _0x1394d0=_0x543c0c['getSuggestion'](_0x147086);if(_0x564fbd['newRange']){const _0x462fab=_0x1394d0['getFirstRange']()['getContainedElement']();if(_0x851765['isBlockImage'](_0x462fab))continue;_0x543c0c['discardSuggestion'](_0x1394d0),_0x32f511=!0x0;}}if('insertion'==_0x5cb822&&'imageCaption'==_0xc600a2&&!_0x564fbd['newRange']){const _0x1c5d39=_0x543c0c['getSuggestion'](_0x147086);_0x1c5d39['next']&&_0x1c5d39['next']['isInContent']&&(_0x543c0c['discardSuggestion'](_0x1c5d39['next']),_0x32f511=!0x0);}}}return _0x32f511;}),this['_registerLegacyDescription'](_0x55bc26);}['_registerLegacyDescription'](_0x380b0b){const _0x16f5f9=this['editor'],_0x3f0b25=_0x16f5f9['locale'];_0x16f5f9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b9d8f=>{if('formatBlock'!=_0x3b9d8f['type']&&'formatInline'!=_0x3b9d8f['type'])return;const {data:_0x20b3a0}=_0x3b9d8f;if(!_0x20b3a0||'imageStyle'!=_0x20b3a0['commandName'])return;const _0x38808d=_0x20b3a0['commandParams'][0x0]['value'];return _0x5ea5c9('side'===_0x38808d?o(_0x3f0b25,'FORMAT_SIDE_IMAGE'):_0x380b0b[_0x38808d]||_0x38808d);function _0x5ea5c9(_0x36aa31){return{'type':'format','content':o(_0x3f0b25,'*Format:*\x20%0',_0x36aa31)};}});}}class ct extends _0x32d277{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xd0c414){super(_0xd0c414),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x16abb3=this['editor'],_0x2baa6c=_0x16abb3['commands']['get']('importWord'),_0x11d0fa=_0x16abb3['commands']['get']('trackChanges');_0x2baa6c&&(_0x2baa6c['on']('execute',(_0x520abb,[,_0x4d2037])=>{this['_trackChangesValueDuringImport']=_0x11d0fa['value'],_0x4d2037['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2baa6c,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2baa6c,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x11d0fa['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x16abb3['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x129bf9,_0x9f8fcd){const {suggestions:_0x227de4}=_0x9f8fcd,_0x397c0c=this['editor']['commands']['get']('trackChanges'),_0x4de27e=_0x397c0c['value'];this['_trackChangesValueDuringImport']!==_0x4de27e&&(_0x397c0c['execute'](),this['_trackChangesExecuted']=!0x0),_0x227de4&&_0x227de4['forEach'](({id:_0xb79457,type:_0x165809,author:_0x11869b,created_at:_0x57904b})=>{const _0x4925d0={'id':_0xb79457,'type':_0x165809,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x11869b,'createdAt':_0x57904b?new Date(_0x57904b):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4925d0);});}}class ut extends _0x32d277{['afterInit'](){const _0x341783=this['editor'],_0x3fb91f=_0x341783['plugins']['get']('TrackChangesEditing');if(_0x341783['plugins']['has']('IndentEditing')&&(_0x3fb91f['enableCommand']('indent'),_0x3fb91f['enableCommand']('outdent')),_0x341783['plugins']['has']('IndentBlock')){for(const _0x537961 of['indentBlock','outdentBlock'])_0x3fb91f['enableDefaultAttributesIntegration'](_0x537961);}const _0x39e625=_0x341783['locale'];_0x3fb91f['registerBlockAttribute']('blockIndent'),_0x3fb91f['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x39e625,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x84e184=this['editor'],_0x4bd954=_0x84e184['locale'],_0x52a7d6=_0x84e184['plugins']['get']('TrackChangesEditing');_0x52a7d6['descriptionFactory']['registerDescriptionCallback'](_0x25adb7=>{if('formatBlock'!=_0x25adb7['type'])return;const {data:_0x1259b1}=_0x25adb7;if(!_0x1259b1)return;if('indentBlock'!=_0x1259b1['commandName']&&'outdentBlock'!=_0x1259b1['commandName'])return;const _0x3301e0=_0x25adb7['getItems']()[0x0],_0x19c1f0=_0x52a7d6['descriptionFactory']['getItemLabel'](_0x3301e0);return'indentBlock'==_0x1259b1['commandName']?{'type':'format','content':o(_0x4bd954,'*Indent:*\x20%0',_0x19c1f0)}:'outdentBlock'==_0x1259b1['commandName']?{'type':'format','content':o(_0x4bd954,'*Outdent:*\x20%0',_0x19c1f0)}:void 0x0;});}}class ft extends _0x32d277{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x32d277{['afterInit'](){const _0x4075b5=this['editor'];if(!_0x4075b5['plugins']['has']('LinkEditing'))return;const _0x50cb7a=_0x4075b5['plugins']['get']('TrackChangesEditing'),_0x565027=_0x4075b5['commands']['get']('link');_0x50cb7a['enableDefaultAttributesIntegration']('link'),_0x50cb7a['enableDefaultAttributesIntegration']('unlink'),_0x50cb7a['registerInlineAttribute']('linkHref');for(const _0x182b46 of _0x565027['manualDecorators'])_0x50cb7a['registerInlineAttribute'](_0x182b46['id']),_0x50cb7a['descriptionFactory']['registerAttributeLabel'](_0x182b46['id'],'link\x20('+_0x182b46['label']['toLowerCase']()+')');_0x50cb7a['descriptionFactory']['registerDescriptionCallback'](_0x2ef529=>{if('attribute'!=_0x2ef529['type'])return;const {data:_0x36275b}=_0x2ef529;if(!_0x36275b||'linkHref'!=_0x36275b['key'])return;const _0x3fbc96=_0x36275b['newValue'],_0x537b7f=_0x4075b5['locale'];return{'type':'format','content':null==_0x3fbc96?o(_0x537b7f,'*Remove\x20link*'):o(_0x537b7f,'*Set\x20link:*\x20%0','\x22'+_0x3fbc96+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f75d9=this['editor'],_0x939987=_0x1f75d9['locale'];_0x1f75d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30518d=>{if('formatInline'!=_0x30518d['type'])return;const {data:_0x44835d}=_0x30518d;if(_0x44835d){if('link'==_0x44835d['commandName']){const _0x488bdb=_0x44835d['commandParams'][0x0];return{'type':'format','content':o(_0x939987,'*Set\x20link:*\x20%0','\x22'+_0x488bdb+'\x22')};}return'unlink'==_0x44835d['commandName']?{'type':'format','content':o(_0x939987,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x32d277{['afterInit'](){const _0x30fc05=this['editor'],_0x59f7c1=_0x30fc05['locale'];if(!_0x30fc05['plugins']['has']('LegacyListEditing'))return;const _0x2e0a42=_0x30fc05['plugins']['get']('TrackChangesEditing'),_0x8b2f8e=_0x30fc05['plugins']['has']('LegacyTodoListEditing');function _0x40e134(_0x406977){return()=>{const _0x26b6d2=_0x30fc05['model']['document']['selection'],_0xa8baa2=_0x30fc05['commands']['get'](_0x406977);if(_0xa8baa2['value'])return void _0x30fc05['execute']('paragraph',{});const _0x3fa533=_0x406977['slice'](0x0,-0x4),_0x4bc4e1=function(_0x205efe,_0x2ad0e7,_0x47840f){let _0x7ad5d8=Array['from'](_0x205efe)['filter'](_0x3d0ab7=>function(_0x25b511,_0x443b85){return _0x443b85['checkChild'](_0x25b511['parent'],'listItem')&&!_0x443b85['isObject'](_0x25b511);}(_0x3d0ab7,_0x47840f));_0x7ad5d8=_0x7ad5d8['filter'](_0x556de5=>!_0x556de5['is']('element','listItem')||_0x556de5['getAttribute']('listType')!=_0x2ad0e7);const _0x3da1bb=new Set();for(const _0x2b980d of _0x7ad5d8)_0x2b980d['is']('element','listItem')?_0x3da1bb['add'](Le(_0x2b980d)):_0x3da1bb['add'](_0x2b980d);return Array['from'](_0x3da1bb);}(_0x26b6d2['getSelectedBlocks'](),_0x3fa533,_0x30fc05['model']['schema']);_0x30fc05['model']['change'](()=>{for(const _0x48d280 of _0x4bc4e1)_0x2e0a42['markBlockFormat'](_0x48d280,{'commandName':_0x406977,'commandParams':[{'forceValue':!_0xa8baa2['value']}],'formatGroupId':'blockName'},Ee(_0x48d280));});};}function _0x36fcbb(_0x1c6686){return()=>{const _0x312388=function(_0x25fcc8){let _0x572307=Array['from'](_0x25fcc8);const _0xb4627e=_0x572307['findIndex'](_0x361088=>'listItem'!=_0x361088['name']);return _0xb4627e>-0x1&&(_0x572307=_0x572307['slice'](0x0,_0xb4627e)),_0x572307;}(_0x30fc05['model']['document']['selection']['getSelectedBlocks']()),_0x314531=_0x30fc05['model']['createRange'](_0x30fc05['model']['createPositionAt'](_0x312388[0x0],'before'),_0x30fc05['model']['createPositionAt'](_0x312388[_0x312388['length']-0x1],'end'));_0x30fc05['model']['change'](()=>{_0x2e0a42['markBlockFormat'](_0x314531,{'commandName':_0x1c6686,'commandParams':[],'formatGroupId':'listIndent'},function(_0x16b3bb){const _0x4ca50c=new Set();for(const _0xd92001 of _0x16b3bb){let _0xe39f9d=_0xd92001['nextSibling'];for(;_0xe39f9d&&_0xe39f9d['getAttribute']('listIndent')>_0xd92001['getAttribute']('listIndent');)_0x4ca50c['add'](_0xe39f9d),_0xe39f9d=_0xe39f9d['nextSibling'];}return Array['from'](_0x4ca50c);}(_0x312388));});};}_0x2e0a42['enableCommand']('numberedList',_0x40e134('numberedList')),_0x2e0a42['enableCommand']('bulletedList',_0x40e134('bulletedList')),_0x8b2f8e&&_0x2e0a42['enableCommand']('todoList',_0x40e134('todoList')),_0x2e0a42['enableCommand']('indentList',_0x36fcbb('indentList')),_0x2e0a42['enableCommand']('outdentList',_0x36fcbb('outdentList')),_0x8b2f8e&&_0x2e0a42['enableCommand']('checkTodoList',()=>{const _0x2064b1=_0x30fc05['commands']['get']('checkTodoList'),_0x4cd0dd=Array['from'](_0x2064b1['_selectedElements']);_0x4cd0dd['filter'](_0xf100a7=>_0xf100a7['getAttribute']('todoListChecked')!=_0x2064b1['value']),_0x30fc05['model']['change'](()=>{for(const _0x3d5078 of _0x4cd0dd)_0x2e0a42['markBlockFormat'](_0x3d5078,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2064b1['value']}]});});}),_0x2e0a42['descriptionFactory']['registerElementLabel']('listItem',_0x19f9f9=>o(_0x59f7c1,'ELEMENT_LIST_ITEM',_0x19f9f9)),_0x2e0a42['descriptionFactory']['registerDescriptionCallback'](_0x13af1c=>{if('formatBlock'!=_0x13af1c['type']&&'formatInline'!=_0x13af1c['type'])return;const {data:_0x49d464}=_0x13af1c;if(_0x49d464){if('numberedList'==_0x49d464['commandName']||'bulletedList'==_0x49d464['commandName']||'todoList'==_0x49d464['commandName'])switch(_0x49d464['commandName']['replace']('List','')){case'bulleted':return _0x4913f9(o(_0x59f7c1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4913f9(o(_0x59f7c1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4913f9(o(_0x59f7c1,'ELEMENT_TODO_LIST'));}if('indentList'==_0x49d464['commandName'])return{'type':'format','content':o(_0x59f7c1,'*Indent:*\x20%0',o(_0x59f7c1,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x49d464['commandName'])return{'type':'format','content':o(_0x59f7c1,'*Outdent:*\x20%0',o(_0x59f7c1,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x49d464['commandName'])return _0x49d464['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x59f7c1,'*Check\x20item*')}:{'type':'format','content':o(_0x59f7c1,'*Uncheck\x20item*')};}function _0x4913f9(_0x592a82){return{'type':'format','content':o(_0x59f7c1,'*Change\x20to:*\x20%0',_0x592a82)};}});}}function Le(_0x324dda){const _0x50efab=_0x324dda['getAttribute']('listIndent');if(0x0==_0x50efab)return _0x324dda;let _0x10fb1d=_0x324dda;for(;_0x324dda['previousSibling']&&_0x324dda['previousSibling']['is']('element','listItem');){const _0x247ab8=_0x324dda['previousSibling']['getAttribute']('listIndent');if(_0x247ab8==_0x50efab)_0x10fb1d=_0x324dda['previousSibling'];else{if(_0x247ab8<_0x50efab)break;}_0x324dda=_0x324dda['previousSibling'];}return _0x10fb1d;}function Ee(_0x181df9){const _0x1bb176=[];if(_0x181df9['is']('element','listItem')&&_0x181df9['getAttribute']('listIndent')>0x0){let _0x1d1e80=_0x181df9['nextSibling'];for(;_0x1d1e80&&'listItem'==_0x1d1e80['name']&&_0x1d1e80['getAttribute']('listIndent')==_0x181df9['getAttribute']('listIndent');)_0x1bb176['push'](_0x1d1e80),_0x1d1e80=_0x1d1e80['nextSibling'];}return _0x1bb176;}class Q extends _0x32d277{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x248357=this['editor']['config']['get']('list.properties'),_0x168107=this['editor']['plugins']['get']('TrackChangesEditing');_0x248357['styles']&&_0x168107['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x248357['reversed']&&_0x168107['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x248357['startIndex']&&_0x168107['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x168107['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4d36ad,_0x2795e8={}){const _0x5e2e5b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5880f7=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5e2e5b['markMultiRangeBlockFormat'](_0x5880f7,{'commandName':'listStyle','commandParams':[{'type':_0x2795e8['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x25f651,_0x3c055a={}){const _0x5063db=this['editor']['plugins']['get']('TrackChangesEditing'),_0x371e77=this['_getSuggestionBlocks'](_0x556556=>_0x556556['is']('element','listItem')&&'numbered'===_0x556556['getAttribute']('listType'));if(_0x371e77['length']<0x1)return;const _0x1e0c09=_0x371e77['map'](_0x3df67e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3df67e,'before'),this['editor']['model']['createPositionAt'](_0x3df67e,0x0)));this['editor']['model']['change'](()=>{_0x5063db['markMultiRangeBlockFormat'](_0x1e0c09,{'commandName':'listReversed','commandParams':[{'reversed':_0x3c055a['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x57cdf3,_0x3684ed={}){const _0x1ef0c5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x275f12=this['_getSuggestionBlocks'](_0x3f7072=>_0x3f7072['is']('element','listItem')&&'numbered'===_0x3f7072['getAttribute']('listType'));if(_0x275f12['length']<0x1)return;const _0x55a3e9=_0x275f12['map'](_0x244117=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x244117,'before'),this['editor']['model']['createPositionAt'](_0x244117,0x0)));this['editor']['model']['change'](()=>{_0x1ef0c5['markMultiRangeBlockFormat'](_0x55a3e9,{'commandName':'listStart','commandParams':[{'startIndex':_0x3684ed['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3405c2){if('formatBlock'!=_0x3405c2['type']&&'formatInline'!=_0x3405c2['type'])return;const _0x52f83a=this['editor']['locale'],{data:_0x19ebc7}=_0x3405c2;if(!_0x19ebc7)return;let _0x54a1a9,_0xfc5c7d;switch(_0x19ebc7['commandName']){case'listStyle':_0x54a1a9='*Change\x20to:*\x20%0',_0xfc5c7d={'type':'format','content':o(_0x52f83a,_0x54a1a9,o(_0x52f83a,this['_getTranslationKeyForListStyle'](_0x19ebc7['commandParams'][0x0]['type'])))};break;case'listReversed':_0x54a1a9=_0x19ebc7['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xfc5c7d={'type':'format','content':o(_0x52f83a,_0x54a1a9)};break;case'listStart':_0x54a1a9='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xfc5c7d={'type':'format','content':o(_0x52f83a,_0x54a1a9,_0x19ebc7['commandParams'][0x0]['startIndex'])};}return _0xfc5c7d;}['_getSuggestionBlocksForListStyle'](){const _0x38e7ae=this['editor']['plugins']['get']('LegacyListUtils');let _0x25ff34=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x25ff34[0x0]?.['is']('element','listItem')&&_0x25ff34['unshift'](..._0x38e7ae['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x25ff34[_0x25ff34['length']-0x1]?.['is']('element','listItem')&&_0x25ff34['push'](..._0x38e7ae['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x25ff34=[...new Set(_0x25ff34)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x25ff34=_0x25ff34['filter'](_0x35dfed=>_0x35dfed['is']('element','listItem'))),_0x25ff34;}['_getSuggestionBlocks'](_0xd27535){const _0x36479a=this['editor']['plugins']['get']('LegacyListUtils');let _0x192116=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xd27535)['map'](_0x178e12=>{const _0x18e19c=this['editor']['model']['createPositionAt'](_0x178e12,0x0);return[..._0x36479a['getSiblingNodes'](_0x18e19c,'backward'),..._0x36479a['getSiblingNodes'](_0x18e19c,'forward')];})['flat']();return _0x192116=[...new Set(_0x192116)],_0x192116;}['_getTranslationKeyForListStyle'](_0x279fec){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x279fec)||'default')['toUpperCase']()+'_LIST_'+_0x279fec['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x32d277{['afterInit'](){const _0x1ebdba=this['editor'];if(!_0x1ebdba['plugins']['has']('MediaEmbedEditing'))return;const _0x3d3ee6=_0x1ebdba['plugins']['get']('TrackChangesEditing'),_0x851992=_0x1ebdba['locale'];_0x3d3ee6['enableCommand']('mediaEmbed'),_0x3d3ee6['descriptionFactory']['registerElementLabel']('media',_0x5e01eb=>o(_0x851992,'ELEMENT_MEDIA',_0x5e01eb)),_0x1ebdba['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3fe02f,{writer:_0x3ee633,options:_0x35b934})=>{if(_0x35b934['showSuggestionHighlights'])return _0x3ee633['createEmptyElement']('div');},'converterPriority':'high'}),_0x1ebdba['data']['downcastDispatcher']['on']('attribute:url:media',(_0x7eee8b,_0xd51397,_0x3f5265)=>{_0x3f5265['options']['showSuggestionHighlights']&&_0x7eee8b['stop']();},{'priority':'high'});}}class mt extends _0x32d277{['afterInit'](){const _0x13f44a=this['editor'];_0x13f44a['plugins']['has']('MentionEditing')&&_0x13f44a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x32d277{['afterInit'](){const _0x150a80=this['editor'];if(!_0x150a80['plugins']['has']('MergeFieldsEditing'))return;const _0x41cafe=_0x150a80['plugins']['get']('TrackChangesEditing'),_0x2d2db4=_0x150a80['locale'];_0x41cafe['enableCommand']('insertMergeField'),_0x41cafe['enableCommand']('insertMergeFieldBlock'),_0x41cafe['enableCommand']('insertMergeFieldImage'),_0x41cafe['descriptionFactory']['registerElementLabel']('mergeField',_0x305b83=>o(_0x2d2db4,'ELEMENT_MERGE_FIELD',_0x305b83)),_0x41cafe['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0xb82db4=>o(_0x2d2db4,'ELEMENT_MERGE_FIELD',_0xb82db4)),_0x41cafe['descriptionFactory']['registerDescriptionCallback'](_0x5a62a4=>{if('insertion'!=_0x5a62a4['type']&&'deletion'!=_0x5a62a4['type'])return;const _0x1a6e42=_0x5a62a4['getContainedElement']();if(null==_0x1a6e42)return;const _0x4ef083=_0x150a80['plugins']['get']('MergeFieldsEditing');let _0xf9ae07;switch(_0x4ef083['getMergeFieldType'](_0x1a6e42)){case null:return;case'image':{const _0x4976fe=_0x4ef083['unwrapAffixes'](_0x1a6e42['getAttribute']('src'));_0xf9ae07=_0x4ef083['getLabel'](_0x4976fe)||_0x4976fe;break;}default:{const _0x510674=_0x1a6e42['getAttribute']('id');_0xf9ae07=_0x4ef083['getLabel'](_0x510674)||_0x510674;break;}}return'insertion'==_0x5a62a4['type']?{'type':'insertion','content':o(_0x2d2db4,'*Insert:*\x20%0','\x22'+_0xf9ae07+'\x22\x20'+o(_0x2d2db4,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x2d2db4,'*Remove:*\x20%0','\x22'+_0xf9ae07+'\x22\x20'+o(_0x2d2db4,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x32d277{['afterInit'](){const _0x294468=this['editor'],_0x46ea7e=_0x294468['plugins']['get']('TrackChangesEditing');_0x294468['plugins']['has']('MultiLevelList')&&(_0x46ea7e['enableDefaultAttributesIntegration']('multiLevelList'),_0x46ea7e['registerBlockAttribute']('listMarkerStyle'),_0x46ea7e['descriptionFactory']['registerDescriptionCallback'](_0x40c7ac=>this['handleDescriptions'](_0x40c7ac)));}['handleDescriptions'](_0x47a7b7){const _0x169531=this['editor']['locale'],{data:_0xc5fd30}=_0x47a7b7,_0x785c9b={'type':'format','content':''};if(_0xc5fd30&&'listMarkerStyle'==_0xc5fd30['key']){if(!_0xc5fd30['oldValue'])return{'type':'format','content':o(_0x169531,'*Set\x20format:*\x20%0',o(_0x169531,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xc5fd30['newValue']+')'};if(!_0xc5fd30['newValue']){let _0x1b5c0c=_0x47a7b7['head'];for(;_0x1b5c0c;){if(_0x1b5c0c['data']&&'listType'==_0x1b5c0c['data']['key']&&_0x1b5c0c['data']['newValue'])return _0x785c9b;_0x1b5c0c=_0x1b5c0c['next'];}return{'type':'format','content':o(_0x169531,'*Remove\x20format:*\x20%0',o(_0x169531,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xc5fd30['oldValue']+')'};}}}}class kt extends _0x32d277{['afterInit'](){const _0x5962f3=this['editor'];if(!_0x5962f3['plugins']['has']('PageBreakEditing'))return;_0x5962f3['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x49aea=_0x5962f3['plugins']['get']('TrackChangesEditing'),_0x204c3c=_0x5962f3['locale'];_0x49aea['descriptionFactory']['registerElementLabel']('pageBreak',_0xf7fc5e=>o(_0x204c3c,'ELEMENT_PAGE_BREAK',_0xf7fc5e));}}class bt extends _0x32d277{['afterInit'](){const _0x4c2e26=this['editor'];if(!_0x4c2e26['plugins']['has']('Paragraph'))return;const _0x5f3e62=_0x4c2e26['locale'],_0x1d9b3f=_0x4c2e26['plugins']['get']('TrackChangesEditing');_0x1d9b3f['descriptionFactory']['registerElementLabel']('paragraph',_0x9863ba=>o(_0x5f3e62,'ELEMENT_PARAGRAPH',_0x9863ba)),_0x1d9b3f['enableDefaultAttributesIntegration']('paragraph'),_0x1d9b3f['enableCommand']('insertParagraph'),_0x4c2e26['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4c2e26),{'priority':'highest'}),_0x4c2e26['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1bbe92,_0x41cd38,_0x36a207)=>{_0x36a207['options']['showSuggestionHighlights']&&nr(_0x4c2e26,{'showActiveMarker':!0x1})(_0x1bbe92,_0x41cd38,_0x36a207);},{'priority':'highest'});const _0x5721dc=_0x1d9b3f['descriptionFactory'];_0x5721dc['registerDescriptionCallback'](_0x174b40=>{if('insertion'!==_0x174b40['type'])return;const {start:_0x12f565,end:_0xfa7f14}=_0x174b40['getFirstRange']();if(!_0x12f565['isTouching'](_0xfa7f14)||!_0x12f565['nodeAfter'])return;const _0x38adc3=_0x4c2e26['model']['schema'],_0xd7a3c2=_0x12f565['nodeAfter'];return _0x38adc3['isBlock'](_0xd7a3c2)&&!_0x38adc3['isLimit'](_0xd7a3c2)&&_0x38adc3['checkChild'](_0xd7a3c2,'$text')?{'type':'insertion','content':o(_0x5f3e62,'*Insert:*\x20%0',_0x5721dc['getItemLabel'](_0xd7a3c2,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3cf659=this['editor'],_0x1a5b2c=_0x3cf659['locale'];_0x3cf659['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4aee43=>{if('formatBlock'!=_0x4aee43['type'])return;const {data:_0x4aec1e}=_0x4aee43;return _0x4aec1e&&'paragraph'==_0x4aec1e['commandName']?{'type':'format','content':o(_0x1a5b2c,'*Change\x20to:*\x20%0',o(_0x1a5b2c,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2d9e83,{showActiveMarker:_0x3ab1cc=!0x0}={}){return(_0x5c2c0f,_0xabee8f,_0x1bcda6)=>{const _0x5b03ba=_0x2d9e83['plugins']['get']('TrackChangesEditing'),_0xa18821=_0xabee8f['markerRange']['start'],_0x27cdcb=_0xabee8f['markerRange']['end'],_0x25ecee=_0x2d9e83['model']['schema'];if(!_0xa18821['isTouching'](_0x27cdcb)||!_0xa18821['nodeAfter'])return;const _0x186de7=_0xa18821['nodeAfter'];if(_0x25ecee['isBlock'](_0x186de7)&&!_0x25ecee['isLimit'](_0x186de7)&&_0x25ecee['checkChild'](_0x186de7,'$text')){if(!_0x1bcda6['consumable']['consume'](_0xabee8f['markerRange'],_0x5c2c0f['name']))return;const {authorId:_0x1dc193}=_0x5b03ba['_splitMarkerName'](_0xabee8f['markerName']),_0x2ae2af=_0x1bcda6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x1dc193}),_0x48a423=_0x1bcda6['mapper']['toViewPosition'](_0x27cdcb);_0x3ab1cc&&_0x5b03ba['activeMarkers']['includes'](_0xabee8f['markerName'])&&_0x1bcda6['writer']['addClass']('ck-suggestion-marker--active',_0x2ae2af),_0x1bcda6['writer']['insert'](_0x48a423,_0x2ae2af),_0x1bcda6['mapper']['bindElementToMarker'](_0x2ae2af,_0xabee8f['markerName']);}};}class yt extends _0x32d277{['afterInit'](){const _0x4b08ed=this['editor'];if(!_0x4b08ed['plugins']['has']('RemoveFormatEditing'))return;_0x4b08ed['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x430d55=this['editor'];_0x430d55['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x191b3d=>{if('formatBlock'!=_0x191b3d['type']&&'formatInline'!=_0x191b3d['type'])return;const {data:_0x4ee1e7}=_0x191b3d;return _0x4ee1e7&&'removeFormat'==_0x4ee1e7['commandName']?{'type':'format','content':o(_0x430d55['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x32d277{['afterInit'](){const _0x31c958=this['editor'];if(!_0x31c958['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x83754f=_0x31c958['plugins']['get']('TrackChangesEditing');_0x83754f['enableCommand']('goToPreviousRestrictedEditingException'),_0x83754f['enableCommand']('goToNextRestrictedEditingException');const _0x2fb335=_0x31c958['plugins']['get']('RestrictedEditingModeEditing');_0x2fb335['enableCommand']('trackChanges'),_0x2fb335['enableCommand']('acceptSuggestion'),_0x2fb335['enableCommand']('discardSuggestion'),_0x2fb335['enableCommand']('acceptAllSuggestions'),_0x2fb335['enableCommand']('discardAllSuggestions'),_0x2fb335['enableCommand']('acceptSelectedSuggestions'),_0x2fb335['enableCommand']('discardSelectedSuggestions');}}class St extends _0x32d277{static get['requires'](){return[_0x4ae6b1];}['init'](){const _0x5da2c9=this['editor'],_0x2c97fc=_0x5da2c9['plugins']['get']('TrackChangesEditing');_0x2c97fc['enableCommand']('shiftEnter'),_0x5da2c9['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x5da2c9),{'priority':'high'}),_0x5da2c9['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x5da2c9),{'priority':'high'}),_0x5da2c9['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x591b63,_0x4768c5,_0x1857f8)=>{_0x1857f8['options']['showSuggestionHighlights']&&je(_0x5da2c9,{'showActiveMarker':!0x1})(_0x591b63,_0x4768c5,_0x1857f8);}),_0x2c97fc['descriptionFactory']['registerElementLabel']('softBreak',_0x3f15ef=>o(_0x5da2c9['locale'],'ELEMENT_LINE_BREAK',_0x3f15ef));}}function je(_0x2caa22,{showActiveMarker:_0x3d9f29=!0x0}={}){return(_0x1c915b,_0x137350,_0xa1dec3)=>{const _0x10852c=_0x2caa22['plugins']['get']('TrackChangesEditing');if(!_0xa1dec3['consumable']['test'](_0x137350['markerRange'],_0x1c915b['name']))return;const _0x4402d8=_0x2caa22['model'];for(const _0x1d487c of _0x137350['markerRange']['getItems']()){if(!_0x1d487c['is']('element','softBreak'))continue;const _0x5e8ec5='deletion'==_0x137350['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x278957}=_0x10852c['_splitMarkerName'](_0x137350['markerName']),_0xd052d1=_0xa1dec3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5e8ec5,'data-author-id':_0x278957}),_0x2fbd6e=_0xa1dec3['mapper']['toViewPosition'](_0x4402d8['createPositionBefore'](_0x1d487c));_0x3d9f29&&_0x10852c['activeMarkers']['includes'](_0x137350['markerName'])&&_0xa1dec3['writer']['addClass']('ck-suggestion-marker--active',_0xd052d1),_0xa1dec3['writer']['insert'](_0x2fbd6e,_0xd052d1),_0xa1dec3['mapper']['bindElementToMarker'](_0xd052d1,_0x137350['markerName']);}};}class At extends _0x32d277{['afterInit'](){const _0x13b3af=this['editor'],_0x5856e2=_0x13b3af['model'],_0x10bc1a=_0x13b3af['locale'];if(!_0x13b3af['plugins']['has']('StandardEditingModeEditing'))return;const _0x19bcae=_0x13b3af['plugins']['get']('TrackChangesEditing'),_0x11eb8d='restrictedEditingException',_0x7befad=_0x13b3af['commands']['get'](_0x11eb8d);_0x19bcae['enableCommand'](_0x11eb8d,(_0x32cec0,_0x34a680={})=>{const _0x37fabd=_0x5856e2['document']['selection'];if(_0x37fabd['isCollapsed'])return void _0x32cec0(_0x34a680);const _0x11b2bb=void 0x0!==_0x34a680['forceValue']?_0x34a680['forceValue']:!_0x7befad['value'];_0x5856e2['change'](()=>{const _0xe581f8=Array['from'](_0x37fabd['getRanges']());for(const _0x48fe8d of _0xe581f8){const _0x399a8c=_0x11b2bb?[_0x48fe8d]:io(_0x11eb8d,_0x48fe8d,_0x5856e2);for(const _0x59a0f1 of _0x399a8c)_0x19bcae['markInlineFormat'](_0x59a0f1,{'commandName':_0x11eb8d,'commandParams':[{'forceValue':_0x11b2bb}]});}});}),_0x19bcae['descriptionFactory']['registerDescriptionCallback'](_0x4f9a4c=>{if('formatBlock'!=_0x4f9a4c['type']&&'formatInline'!=_0x4f9a4c['type'])return;const {data:_0x3a2986}=_0x4f9a4c;return _0x3a2986&&_0x3a2986['commandName']==_0x11eb8d?_0x3a2986['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x10bc1a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x10bc1a,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x32d277{['afterInit'](){const _0x4de1d9=this['editor'];if(!_0x4de1d9['plugins']['has']('Style')||!_0x4de1d9['plugins']['has']('DataSchema'))return;const _0x1b88f0=_0x4de1d9['plugins']['get']('TrackChangesEditing'),_0x43bedc=_0x4de1d9['locale'],_0x2be0ec=_0x4de1d9['config']['get']('style')||{},_0x5803b9=_0x4de1d9['plugins']['get']('GeneralHtmlSupport'),_0x366129=_0x4de1d9['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4de1d9['plugins']['get']('DataSchema'),_0x2be0ec['definitions']);_0x1b88f0['enableDefaultAttributesIntegration']('style');const _0x34d9ce=new Set();for(const _0x48e330 of _0x366129['block']){const _0x25769c=_0x5803b9['getGhsAttributeNameForElement'](_0x48e330['element']);_0x34d9ce['add'](_0x25769c);}const _0xccc9a9=new Set();for(const _0x19251a of _0x366129['inline']){const _0x2567c1=_0x5803b9['getGhsAttributeNameForElement'](_0x19251a['element']);_0xccc9a9['add'](_0x2567c1);for(const _0x3cba56 of _0x19251a['ghsAttributes'])_0xccc9a9['add'](_0x3cba56);}for(const _0x5bc8c0 of _0x34d9ce)_0x1b88f0['registerBlockAttribute'](_0x5bc8c0),_0x1b88f0['descriptionFactory']['registerAttributeLabel'](_0x5bc8c0,o(_0x43bedc,'FORMAT_STYLE'));for(const _0x632b66 of _0xccc9a9)_0x1b88f0['registerInlineAttribute'](_0x632b66),_0x1b88f0['descriptionFactory']['registerAttributeLabel'](_0x632b66,o(_0x43bedc,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11ca68=this['editor'],_0xd5b052=_0x11ca68['locale'];_0x11ca68['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x519358=>{if('formatBlock'!=_0x519358['type']&&'formatInline'!=_0x519358['type'])return;const {data:_0x320a70}=_0x519358;return _0x320a70&&'style'===_0x320a70['commandName']?_0x320a70['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xd5b052,'*Set\x20format:*\x20%0',_0x320a70['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xd5b052,'*Remove\x20format:*\x20%0',_0x320a70['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x32d277{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x33b744){super(_0x33b744),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x42d3c6=this['editor'],_0x3b4a27=_0x42d3c6['model']['document']['selection'];if(!_0x42d3c6['plugins']['has']('TableEditing'))return;const _0x1901f8=_0x42d3c6['locale'],_0x1114ab=_0x42d3c6['plugins']['get']('TrackChangesEditing'),_0x248d7d=_0x42d3c6['plugins']['get']('TableUtils');_0x1114ab['descriptionFactory']['registerElementLabel']('table',_0x565ba1=>o(_0x1901f8,'ELEMENT_TABLE',_0x565ba1)),this['_setupColumnsRowsFixing'](),_0x1114ab['enableCommand']('insertTable'),_0x1114ab['enableCommand']('selectTableRow'),_0x1114ab['enableCommand']('selectTableColumn');for(const _0x58f335 of['insertTableRowAbove','insertTableRowBelow']){const _0x3488ac=_0x42d3c6['commands']['get'](_0x58f335);_0x1114ab['enableCommand'](_0x58f335,_0x3707ee=>{_0x42d3c6['model']['change'](_0x21f2eb=>{_0x3707ee();const _0x3a34b4='above'===_0x3488ac['order'],_0x492c91=_0x248d7d['getSelectionAffectedTableCells'](_0x3b4a27),_0x498bb6=_0x248d7d['getRowIndexes'](_0x492c91),_0x25e386=_0x3a34b4?_0x498bb6['first']-0x1:_0x498bb6['last']+0x1,_0x547059=_0x492c91[0x0]['findAncestor']('table'),_0x51edf7=_0x248d7d['createTableWalker'](_0x547059,{'startRow':_0x25e386,'endRow':_0x25e386}),_0x460a16=Array['from'](_0x51edf7)['map'](_0x22510c=>_0x21f2eb['createRangeOn'](_0x22510c['cell']));_0x1114ab['markMultiRangeInsertion'](_0x460a16,'tableRow');});});}for(const _0x45e873 of['insertTableColumnLeft','insertTableColumnRight']){const _0x220971=_0x42d3c6['commands']['get'](_0x45e873);_0x1114ab['enableCommand'](_0x45e873,_0x3eb3e0=>{_0x42d3c6['model']['change'](_0x528ca7=>{_0x3eb3e0();const _0xf32010='left'===_0x220971['order'],_0x3401e3=_0x248d7d['getSelectionAffectedTableCells'](_0x3b4a27),_0x13a4e2=_0x248d7d['getColumnIndexes'](_0x3401e3),_0x421a42=_0xf32010?_0x13a4e2['first']-0x1:_0x13a4e2['last']+0x1,_0x3e5d88=_0x3401e3[0x0]['findAncestor']('table'),_0xf13a=_0x248d7d['createTableWalker'](_0x3e5d88,{'startRow':0x0,'column':_0x421a42,'includeAllSlots':!0x1}),_0x5aa3ac=Array['from'](_0xf13a)['map'](_0x5ea627=>_0x528ca7['createRangeOn'](_0x5ea627['cell']));_0x1114ab['markMultiRangeInsertion'](_0x5aa3ac,'tableColumn');});});}for(const _0xe64396 of['removeTableRow','removeTableColumn']){const _0xc3828a=_0xe64396['substr'](0xb),_0x1a4862=_0xc3828a['toLowerCase'](),_0x2db53b=_0x1a4862['substr'](0x0,0x3)+'span',_0x3fc01a='table'+_0xc3828a,_0x3711ae='min'+_0xc3828a,_0xd92beb='max'+_0xc3828a;_0x1114ab['enableCommand'](_0xe64396,()=>{_0x42d3c6['model']['change'](_0x3775c1=>{const _0x505d13=_0x248d7d['getSelectionAffectedTableCells'](_0x3b4a27),_0x594bdf=_0x505d13[0x0]['findAncestor']('table');let _0x1975ba;if('removeTableRow'==_0xe64396){const _0x440bd3=_0x248d7d['getRowIndexes'](_0x505d13);_0x1975ba={'startRow':_0x440bd3['first'],'endRow':_0x440bd3['last'],'includeAllSlots':!0x0};}else{const _0x4bcc73=_0x248d7d['getColumnIndexes'](_0x505d13);_0x1975ba={'startColumn':_0x4bcc73['first'],'endColumn':_0x4bcc73['last'],'includeAllSlots':!0x0};}const _0x4acc08=_0x248d7d['createTableWalker'](_0x594bdf,_0x1975ba),_0x32fa30=Array['from'](_0x4acc08)['map'](({cell:_0x5a2b83})=>_0x5a2b83),_0x1d1a76=Ne(_0x32fa30['filter'](_0x42fcb8=>_0x42fcb8['hasAttribute'](_0x2db53b))),_0x1d0510=Ne(_0x32fa30['filter'](_0x2282d3=>!_0x2282d3['hasAttribute'](_0x2db53b)))['map'](_0x4e88ac=>_0x3775c1['createRangeOn'](_0x4e88ac)),_0x55fd25=_0x1114ab['markMultiRangeDeletion'](_0x1d0510,_0x3fc01a);if(_0x55fd25&&('tableRow'==_0x55fd25['subType']||'tableColumn'==_0x55fd25['subType'])){const _0xfee2da=this['_getSuggestionCoords'](_0x55fd25);for(const _0x54734f of _0x1d1a76){const _0x415872=_0x3775c1['createRangeOn'](_0x54734f),_0x248ecd=_0x248d7d['getCellLocation'](_0x54734f),_0x2ca234=_0x54734f['getAttribute'](_0x2db53b)-0x1,_0x1e6e37=_0xfee2da[_0x3711ae],_0x40fece=_0xfee2da[_0xd92beb];_0x1e6e37<=_0x248ecd[_0x1a4862]&&_0x248ecd[_0x1a4862]+_0x2ca234<=_0x40fece&&_0x55fd25['addRange'](_0x415872);}}});});}function _0x5d8160(_0x5b7dad){const _0x39b889=Array['from'](_0x3b4a27['getRanges']())['map'](_0x2fad5c=>_0x14dd4f['fromRange'](_0x2fad5c));_0x42d3c6['model']['change'](_0x59948e=>{const _0x331c38=_0x59948e['batch'];_0x5b7dad=_0x5b7dad['filter'](_0x305804=>'$graveyard'!=_0x305804['root']['rootName']),_0x59948e['setSelection'](_0x5b7dad),_0x42d3c6['commands']['get']('removeTableRow')['refresh'](),_0x42d3c6['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x42d3c6['model']['enqueueChange'](()=>{_0x42d3c6['model']['enqueueChange'](_0x331c38,_0x4bf3bf=>{const _0x72fe8a=_0x39b889['filter'](_0x1e5fbd=>'$graveyard'!=_0x1e5fbd['root']['rootName']);_0x72fe8a['length']>0x0&&_0x4bf3bf['setSelection'](_0x72fe8a);for(const _0x5ba268 of _0x39b889)_0x5ba268['detach']();});});});}function _0x53f1d6(_0x8928da){_0x42d3c6['model']['change'](_0x35a05b=>{const _0x151e87=Array['from'](_0x3b4a27['getRanges']())['map'](_0x883b8b=>_0x14dd4f['fromRange'](_0x883b8b)),_0x2d0121=[];for(const _0x324797 of _0x8928da)for(const _0x3406c2 of _0x324797['getItems']({'shallow':!0x0}))_0x2d0121['push'](_0x3406c2);for(const _0x1747ab of _0x2d0121)'$graveyard'!=_0x1747ab['root']['rootName']&&(_0x35a05b['setSelection'](_0x35a05b['createPositionAt'](_0x1747ab,0x0)),_0x42d3c6['commands']['get']('removeTableColumn')['refresh'](),_0x42d3c6['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x398988=_0x151e87['filter'](_0x1fd560=>'$graveyard'!=_0x1fd560['root']['rootName']);_0x398988['length']>0x0&&_0x35a05b['setSelection'](_0x398988);for(const _0x48499c of _0x151e87)_0x48499c['detach']();});}function _0x44d2d4(_0x41b755,_0x38aa1c){return _0x38aa1c['every'](_0x5a6d91=>_0x41b755['some'](_0x367453=>_0x367453['end']['isEqual'](_0x5a6d91['start'])||_0x5a6d91['end']['isEqual'](_0x367453['start'])));}function _0x5d094a(_0x17a2e0,_0x1ca951){return!_0x17a2e0['some'](_0x1b7342=>_0x1ca951['some'](_0x1d21dd=>_0x1b7342['isIntersecting'](_0x1d21dd)))&&_0x17a2e0['some'](_0x403cef=>_0x1ca951['some'](_0x38e81c=>_0x403cef['end']['isTouching'](_0x38e81c['start'])));}_0x42d3c6['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2b23ef,_0x59d475,_0xab5394)=>{if(!_0xab5394['options']['showSuggestionHighlights'])return;const _0x20e810=_0x59d475['item'];if(!_0x20e810)return;const _0x5218a1=_0xab5394['mapper']['toViewElement'](_0x20e810);function _0x2b6460(_0x390052){return Array['isArray'](_0x390052)?_0x390052:[_0x390052];}_0x5218a1&&'tableCell'===_0x20e810['name']&&_0xb393f7(_0x5218a1,_0xab5394['writer'],(_0x5e65e4,_0x38bbff,_0x5425e7)=>_0x5425e7['addClass'](_0x2b6460(_0x38bbff['classes']),_0x5e65e4),(_0x3d7725,_0xc16e6,_0x4c2c3b)=>_0x4c2c3b['removeClass'](_0x2b6460(_0xc16e6['classes']),_0x3d7725));},{'priority':'highest'}),_0x1114ab['descriptionFactory']['registerDescriptionCallback'](_0x3e246f=>{if('insertion'!=_0x3e246f['type']&&'deletion'!=_0x3e246f['type'])return;const _0x461d2f=_0x3e246f['getContainedElement']();if(null!=_0x461d2f&&_0x461d2f['is']('element','table')){if('insertion'==_0x3e246f['type']){const _0x4cdd73=_0x3e246f['getItems']()['filter'](_0x48290c=>_0x48290c['is']('$textProxy'))['map'](_0x35d1d7=>_0x35d1d7['data']);if(_0x4cdd73['length'])return{'type':'insertion','content':o(_0x1901f8,'*Insert:*\x20%0',o(_0x1901f8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4cdd73['join']('\x20')+'\x22'))};}if('deletion'==_0x3e246f['type']){const _0x51a776=_0x3e246f['getItems']()['filter'](_0x390fbb=>_0x390fbb['is']('$textProxy'))['map'](_0x57b3bb=>_0x57b3bb['data']);if(_0x51a776['length'])return{'type':'deletion','content':o(_0x1901f8,'*Remove:*\x20%0',o(_0x1901f8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x51a776['join']('\x20')+'\x22'))};}}}),_0x1114ab['descriptionFactory']['registerDescriptionCallback'](_0x2140e3=>{if('tableRow'==_0x2140e3['subType']){const _0x4c228c=_0x2140e3['getItems']()['filter'](_0x5eacbd=>_0x5eacbd['is']('$textProxy'))['map'](_0x24e65b=>_0x24e65b['data']),_0x37f8f1=this['_getSuggestionCoords'](_0x2140e3),_0x48f000=_0x37f8f1['maxRow']-_0x37f8f1['minRow']+0x1;if('insertion'==_0x2140e3['type'])return _0x4c228c['length']?{'type':'insertion','content':o(_0x1901f8,'*Insert:*\x20%0',o(_0x1901f8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x48f000,'\x22'+_0x4c228c['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1901f8,'*Insert:*\x20%0',o(_0x1901f8,'ELEMENT_TABLE_ROW',_0x48f000))};if('deletion'==_0x2140e3['type'])return _0x4c228c['length']?{'type':'deletion','content':o(_0x1901f8,'*Remove:*\x20%0',o(_0x1901f8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x48f000,'\x22'+_0x4c228c['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1901f8,'*Remove:*\x20%0',o(_0x1901f8,'ELEMENT_TABLE_ROW',_0x48f000))};}if('tableColumn'==_0x2140e3['subType']){const _0x42b803=_0x2140e3['getItems']()['filter'](_0x40b5e1=>_0x40b5e1['is']('$textProxy'))['map'](_0x175911=>_0x175911['data']),_0x5e232c=this['_getSuggestionCoords'](_0x2140e3),_0x2dd508=_0x5e232c['maxColumn']-_0x5e232c['minColumn']+0x1;if('insertion'==_0x2140e3['type'])return _0x42b803['length']?{'type':'insertion','content':o(_0x1901f8,'*Insert:*\x20%0',o(_0x1901f8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2dd508,'\x22'+_0x42b803['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1901f8,'*Insert:*\x20%0',o(_0x1901f8,'ELEMENT_TABLE_COLUMN',_0x2dd508))};if('deletion'==_0x2140e3['type'])return _0x42b803['length']?{'type':'deletion','content':o(_0x1901f8,'*Remove:*\x20%0',o(_0x1901f8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2dd508,'\x22'+_0x42b803['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1901f8,'*Remove:*\x20%0',o(_0x1901f8,'ELEMENT_TABLE_COLUMN',_0x2dd508))};}}),_0x1114ab['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5d8160),_0x1114ab['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5d8160),_0x1114ab['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x53f1d6),_0x1114ab['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x53f1d6),_0x1114ab['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x44d2d4),_0x1114ab['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x44d2d4),_0x1114ab['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5d094a),_0x1114ab['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5d094a);}['_acceptFormatSuggestionCallbackFactory'](){const _0x32561e=this['editor'],_0x44dea2=_0x32561e['model']['document']['selection'];return(_0x7da9d5,_0x5d288b)=>{_0x32561e['model']['change'](_0x317807=>{const {commandName:_0x21ee55,commandParams:_0x11fe45}=_0x5d288b;let _0x4288bd=_0x7da9d5[0x0]['end']['nodeBefore'];_0x11fe45&&_0x11fe45[0x0]&&!0x1===_0x11fe45[0x0]['forceValue']&&(_0x4288bd=_0x7da9d5[0x0]['start']['nodeAfter']);const _0x57c04f=_0x317807['createRangeIn'](_0x4288bd);if('$graveyard'==_0x57c04f['root']['rootName'])return;const _0x89d1e5=Array['from'](_0x44dea2['getRanges']())['map'](_0x38ac82=>_0x14dd4f['fromRange'](_0x38ac82));_0x317807['setSelection'](_0x57c04f),_0x32561e['commands']['get'](_0x21ee55)['refresh'](),_0x11fe45['push']({'forceDefaultExecution':!0x0}),_0x32561e['execute'](_0x21ee55,..._0x11fe45);const _0xaef996=_0x89d1e5['filter'](_0x47a93=>'$graveyard'!=_0x47a93['root']['rootName']);_0xaef996['length']>0x0&&_0x317807['setSelection'](_0xaef996);for(const _0x1dbd77 of _0x89d1e5)_0x1dbd77['detach']();});};}['_getCoordsForCells'](_0x2cabe8){const _0x5a39cf=this['editor']['plugins']['get']('TableUtils');let _0x62db3=Number['MAX_SAFE_INTEGER'],_0xf4a5fc=Number['MIN_SAFE_INTEGER'],_0x1b731f=Number['MAX_SAFE_INTEGER'],_0x3391c6=Number['MIN_SAFE_INTEGER'];for(const _0x11599d of _0x2cabe8){if('$graveyard'==_0x11599d['root']['rootName'])continue;const {row:_0x15340a,column:_0x5906d8}=_0x5a39cf['getCellLocation'](_0x11599d),_0x423765=_0x11599d['hasAttribute']('rowspan')?_0x11599d['getAttribute']('rowspan')-0x1:0x0,_0x476e1a=_0x11599d['hasAttribute']('colspan')?_0x11599d['getAttribute']('colspan')-0x1:0x0;_0x62db3=_0x15340a<_0x62db3?_0x15340a:_0x62db3,_0xf4a5fc=_0x15340a+_0x423765>_0xf4a5fc?_0x15340a+_0x423765:_0xf4a5fc,_0x1b731f=_0x5906d8<_0x1b731f?_0x5906d8:_0x1b731f,_0x3391c6=_0x5906d8+_0x476e1a>_0x3391c6?_0x5906d8+_0x476e1a:_0x3391c6;}return{'minRow':_0x62db3,'maxRow':_0xf4a5fc,'minColumn':_0x1b731f,'maxColumn':_0x3391c6};}['_setupColumnsRowsFixing'](){const _0x5e1427=this['editor'],_0x374d2c=_0x5e1427['plugins']['get']('TrackChangesEditing'),_0x4dd91b=_0x5e1427['plugins']['get']('TableUtils');_0x5e1427['model']['document']['on']('change:data',()=>{const _0x3d4024=Array['from'](_0x5e1427['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x284566,data:_0x559c2a}of _0x3d4024){const {group:_0x42df26,id:_0x3c4ead,subType:_0xd74c3a}=_0x374d2c['_splitMarkerName'](_0x284566);if('suggestion'!=_0x42df26)continue;if(null!=_0x559c2a['oldRange'])continue;const _0x1987fe=_0x374d2c['getSuggestion'](_0x3c4ead);this['_tablePostFixingSubtypes']['includes'](_0xd74c3a)&&this['_tableSuggestions']['add'](_0x1987fe);}},{'priority':'low'});const _0x56b2c7=(_0x100db3,_0x423ccf)=>{let _0x3514f6=!0x1;const _0x58110b=_0x423ccf['createRangeOn'](_0x100db3),_0xc1d9a6=_0x100db3['findAncestor']('table'),_0x692e60=_0x4dd91b['getCellLocation'](_0x100db3);for(const _0x161fa1 of this['_tableSuggestions']){const _0x52fa75=_0x161fa1['subType'],_0xd0ae43=_0x52fa75['startsWith']('tablePaste'),_0x310f98=_0x52fa75['substr'](_0xd0ae43?0xa:0x5),_0x55649e=_0x310f98['toLowerCase'](),_0x2b1abc=_0x55649e['substr'](0x0,0x3)+'span',_0x22b1a8='min'+_0x310f98,_0xdc794b='max'+_0x310f98;if(!_0x161fa1['isInContent'])continue;if(_0xc1d9a6!=_0x161fa1['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x161fa1['isIntersectingWithRange'](_0x58110b))continue;const _0x3e641c=_0x100db3['hasAttribute'](_0x2b1abc)?_0x100db3['getAttribute'](_0x2b1abc)-0x1:0x0,_0x1712f1=this['_getSuggestionCoords'](_0x161fa1),_0x3b7032=_0x1712f1[_0x22b1a8],_0x55cd64=_0x1712f1[_0xdc794b];_0x3b7032<=_0x692e60[_0x55649e]&&_0x692e60[_0x55649e]+_0x3e641c<=_0x55cd64&&(_0x161fa1['addRange'](_0x58110b),_0x3514f6=!0x0);}return _0x3514f6;};_0x5e1427['model']['document']['registerPostFixer'](_0x120cb9=>{let _0x57d35e=!0x1;for(const _0x486d0e of _0x5e1427['model']['document']['differ']['getChanges']())if('insert'==_0x486d0e['type']){if('tableRow'==_0x486d0e['name']){for(const _0x2431a7 of _0x486d0e['position']['nodeAfter']['getChildren']())_0x57d35e=_0x57d35e||_0x56b2c7(_0x2431a7,_0x120cb9);}else'tableCell'==_0x486d0e['name']&&(_0x57d35e=_0x57d35e||_0x56b2c7(_0x486d0e['position']['nodeAfter'],_0x120cb9));}return _0x57d35e;});}['_getSuggestionCoords'](_0x1b4013){return this['_getCoordsForCells'](_0x1b4013['getRanges']()['map'](_0x53fe31=>_0x53fe31['start']['nodeAfter']));}}function Ne(_0x2dfc57){return Array['from'](new Set(_0x2dfc57)['values']());}class _t extends _0x32d277{static get['requires'](){return[vt];}['afterInit'](){const _0x4c2e46=this['editor'],_0x342ded=_0x4c2e46['model']['document']['selection'],_0x3cc898=_0x4c2e46['locale'];if(!_0x4c2e46['plugins']['has']('TableEditing'))return;const _0x204651=_0x4c2e46['plugins']['get']('TrackChangesEditing'),_0x479093=_0x4c2e46['plugins']['get']('TableUtils'),_0x39ee4b=_0x4c2e46['plugins']['get'](vt);_0x39ee4b['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x204651['enableCommand']('mergeTableCells',()=>{const _0x30ea39=_0x479093['getSelectionAffectedTableCells'](_0x4c2e46['model']['document']['selection']);_0x4c2e46['model']['change'](()=>{_0x204651['markMultiRangeBlockFormat'](_0x30ea39,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4c2e46['commands']['get']('mergeTableCells')['on']('execute',(_0x5aba41,_0x22159c)=>{_0x4c2e46['commands']['get']('trackChanges')['value']&&(_0x22159c['length']>0x0&&_0x22159c[_0x22159c['length']-0x1]&&_0x22159c[_0x22159c['length']-0x1]['forceDefaultExecution']||_0x204651['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5aba41['stop']());},{'priority':'highest'});for(const _0x1d9ddf of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x25914d=_0x4c2e46['commands']['get'](_0x1d9ddf);_0x204651['enableCommand'](_0x1d9ddf,()=>{const _0x25efe1=_0x4c2e46['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3f60aa=>_0x3f60aa['is']('element','tableCell')),_0x4957e9=_0x25914d['value'];_0x4c2e46['model']['change'](()=>{_0x204651['markMultiRangeBlockFormat']([_0x25efe1,_0x4957e9],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x10aa02 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x192441=_0x4c2e46['commands']['get'](_0x10aa02);_0x204651['enableCommand'](_0x10aa02,()=>{const _0x324f38=_0x479093['getSelectionAffectedTableCells'](_0x4c2e46['model']['document']['selection'])[0x0],_0x597e44=_0x324f38['findAncestor']('table'),{column:_0x2f349e,row:_0x4beb77}=_0x479093['getCellLocation'](_0x324f38);let _0x4576eb=[];if('horizontally'==_0x192441['direction']){const _0x1bb1c0=_0x479093['createTableWalker'](_0x597e44,{'startRow':_0x4beb77,'endRow':_0x4beb77,'includeAllSlots':!0x0});_0x4576eb=Array['from'](_0x1bb1c0)['map'](_0x15d700=>_0x15d700['cell']);}else{const _0x59e742=_0x479093['createTableWalker'](_0x597e44,{'column':_0x2f349e,'includeAllSlots':!0x0});_0x4576eb=Array['from'](_0x59e742)['map'](_0x39f6a7=>_0x39f6a7['cell']);}_0x4c2e46['model']['change'](_0x4ad30f=>{_0x204651['markBlockFormat'](_0x4ad30f['createRangeOn'](_0x324f38),{'commandName':_0x10aa02,'commandParams':[]},_0x4576eb,_0x10aa02);});});}_0x204651['descriptionFactory']['registerDescriptionCallback'](_0x21ccda=>{if('formatBlock'!=_0x21ccda['type']&&'formatInline'!=_0x21ccda['type'])return;const {data:_0x3b76f7}=_0x21ccda;return _0x3b76f7&&'mergeTableCells'==_0x3b76f7['commandName']?{'type':'format','content':o(_0x3cc898,'*Merge\x20cells*')}:void 0x0;}),_0x204651['descriptionFactory']['registerDescriptionCallback'](_0x4660c6=>{if('formatBlock'!=_0x4660c6['type']&&'formatInline'!=_0x4660c6['type'])return;const {data:_0x3c4db4}=_0x4660c6;return _0x3c4db4?'splitTableCellVertically'==_0x3c4db4['commandName']?{'type':'format','content':o(_0x3cc898,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3c4db4['commandName']?{'type':'format','content':o(_0x3cc898,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x331ea7=_0x39ee4b['_acceptFormatSuggestionCallbackFactory']();for(const _0x54b9ff of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x204651['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x54b9ff,'accept',_0x331ea7);for(const _0x738dbe of['splitTableCellVertically','splitTableCellHorizontally'])_0x204651['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x738dbe,'accept',_0x331ea7);_0x204651['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4ab738=>{_0x4c2e46['model']['change'](_0x312d75=>{const _0xfaef2=Array['from'](_0x342ded['getRanges']())['map'](_0x17431c=>_0x14dd4f['fromRange'](_0x17431c));_0x312d75['setSelection'](_0x4ab738),_0x4c2e46['commands']['get']('mergeTableCells')['refresh'](),_0x4c2e46['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3b6538=_0xfaef2['filter'](_0x4bae36=>'$graveyard'!=_0x4bae36['root']['rootName']);_0x3b6538['length']>0x0&&_0x312d75['setSelection'](_0x3b6538);for(const _0x271e73 of _0xfaef2)_0x271e73['detach']();});});for(const _0x7d08ff of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x504985=_0x4c2e46['commands']['get'](_0x7d08ff);_0x504985['on']('set:isEnabled',(_0x19488e,_0x59aa70,_0x4da146)=>{if(_0x4da146){const _0x2dbe27=_0x4c2e46['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x570fc1=>_0x570fc1['is']('element','tableCell'));this['_areMergableCells'](_0x504985['value'],_0x2dbe27)||(_0x19488e['return']=!0x1,_0x19488e['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x55b018=this['editor']['commands']['get']('mergeTableCells'),_0x3a3541=this['editor']['plugins']['get']('TableUtils');if(!_0x55b018['isEnabled'])return!0x1;const _0x296d07=_0x3a3541['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2ab8ed of _0x296d07)for(const _0x2ca5ce of _0x296d07)if(_0x2ab8ed!=_0x2ca5ce&&!this['_areMergableCells'](_0x2ab8ed,_0x2ca5ce))return!0x1;return!0x0;}['_areMergableCells'](_0x502e42,_0x113dcd){const _0x15da75=this['editor']['plugins']['get']('TrackChangesEditing'),_0x28c55a=this['editor']['model']['createRangeOn'](_0x502e42),_0x34097f=this['editor']['model']['createRangeOn'](_0x113dcd),_0x33e724=new Set(),_0x3ed867=new Set();for(const _0x892931 of _0x15da75['getSuggestions']())if(('insertion'==_0x892931['type']||'deletion'==_0x892931['type']||'mergeTableCells'==_0x892931['subType'])&&_0x892931['isInContent']){for(const _0x4a96d5 of _0x892931['getRanges']())_0x4a96d5['containsRange'](_0x28c55a,!0x0)&&_0x33e724['add'](_0x892931['type']+':'+_0x892931['author']['id']),_0x4a96d5['containsRange'](_0x34097f,!0x0)&&_0x3ed867['add'](_0x892931['type']+':'+_0x892931['author']['id']);}if(_0x33e724['size']!=_0x3ed867['size'])return!0x1;for(const _0x1f6fbb of _0x33e724)if(!_0x3ed867['has'](_0x1f6fbb))return!0x1;return!0x0;}}class Ct extends _0x32d277{static get['requires'](){return[vt];}['afterInit'](){const _0x1bf4da=this['editor'];if(!_0x1bf4da['plugins']['has']('TableEditing'))return;const _0x1bf07e=_0x1bf4da['locale'],_0x16a7e8=_0x1bf4da['plugins']['get']('TrackChangesEditing');_0x16a7e8['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x16a7e8['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x16a7e8['registerBlockAttribute']('headingRows'),_0x16a7e8['registerBlockAttribute']('headingColumns'),_0x16a7e8['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1bf07e,'FORMAT_HEADER_ROW')),_0x16a7e8['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1bf07e,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x43c902=this['editor']['plugins']['get']('TrackChangesEditing'),_0x14e8bf=this['editor']['plugins']['get']('TableUtils'),_0x383208=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x143e65({showActiveMarker:_0x2d825b=!0x0,setDataAttribute:_0x4174b9=!0x0}={}){return(_0x554e0d,_0xf101b8,_0x490734)=>{const {type:_0x1b82a9,id:_0x53285e}=_0x43c902['_splitMarkerName'](_0xf101b8['markerName']),_0x1c892c=_0x43c902['getSuggestion'](_0x53285e),_0x1ed6de=_0x1c892c['data'];if('formatBlock'!=_0x1c892c['type']||!_0x1ed6de||'setTableColumnHeader'!=_0x1ed6de['commandName'])return;if(_0xf101b8['item'])return void _0x554e0d['stop']();if(!_0x490734['consumable']['consume'](_0xf101b8['markerRange'],_0x554e0d['name']))return;const _0x2b63fe=_0xf101b8['markerRange']['start']['nodeAfter'],_0x517ee5=_0xf101b8['markerRange']['end']['nodeBefore'],_0x1f3a30=_0x2b63fe['parent']['parent'],{column:_0x21f50b}=_0x14e8bf['getCellLocation'](_0x2b63fe),{column:_0x56f9a2}=_0x14e8bf['getCellLocation'](_0x517ee5);for(let _0xa2e835=_0x21f50b;_0xa2e835<=_0x56f9a2;_0xa2e835++){const _0x46fd70=_0x14e8bf['createTableWalker'](_0x1f3a30,{'column':_0xa2e835,'includeAllSlots':!0x1});for(const _0xcc7894 of _0x46fd70){const _0x29fc31=_0xcc7894['cell'],_0x46deb8=_0x490734['mapper']['toViewElement'](_0x29fc31);_0x490734['writer']['addClass']('ck-suggestion-marker-'+_0x1b82a9,_0x46deb8),_0x4174b9&&_0x490734['writer']['setAttribute']('data-suggestion',_0x53285e,_0x46deb8),_0x490734['mapper']['bindElementToMarker'](_0x46deb8,_0xf101b8['markerName']),_0x2d825b&&(_0x43c902['activeMarkers']['includes'](_0xf101b8['markerName'])?_0x490734['writer']['addClass']('ck-suggestion-marker--active',_0x46deb8):_0x490734['writer']['removeClass']('ck-suggestion-marker--active',_0x46deb8));}}};}_0x43c902['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x383208),_0x43c902['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x383208),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x143e65(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x404ce8,_0x247994,_0x553596)=>{_0x553596['options']['showSuggestionHighlights']&&_0x143e65({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x404ce8,_0x247994,_0x553596);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1155e4,_0x2c9619,_0xd61e85)=>{const {type:_0x47b7fb,id:_0x12e194}=_0x43c902['_splitMarkerName'](_0x2c9619['markerName']),_0x52c09c=_0x43c902['getSuggestion'](_0x12e194),_0x2fa6d6=_0x52c09c['data'];if('formatBlock'!=_0x52c09c['type']||!_0x2fa6d6||'setTableColumnHeader'!=_0x2fa6d6['commandName'])return;const _0x416abe=_0xd61e85['mapper']['markerNameToElements'](_0x2c9619['markerName']);if(_0x416abe){for(const _0x4cf179 of _0x416abe)_0xd61e85['writer']['removeClass']('ck-suggestion-marker-'+_0x47b7fb,_0x4cf179),_0xd61e85['writer']['removeClass']('ck-suggestion-marker--active',_0x4cf179),_0xd61e85['writer']['removeAttribute']('data-suggestion',_0x4cf179),_0xd61e85['mapper']['unbindElementFromMarkerName'](_0x4cf179,_0x2c9619['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf4da02=this['editor'],_0x1d66a2=_0xf4da02['locale'];function _0x10918c(_0x2c5784){return{'type':'format','content':o(_0x1d66a2,'*Format:*\x20%0',_0x2c5784)};}_0xf4da02['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27d485=>{if('formatBlock'!=_0x27d485['type'])return;const {data:_0xe75452}=_0x27d485;if(_0xe75452){if('setTableRowHeader'==_0xe75452['commandName']){const _0xf2991=_0xe75452['commandParams'][0x0]['forceValue'];return _0x10918c(o(_0x1d66a2,_0xf2991?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xe75452['commandName']){const _0x286c4=_0xe75452['commandParams'][0x0]['forceValue'];return _0x10918c(o(_0x1d66a2,_0x286c4?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0xe7b38a=>[_0xe7b38a,null]));class Nt extends _0x32d277{static get['requires'](){return[vt];}['afterInit'](){const _0x531162=this['editor'];if(!_0x531162['plugins']['has']('TableClipboard'))return;const _0xda7204=_0x531162['plugins']['get']('TrackChangesEditing'),_0x3de8e0=_0x531162['plugins']['get']('TableUtils'),_0x2b5d87=_0x531162['plugins']['get'](vt),_0x49ddf0=_0x531162['plugins']['get']('TableClipboard');_0x2b5d87['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x531162['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x531162['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2c7df3=null;_0x531162['model']['on']('insertContent',(_0x212f88,_0x1bd73d)=>{const [_0x48c311,_0x53eb67]=_0x1bd73d,_0x3d5b57=_0x1bd73d[_0x1bd73d['length']-0x1];_0x3d5b57&&_0x3d5b57['forceDefaultExecution']||_0xda7204['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3028e1,_0x51323f,_0x50e39e,_0xd46d70,_0x47d821){if(_0x51323f&&!_0x51323f['is']('documentSelection'))return!0x1;const _0x29c728=_0x47d821['getTableIfOnlyTableInContent'](_0x3028e1,_0x50e39e);if(!_0x29c728||!Ue(_0x29c728,void 0x0,_0xd46d70))return!0x1;const _0x18ece2=_0xd46d70['getSelectionAffectedTableCells'](_0x50e39e['document']['selection']);if(!_0x18ece2['length'])return!0x1;const _0x480dc1=_0x18ece2[0x0]['findAncestor']('table'),_0x3731d8=_0xd46d70['getRowIndexes'](_0x18ece2),_0x393c05=_0xd46d70['getColumnIndexes'](_0x18ece2),_0x381979={'startRow':_0x3731d8['first'],'endRow':_0x3731d8['last'],'startColumn':_0x393c05['first'],'endColumn':_0x393c05['last']};return 0x1==_0x18ece2['length']&&(_0x381979['endRow']+=_0xd46d70['getRows'](_0x29c728)-0x1,_0x381979['endColumn']+=_0xd46d70['getColumns'](_0x29c728)-0x1),Ue(_0x480dc1,_0x381979,_0xd46d70);}(_0x48c311,_0x53eb67,_0x531162['model'],_0x3de8e0,_0x49ddf0)&&(_0x212f88['stop'](),_0x2c7df3={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x531162['model']['change'](()=>{_0x531162['model']['insertContent'](_0x1bd73d[0x0],_0x1bd73d[0x1],_0x1bd73d[0x2],{'forceDefaultExecution':!0x0});const _0x1c2145=_0x12e0b6(),{rowInsertionRanges:_0x3d2128,columnInsertionRanges:_0x5a6afc,insertionRanges:_0x1000ab,deletionRanges:_0x5e015a,cells:_0x49fb12}=_0x2c7df3;_0x3d2128['length']&&_0xda7204['markMultiRangeInsertion'](_0x3d2128,'tablePasteRow',{'tablePasteChainId':_0x1c2145}),_0x5a6afc['length']&&_0xda7204['markMultiRangeInsertion'](_0x5a6afc,'tablePasteColumn',{'tablePasteChainId':_0x1c2145}),_0x1000ab['length']&&(_0xda7204['markMultiRangeInsertion'](_0x1000ab,'tablePaste',{'tablePasteChainId':_0x1c2145,'skipNestingCheck':!0x0}),_0x1000ab['forEach'](_0x133c72=>_0x133c72['detach']?.())),_0x5e015a['length']&&(_0xda7204['markMultiRangeDeletion'](_0x5e015a,'tablePaste',{'tablePasteChainId':_0x1c2145,'skipNestingCheck':!0x0}),_0x5e015a['forEach'](_0x4bb058=>_0x4bb058['detach']?.()));const _0x28428e=_0xda7204['markMultiRangeBlockFormat'](_0x49fb12['map'](({element:_0x739594})=>_0x739594),{'formatGroupId':_0x12e0b6()},[],'tablePasteCell',{'tablePasteChainId':_0x1c2145});if(_0x28428e){const _0x547c63=_0x28428e['getMarkers'](),_0x522acb=[];for(const {element:_0x19b7d5,attributes:_0x4808af}of _0x49fb12){if(!_0x4808af)continue;const _0x2263d2=_0x531162['model']['createRangeOn'](_0x19b7d5),_0x239517=_0x547c63['find'](_0x57019a=>_0x57019a['getRange']()['isEqual'](_0x2263d2));_0x239517&&_0x522acb['push']([_0x239517['name'],_0x4808af]);}_0x522acb['length']&&_0x28428e['setAttribute']('markerAttributes',Object['fromEntries'](_0x522acb));}_0x2c7df3=null;}));},{'priority':_0x3e5933['high']+0xa}),_0x531162['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3edbc0,_0x189dda)=>{const [_0xa4ba98,_0x4db285,,_0x4e3e22]=_0x189dda;if(!_0x2c7df3)return;_0x3edbc0['stop']();const _0x3a2ca1=_0xa4ba98['cell'],_0x59a097=_0x4db285,_0x22e89=Oe(_0x3a2ca1),_0x471b4e=Oe(_0x59a097);_0x3edbc0['return']=_0x3a2ca1;let _0x17fc54=null,_0xb9e8fd=null;if(_0x471b4e||_0x22e89){if(_0x22e89&&!_0x471b4e){_0x4e3e22['remove'](_0x3a2ca1['getChild'](0x0));for(const _0x5b1b48 of Array['from'](_0x59a097['getChildren']()))_0x4e3e22['insert'](_0x5b1b48,_0x3a2ca1,'end');const _0x51aa27=_0x2c7df3['rowInsertionIndexes']['includes'](_0xa4ba98['row']),_0x3b1eb0=_0x2c7df3['columnInsertionIndexes']['includes'](_0xa4ba98['column']);_0x51aa27||_0x3b1eb0||(_0x17fc54=_0x14dd4f['fromRange'](_0x4e3e22['createRangeIn'](_0x3a2ca1)));}else _0x471b4e&&!_0x22e89&&(_0xb9e8fd=_0x4e3e22['createRangeIn'](_0x3a2ca1));}else{const _0x50545d=_0x4e3e22['createElement']('tableCellSuggestion'),_0x2af8aa=_0x4e3e22['createElement']('tableCellSuggestion');_0x4e3e22['wrap'](_0x4e3e22['createRangeIn'](_0x3a2ca1),_0x2af8aa),_0x4e3e22['insert'](_0x50545d,_0x3a2ca1,0x0);for(const _0x1bba70 of Array['from'](_0x59a097['getChildren']()))_0x4e3e22['insert'](_0x1bba70,_0x50545d,'end');_0x17fc54=_0x14dd4f['fromRange'](_0x4e3e22['createRangeOn'](_0x50545d)),_0xb9e8fd=_0x14dd4f['fromRange'](_0x4e3e22['createRangeOn'](_0x2af8aa));}const _0x10c4fb=Array['from'](_0x59a097['getAttributes']())['filter'](([_0x29aa65])=>Be['includes'](_0x29aa65));_0x2c7df3['cells']['push']({'element':_0x3a2ca1,'attributes':_0x10c4fb['length']?Object['fromEntries'](_0x10c4fb):null}),_0x17fc54&&_0x2c7df3['insertionRanges']['push'](_0x17fc54),_0xb9e8fd&&_0x2c7df3['deletionRanges']['push'](_0xb9e8fd);},{'priority':'high'}),_0x3de8e0['on']('insertColumns',(_0x4786c7,_0x31b4e1)=>{const [_0x10e43c,_0x6b99cd={}]=_0x31b4e1;if(!_0x2c7df3)return;const _0xa04ae6=_0x6b99cd['at']||0x0,_0x4317c8=_0x6b99cd['columns']||0x1;_0x2c7df3['columnInsertionIndexes']=new Array(_0x4317c8)['fill'](_0xa04ae6)['map']((_0x94165,_0x3564b2)=>_0x94165+_0x3564b2);for(const {cell:_0x17939f}of _0x3de8e0['createTableWalker'](_0x10e43c,{'startColumn':_0xa04ae6,'endColumn':_0xa04ae6+_0x4317c8-0x1}))_0x2c7df3['columnInsertionRanges']['push'](_0x531162['model']['createRangeOn'](_0x17939f));},{'priority':'low'}),_0x3de8e0['on']('insertRows',(_0x250a08,_0x4f6784)=>{const [_0x30c1e5,_0x37c351={}]=_0x4f6784;if(!_0x2c7df3)return;const _0x32588d=_0x37c351['at']||0x0,_0x35959c=_0x37c351['rows']||0x1;_0x2c7df3['rowInsertionIndexes']=new Array(_0x35959c)['fill'](_0x32588d)['map']((_0x1ca45f,_0x25ff4e)=>_0x1ca45f+_0x25ff4e);for(const {cell:_0x1c7c16}of _0x3de8e0['createTableWalker'](_0x30c1e5,{'startRow':_0x32588d,'endRow':_0x32588d+_0x35959c-0x1}))_0x2c7df3['rowInsertionRanges']['push'](_0x531162['model']['createRangeOn'](_0x1c7c16));},{'priority':'low'}),_0xda7204['descriptionFactory']['registerDescriptionCallback'](_0x4318e6=>{if(_0x4318e6['subType']&&_0x4318e6['subType']['startsWith']('tablePaste'))return _0x4318e6['previous']?{}:{'type':'insertion','content':o(_0x531162['locale'],'*Replace\x20table\x20cells*')};});const _0x3981ce=()=>!0x1;for(const _0x24a53c of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0xda7204['_suggestionFactory']['registerCustomCallback']('insertion',_0x24a53c,'join',_0x3981ce),_0xda7204['_suggestionFactory']['registerCustomCallback']('deletion',_0x24a53c,'join',_0x3981ce),_0xda7204['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x24a53c,'join',_0x3981ce);_0xda7204['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3981ce),_0xda7204['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x11aed4,_0xc7f8b7,_0x384b5b)=>{const _0x30ba53=_0x11aed4['map'](_0x6b8387=>_0x6b8387['getContainedElement']())['filter'](_0x2ec071=>_0x2ec071),_0x29b14e=new Map(_0x30ba53['map'](_0x317db9=>[_0x317db9,null]));if(_0x2c7df3){for(const {element:_0x1c819c,attributes:_0x2348cc}of _0x2c7df3['cells'])_0x2348cc&&_0x29b14e['set'](_0x1c819c,_0x2348cc);}else{if(_0x384b5b&&_0x384b5b['markerAttributes'])for(const [_0x14794f,_0x381400]of Object['entries'](_0x384b5b['markerAttributes'])){const _0x2a8e08=_0x531162['model']['markers']['get'](_0x14794f),_0x107d39=_0x2a8e08?_0x2a8e08['getRange']()['getContainedElement']():null;_0x107d39&&_0x29b14e['set'](_0x107d39,_0x381400);}}_0x531162['model']['change'](_0x5971ea=>{for(const [_0x332de2,_0x4e7c8b]of _0x29b14e)_0x5971ea['setAttributes']({...xe,..._0x4e7c8b},_0x332de2);});});const _0x40ccdf=(_0x1d4500,_0x5919c9)=>{_0xda7204['_suggestionFactory']['registerCustomCallback'](_0x1d4500,'tablePaste',_0x5919c9,(_0x45b137,_0x249862,_0x17ee38)=>{_0x531162['model']['change'](_0x1a51ef=>{const _0x558ba5=[];for(const _0x37a387 of _0x45b137){const _0x3cf5cf=_0x37a387['start']['nodeAfter'];_0x3cf5cf['is']('element','tableCellSuggestion')&&_0x558ba5['push'](_0x3cf5cf);}_0xda7204['_suggestionFactory']['getSuggestionCallback'](_0x1d4500,null,_0x5919c9)(_0x45b137,_0x249862,_0x17ee38);for(const _0x3499ad of _0x558ba5)'$graveyard'!=_0x3499ad['root']['rootName']&&_0x1a51ef['unwrap'](_0x3499ad);});});};_0x40ccdf('insertion','accept'),_0x40ccdf('insertion','discard'),_0x40ccdf('deletion','accept'),_0x40ccdf('deletion','discard'),_0xda7204['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4658b2=>{const _0x405d83=_0x4658b2['map'](_0x4cc3c1=>_0x4cc3c1['getContainedElement']()),_0x5b09a2=_0x405d83[0x0]['findAncestor']('table'),{minRow:_0x1094e3,maxRow:_0x27825d}=_0x2b5d87['_getCoordsForCells'](_0x405d83);_0x3de8e0['removeRows'](_0x5b09a2,{'at':_0x1094e3,'rows':_0x27825d-_0x1094e3+0x1});}),_0xda7204['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x48bf3f=>{const _0xa85608=_0x48bf3f['map'](_0x147a55=>_0x147a55['getContainedElement']()),_0x4d23fd=_0xa85608[0x0]['findAncestor']('table'),{minColumn:_0x113bbe,maxColumn:_0x268621}=_0x2b5d87['_getCoordsForCells'](_0xa85608);_0x3de8e0['removeColumns'](_0x4d23fd,{'at':_0x113bbe,'columns':_0x268621-_0x113bbe+0x1});});const _0x3a9edd=(_0x5d7aa1,_0x457257)=>{if(!_0x457257['subType']||!_0x457257['subType']['startsWith']('tablePaste'))return;const _0xe46420=_0x457257['attributes']['tablePasteChainId'],_0x37302c=_0xda7204['getSuggestions']()['filter'](_0x5d9b1b=>_0x5d9b1b['isInContent']&&_0x5d9b1b['attributes']&&_0x5d9b1b['attributes']['tablePasteChainId']==_0xe46420);_0x37302c['length']&&_0x457257['getAllAdjacentSuggestions']()['length']!=_0x37302c['length']&&_0x37302c['reduce']((_0x168ba6,_0x79a87b)=>(_0x168ba6['next']=_0x79a87b,_0x79a87b['previous']=_0x168ba6,_0x79a87b));};function _0x2804e9(_0xb85fcf,_0xa4f7e6=!0x0){const {id:_0x43e2cc,authorId:_0x31ec38}=_0xda7204['_splitMarkerName'](_0xb85fcf['markerName']),_0x4aae60=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2fd413=_0xda7204['activeMarkers']['includes'](_0xb85fcf['markerName']);return _0x2fd413&&_0x4aae60['push']('ck-suggestion-marker--active'),{'classes':_0x4aae60,'attributes':{'data-suggestion':_0x43e2cc,'data-author-id':_0x31ec38},'priority':_0x2fd413&&_0xa4f7e6?0xbc2:0xbb8};}_0xda7204['on']('suggestionLoaded',_0x3a9edd,{'priority':'high'}),_0xda7204['on']('suggestionUnloaded',_0x3a9edd,{'priority':'high'}),_0x531162['model']['document']['registerPostFixer'](()=>{let _0xabdc=!0x1;const _0x2ec2a6=Array['from'](_0x531162['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x473bff,data:_0x55611c}of _0x2ec2a6){const {group:_0xaa3934,type:_0x1f3824,id:_0x4dece2}=_0xda7204['_splitMarkerName'](_0x473bff);if('suggestion'!=_0xaa3934||'deletion'!=_0x1f3824||_0x55611c['oldRange'])continue;if(!_0xda7204['hasSuggestion'](_0x4dece2))continue;const _0x176645=_0xda7204['getSuggestion'](_0x4dece2)['getRanges'](),_0x5d8a58=_0x531162['plugins']['get']('Users')['me'];for(const _0x4e9919 of _0xda7204['getSuggestions']()){if(!_0x4e9919['isInContent']||_0x4e9919['author']!=_0x5d8a58)continue;if('formatBlock'!=_0x4e9919['type']||'tablePasteCell'!=_0x4e9919['subType'])continue;if(_0x4e9919['getRanges']()['every'](_0x5c3a94=>_0x176645['some'](_0x3d2be7=>_0x3d2be7['containsRange'](_0x5c3a94,!0x0)))){for(const _0x45c957 of _0x4e9919['getAllAdjacentSuggestions']())_0x45c957['isInContent']&&(_0x45c957['discard'](),_0xabdc=!0x0);}}}return _0xabdc;}),_0x531162['model']['document']['registerPostFixer'](_0x21638a=>{const _0x2f5c9b=_0x531162['commands']['get']('redo');if(!_0x2f5c9b||!_0x2f5c9b['_createdBatches']['has'](_0x21638a['batch']))return!0x1;let _0x27944f=!0x1;const _0x8fb1ad=_0x531162['plugins']['get']('Users')['me'],_0x2065f4=_0x531162['model']['document']['differ']['getChanges'](),_0x7d6c05=Array['from'](_0x531162['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4a8443,data:_0x3a2b23})=>{const {group:_0x5520a3,subType:_0x340f88,authorId:_0x556165}=_0xda7204['_splitMarkerName'](_0x4a8443);return'suggestion'==_0x5520a3&&'tablePaste'==_0x340f88&&_0x556165==_0x8fb1ad['id']&&!_0x3a2b23['oldRange'];});for(const _0x23aa65 of _0x2065f4){if('insert'!=_0x23aa65['type']||'tableCellSuggestion'!=_0x23aa65['name']||0x1!=_0x23aa65['length'])continue;const _0xce32ee=_0x21638a['createRange'](_0x23aa65['position'],_0x23aa65['position']['getShiftedBy'](0x1));if(!_0x7d6c05['find'](({data:_0x5ec11c})=>_0x5ec11c['newRange']['isEqual'](_0xce32ee))){for(const {name:_0xcf919a,data:_0x5177ce}of _0x7d6c05)if(_0xce32ee['containsRange'](_0x5177ce['newRange'])){_0x21638a['updateMarker'](_0xcf919a,{'range':_0xce32ee}),_0x27944f=!0x0;break;}}}return _0x27944f;}),_0x531162['model']['document']['registerPostFixer'](_0x52d659=>{let _0x440113=!0x1;const _0x4ecf61=_0x531162['plugins']['get']('Users')['me'],_0x4a9806=_0xda7204['getSuggestions']()['filter'](_0x311792=>_0x311792['isInContent']&&_0x311792['author']==_0x4ecf61),_0x410daf=new Set(),_0xb86be0=new Set();for(const _0x405720 of _0x4a9806)if('tablePaste'==_0x405720['subType'])for(const _0x230207 of _0x405720['getMarkers']()){const _0x37bc8f=_0x230207['getRange']()['getContainedElement']();if(_0x37bc8f){if(_0x37bc8f['is']('element','tableCellSuggestion')&&Oe(_0x37bc8f)){_0x405720['removeMarker'](_0x230207['name']),_0x410daf['add'](_0x37bc8f),_0x440113=!0x0;const _0x1b13b7=_0x37bc8f['nextSibling'],_0x4fea40=_0x37bc8f['previousSibling'],_0x23121b=_0x1b13b7&&_0x1b13b7['is']('element','tableCellSuggestion'),_0x4f6a58=_0x4fea40&&_0x4fea40['is']('element','tableCellSuggestion');_0x23121b&&!_0x410daf['has'](_0x1b13b7)&&_0xb86be0['add'](_0x1b13b7),_0x4f6a58&&!_0x410daf['has'](_0x4fea40)&&_0xb86be0['add'](_0x4fea40);}else _0x37bc8f['is']('element','paragraph')&&_0x37bc8f['isEmpty']&&(_0x405720['removeMarker'](_0x230207['name']),_0x440113=!0x0);}}else{if('tablePasteCell'==_0x405720['subType']){if(!_0x405720['attributes']||!_0x405720['attributes']['tablePasteChainId'])continue;const _0x23fc5d=_0x405720['attributes']['markerAttributes'];if(_0x23fc5d&&Object['keys'](_0x23fc5d)['length'])continue;const _0x12160c=_0x405720['attributes']['tablePasteChainId'];let _0x59582f=!0x0,_0x3d1a25=!0x0;for(const _0x2782f4 of _0x4a9806)if(_0x2782f4['subType']&&_0x2782f4['subType']['startsWith']('tablePaste')){if(!_0x2782f4['attributes']['tablePasteChainId']){_0x3d1a25=!0x1;break;}if(_0x2782f4['id']!=_0x405720['id']&&_0x2782f4['attributes']['tablePasteChainId']==_0x12160c){_0x59582f=!0x1;break;}}_0x3d1a25&&_0x59582f&&(_0x405720['removeMarkers'](),_0x440113=!0x0);}}for(const _0x55211c of _0x410daf)_0x52d659['remove'](_0x55211c);for(const _0xa4539b of _0xb86be0)_0x52d659['unwrap'](_0xa4539b);return _0x440113;}),_0x531162['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x113814=>_0x2804e9(_0x113814),'converterPriority':'high'}),_0x531162['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x34262d,_0x4cea2e)=>_0x4cea2e['options']['showSuggestionHighlights']?_0x2804e9(_0x34262d,!0x1):null,'converterPriority':'high'});const _0x1c1970=_0x531162['editing']['view'];this['listenTo'](_0x1c1970['document'],'clipboardOutput',(_0xcda16b,_0x13fae8)=>{const _0x164648=[];for(const _0x932ef6 of _0x1c1970['createRangeIn'](_0x13fae8['content'])['getItems']())_0x932ef6['is']('element','suggestion-td')&&_0x164648['push'](_0x932ef6);_0x1c1970['change'](_0x20ea22=>{for(const _0x9abc45 of _0x164648)_0x20ea22['move'](_0x20ea22['createRangeIn'](_0x9abc45),_0x20ea22['createPositionBefore'](_0x9abc45)),_0x20ea22['remove'](_0x9abc45);});});}}function Oe(_0x538668){if(_0x538668['isEmpty'])return!0x0;const _0x4ae32f=_0x538668['getChild'](0x0);return _0x4ae32f['is']('element','paragraph')&&_0x4ae32f['isEmpty'];}function Ue(_0x5be4ce,_0x430e97={},_0x2e03ef){for(const {isAnchor:_0x140807,cellHeight:_0x2d05d9,cellWidth:_0x17819e}of _0x2e03ef['createTableWalker'](_0x5be4ce,{'includeAllSlots':!0x0,..._0x430e97}))if(!_0x140807||0x1!=_0x2d05d9||0x1!=_0x17819e)return!0x1;return!0x0;}class Dt extends _0x32d277{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x583347=this['editor']['plugins']['get']('TrackChangesEditing');_0x583347['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x583347['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x583347['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x583347['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x583347['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x583347['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x5e726c,_0x5aa5c7){const _0x1a1dda=this['editor']['plugins']['get']('TrackChangesEditing'),_0xacf96e=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x532e2d=_0x5aa5c7['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3e1efb=_0xacf96e['getColumnGroupElement'](_0x532e2d);let _0xe962d8=_0x3e1efb?_0xacf96e['getTableColumnsWidths'](_0x3e1efb):null,_0x286ee2=_0x532e2d['getAttribute']('tableWidth')||null;const _0x814777=_0x5aa5c7['tableWidth']||_0x286ee2,_0x4725e7=_0x5aa5c7['columnWidths']||_0xe962d8,_0x17cde8=this['editor']['plugins']['get']('Users')['me'];for(const _0x56532d of _0x1a1dda['getSuggestions']()){const _0x1a1b4b=_0x56532d['getContainedElement']();if('resizeTable'===_0x56532d['subType']&&_0x1a1b4b===_0x532e2d){_0x56532d['author']!==_0x17cde8&&_0x56532d['discard']();const _0x40ab32=_0x56532d['data']['commandParams'];_0x286ee2=_0x40ab32[0x0]['tableWidth'],_0xe962d8=_0x40ab32[0x0]['columnWidths'];break;}}_0x5e726c({'table':_0x532e2d,'tableWidth':_0x814777,'columnWidths':_0x4725e7}),_0x1a1dda['markBlockFormat'](_0x532e2d,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x286ee2,'columnWidths':_0xe962d8}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4d0631){if('formatBlock'!=_0x4d0631['type']&&'formatInline'!=_0x4d0631['type'])return;const {data:_0x5047f7}=_0x4d0631;if(_0x5047f7&&'resizeTable'===_0x5047f7['formatGroupId']){const _0x28feb1='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x28feb1)};}}}class Mt extends _0x32d277{['afterInit'](){const _0x55e03d=this['editor'];_0x55e03d['plugins']['has']('Template')&&_0x55e03d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x32d277{['afterInit'](){const _0x51e8c7=this['editor'];if(!_0x51e8c7['commands']['get']('insertTableOfContents'))return;_0x51e8c7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3a6cd8=_0x51e8c7['plugins']['get']('TrackChangesEditing'),_0x198666=_0x51e8c7['locale'];_0x3a6cd8['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5279f9=>o(_0x198666,'ELEMENT_TABLE_OF_CONTENTS',_0x5279f9));}}class Bt extends _0x32d277{['afterInit'](){const _0x2e1448=this['editor'];if(!_0x2e1448['plugins']['has']('Title'))return;const _0xeae00e=_0x2e1448['plugins']['get']('TrackChangesEditing');_0xeae00e['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2e1448['locale'],'ELEMENT_TITLE')),_0x2e1448['model']['document']['registerPostFixer'](_0x557878=>{let _0x48783a=!0x1;const _0x2ec03f=Array['from'](_0x2e1448['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x189bfc,data:_0x39e8b1}of _0x2ec03f){const {group:_0x1c9bb5}=_0xeae00e['_splitMarkerName'](_0x189bfc);if('suggestion'!==_0x1c9bb5||!_0x39e8b1['newRange'])continue;const _0x3848e4=_0x39e8b1['newRange'],_0x1e5976=_0x3848e4['end']['nodeBefore'];if(!_0x1e5976||!_0x1e5976['is']('element','title-content'))continue;if(!_0x3848e4['start']['isTouching'](_0x3848e4['end']))continue;const _0x8a415c=_0x2e1448['model']['schema']['getNearestSelectionRange'](_0x3848e4['end'],'forward');if(_0x8a415c&&_0x8a415c['isCollapsed']){const _0x15ac68=_0x557878['createRange'](_0x3848e4['start'],_0x8a415c['start']);_0x15ac68['isEqual'](_0x3848e4)||(_0x557878['updateMarker'](_0x189bfc,{'range':_0x15ac68}),_0x48783a=!0x0);}_0x48783a||(_0x557878['removeMarker'](_0x189bfc),_0x48783a=!0x0);}return _0x48783a;});}}class Ot extends _0x32d277{['afterInit'](){const _0x43a900=this['editor'],_0x3d9905=_0x43a900['plugins']['get']('TrackChangesEditing');_0x43a900['plugins']['has']('Uploadcare')&&(_0x3d9905['enableCommand']('uploadcare'),_0x43a900['plugins']['has']('UploadcareImageEdit')&&(_0x3d9905['enableCommand']('uploadcareImageEdit'),_0x3d9905['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3d9905['registerBlockAttribute']('uploadcareImageId'),_0x3d9905['descriptionFactory']['registerDescriptionCallback'](_0x22ea06=>{if('attribute'!=_0x22ea06['type'])return;const {data:_0xa362fa}=_0x22ea06;return _0xa362fa&&'uploadcareImageId'==_0xa362fa['key']?{'type':'format','content':''}:void 0x0;})));}}class Rt extends _0x32d277{['afterInit'](){const _0x17dc17=this['editor'],_0x2251fd=_0x17dc17['plugins']['get']('TrackChangesEditing');_0x17dc17['plugins']['has']('UndoEditing')&&(_0x2251fd['enableCommand']('undo'),_0x2251fd['enableCommand']('redo'));}}class Tt extends _0x32d277{static get['requires'](){return[vt];}['afterInit'](){const _0x1d5ae8=this['editor'];if(!_0x1d5ae8['plugins']['has']('TableCaptionEditing'))return;_0x1d5ae8['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class xt extends _0x32d277{['tableProperties'];['tableCellProperties'];constructor(_0x458d3d){super(_0x458d3d),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 _0x1ddb21=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x226aea of this['tableProperties'])_0x1ddb21['enableCommand'](_0x226aea,(_0x1d5db4,_0x379bfe)=>{const _0x39fa17=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x226aea,[_0x39fa17],this['tableProperties'],'tableProperties',_0x1d5db4,_0x379bfe);});_0x1ddb21['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1ddb21['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1ddb21['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x558f75,_0x3fda26)=>this['handleDiscardAction'](this['tableProperties'],_0x558f75,_0x3fda26)),_0x1ddb21['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xabf80b of this['tableCellProperties'])_0x1ddb21['enableCommand'](_0xabf80b,(_0x417cb2,_0x4e020d)=>{const _0x4cf3ca=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xabf80b,_0x4cf3ca,this['tableCellProperties'],'tableCellProperties',_0x417cb2,_0x4e020d);});_0x1ddb21['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1ddb21['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1ddb21['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4472c8,_0x2786d3)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4472c8,_0x2786d3)),_0x1ddb21['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1ddb21['descriptionFactory']['registerDescriptionCallback'](_0x57bb0f=>this['handleSuggestionDescription'](_0x57bb0f));}['_handlePropertyChange'](_0x5e07b9,_0x349677,_0x3b48a5,_0x4f7b0c,_0xb2ae11,_0x334fd5){const _0x558f93=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x334fd5['batch'],()=>{for(const _0x225b43 of _0x349677){if(this['_getSuggestion'](_0x225b43,_0x4f7b0c))_0xb2ae11(_0x334fd5);else{const _0xc7be58={};for(const _0x20222b of _0x3b48a5){const _0x3a1aee=_0x225b43['getAttribute'](_0x20222b);void 0x0!==_0x3a1aee&&(_0xc7be58[_0x20222b]=_0x3a1aee);}_0xb2ae11(_0x334fd5),_0x558f93['markBlockFormat'](_0x225b43,{'commandParams':[_0xc7be58]},[],_0x4f7b0c);}}});}['handleDiscardAction'](_0xde30c0,_0x31f16c,_0x4551f8){const _0x2814d5=_0x31f16c[0x0]['start']['nodeAfter'],_0x35d0ca=_0x4551f8['commandParams'][0x0];this['editor']['model']['change'](_0x101f60=>{for(const _0x330b1f of _0xde30c0)void 0x0!==_0x35d0ca[_0x330b1f]?_0x101f60['setAttribute'](_0x330b1f,_0x35d0ca[_0x330b1f],_0x2814d5):_0x101f60['removeAttribute'](_0x330b1f,_0x2814d5);});}['handleSuggestionDescription'](_0x359a65){if(_0x359a65['data'])switch(_0x359a65['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'](_0xea32ae,_0x506168){const _0x19a71a=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4550a9 of _0x19a71a['getSuggestions']({'skipNotAttached':!0x0})){const _0x1aac2c=_0x4550a9['getContainedElement']();if(_0x4550a9['subType']===_0x506168&&_0x1aac2c===_0xea32ae)return _0x4550a9;}return null;}}const m='$elementName';class p extends _0x32d277{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x485da9,_0x46e603,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,Se,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Tt,Nt,Dt,$t,xt,Mt,Bt,Ot,Rt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x30fecf){super(_0x30fecf),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4be8ea,_0x4a05b2,_0x1a89b9,_0x11d765)=>{this['_model']['change'](()=>{for(const _0x54ba95 of[..._0x11d765,..._0x1a89b9])this['_model']['markers']['has'](_0x54ba95)&&_0x30fecf['editing']['reconvertMarker'](_0x54ba95);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ut(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x30fecf['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(),_0x30fecf['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x30fecf['config']['get']('trackChanges.trackFormatChanges'),_0x30fecf['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x30fecf['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x30fecf,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0xa9e272=this['editor'],_0x261897=(_0x4bac06,_0x40ffa6)=>{if('attribute'!=_0x4bac06)return'ck-suggestion-marker-'+_0x4bac06;const _0x482557=_0x40ffa6['split']('|')[0x0];return this['_isBlockAttribute'](_0x482557)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xa9e272['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x5e9ebe=>{const {id:_0x210129,authorId:_0xc0710e,type:_0x126a18,subType:_0x4528ff}=this['_splitMarkerName'](_0x5e9ebe['markerName']),_0x23b941=['ck-suggestion-marker',_0x261897(_0x126a18,_0x4528ff)];let _0x47993a=0xbb8;return this['activeMarkers']['includes'](_0x5e9ebe['markerName'])&&(_0x23b941['push']('ck-suggestion-marker--active'),_0x47993a=0xbc2),'deletion'==_0x126a18&&(_0x47993a+=0x5),{'classes':_0x23b941,'attributes':{'data-suggestion':_0x210129,'data-author-id':_0xc0710e},'priority':_0x47993a};}}),_0xa9e272['conversion']['for']('dataDowncast')['add'](_0x3abe32=>{_0x3abe32['on']('addMarker:suggestion',(_0x5ca709,_0x36a2b7,_0x50b1fb)=>{if(!_0x50b1fb['options']['showSuggestionHighlights'])return;const _0x2a989a=_0x36a2b7['item'];if(!_0x2a989a)return;const _0x1a778b=_0x50b1fb['mapper']['toViewElement'](_0x2a989a);_0xa9e272['model']['schema']['isObject'](_0x2a989a)&&_0x1a778b&&!_0x1a778b['getCustomProperty']('widget')&&_0x1a778b['is']('containerElement')&&_0x20d843(_0x1a778b,_0x50b1fb['writer']);},{'priority':'high'});}),_0xa9e272['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4be133,_0x226bd6)=>{if(!_0x226bd6['options']['showSuggestionHighlights'])return null;const {type:_0x3378cd,subType:_0x35abf7}=this['_splitMarkerName'](_0x4be133['markerName']);return{'classes':['ck-suggestion-marker',_0x261897(_0x3378cd,_0x35abf7)],'priority':0xbb8};}});const _0x41df3c=({showActiveMarkers:_0x4cf66d=!0x0,isAttributeSuggestion:_0x1041f9=!0x1}={})=>(_0x3f7625,_0x2f2ffd,_0x517919)=>{if(!_0x2f2ffd['item'])return;const {id:_0xcde694,authorId:_0x541686}=this['_splitMarkerName'](_0x2f2ffd['markerName']);if(_0x1041f9){const _0x30586e=this['_suggestions']['get'](_0xcde694),_0x5c16f2=this['_getAttributeKey'](_0x30586e);if(!this['_isBlockAttribute'](_0x5c16f2))return;}if(_0x2f2ffd['item']['is']('selection'))return void _0x517919['consumable']['consume'](_0x2f2ffd['item'],_0x3f7625['name']);const _0x31e070=_0x517919['mapper']['toViewElement'](_0x2f2ffd['item']);if(_0x2f2ffd['item']['is']('element')&&_0xa9e272['model']['schema']['isBlock'](_0x2f2ffd['item'])&&!_0x31e070['getCustomProperty']('addHighlight')){_0x517919['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x31e070),_0x517919['writer']['setAttribute']('data-suggestion',_0xcde694,_0x31e070),_0x517919['writer']['setAttribute']('data-author-id',_0x541686,_0x31e070),_0x517919['mapper']['bindElementToMarker'](_0x31e070,_0x2f2ffd['markerName']),_0x4cf66d&&(this['activeMarkers']['includes'](_0x2f2ffd['markerName'])?_0x517919['writer']['addClass']('ck-suggestion-marker--active',_0x31e070):_0x517919['writer']['removeClass']('ck-suggestion-marker--active',_0x31e070));for(const _0x1f0f5a of _0xa9e272['model']['createRangeIn'](_0x2f2ffd['item'])['getItems']())_0x517919['consumable']['consume'](_0x1f0f5a,_0x3f7625['name']);_0x517919['consumable']['consume'](_0x2f2ffd['item'],_0x3f7625['name']);}};_0xa9e272['conversion']['for']('dataDowncast')['add'](_0x241a9b=>{_0x241a9b['on']('addMarker:suggestion:formatBlock',(_0x27252e,_0x1dca2e,_0x77b224)=>{_0x77b224['options']['showSuggestionHighlights']&&_0x41df3c({'showActiveMarkers':!0x1})(_0x27252e,_0x1dca2e,_0x77b224);},{'priority':'highest'});}),_0xa9e272['conversion']['for']('dataDowncast')['add'](_0x47a71e=>{_0x47a71e['on']('addMarker:suggestion:attribute',(_0xb4d389,_0x3d4b58,_0x364a34)=>{_0x364a34['options']['showSuggestionHighlights']&&_0x41df3c({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xb4d389,_0x3d4b58,_0x364a34);},{'priority':'highest'});}),_0xa9e272['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x20d00f,_0x26ddac)=>_0x26ddac['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x20d00f['substr'](0xb)}}),_0xa9e272['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x50ba56,{writer:_0x54d040})=>{let _0x4a393b='suggestion:'+_0x50ba56['getAttribute']('suggestion-type')+':'+_0x50ba56['getAttribute']('id');return _0x50ba56['getAttribute']('marker-count')&&(_0x4a393b+=':'+_0x50ba56['getAttribute']('marker-count')),_0x54d040['createElement']('$marker',{'data-name':_0x4a393b});}}),_0xa9e272['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xa9e272['conversion']['for']('editingDowncast')['add'](_0x3876f0=>{_0x3876f0['on']('addMarker:suggestion:formatBlock',_0x41df3c(),{'priority':'high'});}),_0xa9e272['conversion']['for']('editingDowncast')['add'](_0x36257d=>{_0x36257d['on']('addMarker:suggestion:attribute',_0x41df3c({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xa9e272['conversion']['for']('editingDowncast')['add'](_0x5cd4ff=>{_0x5cd4ff['on']('removeMarker:suggestion:formatBlock',(_0x4cc626,_0x3b13ee,_0x381c37)=>{const _0x54b94a=_0x381c37['mapper']['markerNameToElements'](_0x3b13ee['markerName']);if(_0x54b94a){for(const _0x296f39 of _0x54b94a)_0x296f39['getCustomProperty']('addHighlight')||(_0x381c37['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x296f39),_0x381c37['writer']['removeAttribute']('data-suggestion',_0x296f39),_0x381c37['writer']['removeAttribute']('data-author-id',_0x296f39),_0x381c37['mapper']['unbindElementFromMarkerName'](_0x296f39,_0x3b13ee['markerName']));}},{'priority':'high'});}),_0xa9e272['conversion']['for']('editingDowncast')['add'](_0x2bbfc9=>{_0x2bbfc9['on']('removeMarker:suggestion:attribute',(_0x54bfab,_0x8f802,_0x21208a)=>{const _0x1607c6=_0x21208a['mapper']['markerNameToElements'](_0x8f802['markerName']);if(!_0x1607c6)return;const {id:_0x3539e0}=this['_splitMarkerName'](_0x8f802['markerName']),_0x34366f=this['_suggestions']['get'](_0x3539e0),_0x1da1f1=this['_getAttributeKey'](_0x34366f);if(this['_isBlockAttribute'](_0x1da1f1)){for(const _0x34a711 of _0x1607c6)_0x34a711['getCustomProperty']('addHighlight')||(_0x21208a['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x34a711),_0x21208a['writer']['removeAttribute']('data-suggestion',_0x34a711),_0x21208a['writer']['removeAttribute']('data-author-id',_0x34a711),_0x21208a['mapper']['unbindElementFromMarkerName'](_0x34a711,_0x8f802['markerName']));}},{'priority':'high'});}),_0xa9e272['model']['document']['registerPostFixer'](_0x5d17c3=>{let _0x578f2e=!0x1;const _0x504b1a=Array['from'](_0xa9e272['model']['document']['differ']['getChangedMarkers']()),_0x453a88=new Set();for(const {name:_0x4b3f1e,data:_0x50f740}of _0x504b1a){const {group:_0x5c1c41,type:_0x27294e,subType:_0x3a2e7e,id:_0x29e16c}=this['_splitMarkerName'](_0x4b3f1e);if('suggestion'!==_0x5c1c41)continue;const _0x2bafaa=this['_suggestions']['get'](_0x29e16c);if(null!=_0x50f740['newRange']){'formatInline'==_0x27294e&&(_0x578f2e=_0x578f2e||Gt(_0x50f740['newRange'],_0x4b3f1e,_0x5d17c3,_0xa9e272['model']['schema']));const _0x3b163e='attribute'==_0x27294e&&this['_isBlockAttribute'](_0x3a2e7e['split']('|')[0x0]);if(_0x50f740['newRange']['isCollapsed']||'$graveyard'==_0x50f740['newRange']['root']['rootName']||'formatBlock'==_0x27294e&&!Lt(_0x50f740['newRange'])||_0x3b163e&&!Lt(_0x50f740['newRange'])||'deletion'==_0x27294e&&!(!Pt(_0x12b586=_0x50f740['newRange'])&&!function(_0x39aa36){return _0x39aa36['start']['parent']==_0x39aa36['end']['nodeBefore']&&_0x39aa36['start']['isAtEnd'];}(_0x12b586)))_0x5d17c3['removeMarker'](_0x4b3f1e),_0x578f2e=!0x0;else{if(!_0x2bafaa||!_0x2bafaa['isInContent'])continue;if(_0x50f740['newRange']&&_0x50f740['oldRange']&&_0x50f740['newRange']['isEqual'](_0x50f740['oldRange']))continue;_0x453a88['add'](_0x2bafaa);}}}var _0x12b586;return _0x453a88['size']>0x0&&(_0x578f2e=!!this['_joinWithAdjacentSuggestions'](_0x453a88)||_0x578f2e),_0x578f2e;}),_0xa9e272['model']['document']['registerPostFixer'](_0x4b6e73=>{let _0x5d49a8=!0x1;for(const _0x20789e of _0xa9e272['model']['document']['differ']['getChanges']())if('insert'==_0x20789e['type'])for(const _0x3df08c of this['_suggestions']['values']()){if(_0x3df08c['isMultiRange']||!_0x3df08c['isInContent'])continue;const _0x4d648f='formatBlock'==_0x3df08c['type'],_0x1c6fcf=this['_getAttributeKey'](_0x3df08c),_0x158560=_0x1c6fcf&&this['_isBlockAttribute'](_0x1c6fcf);if(!_0x4d648f&&!_0x158560)continue;const _0x8afd9=_0x3df08c['getFirstRange']();if(_0x8afd9['start']['parent']!=_0x8afd9['end']['parent']&&!_0x8afd9['end']['isAtEnd']){const _0x2619ae=_0xa9e272['model']['createPositionAt'](_0x8afd9['start']['nodeAfter'],'end'),_0x3642b0=_0xa9e272['model']['createRange'](_0x8afd9['start'],_0x2619ae);_0x4b6e73['updateMarker'](_0x3df08c['getFirstMarker'](),{'range':_0x3642b0}),_0x5d49a8=!0x0;}}return _0x5d49a8;}),_0xa9e272['model']['document']['registerPostFixer'](_0x4c90a1=>this['_processAttributeChanges'](_0x4c90a1)),_0xa9e272['model']['document']['registerPostFixer'](_0x24a0ad=>!_0x24a0ad['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x24a0ad)),_0xa9e272['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xa9e272['model']['document']['on']('change:data',(_0xc01cad,_0x4e75b0)=>{if(!_0x4e75b0['isLocal']||_0x4e75b0['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x551bf2=_0xa9e272['model']['document']['differ']['getChanges']();if(0x0==_0x551bf2['length'])return;const _0x3638d4=[],_0xd0d2a8=_0x551bf2['filter'](_0x4880f8=>'attribute'==_0x4880f8['type']),_0xb089a0=_0x551bf2['filter'](_0x5ddf5d=>'insert'==_0x5ddf5d['type']&&'$text'!=_0x5ddf5d['name']);for(const _0x1beac8 of _0xd0d2a8)this['_isRegisteredAttribute'](_0x1beac8['attributeKey'])&&_0x3638d4['push']({'key':_0x1beac8['attributeKey'],'newValue':_0x1beac8['attributeNewValue'],'oldValue':_0x1beac8['attributeOldValue'],'range':Jt(_0x1beac8['range'],_0xa9e272['model'])});for(const _0xb1d467 of _0xb089a0){if('rename'!=_0xb1d467['action']&&'refresh'!=_0xb1d467['action'])continue;const _0x2e9ee0=Ht(_0xb1d467['position']['nodeAfter'],_0xa9e272['model']),_0x4ea2a7=_0xb1d467['before'];'rename'==_0xb1d467['action']&&_0x3638d4['push']({'key':m,'newValue':_0xb1d467['name'],'oldValue':_0x4ea2a7['name'],'range':_0x2e9ee0});for(const [_0x2f9b0f,_0x3971b1]of _0x4ea2a7['attributes']){if(!this['_isRegisteredAttribute'](_0x2f9b0f))continue;const _0x18e1ab=_0xb1d467['attributes']['get'](_0x2f9b0f);_0x3971b1!==_0x18e1ab&&_0x3638d4['push']({'key':_0x2f9b0f,'newValue':_0x18e1ab,'oldValue':_0x3971b1,'range':_0x2e9ee0});}for(const [_0x583047,_0x3be4f7]of _0xb1d467['attributes'])this['_isRegisteredAttribute'](_0x583047)&&(_0x4ea2a7['attributes']['has'](_0x583047)||_0x3638d4['push']({'key':_0x583047,'newValue':_0x3be4f7,'oldValue':null,'range':_0x2e9ee0}));}0x0!=_0x3638d4['length']&&_0xa9e272['model']['enqueueChange'](_0x4e75b0,_0x3956cd=>{const _0x2a6d02=_0x12e0b6();for(const {range:_0x4b2b5c,key:_0x5daf54,oldValue:_0x427403,newValue:_0x51f6e7}of _0x3638d4)this['markAttributeChange'](_0x4b2b5c,_0x5daf54,_0x427403,_0x51f6e7,{'groupId':_0x2a6d02});this['_reduceExistingSuggestions'](_0x3956cd,_0x3638d4);});},{'priority':'lowest'}),_0xa9e272['model']['markers']['on']('update:suggestion',(_0x525bc2,_0x35f6ec,_0x3e2526)=>{if(null==_0x3e2526){const {id:_0x123d8c}=this['_splitMarkerName'](_0x35f6ec['name']),_0x5a2e62=this['_suggestions']['get'](_0x123d8c);_0x5a2e62&&_0x5a2e62['addMarkerName'](_0x35f6ec['name']);}}),_0xa9e272['model']['document']['on']('change:data',()=>{const _0x5713c0=Array['from'](_0xa9e272['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5b9013=>'suggestion'===this['_splitMarkerName'](_0x5b9013['name'])['group']);if(0x0===_0x5713c0['length'])return;_0x5713c0['sort']((_0x5f43b4,_0x1c7fd9)=>{const _0x253919=_0x5f43b4['data']['oldRange'],_0x32b41c=_0x1c7fd9['data']['oldRange'];return null===_0x253919&&null===_0x32b41c?0x0:null===_0x253919&&null!==_0x32b41c?-0x1:null!==_0x253919&&null===_0x32b41c?0x1:_0x253919['start']['isBefore'](_0x32b41c['start'])?-0x1:0x1;});const _0x585854=new Set(),_0x3a5a89=new Set();for(const {name:_0x28beaa,data:_0x4b8550}of _0x5713c0){const {id:_0x3c9e99}=this['_splitMarkerName'](_0x28beaa);if(null===_0x4b8550['oldRange']){const _0x14d5d4=this['_handleNewSuggestionMarker'](_0x28beaa);_0x3a5a89['add'](_0x14d5d4);}else{const _0x2ec9c6=this['_suggestions']['get'](_0x3c9e99);null!==_0x4b8550['newRange']||_0x2ec9c6['isInContent']?(_0x585854['add'](_0x2ec9c6['head']),_0x3a5a89['add'](_0x2ec9c6)):this['_removeSuggestion'](_0x2ec9c6);}}_0x3a5a89['size']>0x0&&this['_refreshSuggestionsChain'](_0x3a5a89);for(const _0x2e1f0f of _0x585854)this['fire']('suggestionChanged',_0x2e1f0f);}),_0xa9e272['model']['on']('applyOperation',(_0x537066,_0x48531b)=>{const _0x40130f=_0x48531b[0x0];if(!this['_suggestions']['size'])return;if(!_0x40130f['isDocumentOperation'])return;if(_0x40130f['batch']['isUndo']||!_0x40130f['batch']['isLocal'])return;let _0x277667,_0x4dd983;switch(_0x40130f['type']){case'insert':_0x277667=_0xa9e272['model']['createPositionAt'](_0x40130f['position']),_0x4dd983=_0x277667['getShiftedBy'](_0x40130f['howMany']);break;case'split':_0x277667=_0xa9e272['model']['createPositionAt'](_0x40130f['splitPosition']),_0x4dd983=_0xa9e272['model']['createPositionAt'](_0x40130f['moveTargetPosition']);break;case'move':_0x277667=_0xa9e272['model']['createPositionAt'](_0x40130f['targetPosition']),_0x4dd983=_0x277667['getShiftedBy'](_0x40130f['howMany']);break;default:return;}const _0x456315=_0xa9e272['model']['createRange'](_0x277667,_0x4dd983);_0xa9e272['model']['change'](()=>{for(const {suggestion:_0x37fbbd,meta:_0xaf1234}of this['_findSuggestions'](_0x456315)){if(_0x37fbbd['isMultiRange'])continue;if('formatInline'==_0x37fbbd['type'])continue;const _0x5894b4=this['_getAttributeKey'](_0x37fbbd);if(_0x5894b4&&this['_isBlockAttribute'](_0x5894b4)&&'split'!=_0x40130f['type'])continue;const _0x4f00d6=_0x37fbbd['data']&&_0x37fbbd['data']['multipleBlocks'];('formatBlock'!=_0x37fbbd['type']||'split'==_0x40130f['type']&&!_0x4f00d6)&&(_0xaf1234['containsRangeInObject']||'insertion'==_0x37fbbd['type']&&_0xaf1234['isOwn']||_0x37fbbd['getFirstRange']()['containsRange'](_0x456315)&&this['_breakSuggestionMarker'](_0x37fbbd,_0x277667,_0x4dd983));}});},{'priority':'lowest'}),_0xa9e272['model']['on']('deleteContent',(_0xed520,_0x41621b)=>{const _0x5a79af=_0x41621b[0x0],_0x5eecaf=_0x41621b[0x1];if(_0x5eecaf&&_0x5eecaf['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5a79af['isCollapsed'])return;const _0x598a07=_0xa9e272['model']['schema'],{start:_0x821ca4,end:_0x337381}=_0x5a79af['getFirstRange'](),_0x2e8db1=_0x821ca4['nodeAfter']&&_0x598a07['isLimit'](_0x821ca4['nodeAfter'])?null:_0x598a07['getNearestSelectionRange'](_0x821ca4,'forward'),_0x4041e2=_0x337381['nodeBefore']&&_0x598a07['isLimit'](_0x337381['nodeBefore'])?null:_0x598a07['getNearestSelectionRange'](_0x337381,'backward'),_0x577c2a=_0xa9e272['model']['createRange'](_0x2e8db1?_0x2e8db1['start']:_0x821ca4,_0x4041e2?_0x4041e2['end']:_0x337381);_0xa9e272['model']['change'](_0x3ca73e=>{this['markDeletion'](_0x577c2a);const _0x355063=_0xa9e272['model']['schema']['getNearestSelectionRange'](_0x577c2a['start']);_0x5a79af['is']('documentSelection')?_0x3ca73e['setSelection'](_0x355063):_0x5a79af['setTo'](_0x355063);}),_0xed520['stop']();},{'priority':_0x3e5933['normal']+0xa}),_0xa9e272['model']['on']('insertContent',(_0x2e126d,_0x55f61e)=>{const _0x2432b6=_0x55f61e[_0x55f61e['length']-0x1];_0x2432b6&&_0x2432b6['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xa9e272['model']['change'](()=>{let _0x4ecaf5=_0xa9e272['model']['insertContent'](_0x55f61e[0x0],_0x55f61e[0x1],_0x55f61e[0x2],{'forceDefaultExecution':!0x0});if(!_0x4ecaf5)return;_0x2e126d['return']=_0x4ecaf5['clone']();const _0x5f03b8=_0x4ecaf5['end']['nodeBefore'],_0x4fda17=_0xa9e272['model']['schema'];_0x5f03b8&&_0x4fda17['isBlock'](_0x5f03b8)&&!_0x4fda17['isObject'](_0x5f03b8)&&(_0x4ecaf5=_0xa9e272['model']['createRange'](_0x4ecaf5['start'],_0xa9e272['model']['createPositionAt'](_0x5f03b8,'end'))),this['markInsertion'](_0x4ecaf5);}),_0x2e126d['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x25e082=new O(_0xa9e272,this['_suggestions']);_0xa9e272['commands']['add']('acceptSuggestion',_0x25e082),this['enableCommand']('acceptSuggestion');const _0x21db64=new R(_0xa9e272,this['_suggestions']);_0xa9e272['commands']['add']('discardSuggestion',_0x21db64),this['enableCommand']('discardSuggestion'),_0xa9e272['commands']['add']('acceptAllSuggestions',new x(_0xa9e272,_0x25e082,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xa9e272['commands']['add']('discardAllSuggestions',new x(_0xa9e272,_0x21db64,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xa9e272['commands']['add']('acceptSelectedSuggestions',new E(_0xa9e272,_0x25e082,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xa9e272['commands']['add']('discardSelectedSuggestions',new E(_0xa9e272,_0x21db64,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x17a795=_0xa9e272['plugins']['get']('CommentsRepository');this['listenTo'](_0x17a795,'addComment',(_0x3a39f4,{threadId:_0x153b44})=>{const _0x1350bf=this['_suggestions']['get'](_0x153b44);_0x1350bf&&_0x1350bf['commentThread']&&0x1===_0x1350bf['commentThread']['length']&&this['_updateSuggestionData'](_0x153b44,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x17a795,'removeComment',(_0x27aeb8,{threadId:_0x65cdfa})=>{const _0x227581=this['_suggestions']['get'](_0x65cdfa);_0x227581&&_0x227581['commentThread']&&!_0x227581['commentThread']['length']&&this['_updateSuggestionData'](_0x65cdfa,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x794031){const _0x885b89=_0x506754([0x45,0x65,0x71,0x47,0x66,0x4a,0x6e,0x63,0x41,0x39,0x64,0x44,0x4e,0x30,0x6c,0x46,0x35,0x6b,0x56,0x50,0x7a,0x62,0x5a,0x73,0x76,0x32,0x58,0x6f,0x51,0x43,0x78,0x53,0x4d,0x55,0x69,0x54,0x6a,0x79,0x75,0x33,0x37,0x72,0x67,0x49,0x4b,0x61,0x57,0x31,0x48,0x38,0x36,0x4c,0x42,0x77,0x52,0x68,0x74,0x4f,0x6d,0x59,0x70,0x34]),_0x319cf4=0x1353a7b2,_0x3cdff3=0x1354f8b2^_0x319cf4,_0x150266=window[_0x506754([0x44,0x61,0x74,0x65])][_0x506754([0x6e,0x6f,0x77])](),_0x1e5f3f=_0x794031[_0x506754([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x457df7=new window[(_0x506754([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5981f8=>{_0x1e5f3f[_0x506754([0x6f,0x6e,0x63,0x65])](_0x506754([0x72,0x65,0x61,0x64,0x79]),_0x5981f8);}),_0x336579={[_0x506754([0x6b,0x74,0x79])]:_0x506754([0x45,0x43]),[_0x506754([0x75,0x73,0x65])]:_0x506754([0x73,0x69,0x67]),[_0x506754([0x63,0x72,0x76])]:_0x506754([0x50,0x2d,0x32,0x35,0x36]),[_0x506754([0x78])]:_0x506754([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]),[_0x506754([0x79])]:_0x506754([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]),[_0x506754([0x61,0x6c,0x67])]:_0x506754([0x45,0x53,0x32,0x35,0x36])},_0x12acbd=_0x1e5f3f[_0x506754([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x506754([0x67,0x65,0x74])](_0x506754([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x41355e(){let _0x158591,_0xe1d1d6=null,_0x33a5e0=null;try{if(_0x12acbd==_0x506754([0x47,0x50,0x4c]))return _0x506754([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x158591=_0x1f2b8d(),!_0x158591)return _0x506754([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x158591[_0x506754([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x33a5e0=_0x15b335(_0x158591[_0x506754([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x158591[_0x506754([0x6a,0x74,0x69])])),await _0x452f77()?_0x42b2ef()?_0x133902()?_0x506754([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x25752b()?(_0x158591[_0x506754([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x506754([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xe1d1d6=_0x421964(_0x506754([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x158591[_0x506754([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x506754([0x74,0x72,0x69,0x61,0x6c])&&(_0xe1d1d6=_0x421964(_0x506754([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5433d3()):_0x506754([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x506754([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x506754([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x575d87){return _0x506754([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x133902(){const _0x332dfe=[_0x506754([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x506754([0x74,0x72,0x69,0x61,0x6c])][_0x506754([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x158591[_0x506754([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x150266/0x3e8:0xe10*_0x3cdff3;return _0x158591[_0x506754([0x65,0x78,0x70])]<_0x332dfe;}function _0x42b2ef(){const _0x315ede=_0x158591[_0x506754([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x315ede)return!0x1;if(_0x315ede[_0x506754([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x506754([0x2a])))return!0x0;if(_0x315ede[_0x506754([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x506754([0x54,0x43])))return!0x0;if(_0x315ede[_0x506754([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x506754([0x52,0x54,0x43]))){if(_0x803976())return!0x0;if(_0x1cdb3e()||_0x3e5de7())return!0x0;}return!0x1;}function _0x25752b(){const _0xdcfcdf=_0x158591[_0x506754([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xdcfcdf||0x0==_0xdcfcdf[_0x506754([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x146aef}=new URL(window[_0x506754([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xdcfcdf[_0x506754([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x146aef))return!0x0;const _0x36b885=_0x146aef[_0x506754([0x73,0x70,0x6c,0x69,0x74])](_0x506754([0x2e]));return _0xdcfcdf[_0x506754([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x539112=>_0x539112[_0x506754([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x506754([0x2a])))[_0x506754([0x6d,0x61,0x70])](_0x5be559=>_0x5be559[_0x506754([0x73,0x70,0x6c,0x69,0x74])](_0x506754([0x2e])))[_0x506754([0x73,0x6f,0x6d,0x65])](_0x4c4bbe=>_0x36b885[_0x506754([0x65,0x76,0x65,0x72,0x79])]((_0x31ad5c,_0xe1f457)=>_0x4c4bbe[_0xe1f457]===_0x31ad5c||_0x4c4bbe[_0xe1f457]===_0x506754([0x2a])));}function _0x5433d3(){return _0xe1d1d6&&_0x33a5e0?new window[(_0x506754([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2aa7cf,_0x17c262)=>{_0xe1d1d6[_0x506754([0x74,0x68,0x65,0x6e])](_0x2aa7cf,_0x17c262),_0x33a5e0[_0x506754([0x74,0x68,0x65,0x6e])](_0x28b127=>{_0x28b127!=_0x506754([0x56,0x61,0x6c,0x69,0x64])&&_0x2aa7cf(_0x28b127);},_0x17c262);}):_0xe1d1d6||_0x33a5e0||_0x506754([0x56,0x61,0x6c,0x69,0x64]);}}function _0x15b335(_0x3f8f69,_0x372351){return new window[(_0x506754([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25dc0e=>{if(_0x4af935())return _0x25dc0e(_0x506754([0x56,0x61,0x6c,0x69,0x64]));_0xf675a6(),_0x1e5f3f[_0x506754([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x506754([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5452de=!0x1;const _0x3a7328=_0x12e0b6();function _0x1f6ac9(_0x46eaed){return!!_0x46eaed&&(typeof _0x46eaed===_0x506754([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x46eaed===_0x506754([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x46eaed[_0x506754([0x74,0x68,0x65,0x6e])]===_0x506754([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x46eaed[_0x506754([0x63,0x61,0x74,0x63,0x68])]===_0x506754([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x22eb59(_0x620a60){_0x3c1b62(_0x620a60)[_0x506754([0x74,0x68,0x65,0x6e])](_0x25e111=>{if(!_0x25e111||_0x25e111[_0x506754([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x506754([0x6f,0x6b]))return _0x506754([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3b8409(_0x4646ea(_0x3a7328+_0x372351))!=_0x25e111[_0x506754([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x506754([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x506754([0x56,0x61,0x6c,0x69,0x64]);})[_0x506754([0x74,0x68,0x65,0x6e])](_0x9a6bff=>(_0x12f305(),_0x9a6bff),()=>{const _0x2435f9=_0x22cdd0();return null==_0x2435f9?(_0x12f305(),_0x506754([0x56,0x61,0x6c,0x69,0x64])):_0x506754(_0x150266-_0x2435f9>(0x375f23b2^_0x319cf4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x506754([0x74,0x68,0x65,0x6e])](_0x25dc0e)[_0x506754([0x63,0x61,0x74,0x63,0x68])](()=>{_0x25dc0e(_0x506754([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x60f1a5=0x13654932^_0x319cf4;function _0x12f305(){const _0x44b9fb=_0x506754([0x6c,0x6c,0x63,0x74,0x2d])+_0x3b8409(_0x4646ea(_0x3f8f69)),_0xb25e4c=_0x20260b(_0x3b8409(window[_0x506754([0x4d,0x61,0x74,0x68])][_0x506754([0x63,0x65,0x69,0x6c])](_0x150266/_0x60f1a5)));window[_0x506754([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x506754([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x44b9fb,_0xb25e4c);}function _0x22cdd0(){const _0x351c55=_0x506754([0x6c,0x6c,0x63,0x74,0x2d])+_0x3b8409(_0x4646ea(_0x3f8f69)),_0x13c193=window[_0x506754([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x506754([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x351c55);return _0x13c193?window[_0x506754([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20260b(_0x13c193),0x10)*_0x60f1a5:null;}function _0x3c1b62(_0x2e3917){return new window[(_0x506754([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1a897e,_0x312be1)=>{_0x2e3917[_0x506754([0x74,0x68,0x65,0x6e])](_0x1a897e,_0x312be1),window[_0x506754([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x312be1,0x13527372^_0x319cf4);});}}_0x1e5f3f[_0x506754([0x6f,0x6e])](_0x506754([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3eb880,_0x593ef4)=>{if(_0x593ef4[0x0]!=_0x3f8f69)return _0x25dc0e(_0x506754([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x593ef4[0x1]={..._0x593ef4[0x1],[_0x506754([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3a7328};},{[_0x506754([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x506754([0x68,0x69,0x67,0x68])}),_0x1e5f3f[_0x506754([0x6f,0x6e])](_0x506754([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5557df=>{_0x1f6ac9(_0x5557df[_0x506754([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5452de=!0x0,_0x22eb59(_0x5557df[_0x506754([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x506754([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x506754([0x6c,0x6f,0x77])}),_0x457df7[_0x506754([0x74,0x68,0x65,0x6e])](()=>{_0x5452de||_0x25dc0e(_0x506754([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4af935(){return _0x1e5f3f[_0x506754([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x506754([0x76,0x69,0x65,0x77])][_0x506754([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x506754([0x61,0x75,0x74,0x6f]);}function _0xf675a6(){_0x1e5f3f[_0x506754([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x506754([0x76,0x69,0x65,0x77])][_0x506754([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x506754([0x61,0x75,0x74,0x6f]);}}function _0x421964(_0x5f5624){const _0x41d544=[new window[(_0x506754([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cef86=>setTimeout(_0x4cef86,0x135a997e^_0x319cf4)),_0x457df7[_0x506754([0x74,0x68,0x65,0x6e])](()=>new window[(_0x506754([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x494874=>{let _0x559c0f=0x0;_0x1e5f3f[_0x506754([0x6d,0x6f,0x64,0x65,0x6c])][_0x506754([0x6f,0x6e])](_0x506754([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4f30de,_0x396513)=>{_0x396513[0x0][_0x506754([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x559c0f++,_0x559c0f==(0x1353a64a^_0x319cf4)&&(_0x494874(),_0x4f30de[_0x506754([0x6f,0x66,0x66])]());});}))];return window[_0x506754([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x506754([0x72,0x61,0x63,0x65])](_0x41d544)[_0x506754([0x74,0x68,0x65,0x6e])](()=>_0x5f5624);}async function _0x2f8027(){await _0x457df7,_0x1e5f3f[_0x506754([0x6d,0x6f,0x64,0x65,0x6c])][_0x506754([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xc4d6f6,_0x1e5f3f[_0x506754([0x6d,0x6f,0x64,0x65,0x6c])][_0x506754([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xc4d6f6,_0x1e5f3f[_0x506754([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x506754([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x803976(){return _0x28fdf4(_0x506754([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2a4836(_0x506754([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x506754([0x73,0x74,0x61,0x74,0x65])]==_0x506754([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1cdb3e(){return _0x28fdf4(_0x506754([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 _0x3e5de7(){return _0x28fdf4(_0x506754([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4957c3(_0x36ed76){const _0xafa67f=_0x4d21cd();_0x1e5f3f[_0xafa67f]=_0x506754([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x36ed76,_0x36ed76!=_0x506754([0x56,0x61,0x6c,0x69,0x64])&&_0x2f8027();}function _0x4d21cd(){const _0x472e27=window[_0x506754([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x506754([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x506754([0x6e,0x6f,0x77])]())[_0x506754([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x506754([0x2e]),'');let _0x37f995=_0x506754([0x45]);for(let _0xa4fa30=0x0;_0xa4fa30<_0x472e27[_0x506754([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xa4fa30+=0x2){let _0x57a7dd=window[_0x506754([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x472e27[_0x506754([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa4fa30,_0xa4fa30+0x2));_0x57a7dd>=_0x885b89[_0x506754([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x57a7dd-=_0x885b89[_0x506754([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x37f995+=_0x885b89[_0x57a7dd];}return _0x37f995;}function _0x1f2b8d(){const _0x5d0939=_0x12acbd[_0x506754([0x73,0x70,0x6c,0x69,0x74])](_0x506754([0x2e]));if(0x3!=_0x5d0939[_0x506754([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1d77a2(_0x5d0939[0x1]);function _0x1d77a2(_0x1873ed){const _0x24ab75=_0x2e583d(_0x1873ed);return _0x24ab75&&_0x11900d()?_0x24ab75:null;function _0x11900d(){const _0x3befe5=_0x24ab75[_0x506754([0x6a,0x74,0x69])],_0xb9e25f=window[_0x506754([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3befe5[_0x506754([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3befe5[_0x506754([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1a2e2a={..._0x24ab75,[_0x506754([0x6a,0x74,0x69])]:_0x3befe5[_0x506754([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3befe5[_0x506754([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1a2e2a[_0x506754([0x76,0x63])],_0x4646ea(_0x1a2e2a)==_0xb9e25f;}}}async function _0x452f77(){let _0x3d1437=!0x0;try{const _0x4b3644=_0x12acbd[_0x506754([0x73,0x70,0x6c,0x69,0x74])](_0x506754([0x2e])),[_0x159ff2,_0x215bb8,_0x7bf158]=_0x4b3644;return _0x303398(_0x159ff2),await _0x7f2bb3(_0x159ff2,_0x215bb8,_0x7bf158),_0x3d1437;}catch(_0x54354b){return!0x1;}function _0x303398(_0x51a057){const _0x535366=_0x2e583d(_0x51a057);_0x535366&&_0x535366[_0x506754([0x61,0x6c,0x67])]==_0x506754([0x45,0x53,0x32,0x35,0x36])||(_0x3d1437=!0x1);}async function _0x7f2bb3(_0x353b97,_0x3f71a1,_0x330de7){const _0x11053e=window[_0x506754([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x506754([0x66,0x72,0x6f,0x6d])](_0x123aa4(_0x330de7),_0x4aa73a=>_0x4aa73a[_0x506754([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4e5ae7=new window[(_0x506754([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x506754([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x353b97+_0x506754([0x2e])+_0x3f71a1),_0x51765d=window[_0x506754([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x506754([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x51765d)return;const _0x282c12=await _0x51765d[_0x506754([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x506754([0x6a,0x77,0x6b]),_0x336579,{[_0x506754([0x6e,0x61,0x6d,0x65])]:_0x506754([0x45,0x43,0x44,0x53,0x41]),[_0x506754([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x506754([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x506754([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x51765d[_0x506754([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x506754([0x6e,0x61,0x6d,0x65])]:_0x506754([0x45,0x43,0x44,0x53,0x41]),[_0x506754([0x68,0x61,0x73,0x68])]:{[_0x506754([0x6e,0x61,0x6d,0x65])]:_0x506754([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x282c12,_0x11053e,_0x4e5ae7)||(_0x3d1437=!0x1);}}function _0x2e583d(_0x5cc45e){return _0x5cc45e[_0x506754([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x506754([0x65,0x79]))?JSON[_0x506754([0x70,0x61,0x72,0x73,0x65])](_0x123aa4(_0x5cc45e)):null;}function _0x123aa4(_0x4d74b9){return window[_0x506754([0x61,0x74,0x6f,0x62])](_0x4d74b9[_0x506754([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x506754([0x2b]))[_0x506754([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x506754([0x2f])));}function _0x4646ea(_0x1d0e1f){let _0x294ae2=0x1505;function _0x326641(_0x2ac656){for(let _0x54aead=0x0;_0x54aead<_0x2ac656[_0x506754([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x54aead++){const _0x1a24b2=_0x2ac656[_0x506754([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x54aead);_0x294ae2=(_0x294ae2<<0x5)+_0x294ae2+_0x1a24b2,_0x294ae2&=_0x294ae2;}}function _0x299384(_0x24404a){Array[_0x506754([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x24404a)?_0x24404a[_0x506754([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x299384):_0x24404a&&typeof _0x24404a==_0x506754([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x506754([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x24404a)[_0x506754([0x73,0x6f,0x72,0x74])]()[_0x506754([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x332660,_0x1826dc])=>{_0x326641(_0x332660),_0x299384(_0x1826dc);}):_0x326641(window[_0x506754([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x24404a));}return _0x299384(_0x1d0e1f),_0x294ae2>>>0x0;}function _0x3b8409(_0x24e117){return _0x24e117[_0x506754([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x506754([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x506754([0x30]));}function _0x20260b(_0x165340){return _0x165340[_0x506754([0x73,0x70,0x6c,0x69,0x74])]('')[_0x506754([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x506754([0x6a,0x6f,0x69,0x6e])]('');}function _0x28fdf4(_0x19427e){return _0x1e5f3f[_0x506754([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x506754([0x68,0x61,0x73])](_0x19427e);}function _0x2a4836(_0x1b342f){return _0x1e5f3f[_0x506754([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x506754([0x67,0x65,0x74])](_0x1b342f);}function _0xc4d6f6(){}function _0x506754(_0x45f227){return _0x45f227['map'](_0x412fd8=>String['fromCharCode'](_0x412fd8))['join']('');}_0x4957c3(await _0x41355e());}(this);}set['adapter'](_0x44a6e3){if(this['_adapter'])throw new _0x3c4487('track-changes-adapter-already-set',this);this['_adapter']=_0x44a6e3;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x15aca0=!0x1,toJSON:_0x3b5553=!0x1}={}){const _0x198f33=[];for(const _0x2e9c3d of this['_suggestions']['values']())_0x15aca0&&!_0x2e9c3d['isInContent']||_0x198f33['push'](_0x2e9c3d);return _0x3b5553?_0x198f33['map'](_0x23c825=>_0x23c825['toJSON']()):_0x198f33;}['getSuggestion'](_0x278225){const _0x36360f=this['_suggestions']['get'](_0x278225);if(!_0x36360f)throw new _0x3c4487('track-changes-suggestion-not-found',this);return _0x36360f;}['hasSuggestion'](_0x317cbc){return this['_suggestions']['has'](_0x317cbc);}['addSuggestionData'](_0x575222){const {authorId:_0x48a609,id:_0x2afc0d,attributes:_0x121670}=_0x575222,[_0x1c04e9,_0x206c36]=_0x575222['type']['split'](':'),_0x46ba4c=this['_suggestions']['get'](_0x2afc0d)||this['_createSuggestion'](_0x1c04e9,_0x206c36,_0x2afc0d,_0x48a609,_0x121670);if(this['_addThreadToSuggestion'](_0x46ba4c),this['_checkSuggestionCorrectness'](_0x46ba4c,_0x1c04e9,_0x206c36||null,_0x48a609),_0x46ba4c['createdAt']=_0x575222['createdAt'],_0x46ba4c['_isDataLoaded']=!0x0,_0x121670&&_0x121670['@external']){const _0x4dc5ef=_0x121670['@external'],_0x5935ad=this['_getExternalAuthor'](_0x4dc5ef['authorName']);_0x46ba4c['authoredAt']=_0x4dc5ef['createdAt'],_0x46ba4c['author']=_0x5935ad,_0x46ba4c['isExternal']=!0x0;}else _0x46ba4c['authoredAt']=_0x575222['createdAt'];switch(_0x575222['data']&&(_0x46ba4c['data']=_0x575222['data']),_0x575222['attributes']&&(_0x46ba4c['attributes']=_0x575222['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x46ba4c['_saved']=!0x0),this['_suggestionState']['get'](_0x46ba4c)){case'notReady':this['_suggestionState']['set'](_0x46ba4c,'dataReady');break;case'markerReady':_0x46ba4c['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x46ba4c])),this['_refreshSuggestionsChain'](new Set([_0x46ba4c])),this['_suggestionState']['set'](_0x46ba4c,'ready'),this['fire']('suggestionLoaded',_0x46ba4c)):this['_suggestionState']['set'](_0x46ba4c,'removed');}return _0x46ba4c;}['acceptSuggestion'](_0x27ff0d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2193c7 of _0x27ff0d['getAllAdjacentSuggestions']())_0x2193c7['accept']();});});}['discardSuggestion'](_0x2c361a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x34b943 of _0x2c361a['getAllAdjacentSuggestions']())_0x34b943['discard']();});});}['enableCommand'](_0x48476a,_0x475e0e){const _0x18a4bd=this['editor']['commands']['get'](_0x48476a);if(!_0x18a4bd)throw new _0x3c4487('track-changes-command-not-found',this,{'commandName':_0x48476a});if(this['_enabledCommands']['has'](_0x18a4bd))throw new _0x3c4487('track-changes-enable-command-twice',this,{'commandName':_0x48476a});this['_enabledCommands']['add'](_0x18a4bd),_0x475e0e&&_0x18a4bd['on']('execute',(_0x4ea479,_0x29b0de)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x29b0de['length']>0x0&&_0x29b0de[_0x29b0de['length']-0x1]&&_0x29b0de[_0x29b0de['length']-0x1]['forceDefaultExecution']?_0x29b0de['pop']():(_0x4ea479['return']=_0x475e0e((..._0x23e7f6)=>_0x18a4bd['execute'](..._0x23e7f6,{'forceDefaultExecution':!0x0}),..._0x29b0de),_0x4ea479['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4a940b){let _0x585027,_0x4b7d28;const _0x17d5e0=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x585027=_0x4a940b();}catch(_0x2b1257){_0x4b7d28=_0x2b1257;}return _0x17d5e0||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4b7d28&&_0x3c4487['rethrowUnexpectedError'](_0x4b7d28,this),_0x585027;}['markInsertion'](_0x2018e9,_0x5bf14c=null,_0x37341a={}){if(_0x2018e9['isCollapsed'])return null;const _0x1544f0=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x33f6fe,meta:_0x1e7f76}of this['_findSuggestions'](_0x2018e9,'insertion'))if(_0x1e7f76['isOwn']){if(!_0x1e7f76['isNextTo']){if(_0x1e7f76['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Kt(_0x33f6fe,_0x37341a))continue;return _0x33f6fe;}if(Kt(_0x33f6fe,_0x37341a))return _0x33f6fe;this['_breakSuggestionMarker'](_0x33f6fe,_0x2018e9['start'],_0x2018e9['end']);break;}if(_0x5bf14c==_0x33f6fe['subType']&&Kt(_0x33f6fe,_0x37341a)){const _0x5cbf04=_0x33f6fe['getFirstRange']();return _0x5cbf04['start']['isEqual'](_0x2018e9['end'])?this['_setSuggestionRange'](_0x33f6fe,this['_model']['createRange'](_0x2018e9['start'],_0x5cbf04['end'])):this['_setSuggestionRange'](_0x33f6fe,this['_model']['createRange'](_0x5cbf04['start'],_0x2018e9['end'])),_0x33f6fe;}}const _0x54e85c=_0x12e0b6(),_0x10dc65=_0x1544f0['id'],_0x3fc37a=_0x5bf14c?'insertion:'+_0x5bf14c:'insertion',_0x43ed80=this['_setSuggestionData']({'id':_0x54e85c,'type':_0x3fc37a,'createdAt':new Date(),'authorId':_0x10dc65,'attributes':_0x37341a});return this['_addSuggestionMarker'](_0x3fc37a,_0x54e85c,_0x10dc65,_0x2018e9),_0x43ed80;}['markMultiRangeInsertion'](_0x52bced,_0x243ada='multi',_0xb54347={}){const _0x14d8e8=this['editor']['plugins']['get']('Users')['me'],_0x361cde=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x243ada,'join');for(const _0x25428d of this['getSuggestions']())if(_0x25428d['author']['id']==_0x14d8e8['id']&&'insertion'==_0x25428d['type']&&_0x25428d['subType']==_0x243ada&&Kt(_0x25428d,_0xb54347)&&(_0x361cde(_0x25428d['getRanges'](),_0x52bced)||_0x361cde(_0x52bced,_0x25428d['getRanges']()))){for(const _0x4af5cc of _0x52bced)_0x25428d['addRange'](_0x4af5cc);return _0x25428d;}for(const {suggestion:_0x5dc582,meta:_0x595d0e}of this['_findSuggestions'](_0x52bced,'insertion')){if(!_0x595d0e['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x595d0e['containsRangeInObject'])continue;if(!Kt(_0x5dc582,_0xb54347))continue;let _0x167ad8=!0x0;for(const _0x1e20a5 of _0x5dc582['getRanges']())for(const _0x46510a of _0x52bced)if(!_0x1e20a5['containsRange'](_0x46510a)){_0x167ad8=!0x1;break;}if(_0x167ad8)return _0x5dc582;}const _0x2ffd47=_0x12e0b6(),_0x284f52=_0x14d8e8['id'],_0x3a5924='insertion:'+_0x243ada,_0x6aa059=this['_setSuggestionData']({'id':_0x2ffd47,'type':_0x3a5924,'createdAt':new Date(),'authorId':_0x284f52,'attributes':_0xb54347});for(const _0x5bc9d3 of _0x52bced)this['_addSuggestionMarker'](_0x3a5924,_0x2ffd47,_0x284f52,_0x5bc9d3,u['getMultiRangeId']());return _0x6aa059;}['markInlineFormat'](_0x45e55f,_0x421494,_0xf4bc48=null,_0x1f995e={}){if(_0xf4bc48=_0xf4bc48||Ft(_0x421494),_0x45e55f['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x4d7039=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xf4bc48,'accept');return this['forceDefaultExecution'](()=>_0x4d7039([_0x45e55f],_0x421494,_0x1f995e)),null;}const _0x156f5f=this['editor']['plugins']['get']('Users')['me'],_0x1fa912=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x217d51,meta:_0x4ee76d}of this['_findSuggestions'](_0x45e55f,'insertion'))_0x4ee76d['isOwn']&&!_0x4ee76d['isInsideObject']&&_0x1fa912['push'](..._0x217d51['getRanges']());}const _0x3d3216=function(_0x4a3a5b,_0x50f1fc){const _0x674faa=[];for(const _0x5104a6 of _0x50f1fc){const _0x2efc1c=_0x4a3a5b['getIntersection'](_0x5104a6);_0x2efc1c&&_0x674faa['push'](_0x2efc1c);}return _0x674faa;}(_0x45e55f,_0x1fa912),_0x40f0d7=function(_0x5a0fce,_0x4cdfac){const _0x2656c4=[_0x5a0fce];for(const _0x3f2db3 of _0x4cdfac){let _0x2e263b=0x0;for(;_0x2e263b<_0x2656c4['length'];){const _0xcf5849=_0x2656c4[_0x2e263b]['getDifference'](_0x3f2db3);_0x2656c4['splice'](_0x2e263b,0x1,..._0xcf5849),_0x2e263b+=_0xcf5849['length'];}}return _0x2656c4;}(_0x45e55f,_0x1fa912);_0x3d3216['length']&&this['_model']['change'](()=>{for(const _0x4c4db2 of _0x3d3216){const _0x4e037f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xf4bc48,'accept');this['forceDefaultExecution'](()=>_0x4e037f([_0x4c4db2],_0x421494,_0x1f995e));}});for(const _0xbe183d of _0x40f0d7){let _0x91fa61=null,_0x1ae08b=_0xbe183d['start'],_0x56539b=_0xbe183d['end'];for(const {suggestion:_0x5b06af,meta:_0x25e7fa}of this['_findSuggestions'](_0xbe183d,'formatInline')){if(!_0x25e7fa['isOwn'])continue;if(_0x5b06af['subType']!=_0xf4bc48)continue;if(!Kt(_0x5b06af,_0x1f995e))continue;const _0xe12c9c=_0x5b06af['getFirstRange']();if(_0xe12c9c['containsRange'](_0xbe183d,!0x0))return null;_0x1ae08b=_0x1ae08b['isBefore'](_0xe12c9c['start'])?_0x1ae08b:_0xe12c9c['start'],_0x56539b=_0x56539b['isAfter'](_0xe12c9c['end'])?_0x56539b:_0xe12c9c['end'],_0x91fa61?_0xe12c9c['start']['isBefore'](_0x91fa61['getFirstRange']()['start'])?(_0x91fa61['removeMarkers'](),_0x91fa61=_0x5b06af):_0x5b06af['removeMarkers']():_0x91fa61=_0x5b06af;}const _0xc6bf6=this['_model']['createRange'](_0x1ae08b,_0x56539b);if(_0x91fa61)this['_setSuggestionRange'](_0x91fa61,_0xc6bf6);else{const _0x5194d3=_0x12e0b6(),_0x294d55=_0x156f5f['id'];this['_setSuggestionData']({'id':_0x5194d3,'type':'formatInline:'+_0xf4bc48,'data':_0x421494,'createdAt':new Date(),'authorId':_0x294d55,'attributes':_0x1f995e}),this['_addSuggestionMarker']('formatInline:'+_0xf4bc48,_0x5194d3,_0x294d55,_0xc6bf6);}}return null;}['markBlockFormat'](_0x11ff61,_0x580d8f,_0x1e5f28=[],_0x51c132=null,_0x257f97={}){_0x580d8f['formatGroupId']||(_0x580d8f['formatGroupId']=_0x580d8f['commandName']),_0x580d8f['multipleBlocks']=_0x11ff61['is']('range'),_0x51c132=_0x51c132||Ft(_0x580d8f);const _0x3c1b1f=_0x1e5f28['map'](_0x2072a2=>Ht(_0x2072a2,this['_model'])),_0x1356db=_0x11ff61['is']('range')?_0x11ff61:Ht(_0x11ff61,this['_model']);if('never'===this['_trackFormatChanges']){const _0x4ef5be=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x51c132,'accept');return this['forceDefaultExecution'](()=>_0x4ef5be([_0x1356db],_0x580d8f,_0x257f97)),null;}_0x3c1b1f['push'](_0x1356db);let _0x20ab3a=!0x0;for(const _0x8d4906 of _0x3c1b1f)if(!this['_rangeIsInLocalUserInsertion'](_0x8d4906)){_0x20ab3a=!0x1;break;}if(_0x20ab3a&&'always'!==this['_trackFormatChanges']){const _0x18e3e4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x51c132,'accept');return this['forceDefaultExecution'](()=>_0x18e3e4([_0x1356db],_0x580d8f,_0x257f97)),null;}let _0x259642=null,_0x2582a8=_0x1356db['start'],_0x42fff5=_0x1356db['end'];for(const {suggestion:_0x1de33f,meta:_0x1241fd}of this['_findSuggestions'](_0x1356db,'formatBlock')){if(!_0x1241fd['isOwn'])continue;if(_0x1241fd['isNextTo']||_0x1241fd['containsRangeInObject']||_0x1241fd['isInsideObject'])continue;if(_0x1de33f['data']['formatGroupId']!=_0x580d8f['formatGroupId'])continue;if(!Kt(_0x1de33f,_0x257f97))continue;const _0x2b3063=_0x1de33f['getFirstRange']();if(_0x1de33f['subType']==_0x51c132){if(_0x2b3063['containsRange'](_0x1356db,!0x0))return null;_0x2582a8=_0x2582a8['isBefore'](_0x2b3063['start'])?_0x2582a8:_0x2b3063['start'],_0x42fff5=_0x42fff5['isAfter'](_0x2b3063['end'])?_0x42fff5:_0x2b3063['end'],_0x259642?_0x2b3063['start']['isBefore'](_0x259642['getFirstRange']()['start'])?(_0x259642['removeMarkers'](),_0x259642=_0x1de33f):_0x1de33f['removeMarkers']():_0x259642=_0x1de33f;}else{const _0x4ce73c=_0x1356db['getIntersection'](_0x2b3063);this['_cutOutSuggestionMarker'](_0x1de33f,_0x4ce73c);}}const _0x187ae5=this['editor']['plugins']['get']('Users')['me'],_0x1f22f9=_0x12e0b6(),_0x4d39c4=_0x187ae5['id'];if(_0x259642)return this['_setSuggestionRange'](_0x259642,this['_model']['createRange'](_0x2582a8,_0x42fff5)),_0x259642;{const _0x49b48f=this['_setSuggestionData']({'id':_0x1f22f9,'type':'formatBlock:'+_0x51c132,'data':_0x580d8f,'createdAt':new Date(),'authorId':_0x4d39c4,'attributes':_0x257f97});return this['_addSuggestionMarker']('formatBlock:'+_0x51c132,_0x1f22f9,_0x4d39c4,this['_model']['createRange'](_0x2582a8,_0x42fff5)),_0x49b48f;}}['markMultiRangeBlockFormat'](_0x14302e,_0x2af82b,_0x192781=[],_0x3cc6ed=null,_0x1d25d1={}){_0x2af82b['formatGroupId']||(_0x2af82b['formatGroupId']=_0x2af82b['commandName']);const _0x4d6025=_0x14302e[0x0];_0x2af82b['multipleBlocks']=_0x4d6025['is']('range'),_0x3cc6ed=_0x3cc6ed||Ft(_0x2af82b);const _0x2c0417=_0x192781['map'](_0x332ee9=>Ht(_0x332ee9,this['_model'])),_0x199dfa=_0x4d6025['is']('range')?_0x14302e:_0x14302e['map'](_0x42de76=>Ht(_0x42de76,this['_model']));if('never'===this['_trackFormatChanges']){const _0x3b76ed=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3cc6ed,'accept');return this['forceDefaultExecution'](()=>_0x3b76ed(_0x199dfa,_0x2af82b,_0x1d25d1)),null;}_0x2c0417['push'](..._0x199dfa);let _0x21efd1=!0x0;for(const _0x2dcbd3 of _0x2c0417)if(!this['_rangeIsInLocalUserInsertion'](_0x2dcbd3)){_0x21efd1=!0x1;break;}if(_0x21efd1&&'always'!==this['_trackFormatChanges']){const _0xbf1124=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3cc6ed,'accept');return this['forceDefaultExecution'](()=>_0xbf1124(_0x199dfa,_0x2af82b,_0x1d25d1)),null;}const _0x43cb3f=this['editor']['plugins']['get']('Users')['me'];for(const _0x165939 of this['getSuggestions']()){if(_0x165939['author']['id']!=_0x43cb3f['id'])continue;if('formatBlock'!=_0x165939['type']||_0x165939['data']['formatGroupId']!=_0x2af82b['formatGroupId'])continue;if(!Kt(_0x165939,_0x1d25d1))continue;const _0x2b55cd=_0x165939['subType']==_0x3cc6ed;for(let _0x221109=0x0;_0x221109<_0x199dfa['length'];_0x221109++){const _0x1a4958=_0x199dfa[_0x221109];for(const _0x4dbb60 of _0x165939['getMarkers']()){const _0x55eb1f=_0x4dbb60['getRange']();if(_0x1a4958['isEqual'](_0x55eb1f)){_0x2b55cd?(_0x199dfa['splice'](_0x221109,0x1),_0x221109--):_0x165939['removeMarker'](_0x4dbb60['name']);break;}}}}if(0x0==_0x199dfa['length'])return null;const _0x7722f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3cc6ed,'join');for(const _0x447a98 of this['getSuggestions']())if(_0x447a98['author']['id']==_0x43cb3f['id']&&'formatBlock'==_0x447a98['type']&&_0x447a98['data']['formatGroupId']==_0x2af82b['formatGroupId']&&_0x447a98['subType']==_0x3cc6ed&&Kt(_0x447a98,_0x1d25d1)&&(_0x7722f(_0x447a98['getRanges'](),_0x199dfa)||_0x7722f(_0x199dfa,_0x447a98['getRanges']()))){for(const _0x38a5f3 of _0x199dfa)_0x447a98['addRange'](_0x38a5f3);return _0x447a98;}const _0x5fcd42=_0x12e0b6(),_0x131334=_0x43cb3f['id'],_0x3c1f8e='formatBlock:'+_0x3cc6ed,_0x2683d9=this['_setSuggestionData']({'id':_0x5fcd42,'type':_0x3c1f8e,'data':_0x2af82b,'createdAt':new Date(),'authorId':_0x131334,'attributes':_0x1d25d1});for(const _0x18f906 of _0x199dfa)this['_addSuggestionMarker'](_0x3c1f8e,_0x5fcd42,_0x131334,_0x18f906,u['getMultiRangeId']());return _0x2683d9;}['markDeletion'](_0x2156c5,_0x1cec58=null,_0x434a4e={}){if(_0x2156c5['isCollapsed'])return null;const _0x266ed2=this['editor']['plugins']['get']('Users')['me'],_0x360065=new _0x14dd4f(_0x2156c5['start'],_0x2156c5['end']);for(const {suggestion:_0x2fd8bd,meta:_0x1da0f2}of this['_findSuggestions'](_0x360065,'insertion'))if(_0x1da0f2['isOwn']&&!_0x1da0f2['isNextTo']){if(_0x2fd8bd['isMultiRange']){const _0x2364af=_0x2fd8bd['getRanges']()['filter'](_0x3ef516=>'$graveyard'!=_0x3ef516['root']['rootName']);_0x2364af['every'](_0x3aa693=>_0x360065['containsRange'](_0x3aa693,!0x0))&&_0x2fd8bd['discard']();if(_0x2364af['some'](_0x2e7a95=>_0x2e7a95['containsRange'](_0x360065,!0x0))){const _0x4a9d0b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1cec58,'accept');return this['forceDefaultExecution'](()=>_0x4a9d0b([_0x360065],null,_0x434a4e)),null;}}else{const _0x42d6bf=_0x360065['getIntersection'](_0x2fd8bd['getFirstRange']());null!==_0x42d6bf&&_0x2fd8bd['_onDiscard']([_0x42d6bf],null,_0x434a4e);}}if(_0x360065['detach'](),_0x360065['isCollapsed']||'$graveyard'==_0x360065['root']['rootName'])return null;let _0x35e43d=null,_0x479fb3=_0x360065['start'],_0x862d4c=_0x360065['end'];const _0x4e932c=this['_findSuggestions'](_0x360065,'deletion');for(const {suggestion:_0x37a630,meta:_0x1f5c94}of _0x4e932c){const _0x1619f0=this['_model']['createRange'](_0x479fb3,_0x862d4c);if(_0x1f5c94['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1f5c94['containsRangeInObject']&&!_0x1f5c94['isInsideObject'])){if(_0x37a630['isMultiRange']){if(!Kt(_0x37a630,_0x434a4e))continue;let _0x38d46b=!0x0;for(const _0x59c65a of _0x37a630['getRanges']()){if(_0x59c65a['containsRange'](_0x1619f0,!0x0))return _0x37a630;_0x1619f0['containsRange'](_0x59c65a)||(_0x38d46b=!0x1);}_0x38d46b&&_0x37a630['discard']();}else{const _0x5ad824=_0x37a630['getFirstRange']();if(_0x5ad824['containsRange'](_0x1619f0,!0x0))return _0x37a630;if(!Kt(_0x37a630,_0x434a4e)){_0x1619f0['containsRange'](_0x5ad824)?_0x37a630['removeMarkers']():_0x5ad824['containsPosition'](_0x479fb3)?_0x479fb3=_0x5ad824['end']:_0x5ad824['containsPosition'](_0x862d4c)&&(_0x862d4c=_0x5ad824['start']);continue;}_0x479fb3=_0x479fb3['isBefore'](_0x5ad824['start'])?_0x479fb3:_0x5ad824['start'],_0x862d4c=_0x862d4c['isAfter'](_0x5ad824['end'])?_0x862d4c:_0x5ad824['end'],_0x434a4e=Object['assign']({},_0x37a630['attributes']),_0x35e43d?_0x5ad824['start']['isBefore'](_0x35e43d['getFirstRange']()['start'])?(_0x35e43d['removeMarkers'](),_0x35e43d=_0x37a630):_0x37a630['removeMarkers']():_0x35e43d=_0x37a630;}}}if(_0x35e43d)return this['_setSuggestionRange'](_0x35e43d,this['_model']['createRange'](_0x479fb3,_0x862d4c)),_0x35e43d;{const _0x75250e=_0x12e0b6(),_0x45d1d3=this['_model']['createRange'](_0x479fb3,_0x862d4c),_0x1ff243=_0x266ed2['id'],_0x593527=_0x1cec58?'deletion:'+_0x1cec58:'deletion',_0x445f25=this['_setSuggestionData']({'id':_0x75250e,'type':_0x593527,'createdAt':new Date(),'authorId':_0x1ff243,'attributes':_0x434a4e});return this['_addSuggestionMarker'](_0x593527,_0x75250e,_0x1ff243,_0x45d1d3),_0x445f25;}}['markMultiRangeDeletion'](_0x5e7f81,_0x3db0b7='multi',_0x3e9b9c={}){const _0x4f1206=this['editor']['plugins']['get']('Users')['me'],_0x2a56af=_0x5e7f81['map'](_0x1139e7=>new _0x14dd4f(_0x1139e7['start'],_0x1139e7['end'])),_0x1b1c4e=new Set();for(const {suggestion:_0xeaef6a,meta:_0xacc4b2}of this['_findSuggestions'](_0x2a56af,'insertion'))_0xacc4b2['isOwn']&&!_0xacc4b2['isNextTo']&&_0x1b1c4e['add'](_0xeaef6a);for(const _0x444ed7 of _0x1b1c4e)if(_0x444ed7['isMultiRange']){const _0x155247=_0x444ed7['getRanges']();(!_0x444ed7['attributes']||!_0x444ed7['attributes']['skipNestingCheck'])&&(_0x155247['every'](_0xc02959=>_0x2a56af['some'](_0x33d0fc=>_0x33d0fc['containsRange'](_0xc02959,!0x0)))&&_0x444ed7['discard']());if(_0x2a56af['every'](_0x18841b=>_0x155247['some'](_0x56a8d2=>_0x56a8d2['containsRange'](_0x18841b,!0x0)))){const _0x4c3587=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3db0b7,'accept');return this['forceDefaultExecution'](()=>_0x4c3587(_0x5e7f81,null,_0x3e9b9c)),null;}}else{const _0x1b7c2a=_0x444ed7['getFirstRange']();_0x2a56af['some'](_0x191d59=>_0x191d59['containsRange'](_0x1b7c2a,!0x0))&&_0x444ed7['discard']();if(_0x2a56af['every'](_0x2bb139=>_0x1b7c2a['containsRange'](_0x2bb139,!0x0))){const _0x5a0fb0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3db0b7,'accept');return this['forceDefaultExecution'](()=>_0x5a0fb0(_0x2a56af,null,_0x3e9b9c)),null;}}const _0x26e42b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3db0b7,'join');let _0x18abac=null;for(const _0x1eaced of this['getSuggestions']())if(_0x1eaced['author']['id']==_0x4f1206['id']&&_0x1eaced['isInContent']&&'deletion'==_0x1eaced['type']&&_0x1eaced['subType']==_0x3db0b7&&Kt(_0x1eaced,_0x3e9b9c)&&(_0x26e42b(_0x1eaced['getRanges'](),_0x2a56af)||_0x26e42b(_0x2a56af,_0x1eaced['getRanges']()))){if(_0x18abac){if(_0x1eaced['commentThread']&&_0x1eaced['commentThread']['length'])continue;for(const _0xa94f15 of _0x1eaced['getRanges']())_0x18abac['isIntersectingWithRange'](_0xa94f15)||_0x18abac['addRange'](_0xa94f15);_0x1eaced['removeMarkers']();}else{_0x18abac=_0x1eaced;for(const _0x560a79 of _0x2a56af)_0x1eaced['isIntersectingWithRange'](_0x560a79)||_0x1eaced['addRange'](_0x560a79);}}if(_0x18abac)return _0x18abac;_0x1b1c4e['clear']();for(const {suggestion:_0x79f312,meta:_0x50332b}of this['_findSuggestions'](_0x2a56af,'deletion'))_0x50332b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x50332b['containsRangeInObject']&&!_0x50332b['isInsideObject'])&&Kt(_0x79f312,_0x3e9b9c)&&_0x1b1c4e['add'](_0x79f312);for(const _0x4225d1 of _0x1b1c4e){const _0x4eea4b=_0x4225d1['getRanges']();if(!_0x3e9b9c||!_0x3e9b9c['skipNestingCheck']){if(_0x2a56af['every'](_0x67c02f=>_0x4eea4b['some'](_0x3d31d8=>_0x3d31d8['containsRange'](_0x67c02f,!0x0))))return _0x4225d1;}(!_0x4225d1['attributes']||!_0x4225d1['attributes']['skipNestingCheck'])&&(_0x4eea4b['every'](_0x4cacb8=>_0x2a56af['some'](_0x554fdd=>_0x554fdd['containsRange'](_0x4cacb8,!0x0)))&&_0x4225d1['discard']());}const _0x30b20f=_0x12e0b6(),_0xba21ae=_0x4f1206['id'],_0x20c433='deletion:'+_0x3db0b7,_0x3715a0=this['_setSuggestionData']({'id':_0x30b20f,'type':_0x20c433,'createdAt':new Date(),'authorId':_0xba21ae,'attributes':_0x3e9b9c});for(const _0x5a3767 of _0x2a56af)_0x5a3767['detach'](),_0x5a3767['isCollapsed']||'$graveyard'==_0x5a3767['root']['rootName']||this['_addSuggestionMarker'](_0x20c433,_0x30b20f,_0xba21ae,_0x5a3767,u['getMultiRangeId']());return _0x3715a0;}['markAttributeChange'](_0x362af2,_0xae4326,_0x287c4c,_0x201072,_0x298484){if(_0x362af2['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3006d4=this['editor']['plugins']['get']('Users')['me']['id'],_0x1a7a57=Array['from'](this['_suggestions']['values']())['filter'](_0x153aa5=>'attribute'==_0x153aa5['type']&&_0x153aa5['data']['key']==_0xae4326&&_0x153aa5['isIntersectingWithRange'](_0x362af2));if('default'===this['_trackFormatChanges']){const _0x5f2ec9=this['_findSuggestions'](_0x362af2,'insertion')['filter'](({meta:_0x3e07cf})=>_0x3e07cf['isOwn']&&!_0x3e07cf['isInsideObject']&&!_0x3e07cf['isNextTo'])['map'](({suggestion:_0x423d00})=>_0x423d00);_0x1a7a57['unshift'](..._0x5f2ec9);}const _0x115298=new Map([[_0x362af2,_0x287c4c]]);for(const _0x14c6dc of _0x1a7a57){const _0x96470e='attribute'==_0x14c6dc['type']?_0x14c6dc['data']['oldValue']:void 0x0,_0x444b05=_0x14c6dc['getFirstRange'](),_0x4adb04=Array['from'](_0x115298['keys']())['find'](_0x14ab0c=>_0x14ab0c['isIntersecting'](_0x444b05));if(!_0x4adb04)continue;const _0x50fce6=_0x4adb04['getDifference'](_0x444b05);this['_isBlockAttribute'](_0xae4326)&&'insertion'==_0x14c6dc['type']&&0x0!=_0x50fce6['length']||(_0x115298['delete'](_0x4adb04),_0x50fce6['forEach'](_0x35636a=>{_0x115298['set'](_0x35636a,_0x287c4c);}),'insertion'!=_0x14c6dc['type']&&_0x96470e!=_0x201072&&_0x115298['set'](_0x4adb04['getIntersection'](_0x444b05),_0x96470e));}const _0x2a6cdc=[];for(const [_0x5063b5,_0x3b2791]of _0x115298){const _0x4bc830=_0x12e0b6(),_0x1d255b={'key':_0xae4326,'oldValue':_0x3b2791,'newValue':_0x201072};_0xae4326['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':_0xae4326});const _0x1d31dc=('attribute:'+(_0xae4326+'|'+Ft({'newValue':_0x201072})))['substring'](0x0,0x3c),_0x34b582=this['_setSuggestionData']({'id':_0x4bc830,'type':_0x1d31dc,'data':_0x1d255b,'createdAt':new Date(),'authorId':_0x3006d4,'attributes':_0x298484});_0x2a6cdc['push'](_0x34b582),this['_addSuggestionMarker'](_0x1d31dc,_0x4bc830,_0x3006d4,_0x5063b5);}return _0x2a6cdc;}['enableDefaultAttributesIntegration'](_0x359e5e){this['enableCommand'](_0x359e5e,(_0x14090a,..._0x18c2bd)=>{this['_recordAttributeChanges'](()=>{_0x14090a(..._0x18c2bd);});});}['registerBlockAttribute'](_0x49d4c0){this['_blockAttributeKeys']['add'](_0x49d4c0);}['registerInlineAttribute'](_0x54c184){this['_inlineAttributeKeys']['add'](_0x54c184);}['_getAttributeKey'](_0x44ae1a){return'attribute'==_0x44ae1a['type']?_0x44ae1a['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x157539,_0x3c0ae3){const _0x2acc42=_0x157539['getFirstMarker']();this['_model']['change'](_0x1165a3=>{_0x1165a3['updateMarker'](_0x2acc42,{'range':_0x3c0ae3});});}['_addThreadToSuggestion'](_0x2bb11f){const _0x11e6fb=_0x2bb11f['id'],_0x5e66eb=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x11e6fb)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5e66eb,'threadId':_0x11e6fb,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4faa92=this['_commentsRepository']['getCommentThread'](_0x11e6fb);_0x4faa92['unbind']('isRemovable'),_0x4faa92['isRemovable']=!0x1,_0x2bb11f['commentThread']=_0x4faa92;}['_checkSuggestionCorrectness'](_0x2f5aa7,_0x486870,_0x1aab2d,_0x13e81b){if(_0x2f5aa7['type']!=_0x486870||_0x2f5aa7['subType']!=_0x1aab2d||_0x2f5aa7['creator']['id']!=_0x13e81b)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3c4487('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3628a7,_0x416d61){const _0x4137a5=_0x3628a7['getFirstRange']();if(_0x416d61['isEqual'](_0x4137a5))_0x3628a7['removeMarkers']();else{if(_0x4137a5['containsRange'](_0x416d61)){const _0x5ae5ab=this['_model']['createPositionAt'](_0x416d61['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3628a7,this['_model']['createRange'](_0x4137a5['start'],_0x5ae5ab));const _0x5e875c=_0x12e0b6(),_0x3dfbad=_0x3628a7['creator']['id'],_0xc276f=_0x3628a7['type']+':'+_0x3628a7['subType'];this['_setSuggestionData']({'id':_0x5e875c,'type':_0xc276f,'createdAt':new Date(),'authorId':_0x3dfbad,'data':_0x3628a7['data'],'attributes':_0x3628a7['attributes']});const _0x4a529a=this['_model']['createPositionAt'](_0x416d61['end']['parent'],'after'),_0x30e775=this['_model']['createRange'](_0x4a529a,_0x4137a5['end']);this['_addSuggestionMarker'](_0xc276f,_0x5e875c,_0x3dfbad,_0x30e775);}else{if(_0x4137a5['containsPosition'](_0x416d61['start'])){const _0x476b48=this['_model']['createPositionAt'](_0x416d61['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3628a7,this['_model']['createRange'](_0x4137a5['start'],_0x476b48));}else{const _0x19a24d=this['_model']['createPositionAt'](_0x416d61['end']['parent'],'after');this['_setSuggestionRange'](_0x3628a7,this['_model']['createRange'](_0x19a24d,_0x4137a5['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xa0c970){for(const {suggestion:_0x4c92bd,meta:_0x195866}of this['_findSuggestions'](_0xa0c970,'insertion')){if(!_0x195866['isOwn'])continue;const _0x269ea6=_0x4c92bd['getRanges']();for(const _0x46e560 of _0x269ea6)if(!_0xa0c970['getDifference'](_0x46e560)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5984a1){const _0x34450d=this['editor']['plugins']['get']('Users')['getUser'](_0x5984a1);if(!_0x34450d)throw new _0x3c4487('track-changes-user-not-found',this);return _0x34450d;}['_getExternalAuthor'](_0x166958){const _0x3ec05b=this['editor']['plugins']['get']('Users'),_0x3c9f3b=_0x1f57d0('external:'+_0x166958),_0x300c5e=_0x3ec05b['getUser'](_0x3c9f3b);return _0x300c5e||_0x3ec05b['addUser']({'id':_0x3c9f3b,'name':_0x166958});}['_createSuggestion'](_0x1ae764,_0x315b39,_0x4c98a9,_0x461782,_0x156743){const _0x354bff=this['_getAuthorFromId'](_0x461782),_0x5d72ea=this['_suggestionFactory']['buildSuggestion'](_0x1ae764,_0x315b39,_0x4c98a9,_0x354bff,_0x156743,_0x33afb7=>{this['_updateSuggestionData'](_0x4c98a9,{'attributes':_0x33afb7});const _0x41dd77=this['getSuggestion'](_0x4c98a9);this['_joinWithAdjacentSuggestions'](new Set([_0x41dd77])),this['_refreshSuggestionsChain'](new Set([_0x41dd77]));});return this['listenTo'](_0x5d72ea,'accept',()=>{this['_updateSuggestionData'](_0x4c98a9,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5d72ea,'discard',()=>{this['_updateSuggestionData'](_0x4c98a9,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4c98a9,_0x5d72ea),this['_suggestionState']['set'](_0x5d72ea,'notReady'),_0x5d72ea;}['_splitMarkerName'](_0x37904f){const _0x233d54=_0x37904f['split'](':');return{'group':_0x233d54[0x0],'type':_0x233d54[0x1],'subType':_0x233d54['length']>=0x5?_0x233d54[0x2]:null,'id':_0x233d54['length']<0x5?_0x233d54[0x2]:_0x233d54[0x3],'authorId':_0x233d54['length']<0x5?_0x233d54[0x3]:_0x233d54[0x4],'markerCount':0x6==_0x233d54['length']?_0x233d54[0x5]:null};}['_breakSuggestionMarker'](_0x3e4bfa,_0x3dd81f,_0x1621ca){const _0x2671f8=_0x3e4bfa['getFirstRange'](),_0x585b7d=_0x2671f8['start'],_0x39fef5=_0x2671f8['end'];this['_setSuggestionRange'](_0x3e4bfa,this['_model']['createRange'](_0x585b7d,_0x3dd81f));const _0x57fd21=_0x12e0b6(),_0x226c12=_0x3e4bfa['creator']['id'],_0x587da3=_0x3e4bfa['type']+(_0x3e4bfa['subType']?':'+_0x3e4bfa['subType']:'');this['_setSuggestionData']({'id':_0x57fd21,'type':_0x587da3,'createdAt':new Date(),'authorId':_0x226c12,'originalSuggestionId':_0x3e4bfa['id'],'attributes':_0x3e4bfa['attributes'],'data':_0x3e4bfa['data']});const _0x2a3de8=this['_getAttributeKey'](_0x3e4bfa);('formatBlock'==_0x3e4bfa['type']||_0x2a3de8&&this['_isBlockAttribute'](_0x2a3de8))&&(_0x1621ca=this['_model']['createPositionBefore'](_0x1621ca['parent'])),this['_addSuggestionMarker'](_0x587da3,_0x57fd21,_0x226c12,this['_model']['createRange'](_0x1621ca,_0x39fef5));}['_findSuggestions'](_0x21efb8,_0x1879a4=null){const _0x2554ee=[],_0x1ab8c0=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x21efb8)||(_0x21efb8=[_0x21efb8]);for(const _0x138d1a of this['getSuggestions']()){if(!_0x138d1a['isInContent'])continue;if(_0x1879a4&&_0x138d1a['type']!=_0x1879a4)continue;let _0x4618f6=!0x1;for(const _0x46c9ff of _0x138d1a['getRanges']()){for(const _0x5011a9 of _0x21efb8){const _0x235c5e=_0x5011a9['start']['isEqual'](_0x46c9ff['end'])||_0x5011a9['end']['isEqual'](_0x46c9ff['start']);if(_0x235c5e||_0x5011a9['getIntersection'](_0x46c9ff)){const _0x36830c=_0x5011a9['containsRange'](_0x46c9ff)&&Vt(this['_model']['schema'],_0x46c9ff['start'],_0x5011a9),_0x3c36b=_0x46c9ff['containsRange'](_0x5011a9)&&Vt(this['_model']['schema'],_0x5011a9['start'],_0x46c9ff);_0x2554ee['push']({'suggestion':_0x138d1a,'meta':{'isOwn':_0x1ab8c0==_0x138d1a['author'],'isNextTo':_0x235c5e,'isInsideObject':_0x36830c,'containsRangeInObject':_0x3c36b}}),_0x4618f6=!0x0;break;}}if(_0x4618f6)break;}}return _0x2554ee;}['_addSuggestionMarker'](_0x1fc44c,_0x2159b3,_0x38f26d,_0x399873,_0x2535b8){this['_model']['change'](_0x17eed9=>{let _0x141ac6='suggestion:'+_0x1fc44c+':'+_0x2159b3+':'+_0x38f26d;_0x2535b8&&(_0x141ac6=_0x141ac6+':'+_0x2535b8),_0x17eed9['addMarker'](_0x141ac6,{'range':_0x399873,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x18eef7){const _0x287d77=_0x18eef7['previous'],_0x33cde0=_0x18eef7['next'];_0x18eef7['previous']=null,_0x18eef7['next']=null,null!=_0x287d77&&_0x287d77['next']==_0x18eef7&&(_0x287d77['next']=_0x33cde0),null!=_0x33cde0&&_0x33cde0['previous']==_0x18eef7&&(_0x33cde0['previous']=_0x287d77),'ready'==this['_suggestionState']['get'](_0x18eef7)&&(this['_suggestionState']['set'](_0x18eef7,'removed'),this['fire']('suggestionUnloaded',_0x18eef7,_0x287d77,_0x33cde0));}['_setSuggestionData'](_0x3c6f3b){const _0x531d4c=_0x3c6f3b['id'],_0x1f1110=this['addSuggestionData'](_0x3c6f3b);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x42cc1b=this['editor']['plugins']['get']('PendingActions'),_0x443ba0=_0x1f1110['hasComments'],_0x52c2c5=_0x1f1110['subType']?_0x1f1110['type']+':'+_0x1f1110['subType']:_0x1f1110['type'],_0x4e8b2b=this['editor']['locale'],_0x542df3=_0x42cc1b['add'](o(_0x4e8b2b,'PENDING_ACTION_SUGGESTION')),_0x3e98de={'id':_0x531d4c,'type':_0x52c2c5,'hasComments':_0x443ba0,'data':_0x3c6f3b['data']||null,'originalSuggestionId':_0x3c6f3b['originalSuggestionId']||null,'attributes':_0x1f1110['attributes']};this['_adapter']['addSuggestion'](_0x3e98de)['then'](_0x1f63b2=>{_0x1f1110['_saved']=!0x0,_0x42cc1b['remove'](_0x542df3),_0x1f63b2&&_0x1f63b2['createdAt']&&(this['_suggestions']['get'](_0x531d4c)['createdAt']=_0x1f63b2['createdAt']);})['catch'](_0x5692fb=>{throw _0x194bc4('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1f1110['discard']();}),_0x1f1110['stopListening'](),this['_suggestions']['delete'](_0x1f1110['id']),this['_suggestionState']['delete'](_0x1f1110),_0x5692fb;});}return _0x1f1110;}['_isBlockAttribute'](_0x16f25e){return this['_blockAttributeKeys']['has'](_0x16f25e);}['_updateSuggestionData'](_0x32f459,_0x2c22ce){const _0xc0e0ae=this['editor']['plugins']['get']('PendingActions'),_0x4a31be=this['getSuggestion'](_0x32f459);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4a31be['_saved']){const _0x31834e=_0xc0e0ae['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x32f459,_0x2c22ce)['then'](()=>{_0xc0e0ae['remove'](_0x31834e);});}else _0x4a31be['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x32f459,_0x2c22ce);});}}['_getSuggestionData'](_0x5ab8bc){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3c4487('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5ab8bc);}['_handleNewSuggestionMarker'](_0x5c9460){const {id:_0x1aca59,type:_0x4a529c,subType:_0x1a4ad3,authorId:_0x2bb46c}=this['_splitMarkerName'](_0x5c9460),_0x1abb8a=this['_suggestions']['get'](_0x1aca59)||this['_createSuggestion'](_0x4a529c,_0x1a4ad3,_0x1aca59,_0x2bb46c,{});switch(this['_checkSuggestionCorrectness'](_0x1abb8a,_0x4a529c,_0x1a4ad3,_0x2bb46c),this['_suggestionState']['get'](_0x1abb8a)){case'notReady':this['_getSuggestionData'](_0x1aca59)['then'](_0x57537a=>{let _0x2722bb=Promise['resolve']();_0x57537a['hasComments']&&(_0x2722bb=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1aca59})),_0x2722bb['then'](()=>{this['addSuggestionData'](_0x57537a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1abb8a,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1aca59,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1abb8a,'ready'),this['fire']('suggestionLoaded',_0x1abb8a);break;case'ready':this['fire']('suggestionChanged',_0x1abb8a);}return _0x1abb8a['addMarkerName'](_0x5c9460),_0x1abb8a;}['_refreshSuggestionsChain'](_0xe32ec6){const _0x3bda3f=Array['from'](_0xe32ec6),_0xc825d8=_0x3bda3f['filter'](_0x30ef5c=>'attribute'==_0x30ef5c['type']);this['_refreshAttributeSuggestionsChain'](_0xc825d8);const _0x3b24f0=_0x3bda3f['filter'](_0x2a3cc2=>!_0x2a3cc2['isMultiRange']&&'attribute'!=_0x2a3cc2['type']),_0x57ca3e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x198f4c=>!_0x198f4c['isMultiRange']&&'attribute'!=_0x198f4c['type']),_0x352fda=_0x57ca3e['filter'](_0x29ef22=>!_0xe32ec6['has'](_0x29ef22)),_0x5e8292=new Map(_0x57ca3e['map'](_0x85c16f=>[_0x85c16f,this['_suggestionFactory']['getSuggestionCallback'](_0x85c16f['type'],_0x85c16f['subType'],'chain')])),_0x4cc650=new Map(_0x57ca3e['map'](_0xe24ef0=>[_0xe24ef0,_0xe24ef0['getFirstRange']()])),_0x2de314=new Set(),_0x279a18=new Set();for(let _0x3ca75a=0x0;_0x3ca75a<_0x3b24f0['length'];_0x3ca75a++)_0x2e9777(_0x3b24f0[_0x3ca75a],_0x3b24f0,_0x3ca75a+0x1);for(let _0x1dfb3d=0x0;_0x1dfb3d<_0x3b24f0['length'];_0x1dfb3d++)_0x2e9777(_0x3b24f0[_0x1dfb3d],_0x352fda,0x0);const _0x4fbeeb=new Set();for(let _0x2018b9=0x0;_0x2018b9<_0x3b24f0['length'];_0x2018b9++){const _0x15e513=_0x3b24f0[_0x2018b9];!_0x279a18['has'](_0x15e513)&&_0x15e513['previous']&&(_0x4fbeeb['add'](_0x15e513['previous']),_0x15e513['previous']['next']===_0x15e513&&(_0x15e513['previous']['next']=null),_0x15e513['previous']=null),!_0x2de314['has'](_0x15e513)&&_0x15e513['next']&&(_0x4fbeeb['add'](_0x15e513['next']),_0x15e513['next']['previous']===_0x15e513&&(_0x15e513['next']['previous']=null),_0x15e513['next']=null);}function _0x2e9777(_0x163d6f,_0x5297f4,_0x23d2ec){for(let _0x347004=_0x23d2ec;_0x347004<_0x5297f4['length'];_0x347004++){const _0x2e5883=_0x28f30c(_0x163d6f,_0x5297f4[_0x347004]);_0x2e5883&&(_0x2e5883[0x0]['next']=_0x2e5883[0x1],_0x2e5883[0x1]['previous']=_0x2e5883[0x0],_0x2de314['add'](_0x2e5883[0x0]),_0x279a18['add'](_0x2e5883[0x1]));}}function _0x28f30c(_0x22e757,_0x411bc){if(_0x22e757['author']['id']!==_0x411bc['author']['id'])return null;const _0x1befca=_0x5e8292['get'](_0x22e757)(_0x22e757,_0x411bc,_0x4cc650['get'](_0x22e757),_0x4cc650['get'](_0x411bc));if(!_0x1befca)return null;return _0x5e8292['get'](_0x411bc)(_0x22e757,_0x411bc,_0x4cc650['get'](_0x22e757),_0x4cc650['get'](_0x411bc))?_0x1befca[0x1]['commentThread']&&_0x1befca[0x1]['commentThread']['length']?null:_0x1befca:null;}_0x4fbeeb['size']&&this['_refreshSuggestionsChain'](_0x4fbeeb);}['_refreshAttributeSuggestionsChain'](_0x3cc2cf){if(0x0==_0x3cc2cf['length'])return;const _0x26a821=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x298d43=>'attribute'==_0x298d43['type']&&_0x298d43['_isDataLoaded']),_0x1ee4c2=[],_0x5e292f=new Map();for(const _0x50ad4f of _0x26a821){const _0x2243c8=_0x1f57d0(_0x50ad4f['attributes']);_0x5e292f['has'](_0x2243c8)||(_0x5e292f['set'](_0x2243c8,_0x1ee4c2['length']),_0x1ee4c2['push']([]));const _0x326bd1=_0x5e292f['get'](_0x2243c8);_0x1ee4c2[_0x326bd1]['push'](_0x50ad4f);}!(function(){_0x1ee4c2['sort']((_0x65d29b,_0x355c0d)=>{const _0x2739ea=_0x65d29b[0x0]['createdAt'],_0x2481ba=_0x355c0d[0x0]['createdAt'];return _0x2739ea==_0x2481ba?_0x65d29b[0x0]['attributes']['groupId']<_0x355c0d[0x0]['attributes']['groupId']?-0x1:0x1:_0x2739ea<_0x2481ba?-0x1:0x1;});for(const _0x58adc7 of _0x1ee4c2)_0x58adc7['sort']((_0x83ab35,_0x3cc693)=>_0x83ab35['id']<_0x3cc693['id']?-0x1:0x1);}());for(let _0x1b1273=0x0;_0x1b1273<_0x1ee4c2['length'];_0x1b1273++){if(0x0==_0x1ee4c2[_0x1b1273]['length'])continue;const _0x91f2c=[];for(let _0x103f86=_0x1b1273+0x1;_0x103f86<_0x1ee4c2['length'];_0x103f86++)0x0!=_0x1ee4c2[_0x103f86]['length']&&_0x215308(_0x1ee4c2[_0x1b1273],_0x1ee4c2[_0x103f86])&&_0x91f2c['push'](_0x103f86);for(const _0x411083 of _0x91f2c)_0x1ee4c2[_0x1b1273]=_0x1ee4c2[_0x1b1273]['concat'](_0x1ee4c2[_0x411083]),_0x1ee4c2[_0x411083]=[];}for(const _0x31b7b4 of _0x1ee4c2)for(let _0x5b824b=0x0;_0x5b824b<_0x31b7b4['length'];_0x5b824b++){const _0x27397c=_0x31b7b4[_0x5b824b+0x1]||null;_0x31b7b4[_0x5b824b]['next']!==_0x27397c&&(_0x31b7b4[_0x5b824b]['next']=_0x27397c);}for(const _0x4ac90c of _0x1ee4c2)for(let _0x56aa9e=0x0;_0x56aa9e<_0x4ac90c['length'];_0x56aa9e++){const _0x454300=_0x4ac90c[_0x56aa9e-0x1]||null;_0x4ac90c[_0x56aa9e]['previous']!==_0x454300&&(_0x4ac90c[_0x56aa9e]['previous']=_0x454300);}function _0x215308(_0x469ebd,_0x44f93f){if(_0x469ebd[0x0]['attributes']['groupId']!==_0x44f93f[0x0]['attributes']['groupId']&&_0x469ebd[0x0]['author']!==_0x44f93f[0x0]['author'])return!0x1;if(!function(_0x23c05d,_0x261a9c){if(!_0x23c05d['hasComments']&&!_0x261a9c['hasComments'])return!0x0;if(_0x23c05d['hasComments']&&_0x261a9c['hasComments'])return!0x1;if(_0x23c05d['hasComments']&&_0x261a9c['createdAt']<_0x23c05d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x261a9c['hasComments']&&_0x23c05d['createdAt']<_0x261a9c['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x469ebd[0x0],_0x44f93f[0x0]))return!0x1;const _0x5cd459=Et(_0x469ebd[0x0]['attributes'],'groupId'),_0x4c1c78=Et(_0x44f93f[0x0]['attributes'],'groupId');if(!_0x42e77d(_0x5cd459,_0x4c1c78))return!0x1;return!!_0x469ebd['every'](_0x4bb337=>_0x44f93f['some'](_0x156b6e=>_0x4bb337['getFirstRange']()['isEqual'](_0x156b6e['getFirstRange']())))&&_0x44f93f['every'](_0x67cdc2=>_0x469ebd['some'](_0x38de28=>_0x67cdc2['getFirstRange']()['isEqual'](_0x38de28['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4c4c04){const _0x50463a=Array['from'](_0x4c4c04),_0xa3219d=this['getSuggestions']({'skipNotAttached':!0x0}),_0x12a51c=_0xa3219d['filter'](_0xec8128=>!_0x4c4c04['has'](_0xec8128)),_0x54aa9d=new Map(_0x50463a['map'](_0x1ece1d=>[_0x1ece1d,this['_suggestionFactory']['getSuggestionCallback'](_0x1ece1d['type'],_0x1ece1d['subType'],'join')])),_0x561813=new Map(_0xa3219d['map'](_0x4bbb77=>[_0x4bbb77,_0x4bbb77['getRanges']()]));for(let _0x1b3e09=0x0;_0x1b3e09<_0x50463a['length'];_0x1b3e09++){if(_0x3d574d(this,_0x50463a[_0x1b3e09],_0x50463a,_0x1b3e09+0x1))return!0x0;}for(let _0x128e79=0x0;_0x128e79<_0x50463a['length'];_0x128e79++){if(_0x3d574d(this,_0x50463a[_0x128e79],_0x12a51c,0x0))return!0x0;}return!0x1;function _0x3d574d(_0x40fda6,_0x589281,_0x5c81e8,_0x420fd9){for(let _0x56386b=_0x420fd9;_0x56386b<_0x5c81e8['length'];_0x56386b++){const _0x586b8b=_0x5c81e8[_0x56386b];if(_0x586b8b['type']!==_0x589281['type']||_0x586b8b['author']['id']!==_0x589281['author']['id']||_0x586b8b['subType']!==_0x589281['subType'])continue;if(!zt(_0x589281,_0x586b8b))continue;if('attribute'==_0x589281['type']&&_0x589281['data']['oldValue']!=_0x586b8b['data']['oldValue'])continue;if('attribute'==_0x589281['type']&&_0x40fda6['_isBlockAttribute'](_0x589281['data']['key']))continue;if('formatBlock'==_0x589281['type']){const _0x19081f=_0x40fda6['editor']['model'],_0x44244b=_0x589281['getContainedElement']();if(_0x44244b&&(_0x19081f['schema']['isObject'](_0x44244b)||_0x19081f['schema']['isLimit'](_0x44244b)))continue;}const _0x28136e=_0x54aa9d['get'](_0x589281),_0x58b6fe=_0x561813['get'](_0x589281),_0x2c426d=_0x561813['get'](_0x586b8b),_0x36be63=_0x589281['commentThread']&&_0x589281['commentThread']['length'],_0x1b6638=_0x586b8b['commentThread']&&_0x586b8b['commentThread']['length'];if(!_0x36be63&&_0x28136e(_0x2c426d,_0x58b6fe))return _0x40fda6['_joinSuggestions'](_0x586b8b,_0x589281),_0x561813['delete'](_0x589281),!0x0;if(!_0x1b6638&&_0x28136e(_0x58b6fe,_0x2c426d))return _0x40fda6['_joinSuggestions'](_0x589281,_0x586b8b),_0x561813['delete'](_0x586b8b),!0x0;}return!0x1;}}['_joinSuggestions'](_0x12aed4,_0x1a0a15){if(_0x12aed4['isMultiRange']){for(const _0x43dc82 of _0x1a0a15['getRanges']())_0x12aed4['addRange'](_0x43dc82);}else{const _0x57a8b8=_0x1a0a15['getFirstRange']()['end'];this['_setSuggestionRange'](_0x12aed4,this['_model']['createRange'](_0x12aed4['getFirstRange']()['start'],_0x57a8b8));}_0x1a0a15['removeMarkers']();}['_getMarkerAnnouncementText'](_0x48203c,_0x141e9d,_0x342693){const _0x2eba5c=_0x48203c['startsWith']('format')||_0x48203c['startsWith']('attribute')?'FORMATTING':_0x48203c['toUpperCase']();return o(this['editor']['locale'],_0x141e9d+'_'+_0x2eba5c+'_SUGGESTION_ANNOUNCEMENT',_0x342693);}['_initAriaMarkerChangeAnnouncements'](){const _0xe15c0=this['editor'];if(!_0xe15c0['ui'])return;const {ariaLiveAnnouncer:_0x56eb77}=_0xe15c0['ui'];_0x54a2c9(this['_model'],({left:_0x4d176c,entered:_0x414dd0})=>{for(const _0x19b7c5 of _0x4d176c){const {group:_0xd95183,type:_0x16cc8a}=this['_splitMarkerName'](_0x19b7c5['name']);if('suggestion'===_0xd95183){_0x56eb77['announce'](this['_getMarkerAnnouncementText'](_0x16cc8a,'LEAVE'));break;}}for(const _0x455820 of _0x414dd0){const {group:_0xaa572b,type:_0x53dd8b}=this['_splitMarkerName'](_0x455820['name']);if('suggestion'===_0xaa572b){_0x56eb77['announce'](this['_getMarkerAnnouncementText'](_0x53dd8b,'ENTER',_0xe7169f(_0x1980b7)));break;}}});}['_processAttributeChanges'](_0x3e69c7){if(this['_recordAttributeSuggestions'])return!0x1;const _0x107080=this['editor'],_0x4a87a0=_0x107080['model']['document']['differ']['getChanges']();if(0x0==_0x4a87a0['length'])return!0x1;const _0x7a9a5=[],_0x3719fa=_0x4a87a0['filter'](_0x561793=>'attribute'==_0x561793['type']),_0x2d39c2=_0x4a87a0['filter'](_0xd157ae=>'insert'==_0xd157ae['type']&&'$text'!=_0xd157ae['name']),_0x30f7eb=_0x4a87a0['filter'](_0x47d0ca=>'remove'==_0x47d0ca['type']&&'$text'!=_0x47d0ca['name']);for(const _0x2d5a19 of _0x3719fa)_0x7a9a5['push']({'key':_0x2d5a19['attributeKey'],'newValue':_0x2d5a19['attributeNewValue'],'oldValue':_0x2d5a19['attributeOldValue'],'range':Jt(_0x2d5a19['range'],_0x107080['model'])});for(const _0x3b85b1 of _0x2d39c2){const _0x2b394e=_0x30f7eb['find'](_0x5cc4af=>_0x5cc4af['position']['isEqual'](_0x3b85b1['position']));_0x2b394e&&_0x7a9a5['push']({'key':m,'newValue':_0x3b85b1['name'],'oldValue':_0x2b394e['name'],'range':_0x107080['model']['createRangeOn'](_0x3b85b1['position']['nodeAfter'])});}return 0x0!=_0x7a9a5['length']&&this['_reduceExistingSuggestions'](_0x3e69c7,_0x7a9a5);}['_processAttributeSuggestions'](_0x10ff04){let _0x27556e=!0x1;const _0x15c0e0=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5b0bf2=>_0x5b0bf2['data']['newRange']&&_0x5b0bf2['name']['startsWith']('suggestion:attribute:'));for(const _0x5c8f24 of _0x15c0e0){const {subType:_0x584d0b,id:_0x532257}=this['_splitMarkerName'](_0x5c8f24['name']),_0x37de6c=_0x584d0b['split']('|')[0x0];for(const _0x1e4bda of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1e4bda['id']!=_0x532257&&'attribute'==_0x1e4bda['type']&&_0x1e4bda['data']&&_0x1e4bda['data']['key']==_0x37de6c&&_0x1e4bda['getFirstRange']()['isIntersecting'](_0x5c8f24['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1e4bda,_0x5c8f24['data']['newRange'],_0x10ff04),_0x27556e=!0x0);}return _0x27556e;}['_recordAttributeChanges'](_0x1722e5){this['_recordAttributeSuggestions']=!0x0,_0x1722e5();}['_isRegisteredAttribute'](_0xfc9068){const _0x23f524=this['_isBlockAttribute'](_0xfc9068),_0x185762=this['_inlineAttributeKeys']['has'](_0xfc9068);return _0x23f524||_0x185762;}['_reduceExistingSuggestions'](_0x189680,_0x204393){if(0x0==_0x204393['length'])return!0x1;let _0x5c7e67=!0x1;for(const _0x5a5aef of _0x204393){const _0x14d913=this['_findSuggestions'](_0x5a5aef['range'],'attribute')['filter'](_0x5abced=>!_0x5abced['meta']['isNextTo'])['map'](_0x5ee1a6=>_0x5ee1a6['suggestion']),_0x28f08f=_0x1f57d0({'newValue':_0x5a5aef['newValue']});_0x14d913['filter'](_0x576f03=>{const [_0x2e1b7f,_0x2969f6]=_0x576f03['subType']['split']('|');return _0x2e1b7f==_0x5a5aef['key']&&_0x2969f6!=_0x28f08f;})['forEach'](_0x55991a=>{this['_reduceSuggestionAttributeRange'](_0x55991a,_0x5a5aef['range'],_0x189680),_0x5c7e67=!0x0;});}return _0x5c7e67;}['_reduceSuggestionAttributeRange'](_0x404011,_0x4f9462,_0x2ebe70){const _0xe439bb=_0x404011['getFirstRange']()['getDifference'](_0x4f9462);0x0!==_0xe439bb['length']?0x1!==_0xe439bb['length']?this['_breakSuggestionMarker'](_0x404011,_0x4f9462['start'],_0x4f9462['end']):this['_setSuggestionRange'](_0x404011,_0xe439bb[0x0]):_0x2ebe70['removeMarker'](_0x404011['getFirstMarker']());}}class Ut{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x34e842){this['_editor']=_0x34e842,this['_model']=_0x34e842['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x233703,_0x36070c,_0x226054,_0x479c34,_0x3cf3c7,_0x5bbf3){return new u(this['_model'],{'type':_0x233703,'subType':_0x36070c,'id':_0x226054,'author':_0x479c34,'creator':_0x479c34,'attributes':_0x3cf3c7,'onAttributesChange':_0x5bbf3,'onAccept':(..._0x2b439e)=>this['getSuggestionCallback'](_0x233703,_0x36070c,'accept')(..._0x2b439e),'onDiscard':(..._0x39fab3)=>this['getSuggestionCallback'](_0x233703,_0x36070c,'discard')(..._0x39fab3)});}['registerCustomCallback'](_0x342f04,_0x4aac89,_0xd162c7,_0x4b6cba){const _0x4a323a=_0x342f04+':'+_0x4aac89+':'+_0xd162c7;this['_customCallbacks']['set'](_0x4a323a,_0x4b6cba);}['getSuggestionCallback'](_0x12c1af,_0x2aebe8,_0x5d02a2){const _0x3fad12=_0x12c1af+':'+_0x2aebe8+':'+_0x5d02a2;return this['_customCallbacks']['get'](_0x3fad12)||this['_defaultCallbacks']['get'](_0x12c1af+':'+_0x5d02a2);}['_registerDefaultCallbacks'](){const _0xb0dc43=()=>!0x1,_0x2da8f1=_0x2a0441=>{_0x2a0441['sort']((_0x1a2e62,_0x39f672)=>_0x1a2e62['start']['isBefore'](_0x39f672['start'])?0x1:-0x1),this['_model']['change'](_0x1c5bff=>{for(const _0x169b45 of _0x2a0441){let _0x1f5394;_0x1f5394=_0x169b45['end']['isAtEnd']&&_0x169b45['end']['parent']==_0x169b45['start']['nodeAfter']?_0x1c5bff['createSelection'](_0x169b45['start']['nodeAfter'],'on'):_0x1c5bff['createSelection'](_0x169b45),this['_model']['deleteContent'](_0x1f5394,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x49838e=(_0x33fe3e,_0x310d15)=>{_0x310d15&&this['_model']['change'](_0x1e5e1b=>{const {commandName:_0x1a92e6,commandParams:_0x3b7b1d=[]}=_0x310d15,_0x465b00=_0x33fe3e['map'](_0x83da99=>(Pt(_0x83da99)&&(_0x83da99=this['_model']['createRange'](_0x83da99['end'])),_0x83da99))['filter'](_0x1cc5b2=>'$graveyard'!==_0x1cc5b2['root']['rootName']);if(_0x465b00['length']<0x1)return;const _0x369b94=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x374d5c=>_0x14dd4f['fromRange'](_0x374d5c));_0x1e5e1b['setSelection'](_0x465b00);for(const _0x1d823e of this['_editor']['commands']['commands']())_0x1d823e['refresh']();_0x3b7b1d['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1a92e6,..._0x3b7b1d);const _0x122925=_0x369b94['filter'](_0x530f4c=>'$graveyard'!=_0x530f4c['root']['rootName']);_0x122925['length']>0x0&&_0x1e5e1b['setSelection'](_0x122925);for(const _0x52c9b0 of _0x369b94)_0x52c9b0['detach']();});},_0xcbf3f2=(_0x4386ce,_0x47be51)=>0x1==_0x4386ce['length']&&0x1==_0x47be51['length']&&_0x4386ce[0x0]['end']['isEqual'](_0x47be51[0x0]['start']),_0x23677d=(_0x39069f,_0xbfc4c5,_0x42777c,_0x1e035b)=>qt(_0x39069f,_0xbfc4c5,_0x42777c,_0x1e035b)?[_0x39069f,_0xbfc4c5]:qt(_0xbfc4c5,_0x39069f,_0x1e035b,_0x42777c)?[_0xbfc4c5,_0x39069f]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xb0dc43),this['_defaultCallbacks']['set']('insertion:discard',_0x2da8f1),this['_defaultCallbacks']['set']('insertion:join',_0xcbf3f2),this['_defaultCallbacks']['set']('insertion:chain',_0x23677d),this['_defaultCallbacks']['set']('deletion:accept',_0x2da8f1),this['_defaultCallbacks']['set']('deletion:discard',_0xb0dc43),this['_defaultCallbacks']['set']('deletion:join',_0xcbf3f2),this['_defaultCallbacks']['set']('deletion:chain',_0x23677d),this['_defaultCallbacks']['set']('formatInline:accept',_0x49838e),this['_defaultCallbacks']['set']('formatInline:discard',_0xb0dc43),this['_defaultCallbacks']['set']('formatInline:join',_0xcbf3f2),this['_defaultCallbacks']['set']('formatInline:chain',_0xb0dc43),this['_defaultCallbacks']['set']('formatBlock:accept',_0x49838e),this['_defaultCallbacks']['set']('formatBlock:discard',_0xb0dc43),this['_defaultCallbacks']['set']('formatBlock:join',_0xcbf3f2),this['_defaultCallbacks']['set']('formatBlock:chain',_0xb0dc43),this['_defaultCallbacks']['set']('attribute:accept',_0xb0dc43),this['_defaultCallbacks']['set']('attribute:discard',(_0x3b0431,_0x331201)=>{if(!_0x331201)return;const _0x2c2439=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x51361f=>{if(_0x331201['key']==m)for(const _0x87ed4e of _0x3b0431){const _0x3fdff3=_0x87ed4e['start']['nodeAfter'],_0x4564fe=_0x331201['oldValue'];_0x51361f['rename'](_0x3fdff3,_0x4564fe);}else{if(_0x2c2439['_isBlockAttribute'](_0x331201['key'])){for(const _0x188287 of _0x3b0431)void 0x0!==_0x331201['oldValue']?_0x51361f['setAttribute'](_0x331201['key'],_0x331201['oldValue'],_0x188287['start']['nodeAfter']):_0x51361f['removeAttribute'](_0x331201['key'],_0x188287['start']['nodeAfter']);}else{for(const _0x314ec0 of _0x3b0431)_0x331201['oldValue']?_0x51361f['setAttribute'](_0x331201['key'],_0x331201['oldValue'],_0x314ec0):_0x51361f['removeAttribute'](_0x331201['key'],_0x314ec0);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0xcbf3f2);}}function Vt(_0x3fc1b2,_0x1f9ffc,_0x28f2de){for(const _0x2fbeb0 of _0x1f9ffc['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2fbeb0['root']==_0x2fbeb0)return!0x1;if(!_0x28f2de['containsItem'](_0x2fbeb0))return!0x1;if(_0x3fc1b2['isObject'](_0x2fbeb0)||_0x3fc1b2['isLimit'](_0x2fbeb0))return!0x0;}return!0x1;}function Pt(_0x15d480){return _0x15d480['end']['parent']==_0x15d480['start']['nodeAfter']&&_0x15d480['end']['isAtStart'];}function Gt(_0x505bbf,_0x4c59b9,_0x53d5f3,_0x11aa2a){const _0x1509a4=_0x1bde25=>!_0x1bde25['item']['is']('$textProxy')&&!_0x11aa2a['isObject'](_0x1bde25['item']),_0x38c64e=_0x505bbf['start']['getLastMatchingPosition'](_0x1509a4),_0x555859=_0x505bbf['end']['getLastMatchingPosition'](_0x1509a4,{'direction':'backward'});return(!_0x505bbf['start']['isEqual'](_0x38c64e)||!_0x505bbf['end']['isEqual'](_0x555859))&&(_0x38c64e['isBefore'](_0x555859)?_0x53d5f3['updateMarker'](_0x4c59b9,{'range':_0x53d5f3['createRange'](_0x38c64e,_0x555859)}):_0x53d5f3['removeMarker'](_0x4c59b9),!0x0);}function Ft(_0x538b20){return _0x1f57d0(_0x538b20);}function Lt(_0x1f8787){const _0x333a90=_0x1f8787['start']['nodeAfter'];return _0x333a90&&_0x333a90['is']('element');}function Jt(_0x45fdc4,_0x39528c){return null==_0x45fdc4['end']['nodeBefore']&&_0x45fdc4['end']['parent']==_0x45fdc4['start']['nodeAfter']?Ht(_0x45fdc4['start']['nodeAfter'],_0x39528c):_0x45fdc4;}function Ht(_0x1f20e9,_0x140abf){const _0x5ab211=_0x140abf['schema']['isObject'](_0x1f20e9)||_0x140abf['schema']['isSelectable'](_0x1f20e9);return _0x140abf['createRange'](_0x140abf['createPositionAt'](_0x1f20e9,'before'),_0x5ab211?_0x140abf['createPositionAfter'](_0x1f20e9):_0x140abf['createPositionAt'](_0x1f20e9,'end'));}function qt(_0x1b9ef5,_0x5319db,_0x5664a0,_0x3a4af7){return!!zt(_0x1b9ef5,_0x5319db)&&_0x5664a0['end']['isEqual'](_0x3a4af7['start']);}function zt(_0x472507,_0x3e1dc2){if(!_0x472507['_isDataLoaded']||!_0x3e1dc2['_isDataLoaded'])return!0x1;const _0xd0f94=new Set(Object['keys'](_0x472507['attributes'])),_0x468484=new Set(Object['keys'](_0x3e1dc2['attributes']));if(_0xd0f94['delete']('groupId'),_0x468484['delete']('groupId'),0x0==_0xd0f94['size']&&0x0==_0x468484['size'])return!0x0;if(_0xd0f94['size']!=_0x468484['size'])return!0x1;const _0x1af45f={..._0x472507['attributes']},_0x151b35={..._0x3e1dc2['attributes']};return delete _0x1af45f['groupId'],delete _0x151b35['groupId'],JSON['stringify'](_0x1af45f)==JSON['stringify'](_0x151b35);}function Kt(_0x16cdeb,_0x5e996a){const _0x15f2bf=Wt(_0x16cdeb['attributes']),_0x546fed=Wt(_0x5e996a);if(!_0x16cdeb['_isDataLoaded'])return!0x1;for(const _0x3a83a1 of Object['keys'](_0x546fed))if(!_0x42e77d(_0x15f2bf[_0x3a83a1],_0x546fed[_0x3a83a1]))return!0x1;return!0x0;}function Wt(_0x4b92b1){const _0x5a0cc4=Object['assign']({},_0x4b92b1);return delete _0x5a0cc4['skipNestingCheck'],delete _0x5a0cc4['tablePasteChainId'],_0x5a0cc4;}class Ce extends/* #__PURE__ -- @preserve */
25
- _0x6fb9b(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x546043,_0x3c5153,_0x3b324b,_0x406669){super(),this['model']=_0x3c5153,this['view']=_0x3b324b,this['commentThreadController']=_0x406669,this['_editor']=_0x546043,this['_acceptCommand']=_0x546043['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x546043['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xa2192a,_0x3d27e8)=>_0xa2192a||_0x3d27e8),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x508820=>_0x508820&&this['_editor']['model']['canEditAt'](_0x3c5153['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x26254b=>_0x26254b&&this['_editor']['model']['canEditAt'](_0x3c5153['getRanges']())),this['_pendingAction']=null,_0x3b324b['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3b324b,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3b324b,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3b324b,'change:isDirty',()=>{_0x3b324b['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 _0x342e3d=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x342e3d);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x19b550{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x567a91,_0x4077b8,_0xde6427,_0x535fa9){super(_0x567a91),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3d12d4(_0x567a91,o(_0x567a91,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4077b8['authoredAt']),this['bind']('authoredAt')['to'](_0x4077b8),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',_0x4077b8,'authoredAt',this,'descriptionParts',(_0x355957,_0x1e5580,_0x326b83)=>{const _0x59f2ae=_0x326b83['map'](_0x1546ba=>ns(_0x1546ba['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x355957-0x1,_0x4077b8['author']['name'],_0x1e5580?_0x535fa9['formatDateTime'](_0x1e5580):'',new DOMParser()['parseFromString'](_0x59f2ae,'text/html')['body']['textContent']]);}),this['focusables']=new _0xd0bff9(),this['focusTracker']=new _0x127950(),this['keystrokes']=new _0x260502(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x658957=>_0x658957['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4077b8,this['_localUser']=_0xde6427,this['_config']=_0x535fa9,_0x535fa9['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x418455(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3553d9}=this['_config'];this['commentsListView']=new _0x3553d9(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',_0x25ba29=>_0x25ba29+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2f32e4,_0x16440d)=>_0x2f32e4||!!_0x16440d);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5f5393}=this['_config'],_0x13d845=new _0x5f5393(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1ad8ca=_0x13d845['commentInputView'];return _0x13d845['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1ad8ca,'value',(_0x5f3401,_0x3c51f5,_0x583e53)=>!!_0x583e53||_0x5f3401&&!_0x3c51f5),_0x1ad8ca['on']('submit',(_0x272e92,_0x443630)=>{this['fire']('addComment',_0x443630),_0x1ad8ca['editor']['setData']('');}),_0x1ad8ca['on']('cancel',()=>this['focus']()),_0x1ad8ca['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x13d845;}}class pe extends as{['suggestionView'];['_descriptionElement'];constructor(_0x5e9955,_0x54cd57,_0x52ab29,_0x50eb93){super(_0x5e9955,_0x54cd57,_0x52ab29,_0x50eb93),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xb98ce4=>_0xb98ce4&&_0xb98ce4[0x0]?_0xb98ce4[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x78c9ee,_0x52bf17)=>{let _0x13fda8='';for(const _0x47613a of _0x78c9ee)_0x13fda8+='<p>'+ns(_0x47613a['content'],_0x47613a['color'])+'</p>';return _0x52bf17?_0x13fda8:_0x5e35a2(_0x13fda8,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x50eb93['SuggestionView'](_0x5e9955,_0x54cd57,{'formatDateTime':_0x50eb93['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 _0x10780c=this['bindTemplate'],_0x3e62e7=[this['suggestionView']];return this['commentsListView']&&_0x3e62e7['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3e62e7['push'](this['commentThreadInputView']),_0x3e62e7['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x10780c['if']('isActive','ck-suggestion-wrapper--active'),_0x10780c['to']('type',_0x2f19d4=>'ck-suggestion-'+_0x2f19d4),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':_0x10780c['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3e62e7};}['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 fe extends _0x19b550{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4cc5dd,_0x1a5ac5,_0x463482){super(_0x4cc5dd),this['_model']=_0x1a5ac5,this['_config']=_0x463482,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1a5ac5),this['acceptButton']=this['_createButton'](o(_0x4cc5dd,'Accept\x20suggestion'),_0x1280c7['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x4cc5dd,'Discard\x20suggestion'),_0x1280c7['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x163e6a(_0x4cc5dd,_0x1a5ac5['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xd0bff9([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x127950(),this['keystrokes']=new _0x260502(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3877cf=>_0x3877cf['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x294547=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x294547['innerHTML']=this['description'],this['on']('change:description',(_0x335dfc,_0x3caa50,_0x2122b4)=>{_0x294547['innerHTML']=_0x2122b4;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x54d6de=this['bindTemplate'],_0x1c5bcf=[{'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':_0x54d6de['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x54d6de['to']('authoredAt',_0x45a481=>this['_config']['formatDateTime'](_0x45a481))}]}]},{'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']&&_0x1c5bcf['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':_0x1c5bcf}]};}['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'](_0x341b1c,_0xc9a0db,_0x15e9fe,_0x55155e,_0xdcc685){const _0xec196c=new _0x3e0fbb(this['locale']);return _0xec196c['set']({'label':_0x341b1c,'icon':_0xc9a0db,'tooltip':!0x0,'tooltipPosition':_0xdcc685}),_0xec196c['extendTemplate']({'attributes':{'class':_0x15e9fe}}),_0xec196c['on']('execute',()=>{this['fire'](_0x55155e,this['_model']['id']);}),_0xec196c;}['_setupKeyboardNavigation'](){const _0x5eaaaf=this['element'];this['keystrokes']['listenTo'](_0x5eaaaf);for(const _0x56b278 of this['focusables'])this['focusTracker']['add'](_0x56b278['element']),this['keystrokes']['listenTo'](_0x56b278['element']);this['keystrokes']['set']('enter',(_0x347bf7,_0x366943)=>{_0x5eaaaf===_0x347bf7['target']&&(this['focusCycler']['focusFirst'](),_0x366943());}),this['keystrokes']['set']('esc',(_0x462893,_0x422094)=>{_0x5eaaaf!==_0x462893['target']&&(this['focus'](),_0x422094());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x32d277{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x485da9,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x48526c){super(_0x48526c),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1425b2=this['editor']['config'];_0x1425b2['define']('trackChanges.SuggestionThreadView',pe),_0x1425b2['define']('trackChanges.SuggestionView',fe),_0x1425b2['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1425b2['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4eb3ec,_0x7746d6){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x11b47a,_0x24012a]of this['_handleControllerBuffer']){const _0x486895=this['_suggestionToController']['has'](_0x11b47a);_0x486895||_0x24012a?_0x486895&&_0x24012a&&this['_destroyController'](_0x11b47a):this['_initializeController'](_0x11b47a);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4eb3ec,_0x7746d6);}['init'](){const _0x226675=this['editor'],_0x11727b=_0x226675['plugins']['get']('TrackChangesEditing'),_0x37c180=_0x226675['plugins']['get']('Annotations'),_0x1d7e0f=_0x226675['plugins']['get']('EditorAnnotations'),_0x5ac451=_0x226675['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1d7e0f['addSourceCollector'](()=>{const _0x345f2b=[];for(const [_0x20ccbe,_0x47f78a]of Array['from'](this['_suggestionToController'])){const _0xd0108b=_0x20ccbe['getAllAdjacentSuggestions'](),_0x86b578=[];for(const _0x2bf0c7 of _0xd0108b){if(!_0x2bf0c7['isInContent'])continue;if(_0x2bf0c7['isMultiRange']){_0x86b578['push'](..._0x2bf0c7['getRanges']());continue;}const _0x44ae79=_0x2bf0c7['getFirstRange']();if(_0x86b578['length']>0x0){const _0x16b843=_0x86b578[0x0]['getJoined'](_0x44ae79);if(_0x16b843){_0x86b578[0x0]=_0x16b843;continue;}}_0x86b578['push'](_0x44ae79);}_0x345f2b['push']([_0x47f78a['view'],_0x86b578]);}return _0x345f2b;}),this['listenTo'](_0x11727b,'suggestionLoaded',(_0x4bc457,_0x4a3ce8)=>{this['listenTo'](_0x4a3ce8,'change:previous',(_0x336678,_0x2d668f,_0x19473d,_0x43d1c8)=>{_0x4a3ce8['isInContent']&&(null==_0x19473d?(this['_updateController'](_0x43d1c8['head']),this['_handleSuggestionControllerDelayed'](_0x4a3ce8,!0x1)):(this['_updateController'](_0x19473d['head']),null==_0x43d1c8&&this['_handleSuggestionControllerDelayed'](_0x4a3ce8,!0x0)));}),null!==_0x4a3ce8['previous']?this['_updateController'](_0x4a3ce8['head']):this['_handleSuggestionControllerDelayed'](_0x4a3ce8,!0x1);}),this['listenTo'](_0x11727b,'suggestionUnloaded',(_0x5ac303,_0x58980f,_0x1a31b5)=>{this['stopListening'](_0x58980f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x58980f),this['_suggestionToController']['has'](_0x58980f)&&this['_destroyController'](_0x58980f),_0x1a31b5&&this['_updateController'](_0x1a31b5['head']);}),this['listenTo'](_0x11727b,'suggestionChanged',(_0x27a5a2,_0x27c59e)=>{this['_updateController'](_0x27c59e);}),this['listenTo'](_0x37c180,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5ac451,'addComment',(_0x5c4b90,{threadId:_0x57227d,isFromAdapter:_0x511bfa})=>{if(_0x511bfa||!_0x11727b['hasSuggestion'](_0x57227d))return;const _0x14a619=_0x11727b['getSuggestion'](_0x57227d);this['_suggestionToController']['get'](_0x14a619)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4f38da=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5f09cd;for(const _0x1ed79d in _0x4f38da){const _0x528734=_0x1ed79d,_0x54da9b=_0x4f38da[_0x528734];if('trackChangesLicenseKeyValid'==_0x54da9b||'trackChangesLicenseKeyInvalid'==_0x54da9b||'trackChangesLicenseKeyExpired'==_0x54da9b||'trackChangesLicenseKeyDomainLimit'==_0x54da9b||'trackChangesLicenseKeyNotAllowed'==_0x54da9b||'trackChangesLicenseKeyEvaluationLimit'==_0x54da9b||'trackChangesLicenseKeyTrialLimit'==_0x54da9b||'trackChangesLicenseKeyUsageLimit'==_0x54da9b){delete _0x4f38da[_0x528734],_0x5f09cd=_0x54da9b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5f09cd&&_0x4f38da['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5f09cd&&_0x4f38da['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5f09cd&&_0x4f38da['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5f09cd&&_0x4f38da['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5f09cd&&_0x4f38da['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x5f09cd&&_0x4f38da['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5f09cd&&_0x4f38da['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x4e32ff=this['editor']['plugins']['get']('Annotations'),_0x530a1f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x279a22=Array['from'](_0x4e32ff['activeAnnotations'],_0x23be5e=>_0x23be5e['innerView'])['filter'](_0x4df129=>this['_viewToController']['has'](_0x4df129)),_0x31ac35=[];for(const _0x1b6343 of _0x279a22){const _0x5a68ea=this['_viewToController']['get'](_0x1b6343)['model']['getAllAdjacentSuggestions']();_0x31ac35['push'](..._0x5a68ea['reduce']((_0x20ee3d,_0x319faa)=>[..._0x20ee3d,..._0x319faa['getMarkerNames']()],[]));}_0x530a1f['activeMarkers']=_0x31ac35;}['_addUIComponentsToFactory'](){const _0x53e4bf=this['editor'],_0x81efaa=_0x53e4bf['locale'],_0x31aee0=o(_0x81efaa,'Track\x20changes'),_0x1d9cc6=new _0x3a7b8e([{'type':'switchbutton','model':new _0x127161({'withText':!0x0,'isToggleable':!0x0,'label':_0x31aee0,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x127161({'withText':!0x0,'label':o(_0x81efaa,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x127161({'withText':!0x0,'label':o(_0x81efaa,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x127161({'withText':!0x0,'label':o(_0x81efaa,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x127161({'withText':!0x0,'label':o(_0x81efaa,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x53e4bf['plugins']['has']('TrackChangesPreview')&&_0x1d9cc6['addMany']([{'type':'separator'},{'type':'button','model':new _0x127161({'withText':!0x0,'label':o(_0x81efaa,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2acbe3 of _0x1d9cc6)if(ke(_0x2acbe3)){const _0x56a7aa=_0x53e4bf['commands']['get'](_0x2acbe3['model']['commandName']);_0x2acbe3['model']['bind']('isOn','isEnabled')['to'](_0x56a7aa,'value','isEnabled');}_0x53e4bf['ui']['componentFactory']['add']('trackChanges',_0x25eadf=>this['_createToolbarButton'](_0x25eadf,_0x1d9cc6,_0x31aee0)),_0x53e4bf['ui']['componentFactory']['add']('menuBar:trackChanges',_0x201e19=>this['_createMenuBarMenu'](_0x201e19,_0x1d9cc6,_0x31aee0));}['_createToolbarButton'](_0x5ea632,_0x449448,_0x1c15b9){const _0x39fbc9=_0x111af9(_0x5ea632,_0x4045c4),_0x4aa18d=this['editor']['commands']['get']('trackChanges');_0x39fbc9['buttonView']['set']({'tooltip':_0x1c15b9,'label':_0x1c15b9,'icon':we}),_0x39fbc9['buttonView']['bind']('isOn')['to'](_0x4aa18d,'value'),_0x39fbc9['buttonView']['on']('execute',()=>{_0x4aa18d['execute'](),this['editor']['editing']['view']['focus']();}),_0x387a00(_0x39fbc9,_0x449448,{'role':'menu'});const _0x2b4e05=[];for(const _0x598687 of _0x449448)ke(_0x598687)&&_0x2b4e05['push'](this['editor']['commands']['get'](_0x598687['model']['commandName']));const _0x58d4d4=_0x39fbc9['buttonView'];return _0x58d4d4['actionView']['unbind']('isEnabled'),_0x58d4d4['arrowView']['unbind']('isEnabled'),_0x58d4d4['actionView']['bind']('isEnabled')['to'](_0x4aa18d,'isEnabled'),_0x58d4d4['arrowView']['bind']('isEnabled')['toMany'](_0x2b4e05,'isEnabled',(..._0x1a4028)=>_0x1a4028['some'](_0x14bd76=>_0x14bd76)),_0x39fbc9['on']('execute',_0x456c45=>{this['editor']['execute'](_0x456c45['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x39fbc9;}['_createMenuBarMenu'](_0x20c0a8,_0x231ada,_0x250842){const _0x21ee00=new _0x544f32(_0x20c0a8),_0x21a7d5=this['editor']['commands']['get']('trackChanges');_0x21ee00['buttonView']['set']({'label':_0x250842,'icon':we});const _0x3ea7aa=new _0x10e9be(_0x20c0a8);for(const _0x52046c of _0x231ada){if('separator'==_0x52046c['type']){_0x3ea7aa['items']['add'](new _0x1b58c6(_0x20c0a8));continue;}const _0x2d308a=new _0x30c9f3(_0x20c0a8,_0x21ee00),_0x3bc495=new _0x28a4cd(_0x20c0a8),_0x15169a=_0x52046c['model'];_0x3bc495['bind'](...Object['keys'](_0x15169a))['to'](_0x15169a),_0x3bc495['delegate']('execute')['to'](_0x21ee00),_0x3bc495['on']('execute',()=>{this['editor']['execute'](_0x15169a['commandName']),this['editor']['editing']['view']['focus']();}),_0x2d308a['children']['add'](_0x3bc495),_0x3ea7aa['items']['add'](_0x2d308a);}return _0x21ee00['bind']('isEnabled')['to'](_0x21a7d5,'isEnabled'),_0x21ee00['panelView']['children']['add'](_0x3ea7aa),_0x21ee00;}['_initializeController'](_0x1b33f8){const _0x3748dd=this['editor'],_0x17646f=_0x3748dd['config'],_0x1b96c7=_0x3748dd['plugins']['get']('Annotations'),_0x4f2767=_0x3748dd['plugins']['get']('CommentsRepository'),_0x2b00a1=_0x3748dd['plugins']['get']('EditorAnnotations'),_0x4f0884=_0x3748dd['plugins']['get'](_0x485da9)['me'],_0x56d4db=_0x17646f['get']('trackChanges')['SuggestionThreadView'],_0x30ae8c=_0x17646f['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x7afce5,CommentThreadInputView:_0x48138a}=_0x3748dd['plugins']['get']('CommentsUI');let _0x21ffe5,_0x99ed33,_0x713152;this['_annotationViews']['has'](_0x1b33f8['id'])?(_0x99ed33=this['_annotationViews']['get'](_0x1b33f8['id']),_0x21ffe5=_0x99ed33['mainView']):(_0x21ffe5=new _0x56d4db(_0x3748dd['locale'],_0x1b33f8,_0x4f0884,{'disableComments':this['_disableComments'],'editorConfig':{..._0x17646f['get']('comments.editorConfig'),'licenseKey':_0x17646f['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x17646f['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x17646f['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x17646f['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4fcd9d(_0x17646f['get']('locale')),'CommentView':_0x17646f['get']('comments')['CommentView'],'CommentsListView':_0x7afce5,'CommentThreadInputView':_0x48138a,'SuggestionView':_0x30ae8c}),_0x21ffe5['suggestionView']['acceptButton']['on']('execute',()=>{_0x3748dd['editing']['view']['focus']();}),_0x21ffe5['suggestionView']['discardButton']['on']('execute',()=>{_0x3748dd['editing']['view']['focus']();}),_0x99ed33=_0x1b96c7['createAnnotationView'](this['editor']['locale'],_0x21ffe5),_0x99ed33['bind']('isDirty')['to'](_0x21ffe5,'isDirty'),_0x99ed33['bind']('length')['to'](_0x21ffe5),_0x99ed33['bind']('type')['to'](_0x21ffe5,'type',_0x470410=>'suggestion-'+_0x470410),_0x21ffe5['on']('escape',()=>{_0x713152['fire']('escape');}),this['_annotationViews']['set'](_0x1b33f8['id'],_0x99ed33));const _0x505103=_0x4f2767['createCommentThreadController'](_0x1b33f8['commentThread'],_0x21ffe5),_0x4bf4fb=new Ce(_0x3748dd,_0x1b33f8,_0x21ffe5,_0x505103),_0x4a78d4=_0x1b33f8['getAllAdjacentSuggestions']()['filter'](_0x2d7215=>_0x2d7215['isInContent']);_0x21ffe5['descriptionParts']=_0x3748dd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4a78d4),this['_suggestionToController']['set'](_0x1b33f8,_0x4bf4fb),this['_viewToController']['set'](_0x21ffe5,_0x4bf4fb),_0x713152=_0x1b96c7['createAnnotation']({'view':_0x99ed33,'target':()=>{const _0x4aa4b0=[],_0x29bae0=_0x1b33f8['getAllAdjacentSuggestions']()['filter'](_0x21e423=>_0x21e423['isInContent']);for(const _0x547d01 of _0x29bae0)_0x4aa4b0['push'](..._0x547d01['getMarkers']());return _0x54bfae(_0x3748dd['editing'],_0x4aa4b0);},'type':()=>'suggestion-'+_0x4bf4fb['view']['type']}),_0x4f2767['_bindAnnotationToEditors'](_0x21ffe5,_0x713152),_0x1b96c7['add'](_0x713152),_0x2b00a1['registerAnnotation'](_0x713152);}['_destroyController'](_0x3fb59d){const _0x11a219=this['editor']['plugins']['get']('CommentsRepository'),_0x6e4543=this['editor']['plugins']['get']('Annotations'),_0x2f5027=this['_suggestionToController']['get'](_0x3fb59d),_0x4daae3=_0x2f5027['view'],_0x335230=_0x6e4543['getByInnerView'](_0x4daae3);_0x11a219['_unbindEditors'](_0x4daae3),_0x335230&&_0x6e4543['remove'](_0x335230),this['_suggestionToController']['delete'](_0x3fb59d),this['_viewToController']['delete'](_0x4daae3),_0x2f5027['destroy']();}['_updateController'](_0x589a99){if(!_0x589a99['isInContent']||!this['_suggestionToController']['has'](_0x589a99))return;const _0x463b75=this['editor']['plugins']['get']('TrackChangesEditing'),_0x260308=this['_suggestionToController']['get'](_0x589a99),_0x40b7d7=_0x589a99['getAllAdjacentSuggestions']();_0x260308['view']['descriptionParts']=_0x463b75['descriptionFactory']['getDescriptions'](_0x40b7d7);}['destroy'](){for(const _0x56112c of this['_suggestionToController']['keys']())this['_destroyController'](_0x56112c);for(const _0x3ed665 of this['_annotationViews']['values']())_0x3ed665['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x1e7823){return'model'in _0x1e7823;}class k extends _0x32d277{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x214503){this['editor']['plugins']['get'](p)['adapter']=_0x214503;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x432269){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x432269);}['getSuggestions']({skipNotAttached:_0x2c3daa=!0x1,toJSON:_0xb8f8cf=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2c3daa,'toJSON':_0xb8f8cf});}['getSuggestion'](_0x16cbad){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x16cbad);}}const w=['Pagination'];class T extends _0x32d277{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x32af8c=this['editor'];if(_0x32af8c['config']['define']('trackChangesData.editorCreator',_0x985f31=>{const _0x58a32f=_0x32af8c['model']['document']['getRootNames']()['reduce']((_0x19ded0,_0x7e8309)=>(_0x19ded0[_0x7e8309]='',_0x19ded0),{});return _0x32af8c['constructor']['create'](_0x58a32f,_0x985f31);}),'function'!=typeof _0x32af8c['config']['get']('trackChangesData')['editorCreator'])throw new _0x3c4487('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4e522f){return N(this['editor'],!0x0,_0x4e522f);}['getDataWithDiscardedSuggestions'](_0x236238){return N(this['editor'],!0x1,_0x236238);}}class D extends _0x32d277{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5022bd){function _0x51c2b6(_0x3e7321){return _0x3e7321['map'](_0x4aef57=>String['fromCharCode'](_0x4aef57))['join']('');}super(_0x5022bd),this['result']='end',_0x5022bd[_0x51c2b6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51c2b6([0x76,0x69,0x65,0x77])][_0x51c2b6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x51c2b6([0x61,0x75,0x74,0x6f]),_0x5022bd[_0x51c2b6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x51c2b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x51c2b6([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x51c2b6([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x51c2b6([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 Fe(_0x3147b3){return void 0x0!==_0x3147b3['getRootsAttributes'];}async function N(_0x4992f2,_0x66cf4,_0x36b686){const _0x490772=_0x218599(_0x4992f2,w);_0x490772['plugins']['push'](p,D),_0x490772['rootsAttributes']=Fe(_0x4992f2)?_0x4992f2['getRootsAttributes']():void 0x0;const _0x48bd6b=document['createDocumentFragment'](),_0x5b154b=_0x4992f2['config']['get']('trackChangesData')['editorCreator'],_0x34023d=await _0x5b154b(_0x490772,()=>function(_0x47275d){const _0x3135b6=document['createElement']('div');return _0x47275d['appendChild'](_0x3135b6),_0x3135b6;}(_0x48bd6b));!function(_0x53933,_0x5a6111){const _0xd90222=_0x53933['model']['document']['getRootNames']()['reduce']((_0x4238d3,_0x7f21a1)=>(_0x4238d3[_0x7f21a1]=_0x53933['data']['get']({'rootName':_0x7f21a1}),_0x4238d3),{}),_0x220460=_0x53933['plugins']['get']('Users')['users']['map'](_0x50a0cc=>({'id':_0x50a0cc['id'],'name':_0x50a0cc['name']})),_0x35d0a0=_0x53933['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x18ecc8=_0x53933['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3273cf=_0x5a6111['plugins']['get']('Users'),_0x9c1f84=_0x5a6111['plugins']['get']('TrackChangesEditing'),_0x52ee17=_0x5a6111['plugins']['get']('CommentsRepository');for(const _0x4ce4ea of _0x52ee17['getCommentThreads']())_0x4ce4ea['remove']();for(const _0x2f6383 of _0x220460)_0x3273cf['getUser'](_0x2f6383['id'])||_0x3273cf['addUser'](_0x2f6383);_0x3273cf['me']||_0x3273cf['useAnonymousUser']();for(const _0x12a1b9 of _0x18ecc8)_0x52ee17['addCommentThread'](_0x12a1b9);for(const _0x3ff0a2 of _0x35d0a0)_0x9c1f84['addSuggestionData'](_0x3ff0a2);_0x5a6111['data']['set'](_0xd90222);}(_0x4992f2,_0x34023d),_0x34023d['execute'](_0x66cf4?'acceptAllSuggestions':'discardAllSuggestions');const _0x3a8268=Fe(_0x34023d)?_0x34023d['getFullData'](_0x36b686):_0x34023d['data']['get'](_0x36b686);return await _0x34023d['destroy'](),_0x3a8268;}class Me extends _0x19b550{['options'];constructor(_0x4ba204,_0x1bee87){super(_0x4ba204),this['options']=_0x1bee87,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'](_0x214fa2,_0x55e49e){if(!this['element'])return;const _0x12d39b=[];for(const [_0x2a071e,_0x1a4ad1]of _0x214fa2){const _0x10bd15=document['createElement']('div');_0x10bd15['setAttribute']('data-ck-root-name',_0x2a071e),_0x10bd15['className']=_0x1a4ad1['classes']+'\x20ck-track-changes-preview__root-container',_0x10bd15['innerHTML']=_0x1a4ad1['content'],_0x12d39b['push'](_0x10bd15);}_0x55e49e(this['element'],_0x12d39b),this['element']['style']['width']='',this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Qt{constructor(_0x1ed033){super(_0x1ed033),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1404d3=this['editor'],_0x48a2b0=_0x1404d3['locale'],_0x329f77=_0x1404d3['plugins']['get']('Dialog');let _0x1291bc;const _0x1c1885=function(_0x492872){const _0x550c7a={};if('editables'in _0x492872['ui']['view']){for(const [_0x4fefbf,_0x2448ff]of Object['entries'](_0x492872['ui']['view']['editables']))_0x550c7a[_0x4fefbf]=_0x2448ff['element'];}else _0x550c7a[_0x492872['model']['document']['getRootNames']()[0x0]]=_0x492872['ui']['view']['editable']['element'];return _0x550c7a;}(_0x1404d3),_0x37e0a4=function(_0x5c3f73){let _0x7285ad=0x0;for(const _0x537bdc of Object['values'](_0x5c3f73))_0x7285ad=Math['max'](_0x7285ad,_0x537bdc['getBoundingClientRect']()['width']);let _0x24e163=0x0;for(const _0x1ecef0 of Object['values'](_0x5c3f73))_0x24e163+=_0x1ecef0['getBoundingClientRect']()['height'];const _0x4f6a2c=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x55e9b5=Math['min'](_0x24e163,_0x4f6a2c);return{'width':_0x7285ad,'height':_0x55e9b5};}(_0x1c1885);_0x329f77['show']({'id':'finalContentPreview','title':o(_0x48a2b0,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x48a2b0,{'dialogRects':_0x37e0a4}),'onHide':()=>{_0x1291bc['detachFromDom']();},'onShow':()=>{_0x1404d3['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4ca59f=>{const _0x464930=this['_standarizeRootsData'](_0x4ca59f,_0x1404d3,_0x1c1885);_0x329f77['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x464930,_0x1404d3['config']['get']('trackChanges.preview.renderFunction'));}),_0x1291bc=new _0x2cf5af(_0x48a2b0,[_0x329f77['view']]),_0x1291bc['attachToDom'](),_0x1291bc['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1404d3['once']('destroy',()=>{_0x1291bc['detachFromDom']();});const _0x42bc3f=_0x329f77['view']['headerView']['class'];_0x329f77['view']['headerView']['class']=_0x42bc3f?_0x42bc3f+'\x20ck-reset_all':'ck-reset_all',_0x329f77['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x329f77['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1b131d=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x27e654=_0x1b131d['previewMode'],_0x2deb4c={};if('$labels'===_0x27e654){for(const _0x3604c2 of _0x1b131d['getMergeFieldsIds']())_0x2deb4c[_0x3604c2]=_0x1b131d['getLabel'](_0x3604c2)||_0x3604c2;}else{const _0x671826='$defaultValues'===_0x27e654?_0x1b131d['getDefaultValues']():_0x1b131d['getDataSetValues'](_0x27e654,!0x0);for(const _0x5445f9 of Object['entries'](_0x671826)){const [_0x3ef151,_0x1170d9]=_0x5445f9;_0x2deb4c[_0x3ef151]=null!==_0x1170d9?_0x1170d9:_0x1b131d['getLabel'](_0x3ef151)||_0x3ef151;}}return{'mergeFieldsData':_0x2deb4c};}['_standarizeRootsData'](_0x23264b,_0x316fc1,_0x297bf6){let _0x20f6ae;if('string'==typeof _0x23264b){const _0x4c31fc=_0x316fc1['model']['document']['getRootNames']()[0x0];_0x20f6ae={[_0x4c31fc]:_0x23264b};}else _0x20f6ae=_0x23264b;const _0x52c224=this['_fixMediaEmbeds'](_0x20f6ae,_0x316fc1),_0x230fa6=function(_0x3d8217,_0x27a751){for(const [_0x3aa661,_0x1b2397]of _0x3d8217)_0x1b2397['classes']=_0x27a751[_0x3aa661]['classList']['value']['replace']('ck-focused','');return _0x3d8217;}(this['_sortRoots'](_0x316fc1)['reduce']((_0xc5440e,_0x4822a7)=>(_0xc5440e['push']([_0x4822a7,{'content':_0x52c224[_0x4822a7],'classes':''}]),_0xc5440e),[]),_0x297bf6);return _0x230fa6;}['_fixMediaEmbeds'](_0x1d0568,_0x48aac3){if(!_0x48aac3['plugins']['has']('MediaEmbedEditing'))return _0x1d0568;const _0x21d3c4=_0x48aac3['plugins']['get']('MediaEmbedEditing');for(const [_0x28e37f,_0x5d071b]of Object['entries'](_0x1d0568)){const _0x120079=document['createElement']('div');_0x120079['innerHTML']=_0x5d071b,(_0x120079['querySelectorAll']('figure.media')['forEach'](_0x9b2bd5=>{const _0x522a0e=_0x9b2bd5['querySelector']('oembed');if(_0x522a0e){const _0x41ef6a=_0x522a0e['getAttribute']('url');if(_0x41ef6a){const _0x8db9f6=_0x21d3c4['registry']['getMediaViewElement'](new _0x2200ff(_0x48aac3['editing']['view']['document']),_0x41ef6a,{'elementName':'','renderForEditingView':!0x0}),_0x57ac86=document['createElement']('div');_0x57ac86['classList']['add']('ck-media__wrapper'),_0x8db9f6['render'](_0x57ac86,_0x48aac3['editing']['view']['domConverter']),_0x522a0e['replaceWith'](_0x57ac86);}}}),_0x1d0568[_0x28e37f]=_0x120079['innerHTML']);}return _0x1d0568;}['_sortRoots'](_0x13437){if(!function(_0x2d1d29){return void 0x0!==_0x2d1d29['getRootsAttributes'];}(_0x13437))return _0x13437['model']['document']['getRootNames']();const _0xc79dd7=[],_0x4e730e=new Map();for(const _0x147388 of _0x13437['model']['document']['getRootNames']()){const _0x224cdf=_0x13437['editing']['view']['getDomRoot'](_0x147388)['getClientRects']()['item'](0x0);_0xc79dd7['push'](_0x147388),_0x4e730e['set'](_0x147388,_0x224cdf);}return _0xc79dd7['sort']((_0x5893f6,_0x58ebbb)=>{const _0x29ec17=_0x4e730e['get'](_0x5893f6),_0x1d5630=_0x4e730e['get'](_0x58ebbb);return _0x29ec17['y']-_0x1d5630['y']||_0x29ec17['x']-_0x1d5630['x'];}),_0xc79dd7;}}class te extends _0x32d277{static get['requires'](){return[T,_0x2e48b0];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x203d3b){super(_0x203d3b),_0x203d3b['commands']['add']('previewFinalContent',new re(this['editor'])),_0x203d3b['config']['define']('trackChanges.preview.renderFunction',(_0x3368f5,_0x512d1b)=>{for(const _0x3483a6 of _0x512d1b)_0x3368f5['appendChild'](_0x3483a6);});}}export{as as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
23
+ import{Command as Qt,Plugin as _0x2bd390,PendingActions as _0x5dcbf1,icons as _0x4eafb5}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1b3384,ObservableMixin as _0x44e880,uid as _0x309c8a,priorities as _0x574764,insertToPriorityArray as _0x264422,logWarning as _0xdb8619,getEnvKeystrokeText as _0xe69207,FocusTracker as _0x4681dd,KeystrokeHandler as _0x374edf,Collection as _0x4e342c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x4deacf,View as _0x4f14f8,ViewCollection as _0x4f4771,FocusCycler as ts,ViewModel as _0x333e03,createDropdown as _0x159ffe,SplitButtonView as _0x474fbc,addListToDropdown as _0xe3cad7,MenuBarMenuView as _0x2a6aa0,MenuBarMenuListView as _0x1d6587,ListSeparatorView as _0x292442,MenuBarMenuListItemView as _0x2e8612,MenuBarMenuListItemButtonView as _0x2462b7,BodyCollection as _0x4bfbcc,Dialog as _0x1f395f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x396d67,hashObject as _0x33d343,surroundingMarkersDetector as _0xda66e0,FOCUS_ANNOTATION_KEYSTROKE as _0x2c88fd,AriaDescriptionView as _0x3d14dc,setupThreadKeyboardNavigation as _0x4cec70,trimHtml as _0x517800,UserView as _0x552601,LateFocusButtonView as _0x5f0eaf,getDateTimeFormatter as _0x565ad9,getAllMarkersDomElementsSorted as _0x398747,sanitizeEditorConfig as _0x3f0e77}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x2ee9c0,LiveRange as _0xfaa3eb,LivePosition as _0x152006,DowncastWriter as _0x2bfc92}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0xe45f10,toWidget as _0x33f2b9}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x7a7cb2,set as _0x5527d,isEqual as _0x5a7cf5,unset as _0x16bf74,omit as Et}from'lodash-es';import{Delete as _0x562238,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x212829,ShiftEnter as _0xf93acd}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0xbd0e57,_0x1c87df){super(_0xbd0e57),this['_enabledCommands']=_0x1c87df,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 _0x3c7f55 of this['editor']['commands']['commands']())_0x3c7f55['affectsData']&&!this['_enabledCommands']['has'](_0x3c7f55)&&_0x3c7f55['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1aa301 of this['editor']['commands']['commands']())_0x1aa301['affectsData']&&!this['_enabledCommands']['has'](_0x1aa301)&&_0x1aa301['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x3114e3,_0x39aa21){super(_0x3114e3),this['_suggestions']=_0x39aa21,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1dbb98){const _0x230c7b=this['_suggestions']['get'](_0x1dbb98);if(!_0x230c7b)throw new _0x1b3384('track-changes-accept-suggestion-not-found',this);const _0x388ece=_0x230c7b['getRanges']();this['editor']['model']['canEditAt'](_0x388ece)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x230c7b);}}class R extends Qt{['_suggestions'];constructor(_0x2912f6,_0x3d0b41){super(_0x2912f6),this['_suggestions']=_0x3d0b41,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3f6d98){const _0x2a5814=this['_suggestions']['get'](_0x3f6d98);if(!_0x2a5814)throw new _0x1b3384('track-changes-discard-suggestion-not-found',this);const _0x4ab470=_0x2a5814['getRanges']();this['editor']['model']['canEditAt'](_0x4ab470)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2a5814);}}function ns(_0x160da9,_0x320d7c){let _0x15d0b2='';return _0x15d0b2+=_0x160da9['split']('*')['map']((_0x339613,_0x59e545)=>_0x59e545%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x339613)+'</span>':nn(_0x339613))['join'](''),_0x320d7c&&(_0x15d0b2+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x320d7c['value']+'\x22\x20title=\x22'+_0x320d7c['title']+'\x22></span>'),_0x15d0b2;}function nn(_0xc9c0a1){const _0xcfaf00=document['createElement']('span');return _0xcfaf00['innerText']=_0xc9c0a1,_0xcfaf00['innerHTML'];}function Xt(_0x419d51){return _0x419d51['sort']((_0x209ebf,_0x17381d)=>'deletion'==_0x209ebf['type']&&'deletion'!=_0x17381d['type']?-0x1:'deletion'!=_0x209ebf['type']&&'deletion'==_0x17381d['type']?0x1:0x0);}function to(_0xcfb123,_0x5ed869){let _0x4ff3cb,_0xf03cbc=0x0;const _0x231d09=[],_0x1c89d6=_0x5ed869['schema'];for(;_0xf03cbc<_0xcfb123['length'];){const _0x196120=_0xcfb123[_0xf03cbc],_0x35f057=_0xcfb123[_0xf03cbc+0x1];_0x4ff3cb||(_0x4ff3cb=_0x5ed869['createPositionBefore'](_0x196120)),on(_0x5ed869,_0x196120,_0x35f057)||(_0x231d09['push'](_0x5ed869['createRange'](_0x4ff3cb,_0x1c89d6['isObject'](_0x196120)?_0x5ed869['createPositionAfter'](_0x196120):_0x5ed869['createPositionAt'](_0x196120,'end'))),_0x4ff3cb=null),_0xf03cbc++;}return _0x231d09;}function on(_0x192ffc,_0x1aed8d,_0x2e56a8){if(!_0x2e56a8)return!0x1;const _0x5674c0=_0x192ffc['createPositionAfter'](_0x1aed8d),_0x4ae9f9=_0x192ffc['createPositionBefore'](_0x2e56a8);return _0x5674c0['isTouching'](_0x4ae9f9);}function Yt(_0x5adc5c,_0x86d76d,_0x4ff48b){for(;_0x4ff48b['length'];){const _0xfd21c5=_0x4ff48b['splice'](0x0,0x64);_0x5adc5c['change'](()=>{for(const _0x137bba of _0xfd21c5)_0x137bba['isInContent']&&_0x86d76d['execute'](_0x137bba['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x138366,_0x7bd26,_0x342446){super(_0x138366),this['_command']=_0x7bd26,this['_suggestions']=_0x342446,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x46cc62=Array['from'](this['_suggestions']['values']())['some'](_0x362169=>_0x362169['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x46cc62;}['execute'](){const _0x35ac13=Xt(Array['from'](this['_suggestions']['values']()));for(const _0x5323ea of _0x35ac13){const _0x181850=_0x5323ea['getRanges']();if(!this['editor']['model']['canEditAt'](_0x181850))return;}Yt(this['editor']['model'],this['_command'],_0x35ac13);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xce31e3,_0x26aa48,_0x40ad1f){super(_0xce31e3),this['_command']=_0x26aa48,this['_suggestions']=_0x40ad1f,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x429de8=this['editor']['model']['document']['selection'],_0x1a1a6b=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1aaf6a,_0x313563){const _0x5a18b3=Array['from'](_0x1aaf6a['getRanges']()),_0x35e98c=new Set();for(const _0x425fe9 of _0x313563)if(_0x425fe9['isInContent']){for(const _0xc70c23 of _0x5a18b3)for(const _0x7ae7eb of _0x425fe9['getRanges']())(_0xc70c23['isIntersecting'](_0x7ae7eb)||_0x1aaf6a['isCollapsed']&&!_0x425fe9['isMultiRange']&&_0x425fe9['next']&&_0x7ae7eb['end']['isTouching'](_0xc70c23['start']))&&_0x35e98c['add'](_0x425fe9);}return _0x35e98c;}(_0x429de8,_0x1a1a6b),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x6a1c1a=Xt(Array['from'](this['_selectedSuggestions']));for(const _0x50f634 of _0x6a1c1a){const _0x1aa946=_0x50f634['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1aa946))return;}Yt(this['editor']['model'],this['_command'],_0x6a1c1a);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x44e880(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x615a8e,_0xb1a36d){super(),this['id']=_0xb1a36d['id'],this['type']=_0xb1a36d['type'],this['subType']=_0xb1a36d['subType']||null,this['author']=_0xb1a36d['author'],this['creator']=_0xb1a36d['creator']||_0xb1a36d['author'],this['isExternal']=Boolean(_0xb1a36d['attributes']&&_0xb1a36d['attributes']['@external']),this['data']=null,this['_model']=_0x615a8e,this['_onAccept']=_0xb1a36d['onAccept'],this['_onDiscard']=_0xb1a36d['onDiscard'],this['_onAttributesChange']=_0xb1a36d['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xb1a36d['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 _0x56df9d=this;for(;_0x56df9d['previous'];)_0x56df9d=_0x56df9d['previous'];return _0x56df9d;}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'](_0x26a686){this['_markerNames']['add'](_0x26a686);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2babbd=>this['_model']['markers']['get'](_0x2babbd))['filter'](_0x52d258=>_0x52d258);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x29ac54=>{for(const _0x217586 of this['getMarkers']())_0x29ac54['removeMarker'](_0x217586);}),this['_markerNames']['clear']();}['removeMarker'](_0x48cdf8){this['_model']['change'](_0x26d06e=>{_0x26d06e['removeMarker'](_0x48cdf8);}),this['_markerNames']['delete'](_0x48cdf8);}['addRange'](_0x3fdc0b){const _0x25f6f8='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x25f6f8),this['_model']['change'](_0xa061dc=>{_0xa061dc['addMarker'](_0x25f6f8,{'range':_0x3fdc0b,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0xe88f6f){for(const _0xd4df67 of this['getRanges']())if(_0xd4df67['isIntersecting'](_0xe88f6f))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x342314=>_0x342314['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x46261a,_0x29068f)=>[..._0x46261a,..._0x29068f['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x13719d=this['getRanges']();if(0x1!=_0x13719d['length'])return null;const _0x41c1ab=_0x13719d[0x0],_0x50f592=_0x41c1ab['start']['nodeAfter'],_0x3b2465=_0x41c1ab['end']['nodeBefore'];return _0x50f592 instanceof _0x2ee9c0?_0x50f592!=_0x3b2465?null:_0x50f592: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 _0x28613c=[];let _0x2e6062=this['head'];for(;_0x2e6062;)_0x28613c['push'](_0x2e6062),_0x2e6062=_0x2e6062['next'];return _0x28613c;}['setAttribute'](_0xf6fdb5,_0x212d80){const _0x3bf6b0=_0x7a7cb2(this['attributes']);_0x5527d(_0x3bf6b0,_0xf6fdb5,_0x212d80),_0x5a7cf5(_0x3bf6b0,this['attributes'])||(this['attributes']=_0x3bf6b0,this['_onAttributesChange'](_0x3bf6b0));}['removeAttribute'](_0x21cc1d){const _0x1b30f9=_0x7a7cb2(this['attributes']);_0x16bf74(_0x1b30f9,_0x21cc1d),_0x5a7cf5(_0x1b30f9,this['attributes'])||(this['attributes']=_0x1b30f9,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 _0x309c8a()['substr'](0x1,0x5);}}function o(_0x39b192,_0x13c471,_0x5cee1b){const _0x2e79e1=_0x39b192['t'],t=_0x39b192['t'];switch(_0x13c471){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',_0x5cee1b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5cee1b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5cee1b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5cee1b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5cee1b);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',_0x5cee1b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5cee1b);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',_0x5cee1b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5cee1b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5cee1b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5cee1b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5cee1b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5cee1b);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5cee1b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5cee1b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5cee1b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5cee1b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5cee1b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5cee1b);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5cee1b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5cee1b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5cee1b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5cee1b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5cee1b);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'},_0x5cee1b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5cee1b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5cee1b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5cee1b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5cee1b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5cee1b);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'},_0x5cee1b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5cee1b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5cee1b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5cee1b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5cee1b);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'},_0x5cee1b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5cee1b);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'},_0x5cee1b);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x5cee1b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5cee1b);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'},_0x5cee1b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5cee1b);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'},_0x5cee1b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5cee1b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5cee1b);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'},_0x5cee1b);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5cee1b);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 _0x2e79e1({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5cee1b);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2e79e1({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5cee1b);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5cee1b);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'},_0x5cee1b);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'},_0x5cee1b);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'},_0x5cee1b);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x13c471;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x411d04,_0x506bc1){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x411d04,this['_locale']=_0x506bc1;}['getDescriptions'](_0x8bb661){const _0x58f019=[],_0x4597eb=new Set(),_0x81b03d=new Set();for(let _0x15c366=0x0;_0x15c366<_0x8bb661['length'];_0x15c366++){const _0xee5c8=_0x8bb661[_0x15c366];if(!_0xee5c8['isInContent'])continue;const _0x5a5d6f=this['_handleCustomCallbackDescription'](_0xee5c8);if(_0x5a5d6f){if(null!=_0xee5c8['subType']){if(_0x4597eb['has'](_0xee5c8['subType']))continue;_0x4597eb['add'](_0xee5c8['subType']);}_0x58f019['push'](_0x5a5d6f);}else{if('attribute'!=_0xee5c8['type'])'insertion'!=_0xee5c8['type']&&'deletion'!=_0xee5c8['type']||this['_handleInsertRemoveSuggestionDescription'](_0x58f019,_0xee5c8,_0x8bb661[_0x15c366+0x1]);else{const _0xe5f5b9=_0xee5c8['data']['key'];if(_0x81b03d['has'](_0xe5f5b9))continue;_0x81b03d['add'](_0xee5c8['data']['key']),_0xe5f5b9==m?this['_handleRenameSuggestionDescription'](_0x58f019,_0xee5c8):this['_handleAttributeSuggestionDescription'](_0x58f019,_0xee5c8);}}}return this['_resolveDescriptionItems'](_0x58f019);}['registerDescriptionCallback'](_0x4a51dd){this['_customCallbacks']['push'](_0x4a51dd);}['registerElementLabel'](_0x428c5c,_0x1ef60b,_0x37640c=_0x574764['normal']){'function'==typeof _0x428c5c?_0x264422(this['_itemLabelsCallbacks'],{'matchingCallback':_0x428c5c,'label':_0x1ef60b,'priority':_0x37640c}):this['_itemLabels']['set'](_0x428c5c,_0x1ef60b);}['registerAttributeLabel'](_0x44b430,_0x1090b8){this['_attributeLabels']['set'](_0x44b430,_0x1090b8);}['getItemLabel'](_0x5901f8,_0x13bbec=0x1){let _0x6676b2;for(const _0x4f5356 of this['_itemLabelsCallbacks'])if(_0x4f5356['matchingCallback'](_0x5901f8)){_0x6676b2=_0x4f5356['label'];break;}return _0x6676b2||(_0x6676b2=this['_itemLabels']['get'](_0x5901f8['name'])),_0x6676b2?_0x6676b2(_0x13bbec):0x1!==_0x13bbec?_0x13bbec+'\x20'+_0x5901f8['name']+'s':''+_0x5901f8['name'];}['_addDescriptionItems'](_0xddccd2,_0x1c0a13){const _0x5cdf27=_0x1c0a13['getFirstRange']()['getWalker'](),_0xfe6db1='insertion'==_0x1c0a13['type']?'add':'remove';for(const _0xd8d953 of _0x5cdf27){const _0x38de7f=_0xd8d953['item'],_0x338c7c=_0xddccd2[_0xddccd2['length']-0x1];if(_0x38de7f['is']('$textProxy'))_0x338c7c&&_0x338c7c['type']['indexOf']('Container')>-0x1&&_0xddccd2['pop'](),_0x338c7c&&'text'==_0x338c7c['type']?_0x338c7c[_0xfe6db1]+=_0x38de7f['data']:_0xddccd2['push']({'type':'text','add':'add'==_0xfe6db1?_0x38de7f['data']:'','remove':'remove'==_0xfe6db1?_0x38de7f['data']:''});else{if(this['_schema']['isObject'](_0x38de7f)){const _0x17b3df=_0x38de7f;if(_0x338c7c&&_0x338c7c['type']['indexOf']('Container')>-0x1&&_0xddccd2['pop'](),'elementEnd'==_0xd8d953['type'])continue;_0x338c7c&&_0x338c7c['type']==_0xfe6db1+'Object'&&_0x338c7c['element']['name']==_0x17b3df['name']?_0x338c7c['quantity']++:_0xddccd2['push']({'type':_0xfe6db1+'Object','element':_0x17b3df,'quantity':0x1}),_0x5cdf27['skip'](_0x4665d3=>!('elementEnd'==_0x4665d3['type']&&_0x4665d3['item']==_0x38de7f));}else{if(this['_schema']['checkChild'](_0x38de7f,'$text')||_0x38de7f['is']('element','softBreak')){const _0x4a27d3=_0x38de7f;if('add'==_0xfe6db1&&'elementStart'==_0xd8d953['type']||'remove'==_0xfe6db1&&'elementEnd'==_0xd8d953['type'])continue;if(_0x338c7c&&-0x1==_0x338c7c['type']['indexOf']('Container')){'text'==_0x338c7c['type']&&(_0x338c7c[_0xfe6db1]+='\x0a');continue;}let _0x3c445b;if(_0x3c445b='add'==_0xfe6db1?_0x4a27d3['nextSibling']&&!this['_schema']['isObject'](_0x4a27d3['nextSibling'])?_0x4a27d3['nextSibling']:null:_0x4a27d3['previousSibling']&&!this['_schema']['isObject'](_0x4a27d3['previousSibling'])?_0x4a27d3['previousSibling']:null,_0x4a27d3['isEmpty']||_0x3c445b&&_0x3c445b['isEmpty']){const _0x55f7e7=_0x3c445b&&_0x3c445b['isEmpty']?_0x3c445b:_0x4a27d3;_0x338c7c&&_0x338c7c['type']==_0xfe6db1+'EmptyContainer'&&_0x338c7c['element']['name']==_0x55f7e7['name']?_0x338c7c['quantity']++:_0xddccd2['push']({'type':_0xfe6db1+'EmptyContainer','element':_0x55f7e7,'quantity':0x1});}else _0xddccd2['push']({'type':_0xfe6db1+'Container','element':_0x4a27d3});}}}}}['_resolveDescriptionItems'](_0x24a035){const _0x1f5d99=this['_locale'],_0x15f2f7=[],_0x31606a=[],_0x3e5349=[];for(const _0x1b324d of _0x24a035)switch(_0x1b324d['type']){case'text':if(_0x1b324d['add']=_0x1b324d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1b324d['remove']=_0x1b324d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1b324d['add']&&''!=_0x1b324d['remove']){_0x15f2f7['push']({'type':'replace','content':o(_0x1f5d99,'REPLACE_TEXT',['\x22'+_0x1b324d['remove']+'\x22','\x22'+_0x1b324d['add']+'\x22'])});continue;}if(null!=_0x1b324d['add']['match'](/^ +$/)){_0x15f2f7['push']({'type':'insertion','content':o(_0x1f5d99,'*Insert:*\x20%0',o(_0x1f5d99,'ELEMENT_SPACE',_0x1b324d['add']['length']))});continue;}if(null!=_0x1b324d['remove']['match'](/^ +$/)){_0x15f2f7['push']({'type':'deletion','content':o(_0x1f5d99,'*Remove:*\x20%0',o(_0x1f5d99,'ELEMENT_SPACE',_0x1b324d['remove']['length']))});continue;}if(''!=_0x1b324d['add']){_0x15f2f7['push']({'type':'insertion','content':o(_0x1f5d99,'*Insert:*\x20%0','\x22'+_0x1b324d['add']+'\x22')});continue;}_0x15f2f7['push']({'type':'deletion','content':o(_0x1f5d99,'*Remove:*\x20%0','\x22'+_0x1b324d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x15f2f7['push']({'type':'insertion','content':o(_0x1f5d99,'*Insert:*\x20%0',this['getItemLabel'](_0x1b324d['element'],_0x1b324d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x15f2f7['push']({'type':'deletion','content':o(_0x1f5d99,'*Remove:*\x20%0',this['getItemLabel'](_0x1b324d['element'],_0x1b324d['quantity']))});continue;case'addContainer':_0x15f2f7['push']({'type':'insertion','content':o(_0x1f5d99,'*Split:*\x20%0',this['getItemLabel'](_0x1b324d['element'],_0x1b324d['quantity']))});continue;case'removeContainer':_0x15f2f7['push']({'type':'deletion','content':o(_0x1f5d99,'*Merge:*\x20%0',this['getItemLabel'](_0x1b324d['element'],_0x1b324d['quantity']))});continue;case'addFormat':_0x31606a['push'](_0x1b324d['key']);continue;case'removeFormat':_0x3e5349['push'](_0x1b324d['key']);continue;default:_0x15f2f7['push'](_0x1b324d);}if(_0x31606a['length']){const _0x5e4deb=_0x31606a['map'](_0x399516=>this['_attributeLabels']['has'](_0x399516)?this['_attributeLabels']['get'](_0x399516):_0x399516)['join'](',\x20');_0x15f2f7['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x5e4deb)});}if(_0x3e5349['length']){const _0x4c0a48=_0x3e5349['map'](_0x47f1d1=>this['_attributeLabels']['has'](_0x47f1d1)?this['_attributeLabels']['get'](_0x47f1d1):_0x47f1d1)['join'](',\x20');_0x15f2f7['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4c0a48)});}return _0x15f2f7;}['_handleCustomCallbackDescription'](_0xe0ffc5){for(const _0x1e50ba of this['_customCallbacks']){const _0x3819a9=_0x1e50ba(_0xe0ffc5);if(_0x3819a9&&'type'in _0x3819a9)return _0x3819a9;}}['_handleAttributeSuggestionDescription'](_0x51e4e7,_0x1ffa63){const _0x2a31bd=_0x1ffa63['data'],_0x37c6bf=void 0x0===_0x2a31bd['newValue']?'removeFormat':'addFormat';_0x51e4e7['push']({'type':_0x37c6bf,'key':_0x2a31bd['key']});}['_handleRenameSuggestionDescription'](_0x2bde52,_0xed98c2){_0x2bde52['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xed98c2['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1717a2,_0x5f23a4,_0x3f06f6){if(this['_addDescriptionItems'](_0x1717a2,_0x5f23a4),_0x3f06f6&&_0x3f06f6['getFirstRange']()&&!_0x5f23a4['getFirstRange']()['end']['isEqual'](_0x3f06f6['getFirstRange']()['start'])){const _0x49879a=_0x1717a2[_0x1717a2['length']-0x1],_0x1f95c8='insertion'==_0x5f23a4['type']?'add':'remove';_0x49879a&&'text'==_0x49879a['type']&&(_0x49879a[_0x1f95c8]+='\x0a');}}}class U extends _0x2bd390{['afterInit'](){const _0x7a4ead=this['editor'],_0x19434b=_0x7a4ead['plugins']['get']('TrackChangesEditing');_0x7a4ead['commands']['get']('showAIAssistant')&&_0x19434b['enableCommand']('showAIAssistant');}}class V extends _0x2bd390{['afterInit'](){const _0x300438=this['editor'],_0x1fbe55=_0x300438['locale'];if(!_0x300438['plugins']['has']('AlignmentEditing'))return;const _0x3f23f5=_0x300438['plugins']['get']('TrackChangesEditing');_0x3f23f5['enableDefaultAttributesIntegration']('alignment'),_0x3f23f5['registerBlockAttribute']('alignment'),_0x3f23f5['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1fbe55,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32f4dc=this['editor'],_0xea28a9=_0x32f4dc['locale'];_0x32f4dc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x565e23=>{if('formatBlock'!=_0x565e23['type'])return;const {data:_0x177706}=_0x565e23;if(_0x177706&&'alignment'==_0x177706['commandName']){const _0x390908=_0x177706['commandParams'][0x0]['value'];return{'type':'format','content':o(_0xea28a9,'*Format:*\x20%0',function(_0x1b3375){switch(_0x1b3375){case'left':return o(_0xea28a9,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0xea28a9,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0xea28a9,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0xea28a9,'FORMAT_JUSTIFY_TEXT');}}(_0x390908))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x2bd390{['afterInit'](){const _0x347cd8=this['editor'],_0x5d9586=_0x347cd8['plugins']['get']('TrackChangesEditing'),_0x22c73b=_0x347cd8['locale'];for(const _0x5c164b of ti){if(!_0x347cd8['plugins']['has'](_0x5c164b))continue;const _0x31f768=_0x5c164b['slice'](0x0,-0x7)['toLowerCase'](),_0x24ed3f='FORMAT_'+_0x31f768['toUpperCase']();_0x5d9586['enableDefaultAttributesIntegration'](_0x31f768),_0x5d9586['registerInlineAttribute'](_0x31f768),_0x5d9586['descriptionFactory']['registerAttributeLabel'](_0x31f768,o(_0x22c73b,_0x24ed3f));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2fda9e=this['editor'],_0x4dfacb=_0x2fda9e['locale'],_0x123475=_0x2fda9e['plugins']['get']('TrackChangesEditing');function _0x12b4e2(_0x2d37a0,_0x52b101){_0x123475['descriptionFactory']['registerDescriptionCallback'](_0x4871dc=>{if('formatInline'!=_0x4871dc['type'])return;const {data:_0x1933a1}=_0x4871dc;return _0x1933a1&&_0x1933a1['commandName']===_0x2d37a0?_0x1933a1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4dfacb,'*Format:*\x20%0',_0x52b101)}:{'type':'format','content':o(_0x4dfacb,'*Remove\x20format:*\x20%0',_0x52b101)}:void 0x0;});}_0x12b4e2('bold',o(_0x4dfacb,'FORMAT_BOLD')),_0x12b4e2('italic',o(_0x4dfacb,'FORMAT_ITALIC')),_0x12b4e2('underline',o(_0x4dfacb,'FORMAT_UNDERLINE')),_0x12b4e2('code',o(_0x4dfacb,'FORMAT_CODE')),_0x12b4e2('strikethrough',o(_0x4dfacb,'FORMAT_STRIKETHROUGH')),_0x12b4e2('subscript',o(_0x4dfacb,'FORMAT_SUBSCRIPT')),_0x12b4e2('superscript',o(_0x4dfacb,'FORMAT_SUPERSCRIPT'));}}class F extends _0x2bd390{['afterInit'](){const _0x39a256=this['editor'],_0x538d0a=_0x39a256['locale'];if(!_0x39a256['plugins']['has']('BlockQuoteEditing'))return;const _0x251b39=_0x39a256['plugins']['get']('TrackChangesEditing'),_0x550e2b=this['editor']['commands']['get']('blockQuote');_0x251b39['enableCommand']('blockQuote',(_0x2f543f,_0x47e2fb={})=>{const _0x2b26fa=this['editor']['model']['document']['selection'],_0x2a392a=_0x47e2fb&&void 0x0!==_0x47e2fb['forceValue']?_0x47e2fb['forceValue']:!_0x550e2b['value'];let _0x5152e0=[];if(_0x2a392a){const _0x1d7913=Array['from'](_0x2b26fa['getSelectedBlocks']())['filter'](_0x3a8435=>oo(_0x3a8435)||function(_0x464ea9,_0x4bd3d1){const _0x5c1bcf=_0x4bd3d1['checkChild'](_0x464ea9['parent'],'blockQuote'),_0x3c4a83=_0x4bd3d1['checkChild'](['$root','blockQuote'],_0x464ea9);return _0x5c1bcf&&_0x3c4a83;}(_0x3a8435,this['editor']['model']['schema']));_0x5152e0=to(_0x1d7913,_0x39a256['model']);}else{const _0x3bc741=Array['from'](_0x2b26fa['getSelectedBlocks']())['filter'](_0x349b6c=>oo(_0x349b6c));_0x5152e0=to(_0x3bc741,_0x39a256['model']);}_0x39a256['model']['change'](()=>{for(const _0x5126b4 of _0x5152e0)_0x251b39['markBlockFormat'](_0x5126b4,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2a392a}]});});}),_0x251b39['descriptionFactory']['registerDescriptionCallback'](_0x4141ce=>{const {data:_0x1f98a3}=_0x4141ce;if(_0x1f98a3&&'blockQuote'==_0x1f98a3['commandName']){const _0x4741e2=o(_0x538d0a,'ELEMENT_BLOCK_QUOTE');return _0x1f98a3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x538d0a,'*Set\x20format:*\x20%0',_0x4741e2)}:{'type':'format','content':o(_0x538d0a,'*Remove\x20format:*\x20%0',_0x4741e2)};}});}}function oo(_0x8a753a){return'blockQuote'==_0x8a753a['parent']['name'];}class L extends _0x2bd390{['afterInit'](){const _0x8b8bfe=this['editor'],_0xd6351e=_0x8b8bfe['locale'],_0x426551=_0x8b8bfe['plugins']['get']('TrackChangesEditing');_0x8b8bfe['plugins']['has']('BookmarkEditing')&&(_0x426551['enableCommand']('insertBookmark'),_0x426551['enableDefaultAttributesIntegration']('updateBookmark'),_0x426551['registerBlockAttribute']('bookmarkId'),_0x426551['descriptionFactory']['registerDescriptionCallback'](_0x1c7f4b=>{if('insertion'!=_0x1c7f4b['type']&&'deletion'!=_0x1c7f4b['type']&&'attribute'!=_0x1c7f4b['type'])return;const _0x4e1fbc=_0x1c7f4b['getContainedElement']();if(null==_0x4e1fbc)return;if(!_0x4e1fbc['is']('element','bookmark'))return;const _0x1d45af=_0x4e1fbc['getAttribute']('bookmarkId');if('insertion'==_0x1c7f4b['type'])return{'type':'insertion','content':o(_0xd6351e,'*Insert:*\x20%0','\x22'+_0x1d45af+'\x22\x20'+o(_0xd6351e,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1c7f4b['type'])return{'type':'deletion','content':o(_0xd6351e,'*Remove:*\x20%0','\x22'+_0x1d45af+'\x22\x20'+o(_0xd6351e,'ELEMENT_BOOKMARK'))};const {data:_0x21cdea}=_0x1c7f4b;if(!_0x21cdea||'bookmarkId'!=_0x21cdea['key'])return;return{'type':'format','content':o(_0xd6351e,'*Set\x20bookmark:*\x20%0','\x22'+_0x21cdea['newValue']+'\x22')};}));}}class J extends _0x2bd390{['afterInit'](){const _0x5255c0=this['editor'];_0x5255c0['plugins']['has']('CaseChange')&&(_0x5255c0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5255c0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5255c0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x2bd390{['afterInit'](){const _0x2d2b5a=this['editor'];_0x2d2b5a['commands']['get']('ckbox')&&_0x2d2b5a['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x2bd390{['afterInit'](){const _0x279224=this['editor'];if(!_0x279224['plugins']['has']('CodeBlock'))return;const _0x49f00b=_0x279224['plugins']['get']('TrackChangesEditing'),_0x2e36bc=_0x279224['locale'],_0x1ec889=_0x279224['config']['get']('codeBlock')['languages'],_0x4dc9db=_0x279224['commands']['get']('codeBlock');_0x49f00b['enableCommand']('indentCodeBlock'),_0x49f00b['enableCommand']('outdentCodeBlock'),_0x49f00b['enableCommand']('codeBlock',(_0x5246d4,_0x497bcb={})=>{const _0x20d25d=_0x279224['model'],_0x4dd2d5=_0x279224['model']['document']['selection'],_0x13c14e=_0x497bcb&&void 0x0!==_0x497bcb['forceValue']?_0x497bcb['forceValue']:!_0x4dc9db['value'];let _0x545bae;_0x497bcb['language']||(_0x497bcb['language']=_0x1ec889[0x0]['language']),_0x545bae=_0x13c14e?Array['from'](_0x4dd2d5['getSelectedBlocks']())['filter'](_0x50b509=>eo(_0x50b509)||function(_0x2fc17c,_0x2e8807){if(_0x2fc17c['is']('rootElement')||_0x2e8807['isLimit'](_0x2fc17c))return!0x1;return _0x2e8807['checkChild'](_0x2fc17c['parent'],'codeBlock');}(_0x50b509,_0x20d25d['schema'])):Array['from'](_0x4dd2d5['getSelectedBlocks']())['filter'](_0x2a0c33=>eo(_0x2a0c33));const _0x207a02=to(_0x545bae,_0x20d25d);_0x20d25d['change'](()=>{for(const _0x1b69b1 of _0x207a02)_0x49f00b['markBlockFormat'](_0x1b69b1,{'commandName':'codeBlock','commandParams':[{..._0x497bcb,'forceValue':_0x13c14e}],'formatGroupId':'blockName'});});}),(_0x49f00b['descriptionFactory']['registerElementLabel']('codeBlock',_0x6529ca=>o(_0x2e36bc,'ELEMENT_CODE_BLOCK',_0x6529ca)),_0x49f00b['descriptionFactory']['registerDescriptionCallback'](_0x4834e5=>{if('formatBlock'!=_0x4834e5['type'])return;const _0xc69cfa=_0x2e36bc['t'],{data:_0x16ebe4}=_0x4834e5;if(!_0x16ebe4||'codeBlock'!=_0x16ebe4['commandName'])return;const _0x5b225e=_0x16ebe4['commandParams'][0x0]['language'],_0x40c520=_0xc69cfa(_0x1ec889['find'](_0xe7b53d=>_0xe7b53d['language']===_0x5b225e)['label'])['toLowerCase']();return _0x16ebe4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2e36bc,'*Set\x20format:*\x20%0',o(_0x2e36bc,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x40c520+')')}:{'type':'format','content':o(_0x2e36bc,'*Remove\x20format:*\x20%0',o(_0x2e36bc,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x25569b){return'codeBlock'==_0x25569b['name'];}class z extends _0x2bd390{['afterInit'](){const _0x4a789c=this['editor'];if(!_0x4a789c['plugins']['has']('CommentsEditing'))return;_0x4a789c['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x23e815,_0xef1a7f,_0x17686f){const _0x33a1d1=[];for(const _0x234d4b of _0xef1a7f['getItems']())_0x234d4b['hasAttribute'](_0x23e815)&&_0x33a1d1['push'](_0x17686f['createRangeOn'](_0x234d4b));return _0x33a1d1;}function De(_0x29615c,_0x2228a8,{showActiveMarker:_0x6ba690=!0x0}={}){const _0x508c99=_0x29615c['plugins']['get']('TrackChangesEditing');return(_0x44e4ab,_0x125ccc,_0x2a9c84)=>{if(!_0x2a9c84['consumable']['test'](_0x125ccc['markerRange'],_0x44e4ab['name']))return;const _0x3cbfc2=_0x125ccc['markerRange']['getWalker'](),_0x2fab07=_0x125ccc['markerRange']['start'],_0x10f2a5=_0x29615c['model']['schema'];let _0x10c5b0=null,_0x4f9c2a=null,_0x121bd6=!0x1,_0x468193=!0x1;for(const _0xcc6698 of _0x3cbfc2){const _0x1ba6d9=_0xcc6698['item'];_0x121bd6=_0x121bd6||_0x10f2a5['isContent'](_0x1ba6d9);const _0x5a438d=_0x2a9c84['mapper']['toViewElement'](_0x1ba6d9);if(_0x5a438d&&_0x5a438d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xcc6698['type']&&(_0x10f2a5['isBlock'](_0x1ba6d9)&&!_0x10f2a5['isLimit'](_0x1ba6d9)&&(_0x1ba6d9['nextSibling']||_0x2fab07['isAtEnd']?_0x10c5b0&&_0x10c5b0['parent']==_0x1ba6d9||(_0x10c5b0=_0x1ba6d9,_0xb9735d(_0xcc6698['previousPosition']),_0x468193=!0x0):_0x4f9c2a=_0x4f9c2a||_0xcc6698['previousPosition']));}function _0xb9735d(_0x5e8d4b){const {authorId:_0x291068}=_0x508c99['_splitMarkerName'](_0x125ccc['markerName']),_0x36b47e=_0x2a9c84['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2228a8,'data-author-id':_0x291068}),_0x3e19e6=_0x2a9c84['mapper']['toViewPosition'](_0x5e8d4b);_0x6ba690&&_0x508c99['activeMarkers']['includes'](_0x125ccc['markerName'])&&_0x2a9c84['writer']['addClass']('ck-suggestion-marker--active',_0x36b47e),_0x2a9c84['writer']['insert'](_0x3e19e6,_0x36b47e),_0x2a9c84['mapper']['bindElementToMarker'](_0x36b47e,_0x125ccc['markerName']);}_0x121bd6||_0x468193||!_0x4f9c2a||_0xb9735d(_0x4f9c2a);};}class K extends _0x2bd390{static get['requires'](){return[_0x562238];}['init'](){const _0x374dcd=this['editor'],_0x5aee68=_0x374dcd['plugins']['get']('TrackChangesEditing');_0x5aee68['enableCommand']('delete');const _0x2d830b=_0x374dcd['commands']['get']('deleteForward');_0x5aee68['enableCommand']('deleteForward',(_0x4714c4,_0x224e3c={})=>{const _0x2f4b78=_0x374dcd['model']['createSelection'](_0x374dcd['model']['document']['selection']);_0x2f4b78['isCollapsed']&&_0x374dcd['model']['modifySelection'](_0x2f4b78,{'direction':'forward','unit':_0x224e3c['unit']});const _0x333dd2=_0x2f4b78['getFirstRange'](),_0x2d7140=_0xfaa3eb['fromRange'](_0x333dd2);let _0x5a4b78;_0x4714c4(_0x224e3c),_0x5a4b78='$graveyard'==_0x2d7140['root']['rootName']?_0x374dcd['model']['createRange'](_0x333dd2['start']):_0x374dcd['model']['createRange'](_0x2d7140['start'],_0x2d7140['end']),_0x2d7140['detach'](),_0x374dcd['model']['enqueueChange'](_0x2d830b['buffer']['batch'],_0x4a7c7e=>{_0x2d830b['buffer']['lock'](),_0x4a7c7e['setSelection'](_0x4a7c7e['createRange'](_0x5a4b78['end'])),_0x2d830b['buffer']['unlock']();});}),_0x374dcd['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x374dcd,'merge'),{'priority':'high'}),_0x374dcd['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x6886dd,_0x93810f,_0x534c1d)=>{_0x534c1d['options']['showSuggestionHighlights']&&De(_0x374dcd,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x6886dd,_0x93810f,_0x534c1d);},{'priority':'high'}),_0x374dcd['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5ee0e5,_0xaeae03,_0x2441bc)=>{const _0x11be15=_0x2441bc['mapper']['markerNameToElements'](_0xaeae03['markerName']);if(_0x11be15){for(const _0x3f5c7c of _0x11be15)_0x3f5c7c['is']('uiElement')&&(_0x2441bc['mapper']['unbindElementFromMarkerName'](_0x3f5c7c,_0xaeae03['markerName']),_0x2441bc['writer']['remove'](_0x3f5c7c));}},{'priority':'high'});}}class W extends _0x2bd390{['afterInit'](){const _0x30ae1c=this['editor'];if(!_0x30ae1c['plugins']['has']('ListEditing'))return;const _0xa0889a=_0x30ae1c['locale'],_0x3f81a5=_0x30ae1c['plugins']['get']('TrackChangesEditing'),_0x470df8=_0x30ae1c['plugins']['has']('TodoListEditing'),_0x6c2d4b=!!_0x30ae1c['config']['get']('list.multiBlock');function _0x498986(_0x165b7d){return{'type':'format','content':''+o(_0xa0889a,'*Set\x20format:*\x20%0',_0x165b7d)};}function _0x76c614(_0x3b9350){return{'type':'format','content':''+o(_0xa0889a,'*Remove\x20format:*\x20%0',_0x3b9350)};}_0x3f81a5['enableDefaultAttributesIntegration']('numberedList'),_0x3f81a5['enableDefaultAttributesIntegration']('bulletedList'),_0x3f81a5['enableDefaultAttributesIntegration']('customNumberedList'),_0x3f81a5['enableDefaultAttributesIntegration']('customBulletedList'),_0x3f81a5['enableDefaultAttributesIntegration']('indentList'),_0x3f81a5['enableDefaultAttributesIntegration']('outdentList'),_0x3f81a5['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3f81a5['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3f81a5['registerBlockAttribute']('listItemId'),_0x3f81a5['registerBlockAttribute']('listType'),_0x3f81a5['registerBlockAttribute']('listIndent'),_0x6c2d4b&&(_0x3f81a5['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3f81a5['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x470df8&&(_0x3f81a5['enableDefaultAttributesIntegration']('todoList'),_0x3f81a5['enableDefaultAttributesIntegration']('checkTodoList'),_0x3f81a5['registerBlockAttribute']('todoListChecked'),_0x3f81a5['descriptionFactory']['registerDescriptionCallback'](_0x3b8d68=>{const {data:_0x38fa24}=_0x3b8d68;if(_0x38fa24&&'todoListChecked'==_0x38fa24['key'])return{'type':'format','content':_0x38fa24['newValue']?o(_0xa0889a,'*Check\x20item*'):o(_0xa0889a,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x36a928=>{if(_0x36a928['batch']['isUndo'])return!0x1;let _0x5dfd1e=!0x1;const _0x1fcfd4=_0x3f81a5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x187ad0=>'todoListChecked'===_0x3f81a5['_getAttributeKey'](_0x187ad0));for(const _0x47ab0e of _0x1fcfd4){'todo'!=_0x47ab0e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3f81a5['_findSuggestions'](_0x47ab0e['getFirstRange'](),'attribute')['find'](_0x44d986=>'listType'===_0x3f81a5['_getAttributeKey'](_0x44d986['suggestion']))||(_0x36a928['removeMarker'](_0x47ab0e['getFirstMarker']()),_0x5dfd1e=!0x0));}return _0x5dfd1e;})),_0x3f81a5['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0xa0889a,'FORMAT_INDENT'));const _0x2d51d0={'type':'format','content':''};_0x3f81a5['descriptionFactory']['registerDescriptionCallback'](_0x4c0be3=>{const {data:_0x4fbbf1}=_0x4c0be3;if(!_0x4fbbf1||'listType'!=_0x4fbbf1['key'])return;let _0x2d321e=_0x4c0be3['head'];for(;_0x2d321e;){if(_0x2d321e['data']&&(('listStyle'==_0x2d321e['data']['key']||'listMarkerStyle'==_0x2d321e['data']['key'])&&(_0x2d321e['data']['newValue']&&'default'!=_0x2d321e['data']['newValue']||'default'!=_0x2d321e['data']['oldValue']&&!_0x4fbbf1['newValue'])||!_0x6c2d4b&&_0x2d321e['data']['key']==m))return _0x2d51d0;_0x2d321e=_0x2d321e['next'];}if(null==_0x4fbbf1['newValue'])switch(_0x4fbbf1['oldValue']){case'bulleted':return _0x76c614(o(_0xa0889a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x76c614(o(_0xa0889a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x76c614(o(_0xa0889a,'ELEMENT_TODO_LIST'));}switch(_0x4fbbf1['newValue']){case'bulleted':return _0x498986(o(_0xa0889a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x498986(o(_0xa0889a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x498986(o(_0xa0889a,'ELEMENT_TODO_LIST'));}}),_0x3f81a5['descriptionFactory']['registerDescriptionCallback'](_0x342196=>{const {data:_0xa77696}=_0x342196;if(_0xa77696&&'listIndent'==_0xa77696['key'])return null==_0xa77696['newValue']||null==_0xa77696['oldValue']&&0x0==_0xa77696['newValue']?_0x2d51d0:void 0x0;}),_0x3f81a5['descriptionFactory']['registerDescriptionCallback'](_0x7f70c3=>{if('attribute'!=_0x7f70c3['type'])return;const {data:_0xcaa65f}=_0x7f70c3;if(!_0xcaa65f||'listItemId'!=_0xcaa65f['key'])return;const _0xbdb6b2=Te(_0x7f70c3);return'newValue'==_0xbdb6b2?{'type':'format','content':o(_0xa0889a,'*Merge:*\x20list\x20item')}:'oldValue'==_0xbdb6b2?{'type':'format','content':o(_0xa0889a,'*Split:*\x20list\x20item')}:_0x2d51d0;}),_0x30ae1c['model']['document']['registerPostFixer'](_0x4b279e=>this['listItemIdFixer'](_0x4b279e)),_0x30ae1c['model']['document']['registerPostFixer'](_0x17ea27=>this['noTrackChangesFixer'](_0x17ea27)),_0x30ae1c['model']['document']['on']('change:data',(_0x57be43,_0x5c35e9)=>{if(_0x5c35e9['isUndo']||!_0x5c35e9['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x570bbc){if(_0x570bbc['batch']['isUndo']||!_0x570bbc['batch']['isLocal'])return!0x1;let _0x1b1e2b=!0x1;const _0x2a1ceb=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3635aa=>_0x3635aa['data']&&'listItemId'==_0x3635aa['data']['key'])['filter'](_0x26060d=>_0x26060d['data']['newValue']&&_0x26060d['data']['oldValue']);for(const _0xf62136 of _0x2a1ceb)Te(_0xf62136)||(_0x570bbc['removeMarker'](_0xf62136['getFirstMarker']()),_0x1b1e2b=!0x0);return _0x1b1e2b;}['noTrackChangesFixer'](_0x2bcb49){if(_0x2bcb49['batch']['isUndo']||!_0x2bcb49['batch']['isLocal'])return!0x1;const _0x447163=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x447163['trackChangesCommand']['value'])return!0x1;let _0x5c9a95=!0x1;const _0x52bb38=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x478019=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3dbbd3=>'attribute'==_0x3dbbd3['type'])['filter'](_0x55046f=>_0x52bb38['includes'](_0x55046f['attributeKey']));if(0x0==_0x478019['length'])return _0x5c9a95;for(const _0x1b63dc of _0x478019){const _0x3fb001=_0x447163['_findSuggestions'](_0x1b63dc['range'],'attribute')['filter'](_0x13e621=>!_0x13e621['meta']['isNextTo'])['map'](_0x6f91e9=>_0x6f91e9['suggestion'])['filter'](_0x3f6bb7=>{const _0x2c5e67=_0x447163['_getAttributeKey'](_0x3f6bb7);return _0x52bb38['includes'](_0x2c5e67);});if(_0x3fb001['length']){for(const _0x175d3c of _0x3fb001)_0x2bcb49['removeMarker'](_0x175d3c['getFirstMarker']());_0x5c9a95=!0x0;}}return _0x5c9a95;}['assureChains'](){const _0x3d27b0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ca702=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4e9657;const _0x4199c6=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x13c657=>{if(_0x13c657['data']['oldRange']||!_0x13c657['data']['newRange'])return null;if(!_0x13c657['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x36702e}=_0x3d27b0['_splitMarkerName'](_0x13c657['name']);if(!_0x3d27b0['hasSuggestion'](_0x36702e))return null;const _0x522a47=_0x3d27b0['getSuggestion'](_0x36702e);return _0x2ca702['includes'](_0x522a47['data']['key']);})['map'](_0x3d135a=>{const {id:_0x3ba2e7}=_0x3d27b0['_splitMarkerName'](_0x3d135a['name']),_0x2634cc=_0x3d27b0['getSuggestion'](_0x3ba2e7);return _0x4e9657=_0x2634cc['attributes']['groupId'],_0x2634cc['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4199c6['size'])return;const _0x52979a=_0x3d27b0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xba6eba=>'attribute'==_0xba6eba['type']&&_0xba6eba['data']&&_0x2ca702['includes'](_0xba6eba['data']['key'])&&_0xba6eba['attributes']['groupId']!=_0x4e9657)['map'](_0x23c80d=>({'listItem':_0x23c80d['getFirstRange']()['start']['nodeAfter'],'groupId':_0x23c80d['attributes']['groupId']})),_0x38facc=new Set();for(const {groupId:_0x379d48,listItem:_0x20186a}of _0x52979a)_0x4199c6['has'](_0x20186a)&&_0x38facc['add'](_0x379d48);for(const _0x45aac6 of _0x3d27b0['getSuggestions']())_0x38facc['has'](_0x45aac6['attributes']['groupId'])&&_0x45aac6['setAttribute']('groupId',_0x4e9657);}['_supportLegacySuggestions'](){const _0x204bef=this['editor'],_0x3e3366=_0x204bef['locale'],_0x1a0ea0=_0x204bef['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1a0ea0['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x23fa8f,_0x5cae92){const _0x463642=[];for(let _0x4e776b of _0x23fa8f)_0x4e776b['start']['nodeAfter']===_0x4e776b['end']['parent']&&(_0x4e776b=_0x204bef['model']['createRange'](_0x204bef['model']['createPositionAt'](_0x4e776b['start']['nodeAfter'],0x0))),_0x463642['push'](_0x4e776b);_0x204bef['model']['change'](_0x542a1a=>{const _0x1354ea=_0x204bef['model']['document']['selection'],_0xcb17c3=Array['from'](_0x1354ea['getRanges']())['map'](_0x2ec80a=>_0xfaa3eb['fromRange'](_0x2ec80a));_0x542a1a['setSelection'](_0x463642),_0x204bef['commands']['get'](_0x5cae92['commandName'])['refresh'](),_0x5cae92['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x204bef['execute'](_0x5cae92['commandName'],..._0x5cae92['commandParams']),_0x542a1a['setSelection'](_0xcb17c3);for(const _0x430ba5 of _0xcb17c3)_0x430ba5['detach']();});}),_0x1a0ea0['descriptionFactory']['registerElementLabel'](function(_0x3bf23f){const _0x53358e=!_0x204bef['model']['schema']['isObject'](_0x3bf23f),_0x1b7145=_0x3bf23f['previousSibling'],_0x4e357e=_0x3bf23f['nextSibling'],_0x44d1f8=_0x3bf23f['getAttribute']('listItemId'),_0x138401=!_0x1b7145||_0x1b7145['getAttribute']('listItemId')!==_0x44d1f8,_0x281239=!_0x4e357e||_0x4e357e['getAttribute']('listItemId')!==_0x44d1f8;return _0x53358e&&Boolean(_0x44d1f8)&&_0x138401&&_0x281239;},_0x5b1d75=>o(_0x3e3366,'ELEMENT_LIST_ITEM',_0x5b1d75));}['_registerLegacyDescription'](){const _0x458598=this['editor'],_0xec26e1=_0x458598['locale'];function _0x139bcb(_0x1671d1){const _0x5d9d24=_0x458598['commands']['get']('bulletedList')['value'],_0x23444e=_0x458598['commands']['get']('numberedList')['value'];return'numberedList'===_0x1671d1?_0x5d9d24:_0x23444e;}_0x458598['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1daae6){if('formatBlock'!=_0x1daae6['type'])return;const {data:_0x229218}=_0x1daae6;if(!_0x229218)return;let _0x5d8ced,_0x2cfd22,_0x41ed7b,_0x2dd539;switch(_0x229218['commandName']){case'bulletedList':_0x41ed7b=_0x229218['commandParams'][0x0]['forceValue'],_0x2dd539=_0x139bcb(_0x229218['commandName']),_0x5d8ced=_0x41ed7b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2dd539&&_0x458598['config']['get']('list.multiBlock')||(_0x5d8ced='*Change\x20to:*\x20%0'),_0x2cfd22={'type':'format','content':o(_0xec26e1,_0x5d8ced,o(_0xec26e1,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x41ed7b=_0x229218['commandParams'][0x0]['forceValue'],_0x2dd539=_0x139bcb(_0x229218['commandName']),_0x5d8ced=_0x41ed7b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2dd539&&_0x458598['config']['get']('list.multiBlock')||(_0x5d8ced='*Change\x20to:*\x20%0'),_0x2cfd22={'type':'format','content':o(_0xec26e1,_0x5d8ced,o(_0xec26e1,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5d8ced='*Indent:*\x20%0',_0x2cfd22={'type':'format','content':o(_0xec26e1,_0x5d8ced,o(_0xec26e1,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5d8ced=function(_0x12fa9f){const _0x568373=_0x12fa9f['getFirstRange']();let _0x385fe0=_0x568373['start']['nodeAfter'];for(;_0x385fe0&&_0x568373['containsItem'](_0x385fe0);){if(_0x385fe0['getAttribute']('listIndent')>0x0)return!0x1;_0x385fe0=_0x385fe0['nextSibling'];}return!0x0;}(_0x1daae6)?o(_0xec26e1,'*Format:*\x20remove\x20from\x20%0',o(_0xec26e1,function(_0x438377){return'ELEMENT_'+_0x438377['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1daae6))):o(_0xec26e1,'*Outdent:*\x20%0',o(_0xec26e1,'ELEMENT_LIST_ITEM')),_0x2cfd22={'type':'format','content':_0x5d8ced};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x229218['multipleBlocks']&&(_0x5d8ced='*Merge:*\x20%0',_0x2cfd22={'type':'deletion','content':o(_0xec26e1,_0x5d8ced,o(_0xec26e1,'ELEMENT_LIST_ITEM'))});}return _0x2cfd22;});}}function Te(_0x2cc2ed){let _0xc760fa=_0x2cc2ed['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0xc760fa;){const _0x592a13=_0xc760fa['getAttribute']('listItemId');if(!_0x592a13)return!0x1;if(_0x592a13==_0x2cc2ed['data']['newValue'])return'newValue';if(_0x592a13==_0x2cc2ed['data']['oldValue'])return'oldValue';_0xc760fa=_0xc760fa['previousSibling'];}return!0x1;}class Se extends _0x2bd390{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1de4cc=this['editor']['config']['get']('list.properties'),_0x51a7c1=this['editor']['plugins']['get']('TrackChangesEditing');_0x1de4cc['styles']&&(_0x51a7c1['enableDefaultAttributesIntegration']('listStyle'),_0x51a7c1['registerBlockAttribute']('listStyle')),_0x1de4cc['reversed']&&(_0x51a7c1['enableDefaultAttributesIntegration']('listReversed'),_0x51a7c1['registerBlockAttribute']('listReversed')),_0x1de4cc['startIndex']&&(_0x51a7c1['enableDefaultAttributesIntegration']('listStart'),_0x51a7c1['registerBlockAttribute']('listStart'));const _0x447090={'type':'format','content':''};_0x51a7c1['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x326ecf=this['editor']['locale'];_0x51a7c1['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x326ecf,'FORMAT_LIST_REVERSED')),_0x51a7c1['descriptionFactory']['registerDescriptionCallback'](_0x53f44b=>{const {data:_0x165c53}=_0x53f44b;if(_0x165c53&&'listReversed'==_0x165c53['key'])return null==_0x165c53['newValue']||0x0==_0x165c53['newValue']&&null==_0x165c53['oldValue']?_0x447090:void 0x0;}),_0x51a7c1['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x326ecf,'FORMAT_LIST_START')),_0x51a7c1['descriptionFactory']['registerDescriptionCallback'](_0x4a0eef=>{const {data:_0x249e34}=_0x4a0eef;if(_0x249e34&&'listStart'==_0x249e34['key'])return null==_0x249e34['newValue']||0x1==_0x249e34['newValue']&&null==_0x249e34['oldValue']?_0x447090:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x826d84=>{if(_0x826d84['batch']['isUndo'])return!0x1;let _0x3b0643=!0x1;const _0x58ffed=_0x51a7c1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x10d94e=>{const _0x1cbd6e=_0x51a7c1['_getAttributeKey'](_0x10d94e);return'listStart'==_0x1cbd6e||'listReversed'==_0x1cbd6e;});for(const _0x3f4c9f of _0x58ffed){const _0x46b294=_0x3f4c9f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x46b294||'customNumbered'==_0x46b294)continue;_0x51a7c1['_findSuggestions'](_0x3f4c9f['getFirstRange'](),'attribute')['find'](_0x2ac60b=>'listType'==_0x51a7c1['_getAttributeKey'](_0x2ac60b['suggestion']))||(_0x826d84['removeMarker'](_0x3f4c9f['getFirstMarker']()),_0x3b0643=!0x0);}return _0x3b0643;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x42aef0){const _0x322d52=this['editor']['locale'],{data:_0x69543d}=_0x42aef0,_0x23d560={'type':'format','content':''};if(!_0x69543d||'listStyle'!=_0x69543d['key'])return;if(!_0x69543d['oldValue'])return'default'==_0x69543d['newValue']?_0x23d560:{'type':'format','content':''+o(_0x322d52,'*Set\x20format:*\x20%0',o(_0x322d52,this['_getTranslationKeyForListStyle'](_0x69543d['newValue'])))};if(!_0x69543d['newValue']){if('default'==_0x69543d['oldValue'])return _0x23d560;let _0x1fc310=_0x42aef0['head'];for(;_0x1fc310;){if(_0x1fc310['data']&&'listType'==_0x1fc310['data']['key']&&_0x1fc310['data']['newValue'])return _0x23d560;_0x1fc310=_0x1fc310['next'];}return{'type':'format','content':''+o(_0x322d52,'*Remove\x20format:*\x20%0',o(_0x322d52,this['_getTranslationKeyForListStyle'](_0x69543d['oldValue'])))};}if('default'!=_0x69543d['newValue'])return{'type':'format','content':''+o(_0x322d52,'*Set\x20format:*\x20%0',o(_0x322d52,this['_getTranslationKeyForListStyle'](_0x69543d['newValue'])))};let _0x3785ad=_0x42aef0['head'];for(;_0x3785ad;){if(_0x3785ad['data']&&'listType'==_0x3785ad['data']['key']&&_0x3785ad['data']['newValue']&&_0x3785ad['data']['oldValue'])return _0x23d560;_0x3785ad=_0x3785ad['next'];}return{'type':'format','content':o(_0x322d52,'*Set\x20format:*\x20%0',o(_0x322d52,'ELEMENT_'+_0x42aef0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x5d6fce=this['editor'],_0x2ae3e1=_0x5d6fce['locale'];_0x5d6fce['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a79fb=>{if('formatBlock'!=_0x3a79fb['type'])return;const {data:_0x23c7e1}=_0x3a79fb;if(!_0x23c7e1)return;let _0x14d8fd,_0x3379c0;switch(_0x23c7e1['commandName']){case'listStyle':_0x14d8fd='*Change\x20to:*\x20%0',_0x3379c0={'type':'format','content':o(_0x2ae3e1,_0x14d8fd,o(_0x2ae3e1,this['_getTranslationKeyForListStyle'](_0x23c7e1['commandParams'][0x0]['type'])))};break;case'listReversed':_0x14d8fd=_0x23c7e1['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3379c0={'type':'format','content':o(_0x2ae3e1,_0x14d8fd)};break;case'listStart':_0x14d8fd='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3379c0={'type':'format','content':o(_0x2ae3e1,_0x14d8fd,_0x23c7e1['commandParams'][0x0]['startIndex'])};}return _0x3379c0;});}['_getTranslationKeyForListStyle'](_0x35e22b){return'ELEMENT_'+function(_0x38f56e){if(_e['includes'](_0x38f56e))return'bulleted';if(Re['includes'](_0x38f56e))return'numbered';return null;}(_0x35e22b)['toUpperCase']()+'_LIST_'+_0x35e22b['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x2bd390{static get['requires'](){return[_0x212829];}['init'](){const _0x52f8ae=this['editor'],_0x4214ac=_0x52f8ae['plugins']['get']('TrackChangesEditing'),_0x57a00e=_0x52f8ae['commands']['get']('enter');_0x4214ac['enableCommand']('enter',()=>{_0x52f8ae['model']['change'](_0x31aa7e=>{const _0x2473f0=_0x52f8ae['model']['document']['selection'],_0x4a4953=_0x2473f0['getFirstPosition'](),_0xe19bc0=_0xfaa3eb['fromRange'](_0x2473f0['getFirstRange']());if(_0x57a00e['enterBlock'](_0x31aa7e)){const _0x3abf41=_0x52f8ae['model']['createPositionAt'](_0x4a4953['parent']['nextSibling'],0x0),_0x35d5f8=_0x31aa7e['createRange'](_0x4a4953,_0x3abf41);_0x4214ac['markInsertion'](_0x35d5f8);}else _0x31aa7e['setSelection'](_0x31aa7e['createRange'](_0xe19bc0['end']));_0xe19bc0['detach'](),_0x57a00e['fire']('afterExecute',{'writer':_0x31aa7e});});}),_0x52f8ae['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x52f8ae,'split'),{'priority':'high'}),_0x52f8ae['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0xe2c2dd,_0x2036e4,_0xaa357f)=>{const _0x1d24bd=_0xaa357f['mapper']['markerNameToElements'](_0x2036e4['markerName']);if(_0x1d24bd){for(const _0x44e4fa of _0x1d24bd)_0x44e4fa['hasClass']('ck-suggestion-marker-split')&&(_0xaa357f['mapper']['unbindElementFromMarkerName'](_0x44e4fa,_0x2036e4['markerName']),_0xaa357f['writer']['remove'](_0x44e4fa));}},{'priority':'high'}),_0x52f8ae['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4c1c6f,_0x15b49d,_0x55f6c9)=>{_0x55f6c9['options']['showSuggestionHighlights']&&De(_0x52f8ae,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x4c1c6f,_0x15b49d,_0x55f6c9);},{'priority':'high'});}}class Y extends _0x2bd390{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x58cc83=this['editor']['plugins']['get']('TrackChangesEditing');_0x58cc83['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x58cc83['enableCommand']('findNext'),_0x58cc83['enableCommand']('findPrevious'),_0x58cc83['enableCommand']('replace'),_0x58cc83['enableCommand']('replaceAll');}['handleFindCommand'](_0x43bc2e,_0x51cbea,_0x334b37={}){const _0x12ff8a=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x43bc2e(_0x5255ba=>{let _0xcfe00f=('string'==typeof _0x51cbea?_0x12ff8a['findByTextCallback'](_0x51cbea,_0x334b37):_0x51cbea)(_0x5255ba);Array['isArray'](_0xcfe00f)&&(_0xcfe00f={'results':_0xcfe00f,'searchText':'string'==typeof _0x51cbea?_0x51cbea:''});const _0x34c1d=_0xcfe00f['results']['filter'](_0x174dd0=>!0x1===this['_isInDeletionRange'](_0x174dd0,_0x5255ba['item']));return{..._0xcfe00f,'results':_0x34c1d};},_0x334b37);}['_isInDeletionRange'](_0x221719,_0x19f34c){const _0x3000ef=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x19f34c,_0x221719['start']),this['editor']['model']['createPositionAt'](_0x19f34c,_0x221719['end']));for(const _0x1d0a3b of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3000ef['getIntersection'](_0x1d0a3b['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x2bd390{['afterInit'](){const _0x2adf11=this['editor']['locale'],_0xc504cb=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1865f1,commandName:_0x44614e}of ro)this['editor']['plugins']['has'](_0x1865f1)&&(_0xc504cb['enableDefaultAttributesIntegration'](_0x44614e),_0xc504cb['registerInlineAttribute'](_0x44614e));_0xc504cb['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2adf11,'FORMAT_FONT_SIZE')),_0xc504cb['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2adf11,'FORMAT_FONT_FAMILY')),_0xc504cb['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2adf11,'FORMAT_FONT_COLOR')),_0xc504cb['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2adf11,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a91ef=this['editor'],_0xb5ec0d=_0x3a91ef['locale'];_0x3a91ef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x480895=>{const _0x4ba42b=_0xb5ec0d['t'];if('formatInline'!=_0x480895['type'])return;const {data:_0xd95eae}=_0x480895;if(null!=_0xd95eae){if('fontSize'==_0xd95eae['commandName']){const _0x22fae5=_0xd95eae['commandParams'][0x0]['value'];if(_0x22fae5){const _0x21c0f6=_0x4ba42b(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x68ca1=>_0x68ca1['model']==_0x22fae5)['title'])['toLowerCase']();return{'type':'format','content':o(_0xb5ec0d,'*Set\x20font\x20size:*\x20%0',_0x21c0f6)};}return{'type':'format','content':o(_0xb5ec0d,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xd95eae['commandName']){const _0x28451d=_0xd95eae['commandParams'][0x0]['value'];return _0x28451d?{'type':'format','content':o(_0xb5ec0d,'*Set\x20font\x20family:*\x20%0',_0x28451d)}:{'type':'format','content':o(_0xb5ec0d,'*Reset\x20font\x20family*')};}if('fontColor'==_0xd95eae['commandName']){const _0x20d4fe=_0xd95eae['commandParams'][0x0]['value'];if(_0x20d4fe){const _0x475131=_0x4deacf(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1e6ba1=>_0x1e6ba1['model']==_0x20d4fe);let _0x5d3590=_0x20d4fe,_0x393382='';return _0x475131&&(_0x5d3590=_0x475131['label'],_0x393382=_0x4ba42b(_0x5d3590)['toLowerCase']()),{'type':'format','content':o(_0xb5ec0d,'*Set\x20font\x20color:*\x20%0',_0x393382)['trim'](),'color':{'value':_0x20d4fe,'title':_0x393382||_0x5d3590}};}return{'type':'format','content':o(_0xb5ec0d,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xd95eae['commandName']){const _0xe7978=_0xd95eae['commandParams'][0x0]['value'];if(_0xe7978){const _0x3ba827=_0x4deacf(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1bdb3d=>_0x1bdb3d['model']==_0xe7978);let _0x8175ac=_0xe7978,_0x5f0afe='';return _0x3ba827&&(_0x8175ac=_0x3ba827['label'],_0x5f0afe=_0x4ba42b(_0x8175ac)['toLowerCase']()),{'type':'format','content':o(_0xb5ec0d,'*Set\x20font\x20background\x20color:*\x20%0',_0x5f0afe)['trim'](),'color':{'value':_0xe7978,'title':_0x5f0afe||_0x8175ac}};}return{'type':'format','content':o(_0xb5ec0d,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x2bd390{['afterInit'](){const _0x572d09=this['editor'],_0x180206=_0x572d09['plugins']['get']('TrackChangesEditing'),_0x4094e7=_0x572d09['commands']['get']('copyFormat'),_0xce28a8=_0x572d09['commands']['get']('pasteFormat');_0x4094e7&&_0xce28a8&&(_0x180206['enableDefaultAttributesIntegration']('pasteFormat'),_0x180206['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1134d8=this['editor'],_0x5d80f7=_0x1134d8['locale'];_0x1134d8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x152666=>{if('formatBlock'!=_0x152666['type']&&'formatInline'!=_0x152666['type'])return;const {data:_0x5b692f}=_0x152666;if(_0x5b692f&&'pasteFormat'===_0x5b692f['commandName']){const _0x2bd91b=[],_0x4bc76a=_0x5b692f['commandParams'][0x0];for(const [_0x27ce36,_0x46eb31]of Object['entries'](_0x4bc76a))_0x2bd91b['push'](so(_0x1134d8,_0x27ce36,_0x46eb31));return _0x2bd91b['length']?{'type':'format','content':o(_0x5d80f7,'*Set\x20format\x20to:*\x20%0',_0x2bd91b['join'](',\x20'))}:{'type':'format','content':o(_0x5d80f7,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1efb19,_0x15a62e,_0x471f6e){const _0x2a1283=_0x1efb19['locale']['t'],_0x2fe466=_0x15a62e['split'](/(?=[A-Z])/)['join']('\x20'),_0x4d7cbf=_0x2a1283(_0x2fe466['charAt'](0x0)['toUpperCase']()+_0x2fe466['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x471f6e)return _0x4d7cbf;if('fontColor'===_0x15a62e||'fontBackgroundColor'===_0x15a62e){const _0x45666d=_0x4deacf(_0x1efb19['config']['get']('fontColor.colors'))['find'](_0x19a001=>_0x19a001['model']==_0x471f6e);return _0x4d7cbf+'\x20('+(_0x45666d?_0x2a1283(_0x45666d['label'])['toLowerCase']():_0x471f6e)+')';}if('fontSize'===_0x15a62e&&isNaN(parseFloat(_0x471f6e))){const _0x12962e=_0x1efb19['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1efb19['config']['get']('fontSize.options'))['find'](_0x274059=>_0x274059['model']==_0x471f6e);return _0x4d7cbf+'\x20('+(_0x12962e?_0x2a1283(_0x12962e['title'])['toLowerCase']():_0x471f6e)+')';}return _0x4d7cbf+'\x20('+_0x471f6e+')';}class nt extends _0x2bd390{['_headingOptions'];['afterInit'](){const _0x2edf67=this['editor'];if(!_0x2edf67['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2edf67['config']['get']('heading.options');const _0x2e6324=_0x2edf67['locale'],_0x5b1cce=_0x2edf67['plugins']['get']('TrackChangesEditing');_0x5b1cce['enableDefaultAttributesIntegration']('heading');for(const _0xa579d7 of this['_headingOptions'])'paragraph'!=_0xa579d7['model']&&_0x5b1cce['descriptionFactory']['registerElementLabel'](_0xa579d7['model'],_0x2c14c3=>{const _0x2f580d=this['_getHeadingLevel'](_0xa579d7['model']);return null!==_0x2f580d?_0x12ebc6(_0x2c14c3,_0x2f580d):_0x575a7e(_0x2c14c3,_0xa579d7['title']);});function _0x12ebc6(_0x404255,_0x2a5c88){return o(_0x2e6324,'ELEMENT_HEADING',[_0x404255,_0x2a5c88]);}function _0x575a7e(_0x35c06c,_0x50ca02){return o(_0x2e6324,'ELEMENT_HEADING_CUSTOM',[_0x35c06c,_0x50ca02]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d49b4=this['editor'],_0x3599ee=_0x2d49b4['locale'];function _0x286068(_0x223f3c,_0x59548b){return o(_0x3599ee,'ELEMENT_HEADING_CUSTOM',[_0x223f3c,_0x59548b]);}_0x2d49b4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x537440=>{if('formatBlock'!=_0x537440['type'])return;const {data:_0x169c4a}=_0x537440;if(_0x169c4a&&'heading'==_0x169c4a['commandName']){const _0x10d0d5=_0x169c4a['commandParams'][0x0]['value'],_0x343b3b=this['_getHeadingLevel'](_0x10d0d5);if(null!==_0x343b3b)return{'type':'format','content':o(_0x3599ee,'*Change\x20to:*\x20%0',(_0x39b0b3=0x1,_0x1baa9b=_0x343b3b,o(_0x3599ee,'ELEMENT_HEADING',[_0x39b0b3,_0x1baa9b])))};const _0x3d649e=this['_headingOptions']['find'](_0x373f83=>_0x373f83['model']===_0x10d0d5)['title'];return{'type':'format','content':o(_0x3599ee,'*Change\x20to:*\x20%0',_0x286068(0x1,_0x3d649e))};}var _0x39b0b3,_0x1baa9b;});}['_getHeadingLevel'](_0x1b12d3){const _0x3ee467=_0x1b12d3['match'](/^heading(\d+)/);if(_0x3ee467)return _0x3ee467[0x1];const _0x2952db=this['_headingOptions']?.['find'](_0x5bf261=>_0x5bf261['model']==_0x1b12d3);if(_0x2952db&&_0x2952db['view']){const _0x33d37a=_0x2952db['view'],_0x366b41=(_0x33d37a['name']??_0x33d37a)['match'](/^h(\d+)/);if(_0x366b41)return _0x366b41[0x1];}return null;}}class it extends _0x2bd390{['afterInit'](){const _0x15ce58=this['editor'];if(!_0x15ce58['plugins']['has']('HighlightEditing'))return;const _0x2bf205=_0x15ce58['plugins']['get']('TrackChangesEditing'),_0x5f5df7=_0x15ce58['locale'];_0x2bf205['enableDefaultAttributesIntegration']('highlight'),_0x2bf205['registerInlineAttribute']('highlight'),_0x2bf205['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5f5df7,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x544559=this['editor'],_0x4ebe30=_0x544559['locale'];_0x544559['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x257397=>{if('formatInline'!=_0x257397['type'])return;const {data:_0x2a765e}=_0x257397;if(_0x2a765e&&'highlight'==_0x2a765e['commandName']){const _0x490b60=_0x4ebe30['t'],_0x51ea86=_0x2a765e['commandParams'][0x0]['value'];if(_0x51ea86){const _0x25b44c=_0x544559['config']['get']('highlight.options')['find'](_0x30235b=>_0x30235b['model']==_0x51ea86),_0x4be0d0=_0x490b60(_0x25b44c['title'])['toLowerCase']();return{'type':'format','content':o(_0x4ebe30,'*Set\x20highlight:*\x20%0',_0x4be0d0),'color':{'value':_0x25b44c['color'],'title':_0x25b44c['title']}};}return{'type':'format','content':o(_0x4ebe30,'*Remove\x20highlight*',o(_0x4ebe30,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x2bd390{['afterInit'](){const _0x28d622=this['editor'];if(!_0x28d622['plugins']['has']('HorizontalLineEditing'))return;_0x28d622['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x15cb6f=_0x28d622['plugins']['get']('TrackChangesEditing'),_0x285def=_0x28d622['locale'];_0x15cb6f['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1537c3=>o(_0x285def,'ELEMENT_HORIZONTAL_LINE',_0x1537c3)),_0x28d622['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4e8bff,{writer:_0x3bc868,options:_0x5dcd1d})=>{if(!_0x5dcd1d['showSuggestionHighlights'])return null;const _0x56b449=_0x3bc868['createContainerElement']('div'),_0x21e74a=_0x3bc868['createEmptyElement']('hr');return _0x3bc868['addClass']('ck-horizontal-line',_0x56b449),_0x3bc868['insert'](_0x3bc868['createPositionAt'](_0x56b449,0x0),_0x21e74a),_0x56b449;},'converterPriority':'high'});}}class st extends _0x2bd390{['afterInit'](){const _0x464ca5=this['editor'];if(!_0x464ca5['plugins']['has']('HtmlEmbed'))return;const _0xfa6c9c=_0x464ca5['plugins']['get']('TrackChangesEditing'),_0xa7ab91=_0x464ca5['locale'];_0xfa6c9c['descriptionFactory']['registerElementLabel']('rawHtml',_0x5c0e95=>o(_0xa7ab91,'ELEMENT_HTML_EMBED',_0x5c0e95)),_0xfa6c9c['enableDefaultAttributesIntegration']('htmlEmbed'),_0xfa6c9c['registerBlockAttribute']('value'),_0xfa6c9c['descriptionFactory']['registerDescriptionCallback'](_0x11ece2=>{if('attribute'!=_0x11ece2['type'])return;const {data:_0x50a178}=_0x11ece2;if(_0x50a178&&'value'==_0x50a178['key']&&_0x11ece2['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x84e6bb=o(_0xa7ab91,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xa7ab91,'*Change\x20%0\x20content*',_0x84e6bb)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x40f827=this['editor'],_0x31bd3b=_0x40f827['locale'];_0x40f827['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a0281=>{if('formatBlock'!=_0x1a0281['type'])return;const {data:_0x425521}=_0x1a0281;if(_0x425521&&'htmlEmbed'==_0x425521['commandName']){const _0x1409c9=o(_0x31bd3b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x31bd3b,'*Change\x20%0\x20content*',_0x1409c9)};}});}}class ot extends _0x2bd390{['afterInit'](){const _0x104569=this['editor'];if(!_0x104569['plugins']['has']('ImageEditing'))return;const _0x3ecf41=_0x104569['plugins']['get']('TrackChangesEditing'),_0x9c1a0a=_0x104569['plugins']['get']('ImageUtils'),_0x4fd963=_0x104569['locale'];_0x3ecf41['enableCommand']('insertImage'),_0x3ecf41['descriptionFactory']['registerElementLabel']('imageBlock',_0x1ebb7b=>o(_0x4fd963,'ELEMENT_IMAGE',_0x1ebb7b)),_0x3ecf41['descriptionFactory']['registerElementLabel']('imageInline',_0x2a9f53=>o(_0x4fd963,'ELEMENT_INLINE_IMAGE',_0x2a9f53)),_0x3ecf41['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4fd963,'ELEMENT_CAPTION')),_0x104569['plugins']['has']('ImageUploadEditing')&&_0x3ecf41['enableCommand']('uploadImage'),_0x104569['plugins']['has']('ImageBlockEditing')&&_0x104569['plugins']['has']('ImageInlineEditing')&&(_0x3ecf41['enableCommand']('imageTypeInline',(_0x1deab8,_0x234bfd)=>{const _0x5c9662=_0x9c1a0a['getClosestSelectedImageElement'](_0x104569['model']['document']['selection']);_0x104569['model']['change'](()=>{_0x3ecf41['markBlockFormat'](_0x5c9662,{'commandName':'imageTypeInline','commandParams':[_0x234bfd]},[],'convertBlockImageToInline');});}),_0x3ecf41['enableCommand']('imageTypeBlock',(_0x789b9,_0x275b5f)=>{_0x104569['model']['change'](_0x136ebe=>{let _0x937ba2=_0x9c1a0a['getClosestSelectedImageElement'](_0x104569['model']['document']['selection']),_0x283c0f=_0x136ebe['createRangeOn'](_0x937ba2);const _0xee00a2=_0x152006['fromPosition'](_0x283c0f['start'],'toPrevious'),_0x35ef52=_0x152006['fromPosition'](_0x283c0f['end'],'toNext');_0x3ecf41['forceDefaultExecution'](()=>_0x789b9(_0x275b5f)),_0x937ba2=_0x9c1a0a['getClosestSelectedImageElement'](_0x104569['model']['document']['selection']),_0x283c0f=_0x136ebe['createRangeOn'](_0x937ba2);const _0x52e43f=_0x136ebe['createRange'](_0xee00a2,_0x35ef52);_0xee00a2['detach'](),_0x35ef52['detach'](),_0x3ecf41['markBlockFormat'](_0x937ba2,{'commandName':'imageTypeInline','commandParams':[_0x275b5f]},[],'convertInlineImageToBlock'),_0x52e43f['start']['isBefore'](_0x283c0f['start'])&&_0x3ecf41['markInsertion'](_0x136ebe['createRange'](_0x52e43f['start'],_0x283c0f['start']),'convertInlineImageToBlock'),_0x283c0f['end']['isBefore'](_0x52e43f['end'])&&_0x3ecf41['markInsertion'](_0x136ebe['createRange'](_0x283c0f['end'],_0x52e43f['end']),'convertInlineImageToBlock');});}),_0x3ecf41['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3ecf41['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3ecf41['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3ecf41['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3ecf41['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3ecf41['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4cc335])=>{const _0x23d456=_0x3ecf41['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x546029=_0x4cc335['start'],_0x49ba53=_0x4cc335['end'];const _0x185758=_0x104569['model']['schema']['getNearestSelectionRange'](_0x546029,'backward'),_0x5e25cc=_0x104569['model']['schema']['getNearestSelectionRange'](_0x49ba53,'forward');_0x185758['isCollapsed']&&(_0x546029=_0x185758['start']),_0x5e25cc['isCollapsed']&&(_0x49ba53=_0x5e25cc['end']),_0x23d456([_0x104569['model']['createRange'](_0x546029,_0x49ba53)]);}),_0x3ecf41['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5d8c73),_0x3ecf41['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5d8c73)),_0x104569['plugins']['has']('ImageCaptionEditing')&&(_0x3ecf41['enableCommand']('toggleImageCaption',(_0x58f767,_0x430fa7)=>{const _0x260624=_0x104569['plugins']['get']('ImageCaptionUtils');let _0x7a76d1=_0x9c1a0a['getClosestSelectedImageElement'](_0x104569['model']['document']['selection']),_0x209860=_0x260624['getCaptionFromImageModelElement'](_0x7a76d1);_0x104569['model']['change'](()=>{if(_0x209860)return void _0x3ecf41['markDeletion'](_0x104569['model']['createRangeOn'](_0x209860));const _0x31d732=_0x9c1a0a['isBlockImage'](_0x7a76d1);_0x58f767(_0x430fa7),_0x7a76d1=_0x9c1a0a['getClosestSelectedImageElement'](_0x104569['model']['document']['selection']),_0x209860=_0x260624['getCaptionFromImageModelElement'](_0x7a76d1),_0x3ecf41['markInsertion'](_0x104569['model']['createRangeOn'](_0x209860),_0x31d732?null:'imageCaption');});}),_0x3ecf41['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5d8c73));const _0x29017b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2d88ae(_0x5a353e,_0xf40a83){const _0x41266d=_0x29017b['findIndex'](({type:_0x538900,subType:_0x2d2ef2})=>_0x5a353e['type']==_0x538900&&_0x5a353e['subType']==_0x2d2ef2),_0x41ac51=_0x29017b['findIndex'](({type:_0x450ea1,subType:_0x229262})=>_0xf40a83['type']==_0x450ea1&&_0xf40a83['subType']==_0x229262);if(_0x41266d<0x0||_0x41ac51<0x0)return!0x1;const _0x3ef497=_0x5a353e['getFirstRange'](),_0x309add=_0xf40a83['getFirstRange']();if((0x0==_0x41266d||0x1==_0x41266d)&&0x2==_0x41ac51&&_0x3ef497['isIntersecting'](_0x309add))return!0x0;if(0x2==_0x41266d&&0x3==_0x41ac51){const _0x58467e=_0x3ecf41['_findSuggestions'](_0x3ef497,'insertion')['filter'](({suggestion:_0x36ceef,meta:_0x38d4ec})=>_0x38d4ec['isOwn']&&'convertInlineImageToBlock'==_0x36ceef['subType']);if(_0x58467e['length']>0x1&&_0x309add['end']['isEqual'](_0x3ef497['start']))return!0x0;if(0x1==_0x58467e['length']&&(_0x3ef497['start']['isEqual'](_0x309add['end'])||_0x3ef497['end']['isEqual'](_0x309add['start'])))return!0x0;}if(0x3==_0x41266d&&0x3==_0x41ac51&&_0x3ef497['start']['isBefore'](_0x309add['start'])){const _0x210791=_0x3ef497['end']['nodeAfter'],_0x3feb6a=_0x309add['start']['nodeBefore'];return _0x9c1a0a['isBlockImage'](_0x210791)&&_0x210791===_0x3feb6a;}return!0x1;}function _0x5d8c73(_0x41aa06,_0x4d9718){return _0x2d88ae(_0x41aa06,_0x4d9718)?[_0x41aa06,_0x4d9718]:_0x2d88ae(_0x4d9718,_0x41aa06)?[_0x4d9718,_0x41aa06]:null;}_0x104569['plugins']['has']('ImageResize')&&(_0x3ecf41['enableDefaultAttributesIntegration']('resizeImage'),_0x3ecf41['registerBlockAttribute']('resizedWidth'),_0x3ecf41['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4fd963,'FORMAT_IMAGE_SIZE'))),_0x104569['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3ecf41['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3ecf41['registerBlockAttribute']('alt')),_0x104569['plugins']['has']('PictureEditing')&&(_0x3ecf41['registerBlockAttribute']('sources'),_0x3ecf41['descriptionFactory']['registerDescriptionCallback'](_0x535b9d=>{if('attribute'!=_0x535b9d['type'])return;const {data:_0x2a5466}=_0x535b9d;return _0x2a5466&&'sources'==_0x2a5466['key']?{'type':'format','content':''}:void 0x0;})),_0x104569['plugins']['has']('ImageSizeAttributes')&&(_0x3ecf41['registerBlockAttribute']('width'),_0x3ecf41['registerBlockAttribute']('height'),_0x3ecf41['descriptionFactory']['registerDescriptionCallback'](_0x37cc36=>{if('attribute'!=_0x37cc36['type'])return;const {data:_0x450d16}=_0x37cc36;return!_0x450d16||'width'!=_0x450d16['key']&&'height'!=_0x450d16['key']?void 0x0:{'type':'format','content':''};})),_0x3ecf41['descriptionFactory']['registerDescriptionCallback'](_0x5d768d=>{if(!!_0x29017b['find'](({type:_0xcfb62c,subType:_0x47b717})=>_0x5d768d['type']==_0xcfb62c&&_0x5d768d['subType']==_0x47b717))return _0x5d768d['previous']?{}:void 0x0;}),_0x3ecf41['descriptionFactory']['registerDescriptionCallback'](_0x5ddf4e=>{if('insertion'==_0x5ddf4e['type']||'deletion'==_0x5ddf4e['type']){const _0x223707=_0x5ddf4e['getContainedElement']();if(_0x223707&&_0x223707['is']('element','caption'))return{'type':'insertion'==_0x5ddf4e['type']?'addObject':'removeObject','element':_0x223707,'quantity':0x1};}}),_0x3ecf41['descriptionFactory']['registerDescriptionCallback'](_0x2835c9=>'formatBlock'==_0x2835c9['type']&&'convertInlineImageToBlock'==_0x2835c9['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2835c9['type']&&'convertBlockImageToInline'==_0x2835c9['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3ecf41['descriptionFactory']['registerDescriptionCallback'](_0x3b7e71=>{if('attribute'!=_0x3b7e71['type'])return;const {data:_0x583e77}=_0x3b7e71;if(!_0x583e77||'alt'!=_0x583e77['key'])return;const _0x2bbe30=_0x583e77['newValue'];return _0x2bbe30?{'type':'format','content':o(_0x4fd963,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2bbe30+'\x22')}:{'type':'format','content':o(_0x4fd963,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42efa3=this['editor'],_0x43f4f7=_0x42efa3['locale'];_0x42efa3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10cd93=>{if('formatBlock'!=_0x10cd93['type']&&'formatInline'!=_0x10cd93['type'])return;const {data:_0xb660e2}=_0x10cd93;if(_0xb660e2){if('imageTextAlternative'==_0xb660e2['commandName']){const _0x16427e=_0xb660e2['commandParams'][0x0]['newValue'];return _0x16427e?{'type':'format','content':o(_0x43f4f7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x16427e+'\x22')}:{'type':'format','content':o(_0x43f4f7,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xb660e2['commandName']){const _0x16704a=_0xb660e2['commandParams'][0x0]['width'];return _0x16704a?{'type':'format','content':o(_0x43f4f7,'*Set\x20image\x20width:*\x20%0',_0x16704a)}:{'type':'format','content':o(_0x43f4f7,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x2bd390{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x96c6f6=this['editor']['locale'],_0x2e1846=this['editor']['plugins']['get']('TrackChangesEditing');_0x2e1846['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2e1846['registerBlockAttribute']('src'),_0x2e1846['descriptionFactory']['registerDescriptionCallback'](_0x2e1099=>{if('attribute'!=_0x2e1099['type'])return;const {data:_0x4719db}=_0x2e1099;return _0x4719db&&'src'==_0x4719db['key']?_0x4719db['newValue']&&_0x4719db['oldValue']?{'type':'format','content':o(_0x96c6f6,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x6c9c03=this['editor']['plugins']['get']('TrackChangesEditing');_0x6c9c03['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x6c9c03['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x6c9c03['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x6c9c03['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27030f=this['editor'],_0x2b2dca=_0x27030f['locale'];_0x27030f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56809b=>{if('formatBlock'!=_0x56809b['type']&&'formatInline'!=_0x56809b['type'])return;const {data:_0x2b6000}=_0x56809b;if(!_0x2b6000||'replaceImageSource'!=_0x2b6000['commandName'])return;return{'type':'format','content':o(_0x2b2dca,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x2bd390{['afterInit'](){const _0x4d3418=this['editor'];if(!_0x4d3418['plugins']['has']('ImageStyleEditing'))return;const _0x524fa3=_0x4d3418['plugins']['get']('TrackChangesEditing'),_0x2fe9f1=_0x4d3418['plugins']['get']('ImageUtils'),_0x9296d4={};_0x524fa3['enableCommand']('imageStyle',(_0x285ade,_0x32ad5b)=>{const _0x2149e2=_0x4d3418['plugins']['get']('Users')['me'],_0xc7f3d4=_0x4d3418['commands']['get']('imageStyle');let _0xcb723f=_0x2fe9f1['getClosestSelectedImageElement'](_0x4d3418['model']['document']['selection']),_0x29f7cd=_0x4d3418['model']['createRangeOn'](_0xcb723f),_0x1d4b25=_0xc7f3d4['value'];if(_0x1d4b25==_0x32ad5b['value'])return;const _0x57f977={'commandName':'imageStyle','commandParams':[_0x32ad5b],'formatGroupId':_0x309c8a()};_0x4d3418['model']['change'](()=>{if(_0x524fa3['getSuggestions']()['filter'](_0x282a2c=>_0x282a2c['isInContent']&&_0x2149e2==_0x282a2c['author']&&('formatBlock'==_0x282a2c['type']||'formatInline'==_0x282a2c['type'])&&('imageStylePreApply'==_0x282a2c['subType']||'imageStylePostApply'==_0x282a2c['subType'])&&_0x282a2c['getFirstRange']()['isEqual'](_0x29f7cd))['forEach'](_0x2892ae=>_0x524fa3['discardSuggestion'](_0x2892ae['head'])),_0xcb723f=_0x2fe9f1['getClosestSelectedImageElement'](_0x4d3418['model']['document']['selection']),_0x29f7cd=_0x4d3418['model']['createRangeOn'](_0xcb723f),_0xc7f3d4['refresh'](),_0x4d3418['commands']['get']('imageTypeInline')['refresh'](),_0x4d3418['commands']['get']('imageTypeBlock')['refresh'](),_0x1d4b25=_0xc7f3d4['value'],_0x1d4b25!=_0x32ad5b['value'])return _0x2fe9f1['isInlineImage'](_0xcb723f)&&_0xc7f3d4['shouldConvertImageType'](_0x32ad5b['value'],_0xcb723f)?(_0x285ade({..._0x32ad5b,'setImageSizes':!0x1}),_0xcb723f=_0x2fe9f1['getClosestSelectedImageElement'](_0x4d3418['model']['document']['selection']),void _0x524fa3['markBlockFormat'](_0xcb723f,{..._0x57f977,'commandReversedParams':[{'value':_0x1d4b25||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2fe9f1['isBlockImage'](_0xcb723f)?_0x524fa3['markBlockFormat'](_0xcb723f,_0x57f977,[],'imageStylePostApply'):_0x524fa3['markInlineFormat'](_0x29f7cd,_0x57f977,'imageStylePostApply'));});});for(const _0x44ac07 of _0x4d3418['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x9296d4[_0x44ac07['name']]=_0x44ac07['title']['toLowerCase']();_0x524fa3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x524fa3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x524fa3['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x524fa3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4c2de5])=>{_0x2fe9f1['setImageNaturalSizeAttributes'](_0x4c2de5['getContainedElement']());}),_0x524fa3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2a2e1d,_0x3259db)=>{_0x524fa3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2a2e1d,{'commandName':_0x3259db['commandName'],'commandParams':_0x3259db['commandReversedParams']});}),_0x524fa3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x9c07a,_0x1c4b40){if(_0x12801d(_0x9c07a,_0x1c4b40))return[_0x9c07a,_0x1c4b40];if(_0x12801d(_0x1c4b40,_0x9c07a))return[_0x1c4b40,_0x9c07a];return null;});const _0x5a8f11=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x12801d(_0x4fec23,_0xd7e394){const _0x36d9ec=_0x5a8f11['findIndex'](({type:_0x47fac6,subType:_0x165d4d})=>_0x4fec23['type']==_0x47fac6&&_0x4fec23['subType']==_0x165d4d),_0x16383c=_0x5a8f11['findIndex'](({type:_0x30a83b,subType:_0x5b27fe})=>_0xd7e394['type']==_0x30a83b&&_0xd7e394['subType']==_0x5b27fe);if(_0x36d9ec<0x0||_0x16383c<0x0)return!0x1;const _0x37f0ff=_0x4fec23['getFirstRange'](),_0x1dd128=_0xd7e394['getFirstRange']();if((0x0==_0x36d9ec||0x1==_0x36d9ec)&&0x2==_0x16383c&&_0x37f0ff['isIntersecting'](_0x1dd128))return!0x0;if(0x2==_0x36d9ec&&0x3==_0x16383c){const _0x4d272f=_0x524fa3['_findSuggestions'](_0x37f0ff,'insertion')['filter'](({suggestion:_0x9a150e,meta:_0x362532})=>_0x362532['isOwn']&&'convertInlineImageToBlock'==_0x9a150e['subType']);if(_0x4d272f['length']>0x1&&_0x1dd128['end']['isEqual'](_0x37f0ff['start']))return!0x0;if(0x1==_0x4d272f['length']&&(_0x37f0ff['start']['isEqual'](_0x1dd128['end'])||_0x37f0ff['end']['isEqual'](_0x1dd128['start'])))return!0x0;}if(0x3==_0x36d9ec&&0x3==_0x16383c&&_0x37f0ff['start']['isBefore'](_0x1dd128['start'])){const _0x1cbb96=_0x37f0ff['end']['nodeAfter'],_0x5683ed=_0x1dd128['start']['nodeBefore'];return _0x2fe9f1['isBlockImage'](_0x1cbb96)&&_0x1cbb96===_0x5683ed;}return!0x1;}_0x4d3418['model']['document']['registerPostFixer'](()=>{let _0x33a0ea=!0x1;const _0x11a10d=Array['from'](_0x4d3418['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x49b54d,data:_0x6f6a45}of _0x11a10d){const {group:_0x27caab,type:_0xbb6cb1,subType:_0x2057d1,id:_0x3bf42b}=_0x524fa3['_splitMarkerName'](_0x49b54d);if('suggestion'==_0x27caab&&_0x524fa3['hasSuggestion'](_0x3bf42b)){if('formatBlock'==_0xbb6cb1&&('imageStylePreApply'==_0x2057d1||'imageStylePostApply'==_0x2057d1)){const _0x3bce12=_0x524fa3['getSuggestion'](_0x3bf42b);if(_0x6f6a45['newRange']){const _0x2b523f=_0x3bce12['getFirstRange']()['getContainedElement']();if(_0x2fe9f1['isBlockImage'](_0x2b523f))continue;_0x524fa3['discardSuggestion'](_0x3bce12),_0x33a0ea=!0x0;}}if('insertion'==_0xbb6cb1&&'imageCaption'==_0x2057d1&&!_0x6f6a45['newRange']){const _0x167eb2=_0x524fa3['getSuggestion'](_0x3bf42b);_0x167eb2['next']&&_0x167eb2['next']['isInContent']&&(_0x524fa3['discardSuggestion'](_0x167eb2['next']),_0x33a0ea=!0x0);}}}return _0x33a0ea;}),this['_registerLegacyDescription'](_0x9296d4);}['_registerLegacyDescription'](_0xe5b9e1){const _0x1a8db3=this['editor'],_0x1202d0=_0x1a8db3['locale'];_0x1a8db3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34b12d=>{if('formatBlock'!=_0x34b12d['type']&&'formatInline'!=_0x34b12d['type'])return;const {data:_0x32157f}=_0x34b12d;if(!_0x32157f||'imageStyle'!=_0x32157f['commandName'])return;const _0xe3741b=_0x32157f['commandParams'][0x0]['value'];return _0x8cfd5f('side'===_0xe3741b?o(_0x1202d0,'FORMAT_SIDE_IMAGE'):_0xe5b9e1[_0xe3741b]||_0xe3741b);function _0x8cfd5f(_0x1b3fa3){return{'type':'format','content':o(_0x1202d0,'*Format:*\x20%0',_0x1b3fa3)};}});}}class ct extends _0x2bd390{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x16b642){super(_0x16b642),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5c2b6b=this['editor'],_0x31a67d=_0x5c2b6b['commands']['get']('importWord'),_0xe12c=_0x5c2b6b['commands']['get']('trackChanges');_0x31a67d&&(_0x31a67d['on']('execute',(_0x4ae3de,[,_0x4e7daf])=>{this['_trackChangesValueDuringImport']=_0xe12c['value'],_0x4e7daf['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x31a67d,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x31a67d,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xe12c['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5c2b6b['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x17b461,_0x460c99){const {suggestions:_0x46608d}=_0x460c99,_0xfdb788=this['editor']['commands']['get']('trackChanges'),_0x4b5904=_0xfdb788['value'];this['_trackChangesValueDuringImport']!==_0x4b5904&&(_0xfdb788['execute'](),this['_trackChangesExecuted']=!0x0),_0x46608d&&_0x46608d['forEach'](({id:_0x28c7ef,type:_0xae7c1d,author:_0x17e9ad,created_at:_0x1e1f54})=>{const _0x525012={'id':_0x28c7ef,'type':_0xae7c1d,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x17e9ad,'createdAt':_0x1e1f54?new Date(_0x1e1f54):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x525012);});}}class ut extends _0x2bd390{['afterInit'](){const _0x2d3a04=this['editor'],_0x7baeb3=_0x2d3a04['plugins']['get']('TrackChangesEditing');if(_0x2d3a04['plugins']['has']('IndentEditing')&&(_0x7baeb3['enableCommand']('indent'),_0x7baeb3['enableCommand']('outdent')),_0x2d3a04['plugins']['has']('IndentBlock')){for(const _0x2cdac9 of['indentBlock','outdentBlock'])_0x7baeb3['enableDefaultAttributesIntegration'](_0x2cdac9);}const _0x2fd960=_0x2d3a04['locale'];_0x7baeb3['registerBlockAttribute']('blockIndent'),_0x7baeb3['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x2fd960,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5807a0=this['editor'],_0x583f11=_0x5807a0['locale'],_0x4ae6d6=_0x5807a0['plugins']['get']('TrackChangesEditing');_0x4ae6d6['descriptionFactory']['registerDescriptionCallback'](_0x4ef9f9=>{if('formatBlock'!=_0x4ef9f9['type'])return;const {data:_0x23541b}=_0x4ef9f9;if(!_0x23541b)return;if('indentBlock'!=_0x23541b['commandName']&&'outdentBlock'!=_0x23541b['commandName'])return;const _0x9dff66=_0x4ef9f9['getItems']()[0x0],_0x2a7b35=_0x4ae6d6['descriptionFactory']['getItemLabel'](_0x9dff66);return'indentBlock'==_0x23541b['commandName']?{'type':'format','content':o(_0x583f11,'*Indent:*\x20%0',_0x2a7b35)}:'outdentBlock'==_0x23541b['commandName']?{'type':'format','content':o(_0x583f11,'*Outdent:*\x20%0',_0x2a7b35)}:void 0x0;});}}class ft extends _0x2bd390{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x2bd390{['afterInit'](){const _0x4f61cd=this['editor'];if(!_0x4f61cd['plugins']['has']('LinkEditing'))return;const _0xc6ce23=_0x4f61cd['plugins']['get']('TrackChangesEditing'),_0x1e70af=_0x4f61cd['commands']['get']('link');_0xc6ce23['enableDefaultAttributesIntegration']('link'),_0xc6ce23['enableDefaultAttributesIntegration']('unlink'),_0xc6ce23['registerInlineAttribute']('linkHref');for(const _0x5cd96b of _0x1e70af['manualDecorators'])_0xc6ce23['registerInlineAttribute'](_0x5cd96b['id']),_0xc6ce23['descriptionFactory']['registerAttributeLabel'](_0x5cd96b['id'],'link\x20('+_0x5cd96b['label']['toLowerCase']()+')');_0xc6ce23['descriptionFactory']['registerDescriptionCallback'](_0x1bd8af=>{if('attribute'!=_0x1bd8af['type'])return;const {data:_0x5ccd1c}=_0x1bd8af;if(!_0x5ccd1c||'linkHref'!=_0x5ccd1c['key'])return;const _0x4385b8=_0x5ccd1c['newValue'],_0x1a241a=_0x4f61cd['locale'];return{'type':'format','content':null==_0x4385b8?o(_0x1a241a,'*Remove\x20link*'):o(_0x1a241a,'*Set\x20link:*\x20%0','\x22'+_0x4385b8+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1553ee=this['editor'],_0xbc99bc=_0x1553ee['locale'];_0x1553ee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x227790=>{if('formatInline'!=_0x227790['type'])return;const {data:_0x415201}=_0x227790;if(_0x415201){if('link'==_0x415201['commandName']){const _0x31724b=_0x415201['commandParams'][0x0];return{'type':'format','content':o(_0xbc99bc,'*Set\x20link:*\x20%0','\x22'+_0x31724b+'\x22')};}return'unlink'==_0x415201['commandName']?{'type':'format','content':o(_0xbc99bc,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x2bd390{['afterInit'](){const _0x306b36=this['editor'],_0x5ce6c6=_0x306b36['locale'];if(!_0x306b36['plugins']['has']('LegacyListEditing'))return;const _0x54baa8=_0x306b36['plugins']['get']('TrackChangesEditing'),_0x224ebe=_0x306b36['plugins']['has']('LegacyTodoListEditing');function _0x438698(_0x55dd2f){return()=>{const _0x275c46=_0x306b36['model']['document']['selection'],_0x188c4e=_0x306b36['commands']['get'](_0x55dd2f);if(_0x188c4e['value'])return void _0x306b36['execute']('paragraph',{});const _0x5e8e28=_0x55dd2f['slice'](0x0,-0x4),_0x39afdd=function(_0x3e6e0f,_0x4575b5,_0x557956){let _0x552b4a=Array['from'](_0x3e6e0f)['filter'](_0x3d8706=>function(_0x12c3c6,_0x306adc){return _0x306adc['checkChild'](_0x12c3c6['parent'],'listItem')&&!_0x306adc['isObject'](_0x12c3c6);}(_0x3d8706,_0x557956));_0x552b4a=_0x552b4a['filter'](_0x2d2ba7=>!_0x2d2ba7['is']('element','listItem')||_0x2d2ba7['getAttribute']('listType')!=_0x4575b5);const _0x10ac2d=new Set();for(const _0x504f9a of _0x552b4a)_0x504f9a['is']('element','listItem')?_0x10ac2d['add'](Le(_0x504f9a)):_0x10ac2d['add'](_0x504f9a);return Array['from'](_0x10ac2d);}(_0x275c46['getSelectedBlocks'](),_0x5e8e28,_0x306b36['model']['schema']);_0x306b36['model']['change'](()=>{for(const _0x56950f of _0x39afdd)_0x54baa8['markBlockFormat'](_0x56950f,{'commandName':_0x55dd2f,'commandParams':[{'forceValue':!_0x188c4e['value']}],'formatGroupId':'blockName'},Ee(_0x56950f));});};}function _0x3c1064(_0x1cd742){return()=>{const _0x4162c9=function(_0x12aa46){let _0x51430b=Array['from'](_0x12aa46);const _0x30fc5a=_0x51430b['findIndex'](_0x1c8dfd=>'listItem'!=_0x1c8dfd['name']);return _0x30fc5a>-0x1&&(_0x51430b=_0x51430b['slice'](0x0,_0x30fc5a)),_0x51430b;}(_0x306b36['model']['document']['selection']['getSelectedBlocks']()),_0x39cbba=_0x306b36['model']['createRange'](_0x306b36['model']['createPositionAt'](_0x4162c9[0x0],'before'),_0x306b36['model']['createPositionAt'](_0x4162c9[_0x4162c9['length']-0x1],'end'));_0x306b36['model']['change'](()=>{_0x54baa8['markBlockFormat'](_0x39cbba,{'commandName':_0x1cd742,'commandParams':[],'formatGroupId':'listIndent'},function(_0x48a08d){const _0x4b7f2a=new Set();for(const _0x4f82d1 of _0x48a08d){let _0x4f0361=_0x4f82d1['nextSibling'];for(;_0x4f0361&&_0x4f0361['getAttribute']('listIndent')>_0x4f82d1['getAttribute']('listIndent');)_0x4b7f2a['add'](_0x4f0361),_0x4f0361=_0x4f0361['nextSibling'];}return Array['from'](_0x4b7f2a);}(_0x4162c9));});};}_0x54baa8['enableCommand']('numberedList',_0x438698('numberedList')),_0x54baa8['enableCommand']('bulletedList',_0x438698('bulletedList')),_0x224ebe&&_0x54baa8['enableCommand']('todoList',_0x438698('todoList')),_0x54baa8['enableCommand']('indentList',_0x3c1064('indentList')),_0x54baa8['enableCommand']('outdentList',_0x3c1064('outdentList')),_0x224ebe&&_0x54baa8['enableCommand']('checkTodoList',()=>{const _0x241515=_0x306b36['commands']['get']('checkTodoList'),_0x51f556=Array['from'](_0x241515['_selectedElements']);_0x51f556['filter'](_0x1d9894=>_0x1d9894['getAttribute']('todoListChecked')!=_0x241515['value']),_0x306b36['model']['change'](()=>{for(const _0xf0ef6b of _0x51f556)_0x54baa8['markBlockFormat'](_0xf0ef6b,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x241515['value']}]});});}),_0x54baa8['descriptionFactory']['registerElementLabel']('listItem',_0x15c558=>o(_0x5ce6c6,'ELEMENT_LIST_ITEM',_0x15c558)),_0x54baa8['descriptionFactory']['registerDescriptionCallback'](_0x2e76d3=>{if('formatBlock'!=_0x2e76d3['type']&&'formatInline'!=_0x2e76d3['type'])return;const {data:_0x47eef8}=_0x2e76d3;if(_0x47eef8){if('numberedList'==_0x47eef8['commandName']||'bulletedList'==_0x47eef8['commandName']||'todoList'==_0x47eef8['commandName'])switch(_0x47eef8['commandName']['replace']('List','')){case'bulleted':return _0x5f2d1c(o(_0x5ce6c6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5f2d1c(o(_0x5ce6c6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5f2d1c(o(_0x5ce6c6,'ELEMENT_TODO_LIST'));}if('indentList'==_0x47eef8['commandName'])return{'type':'format','content':o(_0x5ce6c6,'*Indent:*\x20%0',o(_0x5ce6c6,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x47eef8['commandName'])return{'type':'format','content':o(_0x5ce6c6,'*Outdent:*\x20%0',o(_0x5ce6c6,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x47eef8['commandName'])return _0x47eef8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5ce6c6,'*Check\x20item*')}:{'type':'format','content':o(_0x5ce6c6,'*Uncheck\x20item*')};}function _0x5f2d1c(_0x48294b){return{'type':'format','content':o(_0x5ce6c6,'*Change\x20to:*\x20%0',_0x48294b)};}});}}function Le(_0x1f2052){const _0x587770=_0x1f2052['getAttribute']('listIndent');if(0x0==_0x587770)return _0x1f2052;let _0x60e4a1=_0x1f2052;for(;_0x1f2052['previousSibling']&&_0x1f2052['previousSibling']['is']('element','listItem');){const _0x5f33fd=_0x1f2052['previousSibling']['getAttribute']('listIndent');if(_0x5f33fd==_0x587770)_0x60e4a1=_0x1f2052['previousSibling'];else{if(_0x5f33fd<_0x587770)break;}_0x1f2052=_0x1f2052['previousSibling'];}return _0x60e4a1;}function Ee(_0xae1b82){const _0x6756ac=[];if(_0xae1b82['is']('element','listItem')&&_0xae1b82['getAttribute']('listIndent')>0x0){let _0x408f76=_0xae1b82['nextSibling'];for(;_0x408f76&&'listItem'==_0x408f76['name']&&_0x408f76['getAttribute']('listIndent')==_0xae1b82['getAttribute']('listIndent');)_0x6756ac['push'](_0x408f76),_0x408f76=_0x408f76['nextSibling'];}return _0x6756ac;}class Q extends _0x2bd390{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3e3413=this['editor']['config']['get']('list.properties'),_0x4a8704=this['editor']['plugins']['get']('TrackChangesEditing');_0x3e3413['styles']&&_0x4a8704['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3e3413['reversed']&&_0x4a8704['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3e3413['startIndex']&&_0x4a8704['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4a8704['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3a83db,_0x453103={}){const _0x16948a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x374b66=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x16948a['markMultiRangeBlockFormat'](_0x374b66,{'commandName':'listStyle','commandParams':[{'type':_0x453103['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x455c60,_0x1d9766={}){const _0x2dbedb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x6dd0b5=this['_getSuggestionBlocks'](_0x4e2097=>_0x4e2097['is']('element','listItem')&&'numbered'===_0x4e2097['getAttribute']('listType'));if(_0x6dd0b5['length']<0x1)return;const _0x553205=_0x6dd0b5['map'](_0x4e82bd=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4e82bd,'before'),this['editor']['model']['createPositionAt'](_0x4e82bd,0x0)));this['editor']['model']['change'](()=>{_0x2dbedb['markMultiRangeBlockFormat'](_0x553205,{'commandName':'listReversed','commandParams':[{'reversed':_0x1d9766['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xc19239,_0x147046={}){const _0x21d268=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5cbf11=this['_getSuggestionBlocks'](_0x268954=>_0x268954['is']('element','listItem')&&'numbered'===_0x268954['getAttribute']('listType'));if(_0x5cbf11['length']<0x1)return;const _0x3d4b3d=_0x5cbf11['map'](_0x5b4584=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5b4584,'before'),this['editor']['model']['createPositionAt'](_0x5b4584,0x0)));this['editor']['model']['change'](()=>{_0x21d268['markMultiRangeBlockFormat'](_0x3d4b3d,{'commandName':'listStart','commandParams':[{'startIndex':_0x147046['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x235468){if('formatBlock'!=_0x235468['type']&&'formatInline'!=_0x235468['type'])return;const _0x1e907d=this['editor']['locale'],{data:_0x28863c}=_0x235468;if(!_0x28863c)return;let _0x40da3c,_0x15578e;switch(_0x28863c['commandName']){case'listStyle':_0x40da3c='*Change\x20to:*\x20%0',_0x15578e={'type':'format','content':o(_0x1e907d,_0x40da3c,o(_0x1e907d,this['_getTranslationKeyForListStyle'](_0x28863c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x40da3c=_0x28863c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x15578e={'type':'format','content':o(_0x1e907d,_0x40da3c)};break;case'listStart':_0x40da3c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x15578e={'type':'format','content':o(_0x1e907d,_0x40da3c,_0x28863c['commandParams'][0x0]['startIndex'])};}return _0x15578e;}['_getSuggestionBlocksForListStyle'](){const _0x199a6a=this['editor']['plugins']['get']('LegacyListUtils');let _0x25ae0b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x25ae0b[0x0]?.['is']('element','listItem')&&_0x25ae0b['unshift'](..._0x199a6a['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x25ae0b[_0x25ae0b['length']-0x1]?.['is']('element','listItem')&&_0x25ae0b['push'](..._0x199a6a['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x25ae0b=[...new Set(_0x25ae0b)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x25ae0b=_0x25ae0b['filter'](_0x6052c0=>_0x6052c0['is']('element','listItem'))),_0x25ae0b;}['_getSuggestionBlocks'](_0x393bb1){const _0x19987b=this['editor']['plugins']['get']('LegacyListUtils');let _0x4ee143=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x393bb1)['map'](_0x46a0b4=>{const _0x2b72ca=this['editor']['model']['createPositionAt'](_0x46a0b4,0x0);return[..._0x19987b['getSiblingNodes'](_0x2b72ca,'backward'),..._0x19987b['getSiblingNodes'](_0x2b72ca,'forward')];})['flat']();return _0x4ee143=[...new Set(_0x4ee143)],_0x4ee143;}['_getTranslationKeyForListStyle'](_0x513966){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x513966)||'default')['toUpperCase']()+'_LIST_'+_0x513966['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x2bd390{['afterInit'](){const _0x22f5ea=this['editor'];if(!_0x22f5ea['plugins']['has']('MediaEmbedEditing'))return;const _0x154430=_0x22f5ea['plugins']['get']('TrackChangesEditing'),_0x22fc1a=_0x22f5ea['locale'];_0x154430['enableCommand']('mediaEmbed'),_0x154430['descriptionFactory']['registerElementLabel']('media',_0x34b060=>o(_0x22fc1a,'ELEMENT_MEDIA',_0x34b060)),_0x22f5ea['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x389abf,{writer:_0x1ad3a6,options:_0xdb5254})=>{if(_0xdb5254['showSuggestionHighlights'])return _0x1ad3a6['createEmptyElement']('div');},'converterPriority':'high'}),_0x22f5ea['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1c0e16,_0x574e91,_0x20803e)=>{_0x20803e['options']['showSuggestionHighlights']&&_0x1c0e16['stop']();},{'priority':'high'});}}class mt extends _0x2bd390{['afterInit'](){const _0xb459e5=this['editor'];_0xb459e5['plugins']['has']('MentionEditing')&&_0xb459e5['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x2bd390{['afterInit'](){const _0x5b3792=this['editor'];if(!_0x5b3792['plugins']['has']('MergeFieldsEditing'))return;const _0x75da9b=_0x5b3792['plugins']['get']('TrackChangesEditing'),_0x1268a8=_0x5b3792['locale'];_0x75da9b['enableCommand']('insertMergeField'),_0x75da9b['enableCommand']('insertMergeFieldBlock'),_0x75da9b['enableCommand']('insertMergeFieldImage'),_0x75da9b['descriptionFactory']['registerElementLabel']('mergeField',_0x2cff02=>o(_0x1268a8,'ELEMENT_MERGE_FIELD',_0x2cff02)),_0x75da9b['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x49dc9d=>o(_0x1268a8,'ELEMENT_MERGE_FIELD',_0x49dc9d)),_0x75da9b['descriptionFactory']['registerDescriptionCallback'](_0x2f6853=>{if('insertion'!=_0x2f6853['type']&&'deletion'!=_0x2f6853['type'])return;const _0x336f47=_0x2f6853['getContainedElement']();if(null==_0x336f47)return;const _0xa76569=_0x5b3792['plugins']['get']('MergeFieldsEditing');let _0x392de3;switch(_0xa76569['getMergeFieldType'](_0x336f47)){case null:return;case'image':{const _0x202566=_0xa76569['unwrapAffixes'](_0x336f47['getAttribute']('src'));_0x392de3=_0xa76569['getLabel'](_0x202566)||_0x202566;break;}default:{const _0xac9b2d=_0x336f47['getAttribute']('id');_0x392de3=_0xa76569['getLabel'](_0xac9b2d)||_0xac9b2d;break;}}return'insertion'==_0x2f6853['type']?{'type':'insertion','content':o(_0x1268a8,'*Insert:*\x20%0','\x22'+_0x392de3+'\x22\x20'+o(_0x1268a8,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x1268a8,'*Remove:*\x20%0','\x22'+_0x392de3+'\x22\x20'+o(_0x1268a8,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x2bd390{['afterInit'](){const _0x31ae7c=this['editor'],_0x5b6d7b=_0x31ae7c['plugins']['get']('TrackChangesEditing');_0x31ae7c['plugins']['has']('MultiLevelList')&&(_0x5b6d7b['enableDefaultAttributesIntegration']('multiLevelList'),_0x5b6d7b['registerBlockAttribute']('listMarkerStyle'),_0x5b6d7b['descriptionFactory']['registerDescriptionCallback'](_0x3d11ed=>this['handleDescriptions'](_0x3d11ed)));}['handleDescriptions'](_0x20e229){const _0x56d628=this['editor']['locale'],{data:_0x5062d7}=_0x20e229,_0x524765={'type':'format','content':''};if(_0x5062d7&&'listMarkerStyle'==_0x5062d7['key']){if(!_0x5062d7['oldValue'])return{'type':'format','content':o(_0x56d628,'*Set\x20format:*\x20%0',o(_0x56d628,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5062d7['newValue']+')'};if(!_0x5062d7['newValue']){let _0xac1dfd=_0x20e229['head'];for(;_0xac1dfd;){if(_0xac1dfd['data']&&'listType'==_0xac1dfd['data']['key']&&_0xac1dfd['data']['newValue'])return _0x524765;_0xac1dfd=_0xac1dfd['next'];}return{'type':'format','content':o(_0x56d628,'*Remove\x20format:*\x20%0',o(_0x56d628,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5062d7['oldValue']+')'};}}}}class kt extends _0x2bd390{['afterInit'](){const _0x512154=this['editor'];if(!_0x512154['plugins']['has']('PageBreakEditing'))return;_0x512154['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2aff37=_0x512154['plugins']['get']('TrackChangesEditing'),_0x10c562=_0x512154['locale'];_0x2aff37['descriptionFactory']['registerElementLabel']('pageBreak',_0x1d63f8=>o(_0x10c562,'ELEMENT_PAGE_BREAK',_0x1d63f8));}}class bt extends _0x2bd390{['afterInit'](){const _0x59027c=this['editor'];if(!_0x59027c['plugins']['has']('Paragraph'))return;const _0xa5ddf5=_0x59027c['locale'],_0x125b4d=_0x59027c['plugins']['get']('TrackChangesEditing');_0x125b4d['descriptionFactory']['registerElementLabel']('paragraph',_0x4066a7=>o(_0xa5ddf5,'ELEMENT_PARAGRAPH',_0x4066a7)),_0x125b4d['enableDefaultAttributesIntegration']('paragraph'),_0x125b4d['enableCommand']('insertParagraph'),_0x59027c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x59027c),{'priority':'highest'}),_0x59027c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x55338f,_0x3d9460,_0x8fc34b)=>{_0x8fc34b['options']['showSuggestionHighlights']&&nr(_0x59027c,{'showActiveMarker':!0x1})(_0x55338f,_0x3d9460,_0x8fc34b);},{'priority':'highest'});const _0x75a627=_0x125b4d['descriptionFactory'];_0x75a627['registerDescriptionCallback'](_0x579f8d=>{if('insertion'!==_0x579f8d['type'])return;const {start:_0x1f1bdf,end:_0x5c4c38}=_0x579f8d['getFirstRange']();if(!_0x1f1bdf['isTouching'](_0x5c4c38)||!_0x1f1bdf['nodeAfter'])return;const _0x2d6187=_0x59027c['model']['schema'],_0x405347=_0x1f1bdf['nodeAfter'];return _0x2d6187['isBlock'](_0x405347)&&!_0x2d6187['isLimit'](_0x405347)&&_0x2d6187['checkChild'](_0x405347,'$text')?{'type':'insertion','content':o(_0xa5ddf5,'*Insert:*\x20%0',_0x75a627['getItemLabel'](_0x405347,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3cf29e=this['editor'],_0x5cbf9e=_0x3cf29e['locale'];_0x3cf29e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x597ac3=>{if('formatBlock'!=_0x597ac3['type'])return;const {data:_0x3a26d6}=_0x597ac3;return _0x3a26d6&&'paragraph'==_0x3a26d6['commandName']?{'type':'format','content':o(_0x5cbf9e,'*Change\x20to:*\x20%0',o(_0x5cbf9e,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3d3d66,{showActiveMarker:_0x4f4916=!0x0}={}){return(_0x41ac86,_0x27cdb3,_0xbacbc0)=>{const _0x184d23=_0x3d3d66['plugins']['get']('TrackChangesEditing'),_0x4ce77f=_0x27cdb3['markerRange']['start'],_0x1a1996=_0x27cdb3['markerRange']['end'],_0x2a564a=_0x3d3d66['model']['schema'];if(!_0x4ce77f['isTouching'](_0x1a1996)||!_0x4ce77f['nodeAfter'])return;const _0x3ec8b4=_0x4ce77f['nodeAfter'];if(_0x2a564a['isBlock'](_0x3ec8b4)&&!_0x2a564a['isLimit'](_0x3ec8b4)&&_0x2a564a['checkChild'](_0x3ec8b4,'$text')){if(!_0xbacbc0['consumable']['consume'](_0x27cdb3['markerRange'],_0x41ac86['name']))return;const {authorId:_0x3663e6}=_0x184d23['_splitMarkerName'](_0x27cdb3['markerName']),_0x358409=_0xbacbc0['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x3663e6}),_0x4100a4=_0xbacbc0['mapper']['toViewPosition'](_0x1a1996);_0x4f4916&&_0x184d23['activeMarkers']['includes'](_0x27cdb3['markerName'])&&_0xbacbc0['writer']['addClass']('ck-suggestion-marker--active',_0x358409),_0xbacbc0['writer']['insert'](_0x4100a4,_0x358409),_0xbacbc0['mapper']['bindElementToMarker'](_0x358409,_0x27cdb3['markerName']);}};}class yt extends _0x2bd390{['afterInit'](){const _0x177f1f=this['editor'];if(!_0x177f1f['plugins']['has']('RemoveFormatEditing'))return;_0x177f1f['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d2fc6=this['editor'];_0x2d2fc6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x318008=>{if('formatBlock'!=_0x318008['type']&&'formatInline'!=_0x318008['type'])return;const {data:_0x523b28}=_0x318008;return _0x523b28&&'removeFormat'==_0x523b28['commandName']?{'type':'format','content':o(_0x2d2fc6['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x2bd390{['afterInit'](){const _0xb3be67=this['editor'];if(!_0xb3be67['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2e404c=_0xb3be67['plugins']['get']('TrackChangesEditing');_0x2e404c['enableCommand']('goToPreviousRestrictedEditingException'),_0x2e404c['enableCommand']('goToNextRestrictedEditingException');const _0x90548e=_0xb3be67['plugins']['get']('RestrictedEditingModeEditing');_0x90548e['enableCommand']('trackChanges'),_0x90548e['enableCommand']('acceptSuggestion'),_0x90548e['enableCommand']('discardSuggestion'),_0x90548e['enableCommand']('acceptAllSuggestions'),_0x90548e['enableCommand']('discardAllSuggestions'),_0x90548e['enableCommand']('acceptSelectedSuggestions'),_0x90548e['enableCommand']('discardSelectedSuggestions');}}class St extends _0x2bd390{static get['requires'](){return[_0xf93acd];}['init'](){const _0x4c7f6d=this['editor'],_0x4f6422=_0x4c7f6d['plugins']['get']('TrackChangesEditing');_0x4f6422['enableCommand']('shiftEnter'),_0x4c7f6d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x4c7f6d),{'priority':'high'}),_0x4c7f6d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x4c7f6d),{'priority':'high'}),_0x4c7f6d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x478525,_0x435509,_0x49b65d)=>{_0x49b65d['options']['showSuggestionHighlights']&&je(_0x4c7f6d,{'showActiveMarker':!0x1})(_0x478525,_0x435509,_0x49b65d);}),_0x4f6422['descriptionFactory']['registerElementLabel']('softBreak',_0x4077a0=>o(_0x4c7f6d['locale'],'ELEMENT_LINE_BREAK',_0x4077a0));}}function je(_0x2b115e,{showActiveMarker:_0x212e77=!0x0}={}){return(_0x5cc0c0,_0x39476f,_0x38ddfd)=>{const _0x28a81e=_0x2b115e['plugins']['get']('TrackChangesEditing');if(!_0x38ddfd['consumable']['test'](_0x39476f['markerRange'],_0x5cc0c0['name']))return;const _0x5a2bb1=_0x2b115e['model'];for(const _0x14b7e1 of _0x39476f['markerRange']['getItems']()){if(!_0x14b7e1['is']('element','softBreak'))continue;const _0x52836e='deletion'==_0x39476f['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x154dd7}=_0x28a81e['_splitMarkerName'](_0x39476f['markerName']),_0x4375de=_0x38ddfd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x52836e,'data-author-id':_0x154dd7}),_0x2970cf=_0x38ddfd['mapper']['toViewPosition'](_0x5a2bb1['createPositionBefore'](_0x14b7e1));_0x212e77&&_0x28a81e['activeMarkers']['includes'](_0x39476f['markerName'])&&_0x38ddfd['writer']['addClass']('ck-suggestion-marker--active',_0x4375de),_0x38ddfd['writer']['insert'](_0x2970cf,_0x4375de),_0x38ddfd['mapper']['bindElementToMarker'](_0x4375de,_0x39476f['markerName']);}};}class At extends _0x2bd390{['afterInit'](){const _0x4e559c=this['editor'],_0x18600b=_0x4e559c['model'],_0x3e00f4=_0x4e559c['locale'];if(!_0x4e559c['plugins']['has']('StandardEditingModeEditing'))return;const _0x54c6f2=_0x4e559c['plugins']['get']('TrackChangesEditing'),_0x26361b='restrictedEditingException',_0x5e94ed=_0x4e559c['commands']['get'](_0x26361b);_0x54c6f2['enableCommand'](_0x26361b,(_0x2e989a,_0x3ac0d8={})=>{const _0x51f146=_0x18600b['document']['selection'];if(_0x51f146['isCollapsed'])return void _0x2e989a(_0x3ac0d8);const _0x18027f=void 0x0!==_0x3ac0d8['forceValue']?_0x3ac0d8['forceValue']:!_0x5e94ed['value'];_0x18600b['change'](()=>{const _0x4d6aef=Array['from'](_0x51f146['getRanges']());for(const _0x1a5cd9 of _0x4d6aef){const _0x4d7fc=_0x18027f?[_0x1a5cd9]:io(_0x26361b,_0x1a5cd9,_0x18600b);for(const _0x4c6c04 of _0x4d7fc)_0x54c6f2['markInlineFormat'](_0x4c6c04,{'commandName':_0x26361b,'commandParams':[{'forceValue':_0x18027f}]});}});}),_0x54c6f2['descriptionFactory']['registerDescriptionCallback'](_0x52be07=>{if('formatBlock'!=_0x52be07['type']&&'formatInline'!=_0x52be07['type'])return;const {data:_0x1a5632}=_0x52be07;return _0x1a5632&&_0x1a5632['commandName']==_0x26361b?_0x1a5632['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3e00f4,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3e00f4,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x2bd390{['afterInit'](){const _0x27de2c=this['editor'];if(!_0x27de2c['plugins']['has']('Style')||!_0x27de2c['plugins']['has']('DataSchema'))return;const _0x504b99=_0x27de2c['plugins']['get']('TrackChangesEditing'),_0xf6410d=_0x27de2c['locale'],_0x424866=_0x27de2c['config']['get']('style')||{},_0x38000a=_0x27de2c['plugins']['get']('GeneralHtmlSupport'),_0x780bfa=_0x27de2c['plugins']['get']('StyleUtils')['normalizeConfig'](_0x27de2c['plugins']['get']('DataSchema'),_0x424866['definitions']);_0x504b99['enableDefaultAttributesIntegration']('style');const _0x24e9c4=new Set();for(const _0x4d590b of _0x780bfa['block']){const _0x1fe025=_0x38000a['getGhsAttributeNameForElement'](_0x4d590b['element']);_0x24e9c4['add'](_0x1fe025);}const _0x491e43=new Set();for(const _0x102352 of _0x780bfa['inline']){const _0x411951=_0x38000a['getGhsAttributeNameForElement'](_0x102352['element']);_0x491e43['add'](_0x411951);for(const _0x1b7192 of _0x102352['ghsAttributes'])_0x491e43['add'](_0x1b7192);}for(const _0x2055a9 of _0x24e9c4)_0x504b99['registerBlockAttribute'](_0x2055a9),_0x504b99['descriptionFactory']['registerAttributeLabel'](_0x2055a9,o(_0xf6410d,'FORMAT_STYLE'));for(const _0x5523a8 of _0x491e43)_0x504b99['registerInlineAttribute'](_0x5523a8),_0x504b99['descriptionFactory']['registerAttributeLabel'](_0x5523a8,o(_0xf6410d,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x306497=this['editor'],_0x113347=_0x306497['locale'];_0x306497['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f206f=>{if('formatBlock'!=_0x5f206f['type']&&'formatInline'!=_0x5f206f['type'])return;const {data:_0x1eda38}=_0x5f206f;return _0x1eda38&&'style'===_0x1eda38['commandName']?_0x1eda38['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x113347,'*Set\x20format:*\x20%0',_0x1eda38['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x113347,'*Remove\x20format:*\x20%0',_0x1eda38['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x2bd390{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x26dc2d){super(_0x26dc2d),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4db63d=this['editor'],_0x5c75eb=_0x4db63d['model']['document']['selection'];if(!_0x4db63d['plugins']['has']('TableEditing'))return;const _0x387aa2=_0x4db63d['locale'],_0x1a737b=_0x4db63d['plugins']['get']('TrackChangesEditing'),_0xd912ba=_0x4db63d['plugins']['get']('TableUtils');_0x1a737b['descriptionFactory']['registerElementLabel']('table',_0x59b065=>o(_0x387aa2,'ELEMENT_TABLE',_0x59b065)),this['_setupColumnsRowsFixing'](),_0x1a737b['enableCommand']('insertTable'),_0x1a737b['enableCommand']('selectTableRow'),_0x1a737b['enableCommand']('selectTableColumn');for(const _0x453e04 of['insertTableRowAbove','insertTableRowBelow']){const _0x533dd8=_0x4db63d['commands']['get'](_0x453e04);_0x1a737b['enableCommand'](_0x453e04,_0x3c49e5=>{_0x4db63d['model']['change'](_0x23ae79=>{_0x3c49e5();const _0x18e508='above'===_0x533dd8['order'],_0x5c4d6b=_0xd912ba['getSelectionAffectedTableCells'](_0x5c75eb),_0xbe1105=_0xd912ba['getRowIndexes'](_0x5c4d6b),_0x2297fc=_0x18e508?_0xbe1105['first']-0x1:_0xbe1105['last']+0x1,_0x31c1b5=_0x5c4d6b[0x0]['findAncestor']('table'),_0x5f26a3=_0xd912ba['createTableWalker'](_0x31c1b5,{'startRow':_0x2297fc,'endRow':_0x2297fc}),_0x455da5=Array['from'](_0x5f26a3)['map'](_0x4bfcb1=>_0x23ae79['createRangeOn'](_0x4bfcb1['cell']));_0x1a737b['markMultiRangeInsertion'](_0x455da5,'tableRow');});});}for(const _0x1b56a9 of['insertTableColumnLeft','insertTableColumnRight']){const _0x8e6211=_0x4db63d['commands']['get'](_0x1b56a9);_0x1a737b['enableCommand'](_0x1b56a9,_0x3227af=>{_0x4db63d['model']['change'](_0x108b1b=>{_0x3227af();const _0x69a6ab='left'===_0x8e6211['order'],_0x10fb42=_0xd912ba['getSelectionAffectedTableCells'](_0x5c75eb),_0x54e905=_0xd912ba['getColumnIndexes'](_0x10fb42),_0x387a61=_0x69a6ab?_0x54e905['first']-0x1:_0x54e905['last']+0x1,_0x21efa7=_0x10fb42[0x0]['findAncestor']('table'),_0x37392c=_0xd912ba['createTableWalker'](_0x21efa7,{'startRow':0x0,'column':_0x387a61,'includeAllSlots':!0x1}),_0x28ad86=Array['from'](_0x37392c)['map'](_0x2fdb66=>_0x108b1b['createRangeOn'](_0x2fdb66['cell']));_0x1a737b['markMultiRangeInsertion'](_0x28ad86,'tableColumn');});});}for(const _0x3452db of['removeTableRow','removeTableColumn']){const _0x2f78ae=_0x3452db['substr'](0xb),_0x46a0cb=_0x2f78ae['toLowerCase'](),_0xa4b0cb=_0x46a0cb['substr'](0x0,0x3)+'span',_0x1a06c5='table'+_0x2f78ae,_0x5f2071='min'+_0x2f78ae,_0x1029f1='max'+_0x2f78ae;_0x1a737b['enableCommand'](_0x3452db,()=>{_0x4db63d['model']['change'](_0x178a50=>{const _0xebe0ff=_0xd912ba['getSelectionAffectedTableCells'](_0x5c75eb),_0x43b455=_0xebe0ff[0x0]['findAncestor']('table');let _0x5a7513;if('removeTableRow'==_0x3452db){const _0x354639=_0xd912ba['getRowIndexes'](_0xebe0ff);_0x5a7513={'startRow':_0x354639['first'],'endRow':_0x354639['last'],'includeAllSlots':!0x0};}else{const _0x41fe8f=_0xd912ba['getColumnIndexes'](_0xebe0ff);_0x5a7513={'startColumn':_0x41fe8f['first'],'endColumn':_0x41fe8f['last'],'includeAllSlots':!0x0};}const _0x37987e=_0xd912ba['createTableWalker'](_0x43b455,_0x5a7513),_0x33a037=Array['from'](_0x37987e)['map'](({cell:_0x3dbd71})=>_0x3dbd71),_0x13dea6=Ne(_0x33a037['filter'](_0x4320ef=>_0x4320ef['hasAttribute'](_0xa4b0cb))),_0x2ebebd=Ne(_0x33a037['filter'](_0x410d23=>!_0x410d23['hasAttribute'](_0xa4b0cb)))['map'](_0x2380f8=>_0x178a50['createRangeOn'](_0x2380f8)),_0xd80076=_0x1a737b['markMultiRangeDeletion'](_0x2ebebd,_0x1a06c5);if(_0xd80076&&('tableRow'==_0xd80076['subType']||'tableColumn'==_0xd80076['subType'])){const _0x6cd022=this['_getSuggestionCoords'](_0xd80076);for(const _0x77c8d0 of _0x13dea6){const _0x218dc5=_0x178a50['createRangeOn'](_0x77c8d0),_0x3046ce=_0xd912ba['getCellLocation'](_0x77c8d0),_0x249f52=_0x77c8d0['getAttribute'](_0xa4b0cb)-0x1,_0x108a8c=_0x6cd022[_0x5f2071],_0x15d8d9=_0x6cd022[_0x1029f1];_0x108a8c<=_0x3046ce[_0x46a0cb]&&_0x3046ce[_0x46a0cb]+_0x249f52<=_0x15d8d9&&_0xd80076['addRange'](_0x218dc5);}}});});}function _0xe5ee49(_0x1a54cb){const _0x427f4d=Array['from'](_0x5c75eb['getRanges']())['map'](_0x42d0f4=>_0xfaa3eb['fromRange'](_0x42d0f4));_0x4db63d['model']['change'](_0x181735=>{const _0x144fb2=_0x181735['batch'];_0x1a54cb=_0x1a54cb['filter'](_0x5cea33=>'$graveyard'!=_0x5cea33['root']['rootName']),_0x181735['setSelection'](_0x1a54cb),_0x4db63d['commands']['get']('removeTableRow')['refresh'](),_0x4db63d['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4db63d['model']['enqueueChange'](()=>{_0x4db63d['model']['enqueueChange'](_0x144fb2,_0x235739=>{const _0x5e95fc=_0x427f4d['filter'](_0x3f5150=>'$graveyard'!=_0x3f5150['root']['rootName']);_0x5e95fc['length']>0x0&&_0x235739['setSelection'](_0x5e95fc);for(const _0x5ed772 of _0x427f4d)_0x5ed772['detach']();});});});}function _0x53a4bc(_0xd2781b){_0x4db63d['model']['change'](_0x5f1e75=>{const _0x2e47c3=Array['from'](_0x5c75eb['getRanges']())['map'](_0x22438c=>_0xfaa3eb['fromRange'](_0x22438c)),_0x1db293=[];for(const _0x19d76e of _0xd2781b)for(const _0x4118f5 of _0x19d76e['getItems']({'shallow':!0x0}))_0x1db293['push'](_0x4118f5);for(const _0x130119 of _0x1db293)'$graveyard'!=_0x130119['root']['rootName']&&(_0x5f1e75['setSelection'](_0x5f1e75['createPositionAt'](_0x130119,0x0)),_0x4db63d['commands']['get']('removeTableColumn')['refresh'](),_0x4db63d['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3db673=_0x2e47c3['filter'](_0x4bdb2c=>'$graveyard'!=_0x4bdb2c['root']['rootName']);_0x3db673['length']>0x0&&_0x5f1e75['setSelection'](_0x3db673);for(const _0x25b664 of _0x2e47c3)_0x25b664['detach']();});}function _0x2669f2(_0x28047c,_0xd79f60){return _0xd79f60['every'](_0x1d0714=>_0x28047c['some'](_0x456f3b=>_0x456f3b['end']['isEqual'](_0x1d0714['start'])||_0x1d0714['end']['isEqual'](_0x456f3b['start'])));}function _0x385c8d(_0x20ae73,_0x312aba){return!_0x20ae73['some'](_0x4a7709=>_0x312aba['some'](_0x3173ee=>_0x4a7709['isIntersecting'](_0x3173ee)))&&_0x20ae73['some'](_0x47f28a=>_0x312aba['some'](_0x52e7ce=>_0x47f28a['end']['isTouching'](_0x52e7ce['start'])));}_0x4db63d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1e073e,_0x24969f,_0x351144)=>{if(!_0x351144['options']['showSuggestionHighlights'])return;const _0x24d5da=_0x24969f['item'];if(!_0x24d5da)return;const _0x1bcc94=_0x351144['mapper']['toViewElement'](_0x24d5da);function _0x2c2584(_0x181b71){return Array['isArray'](_0x181b71)?_0x181b71:[_0x181b71];}_0x1bcc94&&'tableCell'===_0x24d5da['name']&&_0xe45f10(_0x1bcc94,_0x351144['writer'],(_0x3c1a28,_0x4a3265,_0x412f5d)=>_0x412f5d['addClass'](_0x2c2584(_0x4a3265['classes']),_0x3c1a28),(_0x1beb75,_0xccb910,_0x27d077)=>_0x27d077['removeClass'](_0x2c2584(_0xccb910['classes']),_0x1beb75));},{'priority':'highest'}),_0x1a737b['descriptionFactory']['registerDescriptionCallback'](_0x563766=>{if('insertion'!=_0x563766['type']&&'deletion'!=_0x563766['type'])return;const _0x33f9fb=_0x563766['getContainedElement']();if(null!=_0x33f9fb&&_0x33f9fb['is']('element','table')){if('insertion'==_0x563766['type']){const _0x54339f=_0x563766['getItems']()['filter'](_0x41b285=>_0x41b285['is']('$textProxy'))['map'](_0x318e4e=>_0x318e4e['data']);if(_0x54339f['length'])return{'type':'insertion','content':o(_0x387aa2,'*Insert:*\x20%0',o(_0x387aa2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x54339f['join']('\x20')+'\x22'))};}if('deletion'==_0x563766['type']){const _0x283a1f=_0x563766['getItems']()['filter'](_0x5aabfd=>_0x5aabfd['is']('$textProxy'))['map'](_0x54708a=>_0x54708a['data']);if(_0x283a1f['length'])return{'type':'deletion','content':o(_0x387aa2,'*Remove:*\x20%0',o(_0x387aa2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x283a1f['join']('\x20')+'\x22'))};}}}),_0x1a737b['descriptionFactory']['registerDescriptionCallback'](_0xd8b2fe=>{if('tableRow'==_0xd8b2fe['subType']){const _0xdea9b1=_0xd8b2fe['getItems']()['filter'](_0x146e38=>_0x146e38['is']('$textProxy'))['map'](_0x2bf382=>_0x2bf382['data']),_0x43d746=this['_getSuggestionCoords'](_0xd8b2fe),_0x2b8600=_0x43d746['maxRow']-_0x43d746['minRow']+0x1;if('insertion'==_0xd8b2fe['type'])return _0xdea9b1['length']?{'type':'insertion','content':o(_0x387aa2,'*Insert:*\x20%0',o(_0x387aa2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2b8600,'\x22'+_0xdea9b1['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x387aa2,'*Insert:*\x20%0',o(_0x387aa2,'ELEMENT_TABLE_ROW',_0x2b8600))};if('deletion'==_0xd8b2fe['type'])return _0xdea9b1['length']?{'type':'deletion','content':o(_0x387aa2,'*Remove:*\x20%0',o(_0x387aa2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2b8600,'\x22'+_0xdea9b1['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x387aa2,'*Remove:*\x20%0',o(_0x387aa2,'ELEMENT_TABLE_ROW',_0x2b8600))};}if('tableColumn'==_0xd8b2fe['subType']){const _0x3064b5=_0xd8b2fe['getItems']()['filter'](_0x44dd5c=>_0x44dd5c['is']('$textProxy'))['map'](_0x45d2ca=>_0x45d2ca['data']),_0x197858=this['_getSuggestionCoords'](_0xd8b2fe),_0x20ee38=_0x197858['maxColumn']-_0x197858['minColumn']+0x1;if('insertion'==_0xd8b2fe['type'])return _0x3064b5['length']?{'type':'insertion','content':o(_0x387aa2,'*Insert:*\x20%0',o(_0x387aa2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x20ee38,'\x22'+_0x3064b5['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x387aa2,'*Insert:*\x20%0',o(_0x387aa2,'ELEMENT_TABLE_COLUMN',_0x20ee38))};if('deletion'==_0xd8b2fe['type'])return _0x3064b5['length']?{'type':'deletion','content':o(_0x387aa2,'*Remove:*\x20%0',o(_0x387aa2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x20ee38,'\x22'+_0x3064b5['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x387aa2,'*Remove:*\x20%0',o(_0x387aa2,'ELEMENT_TABLE_COLUMN',_0x20ee38))};}}),_0x1a737b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xe5ee49),_0x1a737b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xe5ee49),_0x1a737b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x53a4bc),_0x1a737b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x53a4bc),_0x1a737b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2669f2),_0x1a737b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2669f2),_0x1a737b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x385c8d),_0x1a737b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x385c8d);}['_acceptFormatSuggestionCallbackFactory'](){const _0x28e41c=this['editor'],_0x55c71a=_0x28e41c['model']['document']['selection'];return(_0x425e31,_0x390047)=>{_0x28e41c['model']['change'](_0x555c4c=>{const {commandName:_0x1b62ac,commandParams:_0x1bec45}=_0x390047;let _0x50bbfb=_0x425e31[0x0]['end']['nodeBefore'];_0x1bec45&&_0x1bec45[0x0]&&!0x1===_0x1bec45[0x0]['forceValue']&&(_0x50bbfb=_0x425e31[0x0]['start']['nodeAfter']);const _0x10cf6c=_0x555c4c['createRangeIn'](_0x50bbfb);if('$graveyard'==_0x10cf6c['root']['rootName'])return;const _0x38f09f=Array['from'](_0x55c71a['getRanges']())['map'](_0x231ac2=>_0xfaa3eb['fromRange'](_0x231ac2));_0x555c4c['setSelection'](_0x10cf6c),_0x28e41c['commands']['get'](_0x1b62ac)['refresh'](),_0x1bec45['push']({'forceDefaultExecution':!0x0}),_0x28e41c['execute'](_0x1b62ac,..._0x1bec45);const _0x3dfedf=_0x38f09f['filter'](_0x192db6=>'$graveyard'!=_0x192db6['root']['rootName']);_0x3dfedf['length']>0x0&&_0x555c4c['setSelection'](_0x3dfedf);for(const _0x1d561a of _0x38f09f)_0x1d561a['detach']();});};}['_getCoordsForCells'](_0x152511){const _0x409df8=this['editor']['plugins']['get']('TableUtils');let _0x513627=Number['MAX_SAFE_INTEGER'],_0x3a4e7f=Number['MIN_SAFE_INTEGER'],_0x2c10b4=Number['MAX_SAFE_INTEGER'],_0x36fcd1=Number['MIN_SAFE_INTEGER'];for(const _0x53861e of _0x152511){if('$graveyard'==_0x53861e['root']['rootName'])continue;const {row:_0xedc5b2,column:_0x18c714}=_0x409df8['getCellLocation'](_0x53861e),_0x37b3c4=_0x53861e['hasAttribute']('rowspan')?_0x53861e['getAttribute']('rowspan')-0x1:0x0,_0x5d3b5a=_0x53861e['hasAttribute']('colspan')?_0x53861e['getAttribute']('colspan')-0x1:0x0;_0x513627=_0xedc5b2<_0x513627?_0xedc5b2:_0x513627,_0x3a4e7f=_0xedc5b2+_0x37b3c4>_0x3a4e7f?_0xedc5b2+_0x37b3c4:_0x3a4e7f,_0x2c10b4=_0x18c714<_0x2c10b4?_0x18c714:_0x2c10b4,_0x36fcd1=_0x18c714+_0x5d3b5a>_0x36fcd1?_0x18c714+_0x5d3b5a:_0x36fcd1;}return{'minRow':_0x513627,'maxRow':_0x3a4e7f,'minColumn':_0x2c10b4,'maxColumn':_0x36fcd1};}['_setupColumnsRowsFixing'](){const _0x3b41f5=this['editor'],_0x12c448=_0x3b41f5['plugins']['get']('TrackChangesEditing'),_0x4ed292=_0x3b41f5['plugins']['get']('TableUtils');_0x3b41f5['model']['document']['on']('change:data',()=>{const _0x30d9f3=Array['from'](_0x3b41f5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x563036,data:_0x5870c5}of _0x30d9f3){const {group:_0x35627e,id:_0xa7dfb,subType:_0x74b55e}=_0x12c448['_splitMarkerName'](_0x563036);if('suggestion'!=_0x35627e)continue;if(null!=_0x5870c5['oldRange'])continue;const _0x3ec720=_0x12c448['getSuggestion'](_0xa7dfb);this['_tablePostFixingSubtypes']['includes'](_0x74b55e)&&this['_tableSuggestions']['add'](_0x3ec720);}},{'priority':'low'});const _0x274102=(_0x40ebeb,_0x1f8bf6)=>{let _0x5a2d48=!0x1;const _0x53a76e=_0x1f8bf6['createRangeOn'](_0x40ebeb),_0x578928=_0x40ebeb['findAncestor']('table'),_0x102fce=_0x4ed292['getCellLocation'](_0x40ebeb);for(const _0x7cf864 of this['_tableSuggestions']){const _0x5a3ec1=_0x7cf864['subType'],_0x15aa12=_0x5a3ec1['startsWith']('tablePaste'),_0x202a92=_0x5a3ec1['substr'](_0x15aa12?0xa:0x5),_0x2333f1=_0x202a92['toLowerCase'](),_0xf82fe=_0x2333f1['substr'](0x0,0x3)+'span',_0x8b04ca='min'+_0x202a92,_0x5ad011='max'+_0x202a92;if(!_0x7cf864['isInContent'])continue;if(_0x578928!=_0x7cf864['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x7cf864['isIntersectingWithRange'](_0x53a76e))continue;const _0x56a733=_0x40ebeb['hasAttribute'](_0xf82fe)?_0x40ebeb['getAttribute'](_0xf82fe)-0x1:0x0,_0xa0473e=this['_getSuggestionCoords'](_0x7cf864),_0x120eba=_0xa0473e[_0x8b04ca],_0x3cb895=_0xa0473e[_0x5ad011];_0x120eba<=_0x102fce[_0x2333f1]&&_0x102fce[_0x2333f1]+_0x56a733<=_0x3cb895&&(_0x7cf864['addRange'](_0x53a76e),_0x5a2d48=!0x0);}return _0x5a2d48;};_0x3b41f5['model']['document']['registerPostFixer'](_0x23b9cd=>{let _0x88336d=!0x1;for(const _0x36bef1 of _0x3b41f5['model']['document']['differ']['getChanges']())if('insert'==_0x36bef1['type']){if('tableRow'==_0x36bef1['name']){for(const _0x22ec16 of _0x36bef1['position']['nodeAfter']['getChildren']())_0x88336d=_0x88336d||_0x274102(_0x22ec16,_0x23b9cd);}else'tableCell'==_0x36bef1['name']&&(_0x88336d=_0x88336d||_0x274102(_0x36bef1['position']['nodeAfter'],_0x23b9cd));}return _0x88336d;});}['_getSuggestionCoords'](_0x179677){return this['_getCoordsForCells'](_0x179677['getRanges']()['map'](_0x10ca93=>_0x10ca93['start']['nodeAfter']));}}function Ne(_0x207ee1){return Array['from'](new Set(_0x207ee1)['values']());}class _t extends _0x2bd390{static get['requires'](){return[vt];}['afterInit'](){const _0x175e6e=this['editor'],_0x1b6a46=_0x175e6e['model']['document']['selection'],_0x4ef5fd=_0x175e6e['locale'];if(!_0x175e6e['plugins']['has']('TableEditing'))return;const _0x2502a8=_0x175e6e['plugins']['get']('TrackChangesEditing'),_0x482795=_0x175e6e['plugins']['get']('TableUtils'),_0xaeab7b=_0x175e6e['plugins']['get'](vt);_0xaeab7b['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2502a8['enableCommand']('mergeTableCells',()=>{const _0x5dac24=_0x482795['getSelectionAffectedTableCells'](_0x175e6e['model']['document']['selection']);_0x175e6e['model']['change'](()=>{_0x2502a8['markMultiRangeBlockFormat'](_0x5dac24,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x175e6e['commands']['get']('mergeTableCells')['on']('execute',(_0x1810b3,_0x8275ac)=>{_0x175e6e['commands']['get']('trackChanges')['value']&&(_0x8275ac['length']>0x0&&_0x8275ac[_0x8275ac['length']-0x1]&&_0x8275ac[_0x8275ac['length']-0x1]['forceDefaultExecution']||_0x2502a8['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1810b3['stop']());},{'priority':'highest'});for(const _0x461060 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x582073=_0x175e6e['commands']['get'](_0x461060);_0x2502a8['enableCommand'](_0x461060,()=>{const _0x96f249=_0x175e6e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x13c705=>_0x13c705['is']('element','tableCell')),_0xa1f9fe=_0x582073['value'];_0x175e6e['model']['change'](()=>{_0x2502a8['markMultiRangeBlockFormat']([_0x96f249,_0xa1f9fe],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x85ecff of['splitTableCellVertically','splitTableCellHorizontally']){const _0x530861=_0x175e6e['commands']['get'](_0x85ecff);_0x2502a8['enableCommand'](_0x85ecff,()=>{const _0x48ae2f=_0x482795['getSelectionAffectedTableCells'](_0x175e6e['model']['document']['selection'])[0x0],_0x270b74=_0x48ae2f['findAncestor']('table'),{column:_0x4d4f91,row:_0x20d2b0}=_0x482795['getCellLocation'](_0x48ae2f);let _0x5119a0=[];if('horizontally'==_0x530861['direction']){const _0x4b3988=_0x482795['createTableWalker'](_0x270b74,{'startRow':_0x20d2b0,'endRow':_0x20d2b0,'includeAllSlots':!0x0});_0x5119a0=Array['from'](_0x4b3988)['map'](_0x3f3d34=>_0x3f3d34['cell']);}else{const _0x47c9c4=_0x482795['createTableWalker'](_0x270b74,{'column':_0x4d4f91,'includeAllSlots':!0x0});_0x5119a0=Array['from'](_0x47c9c4)['map'](_0x10def4=>_0x10def4['cell']);}_0x175e6e['model']['change'](_0x3e8400=>{_0x2502a8['markBlockFormat'](_0x3e8400['createRangeOn'](_0x48ae2f),{'commandName':_0x85ecff,'commandParams':[]},_0x5119a0,_0x85ecff);});});}_0x2502a8['descriptionFactory']['registerDescriptionCallback'](_0x36eff5=>{if('formatBlock'!=_0x36eff5['type']&&'formatInline'!=_0x36eff5['type'])return;const {data:_0x8b8d04}=_0x36eff5;return _0x8b8d04&&'mergeTableCells'==_0x8b8d04['commandName']?{'type':'format','content':o(_0x4ef5fd,'*Merge\x20cells*')}:void 0x0;}),_0x2502a8['descriptionFactory']['registerDescriptionCallback'](_0xb4f4ce=>{if('formatBlock'!=_0xb4f4ce['type']&&'formatInline'!=_0xb4f4ce['type'])return;const {data:_0xec1bb4}=_0xb4f4ce;return _0xec1bb4?'splitTableCellVertically'==_0xec1bb4['commandName']?{'type':'format','content':o(_0x4ef5fd,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xec1bb4['commandName']?{'type':'format','content':o(_0x4ef5fd,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4f189a=_0xaeab7b['_acceptFormatSuggestionCallbackFactory']();for(const _0x5575ea of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2502a8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5575ea,'accept',_0x4f189a);for(const _0x3c966d of['splitTableCellVertically','splitTableCellHorizontally'])_0x2502a8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3c966d,'accept',_0x4f189a);_0x2502a8['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4aadbf=>{_0x175e6e['model']['change'](_0x1294c1=>{const _0x3cec2e=Array['from'](_0x1b6a46['getRanges']())['map'](_0x325727=>_0xfaa3eb['fromRange'](_0x325727));_0x1294c1['setSelection'](_0x4aadbf),_0x175e6e['commands']['get']('mergeTableCells')['refresh'](),_0x175e6e['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x549930=_0x3cec2e['filter'](_0x547ade=>'$graveyard'!=_0x547ade['root']['rootName']);_0x549930['length']>0x0&&_0x1294c1['setSelection'](_0x549930);for(const _0x4ffc95 of _0x3cec2e)_0x4ffc95['detach']();});});for(const _0x238ebb of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4ae6ee=_0x175e6e['commands']['get'](_0x238ebb);_0x4ae6ee['on']('set:isEnabled',(_0x5f58d4,_0x1e6fab,_0x128ae6)=>{if(_0x128ae6){const _0x18e75b=_0x175e6e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4a727d=>_0x4a727d['is']('element','tableCell'));this['_areMergableCells'](_0x4ae6ee['value'],_0x18e75b)||(_0x5f58d4['return']=!0x1,_0x5f58d4['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3498a8=this['editor']['commands']['get']('mergeTableCells'),_0x319e1e=this['editor']['plugins']['get']('TableUtils');if(!_0x3498a8['isEnabled'])return!0x1;const _0x5a30d5=_0x319e1e['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x61d3da of _0x5a30d5)for(const _0x25839d of _0x5a30d5)if(_0x61d3da!=_0x25839d&&!this['_areMergableCells'](_0x61d3da,_0x25839d))return!0x1;return!0x0;}['_areMergableCells'](_0x1850fe,_0x211cd3){const _0x4039d8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26b5a8=this['editor']['model']['createRangeOn'](_0x1850fe),_0x3aa104=this['editor']['model']['createRangeOn'](_0x211cd3),_0x157186=new Set(),_0xdca85a=new Set();for(const _0x2edbe2 of _0x4039d8['getSuggestions']())if(('insertion'==_0x2edbe2['type']||'deletion'==_0x2edbe2['type']||'mergeTableCells'==_0x2edbe2['subType'])&&_0x2edbe2['isInContent']){for(const _0x219556 of _0x2edbe2['getRanges']())_0x219556['containsRange'](_0x26b5a8,!0x0)&&_0x157186['add'](_0x2edbe2['type']+':'+_0x2edbe2['author']['id']),_0x219556['containsRange'](_0x3aa104,!0x0)&&_0xdca85a['add'](_0x2edbe2['type']+':'+_0x2edbe2['author']['id']);}if(_0x157186['size']!=_0xdca85a['size'])return!0x1;for(const _0x5259d9 of _0x157186)if(!_0xdca85a['has'](_0x5259d9))return!0x1;return!0x0;}}class Ct extends _0x2bd390{static get['requires'](){return[vt];}['afterInit'](){const _0x2ea0a0=this['editor'];if(!_0x2ea0a0['plugins']['has']('TableEditing'))return;const _0x5d10bc=_0x2ea0a0['locale'],_0x1b8e73=_0x2ea0a0['plugins']['get']('TrackChangesEditing');_0x1b8e73['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1b8e73['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1b8e73['registerBlockAttribute']('headingRows'),_0x1b8e73['registerBlockAttribute']('headingColumns'),_0x1b8e73['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x5d10bc,'FORMAT_HEADER_ROW')),_0x1b8e73['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x5d10bc,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2063d7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x405e28=this['editor']['plugins']['get']('TableUtils'),_0x3256e7=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x488b56({showActiveMarker:_0x563e71=!0x0,setDataAttribute:_0x17f51a=!0x0}={}){return(_0x24eb2f,_0x1b8a5b,_0x48948f)=>{const {type:_0x57997f,id:_0x52bc17}=_0x2063d7['_splitMarkerName'](_0x1b8a5b['markerName']),_0x16b899=_0x2063d7['getSuggestion'](_0x52bc17),_0x2d280f=_0x16b899['data'];if('formatBlock'!=_0x16b899['type']||!_0x2d280f||'setTableColumnHeader'!=_0x2d280f['commandName'])return;if(_0x1b8a5b['item'])return void _0x24eb2f['stop']();if(!_0x48948f['consumable']['consume'](_0x1b8a5b['markerRange'],_0x24eb2f['name']))return;const _0x338dc4=_0x1b8a5b['markerRange']['start']['nodeAfter'],_0x10c18b=_0x1b8a5b['markerRange']['end']['nodeBefore'],_0x5b902d=_0x338dc4['parent']['parent'],{column:_0x31b9cf}=_0x405e28['getCellLocation'](_0x338dc4),{column:_0x2f546a}=_0x405e28['getCellLocation'](_0x10c18b);for(let _0x55ade1=_0x31b9cf;_0x55ade1<=_0x2f546a;_0x55ade1++){const _0x4b971a=_0x405e28['createTableWalker'](_0x5b902d,{'column':_0x55ade1,'includeAllSlots':!0x1});for(const _0x238d72 of _0x4b971a){const _0x58735c=_0x238d72['cell'],_0x1ecc16=_0x48948f['mapper']['toViewElement'](_0x58735c);_0x48948f['writer']['addClass']('ck-suggestion-marker-'+_0x57997f,_0x1ecc16),_0x17f51a&&_0x48948f['writer']['setAttribute']('data-suggestion',_0x52bc17,_0x1ecc16),_0x48948f['mapper']['bindElementToMarker'](_0x1ecc16,_0x1b8a5b['markerName']),_0x563e71&&(_0x2063d7['activeMarkers']['includes'](_0x1b8a5b['markerName'])?_0x48948f['writer']['addClass']('ck-suggestion-marker--active',_0x1ecc16):_0x48948f['writer']['removeClass']('ck-suggestion-marker--active',_0x1ecc16));}}};}_0x2063d7['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3256e7),_0x2063d7['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3256e7),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x488b56(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4e0042,_0x2d1f28,_0x39b707)=>{_0x39b707['options']['showSuggestionHighlights']&&_0x488b56({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4e0042,_0x2d1f28,_0x39b707);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3cd8b1,_0x4a40f3,_0x5b0f06)=>{const {type:_0x55972a,id:_0x28aa2d}=_0x2063d7['_splitMarkerName'](_0x4a40f3['markerName']),_0x2bfe14=_0x2063d7['getSuggestion'](_0x28aa2d),_0x297b50=_0x2bfe14['data'];if('formatBlock'!=_0x2bfe14['type']||!_0x297b50||'setTableColumnHeader'!=_0x297b50['commandName'])return;const _0x59d82b=_0x5b0f06['mapper']['markerNameToElements'](_0x4a40f3['markerName']);if(_0x59d82b){for(const _0xb7a87e of _0x59d82b)_0x5b0f06['writer']['removeClass']('ck-suggestion-marker-'+_0x55972a,_0xb7a87e),_0x5b0f06['writer']['removeClass']('ck-suggestion-marker--active',_0xb7a87e),_0x5b0f06['writer']['removeAttribute']('data-suggestion',_0xb7a87e),_0x5b0f06['mapper']['unbindElementFromMarkerName'](_0xb7a87e,_0x4a40f3['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e4820=this['editor'],_0x59dc58=_0x3e4820['locale'];function _0x14250a(_0x29cd1a){return{'type':'format','content':o(_0x59dc58,'*Format:*\x20%0',_0x29cd1a)};}_0x3e4820['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f5d17=>{if('formatBlock'!=_0x5f5d17['type'])return;const {data:_0xe05fec}=_0x5f5d17;if(_0xe05fec){if('setTableRowHeader'==_0xe05fec['commandName']){const _0x5a0661=_0xe05fec['commandParams'][0x0]['forceValue'];return _0x14250a(o(_0x59dc58,_0x5a0661?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xe05fec['commandName']){const _0x1f9c14=_0xe05fec['commandParams'][0x0]['forceValue'];return _0x14250a(o(_0x59dc58,_0x1f9c14?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x843b90=>[_0x843b90,null]));class Nt extends _0x2bd390{static get['requires'](){return[vt];}['afterInit'](){const _0x58d3cb=this['editor'];if(!_0x58d3cb['plugins']['has']('TableClipboard'))return;const _0x1d1408=_0x58d3cb['plugins']['get']('TrackChangesEditing'),_0x144095=_0x58d3cb['plugins']['get']('TableUtils'),_0x157f33=_0x58d3cb['plugins']['get'](vt),_0x29a5de=_0x58d3cb['plugins']['get']('TableClipboard');_0x157f33['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x58d3cb['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x58d3cb['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2b9fa6=null;_0x58d3cb['model']['on']('insertContent',(_0xb634d4,_0x304ede)=>{const [_0x8cb50b,_0x5dcb0d]=_0x304ede,_0x2a5168=_0x304ede[_0x304ede['length']-0x1];_0x2a5168&&_0x2a5168['forceDefaultExecution']||_0x1d1408['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1eed1b,_0x5be585,_0x4d40c5,_0x4342c0,_0x443065){if(_0x5be585&&!_0x5be585['is']('documentSelection'))return!0x1;const _0x31e6bf=_0x443065['getTableIfOnlyTableInContent'](_0x1eed1b,_0x4d40c5);if(!_0x31e6bf||!Ue(_0x31e6bf,void 0x0,_0x4342c0))return!0x1;const _0x49757f=_0x4342c0['getSelectionAffectedTableCells'](_0x4d40c5['document']['selection']);if(!_0x49757f['length'])return!0x1;const _0x29371e=_0x49757f[0x0]['findAncestor']('table'),_0x36dc08=_0x4342c0['getRowIndexes'](_0x49757f),_0x38f635=_0x4342c0['getColumnIndexes'](_0x49757f),_0x3cb2ce={'startRow':_0x36dc08['first'],'endRow':_0x36dc08['last'],'startColumn':_0x38f635['first'],'endColumn':_0x38f635['last']};return 0x1==_0x49757f['length']&&(_0x3cb2ce['endRow']+=_0x4342c0['getRows'](_0x31e6bf)-0x1,_0x3cb2ce['endColumn']+=_0x4342c0['getColumns'](_0x31e6bf)-0x1),Ue(_0x29371e,_0x3cb2ce,_0x4342c0);}(_0x8cb50b,_0x5dcb0d,_0x58d3cb['model'],_0x144095,_0x29a5de)&&(_0xb634d4['stop'](),_0x2b9fa6={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x58d3cb['model']['change'](()=>{_0x58d3cb['model']['insertContent'](_0x304ede[0x0],_0x304ede[0x1],_0x304ede[0x2],{'forceDefaultExecution':!0x0});const _0x175a7e=_0x309c8a(),{rowInsertionRanges:_0x4a749b,columnInsertionRanges:_0x3922a5,insertionRanges:_0x466611,deletionRanges:_0x4196c5,cells:_0xc5a1a4}=_0x2b9fa6;_0x4a749b['length']&&_0x1d1408['markMultiRangeInsertion'](_0x4a749b,'tablePasteRow',{'tablePasteChainId':_0x175a7e}),_0x3922a5['length']&&_0x1d1408['markMultiRangeInsertion'](_0x3922a5,'tablePasteColumn',{'tablePasteChainId':_0x175a7e}),_0x466611['length']&&(_0x1d1408['markMultiRangeInsertion'](_0x466611,'tablePaste',{'tablePasteChainId':_0x175a7e,'skipNestingCheck':!0x0}),_0x466611['forEach'](_0x4e128d=>_0x4e128d['detach']?.())),_0x4196c5['length']&&(_0x1d1408['markMultiRangeDeletion'](_0x4196c5,'tablePaste',{'tablePasteChainId':_0x175a7e,'skipNestingCheck':!0x0}),_0x4196c5['forEach'](_0x14103a=>_0x14103a['detach']?.()));const _0x171bdd=_0x1d1408['markMultiRangeBlockFormat'](_0xc5a1a4['map'](({element:_0x1f36b7})=>_0x1f36b7),{'formatGroupId':_0x309c8a()},[],'tablePasteCell',{'tablePasteChainId':_0x175a7e});if(_0x171bdd){const _0x25cb92=_0x171bdd['getMarkers'](),_0x74925d=[];for(const {element:_0x87cb79,attributes:_0x3515ea}of _0xc5a1a4){if(!_0x3515ea)continue;const _0x76f025=_0x58d3cb['model']['createRangeOn'](_0x87cb79),_0x1f4960=_0x25cb92['find'](_0x5b3263=>_0x5b3263['getRange']()['isEqual'](_0x76f025));_0x1f4960&&_0x74925d['push']([_0x1f4960['name'],_0x3515ea]);}_0x74925d['length']&&_0x171bdd['setAttribute']('markerAttributes',Object['fromEntries'](_0x74925d));}_0x2b9fa6=null;}));},{'priority':_0x574764['high']+0xa}),_0x58d3cb['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x927eef,_0x5cf563)=>{const [_0x3c7f66,_0x4e5705,,_0x361d20]=_0x5cf563;if(!_0x2b9fa6)return;_0x927eef['stop']();const _0x1912f0=_0x3c7f66['cell'],_0x1e8329=_0x4e5705,_0x427b27=Oe(_0x1912f0),_0x4e7b57=Oe(_0x1e8329);_0x927eef['return']=_0x1912f0;let _0x583b4c=null,_0x12f697=null;if(_0x4e7b57||_0x427b27){if(_0x427b27&&!_0x4e7b57){_0x361d20['remove'](_0x1912f0['getChild'](0x0));for(const _0x5b157c of Array['from'](_0x1e8329['getChildren']()))_0x361d20['insert'](_0x5b157c,_0x1912f0,'end');const _0x5c367c=_0x2b9fa6['rowInsertionIndexes']['includes'](_0x3c7f66['row']),_0xc13c8e=_0x2b9fa6['columnInsertionIndexes']['includes'](_0x3c7f66['column']);_0x5c367c||_0xc13c8e||(_0x583b4c=_0xfaa3eb['fromRange'](_0x361d20['createRangeIn'](_0x1912f0)));}else _0x4e7b57&&!_0x427b27&&(_0x12f697=_0x361d20['createRangeIn'](_0x1912f0));}else{const _0x12547a=_0x361d20['createElement']('tableCellSuggestion'),_0x4a8c38=_0x361d20['createElement']('tableCellSuggestion');_0x361d20['wrap'](_0x361d20['createRangeIn'](_0x1912f0),_0x4a8c38),_0x361d20['insert'](_0x12547a,_0x1912f0,0x0);for(const _0x1fdc3 of Array['from'](_0x1e8329['getChildren']()))_0x361d20['insert'](_0x1fdc3,_0x12547a,'end');_0x583b4c=_0xfaa3eb['fromRange'](_0x361d20['createRangeOn'](_0x12547a)),_0x12f697=_0xfaa3eb['fromRange'](_0x361d20['createRangeOn'](_0x4a8c38));}const _0x2ed57e=Array['from'](_0x1e8329['getAttributes']())['filter'](([_0x2afc75])=>Be['includes'](_0x2afc75));_0x2b9fa6['cells']['push']({'element':_0x1912f0,'attributes':_0x2ed57e['length']?Object['fromEntries'](_0x2ed57e):null}),_0x583b4c&&_0x2b9fa6['insertionRanges']['push'](_0x583b4c),_0x12f697&&_0x2b9fa6['deletionRanges']['push'](_0x12f697);},{'priority':'high'}),_0x144095['on']('insertColumns',(_0x5ca148,_0x1ad145)=>{const [_0x571c5e,_0x125f04={}]=_0x1ad145;if(!_0x2b9fa6)return;const _0x429267=_0x125f04['at']||0x0,_0x4d67d6=_0x125f04['columns']||0x1;_0x2b9fa6['columnInsertionIndexes']=new Array(_0x4d67d6)['fill'](_0x429267)['map']((_0x405659,_0x4ec09f)=>_0x405659+_0x4ec09f);for(const {cell:_0x3b89e1}of _0x144095['createTableWalker'](_0x571c5e,{'startColumn':_0x429267,'endColumn':_0x429267+_0x4d67d6-0x1}))_0x2b9fa6['columnInsertionRanges']['push'](_0x58d3cb['model']['createRangeOn'](_0x3b89e1));},{'priority':'low'}),_0x144095['on']('insertRows',(_0x49692c,_0x36f5c4)=>{const [_0x1df5a7,_0x286bc6={}]=_0x36f5c4;if(!_0x2b9fa6)return;const _0xc02fff=_0x286bc6['at']||0x0,_0x4e3c80=_0x286bc6['rows']||0x1;_0x2b9fa6['rowInsertionIndexes']=new Array(_0x4e3c80)['fill'](_0xc02fff)['map']((_0x3903c0,_0x4e659d)=>_0x3903c0+_0x4e659d);for(const {cell:_0x3e3b56}of _0x144095['createTableWalker'](_0x1df5a7,{'startRow':_0xc02fff,'endRow':_0xc02fff+_0x4e3c80-0x1}))_0x2b9fa6['rowInsertionRanges']['push'](_0x58d3cb['model']['createRangeOn'](_0x3e3b56));},{'priority':'low'}),_0x1d1408['descriptionFactory']['registerDescriptionCallback'](_0x4a92a7=>{if(_0x4a92a7['subType']&&_0x4a92a7['subType']['startsWith']('tablePaste'))return _0x4a92a7['previous']?{}:{'type':'insertion','content':o(_0x58d3cb['locale'],'*Replace\x20table\x20cells*')};});const _0x2c8e10=()=>!0x1;for(const _0x592bbb of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1d1408['_suggestionFactory']['registerCustomCallback']('insertion',_0x592bbb,'join',_0x2c8e10),_0x1d1408['_suggestionFactory']['registerCustomCallback']('deletion',_0x592bbb,'join',_0x2c8e10),_0x1d1408['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x592bbb,'join',_0x2c8e10);_0x1d1408['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2c8e10),_0x1d1408['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x50a311,_0x4dffb1,_0x5a2133)=>{const _0x45a628=_0x50a311['map'](_0x5b7ba1=>_0x5b7ba1['getContainedElement']())['filter'](_0x1671a5=>_0x1671a5),_0x564871=new Map(_0x45a628['map'](_0x1f0f19=>[_0x1f0f19,null]));if(_0x2b9fa6){for(const {element:_0x283e87,attributes:_0x39a77d}of _0x2b9fa6['cells'])_0x39a77d&&_0x564871['set'](_0x283e87,_0x39a77d);}else{if(_0x5a2133&&_0x5a2133['markerAttributes'])for(const [_0x16e49c,_0x1c7787]of Object['entries'](_0x5a2133['markerAttributes'])){const _0x576758=_0x58d3cb['model']['markers']['get'](_0x16e49c),_0x582997=_0x576758?_0x576758['getRange']()['getContainedElement']():null;_0x582997&&_0x564871['set'](_0x582997,_0x1c7787);}}_0x58d3cb['model']['change'](_0x4ea964=>{for(const [_0x526efb,_0x5a31a9]of _0x564871)_0x4ea964['setAttributes']({...xe,..._0x5a31a9},_0x526efb);});});const _0x581c19=(_0x360d4b,_0x4bcfae)=>{_0x1d1408['_suggestionFactory']['registerCustomCallback'](_0x360d4b,'tablePaste',_0x4bcfae,(_0xa1cf84,_0x4450c9,_0xd2396b)=>{_0x58d3cb['model']['change'](_0x5d6189=>{const _0x52bc39=[];for(const _0x37a0ec of _0xa1cf84){const _0x48b348=_0x37a0ec['start']['nodeAfter'];_0x48b348['is']('element','tableCellSuggestion')&&_0x52bc39['push'](_0x48b348);}_0x1d1408['_suggestionFactory']['getSuggestionCallback'](_0x360d4b,null,_0x4bcfae)(_0xa1cf84,_0x4450c9,_0xd2396b);for(const _0x4fb2bd of _0x52bc39)'$graveyard'!=_0x4fb2bd['root']['rootName']&&_0x5d6189['unwrap'](_0x4fb2bd);});});};_0x581c19('insertion','accept'),_0x581c19('insertion','discard'),_0x581c19('deletion','accept'),_0x581c19('deletion','discard'),_0x1d1408['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2377cf=>{const _0x5628b1=_0x2377cf['map'](_0x5cf3fe=>_0x5cf3fe['getContainedElement']()),_0x576590=_0x5628b1[0x0]['findAncestor']('table'),{minRow:_0x30e9ce,maxRow:_0x58e530}=_0x157f33['_getCoordsForCells'](_0x5628b1);_0x144095['removeRows'](_0x576590,{'at':_0x30e9ce,'rows':_0x58e530-_0x30e9ce+0x1});}),_0x1d1408['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x33b9d0=>{const _0x3294e6=_0x33b9d0['map'](_0x426a22=>_0x426a22['getContainedElement']()),_0x2b8f24=_0x3294e6[0x0]['findAncestor']('table'),{minColumn:_0x9a485f,maxColumn:_0x575b0d}=_0x157f33['_getCoordsForCells'](_0x3294e6);_0x144095['removeColumns'](_0x2b8f24,{'at':_0x9a485f,'columns':_0x575b0d-_0x9a485f+0x1});});const _0xdc5c40=(_0x2eac00,_0x255de4)=>{if(!_0x255de4['subType']||!_0x255de4['subType']['startsWith']('tablePaste'))return;const _0x334d51=_0x255de4['attributes']['tablePasteChainId'],_0x2d9bae=_0x1d1408['getSuggestions']()['filter'](_0x16ed43=>_0x16ed43['isInContent']&&_0x16ed43['attributes']&&_0x16ed43['attributes']['tablePasteChainId']==_0x334d51);_0x2d9bae['length']&&_0x255de4['getAllAdjacentSuggestions']()['length']!=_0x2d9bae['length']&&_0x2d9bae['reduce']((_0x1e6d86,_0x4918f0)=>(_0x1e6d86['next']=_0x4918f0,_0x4918f0['previous']=_0x1e6d86,_0x4918f0));};function _0x91341e(_0x17ff7f,_0x440e2e=!0x0){const {id:_0x5c0c8e,authorId:_0x148cb0}=_0x1d1408['_splitMarkerName'](_0x17ff7f['markerName']),_0x3bf1f8=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xc856cf=_0x1d1408['activeMarkers']['includes'](_0x17ff7f['markerName']);return _0xc856cf&&_0x3bf1f8['push']('ck-suggestion-marker--active'),{'classes':_0x3bf1f8,'attributes':{'data-suggestion':_0x5c0c8e,'data-author-id':_0x148cb0},'priority':_0xc856cf&&_0x440e2e?0xbc2:0xbb8};}_0x1d1408['on']('suggestionLoaded',_0xdc5c40,{'priority':'high'}),_0x1d1408['on']('suggestionUnloaded',_0xdc5c40,{'priority':'high'}),_0x58d3cb['model']['document']['registerPostFixer'](()=>{let _0x34ef2f=!0x1;const _0x1c587c=Array['from'](_0x58d3cb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3003ea,data:_0x57871a}of _0x1c587c){const {group:_0x5b1b3e,type:_0x2eaf79,id:_0x4963e0}=_0x1d1408['_splitMarkerName'](_0x3003ea);if('suggestion'!=_0x5b1b3e||'deletion'!=_0x2eaf79||_0x57871a['oldRange'])continue;if(!_0x1d1408['hasSuggestion'](_0x4963e0))continue;const _0x50dbf2=_0x1d1408['getSuggestion'](_0x4963e0)['getRanges'](),_0x42a787=_0x58d3cb['plugins']['get']('Users')['me'];for(const _0x102f7f of _0x1d1408['getSuggestions']()){if(!_0x102f7f['isInContent']||_0x102f7f['author']!=_0x42a787)continue;if('formatBlock'!=_0x102f7f['type']||'tablePasteCell'!=_0x102f7f['subType'])continue;if(_0x102f7f['getRanges']()['every'](_0x22d9af=>_0x50dbf2['some'](_0x483328=>_0x483328['containsRange'](_0x22d9af,!0x0)))){for(const _0x533934 of _0x102f7f['getAllAdjacentSuggestions']())_0x533934['isInContent']&&(_0x533934['discard'](),_0x34ef2f=!0x0);}}}return _0x34ef2f;}),_0x58d3cb['model']['document']['registerPostFixer'](_0x69621b=>{const _0x56a7c3=_0x58d3cb['commands']['get']('redo');if(!_0x56a7c3||!_0x56a7c3['_createdBatches']['has'](_0x69621b['batch']))return!0x1;let _0x321836=!0x1;const _0x30d1b9=_0x58d3cb['plugins']['get']('Users')['me'],_0x260282=_0x58d3cb['model']['document']['differ']['getChanges'](),_0x44999b=Array['from'](_0x58d3cb['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x53b5d3,data:_0x26fbcd})=>{const {group:_0x18479a,subType:_0x2c30a4,authorId:_0x1480d3}=_0x1d1408['_splitMarkerName'](_0x53b5d3);return'suggestion'==_0x18479a&&'tablePaste'==_0x2c30a4&&_0x1480d3==_0x30d1b9['id']&&!_0x26fbcd['oldRange'];});for(const _0x5c82e3 of _0x260282){if('insert'!=_0x5c82e3['type']||'tableCellSuggestion'!=_0x5c82e3['name']||0x1!=_0x5c82e3['length'])continue;const _0x2ea15b=_0x69621b['createRange'](_0x5c82e3['position'],_0x5c82e3['position']['getShiftedBy'](0x1));if(!_0x44999b['find'](({data:_0x21f0de})=>_0x21f0de['newRange']['isEqual'](_0x2ea15b))){for(const {name:_0x5b42ff,data:_0x49b6f6}of _0x44999b)if(_0x2ea15b['containsRange'](_0x49b6f6['newRange'])){_0x69621b['updateMarker'](_0x5b42ff,{'range':_0x2ea15b}),_0x321836=!0x0;break;}}}return _0x321836;}),_0x58d3cb['model']['document']['registerPostFixer'](_0x131765=>{let _0x162528=!0x1;const _0x441ae1=_0x58d3cb['plugins']['get']('Users')['me'],_0x8973d2=_0x1d1408['getSuggestions']()['filter'](_0xa5aa5e=>_0xa5aa5e['isInContent']&&_0xa5aa5e['author']==_0x441ae1),_0x5ef98d=new Set(),_0x256831=new Set();for(const _0x58eed2 of _0x8973d2)if('tablePaste'==_0x58eed2['subType'])for(const _0x34a727 of _0x58eed2['getMarkers']()){const _0x39a734=_0x34a727['getRange']()['getContainedElement']();if(_0x39a734){if(_0x39a734['is']('element','tableCellSuggestion')&&Oe(_0x39a734)){_0x58eed2['removeMarker'](_0x34a727['name']),_0x5ef98d['add'](_0x39a734),_0x162528=!0x0;const _0x5555f1=_0x39a734['nextSibling'],_0x3d4830=_0x39a734['previousSibling'],_0x14a5df=_0x5555f1&&_0x5555f1['is']('element','tableCellSuggestion'),_0x476b9=_0x3d4830&&_0x3d4830['is']('element','tableCellSuggestion');_0x14a5df&&!_0x5ef98d['has'](_0x5555f1)&&_0x256831['add'](_0x5555f1),_0x476b9&&!_0x5ef98d['has'](_0x3d4830)&&_0x256831['add'](_0x3d4830);}else _0x39a734['is']('element','paragraph')&&_0x39a734['isEmpty']&&(_0x58eed2['removeMarker'](_0x34a727['name']),_0x162528=!0x0);}}else{if('tablePasteCell'==_0x58eed2['subType']){if(!_0x58eed2['attributes']||!_0x58eed2['attributes']['tablePasteChainId'])continue;const _0x43ce26=_0x58eed2['attributes']['markerAttributes'];if(_0x43ce26&&Object['keys'](_0x43ce26)['length'])continue;const _0x5b70e9=_0x58eed2['attributes']['tablePasteChainId'];let _0x154452=!0x0,_0x11601c=!0x0;for(const _0x30a4e7 of _0x8973d2)if(_0x30a4e7['subType']&&_0x30a4e7['subType']['startsWith']('tablePaste')){if(!_0x30a4e7['attributes']['tablePasteChainId']){_0x11601c=!0x1;break;}if(_0x30a4e7['id']!=_0x58eed2['id']&&_0x30a4e7['attributes']['tablePasteChainId']==_0x5b70e9){_0x154452=!0x1;break;}}_0x11601c&&_0x154452&&(_0x58eed2['removeMarkers'](),_0x162528=!0x0);}}for(const _0x1caff0 of _0x5ef98d)_0x131765['remove'](_0x1caff0);for(const _0x24a6f6 of _0x256831)_0x131765['unwrap'](_0x24a6f6);return _0x162528;}),_0x58d3cb['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x269057=>_0x91341e(_0x269057),'converterPriority':'high'}),_0x58d3cb['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x50444d,_0x4e9355)=>_0x4e9355['options']['showSuggestionHighlights']?_0x91341e(_0x50444d,!0x1):null,'converterPriority':'high'});const _0x5a7e13=_0x58d3cb['editing']['view'];this['listenTo'](_0x5a7e13['document'],'clipboardOutput',(_0x402d5d,_0x2262b2)=>{const _0x106825=[];for(const _0x5083eb of _0x5a7e13['createRangeIn'](_0x2262b2['content'])['getItems']())_0x5083eb['is']('element','suggestion-td')&&_0x106825['push'](_0x5083eb);_0x5a7e13['change'](_0x416bc2=>{for(const _0x1a8fee of _0x106825)_0x416bc2['move'](_0x416bc2['createRangeIn'](_0x1a8fee),_0x416bc2['createPositionBefore'](_0x1a8fee)),_0x416bc2['remove'](_0x1a8fee);});});}}function Oe(_0x299883){if(_0x299883['isEmpty'])return!0x0;const _0x5cdffc=_0x299883['getChild'](0x0);return _0x5cdffc['is']('element','paragraph')&&_0x5cdffc['isEmpty'];}function Ue(_0x407cf6,_0x16dede={},_0x1b36fe){for(const {isAnchor:_0x4dac38,cellHeight:_0x4f8102,cellWidth:_0x3412ec}of _0x1b36fe['createTableWalker'](_0x407cf6,{'includeAllSlots':!0x0,..._0x16dede}))if(!_0x4dac38||0x1!=_0x4f8102||0x1!=_0x3412ec)return!0x1;return!0x0;}class Dt extends _0x2bd390{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2211b1=this['editor']['plugins']['get']('TrackChangesEditing');_0x2211b1['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2211b1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2211b1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2211b1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2211b1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2211b1['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x6a3242,_0x5acfae){const _0x4876fc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x507b9c=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2c6db2=_0x5acfae['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x54ba77=_0x507b9c['getColumnGroupElement'](_0x2c6db2);let _0x1a6808=_0x54ba77?_0x507b9c['getTableColumnsWidths'](_0x54ba77):null,_0x3046db=_0x2c6db2['getAttribute']('tableWidth')||null;const _0x4f2dda=_0x5acfae['tableWidth']||_0x3046db,_0xb269b1=_0x5acfae['columnWidths']||_0x1a6808,_0x47edda=this['editor']['plugins']['get']('Users')['me'];for(const _0x320cf2 of _0x4876fc['getSuggestions']()){const _0x31e4d6=_0x320cf2['getContainedElement']();if('resizeTable'===_0x320cf2['subType']&&_0x31e4d6===_0x2c6db2){_0x320cf2['author']!==_0x47edda&&_0x320cf2['discard']();const _0x5a9751=_0x320cf2['data']['commandParams'];_0x3046db=_0x5a9751[0x0]['tableWidth'],_0x1a6808=_0x5a9751[0x0]['columnWidths'];break;}}_0x6a3242({'table':_0x2c6db2,'tableWidth':_0x4f2dda,'columnWidths':_0xb269b1}),_0x4876fc['markBlockFormat'](_0x2c6db2,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3046db,'columnWidths':_0x1a6808}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5e7b9d){if('formatBlock'!=_0x5e7b9d['type']&&'formatInline'!=_0x5e7b9d['type'])return;const {data:_0x518667}=_0x5e7b9d;if(_0x518667&&'resizeTable'===_0x518667['formatGroupId']){const _0x4bdcdf='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4bdcdf)};}}}class Mt extends _0x2bd390{['afterInit'](){const _0x48a2dd=this['editor'];_0x48a2dd['plugins']['has']('Template')&&_0x48a2dd['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x2bd390{['afterInit'](){const _0x36bd17=this['editor'];if(!_0x36bd17['commands']['get']('insertTableOfContents'))return;_0x36bd17['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x30a022=_0x36bd17['plugins']['get']('TrackChangesEditing'),_0x2eec7b=_0x36bd17['locale'];_0x30a022['descriptionFactory']['registerElementLabel']('tableOfContents',_0xf53dc5=>o(_0x2eec7b,'ELEMENT_TABLE_OF_CONTENTS',_0xf53dc5));}}class Bt extends _0x2bd390{['afterInit'](){const _0x54bda4=this['editor'];if(!_0x54bda4['plugins']['has']('Title'))return;const _0x501f4d=_0x54bda4['plugins']['get']('TrackChangesEditing');_0x501f4d['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x54bda4['locale'],'ELEMENT_TITLE')),_0x54bda4['model']['document']['registerPostFixer'](_0x46c717=>{let _0x43a288=!0x1;const _0x39baf1=Array['from'](_0x54bda4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x12b18d,data:_0x545984}of _0x39baf1){const {group:_0x3d9ba3}=_0x501f4d['_splitMarkerName'](_0x12b18d);if('suggestion'!==_0x3d9ba3||!_0x545984['newRange'])continue;const _0x8be918=_0x545984['newRange'],_0x136e06=_0x8be918['end']['nodeBefore'];if(!_0x136e06||!_0x136e06['is']('element','title-content'))continue;if(!_0x8be918['start']['isTouching'](_0x8be918['end']))continue;const _0xb395c6=_0x54bda4['model']['schema']['getNearestSelectionRange'](_0x8be918['end'],'forward');if(_0xb395c6&&_0xb395c6['isCollapsed']){const _0x482794=_0x46c717['createRange'](_0x8be918['start'],_0xb395c6['start']);_0x482794['isEqual'](_0x8be918)||(_0x46c717['updateMarker'](_0x12b18d,{'range':_0x482794}),_0x43a288=!0x0);}_0x43a288||(_0x46c717['removeMarker'](_0x12b18d),_0x43a288=!0x0);}return _0x43a288;});}}class Ot extends _0x2bd390{['afterInit'](){const _0x2e9887=this['editor'],_0x14d79b=_0x2e9887['plugins']['get']('TrackChangesEditing');_0x2e9887['plugins']['has']('Uploadcare')&&(_0x14d79b['enableCommand']('uploadcare'),_0x2e9887['plugins']['has']('UploadcareImageEdit')&&(_0x14d79b['enableCommand']('uploadcareImageEdit'),_0x14d79b['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x14d79b['registerBlockAttribute']('uploadcareImageId'),_0x14d79b['descriptionFactory']['registerDescriptionCallback'](_0x2d3a23=>{if('attribute'!=_0x2d3a23['type'])return;const {data:_0x389a03}=_0x2d3a23;return _0x389a03&&'uploadcareImageId'==_0x389a03['key']?{'type':'format','content':''}:void 0x0;})));}}class Rt extends _0x2bd390{['afterInit'](){const _0x81208=this['editor'],_0x22dd60=_0x81208['plugins']['get']('TrackChangesEditing');_0x81208['plugins']['has']('UndoEditing')&&(_0x22dd60['enableCommand']('undo'),_0x22dd60['enableCommand']('redo'));}}class Tt extends _0x2bd390{static get['requires'](){return[vt];}['afterInit'](){const _0x33bfe9=this['editor'];if(!_0x33bfe9['plugins']['has']('TableCaptionEditing'))return;_0x33bfe9['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class xt extends _0x2bd390{['tableProperties'];['tableCellProperties'];constructor(_0x558b39){super(_0x558b39),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 _0xb5c5c=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x29ecdf of this['tableProperties'])_0xb5c5c['enableCommand'](_0x29ecdf,(_0x441917,_0x4e1b96)=>{const _0x480035=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x29ecdf,[_0x480035],this['tableProperties'],'tableProperties',_0x441917,_0x4e1b96);});_0xb5c5c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xb5c5c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xb5c5c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5532e5,_0x1a02df)=>this['handleDiscardAction'](this['tableProperties'],_0x5532e5,_0x1a02df)),_0xb5c5c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x237471 of this['tableCellProperties'])_0xb5c5c['enableCommand'](_0x237471,(_0x45c7af,_0x310f5c)=>{const _0x9efd03=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x237471,_0x9efd03,this['tableCellProperties'],'tableCellProperties',_0x45c7af,_0x310f5c);});_0xb5c5c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xb5c5c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xb5c5c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x55a736,_0x5324c3)=>this['handleDiscardAction'](this['tableCellProperties'],_0x55a736,_0x5324c3)),_0xb5c5c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xb5c5c['descriptionFactory']['registerDescriptionCallback'](_0x3f21fb=>this['handleSuggestionDescription'](_0x3f21fb));}['_handlePropertyChange'](_0x4e4ed6,_0x4fdf40,_0x1d7f5d,_0x4d4ac1,_0xc1ee48,_0x5ab33a){const _0x1583ce=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5ab33a['batch'],()=>{for(const _0x22bbd5 of _0x4fdf40){if(this['_getSuggestion'](_0x22bbd5,_0x4d4ac1))_0xc1ee48(_0x5ab33a);else{const _0x3501f4={};for(const _0x1ac42d of _0x1d7f5d){const _0x5c73c0=_0x22bbd5['getAttribute'](_0x1ac42d);void 0x0!==_0x5c73c0&&(_0x3501f4[_0x1ac42d]=_0x5c73c0);}_0xc1ee48(_0x5ab33a),_0x1583ce['markBlockFormat'](_0x22bbd5,{'commandParams':[_0x3501f4]},[],_0x4d4ac1);}}});}['handleDiscardAction'](_0x5817dc,_0x321a83,_0x5451db){const _0x52c7e3=_0x321a83[0x0]['start']['nodeAfter'],_0x4d1603=_0x5451db['commandParams'][0x0];this['editor']['model']['change'](_0x1e2118=>{for(const _0x5a3aa4 of _0x5817dc)void 0x0!==_0x4d1603[_0x5a3aa4]?_0x1e2118['setAttribute'](_0x5a3aa4,_0x4d1603[_0x5a3aa4],_0x52c7e3):_0x1e2118['removeAttribute'](_0x5a3aa4,_0x52c7e3);});}['handleSuggestionDescription'](_0x4a6c7e){if(_0x4a6c7e['data'])switch(_0x4a6c7e['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'](_0x2ea7b8,_0x504eb1){const _0x3bf7cc=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3b5f35 of _0x3bf7cc['getSuggestions']({'skipNotAttached':!0x0})){const _0x3ae8d9=_0x3b5f35['getContainedElement']();if(_0x3b5f35['subType']===_0x504eb1&&_0x3ae8d9===_0x2ea7b8)return _0x3b5f35;}return null;}}const m='$elementName';class p extends _0x2bd390{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x396d67,_0x5dcbf1,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,Se,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Tt,Nt,Dt,$t,xt,Mt,Bt,Ot,Rt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3336a4){super(_0x3336a4),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5c59dc,_0x1fe014,_0x2e32be,_0x4163da)=>{this['_model']['change'](()=>{for(const _0x3f6c52 of[..._0x4163da,..._0x2e32be])this['_model']['markers']['has'](_0x3f6c52)&&_0x3336a4['editing']['reconvertMarker'](_0x3f6c52);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ut(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3336a4['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(),_0x3336a4['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3336a4['config']['get']('trackChanges.trackFormatChanges'),_0x3336a4['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3336a4['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x3336a4,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x198604=this['editor'],_0x23463=(_0x47b361,_0x1ab57f)=>{if('attribute'!=_0x47b361)return'ck-suggestion-marker-'+_0x47b361;const _0x1fd076=_0x1ab57f['split']('|')[0x0];return this['_isBlockAttribute'](_0x1fd076)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x198604['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x39eb44=>{const {id:_0x30ea47,authorId:_0x640a4f,type:_0x59bfb9,subType:_0x1593cf}=this['_splitMarkerName'](_0x39eb44['markerName']),_0x5ce9d2=['ck-suggestion-marker',_0x23463(_0x59bfb9,_0x1593cf)];let _0x56c173=0xbb8;return this['activeMarkers']['includes'](_0x39eb44['markerName'])&&(_0x5ce9d2['push']('ck-suggestion-marker--active'),_0x56c173=0xbc2),'deletion'==_0x59bfb9&&(_0x56c173+=0x5),{'classes':_0x5ce9d2,'attributes':{'data-suggestion':_0x30ea47,'data-author-id':_0x640a4f},'priority':_0x56c173};}}),_0x198604['conversion']['for']('dataDowncast')['add'](_0x1127be=>{_0x1127be['on']('addMarker:suggestion',(_0x587d2e,_0x5725ca,_0x212198)=>{if(!_0x212198['options']['showSuggestionHighlights'])return;const _0x3edf56=_0x5725ca['item'];if(!_0x3edf56)return;const _0x39c2ee=_0x212198['mapper']['toViewElement'](_0x3edf56);_0x198604['model']['schema']['isObject'](_0x3edf56)&&_0x39c2ee&&!_0x39c2ee['getCustomProperty']('widget')&&_0x39c2ee['is']('containerElement')&&_0x33f2b9(_0x39c2ee,_0x212198['writer']);},{'priority':'high'});}),_0x198604['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x576623,_0x4b3222)=>{if(!_0x4b3222['options']['showSuggestionHighlights'])return null;const {type:_0x11cccd,subType:_0x3d0366}=this['_splitMarkerName'](_0x576623['markerName']);return{'classes':['ck-suggestion-marker',_0x23463(_0x11cccd,_0x3d0366)],'priority':0xbb8};}});const _0x37baea=({showActiveMarkers:_0x5df308=!0x0,isAttributeSuggestion:_0x74d22f=!0x1}={})=>(_0xbe5197,_0x1e9c7f,_0x11954d)=>{if(!_0x1e9c7f['item'])return;const {id:_0x2c5dd4,authorId:_0x485e96}=this['_splitMarkerName'](_0x1e9c7f['markerName']);if(_0x74d22f){const _0xf03fc=this['_suggestions']['get'](_0x2c5dd4),_0x3d24ed=this['_getAttributeKey'](_0xf03fc);if(!this['_isBlockAttribute'](_0x3d24ed))return;}if(_0x1e9c7f['item']['is']('selection'))return void _0x11954d['consumable']['consume'](_0x1e9c7f['item'],_0xbe5197['name']);const _0x5cee82=_0x11954d['mapper']['toViewElement'](_0x1e9c7f['item']);if(_0x1e9c7f['item']['is']('element')&&_0x198604['model']['schema']['isBlock'](_0x1e9c7f['item'])&&!_0x5cee82['getCustomProperty']('addHighlight')){_0x11954d['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5cee82),_0x11954d['writer']['setAttribute']('data-suggestion',_0x2c5dd4,_0x5cee82),_0x11954d['writer']['setAttribute']('data-author-id',_0x485e96,_0x5cee82),_0x11954d['mapper']['bindElementToMarker'](_0x5cee82,_0x1e9c7f['markerName']),_0x5df308&&(this['activeMarkers']['includes'](_0x1e9c7f['markerName'])?_0x11954d['writer']['addClass']('ck-suggestion-marker--active',_0x5cee82):_0x11954d['writer']['removeClass']('ck-suggestion-marker--active',_0x5cee82));for(const _0x48dd95 of _0x198604['model']['createRangeIn'](_0x1e9c7f['item'])['getItems']())_0x11954d['consumable']['consume'](_0x48dd95,_0xbe5197['name']);_0x11954d['consumable']['consume'](_0x1e9c7f['item'],_0xbe5197['name']);}};_0x198604['conversion']['for']('dataDowncast')['add'](_0x319a15=>{_0x319a15['on']('addMarker:suggestion:formatBlock',(_0x4fdc5b,_0x5abada,_0x511ab4)=>{_0x511ab4['options']['showSuggestionHighlights']&&_0x37baea({'showActiveMarkers':!0x1})(_0x4fdc5b,_0x5abada,_0x511ab4);},{'priority':'highest'});}),_0x198604['conversion']['for']('dataDowncast')['add'](_0x47bedc=>{_0x47bedc['on']('addMarker:suggestion:attribute',(_0x1199b9,_0x22f21d,_0x1acdfc)=>{_0x1acdfc['options']['showSuggestionHighlights']&&_0x37baea({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1199b9,_0x22f21d,_0x1acdfc);},{'priority':'highest'});}),_0x198604['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2699ae,_0x4d463f)=>_0x4d463f['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x2699ae['substr'](0xb)}}),_0x198604['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x35380f,{writer:_0x21f8e6})=>{let _0x14391f='suggestion:'+_0x35380f['getAttribute']('suggestion-type')+':'+_0x35380f['getAttribute']('id');return _0x35380f['getAttribute']('marker-count')&&(_0x14391f+=':'+_0x35380f['getAttribute']('marker-count')),_0x21f8e6['createElement']('$marker',{'data-name':_0x14391f});}}),_0x198604['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x198604['conversion']['for']('editingDowncast')['add'](_0x3ea95e=>{_0x3ea95e['on']('addMarker:suggestion:formatBlock',_0x37baea(),{'priority':'high'});}),_0x198604['conversion']['for']('editingDowncast')['add'](_0x1dd763=>{_0x1dd763['on']('addMarker:suggestion:attribute',_0x37baea({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x198604['conversion']['for']('editingDowncast')['add'](_0x214639=>{_0x214639['on']('removeMarker:suggestion:formatBlock',(_0x2ffaaa,_0x994468,_0x1dca3e)=>{const _0x3cf1b9=_0x1dca3e['mapper']['markerNameToElements'](_0x994468['markerName']);if(_0x3cf1b9){for(const _0x1421e1 of _0x3cf1b9)_0x1421e1['getCustomProperty']('addHighlight')||(_0x1dca3e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1421e1),_0x1dca3e['writer']['removeAttribute']('data-suggestion',_0x1421e1),_0x1dca3e['writer']['removeAttribute']('data-author-id',_0x1421e1),_0x1dca3e['mapper']['unbindElementFromMarkerName'](_0x1421e1,_0x994468['markerName']));}},{'priority':'high'});}),_0x198604['conversion']['for']('editingDowncast')['add'](_0x6fcc2e=>{_0x6fcc2e['on']('removeMarker:suggestion:attribute',(_0x2cf2c7,_0x32d78c,_0x48412e)=>{const _0x34155a=_0x48412e['mapper']['markerNameToElements'](_0x32d78c['markerName']);if(!_0x34155a)return;const {id:_0xc2bf22}=this['_splitMarkerName'](_0x32d78c['markerName']),_0x5f0654=this['_suggestions']['get'](_0xc2bf22),_0x351eb1=this['_getAttributeKey'](_0x5f0654);if(this['_isBlockAttribute'](_0x351eb1)){for(const _0x487aeb of _0x34155a)_0x487aeb['getCustomProperty']('addHighlight')||(_0x48412e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x487aeb),_0x48412e['writer']['removeAttribute']('data-suggestion',_0x487aeb),_0x48412e['writer']['removeAttribute']('data-author-id',_0x487aeb),_0x48412e['mapper']['unbindElementFromMarkerName'](_0x487aeb,_0x32d78c['markerName']));}},{'priority':'high'});}),_0x198604['model']['document']['registerPostFixer'](_0xd7ea67=>{let _0x206d32=!0x1;const _0x1bbaa9=Array['from'](_0x198604['model']['document']['differ']['getChangedMarkers']()),_0x19d811=new Set();for(const {name:_0x4fe618,data:_0x4801f6}of _0x1bbaa9){const {group:_0x34ea3a,type:_0xa8ea12,subType:_0x15c22b,id:_0x2d255a}=this['_splitMarkerName'](_0x4fe618);if('suggestion'!==_0x34ea3a)continue;const _0x5ea001=this['_suggestions']['get'](_0x2d255a);if(null!=_0x4801f6['newRange']){'formatInline'==_0xa8ea12&&(_0x206d32=_0x206d32||Gt(_0x4801f6['newRange'],_0x4fe618,_0xd7ea67,_0x198604['model']['schema']));const _0x1c0cfa='attribute'==_0xa8ea12&&this['_isBlockAttribute'](_0x15c22b['split']('|')[0x0]);if(_0x4801f6['newRange']['isCollapsed']||'$graveyard'==_0x4801f6['newRange']['root']['rootName']||'formatBlock'==_0xa8ea12&&!Lt(_0x4801f6['newRange'])||_0x1c0cfa&&!Lt(_0x4801f6['newRange'])||'deletion'==_0xa8ea12&&!(!Pt(_0x476cac=_0x4801f6['newRange'])&&!function(_0x4941e9){return _0x4941e9['start']['parent']==_0x4941e9['end']['nodeBefore']&&_0x4941e9['start']['isAtEnd'];}(_0x476cac)))_0xd7ea67['removeMarker'](_0x4fe618),_0x206d32=!0x0;else{if(!_0x5ea001||!_0x5ea001['isInContent'])continue;if(_0x4801f6['newRange']&&_0x4801f6['oldRange']&&_0x4801f6['newRange']['isEqual'](_0x4801f6['oldRange']))continue;_0x19d811['add'](_0x5ea001);}}}var _0x476cac;return _0x19d811['size']>0x0&&(_0x206d32=!!this['_joinWithAdjacentSuggestions'](_0x19d811)||_0x206d32),_0x206d32;}),_0x198604['model']['document']['registerPostFixer'](_0x5d9fa5=>{let _0x26979c=!0x1;for(const _0x448513 of _0x198604['model']['document']['differ']['getChanges']())if('insert'==_0x448513['type'])for(const _0x342d4d of this['_suggestions']['values']()){if(_0x342d4d['isMultiRange']||!_0x342d4d['isInContent'])continue;const _0x308a17='formatBlock'==_0x342d4d['type'],_0x124bb2=this['_getAttributeKey'](_0x342d4d),_0x209f0f=_0x124bb2&&this['_isBlockAttribute'](_0x124bb2);if(!_0x308a17&&!_0x209f0f)continue;const _0x49a92e=_0x342d4d['getFirstRange']();if(_0x49a92e['start']['parent']!=_0x49a92e['end']['parent']&&!_0x49a92e['end']['isAtEnd']){const _0x15623e=_0x198604['model']['createPositionAt'](_0x49a92e['start']['nodeAfter'],'end'),_0x358bd9=_0x198604['model']['createRange'](_0x49a92e['start'],_0x15623e);_0x5d9fa5['updateMarker'](_0x342d4d['getFirstMarker'](),{'range':_0x358bd9}),_0x26979c=!0x0;}}return _0x26979c;}),_0x198604['model']['document']['registerPostFixer'](_0x3f02c6=>this['_processAttributeChanges'](_0x3f02c6)),_0x198604['model']['document']['registerPostFixer'](_0x36bad9=>!_0x36bad9['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x36bad9)),_0x198604['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x198604['model']['document']['on']('change:data',(_0x419e7c,_0x1bba08)=>{if(!_0x1bba08['isLocal']||_0x1bba08['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xdcdf23=_0x198604['model']['document']['differ']['getChanges']();if(0x0==_0xdcdf23['length'])return;const _0x403650=[],_0x44bc08=_0xdcdf23['filter'](_0x1ce855=>'attribute'==_0x1ce855['type']),_0x5599b8=_0xdcdf23['filter'](_0x1edeaa=>'insert'==_0x1edeaa['type']&&'$text'!=_0x1edeaa['name']);for(const _0x614677 of _0x44bc08)this['_isRegisteredAttribute'](_0x614677['attributeKey'])&&_0x403650['push']({'key':_0x614677['attributeKey'],'newValue':_0x614677['attributeNewValue'],'oldValue':_0x614677['attributeOldValue'],'range':Jt(_0x614677['range'],_0x198604['model'])});for(const _0x4512c0 of _0x5599b8){if('rename'!=_0x4512c0['action']&&'refresh'!=_0x4512c0['action'])continue;const _0x2c6756=Ht(_0x4512c0['position']['nodeAfter'],_0x198604['model']),_0x497904=_0x4512c0['before'];'rename'==_0x4512c0['action']&&_0x403650['push']({'key':m,'newValue':_0x4512c0['name'],'oldValue':_0x497904['name'],'range':_0x2c6756});for(const [_0xe15fed,_0x373b79]of _0x497904['attributes']){if(!this['_isRegisteredAttribute'](_0xe15fed))continue;const _0x5951f1=_0x4512c0['attributes']['get'](_0xe15fed);_0x373b79!==_0x5951f1&&_0x403650['push']({'key':_0xe15fed,'newValue':_0x5951f1,'oldValue':_0x373b79,'range':_0x2c6756});}for(const [_0x306e2a,_0x21ed48]of _0x4512c0['attributes'])this['_isRegisteredAttribute'](_0x306e2a)&&(_0x497904['attributes']['has'](_0x306e2a)||_0x403650['push']({'key':_0x306e2a,'newValue':_0x21ed48,'oldValue':null,'range':_0x2c6756}));}0x0!=_0x403650['length']&&_0x198604['model']['enqueueChange'](_0x1bba08,_0x1cebc2=>{const _0x4e610f=_0x309c8a();for(const {range:_0x20879c,key:_0x481b99,oldValue:_0x1f317d,newValue:_0xc6909}of _0x403650)this['markAttributeChange'](_0x20879c,_0x481b99,_0x1f317d,_0xc6909,{'groupId':_0x4e610f});this['_reduceExistingSuggestions'](_0x1cebc2,_0x403650);});},{'priority':'lowest'}),_0x198604['model']['markers']['on']('update:suggestion',(_0x15b0c2,_0x47cd93,_0x570370)=>{if(null==_0x570370){const {id:_0xd0f501}=this['_splitMarkerName'](_0x47cd93['name']),_0x146779=this['_suggestions']['get'](_0xd0f501);_0x146779&&_0x146779['addMarkerName'](_0x47cd93['name']);}}),_0x198604['model']['document']['on']('change:data',()=>{const _0x44728d=Array['from'](_0x198604['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2f670c=>'suggestion'===this['_splitMarkerName'](_0x2f670c['name'])['group']);if(0x0===_0x44728d['length'])return;_0x44728d['sort']((_0x4594f2,_0x4cc845)=>{const _0x13e81a=_0x4594f2['data']['oldRange'],_0x456ee1=_0x4cc845['data']['oldRange'];return null===_0x13e81a&&null===_0x456ee1?0x0:null===_0x13e81a&&null!==_0x456ee1?-0x1:null!==_0x13e81a&&null===_0x456ee1?0x1:_0x13e81a['start']['isBefore'](_0x456ee1['start'])?-0x1:0x1;});const _0x5d3774=new Set(),_0x4a84ae=new Set();for(const {name:_0x5a6d7e,data:_0xd34d02}of _0x44728d){const {id:_0x61e1ba}=this['_splitMarkerName'](_0x5a6d7e);if(null===_0xd34d02['oldRange']){const _0x4ef0c7=this['_handleNewSuggestionMarker'](_0x5a6d7e);_0x4a84ae['add'](_0x4ef0c7);}else{const _0x400c87=this['_suggestions']['get'](_0x61e1ba);null!==_0xd34d02['newRange']||_0x400c87['isInContent']?(_0x5d3774['add'](_0x400c87['head']),_0x4a84ae['add'](_0x400c87)):this['_removeSuggestion'](_0x400c87);}}_0x4a84ae['size']>0x0&&this['_refreshSuggestionsChain'](_0x4a84ae);for(const _0x12eb00 of _0x5d3774)this['fire']('suggestionChanged',_0x12eb00);}),_0x198604['model']['on']('applyOperation',(_0x4e859a,_0x424a5d)=>{const _0x568250=_0x424a5d[0x0];if(!this['_suggestions']['size'])return;if(!_0x568250['isDocumentOperation'])return;if(_0x568250['batch']['isUndo']||!_0x568250['batch']['isLocal'])return;let _0x4c6cbb,_0x14fa52;switch(_0x568250['type']){case'insert':_0x4c6cbb=_0x198604['model']['createPositionAt'](_0x568250['position']),_0x14fa52=_0x4c6cbb['getShiftedBy'](_0x568250['howMany']);break;case'split':_0x4c6cbb=_0x198604['model']['createPositionAt'](_0x568250['splitPosition']),_0x14fa52=_0x198604['model']['createPositionAt'](_0x568250['moveTargetPosition']);break;case'move':_0x4c6cbb=_0x198604['model']['createPositionAt'](_0x568250['targetPosition']),_0x14fa52=_0x4c6cbb['getShiftedBy'](_0x568250['howMany']);break;default:return;}const _0x41895e=_0x198604['model']['createRange'](_0x4c6cbb,_0x14fa52);_0x198604['model']['change'](()=>{for(const {suggestion:_0x104376,meta:_0x1d8787}of this['_findSuggestions'](_0x41895e)){if(_0x104376['isMultiRange'])continue;if('formatInline'==_0x104376['type'])continue;const _0x192f47=this['_getAttributeKey'](_0x104376);if(_0x192f47&&this['_isBlockAttribute'](_0x192f47)&&'split'!=_0x568250['type'])continue;const _0x34b2cd=_0x104376['data']&&_0x104376['data']['multipleBlocks'];('formatBlock'!=_0x104376['type']||'split'==_0x568250['type']&&!_0x34b2cd)&&(_0x1d8787['containsRangeInObject']||'insertion'==_0x104376['type']&&_0x1d8787['isOwn']||_0x104376['getFirstRange']()['containsRange'](_0x41895e)&&this['_breakSuggestionMarker'](_0x104376,_0x4c6cbb,_0x14fa52));}});},{'priority':'lowest'}),_0x198604['model']['on']('deleteContent',(_0x563d3f,_0x1e97b3)=>{const _0x346a57=_0x1e97b3[0x0],_0x216657=_0x1e97b3[0x1];if(_0x216657&&_0x216657['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x346a57['isCollapsed'])return;const _0x410b3c=_0x198604['model']['schema'],{start:_0x4dfcdc,end:_0x1f18bc}=_0x346a57['getFirstRange'](),_0x4ed4df=_0x4dfcdc['nodeAfter']&&_0x410b3c['isLimit'](_0x4dfcdc['nodeAfter'])?null:_0x410b3c['getNearestSelectionRange'](_0x4dfcdc,'forward'),_0x4b9d9d=_0x1f18bc['nodeBefore']&&_0x410b3c['isLimit'](_0x1f18bc['nodeBefore'])?null:_0x410b3c['getNearestSelectionRange'](_0x1f18bc,'backward'),_0x59a789=_0x198604['model']['createRange'](_0x4ed4df?_0x4ed4df['start']:_0x4dfcdc,_0x4b9d9d?_0x4b9d9d['end']:_0x1f18bc);_0x198604['model']['change'](_0x3bbe61=>{this['markDeletion'](_0x59a789);const _0x3dd200=_0x198604['model']['schema']['getNearestSelectionRange'](_0x59a789['start']);_0x346a57['is']('documentSelection')?_0x3bbe61['setSelection'](_0x3dd200):_0x346a57['setTo'](_0x3dd200);}),_0x563d3f['stop']();},{'priority':_0x574764['normal']+0xa}),_0x198604['model']['on']('insertContent',(_0x5705b5,_0x1bcee9)=>{const _0x563d12=_0x1bcee9[_0x1bcee9['length']-0x1];_0x563d12&&_0x563d12['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x198604['model']['change'](()=>{let _0x4788e1=_0x198604['model']['insertContent'](_0x1bcee9[0x0],_0x1bcee9[0x1],_0x1bcee9[0x2],{'forceDefaultExecution':!0x0});if(!_0x4788e1)return;_0x5705b5['return']=_0x4788e1['clone']();const _0x3657a7=_0x4788e1['end']['nodeBefore'],_0x3d5c18=_0x198604['model']['schema'];_0x3657a7&&_0x3d5c18['isBlock'](_0x3657a7)&&!_0x3d5c18['isObject'](_0x3657a7)&&(_0x4788e1=_0x198604['model']['createRange'](_0x4788e1['start'],_0x198604['model']['createPositionAt'](_0x3657a7,'end'))),this['markInsertion'](_0x4788e1);}),_0x5705b5['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4b723c=new O(_0x198604,this['_suggestions']);_0x198604['commands']['add']('acceptSuggestion',_0x4b723c),this['enableCommand']('acceptSuggestion');const _0x12d994=new R(_0x198604,this['_suggestions']);_0x198604['commands']['add']('discardSuggestion',_0x12d994),this['enableCommand']('discardSuggestion'),_0x198604['commands']['add']('acceptAllSuggestions',new x(_0x198604,_0x4b723c,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x198604['commands']['add']('discardAllSuggestions',new x(_0x198604,_0x12d994,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x198604['commands']['add']('acceptSelectedSuggestions',new E(_0x198604,_0x4b723c,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x198604['commands']['add']('discardSelectedSuggestions',new E(_0x198604,_0x12d994,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5e0adf=_0x198604['plugins']['get']('CommentsRepository');this['listenTo'](_0x5e0adf,'addComment',(_0x4dae35,{threadId:_0x106bd6})=>{const _0x398141=this['_suggestions']['get'](_0x106bd6);_0x398141&&_0x398141['commentThread']&&0x1===_0x398141['commentThread']['length']&&this['_updateSuggestionData'](_0x106bd6,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5e0adf,'removeComment',(_0x266293,{threadId:_0x265cc8})=>{const _0x414fcc=this['_suggestions']['get'](_0x265cc8);_0x414fcc&&_0x414fcc['commentThread']&&!_0x414fcc['commentThread']['length']&&this['_updateSuggestionData'](_0x265cc8,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0xee8796){const _0x1f3184=_0x71e1aa([0x44,0x39,0x54,0x74,0x6a,0x49,0x5a,0x32,0x57,0x6f,0x30,0x52,0x76,0x6d,0x63,0x4f,0x62,0x71,0x58,0x79,0x78,0x6c,0x6b,0x75,0x59,0x46,0x53,0x6e,0x38,0x45,0x73,0x77,0x7a,0x50,0x68,0x35,0x55,0x51,0x4b,0x4a,0x67,0x43,0x33,0x65,0x4e,0x70,0x48,0x47,0x42,0x56,0x34,0x72,0x61,0x36,0x66,0x31,0x4c,0x69,0x4d,0x37,0x64,0x41]),_0x56f697=0x19176726,_0xeef55b=0x1910383e^_0x56f697,_0x5536df=window[_0x71e1aa([0x44,0x61,0x74,0x65])][_0x71e1aa([0x6e,0x6f,0x77])](),_0x5e7f26=_0xee8796[_0x71e1aa([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x445a49=new window[(_0x71e1aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b69c2=>{_0x5e7f26[_0x71e1aa([0x6f,0x6e,0x63,0x65])](_0x71e1aa([0x72,0x65,0x61,0x64,0x79]),_0x1b69c2);}),_0x1457d7={[_0x71e1aa([0x6b,0x74,0x79])]:_0x71e1aa([0x45,0x43]),[_0x71e1aa([0x75,0x73,0x65])]:_0x71e1aa([0x73,0x69,0x67]),[_0x71e1aa([0x63,0x72,0x76])]:_0x71e1aa([0x50,0x2d,0x32,0x35,0x36]),[_0x71e1aa([0x78])]:_0x71e1aa([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]),[_0x71e1aa([0x79])]:_0x71e1aa([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]),[_0x71e1aa([0x61,0x6c,0x67])]:_0x71e1aa([0x45,0x53,0x32,0x35,0x36])},_0x24f1dc=_0x5e7f26[_0x71e1aa([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x71e1aa([0x67,0x65,0x74])](_0x71e1aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xa8b06d(){let _0x401bf7,_0x478c72=null,_0x5c5e78=null;try{if(_0x24f1dc==_0x71e1aa([0x47,0x50,0x4c]))return _0x71e1aa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x401bf7=_0x1bca48(),!_0x401bf7)return _0x71e1aa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x401bf7[_0x71e1aa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5c5e78=_0x4d28be(_0x401bf7[_0x71e1aa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x401bf7[_0x71e1aa([0x6a,0x74,0x69])])),await _0x1b5571()?_0x3d9347()?_0x17b106()?_0x71e1aa([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5d0ac6()?(_0x401bf7[_0x71e1aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x71e1aa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x478c72=_0x4c3f42(_0x71e1aa([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x401bf7[_0x71e1aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x71e1aa([0x74,0x72,0x69,0x61,0x6c])&&(_0x478c72=_0x4c3f42(_0x71e1aa([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1e5203()):_0x71e1aa([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x71e1aa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x71e1aa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3f9920){return _0x71e1aa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x17b106(){const _0x519b16=[_0x71e1aa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x71e1aa([0x74,0x72,0x69,0x61,0x6c])][_0x71e1aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x401bf7[_0x71e1aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5536df/0x3e8:0xe10*_0xeef55b;return _0x401bf7[_0x71e1aa([0x65,0x78,0x70])]<_0x519b16;}function _0x3d9347(){const _0x3cb7d7=_0x401bf7[_0x71e1aa([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3cb7d7)return!0x1;if(_0x3cb7d7[_0x71e1aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x71e1aa([0x2a])))return!0x0;if(_0x3cb7d7[_0x71e1aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x71e1aa([0x54,0x43])))return!0x0;if(_0x3cb7d7[_0x71e1aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x71e1aa([0x52,0x54,0x43]))){if(_0x45a773())return!0x0;if(_0x3e409b()||_0x599a08())return!0x0;}return!0x1;}function _0x5d0ac6(){const _0x452d5c=_0x401bf7[_0x71e1aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x452d5c||0x0==_0x452d5c[_0x71e1aa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4c0f43}=new URL(window[_0x71e1aa([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x452d5c[_0x71e1aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c0f43))return!0x0;const _0x19bb4a=_0x4c0f43[_0x71e1aa([0x73,0x70,0x6c,0x69,0x74])](_0x71e1aa([0x2e]));return _0x452d5c[_0x71e1aa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x209e31=>_0x209e31[_0x71e1aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x71e1aa([0x2a])))[_0x71e1aa([0x6d,0x61,0x70])](_0x356fd8=>_0x356fd8[_0x71e1aa([0x73,0x70,0x6c,0x69,0x74])](_0x71e1aa([0x2e])))[_0x71e1aa([0x73,0x6f,0x6d,0x65])](_0x33ce86=>_0x19bb4a[_0x71e1aa([0x65,0x76,0x65,0x72,0x79])]((_0x10bbd2,_0x46d43f)=>_0x33ce86[_0x46d43f]===_0x10bbd2||_0x33ce86[_0x46d43f]===_0x71e1aa([0x2a])));}function _0x1e5203(){return _0x478c72&&_0x5c5e78?new window[(_0x71e1aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5c665d,_0x9f4df4)=>{_0x478c72[_0x71e1aa([0x74,0x68,0x65,0x6e])](_0x5c665d,_0x9f4df4),_0x5c5e78[_0x71e1aa([0x74,0x68,0x65,0x6e])](_0x429e09=>{_0x429e09!=_0x71e1aa([0x56,0x61,0x6c,0x69,0x64])&&_0x5c665d(_0x429e09);},_0x9f4df4);}):_0x478c72||_0x5c5e78||_0x71e1aa([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4d28be(_0x126497,_0x3dc315){return new window[(_0x71e1aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x290cd3=>{if(_0x36fcb8())return _0x290cd3(_0x71e1aa([0x56,0x61,0x6c,0x69,0x64]));_0x58abf9(),_0x5e7f26[_0x71e1aa([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x71e1aa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xb88fe5=!0x1;const _0x4e5611=_0x309c8a();function _0x638e6b(_0x55963c){return!!_0x55963c&&(typeof _0x55963c===_0x71e1aa([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x55963c===_0x71e1aa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x55963c[_0x71e1aa([0x74,0x68,0x65,0x6e])]===_0x71e1aa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x55963c[_0x71e1aa([0x63,0x61,0x74,0x63,0x68])]===_0x71e1aa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4b08e4(_0x47846c){_0x2dcdfb(_0x47846c)[_0x71e1aa([0x74,0x68,0x65,0x6e])](_0x4ca32b=>{if(!_0x4ca32b||_0x4ca32b[_0x71e1aa([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x71e1aa([0x6f,0x6b]))return _0x71e1aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3d12c8(_0x1eed63(_0x4e5611+_0x3dc315))!=_0x4ca32b[_0x71e1aa([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x71e1aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x71e1aa([0x56,0x61,0x6c,0x69,0x64]);})[_0x71e1aa([0x74,0x68,0x65,0x6e])](_0x1fcdd0=>(_0x589d38(),_0x1fcdd0),()=>{const _0x151692=_0x4e99ba();return null==_0x151692?(_0x589d38(),_0x71e1aa([0x56,0x61,0x6c,0x69,0x64])):_0x71e1aa(_0x5536df-_0x151692>(0x3d1be326^_0x56f697)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x71e1aa([0x74,0x68,0x65,0x6e])](_0x290cd3)[_0x71e1aa([0x63,0x61,0x74,0x63,0x68])](()=>{_0x290cd3(_0x71e1aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4e8f26=0x192189a6^_0x56f697;function _0x589d38(){const _0x1cc178=_0x71e1aa([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d12c8(_0x1eed63(_0x126497)),_0x5c36ab=_0x58b9ff(_0x3d12c8(window[_0x71e1aa([0x4d,0x61,0x74,0x68])][_0x71e1aa([0x63,0x65,0x69,0x6c])](_0x5536df/_0x4e8f26)));window[_0x71e1aa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x71e1aa([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1cc178,_0x5c36ab);}function _0x4e99ba(){const _0x51ea09=_0x71e1aa([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d12c8(_0x1eed63(_0x126497)),_0x1981c5=window[_0x71e1aa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x71e1aa([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x51ea09);return _0x1981c5?window[_0x71e1aa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58b9ff(_0x1981c5),0x10)*_0x4e8f26:null;}function _0x2dcdfb(_0x481883){return new window[(_0x71e1aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x242983,_0x2be2e0)=>{_0x481883[_0x71e1aa([0x74,0x68,0x65,0x6e])](_0x242983,_0x2be2e0),window[_0x71e1aa([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2be2e0,0x1916b3e6^_0x56f697);});}}_0x5e7f26[_0x71e1aa([0x6f,0x6e])](_0x71e1aa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x551287,_0x13a75e)=>{if(_0x13a75e[0x0]!=_0x126497)return _0x290cd3(_0x71e1aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x13a75e[0x1]={..._0x13a75e[0x1],[_0x71e1aa([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4e5611};},{[_0x71e1aa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x71e1aa([0x68,0x69,0x67,0x68])}),_0x5e7f26[_0x71e1aa([0x6f,0x6e])](_0x71e1aa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x49d89b=>{_0x638e6b(_0x49d89b[_0x71e1aa([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xb88fe5=!0x0,_0x4b08e4(_0x49d89b[_0x71e1aa([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x71e1aa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x71e1aa([0x6c,0x6f,0x77])}),_0x445a49[_0x71e1aa([0x74,0x68,0x65,0x6e])](()=>{_0xb88fe5||_0x290cd3(_0x71e1aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x36fcb8(){return _0x5e7f26[_0x71e1aa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x71e1aa([0x76,0x69,0x65,0x77])][_0x71e1aa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x71e1aa([0x61,0x75,0x74,0x6f]);}function _0x58abf9(){_0x5e7f26[_0x71e1aa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x71e1aa([0x76,0x69,0x65,0x77])][_0x71e1aa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x71e1aa([0x61,0x75,0x74,0x6f]);}}function _0x4c3f42(_0x287ebd){const _0x34c055=[new window[(_0x71e1aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d1796=>setTimeout(_0x1d1796,0x191e59ea^_0x56f697)),_0x445a49[_0x71e1aa([0x74,0x68,0x65,0x6e])](()=>new window[(_0x71e1aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x376d6e=>{let _0x16dca9=0x0;_0x5e7f26[_0x71e1aa([0x6d,0x6f,0x64,0x65,0x6c])][_0x71e1aa([0x6f,0x6e])](_0x71e1aa([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x47336c,_0xb18c95)=>{_0xb18c95[0x0][_0x71e1aa([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x16dca9++,_0x16dca9==(0x191766de^_0x56f697)&&(_0x376d6e(),_0x47336c[_0x71e1aa([0x6f,0x66,0x66])]());});}))];return window[_0x71e1aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x71e1aa([0x72,0x61,0x63,0x65])](_0x34c055)[_0x71e1aa([0x74,0x68,0x65,0x6e])](()=>_0x287ebd);}async function _0x40080c(){await _0x445a49,_0x5e7f26[_0x71e1aa([0x6d,0x6f,0x64,0x65,0x6c])][_0x71e1aa([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2a39fc,_0x5e7f26[_0x71e1aa([0x6d,0x6f,0x64,0x65,0x6c])][_0x71e1aa([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2a39fc,_0x5e7f26[_0x71e1aa([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x71e1aa([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x45a773(){return _0x3676e9(_0x71e1aa([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x446bdb(_0x71e1aa([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x71e1aa([0x73,0x74,0x61,0x74,0x65])]==_0x71e1aa([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3e409b(){return _0x3676e9(_0x71e1aa([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 _0x599a08(){return _0x3676e9(_0x71e1aa([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x527b4d(_0x4ec48b){const _0x7c41c3=_0x33af11();_0x5e7f26[_0x7c41c3]=_0x71e1aa([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4ec48b,_0x4ec48b!=_0x71e1aa([0x56,0x61,0x6c,0x69,0x64])&&_0x40080c();}function _0x33af11(){const _0x362678=window[_0x71e1aa([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x71e1aa([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x71e1aa([0x6e,0x6f,0x77])]())[_0x71e1aa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x71e1aa([0x2e]),'');let _0x39a740=_0x71e1aa([0x44]);for(let _0x542c64=0x0;_0x542c64<_0x362678[_0x71e1aa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x542c64+=0x2){let _0x567789=window[_0x71e1aa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x362678[_0x71e1aa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x542c64,_0x542c64+0x2));_0x567789>=_0x1f3184[_0x71e1aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x567789-=_0x1f3184[_0x71e1aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x39a740+=_0x1f3184[_0x567789];}return _0x39a740;}function _0x1bca48(){const _0x416666=_0x24f1dc[_0x71e1aa([0x73,0x70,0x6c,0x69,0x74])](_0x71e1aa([0x2e]));if(0x3!=_0x416666[_0x71e1aa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x42d194(_0x416666[0x1]);function _0x42d194(_0x5f54ab){const _0x355e0e=_0x18240e(_0x5f54ab);return _0x355e0e&&_0x19d6f9()?_0x355e0e:null;function _0x19d6f9(){const _0xab69d5=_0x355e0e[_0x71e1aa([0x6a,0x74,0x69])],_0x5ca168=window[_0x71e1aa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xab69d5[_0x71e1aa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xab69d5[_0x71e1aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3aa02f={..._0x355e0e,[_0x71e1aa([0x6a,0x74,0x69])]:_0xab69d5[_0x71e1aa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xab69d5[_0x71e1aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3aa02f[_0x71e1aa([0x76,0x63])],_0x1eed63(_0x3aa02f)==_0x5ca168;}}}async function _0x1b5571(){let _0x462ffc=!0x0;try{const _0x3f7757=_0x24f1dc[_0x71e1aa([0x73,0x70,0x6c,0x69,0x74])](_0x71e1aa([0x2e])),[_0x2940dd,_0xbc1d6d,_0x46962c]=_0x3f7757;return _0x5bc597(_0x2940dd),await _0x4825a7(_0x2940dd,_0xbc1d6d,_0x46962c),_0x462ffc;}catch(_0x435c28){return!0x1;}function _0x5bc597(_0x324af3){const _0x56ffae=_0x18240e(_0x324af3);_0x56ffae&&_0x56ffae[_0x71e1aa([0x61,0x6c,0x67])]==_0x71e1aa([0x45,0x53,0x32,0x35,0x36])||(_0x462ffc=!0x1);}async function _0x4825a7(_0x519492,_0x454464,_0x50d32e){const _0xd61717=window[_0x71e1aa([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x71e1aa([0x66,0x72,0x6f,0x6d])](_0x31ca1e(_0x50d32e),_0x4f48da=>_0x4f48da[_0x71e1aa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2d8e04=new window[(_0x71e1aa([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x71e1aa([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x519492+_0x71e1aa([0x2e])+_0x454464),_0x4865d8=window[_0x71e1aa([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x71e1aa([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4865d8)return;const _0x4a0940=await _0x4865d8[_0x71e1aa([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x71e1aa([0x6a,0x77,0x6b]),_0x1457d7,{[_0x71e1aa([0x6e,0x61,0x6d,0x65])]:_0x71e1aa([0x45,0x43,0x44,0x53,0x41]),[_0x71e1aa([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x71e1aa([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x71e1aa([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4865d8[_0x71e1aa([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x71e1aa([0x6e,0x61,0x6d,0x65])]:_0x71e1aa([0x45,0x43,0x44,0x53,0x41]),[_0x71e1aa([0x68,0x61,0x73,0x68])]:{[_0x71e1aa([0x6e,0x61,0x6d,0x65])]:_0x71e1aa([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4a0940,_0xd61717,_0x2d8e04)||(_0x462ffc=!0x1);}}function _0x18240e(_0x378fcf){return _0x378fcf[_0x71e1aa([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x71e1aa([0x65,0x79]))?JSON[_0x71e1aa([0x70,0x61,0x72,0x73,0x65])](_0x31ca1e(_0x378fcf)):null;}function _0x31ca1e(_0x5b4a0d){return window[_0x71e1aa([0x61,0x74,0x6f,0x62])](_0x5b4a0d[_0x71e1aa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x71e1aa([0x2b]))[_0x71e1aa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x71e1aa([0x2f])));}function _0x1eed63(_0x215054){let _0x39c781=0x1505;function _0x5cd60b(_0x53d9c7){for(let _0x5c6b60=0x0;_0x5c6b60<_0x53d9c7[_0x71e1aa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c6b60++){const _0x54db41=_0x53d9c7[_0x71e1aa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5c6b60);_0x39c781=(_0x39c781<<0x5)+_0x39c781+_0x54db41,_0x39c781&=_0x39c781;}}function _0x5ef028(_0x308233){Array[_0x71e1aa([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x308233)?_0x308233[_0x71e1aa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5ef028):_0x308233&&typeof _0x308233==_0x71e1aa([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x71e1aa([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x308233)[_0x71e1aa([0x73,0x6f,0x72,0x74])]()[_0x71e1aa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x279ed2,_0x2f54f2])=>{_0x5cd60b(_0x279ed2),_0x5ef028(_0x2f54f2);}):_0x5cd60b(window[_0x71e1aa([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x308233));}return _0x5ef028(_0x215054),_0x39c781>>>0x0;}function _0x3d12c8(_0x1e875e){return _0x1e875e[_0x71e1aa([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x71e1aa([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x71e1aa([0x30]));}function _0x58b9ff(_0x5f5785){return _0x5f5785[_0x71e1aa([0x73,0x70,0x6c,0x69,0x74])]('')[_0x71e1aa([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x71e1aa([0x6a,0x6f,0x69,0x6e])]('');}function _0x3676e9(_0x19d8e1){return _0x5e7f26[_0x71e1aa([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x71e1aa([0x68,0x61,0x73])](_0x19d8e1);}function _0x446bdb(_0x48178c){return _0x5e7f26[_0x71e1aa([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x71e1aa([0x67,0x65,0x74])](_0x48178c);}function _0x2a39fc(){}function _0x71e1aa(_0x5902e9){return _0x5902e9['map'](_0x3d3554=>String['fromCharCode'](_0x3d3554))['join']('');}_0x527b4d(await _0xa8b06d());}(this);}set['adapter'](_0x2a1262){if(this['_adapter'])throw new _0x1b3384('track-changes-adapter-already-set',this);this['_adapter']=_0x2a1262;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x13c19a=!0x1,toJSON:_0x449c35=!0x1}={}){const _0x1859b1=[];for(const _0x328db1 of this['_suggestions']['values']())_0x13c19a&&!_0x328db1['isInContent']||_0x1859b1['push'](_0x328db1);return _0x449c35?_0x1859b1['map'](_0x16166f=>_0x16166f['toJSON']()):_0x1859b1;}['getSuggestion'](_0x1f9ffa){const _0x5036c2=this['_suggestions']['get'](_0x1f9ffa);if(!_0x5036c2)throw new _0x1b3384('track-changes-suggestion-not-found',this);return _0x5036c2;}['hasSuggestion'](_0x4793cf){return this['_suggestions']['has'](_0x4793cf);}['addSuggestionData'](_0x1fa22e){const {authorId:_0x5857f3,id:_0x868b73,attributes:_0x190508}=_0x1fa22e,[_0x4d3c98,_0x21b9ee]=_0x1fa22e['type']['split'](':'),_0x2a5ac7=this['_suggestions']['get'](_0x868b73)||this['_createSuggestion'](_0x4d3c98,_0x21b9ee,_0x868b73,_0x5857f3,_0x190508);if(this['_addThreadToSuggestion'](_0x2a5ac7),this['_checkSuggestionCorrectness'](_0x2a5ac7,_0x4d3c98,_0x21b9ee||null,_0x5857f3),_0x2a5ac7['createdAt']=_0x1fa22e['createdAt'],_0x2a5ac7['_isDataLoaded']=!0x0,_0x190508&&_0x190508['@external']){const _0x2601e7=_0x190508['@external'],_0x181558=this['_getExternalAuthor'](_0x2601e7['authorName']);_0x2a5ac7['authoredAt']=_0x2601e7['createdAt'],_0x2a5ac7['author']=_0x181558,_0x2a5ac7['isExternal']=!0x0;}else _0x2a5ac7['authoredAt']=_0x1fa22e['createdAt'];switch(_0x1fa22e['data']&&(_0x2a5ac7['data']=_0x1fa22e['data']),_0x1fa22e['attributes']&&(_0x2a5ac7['attributes']=_0x1fa22e['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2a5ac7['_saved']=!0x0),this['_suggestionState']['get'](_0x2a5ac7)){case'notReady':this['_suggestionState']['set'](_0x2a5ac7,'dataReady');break;case'markerReady':_0x2a5ac7['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2a5ac7])),this['_refreshSuggestionsChain'](new Set([_0x2a5ac7])),this['_suggestionState']['set'](_0x2a5ac7,'ready'),this['fire']('suggestionLoaded',_0x2a5ac7)):this['_suggestionState']['set'](_0x2a5ac7,'removed');}return _0x2a5ac7;}['acceptSuggestion'](_0x50c88c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x465528 of _0x50c88c['getAllAdjacentSuggestions']())_0x465528['accept']();});});}['discardSuggestion'](_0x235a15){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x479ddd of _0x235a15['getAllAdjacentSuggestions']())_0x479ddd['discard']();});});}['enableCommand'](_0x1022d4,_0x597ded){const _0x54046d=this['editor']['commands']['get'](_0x1022d4);if(!_0x54046d)throw new _0x1b3384('track-changes-command-not-found',this,{'commandName':_0x1022d4});if(this['_enabledCommands']['has'](_0x54046d))throw new _0x1b3384('track-changes-enable-command-twice',this,{'commandName':_0x1022d4});this['_enabledCommands']['add'](_0x54046d),_0x597ded&&_0x54046d['on']('execute',(_0x2e49fe,_0x30d527)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x30d527['length']>0x0&&_0x30d527[_0x30d527['length']-0x1]&&_0x30d527[_0x30d527['length']-0x1]['forceDefaultExecution']?_0x30d527['pop']():(_0x2e49fe['return']=_0x597ded((..._0x5533d2)=>_0x54046d['execute'](..._0x5533d2,{'forceDefaultExecution':!0x0}),..._0x30d527),_0x2e49fe['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2115b6){let _0x549745,_0x4740c;const _0x49ad19=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x549745=_0x2115b6();}catch(_0x5f1d5b){_0x4740c=_0x5f1d5b;}return _0x49ad19||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4740c&&_0x1b3384['rethrowUnexpectedError'](_0x4740c,this),_0x549745;}['markInsertion'](_0x5ea347,_0x5ccca1=null,_0x10bae2={}){if(_0x5ea347['isCollapsed'])return null;const _0x4aa463=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x170bea,meta:_0x21d790}of this['_findSuggestions'](_0x5ea347,'insertion'))if(_0x21d790['isOwn']){if(!_0x21d790['isNextTo']){if(_0x21d790['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Kt(_0x170bea,_0x10bae2))continue;return _0x170bea;}if(Kt(_0x170bea,_0x10bae2))return _0x170bea;this['_breakSuggestionMarker'](_0x170bea,_0x5ea347['start'],_0x5ea347['end']);break;}if(_0x5ccca1==_0x170bea['subType']&&Kt(_0x170bea,_0x10bae2)){const _0xfc57ba=_0x170bea['getFirstRange']();return _0xfc57ba['start']['isEqual'](_0x5ea347['end'])?this['_setSuggestionRange'](_0x170bea,this['_model']['createRange'](_0x5ea347['start'],_0xfc57ba['end'])):this['_setSuggestionRange'](_0x170bea,this['_model']['createRange'](_0xfc57ba['start'],_0x5ea347['end'])),_0x170bea;}}const _0xb54786=_0x309c8a(),_0x465722=_0x4aa463['id'],_0xa3ae7a=_0x5ccca1?'insertion:'+_0x5ccca1:'insertion',_0xb6f5bb=this['_setSuggestionData']({'id':_0xb54786,'type':_0xa3ae7a,'createdAt':new Date(),'authorId':_0x465722,'attributes':_0x10bae2});return this['_addSuggestionMarker'](_0xa3ae7a,_0xb54786,_0x465722,_0x5ea347),_0xb6f5bb;}['markMultiRangeInsertion'](_0xcda1b6,_0x5ac69b='multi',_0x499771={}){const _0x37bfbc=this['editor']['plugins']['get']('Users')['me'],_0x5d7dee=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5ac69b,'join');for(const _0x547fcf of this['getSuggestions']())if(_0x547fcf['author']['id']==_0x37bfbc['id']&&'insertion'==_0x547fcf['type']&&_0x547fcf['subType']==_0x5ac69b&&Kt(_0x547fcf,_0x499771)&&(_0x5d7dee(_0x547fcf['getRanges'](),_0xcda1b6)||_0x5d7dee(_0xcda1b6,_0x547fcf['getRanges']()))){for(const _0x330134 of _0xcda1b6)_0x547fcf['addRange'](_0x330134);return _0x547fcf;}for(const {suggestion:_0x4ee05e,meta:_0xd72b83}of this['_findSuggestions'](_0xcda1b6,'insertion')){if(!_0xd72b83['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xd72b83['containsRangeInObject'])continue;if(!Kt(_0x4ee05e,_0x499771))continue;let _0x5522ad=!0x0;for(const _0x3ebe44 of _0x4ee05e['getRanges']())for(const _0x486398 of _0xcda1b6)if(!_0x3ebe44['containsRange'](_0x486398)){_0x5522ad=!0x1;break;}if(_0x5522ad)return _0x4ee05e;}const _0x2efd4e=_0x309c8a(),_0x10942c=_0x37bfbc['id'],_0x43110f='insertion:'+_0x5ac69b,_0x4dae6a=this['_setSuggestionData']({'id':_0x2efd4e,'type':_0x43110f,'createdAt':new Date(),'authorId':_0x10942c,'attributes':_0x499771});for(const _0x498d49 of _0xcda1b6)this['_addSuggestionMarker'](_0x43110f,_0x2efd4e,_0x10942c,_0x498d49,u['getMultiRangeId']());return _0x4dae6a;}['markInlineFormat'](_0x5ba93e,_0x585831,_0x3ce97c=null,_0x5e1f70={}){if(_0x3ce97c=_0x3ce97c||Ft(_0x585831),_0x5ba93e['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x414d44=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3ce97c,'accept');return this['forceDefaultExecution'](()=>_0x414d44([_0x5ba93e],_0x585831,_0x5e1f70)),null;}const _0x620493=this['editor']['plugins']['get']('Users')['me'],_0x12f1b8=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3d70c2,meta:_0x503b68}of this['_findSuggestions'](_0x5ba93e,'insertion'))_0x503b68['isOwn']&&!_0x503b68['isInsideObject']&&_0x12f1b8['push'](..._0x3d70c2['getRanges']());}const _0x449029=function(_0x3e01db,_0x17ee37){const _0x4fb507=[];for(const _0x562925 of _0x17ee37){const _0x2fcba6=_0x3e01db['getIntersection'](_0x562925);_0x2fcba6&&_0x4fb507['push'](_0x2fcba6);}return _0x4fb507;}(_0x5ba93e,_0x12f1b8),_0x1fe062=function(_0x41479d,_0x5a1669){const _0x11b40a=[_0x41479d];for(const _0x434538 of _0x5a1669){let _0x465aab=0x0;for(;_0x465aab<_0x11b40a['length'];){const _0x219776=_0x11b40a[_0x465aab]['getDifference'](_0x434538);_0x11b40a['splice'](_0x465aab,0x1,..._0x219776),_0x465aab+=_0x219776['length'];}}return _0x11b40a;}(_0x5ba93e,_0x12f1b8);_0x449029['length']&&this['_model']['change'](()=>{for(const _0x109d77 of _0x449029){const _0x3f1abd=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3ce97c,'accept');this['forceDefaultExecution'](()=>_0x3f1abd([_0x109d77],_0x585831,_0x5e1f70));}});for(const _0x46d7ad of _0x1fe062){let _0x217a06=null,_0x2d0a43=_0x46d7ad['start'],_0x18d3dd=_0x46d7ad['end'];for(const {suggestion:_0x2dd985,meta:_0x3f9222}of this['_findSuggestions'](_0x46d7ad,'formatInline')){if(!_0x3f9222['isOwn'])continue;if(_0x2dd985['subType']!=_0x3ce97c)continue;if(!Kt(_0x2dd985,_0x5e1f70))continue;const _0x42006b=_0x2dd985['getFirstRange']();if(_0x42006b['containsRange'](_0x46d7ad,!0x0))return null;_0x2d0a43=_0x2d0a43['isBefore'](_0x42006b['start'])?_0x2d0a43:_0x42006b['start'],_0x18d3dd=_0x18d3dd['isAfter'](_0x42006b['end'])?_0x18d3dd:_0x42006b['end'],_0x217a06?_0x42006b['start']['isBefore'](_0x217a06['getFirstRange']()['start'])?(_0x217a06['removeMarkers'](),_0x217a06=_0x2dd985):_0x2dd985['removeMarkers']():_0x217a06=_0x2dd985;}const _0x5ba15e=this['_model']['createRange'](_0x2d0a43,_0x18d3dd);if(_0x217a06)this['_setSuggestionRange'](_0x217a06,_0x5ba15e);else{const _0x4f17bd=_0x309c8a(),_0x506330=_0x620493['id'];this['_setSuggestionData']({'id':_0x4f17bd,'type':'formatInline:'+_0x3ce97c,'data':_0x585831,'createdAt':new Date(),'authorId':_0x506330,'attributes':_0x5e1f70}),this['_addSuggestionMarker']('formatInline:'+_0x3ce97c,_0x4f17bd,_0x506330,_0x5ba15e);}}return null;}['markBlockFormat'](_0x12cf55,_0x295ecd,_0x577183=[],_0x2dc6c8=null,_0x5b591a={}){_0x295ecd['formatGroupId']||(_0x295ecd['formatGroupId']=_0x295ecd['commandName']),_0x295ecd['multipleBlocks']=_0x12cf55['is']('range'),_0x2dc6c8=_0x2dc6c8||Ft(_0x295ecd);const _0x5db2ab=_0x577183['map'](_0x40beab=>Ht(_0x40beab,this['_model'])),_0x207e9f=_0x12cf55['is']('range')?_0x12cf55:Ht(_0x12cf55,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3df0e0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2dc6c8,'accept');return this['forceDefaultExecution'](()=>_0x3df0e0([_0x207e9f],_0x295ecd,_0x5b591a)),null;}_0x5db2ab['push'](_0x207e9f);let _0x14c214=!0x0;for(const _0x210803 of _0x5db2ab)if(!this['_rangeIsInLocalUserInsertion'](_0x210803)){_0x14c214=!0x1;break;}if(_0x14c214&&'always'!==this['_trackFormatChanges']){const _0x5d224e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2dc6c8,'accept');return this['forceDefaultExecution'](()=>_0x5d224e([_0x207e9f],_0x295ecd,_0x5b591a)),null;}let _0x46aaf1=null,_0x11796f=_0x207e9f['start'],_0x1f747e=_0x207e9f['end'];for(const {suggestion:_0x2f3622,meta:_0x1d9eef}of this['_findSuggestions'](_0x207e9f,'formatBlock')){if(!_0x1d9eef['isOwn'])continue;if(_0x1d9eef['isNextTo']||_0x1d9eef['containsRangeInObject']||_0x1d9eef['isInsideObject'])continue;if(_0x2f3622['data']['formatGroupId']!=_0x295ecd['formatGroupId'])continue;if(!Kt(_0x2f3622,_0x5b591a))continue;const _0x4dbfe9=_0x2f3622['getFirstRange']();if(_0x2f3622['subType']==_0x2dc6c8){if(_0x4dbfe9['containsRange'](_0x207e9f,!0x0))return null;_0x11796f=_0x11796f['isBefore'](_0x4dbfe9['start'])?_0x11796f:_0x4dbfe9['start'],_0x1f747e=_0x1f747e['isAfter'](_0x4dbfe9['end'])?_0x1f747e:_0x4dbfe9['end'],_0x46aaf1?_0x4dbfe9['start']['isBefore'](_0x46aaf1['getFirstRange']()['start'])?(_0x46aaf1['removeMarkers'](),_0x46aaf1=_0x2f3622):_0x2f3622['removeMarkers']():_0x46aaf1=_0x2f3622;}else{const _0x49f473=_0x207e9f['getIntersection'](_0x4dbfe9);this['_cutOutSuggestionMarker'](_0x2f3622,_0x49f473);}}const _0x51e7bc=this['editor']['plugins']['get']('Users')['me'],_0x55574d=_0x309c8a(),_0x10c753=_0x51e7bc['id'];if(_0x46aaf1)return this['_setSuggestionRange'](_0x46aaf1,this['_model']['createRange'](_0x11796f,_0x1f747e)),_0x46aaf1;{const _0x20b541=this['_setSuggestionData']({'id':_0x55574d,'type':'formatBlock:'+_0x2dc6c8,'data':_0x295ecd,'createdAt':new Date(),'authorId':_0x10c753,'attributes':_0x5b591a});return this['_addSuggestionMarker']('formatBlock:'+_0x2dc6c8,_0x55574d,_0x10c753,this['_model']['createRange'](_0x11796f,_0x1f747e)),_0x20b541;}}['markMultiRangeBlockFormat'](_0x1dd26b,_0x4cbf3,_0x441d3b=[],_0x172099=null,_0x30fed5={}){_0x4cbf3['formatGroupId']||(_0x4cbf3['formatGroupId']=_0x4cbf3['commandName']);const _0x2e6a1e=_0x1dd26b[0x0];_0x4cbf3['multipleBlocks']=_0x2e6a1e['is']('range'),_0x172099=_0x172099||Ft(_0x4cbf3);const _0x2c3fb7=_0x441d3b['map'](_0x5e747a=>Ht(_0x5e747a,this['_model'])),_0x8e0ae2=_0x2e6a1e['is']('range')?_0x1dd26b:_0x1dd26b['map'](_0x536825=>Ht(_0x536825,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2b5073=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x172099,'accept');return this['forceDefaultExecution'](()=>_0x2b5073(_0x8e0ae2,_0x4cbf3,_0x30fed5)),null;}_0x2c3fb7['push'](..._0x8e0ae2);let _0xce1b44=!0x0;for(const _0x3c52ec of _0x2c3fb7)if(!this['_rangeIsInLocalUserInsertion'](_0x3c52ec)){_0xce1b44=!0x1;break;}if(_0xce1b44&&'always'!==this['_trackFormatChanges']){const _0x3b555f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x172099,'accept');return this['forceDefaultExecution'](()=>_0x3b555f(_0x8e0ae2,_0x4cbf3,_0x30fed5)),null;}const _0x28411a=this['editor']['plugins']['get']('Users')['me'];for(const _0x444f96 of this['getSuggestions']()){if(_0x444f96['author']['id']!=_0x28411a['id'])continue;if('formatBlock'!=_0x444f96['type']||_0x444f96['data']['formatGroupId']!=_0x4cbf3['formatGroupId'])continue;if(!Kt(_0x444f96,_0x30fed5))continue;const _0x3512a5=_0x444f96['subType']==_0x172099;for(let _0x1645e7=0x0;_0x1645e7<_0x8e0ae2['length'];_0x1645e7++){const _0x15eebb=_0x8e0ae2[_0x1645e7];for(const _0x1a9fa5 of _0x444f96['getMarkers']()){const _0x7d56b8=_0x1a9fa5['getRange']();if(_0x15eebb['isEqual'](_0x7d56b8)){_0x3512a5?(_0x8e0ae2['splice'](_0x1645e7,0x1),_0x1645e7--):_0x444f96['removeMarker'](_0x1a9fa5['name']);break;}}}}if(0x0==_0x8e0ae2['length'])return null;const _0x24ef4f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x172099,'join');for(const _0x167afa of this['getSuggestions']())if(_0x167afa['author']['id']==_0x28411a['id']&&'formatBlock'==_0x167afa['type']&&_0x167afa['data']['formatGroupId']==_0x4cbf3['formatGroupId']&&_0x167afa['subType']==_0x172099&&Kt(_0x167afa,_0x30fed5)&&(_0x24ef4f(_0x167afa['getRanges'](),_0x8e0ae2)||_0x24ef4f(_0x8e0ae2,_0x167afa['getRanges']()))){for(const _0x31f411 of _0x8e0ae2)_0x167afa['addRange'](_0x31f411);return _0x167afa;}const _0x3e303b=_0x309c8a(),_0x1fcc6f=_0x28411a['id'],_0x17950a='formatBlock:'+_0x172099,_0x1ec0c1=this['_setSuggestionData']({'id':_0x3e303b,'type':_0x17950a,'data':_0x4cbf3,'createdAt':new Date(),'authorId':_0x1fcc6f,'attributes':_0x30fed5});for(const _0xaaf9da of _0x8e0ae2)this['_addSuggestionMarker'](_0x17950a,_0x3e303b,_0x1fcc6f,_0xaaf9da,u['getMultiRangeId']());return _0x1ec0c1;}['markDeletion'](_0x129820,_0x5ef11b=null,_0x520991={}){if(_0x129820['isCollapsed'])return null;const _0x138dcd=this['editor']['plugins']['get']('Users')['me'],_0x4a6b2d=new _0xfaa3eb(_0x129820['start'],_0x129820['end']);for(const {suggestion:_0x218051,meta:_0x413d82}of this['_findSuggestions'](_0x4a6b2d,'insertion'))if(_0x413d82['isOwn']&&!_0x413d82['isNextTo']){if(_0x218051['isMultiRange']){const _0x13a67a=_0x218051['getRanges']()['filter'](_0x201f37=>'$graveyard'!=_0x201f37['root']['rootName']);_0x13a67a['every'](_0x5d6f2c=>_0x4a6b2d['containsRange'](_0x5d6f2c,!0x0))&&_0x218051['discard']();if(_0x13a67a['some'](_0x4c1683=>_0x4c1683['containsRange'](_0x4a6b2d,!0x0))){const _0xfc6433=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5ef11b,'accept');return this['forceDefaultExecution'](()=>_0xfc6433([_0x4a6b2d],null,_0x520991)),null;}}else{const _0x5b8f55=_0x4a6b2d['getIntersection'](_0x218051['getFirstRange']());null!==_0x5b8f55&&_0x218051['_onDiscard']([_0x5b8f55],null,_0x520991);}}if(_0x4a6b2d['detach'](),_0x4a6b2d['isCollapsed']||'$graveyard'==_0x4a6b2d['root']['rootName'])return null;let _0x1494f4=null,_0x4b7335=_0x4a6b2d['start'],_0x368bf2=_0x4a6b2d['end'];const _0x519c49=this['_findSuggestions'](_0x4a6b2d,'deletion');for(const {suggestion:_0x16dd3e,meta:_0x551d20}of _0x519c49){const _0x52160e=this['_model']['createRange'](_0x4b7335,_0x368bf2);if(_0x551d20['isOwn']&&(this['_mergeNestedSuggestions']||!_0x551d20['containsRangeInObject']&&!_0x551d20['isInsideObject'])){if(_0x16dd3e['isMultiRange']){if(!Kt(_0x16dd3e,_0x520991))continue;let _0x565393=!0x0;for(const _0x3b5fc0 of _0x16dd3e['getRanges']()){if(_0x3b5fc0['containsRange'](_0x52160e,!0x0))return _0x16dd3e;_0x52160e['containsRange'](_0x3b5fc0)||(_0x565393=!0x1);}_0x565393&&_0x16dd3e['discard']();}else{const _0x4d09a9=_0x16dd3e['getFirstRange']();if(_0x4d09a9['containsRange'](_0x52160e,!0x0))return _0x16dd3e;if(!Kt(_0x16dd3e,_0x520991)){_0x52160e['containsRange'](_0x4d09a9)?_0x16dd3e['removeMarkers']():_0x4d09a9['containsPosition'](_0x4b7335)?_0x4b7335=_0x4d09a9['end']:_0x4d09a9['containsPosition'](_0x368bf2)&&(_0x368bf2=_0x4d09a9['start']);continue;}_0x4b7335=_0x4b7335['isBefore'](_0x4d09a9['start'])?_0x4b7335:_0x4d09a9['start'],_0x368bf2=_0x368bf2['isAfter'](_0x4d09a9['end'])?_0x368bf2:_0x4d09a9['end'],_0x520991=Object['assign']({},_0x16dd3e['attributes']),_0x1494f4?_0x4d09a9['start']['isBefore'](_0x1494f4['getFirstRange']()['start'])?(_0x1494f4['removeMarkers'](),_0x1494f4=_0x16dd3e):_0x16dd3e['removeMarkers']():_0x1494f4=_0x16dd3e;}}}if(_0x1494f4)return this['_setSuggestionRange'](_0x1494f4,this['_model']['createRange'](_0x4b7335,_0x368bf2)),_0x1494f4;{const _0x376981=_0x309c8a(),_0x6ec689=this['_model']['createRange'](_0x4b7335,_0x368bf2),_0x3a94dd=_0x138dcd['id'],_0x1b238a=_0x5ef11b?'deletion:'+_0x5ef11b:'deletion',_0x17694a=this['_setSuggestionData']({'id':_0x376981,'type':_0x1b238a,'createdAt':new Date(),'authorId':_0x3a94dd,'attributes':_0x520991});return this['_addSuggestionMarker'](_0x1b238a,_0x376981,_0x3a94dd,_0x6ec689),_0x17694a;}}['markMultiRangeDeletion'](_0x16a401,_0x19e26='multi',_0x301003={}){const _0x2b91e5=this['editor']['plugins']['get']('Users')['me'],_0x49d906=_0x16a401['map'](_0x158dce=>new _0xfaa3eb(_0x158dce['start'],_0x158dce['end'])),_0x1c7f48=new Set();for(const {suggestion:_0x3d7a6f,meta:_0x1712af}of this['_findSuggestions'](_0x49d906,'insertion'))_0x1712af['isOwn']&&!_0x1712af['isNextTo']&&_0x1c7f48['add'](_0x3d7a6f);for(const _0x51a466 of _0x1c7f48)if(_0x51a466['isMultiRange']){const _0x5b154e=_0x51a466['getRanges']();(!_0x51a466['attributes']||!_0x51a466['attributes']['skipNestingCheck'])&&(_0x5b154e['every'](_0x4ccb16=>_0x49d906['some'](_0x55f4c4=>_0x55f4c4['containsRange'](_0x4ccb16,!0x0)))&&_0x51a466['discard']());if(_0x49d906['every'](_0x4d4dde=>_0x5b154e['some'](_0x2b8989=>_0x2b8989['containsRange'](_0x4d4dde,!0x0)))){const _0x2ac36c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x19e26,'accept');return this['forceDefaultExecution'](()=>_0x2ac36c(_0x16a401,null,_0x301003)),null;}}else{const _0x3dc1f5=_0x51a466['getFirstRange']();_0x49d906['some'](_0x118363=>_0x118363['containsRange'](_0x3dc1f5,!0x0))&&_0x51a466['discard']();if(_0x49d906['every'](_0x5cdf83=>_0x3dc1f5['containsRange'](_0x5cdf83,!0x0))){const _0x4a0b3b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x19e26,'accept');return this['forceDefaultExecution'](()=>_0x4a0b3b(_0x49d906,null,_0x301003)),null;}}const _0x1abe8d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x19e26,'join');let _0x411207=null;for(const _0x387697 of this['getSuggestions']())if(_0x387697['author']['id']==_0x2b91e5['id']&&_0x387697['isInContent']&&'deletion'==_0x387697['type']&&_0x387697['subType']==_0x19e26&&Kt(_0x387697,_0x301003)&&(_0x1abe8d(_0x387697['getRanges'](),_0x49d906)||_0x1abe8d(_0x49d906,_0x387697['getRanges']()))){if(_0x411207){if(_0x387697['commentThread']&&_0x387697['commentThread']['length'])continue;for(const _0x80d510 of _0x387697['getRanges']())_0x411207['isIntersectingWithRange'](_0x80d510)||_0x411207['addRange'](_0x80d510);_0x387697['removeMarkers']();}else{_0x411207=_0x387697;for(const _0x304e69 of _0x49d906)_0x387697['isIntersectingWithRange'](_0x304e69)||_0x387697['addRange'](_0x304e69);}}if(_0x411207)return _0x411207;_0x1c7f48['clear']();for(const {suggestion:_0x2800e5,meta:_0x3d870f}of this['_findSuggestions'](_0x49d906,'deletion'))_0x3d870f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3d870f['containsRangeInObject']&&!_0x3d870f['isInsideObject'])&&Kt(_0x2800e5,_0x301003)&&_0x1c7f48['add'](_0x2800e5);for(const _0x283ca8 of _0x1c7f48){const _0x4f404a=_0x283ca8['getRanges']();if(!_0x301003||!_0x301003['skipNestingCheck']){if(_0x49d906['every'](_0x2f376c=>_0x4f404a['some'](_0x2ede95=>_0x2ede95['containsRange'](_0x2f376c,!0x0))))return _0x283ca8;}(!_0x283ca8['attributes']||!_0x283ca8['attributes']['skipNestingCheck'])&&(_0x4f404a['every'](_0x3e4763=>_0x49d906['some'](_0x3229b9=>_0x3229b9['containsRange'](_0x3e4763,!0x0)))&&_0x283ca8['discard']());}const _0x332a71=_0x309c8a(),_0x366a2d=_0x2b91e5['id'],_0xf7c49e='deletion:'+_0x19e26,_0x1d123a=this['_setSuggestionData']({'id':_0x332a71,'type':_0xf7c49e,'createdAt':new Date(),'authorId':_0x366a2d,'attributes':_0x301003});for(const _0x472890 of _0x49d906)_0x472890['detach'](),_0x472890['isCollapsed']||'$graveyard'==_0x472890['root']['rootName']||this['_addSuggestionMarker'](_0xf7c49e,_0x332a71,_0x366a2d,_0x472890,u['getMultiRangeId']());return _0x1d123a;}['markAttributeChange'](_0xd8b4d4,_0x29206e,_0xde4bdd,_0x3e77d1,_0x363bf3){if(_0xd8b4d4['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4ecc01=this['editor']['plugins']['get']('Users')['me']['id'],_0x1fa755=Array['from'](this['_suggestions']['values']())['filter'](_0x4c204e=>'attribute'==_0x4c204e['type']&&_0x4c204e['data']['key']==_0x29206e&&_0x4c204e['isIntersectingWithRange'](_0xd8b4d4));if('default'===this['_trackFormatChanges']){const _0x5ce110=this['_findSuggestions'](_0xd8b4d4,'insertion')['filter'](({meta:_0x5b6706})=>_0x5b6706['isOwn']&&!_0x5b6706['isInsideObject']&&!_0x5b6706['isNextTo'])['map'](({suggestion:_0x201e11})=>_0x201e11);_0x1fa755['unshift'](..._0x5ce110);}const _0x3fd54f=new Map([[_0xd8b4d4,_0xde4bdd]]);for(const _0x5dd77d of _0x1fa755){const _0x138e90='attribute'==_0x5dd77d['type']?_0x5dd77d['data']['oldValue']:void 0x0,_0x55061a=_0x5dd77d['getFirstRange'](),_0x430315=Array['from'](_0x3fd54f['keys']())['find'](_0x34a4df=>_0x34a4df['isIntersecting'](_0x55061a));if(!_0x430315)continue;const _0x556e1e=_0x430315['getDifference'](_0x55061a);this['_isBlockAttribute'](_0x29206e)&&'insertion'==_0x5dd77d['type']&&0x0!=_0x556e1e['length']||(_0x3fd54f['delete'](_0x430315),_0x556e1e['forEach'](_0x4b07c4=>{_0x3fd54f['set'](_0x4b07c4,_0xde4bdd);}),'insertion'!=_0x5dd77d['type']&&_0x138e90!=_0x3e77d1&&_0x3fd54f['set'](_0x430315['getIntersection'](_0x55061a),_0x138e90));}const _0x4bcc5a=[];for(const [_0x631d6,_0x59e771]of _0x3fd54f){const _0x4ad030=_0x309c8a(),_0x5c6d7a={'key':_0x29206e,'oldValue':_0x59e771,'newValue':_0x3e77d1};_0x29206e['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':_0x29206e});const _0x536975=('attribute:'+(_0x29206e+'|'+Ft({'newValue':_0x3e77d1})))['substring'](0x0,0x3c),_0x224be5=this['_setSuggestionData']({'id':_0x4ad030,'type':_0x536975,'data':_0x5c6d7a,'createdAt':new Date(),'authorId':_0x4ecc01,'attributes':_0x363bf3});_0x4bcc5a['push'](_0x224be5),this['_addSuggestionMarker'](_0x536975,_0x4ad030,_0x4ecc01,_0x631d6);}return _0x4bcc5a;}['enableDefaultAttributesIntegration'](_0x524d0a){this['enableCommand'](_0x524d0a,(_0x294976,..._0x2e2719)=>{this['_recordAttributeChanges'](()=>{_0x294976(..._0x2e2719);});});}['registerBlockAttribute'](_0x576126){this['_blockAttributeKeys']['add'](_0x576126);}['registerInlineAttribute'](_0xfd7d84){this['_inlineAttributeKeys']['add'](_0xfd7d84);}['_getAttributeKey'](_0x201475){return'attribute'==_0x201475['type']?_0x201475['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x2c68fd,_0x2170ec){const _0x19e9b7=_0x2c68fd['getFirstMarker']();this['_model']['change'](_0x13cad3=>{_0x13cad3['updateMarker'](_0x19e9b7,{'range':_0x2170ec});});}['_addThreadToSuggestion'](_0x402797){const _0x16c5fb=_0x402797['id'],_0xa0ef80=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x16c5fb)||this['_commentsRepository']['addCommentThread']({'channelId':_0xa0ef80,'threadId':_0x16c5fb,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x20419f=this['_commentsRepository']['getCommentThread'](_0x16c5fb);_0x20419f['unbind']('isRemovable'),_0x20419f['isRemovable']=!0x1,_0x402797['commentThread']=_0x20419f;}['_checkSuggestionCorrectness'](_0x4052ee,_0x28c52f,_0x3c958b,_0x391edd){if(_0x4052ee['type']!=_0x28c52f||_0x4052ee['subType']!=_0x3c958b||_0x4052ee['creator']['id']!=_0x391edd)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1b3384('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3b4116,_0x1f947b){const _0x404e79=_0x3b4116['getFirstRange']();if(_0x1f947b['isEqual'](_0x404e79))_0x3b4116['removeMarkers']();else{if(_0x404e79['containsRange'](_0x1f947b)){const _0x37282d=this['_model']['createPositionAt'](_0x1f947b['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3b4116,this['_model']['createRange'](_0x404e79['start'],_0x37282d));const _0x151c54=_0x309c8a(),_0xb43073=_0x3b4116['creator']['id'],_0x3d0f59=_0x3b4116['type']+':'+_0x3b4116['subType'];this['_setSuggestionData']({'id':_0x151c54,'type':_0x3d0f59,'createdAt':new Date(),'authorId':_0xb43073,'data':_0x3b4116['data'],'attributes':_0x3b4116['attributes']});const _0x34f395=this['_model']['createPositionAt'](_0x1f947b['end']['parent'],'after'),_0x2976d0=this['_model']['createRange'](_0x34f395,_0x404e79['end']);this['_addSuggestionMarker'](_0x3d0f59,_0x151c54,_0xb43073,_0x2976d0);}else{if(_0x404e79['containsPosition'](_0x1f947b['start'])){const _0x5bc5a3=this['_model']['createPositionAt'](_0x1f947b['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3b4116,this['_model']['createRange'](_0x404e79['start'],_0x5bc5a3));}else{const _0x2aad56=this['_model']['createPositionAt'](_0x1f947b['end']['parent'],'after');this['_setSuggestionRange'](_0x3b4116,this['_model']['createRange'](_0x2aad56,_0x404e79['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x21d424){for(const {suggestion:_0x312175,meta:_0x19a040}of this['_findSuggestions'](_0x21d424,'insertion')){if(!_0x19a040['isOwn'])continue;const _0x516ba3=_0x312175['getRanges']();for(const _0x49625b of _0x516ba3)if(!_0x21d424['getDifference'](_0x49625b)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1bdcb3){const _0x34abeb=this['editor']['plugins']['get']('Users')['getUser'](_0x1bdcb3);if(!_0x34abeb)throw new _0x1b3384('track-changes-user-not-found',this);return _0x34abeb;}['_getExternalAuthor'](_0x232f1a){const _0x5e3aee=this['editor']['plugins']['get']('Users'),_0x5ab9ff=_0x33d343('external:'+_0x232f1a),_0x3b4bc7=_0x5e3aee['getUser'](_0x5ab9ff);return _0x3b4bc7||_0x5e3aee['addUser']({'id':_0x5ab9ff,'name':_0x232f1a});}['_createSuggestion'](_0x1e5d05,_0x4bb64a,_0x233889,_0x3f331b,_0x53abf1){const _0xf2017=this['_getAuthorFromId'](_0x3f331b),_0x9b193d=this['_suggestionFactory']['buildSuggestion'](_0x1e5d05,_0x4bb64a,_0x233889,_0xf2017,_0x53abf1,_0x535de0=>{this['_updateSuggestionData'](_0x233889,{'attributes':_0x535de0});const _0x546821=this['getSuggestion'](_0x233889);this['_joinWithAdjacentSuggestions'](new Set([_0x546821])),this['_refreshSuggestionsChain'](new Set([_0x546821]));});return this['listenTo'](_0x9b193d,'accept',()=>{this['_updateSuggestionData'](_0x233889,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x9b193d,'discard',()=>{this['_updateSuggestionData'](_0x233889,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x233889,_0x9b193d),this['_suggestionState']['set'](_0x9b193d,'notReady'),_0x9b193d;}['_splitMarkerName'](_0x479bb7){const _0x119808=_0x479bb7['split'](':');return{'group':_0x119808[0x0],'type':_0x119808[0x1],'subType':_0x119808['length']>=0x5?_0x119808[0x2]:null,'id':_0x119808['length']<0x5?_0x119808[0x2]:_0x119808[0x3],'authorId':_0x119808['length']<0x5?_0x119808[0x3]:_0x119808[0x4],'markerCount':0x6==_0x119808['length']?_0x119808[0x5]:null};}['_breakSuggestionMarker'](_0x3f7a22,_0x1b8b50,_0x2a7bf0){const _0x967f7c=_0x3f7a22['getFirstRange'](),_0x5bf86a=_0x967f7c['start'],_0x2edc02=_0x967f7c['end'];this['_setSuggestionRange'](_0x3f7a22,this['_model']['createRange'](_0x5bf86a,_0x1b8b50));const _0x2ed194=_0x309c8a(),_0xf0bbff=_0x3f7a22['creator']['id'],_0x39c365=_0x3f7a22['type']+(_0x3f7a22['subType']?':'+_0x3f7a22['subType']:'');this['_setSuggestionData']({'id':_0x2ed194,'type':_0x39c365,'createdAt':new Date(),'authorId':_0xf0bbff,'originalSuggestionId':_0x3f7a22['id'],'attributes':_0x3f7a22['attributes'],'data':_0x3f7a22['data']});const _0x239f48=this['_getAttributeKey'](_0x3f7a22);('formatBlock'==_0x3f7a22['type']||_0x239f48&&this['_isBlockAttribute'](_0x239f48))&&(_0x2a7bf0=this['_model']['createPositionBefore'](_0x2a7bf0['parent'])),this['_addSuggestionMarker'](_0x39c365,_0x2ed194,_0xf0bbff,this['_model']['createRange'](_0x2a7bf0,_0x2edc02));}['_findSuggestions'](_0x16836b,_0x522ca6=null){const _0x2d97af=[],_0x50a40d=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x16836b)||(_0x16836b=[_0x16836b]);for(const _0x31fb23 of this['getSuggestions']()){if(!_0x31fb23['isInContent'])continue;if(_0x522ca6&&_0x31fb23['type']!=_0x522ca6)continue;let _0x3e16db=!0x1;for(const _0x5d45a2 of _0x31fb23['getRanges']()){for(const _0x9f685d of _0x16836b){const _0x572956=_0x9f685d['start']['isEqual'](_0x5d45a2['end'])||_0x9f685d['end']['isEqual'](_0x5d45a2['start']);if(_0x572956||_0x9f685d['getIntersection'](_0x5d45a2)){const _0x2966a6=_0x9f685d['containsRange'](_0x5d45a2)&&Vt(this['_model']['schema'],_0x5d45a2['start'],_0x9f685d),_0x215df6=_0x5d45a2['containsRange'](_0x9f685d)&&Vt(this['_model']['schema'],_0x9f685d['start'],_0x5d45a2);_0x2d97af['push']({'suggestion':_0x31fb23,'meta':{'isOwn':_0x50a40d==_0x31fb23['author'],'isNextTo':_0x572956,'isInsideObject':_0x2966a6,'containsRangeInObject':_0x215df6}}),_0x3e16db=!0x0;break;}}if(_0x3e16db)break;}}return _0x2d97af;}['_addSuggestionMarker'](_0x5289e7,_0xfe042f,_0x4623b1,_0x1ab7ed,_0x378d52){this['_model']['change'](_0x4575cd=>{let _0x37b814='suggestion:'+_0x5289e7+':'+_0xfe042f+':'+_0x4623b1;_0x378d52&&(_0x37b814=_0x37b814+':'+_0x378d52),_0x4575cd['addMarker'](_0x37b814,{'range':_0x1ab7ed,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x56c944){const _0xacf951=_0x56c944['previous'],_0x4e1d96=_0x56c944['next'];_0x56c944['previous']=null,_0x56c944['next']=null,null!=_0xacf951&&_0xacf951['next']==_0x56c944&&(_0xacf951['next']=_0x4e1d96),null!=_0x4e1d96&&_0x4e1d96['previous']==_0x56c944&&(_0x4e1d96['previous']=_0xacf951),'ready'==this['_suggestionState']['get'](_0x56c944)&&(this['_suggestionState']['set'](_0x56c944,'removed'),this['fire']('suggestionUnloaded',_0x56c944,_0xacf951,_0x4e1d96));}['_setSuggestionData'](_0x28f9cb){const _0xc69f75=_0x28f9cb['id'],_0x2a14fa=this['addSuggestionData'](_0x28f9cb);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x6c7ed6=this['editor']['plugins']['get']('PendingActions'),_0x535100=_0x2a14fa['hasComments'],_0x3d7326=_0x2a14fa['subType']?_0x2a14fa['type']+':'+_0x2a14fa['subType']:_0x2a14fa['type'],_0x37ee6a=this['editor']['locale'],_0x524040=_0x6c7ed6['add'](o(_0x37ee6a,'PENDING_ACTION_SUGGESTION')),_0x272911={'id':_0xc69f75,'type':_0x3d7326,'hasComments':_0x535100,'data':_0x28f9cb['data']||null,'originalSuggestionId':_0x28f9cb['originalSuggestionId']||null,'attributes':_0x2a14fa['attributes']};this['_adapter']['addSuggestion'](_0x272911)['then'](_0x1dffda=>{_0x2a14fa['_saved']=!0x0,_0x6c7ed6['remove'](_0x524040),_0x1dffda&&_0x1dffda['createdAt']&&(this['_suggestions']['get'](_0xc69f75)['createdAt']=_0x1dffda['createdAt']);})['catch'](_0x61bb21=>{throw _0xdb8619('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2a14fa['discard']();}),_0x2a14fa['stopListening'](),this['_suggestions']['delete'](_0x2a14fa['id']),this['_suggestionState']['delete'](_0x2a14fa),_0x61bb21;});}return _0x2a14fa;}['_isBlockAttribute'](_0x25e167){return this['_blockAttributeKeys']['has'](_0x25e167);}['_updateSuggestionData'](_0x24d394,_0x434e92){const _0x4b153a=this['editor']['plugins']['get']('PendingActions'),_0xacd4b2=this['getSuggestion'](_0x24d394);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xacd4b2['_saved']){const _0x5d62f9=_0x4b153a['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x24d394,_0x434e92)['then'](()=>{_0x4b153a['remove'](_0x5d62f9);});}else _0xacd4b2['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x24d394,_0x434e92);});}}['_getSuggestionData'](_0x3fdb0e){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1b3384('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3fdb0e);}['_handleNewSuggestionMarker'](_0x4d77ff){const {id:_0x49b92d,type:_0x4f75d6,subType:_0x43bc5e,authorId:_0x192b46}=this['_splitMarkerName'](_0x4d77ff),_0x2d6c8e=this['_suggestions']['get'](_0x49b92d)||this['_createSuggestion'](_0x4f75d6,_0x43bc5e,_0x49b92d,_0x192b46,{});switch(this['_checkSuggestionCorrectness'](_0x2d6c8e,_0x4f75d6,_0x43bc5e,_0x192b46),this['_suggestionState']['get'](_0x2d6c8e)){case'notReady':this['_getSuggestionData'](_0x49b92d)['then'](_0x20696a=>{let _0x545e16=Promise['resolve']();_0x20696a['hasComments']&&(_0x545e16=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x49b92d})),_0x545e16['then'](()=>{this['addSuggestionData'](_0x20696a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2d6c8e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x49b92d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2d6c8e,'ready'),this['fire']('suggestionLoaded',_0x2d6c8e);break;case'ready':this['fire']('suggestionChanged',_0x2d6c8e);}return _0x2d6c8e['addMarkerName'](_0x4d77ff),_0x2d6c8e;}['_refreshSuggestionsChain'](_0x379bd9){const _0x3641ca=Array['from'](_0x379bd9),_0x14487e=_0x3641ca['filter'](_0x453a17=>'attribute'==_0x453a17['type']);this['_refreshAttributeSuggestionsChain'](_0x14487e);const _0x1ab379=_0x3641ca['filter'](_0x48e4f5=>!_0x48e4f5['isMultiRange']&&'attribute'!=_0x48e4f5['type']),_0x5ce9af=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2aff88=>!_0x2aff88['isMultiRange']&&'attribute'!=_0x2aff88['type']),_0x42090b=_0x5ce9af['filter'](_0x46ebc=>!_0x379bd9['has'](_0x46ebc)),_0x353fff=new Map(_0x5ce9af['map'](_0x2a7497=>[_0x2a7497,this['_suggestionFactory']['getSuggestionCallback'](_0x2a7497['type'],_0x2a7497['subType'],'chain')])),_0x318c21=new Map(_0x5ce9af['map'](_0x412442=>[_0x412442,_0x412442['getFirstRange']()])),_0x1bea23=new Set(),_0x346aae=new Set();for(let _0x475e61=0x0;_0x475e61<_0x1ab379['length'];_0x475e61++)_0x447d42(_0x1ab379[_0x475e61],_0x1ab379,_0x475e61+0x1);for(let _0x5ba6ad=0x0;_0x5ba6ad<_0x1ab379['length'];_0x5ba6ad++)_0x447d42(_0x1ab379[_0x5ba6ad],_0x42090b,0x0);const _0x3e5cff=new Set();for(let _0x23174e=0x0;_0x23174e<_0x1ab379['length'];_0x23174e++){const _0x5e3ac8=_0x1ab379[_0x23174e];!_0x346aae['has'](_0x5e3ac8)&&_0x5e3ac8['previous']&&(_0x3e5cff['add'](_0x5e3ac8['previous']),_0x5e3ac8['previous']['next']===_0x5e3ac8&&(_0x5e3ac8['previous']['next']=null),_0x5e3ac8['previous']=null),!_0x1bea23['has'](_0x5e3ac8)&&_0x5e3ac8['next']&&(_0x3e5cff['add'](_0x5e3ac8['next']),_0x5e3ac8['next']['previous']===_0x5e3ac8&&(_0x5e3ac8['next']['previous']=null),_0x5e3ac8['next']=null);}function _0x447d42(_0x5a5b08,_0x7082fe,_0x34a56d){for(let _0x4a811b=_0x34a56d;_0x4a811b<_0x7082fe['length'];_0x4a811b++){const _0x5774fc=_0x364b2f(_0x5a5b08,_0x7082fe[_0x4a811b]);_0x5774fc&&(_0x5774fc[0x0]['next']=_0x5774fc[0x1],_0x5774fc[0x1]['previous']=_0x5774fc[0x0],_0x1bea23['add'](_0x5774fc[0x0]),_0x346aae['add'](_0x5774fc[0x1]));}}function _0x364b2f(_0x59f380,_0x101aef){if(_0x59f380['author']['id']!==_0x101aef['author']['id'])return null;const _0x4f106c=_0x353fff['get'](_0x59f380)(_0x59f380,_0x101aef,_0x318c21['get'](_0x59f380),_0x318c21['get'](_0x101aef));if(!_0x4f106c)return null;return _0x353fff['get'](_0x101aef)(_0x59f380,_0x101aef,_0x318c21['get'](_0x59f380),_0x318c21['get'](_0x101aef))?_0x4f106c[0x1]['commentThread']&&_0x4f106c[0x1]['commentThread']['length']?null:_0x4f106c:null;}_0x3e5cff['size']&&this['_refreshSuggestionsChain'](_0x3e5cff);}['_refreshAttributeSuggestionsChain'](_0x1ce4cf){if(0x0==_0x1ce4cf['length'])return;const _0x419d6c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5cad74=>'attribute'==_0x5cad74['type']&&_0x5cad74['_isDataLoaded']),_0x3a676a=[],_0x10fc17=new Map();for(const _0xce8ad4 of _0x419d6c){const _0x13c787=_0x33d343(_0xce8ad4['attributes']);_0x10fc17['has'](_0x13c787)||(_0x10fc17['set'](_0x13c787,_0x3a676a['length']),_0x3a676a['push']([]));const _0x5c2abc=_0x10fc17['get'](_0x13c787);_0x3a676a[_0x5c2abc]['push'](_0xce8ad4);}!(function(){_0x3a676a['sort']((_0x4e707c,_0xcd5609)=>{const _0x2bc1a3=_0x4e707c[0x0]['createdAt'],_0x23eb66=_0xcd5609[0x0]['createdAt'];return _0x2bc1a3==_0x23eb66?_0x4e707c[0x0]['attributes']['groupId']<_0xcd5609[0x0]['attributes']['groupId']?-0x1:0x1:_0x2bc1a3<_0x23eb66?-0x1:0x1;});for(const _0x1e0251 of _0x3a676a)_0x1e0251['sort']((_0x1f6996,_0x152ec4)=>_0x1f6996['id']<_0x152ec4['id']?-0x1:0x1);}());for(let _0x28d741=0x0;_0x28d741<_0x3a676a['length'];_0x28d741++){if(0x0==_0x3a676a[_0x28d741]['length'])continue;const _0x1449d1=[];for(let _0x5e5b1c=_0x28d741+0x1;_0x5e5b1c<_0x3a676a['length'];_0x5e5b1c++)0x0!=_0x3a676a[_0x5e5b1c]['length']&&_0x40646d(_0x3a676a[_0x28d741],_0x3a676a[_0x5e5b1c])&&_0x1449d1['push'](_0x5e5b1c);for(const _0x55f24d of _0x1449d1)_0x3a676a[_0x28d741]=_0x3a676a[_0x28d741]['concat'](_0x3a676a[_0x55f24d]),_0x3a676a[_0x55f24d]=[];}for(const _0xde240c of _0x3a676a)for(let _0x3ebd40=0x0;_0x3ebd40<_0xde240c['length'];_0x3ebd40++){const _0x378f3e=_0xde240c[_0x3ebd40+0x1]||null;_0xde240c[_0x3ebd40]['next']!==_0x378f3e&&(_0xde240c[_0x3ebd40]['next']=_0x378f3e);}for(const _0x3852d6 of _0x3a676a)for(let _0x588b0f=0x0;_0x588b0f<_0x3852d6['length'];_0x588b0f++){const _0x3c1ee7=_0x3852d6[_0x588b0f-0x1]||null;_0x3852d6[_0x588b0f]['previous']!==_0x3c1ee7&&(_0x3852d6[_0x588b0f]['previous']=_0x3c1ee7);}function _0x40646d(_0x5b4ff4,_0x214e0a){if(_0x5b4ff4[0x0]['attributes']['groupId']!==_0x214e0a[0x0]['attributes']['groupId']&&_0x5b4ff4[0x0]['author']!==_0x214e0a[0x0]['author'])return!0x1;if(!function(_0x345094,_0x2113e8){if(!_0x345094['hasComments']&&!_0x2113e8['hasComments'])return!0x0;if(_0x345094['hasComments']&&_0x2113e8['hasComments'])return!0x1;if(_0x345094['hasComments']&&_0x2113e8['createdAt']<_0x345094['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2113e8['hasComments']&&_0x345094['createdAt']<_0x2113e8['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5b4ff4[0x0],_0x214e0a[0x0]))return!0x1;const _0x4bfc56=Et(_0x5b4ff4[0x0]['attributes'],'groupId'),_0x4a77c3=Et(_0x214e0a[0x0]['attributes'],'groupId');if(!_0x5a7cf5(_0x4bfc56,_0x4a77c3))return!0x1;return!!_0x5b4ff4['every'](_0x111c63=>_0x214e0a['some'](_0xbcb429=>_0x111c63['getFirstRange']()['isEqual'](_0xbcb429['getFirstRange']())))&&_0x214e0a['every'](_0x41cdaf=>_0x5b4ff4['some'](_0x574247=>_0x41cdaf['getFirstRange']()['isEqual'](_0x574247['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x144e3a){const _0x3b29d6=Array['from'](_0x144e3a),_0x45cc24=this['getSuggestions']({'skipNotAttached':!0x0}),_0x163062=_0x45cc24['filter'](_0x5d09c5=>!_0x144e3a['has'](_0x5d09c5)),_0x177f89=new Map(_0x3b29d6['map'](_0x356e13=>[_0x356e13,this['_suggestionFactory']['getSuggestionCallback'](_0x356e13['type'],_0x356e13['subType'],'join')])),_0x268975=new Map(_0x45cc24['map'](_0x10d92f=>[_0x10d92f,_0x10d92f['getRanges']()]));for(let _0x4c1eed=0x0;_0x4c1eed<_0x3b29d6['length'];_0x4c1eed++){if(_0x5e15ca(this,_0x3b29d6[_0x4c1eed],_0x3b29d6,_0x4c1eed+0x1))return!0x0;}for(let _0x210cde=0x0;_0x210cde<_0x3b29d6['length'];_0x210cde++){if(_0x5e15ca(this,_0x3b29d6[_0x210cde],_0x163062,0x0))return!0x0;}return!0x1;function _0x5e15ca(_0x3297c2,_0x4aed28,_0x4491a0,_0xed5209){for(let _0x26f584=_0xed5209;_0x26f584<_0x4491a0['length'];_0x26f584++){const _0x82b83d=_0x4491a0[_0x26f584];if(_0x82b83d['type']!==_0x4aed28['type']||_0x82b83d['author']['id']!==_0x4aed28['author']['id']||_0x82b83d['subType']!==_0x4aed28['subType'])continue;if(!zt(_0x4aed28,_0x82b83d))continue;if('attribute'==_0x4aed28['type']&&_0x4aed28['data']['oldValue']!=_0x82b83d['data']['oldValue'])continue;if('attribute'==_0x4aed28['type']&&_0x3297c2['_isBlockAttribute'](_0x4aed28['data']['key']))continue;if('formatBlock'==_0x4aed28['type']){const _0x442554=_0x3297c2['editor']['model'],_0x45ca0a=_0x4aed28['getContainedElement']();if(_0x45ca0a&&(_0x442554['schema']['isObject'](_0x45ca0a)||_0x442554['schema']['isLimit'](_0x45ca0a)))continue;}const _0x3152d6=_0x177f89['get'](_0x4aed28),_0x1f18dd=_0x268975['get'](_0x4aed28),_0x3742e4=_0x268975['get'](_0x82b83d),_0x234d8c=_0x4aed28['commentThread']&&_0x4aed28['commentThread']['length'],_0x3369b3=_0x82b83d['commentThread']&&_0x82b83d['commentThread']['length'];if(!_0x234d8c&&_0x3152d6(_0x3742e4,_0x1f18dd))return _0x3297c2['_joinSuggestions'](_0x82b83d,_0x4aed28),_0x268975['delete'](_0x4aed28),!0x0;if(!_0x3369b3&&_0x3152d6(_0x1f18dd,_0x3742e4))return _0x3297c2['_joinSuggestions'](_0x4aed28,_0x82b83d),_0x268975['delete'](_0x82b83d),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2097a2,_0x19e092){if(_0x2097a2['isMultiRange']){for(const _0x3c8a8b of _0x19e092['getRanges']())_0x2097a2['addRange'](_0x3c8a8b);}else{const _0x43e8ea=_0x19e092['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2097a2,this['_model']['createRange'](_0x2097a2['getFirstRange']()['start'],_0x43e8ea));}_0x19e092['removeMarkers']();}['_getMarkerAnnouncementText'](_0x9f7def,_0x18b0c7,_0x11aabc){const _0xdcec74=_0x9f7def['startsWith']('format')||_0x9f7def['startsWith']('attribute')?'FORMATTING':_0x9f7def['toUpperCase']();return o(this['editor']['locale'],_0x18b0c7+'_'+_0xdcec74+'_SUGGESTION_ANNOUNCEMENT',_0x11aabc);}['_initAriaMarkerChangeAnnouncements'](){const _0x3ea7a7=this['editor'];if(!_0x3ea7a7['ui'])return;const {ariaLiveAnnouncer:_0x396b2d}=_0x3ea7a7['ui'];_0xda66e0(this['_model'],({left:_0x1c3ba0,entered:_0x2e8556})=>{for(const _0x23aaaf of _0x1c3ba0){const {group:_0x358b07,type:_0x299eea}=this['_splitMarkerName'](_0x23aaaf['name']);if('suggestion'===_0x358b07){_0x396b2d['announce'](this['_getMarkerAnnouncementText'](_0x299eea,'LEAVE'));break;}}for(const _0x5bf3a6 of _0x2e8556){const {group:_0x2e7930,type:_0x110ce3}=this['_splitMarkerName'](_0x5bf3a6['name']);if('suggestion'===_0x2e7930){_0x396b2d['announce'](this['_getMarkerAnnouncementText'](_0x110ce3,'ENTER',_0xe69207(_0x2c88fd)));break;}}});}['_processAttributeChanges'](_0x5511b5){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2e1527=this['editor'],_0x45a4f6=_0x2e1527['model']['document']['differ']['getChanges']();if(0x0==_0x45a4f6['length'])return!0x1;const _0x5b6881=[],_0x55e1d2=_0x45a4f6['filter'](_0x2c2240=>'attribute'==_0x2c2240['type']),_0x575f6e=_0x45a4f6['filter'](_0x16be89=>'insert'==_0x16be89['type']&&'$text'!=_0x16be89['name']),_0x200e00=_0x45a4f6['filter'](_0x207b02=>'remove'==_0x207b02['type']&&'$text'!=_0x207b02['name']);for(const _0x4774e2 of _0x55e1d2)_0x5b6881['push']({'key':_0x4774e2['attributeKey'],'newValue':_0x4774e2['attributeNewValue'],'oldValue':_0x4774e2['attributeOldValue'],'range':Jt(_0x4774e2['range'],_0x2e1527['model'])});for(const _0x503fe0 of _0x575f6e){const _0x51c8c1=_0x200e00['find'](_0x66dd8d=>_0x66dd8d['position']['isEqual'](_0x503fe0['position']));_0x51c8c1&&_0x5b6881['push']({'key':m,'newValue':_0x503fe0['name'],'oldValue':_0x51c8c1['name'],'range':_0x2e1527['model']['createRangeOn'](_0x503fe0['position']['nodeAfter'])});}return 0x0!=_0x5b6881['length']&&this['_reduceExistingSuggestions'](_0x5511b5,_0x5b6881);}['_processAttributeSuggestions'](_0x32f58e){let _0x3d41e7=!0x1;const _0x14fdcc=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1db3db=>_0x1db3db['data']['newRange']&&_0x1db3db['name']['startsWith']('suggestion:attribute:'));for(const _0x142a3b of _0x14fdcc){const {subType:_0x822dcd,id:_0x4301e1}=this['_splitMarkerName'](_0x142a3b['name']),_0x1c022f=_0x822dcd['split']('|')[0x0];for(const _0x172a1a of this['getSuggestions']({'skipNotAttached':!0x0}))_0x172a1a['id']!=_0x4301e1&&'attribute'==_0x172a1a['type']&&_0x172a1a['data']&&_0x172a1a['data']['key']==_0x1c022f&&_0x172a1a['getFirstRange']()['isIntersecting'](_0x142a3b['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x172a1a,_0x142a3b['data']['newRange'],_0x32f58e),_0x3d41e7=!0x0);}return _0x3d41e7;}['_recordAttributeChanges'](_0x3c810e){this['_recordAttributeSuggestions']=!0x0,_0x3c810e();}['_isRegisteredAttribute'](_0x3bd0f4){const _0x262558=this['_isBlockAttribute'](_0x3bd0f4),_0x22b8ab=this['_inlineAttributeKeys']['has'](_0x3bd0f4);return _0x262558||_0x22b8ab;}['_reduceExistingSuggestions'](_0x2e6396,_0x2d698c){if(0x0==_0x2d698c['length'])return!0x1;let _0x57d26e=!0x1;for(const _0x56e81b of _0x2d698c){const _0x5aa0f4=this['_findSuggestions'](_0x56e81b['range'],'attribute')['filter'](_0x51ced7=>!_0x51ced7['meta']['isNextTo'])['map'](_0x3d7b9b=>_0x3d7b9b['suggestion']),_0x5906e0=_0x33d343({'newValue':_0x56e81b['newValue']});_0x5aa0f4['filter'](_0xe6f97d=>{const [_0x4094de,_0x3c055c]=_0xe6f97d['subType']['split']('|');return _0x4094de==_0x56e81b['key']&&_0x3c055c!=_0x5906e0;})['forEach'](_0xd0c867=>{this['_reduceSuggestionAttributeRange'](_0xd0c867,_0x56e81b['range'],_0x2e6396),_0x57d26e=!0x0;});}return _0x57d26e;}['_reduceSuggestionAttributeRange'](_0x34baa0,_0xf77544,_0x40bfd6){const _0x5447d1=_0x34baa0['getFirstRange']()['getDifference'](_0xf77544);0x0!==_0x5447d1['length']?0x1!==_0x5447d1['length']?this['_breakSuggestionMarker'](_0x34baa0,_0xf77544['start'],_0xf77544['end']):this['_setSuggestionRange'](_0x34baa0,_0x5447d1[0x0]):_0x40bfd6['removeMarker'](_0x34baa0['getFirstMarker']());}}class Ut{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x432c40){this['_editor']=_0x432c40,this['_model']=_0x432c40['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x19f046,_0x3ca1c7,_0x1cddcc,_0x355a43,_0x580713,_0x3898e2){return new u(this['_model'],{'type':_0x19f046,'subType':_0x3ca1c7,'id':_0x1cddcc,'author':_0x355a43,'creator':_0x355a43,'attributes':_0x580713,'onAttributesChange':_0x3898e2,'onAccept':(..._0x20a8b1)=>this['getSuggestionCallback'](_0x19f046,_0x3ca1c7,'accept')(..._0x20a8b1),'onDiscard':(..._0x45b770)=>this['getSuggestionCallback'](_0x19f046,_0x3ca1c7,'discard')(..._0x45b770)});}['registerCustomCallback'](_0x459888,_0xccd16,_0x32baad,_0x54448d){const _0x2932ac=_0x459888+':'+_0xccd16+':'+_0x32baad;this['_customCallbacks']['set'](_0x2932ac,_0x54448d);}['getSuggestionCallback'](_0x4220e6,_0x38e2c4,_0x20b562){const _0x27748c=_0x4220e6+':'+_0x38e2c4+':'+_0x20b562;return this['_customCallbacks']['get'](_0x27748c)||this['_defaultCallbacks']['get'](_0x4220e6+':'+_0x20b562);}['_registerDefaultCallbacks'](){const _0x78acec=()=>!0x1,_0x15cf94=_0x21dcd0=>{_0x21dcd0['sort']((_0x25c23c,_0x51b7b2)=>_0x25c23c['start']['isBefore'](_0x51b7b2['start'])?0x1:-0x1),this['_model']['change'](_0x45e865=>{for(const _0x273a26 of _0x21dcd0){let _0x5d1b16;_0x5d1b16=_0x273a26['end']['isAtEnd']&&_0x273a26['end']['parent']==_0x273a26['start']['nodeAfter']?_0x45e865['createSelection'](_0x273a26['start']['nodeAfter'],'on'):_0x45e865['createSelection'](_0x273a26),this['_model']['deleteContent'](_0x5d1b16,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x219f08=(_0x2f9e78,_0x48c73d)=>{_0x48c73d&&this['_model']['change'](_0xe352a2=>{const {commandName:_0x56a1eb,commandParams:_0x181755=[]}=_0x48c73d,_0x1497c6=_0x2f9e78['map'](_0x2f748a=>(Pt(_0x2f748a)&&(_0x2f748a=this['_model']['createRange'](_0x2f748a['end'])),_0x2f748a))['filter'](_0x1f845e=>'$graveyard'!==_0x1f845e['root']['rootName']);if(_0x1497c6['length']<0x1)return;const _0x55a88c=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2177bc=>_0xfaa3eb['fromRange'](_0x2177bc));_0xe352a2['setSelection'](_0x1497c6);for(const _0x238b10 of this['_editor']['commands']['commands']())_0x238b10['refresh']();_0x181755['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x56a1eb,..._0x181755);const _0x9b2907=_0x55a88c['filter'](_0x22e2ae=>'$graveyard'!=_0x22e2ae['root']['rootName']);_0x9b2907['length']>0x0&&_0xe352a2['setSelection'](_0x9b2907);for(const _0x1ce2ae of _0x55a88c)_0x1ce2ae['detach']();});},_0x1dc0a1=(_0x2e6512,_0x59ca2e)=>0x1==_0x2e6512['length']&&0x1==_0x59ca2e['length']&&_0x2e6512[0x0]['end']['isEqual'](_0x59ca2e[0x0]['start']),_0x19a78a=(_0x4eaa55,_0x536f42,_0x3acb8c,_0x3920d4)=>qt(_0x4eaa55,_0x536f42,_0x3acb8c,_0x3920d4)?[_0x4eaa55,_0x536f42]:qt(_0x536f42,_0x4eaa55,_0x3920d4,_0x3acb8c)?[_0x536f42,_0x4eaa55]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x78acec),this['_defaultCallbacks']['set']('insertion:discard',_0x15cf94),this['_defaultCallbacks']['set']('insertion:join',_0x1dc0a1),this['_defaultCallbacks']['set']('insertion:chain',_0x19a78a),this['_defaultCallbacks']['set']('deletion:accept',_0x15cf94),this['_defaultCallbacks']['set']('deletion:discard',_0x78acec),this['_defaultCallbacks']['set']('deletion:join',_0x1dc0a1),this['_defaultCallbacks']['set']('deletion:chain',_0x19a78a),this['_defaultCallbacks']['set']('formatInline:accept',_0x219f08),this['_defaultCallbacks']['set']('formatInline:discard',_0x78acec),this['_defaultCallbacks']['set']('formatInline:join',_0x1dc0a1),this['_defaultCallbacks']['set']('formatInline:chain',_0x78acec),this['_defaultCallbacks']['set']('formatBlock:accept',_0x219f08),this['_defaultCallbacks']['set']('formatBlock:discard',_0x78acec),this['_defaultCallbacks']['set']('formatBlock:join',_0x1dc0a1),this['_defaultCallbacks']['set']('formatBlock:chain',_0x78acec),this['_defaultCallbacks']['set']('attribute:accept',_0x78acec),this['_defaultCallbacks']['set']('attribute:discard',(_0x3d615f,_0x23ef11)=>{if(!_0x23ef11)return;const _0x3ea844=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x124b7c=>{if(_0x23ef11['key']==m)for(const _0x8975c7 of _0x3d615f){const _0x380bd9=_0x8975c7['start']['nodeAfter'],_0x1a643c=_0x23ef11['oldValue'];_0x124b7c['rename'](_0x380bd9,_0x1a643c);}else{if(_0x3ea844['_isBlockAttribute'](_0x23ef11['key'])){for(const _0x424470 of _0x3d615f)void 0x0!==_0x23ef11['oldValue']?_0x124b7c['setAttribute'](_0x23ef11['key'],_0x23ef11['oldValue'],_0x424470['start']['nodeAfter']):_0x124b7c['removeAttribute'](_0x23ef11['key'],_0x424470['start']['nodeAfter']);}else{for(const _0x30def1 of _0x3d615f)_0x23ef11['oldValue']?_0x124b7c['setAttribute'](_0x23ef11['key'],_0x23ef11['oldValue'],_0x30def1):_0x124b7c['removeAttribute'](_0x23ef11['key'],_0x30def1);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1dc0a1);}}function Vt(_0x41f808,_0x48e635,_0x576037){for(const _0xae7df6 of _0x48e635['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xae7df6['root']==_0xae7df6)return!0x1;if(!_0x576037['containsItem'](_0xae7df6))return!0x1;if(_0x41f808['isObject'](_0xae7df6)||_0x41f808['isLimit'](_0xae7df6))return!0x0;}return!0x1;}function Pt(_0x284246){return _0x284246['end']['parent']==_0x284246['start']['nodeAfter']&&_0x284246['end']['isAtStart'];}function Gt(_0x2c533c,_0x291a27,_0x2e8a1d,_0x34740c){const _0x15da5e=_0x36e9fc=>!_0x36e9fc['item']['is']('$textProxy')&&!_0x34740c['isObject'](_0x36e9fc['item']),_0x34ae43=_0x2c533c['start']['getLastMatchingPosition'](_0x15da5e),_0x1d4c1f=_0x2c533c['end']['getLastMatchingPosition'](_0x15da5e,{'direction':'backward'});return(!_0x2c533c['start']['isEqual'](_0x34ae43)||!_0x2c533c['end']['isEqual'](_0x1d4c1f))&&(_0x34ae43['isBefore'](_0x1d4c1f)?_0x2e8a1d['updateMarker'](_0x291a27,{'range':_0x2e8a1d['createRange'](_0x34ae43,_0x1d4c1f)}):_0x2e8a1d['removeMarker'](_0x291a27),!0x0);}function Ft(_0x156c4c){return _0x33d343(_0x156c4c);}function Lt(_0xec28bb){const _0x53f415=_0xec28bb['start']['nodeAfter'];return _0x53f415&&_0x53f415['is']('element');}function Jt(_0x193852,_0x2b5c1e){return null==_0x193852['end']['nodeBefore']&&_0x193852['end']['parent']==_0x193852['start']['nodeAfter']?Ht(_0x193852['start']['nodeAfter'],_0x2b5c1e):_0x193852;}function Ht(_0x282658,_0x33fd00){const _0x3cdaa7=_0x33fd00['schema']['isObject'](_0x282658)||_0x33fd00['schema']['isSelectable'](_0x282658);return _0x33fd00['createRange'](_0x33fd00['createPositionAt'](_0x282658,'before'),_0x3cdaa7?_0x33fd00['createPositionAfter'](_0x282658):_0x33fd00['createPositionAt'](_0x282658,'end'));}function qt(_0x2d6659,_0x5f2f7a,_0x28367b,_0x4d3baa){return!!zt(_0x2d6659,_0x5f2f7a)&&_0x28367b['end']['isEqual'](_0x4d3baa['start']);}function zt(_0x24947b,_0x19abef){if(!_0x24947b['_isDataLoaded']||!_0x19abef['_isDataLoaded'])return!0x1;const _0x4e75f4=new Set(Object['keys'](_0x24947b['attributes'])),_0xed092f=new Set(Object['keys'](_0x19abef['attributes']));if(_0x4e75f4['delete']('groupId'),_0xed092f['delete']('groupId'),0x0==_0x4e75f4['size']&&0x0==_0xed092f['size'])return!0x0;if(_0x4e75f4['size']!=_0xed092f['size'])return!0x1;const _0x36bb33={..._0x24947b['attributes']},_0x25f3a2={..._0x19abef['attributes']};return delete _0x36bb33['groupId'],delete _0x25f3a2['groupId'],JSON['stringify'](_0x36bb33)==JSON['stringify'](_0x25f3a2);}function Kt(_0x3a4964,_0x40e863){const _0x2633b3=Wt(_0x3a4964['attributes']),_0x44e534=Wt(_0x40e863);if(!_0x3a4964['_isDataLoaded'])return!0x1;for(const _0x20a38d of Object['keys'](_0x44e534))if(!_0x5a7cf5(_0x2633b3[_0x20a38d],_0x44e534[_0x20a38d]))return!0x1;return!0x0;}function Wt(_0x285948){const _0x211b42=Object['assign']({},_0x285948);return delete _0x211b42['skipNestingCheck'],delete _0x211b42['tablePasteChainId'],_0x211b42;}class Ce extends/* #__PURE__ -- @preserve */
25
+ _0x44e880(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1fb9c2,_0x4b4f00,_0x275995,_0x2900a){super(),this['model']=_0x4b4f00,this['view']=_0x275995,this['commentThreadController']=_0x2900a,this['_editor']=_0x1fb9c2,this['_acceptCommand']=_0x1fb9c2['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1fb9c2['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x49e7cf,_0x166089)=>_0x49e7cf||_0x166089),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4bfd2c=>_0x4bfd2c&&this['_editor']['model']['canEditAt'](_0x4b4f00['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4dea4a=>_0x4dea4a&&this['_editor']['model']['canEditAt'](_0x4b4f00['getRanges']())),this['_pendingAction']=null,_0x275995['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x275995,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x275995,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x275995,'change:isDirty',()=>{_0x275995['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 _0x31755e=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x31755e);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x4f14f8{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x355d36,_0x4738b1,_0x2d15e8,_0x3f26b6){super(_0x355d36),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3d14dc(_0x355d36,o(_0x355d36,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4738b1['authoredAt']),this['bind']('authoredAt')['to'](_0x4738b1),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',_0x4738b1,'authoredAt',this,'descriptionParts',(_0x48c2a8,_0x4ec61e,_0x39c403)=>{const _0x4441ab=_0x39c403['map'](_0x120c20=>ns(_0x120c20['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x48c2a8-0x1,_0x4738b1['author']['name'],_0x4ec61e?_0x3f26b6['formatDateTime'](_0x4ec61e):'',new DOMParser()['parseFromString'](_0x4441ab,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4f4771(),this['focusTracker']=new _0x4681dd(),this['keystrokes']=new _0x374edf(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5c3d87=>_0x5c3d87['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4738b1,this['_localUser']=_0x2d15e8,this['_config']=_0x3f26b6,_0x3f26b6['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4cec70(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1113f6}=this['_config'];this['commentsListView']=new _0x1113f6(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',_0x4fff2a=>_0x4fff2a+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5e5724,_0x354784)=>_0x5e5724||!!_0x354784);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5b9bd2}=this['_config'],_0x32d69e=new _0x5b9bd2(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1389c6=_0x32d69e['commentInputView'];return _0x32d69e['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1389c6,'value',(_0x2c986c,_0x1ef471,_0x1aa9ef)=>!!_0x1aa9ef||_0x2c986c&&!_0x1ef471),_0x1389c6['on']('submit',(_0x4ac068,_0x152593)=>{this['fire']('addComment',_0x152593),_0x1389c6['editor']['setData']('');}),_0x1389c6['on']('cancel',()=>this['focus']()),_0x1389c6['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x32d69e;}}class pe extends as{['suggestionView'];['_descriptionElement'];constructor(_0xf5e271,_0x2021ce,_0x47e1ab,_0x250d5f){super(_0xf5e271,_0x2021ce,_0x47e1ab,_0x250d5f),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x513cc5=>_0x513cc5&&_0x513cc5[0x0]?_0x513cc5[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x575d9f,_0x4de98d)=>{let _0x286adc='';for(const _0x1c9a6f of _0x575d9f)_0x286adc+='<p>'+ns(_0x1c9a6f['content'],_0x1c9a6f['color'])+'</p>';return _0x4de98d?_0x286adc:_0x517800(_0x286adc,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x250d5f['SuggestionView'](_0xf5e271,_0x2021ce,{'formatDateTime':_0x250d5f['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 _0xaca61e=this['bindTemplate'],_0xaed15b=[this['suggestionView']];return this['commentsListView']&&_0xaed15b['push'](this['commentsListView']),this['commentThreadInputView']&&_0xaed15b['push'](this['commentThreadInputView']),_0xaed15b['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0xaca61e['if']('isActive','ck-suggestion-wrapper--active'),_0xaca61e['to']('type',_0x11faf7=>'ck-suggestion-'+_0x11faf7),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':_0xaca61e['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xaed15b};}['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 fe extends _0x4f14f8{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x23341b,_0x4e89a6,_0x578c87){super(_0x23341b),this['_model']=_0x4e89a6,this['_config']=_0x578c87,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4e89a6),this['acceptButton']=this['_createButton'](o(_0x23341b,'Accept\x20suggestion'),_0x4eafb5['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x23341b,'Discard\x20suggestion'),_0x4eafb5['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x552601(_0x23341b,_0x4e89a6['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4f4771([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4681dd(),this['keystrokes']=new _0x374edf(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x92f959=>_0x92f959['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xe03a1=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xe03a1['innerHTML']=this['description'],this['on']('change:description',(_0x57f7b6,_0x26e32f,_0x40151f)=>{_0xe03a1['innerHTML']=_0x40151f;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x41cef=this['bindTemplate'],_0x1cdd08=[{'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':_0x41cef['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x41cef['to']('authoredAt',_0x556f41=>this['_config']['formatDateTime'](_0x556f41))}]}]},{'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']&&_0x1cdd08['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':_0x1cdd08}]};}['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'](_0x5db794,_0x20ee13,_0xb2259b,_0x2b809d,_0xea97f1){const _0x16b2e6=new _0x5f0eaf(this['locale']);return _0x16b2e6['set']({'label':_0x5db794,'icon':_0x20ee13,'tooltip':!0x0,'tooltipPosition':_0xea97f1}),_0x16b2e6['extendTemplate']({'attributes':{'class':_0xb2259b}}),_0x16b2e6['on']('execute',()=>{this['fire'](_0x2b809d,this['_model']['id']);}),_0x16b2e6;}['_setupKeyboardNavigation'](){const _0x19147b=this['element'];this['keystrokes']['listenTo'](_0x19147b);for(const _0x4e4e70 of this['focusables'])this['focusTracker']['add'](_0x4e4e70['element']),this['keystrokes']['listenTo'](_0x4e4e70['element']);this['keystrokes']['set']('enter',(_0xca7d95,_0x1ad7e1)=>{_0x19147b===_0xca7d95['target']&&(this['focusCycler']['focusFirst'](),_0x1ad7e1());}),this['keystrokes']['set']('esc',(_0x42f9db,_0x4eda11)=>{_0x19147b!==_0x42f9db['target']&&(this['focus'](),_0x4eda11());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x2bd390{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x396d67,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x284703){super(_0x284703),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4aeecf=this['editor']['config'];_0x4aeecf['define']('trackChanges.SuggestionThreadView',pe),_0x4aeecf['define']('trackChanges.SuggestionView',fe),_0x4aeecf['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4aeecf['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3d71f3,_0x52e980){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x213c8a,_0x1dba33]of this['_handleControllerBuffer']){const _0x13ceb6=this['_suggestionToController']['has'](_0x213c8a);_0x13ceb6||_0x1dba33?_0x13ceb6&&_0x1dba33&&this['_destroyController'](_0x213c8a):this['_initializeController'](_0x213c8a);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3d71f3,_0x52e980);}['init'](){const _0xf207c8=this['editor'],_0x149418=_0xf207c8['plugins']['get']('TrackChangesEditing'),_0x3e15a3=_0xf207c8['plugins']['get']('Annotations'),_0x319243=_0xf207c8['plugins']['get']('EditorAnnotations'),_0x2e0f90=_0xf207c8['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x319243['addSourceCollector'](()=>{const _0x46c5c1=[];for(const [_0x253835,_0x102d9d]of Array['from'](this['_suggestionToController'])){const _0x5cd5ac=_0x253835['getAllAdjacentSuggestions'](),_0x213a97=[];for(const _0x19569f of _0x5cd5ac){if(!_0x19569f['isInContent'])continue;if(_0x19569f['isMultiRange']){_0x213a97['push'](..._0x19569f['getRanges']());continue;}const _0x587a7d=_0x19569f['getFirstRange']();if(_0x213a97['length']>0x0){const _0x1250de=_0x213a97[0x0]['getJoined'](_0x587a7d);if(_0x1250de){_0x213a97[0x0]=_0x1250de;continue;}}_0x213a97['push'](_0x587a7d);}_0x46c5c1['push']([_0x102d9d['view'],_0x213a97]);}return _0x46c5c1;}),this['listenTo'](_0x149418,'suggestionLoaded',(_0x484c59,_0x5011f2)=>{this['listenTo'](_0x5011f2,'change:previous',(_0x44b4c1,_0x53f877,_0x2fe2f1,_0x12e0b7)=>{_0x5011f2['isInContent']&&(null==_0x2fe2f1?(this['_updateController'](_0x12e0b7['head']),this['_handleSuggestionControllerDelayed'](_0x5011f2,!0x1)):(this['_updateController'](_0x2fe2f1['head']),null==_0x12e0b7&&this['_handleSuggestionControllerDelayed'](_0x5011f2,!0x0)));}),null!==_0x5011f2['previous']?this['_updateController'](_0x5011f2['head']):this['_handleSuggestionControllerDelayed'](_0x5011f2,!0x1);}),this['listenTo'](_0x149418,'suggestionUnloaded',(_0x559bcf,_0x2c85c1,_0x2a8141)=>{this['stopListening'](_0x2c85c1,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2c85c1),this['_suggestionToController']['has'](_0x2c85c1)&&this['_destroyController'](_0x2c85c1),_0x2a8141&&this['_updateController'](_0x2a8141['head']);}),this['listenTo'](_0x149418,'suggestionChanged',(_0xba6ff6,_0x3b70b4)=>{this['_updateController'](_0x3b70b4);}),this['listenTo'](_0x3e15a3,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2e0f90,'addComment',(_0x1f5f99,{threadId:_0x4e79d7,isFromAdapter:_0x5cf8d6})=>{if(_0x5cf8d6||!_0x149418['hasSuggestion'](_0x4e79d7))return;const _0x149094=_0x149418['getSuggestion'](_0x4e79d7);this['_suggestionToController']['get'](_0x149094)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x28351e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x408b69;for(const _0x392508 in _0x28351e){const _0x21a08c=_0x392508,_0x379124=_0x28351e[_0x21a08c];if('trackChangesLicenseKeyValid'==_0x379124||'trackChangesLicenseKeyInvalid'==_0x379124||'trackChangesLicenseKeyExpired'==_0x379124||'trackChangesLicenseKeyDomainLimit'==_0x379124||'trackChangesLicenseKeyNotAllowed'==_0x379124||'trackChangesLicenseKeyEvaluationLimit'==_0x379124||'trackChangesLicenseKeyTrialLimit'==_0x379124||'trackChangesLicenseKeyUsageLimit'==_0x379124){delete _0x28351e[_0x21a08c],_0x408b69=_0x379124,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x408b69&&_0x28351e['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x408b69&&_0x28351e['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x408b69&&_0x28351e['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x408b69&&_0x28351e['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x408b69&&_0x28351e['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x408b69&&_0x28351e['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x408b69&&_0x28351e['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x4091bb=this['editor']['plugins']['get']('Annotations'),_0x41aa0b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5f2e0c=Array['from'](_0x4091bb['activeAnnotations'],_0x1e041e=>_0x1e041e['innerView'])['filter'](_0x2b0c7a=>this['_viewToController']['has'](_0x2b0c7a)),_0x27afdb=[];for(const _0x6294e5 of _0x5f2e0c){const _0x4f5d2a=this['_viewToController']['get'](_0x6294e5)['model']['getAllAdjacentSuggestions']();_0x27afdb['push'](..._0x4f5d2a['reduce']((_0x4bb921,_0x2e1138)=>[..._0x4bb921,..._0x2e1138['getMarkerNames']()],[]));}_0x41aa0b['activeMarkers']=_0x27afdb;}['_addUIComponentsToFactory'](){const _0x220919=this['editor'],_0x3885a2=_0x220919['locale'],_0x585762=o(_0x3885a2,'Track\x20changes'),_0x5385ae=new _0x4e342c([{'type':'switchbutton','model':new _0x333e03({'withText':!0x0,'isToggleable':!0x0,'label':_0x585762,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x333e03({'withText':!0x0,'label':o(_0x3885a2,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x333e03({'withText':!0x0,'label':o(_0x3885a2,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x333e03({'withText':!0x0,'label':o(_0x3885a2,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x333e03({'withText':!0x0,'label':o(_0x3885a2,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x220919['plugins']['has']('TrackChangesPreview')&&_0x5385ae['addMany']([{'type':'separator'},{'type':'button','model':new _0x333e03({'withText':!0x0,'label':o(_0x3885a2,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x4b2254 of _0x5385ae)if(ke(_0x4b2254)){const _0x2b1fb1=_0x220919['commands']['get'](_0x4b2254['model']['commandName']);_0x4b2254['model']['bind']('isOn','isEnabled')['to'](_0x2b1fb1,'value','isEnabled');}_0x220919['ui']['componentFactory']['add']('trackChanges',_0x2128d8=>this['_createToolbarButton'](_0x2128d8,_0x5385ae,_0x585762)),_0x220919['ui']['componentFactory']['add']('menuBar:trackChanges',_0xbf44f3=>this['_createMenuBarMenu'](_0xbf44f3,_0x5385ae,_0x585762));}['_createToolbarButton'](_0xd3cb92,_0x3c2dfc,_0x95631b){const _0x85dadb=_0x159ffe(_0xd3cb92,_0x474fbc),_0x13f5c9=this['editor']['commands']['get']('trackChanges');_0x85dadb['buttonView']['set']({'tooltip':_0x95631b,'label':_0x95631b,'icon':we}),_0x85dadb['buttonView']['bind']('isOn')['to'](_0x13f5c9,'value'),_0x85dadb['buttonView']['on']('execute',()=>{_0x13f5c9['execute'](),this['editor']['editing']['view']['focus']();}),_0xe3cad7(_0x85dadb,_0x3c2dfc,{'role':'menu'});const _0xc533da=[];for(const _0x21f2f8 of _0x3c2dfc)ke(_0x21f2f8)&&_0xc533da['push'](this['editor']['commands']['get'](_0x21f2f8['model']['commandName']));const _0x32da69=_0x85dadb['buttonView'];return _0x32da69['actionView']['unbind']('isEnabled'),_0x32da69['arrowView']['unbind']('isEnabled'),_0x32da69['actionView']['bind']('isEnabled')['to'](_0x13f5c9,'isEnabled'),_0x32da69['arrowView']['bind']('isEnabled')['toMany'](_0xc533da,'isEnabled',(..._0x59e672)=>_0x59e672['some'](_0x1f10ac=>_0x1f10ac)),_0x85dadb['on']('execute',_0x593629=>{this['editor']['execute'](_0x593629['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x85dadb;}['_createMenuBarMenu'](_0x1a03ec,_0x2c5372,_0x571c22){const _0xff5c44=new _0x2a6aa0(_0x1a03ec),_0x331754=this['editor']['commands']['get']('trackChanges');_0xff5c44['buttonView']['set']({'label':_0x571c22,'icon':we});const _0x2f6d22=new _0x1d6587(_0x1a03ec);for(const _0x53eb5f of _0x2c5372){if('separator'==_0x53eb5f['type']){_0x2f6d22['items']['add'](new _0x292442(_0x1a03ec));continue;}const _0x15cec4=new _0x2e8612(_0x1a03ec,_0xff5c44),_0x3d3b47=new _0x2462b7(_0x1a03ec),_0x545698=_0x53eb5f['model'];_0x3d3b47['bind'](...Object['keys'](_0x545698))['to'](_0x545698),_0x3d3b47['delegate']('execute')['to'](_0xff5c44),_0x3d3b47['on']('execute',()=>{this['editor']['execute'](_0x545698['commandName']),this['editor']['editing']['view']['focus']();}),_0x15cec4['children']['add'](_0x3d3b47),_0x2f6d22['items']['add'](_0x15cec4);}return _0xff5c44['bind']('isEnabled')['to'](_0x331754,'isEnabled'),_0xff5c44['panelView']['children']['add'](_0x2f6d22),_0xff5c44;}['_initializeController'](_0x5ed15a){const _0x24915e=this['editor'],_0x17267a=_0x24915e['config'],_0xf8339f=_0x24915e['plugins']['get']('Annotations'),_0x5147f1=_0x24915e['plugins']['get']('CommentsRepository'),_0x2112aa=_0x24915e['plugins']['get']('EditorAnnotations'),_0x58a19d=_0x24915e['plugins']['get'](_0x396d67)['me'],_0x2212c3=_0x17267a['get']('trackChanges')['SuggestionThreadView'],_0x1834b0=_0x17267a['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2a1b3f,CommentThreadInputView:_0x329351}=_0x24915e['plugins']['get']('CommentsUI');let _0xd46ac5,_0x1fe01a,_0x2e9dba;this['_annotationViews']['has'](_0x5ed15a['id'])?(_0x1fe01a=this['_annotationViews']['get'](_0x5ed15a['id']),_0xd46ac5=_0x1fe01a['mainView']):(_0xd46ac5=new _0x2212c3(_0x24915e['locale'],_0x5ed15a,_0x58a19d,{'disableComments':this['_disableComments'],'editorConfig':{..._0x17267a['get']('comments.editorConfig'),'licenseKey':_0x17267a['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x17267a['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x17267a['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x17267a['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x565ad9(_0x17267a['get']('locale')),'CommentView':_0x17267a['get']('comments')['CommentView'],'CommentsListView':_0x2a1b3f,'CommentThreadInputView':_0x329351,'SuggestionView':_0x1834b0}),_0xd46ac5['suggestionView']['acceptButton']['on']('execute',()=>{_0x24915e['editing']['view']['focus']();}),_0xd46ac5['suggestionView']['discardButton']['on']('execute',()=>{_0x24915e['editing']['view']['focus']();}),_0x1fe01a=_0xf8339f['createAnnotationView'](this['editor']['locale'],_0xd46ac5),_0x1fe01a['bind']('isDirty')['to'](_0xd46ac5,'isDirty'),_0x1fe01a['bind']('length')['to'](_0xd46ac5),_0x1fe01a['bind']('type')['to'](_0xd46ac5,'type',_0xe5b7eb=>'suggestion-'+_0xe5b7eb),_0xd46ac5['on']('escape',()=>{_0x2e9dba['fire']('escape');}),this['_annotationViews']['set'](_0x5ed15a['id'],_0x1fe01a));const _0x49d7f2=_0x5147f1['createCommentThreadController'](_0x5ed15a['commentThread'],_0xd46ac5),_0x37a551=new Ce(_0x24915e,_0x5ed15a,_0xd46ac5,_0x49d7f2),_0x49f57d=_0x5ed15a['getAllAdjacentSuggestions']()['filter'](_0x1c4ed0=>_0x1c4ed0['isInContent']);_0xd46ac5['descriptionParts']=_0x24915e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x49f57d),this['_suggestionToController']['set'](_0x5ed15a,_0x37a551),this['_viewToController']['set'](_0xd46ac5,_0x37a551),_0x2e9dba=_0xf8339f['createAnnotation']({'view':_0x1fe01a,'target':()=>{const _0x2429c9=[],_0x41cf79=_0x5ed15a['getAllAdjacentSuggestions']()['filter'](_0x1d1ce4=>_0x1d1ce4['isInContent']);for(const _0x26b066 of _0x41cf79)_0x2429c9['push'](..._0x26b066['getMarkers']());return _0x398747(_0x24915e['editing'],_0x2429c9);},'type':()=>'suggestion-'+_0x37a551['view']['type']}),_0x5147f1['_bindAnnotationToEditors'](_0xd46ac5,_0x2e9dba),_0xf8339f['add'](_0x2e9dba),_0x2112aa['registerAnnotation'](_0x2e9dba);}['_destroyController'](_0x530911){const _0x19bb7a=this['editor']['plugins']['get']('CommentsRepository'),_0x1c8540=this['editor']['plugins']['get']('Annotations'),_0x22e19d=this['_suggestionToController']['get'](_0x530911),_0x5a532e=_0x22e19d['view'],_0x30aeda=_0x1c8540['getByInnerView'](_0x5a532e);_0x19bb7a['_unbindEditors'](_0x5a532e),_0x30aeda&&_0x1c8540['remove'](_0x30aeda),this['_suggestionToController']['delete'](_0x530911),this['_viewToController']['delete'](_0x5a532e),_0x22e19d['destroy']();}['_updateController'](_0x32d7b9){if(!_0x32d7b9['isInContent']||!this['_suggestionToController']['has'](_0x32d7b9))return;const _0x160d4f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1c55b3=this['_suggestionToController']['get'](_0x32d7b9),_0x35f17f=_0x32d7b9['getAllAdjacentSuggestions']();_0x1c55b3['view']['descriptionParts']=_0x160d4f['descriptionFactory']['getDescriptions'](_0x35f17f);}['destroy'](){for(const _0x7b7ed7 of this['_suggestionToController']['keys']())this['_destroyController'](_0x7b7ed7);for(const _0x20a940 of this['_annotationViews']['values']())_0x20a940['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x4af292){return'model'in _0x4af292;}class k extends _0x2bd390{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x4a1a88){this['editor']['plugins']['get'](p)['adapter']=_0x4a1a88;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x1dd4e1){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x1dd4e1);}['getSuggestions']({skipNotAttached:_0x196dba=!0x1,toJSON:_0x2495b3=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x196dba,'toJSON':_0x2495b3});}['getSuggestion'](_0xa8b792){return this['editor']['plugins']['get'](p)['getSuggestion'](_0xa8b792);}}const w=['Pagination'];class T extends _0x2bd390{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x533eef=this['editor'];if(_0x533eef['config']['define']('trackChangesData.editorCreator',_0x5df060=>{const _0x4ef854=_0x533eef['model']['document']['getRootNames']()['reduce']((_0x4907e8,_0x1cdb63)=>(_0x4907e8[_0x1cdb63]='',_0x4907e8),{});return _0x533eef['constructor']['create'](_0x4ef854,_0x5df060);}),'function'!=typeof _0x533eef['config']['get']('trackChangesData')['editorCreator'])throw new _0x1b3384('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x47f295){return N(this['editor'],!0x0,_0x47f295);}['getDataWithDiscardedSuggestions'](_0x2a625d){return N(this['editor'],!0x1,_0x2a625d);}}class D extends _0x2bd390{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b8189){function _0x51782c(_0x455f10){return _0x455f10['map'](_0x5e9f62=>String['fromCharCode'](_0x5e9f62))['join']('');}super(_0x5b8189),this['result']='end',_0x5b8189[_0x51782c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51782c([0x76,0x69,0x65,0x77])][_0x51782c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x51782c([0x61,0x75,0x74,0x6f]),_0x5b8189[_0x51782c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x51782c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x51782c([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x51782c([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x51782c([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 Fe(_0x42afb0){return void 0x0!==_0x42afb0['getRootsAttributes'];}async function N(_0x2944f3,_0x566bfb,_0x59ea93){const _0x33c4e5=_0x3f0e77(_0x2944f3,w);_0x33c4e5['plugins']['push'](p,D),_0x33c4e5['rootsAttributes']=Fe(_0x2944f3)?_0x2944f3['getRootsAttributes']():void 0x0;const _0x44f7bb=document['createDocumentFragment'](),_0x33822a=_0x2944f3['config']['get']('trackChangesData')['editorCreator'],_0x2b66b3=await _0x33822a(_0x33c4e5,()=>function(_0x28a49b){const _0x391a8b=document['createElement']('div');return _0x28a49b['appendChild'](_0x391a8b),_0x391a8b;}(_0x44f7bb));!function(_0xd0925c,_0x17d8ae){const _0x32c03a=_0xd0925c['model']['document']['getRootNames']()['reduce']((_0x2afd48,_0x42fa27)=>(_0x2afd48[_0x42fa27]=_0xd0925c['data']['get']({'rootName':_0x42fa27}),_0x2afd48),{}),_0x25020d=_0xd0925c['plugins']['get']('Users')['users']['map'](_0x1f6c96=>({'id':_0x1f6c96['id'],'name':_0x1f6c96['name']})),_0x4190aa=_0xd0925c['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4693b7=_0xd0925c['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x363467=_0x17d8ae['plugins']['get']('Users'),_0x2c804d=_0x17d8ae['plugins']['get']('TrackChangesEditing'),_0x7c4e95=_0x17d8ae['plugins']['get']('CommentsRepository');for(const _0x225634 of _0x7c4e95['getCommentThreads']())_0x225634['remove']();for(const _0xfb1351 of _0x25020d)_0x363467['getUser'](_0xfb1351['id'])||_0x363467['addUser'](_0xfb1351);_0x363467['me']||_0x363467['useAnonymousUser']();for(const _0x3fe45a of _0x4693b7)_0x7c4e95['addCommentThread'](_0x3fe45a);for(const _0x3264ad of _0x4190aa)_0x2c804d['addSuggestionData'](_0x3264ad);_0x17d8ae['data']['set'](_0x32c03a);}(_0x2944f3,_0x2b66b3),_0x2b66b3['execute'](_0x566bfb?'acceptAllSuggestions':'discardAllSuggestions');const _0x6e85c8=Fe(_0x2b66b3)?_0x2b66b3['getFullData'](_0x59ea93):_0x2b66b3['data']['get'](_0x59ea93);return await _0x2b66b3['destroy'](),_0x6e85c8;}class Me extends _0x4f14f8{['options'];constructor(_0x35f06d,_0x1a31d9){super(_0x35f06d),this['options']=_0x1a31d9,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'](_0x145f78,_0x4e05dc){if(!this['element'])return;const _0x37f111=[];for(const [_0x28f972,_0x3551a7]of _0x145f78){const _0x5e99fa=document['createElement']('div');_0x5e99fa['setAttribute']('data-ck-root-name',_0x28f972),_0x5e99fa['className']=_0x3551a7['classes']+'\x20ck-track-changes-preview__root-container',_0x5e99fa['innerHTML']=_0x3551a7['content'],_0x37f111['push'](_0x5e99fa);}_0x4e05dc(this['element'],_0x37f111),this['element']['style']['width']='',this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Qt{constructor(_0x5b9737){super(_0x5b9737),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3118ab=this['editor'],_0x36c0c7=_0x3118ab['locale'],_0x4116e8=_0x3118ab['plugins']['get']('Dialog');let _0x5e8daa;const _0x387248=function(_0x5ceb4a){const _0x1c3fa0={};if('editables'in _0x5ceb4a['ui']['view']){for(const [_0x520d6a,_0x223aab]of Object['entries'](_0x5ceb4a['ui']['view']['editables']))_0x1c3fa0[_0x520d6a]=_0x223aab['element'];}else _0x1c3fa0[_0x5ceb4a['model']['document']['getRootNames']()[0x0]]=_0x5ceb4a['ui']['view']['editable']['element'];return _0x1c3fa0;}(_0x3118ab),_0x4a81da=function(_0x49f73f){let _0x5da089=0x0;for(const _0x19ab53 of Object['values'](_0x49f73f))_0x5da089=Math['max'](_0x5da089,_0x19ab53['getBoundingClientRect']()['width']);let _0x97aa89=0x0;for(const _0x41bd80 of Object['values'](_0x49f73f))_0x97aa89+=_0x41bd80['getBoundingClientRect']()['height'];const _0x7f98f1=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x40e964=Math['min'](_0x97aa89,_0x7f98f1);return{'width':_0x5da089,'height':_0x40e964};}(_0x387248);_0x4116e8['show']({'id':'finalContentPreview','title':o(_0x36c0c7,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x36c0c7,{'dialogRects':_0x4a81da}),'onHide':()=>{_0x5e8daa['detachFromDom']();},'onShow':()=>{_0x3118ab['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x248a67=>{const _0x44bfd1=this['_standarizeRootsData'](_0x248a67,_0x3118ab,_0x387248);_0x4116e8['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x44bfd1,_0x3118ab['config']['get']('trackChanges.preview.renderFunction'));}),_0x5e8daa=new _0x4bfbcc(_0x36c0c7,[_0x4116e8['view']]),_0x5e8daa['attachToDom'](),_0x5e8daa['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3118ab['once']('destroy',()=>{_0x5e8daa['detachFromDom']();});const _0x63ee4b=_0x4116e8['view']['headerView']['class'];_0x4116e8['view']['headerView']['class']=_0x63ee4b?_0x63ee4b+'\x20ck-reset_all':'ck-reset_all',_0x4116e8['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x4116e8['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3c6f6a=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x44e15c=_0x3c6f6a['previewMode'],_0x55de1d={};if('$labels'===_0x44e15c){for(const _0x4bc455 of _0x3c6f6a['getMergeFieldsIds']())_0x55de1d[_0x4bc455]=_0x3c6f6a['getLabel'](_0x4bc455)||_0x4bc455;}else{const _0x406d01='$defaultValues'===_0x44e15c?_0x3c6f6a['getDefaultValues']():_0x3c6f6a['getDataSetValues'](_0x44e15c,!0x0);for(const _0x5dd0ed of Object['entries'](_0x406d01)){const [_0x4b1e14,_0x3a91ab]=_0x5dd0ed;_0x55de1d[_0x4b1e14]=null!==_0x3a91ab?_0x3a91ab:_0x3c6f6a['getLabel'](_0x4b1e14)||_0x4b1e14;}}return{'mergeFieldsData':_0x55de1d};}['_standarizeRootsData'](_0x1456bb,_0x541cbd,_0x1cb11c){let _0x18a542;if('string'==typeof _0x1456bb){const _0x30c154=_0x541cbd['model']['document']['getRootNames']()[0x0];_0x18a542={[_0x30c154]:_0x1456bb};}else _0x18a542=_0x1456bb;const _0x3a9da5=this['_fixMediaEmbeds'](_0x18a542,_0x541cbd),_0x3d0044=function(_0x11297a,_0xd72207){for(const [_0x2ab6ed,_0x4bb0ca]of _0x11297a)_0x4bb0ca['classes']=_0xd72207[_0x2ab6ed]['classList']['value']['replace']('ck-focused','');return _0x11297a;}(this['_sortRoots'](_0x541cbd)['reduce']((_0x1c2a56,_0x442b27)=>(_0x1c2a56['push']([_0x442b27,{'content':_0x3a9da5[_0x442b27],'classes':''}]),_0x1c2a56),[]),_0x1cb11c);return _0x3d0044;}['_fixMediaEmbeds'](_0x2245b3,_0x1aab8c){if(!_0x1aab8c['plugins']['has']('MediaEmbedEditing'))return _0x2245b3;const _0x2ede11=_0x1aab8c['plugins']['get']('MediaEmbedEditing');for(const [_0x1ae92f,_0x20dfef]of Object['entries'](_0x2245b3)){const _0xbb83e7=document['createElement']('div');_0xbb83e7['innerHTML']=_0x20dfef,(_0xbb83e7['querySelectorAll']('figure.media')['forEach'](_0x327f4c=>{const _0x5c448d=_0x327f4c['querySelector']('oembed');if(_0x5c448d){const _0x11cc8f=_0x5c448d['getAttribute']('url');if(_0x11cc8f){const _0x17f086=_0x2ede11['registry']['getMediaViewElement'](new _0x2bfc92(_0x1aab8c['editing']['view']['document']),_0x11cc8f,{'elementName':'','renderForEditingView':!0x0}),_0x27a071=document['createElement']('div');_0x27a071['classList']['add']('ck-media__wrapper'),_0x17f086['render'](_0x27a071,_0x1aab8c['editing']['view']['domConverter']),_0x5c448d['replaceWith'](_0x27a071);}}}),_0x2245b3[_0x1ae92f]=_0xbb83e7['innerHTML']);}return _0x2245b3;}['_sortRoots'](_0xeaa8b5){if(!function(_0x367649){return void 0x0!==_0x367649['getRootsAttributes'];}(_0xeaa8b5))return _0xeaa8b5['model']['document']['getRootNames']();const _0x32b29f=[],_0x38b10b=new Map();for(const _0x468d86 of _0xeaa8b5['model']['document']['getRootNames']()){const _0x24c39e=_0xeaa8b5['editing']['view']['getDomRoot'](_0x468d86)['getClientRects']()['item'](0x0);_0x32b29f['push'](_0x468d86),_0x38b10b['set'](_0x468d86,_0x24c39e);}return _0x32b29f['sort']((_0x1a1369,_0x21195b)=>{const _0x6be683=_0x38b10b['get'](_0x1a1369),_0x59c56c=_0x38b10b['get'](_0x21195b);return _0x6be683['y']-_0x59c56c['y']||_0x6be683['x']-_0x59c56c['x'];}),_0x32b29f;}}class te extends _0x2bd390{static get['requires'](){return[T,_0x1f395f];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x7501){super(_0x7501),_0x7501['commands']['add']('previewFinalContent',new re(this['editor'])),_0x7501['config']['define']('trackChanges.preview.renderFunction',(_0x33a42a,_0x542372)=>{for(const _0x1e1f52 of _0x542372)_0x33a42a['appendChild'](_0x1e1f52);});}}export{as as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};