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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +4 -4
  2. package/package.json +25 -25
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x589acc,Plugin as _0x2d10d9,PendingActions as _0x59a2e3}from'@ckeditor/ckeditor5-core/dist/index.js';import{CommentsRepository as _0x21b6bb,Annotations as _0x221413,EditorAnnotations as _0x16bd85,Comments as _0x3ead14}from'@ckeditor/ckeditor5-comments/dist/index.js';import{CKEditorError as _0xbcf39b,ObservableMixin as _0x34d652,uid as _0x2d99d9,priorities as _0x46da9c,insertToPriorityArray as _0x52e80b,logWarning as _0x57f867,getEnvKeystrokeText as _0x234e83,FocusTracker as _0x3314e8,KeystrokeHandler as _0x2a8ff8,Collection as _0x4d79c1}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x2bee71,IconCancel as _0x19c833,IconTrackChanges as _0x3a0746}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x4494a0,View as _0x32578b,ViewCollection as _0x302723,FocusCycler as _0x5e3e07,UIModel as _0x57079f,createDropdown as _0x33dc77,SplitButtonView as _0x2947d7,addListToDropdown as _0x23ab7a,MenuBarMenuView as _0x17282c,MenuBarMenuListView as _0x2b49eb,ListSeparatorView as _0xf5b5f4,MenuBarMenuListItemView as _0x10965d,MenuBarMenuListItemButtonView as _0x5bebdb,BodyCollection as _0x7aaf26,Dialog as _0x515a6a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{splitSuggestionMarkerName as _0x329859,SuggestionsConversion as _0x346595,Users as _0x5ecb16,DocumentCompare as _0x5ac772,fixElementSuggestionRange as _0x2cb2a7,hashObject as _0x56dc35,surroundingMarkersDetector as _0x5aa097,FOCUS_ANNOTATION_KEYSTROKE as _0x2a22b4,AriaDescriptionView as _0x3bf8f5,setupThreadKeyboardNavigation as _0x4b12a6,trimHtml as _0x3a83b2,UserView as _0x49cacc,LateFocusButtonView as _0x4567a8,getDateTimeFormatter as _0x5b4908,getAllMarkersDomElementsSorted as _0x41944c,sanitizeEditorConfig as _0x1108df}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{ModelElement as _0x5afe78,ModelLiveRange as _0x4f142a,ModelLivePosition as tt,ViewDowncastWriter as et}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as nt,set as it,isEqual as st,unset as rt,omit as ot}from'es-toolkit/compat';import{Delete as at,Input as ct}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as lt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as ut}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class ht extends _0x589acc{['_enabledCommands'];constructor(_0x17545a,_0x31552b){super(_0x17545a),this['_enabledCommands']=_0x31552b,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 _0x36ab00 of this['editor']['commands']['commands']())_0x36ab00['affectsData']&&!this['_enabledCommands']['has'](_0x36ab00)&&_0x36ab00['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x435ed6 of this['editor']['commands']['commands']())_0x435ed6['affectsData']&&!this['_enabledCommands']['has'](_0x435ed6)&&_0x435ed6['clearForceDisabled']('TrackChangesCommand');}}class dt extends _0x589acc{['_suggestions'];constructor(_0x3828cb,_0x251488){super(_0x3828cb),this['_suggestions']=_0x251488,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x23bdcd){const _0x9403ec=this['_suggestions']['get'](_0x23bdcd);if(!_0x9403ec)throw new _0xbcf39b('track-changes-accept-suggestion-not-found',this);const _0x4e3e53=_0x9403ec['getRanges']();this['editor']['model']['canEditAt'](_0x4e3e53)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x9403ec);}}class ft extends _0x589acc{['_suggestions'];constructor(_0x43e25d,_0x453bf7){super(_0x43e25d),this['_suggestions']=_0x453bf7,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xa0fb1f){const _0x693da0=this['_suggestions']['get'](_0xa0fb1f);if(!_0x693da0)throw new _0xbcf39b('track-changes-discard-suggestion-not-found',this);const _0x1b3045=_0x693da0['getRanges']();this['editor']['model']['canEditAt'](_0x1b3045)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x693da0);}}function gt(_0x75470f,_0x499dcb){let _0x3eeaff='';return _0x3eeaff+=_0x75470f['split']('*')['map']((_0x1c7c0a,_0x37b030)=>_0x37b030%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+mt(_0x1c7c0a)+'</span>':mt(_0x1c7c0a))['join'](''),_0x499dcb&&(_0x3eeaff+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x499dcb['value']+'\x22\x20title=\x22'+_0x499dcb['title']+'\x22></span>'),_0x3eeaff;}function mt(_0x1be3cf){const _0x4ae092=document['createElement']('span');return _0x4ae092['innerText']=_0x1be3cf,_0x4ae092['innerHTML'];}function Et(_0x2fd4ce){return _0x2fd4ce['sort']((_0x226166,_0x3a15c4)=>'attribute'===_0x226166['type']&&'attribute'!==_0x3a15c4['type']?-0x1:'attribute'!==_0x226166['type']&&'attribute'===_0x3a15c4['type']?0x1:'deletion'==_0x226166['type']&&'deletion'!=_0x3a15c4['type']?-0x1:'deletion'!=_0x226166['type']&&'deletion'==_0x3a15c4['type']?0x1:0x0);}function Tt(_0x5d7afe,_0x73e988){let _0x2ad7aa,_0x164fe0=0x0;const _0x2a3955=[],_0xa2a6cc=_0x73e988['schema'];for(;_0x164fe0<_0x5d7afe['length'];){const _0x2eb793=_0x5d7afe[_0x164fe0],_0xcaf8df=_0x5d7afe[_0x164fe0+0x1];_0x2ad7aa||(_0x2ad7aa=_0x73e988['createPositionBefore'](_0x2eb793)),_t(_0x73e988,_0x2eb793,_0xcaf8df)||(_0x2a3955['push'](_0x73e988['createRange'](_0x2ad7aa,_0xa2a6cc['isObject'](_0x2eb793)?_0x73e988['createPositionAfter'](_0x2eb793):_0x73e988['createPositionAt'](_0x2eb793,'end'))),_0x2ad7aa=null),_0x164fe0++;}return _0x2a3955;}function _t(_0x3f77e6,_0xfa5ed1,_0x3c7f43){if(!_0x3c7f43)return!0x1;const _0x4870a2=_0x3f77e6['createPositionAfter'](_0xfa5ed1),_0x14e77f=_0x3f77e6['createPositionBefore'](_0x3c7f43);return _0x4870a2['isTouching'](_0x14e77f);}function pt(_0x187fc4,_0x3b1314,_0xdb10a2){for(;_0xdb10a2['length'];){const _0x3f1787=_0xdb10a2['splice'](0x0,0x64);_0x187fc4['change'](()=>{for(const _0xa9972a of _0x3f1787)_0xa9972a['isInContent']&&_0x3b1314['execute'](_0xa9972a['id']);});}}class Lt extends _0x589acc{['_command'];['_suggestions'];constructor(_0xe4081c,_0xe2dd7f,_0x5b3585){super(_0xe4081c),this['_command']=_0xe2dd7f,this['_suggestions']=_0x5b3585,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x593e88=Array['from'](this['_suggestions']['values']())['some'](_0x1c8ef1=>_0x1c8ef1['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x593e88;}['execute'](){const _0x24ebae=Et(Array['from'](this['_suggestions']['values']()));for(const _0x2020e3 of _0x24ebae){const _0x4b82eb=_0x2020e3['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4b82eb))return;}pt(this['editor']['model'],this['_command'],_0x24ebae);}}class It extends _0x589acc{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xf68f81,_0x5ebf33,_0x20c90c){super(_0xf68f81),this['_command']=_0x5ebf33,this['_suggestions']=_0x20c90c,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x43e29f=this['editor']['model']['document']['selection'],_0x6259d1=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4f52cb,_0x22182a){const _0x474cd5=Array['from'](_0x4f52cb['getRanges']()),_0x552d47=new Set();for(const _0x30ab14 of _0x22182a)if(_0x30ab14['isInContent']){for(const _0x544134 of _0x474cd5)for(const _0x3a5ac4 of _0x30ab14['getRanges']())(_0x544134['isIntersecting'](_0x3a5ac4)||_0x4f52cb['isCollapsed']&&!_0x30ab14['isMultiRange']&&_0x30ab14['next']&&_0x3a5ac4['end']['isTouching'](_0x544134['start']))&&_0x552d47['add'](_0x30ab14);}return _0x552d47;}(_0x43e29f,_0x6259d1),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4a82b2=Et(Array['from'](this['_selectedSuggestions']));for(const _0x515caa of _0x4a82b2){const _0x4756a1=_0x515caa['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4756a1))return;}pt(this['editor']['model'],this['_command'],_0x4a82b2);}}class bt extends/* #__PURE__ -- @preserve */
24
- _0x34d652(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3f6135,_0x13ec4c){super(),this['id']=_0x13ec4c['id'],this['type']=_0x13ec4c['type'],this['subType']=_0x13ec4c['subType']||null,this['author']=_0x13ec4c['author'],this['creator']=_0x13ec4c['creator']||_0x13ec4c['author'],this['isExternal']=Boolean(_0x13ec4c['attributes']&&_0x13ec4c['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x13ec4c['originalSuggestionId']||null,this['_model']=_0x3f6135,this['_onAccept']=_0x13ec4c['onAccept'],this['_onDiscard']=_0x13ec4c['onDiscard'],this['_onAttributesChange']=_0x13ec4c['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x13ec4c['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 _0xe3ffb5=this;for(;_0xe3ffb5['previous'];)_0xe3ffb5=_0xe3ffb5['previous'];return _0xe3ffb5;}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'](_0x1dc1d8){this['_markerNames']['add'](_0x1dc1d8);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x143d5c=>this['_model']['markers']['get'](_0x143d5c))['filter'](_0x5d5a5a=>_0x5d5a5a);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x40ad0f=>{for(const _0x168b4a of this['getMarkers']())_0x40ad0f['removeMarker'](_0x168b4a);}),this['_markerNames']['clear']();}['removeMarker'](_0x1cbd18){this['_model']['change'](_0x1aaea9=>{_0x1aaea9['removeMarker'](_0x1cbd18);}),this['_markerNames']['delete'](_0x1cbd18);}['addRange'](_0x2a863b){const _0x45fc6e='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+bt['getMultiRangeId']();this['addMarkerName'](_0x45fc6e),this['_model']['change'](_0x52a0f5=>{_0x52a0f5['addMarker'](_0x45fc6e,{'range':_0x2a863b,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5cd4cb){for(const _0xce0fe4 of this['getRanges']())if(_0xce0fe4['isIntersecting'](_0x5cd4cb))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x8185ff=>_0x8185ff['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2aed8c,_0xcb8ad0)=>[..._0x2aed8c,..._0xcb8ad0['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x308d4b=this['getRanges']();if(0x1!=_0x308d4b['length'])return null;const _0x454dc7=_0x308d4b[0x0],_0x33a2bd=_0x454dc7['start']['nodeAfter'],_0x124769=_0x454dc7['end']['nodeBefore'];return _0x33a2bd instanceof _0x5afe78?_0x33a2bd!=_0x124769?null:_0x33a2bd: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 _0x231adb=[];let _0x3be261=this['head'];for(;_0x3be261;)_0x231adb['push'](_0x3be261),_0x3be261=_0x3be261['next'];return _0x231adb;}['setAttribute'](_0x404766,_0x59b0f7){const _0x1e4c11=nt(this['attributes']);it(_0x1e4c11,_0x404766,_0x59b0f7),st(_0x1e4c11,this['attributes'])||(this['attributes']=_0x1e4c11,this['_onAttributesChange'](_0x1e4c11));}['removeAttribute'](_0x33c9e9){const _0x30a0ff=nt(this['attributes']);rt(_0x30a0ff,_0x33c9e9),st(_0x30a0ff,this['attributes'])||(this['attributes']=_0x30a0ff,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 _0x2d99d9()['substr'](0x1,0x5);}}function At(_0x475520,_0x30b0cf,_0x248550){const _0x409b33=_0x475520['t'],t=_0x475520['t'];switch(_0x30b0cf){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',_0x248550);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x248550);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x248550);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x248550);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x248550);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',_0x248550);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x248550);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',_0x248550);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x248550);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x248550);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x248550);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x248550);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x248550);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x248550);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x248550);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x248550);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x248550);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x248550);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x248550);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x248550);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x248550);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x248550);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x248550);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x248550);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x248550);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'},_0x248550);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x248550);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x248550);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x248550);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x248550);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x248550);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x248550);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x248550);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'},_0x248550);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x248550);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x248550);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x248550);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x248550);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x248550);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x248550);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'},_0x248550);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x248550);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x248550);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'},_0x248550);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x248550);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'},_0x248550);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x248550);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x248550);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x248550);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x248550);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x248550);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'},_0x248550);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x248550);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 _0x409b33({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x248550);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x409b33({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x248550);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x248550);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'},_0x248550);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'},_0x248550);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'},_0x248550);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x30b0cf;}}class kt{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x441dd2,_0x38a8c8){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x441dd2,this['_locale']=_0x38a8c8;}['getDescriptions'](_0x3d63e4){const _0x1bd215=[],_0x4345a7=new Set(),_0x3e2ffa=new Set();for(let _0x2c8ea4=0x0;_0x2c8ea4<_0x3d63e4['length'];_0x2c8ea4++){const _0x3ce385=_0x3d63e4[_0x2c8ea4];if(!_0x3ce385['isInContent'])continue;const _0x1a4d5e=this['_handleCustomCallbackDescription'](_0x3ce385);if(_0x1a4d5e){if(null!=_0x3ce385['subType']){if(_0x4345a7['has'](_0x3ce385['subType']))continue;_0x4345a7['add'](_0x3ce385['subType']);}_0x1bd215['push'](_0x1a4d5e);}else{if('attribute'==_0x3ce385['type']){const _0x38433b=_0x3ce385['data']['key'];if(_0x3e2ffa['has'](_0x38433b))continue;_0x3e2ffa['add'](_0x3ce385['data']['key']),_0x38433b==Ke?this['_handleRenameSuggestionDescription'](_0x1bd215,_0x3ce385):this['_handleAttributeSuggestionDescription'](_0x1bd215,_0x3ce385);continue;}'insertion'!=_0x3ce385['type']&&'deletion'!=_0x3ce385['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1bd215,_0x3ce385,_0x3d63e4[_0x2c8ea4+0x1]);}}return this['_resolveDescriptionItems'](_0x1bd215);}['registerDescriptionCallback'](_0x1a381c){this['_customCallbacks']['push'](_0x1a381c);}['registerElementLabel'](_0x11ea30,_0x59447a,_0x1fe300=_0x46da9c['normal']){'function'==typeof _0x11ea30?_0x52e80b(this['_itemLabelsCallbacks'],{'matchingCallback':_0x11ea30,'label':_0x59447a,'priority':_0x1fe300}):this['_itemLabels']['set'](_0x11ea30,_0x59447a);}['registerAttributeLabel'](_0x1f1427,_0x5eea3d){this['_attributeLabels']['set'](_0x1f1427,_0x5eea3d);}['getItemLabel'](_0x46c876,_0x1bc9ff=0x1){let _0x32cee8;for(const _0x8e497c of this['_itemLabelsCallbacks'])if(_0x8e497c['matchingCallback'](_0x46c876)){_0x32cee8=_0x8e497c['label'];break;}return _0x32cee8||(_0x32cee8=this['_itemLabels']['get'](_0x46c876['name'])),_0x32cee8?_0x32cee8(_0x1bc9ff):0x1!==_0x1bc9ff?_0x1bc9ff+'\x20'+_0x46c876['name']+'s':''+_0x46c876['name'];}['_addDescriptionItems'](_0x5662fb,_0x3ab8bd){const _0x3a22dc=_0x3ab8bd['getFirstRange']()['getWalker'](),_0x466070='insertion'==_0x3ab8bd['type']?'add':'remove';for(const _0x286d2e of _0x3a22dc){const _0x1e918d=_0x286d2e['item'],_0x371053=_0x5662fb[_0x5662fb['length']-0x1];if(_0x1e918d['is']('$textProxy'))_0x371053&&_0x371053['type']['indexOf']('Container')>-0x1&&_0x5662fb['pop'](),_0x371053&&'text'==_0x371053['type']?_0x371053[_0x466070]+=_0x1e918d['data']:_0x5662fb['push']({'type':'text','add':'add'==_0x466070?_0x1e918d['data']:'','remove':'remove'==_0x466070?_0x1e918d['data']:''});else{if(this['_schema']['isObject'](_0x1e918d)){const _0x14613c=_0x1e918d;if(_0x371053&&_0x371053['type']['indexOf']('Container')>-0x1&&_0x5662fb['pop'](),'elementEnd'==_0x286d2e['type'])continue;_0x371053&&_0x371053['type']==_0x466070+'Object'&&_0x371053['element']['name']==_0x14613c['name']?_0x371053['quantity']++:_0x5662fb['push']({'type':_0x466070+'Object','element':_0x14613c,'quantity':0x1}),_0x3a22dc['skip'](_0x516dab=>!('elementEnd'==_0x516dab['type']&&_0x516dab['item']==_0x1e918d));}else{if(this['_schema']['checkChild'](_0x1e918d,'$text')||_0x1e918d['is']('element','softBreak')){const _0x5307a1=_0x1e918d;if('add'==_0x466070&&'elementStart'==_0x286d2e['type']||'remove'==_0x466070&&'elementEnd'==_0x286d2e['type'])continue;if(_0x371053&&-0x1==_0x371053['type']['indexOf']('Container')){'text'==_0x371053['type']&&(_0x371053[_0x466070]+='\x0a');continue;}let _0x5f3e14;if(_0x5f3e14='add'==_0x466070?_0x5307a1['nextSibling']&&!this['_schema']['isObject'](_0x5307a1['nextSibling'])?_0x5307a1['nextSibling']:null:_0x5307a1['previousSibling']&&!this['_schema']['isObject'](_0x5307a1['previousSibling'])?_0x5307a1['previousSibling']:null,_0x5307a1['isEmpty']||_0x5f3e14&&_0x5f3e14['isEmpty']){const _0x193e11=_0x5f3e14&&_0x5f3e14['isEmpty']?_0x5f3e14:_0x5307a1;_0x371053&&_0x371053['type']==_0x466070+'EmptyContainer'&&_0x371053['element']['name']==_0x193e11['name']?_0x371053['quantity']++:_0x5662fb['push']({'type':_0x466070+'EmptyContainer','element':_0x193e11,'quantity':0x1});}else _0x5662fb['push']({'type':_0x466070+'Container','element':_0x5307a1});}}}}}['_resolveDescriptionItems'](_0x4d2b25){const _0x2cce60=this['_locale'],_0x3bef58=[],_0x5f2576=[],_0x119c45=[];for(const _0x3a7747 of _0x4d2b25)switch(_0x3a7747['type']){case'text':if(_0x3a7747['add']=_0x3a7747['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3a7747['remove']=_0x3a7747['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3a7747['add']&&''!=_0x3a7747['remove']){_0x3bef58['push']({'type':'replace','content':At(_0x2cce60,'REPLACE_TEXT',['\x22'+_0x3a7747['remove']+'\x22','\x22'+_0x3a7747['add']+'\x22'])});continue;}if(null!=_0x3a7747['add']['match'](/^ +$/)){_0x3bef58['push']({'type':'insertion','content':At(_0x2cce60,'*Insert:*\x20%0',At(_0x2cce60,'ELEMENT_SPACE',_0x3a7747['add']['length']))});continue;}if(null!=_0x3a7747['remove']['match'](/^ +$/)){_0x3bef58['push']({'type':'deletion','content':At(_0x2cce60,'*Remove:*\x20%0',At(_0x2cce60,'ELEMENT_SPACE',_0x3a7747['remove']['length']))});continue;}if(''!=_0x3a7747['add']){_0x3bef58['push']({'type':'insertion','content':At(_0x2cce60,'*Insert:*\x20%0','\x22'+_0x3a7747['add']+'\x22')});continue;}_0x3bef58['push']({'type':'deletion','content':At(_0x2cce60,'*Remove:*\x20%0','\x22'+_0x3a7747['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3bef58['push']({'type':'insertion','content':At(_0x2cce60,'*Insert:*\x20%0',this['getItemLabel'](_0x3a7747['element'],_0x3a7747['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3bef58['push']({'type':'deletion','content':At(_0x2cce60,'*Remove:*\x20%0',this['getItemLabel'](_0x3a7747['element'],_0x3a7747['quantity']))});continue;case'addContainer':_0x3bef58['push']({'type':'insertion','content':At(_0x2cce60,'*Split:*\x20%0',this['getItemLabel'](_0x3a7747['element'],_0x3a7747['quantity']))});continue;case'removeContainer':_0x3bef58['push']({'type':'deletion','content':At(_0x2cce60,'*Merge:*\x20%0',this['getItemLabel'](_0x3a7747['element'],_0x3a7747['quantity']))});continue;case'addFormat':_0x5f2576['push'](_0x3a7747['key']);continue;case'removeFormat':_0x119c45['push'](_0x3a7747['key']);continue;default:_0x3bef58['push'](_0x3a7747);}if(_0x5f2576['length']){const _0x2698e1=_0x5f2576['map'](_0x54108b=>this['_attributeLabels']['has'](_0x54108b)?this['_attributeLabels']['get'](_0x54108b):_0x54108b)['join'](',\x20');_0x3bef58['push']({'type':'format','content':At(this['_locale'],'*Set\x20format:*\x20%0',_0x2698e1)});}if(_0x119c45['length']){const _0x12ae9b=_0x119c45['map'](_0x330007=>this['_attributeLabels']['has'](_0x330007)?this['_attributeLabels']['get'](_0x330007):_0x330007)['join'](',\x20');_0x3bef58['push']({'type':'format','content':At(this['_locale'],'*Remove\x20format:*\x20%0',_0x12ae9b)});}return _0x3bef58;}['_handleCustomCallbackDescription'](_0x2093bd){for(const _0x4ca36e of this['_customCallbacks']){const _0x354c61=_0x4ca36e(_0x2093bd);if(_0x354c61&&'type'in _0x354c61)return _0x354c61;}}['_handleAttributeSuggestionDescription'](_0x271d23,_0x456c55){const _0x114c97=_0x456c55['data'],_0x3faabf=void 0x0===_0x114c97['newValue']?'removeFormat':'addFormat';_0x271d23['push']({'type':_0x3faabf,'key':_0x114c97['key']});}['_handleRenameSuggestionDescription'](_0x45db85,_0x11d22c){_0x45db85['push']({'type':'format','content':At(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x11d22c['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2c4bda,_0x5129d0,_0x4b8dda){if(this['_addDescriptionItems'](_0x2c4bda,_0x5129d0),_0x4b8dda&&_0x4b8dda['getFirstRange']()&&!_0x5129d0['getFirstRange']()['end']['isEqual'](_0x4b8dda['getFirstRange']()['start'])){const _0x5bc7c2=_0x2c4bda[_0x2c4bda['length']-0x1],_0x1b4120='insertion'==_0x5129d0['type']?'add':'remove';_0x5bc7c2&&'text'==_0x5bc7c2['type']&&(_0x5bc7c2[_0x1b4120]+='\x0a');}}}class Ct extends _0x2d10d9{['afterInit'](){const _0x43aceb=this['editor'],_0x263b24=_0x43aceb['plugins']['get']('TrackChangesEditing');_0x43aceb['commands']['get']('showAIAssistant')&&_0x263b24['enableCommand']('showAIAssistant');}}class yt extends _0x2d10d9{['afterInit'](){const _0x356687=this['editor'],_0x3a9bcd=_0x356687['plugins']['get']('TrackChangesEditing');_0x356687['commands']['get']('toggleAi')&&_0x3a9bcd['enableCommand']('toggleAi');}}class Nt extends _0x2d10d9{['afterInit'](){const _0x52435d=this['editor'],_0x23a455=_0x52435d['plugins']['get']('TrackChangesEditing');_0x52435d['commands']['get']('aiQuickAction')&&_0x23a455['enableCommand']('aiQuickAction');}}class Rt extends _0x2d10d9{['afterInit'](){const _0x2a3838=this['editor'],_0x4ca5f0=_0x2a3838['locale'];if(!_0x2a3838['plugins']['has']('AlignmentEditing'))return;const _0xdffb1b=_0x2a3838['plugins']['get']('TrackChangesEditing');_0xdffb1b['enableDefaultAttributesIntegration']('alignment'),_0xdffb1b['descriptionFactory']['registerAttributeLabel']('alignment',At(_0x4ca5f0,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x350196=this['editor'],_0x54ae4e=_0x350196['locale'];_0x350196['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4edc7c=>{if('formatBlock'!=_0x4edc7c['type'])return;const {data:_0x11b4e7}=_0x4edc7c;if(_0x11b4e7&&'alignment'==_0x11b4e7['commandName']){const _0x677d84=_0x11b4e7['commandParams'][0x0]['value'];return{'type':'format','content':At(_0x54ae4e,'*Format:*\x20%0',function(_0x3417ac){switch(_0x3417ac){case'left':return At(_0x54ae4e,'FORMAT_ALIGN_TO_LEFT');case'right':return At(_0x54ae4e,'FORMAT_ALIGN_TO_RIGHT');case'center':return At(_0x54ae4e,'FORMAT_ALIGN_TO_CENTER');case'justify':return At(_0x54ae4e,'FORMAT_JUSTIFY_TEXT');}}(_0x677d84))};}});}}const St=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class Mt extends _0x2d10d9{['afterInit'](){const _0x48a1eb=this['editor'],_0x4d8299=_0x48a1eb['plugins']['get']('TrackChangesEditing'),_0x3a5b96=_0x48a1eb['locale'];for(const _0x247cf3 of St){if(!_0x48a1eb['plugins']['has'](_0x247cf3))continue;const _0x3e44e7=_0x247cf3['slice'](0x0,-0x7)['toLowerCase'](),_0xdfb077='FORMAT_'+_0x3e44e7['toUpperCase']();_0x4d8299['enableDefaultAttributesIntegration'](_0x3e44e7),_0x4d8299['descriptionFactory']['registerAttributeLabel'](_0x3e44e7,At(_0x3a5b96,_0xdfb077));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e4d4c=this['editor'],_0x4ac4c6=_0x5e4d4c['locale'],_0x1c135f=_0x5e4d4c['plugins']['get']('TrackChangesEditing');function _0x4562df(_0x415322,_0x5a7e55){_0x1c135f['descriptionFactory']['registerDescriptionCallback'](_0x26bcca=>{if('formatInline'!=_0x26bcca['type'])return;const {data:_0x501827}=_0x26bcca;return _0x501827&&_0x501827['commandName']===_0x415322?_0x501827['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x4ac4c6,'*Format:*\x20%0',_0x5a7e55)}:{'type':'format','content':At(_0x4ac4c6,'*Remove\x20format:*\x20%0',_0x5a7e55)}:void 0x0;});}_0x4562df('bold',At(_0x4ac4c6,'FORMAT_BOLD')),_0x4562df('italic',At(_0x4ac4c6,'FORMAT_ITALIC')),_0x4562df('underline',At(_0x4ac4c6,'FORMAT_UNDERLINE')),_0x4562df('code',At(_0x4ac4c6,'FORMAT_CODE')),_0x4562df('strikethrough',At(_0x4ac4c6,'FORMAT_STRIKETHROUGH')),_0x4562df('subscript',At(_0x4ac4c6,'FORMAT_SUBSCRIPT')),_0x4562df('superscript',At(_0x4ac4c6,'FORMAT_SUPERSCRIPT'));}}class Ot extends _0x2d10d9{['afterInit'](){const _0x226af9=this['editor'],_0x13a9e8=_0x226af9['locale'];if(!_0x226af9['plugins']['has']('BlockQuoteEditing'))return;const _0xdb2596=_0x226af9['plugins']['get']('TrackChangesEditing'),_0x1519ee=this['editor']['commands']['get']('blockQuote');_0xdb2596['enableCommand']('blockQuote',(_0x2cb7c,_0x2552d2={})=>{const _0x3bc749=this['editor']['model']['document']['selection'],_0x5ef9c3=_0x2552d2&&void 0x0!==_0x2552d2['forceValue']?_0x2552d2['forceValue']:!_0x1519ee['value'];let _0x13f8cf=[];if(_0x5ef9c3){const _0x11c6f1=Array['from'](_0x3bc749['getSelectedBlocks']())['filter'](_0x16ce41=>wt(_0x16ce41)||function(_0x52aa0c,_0x5b9d04){const _0x10fae2=_0x5b9d04['checkChild'](_0x52aa0c['parent'],'blockQuote'),_0x152b4c=_0x5b9d04['checkChild'](['$root','blockQuote'],_0x52aa0c);return _0x10fae2&&_0x152b4c;}(_0x16ce41,this['editor']['model']['schema']));_0x13f8cf=Tt(_0x11c6f1,_0x226af9['model']);}else{const _0x593179=Array['from'](_0x3bc749['getSelectedBlocks']())['filter'](_0x2c8def=>wt(_0x2c8def));_0x13f8cf=Tt(_0x593179,_0x226af9['model']);}_0x226af9['model']['change'](()=>{for(const _0x56cc4a of _0x13f8cf)_0xdb2596['markBlockFormat'](_0x56cc4a,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5ef9c3}]});});}),_0xdb2596['descriptionFactory']['registerDescriptionCallback'](_0x4f08a7=>{const {data:_0x368c01}=_0x4f08a7;if(_0x368c01&&'blockQuote'==_0x368c01['commandName']){const _0x405d44=At(_0x13a9e8,'ELEMENT_BLOCK_QUOTE');return _0x368c01['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x13a9e8,'*Set\x20format:*\x20%0',_0x405d44)}:{'type':'format','content':At(_0x13a9e8,'*Remove\x20format:*\x20%0',_0x405d44)};}});}}function wt(_0x2509b2){return'blockQuote'==_0x2509b2['parent']['name'];}class Bt extends _0x2d10d9{['afterInit'](){const _0x1d5ce0=this['editor'],_0x1d3be3=_0x1d5ce0['locale'],_0x40daaf=_0x1d5ce0['plugins']['get']('TrackChangesEditing');_0x1d5ce0['plugins']['has']('BookmarkEditing')&&(_0x40daaf['enableCommand']('insertBookmark'),_0x40daaf['enableDefaultAttributesIntegration']('updateBookmark'),_0x40daaf['descriptionFactory']['registerDescriptionCallback'](_0x46332c=>{if('insertion'!=_0x46332c['type']&&'deletion'!=_0x46332c['type']&&'attribute'!=_0x46332c['type'])return;const _0x59a1d4=_0x46332c['getContainedElement']();if(null==_0x59a1d4)return;if(!_0x59a1d4['is']('element','bookmark'))return;const _0x3eb0f1=_0x59a1d4['getAttribute']('bookmarkId');if('insertion'==_0x46332c['type'])return{'type':'insertion','content':At(_0x1d3be3,'*Insert:*\x20%0','\x22'+_0x3eb0f1+'\x22\x20'+At(_0x1d3be3,'ELEMENT_BOOKMARK'))};if('deletion'==_0x46332c['type'])return{'type':'deletion','content':At(_0x1d3be3,'*Remove:*\x20%0','\x22'+_0x3eb0f1+'\x22\x20'+At(_0x1d3be3,'ELEMENT_BOOKMARK'))};const {data:_0x3ef961}=_0x46332c;if(!_0x3ef961||'bookmarkId'!=_0x3ef961['key'])return;return{'type':'format','content':At(_0x1d3be3,'*Set\x20bookmark:*\x20%0','\x22'+_0x3ef961['newValue']+'\x22')};}));}}class Ft extends _0x2d10d9{['afterInit'](){const _0x2edfa8=this['editor'];_0x2edfa8['plugins']['has']('CaseChange')&&(_0x2edfa8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2edfa8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2edfa8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class Dt extends _0x2d10d9{['afterInit'](){const _0x4ecc99=this['editor'];_0x4ecc99['commands']['get']('ckbox')&&_0x4ecc99['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class vt extends _0x2d10d9{['afterInit'](){const _0x365eaf=this['editor'];if(!_0x365eaf['plugins']['has']('CodeBlock'))return;const _0x5385d2=_0x365eaf['plugins']['get']('TrackChangesEditing'),_0x1a9e41=_0x365eaf['locale'],_0x11df21=_0x365eaf['config']['get']('codeBlock')['languages'],_0x3e563d=_0x365eaf['commands']['get']('codeBlock');_0x5385d2['enableCommand']('indentCodeBlock'),_0x5385d2['enableCommand']('outdentCodeBlock'),_0x5385d2['enableCommand']('codeBlock',(_0x3119a4,_0x57c23b={})=>{const _0x2c0c0f=_0x365eaf['model'],_0x2eff6f=_0x365eaf['model']['document']['selection'],_0x33039a=_0x57c23b&&void 0x0!==_0x57c23b['forceValue']?_0x57c23b['forceValue']:!_0x3e563d['value'];let _0x4cb924;_0x57c23b['language']||(_0x57c23b['language']=_0x11df21[0x0]['language']),_0x4cb924=_0x33039a?Array['from'](_0x2eff6f['getSelectedBlocks']())['filter'](_0x56d0ba=>xt(_0x56d0ba)||function(_0x50adaf,_0x1d2b08){if(_0x50adaf['is']('rootElement')||_0x1d2b08['isLimit'](_0x50adaf))return!0x1;return _0x1d2b08['checkChild'](_0x50adaf['parent'],'codeBlock');}(_0x56d0ba,_0x2c0c0f['schema'])):Array['from'](_0x2eff6f['getSelectedBlocks']())['filter'](_0x22d4b8=>xt(_0x22d4b8));const _0x2176b8=Tt(_0x4cb924,_0x2c0c0f);_0x2c0c0f['change'](()=>{for(const _0x28174a of _0x2176b8)_0x5385d2['markBlockFormat'](_0x28174a,{'commandName':'codeBlock','commandParams':[{..._0x57c23b,'forceValue':_0x33039a}],'formatGroupId':'blockName'});});}),(_0x5385d2['descriptionFactory']['registerElementLabel']('codeBlock',_0x4f1d8f=>At(_0x1a9e41,'ELEMENT_CODE_BLOCK',_0x4f1d8f)),_0x5385d2['descriptionFactory']['registerDescriptionCallback'](_0x59bb9a=>{if('formatBlock'!=_0x59bb9a['type'])return;const _0xa7ebf2=_0x1a9e41['t'],{data:_0x58087b}=_0x59bb9a;if(!_0x58087b||'codeBlock'!=_0x58087b['commandName'])return;const _0x14841a=_0x58087b['commandParams'][0x0]['language'],_0x4c96fb=_0xa7ebf2(_0x11df21['find'](_0x33da88=>_0x33da88['language']===_0x14841a)['label'])['toLowerCase']();return _0x58087b['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x1a9e41,'*Set\x20format:*\x20%0',At(_0x1a9e41,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4c96fb+')')}:{'type':'format','content':At(_0x1a9e41,'*Remove\x20format:*\x20%0',At(_0x1a9e41,'ELEMENT_CODE_BLOCK',0x1))};}));}}function xt(_0x2ba747){return'codeBlock'==_0x2ba747['name'];}class Pt extends _0x2d10d9{['afterInit'](){const _0x561a9=this['editor'];if(!_0x561a9['plugins']['has']('CommentsEditing'))return;_0x561a9['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Ut extends _0x2d10d9{static get['requires'](){return[at];}['init'](){const _0x1bed77=this['editor'],_0x1c86c5=_0x1bed77['plugins']['get']('TrackChangesEditing');_0x1c86c5['enableCommand']('delete');const _0x235562=_0x1bed77['commands']['get']('deleteForward');_0x1c86c5['enableCommand']('deleteForward',(_0x426211,_0x3a4d24={})=>{const _0x10a505=_0x1bed77['model']['createSelection'](_0x1bed77['model']['document']['selection']);_0x10a505['isCollapsed']&&_0x1bed77['model']['modifySelection'](_0x10a505,{'direction':'forward','unit':_0x3a4d24['unit']});const _0x38b7bb=_0x10a505['getFirstRange'](),_0x3daabd=_0x4f142a['fromRange'](_0x38b7bb);let _0x373f89;_0x426211(_0x3a4d24),_0x373f89='$graveyard'==_0x3daabd['root']['rootName']?_0x1bed77['model']['createRange'](_0x38b7bb['start']):_0x1bed77['model']['createRange'](_0x3daabd['start'],_0x3daabd['end']),_0x3daabd['detach'](),_0x1bed77['model']['enqueueChange'](_0x235562['buffer']['batch'],_0x510268=>{_0x235562['buffer']['lock'](),_0x510268['setSelection'](_0x510268['createRange'](_0x373f89['end'])),_0x235562['buffer']['unlock']();});});}}class Gt extends _0x2d10d9{['afterInit'](){const _0x2bc521=this['editor'];if(!_0x2bc521['plugins']['has']('ListEditing'))return;const _0x526220=_0x2bc521['locale'],_0x2ca9cc=_0x2bc521['plugins']['get']('TrackChangesEditing'),_0xa8fb69=_0x2bc521['plugins']['has']('TodoListEditing'),_0x4a9796=!!_0x2bc521['config']['get']('list.multiBlock');function _0x83c415(_0x1a1f24){return{'type':'format','content':''+At(_0x526220,'*Set\x20format:*\x20%0',_0x1a1f24)};}function _0x1dea08(_0x1c6f5a){return{'type':'format','content':''+At(_0x526220,'*Remove\x20format:*\x20%0',_0x1c6f5a)};}_0x2ca9cc['enableDefaultAttributesIntegration']('numberedList'),_0x2ca9cc['enableDefaultAttributesIntegration']('bulletedList'),_0x2ca9cc['enableDefaultAttributesIntegration']('customNumberedList'),_0x2ca9cc['enableDefaultAttributesIntegration']('customBulletedList'),_0x2ca9cc['enableDefaultAttributesIntegration']('indentList'),_0x2ca9cc['enableDefaultAttributesIntegration']('outdentList'),_0x2ca9cc['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2ca9cc['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4a9796&&(_0x2ca9cc['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2ca9cc['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xa8fb69&&(_0x2ca9cc['enableDefaultAttributesIntegration']('todoList'),_0x2ca9cc['enableDefaultAttributesIntegration']('checkTodoList'),_0x2ca9cc['descriptionFactory']['registerDescriptionCallback'](_0x110825=>{const {data:_0xba70b0}=_0x110825;if(_0xba70b0&&'todoListChecked'==_0xba70b0['key'])return{'type':'format','content':_0xba70b0['newValue']?At(_0x526220,'*Check\x20item*'):At(_0x526220,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x692de6=>{if(_0x692de6['batch']['isUndo'])return!0x1;let _0x57b728=!0x1;const _0x97aaa6=_0x2ca9cc['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4100ca=>'todoListChecked'===_0x2ca9cc['_getAttributeKey'](_0x4100ca));for(const _0x5bfa46 of _0x97aaa6){'todo'!=_0x5bfa46['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2ca9cc['_findSuggestions'](_0x5bfa46['getFirstRange'](),'attribute')['find'](_0x52a7b0=>'listType'===_0x2ca9cc['_getAttributeKey'](_0x52a7b0['suggestion']))||(_0x692de6['removeMarker'](_0x5bfa46['getFirstMarker']()),_0x57b728=!0x0));}return _0x57b728;})),_0x2ca9cc['descriptionFactory']['registerAttributeLabel']('listIndent',At(_0x526220,'FORMAT_INDENT'));const _0x13fe28={'type':'format','content':''};_0x2ca9cc['descriptionFactory']['registerDescriptionCallback'](_0x3560cd=>{const {data:_0x1399c8}=_0x3560cd;if(!_0x1399c8||'listType'!=_0x1399c8['key'])return;let _0x2b3249=_0x3560cd['head'];for(;_0x2b3249;){if(_0x2b3249['data']&&(('listStyle'==_0x2b3249['data']['key']||'listMarkerStyle'==_0x2b3249['data']['key'])&&(_0x2b3249['data']['newValue']&&'default'!=_0x2b3249['data']['newValue']||'default'!=_0x2b3249['data']['oldValue']&&!_0x1399c8['newValue'])||!_0x4a9796&&_0x2b3249['data']['key']==Ke))return _0x13fe28;_0x2b3249=_0x2b3249['next'];}if(null==_0x1399c8['newValue'])switch(_0x1399c8['oldValue']){case'bulleted':return _0x1dea08(At(_0x526220,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1dea08(At(_0x526220,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1dea08(At(_0x526220,'ELEMENT_TODO_LIST'));}switch(_0x1399c8['newValue']){case'bulleted':return _0x83c415(At(_0x526220,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x83c415(At(_0x526220,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x83c415(At(_0x526220,'ELEMENT_TODO_LIST'));}}),_0x2ca9cc['descriptionFactory']['registerDescriptionCallback'](_0x4a978d=>{const {data:_0x42b7f6}=_0x4a978d;if(_0x42b7f6&&'listIndent'==_0x42b7f6['key'])return null==_0x42b7f6['newValue']||null==_0x42b7f6['oldValue']&&0x0==_0x42b7f6['newValue']?_0x13fe28:void 0x0;}),_0x2ca9cc['descriptionFactory']['registerDescriptionCallback'](_0xe573c0=>{if('attribute'!=_0xe573c0['type'])return;const {data:_0x5b2fa2}=_0xe573c0;if(!_0x5b2fa2||'listItemId'!=_0x5b2fa2['key'])return;const _0x45529e=Ht(_0xe573c0);return'newValue'==_0x45529e?{'type':'format','content':At(_0x526220,'*Merge:*\x20list\x20item')}:'oldValue'==_0x45529e?{'type':'format','content':At(_0x526220,'*Split:*\x20list\x20item')}:_0x13fe28;}),_0x2bc521['model']['document']['registerPostFixer'](_0x186597=>this['listItemIdFixer'](_0x186597)),_0x2bc521['model']['document']['registerPostFixer'](_0x5a2402=>this['noTrackChangesFixer'](_0x5a2402)),_0x2bc521['model']['document']['on']('change:data',(_0x172743,_0x1954e5)=>{if(_0x1954e5['isUndo']||!_0x1954e5['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xaebbee){if(_0xaebbee['batch']['isUndo']||!_0xaebbee['batch']['isLocal'])return!0x1;let _0x537b94=!0x1;const _0x17145d=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4df654=>_0x4df654['data']&&'listItemId'==_0x4df654['data']['key'])['filter'](_0x570a52=>_0x570a52['data']['newValue']&&_0x570a52['data']['oldValue']);for(const _0x2e5a6e of _0x17145d)Ht(_0x2e5a6e)||(_0xaebbee['removeMarker'](_0x2e5a6e['getFirstMarker']()),_0x537b94=!0x0);return _0x537b94;}['noTrackChangesFixer'](_0x3a099b){if(_0x3a099b['batch']['isUndo']||!_0x3a099b['batch']['isLocal'])return!0x1;const _0x2d3eea=this['editor']['model']['document']['differ'],_0x32a222=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x32a222['trackChangesCommand']['value'])return!0x1;let _0x2db736=!0x1;const _0x5529c7=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle']),_0x52edc4=_0x2d3eea['getChanges']()['filter'](_0x5d2dde=>'attribute'==_0x5d2dde['type'])['filter'](_0xaec93d=>_0x5529c7['has'](_0xaec93d['attributeKey']));if(0x0==_0x52edc4['length'])return _0x2db736;const _0x1d28c7=new Set(_0x2d3eea['getMarkersToAdd']()['filter'](_0x83f474=>{if(!_0x83f474['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x2faeff=_0x329859(_0x83f474['name'])['subType']['split']('|')[0x0];return _0x5529c7['has'](_0x2faeff);})['map'](_0x112b1d=>_0x329859(_0x112b1d['name'])['id']));for(const _0x312a02 of _0x52edc4){const _0xa05db8=_0x32a222['_findSuggestions'](_0x312a02['range'],'attribute')['filter'](_0x1dcfc4=>{if(_0x1dcfc4['meta']['isNextTo'])return!0x1;if(_0x1d28c7['has'](_0x1dcfc4['suggestion']['id']))return!0x1;const _0x281413=_0x32a222['_getAttributeKey'](_0x1dcfc4['suggestion']);return _0x5529c7['has'](_0x281413);})['map'](_0x2e719b=>_0x2e719b['suggestion']);if(_0xa05db8['length']){for(const _0x10dfba of _0xa05db8)_0x3a099b['removeMarker'](_0x10dfba['getFirstMarker']());_0x2db736=!0x0;}}return _0x2db736;}['assureChains'](){const _0x3a8e2c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5351a2=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xea2db5;const _0x36f2c9=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x57e88e=>{if(_0x57e88e['data']['oldRange']||!_0x57e88e['data']['newRange'])return null;if(!_0x57e88e['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x57d05a}=_0x329859(_0x57e88e['name']);if(!_0x3a8e2c['hasSuggestion'](_0x57d05a))return null;const _0x1d4def=_0x3a8e2c['getSuggestion'](_0x57d05a);return _0x5351a2['includes'](_0x1d4def['data']['key']);})['map'](_0x1b0f1e=>{const {id:_0x6ed457}=_0x329859(_0x1b0f1e['name']),_0x41eee0=_0x3a8e2c['getSuggestion'](_0x6ed457);return _0xea2db5=_0x41eee0['attributes']['groupId'],_0x41eee0['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x36f2c9['size'])return;const _0x558a69=_0x3a8e2c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x44e94a=>'attribute'==_0x44e94a['type']&&_0x44e94a['data']&&_0x5351a2['includes'](_0x44e94a['data']['key'])&&_0x44e94a['attributes']['groupId']!=_0xea2db5)['map'](_0x23704a=>({'listItem':_0x23704a['getFirstRange']()['start']['nodeAfter'],'groupId':_0x23704a['attributes']['groupId']})),_0x50927e=new Set();for(const {groupId:_0x2a2445,listItem:_0xbd7c7f}of _0x558a69)_0x36f2c9['has'](_0xbd7c7f)&&_0x50927e['add'](_0x2a2445);for(const _0x2f413e of _0x3a8e2c['getSuggestions']())_0x50927e['has'](_0x2f413e['attributes']['groupId'])&&_0x2f413e['setAttribute']('groupId',_0xea2db5);}['_supportLegacySuggestions'](){const _0x2a2fe2=this['editor'],_0x44afd6=_0x2a2fe2['locale'],_0x369eee=_0x2a2fe2['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x369eee['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x31d090,_0x387ae8){const _0x3be1e8=[];for(let _0x562ba6 of _0x31d090)_0x562ba6['start']['nodeAfter']===_0x562ba6['end']['parent']&&(_0x562ba6=_0x2a2fe2['model']['createRange'](_0x2a2fe2['model']['createPositionAt'](_0x562ba6['start']['nodeAfter'],0x0))),_0x3be1e8['push'](_0x562ba6);_0x2a2fe2['model']['change'](_0x5b6e91=>{const _0x22e47e=_0x2a2fe2['model']['document']['selection'],_0x4e968d=Array['from'](_0x22e47e['getRanges']())['map'](_0x586bc7=>_0x4f142a['fromRange'](_0x586bc7));_0x5b6e91['setSelection'](_0x3be1e8),_0x2a2fe2['commands']['get'](_0x387ae8['commandName'])['refresh'](),_0x387ae8['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2a2fe2['execute'](_0x387ae8['commandName'],..._0x387ae8['commandParams']),_0x5b6e91['setSelection'](_0x4e968d);for(const _0xd76e72 of _0x4e968d)_0xd76e72['detach']();});}),_0x369eee['descriptionFactory']['registerElementLabel'](function(_0x418327){const _0x1bfe8c=!_0x2a2fe2['model']['schema']['isObject'](_0x418327),_0x29c9fb=_0x418327['previousSibling'],_0x2285d7=_0x418327['nextSibling'],_0x3982a0=_0x418327['getAttribute']('listItemId'),_0x3d42b2=!_0x29c9fb||_0x29c9fb['getAttribute']('listItemId')!==_0x3982a0,_0x35deea=!_0x2285d7||_0x2285d7['getAttribute']('listItemId')!==_0x3982a0;return _0x1bfe8c&&Boolean(_0x3982a0)&&_0x3d42b2&&_0x35deea;},_0x630f38=>At(_0x44afd6,'ELEMENT_LIST_ITEM',_0x630f38));}['_registerLegacyDescription'](){const _0x1971ff=this['editor'],_0x331344=_0x1971ff['locale'];function _0x49de64(_0x15ed3e){const _0x5a1061=_0x1971ff['commands']['get']('bulletedList')['value'],_0x16207d=_0x1971ff['commands']['get']('numberedList')['value'];return'numberedList'===_0x15ed3e?_0x5a1061:_0x16207d;}_0x1971ff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3e39e9){if('formatBlock'!=_0x3e39e9['type'])return;const {data:_0x2a5844}=_0x3e39e9;if(!_0x2a5844)return;let _0x1bf100,_0x2a5773,_0x54deeb,_0x27c69e;switch(_0x2a5844['commandName']){case'bulletedList':_0x54deeb=_0x2a5844['commandParams'][0x0]['forceValue'],_0x27c69e=_0x49de64(_0x2a5844['commandName']),_0x1bf100=_0x54deeb?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x27c69e&&_0x1971ff['config']['get']('list.multiBlock')||(_0x1bf100='*Change\x20to:*\x20%0'),_0x2a5773={'type':'format','content':At(_0x331344,_0x1bf100,At(_0x331344,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x54deeb=_0x2a5844['commandParams'][0x0]['forceValue'],_0x27c69e=_0x49de64(_0x2a5844['commandName']),_0x1bf100=_0x54deeb?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x27c69e&&_0x1971ff['config']['get']('list.multiBlock')||(_0x1bf100='*Change\x20to:*\x20%0'),_0x2a5773={'type':'format','content':At(_0x331344,_0x1bf100,At(_0x331344,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1bf100='*Indent:*\x20%0',_0x2a5773={'type':'format','content':At(_0x331344,_0x1bf100,At(_0x331344,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1bf100=function(_0x3e33ec){const _0x1a5456=_0x3e33ec['getFirstRange']();let _0x24b11f=_0x1a5456['start']['nodeAfter'];for(;_0x24b11f&&_0x1a5456['containsItem'](_0x24b11f);){if(_0x24b11f['getAttribute']('listIndent')>0x0)return!0x1;_0x24b11f=_0x24b11f['nextSibling'];}return!0x0;}(_0x3e39e9)?At(_0x331344,'*Format:*\x20remove\x20from\x20%0',At(_0x331344,function(_0x5e9931){return'ELEMENT_'+_0x5e9931['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3e39e9))):At(_0x331344,'*Outdent:*\x20%0',At(_0x331344,'ELEMENT_LIST_ITEM')),_0x2a5773={'type':'format','content':_0x1bf100};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2a5844['multipleBlocks']&&(_0x1bf100='*Merge:*\x20%0',_0x2a5773={'type':'deletion','content':At(_0x331344,_0x1bf100,At(_0x331344,'ELEMENT_LIST_ITEM'))});}return _0x2a5773;});}}function Ht(_0x30f6cd){let _0x84b059=_0x30f6cd['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x84b059;){const _0x4fb3f2=_0x84b059['getAttribute']('listItemId');if(!_0x4fb3f2)return!0x1;if(_0x4fb3f2==_0x30f6cd['data']['newValue'])return'newValue';if(_0x4fb3f2==_0x30f6cd['data']['oldValue'])return'oldValue';_0x84b059=_0x84b059['previousSibling'];}return!0x1;}class $t extends _0x2d10d9{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5b4be8=this['editor']['config']['get']('list.properties'),_0x1383dc=this['editor']['plugins']['get']('TrackChangesEditing');_0x5b4be8['styles']&&_0x1383dc['enableDefaultAttributesIntegration']('listStyle'),_0x5b4be8['reversed']&&_0x1383dc['enableDefaultAttributesIntegration']('listReversed'),_0x5b4be8['startIndex']&&_0x1383dc['enableDefaultAttributesIntegration']('listStart');const _0x5b83d3={'type':'format','content':''};_0x1383dc['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x487b7f=this['editor']['locale'];_0x1383dc['descriptionFactory']['registerAttributeLabel']('listReversed',At(_0x487b7f,'FORMAT_LIST_REVERSED')),_0x1383dc['descriptionFactory']['registerDescriptionCallback'](_0x594637=>{const {data:_0x273265}=_0x594637;if(_0x273265&&'listReversed'==_0x273265['key'])return null==_0x273265['newValue']||0x0==_0x273265['newValue']&&null==_0x273265['oldValue']?_0x5b83d3:void 0x0;}),_0x1383dc['descriptionFactory']['registerAttributeLabel']('listStart',At(_0x487b7f,'FORMAT_LIST_START')),_0x1383dc['descriptionFactory']['registerDescriptionCallback'](_0x5c29f7=>{const {data:_0x3c1743}=_0x5c29f7;if(_0x3c1743&&'listStart'==_0x3c1743['key'])return null==_0x3c1743['newValue']||0x1==_0x3c1743['newValue']&&null==_0x3c1743['oldValue']?_0x5b83d3:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xf666ac=>{if(_0xf666ac['batch']['isUndo'])return!0x1;let _0x174ff8=!0x1;const _0xe9ea8b=_0x1383dc['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x37a63c=>{const _0x284ea0=_0x1383dc['_getAttributeKey'](_0x37a63c);return'listStart'==_0x284ea0||'listReversed'==_0x284ea0;});for(const _0x24eab4 of _0xe9ea8b){const _0x505a4c=_0x24eab4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x505a4c||'customNumbered'==_0x505a4c)continue;_0x1383dc['_findSuggestions'](_0x24eab4['getFirstRange'](),'attribute')['find'](_0x504c85=>'listType'==_0x1383dc['_getAttributeKey'](_0x504c85['suggestion']))||(_0xf666ac['removeMarker'](_0x24eab4['getFirstMarker']()),_0x174ff8=!0x0);}return _0x174ff8;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x490575){const _0x219e3a=this['editor']['locale'],{data:_0x37e8bc}=_0x490575,_0x24a696={'type':'format','content':''};if(!_0x37e8bc||'listStyle'!=_0x37e8bc['key'])return;if(!_0x37e8bc['oldValue'])return'default'==_0x37e8bc['newValue']?_0x24a696:{'type':'format','content':''+At(_0x219e3a,'*Set\x20format:*\x20%0',At(_0x219e3a,this['_getTranslationKeyForListStyle'](_0x37e8bc['newValue'])))};if(!_0x37e8bc['newValue']){if('default'==_0x37e8bc['oldValue'])return _0x24a696;let _0x36fb3c=_0x490575['head'];for(;_0x36fb3c;){if(_0x36fb3c['data']&&'listType'==_0x36fb3c['data']['key']&&_0x36fb3c['data']['newValue'])return _0x24a696;_0x36fb3c=_0x36fb3c['next'];}return{'type':'format','content':''+At(_0x219e3a,'*Remove\x20format:*\x20%0',At(_0x219e3a,this['_getTranslationKeyForListStyle'](_0x37e8bc['oldValue'])))};}if('default'!=_0x37e8bc['newValue'])return{'type':'format','content':''+At(_0x219e3a,'*Set\x20format:*\x20%0',At(_0x219e3a,this['_getTranslationKeyForListStyle'](_0x37e8bc['newValue'])))};let _0x5de354=_0x490575['head'];for(;_0x5de354;){if(_0x5de354['data']&&'listType'==_0x5de354['data']['key']&&_0x5de354['data']['newValue']&&_0x5de354['data']['oldValue'])return _0x24a696;_0x5de354=_0x5de354['next'];}return{'type':'format','content':At(_0x219e3a,'*Set\x20format:*\x20%0',At(_0x219e3a,'ELEMENT_'+_0x490575['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x5b7410=this['editor'],_0x47c120=_0x5b7410['locale'];_0x5b7410['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a8f1d=>{if('formatBlock'!=_0x3a8f1d['type'])return;const {data:_0x4a27b0}=_0x3a8f1d;if(!_0x4a27b0)return;let _0x30d26a,_0x1e330f;switch(_0x4a27b0['commandName']){case'listStyle':_0x30d26a='*Change\x20to:*\x20%0',_0x1e330f={'type':'format','content':At(_0x47c120,_0x30d26a,At(_0x47c120,this['_getTranslationKeyForListStyle'](_0x4a27b0['commandParams'][0x0]['type'])))};break;case'listReversed':_0x30d26a=_0x4a27b0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1e330f={'type':'format','content':At(_0x47c120,_0x30d26a)};break;case'listStart':_0x30d26a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1e330f={'type':'format','content':At(_0x47c120,_0x30d26a,_0x4a27b0['commandParams'][0x0]['startIndex'])};}return _0x1e330f;});}['_getTranslationKeyForListStyle'](_0x32cd17){return'ELEMENT_'+function(_0x147510){if(Wt['includes'](_0x147510))return'bulleted';if(Vt['includes'](_0x147510))return'numbered';return null;}(_0x32cd17)['toUpperCase']()+'_LIST_'+_0x32cd17['toUpperCase']()['replace'](/-/g,'_');}}const Wt=['disc','circle','square'],Vt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class jt extends _0x2d10d9{['afterInit'](){const _0x3df208=this['editor'];_0x3df208['commands']['get']('emoji')&&_0x3df208['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class zt extends _0x2d10d9{static get['requires'](){return[lt];}['init'](){const _0x4753c2=this['editor'],_0x260395=_0x4753c2['plugins']['get']('TrackChangesEditing'),_0x1c817a=_0x4753c2['commands']['get']('enter');_0x260395['enableCommand']('enter',()=>{_0x4753c2['model']['change'](_0x11aaac=>{const _0x42765f=_0x4753c2['model']['document']['selection'],_0x3be4bb=_0x42765f['getFirstPosition'](),_0x471f80=_0x4f142a['fromRange'](_0x42765f['getFirstRange']());if(_0x1c817a['enterBlock'](_0x11aaac)){const _0x1fb465=_0x4753c2['model']['createPositionAt'](_0x3be4bb['parent']['nextSibling'],0x0),_0x1f78ae=_0x11aaac['createRange'](_0x3be4bb,_0x1fb465);_0x260395['markInsertion'](_0x1f78ae);}else _0x11aaac['setSelection'](_0x11aaac['createRange'](_0x471f80['end']));_0x471f80['detach'](),_0x1c817a['fire']('afterExecute',{'writer':_0x11aaac});});});}}class Kt extends _0x2d10d9{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x20ad4b=this['editor']['plugins']['get']('TrackChangesEditing');_0x20ad4b['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x20ad4b['enableCommand']('findNext'),_0x20ad4b['enableCommand']('findPrevious'),_0x20ad4b['enableCommand']('replace'),_0x20ad4b['enableCommand']('replaceAll');}['handleFindCommand'](_0x2017fe,_0x2d2330,_0x81808d={}){const _0x1cb9e9=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2017fe(_0x5cf6ca=>{let _0x10009c=('string'==typeof _0x2d2330?_0x1cb9e9['findByTextCallback'](_0x2d2330,_0x81808d):_0x2d2330)(_0x5cf6ca);Array['isArray'](_0x10009c)&&(_0x10009c={'results':_0x10009c,'searchText':'string'==typeof _0x2d2330?_0x2d2330:''});const _0x1cf780=_0x10009c['results']['filter'](_0x119ca0=>!0x1===this['_isInDeletionRange'](_0x119ca0,_0x5cf6ca['item']));return{..._0x10009c,'results':_0x1cf780};},_0x81808d);}['_isInDeletionRange'](_0x3ff9ff,_0x1e5e6e){const _0x56371f=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1e5e6e,_0x3ff9ff['start']),this['editor']['model']['createPositionAt'](_0x1e5e6e,_0x3ff9ff['end']));for(const _0x2cdfab of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x56371f['getIntersection'](_0x2cdfab['getRange']()))return!0x0;return!0x1;}}const Xt=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Yt extends _0x2d10d9{['afterInit'](){const _0x2bb060=this['editor']['locale'],_0x31e2ae=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x20e209,commandName:_0xc90e91}of Xt)this['editor']['plugins']['has'](_0x20e209)&&_0x31e2ae['enableDefaultAttributesIntegration'](_0xc90e91);_0x31e2ae['descriptionFactory']['registerAttributeLabel']('fontSize',At(_0x2bb060,'FORMAT_FONT_SIZE')),_0x31e2ae['descriptionFactory']['registerAttributeLabel']('fontFamily',At(_0x2bb060,'FORMAT_FONT_FAMILY')),_0x31e2ae['descriptionFactory']['registerAttributeLabel']('fontColor',At(_0x2bb060,'FORMAT_FONT_COLOR')),_0x31e2ae['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',At(_0x2bb060,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4936d6=this['editor'],_0x3ffa6e=_0x4936d6['locale'];_0x4936d6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39e6f8=>{const _0x1aa65e=_0x3ffa6e['t'];if('formatInline'!=_0x39e6f8['type'])return;const {data:_0x1369e5}=_0x39e6f8;if(null!=_0x1369e5){if('fontSize'==_0x1369e5['commandName']){const _0x477168=_0x1369e5['commandParams'][0x0]['value'];if(_0x477168){const _0x5d3dea=_0x1aa65e(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x25ac54=>_0x25ac54['model']==_0x477168)['title'])['toLowerCase']();return{'type':'format','content':At(_0x3ffa6e,'*Set\x20font\x20size:*\x20%0',_0x5d3dea)};}return{'type':'format','content':At(_0x3ffa6e,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1369e5['commandName']){const _0x1209e9=_0x1369e5['commandParams'][0x0]['value'];return _0x1209e9?{'type':'format','content':At(_0x3ffa6e,'*Set\x20font\x20family:*\x20%0',_0x1209e9)}:{'type':'format','content':At(_0x3ffa6e,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1369e5['commandName']){const _0x2d9d49=_0x1369e5['commandParams'][0x0]['value'];if(_0x2d9d49){const _0x2dc4c2=_0x4494a0(this['editor']['config']['get']('fontColor.colors'))['find'](_0xc235b=>_0xc235b['model']==_0x2d9d49);let _0xcb234f=_0x2d9d49,_0x3a7023='';return _0x2dc4c2&&(_0xcb234f=_0x2dc4c2['label'],_0x3a7023=_0x1aa65e(_0xcb234f)['toLowerCase']()),{'type':'format','content':At(_0x3ffa6e,'*Set\x20font\x20color:*\x20%0',_0x3a7023)['trim'](),'color':{'value':_0x2d9d49,'title':_0x3a7023||_0xcb234f}};}return{'type':'format','content':At(_0x3ffa6e,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1369e5['commandName']){const _0x2cc34c=_0x1369e5['commandParams'][0x0]['value'];if(_0x2cc34c){const _0x49ce4a=_0x4494a0(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x58090f=>_0x58090f['model']==_0x2cc34c);let _0x35a069=_0x2cc34c,_0x3cbfd8='';return _0x49ce4a&&(_0x35a069=_0x49ce4a['label'],_0x3cbfd8=_0x1aa65e(_0x35a069)['toLowerCase']()),{'type':'format','content':At(_0x3ffa6e,'*Set\x20font\x20background\x20color:*\x20%0',_0x3cbfd8)['trim'](),'color':{'value':_0x2cc34c,'title':_0x3cbfd8||_0x35a069}};}return{'type':'format','content':At(_0x3ffa6e,'*Reset\x20font\x20background\x20color*')};}}});}}class qt extends _0x2d10d9{['afterInit'](){const {plugins:_0x31b645}=this['editor'];_0x31b645['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x31b645['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x161bc8,plugins:_0x1f3ba5,commands:_0x3267a8}=this['editor'],_0x458573=_0x1f3ba5['get']('TrackChangesEditing');_0x3267a8['get']('footnotesStyle')&&_0x458573['enableDefaultAttributesIntegration']('footnotesStyle'),_0x3267a8['get']('footnotesStart')&&_0x458573['enableDefaultAttributesIntegration']('footnotesStart'),_0x458573['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',At(_0x161bc8,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x458573['descriptionFactory']['registerAttributeLabel']('footnotesListStart',At(_0x161bc8,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x2e7895=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x247caf,commands:_0x5edada}=this['editor'];_0x5edada['get']('insertFootnote')&&_0x2e7895['enableCommand']('insertFootnote'),_0x2e7895['descriptionFactory']['registerElementLabel']('footnoteRef',_0x20fcc5=>At(_0x247caf,'ELEMENT_FOOTNOTE_REF',_0x20fcc5)),_0x2e7895['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x5d9324=>At(_0x247caf,'ELEMENT_FOOTNOTE_DEFINITION',_0x5d9324)),_0x2e7895['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x568b58=>At(_0x247caf,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x568b58));}}class Qt extends _0x2d10d9{['afterInit'](){const _0x22dddd=this['editor'],_0xc27091=_0x22dddd['plugins']['get']('TrackChangesEditing'),_0x1d3ed4=_0x22dddd['commands']['get']('copyFormat'),_0x2d6fab=_0x22dddd['commands']['get']('pasteFormat');_0x1d3ed4&&_0x2d6fab&&(_0xc27091['enableDefaultAttributesIntegration']('pasteFormat'),_0xc27091['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5e2076=this['editor'],_0x2e578a=_0x5e2076['locale'];_0x5e2076['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x538801=>{if('formatBlock'!=_0x538801['type']&&'formatInline'!=_0x538801['type'])return;const {data:_0x42b9d2}=_0x538801;if(_0x42b9d2&&'pasteFormat'===_0x42b9d2['commandName']){const _0xfd5f93=[],_0x36e83e=_0x42b9d2['commandParams'][0x0];for(const [_0x429ead,_0x39ce27]of Object['entries'](_0x36e83e))_0xfd5f93['push'](Zt(_0x5e2076,_0x429ead,_0x39ce27));return _0xfd5f93['length']?{'type':'format','content':At(_0x2e578a,'*Set\x20format\x20to:*\x20%0',_0xfd5f93['join'](',\x20'))}:{'type':'format','content':At(_0x2e578a,'*Remove\x20all\x20formatting*')};}});}}function Zt(_0x297368,_0x253f18,_0x3d0195){const _0x2a536b=_0x297368['locale']['t'],_0x4c064f=_0x253f18['split'](/(?=[A-Z])/)['join']('\x20'),_0x12015a=_0x2a536b(_0x4c064f['charAt'](0x0)['toUpperCase']()+_0x4c064f['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3d0195)return _0x12015a;if('fontColor'===_0x253f18||'fontBackgroundColor'===_0x253f18){const _0x4d16e9=_0x4494a0(_0x297368['config']['get']('fontColor.colors'))['find'](_0x4af990=>_0x4af990['model']==_0x3d0195);return _0x12015a+'\x20('+(_0x4d16e9?_0x2a536b(_0x4d16e9['label'])['toLowerCase']():_0x3d0195)+')';}if('fontSize'===_0x253f18&&isNaN(parseFloat(_0x3d0195))){const _0x2cbc99=_0x297368['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x297368['config']['get']('fontSize.options'))['find'](_0x2a94ac=>_0x2a94ac['model']==_0x3d0195);return _0x12015a+'\x20('+(_0x2cbc99?_0x2a536b(_0x2cbc99['title'])['toLowerCase']():_0x3d0195)+')';}return _0x12015a+'\x20('+_0x3d0195+')';}class Jt extends _0x2d10d9{['_headingOptions'];['afterInit'](){const _0x175b4c=this['editor'];if(!_0x175b4c['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x175b4c['config']['get']('heading.options');const _0x13a040=_0x175b4c['locale'],_0x4d3b25=_0x175b4c['plugins']['get']('TrackChangesEditing');_0x4d3b25['enableDefaultAttributesIntegration']('heading');for(const _0x915615 of this['_headingOptions'])'paragraph'!=_0x915615['model']&&_0x4d3b25['descriptionFactory']['registerElementLabel'](_0x915615['model'],_0x3ebdbe=>{const _0x5c47eb=this['_getHeadingLevel'](_0x915615['model']);return null!==_0x5c47eb?_0x16f1f8(_0x3ebdbe,_0x5c47eb):_0x180895(_0x3ebdbe,_0x915615['title']);});function _0x16f1f8(_0x19892d,_0x25d5c9){return At(_0x13a040,'ELEMENT_HEADING',[_0x19892d,_0x25d5c9]);}function _0x180895(_0x2ae603,_0x292ced){return At(_0x13a040,'ELEMENT_HEADING_CUSTOM',[_0x2ae603,_0x292ced]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27d528=this['editor'],_0x2b1e13=_0x27d528['locale'];function _0x1c523b(_0x14719f,_0x5043a4){return At(_0x2b1e13,'ELEMENT_HEADING_CUSTOM',[_0x14719f,_0x5043a4]);}_0x27d528['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d0669=>{if('formatBlock'!=_0x5d0669['type'])return;const {data:_0x45a836}=_0x5d0669;if(_0x45a836&&'heading'==_0x45a836['commandName']){const _0x31b91d=_0x45a836['commandParams'][0x0]['value'],_0x166b02=this['_getHeadingLevel'](_0x31b91d);if(null!==_0x166b02)return{'type':'format','content':At(_0x2b1e13,'*Change\x20to:*\x20%0',(_0x2828e5=0x1,_0x121490=_0x166b02,At(_0x2b1e13,'ELEMENT_HEADING',[_0x2828e5,_0x121490])))};const _0x4709f1=this['_headingOptions']['find'](_0x382f58=>_0x382f58['model']===_0x31b91d)['title'];return{'type':'format','content':At(_0x2b1e13,'*Change\x20to:*\x20%0',_0x1c523b(0x1,_0x4709f1))};}var _0x2828e5,_0x121490;});}['_getHeadingLevel'](_0x1b0548){const _0x42c6eb=_0x1b0548['match'](/^heading(\d+)/);if(_0x42c6eb)return _0x42c6eb[0x1];const _0x776e85=this['_headingOptions']?.['find'](_0x4ef1ae=>_0x4ef1ae['model']==_0x1b0548);if(_0x776e85&&_0x776e85['view']){const _0x2631c0=_0x776e85['view'],_0x155ed9=(_0x2631c0['name']??_0x2631c0)['match'](/^h(\d+)/);if(_0x155ed9)return _0x155ed9[0x1];}return null;}}class te extends _0x2d10d9{['afterInit'](){const _0x1c67b3=this['editor'];if(!_0x1c67b3['plugins']['has']('HighlightEditing'))return;const _0x4d2404=_0x1c67b3['plugins']['get']('TrackChangesEditing'),_0x17a757=_0x1c67b3['locale'];_0x4d2404['enableDefaultAttributesIntegration']('highlight'),_0x4d2404['descriptionFactory']['registerAttributeLabel']('highlight',At(_0x17a757,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54ff1a=this['editor'],_0x43cf0c=_0x54ff1a['locale'];_0x54ff1a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14dcb5=>{if('formatInline'!=_0x14dcb5['type'])return;const {data:_0x59c610}=_0x14dcb5;if(_0x59c610&&'highlight'==_0x59c610['commandName']){const _0x433a2e=_0x43cf0c['t'],_0x4e47d2=_0x59c610['commandParams'][0x0]['value'];if(_0x4e47d2){const _0x4d9805=_0x54ff1a['config']['get']('highlight.options')['find'](_0x3b39d1=>_0x3b39d1['model']==_0x4e47d2),_0xfd636=_0x433a2e(_0x4d9805['title'])['toLowerCase']();return{'type':'format','content':At(_0x43cf0c,'*Set\x20highlight:*\x20%0',_0xfd636),'color':{'value':_0x4d9805['color'],'title':_0x4d9805['title']}};}return{'type':'format','content':At(_0x43cf0c,'*Remove\x20highlight*',At(_0x43cf0c,'FORMAT_HIGHLIGHT'))};}});}}class ee extends _0x2d10d9{['afterInit'](){const _0x26578d=this['editor'];if(!_0x26578d['plugins']['has']('HorizontalLineEditing'))return;_0x26578d['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x515d5f=_0x26578d['plugins']['get']('TrackChangesEditing'),_0x3bd206=_0x26578d['locale'];_0x515d5f['descriptionFactory']['registerElementLabel']('horizontalLine',_0x58e92a=>At(_0x3bd206,'ELEMENT_HORIZONTAL_LINE',_0x58e92a));}}class ne extends _0x2d10d9{['afterInit'](){const _0x65fd12=this['editor'];if(!_0x65fd12['plugins']['has']('HtmlEmbed'))return;const _0x2af7b1=_0x65fd12['plugins']['get']('TrackChangesEditing'),_0x2d2118=_0x65fd12['locale'];_0x2af7b1['descriptionFactory']['registerElementLabel']('rawHtml',_0x430cde=>At(_0x2d2118,'ELEMENT_HTML_EMBED',_0x430cde)),_0x2af7b1['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2af7b1['descriptionFactory']['registerDescriptionCallback'](_0x488389=>{if('attribute'!=_0x488389['type'])return;const {data:_0x3f15b5}=_0x488389;if(_0x3f15b5&&'value'==_0x3f15b5['key']&&_0x488389['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4be2c3=At(_0x2d2118,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x2d2118,'*Change\x20%0\x20content*',_0x4be2c3)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42b795=this['editor'],_0x46d541=_0x42b795['locale'];_0x42b795['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ea62e=>{if('formatBlock'!=_0x1ea62e['type'])return;const {data:_0x590ab1}=_0x1ea62e;if(_0x590ab1&&'htmlEmbed'==_0x590ab1['commandName']){const _0x4ade66=At(_0x46d541,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x46d541,'*Change\x20%0\x20content*',_0x4ade66)};}});}}class ie extends _0x2d10d9{['afterInit'](){const _0x27bd5f=this['editor'];if(!_0x27bd5f['plugins']['has']('ImageEditing'))return;const _0x58c178=_0x27bd5f['plugins']['get']('TrackChangesEditing'),_0x380a67=_0x27bd5f['plugins']['get']('ImageUtils'),_0x5a5257=_0x27bd5f['locale'];_0x58c178['enableCommand']('insertImage'),_0x58c178['descriptionFactory']['registerElementLabel']('imageBlock',_0x1f8cd4=>At(_0x5a5257,'ELEMENT_IMAGE',_0x1f8cd4)),_0x58c178['descriptionFactory']['registerElementLabel']('imageInline',_0x3b346b=>At(_0x5a5257,'ELEMENT_INLINE_IMAGE',_0x3b346b)),_0x58c178['descriptionFactory']['registerElementLabel']('caption',()=>At(_0x5a5257,'ELEMENT_CAPTION')),_0x27bd5f['plugins']['has']('ImageUploadEditing')&&_0x58c178['enableCommand']('uploadImage'),_0x27bd5f['plugins']['has']('ImageBlockEditing')&&_0x27bd5f['plugins']['has']('ImageInlineEditing')&&(_0x58c178['enableCommand']('imageTypeInline',(_0x27f718,_0x5b17a)=>{const _0x164c5=_0x380a67['getClosestSelectedImageElement'](_0x27bd5f['model']['document']['selection']);_0x27bd5f['model']['change'](()=>{_0x58c178['markBlockFormat'](_0x164c5,{'commandName':'imageTypeInline','commandParams':[_0x5b17a]},[],'convertBlockImageToInline');});}),_0x58c178['enableCommand']('imageTypeBlock',(_0x7259a6,_0x3cefe5)=>{_0x27bd5f['model']['change'](_0x1c48cb=>{let _0xf70612=_0x380a67['getClosestSelectedImageElement'](_0x27bd5f['model']['document']['selection']),_0x3332f2=_0x1c48cb['createRangeOn'](_0xf70612);const _0x4050cb=tt['fromPosition'](_0x3332f2['start'],'toPrevious'),_0x4ff5a3=tt['fromPosition'](_0x3332f2['end'],'toNext');_0x58c178['forceDefaultExecution'](()=>_0x7259a6(_0x3cefe5)),_0xf70612=_0x380a67['getClosestSelectedImageElement'](_0x27bd5f['model']['document']['selection']),_0x3332f2=_0x1c48cb['createRangeOn'](_0xf70612);const _0x49f709=_0x1c48cb['createRange'](_0x4050cb,_0x4ff5a3);_0x4050cb['detach'](),_0x4ff5a3['detach'](),_0x58c178['markBlockFormat'](_0xf70612,{'commandName':'imageTypeInline','commandParams':[_0x3cefe5]},[],'convertInlineImageToBlock'),_0x49f709['start']['isBefore'](_0x3332f2['start'])&&_0x58c178['markInsertion'](_0x1c48cb['createRange'](_0x49f709['start'],_0x3332f2['start']),'convertInlineImageToBlock'),_0x3332f2['end']['isBefore'](_0x49f709['end'])&&_0x58c178['markInsertion'](_0x1c48cb['createRange'](_0x3332f2['end'],_0x49f709['end']),'convertInlineImageToBlock');});}),_0x58c178['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x58c178['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x58c178['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x58c178['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x58c178['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x58c178['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x394673])=>{const _0x312c68=_0x58c178['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xd62786=_0x394673['start'],_0x2f7054=_0x394673['end'];const _0x5a0e00=_0x27bd5f['model']['schema']['getNearestSelectionRange'](_0xd62786,'backward'),_0x669f7c=_0x27bd5f['model']['schema']['getNearestSelectionRange'](_0x2f7054,'forward');_0x5a0e00['isCollapsed']&&(_0xd62786=_0x5a0e00['start']),_0x669f7c['isCollapsed']&&(_0x2f7054=_0x669f7c['end']),_0x312c68([_0x27bd5f['model']['createRange'](_0xd62786,_0x2f7054)]);}),_0x58c178['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x112d0c),_0x58c178['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x112d0c)),_0x27bd5f['plugins']['has']('ImageCaptionEditing')&&(_0x58c178['enableCommand']('toggleImageCaption',(_0x381b81,_0x311d39)=>{const _0x407a6f=_0x27bd5f['plugins']['get']('ImageCaptionUtils');let _0x49d51f=_0x380a67['getClosestSelectedImageElement'](_0x27bd5f['model']['document']['selection']),_0x30a1aa=_0x407a6f['getCaptionFromImageModelElement'](_0x49d51f);_0x27bd5f['model']['change'](()=>{if(_0x30a1aa)return void _0x58c178['markDeletion'](_0x27bd5f['model']['createRangeOn'](_0x30a1aa));const _0x452a91=_0x380a67['isBlockImage'](_0x49d51f);_0x381b81(_0x311d39),_0x49d51f=_0x380a67['getClosestSelectedImageElement'](_0x27bd5f['model']['document']['selection']),_0x30a1aa=_0x407a6f['getCaptionFromImageModelElement'](_0x49d51f),_0x58c178['markInsertion'](_0x27bd5f['model']['createRangeOn'](_0x30a1aa),_0x452a91?null:'imageCaption');});}),_0x58c178['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x112d0c));const _0xc2a125=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x544a9b(_0x1073c2,_0x5dc371){const _0x272cf4=_0xc2a125['findIndex'](({type:_0x19ff18,subType:_0x360d22})=>_0x1073c2['type']==_0x19ff18&&_0x1073c2['subType']==_0x360d22),_0x2dc496=_0xc2a125['findIndex'](({type:_0x2cea09,subType:_0x4dddcc})=>_0x5dc371['type']==_0x2cea09&&_0x5dc371['subType']==_0x4dddcc);if(_0x272cf4<0x0||_0x2dc496<0x0)return!0x1;const _0x74fdcc=_0x1073c2['getFirstRange'](),_0x27432c=_0x5dc371['getFirstRange']();if((0x0==_0x272cf4||0x1==_0x272cf4)&&0x2==_0x2dc496&&_0x74fdcc['isIntersecting'](_0x27432c))return!0x0;if(0x2==_0x272cf4&&0x3==_0x2dc496){const _0x55928d=_0x58c178['_findSuggestions'](_0x74fdcc,'insertion')['filter'](({suggestion:_0x166f05,meta:_0x915b45})=>_0x915b45['isOwn']&&'convertInlineImageToBlock'==_0x166f05['subType']);if(_0x55928d['length']>0x1&&_0x27432c['end']['isEqual'](_0x74fdcc['start']))return!0x0;if(0x1==_0x55928d['length']&&(_0x74fdcc['start']['isEqual'](_0x27432c['end'])||_0x74fdcc['end']['isEqual'](_0x27432c['start'])))return!0x0;}if(0x3==_0x272cf4&&0x3==_0x2dc496&&_0x74fdcc['start']['isBefore'](_0x27432c['start'])){const _0x1df6fa=_0x74fdcc['end']['nodeAfter'],_0x3e276b=_0x27432c['start']['nodeBefore'];return _0x380a67['isBlockImage'](_0x1df6fa)&&_0x1df6fa===_0x3e276b;}return!0x1;}function _0x112d0c(_0x523d1a,_0x8aa6a8){return _0x544a9b(_0x523d1a,_0x8aa6a8)?[_0x523d1a,_0x8aa6a8]:_0x544a9b(_0x8aa6a8,_0x523d1a)?[_0x8aa6a8,_0x523d1a]:null;}_0x27bd5f['plugins']['has']('ImageResize')&&(_0x58c178['enableDefaultAttributesIntegration']('resizeImage'),_0x58c178['descriptionFactory']['registerAttributeLabel']('resizedWidth',At(_0x5a5257,'FORMAT_IMAGE_SIZE'))),_0x27bd5f['plugins']['has']('ImageTextAlternativeEditing')&&_0x58c178['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x27bd5f['plugins']['has']('PictureEditing')&&_0x58c178['descriptionFactory']['registerDescriptionCallback'](_0xd59185=>{if('attribute'!=_0xd59185['type'])return;const {data:_0x32a1e2}=_0xd59185;return _0x32a1e2&&'sources'==_0x32a1e2['key']?{'type':'format','content':''}:void 0x0;}),_0x27bd5f['plugins']['has']('ImageSizeAttributes')&&_0x58c178['descriptionFactory']['registerDescriptionCallback'](_0x269004=>{if('attribute'!=_0x269004['type'])return;const {data:_0x216d29}=_0x269004;return!_0x216d29||'width'!=_0x216d29['key']&&'height'!=_0x216d29['key']?void 0x0:{'type':'format','content':''};}),_0x58c178['descriptionFactory']['registerDescriptionCallback'](_0x9fa5a9=>{if(!!_0xc2a125['find'](({type:_0x2b325e,subType:_0xf7a05})=>_0x9fa5a9['type']==_0x2b325e&&_0x9fa5a9['subType']==_0xf7a05))return _0x9fa5a9['previous']?{}:void 0x0;}),_0x58c178['descriptionFactory']['registerDescriptionCallback'](_0x247d81=>{if('insertion'==_0x247d81['type']||'deletion'==_0x247d81['type']){const _0x1cffd6=_0x247d81['getContainedElement']();if(_0x1cffd6&&_0x1cffd6['is']('element','caption'))return{'type':'insertion'==_0x247d81['type']?'addObject':'removeObject','element':_0x1cffd6,'quantity':0x1};}}),_0x58c178['descriptionFactory']['registerDescriptionCallback'](_0x13109a=>'formatBlock'==_0x13109a['type']&&'convertInlineImageToBlock'==_0x13109a['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x13109a['type']&&'convertBlockImageToInline'==_0x13109a['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x58c178['descriptionFactory']['registerDescriptionCallback'](_0x105245=>{if('attribute'!=_0x105245['type'])return;const {data:_0x197bdb}=_0x105245;if(!_0x197bdb||'alt'!=_0x197bdb['key'])return;const _0x4f8ad9=_0x197bdb['newValue'];return _0x4f8ad9?{'type':'format','content':At(_0x5a5257,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4f8ad9+'\x22')}:{'type':'format','content':At(_0x5a5257,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ba972=this['editor'],_0x42f268=_0x2ba972['locale'];_0x2ba972['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb35813=>{if('formatBlock'!=_0xb35813['type']&&'formatInline'!=_0xb35813['type'])return;const {data:_0x440a18}=_0xb35813;if(_0x440a18){if('imageTextAlternative'==_0x440a18['commandName']){const _0x3fb4d8=_0x440a18['commandParams'][0x0]['newValue'];return _0x3fb4d8?{'type':'format','content':At(_0x42f268,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3fb4d8+'\x22')}:{'type':'format','content':At(_0x42f268,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x440a18['commandName']){const _0x386edb=_0x440a18['commandParams'][0x0]['width'];return _0x386edb?{'type':'format','content':At(_0x42f268,'*Set\x20image\x20width:*\x20%0',_0x386edb)}:{'type':'format','content':At(_0x42f268,'*Reset\x20image\x20width*')};}}});}}class se extends _0x2d10d9{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xe03ca1=this['editor']['locale'],_0x4b5aa3=this['editor']['plugins']['get']('TrackChangesEditing');_0x4b5aa3['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4b5aa3['descriptionFactory']['registerDescriptionCallback'](_0x155c2f=>{if('attribute'!=_0x155c2f['type'])return;const {data:_0x181ca7}=_0x155c2f;return _0x181ca7&&'src'==_0x181ca7['key']?_0x181ca7['newValue']&&_0x181ca7['oldValue']?{'type':'format','content':At(_0xe03ca1,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x20bb69=this['editor']['plugins']['get']('TrackChangesEditing');_0x20bb69['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x20bb69['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x20bb69['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x20bb69['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38bf53=this['editor'],_0x3047cc=_0x38bf53['locale'];_0x38bf53['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9ef8ba=>{if('formatBlock'!=_0x9ef8ba['type']&&'formatInline'!=_0x9ef8ba['type'])return;const {data:_0x1f4a6e}=_0x9ef8ba;if(!_0x1f4a6e||'replaceImageSource'!=_0x1f4a6e['commandName'])return;return{'type':'format','content':At(_0x3047cc,'*Format:*\x20replace\x20image\x20URL')};});}}class re extends _0x2d10d9{['afterInit'](){const _0x5f5b8c=this['editor'];if(!_0x5f5b8c['plugins']['has']('ImageStyleEditing'))return;const _0x5bbd3a=_0x5f5b8c['plugins']['get']('TrackChangesEditing'),_0x1b6bf0=_0x5f5b8c['plugins']['get']('ImageUtils'),_0x5225ae={};_0x5bbd3a['enableCommand']('imageStyle',(_0x24d9bc,_0x4b97a5)=>{const _0x11d607=_0x5f5b8c['plugins']['get']('Users')['me'],_0x48eb90=_0x5f5b8c['commands']['get']('imageStyle');let _0x203ac6=_0x1b6bf0['getClosestSelectedImageElement'](_0x5f5b8c['model']['document']['selection']),_0x2439cf=_0x5f5b8c['model']['createRangeOn'](_0x203ac6),_0x64e886=_0x48eb90['value'];if(_0x64e886==_0x4b97a5['value'])return;const _0x560f07={'commandName':'imageStyle','commandParams':[_0x4b97a5],'formatGroupId':_0x2d99d9()};_0x5f5b8c['model']['change'](()=>{if(_0x5bbd3a['getSuggestions']()['filter'](_0x20b19a=>_0x20b19a['isInContent']&&_0x11d607==_0x20b19a['author']&&('formatBlock'==_0x20b19a['type']||'formatInline'==_0x20b19a['type'])&&('imageStylePreApply'==_0x20b19a['subType']||'imageStylePostApply'==_0x20b19a['subType'])&&_0x20b19a['getFirstRange']()['isEqual'](_0x2439cf))['forEach'](_0x26c6e6=>_0x5bbd3a['discardSuggestion'](_0x26c6e6['head'])),_0x203ac6=_0x1b6bf0['getClosestSelectedImageElement'](_0x5f5b8c['model']['document']['selection']),_0x2439cf=_0x5f5b8c['model']['createRangeOn'](_0x203ac6),_0x48eb90['refresh'](),_0x5f5b8c['commands']['get']('imageTypeInline')['refresh'](),_0x5f5b8c['commands']['get']('imageTypeBlock')['refresh'](),_0x64e886=_0x48eb90['value'],_0x64e886!=_0x4b97a5['value'])return _0x1b6bf0['isInlineImage'](_0x203ac6)&&_0x48eb90['shouldConvertImageType'](_0x4b97a5['value'],_0x203ac6)?(_0x24d9bc({..._0x4b97a5,'setImageSizes':!0x1}),_0x203ac6=_0x1b6bf0['getClosestSelectedImageElement'](_0x5f5b8c['model']['document']['selection']),void _0x5bbd3a['markBlockFormat'](_0x203ac6,{..._0x560f07,'commandReversedParams':[{'value':_0x64e886||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1b6bf0['isBlockImage'](_0x203ac6)?_0x5bbd3a['markBlockFormat'](_0x203ac6,_0x560f07,[],'imageStylePostApply'):_0x5bbd3a['markInlineFormat'](_0x2439cf,_0x560f07,'imageStylePostApply'));});});for(const _0x3f9bc7 of _0x5f5b8c['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5225ae[_0x3f9bc7['name']]=_0x3f9bc7['title']['toLowerCase']();_0x5bbd3a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5bbd3a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5bbd3a['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5bbd3a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3b32da])=>{_0x1b6bf0['setImageNaturalSizeAttributes'](_0x3b32da['getContainedElement']());}),_0x5bbd3a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xbff33a,_0x3c3c4e)=>{_0x5bbd3a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xbff33a,{'commandName':_0x3c3c4e['commandName'],'commandParams':_0x3c3c4e['commandReversedParams']});}),_0x5bbd3a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x29c545,_0x1b45a1){if(_0x4c2179(_0x29c545,_0x1b45a1))return[_0x29c545,_0x1b45a1];if(_0x4c2179(_0x1b45a1,_0x29c545))return[_0x1b45a1,_0x29c545];return null;});const _0xc5a1b8=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4c2179(_0x543a53,_0x51adb4){const _0x4dfc30=_0xc5a1b8['findIndex'](({type:_0x53cf35,subType:_0xa859d1})=>_0x543a53['type']==_0x53cf35&&_0x543a53['subType']==_0xa859d1),_0x5c5ca8=_0xc5a1b8['findIndex'](({type:_0x426d98,subType:_0x42aacf})=>_0x51adb4['type']==_0x426d98&&_0x51adb4['subType']==_0x42aacf);if(_0x4dfc30<0x0||_0x5c5ca8<0x0)return!0x1;const _0x4a9f4e=_0x543a53['getFirstRange'](),_0x3267e4=_0x51adb4['getFirstRange']();if((0x0==_0x4dfc30||0x1==_0x4dfc30)&&0x2==_0x5c5ca8&&_0x4a9f4e['isIntersecting'](_0x3267e4))return!0x0;if(0x2==_0x4dfc30&&0x3==_0x5c5ca8){const _0x3240a9=_0x5bbd3a['_findSuggestions'](_0x4a9f4e,'insertion')['filter'](({suggestion:_0x474c3e,meta:_0x3944f5})=>_0x3944f5['isOwn']&&'convertInlineImageToBlock'==_0x474c3e['subType']);if(_0x3240a9['length']>0x1&&_0x3267e4['end']['isEqual'](_0x4a9f4e['start']))return!0x0;if(0x1==_0x3240a9['length']&&(_0x4a9f4e['start']['isEqual'](_0x3267e4['end'])||_0x4a9f4e['end']['isEqual'](_0x3267e4['start'])))return!0x0;}if(0x3==_0x4dfc30&&0x3==_0x5c5ca8&&_0x4a9f4e['start']['isBefore'](_0x3267e4['start'])){const _0x5d7b71=_0x4a9f4e['end']['nodeAfter'],_0x91023a=_0x3267e4['start']['nodeBefore'];return _0x1b6bf0['isBlockImage'](_0x5d7b71)&&_0x5d7b71===_0x91023a;}return!0x1;}_0x5f5b8c['model']['document']['registerPostFixer'](()=>{let _0x157436=!0x1;const _0x6450dc=Array['from'](_0x5f5b8c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xec6e4e,data:_0x499a76}of _0x6450dc){const {group:_0x4908f6,type:_0x38a9c9,subType:_0x246d71,id:_0x147184}=_0x329859(_0xec6e4e);if('suggestion'==_0x4908f6&&_0x5bbd3a['hasSuggestion'](_0x147184)){if('formatBlock'==_0x38a9c9&&('imageStylePreApply'==_0x246d71||'imageStylePostApply'==_0x246d71)){const _0x308110=_0x5bbd3a['getSuggestion'](_0x147184);if(_0x499a76['newRange']){const _0x196d49=_0x308110['getFirstRange']()['getContainedElement']();if(_0x1b6bf0['isBlockImage'](_0x196d49))continue;_0x5bbd3a['discardSuggestion'](_0x308110),_0x157436=!0x0;}}if('insertion'==_0x38a9c9&&'imageCaption'==_0x246d71&&!_0x499a76['newRange']){const _0x29b703=_0x5bbd3a['getSuggestion'](_0x147184);_0x29b703['next']&&_0x29b703['next']['isInContent']&&(_0x5bbd3a['discardSuggestion'](_0x29b703['next']),_0x157436=!0x0);}}}return _0x157436;}),this['_registerLegacyDescription'](_0x5225ae);}['_registerLegacyDescription'](_0x14de96){const _0x3a3515=this['editor'],_0x3fe85e=_0x3a3515['locale'];_0x3a3515['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5352fc=>{if('formatBlock'!=_0x5352fc['type']&&'formatInline'!=_0x5352fc['type'])return;const {data:_0x18df6a}=_0x5352fc;if(!_0x18df6a||'imageStyle'!=_0x18df6a['commandName'])return;const _0x41f424=_0x18df6a['commandParams'][0x0]['value'];return _0x24b7dc('side'===_0x41f424?At(_0x3fe85e,'FORMAT_SIDE_IMAGE'):_0x14de96[_0x41f424]||_0x41f424);function _0x24b7dc(_0x2fb7ee){return{'type':'format','content':At(_0x3fe85e,'*Format:*\x20%0',_0x2fb7ee)};}});}}class oe extends _0x2d10d9{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x25605e){super(_0x25605e),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x6e0d55=this['editor'],_0x2d74cf=_0x6e0d55['commands']['get']('importWord'),_0x5f4dfa=_0x6e0d55['commands']['get']('trackChanges');_0x2d74cf&&(_0x2d74cf['on']('execute',(_0x56d87c,[,_0x4204f5])=>{this['_trackChangesValueDuringImport']=_0x5f4dfa['value'],_0x4204f5['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2d74cf,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2d74cf,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5f4dfa['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x6e0d55['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xb1bf2b,_0x5d5b9e){const {suggestions:_0x4025f1}=_0x5d5b9e,_0x19ab00=this['editor']['commands']['get']('trackChanges'),_0x317744=_0x19ab00['value'];this['_trackChangesValueDuringImport']!==_0x317744&&(_0x19ab00['execute'](),this['_trackChangesExecuted']=!0x0),_0x4025f1&&_0x4025f1['forEach'](({id:_0x3d073f,type:_0x1833f8,author:_0x254c71,created_at:_0x36c91d})=>{const _0x3bf45b={'id':_0x3d073f,'type':_0x1833f8,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x254c71,'createdAt':_0x36c91d?new Date(_0x36c91d):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3bf45b);});}}class ae extends _0x2d10d9{['afterInit'](){const _0x4b619e=this['editor'],_0x4bdaf7=_0x4b619e['plugins']['get']('TrackChangesEditing');if(_0x4b619e['plugins']['has']('IndentEditing')&&(_0x4bdaf7['enableCommand']('indent'),_0x4bdaf7['enableCommand']('outdent')),_0x4b619e['plugins']['has']('IndentBlock')){for(const _0x42c813 of['indentBlock','outdentBlock'])_0x4bdaf7['enableDefaultAttributesIntegration'](_0x42c813);if(_0x4b619e['plugins']['has']('ListEditing')){for(const _0xf7b4a5 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x4bdaf7['enableDefaultAttributesIntegration'](_0xf7b4a5);}}const _0x3d1407=_0x4b619e['locale'];_0x4bdaf7['descriptionFactory']['registerAttributeLabel']('blockIndent',At(_0x3d1407,'FORMAT_INDENT')),_0x4bdaf7['descriptionFactory']['registerAttributeLabel']('blockIndentList',At(_0x3d1407,'FORMAT_INDENT')),_0x4bdaf7['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',At(_0x3d1407,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43980a=this['editor'],_0xbe7a45=_0x43980a['locale'],_0x1c0ed8=_0x43980a['plugins']['get']('TrackChangesEditing');_0x1c0ed8['descriptionFactory']['registerDescriptionCallback'](_0x2a2892=>{if('formatBlock'!=_0x2a2892['type'])return;const {data:_0xb60280}=_0x2a2892;if(!_0xb60280)return;if('indentBlock'!=_0xb60280['commandName']&&'outdentBlock'!=_0xb60280['commandName'])return;const _0x5c47fb=_0x2a2892['getItems']()[0x0],_0xbee0c9=_0x1c0ed8['descriptionFactory']['getItemLabel'](_0x5c47fb);return'indentBlock'==_0xb60280['commandName']?{'type':'format','content':At(_0xbe7a45,'*Indent:*\x20%0',_0xbee0c9)}:'outdentBlock'==_0xb60280['commandName']?{'type':'format','content':At(_0xbe7a45,'*Outdent:*\x20%0',_0xbee0c9)}:void 0x0;});}}class ce extends _0x2d10d9{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class le extends _0x2d10d9{['afterInit'](){const _0x4243aa=this['editor'];if(!_0x4243aa['plugins']['has']('LinkEditing'))return;const _0x28927f=_0x4243aa['plugins']['get']('TrackChangesEditing'),_0x4b0cc2=_0x4243aa['commands']['get']('link');_0x28927f['enableDefaultAttributesIntegration']('link'),_0x28927f['enableDefaultAttributesIntegration']('unlink');for(const _0x4f786f of _0x4b0cc2['manualDecorators'])_0x28927f['descriptionFactory']['registerAttributeLabel'](_0x4f786f['id'],'link\x20('+_0x4f786f['label']['toLowerCase']()+')');_0x28927f['descriptionFactory']['registerDescriptionCallback'](_0x7f8468=>{if('attribute'!=_0x7f8468['type'])return;const {data:_0xfc1fb6}=_0x7f8468;if(!_0xfc1fb6||'linkHref'!=_0xfc1fb6['key'])return;const _0x2e9746=_0xfc1fb6['newValue'],_0xc02ae7=_0x4243aa['locale'];return{'type':'format','content':null==_0x2e9746?At(_0xc02ae7,'*Remove\x20link*'):At(_0xc02ae7,'*Set\x20link:*\x20%0','\x22'+_0x2e9746+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5350ba=this['editor'],_0x5866b1=_0x5350ba['locale'];_0x5350ba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e95d1=>{if('formatInline'!=_0x1e95d1['type'])return;const {data:_0x2f2b64}=_0x1e95d1;if(_0x2f2b64){if('link'==_0x2f2b64['commandName']){const _0x5dbf99=_0x2f2b64['commandParams'][0x0];return{'type':'format','content':At(_0x5866b1,'*Set\x20link:*\x20%0','\x22'+_0x5dbf99+'\x22')};}return'unlink'==_0x2f2b64['commandName']?{'type':'format','content':At(_0x5866b1,'*Remove\x20link*')}:void 0x0;}});}}class ue extends _0x2d10d9{['afterInit'](){const _0x1a2c44=this['editor'],_0x2a28ad=_0x1a2c44['locale'];if(!_0x1a2c44['plugins']['has']('LegacyListEditing'))return;const _0x347b17=_0x1a2c44['plugins']['get']('TrackChangesEditing'),_0xf23ab3=_0x1a2c44['plugins']['has']('LegacyTodoListEditing');function _0x3ce478(_0x152f25){return()=>{const _0x240875=_0x1a2c44['model']['document']['selection'],_0x327f8b=_0x1a2c44['commands']['get'](_0x152f25);if(_0x327f8b['value'])return void _0x1a2c44['execute']('paragraph',{});const _0x5c94c9=_0x152f25['slice'](0x0,-0x4),_0x22884d=function(_0x2e8e5a,_0x164b59,_0x59ce51){let _0x4d7b35=Array['from'](_0x2e8e5a)['filter'](_0x4ad824=>function(_0x119db9,_0x4d9a2a){return _0x4d9a2a['checkChild'](_0x119db9['parent'],'listItem')&&!_0x4d9a2a['isObject'](_0x119db9);}(_0x4ad824,_0x59ce51));_0x4d7b35=_0x4d7b35['filter'](_0x3928d7=>!_0x3928d7['is']('element','listItem')||_0x3928d7['getAttribute']('listType')!=_0x164b59);const _0x5712d3=new Set();for(const _0x164bbe of _0x4d7b35)_0x164bbe['is']('element','listItem')?_0x5712d3['add'](he(_0x164bbe)):_0x5712d3['add'](_0x164bbe);return Array['from'](_0x5712d3);}(_0x240875['getSelectedBlocks'](),_0x5c94c9,_0x1a2c44['model']['schema']);_0x1a2c44['model']['change'](()=>{for(const _0x59caef of _0x22884d)_0x347b17['markBlockFormat'](_0x59caef,{'commandName':_0x152f25,'commandParams':[{'forceValue':!_0x327f8b['value']}],'formatGroupId':'blockName'},de(_0x59caef));});};}function _0x1ccedc(_0x225400){return()=>{const _0x3b1a96=function(_0x358777){let _0x364f3e=Array['from'](_0x358777);const _0x59f25d=_0x364f3e['findIndex'](_0x733448=>'listItem'!=_0x733448['name']);return _0x59f25d>-0x1&&(_0x364f3e=_0x364f3e['slice'](0x0,_0x59f25d)),_0x364f3e;}(_0x1a2c44['model']['document']['selection']['getSelectedBlocks']()),_0x4f73a2=_0x1a2c44['model']['createRange'](_0x1a2c44['model']['createPositionAt'](_0x3b1a96[0x0],'before'),_0x1a2c44['model']['createPositionAt'](_0x3b1a96[_0x3b1a96['length']-0x1],'end'));_0x1a2c44['model']['change'](()=>{_0x347b17['markBlockFormat'](_0x4f73a2,{'commandName':_0x225400,'commandParams':[],'formatGroupId':'listIndent'},function(_0x56b010){const _0x2d467a=new Set();for(const _0x18c2d6 of _0x56b010){let _0x28528c=_0x18c2d6['nextSibling'];for(;_0x28528c&&_0x28528c['getAttribute']('listIndent')>_0x18c2d6['getAttribute']('listIndent');)_0x2d467a['add'](_0x28528c),_0x28528c=_0x28528c['nextSibling'];}return Array['from'](_0x2d467a);}(_0x3b1a96));});};}_0x347b17['enableCommand']('numberedList',_0x3ce478('numberedList')),_0x347b17['enableCommand']('bulletedList',_0x3ce478('bulletedList')),_0xf23ab3&&_0x347b17['enableCommand']('todoList',_0x3ce478('todoList')),_0x347b17['enableCommand']('indentList',_0x1ccedc('indentList')),_0x347b17['enableCommand']('outdentList',_0x1ccedc('outdentList')),_0xf23ab3&&_0x347b17['enableCommand']('checkTodoList',()=>{const _0x22393=_0x1a2c44['commands']['get']('checkTodoList'),_0xf8ac1d=Array['from'](_0x22393['_selectedElements']);_0xf8ac1d['filter'](_0x50d4d1=>_0x50d4d1['getAttribute']('todoListChecked')!=_0x22393['value']),_0x1a2c44['model']['change'](()=>{for(const _0x3f004e of _0xf8ac1d)_0x347b17['markBlockFormat'](_0x3f004e,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x22393['value']}]});});}),_0x347b17['descriptionFactory']['registerElementLabel']('listItem',_0x347dc5=>At(_0x2a28ad,'ELEMENT_LIST_ITEM',_0x347dc5)),_0x347b17['descriptionFactory']['registerDescriptionCallback'](_0x210691=>{if('formatBlock'!=_0x210691['type']&&'formatInline'!=_0x210691['type'])return;const {data:_0x451783}=_0x210691;if(_0x451783){if('numberedList'==_0x451783['commandName']||'bulletedList'==_0x451783['commandName']||'todoList'==_0x451783['commandName'])switch(_0x451783['commandName']['replace']('List','')){case'bulleted':return _0x1c090f(At(_0x2a28ad,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1c090f(At(_0x2a28ad,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1c090f(At(_0x2a28ad,'ELEMENT_TODO_LIST'));}if('indentList'==_0x451783['commandName'])return{'type':'format','content':At(_0x2a28ad,'*Indent:*\x20%0',At(_0x2a28ad,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x451783['commandName'])return{'type':'format','content':At(_0x2a28ad,'*Outdent:*\x20%0',At(_0x2a28ad,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x451783['commandName'])return _0x451783['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x2a28ad,'*Check\x20item*')}:{'type':'format','content':At(_0x2a28ad,'*Uncheck\x20item*')};}function _0x1c090f(_0x119e07){return{'type':'format','content':At(_0x2a28ad,'*Change\x20to:*\x20%0',_0x119e07)};}});}}function he(_0x783eea){const _0x46cd3a=_0x783eea['getAttribute']('listIndent');if(0x0==_0x46cd3a)return _0x783eea;let _0x220de3=_0x783eea;for(;_0x783eea['previousSibling']&&_0x783eea['previousSibling']['is']('element','listItem');){const _0x3a5d66=_0x783eea['previousSibling']['getAttribute']('listIndent');if(_0x3a5d66==_0x46cd3a)_0x220de3=_0x783eea['previousSibling'];else{if(_0x3a5d66<_0x46cd3a)break;}_0x783eea=_0x783eea['previousSibling'];}return _0x220de3;}function de(_0x360801){const _0x40d1f5=[];if(_0x360801['is']('element','listItem')&&_0x360801['getAttribute']('listIndent')>0x0){let _0x1e4db3=_0x360801['nextSibling'];for(;_0x1e4db3&&'listItem'==_0x1e4db3['name']&&_0x1e4db3['getAttribute']('listIndent')==_0x360801['getAttribute']('listIndent');)_0x40d1f5['push'](_0x1e4db3),_0x1e4db3=_0x1e4db3['nextSibling'];}return _0x40d1f5;}class fe extends _0x2d10d9{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4f99bc=this['editor']['config']['get']('list.properties'),_0x4140a5=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f99bc['styles']&&_0x4140a5['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4f99bc['reversed']&&_0x4140a5['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4f99bc['startIndex']&&_0x4140a5['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4140a5['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x110885,_0x5c1b25={}){const _0x110624=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ebef7=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x110624['markMultiRangeBlockFormat'](_0x1ebef7,{'commandName':'listStyle','commandParams':[{'type':_0x5c1b25['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x25f1da,_0x1b5c13={}){const _0xc74f85=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b5d14=this['_getSuggestionBlocks'](_0x543752=>_0x543752['is']('element','listItem')&&'numbered'===_0x543752['getAttribute']('listType'));if(_0x5b5d14['length']<0x1)return;const _0x4c547c=_0x5b5d14['map'](_0x451d1d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x451d1d,'before'),this['editor']['model']['createPositionAt'](_0x451d1d,0x0)));this['editor']['model']['change'](()=>{_0xc74f85['markMultiRangeBlockFormat'](_0x4c547c,{'commandName':'listReversed','commandParams':[{'reversed':_0x1b5c13['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x11b7ce,_0x2e9a47={}){const _0x1d25e1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f790a=this['_getSuggestionBlocks'](_0x1083a7=>_0x1083a7['is']('element','listItem')&&'numbered'===_0x1083a7['getAttribute']('listType'));if(_0x3f790a['length']<0x1)return;const _0x37b17d=_0x3f790a['map'](_0x361247=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x361247,'before'),this['editor']['model']['createPositionAt'](_0x361247,0x0)));this['editor']['model']['change'](()=>{_0x1d25e1['markMultiRangeBlockFormat'](_0x37b17d,{'commandName':'listStart','commandParams':[{'startIndex':_0x2e9a47['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4bf0f4){if('formatBlock'!=_0x4bf0f4['type']&&'formatInline'!=_0x4bf0f4['type'])return;const _0x1efa79=this['editor']['locale'],{data:_0x2deb64}=_0x4bf0f4;if(!_0x2deb64)return;let _0x7c1d8d,_0x239d5a;switch(_0x2deb64['commandName']){case'listStyle':_0x7c1d8d='*Change\x20to:*\x20%0',_0x239d5a={'type':'format','content':At(_0x1efa79,_0x7c1d8d,At(_0x1efa79,this['_getTranslationKeyForListStyle'](_0x2deb64['commandParams'][0x0]['type'])))};break;case'listReversed':_0x7c1d8d=_0x2deb64['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x239d5a={'type':'format','content':At(_0x1efa79,_0x7c1d8d)};break;case'listStart':_0x7c1d8d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x239d5a={'type':'format','content':At(_0x1efa79,_0x7c1d8d,_0x2deb64['commandParams'][0x0]['startIndex'])};}return _0x239d5a;}['_getSuggestionBlocksForListStyle'](){const _0x3ddd63=this['editor']['plugins']['get']('LegacyListUtils');let _0x2c06c2=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2c06c2[0x0]?.['is']('element','listItem')&&_0x2c06c2['unshift'](..._0x3ddd63['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2c06c2[_0x2c06c2['length']-0x1]?.['is']('element','listItem')&&_0x2c06c2['push'](..._0x3ddd63['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2c06c2=[...new Set(_0x2c06c2)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2c06c2=_0x2c06c2['filter'](_0x408229=>_0x408229['is']('element','listItem'))),_0x2c06c2;}['_getSuggestionBlocks'](_0x36e257){const _0x1941f8=this['editor']['plugins']['get']('LegacyListUtils');let _0x123413=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x36e257)['map'](_0x4f828f=>{const _0x2c87f8=this['editor']['model']['createPositionAt'](_0x4f828f,0x0);return[..._0x1941f8['getSiblingNodes'](_0x2c87f8,'backward'),..._0x1941f8['getSiblingNodes'](_0x2c87f8,'forward')];})['flat']();return _0x123413=[...new Set(_0x123413)],_0x123413;}['_getTranslationKeyForListStyle'](_0x4d0689){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4d0689)||'default')['toUpperCase']()+'_LIST_'+_0x4d0689['toUpperCase']()['replace'](/-/g,'_');}}class ge extends _0x2d10d9{['afterInit'](){const _0x251490=this['editor'];if(!_0x251490['plugins']['has']('MediaEmbedEditing'))return;const _0x48ef73=_0x251490['plugins']['get']('TrackChangesEditing'),_0x55a81a=_0x251490['locale'];_0x48ef73['enableCommand']('mediaEmbed'),_0x48ef73['descriptionFactory']['registerElementLabel']('media',_0x163b83=>At(_0x55a81a,'ELEMENT_MEDIA',_0x163b83));}}class me extends _0x2d10d9{['afterInit'](){const _0x27d0f4=this['editor'];_0x27d0f4['plugins']['has']('MentionEditing')&&_0x27d0f4['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class Ee extends _0x2d10d9{['afterInit'](){const _0x1687da=this['editor'];if(!_0x1687da['plugins']['has']('MergeFieldsEditing'))return;const _0x4c2654=_0x1687da['plugins']['get']('TrackChangesEditing'),_0x3c65b6=_0x1687da['locale'];_0x4c2654['enableCommand']('insertMergeField'),_0x4c2654['enableCommand']('insertMergeFieldBlock'),_0x4c2654['enableCommand']('insertMergeFieldImage'),_0x4c2654['descriptionFactory']['registerElementLabel']('mergeField',_0x3a273a=>At(_0x3c65b6,'ELEMENT_MERGE_FIELD',_0x3a273a)),_0x4c2654['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x954c29=>At(_0x3c65b6,'ELEMENT_MERGE_FIELD',_0x954c29)),_0x4c2654['descriptionFactory']['registerDescriptionCallback'](_0x308c5f=>{if('insertion'!=_0x308c5f['type']&&'deletion'!=_0x308c5f['type'])return;const _0x4d4d27=_0x308c5f['getContainedElement']();if(null==_0x4d4d27)return;const _0x128bb1=_0x1687da['plugins']['get']('MergeFieldsEditing');let _0x27f9d6;switch(_0x128bb1['getMergeFieldType'](_0x4d4d27)){case null:return;case'image':{const _0x36f5f0=_0x128bb1['unwrapAffixes'](_0x4d4d27['getAttribute']('src'));_0x27f9d6=_0x128bb1['getLabel'](_0x36f5f0)||_0x36f5f0;break;}default:{const _0x509453=_0x4d4d27['getAttribute']('id');_0x27f9d6=_0x128bb1['getLabel'](_0x509453)||_0x509453;break;}}return'insertion'==_0x308c5f['type']?{'type':'insertion','content':At(_0x3c65b6,'*Insert:*\x20%0','\x22'+_0x27f9d6+'\x22\x20'+At(_0x3c65b6,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':At(_0x3c65b6,'*Remove:*\x20%0','\x22'+_0x27f9d6+'\x22\x20'+At(_0x3c65b6,'ELEMENT_MERGE_FIELD'))};});}}class Te extends _0x2d10d9{['afterInit'](){const _0x1f9a39=this['editor'],_0x374e0e=_0x1f9a39['plugins']['get']('TrackChangesEditing');_0x1f9a39['plugins']['has']('MultiLevelList')&&(_0x374e0e['enableDefaultAttributesIntegration']('multiLevelList'),_0x374e0e['descriptionFactory']['registerDescriptionCallback'](_0xb95269=>this['handleDescriptions'](_0xb95269)));}['handleDescriptions'](_0x56f05e){const _0x50255e=this['editor']['locale'],{data:_0x4372f7}=_0x56f05e,_0x13cda7={'type':'format','content':''};if(_0x4372f7&&'listMarkerStyle'==_0x4372f7['key']){if(!_0x4372f7['oldValue'])return{'type':'format','content':At(_0x50255e,'*Set\x20format:*\x20%0',At(_0x50255e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4372f7['newValue']+')'};if(!_0x4372f7['newValue']){let _0x38bf36=_0x56f05e['head'];for(;_0x38bf36;){if(_0x38bf36['data']&&'listType'==_0x38bf36['data']['key']&&_0x38bf36['data']['newValue'])return _0x13cda7;_0x38bf36=_0x38bf36['next'];}return{'type':'format','content':At(_0x50255e,'*Remove\x20format:*\x20%0',At(_0x50255e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4372f7['oldValue']+')'};}}}}class _e extends _0x2d10d9{['afterInit'](){const _0x916e69=this['editor'];if(!_0x916e69['plugins']['has']('PageBreakEditing'))return;_0x916e69['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4f0cf0=_0x916e69['plugins']['get']('TrackChangesEditing'),_0x3b175c=_0x916e69['locale'];_0x4f0cf0['descriptionFactory']['registerElementLabel']('pageBreak',_0x173f13=>At(_0x3b175c,'ELEMENT_PAGE_BREAK',_0x173f13));}}class pe extends _0x2d10d9{['afterInit'](){const _0x5b3db1=this['editor'];if(!_0x5b3db1['plugins']['has']('Paragraph'))return;const _0x4271eb=_0x5b3db1['locale'],_0x3e0753=_0x5b3db1['plugins']['get']('TrackChangesEditing');_0x3e0753['descriptionFactory']['registerElementLabel']('paragraph',_0x309189=>At(_0x4271eb,'ELEMENT_PARAGRAPH',_0x309189)),_0x3e0753['enableDefaultAttributesIntegration']('paragraph'),_0x3e0753['enableCommand']('insertParagraph');const _0x9d338d=_0x3e0753['descriptionFactory'];_0x9d338d['registerDescriptionCallback'](_0x37ba6b=>{if('insertion'!==_0x37ba6b['type'])return;const {start:_0xd6cd3d,end:_0xeb4c1d}=_0x37ba6b['getFirstRange']();if(!_0xd6cd3d['isTouching'](_0xeb4c1d)||!_0xd6cd3d['nodeAfter'])return;const _0x499e59=_0x5b3db1['model']['schema'],_0x11ff1e=_0xd6cd3d['nodeAfter'];return _0x499e59['isBlock'](_0x11ff1e)&&!_0x499e59['isLimit'](_0x11ff1e)&&_0x499e59['checkChild'](_0x11ff1e,'$text')?{'type':'insertion','content':At(_0x4271eb,'*Insert:*\x20%0',_0x9d338d['getItemLabel'](_0x11ff1e,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32a8c0=this['editor'],_0xece32d=_0x32a8c0['locale'];_0x32a8c0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x254812=>{if('formatBlock'!=_0x254812['type'])return;const {data:_0x582e85}=_0x254812;return _0x582e85&&'paragraph'==_0x582e85['commandName']?{'type':'format','content':At(_0xece32d,'*Change\x20to:*\x20%0',At(_0xece32d,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class Le extends _0x2d10d9{['afterInit'](){const _0x242ea7=this['editor'];_0x242ea7['commands']['get']('replaceSource')&&_0x242ea7['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class Ie extends _0x2d10d9{['afterInit'](){const _0x443963=this['editor'];if(!_0x443963['plugins']['has']('RemoveFormatEditing'))return;_0x443963['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x130010=this['editor'];_0x130010['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12be7c=>{if('formatBlock'!=_0x12be7c['type']&&'formatInline'!=_0x12be7c['type'])return;const {data:_0x3fc073}=_0x12be7c;return _0x3fc073&&'removeFormat'==_0x3fc073['commandName']?{'type':'format','content':At(_0x130010['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class be extends _0x2d10d9{['afterInit'](){const _0x5cf34f=this['editor'];if(!_0x5cf34f['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x12a7cf=_0x5cf34f['plugins']['get']('TrackChangesEditing');_0x12a7cf['enableCommand']('goToPreviousRestrictedEditingException'),_0x12a7cf['enableCommand']('goToNextRestrictedEditingException');const _0x57b55a=_0x5cf34f['plugins']['get']('RestrictedEditingModeEditing');_0x57b55a['enableCommand']('trackChanges'),_0x57b55a['enableCommand']('acceptSuggestion'),_0x57b55a['enableCommand']('discardSuggestion'),_0x57b55a['enableCommand']('acceptAllSuggestions'),_0x57b55a['enableCommand']('discardAllSuggestions'),_0x57b55a['enableCommand']('acceptSelectedSuggestions'),_0x57b55a['enableCommand']('discardSelectedSuggestions');}}class Ae extends _0x2d10d9{['afterInit'](){const _0x1bd295=this['editor'];if(!_0x1bd295['plugins']['has']('ShiftEnter'))return;const _0x2074d5=_0x1bd295['plugins']['get']('TrackChangesEditing');_0x2074d5['enableCommand']('shiftEnter'),_0x2074d5['descriptionFactory']['registerElementLabel']('softBreak',_0x690316=>At(_0x1bd295['locale'],'ELEMENT_LINE_BREAK',_0x690316));}}function ke(_0x1d4254,_0x1badd5,_0x10adb9){const _0x4bf014=[];for(const _0xc09c47 of _0x1badd5['getItems']())_0xc09c47['hasAttribute'](_0x1d4254)&&_0x4bf014['push'](_0x10adb9['createRangeOn'](_0xc09c47));return _0x4bf014;}class Ce extends _0x2d10d9{['afterInit'](){const _0x46f05d=this['editor'],_0x5ae918=_0x46f05d['plugins']['get']('TrackChangesEditing');_0x46f05d['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x5ae918['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x187c43=this['editor'],_0x364dba=_0x187c43['model'],_0x18668f=_0x187c43['locale'],_0x1d8bb5=_0x187c43['plugins']['get']('TrackChangesEditing'),_0x21c798='restrictedEditingException',_0x4564d8=_0x187c43['commands']['get'](_0x21c798);_0x1d8bb5['enableCommand'](_0x21c798,(_0x25befb,_0x16ae71={})=>{const _0x15584f=_0x364dba['document']['selection'];if(_0x15584f['isCollapsed'])return void _0x25befb(_0x16ae71);const _0x31ad60=void 0x0!==_0x16ae71['forceValue']?_0x16ae71['forceValue']:!_0x4564d8['value'];_0x364dba['change'](()=>{const _0x4b9cfa=Array['from'](_0x15584f['getRanges']());for(const _0x2c5a29 of _0x4b9cfa){const _0x60e1b7=_0x31ad60?[_0x2c5a29]:ke(_0x21c798,_0x2c5a29,_0x364dba);for(const _0x5ccce5 of _0x60e1b7)_0x1d8bb5['markInlineFormat'](_0x5ccce5,{'commandName':_0x21c798,'commandParams':[{'forceValue':_0x31ad60}]});}});}),_0x1d8bb5['descriptionFactory']['registerDescriptionCallback'](_0x32052d=>{if('formatBlock'!=_0x32052d['type']&&'formatInline'!=_0x32052d['type'])return;const {data:_0x14bbcc}=_0x32052d;return _0x14bbcc&&_0x14bbcc['commandName']==_0x21c798?_0x14bbcc['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x18668f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x18668f,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x98a66=this['editor'],_0x223670=_0x98a66['locale'],_0x24ab2=_0x98a66['plugins']['get']('TrackChangesEditing'),_0x5f271c='restrictedEditingExceptionBlock',_0x20d8b9=this['editor']['commands']['get'](_0x5f271c);_0x24ab2['enableCommand'](_0x5f271c,(_0x350341,_0x37dc58={})=>{const _0x33f3c3=this['editor']['model']['document']['selection'],_0x1a33a9=_0x37dc58&&void 0x0!==_0x37dc58['forceValue']?_0x37dc58['forceValue']:!_0x20d8b9['value'];let _0x5834a5=[];if(_0x1a33a9){const _0x23b3ae=Array['from'](_0x33f3c3['getSelectedBlocks']())['filter'](_0x17f6c5=>function(_0x53c6fd){return!!_0x53c6fd['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x17f6c5)||function(_0x303473,_0x43aeb0){const _0xa6c7e5=_0x43aeb0['createContext'](_0x303473['parent']);if(!_0x43aeb0['checkChild'](_0xa6c7e5,'restrictedEditingException'))return!0x1;if(!_0x43aeb0['checkChild'](_0xa6c7e5['push']('restrictedEditingException'),_0x303473))return!0x1;return!0x0;}(_0x17f6c5,this['editor']['model']['schema']));_0x5834a5=Tt(_0x23b3ae,_0x98a66['model']);}else{const _0xaf09f0=Array['from'](_0x33f3c3['getSelectedBlocks']())['map'](_0x4b4529=>function(_0x15be88){let _0x4e2181=_0x15be88;for(;_0x4e2181['parent'];){if('restrictedEditingException'==_0x4e2181['parent']['name'])return _0x4e2181;_0x4e2181=_0x4e2181['parent'];}return null;}(_0x4b4529))['filter'](_0x271994=>!!_0x271994);_0x5834a5=Tt(_0xaf09f0,_0x98a66['model']);}_0x98a66['model']['change'](()=>{for(const _0x5aaaab of _0x5834a5)_0x24ab2['markBlockFormat'](_0x5aaaab,{'commandName':_0x5f271c,'commandParams':[{'forceValue':_0x1a33a9}]});});}),_0x24ab2['descriptionFactory']['registerDescriptionCallback'](_0x322949=>{const {data:_0xab076e}=_0x322949;if(_0xab076e&&_0xab076e['commandName']==_0x5f271c)return _0xab076e['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x223670,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x223670,'FORMAT_RESTRICTED_DISABLED')};});}}class ye extends _0x2d10d9{['afterInit'](){const _0x407a92=this['editor'];if(!_0x407a92['plugins']['has']('Style')||!_0x407a92['plugins']['has']('DataSchema'))return;const _0x3224de=_0x407a92['plugins']['get']('TrackChangesEditing'),_0x2eb19d=_0x407a92['locale'],_0x1303c4=_0x407a92['config']['get']('style')||{},_0x105f64=_0x407a92['plugins']['get']('GeneralHtmlSupport'),_0x341227=_0x407a92['plugins']['get']('StyleUtils')['normalizeConfig'](_0x407a92['plugins']['get']('DataSchema'),_0x1303c4['definitions']);_0x3224de['enableDefaultAttributesIntegration']('style');const _0x36dd0b=new Set();for(const _0x59a158 of _0x341227['block']){const _0x296607=_0x105f64['getGhsAttributeNameForElement'](_0x59a158['element']);_0x36dd0b['add'](_0x296607);}const _0x5dc97a=new Set();for(const _0x5b0e6d of _0x341227['inline']){const _0x990c2=_0x105f64['getGhsAttributeNameForElement'](_0x5b0e6d['element']);_0x5dc97a['add'](_0x990c2);for(const _0xae9436 of _0x5b0e6d['ghsAttributes'])_0x5dc97a['add'](_0xae9436);}for(const _0x371ff3 of _0x36dd0b)_0x3224de['descriptionFactory']['registerAttributeLabel'](_0x371ff3,At(_0x2eb19d,'FORMAT_STYLE'));for(const _0x2bb4b3 of _0x5dc97a)_0x3224de['descriptionFactory']['registerAttributeLabel'](_0x2bb4b3,At(_0x2eb19d,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4237c4=this['editor'],_0x4cd2a0=_0x4237c4['locale'];_0x4237c4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd4459c=>{if('formatBlock'!=_0xd4459c['type']&&'formatInline'!=_0xd4459c['type'])return;const {data:_0x2b4eb4}=_0xd4459c;return _0x2b4eb4&&'style'===_0x2b4eb4['commandName']?_0x2b4eb4['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x4cd2a0,'*Set\x20format:*\x20%0',_0x2b4eb4['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':At(_0x4cd2a0,'*Remove\x20format:*\x20%0',_0x2b4eb4['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ne extends _0x2d10d9{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x108dce){super(_0x108dce),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x41eb01=this['editor'],_0xdb22e8=_0x41eb01['model']['document']['selection'];if(!_0x41eb01['plugins']['has']('TableEditing'))return;const _0x186be1=_0x41eb01['locale'],_0x4c3e50=_0x41eb01['plugins']['get']('TrackChangesEditing'),_0x2c9b4f=_0x41eb01['plugins']['get']('TableUtils');_0x4c3e50['descriptionFactory']['registerElementLabel']('table',_0x404df3=>At(_0x186be1,'ELEMENT_TABLE',_0x404df3)),this['_setupColumnsRowsFixing'](),_0x4c3e50['enableCommand']('insertTable'),_0x4c3e50['enableCommand']('selectTableRow'),_0x4c3e50['enableCommand']('selectTableColumn');for(const _0x43ccf0 of['insertTableRowAbove','insertTableRowBelow']){const _0x4b1025=_0x41eb01['commands']['get'](_0x43ccf0);_0x4c3e50['enableCommand'](_0x43ccf0,_0xbd19a6=>{_0x41eb01['model']['change'](_0x4888ad=>{_0xbd19a6();const _0x572151='above'===_0x4b1025['order'],_0x44062f=_0x2c9b4f['getSelectionAffectedTableCells'](_0xdb22e8),_0xb64687=_0x2c9b4f['getRowIndexes'](_0x44062f),_0x27a47f=_0x572151?_0xb64687['first']-0x1:_0xb64687['last']+0x1,_0x59cf4e=_0x44062f[0x0]['findAncestor']('table'),_0x3554ff=_0x2c9b4f['createTableWalker'](_0x59cf4e,{'startRow':_0x27a47f,'endRow':_0x27a47f}),_0x47a974=Array['from'](_0x3554ff)['map'](_0x562112=>_0x4888ad['createRangeOn'](_0x562112['cell']));_0x4c3e50['markMultiRangeInsertion'](_0x47a974,'tableRow');});});}for(const _0x3a695e of['insertTableColumnLeft','insertTableColumnRight']){const _0x43a6aa=_0x41eb01['commands']['get'](_0x3a695e);_0x4c3e50['enableCommand'](_0x3a695e,_0x36db0d=>{_0x41eb01['model']['change'](_0x30b57e=>{_0x36db0d();const _0x224c5a='left'===_0x43a6aa['order'],_0x2fcc2f=_0x2c9b4f['getSelectionAffectedTableCells'](_0xdb22e8),_0x183ec3=_0x2c9b4f['getColumnIndexes'](_0x2fcc2f),_0x5a62c7=_0x224c5a?_0x183ec3['first']-0x1:_0x183ec3['last']+0x1,_0x2b9862=_0x2fcc2f[0x0]['findAncestor']('table'),_0x591dc9=_0x2c9b4f['createTableWalker'](_0x2b9862,{'startRow':0x0,'column':_0x5a62c7,'includeAllSlots':!0x1}),_0x4f437e=Array['from'](_0x591dc9)['map'](_0x550fd8=>_0x30b57e['createRangeOn'](_0x550fd8['cell']));_0x4c3e50['markMultiRangeInsertion'](_0x4f437e,'tableColumn');});});}for(const _0x70bae2 of['removeTableRow','removeTableColumn']){const _0x2f9f06=_0x70bae2['substr'](0xb),_0x11529a=_0x2f9f06['toLowerCase'](),_0x50ad6f=_0x11529a['substr'](0x0,0x3)+'span',_0x329ac2='table'+_0x2f9f06,_0x2f16e='min'+_0x2f9f06,_0x26e594='max'+_0x2f9f06;_0x4c3e50['enableCommand'](_0x70bae2,()=>{_0x41eb01['model']['change'](_0x5ca335=>{const _0x385aa1=_0x2c9b4f['getSelectionAffectedTableCells'](_0xdb22e8),_0x259bf6=_0x385aa1[0x0]['findAncestor']('table');let _0x5bb84b;if('removeTableRow'==_0x70bae2){const _0x144eef=_0x2c9b4f['getRowIndexes'](_0x385aa1);_0x5bb84b={'startRow':_0x144eef['first'],'endRow':_0x144eef['last'],'includeAllSlots':!0x0};}else{const _0x27ed6a=_0x2c9b4f['getColumnIndexes'](_0x385aa1);_0x5bb84b={'startColumn':_0x27ed6a['first'],'endColumn':_0x27ed6a['last'],'includeAllSlots':!0x0};}const _0x49ecba=_0x2c9b4f['createTableWalker'](_0x259bf6,_0x5bb84b),_0x30148a=Array['from'](_0x49ecba)['map'](({cell:_0x1838b1})=>_0x1838b1),_0x17670e=Re(_0x30148a['filter'](_0x3174a0=>_0x3174a0['hasAttribute'](_0x50ad6f))),_0x130b3a=Re(_0x30148a['filter'](_0x179dcf=>!_0x179dcf['hasAttribute'](_0x50ad6f)))['map'](_0x20f367=>_0x5ca335['createRangeOn'](_0x20f367)),_0x462e89=_0x4c3e50['markMultiRangeDeletion'](_0x130b3a,_0x329ac2);if(_0x462e89&&('tableRow'==_0x462e89['subType']||'tableColumn'==_0x462e89['subType'])){const _0x1a65a2=this['_getSuggestionCoords'](_0x462e89);for(const _0x2fb765 of _0x17670e){const _0x27ebac=_0x5ca335['createRangeOn'](_0x2fb765),_0x480d15=_0x2c9b4f['getCellLocation'](_0x2fb765),_0x1e27b7=_0x2fb765['getAttribute'](_0x50ad6f)-0x1,_0x629759=_0x1a65a2[_0x2f16e],_0x505ed7=_0x1a65a2[_0x26e594];_0x629759<=_0x480d15[_0x11529a]&&_0x480d15[_0x11529a]+_0x1e27b7<=_0x505ed7&&_0x462e89['addRange'](_0x27ebac);}}});});}function _0x56a868(_0x3b9917){const _0x41e034=Array['from'](_0xdb22e8['getRanges']())['map'](_0x2ac480=>_0x4f142a['fromRange'](_0x2ac480));_0x41eb01['model']['change'](_0x4a5f0a=>{const _0x5d5b6d=_0x4a5f0a['batch'];_0x3b9917=_0x3b9917['filter'](_0x73167e=>'$graveyard'!=_0x73167e['root']['rootName']),_0x4a5f0a['setSelection'](_0x3b9917),_0x41eb01['commands']['get']('removeTableRow')['refresh'](),_0x41eb01['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x41eb01['model']['enqueueChange'](()=>{_0x41eb01['model']['enqueueChange'](_0x5d5b6d,_0x28b621=>{const _0xfb9f8e=_0x41e034['filter'](_0x968150=>'$graveyard'!=_0x968150['root']['rootName']);_0xfb9f8e['length']>0x0&&_0x28b621['setSelection'](_0xfb9f8e);for(const _0x2a2ba9 of _0x41e034)_0x2a2ba9['detach']();});});});}function _0x590fb0(_0x447856){_0x41eb01['model']['change'](_0x2f1a6d=>{const _0x842c7f=Array['from'](_0xdb22e8['getRanges']())['map'](_0x40d632=>_0x4f142a['fromRange'](_0x40d632)),_0x11b59a=[];for(const _0x456352 of _0x447856)for(const _0x28a2c9 of _0x456352['getItems']({'shallow':!0x0}))_0x11b59a['push'](_0x28a2c9);for(const _0x190177 of _0x11b59a)'$graveyard'!=_0x190177['root']['rootName']&&(_0x2f1a6d['setSelection'](_0x2f1a6d['createPositionAt'](_0x190177,0x0)),_0x41eb01['commands']['get']('removeTableColumn')['refresh'](),_0x41eb01['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5a66d4=_0x842c7f['filter'](_0x11fdd3=>'$graveyard'!=_0x11fdd3['root']['rootName']);_0x5a66d4['length']>0x0&&_0x2f1a6d['setSelection'](_0x5a66d4);for(const _0x350229 of _0x842c7f)_0x350229['detach']();});}function _0x4168bb(_0x41b78b,_0x4c559e){return _0x4c559e['every'](_0x16a38b=>_0x41b78b['some'](_0x8883c3=>_0x8883c3['end']['isEqual'](_0x16a38b['start'])||_0x16a38b['end']['isEqual'](_0x8883c3['start'])));}function _0x441ee5(_0x18d198,_0x10a872){return!_0x18d198['some'](_0x33297a=>_0x10a872['some'](_0x17ca6d=>_0x33297a['isIntersecting'](_0x17ca6d)))&&_0x18d198['some'](_0x52abe5=>_0x10a872['some'](_0x177b47=>_0x52abe5['end']['isTouching'](_0x177b47['start'])));}_0x4c3e50['descriptionFactory']['registerDescriptionCallback'](_0x1dcb9d=>{if('insertion'!=_0x1dcb9d['type']&&'deletion'!=_0x1dcb9d['type'])return;const _0x4c7631=_0x1dcb9d['getContainedElement']();if(null!=_0x4c7631&&_0x4c7631['is']('element','table')){if('insertion'==_0x1dcb9d['type']){const _0x55a0b2=_0x1dcb9d['getItems']()['filter'](_0x1f22b6=>_0x1f22b6['is']('$textProxy'))['map'](_0x1a063f=>_0x1a063f['data']);if(_0x55a0b2['length'])return{'type':'insertion','content':At(_0x186be1,'*Insert:*\x20%0',At(_0x186be1,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x55a0b2['join']('\x20')+'\x22'))};}if('deletion'==_0x1dcb9d['type']){const _0x420b7c=_0x1dcb9d['getItems']()['filter'](_0x5e32b2=>_0x5e32b2['is']('$textProxy'))['map'](_0x5c6ed5=>_0x5c6ed5['data']);if(_0x420b7c['length'])return{'type':'deletion','content':At(_0x186be1,'*Remove:*\x20%0',At(_0x186be1,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x420b7c['join']('\x20')+'\x22'))};}}}),_0x4c3e50['descriptionFactory']['registerDescriptionCallback'](_0x2e5607=>{if('tableRow'==_0x2e5607['subType']){const _0x5d11ca=_0x2e5607['getItems']()['filter'](_0x3c6636=>_0x3c6636['is']('$textProxy'))['map'](_0x1fe6e5=>_0x1fe6e5['data']),_0x1142a9=this['_getSuggestionCoords'](_0x2e5607),_0x37a7bb=_0x1142a9['maxRow']-_0x1142a9['minRow']+0x1;if('insertion'==_0x2e5607['type'])return _0x5d11ca['length']?{'type':'insertion','content':At(_0x186be1,'*Insert:*\x20%0',At(_0x186be1,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x37a7bb,'\x22'+_0x5d11ca['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x186be1,'*Insert:*\x20%0',At(_0x186be1,'ELEMENT_TABLE_ROW',_0x37a7bb))};if('deletion'==_0x2e5607['type'])return _0x5d11ca['length']?{'type':'deletion','content':At(_0x186be1,'*Remove:*\x20%0',At(_0x186be1,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x37a7bb,'\x22'+_0x5d11ca['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x186be1,'*Remove:*\x20%0',At(_0x186be1,'ELEMENT_TABLE_ROW',_0x37a7bb))};}if('tableColumn'==_0x2e5607['subType']){const _0x189a13=_0x2e5607['getItems']()['filter'](_0x43c307=>_0x43c307['is']('$textProxy'))['map'](_0xadb66b=>_0xadb66b['data']),_0x43696f=this['_getSuggestionCoords'](_0x2e5607),_0x17c13a=_0x43696f['maxColumn']-_0x43696f['minColumn']+0x1;if('insertion'==_0x2e5607['type'])return _0x189a13['length']?{'type':'insertion','content':At(_0x186be1,'*Insert:*\x20%0',At(_0x186be1,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x17c13a,'\x22'+_0x189a13['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x186be1,'*Insert:*\x20%0',At(_0x186be1,'ELEMENT_TABLE_COLUMN',_0x17c13a))};if('deletion'==_0x2e5607['type'])return _0x189a13['length']?{'type':'deletion','content':At(_0x186be1,'*Remove:*\x20%0',At(_0x186be1,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x17c13a,'\x22'+_0x189a13['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x186be1,'*Remove:*\x20%0',At(_0x186be1,'ELEMENT_TABLE_COLUMN',_0x17c13a))};}}),_0x4c3e50['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x56a868),_0x4c3e50['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x56a868),_0x4c3e50['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x590fb0),_0x4c3e50['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x590fb0),_0x4c3e50['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4168bb),_0x4c3e50['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4168bb),_0x4c3e50['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x441ee5),_0x4c3e50['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x441ee5);}['_acceptFormatSuggestionCallbackFactory'](){const _0x189706=this['editor'],_0x165d84=_0x189706['model']['document']['selection'];return(_0xff7a55,_0x1ef2d7)=>{_0x189706['model']['change'](_0x3dbfe5=>{const {commandName:_0x3f4773,commandParams:_0x320eab}=_0x1ef2d7;let _0x487bca=_0xff7a55[0x0]['end']['nodeBefore'];_0x320eab&&_0x320eab[0x0]&&!0x1===_0x320eab[0x0]['forceValue']&&(_0x487bca=_0xff7a55[0x0]['start']['nodeAfter']);const _0x18bb1=_0x3dbfe5['createRangeIn'](_0x487bca);if('$graveyard'==_0x18bb1['root']['rootName'])return;const _0x1a3acb=Array['from'](_0x165d84['getRanges']())['map'](_0xfb9076=>_0x4f142a['fromRange'](_0xfb9076));_0x3dbfe5['setSelection'](_0x18bb1),_0x189706['commands']['get'](_0x3f4773)['refresh'](),_0x320eab['push']({'forceDefaultExecution':!0x0}),_0x189706['execute'](_0x3f4773,..._0x320eab);const _0x463764=_0x1a3acb['filter'](_0x447437=>'$graveyard'!=_0x447437['root']['rootName']);_0x463764['length']>0x0&&_0x3dbfe5['setSelection'](_0x463764);for(const _0x2a6f29 of _0x1a3acb)_0x2a6f29['detach']();});};}['_getCoordsForCells'](_0x57d5b0){const _0x221a53=this['editor']['plugins']['get']('TableUtils');let _0x395e18=Number['MAX_SAFE_INTEGER'],_0x5dbeb1=Number['MIN_SAFE_INTEGER'],_0x491e31=Number['MAX_SAFE_INTEGER'],_0x1d3c1f=Number['MIN_SAFE_INTEGER'];for(const _0x634065 of _0x57d5b0){if('$graveyard'==_0x634065['root']['rootName'])continue;const {row:_0x1b08e2,column:_0x496025}=_0x221a53['getCellLocation'](_0x634065),_0x15fb47=_0x634065['hasAttribute']('rowspan')?_0x634065['getAttribute']('rowspan')-0x1:0x0,_0x3d12cd=_0x634065['hasAttribute']('colspan')?_0x634065['getAttribute']('colspan')-0x1:0x0;_0x395e18=_0x1b08e2<_0x395e18?_0x1b08e2:_0x395e18,_0x5dbeb1=_0x1b08e2+_0x15fb47>_0x5dbeb1?_0x1b08e2+_0x15fb47:_0x5dbeb1,_0x491e31=_0x496025<_0x491e31?_0x496025:_0x491e31,_0x1d3c1f=_0x496025+_0x3d12cd>_0x1d3c1f?_0x496025+_0x3d12cd:_0x1d3c1f;}return{'minRow':_0x395e18,'maxRow':_0x5dbeb1,'minColumn':_0x491e31,'maxColumn':_0x1d3c1f};}['_setupColumnsRowsFixing'](){const _0x431faf=this['editor'],_0x583db8=_0x431faf['plugins']['get']('TrackChangesEditing'),_0x3b1b9f=_0x431faf['plugins']['get']('TableUtils');_0x431faf['model']['document']['on']('change:data',()=>{const _0x1202d6=Array['from'](_0x431faf['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xa678ee,data:_0x273b70}of _0x1202d6){const {group:_0x5bb7f5,id:_0x5b6952,subType:_0xd7ae5e}=_0x329859(_0xa678ee);if('suggestion'!=_0x5bb7f5)continue;if(null!=_0x273b70['oldRange'])continue;const _0x2d0e8e=_0x583db8['getSuggestion'](_0x5b6952);this['_tablePostFixingSubtypes']['includes'](_0xd7ae5e)&&this['_tableSuggestions']['add'](_0x2d0e8e);}},{'priority':'low'});const _0x49c086=(_0x4bf633,_0x85d73)=>{let _0x572dc3=!0x1;const _0xc54b9b=_0x85d73['createRangeOn'](_0x4bf633),_0x2d0c90=_0x4bf633['findAncestor']('table'),_0x42978b=_0x3b1b9f['getCellLocation'](_0x4bf633);for(const _0x4925d4 of this['_tableSuggestions']){const _0x40925a=_0x4925d4['subType'],_0x3bda32=_0x40925a['startsWith']('tablePaste'),_0x4f0dae=_0x40925a['substr'](_0x3bda32?0xa:0x5),_0x196dca=_0x4f0dae['toLowerCase'](),_0x1b36be=_0x196dca['substr'](0x0,0x3)+'span',_0x356422='min'+_0x4f0dae,_0x51c64e='max'+_0x4f0dae;if(!_0x4925d4['isInContent'])continue;if(_0x2d0c90!=_0x4925d4['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4925d4['isIntersectingWithRange'](_0xc54b9b))continue;const _0x49843f=_0x4bf633['hasAttribute'](_0x1b36be)?_0x4bf633['getAttribute'](_0x1b36be)-0x1:0x0,_0x5a7fe5=this['_getSuggestionCoords'](_0x4925d4),_0xf6cfb8=_0x5a7fe5[_0x356422],_0x51f955=_0x5a7fe5[_0x51c64e];_0xf6cfb8<=_0x42978b[_0x196dca]&&_0x42978b[_0x196dca]+_0x49843f<=_0x51f955&&(_0x4925d4['addRange'](_0xc54b9b),_0x572dc3=!0x0);}return _0x572dc3;};_0x431faf['model']['document']['registerPostFixer'](_0x52375d=>{let _0x3912de=!0x1;for(const _0x373575 of _0x431faf['model']['document']['differ']['getChanges']())if('insert'==_0x373575['type']){if('tableRow'==_0x373575['name']){for(const _0x4603de of _0x373575['position']['nodeAfter']['getChildren']())_0x3912de=_0x3912de||_0x49c086(_0x4603de,_0x52375d);}else'tableCell'==_0x373575['name']&&(_0x3912de=_0x3912de||_0x49c086(_0x373575['position']['nodeAfter'],_0x52375d));}return _0x3912de;});}['_getSuggestionCoords'](_0x519de6){return this['_getCoordsForCells'](_0x519de6['getRanges']()['map'](_0x4c7525=>_0x4c7525['start']['nodeAfter']));}}function Re(_0x31b694){return Array['from'](new Set(_0x31b694)['values']());}class Se extends _0x2d10d9{static get['requires'](){return[Ne];}['afterInit'](){const _0x5e7ec2=this['editor'],_0x32c0fc=_0x5e7ec2['model']['document']['selection'],_0x399fd1=_0x5e7ec2['locale'];if(!_0x5e7ec2['plugins']['has']('TableEditing'))return;const _0xee5a58=_0x5e7ec2['plugins']['get']('TrackChangesEditing'),_0x9add54=_0x5e7ec2['plugins']['get']('TableUtils'),_0x1dfef6=_0x5e7ec2['plugins']['get'](Ne);_0x1dfef6['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xee5a58['enableCommand']('mergeTableCells',()=>{const _0x52fc36=_0x9add54['getSelectionAffectedTableCells'](_0x5e7ec2['model']['document']['selection']);_0x5e7ec2['model']['change'](()=>{_0xee5a58['markMultiRangeBlockFormat'](_0x52fc36,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5e7ec2['commands']['get']('mergeTableCells')['on']('execute',(_0x4cae18,_0x562b57)=>{_0x5e7ec2['commands']['get']('trackChanges')['value']&&(_0x562b57['length']>0x0&&_0x562b57[_0x562b57['length']-0x1]&&_0x562b57[_0x562b57['length']-0x1]['forceDefaultExecution']||_0xee5a58['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4cae18['stop']());},{'priority':'highest'});for(const _0x1f6976 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x439c16=_0x5e7ec2['commands']['get'](_0x1f6976);_0xee5a58['enableCommand'](_0x1f6976,()=>{const _0x4f8e3b=_0x5e7ec2['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5bb061=>_0x5bb061['is']('element','tableCell')),_0x35f668=_0x439c16['value'];_0x5e7ec2['model']['change'](()=>{_0xee5a58['markMultiRangeBlockFormat']([_0x4f8e3b,_0x35f668],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5d0e06 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x60d75e=_0x5e7ec2['commands']['get'](_0x5d0e06);_0xee5a58['enableCommand'](_0x5d0e06,()=>{const _0x3ecb4e=_0x9add54['getSelectionAffectedTableCells'](_0x5e7ec2['model']['document']['selection'])[0x0],_0x5dc363=_0x3ecb4e['findAncestor']('table'),{column:_0x42593c,row:_0x6b4095}=_0x9add54['getCellLocation'](_0x3ecb4e);let _0x3ba16a=[];if('horizontally'==_0x60d75e['direction']){const _0x4b8f29=_0x9add54['createTableWalker'](_0x5dc363,{'startRow':_0x6b4095,'endRow':_0x6b4095,'includeAllSlots':!0x0});_0x3ba16a=Array['from'](_0x4b8f29)['map'](_0x23bcdb=>_0x23bcdb['cell']);}else{const _0x289f12=_0x9add54['createTableWalker'](_0x5dc363,{'column':_0x42593c,'includeAllSlots':!0x0});_0x3ba16a=Array['from'](_0x289f12)['map'](_0x51c22e=>_0x51c22e['cell']);}_0x5e7ec2['model']['change'](_0x20fff5=>{_0xee5a58['markBlockFormat'](_0x20fff5['createRangeOn'](_0x3ecb4e),{'commandName':_0x5d0e06,'commandParams':[]},_0x3ba16a,_0x5d0e06);});});}_0xee5a58['descriptionFactory']['registerDescriptionCallback'](_0x356504=>{if('formatBlock'!=_0x356504['type']&&'formatInline'!=_0x356504['type'])return;const {data:_0x1feaa4}=_0x356504;return _0x1feaa4&&'mergeTableCells'==_0x1feaa4['commandName']?{'type':'format','content':At(_0x399fd1,'*Merge\x20cells*')}:void 0x0;}),_0xee5a58['descriptionFactory']['registerDescriptionCallback'](_0x2008f0=>{if('formatBlock'!=_0x2008f0['type']&&'formatInline'!=_0x2008f0['type'])return;const {data:_0x3084b3}=_0x2008f0;return _0x3084b3?'splitTableCellVertically'==_0x3084b3['commandName']?{'type':'format','content':At(_0x399fd1,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3084b3['commandName']?{'type':'format','content':At(_0x399fd1,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x331e7f=_0x1dfef6['_acceptFormatSuggestionCallbackFactory']();for(const _0x3a106c of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xee5a58['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3a106c,'accept',_0x331e7f);for(const _0x224b0f of['splitTableCellVertically','splitTableCellHorizontally'])_0xee5a58['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x224b0f,'accept',_0x331e7f);_0xee5a58['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x20d22b=>{_0x5e7ec2['model']['change'](_0x56ce22=>{const _0x153b18=Array['from'](_0x32c0fc['getRanges']())['map'](_0x23c8c7=>_0x4f142a['fromRange'](_0x23c8c7));_0x56ce22['setSelection'](_0x20d22b),_0x5e7ec2['commands']['get']('mergeTableCells')['refresh'](),_0x5e7ec2['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1bb743=_0x153b18['filter'](_0x5e24b4=>'$graveyard'!=_0x5e24b4['root']['rootName']);_0x1bb743['length']>0x0&&_0x56ce22['setSelection'](_0x1bb743);for(const _0x1c97a8 of _0x153b18)_0x1c97a8['detach']();});});for(const _0x5bb073 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x57c10f=_0x5e7ec2['commands']['get'](_0x5bb073);_0x57c10f['on']('set:isEnabled',(_0x503f28,_0xd3f9f,_0x1235b1)=>{if(_0x1235b1){const _0x55d47b=_0x5e7ec2['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x53e55f=>_0x53e55f['is']('element','tableCell'));this['_areMergableCells'](_0x57c10f['value'],_0x55d47b)||(_0x503f28['return']=!0x1,_0x503f28['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xddc69e=this['editor']['commands']['get']('mergeTableCells'),_0x2d580d=this['editor']['plugins']['get']('TableUtils');if(!_0xddc69e['isEnabled'])return!0x1;const _0x4ed99d=_0x2d580d['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0xb5a48b of _0x4ed99d)for(const _0x5530b0 of _0x4ed99d)if(_0xb5a48b!=_0x5530b0&&!this['_areMergableCells'](_0xb5a48b,_0x5530b0))return!0x1;return!0x0;}['_areMergableCells'](_0x315f80,_0x52ad94){const _0x3eca42=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5f17ae=this['editor']['model']['createRangeOn'](_0x315f80),_0x11443a=this['editor']['model']['createRangeOn'](_0x52ad94),_0x515ffe=new Set(),_0x2f28fc=new Set();for(const _0x258f0c of _0x3eca42['getSuggestions']())if(('insertion'==_0x258f0c['type']||'deletion'==_0x258f0c['type']||'mergeTableCells'==_0x258f0c['subType'])&&_0x258f0c['isInContent']){for(const _0x1d886c of _0x258f0c['getRanges']())_0x1d886c['containsRange'](_0x5f17ae,!0x0)&&_0x515ffe['add'](_0x258f0c['type']+':'+_0x258f0c['author']['id']),_0x1d886c['containsRange'](_0x11443a,!0x0)&&_0x2f28fc['add'](_0x258f0c['type']+':'+_0x258f0c['author']['id']);}if(_0x515ffe['size']!=_0x2f28fc['size'])return!0x1;for(const _0x375a1d of _0x515ffe)if(!_0x2f28fc['has'](_0x375a1d))return!0x1;return!0x0;}}class Me extends _0x2d10d9{static get['requires'](){return[Ne];}['afterInit'](){const _0x317f7c=this['editor'];if(!_0x317f7c['plugins']['has']('TableEditing'))return;const _0x2226c1=_0x317f7c['locale'],_0x217942=_0x317f7c['plugins']['get']('TrackChangesEditing');_0x217942['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x217942['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x217942['descriptionFactory']['registerAttributeLabel']('headingRows',At(_0x2226c1,'FORMAT_HEADER_ROW')),_0x217942['descriptionFactory']['registerAttributeLabel']('headingColumns',At(_0x2226c1,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2a89f6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d11b3=this['editor']['plugins']['get'](Ne)['_acceptFormatSuggestionCallbackFactory']();_0x2a89f6['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3d11b3),_0x2a89f6['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3d11b3),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x6b49e4=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe774f4=this['editor']['plugins']['get']('TableUtils');function _0x259036({showActiveMarker:_0x3f6f52=!0x0,setDataAttribute:_0x1c8bb1=!0x0}={}){return(_0x5d378a,_0x56421c,_0x2eb0af)=>{const {type:_0x4f79d9,id:_0x3ddb29}=_0x329859(_0x56421c['markerName']);if(!_0x6b49e4['hasSuggestion'](_0x3ddb29))return;const _0x4ba059=_0x6b49e4['getSuggestion'](_0x3ddb29),_0x5023d8=_0x4ba059['data'];if('formatBlock'!=_0x4ba059['type']||!_0x5023d8||'setTableColumnHeader'!=_0x5023d8['commandName'])return;if(_0x56421c['item'])return void _0x5d378a['stop']();if(!_0x2eb0af['consumable']['consume'](_0x56421c['markerRange'],_0x5d378a['name']))return;const _0x14ccd1=_0x56421c['markerRange']['start']['nodeAfter'],_0x4d638b=_0x56421c['markerRange']['end']['nodeBefore'],_0x5590ee=_0x14ccd1['parent']['parent'],{column:_0x56b895}=_0xe774f4['getCellLocation'](_0x14ccd1),{column:_0x2e0176}=_0xe774f4['getCellLocation'](_0x4d638b);for(let _0x461e25=_0x56b895;_0x461e25<=_0x2e0176;_0x461e25++){const _0x257ac5=_0xe774f4['createTableWalker'](_0x5590ee,{'column':_0x461e25,'includeAllSlots':!0x1});for(const _0x19f3b6 of _0x257ac5){const _0x563eac=_0x19f3b6['cell'],_0x174b7f=_0x2eb0af['mapper']['toViewElement'](_0x563eac);_0x2eb0af['writer']['addClass']('ck-suggestion-marker-'+_0x4f79d9,_0x174b7f),_0x1c8bb1&&_0x2eb0af['writer']['setAttribute']('data-suggestion',_0x3ddb29,_0x174b7f),_0x2eb0af['mapper']['bindElementToMarker'](_0x174b7f,_0x56421c['markerName']),_0x3f6f52&&(_0x6b49e4['activeMarkers']['includes'](_0x56421c['markerName'])?_0x2eb0af['writer']['addClass']('ck-suggestion-marker--active',_0x174b7f):_0x2eb0af['writer']['removeClass']('ck-suggestion-marker--active',_0x174b7f));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x259036(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1f7065,_0x36e471,_0x918499)=>{_0x918499['options']['showSuggestionHighlights']&&_0x259036({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1f7065,_0x36e471,_0x918499);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x14030f,_0x65afe7,_0x1e0b1a)=>{const {type:_0x540431,id:_0x2840c7}=_0x329859(_0x65afe7['markerName']);if(!_0x6b49e4['hasSuggestion'](_0x2840c7))return;const _0x7e2161=_0x6b49e4['getSuggestion'](_0x2840c7),_0x3195df=_0x7e2161['data'];if('formatBlock'!=_0x7e2161['type']||!_0x3195df||'setTableColumnHeader'!=_0x3195df['commandName'])return;const _0x534c6d=_0x1e0b1a['mapper']['markerNameToElements'](_0x65afe7['markerName']);if(_0x534c6d){for(const _0xadb3d1 of _0x534c6d)_0x1e0b1a['writer']['removeClass']('ck-suggestion-marker-'+_0x540431,_0xadb3d1),_0x1e0b1a['writer']['removeClass']('ck-suggestion-marker--active',_0xadb3d1),_0x1e0b1a['writer']['removeAttribute']('data-suggestion',_0xadb3d1),_0x1e0b1a['mapper']['unbindElementFromMarkerName'](_0xadb3d1,_0x65afe7['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x53b4ee=this['editor'],_0xccf28f=_0x53b4ee['locale'];function _0x6a24ce(_0x2d387c){return{'type':'format','content':At(_0xccf28f,'*Format:*\x20%0',_0x2d387c)};}_0x53b4ee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f0b69=>{if('formatBlock'!=_0x1f0b69['type'])return;const {data:_0x4a73ea}=_0x1f0b69;if(_0x4a73ea){if('setTableRowHeader'==_0x4a73ea['commandName']){const _0x3e3956=_0x4a73ea['commandParams'][0x0]['forceValue'];return _0x6a24ce(At(_0xccf28f,_0x3e3956?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4a73ea['commandName']){const _0x3da9f5=_0x4a73ea['commandParams'][0x0]['forceValue'];return _0x6a24ce(At(_0xccf28f,_0x3da9f5?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Oe extends _0x2d10d9{static get['requires'](){return[Ne];}['afterInit'](){const _0x23d158=this['editor'];if(!_0x23d158['plugins']['has']('TableEditing')||!_0x23d158['config']['get']('table.enableFooters'))return;const _0x511f6b=_0x23d158['locale'],_0x58780d=_0x23d158['plugins']['get']('TrackChangesEditing');_0x58780d['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x58780d['descriptionFactory']['registerAttributeLabel']('footerRows',At(_0x511f6b,'FORMAT_FOOTER_ROW'));}}class we extends _0x2d10d9{['afterInit'](){const _0x694ea5=this['editor'],_0x1833ea=_0x694ea5['locale'],_0x1b0fb5=_0x694ea5['plugins']['get']('TrackChangesEditing');function _0x2da2a9(_0x5d16c9){return{'type':'format','content':''+At(_0x1833ea,'*Set\x20table\x20type:*\x20%0',_0x5d16c9)};}_0x694ea5['plugins']['has']('TableLayout')&&(_0x1b0fb5['enableCommand']('insertTableLayout'),_0x1b0fb5['enableDefaultAttributesIntegration']('tableType'),_0x1b0fb5['descriptionFactory']['registerElementLabel'](_0xf39a04=>_0xf39a04['is']('element','table')&&'layout'===_0xf39a04['getAttribute']('tableType'),_0xfb3a35=>At(_0x1833ea,'ELEMENT_LAYOUT_TABLE',_0xfb3a35)),_0x1b0fb5['descriptionFactory']['registerDescriptionCallback'](_0x1a384b=>{const {data:_0x391f52}=_0x1a384b;if(_0x391f52&&'tableType'==_0x391f52['key'])switch(_0x391f52['newValue']){case'layout':return _0x2da2a9(At(_0x1833ea,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x2da2a9(At(_0x1833ea,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Fe=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Be['map'](_0x1f0163=>[_0x1f0163,null]));class De extends _0x2d10d9{static get['requires'](){return[Ne];}['afterInit'](){const _0x4e4f00=this['editor'];if(!_0x4e4f00['plugins']['has']('TableClipboard'))return;const _0x4a6b2d=_0x4e4f00['plugins']['get']('TrackChangesEditing'),_0x1c53ad=_0x4e4f00['plugins']['get']('TableUtils'),_0x37a1b9=_0x4e4f00['plugins']['get'](Ne),_0x3fbbdf=_0x4e4f00['plugins']['get']('TableClipboard'),_0x441388=_0x4e4f00['plugins']['get']('TableSelection'),_0x1666b8=_0x4e4f00['plugins']['get'](ut);_0x37a1b9['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4e4f00['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4e4f00['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xc73053=null,_0x39b889=!0x1;_0x1666b8['on']('contentInsertion',(_0x3ed557,_0x1aa8a7)=>{_0x39b889='paste'===_0x1aa8a7['method'];}),_0x4e4f00['model']['on']('insertContent',(_0x12de41,_0x29a60d)=>{if(!_0x39b889&&null===_0x441388['getSelectedTableCells']())return;const [_0x55b54f,_0x4f9df9]=_0x29a60d,_0x114ce5=_0x29a60d[_0x29a60d['length']-0x1];_0x114ce5&&_0x114ce5['forceDefaultExecution']||_0x4a6b2d['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2fbc9d,_0xd40c2c,_0x26e6ff,_0x2e71f8,_0x120c0c){if(_0xd40c2c&&!_0xd40c2c['is']('documentSelection'))return!0x1;const _0x4207df=_0x120c0c['getTableIfOnlyTableInContent'](_0x2fbc9d,_0x26e6ff);if(!_0x4207df||!xe(_0x4207df,void 0x0,_0x2e71f8))return!0x1;const _0x458e92=_0x2e71f8['getSelectionAffectedTableCells'](_0x26e6ff['document']['selection']);if(!_0x458e92['length'])return!0x1;const _0x481b13=_0x458e92[0x0]['findAncestor']('table'),_0x16e44a=_0x2e71f8['getRowIndexes'](_0x458e92),_0x1caa85=_0x2e71f8['getColumnIndexes'](_0x458e92),_0x174971={'startRow':_0x16e44a['first'],'endRow':_0x16e44a['last'],'startColumn':_0x1caa85['first'],'endColumn':_0x1caa85['last']};return 0x1==_0x458e92['length']&&(_0x174971['endRow']+=_0x2e71f8['getRows'](_0x4207df)-0x1,_0x174971['endColumn']+=_0x2e71f8['getColumns'](_0x4207df)-0x1),xe(_0x481b13,_0x174971,_0x2e71f8);}(_0x55b54f,_0x4f9df9,_0x4e4f00['model'],_0x1c53ad,_0x3fbbdf)&&(_0x12de41['stop'](),_0xc73053={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4e4f00['model']['change'](()=>{_0x4e4f00['model']['insertContent'](_0x29a60d[0x0],_0x29a60d[0x1],_0x29a60d[0x2],{'forceDefaultExecution':!0x0});const _0x2cbd61=_0x2d99d9(),{rowInsertionRanges:_0x10249f,columnInsertionRanges:_0x947be,insertionRanges:_0x231588,deletionRanges:_0x4a52df,cells:_0x284058}=_0xc73053;_0x10249f['length']&&_0x4a6b2d['markMultiRangeInsertion'](_0x10249f,'tablePasteRow',{'tablePasteChainId':_0x2cbd61}),_0x947be['length']&&_0x4a6b2d['markMultiRangeInsertion'](_0x947be,'tablePasteColumn',{'tablePasteChainId':_0x2cbd61}),_0x231588['length']&&(_0x4a6b2d['markMultiRangeInsertion'](_0x231588,'tablePaste',{'tablePasteChainId':_0x2cbd61,'skipNestingCheck':!0x0}),_0x231588['forEach'](_0x5ca27b=>_0x5ca27b['detach']?.())),_0x4a52df['length']&&(_0x4a6b2d['markMultiRangeDeletion'](_0x4a52df,'tablePaste',{'tablePasteChainId':_0x2cbd61,'skipNestingCheck':!0x0}),_0x4a52df['forEach'](_0x3164df=>_0x3164df['detach']?.()));const _0x4d33b3=_0x4a6b2d['markMultiRangeBlockFormat'](_0x284058['map'](({element:_0x3f5509})=>_0x3f5509),{'formatGroupId':_0x2d99d9()},[],'tablePasteCell',{'tablePasteChainId':_0x2cbd61});if(_0x4d33b3){const _0xba91ef=_0x4d33b3['getMarkers'](),_0x4be7fe=[];for(const {element:_0x3893bc,attributes:_0x293de1}of _0x284058){if(!_0x293de1)continue;const _0xf4fa2d=_0x4e4f00['model']['createRangeOn'](_0x3893bc),_0x15104b=_0xba91ef['find'](_0x1bec03=>_0x1bec03['getRange']()['isEqual'](_0xf4fa2d));_0x15104b&&_0x4be7fe['push']([_0x15104b['name'],_0x293de1]);}_0x4be7fe['length']&&_0x4d33b3['setAttribute']('markerAttributes',Object['fromEntries'](_0x4be7fe));}_0xc73053=null;}));},{'priority':_0x46da9c['high']+0xa}),_0x1666b8['on']('contentInsertion',()=>{_0x39b889=!0x1;},{'priority':'lowest'}),_0x4e4f00['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x28a567,_0x1ff14b)=>{const [_0x2be9f8,_0x175fac,,_0x1c81bc]=_0x1ff14b;if(!_0xc73053)return;_0x28a567['stop']();const _0x109ce2=_0x2be9f8['cell'],_0x5b9a41=_0x175fac,_0xc76cde=ve(_0x109ce2),_0x57669d=ve(_0x5b9a41);_0x28a567['return']=_0x109ce2;let _0x5060c3=null,_0x7362f=null;if(_0x57669d||_0xc76cde){if(_0xc76cde&&!_0x57669d){_0x1c81bc['remove'](_0x109ce2['getChild'](0x0));for(const _0x44be4c of Array['from'](_0x5b9a41['getChildren']()))_0x1c81bc['insert'](_0x44be4c,_0x109ce2,'end');const _0x27b28e=_0xc73053['rowInsertionIndexes']['includes'](_0x2be9f8['row']),_0x2e5442=_0xc73053['columnInsertionIndexes']['includes'](_0x2be9f8['column']);_0x27b28e||_0x2e5442||(_0x5060c3=_0x4f142a['fromRange'](_0x1c81bc['createRangeIn'](_0x109ce2)));}else _0x57669d&&!_0xc76cde&&(_0x7362f=_0x1c81bc['createRangeIn'](_0x109ce2));}else{const _0x555e5b=_0x1c81bc['createElement']('tableCellSuggestion'),_0x4e1f33=_0x1c81bc['createElement']('tableCellSuggestion');_0x1c81bc['wrap'](_0x1c81bc['createRangeIn'](_0x109ce2),_0x4e1f33),_0x1c81bc['insert'](_0x555e5b,_0x109ce2,0x0);for(const _0x169288 of Array['from'](_0x5b9a41['getChildren']()))_0x1c81bc['insert'](_0x169288,_0x555e5b,'end');_0x5060c3=_0x4f142a['fromRange'](_0x1c81bc['createRangeOn'](_0x555e5b)),_0x7362f=_0x4f142a['fromRange'](_0x1c81bc['createRangeOn'](_0x4e1f33));}const _0x20d56f=Array['from'](_0x5b9a41['getAttributes']())['filter'](([_0x39e4a7])=>Be['includes'](_0x39e4a7));_0xc73053['cells']['push']({'element':_0x109ce2,'attributes':_0x20d56f['length']?Object['fromEntries'](_0x20d56f):null}),_0x5060c3&&_0xc73053['insertionRanges']['push'](_0x5060c3),_0x7362f&&_0xc73053['deletionRanges']['push'](_0x7362f);},{'priority':'high'}),_0x1c53ad['on']('insertColumns',(_0x3dd536,_0x3b0560)=>{const [_0x394a87,_0x4178a8={}]=_0x3b0560;if(!_0xc73053)return;const _0x22e310=_0x4178a8['at']||0x0,_0x21afc2=_0x4178a8['columns']||0x1;_0xc73053['columnInsertionIndexes']=new Array(_0x21afc2)['fill'](_0x22e310)['map']((_0x4fb329,_0x449c73)=>_0x4fb329+_0x449c73);for(const {cell:_0x352997}of _0x1c53ad['createTableWalker'](_0x394a87,{'startColumn':_0x22e310,'endColumn':_0x22e310+_0x21afc2-0x1}))_0xc73053['columnInsertionRanges']['push'](_0x4e4f00['model']['createRangeOn'](_0x352997));},{'priority':'low'}),_0x1c53ad['on']('insertRows',(_0x9afb35,_0x3356ca)=>{const [_0x2805df,_0x324686={}]=_0x3356ca;if(!_0xc73053)return;const _0x495654=_0x324686['at']||0x0,_0x315c4a=_0x324686['rows']||0x1;_0xc73053['rowInsertionIndexes']=new Array(_0x315c4a)['fill'](_0x495654)['map']((_0xaedbaf,_0x2524e6)=>_0xaedbaf+_0x2524e6);for(const {cell:_0x195446}of _0x1c53ad['createTableWalker'](_0x2805df,{'startRow':_0x495654,'endRow':_0x495654+_0x315c4a-0x1}))_0xc73053['rowInsertionRanges']['push'](_0x4e4f00['model']['createRangeOn'](_0x195446));},{'priority':'low'}),_0x4a6b2d['descriptionFactory']['registerDescriptionCallback'](_0x6a398a=>{if(_0x6a398a['subType']&&_0x6a398a['subType']['startsWith']('tablePaste'))return _0x6a398a['previous']?{}:{'type':'insertion','content':At(_0x4e4f00['locale'],'*Replace\x20table\x20cells*')};});const _0x147acb=()=>!0x1;for(const _0x52e939 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4a6b2d['_suggestionFactory']['registerCustomCallback']('insertion',_0x52e939,'join',_0x147acb),_0x4a6b2d['_suggestionFactory']['registerCustomCallback']('deletion',_0x52e939,'join',_0x147acb),_0x4a6b2d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x52e939,'join',_0x147acb);_0x4a6b2d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x147acb),_0x4a6b2d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4f5a0b,_0x2c0419,_0x555c24)=>{const _0x432ff9=_0x4f5a0b['map'](_0x5f3e48=>_0x5f3e48['getContainedElement']())['filter'](_0xbe907e=>_0xbe907e),_0x3b9766=new Map(_0x432ff9['map'](_0x592d7b=>[_0x592d7b,null]));if(_0xc73053){for(const {element:_0x290500,attributes:_0x1e4a87}of _0xc73053['cells'])_0x1e4a87&&_0x3b9766['set'](_0x290500,_0x1e4a87);}else{if(_0x555c24&&_0x555c24['markerAttributes'])for(const [_0x624f,_0x1e85f6]of Object['entries'](_0x555c24['markerAttributes'])){const _0x32a61e=_0x4e4f00['model']['markers']['get'](_0x624f),_0x5d01a5=_0x32a61e?_0x32a61e['getRange']()['getContainedElement']():null;_0x5d01a5&&_0x3b9766['set'](_0x5d01a5,_0x1e85f6);}}_0x4e4f00['model']['change'](_0xd54a8b=>{for(const [_0x586ddd,_0x1f37da]of _0x3b9766)_0xd54a8b['setAttributes']({...Fe,..._0x1f37da},_0x586ddd);});});const _0x207505=(_0x49ed42,_0x24778b)=>{_0x4a6b2d['_suggestionFactory']['registerCustomCallback'](_0x49ed42,'tablePaste',_0x24778b,(_0x56a0f0,_0xb5c07c,_0x36d69b)=>{_0x4e4f00['model']['change'](_0x4b8754=>{const _0x21eda4=[];for(const _0x570bee of _0x56a0f0){const _0x7d777b=_0x570bee['start']['nodeAfter'];_0x7d777b['is']('element','tableCellSuggestion')&&_0x21eda4['push'](_0x7d777b);}_0x4a6b2d['_suggestionFactory']['getSuggestionCallback'](_0x49ed42,null,_0x24778b)(_0x56a0f0,_0xb5c07c,_0x36d69b);for(const _0x39a458 of _0x21eda4)'$graveyard'!=_0x39a458['root']['rootName']&&_0x4b8754['unwrap'](_0x39a458);});});};_0x207505('insertion','accept'),_0x207505('insertion','discard'),_0x207505('deletion','accept'),_0x207505('deletion','discard'),_0x4a6b2d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x27a4a2=>{const _0x121bcb=_0x27a4a2['map'](_0x3b8142=>_0x3b8142['getContainedElement']()),_0x1a5d06=_0x121bcb[0x0]['findAncestor']('table'),{minRow:_0x498346,maxRow:_0x502312}=_0x37a1b9['_getCoordsForCells'](_0x121bcb);_0x1c53ad['removeRows'](_0x1a5d06,{'at':_0x498346,'rows':_0x502312-_0x498346+0x1});}),_0x4a6b2d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5d1bb7=>{const _0x1c0f6d=_0x5d1bb7['map'](_0x2dd8f0=>_0x2dd8f0['getContainedElement']()),_0x489299=_0x1c0f6d[0x0]['findAncestor']('table'),{minColumn:_0x57d375,maxColumn:_0x103154}=_0x37a1b9['_getCoordsForCells'](_0x1c0f6d);_0x1c53ad['removeColumns'](_0x489299,{'at':_0x57d375,'columns':_0x103154-_0x57d375+0x1});});const _0xe3e278=(_0x2743d1,_0x1422cc)=>{if(!_0x1422cc['subType']||!_0x1422cc['subType']['startsWith']('tablePaste'))return;const _0x160a16=_0x1422cc['attributes']['tablePasteChainId'],_0x1a6c45=_0x4a6b2d['getSuggestions']()['filter'](_0x2e2621=>_0x2e2621['isInContent']&&_0x2e2621['attributes']&&_0x2e2621['attributes']['tablePasteChainId']==_0x160a16);_0x1a6c45['length']&&_0x1422cc['getAllAdjacentSuggestions']()['length']!=_0x1a6c45['length']&&_0x1a6c45['reduce']((_0x170e49,_0x34cb14)=>(_0x170e49['next']=_0x34cb14,_0x34cb14['previous']=_0x170e49,_0x34cb14));};function _0x115a0b(_0x3159e0,_0x54a62f=!0x0){const {id:_0x4b27cf,authorId:_0xc649d6}=_0x329859(_0x3159e0['markerName']),_0x1d770e=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2cda93=_0x4a6b2d['activeMarkers']['includes'](_0x3159e0['markerName']);return _0x2cda93&&_0x1d770e['push']('ck-suggestion-marker--active'),{'classes':_0x1d770e,'attributes':{'data-suggestion':_0x4b27cf,'data-author-id':_0xc649d6},'priority':_0x2cda93&&_0x54a62f?0xbc2:0xbb8};}_0x4a6b2d['on']('suggestionLoaded',_0xe3e278,{'priority':'high'}),_0x4a6b2d['on']('suggestionUnloaded',_0xe3e278,{'priority':'high'}),_0x4e4f00['model']['document']['registerPostFixer'](()=>{let _0x1c5bbe=!0x1;const _0xbb5587=Array['from'](_0x4e4f00['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x53686a,data:_0x3e52d6}of _0xbb5587){const {group:_0x21eef8,type:_0x29960d,id:_0x2bf117}=_0x329859(_0x53686a);if('suggestion'!=_0x21eef8||'deletion'!=_0x29960d||_0x3e52d6['oldRange'])continue;if(!_0x4a6b2d['hasSuggestion'](_0x2bf117))continue;const _0x4a3697=_0x4a6b2d['getSuggestion'](_0x2bf117)['getRanges'](),_0x163ba6=_0x4e4f00['plugins']['get']('Users')['me'];for(const _0x4ea771 of _0x4a6b2d['getSuggestions']()){if(!_0x4ea771['isInContent']||_0x4ea771['author']!=_0x163ba6)continue;if('formatBlock'!=_0x4ea771['type']||'tablePasteCell'!=_0x4ea771['subType'])continue;if(_0x4ea771['getRanges']()['every'](_0x568cea=>_0x4a3697['some'](_0x3d7495=>_0x3d7495['containsRange'](_0x568cea,!0x0)))){for(const _0x239254 of _0x4ea771['getAllAdjacentSuggestions']())_0x239254['isInContent']&&(_0x239254['discard'](),_0x1c5bbe=!0x0);}}}return _0x1c5bbe;}),_0x4e4f00['model']['document']['registerPostFixer'](_0x46a641=>{const _0x3a3235=_0x4e4f00['commands']['get']('redo');if(!_0x3a3235||!_0x3a3235['_createdBatches']['has'](_0x46a641['batch']))return!0x1;let _0x19287d=!0x1;const _0x201f9f=_0x4e4f00['plugins']['get']('Users')['me'],_0xf03ea8=_0x4e4f00['model']['document']['differ']['getChanges'](),_0x4a1c7e=Array['from'](_0x4e4f00['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x512a9a,data:_0x405a28})=>{const {group:_0x1e71db,subType:_0x3a1814,authorId:_0x2b639c}=_0x329859(_0x512a9a);return'suggestion'==_0x1e71db&&'tablePaste'==_0x3a1814&&_0x2b639c==_0x201f9f['id']&&!_0x405a28['oldRange'];});for(const _0x38dc23 of _0xf03ea8){if('insert'!=_0x38dc23['type']||'tableCellSuggestion'!=_0x38dc23['name']||0x1!=_0x38dc23['length'])continue;const _0x451aa4=_0x46a641['createRange'](_0x38dc23['position'],_0x38dc23['position']['getShiftedBy'](0x1));if(!_0x4a1c7e['find'](({data:_0x74607a})=>_0x74607a['newRange']['isEqual'](_0x451aa4))){for(const {name:_0x232db8,data:_0xbcd498}of _0x4a1c7e)if(_0x451aa4['containsRange'](_0xbcd498['newRange'])){_0x46a641['updateMarker'](_0x232db8,{'range':_0x451aa4}),_0x19287d=!0x0;break;}}}return _0x19287d;}),_0x4e4f00['model']['document']['registerPostFixer'](_0x1e32ba=>{let _0x3af5c4=!0x1;const _0x3ac948=_0x4e4f00['plugins']['get']('Users')['me'],_0x5aa88d=_0x4a6b2d['getSuggestions']()['filter'](_0x356bfa=>_0x356bfa['isInContent']&&_0x356bfa['author']==_0x3ac948),_0x5684bf=new Set(),_0x2e8037=new Set();for(const _0x2b76c2 of _0x5aa88d)if('tablePaste'==_0x2b76c2['subType'])for(const _0x3f6cf1 of _0x2b76c2['getMarkers']()){const _0x31be6f=_0x3f6cf1['getRange']()['getContainedElement']();if(_0x31be6f){if(_0x31be6f['is']('element','tableCellSuggestion')&&ve(_0x31be6f)){_0x2b76c2['removeMarker'](_0x3f6cf1['name']),_0x5684bf['add'](_0x31be6f),_0x3af5c4=!0x0;const _0x293384=_0x31be6f['nextSibling'],_0x1c9b84=_0x31be6f['previousSibling'],_0x2ccd0d=_0x293384&&_0x293384['is']('element','tableCellSuggestion'),_0x4430ab=_0x1c9b84&&_0x1c9b84['is']('element','tableCellSuggestion');_0x2ccd0d&&!_0x5684bf['has'](_0x293384)&&_0x2e8037['add'](_0x293384),_0x4430ab&&!_0x5684bf['has'](_0x1c9b84)&&_0x2e8037['add'](_0x1c9b84);}else _0x31be6f['is']('element','paragraph')&&_0x31be6f['isEmpty']&&(_0x2b76c2['removeMarker'](_0x3f6cf1['name']),_0x3af5c4=!0x0);}}else{if('tablePasteCell'==_0x2b76c2['subType']){if(!_0x2b76c2['attributes']||!_0x2b76c2['attributes']['tablePasteChainId'])continue;const _0x51c20c=_0x2b76c2['attributes']['markerAttributes'];if(_0x51c20c&&Object['keys'](_0x51c20c)['length'])continue;const _0x364727=_0x2b76c2['attributes']['tablePasteChainId'];let _0xdcd2de=!0x0,_0x37cc0b=!0x0;for(const _0x29265f of _0x5aa88d)if(_0x29265f['subType']&&_0x29265f['subType']['startsWith']('tablePaste')){if(!_0x29265f['attributes']['tablePasteChainId']){_0x37cc0b=!0x1;break;}if(_0x29265f['id']!=_0x2b76c2['id']&&_0x29265f['attributes']['tablePasteChainId']==_0x364727){_0xdcd2de=!0x1;break;}}_0x37cc0b&&_0xdcd2de&&(_0x2b76c2['removeMarkers'](),_0x3af5c4=!0x0);}}for(const _0x221879 of _0x5684bf)_0x1e32ba['remove'](_0x221879);for(const _0x482b2e of _0x2e8037)_0x1e32ba['unwrap'](_0x482b2e);return _0x3af5c4;}),_0x4e4f00['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5cbfeb=>_0x115a0b(_0x5cbfeb),'converterPriority':'high'}),_0x4e4f00['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x276574,_0x17ad0a)=>_0x17ad0a['options']['showSuggestionHighlights']?_0x115a0b(_0x276574,!0x1):null,'converterPriority':'high'});const _0x46e742=_0x4e4f00['editing']['view'];this['listenTo'](_0x46e742['document'],'clipboardOutput',(_0x2bb68d,_0x5e33c3)=>{const _0x350e76=[];for(const _0x557ce1 of _0x46e742['createRangeIn'](_0x5e33c3['content'])['getItems']())_0x557ce1['is']('element','suggestion-td')&&_0x350e76['push'](_0x557ce1);_0x46e742['change'](_0x137d73=>{for(const _0xd13b4c of _0x350e76)_0x137d73['move'](_0x137d73['createRangeIn'](_0xd13b4c),_0x137d73['createPositionBefore'](_0xd13b4c)),_0x137d73['remove'](_0xd13b4c);});});}}function ve(_0x249a1f){if(_0x249a1f['isEmpty'])return!0x0;const _0x20c425=_0x249a1f['getChild'](0x0);return _0x20c425['is']('element','paragraph')&&_0x20c425['isEmpty'];}function xe(_0x3b0637,_0x5409e7={},_0x456138){for(const {isAnchor:_0x287c03,cellHeight:_0x28a060,cellWidth:_0x31f79e}of _0x456138['createTableWalker'](_0x3b0637,{'includeAllSlots':!0x0,..._0x5409e7}))if(!_0x287c03||0x1!=_0x28a060||0x1!=_0x31f79e)return!0x1;return!0x0;}class Pe extends _0x2d10d9{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x298a57=this['editor']['plugins']['get']('TrackChangesEditing');_0x298a57['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x298a57['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x298a57['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x298a57['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x298a57['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x298a57['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x15a0c2,_0x4384b2){const _0x13080a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x483138=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x46334f=_0x4384b2['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x47c678=_0x483138['getColumnGroupElement'](_0x46334f);let _0x28d853=_0x47c678?_0x483138['getTableColumnsWidths'](_0x47c678):null,_0x31b052=_0x46334f['getAttribute']('tableWidth')||null;const _0x856a1=_0x4384b2['tableWidth']||_0x31b052,_0x4655d4=_0x4384b2['columnWidths']||_0x28d853,_0x3e962c=this['editor']['plugins']['get']('Users')['me'];for(const _0x4e7442 of _0x13080a['getSuggestions']()){const _0x1f385b=_0x4e7442['getContainedElement']();if('resizeTable'===_0x4e7442['subType']&&_0x1f385b===_0x46334f){_0x4e7442['author']!==_0x3e962c&&_0x4e7442['discard']();const _0x140c7f=_0x4e7442['data']['commandParams'];_0x31b052=_0x140c7f[0x0]['tableWidth'],_0x28d853=_0x140c7f[0x0]['columnWidths'];break;}}_0x15a0c2({'table':_0x46334f,'tableWidth':_0x856a1,'columnWidths':_0x4655d4}),_0x13080a['markBlockFormat'](_0x46334f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x31b052,'columnWidths':_0x28d853}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5994da){if('formatBlock'!=_0x5994da['type']&&'formatInline'!=_0x5994da['type'])return;const {data:_0x25a7c5}=_0x5994da;if(_0x25a7c5&&'resizeTable'===_0x25a7c5['formatGroupId']){const _0x3c4069='*Format:*\x20resize\x20table';return{'type':'format','content':At(this['editor']['locale'],_0x3c4069)};}}}class Ue extends _0x2d10d9{['afterInit'](){const _0x2da489=this['editor'];_0x2da489['plugins']['has']('Template')&&_0x2da489['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ge extends _0x2d10d9{['afterInit'](){const _0x133b35=this['editor'];if(!_0x133b35['commands']['get']('insertTableOfContents'))return;_0x133b35['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x172c47=_0x133b35['plugins']['get']('TrackChangesEditing'),_0x8a0409=_0x133b35['locale'];_0x172c47['descriptionFactory']['registerElementLabel']('tableOfContents',_0x767d63=>At(_0x8a0409,'ELEMENT_TABLE_OF_CONTENTS',_0x767d63));}}class He extends _0x2d10d9{['afterInit'](){const _0x8e3ddb=this['editor'];if(!_0x8e3ddb['plugins']['has']('Title'))return;_0x8e3ddb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>At(_0x8e3ddb['locale'],'ELEMENT_TITLE')),_0x8e3ddb['model']['document']['registerPostFixer'](_0x3c879a=>{let _0xb772e1=!0x1;const _0x259d7b=Array['from'](_0x8e3ddb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xdc350b,data:_0x287c02}of _0x259d7b){const {group:_0x5f32b4}=_0x329859(_0xdc350b);if('suggestion'!==_0x5f32b4||!_0x287c02['newRange'])continue;const _0x17a8e2=_0x287c02['newRange'],_0x34bcbf=_0x17a8e2['end']['nodeBefore'];if(!_0x34bcbf||!_0x34bcbf['is']('element','title-content'))continue;if(!_0x17a8e2['start']['isTouching'](_0x17a8e2['end']))continue;const _0x230a6c=_0x8e3ddb['model']['schema']['getNearestSelectionRange'](_0x17a8e2['end'],'forward');if(_0x230a6c&&_0x230a6c['isCollapsed']){const _0x4434fd=_0x3c879a['createRange'](_0x17a8e2['start'],_0x230a6c['start']);_0x4434fd['isEqual'](_0x17a8e2)||(_0x3c879a['updateMarker'](_0xdc350b,{'range':_0x4434fd}),_0xb772e1=!0x0);}_0xb772e1||(_0x3c879a['removeMarker'](_0xdc350b),_0xb772e1=!0x0);}return _0xb772e1;});}}class $e extends _0x2d10d9{['afterInit'](){const _0x3c0a0d=this['editor'],_0xfc2192=_0x3c0a0d['plugins']['get']('TrackChangesEditing');_0x3c0a0d['plugins']['has']('Uploadcare')&&(_0xfc2192['enableCommand']('uploadcare'),_0x3c0a0d['plugins']['has']('UploadcareImageEdit')&&(_0xfc2192['enableCommand']('uploadcareImageEdit'),_0xfc2192['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0xfc2192['descriptionFactory']['registerDescriptionCallback'](_0x3614de=>{if('attribute'!=_0x3614de['type'])return;const {data:_0xa22fe5}=_0x3614de;return _0xa22fe5&&'uploadcareImageId'==_0xa22fe5['key']?{'type':'format','content':''}:void 0x0;})));}}class We extends _0x2d10d9{['afterInit'](){const _0x3a0a33=this['editor'],_0x1d121d=_0x3a0a33['plugins']['get']('TrackChangesEditing');_0x3a0a33['plugins']['has']('UndoEditing')&&(_0x1d121d['enableCommand']('undo'),_0x1d121d['enableCommand']('redo'));}}class Ve extends _0x2d10d9{static get['requires'](){return[Ne];}['afterInit'](){const _0x3756ae=this['editor'];if(!_0x3756ae['plugins']['has']('TableCaptionEditing'))return;_0x3756ae['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class je extends _0x2d10d9{['tableProperties'];['tableCellProperties'];constructor(_0x2d74d0){super(_0x2d74d0),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellType'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x3a99c3=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x34ded3 of this['tableProperties'])_0x3a99c3['enableCommand'](_0x34ded3,(_0x5f4aad,_0x297f4a)=>{const _0x2d9c67=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x34ded3,[_0x2d9c67],this['tableProperties'],'tableProperties',_0x5f4aad,_0x297f4a);});_0x3a99c3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3a99c3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3a99c3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5c9e36,_0x63068a)=>this['handleDiscardAction'](this['tableProperties'],_0x5c9e36,_0x63068a)),_0x3a99c3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4d223d of this['tableCellProperties'])this['editor']['commands']['get'](_0x4d223d)&&_0x3a99c3['enableCommand'](_0x4d223d,(_0x575c69,_0x3afcc7)=>{const _0xa4b49b=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4d223d,_0xa4b49b,this['tableCellProperties'],'tableCellProperties',_0x575c69,_0x3afcc7);});_0x3a99c3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3a99c3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3a99c3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x38dfbc,_0x188292)=>this['handleDiscardAction'](this['tableCellProperties'],_0x38dfbc,_0x188292)),_0x3a99c3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x3a99c3['descriptionFactory']['registerAttributeLabel']('tableCellType',At(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x3a99c3['descriptionFactory']['registerDescriptionCallback'](_0x1ab00b=>this['handleSuggestionDescription'](_0x1ab00b)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0xab9f39,_0x29f30e,_0x1da97b,_0x533a09,_0x4ab7ce,_0x3ccb3a){const _0x3b2132=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3ccb3a['batch'],()=>{for(const _0x39e0f2 of _0x29f30e){if(this['_getSuggestion'](_0x39e0f2,_0x533a09))_0x4ab7ce(_0x3ccb3a);else{const _0x2a4a95={};for(const _0x308ea4 of _0x1da97b){const _0x4468b0=_0x39e0f2['getAttribute'](_0x308ea4);void 0x0!==_0x4468b0&&(_0x2a4a95[_0x308ea4]=_0x4468b0);}_0x4ab7ce(_0x3ccb3a),_0x3b2132['markBlockFormat'](_0x39e0f2,{'commandParams':[_0x2a4a95]},[],_0x533a09);}}});}['handleDiscardAction'](_0x2eca8d,_0x390867,_0x36b02c){const _0x311596=_0x390867[0x0]['start']['nodeAfter'],_0x15dc8f=_0x36b02c['commandParams'][0x0];this['editor']['model']['change'](_0x5349fe=>{for(const _0x572338 of _0x2eca8d)void 0x0!==_0x15dc8f[_0x572338]?_0x5349fe['setAttribute'](_0x572338,_0x15dc8f[_0x572338],_0x311596):_0x5349fe['removeAttribute'](_0x572338,_0x311596);});}['handleSuggestionDescription'](_0x43c393){if(_0x43c393['data'])switch(_0x43c393['subType']){case'tableProperties':return{'type':'format','content':At(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':At(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x7ff0d2,_0x221fce){const _0x225941=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2d2e11 of _0x225941['getSuggestions']({'skipNotAttached':!0x0})){const _0x55331d=_0x2d2e11['getContainedElement']();if(_0x2d2e11['subType']===_0x221fce&&_0x55331d===_0x7ff0d2)return _0x2d2e11;}return null;}['_registerTablePropertiesAttributes'](){const _0x305bc1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x33699d=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x352e59 of _0x33699d){const _0x5d9a7b=_0x352e59['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x305bc1['descriptionFactory']['registerAttributeLabel'](_0x352e59,At(this['editor']['locale'],'FORMAT_'+_0x5d9a7b));}}}class ze extends _0x2d10d9{['afterInit'](){const _0x21c337=this['editor'];if(!_0x21c337['plugins']['has']('LineHeight'))return;const _0x533f89=_0x21c337['plugins']['get']('TrackChangesEditing'),_0x13d49e=_0x21c337['locale'];_0x533f89['enableDefaultAttributesIntegration']('lineHeight'),_0x533f89['descriptionFactory']['registerAttributeLabel']('lineHeight',At(_0x13d49e,'FORMAT_LINE_HEIGHT'));}}const Ke='$elementName';class Xe extends _0x2d10d9{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x21b6bb,_0x346595,_0x5ecb16,_0x59a2e3,_0x5ac772,Ct,yt,Nt,Rt,Mt,Ot,Bt,Dt,Ft,vt,Pt,Ut,jt,zt,Kt,Yt,qt,Qt,Jt,te,ee,ne,ie,re,se,oe,ae,ce,ue,fe,Te,le,Gt,ze,$t,ge,me,Ee,_e,pe,Le,Ie,be,Ae,Ce,ye,Ne,Se,Me,Oe,we,Ve,De,Pe,Ge,je,Ue,He,$e,We];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5e9c5f){super(_0x5e9c5f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2751d7,_0x423ba5,_0x414fac,_0x43216e)=>{this['_model']['change'](()=>{for(const _0x4d14bd of[..._0x43216e,..._0x414fac])this['_model']['markers']['has'](_0x4d14bd)&&_0x5e9c5f['editing']['reconvertMarker'](_0x4d14bd);});}),this['descriptionFactory']=new kt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ye(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5e9c5f['plugins']['get'](_0x21b6bb),this['_suggestionsConversion']=_0x5e9c5f['plugins']['get'](_0x346595),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x5e9c5f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5e9c5f['config']['get']('trackChanges.trackFormatChanges'),_0x5e9c5f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5e9c5f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new ht(_0x5e9c5f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0xc01d6d=this['editor'];_0xc01d6d['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3a929d,{writer:_0x2201e2})=>{let _0xeed6dd='suggestion:'+_0x3a929d['getAttribute']('suggestion-type')+':'+_0x3a929d['getAttribute']('id');return _0x3a929d['getAttribute']('marker-count')&&(_0xeed6dd+=':'+_0x3a929d['getAttribute']('marker-count')),_0x2201e2['createElement']('$marker',{'data-name':_0xeed6dd});}}),_0xc01d6d['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xc01d6d['model']['document']['registerPostFixer'](_0x20f39a=>{let _0x589667=!0x1;const _0x111a83=Array['from'](_0xc01d6d['model']['document']['differ']['getChangedMarkers']()),_0x31832e=new Set();for(const {name:_0x365715,data:_0x3e34f4}of _0x111a83){const {group:_0x1503db,type:_0x560c0a,subType:_0x340615,id:_0x3f10d8}=_0x329859(_0x365715);if('suggestion'!==_0x1503db)continue;const _0x1250bd=_0x340615?'suggestion:'+_0x560c0a+':'+_0x340615+':'+_0x3f10d8:'suggestion:'+_0x560c0a+':'+_0x3f10d8,_0x4d7ff3=_0xc01d6d['model']['markers']['getMarkersGroup'](_0x1250bd),_0x229a9d=_0xc01d6d['model']['markers']['get'](_0x365715),_0x53eb11=this['_suggestions']['get'](_0x3f10d8);if(null!=_0x3e34f4['newRange']){'formatInline'==_0x560c0a&&(_0x589667=_0x589667||Ze(_0x3e34f4['newRange'],_0x365715,_0x20f39a,_0xc01d6d['model']['schema']));const _0x3b0552='attribute'==_0x560c0a&&this['_suggestionsConversion']['isBlockAttribute'](un(_0x340615)),_0x523739='attribute'==_0x560c0a&&this['_suggestionsConversion']['isInlineAttribute'](un(_0x340615));if(_0x3e34f4['newRange']['isCollapsed']||'$graveyard'==_0x3e34f4['newRange']['root']['rootName']||'formatBlock'==_0x560c0a&&!tn(_0x3e34f4['newRange'])||_0x3b0552&&!tn(_0x3e34f4['newRange'])||_0x523739&&en(_0x3e34f4['newRange'])||'deletion'==_0x560c0a&&en(_0x3e34f4['newRange'])||_0x229a9d&&nn(_0x229a9d,_0x4d7ff3))_0x20f39a['removeMarker'](_0x365715),_0x589667=!0x0;else{if(!_0x53eb11||!_0x53eb11['isInContent'])continue;if(_0x3e34f4['newRange']&&_0x3e34f4['oldRange']&&_0x3e34f4['newRange']['isEqual'](_0x3e34f4['oldRange']))continue;_0x31832e['add'](_0x53eb11);}}}return _0x31832e['size']>0x0&&(_0x589667=!!this['_joinWithAdjacentSuggestions'](_0x31832e)||_0x589667),_0x589667;}),_0xc01d6d['model']['document']['registerPostFixer'](_0x54a0c5=>{let _0x2b34a6=!0x1;for(const _0x12f9d8 of _0xc01d6d['model']['document']['differ']['getChanges']())if('insert'==_0x12f9d8['type'])for(const _0x3739ab of this['_suggestions']['values']()){if(_0x3739ab['isMultiRange']||!_0x3739ab['isInContent'])continue;const _0x2fb3ac='formatBlock'==_0x3739ab['type'],_0x3966a3=this['_getAttributeKey'](_0x3739ab),_0x4f7d54=_0x3966a3&&this['_suggestionsConversion']['isBlockAttribute'](_0x3966a3);if(!_0x2fb3ac&&!_0x4f7d54)continue;const _0x1fd69f=_0x3739ab['getFirstRange']();if(_0x1fd69f['start']['parent']!=_0x1fd69f['end']['parent']&&!_0x1fd69f['end']['isAtEnd']){const _0x3d94e9=_0xc01d6d['model']['createPositionAt'](_0x1fd69f['start']['nodeAfter'],'end'),_0x50e253=_0xc01d6d['model']['createRange'](_0x1fd69f['start'],_0x3d94e9);_0x54a0c5['updateMarker'](_0x3739ab['getFirstMarker'](),{'range':_0x50e253}),_0x2b34a6=!0x0;}}return _0x2b34a6;}),_0xc01d6d['model']['document']['registerPostFixer'](_0x4f46ff=>this['_processAttributeChanges'](_0x4f46ff)),_0xc01d6d['model']['document']['registerPostFixer'](_0xdf0a6e=>!_0xdf0a6e['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xdf0a6e)),_0xc01d6d['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xc01d6d['model']['document']['on']('change:data',(_0x3ac24e,_0x4313a5)=>{if(!_0x4313a5['isLocal']||_0x4313a5['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x145562=_0xc01d6d['model']['document']['differ']['getChanges']();if(0x0==_0x145562['length'])return;const _0x360bb5=[],_0x1d93ee=_0x145562['filter'](_0x5594fb=>'attribute'==_0x5594fb['type']),_0x21cdbf=_0x145562['filter'](_0x5b4878=>'insert'==_0x5b4878['type']&&'$text'!=_0x5b4878['name']);for(const _0x4a4f3b of _0x1d93ee)this['_suggestionsConversion']['isRegisteredAttribute'](_0x4a4f3b['attributeKey'])&&_0x360bb5['push']({'key':_0x4a4f3b['attributeKey'],'newValue':_0x4a4f3b['attributeNewValue'],'oldValue':_0x4a4f3b['attributeOldValue'],'range':sn(_0x4a4f3b['range'],_0xc01d6d['model'])});for(const _0x5c512e of _0x21cdbf){if('rename'!=_0x5c512e['action']&&'refresh'!=_0x5c512e['action'])continue;const _0x159dce=rn(_0x5c512e['position']['nodeAfter'],_0xc01d6d['model']),_0x37b027=_0x5c512e['before'];'rename'==_0x5c512e['action']&&_0x360bb5['push']({'key':Ke,'newValue':_0x5c512e['name'],'oldValue':_0x37b027['name'],'range':_0x159dce});for(const [_0x6ad514,_0x46444e]of _0x37b027['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x6ad514))continue;const _0x40f831=_0x5c512e['attributes']['get'](_0x6ad514);_0x46444e!==_0x40f831&&_0x360bb5['push']({'key':_0x6ad514,'newValue':_0x40f831,'oldValue':_0x46444e,'range':_0x159dce});}for(const [_0x5ec01d,_0x5b61c8]of _0x5c512e['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x5ec01d)&&(_0x37b027['attributes']['has'](_0x5ec01d)||_0x360bb5['push']({'key':_0x5ec01d,'newValue':_0x5b61c8,'oldValue':null,'range':_0x159dce}));}0x0!=_0x360bb5['length']&&_0xc01d6d['model']['enqueueChange'](_0x4313a5,_0x18def6=>{const _0x1f9e57=_0x2d99d9();for(const {range:_0x11c7f6,key:_0x6c659e,oldValue:_0x2de3ee,newValue:_0x28c0d5}of _0x360bb5)this['markAttributeChange'](_0x11c7f6,_0x6c659e,_0x2de3ee,_0x28c0d5,{'groupId':_0x1f9e57});this['_reduceExistingSuggestions'](_0x18def6,_0x360bb5);});},{'priority':'lowest'}),_0xc01d6d['model']['markers']['on']('update:suggestion',(_0x3f2f75,_0x322894,_0xeea0ef)=>{if(null==_0xeea0ef){const {id:_0x1d81e7}=_0x329859(_0x322894['name']),_0x4601e8=this['_suggestions']['get'](_0x1d81e7);_0x4601e8&&_0x4601e8['addMarkerName'](_0x322894['name']);}}),_0xc01d6d['model']['document']['on']('change:data',()=>{const _0x1bdc9e=Array['from'](_0xc01d6d['model']['document']['differ']['getChangedMarkers']())['filter'](_0x26b7d9=>'suggestion'===_0x329859(_0x26b7d9['name'])['group']);if(0x0===_0x1bdc9e['length'])return;_0x1bdc9e['sort']((_0x17d02f,_0x2f2362)=>{const _0x512fb8=_0x17d02f['data']['oldRange'],_0x1283fb=_0x2f2362['data']['oldRange'];return null===_0x512fb8&&null===_0x1283fb?0x0:null===_0x512fb8&&null!==_0x1283fb?-0x1:null!==_0x512fb8&&null===_0x1283fb?0x1:_0x512fb8['start']['isBefore'](_0x1283fb['start'])?-0x1:0x1;});const _0x48dd29=new Set(),_0x4ce42f=new Set();for(const {name:_0x141121,data:_0x266994}of _0x1bdc9e){const {id:_0x13a9b8}=_0x329859(_0x141121);if(null===_0x266994['oldRange']){const _0x1ddc27=this['_handleNewSuggestionMarker'](_0x141121);_0x4ce42f['add'](_0x1ddc27);}else{const _0x3b6e6d=this['_suggestions']['get'](_0x13a9b8);null!==_0x266994['newRange']||_0x3b6e6d['isInContent']?(_0x48dd29['add'](_0x3b6e6d['head']),_0x4ce42f['add'](_0x3b6e6d)):this['_removeSuggestion'](_0x3b6e6d);}}_0x4ce42f['size']>0x0&&this['_refreshSuggestionsChain'](_0x4ce42f);for(const _0x1253cc of _0x48dd29)this['fire']('suggestionChanged',_0x1253cc);}),_0xc01d6d['model']['on']('applyOperation',(_0xfcc96b,_0xf804b2)=>{const _0x2c7311=_0xf804b2[0x0];if(!this['_suggestions']['size'])return;if(!_0x2c7311['isDocumentOperation'])return;if(_0x2c7311['batch']['isUndo']||!_0x2c7311['batch']['isLocal'])return;let _0x3b4093,_0x5927ff;switch(_0x2c7311['type']){case'insert':_0x3b4093=_0xc01d6d['model']['createPositionAt'](_0x2c7311['position']),_0x5927ff=_0x3b4093['getShiftedBy'](_0x2c7311['howMany']);break;case'split':_0x3b4093=_0xc01d6d['model']['createPositionAt'](_0x2c7311['splitPosition']),_0x5927ff=_0xc01d6d['model']['createPositionAt'](_0x2c7311['moveTargetPosition']);break;case'move':_0x3b4093=_0xc01d6d['model']['createPositionAt'](_0x2c7311['targetPosition']),_0x5927ff=_0x3b4093['getShiftedBy'](_0x2c7311['howMany']);break;default:return;}const _0x4b5499=_0xc01d6d['model']['createRange'](_0x3b4093,_0x5927ff);_0xc01d6d['model']['change'](()=>{for(const {suggestion:_0x36c6ef,meta:_0x279577}of this['_findSuggestions'](_0x4b5499)){if(_0x36c6ef['isMultiRange'])continue;if('formatInline'==_0x36c6ef['type'])continue;const _0x3b3f8c=this['_getAttributeKey'](_0x36c6ef);if(_0x3b3f8c&&this['_suggestionsConversion']['isBlockAttribute'](_0x3b3f8c)&&'split'!=_0x2c7311['type'])continue;const _0xd13327=_0x36c6ef['data']&&_0x36c6ef['data']['multipleBlocks'];('formatBlock'!=_0x36c6ef['type']||'split'==_0x2c7311['type']&&!_0xd13327)&&(_0x279577['containsRangeInObject']||'insertion'==_0x36c6ef['type']&&_0x279577['isOwn']||_0x36c6ef['getFirstRange']()['containsRange'](_0x4b5499)&&this['_breakSuggestionMarker'](_0x36c6ef,_0x3b4093,_0x5927ff));}});},{'priority':'lowest'}),_0xc01d6d['model']['on']('deleteContent',(_0x29f4ee,_0x20272c)=>{const _0x4d23b6=_0x20272c[0x0],_0x269ba2=_0x20272c[0x1];if(_0x269ba2&&_0x269ba2['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4d23b6['isCollapsed'])return;const _0x370a1e=_0xc01d6d['model']['schema'],{start:_0x42d578,end:_0x2f40f6}=_0x4d23b6['getFirstRange'](),_0x2cd1a4=_0x42d578['nodeAfter']&&_0x370a1e['isLimit'](_0x42d578['nodeAfter'])?null:_0x370a1e['getNearestSelectionRange'](_0x42d578,'forward'),_0x21c367=_0x2f40f6['nodeBefore']&&_0x370a1e['isLimit'](_0x2f40f6['nodeBefore'])?null:_0x370a1e['getNearestSelectionRange'](_0x2f40f6,'backward'),_0x4b68a2=_0xc01d6d['model']['createRange'](_0x2cd1a4?_0x2cd1a4['start']:_0x42d578,_0x21c367?_0x21c367['end']:_0x2f40f6);_0xc01d6d['model']['change'](_0x383c40=>{this['markDeletion'](_0x4b68a2);const _0x4ae432=_0xc01d6d['model']['schema']['getNearestSelectionRange'](_0x4b68a2['start']);_0x4d23b6['is']('documentSelection')?_0x383c40['setSelection'](_0x4ae432):_0x4d23b6['setTo'](_0x4ae432);}),_0x29f4ee['stop']();},{'priority':_0x46da9c['normal']+0xa}),_0xc01d6d['model']['on']('insertContent',(_0x2d8c55,_0x481cbf)=>{const _0x933e73=_0x481cbf[_0x481cbf['length']-0x1];_0x933e73&&_0x933e73['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xc01d6d['model']['change'](()=>{let _0x20edee=_0xc01d6d['model']['insertContent'](_0x481cbf[0x0],_0x481cbf[0x1],_0x481cbf[0x2],{'forceDefaultExecution':!0x0});if(!_0x20edee)return;_0x2d8c55['return']=_0x20edee['clone']();const _0x5c0ff9=_0x20edee['end']['nodeBefore'],_0x3457de=_0xc01d6d['model']['schema'];_0x5c0ff9&&_0x3457de['isBlock'](_0x5c0ff9)&&!_0x3457de['isObject'](_0x5c0ff9)&&(_0x20edee=_0xc01d6d['model']['createRange'](_0x20edee['start'],_0xc01d6d['model']['createPositionAt'](_0x5c0ff9,'end'))),this['markInsertion'](_0x20edee);}),_0x2d8c55['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1931bb=new dt(_0xc01d6d,this['_suggestions']);_0xc01d6d['commands']['add']('acceptSuggestion',_0x1931bb),this['enableCommand']('acceptSuggestion');const _0x2a13ea=new ft(_0xc01d6d,this['_suggestions']);_0xc01d6d['commands']['add']('discardSuggestion',_0x2a13ea),this['enableCommand']('discardSuggestion'),_0xc01d6d['commands']['add']('acceptAllSuggestions',new Lt(_0xc01d6d,_0x1931bb,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xc01d6d['commands']['add']('discardAllSuggestions',new Lt(_0xc01d6d,_0x2a13ea,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xc01d6d['commands']['add']('acceptSelectedSuggestions',new It(_0xc01d6d,_0x1931bb,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xc01d6d['commands']['add']('discardSelectedSuggestions',new It(_0xc01d6d,_0x2a13ea,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x446332=_0xc01d6d['plugins']['get'](_0x21b6bb);this['listenTo'](_0x446332,'addComment',(_0x4b0a35,{threadId:_0x38f6a1})=>{const _0x177660=this['_suggestions']['get'](_0x38f6a1);_0x177660&&_0x177660['commentThread']&&0x1===_0x177660['commentThread']['length']&&this['_updateSuggestionData'](_0x38f6a1,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x446332,'removeComment',(_0x549326,{threadId:_0xa1e125})=>{const _0x3305a3=this['_suggestions']['get'](_0xa1e125);_0x3305a3&&_0x3305a3['commentThread']&&!_0x3305a3['commentThread']['length']&&this['_updateSuggestionData'](_0xa1e125,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1b78da){const _0x55a8e6=_0x310e4e([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x22f1cd=0x3d8d0df,_0x1e8438=0x3df594f^_0x22f1cd,_0x1a9567=window[_0x310e4e([0x44,0x61,0x74,0x65])][_0x310e4e([0x6e,0x6f,0x77])](),_0x169638=_0x1b78da[_0x310e4e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4c971f=new window[(_0x310e4e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x586c63=>{_0x169638[_0x310e4e([0x6f,0x6e,0x63,0x65])](_0x310e4e([0x72,0x65,0x61,0x64,0x79]),_0x586c63);}),_0x102ece={[_0x310e4e([0x6b,0x74,0x79])]:_0x310e4e([0x45,0x43]),[_0x310e4e([0x75,0x73,0x65])]:_0x310e4e([0x73,0x69,0x67]),[_0x310e4e([0x63,0x72,0x76])]:_0x310e4e([0x50,0x2d,0x32,0x35,0x36]),[_0x310e4e([0x78])]:_0x310e4e([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]),[_0x310e4e([0x79])]:_0x310e4e([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]),[_0x310e4e([0x61,0x6c,0x67])]:_0x310e4e([0x45,0x53,0x32,0x35,0x36])},_0x37ff83=_0x169638[_0x310e4e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x310e4e([0x67,0x65,0x74])](_0x310e4e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x426e7e(){let _0xcb41b8,_0x53b1a8=null,_0x10b5ca=null;try{if(_0x37ff83==_0x310e4e([0x47,0x50,0x4c]))return _0x310e4e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xcb41b8=_0x291c3b(),!_0xcb41b8)return _0x310e4e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xcb41b8[_0x310e4e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x10b5ca=_0x3d982f(_0xcb41b8[_0x310e4e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xcb41b8[_0x310e4e([0x6a,0x74,0x69])])),await _0x660981()?_0x180632()?_0xf4625d()?_0x310e4e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xe46afa()?(_0xcb41b8[_0x310e4e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x310e4e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x53b1a8=_0x4c864f(_0x310e4e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2ad3f3()):_0x310e4e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x310e4e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x310e4e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x310e4e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xf4625d(){const _0x5e4031=[_0x310e4e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x310e4e([0x74,0x72,0x69,0x61,0x6c])][_0x310e4e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xcb41b8[_0x310e4e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1a9567/0x3e8:0xe10*_0x1e8438;return _0xcb41b8[_0x310e4e([0x65,0x78,0x70])]<_0x5e4031;}function _0x180632(){const _0x5435fb=_0xcb41b8[_0x310e4e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5435fb)return!0x1;if(_0x5435fb[_0x310e4e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x310e4e([0x2a])))return!0x0;if(_0x5435fb[_0x310e4e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x310e4e([0x54,0x43])))return!0x0;if(_0x5435fb[_0x310e4e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x310e4e([0x52,0x54,0x43]))){if(_0x78fa24())return!0x0;if(_0xbd7d91()||_0xc95802())return!0x0;}return!0x1;}function _0xe46afa(){const _0x34d710=_0xcb41b8[_0x310e4e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x34d710||0x0==_0x34d710[_0x310e4e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3a3193}=new URL(window[_0x310e4e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x34d710[_0x310e4e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a3193))return!0x0;const _0x5b1602=_0x3a3193[_0x310e4e([0x73,0x70,0x6c,0x69,0x74])](_0x310e4e([0x2e]));return _0x34d710[_0x310e4e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4b4788=>_0x4b4788[_0x310e4e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x310e4e([0x2a])))[_0x310e4e([0x6d,0x61,0x70])](_0x5e2651=>_0x5e2651[_0x310e4e([0x73,0x70,0x6c,0x69,0x74])](_0x310e4e([0x2e])))[_0x310e4e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x12ed94=>_0x12ed94[_0x310e4e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5b1602[_0x310e4e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x310e4e([0x6d,0x61,0x70])](_0x236ff3=>Array(_0x5b1602[_0x310e4e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x236ff3[_0x310e4e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x310e4e([0x66,0x69,0x6c,0x6c])](_0x236ff3[0x0]===_0x310e4e([0x2a])?_0x310e4e([0x2a]):'')[_0x310e4e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x236ff3))[_0x310e4e([0x73,0x6f,0x6d,0x65])](_0x4e4868=>_0x5b1602[_0x310e4e([0x65,0x76,0x65,0x72,0x79])]((_0x37d437,_0x58b7f1)=>_0x4e4868[_0x58b7f1]===_0x37d437||_0x4e4868[_0x58b7f1]===_0x310e4e([0x2a])));}function _0x2ad3f3(){return _0x53b1a8&&_0x10b5ca?new window[(_0x310e4e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x37c02b,_0x46ccb2)=>{_0x53b1a8[_0x310e4e([0x74,0x68,0x65,0x6e])](_0x37c02b,_0x46ccb2),_0x10b5ca[_0x310e4e([0x74,0x68,0x65,0x6e])](_0x348d59=>{_0x348d59!=_0x310e4e([0x56,0x61,0x6c,0x69,0x64])&&_0x37c02b(_0x348d59);},_0x46ccb2);}):_0x53b1a8||_0x10b5ca||_0x310e4e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3d982f(_0x3ed98e,_0x38f922){return new window[(_0x310e4e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3977b5=>{if(_0x26224d())return _0x3977b5(_0x310e4e([0x56,0x61,0x6c,0x69,0x64]));_0x14b0b3(),_0x169638[_0x310e4e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x310e4e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x513e3c=!0x1;const _0x4bc435=_0x2d99d9();function _0xdde343(_0x5606b8){return!!_0x5606b8&&(typeof _0x5606b8===_0x310e4e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5606b8===_0x310e4e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5606b8[_0x310e4e([0x74,0x68,0x65,0x6e])]===_0x310e4e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5606b8[_0x310e4e([0x63,0x61,0x74,0x63,0x68])]===_0x310e4e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4c73fd(_0x19d7d){_0x2fe8bd(_0x19d7d)[_0x310e4e([0x74,0x68,0x65,0x6e])](_0x2f2db9=>{if(!_0x2f2db9||_0x2f2db9[_0x310e4e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x310e4e([0x6f,0x6b]))return _0x310e4e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x348ecc(_0x1d34a7(_0x4bc435+_0x38f922))!=_0x2f2db9[_0x310e4e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x310e4e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x310e4e([0x56,0x61,0x6c,0x69,0x64]);})[_0x310e4e([0x74,0x68,0x65,0x6e])](_0x12a12b=>(_0x12b3be(),_0x12a12b),()=>{const _0x48bf87=_0x303eac();return null==_0x48bf87?(_0x12b3be(),_0x310e4e([0x56,0x61,0x6c,0x69,0x64])):_0x310e4e(_0x1a9567-_0x48bf87>(0x27d454df^_0x22f1cd)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x310e4e([0x74,0x68,0x65,0x6e])](_0x3977b5)[_0x310e4e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3977b5(_0x310e4e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x477e41=0x3ee3e5f^_0x22f1cd;function _0x12b3be(){const _0x4e1911=_0x310e4e([0x6c,0x6c,0x63,0x74,0x2d])+_0x348ecc(_0x1d34a7(_0x3ed98e)),_0x3d232e=_0x16a8ff(_0x348ecc(window[_0x310e4e([0x4d,0x61,0x74,0x68])][_0x310e4e([0x63,0x65,0x69,0x6c])](_0x1a9567/_0x477e41)));window[_0x310e4e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x310e4e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4e1911,_0x3d232e);}function _0x303eac(){const _0x5f55c9=_0x310e4e([0x6c,0x6c,0x63,0x74,0x2d])+_0x348ecc(_0x1d34a7(_0x3ed98e)),_0x2327b1=window[_0x310e4e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x310e4e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5f55c9);return _0x2327b1?window[_0x310e4e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x16a8ff(_0x2327b1),0x10)*_0x477e41:null;}function _0x2fe8bd(_0x28b750){return new window[(_0x310e4e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1f1bcd,_0x5a047c)=>{_0x28b750[_0x310e4e([0x74,0x68,0x65,0x6e])](_0x1f1bcd,_0x5a047c),window[_0x310e4e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5a047c,0x3d9041f^_0x22f1cd);});}}_0x169638[_0x310e4e([0x6f,0x6e])](_0x310e4e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x40f977,_0x154040)=>{if(_0x154040[0x0]!=_0x3ed98e)return _0x3977b5(_0x310e4e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x154040[0x1]={..._0x154040[0x1],[_0x310e4e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4bc435};},{[_0x310e4e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x310e4e([0x68,0x69,0x67,0x68])}),_0x169638[_0x310e4e([0x6f,0x6e])](_0x310e4e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x53c5b2=>{_0xdde343(_0x53c5b2[_0x310e4e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x513e3c=!0x0,_0x4c73fd(_0x53c5b2[_0x310e4e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x310e4e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x310e4e([0x6c,0x6f,0x77])}),_0x4c971f[_0x310e4e([0x74,0x68,0x65,0x6e])](()=>{_0x513e3c||_0x3977b5(_0x310e4e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x26224d(){return _0x169638[_0x310e4e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x310e4e([0x76,0x69,0x65,0x77])][_0x310e4e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x310e4e([0x61,0x75,0x74,0x6f]);}function _0x14b0b3(){_0x169638[_0x310e4e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x310e4e([0x76,0x69,0x65,0x77])][_0x310e4e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x310e4e([0x61,0x75,0x74,0x6f]);}}function _0x4c864f(_0x449511){const _0x4f0afe=[new window[(_0x310e4e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52a1df=>setTimeout(_0x52a1df,0x3d1ee13^_0x22f1cd)),_0x4c971f[_0x310e4e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x310e4e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e9c2b=>{let _0x16f9a5=0x0;_0x169638[_0x310e4e([0x6d,0x6f,0x64,0x65,0x6c])][_0x310e4e([0x6f,0x6e])](_0x310e4e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x104c37,_0x46ffa2)=>{_0x46ffa2[0x0][_0x310e4e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x16f9a5++,_0x16f9a5==(0x3d8d537^_0x22f1cd)&&(_0x3e9c2b(),_0x104c37[_0x310e4e([0x6f,0x66,0x66])]());});}))];return window[_0x310e4e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x310e4e([0x72,0x61,0x63,0x65])](_0x4f0afe)[_0x310e4e([0x74,0x68,0x65,0x6e])](()=>_0x449511);}async function _0x56c311(){await _0x4c971f,_0x169638[_0x310e4e([0x6d,0x6f,0x64,0x65,0x6c])][_0x310e4e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5b58d5,_0x169638[_0x310e4e([0x6d,0x6f,0x64,0x65,0x6c])][_0x310e4e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5b58d5,_0x169638[_0x310e4e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x310e4e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x78fa24(){return _0x1d7016(_0x310e4e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x379c77(_0x310e4e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x310e4e([0x73,0x74,0x61,0x74,0x65])]==_0x310e4e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xbd7d91(){return _0x1d7016(_0x310e4e([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 _0xc95802(){return _0x1d7016(_0x310e4e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x36b710(_0x25a322){const _0x1dd6b7=_0x2278a1();_0x169638[_0x1dd6b7]=_0x310e4e([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x25a322,_0x25a322!=_0x310e4e([0x56,0x61,0x6c,0x69,0x64])&&_0x56c311();}function _0x2278a1(){const _0x11401f=window[_0x310e4e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x310e4e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x310e4e([0x6e,0x6f,0x77])]())[_0x310e4e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x310e4e([0x2e]),'');let _0x556462=_0x310e4e([0x52]);for(let _0xa54a42=0x0;_0xa54a42<_0x11401f[_0x310e4e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xa54a42+=0x2){let _0x3afe9c=window[_0x310e4e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x11401f[_0x310e4e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa54a42,_0xa54a42+0x2));_0x3afe9c>=_0x55a8e6[_0x310e4e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3afe9c-=_0x55a8e6[_0x310e4e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x556462+=_0x55a8e6[_0x3afe9c];}return _0x556462;}function _0x291c3b(){const _0x2ffbb9=_0x37ff83[_0x310e4e([0x73,0x70,0x6c,0x69,0x74])](_0x310e4e([0x2e]));if(0x3!=_0x2ffbb9[_0x310e4e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x198b08(_0x2ffbb9[0x1]);function _0x198b08(_0x2c1609){const _0x64e20a=_0x15f7e1(_0x2c1609);return _0x64e20a&&_0x19ab5f()?_0x64e20a:null;function _0x19ab5f(){const _0x1b58a5=_0x64e20a[_0x310e4e([0x6a,0x74,0x69])],_0x31f1ab=window[_0x310e4e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b58a5[_0x310e4e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1b58a5[_0x310e4e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x297058={..._0x64e20a,[_0x310e4e([0x6a,0x74,0x69])]:_0x1b58a5[_0x310e4e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1b58a5[_0x310e4e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x297058[_0x310e4e([0x76,0x63])],_0x1d34a7(_0x297058)==_0x31f1ab;}}}async function _0x660981(){let _0x28a589=!0x0;try{const _0x599cc8=_0x37ff83[_0x310e4e([0x73,0x70,0x6c,0x69,0x74])](_0x310e4e([0x2e])),[_0x5360b9,_0x30da5e,_0x4da359]=_0x599cc8;return _0x5c8040(_0x5360b9),await _0x30799d(_0x5360b9,_0x30da5e,_0x4da359),_0x28a589;}catch{return!0x1;}function _0x5c8040(_0x5c23cf){const _0x44681a=_0x15f7e1(_0x5c23cf);_0x44681a&&_0x44681a[_0x310e4e([0x61,0x6c,0x67])]==_0x310e4e([0x45,0x53,0x32,0x35,0x36])||(_0x28a589=!0x1);}async function _0x30799d(_0x3a02aa,_0x451c40,_0x2b4964){const _0x33bcb8=window[_0x310e4e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x310e4e([0x66,0x72,0x6f,0x6d])](_0x45e5c9(_0x2b4964),_0x2fff8b=>_0x2fff8b[_0x310e4e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1d897f=new window[(_0x310e4e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x310e4e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3a02aa+_0x310e4e([0x2e])+_0x451c40),_0xfa22fe=window[_0x310e4e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x310e4e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xfa22fe)return;const _0x173d5f=await _0xfa22fe[_0x310e4e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x310e4e([0x6a,0x77,0x6b]),_0x102ece,{[_0x310e4e([0x6e,0x61,0x6d,0x65])]:_0x310e4e([0x45,0x43,0x44,0x53,0x41]),[_0x310e4e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x310e4e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x310e4e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xfa22fe[_0x310e4e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x310e4e([0x6e,0x61,0x6d,0x65])]:_0x310e4e([0x45,0x43,0x44,0x53,0x41]),[_0x310e4e([0x68,0x61,0x73,0x68])]:{[_0x310e4e([0x6e,0x61,0x6d,0x65])]:_0x310e4e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x173d5f,_0x33bcb8,_0x1d897f)||(_0x28a589=!0x1);}}function _0x15f7e1(_0x64f697){return _0x64f697[_0x310e4e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x310e4e([0x65,0x79]))?JSON[_0x310e4e([0x70,0x61,0x72,0x73,0x65])](_0x45e5c9(_0x64f697)):null;}function _0x45e5c9(_0x4303e7){return window[_0x310e4e([0x61,0x74,0x6f,0x62])](_0x4303e7[_0x310e4e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x310e4e([0x2b]))[_0x310e4e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x310e4e([0x2f])));}function _0x1d34a7(_0x1d8c4f){let _0x428cd3=0x1505;function _0x29193f(_0x3dede4){for(let _0x29b8cd=0x0;_0x29b8cd<_0x3dede4[_0x310e4e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29b8cd++){const _0x5a832e=_0x3dede4[_0x310e4e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x29b8cd);_0x428cd3=(_0x428cd3<<0x5)+_0x428cd3+_0x5a832e,_0x428cd3&=_0x428cd3;}}function _0x531b20(_0x202e11){Array[_0x310e4e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x202e11)?_0x202e11[_0x310e4e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x531b20):_0x202e11&&typeof _0x202e11==_0x310e4e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x310e4e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x202e11)[_0x310e4e([0x73,0x6f,0x72,0x74])]()[_0x310e4e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1757e3,_0x49d487])=>{_0x29193f(_0x1757e3),_0x531b20(_0x49d487);}):_0x29193f(window[_0x310e4e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x202e11));}return _0x531b20(_0x1d8c4f),_0x428cd3>>>0x0;}function _0x348ecc(_0x102dd6){return _0x102dd6[_0x310e4e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x310e4e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x310e4e([0x30]));}function _0x16a8ff(_0x762e3a){return _0x762e3a[_0x310e4e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x310e4e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x310e4e([0x6a,0x6f,0x69,0x6e])]('');}function _0x1d7016(_0x466214){return _0x169638[_0x310e4e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x310e4e([0x68,0x61,0x73])](_0x466214);}function _0x379c77(_0x4f92f3){return _0x169638[_0x310e4e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x310e4e([0x67,0x65,0x74])](_0x4f92f3);}function _0x5b58d5(){}function _0x310e4e(_0x5b4338){return _0x5b4338['map'](_0x12bdd6=>String['fromCharCode'](_0x12bdd6))['join']('');}_0x36b710(await _0x426e7e());}(this);}set['adapter'](_0x4755d2){if(this['_adapter'])throw new _0xbcf39b('track-changes-adapter-already-set',this);this['_adapter']=_0x4755d2;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x6d9c1=!0x1,toJSON:_0x2937a2=!0x1}={}){const _0x100396=[];for(const _0x4be9e5 of this['_suggestions']['values']())_0x6d9c1&&!_0x4be9e5['isInContent']||_0x100396['push'](_0x4be9e5);return _0x2937a2?_0x100396['map'](_0x19ec39=>_0x19ec39['toJSON']()):_0x100396;}['getSuggestion'](_0x54ffda){const _0x1fc283=this['_suggestions']['get'](_0x54ffda);if(!_0x1fc283)throw new _0xbcf39b('track-changes-suggestion-not-found',this);return _0x1fc283;}['hasSuggestion'](_0xcc14f6){return this['_suggestions']['has'](_0xcc14f6);}['addSuggestionData'](_0x8bbb2e){const {authorId:_0x2fde6d,id:_0x423d6d,originalSuggestionId:_0x41b8af,attributes:_0x940998}=_0x8bbb2e,[_0x1d6800,_0x23cc09]=_0x8bbb2e['type']['split'](':'),_0x26abfd=this['_suggestions']['get'](_0x423d6d)||this['_createSuggestion'](_0x1d6800,_0x23cc09,_0x423d6d,_0x2fde6d,_0x940998,_0x41b8af);if(this['_addThreadToSuggestion'](_0x26abfd),this['_checkSuggestionCorrectness'](_0x26abfd,_0x1d6800,_0x23cc09||null,_0x2fde6d),_0x26abfd['createdAt']=_0x8bbb2e['createdAt'],_0x26abfd['_isDataLoaded']=!0x0,_0x940998&&_0x940998['@external']){const _0x91c50e=_0x940998['@external'],_0x1e583d=this['_getExternalAuthor'](_0x91c50e['authorName']);_0x26abfd['authoredAt']=_0x91c50e['createdAt'],_0x26abfd['author']=_0x1e583d,_0x26abfd['isExternal']=!0x0;}else _0x26abfd['authoredAt']=_0x8bbb2e['createdAt'];switch(_0x8bbb2e['data']&&(_0x26abfd['data']=_0x8bbb2e['data']),_0x8bbb2e['attributes']&&(_0x26abfd['attributes']=_0x8bbb2e['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x26abfd['_saved']=!0x0),this['_suggestionState']['get'](_0x26abfd)){case'notReady':this['_suggestionState']['set'](_0x26abfd,'dataReady');break;case'markerReady':_0x26abfd['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x26abfd])),this['_refreshSuggestionsChain'](new Set([_0x26abfd])),this['_suggestionState']['set'](_0x26abfd,'ready'),this['fire']('suggestionLoaded',_0x26abfd)):this['_suggestionState']['set'](_0x26abfd,'removed');}return _0x26abfd;}['acceptSuggestion'](_0x29b778){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x285437 of _0x29b778['getAllAdjacentSuggestions']())_0x285437['accept']();});});}['discardSuggestion'](_0x42977f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x362ac5 of _0x42977f['getAllAdjacentSuggestions']())_0x362ac5['discard']();});});}['enableCommand'](_0x569b5c,_0x2c35bc){const _0x104516=this['editor']['commands']['get'](_0x569b5c);if(!_0x104516)throw new _0xbcf39b('track-changes-command-not-found',this,{'commandName':_0x569b5c});if(this['_enabledCommands']['has'](_0x104516))throw new _0xbcf39b('track-changes-enable-command-twice',this,{'commandName':_0x569b5c});this['_enabledCommands']['add'](_0x104516),_0x2c35bc&&_0x104516['on']('execute',(_0x1a78fe,_0x1e8b25)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1e8b25['length']>0x0&&_0x1e8b25[_0x1e8b25['length']-0x1]&&_0x1e8b25[_0x1e8b25['length']-0x1]['forceDefaultExecution']?_0x1e8b25['pop']():(_0x1a78fe['return']=_0x2c35bc((..._0x417127)=>_0x104516['execute'](..._0x417127,{'forceDefaultExecution':!0x0}),..._0x1e8b25),_0x1a78fe['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x431db4){let _0x5c3d98,_0x49f812;const _0x6099ee=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5c3d98=_0x431db4();}catch(_0x42abd9){_0x49f812=_0x42abd9;}return _0x6099ee||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x49f812&&_0xbcf39b['rethrowUnexpectedError'](_0x49f812,this),_0x5c3d98;}['markInsertion'](_0x1bc308,_0x45ae96=null,_0x5ec70d={}){if(_0x1bc308['isCollapsed'])return null;const _0x4b132e=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x5ec70d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1eec94,meta:_0x3f4145}of this['_findSuggestions'](_0x1bc308,'insertion'))if(_0x3f4145['isOwn']){if(!_0x3f4145['isNextTo']){if(_0x3f4145['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!cn(_0x1eec94,_0x5ec70d))continue;return _0x1eec94;}if(cn(_0x1eec94,_0x5ec70d))return _0x1eec94;this['_breakSuggestionMarker'](_0x1eec94,_0x1bc308['start'],_0x1bc308['end']);break;}if(_0x45ae96==_0x1eec94['subType']&&cn(_0x1eec94,_0x5ec70d)){const _0x8d9cca=_0x1eec94['getFirstRange']();return _0x8d9cca['start']['isEqual'](_0x1bc308['end'])?this['_setSuggestionRange'](_0x1eec94,this['_model']['createRange'](_0x1bc308['start'],_0x8d9cca['end'])):this['_setSuggestionRange'](_0x1eec94,this['_model']['createRange'](_0x8d9cca['start'],_0x1bc308['end'])),_0x1eec94;}}const _0x4f4e69=_0x2d99d9(),_0x14ab2e=_0x4b132e['id'],_0x50cb17=_0x45ae96?'insertion:'+_0x45ae96:'insertion',_0x26aba5=this['_setSuggestionData']({'id':_0x4f4e69,'type':_0x50cb17,'createdAt':new Date(),'authorId':_0x14ab2e,'attributes':_0x5ec70d});return this['_addSuggestionMarker'](_0x50cb17,_0x4f4e69,_0x14ab2e,_0x1bc308),_0x26aba5;}['markMultiRangeInsertion'](_0x41f0f1,_0x3c3010='multi',_0x78e0ef={}){const _0x90ada4=this['editor']['plugins']['get']('Users')['me'],_0x18b42a=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3c3010,'join');this['_trackingSessionId']&&(_0x78e0ef['trackingSessionId']=this['_trackingSessionId']);for(const _0x1e913e of this['getSuggestions']())if(_0x1e913e['author']['id']==_0x90ada4['id']&&'insertion'==_0x1e913e['type']&&_0x1e913e['subType']==_0x3c3010&&cn(_0x1e913e,_0x78e0ef)&&(_0x18b42a(_0x1e913e['getRanges'](),_0x41f0f1)||_0x18b42a(_0x41f0f1,_0x1e913e['getRanges']()))){for(const _0x4f8731 of _0x41f0f1)_0x1e913e['addRange'](_0x4f8731);return _0x1e913e;}for(const {suggestion:_0x2991e2,meta:_0x32ddfd}of this['_findSuggestions'](_0x41f0f1,'insertion')){if(!_0x32ddfd['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x32ddfd['containsRangeInObject'])continue;if(!cn(_0x2991e2,_0x78e0ef))continue;let _0x16657c=!0x0;for(const _0x26f446 of _0x2991e2['getRanges']())for(const _0x3f82e8 of _0x41f0f1)if(!_0x26f446['containsRange'](_0x3f82e8)){_0x16657c=!0x1;break;}if(_0x16657c)return _0x2991e2;}const _0x32c6ff=_0x2d99d9(),_0x459e28=_0x90ada4['id'],_0x5f4205='insertion:'+_0x3c3010,_0x3526ff=this['_setSuggestionData']({'id':_0x32c6ff,'type':_0x5f4205,'createdAt':new Date(),'authorId':_0x459e28,'attributes':_0x78e0ef});for(const _0x4f6334 of _0x41f0f1)this['_addSuggestionMarker'](_0x5f4205,_0x32c6ff,_0x459e28,_0x4f6334,bt['getMultiRangeId']());return _0x3526ff;}['markInlineFormat'](_0xc1e6ff,_0x238462,_0x5c03ec=null,_0x15ed08={}){if(_0x5c03ec=_0x5c03ec||Je(_0x238462),_0xc1e6ff['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x15ed08['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x247ebf=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5c03ec,'accept');return this['forceDefaultExecution'](()=>_0x247ebf([_0xc1e6ff],_0x238462,_0x15ed08)),null;}const _0x834fd8=this['editor']['plugins']['get']('Users')['me'],_0x22c512=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x209ad1,meta:_0x409467}of this['_findSuggestions'](_0xc1e6ff,'insertion'))_0x409467['isOwn']&&!_0x409467['isInsideObject']&&_0x22c512['push'](..._0x209ad1['getRanges']());}const _0x115b9f=function(_0x5d1e6d,_0x5843c0){const _0x415f2f=[];for(const _0x2d1196 of _0x5843c0){const _0x2f7c31=_0x5d1e6d['getIntersection'](_0x2d1196);_0x2f7c31&&_0x415f2f['push'](_0x2f7c31);}return _0x415f2f;}(_0xc1e6ff,_0x22c512),_0x3a3bee=function(_0x553e78,_0x1170f4){const _0x290c28=[_0x553e78];for(const _0x4bc968 of _0x1170f4){let _0x32a64d=0x0;for(;_0x32a64d<_0x290c28['length'];){const _0x49d51e=_0x290c28[_0x32a64d]['getDifference'](_0x4bc968);_0x290c28['splice'](_0x32a64d,0x1,..._0x49d51e),_0x32a64d+=_0x49d51e['length'];}}return _0x290c28;}(_0xc1e6ff,_0x22c512);_0x115b9f['length']&&this['_model']['change'](()=>{for(const _0x2258cb of _0x115b9f){const _0x5d9e4a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5c03ec,'accept');this['forceDefaultExecution'](()=>_0x5d9e4a([_0x2258cb],_0x238462,_0x15ed08));}});for(const _0x4ade9a of _0x3a3bee){let _0xbf91b4=null,_0xb85daa=_0x4ade9a['start'],_0x795436=_0x4ade9a['end'];for(const {suggestion:_0x1dca85,meta:_0x1ed0f8}of this['_findSuggestions'](_0x4ade9a,'formatInline')){if(!_0x1ed0f8['isOwn'])continue;if(_0x1dca85['subType']!=_0x5c03ec)continue;if(!cn(_0x1dca85,_0x15ed08))continue;const _0x45d47c=_0x1dca85['getFirstRange']();if(_0x45d47c['containsRange'](_0x4ade9a,!0x0))return null;_0xb85daa=_0xb85daa['isBefore'](_0x45d47c['start'])?_0xb85daa:_0x45d47c['start'],_0x795436=_0x795436['isAfter'](_0x45d47c['end'])?_0x795436:_0x45d47c['end'],_0xbf91b4?_0x45d47c['start']['isBefore'](_0xbf91b4['getFirstRange']()['start'])?(_0xbf91b4['removeMarkers'](),_0xbf91b4=_0x1dca85):_0x1dca85['removeMarkers']():_0xbf91b4=_0x1dca85;}const _0x4b5f9a=this['_model']['createRange'](_0xb85daa,_0x795436);if(_0xbf91b4)this['_setSuggestionRange'](_0xbf91b4,_0x4b5f9a);else{const _0x171e10=_0x2d99d9(),_0x13af29=_0x834fd8['id'];this['_setSuggestionData']({'id':_0x171e10,'type':'formatInline:'+_0x5c03ec,'data':_0x238462,'createdAt':new Date(),'authorId':_0x13af29,'attributes':_0x15ed08}),this['_addSuggestionMarker']('formatInline:'+_0x5c03ec,_0x171e10,_0x13af29,_0x4b5f9a);}}return null;}['markBlockFormat'](_0x34a7fa,_0x2f4ba3,_0x128f29=[],_0x5e5898=null,_0x51166f={}){_0x2f4ba3['formatGroupId']||(_0x2f4ba3['formatGroupId']=_0x2f4ba3['commandName']),_0x2f4ba3['multipleBlocks']=_0x34a7fa['is']('range'),_0x5e5898=_0x5e5898||Je(_0x2f4ba3);const _0x4841a1=_0x128f29['map'](_0x20dfe9=>rn(_0x20dfe9,this['_model'])),_0x3a8ee9=_0x34a7fa['is']('range')?_0x34a7fa:rn(_0x34a7fa,this['_model']);if(this['_trackingSessionId']&&(_0x51166f['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x178885=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5e5898,'accept');return this['forceDefaultExecution'](()=>_0x178885([_0x3a8ee9],_0x2f4ba3,_0x51166f)),null;}_0x4841a1['push'](_0x3a8ee9);let _0x235523=!0x0;for(const _0x847c18 of _0x4841a1)if(!this['_rangeIsInLocalUserInsertion'](_0x847c18)){_0x235523=!0x1;break;}if(_0x235523&&'always'!==this['_trackFormatChanges']){const _0x3f42e4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5e5898,'accept');return this['forceDefaultExecution'](()=>_0x3f42e4([_0x3a8ee9],_0x2f4ba3,_0x51166f)),null;}let _0x742d1a=null,_0x472b36=_0x3a8ee9['start'],_0x149d47=_0x3a8ee9['end'];for(const {suggestion:_0x1737b6,meta:_0x81b09f}of this['_findSuggestions'](_0x3a8ee9,'formatBlock')){if(!_0x81b09f['isOwn'])continue;if(_0x81b09f['isNextTo']||_0x81b09f['containsRangeInObject']||_0x81b09f['isInsideObject'])continue;if(_0x1737b6['data']['formatGroupId']!=_0x2f4ba3['formatGroupId'])continue;if(!cn(_0x1737b6,_0x51166f))continue;const _0x45bf58=_0x1737b6['getFirstRange']();if(_0x1737b6['subType']==_0x5e5898){if(_0x45bf58['containsRange'](_0x3a8ee9,!0x0))return null;_0x472b36=_0x472b36['isBefore'](_0x45bf58['start'])?_0x472b36:_0x45bf58['start'],_0x149d47=_0x149d47['isAfter'](_0x45bf58['end'])?_0x149d47:_0x45bf58['end'],_0x742d1a?_0x45bf58['start']['isBefore'](_0x742d1a['getFirstRange']()['start'])?(_0x742d1a['removeMarkers'](),_0x742d1a=_0x1737b6):_0x1737b6['removeMarkers']():_0x742d1a=_0x1737b6;}else{const _0x155a34=_0x3a8ee9['getIntersection'](_0x45bf58);this['_cutOutSuggestionMarker'](_0x1737b6,_0x155a34);}}const _0x244aee=this['editor']['plugins']['get']('Users')['me'],_0x58ff45=_0x2d99d9(),_0x56f743=_0x244aee['id'];if(_0x742d1a)return this['_setSuggestionRange'](_0x742d1a,this['_model']['createRange'](_0x472b36,_0x149d47)),_0x742d1a;{const _0x3a2328=this['_setSuggestionData']({'id':_0x58ff45,'type':'formatBlock:'+_0x5e5898,'data':_0x2f4ba3,'createdAt':new Date(),'authorId':_0x56f743,'attributes':_0x51166f});return this['_addSuggestionMarker']('formatBlock:'+_0x5e5898,_0x58ff45,_0x56f743,this['_model']['createRange'](_0x472b36,_0x149d47)),_0x3a2328;}}['markMultiRangeBlockFormat'](_0x3eafd8,_0x45cfdc,_0x28f839=[],_0x285b04=null,_0x10b491={}){_0x45cfdc['formatGroupId']||(_0x45cfdc['formatGroupId']=_0x45cfdc['commandName']);const _0x51f8eb=_0x3eafd8[0x0];_0x45cfdc['multipleBlocks']=_0x51f8eb['is']('range'),_0x285b04=_0x285b04||Je(_0x45cfdc);const _0x2cd440=_0x28f839['map'](_0x1fb68d=>rn(_0x1fb68d,this['_model'])),_0x170f84=_0x51f8eb['is']('range')?_0x3eafd8:_0x3eafd8['map'](_0x2784a9=>rn(_0x2784a9,this['_model']));if(this['_trackingSessionId']&&(_0x10b491['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3ed8a2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x285b04,'accept');return this['forceDefaultExecution'](()=>_0x3ed8a2(_0x170f84,_0x45cfdc,_0x10b491)),null;}_0x2cd440['push'](..._0x170f84);let _0x50114d=!0x0;for(const _0xe41ac3 of _0x2cd440)if(!this['_rangeIsInLocalUserInsertion'](_0xe41ac3)){_0x50114d=!0x1;break;}if(_0x50114d&&'always'!==this['_trackFormatChanges']){const _0x211065=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x285b04,'accept');return this['forceDefaultExecution'](()=>_0x211065(_0x170f84,_0x45cfdc,_0x10b491)),null;}const _0x4c6f5d=this['editor']['plugins']['get']('Users')['me'];for(const _0x5f3d70 of this['getSuggestions']()){const _0x43515a=_0x5f3d70['data'];if(_0x5f3d70['author']['id']!=_0x4c6f5d['id'])continue;if('formatBlock'!=_0x5f3d70['type']||_0x43515a['formatGroupId']!=_0x45cfdc['formatGroupId'])continue;if(!cn(_0x5f3d70,_0x10b491))continue;const _0x143911=_0x5f3d70['subType']==_0x285b04;for(let _0x20d548=0x0;_0x20d548<_0x170f84['length'];_0x20d548++){const _0x1baad7=_0x170f84[_0x20d548];for(const _0x435648 of _0x5f3d70['getMarkers']()){const _0x1a410d=_0x435648['getRange']();if(_0x1baad7['isEqual'](_0x1a410d)){_0x143911?(_0x170f84['splice'](_0x20d548,0x1),_0x20d548--):_0x5f3d70['removeMarker'](_0x435648['name']);break;}}}}if(0x0==_0x170f84['length'])return null;const _0x48b0d5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x285b04,'join');for(const _0x244d50 of this['getSuggestions']()){const _0x2c1f8d=_0x244d50['data'];if(_0x244d50['author']['id']==_0x4c6f5d['id']&&('formatBlock'==_0x244d50['type']&&_0x2c1f8d['formatGroupId']==_0x45cfdc['formatGroupId']&&_0x244d50['subType']==_0x285b04&&cn(_0x244d50,_0x10b491)&&(_0x48b0d5(_0x244d50['getRanges'](),_0x170f84)||_0x48b0d5(_0x170f84,_0x244d50['getRanges']())))){for(const _0x49bcbc of _0x170f84)_0x244d50['addRange'](_0x49bcbc);return _0x244d50;}}const _0x18637f=_0x2d99d9(),_0x1c811c=_0x4c6f5d['id'],_0x57ecb7='formatBlock:'+_0x285b04,_0x55bb25=this['_setSuggestionData']({'id':_0x18637f,'type':_0x57ecb7,'data':_0x45cfdc,'createdAt':new Date(),'authorId':_0x1c811c,'attributes':_0x10b491});for(const _0x254d48 of _0x170f84)this['_addSuggestionMarker'](_0x57ecb7,_0x18637f,_0x1c811c,_0x254d48,bt['getMultiRangeId']());return _0x55bb25;}['markDeletion'](_0x3facd6,_0x521b23=null,_0x241345={}){if(_0x3facd6['isCollapsed'])return null;const _0x2178a3=this['editor']['plugins']['get']('Users')['me'],_0x2bcc27=new _0x4f142a(_0x3facd6['start'],_0x3facd6['end']);this['_trackingSessionId']&&(_0x241345['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x8e780e,meta:_0xd7e235}of this['_findSuggestions'](_0x2bcc27,'insertion'))if(_0xd7e235['isOwn']&&!_0xd7e235['isNextTo']){if(_0x8e780e['isMultiRange']){const _0x51d6ac=_0x8e780e['getRanges']()['filter'](_0x4109d8=>'$graveyard'!=_0x4109d8['root']['rootName']);_0x51d6ac['every'](_0x469635=>_0x2bcc27['containsRange'](_0x469635,!0x0))&&_0x8e780e['discard']();if(_0x51d6ac['some'](_0x3f515e=>_0x3f515e['containsRange'](_0x2bcc27,!0x0))){const _0x1117dc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x521b23,'accept');return this['forceDefaultExecution'](()=>_0x1117dc([_0x2bcc27],null,_0x241345)),null;}}else{const _0x25cd92=_0x2bcc27['getIntersection'](_0x8e780e['getFirstRange']());null!==_0x25cd92&&_0x8e780e['_onDiscard']([_0x25cd92],null,_0x241345);}}if(_0x2bcc27['detach'](),_0x2bcc27['isCollapsed']||'$graveyard'==_0x2bcc27['root']['rootName'])return null;let _0x4b4cd5=null,_0x26948b=_0x2bcc27['start'],_0x4cd2cc=_0x2bcc27['end'];const _0x1337da=this['_findSuggestions'](_0x2bcc27,'deletion');for(const {suggestion:_0x45e316,meta:_0x38aba2}of _0x1337da){const _0x5a6d6d=this['_model']['createRange'](_0x26948b,_0x4cd2cc);if(_0x38aba2['isOwn']&&(this['_mergeNestedSuggestions']||!_0x38aba2['containsRangeInObject']&&!_0x38aba2['isInsideObject'])){if(_0x45e316['isMultiRange']){if(!cn(_0x45e316,_0x241345))continue;let _0x3d4a09=!0x0;for(const _0x44a4c1 of _0x45e316['getRanges']()){if(_0x44a4c1['containsRange'](_0x5a6d6d,!0x0))return _0x45e316;_0x5a6d6d['containsRange'](_0x44a4c1)||(_0x3d4a09=!0x1);}_0x3d4a09&&_0x45e316['discard']();}else{const _0xb00b7f=_0x45e316['getFirstRange']();if(_0xb00b7f['containsRange'](_0x5a6d6d,!0x0))return _0x45e316;if(!cn(_0x45e316,_0x241345)){_0x5a6d6d['containsRange'](_0xb00b7f)?_0x45e316['removeMarkers']():_0xb00b7f['containsPosition'](_0x26948b)?_0x26948b=_0xb00b7f['end']:_0xb00b7f['containsPosition'](_0x4cd2cc)&&(_0x4cd2cc=_0xb00b7f['start']);continue;}_0x26948b=_0x26948b['isBefore'](_0xb00b7f['start'])?_0x26948b:_0xb00b7f['start'],_0x4cd2cc=_0x4cd2cc['isAfter'](_0xb00b7f['end'])?_0x4cd2cc:_0xb00b7f['end'],_0x241345=Object['assign']({},_0x45e316['attributes']),_0x4b4cd5?_0xb00b7f['start']['isBefore'](_0x4b4cd5['getFirstRange']()['start'])?(_0x4b4cd5['removeMarkers'](),_0x4b4cd5=_0x45e316):_0x45e316['removeMarkers']():_0x4b4cd5=_0x45e316;}}}if(_0x4b4cd5)return this['_setSuggestionRange'](_0x4b4cd5,this['_model']['createRange'](_0x26948b,_0x4cd2cc)),_0x4b4cd5;{const _0x1c529b=_0x2d99d9(),_0x37b8d1=this['_model']['createRange'](_0x26948b,_0x4cd2cc),_0x5a2994=_0x2178a3['id'],_0x331e8b=_0x521b23?'deletion:'+_0x521b23:'deletion',_0x498de0=this['_setSuggestionData']({'id':_0x1c529b,'type':_0x331e8b,'createdAt':new Date(),'authorId':_0x5a2994,'attributes':_0x241345});return this['_addSuggestionMarker'](_0x331e8b,_0x1c529b,_0x5a2994,_0x37b8d1),_0x498de0;}}['markMultiRangeDeletion'](_0x40520a,_0x27c2e0='multi',_0x4d5a6a={}){const _0x365eb5=this['editor']['plugins']['get']('Users')['me'],_0xa4c407=_0x40520a['map'](_0x8abb2b=>new _0x4f142a(_0x8abb2b['start'],_0x8abb2b['end'])),_0x3ccd80=new Set();this['_trackingSessionId']&&(_0x4d5a6a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3ba16c,meta:_0xc97287}of this['_findSuggestions'](_0xa4c407,'insertion'))_0xc97287['isOwn']&&!_0xc97287['isNextTo']&&_0x3ccd80['add'](_0x3ba16c);for(const _0x46b049 of _0x3ccd80)if(_0x46b049['isMultiRange']){const _0x8da71e=_0x46b049['getRanges']();(!_0x46b049['attributes']||!_0x46b049['attributes']['skipNestingCheck'])&&(_0x8da71e['every'](_0x57aa0e=>_0xa4c407['some'](_0x1ecfb6=>_0x1ecfb6['containsRange'](_0x57aa0e,!0x0)))&&_0x46b049['discard']());if(_0xa4c407['every'](_0x30231=>_0x8da71e['some'](_0x107eea=>_0x107eea['containsRange'](_0x30231,!0x0)))){const _0x11344e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x27c2e0,'accept');return this['forceDefaultExecution'](()=>_0x11344e(_0x40520a,null,_0x4d5a6a)),null;}}else{const _0x46921b=_0x46b049['getFirstRange']();_0xa4c407['some'](_0xe1159b=>_0xe1159b['containsRange'](_0x46921b,!0x0))&&_0x46b049['discard']();if(_0xa4c407['every'](_0x185891=>_0x46921b['containsRange'](_0x185891,!0x0))){const _0x374710=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x27c2e0,'accept');return this['forceDefaultExecution'](()=>_0x374710(_0xa4c407,null,_0x4d5a6a)),null;}}const _0x376b29=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x27c2e0,'join');let _0x4e6171=null;for(const _0x664415 of this['getSuggestions']())if(_0x664415['author']['id']==_0x365eb5['id']&&_0x664415['isInContent']&&'deletion'==_0x664415['type']&&_0x664415['subType']==_0x27c2e0&&cn(_0x664415,_0x4d5a6a)&&(_0x376b29(_0x664415['getRanges'](),_0xa4c407)||_0x376b29(_0xa4c407,_0x664415['getRanges']()))){if(_0x4e6171){if(_0x664415['commentThread']&&_0x664415['commentThread']['length'])continue;for(const _0x36c2f3 of _0x664415['getRanges']())_0x4e6171['isIntersectingWithRange'](_0x36c2f3)||_0x4e6171['addRange'](_0x36c2f3);_0x664415['removeMarkers']();}else{_0x4e6171=_0x664415;for(const _0x2547fa of _0xa4c407)_0x664415['isIntersectingWithRange'](_0x2547fa)||_0x664415['addRange'](_0x2547fa);}}if(_0x4e6171)return _0x4e6171;_0x3ccd80['clear']();for(const {suggestion:_0x4085b9,meta:_0x43e414}of this['_findSuggestions'](_0xa4c407,'deletion'))_0x43e414['isOwn']&&(this['_mergeNestedSuggestions']||!_0x43e414['containsRangeInObject']&&!_0x43e414['isInsideObject'])&&cn(_0x4085b9,_0x4d5a6a)&&_0x3ccd80['add'](_0x4085b9);for(const _0x104fce of _0x3ccd80){const _0x3af86b=_0x104fce['getRanges']();if(!_0x4d5a6a||!_0x4d5a6a['skipNestingCheck']){if(_0xa4c407['every'](_0x42a998=>_0x3af86b['some'](_0x4aa056=>_0x4aa056['containsRange'](_0x42a998,!0x0))))return _0x104fce;}(!_0x104fce['attributes']||!_0x104fce['attributes']['skipNestingCheck'])&&(_0x3af86b['every'](_0x52001b=>_0xa4c407['some'](_0x5a1ae5=>_0x5a1ae5['containsRange'](_0x52001b,!0x0)))&&_0x104fce['discard']());}const _0x53000a=_0x2d99d9(),_0x2d4c7c=_0x365eb5['id'],_0x245111='deletion:'+_0x27c2e0,_0x13f970=this['_setSuggestionData']({'id':_0x53000a,'type':_0x245111,'createdAt':new Date(),'authorId':_0x2d4c7c,'attributes':_0x4d5a6a});for(const _0x4e8340 of _0xa4c407)_0x4e8340['detach'](),_0x4e8340['isCollapsed']||'$graveyard'==_0x4e8340['root']['rootName']||this['_addSuggestionMarker'](_0x245111,_0x53000a,_0x2d4c7c,_0x4e8340,bt['getMultiRangeId']());return _0x13f970;}['markAttributeChange'](_0x52916a,_0x3c56a2,_0x30ca73,_0x381caa,_0x3f750a){if(_0x52916a['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x517033=this['editor']['plugins']['get']('Users')['me']['id'],_0x5652f2=Array['from'](this['_suggestions']['values']())['filter'](_0x1e2f36=>'attribute'==_0x1e2f36['type']&&_0x1e2f36['data']['key']==_0x3c56a2&&_0x1e2f36['isIntersectingWithRange'](_0x52916a));if(this['_trackingSessionId']&&(_0x3f750a['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x48ce8a=this['_findSuggestions'](_0x52916a,'insertion')['filter'](({meta:_0x3bf15b})=>_0x3bf15b['isOwn']&&!_0x3bf15b['isInsideObject']&&!_0x3bf15b['isNextTo'])['map'](({suggestion:_0x4a222d})=>_0x4a222d);_0x5652f2['unshift'](..._0x48ce8a);}const _0x3dafa4=new Map([[_0x52916a,_0x30ca73]]);for(const _0x2a8c75 of _0x5652f2){const _0xb31f8a='attribute'==_0x2a8c75['type']?_0x2a8c75['data']['oldValue']:void 0x0,_0x2447ab=_0x2a8c75['getFirstRange'](),_0x543a08=Array['from'](_0x3dafa4['keys']())['find'](_0x174216=>_0x174216['isIntersecting'](_0x2447ab));if(!_0x543a08)continue;const _0x28f080=_0x543a08['getDifference'](_0x2447ab);this['_suggestionsConversion']['isBlockAttribute'](_0x3c56a2)&&'insertion'==_0x2a8c75['type']&&0x0!=_0x28f080['length']||(_0x3dafa4['delete'](_0x543a08),_0x28f080['forEach'](_0x5b7883=>{_0x3dafa4['set'](_0x5b7883,_0x30ca73);}),'insertion'!=_0x2a8c75['type']&&_0xb31f8a!=_0x381caa&&_0x3dafa4['set'](_0x543a08['getIntersection'](_0x2447ab),_0xb31f8a));}const _0xcdc7a7=[];for(const [_0x566578,_0x4cfb00]of _0x3dafa4){const _0x5b5f7a=_0x2d99d9(),_0x3021d7={'key':_0x3c56a2,'oldValue':_0x4cfb00,'newValue':_0x381caa};_0x3c56a2['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':_0x3c56a2});const _0x4d49b3=('attribute:'+(_0x3c56a2+'|'+Je({'newValue':_0x381caa})))['substring'](0x0,0x3c),_0x1a8be7=this['_setSuggestionData']({'id':_0x5b5f7a,'type':_0x4d49b3,'data':_0x3021d7,'createdAt':new Date(),'authorId':_0x517033,'attributes':_0x3f750a});_0xcdc7a7['push'](_0x1a8be7),this['_addSuggestionMarker'](_0x4d49b3,_0x5b5f7a,_0x517033,_0x566578);}return _0xcdc7a7;}['enableDefaultAttributesIntegration'](_0x4ac812){this['enableCommand'](_0x4ac812,(_0x456304,..._0x320765)=>{this['recordAttributeChanges'](()=>{_0x456304(..._0x320765);});});}['startTrackingSession'](_0x2886a9){return this['_trackingSessionId']=void 0x0!==_0x2886a9?_0x2886a9:_0x2d99d9(),this['_trackingSessionId'];}['_getAttributeKey'](_0x1d754c){return'attribute'==_0x1d754c['type']?un(_0x1d754c['subType']):null;}['_applyOperationsAsSuggestions'](_0x42b5b6){if(0x0==_0x42b5b6['length'])return;const _0x1cf961=this['editor'],_0x49735b=_0x1cf961['plugins']['get'](_0x5ac772),_0x40aabf=[];_0x1cf961['model']['change'](_0x55d47d=>{for(let _0x40ddcb=0x0;_0x40ddcb<_0x42b5b6['length'];_0x40ddcb++){const _0x1085bd=_0x42b5b6[_0x40ddcb];if(_0x1085bd['baseVersion']=_0x1cf961['model']['document']['version'],_0x1085bd['isDocumentOperation']=!0x0,_0x49735b['isMarkedRemoveOperation'](_0x1085bd)){const _0x5ae7fa=_0x2cb2a7(_0x1085bd['newRange'],_0x1cf961['model']);_0x40aabf['unshift'](_0x4f142a['fromRange'](_0x5ae7fa));}else switch(_0x1085bd['type']){case'rename':{const _0x1caa8c=_0x1085bd['oldName'],_0x33ca16=_0x1085bd['newName'];if(_0x1caa8c==_0x33ca16)break;_0x55d47d['batch']['addOperation'](_0x1085bd),_0x1cf961['model']['applyOperation'](_0x1085bd);const _0x30c166='$elementName',_0x307972=_0x1085bd['position'],_0x1a8ca0=_0x1cf961['model']['createRange'](_0x307972,_0x1cf961['model']['createPositionAt'](_0x307972['nodeAfter'],'end'));this['markAttributeChange'](_0x1a8ca0,_0x30c166,_0x1caa8c,_0x33ca16,{'groupId':_0x2d99d9()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x24cfdd=_0x1085bd['oldValue'],_0x4f9ce5=_0x1085bd['newValue'];if(_0x24cfdd==_0x4f9ce5)break;_0x55d47d['batch']['addOperation'](_0x1085bd),_0x1cf961['model']['applyOperation'](_0x1085bd);const _0xfb86e1=_0x1085bd['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0xfb86e1))break;const _0xcb0446=_0x2cb2a7(_0x1085bd['range'],_0x1cf961['model']);this['markAttributeChange'](_0xcb0446,_0xfb86e1,_0x24cfdd,_0x4f9ce5,{'groupId':_0x2d99d9()});break;}case'insert':{_0x55d47d['batch']['addOperation'](_0x1085bd),_0x1cf961['model']['applyOperation'](_0x1085bd);if(_0x42b5b6[_0x40ddcb+0x1]&&'move'==_0x42b5b6[_0x40ddcb+0x1]['type'])break;const _0x6f5f82=_0x1085bd['position'],_0x587c4b=_0x1085bd['howMany'],_0xebccab=_0x2cb2a7(_0x1cf961['model']['createRange'](_0x6f5f82,_0x6f5f82['getShiftedBy'](_0x587c4b)),_0x1cf961['model']);this['markInsertion'](_0xebccab);break;}case'split':{_0x55d47d['batch']['addOperation'](_0x1085bd),_0x1cf961['model']['applyOperation'](_0x1085bd);const _0x260595=_0x1085bd['splitPosition'],_0x505403=_0x1085bd['moveTargetPosition'];this['markInsertion'](_0x1cf961['model']['createRange'](_0x260595,_0x505403));break;}case'move':case'remove':_0x55d47d['batch']['addOperation'](_0x1085bd),_0x1cf961['model']['applyOperation'](_0x1085bd);}}for(const _0x1e08c5 of _0x40aabf)_0x1e08c5['detach'](),this['markDeletion'](_0x1e08c5);});}['_setSuggestionRange'](_0x35b08a,_0x5b2739){const _0x58a1a8=_0x35b08a['getFirstMarker']();this['_model']['change'](_0x57d1c1=>{_0x57d1c1['updateMarker'](_0x58a1a8,{'range':_0x5b2739});});}['_addThreadToSuggestion'](_0x5e4543){const _0x4695ae=_0x5e4543['id'],_0x51c723=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4695ae)||this['_commentsRepository']['addCommentThread']({'channelId':_0x51c723,'threadId':_0x4695ae,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2d8917=this['_commentsRepository']['getCommentThread'](_0x4695ae);_0x2d8917['unbind']('isRemovable'),_0x2d8917['isRemovable']=!0x1,_0x5e4543['commentThread']=_0x2d8917;}['_checkSuggestionCorrectness'](_0x1923a4,_0x367583,_0x155c5d,_0x38bbd2){if(_0x1923a4['type']!=_0x367583||_0x1923a4['subType']!=_0x155c5d||_0x1923a4['creator']['id']!=_0x38bbd2)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xbcf39b('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5916b8,_0x4bed67){const _0x15f3ac=_0x5916b8['getFirstRange']();if(_0x4bed67['isEqual'](_0x15f3ac))_0x5916b8['removeMarkers']();else{if(_0x15f3ac['containsRange'](_0x4bed67)){const _0xadcf38=this['_model']['createPositionAt'](_0x4bed67['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5916b8,this['_model']['createRange'](_0x15f3ac['start'],_0xadcf38));const _0x48bda9=_0x2d99d9(),_0x2347a6=_0x5916b8['creator']['id'],_0x11888f=_0x5916b8['type']+':'+_0x5916b8['subType'];this['_setSuggestionData']({'id':_0x48bda9,'type':_0x11888f,'createdAt':new Date(),'authorId':_0x2347a6,'data':_0x5916b8['data'],'attributes':_0x5916b8['attributes']});const _0x12b318=this['_model']['createPositionAt'](_0x4bed67['end']['parent'],'after'),_0x38ec81=this['_model']['createRange'](_0x12b318,_0x15f3ac['end']);this['_addSuggestionMarker'](_0x11888f,_0x48bda9,_0x2347a6,_0x38ec81);}else{if(_0x15f3ac['containsPosition'](_0x4bed67['start'])){const _0x2de969=this['_model']['createPositionAt'](_0x4bed67['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5916b8,this['_model']['createRange'](_0x15f3ac['start'],_0x2de969));}else{const _0x313fac=this['_model']['createPositionAt'](_0x4bed67['end']['parent'],'after');this['_setSuggestionRange'](_0x5916b8,this['_model']['createRange'](_0x313fac,_0x15f3ac['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x6f94bd){for(const {suggestion:_0x3291a5,meta:_0x417eb3}of this['_findSuggestions'](_0x6f94bd,'insertion')){if(!_0x417eb3['isOwn'])continue;const _0x207d73=_0x3291a5['getRanges']();for(const _0x56b536 of _0x207d73)if(!_0x6f94bd['getDifference'](_0x56b536)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4de423){return this['editor']['plugins']['get']('Users')['getUser'](_0x4de423);}['_getExternalAuthor'](_0x3eb824){const _0x324f39=this['editor']['plugins']['get']('Users'),_0x43bfec=_0x56dc35('external:'+_0x3eb824),_0x1af59a=_0x324f39['getUser'](_0x43bfec);return _0x1af59a||_0x324f39['addUser']({'id':_0x43bfec,'name':_0x3eb824});}['_createSuggestion'](_0x97bd6e,_0x1bbdd0,_0x5879ce,_0x8c1449,_0x1fb303,_0x42c1ca){const _0x5672da=this['_getAuthorFromId'](_0x8c1449);if(!_0x5672da)throw new _0xbcf39b('track-changes-user-not-found',this,{'authorId':_0x8c1449,'suggestionId':_0x5879ce});const _0xfbf8b0=this['_suggestionFactory']['buildSuggestion'](_0x97bd6e,_0x1bbdd0,_0x5879ce,_0x5672da,_0x1fb303,_0x188bf1=>{this['_updateSuggestionData'](_0x5879ce,{'attributes':_0x188bf1});const _0x2ae5e9=this['getSuggestion'](_0x5879ce);this['_joinWithAdjacentSuggestions'](new Set([_0x2ae5e9])),this['_refreshSuggestionsChain'](new Set([_0x2ae5e9]));},_0x42c1ca);return this['listenTo'](_0xfbf8b0,'accept',()=>{this['_updateSuggestionData'](_0x5879ce,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xfbf8b0,'discard',()=>{this['_updateSuggestionData'](_0x5879ce,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5879ce,_0xfbf8b0),this['_suggestionState']['set'](_0xfbf8b0,'notReady'),_0xfbf8b0;}['_breakSuggestionMarker'](_0x2424f9,_0x103112,_0x3350df){const _0x3112d8=_0x2424f9['getFirstRange'](),_0x105e3a=_0x3112d8['start'],_0x7389fa=_0x3112d8['end'];this['_setSuggestionRange'](_0x2424f9,this['_model']['createRange'](_0x105e3a,_0x103112));const _0x39d75e=_0x2d99d9(),_0x3bce67=_0x2424f9['creator']['id'],_0x4209c9=_0x2424f9['type']+(_0x2424f9['subType']?':'+_0x2424f9['subType']:'');this['_setSuggestionData']({'id':_0x39d75e,'type':_0x4209c9,'createdAt':new Date(),'authorId':_0x3bce67,'originalSuggestionId':_0x2424f9['_originalSuggestionId']||_0x2424f9['id'],'attributes':_0x2424f9['attributes'],'data':_0x2424f9['data']});const _0x2fd938=this['_getAttributeKey'](_0x2424f9);('formatBlock'==_0x2424f9['type']||_0x2fd938&&this['_suggestionsConversion']['isBlockAttribute'](_0x2fd938))&&(_0x3350df=this['_model']['createPositionBefore'](_0x3350df['parent'])),this['_addSuggestionMarker'](_0x4209c9,_0x39d75e,_0x3bce67,this['_model']['createRange'](_0x3350df,_0x7389fa));}['_findSuggestions'](_0x5a2125,_0x59a22f=null){const _0x27f3a8=[],_0x33f938=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5a2125)||(_0x5a2125=[_0x5a2125]);for(const _0x10e736 of this['getSuggestions']()){if(!_0x10e736['isInContent'])continue;if(_0x59a22f&&_0x10e736['type']!=_0x59a22f)continue;let _0x25fa60=!0x1;for(const _0x21179d of _0x10e736['getRanges']()){for(const _0x3dfccb of _0x5a2125){const _0x5b4ca2=_0x3dfccb['start']['isEqual'](_0x21179d['end'])||_0x3dfccb['end']['isEqual'](_0x21179d['start']);if(_0x5b4ca2||_0x3dfccb['getIntersection'](_0x21179d)){const _0x5d883b=_0x3dfccb['containsRange'](_0x21179d)&&qe(this['_model']['schema'],_0x21179d['start'],_0x3dfccb),_0x2ed571=_0x21179d['containsRange'](_0x3dfccb)&&qe(this['_model']['schema'],_0x3dfccb['start'],_0x21179d);_0x27f3a8['push']({'suggestion':_0x10e736,'meta':{'isOwn':_0x33f938==_0x10e736['author'],'isNextTo':_0x5b4ca2,'isInsideObject':_0x5d883b,'containsRangeInObject':_0x2ed571}}),_0x25fa60=!0x0;break;}}if(_0x25fa60)break;}}return _0x27f3a8;}['_addSuggestionMarker'](_0x43c15b,_0x3b3f39,_0xbfca45,_0x56de53,_0x5c9378){this['_model']['change'](_0x2c10af=>{let _0x23d17f='suggestion:'+_0x43c15b+':'+_0x3b3f39+':'+_0xbfca45;_0x5c9378&&(_0x23d17f=_0x23d17f+':'+_0x5c9378),_0x2c10af['addMarker'](_0x23d17f,{'range':_0x56de53,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2bdca9){const _0x145302=_0x2bdca9['previous'],_0x1089fe=_0x2bdca9['next'];_0x2bdca9['previous']=null,_0x2bdca9['next']=null,null!=_0x145302&&_0x145302['next']==_0x2bdca9&&(_0x145302['next']=_0x1089fe),null!=_0x1089fe&&_0x1089fe['previous']==_0x2bdca9&&(_0x1089fe['previous']=_0x145302),'ready'==this['_suggestionState']['get'](_0x2bdca9)&&(this['_suggestionState']['set'](_0x2bdca9,'removed'),this['fire']('suggestionUnloaded',_0x2bdca9,_0x145302,_0x1089fe));}['_setSuggestionData'](_0x680e94){const _0x33bf03=_0x680e94['id'],_0x1e544b=this['addSuggestionData'](_0x680e94);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x117e01=this['editor']['plugins']['get']('PendingActions'),_0x239c72=_0x1e544b['hasComments'],_0x579ee1=_0x1e544b['subType']?_0x1e544b['type']+':'+_0x1e544b['subType']:_0x1e544b['type'],_0x5bc439=this['editor']['locale'],_0x52cebd=_0x117e01['add'](At(_0x5bc439,'PENDING_ACTION_SUGGESTION')),_0x15fc96={'id':_0x33bf03,'type':_0x579ee1,'hasComments':_0x239c72,'data':_0x680e94['data']||null,'originalSuggestionId':_0x680e94['originalSuggestionId']||null,'attributes':_0x1e544b['attributes']};this['_adapter']['addSuggestion'](_0x15fc96)['then'](_0x3fc9a5=>{_0x1e544b['_saved']=!0x0,_0x117e01['remove'](_0x52cebd),_0x3fc9a5&&_0x3fc9a5['createdAt']&&(this['_suggestions']['get'](_0x33bf03)['createdAt']=_0x3fc9a5['createdAt']);})['catch'](_0x4b0b77=>{throw _0x57f867('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1e544b['discard']();}),_0x1e544b['stopListening'](),this['_suggestions']['delete'](_0x1e544b['id']),this['_suggestionState']['delete'](_0x1e544b),_0x4b0b77;});}return _0x1e544b;}['_updateSuggestionData'](_0x4ddabb,_0x350d1f){const _0x893f52=this['editor']['plugins']['get']('PendingActions'),_0x1a5997=this['getSuggestion'](_0x4ddabb);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1a5997['_saved']){const _0x1fa4dd=_0x893f52['add'](At(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4ddabb,_0x350d1f)['then'](()=>{_0x893f52['remove'](_0x1fa4dd);});}else _0x1a5997['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4ddabb,_0x350d1f);});}}['_getSuggestionData'](_0x4483eb){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xbcf39b('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4483eb);}['_handleNewSuggestionMarker'](_0x506dee){const {id:_0x12c1e4,type:_0x4965e4,subType:_0x91e11b,authorId:_0x4adb63}=_0x329859(_0x506dee),_0xc5fffb=this['_suggestions']['get'](_0x12c1e4)||this['_createSuggestion'](_0x4965e4,_0x91e11b,_0x12c1e4,_0x4adb63,{});switch(this['_checkSuggestionCorrectness'](_0xc5fffb,_0x4965e4,_0x91e11b,_0x4adb63),this['_suggestionState']['get'](_0xc5fffb)){case'notReady':this['_getSuggestionData'](_0x12c1e4)['then'](_0x143af7=>{let _0x157ced=Promise['resolve']();_0x143af7['hasComments']&&(_0x157ced=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x12c1e4})),_0x157ced['then'](()=>{this['addSuggestionData'](_0x143af7)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0xc5fffb,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x12c1e4,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0xc5fffb,'ready'),this['fire']('suggestionLoaded',_0xc5fffb);break;case'ready':this['fire']('suggestionChanged',_0xc5fffb);}return _0xc5fffb['addMarkerName'](_0x506dee),_0xc5fffb;}['_refreshSuggestionsChain'](_0x39d91b){const _0x2103e2=Array['from'](_0x39d91b),_0x3d6cbd=_0x2103e2['filter'](_0x498a00=>'attribute'==_0x498a00['type']);this['_refreshAttributeSuggestionsChain'](_0x3d6cbd);const _0x28ad02=_0x2103e2['filter'](_0x3e38fb=>!_0x3e38fb['isMultiRange']&&'attribute'!=_0x3e38fb['type']),_0x209e30=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5b1563=>!_0x5b1563['isMultiRange']&&'attribute'!=_0x5b1563['type']),_0x11b803=_0x209e30['filter'](_0x3ac2e0=>!_0x39d91b['has'](_0x3ac2e0)),_0x4d7fb3=new Map(_0x209e30['map'](_0x429bf8=>[_0x429bf8,this['_suggestionFactory']['getSuggestionCallback'](_0x429bf8['type'],_0x429bf8['subType'],'chain')])),_0x5e2882=new Map(_0x209e30['map'](_0x43e3a3=>[_0x43e3a3,_0x43e3a3['getFirstRange']()])),_0x5db722=new Set(),_0xb1e871=new Set();for(let _0x1e7ab6=0x0;_0x1e7ab6<_0x28ad02['length'];_0x1e7ab6++)_0xf450c2(_0x28ad02[_0x1e7ab6],_0x28ad02,_0x1e7ab6+0x1);for(let _0x2a9b9a=0x0;_0x2a9b9a<_0x28ad02['length'];_0x2a9b9a++)_0xf450c2(_0x28ad02[_0x2a9b9a],_0x11b803,0x0);const _0x3c9cb1=new Set();for(let _0x4dd23f=0x0;_0x4dd23f<_0x28ad02['length'];_0x4dd23f++){const _0x5456b1=_0x28ad02[_0x4dd23f];!_0xb1e871['has'](_0x5456b1)&&_0x5456b1['previous']&&(_0x3c9cb1['add'](_0x5456b1['previous']),_0x5456b1['previous']['next']===_0x5456b1&&(_0x5456b1['previous']['next']=null),_0x5456b1['previous']=null),!_0x5db722['has'](_0x5456b1)&&_0x5456b1['next']&&(_0x3c9cb1['add'](_0x5456b1['next']),_0x5456b1['next']['previous']===_0x5456b1&&(_0x5456b1['next']['previous']=null),_0x5456b1['next']=null);}function _0xf450c2(_0x4846e2,_0x492d05,_0x253896){for(let _0x82efa8=_0x253896;_0x82efa8<_0x492d05['length'];_0x82efa8++){const _0x33d572=_0x4cfa71(_0x4846e2,_0x492d05[_0x82efa8]);_0x33d572&&(_0x33d572[0x0]['next']=_0x33d572[0x1],_0x33d572[0x1]['previous']=_0x33d572[0x0],_0x5db722['add'](_0x33d572[0x0]),_0xb1e871['add'](_0x33d572[0x1]));}}function _0x4cfa71(_0x51a8b4,_0xc6d65e){if(_0x51a8b4['author']['id']!==_0xc6d65e['author']['id'])return null;const _0x59e542=_0x4d7fb3['get'](_0x51a8b4)(_0x51a8b4,_0xc6d65e,_0x5e2882['get'](_0x51a8b4),_0x5e2882['get'](_0xc6d65e));if(!_0x59e542)return null;return _0x4d7fb3['get'](_0xc6d65e)(_0x51a8b4,_0xc6d65e,_0x5e2882['get'](_0x51a8b4),_0x5e2882['get'](_0xc6d65e))?_0x59e542[0x1]['commentThread']&&_0x59e542[0x1]['commentThread']['length']?null:_0x59e542:null;}_0x3c9cb1['size']&&this['_refreshSuggestionsChain'](_0x3c9cb1);}['_refreshAttributeSuggestionsChain'](_0x3d2f2a){if(0x0==_0x3d2f2a['length'])return;const _0x2b5f23=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4800b5=>'attribute'==_0x4800b5['type']&&_0x4800b5['_isDataLoaded']),_0x73bd64=[],_0x4ca82b=new Map();for(const _0x2b0ee4 of _0x2b5f23){const _0x54c1af=_0x56dc35(_0x2b0ee4['attributes']);_0x4ca82b['has'](_0x54c1af)||(_0x4ca82b['set'](_0x54c1af,_0x73bd64['length']),_0x73bd64['push']([]));const _0x3a0641=_0x4ca82b['get'](_0x54c1af);_0x73bd64[_0x3a0641]['push'](_0x2b0ee4);}!(function(){_0x73bd64['sort']((_0xa97829,_0x94bccd)=>{const _0xc4954d=_0xa97829[0x0]['createdAt'],_0xf6f1a9=_0x94bccd[0x0]['createdAt'];return _0xc4954d==_0xf6f1a9?_0xa97829[0x0]['attributes']['groupId']<_0x94bccd[0x0]['attributes']['groupId']?-0x1:0x1:_0xc4954d<_0xf6f1a9?-0x1:0x1;});for(const _0x35d66d of _0x73bd64)_0x35d66d['sort']((_0x18d775,_0x3db678)=>_0x18d775['id']<_0x3db678['id']?-0x1:0x1);}());for(let _0x1b07cf=0x0;_0x1b07cf<_0x73bd64['length'];_0x1b07cf++){if(0x0==_0x73bd64[_0x1b07cf]['length'])continue;const _0x58ff82=[];for(let _0x2a30f4=_0x1b07cf+0x1;_0x2a30f4<_0x73bd64['length'];_0x2a30f4++)0x0!=_0x73bd64[_0x2a30f4]['length']&&_0x3075f1(_0x73bd64[_0x1b07cf],_0x73bd64[_0x2a30f4])&&_0x58ff82['push'](_0x2a30f4);for(const _0x494252 of _0x58ff82)_0x73bd64[_0x1b07cf]=_0x73bd64[_0x1b07cf]['concat'](_0x73bd64[_0x494252]),_0x73bd64[_0x494252]=[];}for(const _0x334493 of _0x73bd64)for(let _0x206cb5=0x0;_0x206cb5<_0x334493['length'];_0x206cb5++){const _0x5465e6=_0x334493[_0x206cb5+0x1]||null;_0x334493[_0x206cb5]['next']!==_0x5465e6&&(_0x334493[_0x206cb5]['next']=_0x5465e6);}for(const _0x961c28 of _0x73bd64)for(let _0x56016a=0x0;_0x56016a<_0x961c28['length'];_0x56016a++){const _0x249b5b=_0x961c28[_0x56016a-0x1]||null;_0x961c28[_0x56016a]['previous']!==_0x249b5b&&(_0x961c28[_0x56016a]['previous']=_0x249b5b);}function _0x3075f1(_0x5b23ed,_0x110606){if(_0x5b23ed[0x0]['attributes']['groupId']!==_0x110606[0x0]['attributes']['groupId']&&_0x5b23ed[0x0]['author']!==_0x110606[0x0]['author'])return!0x1;if(!function(_0x3808cd,_0x2dba89){if(!_0x3808cd['hasComments']&&!_0x2dba89['hasComments'])return!0x0;if(_0x3808cd['hasComments']&&_0x2dba89['hasComments'])return!0x1;if(_0x3808cd['hasComments']&&_0x2dba89['createdAt']<_0x3808cd['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2dba89['hasComments']&&_0x3808cd['createdAt']<_0x2dba89['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5b23ed[0x0],_0x110606[0x0]))return!0x1;const _0x5abbd4=ot(_0x5b23ed[0x0]['attributes'],['groupId','trackingSessionId']),_0xb56e16=ot(_0x110606[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x5abbd4,_0xb56e16))return!0x1;if(_0x5b23ed[0x0]['attributes']['groupId']==_0x110606[0x0]['attributes']['groupId'])return!0x0;if(_0x5b23ed[0x0]['attributes']['trackingSessionId']!==_0x110606[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x5b23ed['every'](_0x1d0171=>_0x110606['some'](_0x4179c9=>_0x1d0171['getFirstRange']()['isEqual'](_0x4179c9['getFirstRange']())))&&_0x110606['every'](_0x13819c=>_0x5b23ed['some'](_0x3bc65e=>_0x13819c['getFirstRange']()['isEqual'](_0x3bc65e['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1ec825){const _0x35cc0f=Array['from'](_0x1ec825),_0x597444=this['getSuggestions']({'skipNotAttached':!0x0}),_0x181f8d=_0x597444['filter'](_0x58f68b=>!_0x1ec825['has'](_0x58f68b)),_0x2c8c4d=new Map(_0x35cc0f['map'](_0x285181=>[_0x285181,this['_suggestionFactory']['getSuggestionCallback'](_0x285181['type'],_0x285181['subType'],'join')])),_0x101d97=new Map(_0x597444['map'](_0x5627f8=>[_0x5627f8,_0x5627f8['getRanges']()]));for(let _0x52c9dd=0x0;_0x52c9dd<_0x35cc0f['length'];_0x52c9dd++){if(_0x36034f(this,_0x35cc0f[_0x52c9dd],_0x35cc0f,_0x52c9dd+0x1))return!0x0;}for(let _0x1ef843=0x0;_0x1ef843<_0x35cc0f['length'];_0x1ef843++){if(_0x36034f(this,_0x35cc0f[_0x1ef843],_0x181f8d,0x0))return!0x0;}return!0x1;function _0x36034f(_0x6266c3,_0x401295,_0x469562,_0x3fbf7f){for(let _0x3ca7d5=_0x3fbf7f;_0x3ca7d5<_0x469562['length'];_0x3ca7d5++){const _0x549aa8=_0x469562[_0x3ca7d5];if(_0x549aa8['type']!==_0x401295['type']||_0x549aa8['author']['id']!==_0x401295['author']['id']||_0x549aa8['subType']!==_0x401295['subType'])continue;if(!an(_0x401295,_0x549aa8))continue;if('attribute'==_0x401295['type']&&_0x401295['data']['oldValue']!=_0x549aa8['data']['oldValue'])continue;if('attribute'==_0x401295['type']&&_0x6266c3['_suggestionsConversion']['isBlockAttribute'](_0x401295['data']['key']))continue;if('formatBlock'==_0x401295['type']){const _0x3f7a03=_0x6266c3['editor']['model'],_0xe14754=_0x401295['getContainedElement']();if(_0xe14754&&(_0x3f7a03['schema']['isObject'](_0xe14754)||_0x3f7a03['schema']['isLimit'](_0xe14754)))continue;}const _0x44a841=_0x2c8c4d['get'](_0x401295),_0x99bf79=_0x101d97['get'](_0x401295),_0x53fd3d=_0x101d97['get'](_0x549aa8),_0x20163c=_0x401295['commentThread']&&_0x401295['commentThread']['length'],_0xc9bdce=_0x549aa8['commentThread']&&_0x549aa8['commentThread']['length'];if(!_0x20163c&&_0x44a841(_0x53fd3d,_0x99bf79))return _0x6266c3['_joinSuggestions'](_0x549aa8,_0x401295),_0x101d97['delete'](_0x401295),!0x0;if(!_0xc9bdce&&_0x44a841(_0x99bf79,_0x53fd3d))return _0x6266c3['_joinSuggestions'](_0x401295,_0x549aa8),_0x101d97['delete'](_0x549aa8),!0x0;}return!0x1;}}['_joinSuggestions'](_0xf2ea38,_0x5bdeb6){if(_0xf2ea38['isMultiRange']){for(const _0x347add of _0x5bdeb6['getRanges']())_0xf2ea38['addRange'](_0x347add);}else{const _0x4bed41=_0x5bdeb6['getFirstRange']()['end'];this['_setSuggestionRange'](_0xf2ea38,this['_model']['createRange'](_0xf2ea38['getFirstRange']()['start'],_0x4bed41));}_0x5bdeb6['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2927c8,_0x4b78d7,_0xa4ff){const _0x1a82da=_0x2927c8['startsWith']('format')||_0x2927c8['startsWith']('attribute')?'FORMATTING':_0x2927c8['toUpperCase']();return At(this['editor']['locale'],_0x4b78d7+'_'+_0x1a82da+'_SUGGESTION_ANNOUNCEMENT',_0xa4ff);}['_initAriaMarkerChangeAnnouncements'](){const _0x5c9328=this['editor'];if(!_0x5c9328['ui'])return;const {ariaLiveAnnouncer:_0x284e65}=_0x5c9328['ui'];_0x5aa097(this['_model'],({left:_0x545cc3,entered:_0x3999d1})=>{for(const _0x26690e of _0x545cc3){const {group:_0x920f9b,type:_0x980fcc}=_0x329859(_0x26690e['name']);if('suggestion'===_0x920f9b){_0x284e65['announce'](this['_getMarkerAnnouncementText'](_0x980fcc,'LEAVE'));break;}}for(const _0x45a028 of _0x3999d1){const {group:_0x248cb2,type:_0xda9dc6}=_0x329859(_0x45a028['name']);if('suggestion'===_0x248cb2){_0x284e65['announce'](this['_getMarkerAnnouncementText'](_0xda9dc6,'ENTER',_0x234e83(_0x2a22b4)));break;}}});}['_processAttributeChanges'](_0x2d4b09){if(this['_recordAttributeSuggestions'])return!0x1;const _0x40214b=this['editor'],_0x5a3283=_0x40214b['model']['document']['differ']['getChanges']();if(0x0==_0x5a3283['length'])return!0x1;const _0x312528=[],_0x13df32=_0x5a3283['filter'](_0x21534b=>'attribute'==_0x21534b['type']),_0x491735=_0x5a3283['filter'](_0x58d5fe=>'insert'==_0x58d5fe['type']&&'$text'!=_0x58d5fe['name']),_0x4619cf=_0x5a3283['filter'](_0x41a486=>'remove'==_0x41a486['type']&&'$text'!=_0x41a486['name']);for(const _0x19df1b of _0x13df32)_0x312528['push']({'key':_0x19df1b['attributeKey'],'newValue':_0x19df1b['attributeNewValue'],'oldValue':_0x19df1b['attributeOldValue'],'range':sn(_0x19df1b['range'],_0x40214b['model'])});for(const _0x377d48 of _0x491735){const _0x197cb9=_0x4619cf['find'](_0x1aba6f=>_0x1aba6f['position']['isEqual'](_0x377d48['position']));_0x197cb9&&_0x312528['push']({'key':Ke,'newValue':_0x377d48['name'],'oldValue':_0x197cb9['name'],'range':_0x40214b['model']['createRangeOn'](_0x377d48['position']['nodeAfter'])});}return 0x0!=_0x312528['length']&&this['_reduceExistingSuggestions'](_0x2d4b09,_0x312528);}['_processAttributeSuggestions'](_0x123e8a){let _0x1ad9fc=!0x1;const _0x380a1e=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x16f1bf=>_0x16f1bf['data']['newRange']&&_0x16f1bf['name']['startsWith']('suggestion:attribute:'));for(const _0x3d2bd6 of _0x380a1e){const {subType:_0x1e39b0,id:_0xda1571}=_0x329859(_0x3d2bd6['name']),_0x92b951=_0x1e39b0['split']('|')[0x0];for(const _0x3e39c4 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3e39c4['id']!=_0xda1571&&'attribute'==_0x3e39c4['type']&&_0x3e39c4['data']&&_0x3e39c4['data']['key']==_0x92b951&&_0x3e39c4['getFirstRange']()['isIntersecting'](_0x3d2bd6['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3e39c4,_0x3d2bd6['data']['newRange'],_0x123e8a),_0x1ad9fc=!0x0);}return _0x1ad9fc;}['recordAttributeChanges'](_0x590b8a){this['_recordAttributeSuggestions']=!0x0,_0x590b8a();}['_reduceExistingSuggestions'](_0x65e05f,_0x14999f){if(0x0==_0x14999f['length'])return!0x1;let _0x58b977=!0x1;for(const _0x289eae of _0x14999f){const _0x57e759=this['_findSuggestions'](_0x289eae['range'],'attribute')['filter'](_0x221ebd=>!_0x221ebd['meta']['isNextTo'])['map'](_0x59f01=>_0x59f01['suggestion']),_0x3a657e=_0x56dc35({'newValue':_0x289eae['newValue']});_0x57e759['filter'](_0x2eaf64=>{const [_0x114bcd,_0x17919d]=_0x2eaf64['subType']['split']('|');return _0x114bcd==_0x289eae['key']&&_0x17919d!=_0x3a657e;})['forEach'](_0x5823e3=>{this['_reduceSuggestionAttributeRange'](_0x5823e3,_0x289eae['range'],_0x65e05f),_0x58b977=!0x0;});}return _0x58b977;}['_reduceSuggestionAttributeRange'](_0x350454,_0x4ca326,_0x444b17){const _0x1e014b=_0x350454['getFirstRange']()['getDifference'](_0x4ca326);0x0!==_0x1e014b['length']?0x1!==_0x1e014b['length']?this['_breakSuggestionMarker'](_0x350454,_0x4ca326['start'],_0x4ca326['end']):this['_setSuggestionRange'](_0x350454,_0x1e014b[0x0]):_0x444b17['removeMarker'](_0x350454['getFirstMarker']());}}class Ye{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3b8097){this['_editor']=_0x3b8097,this['_model']=_0x3b8097['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x21722a,_0x2d3e8d,_0x1cf5ca,_0x27a388,_0x223538,_0x47d428,_0x403a4d){return new bt(this['_model'],{'type':_0x21722a,'subType':_0x2d3e8d,'id':_0x1cf5ca,'originalSuggestionId':_0x403a4d,'author':_0x27a388,'creator':_0x27a388,'attributes':_0x223538,'onAttributesChange':_0x47d428,'onAccept':(..._0x2cf627)=>this['getSuggestionCallback'](_0x21722a,_0x2d3e8d,'accept')(..._0x2cf627),'onDiscard':(..._0x8593fa)=>this['getSuggestionCallback'](_0x21722a,_0x2d3e8d,'discard')(..._0x8593fa)});}['registerCustomCallback'](_0x3b6d95,_0x330ccb,_0x2dead0,_0x5992e6){const _0x3b8aff=_0x3b6d95+':'+_0x330ccb+':'+_0x2dead0;this['_customCallbacks']['set'](_0x3b8aff,_0x5992e6);}['getSuggestionCallback'](_0xbb67d6,_0x16bfa7,_0x5b3db8){const _0xf39467=_0xbb67d6+':'+_0x16bfa7+':'+_0x5b3db8;return this['_customCallbacks']['get'](_0xf39467)||this['_defaultCallbacks']['get'](_0xbb67d6+':'+_0x5b3db8);}['_registerDefaultCallbacks'](){const _0x1729e3=()=>!0x1,_0x4c2dc6=_0x14b7aa=>{_0x14b7aa['sort']((_0x7259f9,_0x22110a)=>_0x7259f9['start']['isBefore'](_0x22110a['start'])?0x1:-0x1),this['_model']['change'](_0x31727c=>{for(const _0x254d78 of _0x14b7aa){let _0x4a8d98;_0x4a8d98=_0x254d78['end']['isAtEnd']&&_0x254d78['end']['parent']==_0x254d78['start']['nodeAfter']?_0x31727c['createSelection'](_0x254d78['start']['nodeAfter'],'on'):_0x31727c['createSelection'](_0x254d78),this['_model']['deleteContent'](_0x4a8d98,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x5afa14=(_0x41c702,_0x19f1ae)=>{_0x19f1ae&&this['_model']['change'](_0xa751ce=>{const {commandName:_0x354592,commandParams:_0x2e36a5=[]}=_0x19f1ae,_0x3b7440=_0x41c702['map'](_0x4f0e4a=>(Qe(_0x4f0e4a)&&(_0x4f0e4a=this['_model']['createRange'](_0x4f0e4a['end'])),_0x4f0e4a))['filter'](_0x2b5915=>'$graveyard'!==_0x2b5915['root']['rootName']);if(_0x3b7440['length']<0x1)return;const _0x27c26f=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1604f7=>_0x4f142a['fromRange'](_0x1604f7));_0xa751ce['setSelection'](_0x3b7440);for(const _0x5bcab7 of this['_editor']['commands']['commands']())_0x5bcab7['refresh']();_0x2e36a5['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x354592,..._0x2e36a5);const _0x3b3825=_0x27c26f['filter'](_0x1e4e47=>'$graveyard'!=_0x1e4e47['root']['rootName']);_0x3b3825['length']>0x0&&_0xa751ce['setSelection'](_0x3b3825);for(const _0x14324b of _0x27c26f)_0x14324b['detach']();});},_0x2adabe=(_0x2c1df3,_0x386810)=>0x1==_0x2c1df3['length']&&0x1==_0x386810['length']&&_0x2c1df3[0x0]['end']['isEqual'](_0x386810[0x0]['start']),_0x3e379f=(_0x371714,_0x327927,_0x289edc,_0x288a92)=>on(_0x371714,_0x327927,_0x289edc,_0x288a92)?[_0x371714,_0x327927]:on(_0x327927,_0x371714,_0x288a92,_0x289edc)?[_0x327927,_0x371714]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1729e3),this['_defaultCallbacks']['set']('insertion:discard',_0x4c2dc6),this['_defaultCallbacks']['set']('insertion:join',_0x2adabe),this['_defaultCallbacks']['set']('insertion:chain',_0x3e379f),this['_defaultCallbacks']['set']('deletion:accept',_0x4c2dc6),this['_defaultCallbacks']['set']('deletion:discard',_0x1729e3),this['_defaultCallbacks']['set']('deletion:join',_0x2adabe),this['_defaultCallbacks']['set']('deletion:chain',_0x3e379f),this['_defaultCallbacks']['set']('formatInline:accept',_0x5afa14),this['_defaultCallbacks']['set']('formatInline:discard',_0x1729e3),this['_defaultCallbacks']['set']('formatInline:join',_0x2adabe),this['_defaultCallbacks']['set']('formatInline:chain',_0x1729e3),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5afa14),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1729e3),this['_defaultCallbacks']['set']('formatBlock:join',_0x2adabe),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1729e3),this['_defaultCallbacks']['set']('attribute:accept',_0x1729e3),this['_defaultCallbacks']['set']('attribute:discard',(_0x2efda1,_0x506ec9)=>{if(!_0x506ec9)return;const _0x1f3f2e=this['_editor']['plugins']['get'](_0x346595);this['_model']['change'](_0x1dfc36=>{if(_0x506ec9['key']==Ke)for(const _0x3ad183 of _0x2efda1){const _0x322e88=_0x3ad183['start']['nodeAfter'],_0x1c691b=_0x506ec9['oldValue'];_0x1dfc36['rename'](_0x322e88,_0x1c691b);}else{if(_0x1f3f2e['isBlockAttribute'](_0x506ec9['key'])){for(const _0x4c59cd of _0x2efda1)void 0x0!==_0x506ec9['oldValue']?_0x1dfc36['setAttribute'](_0x506ec9['key'],_0x506ec9['oldValue'],_0x4c59cd['start']['nodeAfter']):_0x1dfc36['removeAttribute'](_0x506ec9['key'],_0x4c59cd['start']['nodeAfter']);}else{for(const _0x22f0de of _0x2efda1)_0x506ec9['oldValue']?_0x1dfc36['setAttribute'](_0x506ec9['key'],_0x506ec9['oldValue'],_0x22f0de):_0x1dfc36['removeAttribute'](_0x506ec9['key'],_0x22f0de);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2adabe);}}function qe(_0x4ebb72,_0x54b860,_0x5d1d29){for(const _0x1fe006 of _0x54b860['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1fe006['root']==_0x1fe006)return!0x1;if(!_0x5d1d29['containsItem'](_0x1fe006))return!0x1;if(_0x4ebb72['isObject'](_0x1fe006)||_0x4ebb72['isLimit'](_0x1fe006))return!0x0;}return!0x1;}function Qe(_0x185eaf){return _0x185eaf['end']['parent']==_0x185eaf['start']['nodeAfter']&&_0x185eaf['end']['isAtStart'];}function Ze(_0xdd3af7,_0x5b7c11,_0x810a80,_0x29cc32){const _0x3f8f7a=_0x24cd80=>!_0x24cd80['item']['is']('$textProxy')&&!_0x29cc32['isObject'](_0x24cd80['item']),_0x2831a2=_0xdd3af7['start']['getLastMatchingPosition'](_0x3f8f7a),_0x4c4337=_0xdd3af7['end']['getLastMatchingPosition'](_0x3f8f7a,{'direction':'backward'});return(!_0xdd3af7['start']['isEqual'](_0x2831a2)||!_0xdd3af7['end']['isEqual'](_0x4c4337))&&(_0x2831a2['isBefore'](_0x4c4337)?_0x810a80['updateMarker'](_0x5b7c11,{'range':_0x810a80['createRange'](_0x2831a2,_0x4c4337)}):_0x810a80['removeMarker'](_0x5b7c11),!0x0);}function Je(_0x44cbca){return _0x56dc35(_0x44cbca);}function tn(_0x72cea9){const _0x3d4335=_0x72cea9['start']['nodeAfter'];return _0x3d4335&&_0x3d4335['is']('element');}function en(_0x33dcf0){return Qe(_0x33dcf0)||function(_0x501e89){return _0x501e89['start']['parent']==_0x501e89['end']['nodeBefore']&&_0x501e89['start']['isAtEnd'];}(_0x33dcf0);}function nn(_0x691880,_0xc01af5){try{const _0x28a4f2=_0x691880['getRange']();for(const _0x5d1a3e of _0xc01af5)if(_0x691880!==_0x5d1a3e&&_0x28a4f2&&_0x28a4f2['isIntersecting'](_0x5d1a3e['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function sn(_0x2bafef,_0x2bbdba){return null==_0x2bafef['end']['nodeBefore']&&_0x2bafef['end']['parent']==_0x2bafef['start']['nodeAfter']?rn(_0x2bafef['start']['nodeAfter'],_0x2bbdba):_0x2bafef;}function rn(_0x11d5eb,_0x284aba){const _0x5cf771=_0x284aba['schema']['isObject'](_0x11d5eb)||_0x284aba['schema']['isSelectable'](_0x11d5eb);return _0x284aba['createRange'](_0x284aba['createPositionAt'](_0x11d5eb,'before'),_0x5cf771?_0x284aba['createPositionAfter'](_0x11d5eb):_0x284aba['createPositionAt'](_0x11d5eb,'end'));}function on(_0x5b63b2,_0x3eec7d,_0x5e5fa3,_0x118bb5){return!!an(_0x5b63b2,_0x3eec7d)&&_0x5e5fa3['end']['isEqual'](_0x118bb5['start']);}function an(_0x2b9612,_0x3d880b){if(!_0x2b9612['_isDataLoaded']||!_0x3d880b['_isDataLoaded'])return!0x1;const _0x5cd3a7=new Set(Object['keys'](_0x2b9612['attributes'])),_0xed2874=new Set(Object['keys'](_0x3d880b['attributes']));if(_0x5cd3a7['delete']('groupId'),_0xed2874['delete']('groupId'),0x0==_0x5cd3a7['size']&&0x0==_0xed2874['size'])return!0x0;if(_0x5cd3a7['size']!=_0xed2874['size'])return!0x1;const _0x252f90={..._0x2b9612['attributes']},_0x247513={..._0x3d880b['attributes']};return delete _0x252f90['groupId'],delete _0x247513['groupId'],JSON['stringify'](_0x252f90)==JSON['stringify'](_0x247513);}function cn(_0x4bfd2d,_0x38d6f3){const _0x23e7d1=ln(_0x4bfd2d['attributes']),_0x3935bf=ln(_0x38d6f3);if(!_0x4bfd2d['_isDataLoaded'])return!0x1;for(const _0x45a510 of Object['keys'](_0x3935bf))if(!st(_0x23e7d1[_0x45a510],_0x3935bf[_0x45a510]))return!0x1;return!0x0;}function ln(_0x24a63e){const _0x47fb96=Object['assign']({},_0x24a63e);return delete _0x47fb96['skipNestingCheck'],delete _0x47fb96['tablePasteChainId'],_0x47fb96;}function un(_0x57a617){return _0x57a617['split']('|')[0x0];}class hn extends/* #__PURE__ -- @preserve */
26
- _0x34d652(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2ffd98,_0x49d5b3,_0xe82aa9,_0x371346){super(),this['model']=_0x49d5b3,this['view']=_0xe82aa9,this['commentThreadController']=_0x371346,this['_editor']=_0x2ffd98,this['_acceptCommand']=_0x2ffd98['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2ffd98['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x468406,_0x4eb57b)=>_0x468406||_0x4eb57b),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4469c6=>_0x4469c6&&this['_editor']['model']['canEditAt'](_0x49d5b3['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x107133=>_0x107133&&this['_editor']['model']['canEditAt'](_0x49d5b3['getRanges']())),this['_pendingAction']=null,_0xe82aa9['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xe82aa9,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xe82aa9,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xe82aa9,'change:isDirty',()=>{_0xe82aa9['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 _0x57b766=At(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x57b766);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class dn extends _0x32578b{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4c3a1d,_0x22fcc3,_0x5bd336,_0x36cdef){super(_0x4c3a1d),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3bf8f5(_0x4c3a1d,At(_0x4c3a1d,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x22fcc3['authoredAt']),this['bind']('authoredAt')['to'](_0x22fcc3),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',_0x22fcc3,'authoredAt',this,'descriptionParts',(_0x31aa6f,_0x4601af,_0x3cef12)=>{const _0xae3327=_0x3cef12['map'](_0x82fc24=>gt(_0x82fc24['content']))['join']('.\x20')+'.';return At(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x31aa6f-0x1,_0x22fcc3['author']['name'],_0x4601af?_0x36cdef['formatDateTime'](_0x4601af):'',new DOMParser()['parseFromString'](_0xae3327,'text/html')['body']['textContent']]);}),this['focusables']=new _0x302723(),this['focusTracker']=new _0x3314e8(),this['keystrokes']=new _0x2a8ff8(),this['focusCycler']=new _0x5e3e07({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4a5b40=>_0x4a5b40['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x22fcc3,this['_localUser']=_0x5bd336,this['_config']=_0x36cdef,_0x36cdef['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4b12a6(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x11b0c1}=this['_config'];this['commentsListView']=new _0x11b0c1(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',_0x54c546=>_0x54c546+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x28edf0,_0x4dee98)=>_0x28edf0||!!_0x4dee98);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x6a8508}=this['_config'],_0x27868f=new _0x6a8508(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5670f9=_0x27868f['commentInputView'];return _0x27868f['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5670f9,'value',(_0x1ae1b1,_0x4caf69,_0x3edc2e)=>!!_0x3edc2e||_0x1ae1b1&&!_0x4caf69),_0x5670f9['on']('submit',(_0x418b09,_0x4debd4)=>{this['fire']('addComment',_0x4debd4),_0x5670f9['editor']['setData']('');}),_0x5670f9['on']('cancel',()=>this['focus']()),_0x5670f9['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x27868f;}}class fn extends dn{['suggestionView'];['_descriptionElement'];constructor(_0x135b53,_0x59eac7,_0x57acd5,_0x3b0657){super(_0x135b53,_0x59eac7,_0x57acd5,_0x3b0657),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x50775f=>_0x50775f&&_0x50775f[0x0]?_0x50775f[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1d328e,_0x47b14a)=>{let _0x3f9fec='';for(const _0x236127 of _0x1d328e)_0x3f9fec+='<p>'+gt(_0x236127['content'],_0x236127['color'])+'</p>';return _0x47b14a?_0x3f9fec:_0x3a83b2(_0x3f9fec,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3b0657['SuggestionView'](_0x135b53,_0x59eac7,{'formatDateTime':_0x3b0657['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 _0x4f64e1=this['bindTemplate'],_0x3ffa8b=[this['suggestionView']];return this['commentsListView']&&_0x3ffa8b['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3ffa8b['push'](this['commentThreadInputView']),_0x3ffa8b['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4f64e1['if']('isActive','ck-suggestion-wrapper--active'),_0x4f64e1['to']('type',_0x4e6e58=>'ck-suggestion-'+_0x4e6e58),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':_0x4f64e1['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3ffa8b};}['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 gn extends _0x32578b{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x54a8be,_0x45d80e,_0x2950d2){super(_0x54a8be),this['_model']=_0x45d80e,this['_config']=_0x2950d2,this['set']('description',''),this['bind']('authoredAt')['to'](_0x45d80e),this['acceptButton']=this['_createButton'](At(_0x54a8be,'Accept\x20suggestion'),_0x2bee71,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](At(_0x54a8be,'Discard\x20suggestion'),_0x19c833,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x49cacc(_0x54a8be,_0x45d80e['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x302723([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x3314e8(),this['keystrokes']=new _0x2a8ff8(),this['focusCycler']=new _0x5e3e07({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x38f903=>_0x38f903['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3b62f4=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3b62f4['innerHTML']=this['description'],this['on']('change:description',(_0x1ad341,_0x3d8774,_0x37015b)=>{_0x3b62f4['innerHTML']=_0x37015b;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2a0f25=this['bindTemplate'],_0x5cbfc0=[{'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':_0x2a0f25['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2a0f25['to']('authoredAt',_0x481165=>this['_config']['formatDateTime'](_0x481165))}]}]},{'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']&&_0x5cbfc0['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':_0x5cbfc0}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?At(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):At(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?At(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):At(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x4dfd32,_0x80e824,_0xa5a59c,_0x32d7be,_0x5132bd){const _0x5d5eb8=new _0x4567a8(this['locale']);return _0x5d5eb8['set']({'label':_0x4dfd32,'icon':_0x80e824,'tooltip':!0x0,'tooltipPosition':_0x5132bd}),_0x5d5eb8['extendTemplate']({'attributes':{'class':_0xa5a59c}}),_0x5d5eb8['on']('execute',()=>{this['fire'](_0x32d7be,this['_model']['id']);}),_0x5d5eb8;}['_setupKeyboardNavigation'](){const _0x44bc65=this['element'];this['keystrokes']['listenTo'](_0x44bc65);for(const _0x4a39f5 of this['focusables'])this['focusTracker']['add'](_0x4a39f5['element']),this['keystrokes']['listenTo'](_0x4a39f5['element']);this['keystrokes']['set']('enter',(_0x217837,_0x3f2ed6)=>{_0x44bc65===_0x217837['target']&&(this['focusCycler']['focusFirst'](),_0x3f2ed6());}),this['keystrokes']['set']('esc',(_0x1b932c,_0x5a04d6)=>{_0x44bc65!==_0x1b932c['target']&&(this['focus'](),_0x5a04d6());});}}class mn extends _0x2d10d9{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[Xe,_0x5ecb16,_0x21b6bb,_0x221413,_0x16bd85];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x54adc2){super(_0x54adc2),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5501a8=this['editor']['config'];_0x5501a8['define']('trackChanges.SuggestionThreadView',fn),_0x5501a8['define']('trackChanges.SuggestionView',gn),_0x5501a8['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5501a8['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x28c037,_0x1f42cd){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x427961,_0x2467e8]of this['_handleControllerBuffer']){const _0x38cb7b=this['_suggestionToController']['has'](_0x427961);_0x38cb7b||_0x2467e8?_0x38cb7b&&_0x2467e8&&this['_destroyController'](_0x427961):this['_initializeController'](_0x427961);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x16bd85)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x28c037,_0x1f42cd);}['init'](){const _0x3b2e04=this['editor'],_0x3dd2c1=_0x3b2e04['plugins']['get'](Xe),_0x5884ce=_0x3b2e04['plugins']['get'](_0x221413),_0x104f8e=_0x3b2e04['plugins']['get'](_0x16bd85),_0x54d2ac=_0x3b2e04['plugins']['get'](_0x21b6bb);this['_addUIComponentsToFactory'](),_0x104f8e['addSourceCollector'](()=>{const _0x51ecd8=[];for(const [_0x3c258c,_0x80be1b]of Array['from'](this['_suggestionToController'])){const _0x46415a=_0x3c258c['getAllAdjacentSuggestions'](),_0x48ad33=[];for(const _0x1b768c of _0x46415a){if(!_0x1b768c['isInContent'])continue;if(_0x1b768c['isMultiRange']){_0x48ad33['push'](..._0x1b768c['getRanges']());continue;}const _0x4c8fac=_0x1b768c['getFirstRange']();if(_0x48ad33['length']>0x0){const _0x2190c1=_0x48ad33[0x0]['getJoined'](_0x4c8fac);if(_0x2190c1){_0x48ad33[0x0]=_0x2190c1;continue;}}_0x48ad33['push'](_0x4c8fac);}_0x51ecd8['push']([_0x80be1b['view'],_0x48ad33]);}return _0x51ecd8;}),this['listenTo'](_0x3dd2c1,'suggestionLoaded',(_0x3b20bb,_0x5d1155)=>{this['listenTo'](_0x5d1155,'change:previous',(_0x291eb2,_0x3ca7bb,_0x500cf8,_0x4796e8)=>{_0x5d1155['isInContent']&&(null==_0x500cf8?(this['_updateController'](_0x4796e8['head']),this['_handleSuggestionControllerDelayed'](_0x5d1155,!0x1)):(this['_updateController'](_0x500cf8['head']),null==_0x4796e8&&this['_handleSuggestionControllerDelayed'](_0x5d1155,!0x0)));}),null!==_0x5d1155['previous']?this['_updateController'](_0x5d1155['head']):this['_handleSuggestionControllerDelayed'](_0x5d1155,!0x1);}),this['listenTo'](_0x3dd2c1,'suggestionUnloaded',(_0x3ec4fe,_0x5e0766,_0x4a16ed)=>{this['stopListening'](_0x5e0766,'change:previous'),this['_handleControllerBuffer']['delete'](_0x5e0766),this['_suggestionToController']['has'](_0x5e0766)&&this['_destroyController'](_0x5e0766),_0x4a16ed&&this['_updateController'](_0x4a16ed['head']);}),this['listenTo'](_0x3dd2c1,'suggestionChanged',(_0x2ce22a,_0xb65ec3)=>{this['_updateController'](_0xb65ec3);}),this['listenTo'](_0x5884ce,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x54d2ac,'addComment',(_0xfdb745,{threadId:_0x5b50da,isFromAdapter:_0x47a11a})=>{if(_0x47a11a||!_0x3dd2c1['hasSuggestion'](_0x5b50da))return;const _0x2cad36=_0x3dd2c1['getSuggestion'](_0x5b50da);this['_suggestionToController']['get'](_0x2cad36)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5931d3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2a0b11;for(const _0xf7fb6c in _0x5931d3){const _0x1a60bf=_0xf7fb6c,_0x201c36=_0x5931d3[_0x1a60bf];if('trackChangesLicenseKeyValid'==_0x201c36||'trackChangesLicenseKeyInvalid'==_0x201c36||'trackChangesLicenseKeyExpired'==_0x201c36||'trackChangesLicenseKeyDomainLimit'==_0x201c36||'trackChangesLicenseKeyNotAllowed'==_0x201c36||'trackChangesLicenseKeyEvaluationLimit'==_0x201c36||'trackChangesLicenseKeyUsageLimit'==_0x201c36){delete _0x5931d3[_0x1a60bf],_0x2a0b11=_0x201c36,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2a0b11&&_0x5931d3['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2a0b11&&_0x5931d3['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2a0b11&&_0x5931d3['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2a0b11&&_0x5931d3['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2a0b11&&_0x5931d3['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2a0b11&&_0x5931d3['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x588c0c){const _0x5813db=this['_suggestionToController']['get'](_0x588c0c);if(!_0x5813db)return null;return this['editor']['plugins']['get'](_0x221413)['getByInnerView'](_0x5813db['view'])||null;}['getSuggestionForAnnotation'](_0xfc4c04){const _0x5e4630=this['_viewToController']['get'](_0xfc4c04['innerView']);return _0x5e4630?_0x5e4630['model']:null;}['_refreshActiveMarkers'](){const _0x161dd8=this['editor']['plugins']['get'](_0x221413),_0x1d5ed5=this['editor']['plugins']['get'](Xe),_0x4be811=Array['from'](_0x161dd8['activeAnnotations'],_0x2e3764=>_0x2e3764['innerView'])['filter'](_0x17a7b8=>this['_viewToController']['has'](_0x17a7b8)),_0x4d18e2=[];for(const _0x5bceef of _0x4be811){const _0x5f4d05=this['_viewToController']['get'](_0x5bceef)['model']['getAllAdjacentSuggestions']();_0x4d18e2['push'](..._0x5f4d05['reduce']((_0x3c0990,_0xe40b2a)=>[..._0x3c0990,..._0xe40b2a['getMarkerNames']()],[]));}_0x1d5ed5['activeMarkers']=_0x4d18e2;}['_addUIComponentsToFactory'](){const _0x4796e3=this['editor'],_0x4545d8=_0x4796e3['locale'],_0x222e5a=At(_0x4545d8,'Track\x20changes'),_0x392c9b=new _0x4d79c1([{'type':'switchbutton','model':new _0x57079f({'withText':!0x0,'isToggleable':!0x0,'label':_0x222e5a,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x57079f({'withText':!0x0,'label':At(_0x4545d8,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x57079f({'withText':!0x0,'label':At(_0x4545d8,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x57079f({'withText':!0x0,'label':At(_0x4545d8,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x57079f({'withText':!0x0,'label':At(_0x4545d8,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x4796e3['plugins']['has']('TrackChangesPreview')&&_0x392c9b['addMany']([{'type':'separator'},{'type':'button','model':new _0x57079f({'withText':!0x0,'label':At(_0x4545d8,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x24f7f0 of _0x392c9b)if(En(_0x24f7f0)){const _0x2186ef=_0x4796e3['commands']['get'](_0x24f7f0['model']['commandName']);_0x24f7f0['model']['bind']('isOn','isEnabled')['to'](_0x2186ef,'value','isEnabled');}_0x4796e3['ui']['componentFactory']['add']('trackChanges',_0x181288=>this['_createToolbarButton'](_0x181288,_0x392c9b,_0x222e5a)),_0x4796e3['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1e0e0a=>this['_createMenuBarMenu'](_0x1e0e0a,_0x392c9b,_0x222e5a));}['_createToolbarButton'](_0x503dab,_0x28867d,_0x112011){const _0x386036=_0x33dc77(_0x503dab,_0x2947d7),_0x4d4aa9=this['editor']['commands']['get']('trackChanges');_0x386036['buttonView']['set']({'tooltip':_0x112011,'label':_0x112011,'icon':_0x3a0746}),_0x386036['buttonView']['bind']('isOn')['to'](_0x4d4aa9,'value'),_0x386036['buttonView']['on']('execute',()=>{_0x4d4aa9['execute'](),this['editor']['editing']['view']['focus']();}),_0x23ab7a(_0x386036,_0x28867d,{'role':'menu'});const _0x16f355=[];for(const _0x3dc1ea of _0x28867d)En(_0x3dc1ea)&&_0x16f355['push'](this['editor']['commands']['get'](_0x3dc1ea['model']['commandName']));const _0x3ca71=_0x386036['buttonView'];return _0x3ca71['actionView']['unbind']('isEnabled'),_0x3ca71['arrowView']['unbind']('isEnabled'),_0x3ca71['actionView']['bind']('isEnabled')['to'](_0x4d4aa9,'isEnabled'),_0x3ca71['arrowView']['bind']('isEnabled')['toMany'](_0x16f355,'isEnabled',(..._0x1cf2a4)=>_0x1cf2a4['some'](_0x310281=>_0x310281)),_0x386036['on']('execute',_0x5b1f41=>{this['editor']['execute'](_0x5b1f41['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x386036;}['_createMenuBarMenu'](_0x2aaa4c,_0x53e9e0,_0x255475){const _0x598584=new _0x17282c(_0x2aaa4c),_0x4a31a1=this['editor']['commands']['get']('trackChanges');_0x598584['buttonView']['set']({'label':_0x255475,'icon':_0x3a0746});const _0x468503=new _0x2b49eb(_0x2aaa4c);for(const _0x4cf437 of _0x53e9e0){if('separator'==_0x4cf437['type']){_0x468503['items']['add'](new _0xf5b5f4(_0x2aaa4c));continue;}const _0x2deb17=new _0x10965d(_0x2aaa4c,_0x598584),_0x26c6ad=new _0x5bebdb(_0x2aaa4c),_0x4c34f4=_0x4cf437['model'];_0x26c6ad['bind'](...Object['keys'](_0x4c34f4))['to'](_0x4c34f4),_0x26c6ad['delegate']('execute')['to'](_0x598584),_0x26c6ad['on']('execute',()=>{this['editor']['execute'](_0x4c34f4['commandName']),this['editor']['editing']['view']['focus']();}),_0x2deb17['children']['add'](_0x26c6ad),_0x468503['items']['add'](_0x2deb17);}return _0x598584['bind']('isEnabled')['to'](_0x4a31a1,'isEnabled'),_0x598584['panelView']['children']['add'](_0x468503),_0x598584;}['_initializeController'](_0x3b0d7d){const _0x135513=this['editor'],_0x232a2e=_0x135513['config'],_0xead85c=_0x135513['plugins']['get'](_0x221413),_0x595bde=_0x135513['plugins']['get'](_0x21b6bb),_0x96ed78=_0x135513['plugins']['get'](_0x16bd85),_0x271cb4=_0x135513['plugins']['get'](_0x5ecb16)['me'],_0x56a591=_0x232a2e['get']('trackChanges')['SuggestionThreadView'],_0x42d029=_0x232a2e['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1bf896,CommentThreadInputView:_0x1a0095}=_0x135513['plugins']['get']('CommentsUI');let _0x59fd6a,_0x2f4140,_0x4708ef;this['_annotationViews']['has'](_0x3b0d7d['id'])?(_0x2f4140=this['_annotationViews']['get'](_0x3b0d7d['id']),_0x59fd6a=_0x2f4140['mainView']):(_0x59fd6a=new _0x56a591(_0x135513['locale'],_0x3b0d7d,_0x271cb4,{'disableComments':this['_disableComments'],'editorConfig':{..._0x232a2e['get']('comments.editorConfig'),'licenseKey':_0x232a2e['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x232a2e['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x232a2e['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x232a2e['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5b4908(_0x232a2e['get']('locale'),_0x135513['locale']),'CommentView':_0x232a2e['get']('comments')['CommentView'],'CommentsListView':_0x1bf896,'CommentThreadInputView':_0x1a0095,'SuggestionView':_0x42d029}),_0x59fd6a['suggestionView']['acceptButton']['on']('execute',()=>{_0x135513['editing']['view']['focus']();}),_0x59fd6a['suggestionView']['discardButton']['on']('execute',()=>{_0x135513['editing']['view']['focus']();}),_0x2f4140=_0xead85c['createAnnotationView'](this['editor']['locale'],_0x59fd6a),_0x2f4140['bind']('isDirty')['to'](_0x59fd6a,'isDirty'),_0x2f4140['bind']('length')['to'](_0x59fd6a),_0x2f4140['bind']('type')['to'](_0x59fd6a,'type',_0x53087c=>'suggestion-'+_0x53087c),_0x59fd6a['on']('escape',()=>{_0x4708ef['fire']('escape');}),this['_annotationViews']['set'](_0x3b0d7d['id'],_0x2f4140));const _0x751f8f=_0x595bde['createCommentThreadController'](_0x3b0d7d['commentThread'],_0x59fd6a),_0x40b1a6=new hn(_0x135513,_0x3b0d7d,_0x59fd6a,_0x751f8f),_0x36ed61=_0x3b0d7d['getAllAdjacentSuggestions']()['filter'](_0x105aab=>_0x105aab['isInContent']);_0x59fd6a['descriptionParts']=_0x135513['plugins']['get'](Xe)['descriptionFactory']['getDescriptions'](_0x36ed61),this['_suggestionToController']['set'](_0x3b0d7d,_0x40b1a6),this['_viewToController']['set'](_0x59fd6a,_0x40b1a6);const _0x309fdb=()=>{const _0x5215c3=[],_0x552c0c=_0x3b0d7d['getAllAdjacentSuggestions']()['filter'](_0x548dba=>_0x548dba['isInContent']);for(const _0xcc6ba7 of _0x552c0c)_0x5215c3['push'](..._0xcc6ba7['getMarkers']());return _0x41944c(_0x135513['editing'],_0x5215c3);};_0x4708ef=_0xead85c['createAnnotation']({'view':_0x2f4140,'target':_0x309fdb,'type':()=>'suggestion-'+_0x40b1a6['view']['type'],'isVisible':!!_0x309fdb()}),_0x595bde['_bindAnnotationToEditors'](_0x59fd6a,_0x4708ef),_0xead85c['add'](_0x4708ef),_0x96ed78['registerAnnotation'](_0x4708ef);}['_destroyController'](_0x16abb8){const _0x2b6635=this['editor']['plugins']['get'](_0x21b6bb),_0x3d703d=this['editor']['plugins']['get'](_0x221413),_0x2fda1a=this['_suggestionToController']['get'](_0x16abb8),_0x4aedb0=_0x2fda1a['view'],_0x2878a7=_0x3d703d['getByInnerView'](_0x4aedb0);_0x2b6635['_unbindEditors'](_0x4aedb0),_0x2878a7&&_0x3d703d['remove'](_0x2878a7),this['_suggestionToController']['delete'](_0x16abb8),this['_viewToController']['delete'](_0x4aedb0),_0x2fda1a['destroy']();}['_updateController'](_0xb86eef){if(!_0xb86eef['isInContent']||!this['_suggestionToController']['has'](_0xb86eef))return;const _0x4b9bd=this['editor']['plugins']['get'](Xe),_0x32ec38=this['_suggestionToController']['get'](_0xb86eef),_0x415cf8=_0xb86eef['getAllAdjacentSuggestions']();_0x32ec38['view']['descriptionParts']=_0x4b9bd['descriptionFactory']['getDescriptions'](_0x415cf8);}['destroy'](){for(const _0x3700a0 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3700a0);for(const _0x420184 of this['_annotationViews']['values']())_0x420184['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function En(_0x45cde3){return'model'in _0x45cde3;}class Tn extends _0x2d10d9{static get['requires'](){return[Xe,mn,_0x3ead14];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x22fb9d){this['editor']['plugins']['get'](Xe)['adapter']=_0x22fb9d;}get['adapter'](){return this['editor']['plugins']['get'](Xe)['adapter'];}['addSuggestion'](_0x318cd0){return this['editor']['plugins']['get'](Xe)['addSuggestionData'](_0x318cd0);}['getSuggestions']({skipNotAttached:_0x5de424=!0x1,toJSON:_0x3f3fb0=!0x1}={}){return this['editor']['plugins']['get'](Xe)['getSuggestions']({'skipNotAttached':_0x5de424,'toJSON':_0x3f3fb0});}['getSuggestion'](_0x465c35){return this['editor']['plugins']['get'](Xe)['getSuggestion'](_0x465c35);}}const _n=['Pagination'];class pn extends _0x2d10d9{static get['requires'](){return[Xe];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x457c43=this['editor'];if(_0x457c43['config']['define']('trackChangesData.editorCreator',_0xcb1aa5=>{const _0xb2706=_0x457c43['model']['document']['getRootNames']()['reduce']((_0x4d03b6,_0x4509c1)=>(_0x4d03b6[_0x4509c1]='',_0x4d03b6),{});return _0x457c43['constructor']['create'](_0xb2706,_0xcb1aa5);}),'function'!=typeof _0x457c43['config']['get']('trackChangesData')['editorCreator'])throw new _0xbcf39b('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5339f5){return bn(this['editor'],!0x0,_0x5339f5);}['getDataWithDiscardedSuggestions'](_0xc37df3){return bn(this['editor'],!0x1,_0xc37df3);}}class Ln extends _0x2d10d9{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x44195f){function _0x1aaff2(_0x1f29c3){return _0x1f29c3['map'](_0x183472=>String['fromCharCode'](_0x183472))['join']('');}super(_0x44195f),this['result']='end',_0x44195f[_0x1aaff2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1aaff2([0x76,0x69,0x65,0x77])][_0x1aaff2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1aaff2([0x61,0x75,0x74,0x6f]),_0x44195f[_0x1aaff2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1aaff2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1aaff2([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1aaff2([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1aaff2([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 In(_0x2036b4){return void 0x0!==_0x2036b4['getRootsAttributes'];}async function bn(_0x3ac4f0,_0x377852,_0x586bfc){const _0x19b954=_0x1108df(_0x3ac4f0,_n);if(_0x19b954['plugins']['push'](Xe,Ln),In(_0x3ac4f0)){_0x19b954['roots']=Object['create'](null);for(const _0x5227da of _0x3ac4f0['model']['document']['getRootNames']())_0x19b954['roots'][_0x5227da]={'modelAttributes':_0x3ac4f0['getRootAttributes'](_0x5227da)};}const _0x3bac02=document['createDocumentFragment'](),_0x1352d0=_0x3ac4f0['config']['get']('trackChangesData')['editorCreator'],_0x21d7a3=await _0x1352d0(_0x19b954,()=>function(_0x30e5e5){const _0x221ac0=document['createElement']('div');return _0x30e5e5['appendChild'](_0x221ac0),_0x221ac0;}(_0x3bac02));!function(_0x3bc533,_0x2caa1e){const _0x18fba6=_0x3bc533['model']['document']['getRootNames']()['reduce']((_0x3b433d,_0x5dce62)=>(_0x3b433d[_0x5dce62]=_0x3bc533['data']['get']({'rootName':_0x5dce62}),_0x3b433d),{}),_0x257760=_0x3bc533['plugins']['get']('Users')['users']['map'](_0x510d51=>({'id':_0x510d51['id'],'name':_0x510d51['name']})),_0x35f8ed=_0x3bc533['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xc0ec7=_0x3bc533['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x580682=_0x2caa1e['plugins']['get']('Users'),_0xc3c691=_0x2caa1e['plugins']['get']('TrackChangesEditing'),_0x353c49=_0x2caa1e['plugins']['get']('CommentsRepository');for(const _0x455fb0 of _0x353c49['getCommentThreads']())_0x455fb0['remove']();for(const _0x54d1e7 of _0x257760)_0x580682['getUser'](_0x54d1e7['id'])||_0x580682['addUser'](_0x54d1e7);_0x580682['me']||_0x580682['useAnonymousUser']();for(const _0x4bd816 of _0xc0ec7)_0x353c49['addCommentThread'](_0x4bd816);for(const _0x2fd82f of _0x35f8ed)_0xc3c691['addSuggestionData'](_0x2fd82f);_0x2caa1e['data']['set'](_0x18fba6);}(_0x3ac4f0,_0x21d7a3),_0x21d7a3['execute'](_0x377852?'acceptAllSuggestions':'discardAllSuggestions');const _0xe190f6=In(_0x21d7a3)?_0x21d7a3['getFullData'](_0x586bfc):_0x21d7a3['data']['get'](_0x586bfc);return await _0x21d7a3['destroy'](),_0xe190f6;}class An extends _0x32578b{['options'];constructor(_0x4718d7,_0x1ed1c4){super(_0x4718d7),this['options']=_0x1ed1c4,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'](_0x47e02e,_0xfe5fd9){if(!this['element'])return;const _0x507835=[];for(const [_0x2edc46,_0x466e20]of _0x47e02e){const _0x4ce5b9=document['createElement']('div');_0x4ce5b9['setAttribute']('data-ck-root-name',_0x2edc46),_0x4ce5b9['className']=_0x466e20['classes']+'\x20ck-track-changes-preview__root-container',_0x4ce5b9['innerHTML']=_0x466e20['content'],_0x507835['push'](_0x4ce5b9);}_0xfe5fd9(this['element'],_0x507835),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class kn extends _0x589acc{constructor(_0x2fb460){super(_0x2fb460),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3d3b68=this['editor'],_0xc1d6e6=_0x3d3b68['locale'],_0x316a1a=_0x3d3b68['plugins']['get']('Dialog');let _0x3f1e72;const _0x1bf496=function(_0x109dc9){const _0x5216b3={};if('editables'in _0x109dc9['ui']['view']){for(const [_0x4f4ee8,_0x5eee2f]of Object['entries'](_0x109dc9['ui']['view']['editables']))_0x5216b3[_0x4f4ee8]=_0x5eee2f['element'];}else _0x5216b3[_0x109dc9['model']['document']['getRootNames']()[0x0]]=_0x109dc9['ui']['view']['editable']['element'];return _0x5216b3;}(_0x3d3b68),_0x55a7e8=function(_0x20b374){let _0x1dbc83=0x0;for(const _0x4c9e73 of Object['values'](_0x20b374))_0x1dbc83=Math['max'](_0x1dbc83,_0x4c9e73['getBoundingClientRect']()['width']);let _0xbfcbcb=0x0;for(const _0x3816ac of Object['values'](_0x20b374))_0xbfcbcb+=_0x3816ac['getBoundingClientRect']()['height'];const _0x579162=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2f4dce=Math['min'](_0xbfcbcb,_0x579162);return{'width':_0x1dbc83,'height':_0x2f4dce};}(_0x1bf496);_0x316a1a['show']({'id':'finalContentPreview','title':At(_0xc1d6e6,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new An(_0xc1d6e6,{'dialogRects':_0x55a7e8}),'onHide':()=>{_0x3f1e72['detachFromDom']();},'onShow':()=>{_0x3d3b68['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0xda3726=>{const _0x4d310a=this['_standarizeRootsData'](_0xda3726,_0x3d3b68,_0x1bf496);_0x316a1a['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4d310a,_0x3d3b68['config']['get']('trackChanges.preview.renderFunction'));}),_0x3f1e72=new _0x7aaf26(_0xc1d6e6,[_0x316a1a['view']]),_0x3f1e72['attachToDom'](),_0x3f1e72['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3d3b68['once']('destroy',()=>{_0x3f1e72['detachFromDom']();});const _0x55bbfa=_0x316a1a['view']['headerView']['class'];_0x316a1a['view']['headerView']['class']=_0x55bbfa?_0x55bbfa+'\x20ck-reset_all':'ck-reset_all',_0x316a1a['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x316a1a['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x57a0fc=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x32dc1e=_0x57a0fc['previewMode'],_0x1dfc77={};if('$labels'===_0x32dc1e){for(const _0x294d8c of _0x57a0fc['getMergeFieldsIds']())_0x1dfc77[_0x294d8c]=_0x57a0fc['getLabel'](_0x294d8c)||_0x294d8c;}else{const _0x28508f='$defaultValues'===_0x32dc1e?_0x57a0fc['getDefaultValues']():_0x57a0fc['getDataSetValues'](_0x32dc1e,!0x0);for(const _0x1e4d86 of Object['entries'](_0x28508f)){const [_0x27a683,_0x55bb00]=_0x1e4d86;_0x1dfc77[_0x27a683]=null!==_0x55bb00?_0x55bb00:_0x57a0fc['getLabel'](_0x27a683)||_0x27a683;}}return{'mergeFieldsData':_0x1dfc77};}['_standarizeRootsData'](_0x236f48,_0x5c64aa,_0x2b95c1){let _0x4b8e02;if('string'==typeof _0x236f48){const _0x5b0bfb=_0x5c64aa['model']['document']['getRootNames']()[0x0];_0x4b8e02={[_0x5b0bfb]:_0x236f48};}else _0x4b8e02=_0x236f48;const _0x1792d7=this['_fixMediaEmbeds'](_0x4b8e02,_0x5c64aa),_0x48c3bc=function(_0x54b7b2,_0x59db8e){for(const [_0x4fb423,_0x1b0aed]of _0x54b7b2)_0x1b0aed['classes']=_0x59db8e[_0x4fb423]['classList']['value']['replace']('ck-focused','');return _0x54b7b2;}(this['_sortRoots'](_0x5c64aa)['reduce']((_0x25df0f,_0x1c0842)=>(_0x25df0f['push']([_0x1c0842,{'content':_0x1792d7[_0x1c0842],'classes':''}]),_0x25df0f),[]),_0x2b95c1);return _0x48c3bc;}['_fixMediaEmbeds'](_0x3881eb,_0x3fd03a){if(!_0x3fd03a['plugins']['has']('MediaEmbedEditing'))return _0x3881eb;const _0x2a8aaf=_0x3fd03a['plugins']['get']('MediaEmbedEditing');for(const [_0x2eae70,_0x369841]of Object['entries'](_0x3881eb)){const _0x39734d=document['createElement']('div');_0x39734d['innerHTML']=_0x369841,(_0x39734d['querySelectorAll']('figure.media')['forEach'](_0x13c4a3=>{const _0xc87c9=_0x13c4a3['querySelector']('oembed');if(_0xc87c9){const _0x46cf86=_0xc87c9['getAttribute']('url');if(_0x46cf86){const _0x31de21=_0x2a8aaf['registry']['getMediaViewElement'](new et(_0x3fd03a['editing']['view']['document']),_0x46cf86,{'elementName':'','renderForEditingView':!0x0}),_0x148b24=document['createElement']('div');_0x148b24['classList']['add']('ck-media__wrapper'),_0x31de21['render'](_0x148b24,_0x3fd03a['editing']['view']['domConverter']),_0xc87c9['replaceWith'](_0x148b24);}}}),_0x3881eb[_0x2eae70]=_0x39734d['innerHTML']);}return _0x3881eb;}['_sortRoots'](_0x6ac26a){if(!function(_0x346858){return void 0x0!==_0x346858['getRootsAttributes'];}(_0x6ac26a))return _0x6ac26a['model']['document']['getRootNames']();const _0x398e0a=[],_0x3540cc=new Map();for(const _0x3cbfe1 of _0x6ac26a['model']['document']['getRootNames']()){const _0x3b2c8c=_0x6ac26a['editing']['view']['getDomRoot'](_0x3cbfe1)['getClientRects']()['item'](0x0);_0x398e0a['push'](_0x3cbfe1),_0x3540cc['set'](_0x3cbfe1,_0x3b2c8c);}return _0x398e0a['sort']((_0x78d6c9,_0xf7f756)=>{const _0x54d4af=_0x3540cc['get'](_0x78d6c9),_0x4cc6c3=_0x3540cc['get'](_0xf7f756);return _0x54d4af['y']-_0x4cc6c3['y']||_0x54d4af['x']-_0x4cc6c3['x'];}),_0x398e0a;}}class Cn extends _0x2d10d9{static get['requires'](){return[pn,_0x515a6a];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4d79b8){super(_0x4d79b8),_0x4d79b8['commands']['add']('previewFinalContent',new kn(this['editor'])),_0x4d79b8['config']['define']('trackChanges.preview.renderFunction',(_0x1eccec,_0x3ba3fd)=>{for(const _0x558947 of _0x3ba3fd)_0x1eccec['appendChild'](_0x558947);});}}export{dt as AcceptSuggestionCommand,dn as BaseSuggestionThreadView,ft as DiscardSuggestionCommand,Lt as ExecuteOnAllSuggestionsCommand,It as ExecuteOnSelectedSuggestionsCommand,kn as PreviewFinalContentCommand,bt as Suggestion,kt as SuggestionDescriptionFactory,fn as SuggestionThreadView,gn as SuggestionView,Tn as TrackChanges,ht as TrackChangesCommand,pn as TrackChangesData,Ln as TrackChangesDataGetter,Xe as TrackChangesEditing,Cn as TrackChangesPreview,mn as TrackChangesUI};
23
+ import{Command as _0x4d1f2e,Plugin as _0x687f86,PendingActions as _0x1a5f01}from'@ckeditor/ckeditor5-core/dist/index.js';import{CommentsRepository as _0x424274,Annotations as _0x306ff4,EditorAnnotations as _0x2a31b0,Comments as _0x5d3b42}from'@ckeditor/ckeditor5-comments/dist/index.js';import{CKEditorError as _0x2608ca,ObservableMixin as _0x3078d9,uid as _0x41141f,priorities as _0x1e3508,insertToPriorityArray as _0x3468d1,logWarning as _0x1a5f78,getEnvKeystrokeText as _0xde7c1f,FocusTracker as _0x31ba1a,KeystrokeHandler as _0x3f6c9d,Collection as _0x3f1bf3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x16ff65,IconCancel as _0x494930,IconTrackChanges as _0x20b319}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x222fd1,View as _0x3ad9d5,ViewCollection as _0xf6b59f,FocusCycler as _0x372e8f,UIModel as _0x41c483,createDropdown as _0x404bd2,SplitButtonView as _0xc8ab23,addListToDropdown as _0x2f215b,MenuBarMenuView as _0x310d48,MenuBarMenuListView as _0x34ef5b,ListSeparatorView as _0x4bae18,MenuBarMenuListItemView as _0x2c3960,MenuBarMenuListItemButtonView as _0x196eea,BodyCollection as _0x131736,Dialog as _0x7238bc}from'@ckeditor/ckeditor5-ui/dist/index.js';import{splitSuggestionMarkerName as _0x116f26,SuggestionsConversion as _0x856be7,Users as _0x345397,DocumentCompare as _0x108ee7,fixElementSuggestionRange as _0x291558,hashObject as _0x5e24f9,surroundingMarkersDetector as _0x482da2,FOCUS_ANNOTATION_KEYSTROKE as _0xc262ab,AriaDescriptionView as _0x4caf05,setupThreadKeyboardNavigation as _0x18a878,trimHtml as _0x346f2e,UserView as _0x581721,LateFocusButtonView as _0x2ee9bf,getDateTimeFormatter as _0x45b369,getAllMarkersDomElementsSorted as _0xda1a43,sanitizeEditorConfig as _0xc99b65}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{ModelElement as _0x5eab12,ModelLiveRange as _0x2725ec,ModelLivePosition as tt,ViewDowncastWriter as et}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as nt,set as it,isEqual as st,unset as rt,omit as ot}from'es-toolkit/compat';import{Delete as at,Input as ct}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as lt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as ut}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class ht extends _0x4d1f2e{['_enabledCommands'];constructor(_0x394f9b,_0x2ef643){super(_0x394f9b),this['_enabledCommands']=_0x2ef643,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 _0x3cf0c1 of this['editor']['commands']['commands']())_0x3cf0c1['affectsData']&&!this['_enabledCommands']['has'](_0x3cf0c1)&&_0x3cf0c1['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x12fc79 of this['editor']['commands']['commands']())_0x12fc79['affectsData']&&!this['_enabledCommands']['has'](_0x12fc79)&&_0x12fc79['clearForceDisabled']('TrackChangesCommand');}}class dt extends _0x4d1f2e{['_suggestions'];constructor(_0x4da302,_0x5223d0){super(_0x4da302),this['_suggestions']=_0x5223d0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x28b22d){const _0x301911=this['_suggestions']['get'](_0x28b22d);if(!_0x301911)throw new _0x2608ca('track-changes-accept-suggestion-not-found',this);const _0x7f84bf=_0x301911['getRanges']();this['editor']['model']['canEditAt'](_0x7f84bf)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x301911);}}class ft extends _0x4d1f2e{['_suggestions'];constructor(_0x3f610a,_0x444cef){super(_0x3f610a),this['_suggestions']=_0x444cef,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2c833f){const _0x470597=this['_suggestions']['get'](_0x2c833f);if(!_0x470597)throw new _0x2608ca('track-changes-discard-suggestion-not-found',this);const _0x56bd50=_0x470597['getRanges']();this['editor']['model']['canEditAt'](_0x56bd50)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x470597);}}function gt(_0x5f6c62,_0x2b71a8){let _0x1666e7='';return _0x1666e7+=_0x5f6c62['split']('*')['map']((_0x40c174,_0x5290d5)=>_0x5290d5%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+mt(_0x40c174)+'</span>':mt(_0x40c174))['join'](''),_0x2b71a8&&(_0x1666e7+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2b71a8['value']+'\x22\x20title=\x22'+_0x2b71a8['title']+'\x22></span>'),_0x1666e7;}function mt(_0x48cdbc){const _0x2f4ba5=document['createElement']('span');return _0x2f4ba5['innerText']=_0x48cdbc,_0x2f4ba5['innerHTML'];}function Et(_0x18e5d4){return _0x18e5d4['sort']((_0x3cee8a,_0x3f53fb)=>'attribute'===_0x3cee8a['type']&&'attribute'!==_0x3f53fb['type']?-0x1:'attribute'!==_0x3cee8a['type']&&'attribute'===_0x3f53fb['type']?0x1:'deletion'==_0x3cee8a['type']&&'deletion'!=_0x3f53fb['type']?-0x1:'deletion'!=_0x3cee8a['type']&&'deletion'==_0x3f53fb['type']?0x1:0x0);}function Tt(_0x26b203,_0x2b9d4c){let _0x5dcde5,_0x46a6f8=0x0;const _0x3006af=[],_0x5b3c50=_0x2b9d4c['schema'];for(;_0x46a6f8<_0x26b203['length'];){const _0x1b9fe5=_0x26b203[_0x46a6f8],_0x647a09=_0x26b203[_0x46a6f8+0x1];_0x5dcde5||(_0x5dcde5=_0x2b9d4c['createPositionBefore'](_0x1b9fe5)),_t(_0x2b9d4c,_0x1b9fe5,_0x647a09)||(_0x3006af['push'](_0x2b9d4c['createRange'](_0x5dcde5,_0x5b3c50['isObject'](_0x1b9fe5)?_0x2b9d4c['createPositionAfter'](_0x1b9fe5):_0x2b9d4c['createPositionAt'](_0x1b9fe5,'end'))),_0x5dcde5=null),_0x46a6f8++;}return _0x3006af;}function _t(_0x368608,_0x43bdef,_0x210397){if(!_0x210397)return!0x1;const _0xb16922=_0x368608['createPositionAfter'](_0x43bdef),_0x4723c0=_0x368608['createPositionBefore'](_0x210397);return _0xb16922['isTouching'](_0x4723c0);}function pt(_0x37a273,_0x56cbc1,_0x5990ea){for(;_0x5990ea['length'];){const _0x284c35=_0x5990ea['splice'](0x0,0x64);_0x37a273['change'](()=>{for(const _0x35c5a6 of _0x284c35)_0x35c5a6['isInContent']&&_0x56cbc1['execute'](_0x35c5a6['id']);});}}class Lt extends _0x4d1f2e{['_command'];['_suggestions'];constructor(_0x2c6e3d,_0x393287,_0x378c5c){super(_0x2c6e3d),this['_command']=_0x393287,this['_suggestions']=_0x378c5c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2486a0=Array['from'](this['_suggestions']['values']())['some'](_0x178d05=>_0x178d05['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2486a0;}['execute'](){const _0x2d7666=Et(Array['from'](this['_suggestions']['values']()));for(const _0x5c301b of _0x2d7666){const _0x4e8dfe=_0x5c301b['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4e8dfe))return;}pt(this['editor']['model'],this['_command'],_0x2d7666);}}class It extends _0x4d1f2e{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x549c64,_0x5edd7f,_0x38413e){super(_0x549c64),this['_command']=_0x5edd7f,this['_suggestions']=_0x38413e,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x40c5ac=this['editor']['model']['document']['selection'],_0x28eae6=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x50e9cd,_0x2ba17e){const _0x156bfb=Array['from'](_0x50e9cd['getRanges']()),_0x167e09=new Set();for(const _0x2bd5db of _0x2ba17e)if(_0x2bd5db['isInContent']){for(const _0x42d16f of _0x156bfb)for(const _0x3faddd of _0x2bd5db['getRanges']())(_0x42d16f['isIntersecting'](_0x3faddd)||_0x50e9cd['isCollapsed']&&!_0x2bd5db['isMultiRange']&&_0x2bd5db['next']&&_0x3faddd['end']['isTouching'](_0x42d16f['start']))&&_0x167e09['add'](_0x2bd5db);}return _0x167e09;}(_0x40c5ac,_0x28eae6),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xe2dfff=Et(Array['from'](this['_selectedSuggestions']));for(const _0xd6b677 of _0xe2dfff){const _0x3e1bc5=_0xd6b677['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3e1bc5))return;}pt(this['editor']['model'],this['_command'],_0xe2dfff);}}class bt extends/* #__PURE__ -- @preserve */
24
+ _0x3078d9(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x230648,_0x450fc7){super(),this['id']=_0x450fc7['id'],this['type']=_0x450fc7['type'],this['subType']=_0x450fc7['subType']||null,this['author']=_0x450fc7['author'],this['creator']=_0x450fc7['creator']||_0x450fc7['author'],this['isExternal']=Boolean(_0x450fc7['attributes']&&_0x450fc7['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x450fc7['originalSuggestionId']||null,this['_model']=_0x230648,this['_onAccept']=_0x450fc7['onAccept'],this['_onDiscard']=_0x450fc7['onDiscard'],this['_onAttributesChange']=_0x450fc7['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x450fc7['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 _0x4f50be=this;for(;_0x4f50be['previous'];)_0x4f50be=_0x4f50be['previous'];return _0x4f50be;}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'](_0x37f2ee){this['_markerNames']['add'](_0x37f2ee);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5e4658=>this['_model']['markers']['get'](_0x5e4658))['filter'](_0x45423a=>_0x45423a);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4c7e3d=>{for(const _0x52a56e of this['getMarkers']())_0x4c7e3d['removeMarker'](_0x52a56e);}),this['_markerNames']['clear']();}['removeMarker'](_0x46f62b){this['_model']['change'](_0x1ecc40=>{_0x1ecc40['removeMarker'](_0x46f62b);}),this['_markerNames']['delete'](_0x46f62b);}['addRange'](_0x2b0b38){const _0x4febe3='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+bt['getMultiRangeId']();this['addMarkerName'](_0x4febe3),this['_model']['change'](_0x567b3a=>{_0x567b3a['addMarker'](_0x4febe3,{'range':_0x2b0b38,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x231cce){for(const _0x479710 of this['getRanges']())if(_0x479710['isIntersecting'](_0x231cce))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4e7b6a=>_0x4e7b6a['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3e9481,_0x46610d)=>[..._0x3e9481,..._0x46610d['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x446920=this['getRanges']();if(0x1!=_0x446920['length'])return null;const _0x59c7bf=_0x446920[0x0],_0x5db5eb=_0x59c7bf['start']['nodeAfter'],_0xf6d753=_0x59c7bf['end']['nodeBefore'];return _0x5db5eb instanceof _0x5eab12?_0x5db5eb!=_0xf6d753?null:_0x5db5eb: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 _0x847c31=[];let _0x4c9f58=this['head'];for(;_0x4c9f58;)_0x847c31['push'](_0x4c9f58),_0x4c9f58=_0x4c9f58['next'];return _0x847c31;}['setAttribute'](_0x28cec0,_0x3ba13f){const _0x5e0c42=nt(this['attributes']);it(_0x5e0c42,_0x28cec0,_0x3ba13f),st(_0x5e0c42,this['attributes'])||(this['attributes']=_0x5e0c42,this['_onAttributesChange'](_0x5e0c42));}['removeAttribute'](_0x2cbd98){const _0x3f5d57=nt(this['attributes']);rt(_0x3f5d57,_0x2cbd98),st(_0x3f5d57,this['attributes'])||(this['attributes']=_0x3f5d57,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 _0x41141f()['substr'](0x1,0x5);}}function At(_0x1daf26,_0x5609b0,_0x5a51f1){const _0x584721=_0x1daf26['t'],t=_0x1daf26['t'];switch(_0x5609b0){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',_0x5a51f1);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5a51f1);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5a51f1);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5a51f1);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5a51f1);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',_0x5a51f1);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5a51f1);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',_0x5a51f1);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5a51f1);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5a51f1);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5a51f1);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5a51f1);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5a51f1);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5a51f1);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5a51f1);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5a51f1);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5a51f1);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5a51f1);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5a51f1);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5a51f1);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5a51f1);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5a51f1);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5a51f1);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5a51f1);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x5a51f1);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'},_0x5a51f1);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x5a51f1);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x5a51f1);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5a51f1);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5a51f1);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5a51f1);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5a51f1);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5a51f1);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'},_0x5a51f1);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5a51f1);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5a51f1);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5a51f1);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5a51f1);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x5a51f1);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5a51f1);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'},_0x5a51f1);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x5a51f1);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5a51f1);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'},_0x5a51f1);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5a51f1);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'},_0x5a51f1);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5a51f1);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x5a51f1);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x5a51f1);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x5a51f1);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5a51f1);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'},_0x5a51f1);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5a51f1);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 _0x584721({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5a51f1);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x584721({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5a51f1);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5a51f1);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'},_0x5a51f1);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'},_0x5a51f1);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'},_0x5a51f1);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5609b0;}}class kt{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x405583,_0x263f69){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x405583,this['_locale']=_0x263f69;}['getDescriptions'](_0x49192d){const _0x3bd3fe=[],_0x4f1716=new Set(),_0x3cda3e=new Set();for(let _0x3bbe46=0x0;_0x3bbe46<_0x49192d['length'];_0x3bbe46++){const _0x5c1951=_0x49192d[_0x3bbe46];if(!_0x5c1951['isInContent'])continue;const _0x4a38e7=this['_handleCustomCallbackDescription'](_0x5c1951);if(_0x4a38e7){if(null!=_0x5c1951['subType']){if(_0x4f1716['has'](_0x5c1951['subType']))continue;_0x4f1716['add'](_0x5c1951['subType']);}_0x3bd3fe['push'](_0x4a38e7);}else{if('attribute'==_0x5c1951['type']){const _0x39b0e0=_0x5c1951['data']['key'];if(_0x3cda3e['has'](_0x39b0e0))continue;_0x3cda3e['add'](_0x5c1951['data']['key']),_0x39b0e0==Ke?this['_handleRenameSuggestionDescription'](_0x3bd3fe,_0x5c1951):this['_handleAttributeSuggestionDescription'](_0x3bd3fe,_0x5c1951);continue;}'insertion'!=_0x5c1951['type']&&'deletion'!=_0x5c1951['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3bd3fe,_0x5c1951,_0x49192d[_0x3bbe46+0x1]);}}return this['_resolveDescriptionItems'](_0x3bd3fe);}['registerDescriptionCallback'](_0x6a454c){this['_customCallbacks']['push'](_0x6a454c);}['registerElementLabel'](_0x46dbd9,_0x130742,_0x4b7725=_0x1e3508['normal']){'function'==typeof _0x46dbd9?_0x3468d1(this['_itemLabelsCallbacks'],{'matchingCallback':_0x46dbd9,'label':_0x130742,'priority':_0x4b7725}):this['_itemLabels']['set'](_0x46dbd9,_0x130742);}['registerAttributeLabel'](_0x5c183f,_0x2da3bd){this['_attributeLabels']['set'](_0x5c183f,_0x2da3bd);}['getItemLabel'](_0x2dbeeb,_0x36e342=0x1){let _0x5a9f51;for(const _0x658866 of this['_itemLabelsCallbacks'])if(_0x658866['matchingCallback'](_0x2dbeeb)){_0x5a9f51=_0x658866['label'];break;}return _0x5a9f51||(_0x5a9f51=this['_itemLabels']['get'](_0x2dbeeb['name'])),_0x5a9f51?_0x5a9f51(_0x36e342):0x1!==_0x36e342?_0x36e342+'\x20'+_0x2dbeeb['name']+'s':''+_0x2dbeeb['name'];}['_addDescriptionItems'](_0x3e6213,_0x4197e2){const _0x4813f0=_0x4197e2['getFirstRange']()['getWalker'](),_0x58a0a4='insertion'==_0x4197e2['type']?'add':'remove';for(const _0x3f6458 of _0x4813f0){const _0x4928ac=_0x3f6458['item'],_0x41241d=_0x3e6213[_0x3e6213['length']-0x1];if(_0x4928ac['is']('$textProxy'))_0x41241d&&_0x41241d['type']['indexOf']('Container')>-0x1&&_0x3e6213['pop'](),_0x41241d&&'text'==_0x41241d['type']?_0x41241d[_0x58a0a4]+=_0x4928ac['data']:_0x3e6213['push']({'type':'text','add':'add'==_0x58a0a4?_0x4928ac['data']:'','remove':'remove'==_0x58a0a4?_0x4928ac['data']:''});else{if(this['_schema']['isObject'](_0x4928ac)){const _0x224f4e=_0x4928ac;if(_0x41241d&&_0x41241d['type']['indexOf']('Container')>-0x1&&_0x3e6213['pop'](),'elementEnd'==_0x3f6458['type'])continue;_0x41241d&&_0x41241d['type']==_0x58a0a4+'Object'&&_0x41241d['element']['name']==_0x224f4e['name']?_0x41241d['quantity']++:_0x3e6213['push']({'type':_0x58a0a4+'Object','element':_0x224f4e,'quantity':0x1}),_0x4813f0['skip'](_0x3b5c9a=>!('elementEnd'==_0x3b5c9a['type']&&_0x3b5c9a['item']==_0x4928ac));}else{if(this['_schema']['checkChild'](_0x4928ac,'$text')||_0x4928ac['is']('element','softBreak')){const _0xff0561=_0x4928ac;if('add'==_0x58a0a4&&'elementStart'==_0x3f6458['type']||'remove'==_0x58a0a4&&'elementEnd'==_0x3f6458['type'])continue;if(_0x41241d&&-0x1==_0x41241d['type']['indexOf']('Container')){'text'==_0x41241d['type']&&(_0x41241d[_0x58a0a4]+='\x0a');continue;}let _0x26acc2;if(_0x26acc2='add'==_0x58a0a4?_0xff0561['nextSibling']&&!this['_schema']['isObject'](_0xff0561['nextSibling'])?_0xff0561['nextSibling']:null:_0xff0561['previousSibling']&&!this['_schema']['isObject'](_0xff0561['previousSibling'])?_0xff0561['previousSibling']:null,_0xff0561['isEmpty']||_0x26acc2&&_0x26acc2['isEmpty']){const _0x2412b2=_0x26acc2&&_0x26acc2['isEmpty']?_0x26acc2:_0xff0561;_0x41241d&&_0x41241d['type']==_0x58a0a4+'EmptyContainer'&&_0x41241d['element']['name']==_0x2412b2['name']?_0x41241d['quantity']++:_0x3e6213['push']({'type':_0x58a0a4+'EmptyContainer','element':_0x2412b2,'quantity':0x1});}else _0x3e6213['push']({'type':_0x58a0a4+'Container','element':_0xff0561});}}}}}['_resolveDescriptionItems'](_0x517834){const _0x412b69=this['_locale'],_0x2dc457=[],_0x295fe9=[],_0x1fe75b=[];for(const _0x15025c of _0x517834)switch(_0x15025c['type']){case'text':if(_0x15025c['add']=_0x15025c['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x15025c['remove']=_0x15025c['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x15025c['add']&&''!=_0x15025c['remove']){_0x2dc457['push']({'type':'replace','content':At(_0x412b69,'REPLACE_TEXT',['\x22'+_0x15025c['remove']+'\x22','\x22'+_0x15025c['add']+'\x22'])});continue;}if(null!=_0x15025c['add']['match'](/^ +$/)){_0x2dc457['push']({'type':'insertion','content':At(_0x412b69,'*Insert:*\x20%0',At(_0x412b69,'ELEMENT_SPACE',_0x15025c['add']['length']))});continue;}if(null!=_0x15025c['remove']['match'](/^ +$/)){_0x2dc457['push']({'type':'deletion','content':At(_0x412b69,'*Remove:*\x20%0',At(_0x412b69,'ELEMENT_SPACE',_0x15025c['remove']['length']))});continue;}if(''!=_0x15025c['add']){_0x2dc457['push']({'type':'insertion','content':At(_0x412b69,'*Insert:*\x20%0','\x22'+_0x15025c['add']+'\x22')});continue;}_0x2dc457['push']({'type':'deletion','content':At(_0x412b69,'*Remove:*\x20%0','\x22'+_0x15025c['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2dc457['push']({'type':'insertion','content':At(_0x412b69,'*Insert:*\x20%0',this['getItemLabel'](_0x15025c['element'],_0x15025c['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2dc457['push']({'type':'deletion','content':At(_0x412b69,'*Remove:*\x20%0',this['getItemLabel'](_0x15025c['element'],_0x15025c['quantity']))});continue;case'addContainer':_0x2dc457['push']({'type':'insertion','content':At(_0x412b69,'*Split:*\x20%0',this['getItemLabel'](_0x15025c['element'],_0x15025c['quantity']))});continue;case'removeContainer':_0x2dc457['push']({'type':'deletion','content':At(_0x412b69,'*Merge:*\x20%0',this['getItemLabel'](_0x15025c['element'],_0x15025c['quantity']))});continue;case'addFormat':_0x295fe9['push'](_0x15025c['key']);continue;case'removeFormat':_0x1fe75b['push'](_0x15025c['key']);continue;default:_0x2dc457['push'](_0x15025c);}if(_0x295fe9['length']){const _0x4a0eec=_0x295fe9['map'](_0x3cf0be=>this['_attributeLabels']['has'](_0x3cf0be)?this['_attributeLabels']['get'](_0x3cf0be):_0x3cf0be)['join'](',\x20');_0x2dc457['push']({'type':'format','content':At(this['_locale'],'*Set\x20format:*\x20%0',_0x4a0eec)});}if(_0x1fe75b['length']){const _0x44db34=_0x1fe75b['map'](_0x31683e=>this['_attributeLabels']['has'](_0x31683e)?this['_attributeLabels']['get'](_0x31683e):_0x31683e)['join'](',\x20');_0x2dc457['push']({'type':'format','content':At(this['_locale'],'*Remove\x20format:*\x20%0',_0x44db34)});}return _0x2dc457;}['_handleCustomCallbackDescription'](_0x5ee0d8){for(const _0x17896a of this['_customCallbacks']){const _0x50f9eb=_0x17896a(_0x5ee0d8);if(_0x50f9eb&&'type'in _0x50f9eb)return _0x50f9eb;}}['_handleAttributeSuggestionDescription'](_0xc344d7,_0x20e78a){const _0x5a5cad=_0x20e78a['data'],_0x30f242=void 0x0===_0x5a5cad['newValue']?'removeFormat':'addFormat';_0xc344d7['push']({'type':_0x30f242,'key':_0x5a5cad['key']});}['_handleRenameSuggestionDescription'](_0x568dc5,_0x5f37f3){_0x568dc5['push']({'type':'format','content':At(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5f37f3['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2438fd,_0x1b0a76,_0x575fb9){if(this['_addDescriptionItems'](_0x2438fd,_0x1b0a76),_0x575fb9&&_0x575fb9['getFirstRange']()&&!_0x1b0a76['getFirstRange']()['end']['isEqual'](_0x575fb9['getFirstRange']()['start'])){const _0x6ed461=_0x2438fd[_0x2438fd['length']-0x1],_0xb656bd='insertion'==_0x1b0a76['type']?'add':'remove';_0x6ed461&&'text'==_0x6ed461['type']&&(_0x6ed461[_0xb656bd]+='\x0a');}}}class Ct extends _0x687f86{['afterInit'](){const _0x2d9d62=this['editor'],_0x142469=_0x2d9d62['plugins']['get']('TrackChangesEditing');_0x2d9d62['commands']['get']('showAIAssistant')&&_0x142469['enableCommand']('showAIAssistant');}}class yt extends _0x687f86{['afterInit'](){const _0x5159fe=this['editor'],_0x587f8d=_0x5159fe['plugins']['get']('TrackChangesEditing');_0x5159fe['commands']['get']('toggleAi')&&_0x587f8d['enableCommand']('toggleAi');}}class Nt extends _0x687f86{['afterInit'](){const _0x10b297=this['editor'],_0x5c5ba1=_0x10b297['plugins']['get']('TrackChangesEditing');_0x10b297['commands']['get']('aiQuickAction')&&_0x5c5ba1['enableCommand']('aiQuickAction');}}class Rt extends _0x687f86{['afterInit'](){const _0x156a45=this['editor'],_0x4c09dc=_0x156a45['locale'];if(!_0x156a45['plugins']['has']('AlignmentEditing'))return;const _0x44d687=_0x156a45['plugins']['get']('TrackChangesEditing');_0x44d687['enableDefaultAttributesIntegration']('alignment'),_0x44d687['descriptionFactory']['registerAttributeLabel']('alignment',At(_0x4c09dc,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ff30a=this['editor'],_0x19445d=_0x4ff30a['locale'];_0x4ff30a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46bebc=>{if('formatBlock'!=_0x46bebc['type'])return;const {data:_0x5a379f}=_0x46bebc;if(_0x5a379f&&'alignment'==_0x5a379f['commandName']){const _0x2149d8=_0x5a379f['commandParams'][0x0]['value'];return{'type':'format','content':At(_0x19445d,'*Format:*\x20%0',function(_0x1cd1f1){switch(_0x1cd1f1){case'left':return At(_0x19445d,'FORMAT_ALIGN_TO_LEFT');case'right':return At(_0x19445d,'FORMAT_ALIGN_TO_RIGHT');case'center':return At(_0x19445d,'FORMAT_ALIGN_TO_CENTER');case'justify':return At(_0x19445d,'FORMAT_JUSTIFY_TEXT');}}(_0x2149d8))};}});}}const St=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class Mt extends _0x687f86{['afterInit'](){const _0x54997a=this['editor'],_0x5ad9ca=_0x54997a['plugins']['get']('TrackChangesEditing'),_0x390e8d=_0x54997a['locale'];for(const _0x27b5d7 of St){if(!_0x54997a['plugins']['has'](_0x27b5d7))continue;const _0x323776=_0x27b5d7['slice'](0x0,-0x7)['toLowerCase'](),_0x1fb8e2='FORMAT_'+_0x323776['toUpperCase']();_0x5ad9ca['enableDefaultAttributesIntegration'](_0x323776),_0x5ad9ca['descriptionFactory']['registerAttributeLabel'](_0x323776,At(_0x390e8d,_0x1fb8e2));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3782d4=this['editor'],_0x5d486a=_0x3782d4['locale'],_0x19c713=_0x3782d4['plugins']['get']('TrackChangesEditing');function _0x1345ad(_0x12476d,_0x4c255a){_0x19c713['descriptionFactory']['registerDescriptionCallback'](_0x2024a4=>{if('formatInline'!=_0x2024a4['type'])return;const {data:_0x21473d}=_0x2024a4;return _0x21473d&&_0x21473d['commandName']===_0x12476d?_0x21473d['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x5d486a,'*Format:*\x20%0',_0x4c255a)}:{'type':'format','content':At(_0x5d486a,'*Remove\x20format:*\x20%0',_0x4c255a)}:void 0x0;});}_0x1345ad('bold',At(_0x5d486a,'FORMAT_BOLD')),_0x1345ad('italic',At(_0x5d486a,'FORMAT_ITALIC')),_0x1345ad('underline',At(_0x5d486a,'FORMAT_UNDERLINE')),_0x1345ad('code',At(_0x5d486a,'FORMAT_CODE')),_0x1345ad('strikethrough',At(_0x5d486a,'FORMAT_STRIKETHROUGH')),_0x1345ad('subscript',At(_0x5d486a,'FORMAT_SUBSCRIPT')),_0x1345ad('superscript',At(_0x5d486a,'FORMAT_SUPERSCRIPT'));}}class Ot extends _0x687f86{['afterInit'](){const _0x42e0d4=this['editor'],_0x513e5e=_0x42e0d4['locale'];if(!_0x42e0d4['plugins']['has']('BlockQuoteEditing'))return;const _0x343a89=_0x42e0d4['plugins']['get']('TrackChangesEditing'),_0x5ba8c1=this['editor']['commands']['get']('blockQuote');_0x343a89['enableCommand']('blockQuote',(_0x4bbfdd,_0x1c2e48={})=>{const _0x64c021=this['editor']['model']['document']['selection'],_0xe87a9c=_0x1c2e48&&void 0x0!==_0x1c2e48['forceValue']?_0x1c2e48['forceValue']:!_0x5ba8c1['value'];let _0xf48101=[];if(_0xe87a9c){const _0x3433f3=Array['from'](_0x64c021['getSelectedBlocks']())['filter'](_0x3a987a=>wt(_0x3a987a)||function(_0x387cd9,_0x4ad5bd){const _0x38bb8e=_0x4ad5bd['checkChild'](_0x387cd9['parent'],'blockQuote'),_0x141b9f=_0x4ad5bd['checkChild'](['$root','blockQuote'],_0x387cd9);return _0x38bb8e&&_0x141b9f;}(_0x3a987a,this['editor']['model']['schema']));_0xf48101=Tt(_0x3433f3,_0x42e0d4['model']);}else{const _0x5aca96=Array['from'](_0x64c021['getSelectedBlocks']())['filter'](_0x259eb2=>wt(_0x259eb2));_0xf48101=Tt(_0x5aca96,_0x42e0d4['model']);}_0x42e0d4['model']['change'](()=>{for(const _0x5e79bc of _0xf48101)_0x343a89['markBlockFormat'](_0x5e79bc,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xe87a9c}]});});}),_0x343a89['descriptionFactory']['registerDescriptionCallback'](_0x2fe599=>{const {data:_0x2acb0c}=_0x2fe599;if(_0x2acb0c&&'blockQuote'==_0x2acb0c['commandName']){const _0x2a0f2e=At(_0x513e5e,'ELEMENT_BLOCK_QUOTE');return _0x2acb0c['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x513e5e,'*Set\x20format:*\x20%0',_0x2a0f2e)}:{'type':'format','content':At(_0x513e5e,'*Remove\x20format:*\x20%0',_0x2a0f2e)};}});}}function wt(_0x40b310){return'blockQuote'==_0x40b310['parent']['name'];}class Bt extends _0x687f86{['afterInit'](){const _0x230637=this['editor'],_0x3b66f4=_0x230637['locale'],_0x4f9292=_0x230637['plugins']['get']('TrackChangesEditing');_0x230637['plugins']['has']('BookmarkEditing')&&(_0x4f9292['enableCommand']('insertBookmark'),_0x4f9292['enableDefaultAttributesIntegration']('updateBookmark'),_0x4f9292['descriptionFactory']['registerDescriptionCallback'](_0x3224e3=>{if('insertion'!=_0x3224e3['type']&&'deletion'!=_0x3224e3['type']&&'attribute'!=_0x3224e3['type'])return;const _0x28164d=_0x3224e3['getContainedElement']();if(null==_0x28164d)return;if(!_0x28164d['is']('element','bookmark'))return;const _0x4ad61f=_0x28164d['getAttribute']('bookmarkId');if('insertion'==_0x3224e3['type'])return{'type':'insertion','content':At(_0x3b66f4,'*Insert:*\x20%0','\x22'+_0x4ad61f+'\x22\x20'+At(_0x3b66f4,'ELEMENT_BOOKMARK'))};if('deletion'==_0x3224e3['type'])return{'type':'deletion','content':At(_0x3b66f4,'*Remove:*\x20%0','\x22'+_0x4ad61f+'\x22\x20'+At(_0x3b66f4,'ELEMENT_BOOKMARK'))};const {data:_0x30e77e}=_0x3224e3;if(!_0x30e77e||'bookmarkId'!=_0x30e77e['key'])return;return{'type':'format','content':At(_0x3b66f4,'*Set\x20bookmark:*\x20%0','\x22'+_0x30e77e['newValue']+'\x22')};}));}}class Ft extends _0x687f86{['afterInit'](){const _0x4f4a77=this['editor'];_0x4f4a77['plugins']['has']('CaseChange')&&(_0x4f4a77['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4f4a77['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4f4a77['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class Dt extends _0x687f86{['afterInit'](){const _0x2dfd67=this['editor'];_0x2dfd67['commands']['get']('ckbox')&&_0x2dfd67['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class vt extends _0x687f86{['afterInit'](){const _0x3ad5c0=this['editor'];if(!_0x3ad5c0['plugins']['has']('CodeBlock'))return;const _0x5a3eb2=_0x3ad5c0['plugins']['get']('TrackChangesEditing'),_0x1ba60f=_0x3ad5c0['locale'],_0x66f84f=_0x3ad5c0['config']['get']('codeBlock')['languages'],_0x450848=_0x3ad5c0['commands']['get']('codeBlock');_0x5a3eb2['enableCommand']('indentCodeBlock'),_0x5a3eb2['enableCommand']('outdentCodeBlock'),_0x5a3eb2['enableCommand']('codeBlock',(_0x4ed765,_0x3b7860={})=>{const _0x7c443c=_0x3ad5c0['model'],_0x306b78=_0x3ad5c0['model']['document']['selection'],_0x3d7fb4=_0x3b7860&&void 0x0!==_0x3b7860['forceValue']?_0x3b7860['forceValue']:!_0x450848['value'];let _0x2ce6b4;_0x3b7860['language']||(_0x3b7860['language']=_0x66f84f[0x0]['language']),_0x2ce6b4=_0x3d7fb4?Array['from'](_0x306b78['getSelectedBlocks']())['filter'](_0x5227ba=>xt(_0x5227ba)||function(_0x2bfcb4,_0x3acaa2){if(_0x2bfcb4['is']('rootElement')||_0x3acaa2['isLimit'](_0x2bfcb4))return!0x1;return _0x3acaa2['checkChild'](_0x2bfcb4['parent'],'codeBlock');}(_0x5227ba,_0x7c443c['schema'])):Array['from'](_0x306b78['getSelectedBlocks']())['filter'](_0x588a42=>xt(_0x588a42));const _0x20dff4=Tt(_0x2ce6b4,_0x7c443c);_0x7c443c['change'](()=>{for(const _0x51039c of _0x20dff4)_0x5a3eb2['markBlockFormat'](_0x51039c,{'commandName':'codeBlock','commandParams':[{..._0x3b7860,'forceValue':_0x3d7fb4}],'formatGroupId':'blockName'});});}),(_0x5a3eb2['descriptionFactory']['registerElementLabel']('codeBlock',_0x41582e=>At(_0x1ba60f,'ELEMENT_CODE_BLOCK',_0x41582e)),_0x5a3eb2['descriptionFactory']['registerDescriptionCallback'](_0x3db40d=>{if('formatBlock'!=_0x3db40d['type'])return;const _0x147efd=_0x1ba60f['t'],{data:_0x41ead1}=_0x3db40d;if(!_0x41ead1||'codeBlock'!=_0x41ead1['commandName'])return;const _0x38b897=_0x41ead1['commandParams'][0x0]['language'],_0x487107=_0x147efd(_0x66f84f['find'](_0x3fcb95=>_0x3fcb95['language']===_0x38b897)['label'])['toLowerCase']();return _0x41ead1['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x1ba60f,'*Set\x20format:*\x20%0',At(_0x1ba60f,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x487107+')')}:{'type':'format','content':At(_0x1ba60f,'*Remove\x20format:*\x20%0',At(_0x1ba60f,'ELEMENT_CODE_BLOCK',0x1))};}));}}function xt(_0x2f1042){return'codeBlock'==_0x2f1042['name'];}class Pt extends _0x687f86{['afterInit'](){const _0x160735=this['editor'];if(!_0x160735['plugins']['has']('CommentsEditing'))return;_0x160735['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Ut extends _0x687f86{static get['requires'](){return[at];}['init'](){const _0x135102=this['editor'],_0x153ebb=_0x135102['plugins']['get']('TrackChangesEditing');_0x153ebb['enableCommand']('delete');const _0x4b3f43=_0x135102['commands']['get']('deleteForward');_0x153ebb['enableCommand']('deleteForward',(_0x3e1db2,_0x156aac={})=>{const _0x1ae323=_0x135102['model']['createSelection'](_0x135102['model']['document']['selection']);_0x1ae323['isCollapsed']&&_0x135102['model']['modifySelection'](_0x1ae323,{'direction':'forward','unit':_0x156aac['unit']});const _0x1b7bd1=_0x1ae323['getFirstRange'](),_0x2fa94c=_0x2725ec['fromRange'](_0x1b7bd1);let _0x31e7f6;_0x3e1db2(_0x156aac),_0x31e7f6='$graveyard'==_0x2fa94c['root']['rootName']?_0x135102['model']['createRange'](_0x1b7bd1['start']):_0x135102['model']['createRange'](_0x2fa94c['start'],_0x2fa94c['end']),_0x2fa94c['detach'](),_0x135102['model']['enqueueChange'](_0x4b3f43['buffer']['batch'],_0xa750a=>{_0x4b3f43['buffer']['lock'](),_0xa750a['setSelection'](_0xa750a['createRange'](_0x31e7f6['end'])),_0x4b3f43['buffer']['unlock']();});});}}class Gt extends _0x687f86{['afterInit'](){const _0x2fd603=this['editor'];if(!_0x2fd603['plugins']['has']('ListEditing'))return;const _0x354d36=_0x2fd603['locale'],_0x25fece=_0x2fd603['plugins']['get']('TrackChangesEditing'),_0x2835b5=_0x2fd603['plugins']['has']('TodoListEditing'),_0x49cc10=!!_0x2fd603['config']['get']('list.multiBlock');function _0x2526da(_0x218b9b){return{'type':'format','content':''+At(_0x354d36,'*Set\x20format:*\x20%0',_0x218b9b)};}function _0x3530f3(_0x55aeae){return{'type':'format','content':''+At(_0x354d36,'*Remove\x20format:*\x20%0',_0x55aeae)};}_0x25fece['enableDefaultAttributesIntegration']('numberedList'),_0x25fece['enableDefaultAttributesIntegration']('bulletedList'),_0x25fece['enableDefaultAttributesIntegration']('customNumberedList'),_0x25fece['enableDefaultAttributesIntegration']('customBulletedList'),_0x25fece['enableDefaultAttributesIntegration']('indentList'),_0x25fece['enableDefaultAttributesIntegration']('outdentList'),_0x25fece['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x25fece['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x49cc10&&(_0x25fece['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x25fece['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2835b5&&(_0x25fece['enableDefaultAttributesIntegration']('todoList'),_0x25fece['enableDefaultAttributesIntegration']('checkTodoList'),_0x25fece['descriptionFactory']['registerDescriptionCallback'](_0x2a4a02=>{const {data:_0x54f878}=_0x2a4a02;if(_0x54f878&&'todoListChecked'==_0x54f878['key'])return{'type':'format','content':_0x54f878['newValue']?At(_0x354d36,'*Check\x20item*'):At(_0x354d36,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x34ae84=>{if(_0x34ae84['batch']['isUndo'])return!0x1;let _0xda813b=!0x1;const _0x3e8149=_0x25fece['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x54ae33=>'todoListChecked'===_0x25fece['_getAttributeKey'](_0x54ae33));for(const _0x446bed of _0x3e8149){'todo'!=_0x446bed['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x25fece['_findSuggestions'](_0x446bed['getFirstRange'](),'attribute')['find'](_0x50a517=>'listType'===_0x25fece['_getAttributeKey'](_0x50a517['suggestion']))||(_0x34ae84['removeMarker'](_0x446bed['getFirstMarker']()),_0xda813b=!0x0));}return _0xda813b;})),_0x25fece['descriptionFactory']['registerAttributeLabel']('listIndent',At(_0x354d36,'FORMAT_INDENT'));const _0x3e129f={'type':'format','content':''};_0x25fece['descriptionFactory']['registerDescriptionCallback'](_0x332ed0=>{const {data:_0x529182}=_0x332ed0;if(!_0x529182||'listType'!=_0x529182['key'])return;let _0x53f5b1=_0x332ed0['head'];for(;_0x53f5b1;){if(_0x53f5b1['data']&&(('listStyle'==_0x53f5b1['data']['key']||'listMarkerStyle'==_0x53f5b1['data']['key'])&&(_0x53f5b1['data']['newValue']&&'default'!=_0x53f5b1['data']['newValue']||'default'!=_0x53f5b1['data']['oldValue']&&!_0x529182['newValue'])||!_0x49cc10&&_0x53f5b1['data']['key']==Ke))return _0x3e129f;_0x53f5b1=_0x53f5b1['next'];}if(null==_0x529182['newValue'])switch(_0x529182['oldValue']){case'bulleted':return _0x3530f3(At(_0x354d36,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3530f3(At(_0x354d36,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3530f3(At(_0x354d36,'ELEMENT_TODO_LIST'));}switch(_0x529182['newValue']){case'bulleted':return _0x2526da(At(_0x354d36,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2526da(At(_0x354d36,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2526da(At(_0x354d36,'ELEMENT_TODO_LIST'));}}),_0x25fece['descriptionFactory']['registerDescriptionCallback'](_0x2cb8d0=>{const {data:_0x592335}=_0x2cb8d0;if(_0x592335&&'listIndent'==_0x592335['key'])return null==_0x592335['newValue']||null==_0x592335['oldValue']&&0x0==_0x592335['newValue']?_0x3e129f:void 0x0;}),_0x25fece['descriptionFactory']['registerDescriptionCallback'](_0xe19c00=>{if('attribute'!=_0xe19c00['type'])return;const {data:_0x502097}=_0xe19c00;if(!_0x502097||'listItemId'!=_0x502097['key'])return;const _0x4d185b=Ht(_0xe19c00);return'newValue'==_0x4d185b?{'type':'format','content':At(_0x354d36,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4d185b?{'type':'format','content':At(_0x354d36,'*Split:*\x20list\x20item')}:_0x3e129f;}),_0x2fd603['model']['document']['registerPostFixer'](_0x4d6da0=>this['listItemIdFixer'](_0x4d6da0)),_0x2fd603['model']['document']['registerPostFixer'](_0x35b877=>this['noTrackChangesFixer'](_0x35b877)),_0x2fd603['model']['document']['on']('change:data',(_0x5753b3,_0x260b2c)=>{if(_0x260b2c['isUndo']||!_0x260b2c['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x428fda){if(_0x428fda['batch']['isUndo']||!_0x428fda['batch']['isLocal'])return!0x1;let _0x37d76d=!0x1;const _0x21a3b1=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5b36fd=>_0x5b36fd['data']&&'listItemId'==_0x5b36fd['data']['key'])['filter'](_0xab351b=>_0xab351b['data']['newValue']&&_0xab351b['data']['oldValue']);for(const _0x518934 of _0x21a3b1)Ht(_0x518934)||(_0x428fda['removeMarker'](_0x518934['getFirstMarker']()),_0x37d76d=!0x0);return _0x37d76d;}['noTrackChangesFixer'](_0xefe0b7){if(_0xefe0b7['batch']['isUndo']||!_0xefe0b7['batch']['isLocal'])return!0x1;const _0x3fee01=this['editor']['model']['document']['differ'],_0x5afc8b=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5afc8b['trackChangesCommand']['value'])return!0x1;let _0x40b518=!0x1;const _0x42978a=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle']),_0x39077a=_0x3fee01['getChanges']()['filter'](_0x49d7af=>'attribute'==_0x49d7af['type'])['filter'](_0x402e26=>_0x42978a['has'](_0x402e26['attributeKey']));if(0x0==_0x39077a['length'])return _0x40b518;const _0x2761b2=new Set(_0x3fee01['getMarkersToAdd']()['filter'](_0x6c8b74=>{if(!_0x6c8b74['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x143afb=_0x116f26(_0x6c8b74['name'])['subType']['split']('|')[0x0];return _0x42978a['has'](_0x143afb);})['map'](_0x365b0a=>_0x116f26(_0x365b0a['name'])['id']));for(const _0x1b3d71 of _0x39077a){const _0x746c22=_0x5afc8b['_findSuggestions'](_0x1b3d71['range'],'attribute')['filter'](_0x41e06d=>{if(_0x41e06d['meta']['isNextTo'])return!0x1;if(_0x2761b2['has'](_0x41e06d['suggestion']['id']))return!0x1;const _0x39d94a=_0x5afc8b['_getAttributeKey'](_0x41e06d['suggestion']);return _0x42978a['has'](_0x39d94a);})['map'](_0x3f4e1e=>_0x3f4e1e['suggestion']);if(_0x746c22['length']){for(const _0x59ba98 of _0x746c22)_0xefe0b7['removeMarker'](_0x59ba98['getFirstMarker']());_0x40b518=!0x0;}}return _0x40b518;}['assureChains'](){const _0x1e3083=this['editor']['plugins']['get']('TrackChangesEditing'),_0x506d1f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2e3120;const _0x4ade33=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x35d9f9=>{if(_0x35d9f9['data']['oldRange']||!_0x35d9f9['data']['newRange'])return null;if(!_0x35d9f9['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x3f3b39}=_0x116f26(_0x35d9f9['name']);if(!_0x1e3083['hasSuggestion'](_0x3f3b39))return null;const _0x162ef6=_0x1e3083['getSuggestion'](_0x3f3b39);return _0x506d1f['includes'](_0x162ef6['data']['key']);})['map'](_0x13037c=>{const {id:_0x361278}=_0x116f26(_0x13037c['name']),_0x50507e=_0x1e3083['getSuggestion'](_0x361278);return _0x2e3120=_0x50507e['attributes']['groupId'],_0x50507e['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4ade33['size'])return;const _0x556dca=_0x1e3083['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x86e79b=>'attribute'==_0x86e79b['type']&&_0x86e79b['data']&&_0x506d1f['includes'](_0x86e79b['data']['key'])&&_0x86e79b['attributes']['groupId']!=_0x2e3120)['map'](_0x59649d=>({'listItem':_0x59649d['getFirstRange']()['start']['nodeAfter'],'groupId':_0x59649d['attributes']['groupId']})),_0x5335c4=new Set();for(const {groupId:_0x33783e,listItem:_0x5a8006}of _0x556dca)_0x4ade33['has'](_0x5a8006)&&_0x5335c4['add'](_0x33783e);for(const _0x38a3bf of _0x1e3083['getSuggestions']())_0x5335c4['has'](_0x38a3bf['attributes']['groupId'])&&_0x38a3bf['setAttribute']('groupId',_0x2e3120);}['_supportLegacySuggestions'](){const _0x1978c4=this['editor'],_0x56ba49=_0x1978c4['locale'],_0x4d036a=_0x1978c4['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4d036a['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x29c05c,_0x6a1356){const _0x4e23d3=[];for(let _0x3507c5 of _0x29c05c)_0x3507c5['start']['nodeAfter']===_0x3507c5['end']['parent']&&(_0x3507c5=_0x1978c4['model']['createRange'](_0x1978c4['model']['createPositionAt'](_0x3507c5['start']['nodeAfter'],0x0))),_0x4e23d3['push'](_0x3507c5);_0x1978c4['model']['change'](_0x112468=>{const _0x1cf62b=_0x1978c4['model']['document']['selection'],_0x350d3b=Array['from'](_0x1cf62b['getRanges']())['map'](_0x1759de=>_0x2725ec['fromRange'](_0x1759de));_0x112468['setSelection'](_0x4e23d3),_0x1978c4['commands']['get'](_0x6a1356['commandName'])['refresh'](),_0x6a1356['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1978c4['execute'](_0x6a1356['commandName'],..._0x6a1356['commandParams']),_0x112468['setSelection'](_0x350d3b);for(const _0x579e20 of _0x350d3b)_0x579e20['detach']();});}),_0x4d036a['descriptionFactory']['registerElementLabel'](function(_0x1d266a){const _0x2626ec=!_0x1978c4['model']['schema']['isObject'](_0x1d266a),_0x2c7f16=_0x1d266a['previousSibling'],_0x57b8c2=_0x1d266a['nextSibling'],_0x139bb2=_0x1d266a['getAttribute']('listItemId'),_0x1379ed=!_0x2c7f16||_0x2c7f16['getAttribute']('listItemId')!==_0x139bb2,_0x1e8a5d=!_0x57b8c2||_0x57b8c2['getAttribute']('listItemId')!==_0x139bb2;return _0x2626ec&&Boolean(_0x139bb2)&&_0x1379ed&&_0x1e8a5d;},_0x12e611=>At(_0x56ba49,'ELEMENT_LIST_ITEM',_0x12e611));}['_registerLegacyDescription'](){const _0x1122fb=this['editor'],_0x47d85b=_0x1122fb['locale'];function _0x44d93b(_0x21d21a){const _0x412044=_0x1122fb['commands']['get']('bulletedList')['value'],_0x5f4408=_0x1122fb['commands']['get']('numberedList')['value'];return'numberedList'===_0x21d21a?_0x412044:_0x5f4408;}_0x1122fb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x53a6ed){if('formatBlock'!=_0x53a6ed['type'])return;const {data:_0x3beef0}=_0x53a6ed;if(!_0x3beef0)return;let _0x2f9fbd,_0x4f89ea,_0x17fad5,_0x431c5f;switch(_0x3beef0['commandName']){case'bulletedList':_0x17fad5=_0x3beef0['commandParams'][0x0]['forceValue'],_0x431c5f=_0x44d93b(_0x3beef0['commandName']),_0x2f9fbd=_0x17fad5?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x431c5f&&_0x1122fb['config']['get']('list.multiBlock')||(_0x2f9fbd='*Change\x20to:*\x20%0'),_0x4f89ea={'type':'format','content':At(_0x47d85b,_0x2f9fbd,At(_0x47d85b,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x17fad5=_0x3beef0['commandParams'][0x0]['forceValue'],_0x431c5f=_0x44d93b(_0x3beef0['commandName']),_0x2f9fbd=_0x17fad5?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x431c5f&&_0x1122fb['config']['get']('list.multiBlock')||(_0x2f9fbd='*Change\x20to:*\x20%0'),_0x4f89ea={'type':'format','content':At(_0x47d85b,_0x2f9fbd,At(_0x47d85b,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2f9fbd='*Indent:*\x20%0',_0x4f89ea={'type':'format','content':At(_0x47d85b,_0x2f9fbd,At(_0x47d85b,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2f9fbd=function(_0x1d36c4){const _0xddfc11=_0x1d36c4['getFirstRange']();let _0x54ca80=_0xddfc11['start']['nodeAfter'];for(;_0x54ca80&&_0xddfc11['containsItem'](_0x54ca80);){if(_0x54ca80['getAttribute']('listIndent')>0x0)return!0x1;_0x54ca80=_0x54ca80['nextSibling'];}return!0x0;}(_0x53a6ed)?At(_0x47d85b,'*Format:*\x20remove\x20from\x20%0',At(_0x47d85b,function(_0x2f2cc7){return'ELEMENT_'+_0x2f2cc7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x53a6ed))):At(_0x47d85b,'*Outdent:*\x20%0',At(_0x47d85b,'ELEMENT_LIST_ITEM')),_0x4f89ea={'type':'format','content':_0x2f9fbd};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3beef0['multipleBlocks']&&(_0x2f9fbd='*Merge:*\x20%0',_0x4f89ea={'type':'deletion','content':At(_0x47d85b,_0x2f9fbd,At(_0x47d85b,'ELEMENT_LIST_ITEM'))});}return _0x4f89ea;});}}function Ht(_0x30040f){let _0x20ee0c=_0x30040f['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x20ee0c;){const _0x5a50fb=_0x20ee0c['getAttribute']('listItemId');if(!_0x5a50fb)return!0x1;if(_0x5a50fb==_0x30040f['data']['newValue'])return'newValue';if(_0x5a50fb==_0x30040f['data']['oldValue'])return'oldValue';_0x20ee0c=_0x20ee0c['previousSibling'];}return!0x1;}class $t extends _0x687f86{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4664c8=this['editor']['config']['get']('list.properties'),_0xafac83=this['editor']['plugins']['get']('TrackChangesEditing');_0x4664c8['styles']&&_0xafac83['enableDefaultAttributesIntegration']('listStyle'),_0x4664c8['reversed']&&_0xafac83['enableDefaultAttributesIntegration']('listReversed'),_0x4664c8['startIndex']&&_0xafac83['enableDefaultAttributesIntegration']('listStart');const _0xc93a54={'type':'format','content':''};_0xafac83['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1121f8=this['editor']['locale'];_0xafac83['descriptionFactory']['registerAttributeLabel']('listReversed',At(_0x1121f8,'FORMAT_LIST_REVERSED')),_0xafac83['descriptionFactory']['registerDescriptionCallback'](_0x395ad3=>{const {data:_0x3dc56f}=_0x395ad3;if(_0x3dc56f&&'listReversed'==_0x3dc56f['key'])return null==_0x3dc56f['newValue']||0x0==_0x3dc56f['newValue']&&null==_0x3dc56f['oldValue']?_0xc93a54:void 0x0;}),_0xafac83['descriptionFactory']['registerAttributeLabel']('listStart',At(_0x1121f8,'FORMAT_LIST_START')),_0xafac83['descriptionFactory']['registerDescriptionCallback'](_0x49a601=>{const {data:_0x5e294c}=_0x49a601;if(_0x5e294c&&'listStart'==_0x5e294c['key'])return null==_0x5e294c['newValue']||0x1==_0x5e294c['newValue']&&null==_0x5e294c['oldValue']?_0xc93a54:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xb933d6=>{if(_0xb933d6['batch']['isUndo'])return!0x1;let _0x407ca2=!0x1;const _0x53431d=_0xafac83['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2f257d=>{const _0x4088db=_0xafac83['_getAttributeKey'](_0x2f257d);return'listStart'==_0x4088db||'listReversed'==_0x4088db;});for(const _0x197d90 of _0x53431d){const _0x219840=_0x197d90['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x219840||'customNumbered'==_0x219840)continue;_0xafac83['_findSuggestions'](_0x197d90['getFirstRange'](),'attribute')['find'](_0x259e35=>'listType'==_0xafac83['_getAttributeKey'](_0x259e35['suggestion']))||(_0xb933d6['removeMarker'](_0x197d90['getFirstMarker']()),_0x407ca2=!0x0);}return _0x407ca2;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4d51a9){const _0x1861bb=this['editor']['locale'],{data:_0x55436a}=_0x4d51a9,_0xd62ba6={'type':'format','content':''};if(!_0x55436a||'listStyle'!=_0x55436a['key'])return;if(!_0x55436a['oldValue'])return'default'==_0x55436a['newValue']?_0xd62ba6:{'type':'format','content':''+At(_0x1861bb,'*Set\x20format:*\x20%0',At(_0x1861bb,this['_getTranslationKeyForListStyle'](_0x55436a['newValue'])))};if(!_0x55436a['newValue']){if('default'==_0x55436a['oldValue'])return _0xd62ba6;let _0x557c32=_0x4d51a9['head'];for(;_0x557c32;){if(_0x557c32['data']&&'listType'==_0x557c32['data']['key']&&_0x557c32['data']['newValue'])return _0xd62ba6;_0x557c32=_0x557c32['next'];}return{'type':'format','content':''+At(_0x1861bb,'*Remove\x20format:*\x20%0',At(_0x1861bb,this['_getTranslationKeyForListStyle'](_0x55436a['oldValue'])))};}if('default'!=_0x55436a['newValue'])return{'type':'format','content':''+At(_0x1861bb,'*Set\x20format:*\x20%0',At(_0x1861bb,this['_getTranslationKeyForListStyle'](_0x55436a['newValue'])))};let _0x3df0b1=_0x4d51a9['head'];for(;_0x3df0b1;){if(_0x3df0b1['data']&&'listType'==_0x3df0b1['data']['key']&&_0x3df0b1['data']['newValue']&&_0x3df0b1['data']['oldValue'])return _0xd62ba6;_0x3df0b1=_0x3df0b1['next'];}return{'type':'format','content':At(_0x1861bb,'*Set\x20format:*\x20%0',At(_0x1861bb,'ELEMENT_'+_0x4d51a9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x260d4b=this['editor'],_0x589070=_0x260d4b['locale'];_0x260d4b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1013a2=>{if('formatBlock'!=_0x1013a2['type'])return;const {data:_0x8b631f}=_0x1013a2;if(!_0x8b631f)return;let _0xb103ac,_0x545033;switch(_0x8b631f['commandName']){case'listStyle':_0xb103ac='*Change\x20to:*\x20%0',_0x545033={'type':'format','content':At(_0x589070,_0xb103ac,At(_0x589070,this['_getTranslationKeyForListStyle'](_0x8b631f['commandParams'][0x0]['type'])))};break;case'listReversed':_0xb103ac=_0x8b631f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x545033={'type':'format','content':At(_0x589070,_0xb103ac)};break;case'listStart':_0xb103ac='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x545033={'type':'format','content':At(_0x589070,_0xb103ac,_0x8b631f['commandParams'][0x0]['startIndex'])};}return _0x545033;});}['_getTranslationKeyForListStyle'](_0xe92566){return'ELEMENT_'+function(_0x5be8c8){if(Wt['includes'](_0x5be8c8))return'bulleted';if(Vt['includes'](_0x5be8c8))return'numbered';return null;}(_0xe92566)['toUpperCase']()+'_LIST_'+_0xe92566['toUpperCase']()['replace'](/-/g,'_');}}const Wt=['disc','circle','square'],Vt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class jt extends _0x687f86{['afterInit'](){const _0x1416e1=this['editor'];_0x1416e1['commands']['get']('emoji')&&_0x1416e1['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class zt extends _0x687f86{static get['requires'](){return[lt];}['init'](){const _0x41424b=this['editor'],_0x2ac8ea=_0x41424b['plugins']['get']('TrackChangesEditing'),_0x50e152=_0x41424b['commands']['get']('enter');_0x2ac8ea['enableCommand']('enter',()=>{_0x41424b['model']['change'](_0xa2b349=>{const _0x525dc3=_0x41424b['model']['document']['selection'],_0x2197ba=_0x525dc3['getFirstPosition'](),_0x8249f6=_0x2725ec['fromRange'](_0x525dc3['getFirstRange']());if(_0x50e152['enterBlock'](_0xa2b349)){const _0x23e3fb=_0x41424b['model']['createPositionAt'](_0x2197ba['parent']['nextSibling'],0x0),_0x3da30c=_0xa2b349['createRange'](_0x2197ba,_0x23e3fb);_0x2ac8ea['markInsertion'](_0x3da30c);}else _0xa2b349['setSelection'](_0xa2b349['createRange'](_0x8249f6['end']));_0x8249f6['detach'](),_0x50e152['fire']('afterExecute',{'writer':_0xa2b349});});});}}class Kt extends _0x687f86{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x48de9a=this['editor']['plugins']['get']('TrackChangesEditing');_0x48de9a['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x48de9a['enableCommand']('findNext'),_0x48de9a['enableCommand']('findPrevious'),_0x48de9a['enableCommand']('replace'),_0x48de9a['enableCommand']('replaceAll');}['handleFindCommand'](_0x532911,_0x169117,_0x2be567={}){const _0x7be6bc=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x532911(_0x44b9da=>{let _0x5b45e1=('string'==typeof _0x169117?_0x7be6bc['findByTextCallback'](_0x169117,_0x2be567):_0x169117)(_0x44b9da);Array['isArray'](_0x5b45e1)&&(_0x5b45e1={'results':_0x5b45e1,'searchText':'string'==typeof _0x169117?_0x169117:''});const _0x1b5878=_0x5b45e1['results']['filter'](_0x5a0e23=>!0x1===this['_isInDeletionRange'](_0x5a0e23,_0x44b9da['item']));return{..._0x5b45e1,'results':_0x1b5878};},_0x2be567);}['_isInDeletionRange'](_0x4a345a,_0x24fc1f){const _0x49c94b=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x24fc1f,_0x4a345a['start']),this['editor']['model']['createPositionAt'](_0x24fc1f,_0x4a345a['end']));for(const _0x4d0a97 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x49c94b['getIntersection'](_0x4d0a97['getRange']()))return!0x0;return!0x1;}}const Xt=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Yt extends _0x687f86{['afterInit'](){const _0x3f0df9=this['editor']['locale'],_0x16f48b=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x18c9d3,commandName:_0x514c34}of Xt)this['editor']['plugins']['has'](_0x18c9d3)&&_0x16f48b['enableDefaultAttributesIntegration'](_0x514c34);_0x16f48b['descriptionFactory']['registerAttributeLabel']('fontSize',At(_0x3f0df9,'FORMAT_FONT_SIZE')),_0x16f48b['descriptionFactory']['registerAttributeLabel']('fontFamily',At(_0x3f0df9,'FORMAT_FONT_FAMILY')),_0x16f48b['descriptionFactory']['registerAttributeLabel']('fontColor',At(_0x3f0df9,'FORMAT_FONT_COLOR')),_0x16f48b['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',At(_0x3f0df9,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9dc7a9=this['editor'],_0x56bf11=_0x9dc7a9['locale'];_0x9dc7a9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xec30ba=>{const _0xd98af2=_0x56bf11['t'];if('formatInline'!=_0xec30ba['type'])return;const {data:_0x41dda0}=_0xec30ba;if(null!=_0x41dda0){if('fontSize'==_0x41dda0['commandName']){const _0x5045ab=_0x41dda0['commandParams'][0x0]['value'];if(_0x5045ab){const _0x50adaa=_0xd98af2(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3d5850=>_0x3d5850['model']==_0x5045ab)['title'])['toLowerCase']();return{'type':'format','content':At(_0x56bf11,'*Set\x20font\x20size:*\x20%0',_0x50adaa)};}return{'type':'format','content':At(_0x56bf11,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x41dda0['commandName']){const _0x40ae82=_0x41dda0['commandParams'][0x0]['value'];return _0x40ae82?{'type':'format','content':At(_0x56bf11,'*Set\x20font\x20family:*\x20%0',_0x40ae82)}:{'type':'format','content':At(_0x56bf11,'*Reset\x20font\x20family*')};}if('fontColor'==_0x41dda0['commandName']){const _0x2f69d1=_0x41dda0['commandParams'][0x0]['value'];if(_0x2f69d1){const _0x54f27e=_0x222fd1(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1513cb=>_0x1513cb['model']==_0x2f69d1);let _0x249a84=_0x2f69d1,_0x1a47be='';return _0x54f27e&&(_0x249a84=_0x54f27e['label'],_0x1a47be=_0xd98af2(_0x249a84)['toLowerCase']()),{'type':'format','content':At(_0x56bf11,'*Set\x20font\x20color:*\x20%0',_0x1a47be)['trim'](),'color':{'value':_0x2f69d1,'title':_0x1a47be||_0x249a84}};}return{'type':'format','content':At(_0x56bf11,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x41dda0['commandName']){const _0x5c6c57=_0x41dda0['commandParams'][0x0]['value'];if(_0x5c6c57){const _0x479e6b=_0x222fd1(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x576367=>_0x576367['model']==_0x5c6c57);let _0x534dc8=_0x5c6c57,_0x15d8a4='';return _0x479e6b&&(_0x534dc8=_0x479e6b['label'],_0x15d8a4=_0xd98af2(_0x534dc8)['toLowerCase']()),{'type':'format','content':At(_0x56bf11,'*Set\x20font\x20background\x20color:*\x20%0',_0x15d8a4)['trim'](),'color':{'value':_0x5c6c57,'title':_0x15d8a4||_0x534dc8}};}return{'type':'format','content':At(_0x56bf11,'*Reset\x20font\x20background\x20color*')};}}});}}class qt extends _0x687f86{['afterInit'](){const {plugins:_0x161e58}=this['editor'];_0x161e58['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x161e58['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x1e52eb,plugins:_0x465fbb,commands:_0x3bcdbf}=this['editor'],_0x4d9d38=_0x465fbb['get']('TrackChangesEditing');_0x3bcdbf['get']('footnotesStyle')&&_0x4d9d38['enableDefaultAttributesIntegration']('footnotesStyle'),_0x3bcdbf['get']('footnotesStart')&&_0x4d9d38['enableDefaultAttributesIntegration']('footnotesStart'),_0x4d9d38['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',At(_0x1e52eb,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x4d9d38['descriptionFactory']['registerAttributeLabel']('footnotesListStart',At(_0x1e52eb,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x2f1752=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x40c839,commands:_0x341e2b}=this['editor'];_0x341e2b['get']('insertFootnote')&&_0x2f1752['enableCommand']('insertFootnote'),_0x2f1752['descriptionFactory']['registerElementLabel']('footnoteRef',_0x31bc35=>At(_0x40c839,'ELEMENT_FOOTNOTE_REF',_0x31bc35)),_0x2f1752['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x1e011b=>At(_0x40c839,'ELEMENT_FOOTNOTE_DEFINITION',_0x1e011b)),_0x2f1752['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0xa0b6c5=>At(_0x40c839,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0xa0b6c5));}}class Qt extends _0x687f86{['afterInit'](){const _0x4d0016=this['editor'],_0x128d58=_0x4d0016['plugins']['get']('TrackChangesEditing'),_0x5ae139=_0x4d0016['commands']['get']('copyFormat'),_0x43facd=_0x4d0016['commands']['get']('pasteFormat');_0x5ae139&&_0x43facd&&(_0x128d58['enableDefaultAttributesIntegration']('pasteFormat'),_0x128d58['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x437ba0=this['editor'],_0x373ad7=_0x437ba0['locale'];_0x437ba0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4deeb8=>{if('formatBlock'!=_0x4deeb8['type']&&'formatInline'!=_0x4deeb8['type'])return;const {data:_0x728a64}=_0x4deeb8;if(_0x728a64&&'pasteFormat'===_0x728a64['commandName']){const _0x215d9e=[],_0x8f6cfd=_0x728a64['commandParams'][0x0];for(const [_0x533737,_0x5216c5]of Object['entries'](_0x8f6cfd))_0x215d9e['push'](Zt(_0x437ba0,_0x533737,_0x5216c5));return _0x215d9e['length']?{'type':'format','content':At(_0x373ad7,'*Set\x20format\x20to:*\x20%0',_0x215d9e['join'](',\x20'))}:{'type':'format','content':At(_0x373ad7,'*Remove\x20all\x20formatting*')};}});}}function Zt(_0x1a7ee3,_0x1858ca,_0xbc5e5f){const _0x4d695d=_0x1a7ee3['locale']['t'],_0x4ebd81=_0x1858ca['split'](/(?=[A-Z])/)['join']('\x20'),_0x4dd9c9=_0x4d695d(_0x4ebd81['charAt'](0x0)['toUpperCase']()+_0x4ebd81['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xbc5e5f)return _0x4dd9c9;if('fontColor'===_0x1858ca||'fontBackgroundColor'===_0x1858ca){const _0xbd580b=_0x222fd1(_0x1a7ee3['config']['get']('fontColor.colors'))['find'](_0x3c8bd9=>_0x3c8bd9['model']==_0xbc5e5f);return _0x4dd9c9+'\x20('+(_0xbd580b?_0x4d695d(_0xbd580b['label'])['toLowerCase']():_0xbc5e5f)+')';}if('fontSize'===_0x1858ca&&isNaN(parseFloat(_0xbc5e5f))){const _0x3eaa55=_0x1a7ee3['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1a7ee3['config']['get']('fontSize.options'))['find'](_0x4c7c85=>_0x4c7c85['model']==_0xbc5e5f);return _0x4dd9c9+'\x20('+(_0x3eaa55?_0x4d695d(_0x3eaa55['title'])['toLowerCase']():_0xbc5e5f)+')';}return _0x4dd9c9+'\x20('+_0xbc5e5f+')';}class Jt extends _0x687f86{['_headingOptions'];['afterInit'](){const _0x5ebdbf=this['editor'];if(!_0x5ebdbf['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5ebdbf['config']['get']('heading.options');const _0xecf815=_0x5ebdbf['locale'],_0x21c5e6=_0x5ebdbf['plugins']['get']('TrackChangesEditing');_0x21c5e6['enableDefaultAttributesIntegration']('heading');for(const _0x47513e of this['_headingOptions'])'paragraph'!=_0x47513e['model']&&_0x21c5e6['descriptionFactory']['registerElementLabel'](_0x47513e['model'],_0x2a1a3d=>{const _0x16a822=this['_getHeadingLevel'](_0x47513e['model']);return null!==_0x16a822?_0xf799fd(_0x2a1a3d,_0x16a822):_0x11e0b1(_0x2a1a3d,_0x47513e['title']);});function _0xf799fd(_0x186b11,_0x5d1f80){return At(_0xecf815,'ELEMENT_HEADING',[_0x186b11,_0x5d1f80]);}function _0x11e0b1(_0x104142,_0x54ad6a){return At(_0xecf815,'ELEMENT_HEADING_CUSTOM',[_0x104142,_0x54ad6a]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x268463=this['editor'],_0x9aa0a0=_0x268463['locale'];function _0x4577aa(_0x12170c,_0x3d8e90){return At(_0x9aa0a0,'ELEMENT_HEADING_CUSTOM',[_0x12170c,_0x3d8e90]);}_0x268463['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b3207=>{if('formatBlock'!=_0x1b3207['type'])return;const {data:_0x364332}=_0x1b3207;if(_0x364332&&'heading'==_0x364332['commandName']){const _0x2eff80=_0x364332['commandParams'][0x0]['value'],_0xafc8bf=this['_getHeadingLevel'](_0x2eff80);if(null!==_0xafc8bf)return{'type':'format','content':At(_0x9aa0a0,'*Change\x20to:*\x20%0',(_0x327177=0x1,_0x4549ca=_0xafc8bf,At(_0x9aa0a0,'ELEMENT_HEADING',[_0x327177,_0x4549ca])))};const _0x1f62cb=this['_headingOptions']['find'](_0x262090=>_0x262090['model']===_0x2eff80)['title'];return{'type':'format','content':At(_0x9aa0a0,'*Change\x20to:*\x20%0',_0x4577aa(0x1,_0x1f62cb))};}var _0x327177,_0x4549ca;});}['_getHeadingLevel'](_0x256950){const _0x25fdeb=_0x256950['match'](/^heading(\d+)/);if(_0x25fdeb)return _0x25fdeb[0x1];const _0x30c063=this['_headingOptions']?.['find'](_0x46331d=>_0x46331d['model']==_0x256950);if(_0x30c063&&_0x30c063['view']){const _0x3e70d2=_0x30c063['view'],_0x2bfda3=(_0x3e70d2['name']??_0x3e70d2)['match'](/^h(\d+)/);if(_0x2bfda3)return _0x2bfda3[0x1];}return null;}}class te extends _0x687f86{['afterInit'](){const _0x1732c5=this['editor'];if(!_0x1732c5['plugins']['has']('HighlightEditing'))return;const _0x47be8b=_0x1732c5['plugins']['get']('TrackChangesEditing'),_0x186d73=_0x1732c5['locale'];_0x47be8b['enableDefaultAttributesIntegration']('highlight'),_0x47be8b['descriptionFactory']['registerAttributeLabel']('highlight',At(_0x186d73,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c264f=this['editor'],_0x23edb5=_0x5c264f['locale'];_0x5c264f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xded4f9=>{if('formatInline'!=_0xded4f9['type'])return;const {data:_0x3a259b}=_0xded4f9;if(_0x3a259b&&'highlight'==_0x3a259b['commandName']){const _0xab6e49=_0x23edb5['t'],_0x5a5fd0=_0x3a259b['commandParams'][0x0]['value'];if(_0x5a5fd0){const _0x10b10c=_0x5c264f['config']['get']('highlight.options')['find'](_0x31a6f=>_0x31a6f['model']==_0x5a5fd0),_0x58b710=_0xab6e49(_0x10b10c['title'])['toLowerCase']();return{'type':'format','content':At(_0x23edb5,'*Set\x20highlight:*\x20%0',_0x58b710),'color':{'value':_0x10b10c['color'],'title':_0x10b10c['title']}};}return{'type':'format','content':At(_0x23edb5,'*Remove\x20highlight*',At(_0x23edb5,'FORMAT_HIGHLIGHT'))};}});}}class ee extends _0x687f86{['afterInit'](){const _0x5928bc=this['editor'];if(!_0x5928bc['plugins']['has']('HorizontalLineEditing'))return;_0x5928bc['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x39ab4d=_0x5928bc['plugins']['get']('TrackChangesEditing'),_0x31986c=_0x5928bc['locale'];_0x39ab4d['descriptionFactory']['registerElementLabel']('horizontalLine',_0xa23126=>At(_0x31986c,'ELEMENT_HORIZONTAL_LINE',_0xa23126));}}class ne extends _0x687f86{['afterInit'](){const _0x8b97e8=this['editor'];if(!_0x8b97e8['plugins']['has']('HtmlEmbed'))return;const _0x1722bf=_0x8b97e8['plugins']['get']('TrackChangesEditing'),_0x27909d=_0x8b97e8['locale'];_0x1722bf['descriptionFactory']['registerElementLabel']('rawHtml',_0x3d0212=>At(_0x27909d,'ELEMENT_HTML_EMBED',_0x3d0212)),_0x1722bf['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1722bf['descriptionFactory']['registerDescriptionCallback'](_0x41ff65=>{if('attribute'!=_0x41ff65['type'])return;const {data:_0x4d8d1d}=_0x41ff65;if(_0x4d8d1d&&'value'==_0x4d8d1d['key']&&_0x41ff65['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1a4b2f=At(_0x27909d,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x27909d,'*Change\x20%0\x20content*',_0x1a4b2f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c3db1=this['editor'],_0x46fbd1=_0x2c3db1['locale'];_0x2c3db1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x252194=>{if('formatBlock'!=_0x252194['type'])return;const {data:_0x58f0a1}=_0x252194;if(_0x58f0a1&&'htmlEmbed'==_0x58f0a1['commandName']){const _0x53184f=At(_0x46fbd1,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x46fbd1,'*Change\x20%0\x20content*',_0x53184f)};}});}}class ie extends _0x687f86{['afterInit'](){const _0x4f49bb=this['editor'];if(!_0x4f49bb['plugins']['has']('ImageEditing'))return;const _0x2bab5e=_0x4f49bb['plugins']['get']('TrackChangesEditing'),_0x7fcae5=_0x4f49bb['plugins']['get']('ImageUtils'),_0xd6f6e2=_0x4f49bb['locale'];_0x2bab5e['enableCommand']('insertImage'),_0x2bab5e['descriptionFactory']['registerElementLabel']('imageBlock',_0x4f480f=>At(_0xd6f6e2,'ELEMENT_IMAGE',_0x4f480f)),_0x2bab5e['descriptionFactory']['registerElementLabel']('imageInline',_0x1aba06=>At(_0xd6f6e2,'ELEMENT_INLINE_IMAGE',_0x1aba06)),_0x2bab5e['descriptionFactory']['registerElementLabel']('caption',()=>At(_0xd6f6e2,'ELEMENT_CAPTION')),_0x4f49bb['plugins']['has']('ImageUploadEditing')&&_0x2bab5e['enableCommand']('uploadImage'),_0x4f49bb['plugins']['has']('ImageBlockEditing')&&_0x4f49bb['plugins']['has']('ImageInlineEditing')&&(_0x2bab5e['enableCommand']('imageTypeInline',(_0x55f61a,_0x3d7210)=>{const _0x43cf1f=_0x7fcae5['getClosestSelectedImageElement'](_0x4f49bb['model']['document']['selection']);_0x4f49bb['model']['change'](()=>{_0x2bab5e['markBlockFormat'](_0x43cf1f,{'commandName':'imageTypeInline','commandParams':[_0x3d7210]},[],'convertBlockImageToInline');});}),_0x2bab5e['enableCommand']('imageTypeBlock',(_0x31567a,_0x155e98)=>{_0x4f49bb['model']['change'](_0xe2621b=>{let _0x44d9a4=_0x7fcae5['getClosestSelectedImageElement'](_0x4f49bb['model']['document']['selection']),_0x9dc39=_0xe2621b['createRangeOn'](_0x44d9a4);const _0x199312=tt['fromPosition'](_0x9dc39['start'],'toPrevious'),_0x4e0a37=tt['fromPosition'](_0x9dc39['end'],'toNext');_0x2bab5e['forceDefaultExecution'](()=>_0x31567a(_0x155e98)),_0x44d9a4=_0x7fcae5['getClosestSelectedImageElement'](_0x4f49bb['model']['document']['selection']),_0x9dc39=_0xe2621b['createRangeOn'](_0x44d9a4);const _0x4639cc=_0xe2621b['createRange'](_0x199312,_0x4e0a37);_0x199312['detach'](),_0x4e0a37['detach'](),_0x2bab5e['markBlockFormat'](_0x44d9a4,{'commandName':'imageTypeInline','commandParams':[_0x155e98]},[],'convertInlineImageToBlock'),_0x4639cc['start']['isBefore'](_0x9dc39['start'])&&_0x2bab5e['markInsertion'](_0xe2621b['createRange'](_0x4639cc['start'],_0x9dc39['start']),'convertInlineImageToBlock'),_0x9dc39['end']['isBefore'](_0x4639cc['end'])&&_0x2bab5e['markInsertion'](_0xe2621b['createRange'](_0x9dc39['end'],_0x4639cc['end']),'convertInlineImageToBlock');});}),_0x2bab5e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2bab5e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2bab5e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2bab5e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2bab5e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2bab5e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5549a7])=>{const _0x453f9a=_0x2bab5e['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x9fc5bb=_0x5549a7['start'],_0x4e1386=_0x5549a7['end'];const _0x50e055=_0x4f49bb['model']['schema']['getNearestSelectionRange'](_0x9fc5bb,'backward'),_0x4c8dc8=_0x4f49bb['model']['schema']['getNearestSelectionRange'](_0x4e1386,'forward');_0x50e055['isCollapsed']&&(_0x9fc5bb=_0x50e055['start']),_0x4c8dc8['isCollapsed']&&(_0x4e1386=_0x4c8dc8['end']),_0x453f9a([_0x4f49bb['model']['createRange'](_0x9fc5bb,_0x4e1386)]);}),_0x2bab5e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5e2f57),_0x2bab5e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5e2f57)),_0x4f49bb['plugins']['has']('ImageCaptionEditing')&&(_0x2bab5e['enableCommand']('toggleImageCaption',(_0x5548a0,_0x17d57c)=>{const _0x55e042=_0x4f49bb['plugins']['get']('ImageCaptionUtils');let _0x5dc7f4=_0x7fcae5['getClosestSelectedImageElement'](_0x4f49bb['model']['document']['selection']),_0x5845a3=_0x55e042['getCaptionFromImageModelElement'](_0x5dc7f4);_0x4f49bb['model']['change'](()=>{if(_0x5845a3)return void _0x2bab5e['markDeletion'](_0x4f49bb['model']['createRangeOn'](_0x5845a3));const _0x1bb1e6=_0x7fcae5['isBlockImage'](_0x5dc7f4);_0x5548a0(_0x17d57c),_0x5dc7f4=_0x7fcae5['getClosestSelectedImageElement'](_0x4f49bb['model']['document']['selection']),_0x5845a3=_0x55e042['getCaptionFromImageModelElement'](_0x5dc7f4),_0x2bab5e['markInsertion'](_0x4f49bb['model']['createRangeOn'](_0x5845a3),_0x1bb1e6?null:'imageCaption');});}),_0x2bab5e['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5e2f57));const _0x13c7e8=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2838ad(_0x31d3ad,_0xde9548){const _0x1bec1=_0x13c7e8['findIndex'](({type:_0x1ea810,subType:_0x11c8d6})=>_0x31d3ad['type']==_0x1ea810&&_0x31d3ad['subType']==_0x11c8d6),_0x50eb2e=_0x13c7e8['findIndex'](({type:_0x4bd6f9,subType:_0x316bc5})=>_0xde9548['type']==_0x4bd6f9&&_0xde9548['subType']==_0x316bc5);if(_0x1bec1<0x0||_0x50eb2e<0x0)return!0x1;const _0x309481=_0x31d3ad['getFirstRange'](),_0x280737=_0xde9548['getFirstRange']();if((0x0==_0x1bec1||0x1==_0x1bec1)&&0x2==_0x50eb2e&&_0x309481['isIntersecting'](_0x280737))return!0x0;if(0x2==_0x1bec1&&0x3==_0x50eb2e){const _0x23e2e6=_0x2bab5e['_findSuggestions'](_0x309481,'insertion')['filter'](({suggestion:_0x10d0b3,meta:_0x5613dd})=>_0x5613dd['isOwn']&&'convertInlineImageToBlock'==_0x10d0b3['subType']);if(_0x23e2e6['length']>0x1&&_0x280737['end']['isEqual'](_0x309481['start']))return!0x0;if(0x1==_0x23e2e6['length']&&(_0x309481['start']['isEqual'](_0x280737['end'])||_0x309481['end']['isEqual'](_0x280737['start'])))return!0x0;}if(0x3==_0x1bec1&&0x3==_0x50eb2e&&_0x309481['start']['isBefore'](_0x280737['start'])){const _0x24e650=_0x309481['end']['nodeAfter'],_0xd33161=_0x280737['start']['nodeBefore'];return _0x7fcae5['isBlockImage'](_0x24e650)&&_0x24e650===_0xd33161;}return!0x1;}function _0x5e2f57(_0x5a9ab5,_0x2f48a4){return _0x2838ad(_0x5a9ab5,_0x2f48a4)?[_0x5a9ab5,_0x2f48a4]:_0x2838ad(_0x2f48a4,_0x5a9ab5)?[_0x2f48a4,_0x5a9ab5]:null;}_0x4f49bb['plugins']['has']('ImageResize')&&(_0x2bab5e['enableDefaultAttributesIntegration']('resizeImage'),_0x2bab5e['descriptionFactory']['registerAttributeLabel']('resizedWidth',At(_0xd6f6e2,'FORMAT_IMAGE_SIZE'))),_0x4f49bb['plugins']['has']('ImageTextAlternativeEditing')&&_0x2bab5e['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4f49bb['plugins']['has']('PictureEditing')&&_0x2bab5e['descriptionFactory']['registerDescriptionCallback'](_0x6538cd=>{if('attribute'!=_0x6538cd['type'])return;const {data:_0x4176e5}=_0x6538cd;return _0x4176e5&&'sources'==_0x4176e5['key']?{'type':'format','content':''}:void 0x0;}),_0x4f49bb['plugins']['has']('ImageSizeAttributes')&&_0x2bab5e['descriptionFactory']['registerDescriptionCallback'](_0x49f08a=>{if('attribute'!=_0x49f08a['type'])return;const {data:_0x5b3fd7}=_0x49f08a;return!_0x5b3fd7||'width'!=_0x5b3fd7['key']&&'height'!=_0x5b3fd7['key']?void 0x0:{'type':'format','content':''};}),_0x2bab5e['descriptionFactory']['registerDescriptionCallback'](_0x2271b9=>{if(!!_0x13c7e8['find'](({type:_0x3ea8ea,subType:_0x3d0624})=>_0x2271b9['type']==_0x3ea8ea&&_0x2271b9['subType']==_0x3d0624))return _0x2271b9['previous']?{}:void 0x0;}),_0x2bab5e['descriptionFactory']['registerDescriptionCallback'](_0x3b803f=>{if('insertion'==_0x3b803f['type']||'deletion'==_0x3b803f['type']){const _0x25b33f=_0x3b803f['getContainedElement']();if(_0x25b33f&&_0x25b33f['is']('element','caption'))return{'type':'insertion'==_0x3b803f['type']?'addObject':'removeObject','element':_0x25b33f,'quantity':0x1};}}),_0x2bab5e['descriptionFactory']['registerDescriptionCallback'](_0x460bcc=>'formatBlock'==_0x460bcc['type']&&'convertInlineImageToBlock'==_0x460bcc['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x460bcc['type']&&'convertBlockImageToInline'==_0x460bcc['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2bab5e['descriptionFactory']['registerDescriptionCallback'](_0x12772c=>{if('attribute'!=_0x12772c['type'])return;const {data:_0x520a0f}=_0x12772c;if(!_0x520a0f||'alt'!=_0x520a0f['key'])return;const _0x5bfd21=_0x520a0f['newValue'];return _0x5bfd21?{'type':'format','content':At(_0xd6f6e2,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5bfd21+'\x22')}:{'type':'format','content':At(_0xd6f6e2,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xaf111d=this['editor'],_0x5e2c2b=_0xaf111d['locale'];_0xaf111d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30819a=>{if('formatBlock'!=_0x30819a['type']&&'formatInline'!=_0x30819a['type'])return;const {data:_0x26a3af}=_0x30819a;if(_0x26a3af){if('imageTextAlternative'==_0x26a3af['commandName']){const _0x10e72f=_0x26a3af['commandParams'][0x0]['newValue'];return _0x10e72f?{'type':'format','content':At(_0x5e2c2b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x10e72f+'\x22')}:{'type':'format','content':At(_0x5e2c2b,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x26a3af['commandName']){const _0x187f70=_0x26a3af['commandParams'][0x0]['width'];return _0x187f70?{'type':'format','content':At(_0x5e2c2b,'*Set\x20image\x20width:*\x20%0',_0x187f70)}:{'type':'format','content':At(_0x5e2c2b,'*Reset\x20image\x20width*')};}}});}}class se extends _0x687f86{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x24d8a4=this['editor']['locale'],_0x5a37c0=this['editor']['plugins']['get']('TrackChangesEditing');_0x5a37c0['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5a37c0['descriptionFactory']['registerDescriptionCallback'](_0x508381=>{if('attribute'!=_0x508381['type'])return;const {data:_0x5d9047}=_0x508381;return _0x5d9047&&'src'==_0x5d9047['key']?_0x5d9047['newValue']&&_0x5d9047['oldValue']?{'type':'format','content':At(_0x24d8a4,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x178307=this['editor']['plugins']['get']('TrackChangesEditing');_0x178307['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x178307['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x178307['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x178307['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x590b29=this['editor'],_0x8ba1ec=_0x590b29['locale'];_0x590b29['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c830e=>{if('formatBlock'!=_0x3c830e['type']&&'formatInline'!=_0x3c830e['type'])return;const {data:_0x3999d8}=_0x3c830e;if(!_0x3999d8||'replaceImageSource'!=_0x3999d8['commandName'])return;return{'type':'format','content':At(_0x8ba1ec,'*Format:*\x20replace\x20image\x20URL')};});}}class re extends _0x687f86{['afterInit'](){const _0x2da8f5=this['editor'];if(!_0x2da8f5['plugins']['has']('ImageStyleEditing'))return;const _0x4ebaff=_0x2da8f5['plugins']['get']('TrackChangesEditing'),_0x586df7=_0x2da8f5['plugins']['get']('ImageUtils'),_0x12a4ef={};_0x4ebaff['enableCommand']('imageStyle',(_0x1e3708,_0x1b7b19)=>{const _0x528500=_0x2da8f5['plugins']['get']('Users')['me'],_0x5785a9=_0x2da8f5['commands']['get']('imageStyle');let _0x4318ff=_0x586df7['getClosestSelectedImageElement'](_0x2da8f5['model']['document']['selection']),_0x2a305d=_0x2da8f5['model']['createRangeOn'](_0x4318ff),_0x13e5c2=_0x5785a9['value'];if(_0x13e5c2==_0x1b7b19['value'])return;const _0x425ce0={'commandName':'imageStyle','commandParams':[_0x1b7b19],'formatGroupId':_0x41141f()};_0x2da8f5['model']['change'](()=>{if(_0x4ebaff['getSuggestions']()['filter'](_0x13bba8=>_0x13bba8['isInContent']&&_0x528500==_0x13bba8['author']&&('formatBlock'==_0x13bba8['type']||'formatInline'==_0x13bba8['type'])&&('imageStylePreApply'==_0x13bba8['subType']||'imageStylePostApply'==_0x13bba8['subType'])&&_0x13bba8['getFirstRange']()['isEqual'](_0x2a305d))['forEach'](_0x42149a=>_0x4ebaff['discardSuggestion'](_0x42149a['head'])),_0x4318ff=_0x586df7['getClosestSelectedImageElement'](_0x2da8f5['model']['document']['selection']),_0x2a305d=_0x2da8f5['model']['createRangeOn'](_0x4318ff),_0x5785a9['refresh'](),_0x2da8f5['commands']['get']('imageTypeInline')['refresh'](),_0x2da8f5['commands']['get']('imageTypeBlock')['refresh'](),_0x13e5c2=_0x5785a9['value'],_0x13e5c2!=_0x1b7b19['value'])return _0x586df7['isInlineImage'](_0x4318ff)&&_0x5785a9['shouldConvertImageType'](_0x1b7b19['value'],_0x4318ff)?(_0x1e3708({..._0x1b7b19,'setImageSizes':!0x1}),_0x4318ff=_0x586df7['getClosestSelectedImageElement'](_0x2da8f5['model']['document']['selection']),void _0x4ebaff['markBlockFormat'](_0x4318ff,{..._0x425ce0,'commandReversedParams':[{'value':_0x13e5c2||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x586df7['isBlockImage'](_0x4318ff)?_0x4ebaff['markBlockFormat'](_0x4318ff,_0x425ce0,[],'imageStylePostApply'):_0x4ebaff['markInlineFormat'](_0x2a305d,_0x425ce0,'imageStylePostApply'));});});for(const _0x50af8e of _0x2da8f5['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x12a4ef[_0x50af8e['name']]=_0x50af8e['title']['toLowerCase']();_0x4ebaff['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4ebaff['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4ebaff['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4ebaff['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2947db])=>{_0x586df7['setImageNaturalSizeAttributes'](_0x2947db['getContainedElement']());}),_0x4ebaff['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x176e54,_0x5492fd)=>{_0x4ebaff['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x176e54,{'commandName':_0x5492fd['commandName'],'commandParams':_0x5492fd['commandReversedParams']});}),_0x4ebaff['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x17e31f,_0x13495a){if(_0x452f22(_0x17e31f,_0x13495a))return[_0x17e31f,_0x13495a];if(_0x452f22(_0x13495a,_0x17e31f))return[_0x13495a,_0x17e31f];return null;});const _0x559e91=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x452f22(_0x5d455a,_0x163393){const _0x5534d0=_0x559e91['findIndex'](({type:_0x4d2eb6,subType:_0x9fc99e})=>_0x5d455a['type']==_0x4d2eb6&&_0x5d455a['subType']==_0x9fc99e),_0x289189=_0x559e91['findIndex'](({type:_0x334bc3,subType:_0x219c99})=>_0x163393['type']==_0x334bc3&&_0x163393['subType']==_0x219c99);if(_0x5534d0<0x0||_0x289189<0x0)return!0x1;const _0x1a700c=_0x5d455a['getFirstRange'](),_0x1547ee=_0x163393['getFirstRange']();if((0x0==_0x5534d0||0x1==_0x5534d0)&&0x2==_0x289189&&_0x1a700c['isIntersecting'](_0x1547ee))return!0x0;if(0x2==_0x5534d0&&0x3==_0x289189){const _0xd12d79=_0x4ebaff['_findSuggestions'](_0x1a700c,'insertion')['filter'](({suggestion:_0x157937,meta:_0x53e4a9})=>_0x53e4a9['isOwn']&&'convertInlineImageToBlock'==_0x157937['subType']);if(_0xd12d79['length']>0x1&&_0x1547ee['end']['isEqual'](_0x1a700c['start']))return!0x0;if(0x1==_0xd12d79['length']&&(_0x1a700c['start']['isEqual'](_0x1547ee['end'])||_0x1a700c['end']['isEqual'](_0x1547ee['start'])))return!0x0;}if(0x3==_0x5534d0&&0x3==_0x289189&&_0x1a700c['start']['isBefore'](_0x1547ee['start'])){const _0xa7ac87=_0x1a700c['end']['nodeAfter'],_0x1a258c=_0x1547ee['start']['nodeBefore'];return _0x586df7['isBlockImage'](_0xa7ac87)&&_0xa7ac87===_0x1a258c;}return!0x1;}_0x2da8f5['model']['document']['registerPostFixer'](()=>{let _0x257928=!0x1;const _0x543e36=Array['from'](_0x2da8f5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x966c81,data:_0x517449}of _0x543e36){const {group:_0x483d6d,type:_0x4cdcca,subType:_0x354288,id:_0x18a56}=_0x116f26(_0x966c81);if('suggestion'==_0x483d6d&&_0x4ebaff['hasSuggestion'](_0x18a56)){if('formatBlock'==_0x4cdcca&&('imageStylePreApply'==_0x354288||'imageStylePostApply'==_0x354288)){const _0x305d73=_0x4ebaff['getSuggestion'](_0x18a56);if(_0x517449['newRange']){const _0x192b2b=_0x305d73['getFirstRange']()['getContainedElement']();if(_0x586df7['isBlockImage'](_0x192b2b))continue;_0x4ebaff['discardSuggestion'](_0x305d73),_0x257928=!0x0;}}if('insertion'==_0x4cdcca&&'imageCaption'==_0x354288&&!_0x517449['newRange']){const _0x43cdff=_0x4ebaff['getSuggestion'](_0x18a56);_0x43cdff['next']&&_0x43cdff['next']['isInContent']&&(_0x4ebaff['discardSuggestion'](_0x43cdff['next']),_0x257928=!0x0);}}}return _0x257928;}),this['_registerLegacyDescription'](_0x12a4ef);}['_registerLegacyDescription'](_0x1453d6){const _0x5640a7=this['editor'],_0x4deb47=_0x5640a7['locale'];_0x5640a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x641245=>{if('formatBlock'!=_0x641245['type']&&'formatInline'!=_0x641245['type'])return;const {data:_0xaaea0c}=_0x641245;if(!_0xaaea0c||'imageStyle'!=_0xaaea0c['commandName'])return;const _0x4cbae4=_0xaaea0c['commandParams'][0x0]['value'];return _0xca140d('side'===_0x4cbae4?At(_0x4deb47,'FORMAT_SIDE_IMAGE'):_0x1453d6[_0x4cbae4]||_0x4cbae4);function _0xca140d(_0x24d35e){return{'type':'format','content':At(_0x4deb47,'*Format:*\x20%0',_0x24d35e)};}});}}class oe extends _0x687f86{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x58756d){super(_0x58756d),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4b2368=this['editor'],_0x1a4dec=_0x4b2368['commands']['get']('importWord'),_0x4d40b6=_0x4b2368['commands']['get']('trackChanges');_0x1a4dec&&(_0x1a4dec['on']('execute',(_0x4e3312,[,_0x1ca1ed])=>{this['_trackChangesValueDuringImport']=_0x4d40b6['value'],_0x1ca1ed['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1a4dec,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1a4dec,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4d40b6['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4b2368['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x34ca2a,_0x1183c0){const {suggestions:_0x4c0dd6}=_0x1183c0,_0x4632c6=this['editor']['commands']['get']('trackChanges'),_0x187d3e=_0x4632c6['value'];this['_trackChangesValueDuringImport']!==_0x187d3e&&(_0x4632c6['execute'](),this['_trackChangesExecuted']=!0x0),_0x4c0dd6&&_0x4c0dd6['forEach'](({id:_0x31e883,type:_0x4c0d86,author:_0x36fcd0,created_at:_0x4f0781})=>{const _0x54bf12={'id':_0x31e883,'type':_0x4c0d86,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x36fcd0,'createdAt':_0x4f0781?new Date(_0x4f0781):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x54bf12);});}}class ae extends _0x687f86{['afterInit'](){const _0x1067d8=this['editor'],_0xcb85ca=_0x1067d8['plugins']['get']('TrackChangesEditing');if(_0x1067d8['plugins']['has']('IndentEditing')&&(_0xcb85ca['enableCommand']('indent'),_0xcb85ca['enableCommand']('outdent')),_0x1067d8['plugins']['has']('IndentBlock')){for(const _0x4a701b of['indentBlock','outdentBlock'])_0xcb85ca['enableDefaultAttributesIntegration'](_0x4a701b);if(_0x1067d8['plugins']['has']('ListEditing')){for(const _0x5a635e of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0xcb85ca['enableDefaultAttributesIntegration'](_0x5a635e);}}const _0x10632b=_0x1067d8['locale'];_0xcb85ca['descriptionFactory']['registerAttributeLabel']('blockIndent',At(_0x10632b,'FORMAT_INDENT')),_0xcb85ca['descriptionFactory']['registerAttributeLabel']('blockIndentList',At(_0x10632b,'FORMAT_INDENT')),_0xcb85ca['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',At(_0x10632b,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x78fe0=this['editor'],_0x13b326=_0x78fe0['locale'],_0x5d4464=_0x78fe0['plugins']['get']('TrackChangesEditing');_0x5d4464['descriptionFactory']['registerDescriptionCallback'](_0x5e13af=>{if('formatBlock'!=_0x5e13af['type'])return;const {data:_0x46c8b2}=_0x5e13af;if(!_0x46c8b2)return;if('indentBlock'!=_0x46c8b2['commandName']&&'outdentBlock'!=_0x46c8b2['commandName'])return;const _0x2bb0ef=_0x5e13af['getItems']()[0x0],_0x517665=_0x5d4464['descriptionFactory']['getItemLabel'](_0x2bb0ef);return'indentBlock'==_0x46c8b2['commandName']?{'type':'format','content':At(_0x13b326,'*Indent:*\x20%0',_0x517665)}:'outdentBlock'==_0x46c8b2['commandName']?{'type':'format','content':At(_0x13b326,'*Outdent:*\x20%0',_0x517665)}:void 0x0;});}}class ce extends _0x687f86{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class le extends _0x687f86{['afterInit'](){const _0x5502e3=this['editor'];if(!_0x5502e3['plugins']['has']('LinkEditing'))return;const _0x22687a=_0x5502e3['plugins']['get']('TrackChangesEditing'),_0x46c431=_0x5502e3['commands']['get']('link');_0x22687a['enableDefaultAttributesIntegration']('link'),_0x22687a['enableDefaultAttributesIntegration']('unlink');for(const _0x2fe690 of _0x46c431['manualDecorators'])_0x22687a['descriptionFactory']['registerAttributeLabel'](_0x2fe690['id'],'link\x20('+_0x2fe690['label']['toLowerCase']()+')');_0x22687a['descriptionFactory']['registerDescriptionCallback'](_0x1693df=>{if('attribute'!=_0x1693df['type'])return;const {data:_0xd2120b}=_0x1693df;if(!_0xd2120b||'linkHref'!=_0xd2120b['key'])return;const _0x2c7220=_0xd2120b['newValue'],_0x43ed58=_0x5502e3['locale'];return{'type':'format','content':null==_0x2c7220?At(_0x43ed58,'*Remove\x20link*'):At(_0x43ed58,'*Set\x20link:*\x20%0','\x22'+_0x2c7220+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55ccd5=this['editor'],_0x5ec6eb=_0x55ccd5['locale'];_0x55ccd5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a33e3=>{if('formatInline'!=_0x5a33e3['type'])return;const {data:_0x51953d}=_0x5a33e3;if(_0x51953d){if('link'==_0x51953d['commandName']){const _0x4055ed=_0x51953d['commandParams'][0x0];return{'type':'format','content':At(_0x5ec6eb,'*Set\x20link:*\x20%0','\x22'+_0x4055ed+'\x22')};}return'unlink'==_0x51953d['commandName']?{'type':'format','content':At(_0x5ec6eb,'*Remove\x20link*')}:void 0x0;}});}}class ue extends _0x687f86{['afterInit'](){const _0x257a18=this['editor'],_0x387dc5=_0x257a18['locale'];if(!_0x257a18['plugins']['has']('LegacyListEditing'))return;const _0x55beb5=_0x257a18['plugins']['get']('TrackChangesEditing'),_0x28243a=_0x257a18['plugins']['has']('LegacyTodoListEditing');function _0x4b3ca0(_0x27979c){return()=>{const _0x439e28=_0x257a18['model']['document']['selection'],_0x3efac1=_0x257a18['commands']['get'](_0x27979c);if(_0x3efac1['value'])return void _0x257a18['execute']('paragraph',{});const _0x2798a0=_0x27979c['slice'](0x0,-0x4),_0x5928fd=function(_0x475417,_0x1b8af,_0x311f41){let _0x3435dc=Array['from'](_0x475417)['filter'](_0x554123=>function(_0x1a78d4,_0x319b79){return _0x319b79['checkChild'](_0x1a78d4['parent'],'listItem')&&!_0x319b79['isObject'](_0x1a78d4);}(_0x554123,_0x311f41));_0x3435dc=_0x3435dc['filter'](_0x31a4dc=>!_0x31a4dc['is']('element','listItem')||_0x31a4dc['getAttribute']('listType')!=_0x1b8af);const _0x3b7fbd=new Set();for(const _0x46afc7 of _0x3435dc)_0x46afc7['is']('element','listItem')?_0x3b7fbd['add'](he(_0x46afc7)):_0x3b7fbd['add'](_0x46afc7);return Array['from'](_0x3b7fbd);}(_0x439e28['getSelectedBlocks'](),_0x2798a0,_0x257a18['model']['schema']);_0x257a18['model']['change'](()=>{for(const _0x57ded5 of _0x5928fd)_0x55beb5['markBlockFormat'](_0x57ded5,{'commandName':_0x27979c,'commandParams':[{'forceValue':!_0x3efac1['value']}],'formatGroupId':'blockName'},de(_0x57ded5));});};}function _0x1e4203(_0x273af7){return()=>{const _0x30bec2=function(_0x3f15cb){let _0x421bc1=Array['from'](_0x3f15cb);const _0x1cae68=_0x421bc1['findIndex'](_0x1f6ce6=>'listItem'!=_0x1f6ce6['name']);return _0x1cae68>-0x1&&(_0x421bc1=_0x421bc1['slice'](0x0,_0x1cae68)),_0x421bc1;}(_0x257a18['model']['document']['selection']['getSelectedBlocks']()),_0x5a7282=_0x257a18['model']['createRange'](_0x257a18['model']['createPositionAt'](_0x30bec2[0x0],'before'),_0x257a18['model']['createPositionAt'](_0x30bec2[_0x30bec2['length']-0x1],'end'));_0x257a18['model']['change'](()=>{_0x55beb5['markBlockFormat'](_0x5a7282,{'commandName':_0x273af7,'commandParams':[],'formatGroupId':'listIndent'},function(_0x43c82c){const _0x20576e=new Set();for(const _0x44da29 of _0x43c82c){let _0x32b615=_0x44da29['nextSibling'];for(;_0x32b615&&_0x32b615['getAttribute']('listIndent')>_0x44da29['getAttribute']('listIndent');)_0x20576e['add'](_0x32b615),_0x32b615=_0x32b615['nextSibling'];}return Array['from'](_0x20576e);}(_0x30bec2));});};}_0x55beb5['enableCommand']('numberedList',_0x4b3ca0('numberedList')),_0x55beb5['enableCommand']('bulletedList',_0x4b3ca0('bulletedList')),_0x28243a&&_0x55beb5['enableCommand']('todoList',_0x4b3ca0('todoList')),_0x55beb5['enableCommand']('indentList',_0x1e4203('indentList')),_0x55beb5['enableCommand']('outdentList',_0x1e4203('outdentList')),_0x28243a&&_0x55beb5['enableCommand']('checkTodoList',()=>{const _0x384930=_0x257a18['commands']['get']('checkTodoList'),_0x23442d=Array['from'](_0x384930['_selectedElements']);_0x23442d['filter'](_0x3b2718=>_0x3b2718['getAttribute']('todoListChecked')!=_0x384930['value']),_0x257a18['model']['change'](()=>{for(const _0x39a17b of _0x23442d)_0x55beb5['markBlockFormat'](_0x39a17b,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x384930['value']}]});});}),_0x55beb5['descriptionFactory']['registerElementLabel']('listItem',_0x30e1bc=>At(_0x387dc5,'ELEMENT_LIST_ITEM',_0x30e1bc)),_0x55beb5['descriptionFactory']['registerDescriptionCallback'](_0x395481=>{if('formatBlock'!=_0x395481['type']&&'formatInline'!=_0x395481['type'])return;const {data:_0x4372cd}=_0x395481;if(_0x4372cd){if('numberedList'==_0x4372cd['commandName']||'bulletedList'==_0x4372cd['commandName']||'todoList'==_0x4372cd['commandName'])switch(_0x4372cd['commandName']['replace']('List','')){case'bulleted':return _0x337237(At(_0x387dc5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x337237(At(_0x387dc5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x337237(At(_0x387dc5,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4372cd['commandName'])return{'type':'format','content':At(_0x387dc5,'*Indent:*\x20%0',At(_0x387dc5,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4372cd['commandName'])return{'type':'format','content':At(_0x387dc5,'*Outdent:*\x20%0',At(_0x387dc5,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4372cd['commandName'])return _0x4372cd['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x387dc5,'*Check\x20item*')}:{'type':'format','content':At(_0x387dc5,'*Uncheck\x20item*')};}function _0x337237(_0x8ed71e){return{'type':'format','content':At(_0x387dc5,'*Change\x20to:*\x20%0',_0x8ed71e)};}});}}function he(_0x25024e){const _0x34046c=_0x25024e['getAttribute']('listIndent');if(0x0==_0x34046c)return _0x25024e;let _0x384c47=_0x25024e;for(;_0x25024e['previousSibling']&&_0x25024e['previousSibling']['is']('element','listItem');){const _0x11b587=_0x25024e['previousSibling']['getAttribute']('listIndent');if(_0x11b587==_0x34046c)_0x384c47=_0x25024e['previousSibling'];else{if(_0x11b587<_0x34046c)break;}_0x25024e=_0x25024e['previousSibling'];}return _0x384c47;}function de(_0x1361e0){const _0x66eea0=[];if(_0x1361e0['is']('element','listItem')&&_0x1361e0['getAttribute']('listIndent')>0x0){let _0x592696=_0x1361e0['nextSibling'];for(;_0x592696&&'listItem'==_0x592696['name']&&_0x592696['getAttribute']('listIndent')==_0x1361e0['getAttribute']('listIndent');)_0x66eea0['push'](_0x592696),_0x592696=_0x592696['nextSibling'];}return _0x66eea0;}class fe extends _0x687f86{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3b4566=this['editor']['config']['get']('list.properties'),_0x42b2de=this['editor']['plugins']['get']('TrackChangesEditing');_0x3b4566['styles']&&_0x42b2de['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3b4566['reversed']&&_0x42b2de['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3b4566['startIndex']&&_0x42b2de['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x42b2de['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x44c898,_0x4709f6={}){const _0xde081b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x14c392=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xde081b['markMultiRangeBlockFormat'](_0x14c392,{'commandName':'listStyle','commandParams':[{'type':_0x4709f6['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x47817e,_0x2b46e9={}){const _0x45f6b6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b8e3a=this['_getSuggestionBlocks'](_0xac035d=>_0xac035d['is']('element','listItem')&&'numbered'===_0xac035d['getAttribute']('listType'));if(_0x5b8e3a['length']<0x1)return;const _0x9ead97=_0x5b8e3a['map'](_0x59d14=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x59d14,'before'),this['editor']['model']['createPositionAt'](_0x59d14,0x0)));this['editor']['model']['change'](()=>{_0x45f6b6['markMultiRangeBlockFormat'](_0x9ead97,{'commandName':'listReversed','commandParams':[{'reversed':_0x2b46e9['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x13086b,_0x364dcc={}){const _0x14b28b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x38ac4b=this['_getSuggestionBlocks'](_0x4fc84b=>_0x4fc84b['is']('element','listItem')&&'numbered'===_0x4fc84b['getAttribute']('listType'));if(_0x38ac4b['length']<0x1)return;const _0x249730=_0x38ac4b['map'](_0x18ccbb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x18ccbb,'before'),this['editor']['model']['createPositionAt'](_0x18ccbb,0x0)));this['editor']['model']['change'](()=>{_0x14b28b['markMultiRangeBlockFormat'](_0x249730,{'commandName':'listStart','commandParams':[{'startIndex':_0x364dcc['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x355720){if('formatBlock'!=_0x355720['type']&&'formatInline'!=_0x355720['type'])return;const _0xa889f2=this['editor']['locale'],{data:_0x4f60b9}=_0x355720;if(!_0x4f60b9)return;let _0x130ca1,_0x59ce38;switch(_0x4f60b9['commandName']){case'listStyle':_0x130ca1='*Change\x20to:*\x20%0',_0x59ce38={'type':'format','content':At(_0xa889f2,_0x130ca1,At(_0xa889f2,this['_getTranslationKeyForListStyle'](_0x4f60b9['commandParams'][0x0]['type'])))};break;case'listReversed':_0x130ca1=_0x4f60b9['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x59ce38={'type':'format','content':At(_0xa889f2,_0x130ca1)};break;case'listStart':_0x130ca1='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x59ce38={'type':'format','content':At(_0xa889f2,_0x130ca1,_0x4f60b9['commandParams'][0x0]['startIndex'])};}return _0x59ce38;}['_getSuggestionBlocksForListStyle'](){const _0x1e5a25=this['editor']['plugins']['get']('LegacyListUtils');let _0x3aeae4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3aeae4[0x0]?.['is']('element','listItem')&&_0x3aeae4['unshift'](..._0x1e5a25['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3aeae4[_0x3aeae4['length']-0x1]?.['is']('element','listItem')&&_0x3aeae4['push'](..._0x1e5a25['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3aeae4=[...new Set(_0x3aeae4)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3aeae4=_0x3aeae4['filter'](_0x388f7c=>_0x388f7c['is']('element','listItem'))),_0x3aeae4;}['_getSuggestionBlocks'](_0x40642e){const _0x55ed5a=this['editor']['plugins']['get']('LegacyListUtils');let _0x1acc24=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x40642e)['map'](_0x29ff1a=>{const _0x5e9386=this['editor']['model']['createPositionAt'](_0x29ff1a,0x0);return[..._0x55ed5a['getSiblingNodes'](_0x5e9386,'backward'),..._0x55ed5a['getSiblingNodes'](_0x5e9386,'forward')];})['flat']();return _0x1acc24=[...new Set(_0x1acc24)],_0x1acc24;}['_getTranslationKeyForListStyle'](_0x414a74){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x414a74)||'default')['toUpperCase']()+'_LIST_'+_0x414a74['toUpperCase']()['replace'](/-/g,'_');}}class ge extends _0x687f86{['afterInit'](){const _0x4b7a6e=this['editor'];if(!_0x4b7a6e['plugins']['has']('MediaEmbedEditing'))return;const _0x57a61e=_0x4b7a6e['plugins']['get']('TrackChangesEditing'),_0xb476be=_0x4b7a6e['locale'];_0x57a61e['enableCommand']('mediaEmbed'),_0x57a61e['descriptionFactory']['registerElementLabel']('media',_0x1d5366=>At(_0xb476be,'ELEMENT_MEDIA',_0x1d5366));}}class me extends _0x687f86{['afterInit'](){const _0x16e043=this['editor'];_0x16e043['plugins']['has']('MentionEditing')&&_0x16e043['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class Ee extends _0x687f86{['afterInit'](){const _0x19487e=this['editor'];if(!_0x19487e['plugins']['has']('MergeFieldsEditing'))return;const _0x40fa61=_0x19487e['plugins']['get']('TrackChangesEditing'),_0x21c870=_0x19487e['locale'];_0x40fa61['enableCommand']('insertMergeField'),_0x40fa61['enableCommand']('insertMergeFieldBlock'),_0x40fa61['enableCommand']('insertMergeFieldImage'),_0x40fa61['descriptionFactory']['registerElementLabel']('mergeField',_0x1e609b=>At(_0x21c870,'ELEMENT_MERGE_FIELD',_0x1e609b)),_0x40fa61['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x47f965=>At(_0x21c870,'ELEMENT_MERGE_FIELD',_0x47f965)),_0x40fa61['descriptionFactory']['registerDescriptionCallback'](_0x326ec4=>{if('insertion'!=_0x326ec4['type']&&'deletion'!=_0x326ec4['type'])return;const _0x15a37d=_0x326ec4['getContainedElement']();if(null==_0x15a37d)return;const _0x213fe2=_0x19487e['plugins']['get']('MergeFieldsEditing');let _0x1847a9;switch(_0x213fe2['getMergeFieldType'](_0x15a37d)){case null:return;case'image':{const _0x4bcf87=_0x213fe2['unwrapAffixes'](_0x15a37d['getAttribute']('src'));_0x1847a9=_0x213fe2['getLabel'](_0x4bcf87)||_0x4bcf87;break;}default:{const _0x1a5c27=_0x15a37d['getAttribute']('id');_0x1847a9=_0x213fe2['getLabel'](_0x1a5c27)||_0x1a5c27;break;}}return'insertion'==_0x326ec4['type']?{'type':'insertion','content':At(_0x21c870,'*Insert:*\x20%0','\x22'+_0x1847a9+'\x22\x20'+At(_0x21c870,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':At(_0x21c870,'*Remove:*\x20%0','\x22'+_0x1847a9+'\x22\x20'+At(_0x21c870,'ELEMENT_MERGE_FIELD'))};});}}class Te extends _0x687f86{['afterInit'](){const _0x90cca9=this['editor'],_0x2c525e=_0x90cca9['plugins']['get']('TrackChangesEditing');_0x90cca9['plugins']['has']('MultiLevelList')&&(_0x2c525e['enableDefaultAttributesIntegration']('multiLevelList'),_0x2c525e['descriptionFactory']['registerDescriptionCallback'](_0x3f7776=>this['handleDescriptions'](_0x3f7776)));}['handleDescriptions'](_0x321771){const _0x1af10e=this['editor']['locale'],{data:_0x2ea14b}=_0x321771,_0x50b55f={'type':'format','content':''};if(_0x2ea14b&&'listMarkerStyle'==_0x2ea14b['key']){if(!_0x2ea14b['oldValue'])return{'type':'format','content':At(_0x1af10e,'*Set\x20format:*\x20%0',At(_0x1af10e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2ea14b['newValue']+')'};if(!_0x2ea14b['newValue']){let _0x3220a2=_0x321771['head'];for(;_0x3220a2;){if(_0x3220a2['data']&&'listType'==_0x3220a2['data']['key']&&_0x3220a2['data']['newValue'])return _0x50b55f;_0x3220a2=_0x3220a2['next'];}return{'type':'format','content':At(_0x1af10e,'*Remove\x20format:*\x20%0',At(_0x1af10e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2ea14b['oldValue']+')'};}}}}class _e extends _0x687f86{['afterInit'](){const _0x1c6d5a=this['editor'];if(!_0x1c6d5a['plugins']['has']('PageBreakEditing'))return;_0x1c6d5a['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x27330f=_0x1c6d5a['plugins']['get']('TrackChangesEditing'),_0x1f940b=_0x1c6d5a['locale'];_0x27330f['descriptionFactory']['registerElementLabel']('pageBreak',_0x2c146b=>At(_0x1f940b,'ELEMENT_PAGE_BREAK',_0x2c146b));}}class pe extends _0x687f86{['afterInit'](){const _0x5eb04b=this['editor'];if(!_0x5eb04b['plugins']['has']('Paragraph'))return;const _0x3c65f3=_0x5eb04b['locale'],_0x5ad2db=_0x5eb04b['plugins']['get']('TrackChangesEditing');_0x5ad2db['descriptionFactory']['registerElementLabel']('paragraph',_0x4c82d5=>At(_0x3c65f3,'ELEMENT_PARAGRAPH',_0x4c82d5)),_0x5ad2db['enableDefaultAttributesIntegration']('paragraph'),_0x5ad2db['enableCommand']('insertParagraph');const _0x26079e=_0x5ad2db['descriptionFactory'];_0x26079e['registerDescriptionCallback'](_0x3e037c=>{if('insertion'!==_0x3e037c['type'])return;const {start:_0x294d48,end:_0x12c895}=_0x3e037c['getFirstRange']();if(!_0x294d48['isTouching'](_0x12c895)||!_0x294d48['nodeAfter'])return;const _0x49750a=_0x5eb04b['model']['schema'],_0x40fda6=_0x294d48['nodeAfter'];return _0x49750a['isBlock'](_0x40fda6)&&!_0x49750a['isLimit'](_0x40fda6)&&_0x49750a['checkChild'](_0x40fda6,'$text')?{'type':'insertion','content':At(_0x3c65f3,'*Insert:*\x20%0',_0x26079e['getItemLabel'](_0x40fda6,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x910b6f=this['editor'],_0x2c4f95=_0x910b6f['locale'];_0x910b6f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51bb46=>{if('formatBlock'!=_0x51bb46['type'])return;const {data:_0x1a8149}=_0x51bb46;return _0x1a8149&&'paragraph'==_0x1a8149['commandName']?{'type':'format','content':At(_0x2c4f95,'*Change\x20to:*\x20%0',At(_0x2c4f95,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class Le extends _0x687f86{['afterInit'](){const _0x142abb=this['editor'];_0x142abb['commands']['get']('replaceSource')&&_0x142abb['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class Ie extends _0x687f86{['afterInit'](){const _0x1356a0=this['editor'];if(!_0x1356a0['plugins']['has']('RemoveFormatEditing'))return;_0x1356a0['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1368c0=this['editor'];_0x1368c0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4792a5=>{if('formatBlock'!=_0x4792a5['type']&&'formatInline'!=_0x4792a5['type'])return;const {data:_0x4f2985}=_0x4792a5;return _0x4f2985&&'removeFormat'==_0x4f2985['commandName']?{'type':'format','content':At(_0x1368c0['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class be extends _0x687f86{['afterInit'](){const _0x50bd77=this['editor'];if(!_0x50bd77['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x270e71=_0x50bd77['plugins']['get']('TrackChangesEditing');_0x270e71['enableCommand']('goToPreviousRestrictedEditingException'),_0x270e71['enableCommand']('goToNextRestrictedEditingException');const _0x40a4b9=_0x50bd77['plugins']['get']('RestrictedEditingModeEditing');_0x40a4b9['enableCommand']('trackChanges'),_0x40a4b9['enableCommand']('acceptSuggestion'),_0x40a4b9['enableCommand']('discardSuggestion'),_0x40a4b9['enableCommand']('acceptAllSuggestions'),_0x40a4b9['enableCommand']('discardAllSuggestions'),_0x40a4b9['enableCommand']('acceptSelectedSuggestions'),_0x40a4b9['enableCommand']('discardSelectedSuggestions');}}class Ae extends _0x687f86{['afterInit'](){const _0x47e742=this['editor'];if(!_0x47e742['plugins']['has']('ShiftEnter'))return;const _0x2914a4=_0x47e742['plugins']['get']('TrackChangesEditing');_0x2914a4['enableCommand']('shiftEnter'),_0x2914a4['descriptionFactory']['registerElementLabel']('softBreak',_0x3061ce=>At(_0x47e742['locale'],'ELEMENT_LINE_BREAK',_0x3061ce));}}function ke(_0x3632f6,_0x275df6,_0x3ef460){const _0x300cd2=[];for(const _0x2ca54e of _0x275df6['getItems']())_0x2ca54e['hasAttribute'](_0x3632f6)&&_0x300cd2['push'](_0x3ef460['createRangeOn'](_0x2ca54e));return _0x300cd2;}class Ce extends _0x687f86{['afterInit'](){const _0x39bbc2=this['editor'],_0x5d3e40=_0x39bbc2['plugins']['get']('TrackChangesEditing');_0x39bbc2['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x5d3e40['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x29c478=this['editor'],_0x4b8dd7=_0x29c478['model'],_0x50853b=_0x29c478['locale'],_0x36cfaa=_0x29c478['plugins']['get']('TrackChangesEditing'),_0x148024='restrictedEditingException',_0xcb439a=_0x29c478['commands']['get'](_0x148024);_0x36cfaa['enableCommand'](_0x148024,(_0x360808,_0x366337={})=>{const _0x4a0ca5=_0x4b8dd7['document']['selection'];if(_0x4a0ca5['isCollapsed'])return void _0x360808(_0x366337);const _0x2eeb10=void 0x0!==_0x366337['forceValue']?_0x366337['forceValue']:!_0xcb439a['value'];_0x4b8dd7['change'](()=>{const _0x958943=Array['from'](_0x4a0ca5['getRanges']());for(const _0x4249b9 of _0x958943){const _0x3c5709=_0x2eeb10?[_0x4249b9]:ke(_0x148024,_0x4249b9,_0x4b8dd7);for(const _0x491b9a of _0x3c5709)_0x36cfaa['markInlineFormat'](_0x491b9a,{'commandName':_0x148024,'commandParams':[{'forceValue':_0x2eeb10}]});}});}),_0x36cfaa['descriptionFactory']['registerDescriptionCallback'](_0x196c5d=>{if('formatBlock'!=_0x196c5d['type']&&'formatInline'!=_0x196c5d['type'])return;const {data:_0x58c47d}=_0x196c5d;return _0x58c47d&&_0x58c47d['commandName']==_0x148024?_0x58c47d['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x50853b,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x50853b,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x8f81ea=this['editor'],_0xfb80c1=_0x8f81ea['locale'],_0x1f6301=_0x8f81ea['plugins']['get']('TrackChangesEditing'),_0x12aff6='restrictedEditingExceptionBlock',_0x4a25db=this['editor']['commands']['get'](_0x12aff6);_0x1f6301['enableCommand'](_0x12aff6,(_0x5914b0,_0x4a60b0={})=>{const _0x13e073=this['editor']['model']['document']['selection'],_0x482889=_0x4a60b0&&void 0x0!==_0x4a60b0['forceValue']?_0x4a60b0['forceValue']:!_0x4a25db['value'];let _0xf64c25=[];if(_0x482889){const _0x581872=Array['from'](_0x13e073['getSelectedBlocks']())['filter'](_0x3c8adf=>function(_0xfdc387){return!!_0xfdc387['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x3c8adf)||function(_0x2ed5e5,_0x17a6f1){const _0xbaf0c4=_0x17a6f1['createContext'](_0x2ed5e5['parent']);if(!_0x17a6f1['checkChild'](_0xbaf0c4,'restrictedEditingException'))return!0x1;if(!_0x17a6f1['checkChild'](_0xbaf0c4['push']('restrictedEditingException'),_0x2ed5e5))return!0x1;return!0x0;}(_0x3c8adf,this['editor']['model']['schema']));_0xf64c25=Tt(_0x581872,_0x8f81ea['model']);}else{const _0x4dd870=Array['from'](_0x13e073['getSelectedBlocks']())['map'](_0x1b5960=>function(_0x31556b){let _0x224812=_0x31556b;for(;_0x224812['parent'];){if('restrictedEditingException'==_0x224812['parent']['name'])return _0x224812;_0x224812=_0x224812['parent'];}return null;}(_0x1b5960))['filter'](_0x42d70a=>!!_0x42d70a);_0xf64c25=Tt(_0x4dd870,_0x8f81ea['model']);}_0x8f81ea['model']['change'](()=>{for(const _0x390f50 of _0xf64c25)_0x1f6301['markBlockFormat'](_0x390f50,{'commandName':_0x12aff6,'commandParams':[{'forceValue':_0x482889}]});});}),_0x1f6301['descriptionFactory']['registerDescriptionCallback'](_0xfc5c0b=>{const {data:_0x4b8448}=_0xfc5c0b;if(_0x4b8448&&_0x4b8448['commandName']==_0x12aff6)return _0x4b8448['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0xfb80c1,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0xfb80c1,'FORMAT_RESTRICTED_DISABLED')};});}}class ye extends _0x687f86{['afterInit'](){const _0x31b5c6=this['editor'];if(!_0x31b5c6['plugins']['has']('Style')||!_0x31b5c6['plugins']['has']('DataSchema'))return;const _0x10c0f9=_0x31b5c6['plugins']['get']('TrackChangesEditing'),_0x53cf62=_0x31b5c6['locale'],_0x3e3913=_0x31b5c6['config']['get']('style')||{},_0x4b0133=_0x31b5c6['plugins']['get']('GeneralHtmlSupport'),_0x55af90=_0x31b5c6['plugins']['get']('StyleUtils')['normalizeConfig'](_0x31b5c6['plugins']['get']('DataSchema'),_0x3e3913['definitions']);_0x10c0f9['enableDefaultAttributesIntegration']('style');const _0x1bedb6=new Set();for(const _0xafee07 of _0x55af90['block']){const _0xaad418=_0x4b0133['getGhsAttributeNameForElement'](_0xafee07['element']);_0x1bedb6['add'](_0xaad418);}const _0x1ec70c=new Set();for(const _0x86c156 of _0x55af90['inline']){const _0x5d3864=_0x4b0133['getGhsAttributeNameForElement'](_0x86c156['element']);_0x1ec70c['add'](_0x5d3864);for(const _0x2ba355 of _0x86c156['ghsAttributes'])_0x1ec70c['add'](_0x2ba355);}for(const _0x55019c of _0x1bedb6)_0x10c0f9['descriptionFactory']['registerAttributeLabel'](_0x55019c,At(_0x53cf62,'FORMAT_STYLE'));for(const _0x307903 of _0x1ec70c)_0x10c0f9['descriptionFactory']['registerAttributeLabel'](_0x307903,At(_0x53cf62,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e7e58=this['editor'],_0x4651ee=_0x3e7e58['locale'];_0x3e7e58['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ef080=>{if('formatBlock'!=_0x4ef080['type']&&'formatInline'!=_0x4ef080['type'])return;const {data:_0x513640}=_0x4ef080;return _0x513640&&'style'===_0x513640['commandName']?_0x513640['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x4651ee,'*Set\x20format:*\x20%0',_0x513640['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':At(_0x4651ee,'*Remove\x20format:*\x20%0',_0x513640['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ne extends _0x687f86{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x446ba7){super(_0x446ba7),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1be629=this['editor'],_0xd28197=_0x1be629['model']['document']['selection'];if(!_0x1be629['plugins']['has']('TableEditing'))return;const _0x5c0bbf=_0x1be629['locale'],_0x1af319=_0x1be629['plugins']['get']('TrackChangesEditing'),_0x259fc1=_0x1be629['plugins']['get']('TableUtils');_0x1af319['descriptionFactory']['registerElementLabel']('table',_0x46a1fa=>At(_0x5c0bbf,'ELEMENT_TABLE',_0x46a1fa)),this['_setupColumnsRowsFixing'](),_0x1af319['enableCommand']('insertTable'),_0x1af319['enableCommand']('selectTableRow'),_0x1af319['enableCommand']('selectTableColumn');for(const _0x2de350 of['insertTableRowAbove','insertTableRowBelow']){const _0x3f3f29=_0x1be629['commands']['get'](_0x2de350);_0x1af319['enableCommand'](_0x2de350,_0x270f40=>{_0x1be629['model']['change'](_0x324da4=>{_0x270f40();const _0x2136b0='above'===_0x3f3f29['order'],_0x1e04d2=_0x259fc1['getSelectionAffectedTableCells'](_0xd28197),_0x3efe1d=_0x259fc1['getRowIndexes'](_0x1e04d2),_0xd2186f=_0x2136b0?_0x3efe1d['first']-0x1:_0x3efe1d['last']+0x1,_0x12f13d=_0x1e04d2[0x0]['findAncestor']('table'),_0x209dfd=_0x259fc1['createTableWalker'](_0x12f13d,{'startRow':_0xd2186f,'endRow':_0xd2186f}),_0x1a7986=Array['from'](_0x209dfd)['map'](_0x3105b8=>_0x324da4['createRangeOn'](_0x3105b8['cell']));_0x1af319['markMultiRangeInsertion'](_0x1a7986,'tableRow');});});}for(const _0x56a44e of['insertTableColumnLeft','insertTableColumnRight']){const _0x5b416a=_0x1be629['commands']['get'](_0x56a44e);_0x1af319['enableCommand'](_0x56a44e,_0x5da127=>{_0x1be629['model']['change'](_0x1d8741=>{_0x5da127();const _0xca5501='left'===_0x5b416a['order'],_0x4a4217=_0x259fc1['getSelectionAffectedTableCells'](_0xd28197),_0x59bb5a=_0x259fc1['getColumnIndexes'](_0x4a4217),_0x35fd87=_0xca5501?_0x59bb5a['first']-0x1:_0x59bb5a['last']+0x1,_0x2d3ca8=_0x4a4217[0x0]['findAncestor']('table'),_0x4fa1fb=_0x259fc1['createTableWalker'](_0x2d3ca8,{'startRow':0x0,'column':_0x35fd87,'includeAllSlots':!0x1}),_0xe77198=Array['from'](_0x4fa1fb)['map'](_0x48de13=>_0x1d8741['createRangeOn'](_0x48de13['cell']));_0x1af319['markMultiRangeInsertion'](_0xe77198,'tableColumn');});});}for(const _0x2bc393 of['removeTableRow','removeTableColumn']){const _0x3d88c8=_0x2bc393['substr'](0xb),_0x12115d=_0x3d88c8['toLowerCase'](),_0x1490ca=_0x12115d['substr'](0x0,0x3)+'span',_0x178a9d='table'+_0x3d88c8,_0x4b0b2a='min'+_0x3d88c8,_0x47d9e0='max'+_0x3d88c8;_0x1af319['enableCommand'](_0x2bc393,()=>{_0x1be629['model']['change'](_0xbd64c4=>{const _0x5a983c=_0x259fc1['getSelectionAffectedTableCells'](_0xd28197),_0x12750b=_0x5a983c[0x0]['findAncestor']('table');let _0x5cb29b;if('removeTableRow'==_0x2bc393){const _0xea27a1=_0x259fc1['getRowIndexes'](_0x5a983c);_0x5cb29b={'startRow':_0xea27a1['first'],'endRow':_0xea27a1['last'],'includeAllSlots':!0x0};}else{const _0x3ad66b=_0x259fc1['getColumnIndexes'](_0x5a983c);_0x5cb29b={'startColumn':_0x3ad66b['first'],'endColumn':_0x3ad66b['last'],'includeAllSlots':!0x0};}const _0x17e7fa=_0x259fc1['createTableWalker'](_0x12750b,_0x5cb29b),_0x1ab1ca=Array['from'](_0x17e7fa)['map'](({cell:_0x1e2124})=>_0x1e2124),_0x3ec953=Re(_0x1ab1ca['filter'](_0x2272dc=>_0x2272dc['hasAttribute'](_0x1490ca))),_0x31ef93=Re(_0x1ab1ca['filter'](_0x1d11ce=>!_0x1d11ce['hasAttribute'](_0x1490ca)))['map'](_0x1f267e=>_0xbd64c4['createRangeOn'](_0x1f267e)),_0x61428c=_0x1af319['markMultiRangeDeletion'](_0x31ef93,_0x178a9d);if(_0x61428c&&('tableRow'==_0x61428c['subType']||'tableColumn'==_0x61428c['subType'])){const _0x102910=this['_getSuggestionCoords'](_0x61428c);for(const _0x2eb52e of _0x3ec953){const _0xdd433b=_0xbd64c4['createRangeOn'](_0x2eb52e),_0x49ac10=_0x259fc1['getCellLocation'](_0x2eb52e),_0x3dfdb9=_0x2eb52e['getAttribute'](_0x1490ca)-0x1,_0x1f9842=_0x102910[_0x4b0b2a],_0x22c4f0=_0x102910[_0x47d9e0];_0x1f9842<=_0x49ac10[_0x12115d]&&_0x49ac10[_0x12115d]+_0x3dfdb9<=_0x22c4f0&&_0x61428c['addRange'](_0xdd433b);}}});});}function _0x5ca429(_0x59023f){const _0x327eed=Array['from'](_0xd28197['getRanges']())['map'](_0x216d3e=>_0x2725ec['fromRange'](_0x216d3e));_0x1be629['model']['change'](_0x43ad26=>{const _0x25eba9=_0x43ad26['batch'];_0x59023f=_0x59023f['filter'](_0x31c331=>'$graveyard'!=_0x31c331['root']['rootName']),_0x43ad26['setSelection'](_0x59023f),_0x1be629['commands']['get']('removeTableRow')['refresh'](),_0x1be629['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1be629['model']['enqueueChange'](()=>{_0x1be629['model']['enqueueChange'](_0x25eba9,_0x1d7fcd=>{const _0x2b3530=_0x327eed['filter'](_0x29a7ff=>'$graveyard'!=_0x29a7ff['root']['rootName']);_0x2b3530['length']>0x0&&_0x1d7fcd['setSelection'](_0x2b3530);for(const _0x32d055 of _0x327eed)_0x32d055['detach']();});});});}function _0xa48191(_0x2db895){_0x1be629['model']['change'](_0x540785=>{const _0x5b3a23=Array['from'](_0xd28197['getRanges']())['map'](_0x57deed=>_0x2725ec['fromRange'](_0x57deed)),_0x2110e6=[];for(const _0x23df8e of _0x2db895)for(const _0x402f7a of _0x23df8e['getItems']({'shallow':!0x0}))_0x2110e6['push'](_0x402f7a);for(const _0x2c2739 of _0x2110e6)'$graveyard'!=_0x2c2739['root']['rootName']&&(_0x540785['setSelection'](_0x540785['createPositionAt'](_0x2c2739,0x0)),_0x1be629['commands']['get']('removeTableColumn')['refresh'](),_0x1be629['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x29a4fa=_0x5b3a23['filter'](_0x57a11a=>'$graveyard'!=_0x57a11a['root']['rootName']);_0x29a4fa['length']>0x0&&_0x540785['setSelection'](_0x29a4fa);for(const _0xadbf0e of _0x5b3a23)_0xadbf0e['detach']();});}function _0x36c735(_0x22211b,_0x51a51e){return _0x51a51e['every'](_0x9f64cc=>_0x22211b['some'](_0x20a0c5=>_0x20a0c5['end']['isEqual'](_0x9f64cc['start'])||_0x9f64cc['end']['isEqual'](_0x20a0c5['start'])));}function _0x10cdb4(_0x2091b6,_0x16a4ae){return!_0x2091b6['some'](_0x301283=>_0x16a4ae['some'](_0xfe4516=>_0x301283['isIntersecting'](_0xfe4516)))&&_0x2091b6['some'](_0x45a1b0=>_0x16a4ae['some'](_0x20c4e3=>_0x45a1b0['end']['isTouching'](_0x20c4e3['start'])));}_0x1af319['descriptionFactory']['registerDescriptionCallback'](_0x5bc42f=>{if('insertion'!=_0x5bc42f['type']&&'deletion'!=_0x5bc42f['type'])return;const _0x4813ca=_0x5bc42f['getContainedElement']();if(null!=_0x4813ca&&_0x4813ca['is']('element','table')){if('insertion'==_0x5bc42f['type']){const _0x280f41=_0x5bc42f['getItems']()['filter'](_0x284d3b=>_0x284d3b['is']('$textProxy'))['map'](_0x5b6695=>_0x5b6695['data']);if(_0x280f41['length'])return{'type':'insertion','content':At(_0x5c0bbf,'*Insert:*\x20%0',At(_0x5c0bbf,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x280f41['join']('\x20')+'\x22'))};}if('deletion'==_0x5bc42f['type']){const _0x4e9cac=_0x5bc42f['getItems']()['filter'](_0x2fc28e=>_0x2fc28e['is']('$textProxy'))['map'](_0x4ba275=>_0x4ba275['data']);if(_0x4e9cac['length'])return{'type':'deletion','content':At(_0x5c0bbf,'*Remove:*\x20%0',At(_0x5c0bbf,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4e9cac['join']('\x20')+'\x22'))};}}}),_0x1af319['descriptionFactory']['registerDescriptionCallback'](_0x12c8f8=>{if('tableRow'==_0x12c8f8['subType']){const _0x386a8a=_0x12c8f8['getItems']()['filter'](_0x186389=>_0x186389['is']('$textProxy'))['map'](_0x114634=>_0x114634['data']),_0x5a5c3b=this['_getSuggestionCoords'](_0x12c8f8),_0x30bffc=_0x5a5c3b['maxRow']-_0x5a5c3b['minRow']+0x1;if('insertion'==_0x12c8f8['type'])return _0x386a8a['length']?{'type':'insertion','content':At(_0x5c0bbf,'*Insert:*\x20%0',At(_0x5c0bbf,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x30bffc,'\x22'+_0x386a8a['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x5c0bbf,'*Insert:*\x20%0',At(_0x5c0bbf,'ELEMENT_TABLE_ROW',_0x30bffc))};if('deletion'==_0x12c8f8['type'])return _0x386a8a['length']?{'type':'deletion','content':At(_0x5c0bbf,'*Remove:*\x20%0',At(_0x5c0bbf,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x30bffc,'\x22'+_0x386a8a['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x5c0bbf,'*Remove:*\x20%0',At(_0x5c0bbf,'ELEMENT_TABLE_ROW',_0x30bffc))};}if('tableColumn'==_0x12c8f8['subType']){const _0x599e1c=_0x12c8f8['getItems']()['filter'](_0x9740e=>_0x9740e['is']('$textProxy'))['map'](_0x332b7c=>_0x332b7c['data']),_0x5a519b=this['_getSuggestionCoords'](_0x12c8f8),_0x8ab2a=_0x5a519b['maxColumn']-_0x5a519b['minColumn']+0x1;if('insertion'==_0x12c8f8['type'])return _0x599e1c['length']?{'type':'insertion','content':At(_0x5c0bbf,'*Insert:*\x20%0',At(_0x5c0bbf,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x8ab2a,'\x22'+_0x599e1c['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x5c0bbf,'*Insert:*\x20%0',At(_0x5c0bbf,'ELEMENT_TABLE_COLUMN',_0x8ab2a))};if('deletion'==_0x12c8f8['type'])return _0x599e1c['length']?{'type':'deletion','content':At(_0x5c0bbf,'*Remove:*\x20%0',At(_0x5c0bbf,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x8ab2a,'\x22'+_0x599e1c['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x5c0bbf,'*Remove:*\x20%0',At(_0x5c0bbf,'ELEMENT_TABLE_COLUMN',_0x8ab2a))};}}),_0x1af319['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5ca429),_0x1af319['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5ca429),_0x1af319['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xa48191),_0x1af319['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xa48191),_0x1af319['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x36c735),_0x1af319['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x36c735),_0x1af319['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x10cdb4),_0x1af319['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x10cdb4);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1ebd66=this['editor'],_0x29abe3=_0x1ebd66['model']['document']['selection'];return(_0xe83914,_0x583ab1)=>{_0x1ebd66['model']['change'](_0x37e8c8=>{const {commandName:_0x31170b,commandParams:_0x4855e2}=_0x583ab1;let _0x229a07=_0xe83914[0x0]['end']['nodeBefore'];_0x4855e2&&_0x4855e2[0x0]&&!0x1===_0x4855e2[0x0]['forceValue']&&(_0x229a07=_0xe83914[0x0]['start']['nodeAfter']);const _0xf846a9=_0x37e8c8['createRangeIn'](_0x229a07);if('$graveyard'==_0xf846a9['root']['rootName'])return;const _0x48e67e=Array['from'](_0x29abe3['getRanges']())['map'](_0x50072e=>_0x2725ec['fromRange'](_0x50072e));_0x37e8c8['setSelection'](_0xf846a9),_0x1ebd66['commands']['get'](_0x31170b)['refresh'](),_0x4855e2['push']({'forceDefaultExecution':!0x0}),_0x1ebd66['execute'](_0x31170b,..._0x4855e2);const _0x113f56=_0x48e67e['filter'](_0x36dd61=>'$graveyard'!=_0x36dd61['root']['rootName']);_0x113f56['length']>0x0&&_0x37e8c8['setSelection'](_0x113f56);for(const _0x16c1f1 of _0x48e67e)_0x16c1f1['detach']();});};}['_getCoordsForCells'](_0x31793e){const _0x503487=this['editor']['plugins']['get']('TableUtils');let _0x5290db=Number['MAX_SAFE_INTEGER'],_0x5a8961=Number['MIN_SAFE_INTEGER'],_0x500051=Number['MAX_SAFE_INTEGER'],_0x40a0f3=Number['MIN_SAFE_INTEGER'];for(const _0x56bd13 of _0x31793e){if('$graveyard'==_0x56bd13['root']['rootName'])continue;const {row:_0x17e24d,column:_0x164958}=_0x503487['getCellLocation'](_0x56bd13),_0x4c7df3=_0x56bd13['hasAttribute']('rowspan')?_0x56bd13['getAttribute']('rowspan')-0x1:0x0,_0x1bc8ed=_0x56bd13['hasAttribute']('colspan')?_0x56bd13['getAttribute']('colspan')-0x1:0x0;_0x5290db=_0x17e24d<_0x5290db?_0x17e24d:_0x5290db,_0x5a8961=_0x17e24d+_0x4c7df3>_0x5a8961?_0x17e24d+_0x4c7df3:_0x5a8961,_0x500051=_0x164958<_0x500051?_0x164958:_0x500051,_0x40a0f3=_0x164958+_0x1bc8ed>_0x40a0f3?_0x164958+_0x1bc8ed:_0x40a0f3;}return{'minRow':_0x5290db,'maxRow':_0x5a8961,'minColumn':_0x500051,'maxColumn':_0x40a0f3};}['_setupColumnsRowsFixing'](){const _0x3cce18=this['editor'],_0x39c627=_0x3cce18['plugins']['get']('TrackChangesEditing'),_0x1dba23=_0x3cce18['plugins']['get']('TableUtils');_0x3cce18['model']['document']['on']('change:data',()=>{const _0x3b50a7=Array['from'](_0x3cce18['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x560a5e,data:_0x325516}of _0x3b50a7){const {group:_0x4cc5f6,id:_0x2770e5,subType:_0x6b0e2d}=_0x116f26(_0x560a5e);if('suggestion'!=_0x4cc5f6)continue;if(null!=_0x325516['oldRange'])continue;const _0x580d16=_0x39c627['getSuggestion'](_0x2770e5);this['_tablePostFixingSubtypes']['includes'](_0x6b0e2d)&&this['_tableSuggestions']['add'](_0x580d16);}},{'priority':'low'});const _0x4f9291=(_0x17ffcb,_0xf50b09)=>{let _0x16b035=!0x1;const _0x1a8a07=_0xf50b09['createRangeOn'](_0x17ffcb),_0x598711=_0x17ffcb['findAncestor']('table'),_0x4b2181=_0x1dba23['getCellLocation'](_0x17ffcb);for(const _0x2aee7a of this['_tableSuggestions']){const _0x4aefa3=_0x2aee7a['subType'],_0x9026c=_0x4aefa3['startsWith']('tablePaste'),_0x4e4422=_0x4aefa3['substr'](_0x9026c?0xa:0x5),_0x1fa9a1=_0x4e4422['toLowerCase'](),_0x4db630=_0x1fa9a1['substr'](0x0,0x3)+'span',_0xaf184c='min'+_0x4e4422,_0x2b2325='max'+_0x4e4422;if(!_0x2aee7a['isInContent'])continue;if(_0x598711!=_0x2aee7a['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2aee7a['isIntersectingWithRange'](_0x1a8a07))continue;const _0x3d876d=_0x17ffcb['hasAttribute'](_0x4db630)?_0x17ffcb['getAttribute'](_0x4db630)-0x1:0x0,_0x173827=this['_getSuggestionCoords'](_0x2aee7a),_0x19c9d6=_0x173827[_0xaf184c],_0x152811=_0x173827[_0x2b2325];_0x19c9d6<=_0x4b2181[_0x1fa9a1]&&_0x4b2181[_0x1fa9a1]+_0x3d876d<=_0x152811&&(_0x2aee7a['addRange'](_0x1a8a07),_0x16b035=!0x0);}return _0x16b035;};_0x3cce18['model']['document']['registerPostFixer'](_0x345f19=>{let _0x407f81=!0x1;for(const _0x51b635 of _0x3cce18['model']['document']['differ']['getChanges']())if('insert'==_0x51b635['type']){if('tableRow'==_0x51b635['name']){for(const _0x278fc0 of _0x51b635['position']['nodeAfter']['getChildren']())_0x407f81=_0x407f81||_0x4f9291(_0x278fc0,_0x345f19);}else'tableCell'==_0x51b635['name']&&(_0x407f81=_0x407f81||_0x4f9291(_0x51b635['position']['nodeAfter'],_0x345f19));}return _0x407f81;});}['_getSuggestionCoords'](_0x1bd27b){return this['_getCoordsForCells'](_0x1bd27b['getRanges']()['map'](_0x1bdbad=>_0x1bdbad['start']['nodeAfter']));}}function Re(_0x3972ef){return Array['from'](new Set(_0x3972ef)['values']());}class Se extends _0x687f86{static get['requires'](){return[Ne];}['afterInit'](){const _0x17c018=this['editor'],_0x64795b=_0x17c018['model']['document']['selection'],_0xfcbf68=_0x17c018['locale'];if(!_0x17c018['plugins']['has']('TableEditing'))return;const _0x3886bd=_0x17c018['plugins']['get']('TrackChangesEditing'),_0x58303c=_0x17c018['plugins']['get']('TableUtils'),_0x1f0344=_0x17c018['plugins']['get'](Ne);_0x1f0344['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3886bd['enableCommand']('mergeTableCells',()=>{const _0x1356c0=_0x58303c['getSelectionAffectedTableCells'](_0x17c018['model']['document']['selection']);_0x17c018['model']['change'](()=>{_0x3886bd['markMultiRangeBlockFormat'](_0x1356c0,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x17c018['commands']['get']('mergeTableCells')['on']('execute',(_0x477e0f,_0xad7c81)=>{_0x17c018['commands']['get']('trackChanges')['value']&&(_0xad7c81['length']>0x0&&_0xad7c81[_0xad7c81['length']-0x1]&&_0xad7c81[_0xad7c81['length']-0x1]['forceDefaultExecution']||_0x3886bd['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x477e0f['stop']());},{'priority':'highest'});for(const _0x12855c of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5c8fd3=_0x17c018['commands']['get'](_0x12855c);_0x3886bd['enableCommand'](_0x12855c,()=>{const _0x341b44=_0x17c018['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x35e8f1=>_0x35e8f1['is']('element','tableCell')),_0x847e6a=_0x5c8fd3['value'];_0x17c018['model']['change'](()=>{_0x3886bd['markMultiRangeBlockFormat']([_0x341b44,_0x847e6a],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3a8bc6 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x176461=_0x17c018['commands']['get'](_0x3a8bc6);_0x3886bd['enableCommand'](_0x3a8bc6,()=>{const _0x1f7522=_0x58303c['getSelectionAffectedTableCells'](_0x17c018['model']['document']['selection'])[0x0],_0x44cf73=_0x1f7522['findAncestor']('table'),{column:_0x4def1f,row:_0x45502c}=_0x58303c['getCellLocation'](_0x1f7522);let _0x32a263=[];if('horizontally'==_0x176461['direction']){const _0x47e801=_0x58303c['createTableWalker'](_0x44cf73,{'startRow':_0x45502c,'endRow':_0x45502c,'includeAllSlots':!0x0});_0x32a263=Array['from'](_0x47e801)['map'](_0x42d4e8=>_0x42d4e8['cell']);}else{const _0x59c842=_0x58303c['createTableWalker'](_0x44cf73,{'column':_0x4def1f,'includeAllSlots':!0x0});_0x32a263=Array['from'](_0x59c842)['map'](_0x7fb9de=>_0x7fb9de['cell']);}_0x17c018['model']['change'](_0x5a64e3=>{_0x3886bd['markBlockFormat'](_0x5a64e3['createRangeOn'](_0x1f7522),{'commandName':_0x3a8bc6,'commandParams':[]},_0x32a263,_0x3a8bc6);});});}_0x3886bd['descriptionFactory']['registerDescriptionCallback'](_0xd4aec7=>{if('formatBlock'!=_0xd4aec7['type']&&'formatInline'!=_0xd4aec7['type'])return;const {data:_0x4cb5f8}=_0xd4aec7;return _0x4cb5f8&&'mergeTableCells'==_0x4cb5f8['commandName']?{'type':'format','content':At(_0xfcbf68,'*Merge\x20cells*')}:void 0x0;}),_0x3886bd['descriptionFactory']['registerDescriptionCallback'](_0xed342c=>{if('formatBlock'!=_0xed342c['type']&&'formatInline'!=_0xed342c['type'])return;const {data:_0x324066}=_0xed342c;return _0x324066?'splitTableCellVertically'==_0x324066['commandName']?{'type':'format','content':At(_0xfcbf68,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x324066['commandName']?{'type':'format','content':At(_0xfcbf68,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1625b2=_0x1f0344['_acceptFormatSuggestionCallbackFactory']();for(const _0x47b996 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3886bd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x47b996,'accept',_0x1625b2);for(const _0x2c65a8 of['splitTableCellVertically','splitTableCellHorizontally'])_0x3886bd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2c65a8,'accept',_0x1625b2);_0x3886bd['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x580a20=>{_0x17c018['model']['change'](_0x4cd1b3=>{const _0x3a982f=Array['from'](_0x64795b['getRanges']())['map'](_0x2c005c=>_0x2725ec['fromRange'](_0x2c005c));_0x4cd1b3['setSelection'](_0x580a20),_0x17c018['commands']['get']('mergeTableCells')['refresh'](),_0x17c018['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5be58f=_0x3a982f['filter'](_0x3acc08=>'$graveyard'!=_0x3acc08['root']['rootName']);_0x5be58f['length']>0x0&&_0x4cd1b3['setSelection'](_0x5be58f);for(const _0x4ae4af of _0x3a982f)_0x4ae4af['detach']();});});for(const _0x13ec64 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4d99ec=_0x17c018['commands']['get'](_0x13ec64);_0x4d99ec['on']('set:isEnabled',(_0x373e17,_0x22b151,_0x48b3d3)=>{if(_0x48b3d3){const _0x53ac8b=_0x17c018['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x337b24=>_0x337b24['is']('element','tableCell'));this['_areMergableCells'](_0x4d99ec['value'],_0x53ac8b)||(_0x373e17['return']=!0x1,_0x373e17['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x329a05=this['editor']['commands']['get']('mergeTableCells'),_0x2bd124=this['editor']['plugins']['get']('TableUtils');if(!_0x329a05['isEnabled'])return!0x1;const _0x3be723=_0x2bd124['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x31fb10 of _0x3be723)for(const _0x2fa87f of _0x3be723)if(_0x31fb10!=_0x2fa87f&&!this['_areMergableCells'](_0x31fb10,_0x2fa87f))return!0x1;return!0x0;}['_areMergableCells'](_0x1f87c9,_0x939e27){const _0x89684a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x109b94=this['editor']['model']['createRangeOn'](_0x1f87c9),_0x3c4f53=this['editor']['model']['createRangeOn'](_0x939e27),_0xbc8112=new Set(),_0x4aaf56=new Set();for(const _0x1f8eaa of _0x89684a['getSuggestions']())if(('insertion'==_0x1f8eaa['type']||'deletion'==_0x1f8eaa['type']||'mergeTableCells'==_0x1f8eaa['subType'])&&_0x1f8eaa['isInContent']){for(const _0x2ee7b9 of _0x1f8eaa['getRanges']())_0x2ee7b9['containsRange'](_0x109b94,!0x0)&&_0xbc8112['add'](_0x1f8eaa['type']+':'+_0x1f8eaa['author']['id']),_0x2ee7b9['containsRange'](_0x3c4f53,!0x0)&&_0x4aaf56['add'](_0x1f8eaa['type']+':'+_0x1f8eaa['author']['id']);}if(_0xbc8112['size']!=_0x4aaf56['size'])return!0x1;for(const _0x2983d4 of _0xbc8112)if(!_0x4aaf56['has'](_0x2983d4))return!0x1;return!0x0;}}class Me extends _0x687f86{static get['requires'](){return[Ne];}['afterInit'](){const _0x4de111=this['editor'];if(!_0x4de111['plugins']['has']('TableEditing'))return;const _0x5e4cdd=_0x4de111['locale'],_0x5ba954=_0x4de111['plugins']['get']('TrackChangesEditing');_0x5ba954['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5ba954['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5ba954['descriptionFactory']['registerAttributeLabel']('headingRows',At(_0x5e4cdd,'FORMAT_HEADER_ROW')),_0x5ba954['descriptionFactory']['registerAttributeLabel']('headingColumns',At(_0x5e4cdd,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x111ce7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b89df=this['editor']['plugins']['get'](Ne)['_acceptFormatSuggestionCallbackFactory']();_0x111ce7['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5b89df),_0x111ce7['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5b89df),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x5d164a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1034b0=this['editor']['plugins']['get']('TableUtils');function _0x592afb({showActiveMarker:_0x8c23f9=!0x0,setDataAttribute:_0x97cfaf=!0x0}={}){return(_0x40f370,_0x685732,_0x5e44ad)=>{const {type:_0x563491,id:_0x21df56}=_0x116f26(_0x685732['markerName']);if(!_0x5d164a['hasSuggestion'](_0x21df56))return;const _0x320112=_0x5d164a['getSuggestion'](_0x21df56),_0x5ad293=_0x320112['data'];if('formatBlock'!=_0x320112['type']||!_0x5ad293||'setTableColumnHeader'!=_0x5ad293['commandName'])return;if(_0x685732['item'])return void _0x40f370['stop']();if(!_0x5e44ad['consumable']['consume'](_0x685732['markerRange'],_0x40f370['name']))return;const _0x6c81ef=_0x685732['markerRange']['start']['nodeAfter'],_0x1015e5=_0x685732['markerRange']['end']['nodeBefore'],_0x15c15d=_0x6c81ef['parent']['parent'],{column:_0x228dc4}=_0x1034b0['getCellLocation'](_0x6c81ef),{column:_0x1da12b}=_0x1034b0['getCellLocation'](_0x1015e5);for(let _0x4e6bd5=_0x228dc4;_0x4e6bd5<=_0x1da12b;_0x4e6bd5++){const _0x5c1441=_0x1034b0['createTableWalker'](_0x15c15d,{'column':_0x4e6bd5,'includeAllSlots':!0x1});for(const _0x2e3c09 of _0x5c1441){const _0x496194=_0x2e3c09['cell'],_0xbc292c=_0x5e44ad['mapper']['toViewElement'](_0x496194);_0x5e44ad['writer']['addClass']('ck-suggestion-marker-'+_0x563491,_0xbc292c),_0x97cfaf&&_0x5e44ad['writer']['setAttribute']('data-suggestion',_0x21df56,_0xbc292c),_0x5e44ad['mapper']['bindElementToMarker'](_0xbc292c,_0x685732['markerName']),_0x8c23f9&&(_0x5d164a['activeMarkers']['includes'](_0x685732['markerName'])?_0x5e44ad['writer']['addClass']('ck-suggestion-marker--active',_0xbc292c):_0x5e44ad['writer']['removeClass']('ck-suggestion-marker--active',_0xbc292c));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x592afb(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xb6d88f,_0x1a826e,_0xb83397)=>{_0xb83397['options']['showSuggestionHighlights']&&_0x592afb({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xb6d88f,_0x1a826e,_0xb83397);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x51125b,_0x169ee7,_0x16c90e)=>{const {type:_0x4556b5,id:_0x4966c7}=_0x116f26(_0x169ee7['markerName']);if(!_0x5d164a['hasSuggestion'](_0x4966c7))return;const _0x3c3b36=_0x5d164a['getSuggestion'](_0x4966c7),_0x436879=_0x3c3b36['data'];if('formatBlock'!=_0x3c3b36['type']||!_0x436879||'setTableColumnHeader'!=_0x436879['commandName'])return;const _0x28d89a=_0x16c90e['mapper']['markerNameToElements'](_0x169ee7['markerName']);if(_0x28d89a){for(const _0x2ac73e of _0x28d89a)_0x16c90e['writer']['removeClass']('ck-suggestion-marker-'+_0x4556b5,_0x2ac73e),_0x16c90e['writer']['removeClass']('ck-suggestion-marker--active',_0x2ac73e),_0x16c90e['writer']['removeAttribute']('data-suggestion',_0x2ac73e),_0x16c90e['mapper']['unbindElementFromMarkerName'](_0x2ac73e,_0x169ee7['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x4b4ad8=this['editor'],_0x53f856=_0x4b4ad8['locale'];function _0x4272b3(_0x53c6d6){return{'type':'format','content':At(_0x53f856,'*Format:*\x20%0',_0x53c6d6)};}_0x4b4ad8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10f780=>{if('formatBlock'!=_0x10f780['type'])return;const {data:_0xc5a8c3}=_0x10f780;if(_0xc5a8c3){if('setTableRowHeader'==_0xc5a8c3['commandName']){const _0x57e47c=_0xc5a8c3['commandParams'][0x0]['forceValue'];return _0x4272b3(At(_0x53f856,_0x57e47c?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xc5a8c3['commandName']){const _0x3612e0=_0xc5a8c3['commandParams'][0x0]['forceValue'];return _0x4272b3(At(_0x53f856,_0x3612e0?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Oe extends _0x687f86{static get['requires'](){return[Ne];}['afterInit'](){const _0x19ede4=this['editor'];if(!_0x19ede4['plugins']['has']('TableEditing')||!_0x19ede4['config']['get']('table.enableFooters'))return;const _0x22f186=_0x19ede4['locale'],_0x592b13=_0x19ede4['plugins']['get']('TrackChangesEditing');_0x592b13['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x592b13['descriptionFactory']['registerAttributeLabel']('footerRows',At(_0x22f186,'FORMAT_FOOTER_ROW'));}}class we extends _0x687f86{['afterInit'](){const _0x51a5cf=this['editor'],_0xa2dc76=_0x51a5cf['locale'],_0x48f1de=_0x51a5cf['plugins']['get']('TrackChangesEditing');function _0x67cbf3(_0x333e4a){return{'type':'format','content':''+At(_0xa2dc76,'*Set\x20table\x20type:*\x20%0',_0x333e4a)};}_0x51a5cf['plugins']['has']('TableLayout')&&(_0x48f1de['enableCommand']('insertTableLayout'),_0x48f1de['enableDefaultAttributesIntegration']('tableType'),_0x48f1de['descriptionFactory']['registerElementLabel'](_0x5e20b7=>_0x5e20b7['is']('element','table')&&'layout'===_0x5e20b7['getAttribute']('tableType'),_0x5bc13d=>At(_0xa2dc76,'ELEMENT_LAYOUT_TABLE',_0x5bc13d)),_0x48f1de['descriptionFactory']['registerDescriptionCallback'](_0x728646=>{const {data:_0x43a35f}=_0x728646;if(_0x43a35f&&'tableType'==_0x43a35f['key'])switch(_0x43a35f['newValue']){case'layout':return _0x67cbf3(At(_0xa2dc76,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x67cbf3(At(_0xa2dc76,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Fe=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Be['map'](_0x383d81=>[_0x383d81,null]));class De extends _0x687f86{static get['requires'](){return[Ne];}['afterInit'](){const _0x530ebb=this['editor'];if(!_0x530ebb['plugins']['has']('TableClipboard'))return;const _0x5ee8ab=_0x530ebb['plugins']['get']('TrackChangesEditing'),_0x590a19=_0x530ebb['plugins']['get']('TableUtils'),_0x440c56=_0x530ebb['plugins']['get'](Ne),_0x5f18e8=_0x530ebb['plugins']['get']('TableClipboard'),_0x18ff5e=_0x530ebb['plugins']['get']('TableSelection'),_0x610b55=_0x530ebb['plugins']['get'](ut);_0x440c56['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x530ebb['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x530ebb['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x210fcd=null,_0xb51b4d=!0x1;_0x610b55['on']('contentInsertion',(_0x8c76a1,_0x24a523)=>{_0xb51b4d='paste'===_0x24a523['method'];}),_0x530ebb['model']['on']('insertContent',(_0x3dfa5d,_0x2827bb)=>{if(!_0xb51b4d&&null===_0x18ff5e['getSelectedTableCells']())return;const [_0x3d8de1,_0x295d6a]=_0x2827bb,_0x45c2ac=_0x2827bb[_0x2827bb['length']-0x1];_0x45c2ac&&_0x45c2ac['forceDefaultExecution']||_0x5ee8ab['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x53bd06,_0x419b1e,_0x36be74,_0x457d62,_0x5b7281){if(_0x419b1e&&!_0x419b1e['is']('documentSelection'))return!0x1;const _0x3c5cfc=_0x5b7281['getTableIfOnlyTableInContent'](_0x53bd06,_0x36be74);if(!_0x3c5cfc||!xe(_0x3c5cfc,void 0x0,_0x457d62))return!0x1;const _0x53877f=_0x457d62['getSelectionAffectedTableCells'](_0x36be74['document']['selection']);if(!_0x53877f['length'])return!0x1;const _0x2a4b68=_0x53877f[0x0]['findAncestor']('table'),_0x5cca0b=_0x457d62['getRowIndexes'](_0x53877f),_0x3cf814=_0x457d62['getColumnIndexes'](_0x53877f),_0xe0dfa6={'startRow':_0x5cca0b['first'],'endRow':_0x5cca0b['last'],'startColumn':_0x3cf814['first'],'endColumn':_0x3cf814['last']};return 0x1==_0x53877f['length']&&(_0xe0dfa6['endRow']+=_0x457d62['getRows'](_0x3c5cfc)-0x1,_0xe0dfa6['endColumn']+=_0x457d62['getColumns'](_0x3c5cfc)-0x1),xe(_0x2a4b68,_0xe0dfa6,_0x457d62);}(_0x3d8de1,_0x295d6a,_0x530ebb['model'],_0x590a19,_0x5f18e8)&&(_0x3dfa5d['stop'](),_0x210fcd={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x530ebb['model']['change'](()=>{_0x530ebb['model']['insertContent'](_0x2827bb[0x0],_0x2827bb[0x1],_0x2827bb[0x2],{'forceDefaultExecution':!0x0});const _0x599d99=_0x41141f(),{rowInsertionRanges:_0x5e371f,columnInsertionRanges:_0x70802d,insertionRanges:_0x9fdb78,deletionRanges:_0x38ba14,cells:_0x25cb94}=_0x210fcd;_0x5e371f['length']&&_0x5ee8ab['markMultiRangeInsertion'](_0x5e371f,'tablePasteRow',{'tablePasteChainId':_0x599d99}),_0x70802d['length']&&_0x5ee8ab['markMultiRangeInsertion'](_0x70802d,'tablePasteColumn',{'tablePasteChainId':_0x599d99}),_0x9fdb78['length']&&(_0x5ee8ab['markMultiRangeInsertion'](_0x9fdb78,'tablePaste',{'tablePasteChainId':_0x599d99,'skipNestingCheck':!0x0}),_0x9fdb78['forEach'](_0x3d060a=>_0x3d060a['detach']?.())),_0x38ba14['length']&&(_0x5ee8ab['markMultiRangeDeletion'](_0x38ba14,'tablePaste',{'tablePasteChainId':_0x599d99,'skipNestingCheck':!0x0}),_0x38ba14['forEach'](_0x23464a=>_0x23464a['detach']?.()));const _0x525e39=_0x5ee8ab['markMultiRangeBlockFormat'](_0x25cb94['map'](({element:_0x583ae1})=>_0x583ae1),{'formatGroupId':_0x41141f()},[],'tablePasteCell',{'tablePasteChainId':_0x599d99});if(_0x525e39){const _0x2813ee=_0x525e39['getMarkers'](),_0x53e22e=[];for(const {element:_0x39a9b3,attributes:_0x22eed4}of _0x25cb94){if(!_0x22eed4)continue;const _0x1ef164=_0x530ebb['model']['createRangeOn'](_0x39a9b3),_0x54a88d=_0x2813ee['find'](_0x3595fe=>_0x3595fe['getRange']()['isEqual'](_0x1ef164));_0x54a88d&&_0x53e22e['push']([_0x54a88d['name'],_0x22eed4]);}_0x53e22e['length']&&_0x525e39['setAttribute']('markerAttributes',Object['fromEntries'](_0x53e22e));}_0x210fcd=null;}));},{'priority':_0x1e3508['high']+0xa}),_0x610b55['on']('contentInsertion',()=>{_0xb51b4d=!0x1;},{'priority':'lowest'}),_0x530ebb['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4beddf,_0x21a5ac)=>{const [_0x12014c,_0x4368e7,,_0x3fc7c8]=_0x21a5ac;if(!_0x210fcd)return;_0x4beddf['stop']();const _0x10acfc=_0x12014c['cell'],_0x4e8dc3=_0x4368e7,_0xfa6396=ve(_0x10acfc),_0xa04b2c=ve(_0x4e8dc3);_0x4beddf['return']=_0x10acfc;let _0x5cc7dc=null,_0x420e4f=null;if(_0xa04b2c||_0xfa6396){if(_0xfa6396&&!_0xa04b2c){_0x3fc7c8['remove'](_0x10acfc['getChild'](0x0));for(const _0x1c5b7e of Array['from'](_0x4e8dc3['getChildren']()))_0x3fc7c8['insert'](_0x1c5b7e,_0x10acfc,'end');const _0x448310=_0x210fcd['rowInsertionIndexes']['includes'](_0x12014c['row']),_0x3b0866=_0x210fcd['columnInsertionIndexes']['includes'](_0x12014c['column']);_0x448310||_0x3b0866||(_0x5cc7dc=_0x2725ec['fromRange'](_0x3fc7c8['createRangeIn'](_0x10acfc)));}else _0xa04b2c&&!_0xfa6396&&(_0x420e4f=_0x3fc7c8['createRangeIn'](_0x10acfc));}else{const _0x2edf5a=_0x3fc7c8['createElement']('tableCellSuggestion'),_0x4f9fb2=_0x3fc7c8['createElement']('tableCellSuggestion');_0x3fc7c8['wrap'](_0x3fc7c8['createRangeIn'](_0x10acfc),_0x4f9fb2),_0x3fc7c8['insert'](_0x2edf5a,_0x10acfc,0x0);for(const _0x139fe8 of Array['from'](_0x4e8dc3['getChildren']()))_0x3fc7c8['insert'](_0x139fe8,_0x2edf5a,'end');_0x5cc7dc=_0x2725ec['fromRange'](_0x3fc7c8['createRangeOn'](_0x2edf5a)),_0x420e4f=_0x2725ec['fromRange'](_0x3fc7c8['createRangeOn'](_0x4f9fb2));}const _0xdecc35=Array['from'](_0x4e8dc3['getAttributes']())['filter'](([_0x1d2569])=>Be['includes'](_0x1d2569));_0x210fcd['cells']['push']({'element':_0x10acfc,'attributes':_0xdecc35['length']?Object['fromEntries'](_0xdecc35):null}),_0x5cc7dc&&_0x210fcd['insertionRanges']['push'](_0x5cc7dc),_0x420e4f&&_0x210fcd['deletionRanges']['push'](_0x420e4f);},{'priority':'high'}),_0x590a19['on']('insertColumns',(_0x1e6246,_0x292a60)=>{const [_0x456199,_0x7ebec4={}]=_0x292a60;if(!_0x210fcd)return;const _0x272700=_0x7ebec4['at']||0x0,_0x108bf2=_0x7ebec4['columns']||0x1;_0x210fcd['columnInsertionIndexes']=new Array(_0x108bf2)['fill'](_0x272700)['map']((_0x41c3fa,_0xc614)=>_0x41c3fa+_0xc614);for(const {cell:_0xe6712c}of _0x590a19['createTableWalker'](_0x456199,{'startColumn':_0x272700,'endColumn':_0x272700+_0x108bf2-0x1}))_0x210fcd['columnInsertionRanges']['push'](_0x530ebb['model']['createRangeOn'](_0xe6712c));},{'priority':'low'}),_0x590a19['on']('insertRows',(_0xc652d7,_0x3c729e)=>{const [_0x380efa,_0x1028c5={}]=_0x3c729e;if(!_0x210fcd)return;const _0xb700b6=_0x1028c5['at']||0x0,_0x414a1=_0x1028c5['rows']||0x1;_0x210fcd['rowInsertionIndexes']=new Array(_0x414a1)['fill'](_0xb700b6)['map']((_0x2e795d,_0x4fb3d3)=>_0x2e795d+_0x4fb3d3);for(const {cell:_0x267154}of _0x590a19['createTableWalker'](_0x380efa,{'startRow':_0xb700b6,'endRow':_0xb700b6+_0x414a1-0x1}))_0x210fcd['rowInsertionRanges']['push'](_0x530ebb['model']['createRangeOn'](_0x267154));},{'priority':'low'}),_0x5ee8ab['descriptionFactory']['registerDescriptionCallback'](_0x528b77=>{if(_0x528b77['subType']&&_0x528b77['subType']['startsWith']('tablePaste'))return _0x528b77['previous']?{}:{'type':'insertion','content':At(_0x530ebb['locale'],'*Replace\x20table\x20cells*')};});const _0x42bea3=()=>!0x1;for(const _0x1a85bb of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5ee8ab['_suggestionFactory']['registerCustomCallback']('insertion',_0x1a85bb,'join',_0x42bea3),_0x5ee8ab['_suggestionFactory']['registerCustomCallback']('deletion',_0x1a85bb,'join',_0x42bea3),_0x5ee8ab['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1a85bb,'join',_0x42bea3);_0x5ee8ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x42bea3),_0x5ee8ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x622b3c,_0x488451,_0x159c60)=>{const _0x243c94=_0x622b3c['map'](_0xa40d48=>_0xa40d48['getContainedElement']())['filter'](_0x40c1a4=>_0x40c1a4),_0x336a7b=new Map(_0x243c94['map'](_0x19e18e=>[_0x19e18e,null]));if(_0x210fcd){for(const {element:_0x479650,attributes:_0x128197}of _0x210fcd['cells'])_0x128197&&_0x336a7b['set'](_0x479650,_0x128197);}else{if(_0x159c60&&_0x159c60['markerAttributes'])for(const [_0x2e5436,_0x33e5c3]of Object['entries'](_0x159c60['markerAttributes'])){const _0x3cca5a=_0x530ebb['model']['markers']['get'](_0x2e5436),_0x303bb9=_0x3cca5a?_0x3cca5a['getRange']()['getContainedElement']():null;_0x303bb9&&_0x336a7b['set'](_0x303bb9,_0x33e5c3);}}_0x530ebb['model']['change'](_0x24b8e2=>{for(const [_0x3eee82,_0x9ec40]of _0x336a7b)_0x24b8e2['setAttributes']({...Fe,..._0x9ec40},_0x3eee82);});});const _0x3ac26e=(_0x373b93,_0x1aaa0d)=>{_0x5ee8ab['_suggestionFactory']['registerCustomCallback'](_0x373b93,'tablePaste',_0x1aaa0d,(_0x194ac3,_0x114a63,_0x28a0cb)=>{_0x530ebb['model']['change'](_0x1f4eaa=>{const _0xaf5e18=[];for(const _0x53d9e0 of _0x194ac3){const _0x26c91e=_0x53d9e0['start']['nodeAfter'];_0x26c91e['is']('element','tableCellSuggestion')&&_0xaf5e18['push'](_0x26c91e);}_0x5ee8ab['_suggestionFactory']['getSuggestionCallback'](_0x373b93,null,_0x1aaa0d)(_0x194ac3,_0x114a63,_0x28a0cb);for(const _0xbb1269 of _0xaf5e18)'$graveyard'!=_0xbb1269['root']['rootName']&&_0x1f4eaa['unwrap'](_0xbb1269);});});};_0x3ac26e('insertion','accept'),_0x3ac26e('insertion','discard'),_0x3ac26e('deletion','accept'),_0x3ac26e('deletion','discard'),_0x5ee8ab['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x180f3c=>{const _0x4f9d98=_0x180f3c['map'](_0x23e83d=>_0x23e83d['getContainedElement']()),_0x4b0e40=_0x4f9d98[0x0]['findAncestor']('table'),{minRow:_0x2b48b1,maxRow:_0x49ee02}=_0x440c56['_getCoordsForCells'](_0x4f9d98);_0x590a19['removeRows'](_0x4b0e40,{'at':_0x2b48b1,'rows':_0x49ee02-_0x2b48b1+0x1});}),_0x5ee8ab['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x20dec9=>{const _0x175732=_0x20dec9['map'](_0x4404f9=>_0x4404f9['getContainedElement']()),_0x29f013=_0x175732[0x0]['findAncestor']('table'),{minColumn:_0x3a3a22,maxColumn:_0x3a86a7}=_0x440c56['_getCoordsForCells'](_0x175732);_0x590a19['removeColumns'](_0x29f013,{'at':_0x3a3a22,'columns':_0x3a86a7-_0x3a3a22+0x1});});const _0x1d07e1=(_0x2a8279,_0x4742fd)=>{if(!_0x4742fd['subType']||!_0x4742fd['subType']['startsWith']('tablePaste'))return;const _0x332ca9=_0x4742fd['attributes']['tablePasteChainId'],_0x1dbd74=_0x5ee8ab['getSuggestions']()['filter'](_0x4f9a59=>_0x4f9a59['isInContent']&&_0x4f9a59['attributes']&&_0x4f9a59['attributes']['tablePasteChainId']==_0x332ca9);_0x1dbd74['length']&&_0x4742fd['getAllAdjacentSuggestions']()['length']!=_0x1dbd74['length']&&_0x1dbd74['reduce']((_0x37a38c,_0x15fd25)=>(_0x37a38c['next']=_0x15fd25,_0x15fd25['previous']=_0x37a38c,_0x15fd25));};function _0x23648f(_0x3266ee,_0x516a7a=!0x0){const {id:_0x3fe7af,authorId:_0x33a9b2}=_0x116f26(_0x3266ee['markerName']),_0x19a145=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x40ac62=_0x5ee8ab['activeMarkers']['includes'](_0x3266ee['markerName']);return _0x40ac62&&_0x19a145['push']('ck-suggestion-marker--active'),{'classes':_0x19a145,'attributes':{'data-suggestion':_0x3fe7af,'data-author-id':_0x33a9b2},'priority':_0x40ac62&&_0x516a7a?0xbc2:0xbb8};}_0x5ee8ab['on']('suggestionLoaded',_0x1d07e1,{'priority':'high'}),_0x5ee8ab['on']('suggestionUnloaded',_0x1d07e1,{'priority':'high'}),_0x530ebb['model']['document']['registerPostFixer'](()=>{let _0x825051=!0x1;const _0x2f3a22=Array['from'](_0x530ebb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x244e35,data:_0x1a05fc}of _0x2f3a22){const {group:_0x4dac53,type:_0xc184d6,id:_0x42e970}=_0x116f26(_0x244e35);if('suggestion'!=_0x4dac53||'deletion'!=_0xc184d6||_0x1a05fc['oldRange'])continue;if(!_0x5ee8ab['hasSuggestion'](_0x42e970))continue;const _0x4e619c=_0x5ee8ab['getSuggestion'](_0x42e970)['getRanges'](),_0x1b28f5=_0x530ebb['plugins']['get']('Users')['me'];for(const _0x257b63 of _0x5ee8ab['getSuggestions']()){if(!_0x257b63['isInContent']||_0x257b63['author']!=_0x1b28f5)continue;if('formatBlock'!=_0x257b63['type']||'tablePasteCell'!=_0x257b63['subType'])continue;if(_0x257b63['getRanges']()['every'](_0x5c5941=>_0x4e619c['some'](_0xdee427=>_0xdee427['containsRange'](_0x5c5941,!0x0)))){for(const _0xb193c6 of _0x257b63['getAllAdjacentSuggestions']())_0xb193c6['isInContent']&&(_0xb193c6['discard'](),_0x825051=!0x0);}}}return _0x825051;}),_0x530ebb['model']['document']['registerPostFixer'](_0x274b52=>{const _0x5437dd=_0x530ebb['commands']['get']('redo');if(!_0x5437dd||!_0x5437dd['_createdBatches']['has'](_0x274b52['batch']))return!0x1;let _0x5f2911=!0x1;const _0x3da383=_0x530ebb['plugins']['get']('Users')['me'],_0x56c4fb=_0x530ebb['model']['document']['differ']['getChanges'](),_0x85fb2e=Array['from'](_0x530ebb['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1a4403,data:_0x15e982})=>{const {group:_0x3a7676,subType:_0x4a486e,authorId:_0x1a296a}=_0x116f26(_0x1a4403);return'suggestion'==_0x3a7676&&'tablePaste'==_0x4a486e&&_0x1a296a==_0x3da383['id']&&!_0x15e982['oldRange'];});for(const _0x3f1551 of _0x56c4fb){if('insert'!=_0x3f1551['type']||'tableCellSuggestion'!=_0x3f1551['name']||0x1!=_0x3f1551['length'])continue;const _0x41a6fe=_0x274b52['createRange'](_0x3f1551['position'],_0x3f1551['position']['getShiftedBy'](0x1));if(!_0x85fb2e['find'](({data:_0x2fa4b7})=>_0x2fa4b7['newRange']['isEqual'](_0x41a6fe))){for(const {name:_0x50e848,data:_0x3c0be7}of _0x85fb2e)if(_0x41a6fe['containsRange'](_0x3c0be7['newRange'])){_0x274b52['updateMarker'](_0x50e848,{'range':_0x41a6fe}),_0x5f2911=!0x0;break;}}}return _0x5f2911;}),_0x530ebb['model']['document']['registerPostFixer'](_0x1c05fa=>{let _0x2d6522=!0x1;const _0x33376e=_0x530ebb['plugins']['get']('Users')['me'],_0x49f4e7=_0x5ee8ab['getSuggestions']()['filter'](_0x376ea3=>_0x376ea3['isInContent']&&_0x376ea3['author']==_0x33376e),_0x6b3d57=new Set(),_0x58123c=new Set();for(const _0x383511 of _0x49f4e7)if('tablePaste'==_0x383511['subType'])for(const _0x11abce of _0x383511['getMarkers']()){const _0x3f0e6f=_0x11abce['getRange']()['getContainedElement']();if(_0x3f0e6f){if(_0x3f0e6f['is']('element','tableCellSuggestion')&&ve(_0x3f0e6f)){_0x383511['removeMarker'](_0x11abce['name']),_0x6b3d57['add'](_0x3f0e6f),_0x2d6522=!0x0;const _0x27991b=_0x3f0e6f['nextSibling'],_0x241507=_0x3f0e6f['previousSibling'],_0x101398=_0x27991b&&_0x27991b['is']('element','tableCellSuggestion'),_0x4f6292=_0x241507&&_0x241507['is']('element','tableCellSuggestion');_0x101398&&!_0x6b3d57['has'](_0x27991b)&&_0x58123c['add'](_0x27991b),_0x4f6292&&!_0x6b3d57['has'](_0x241507)&&_0x58123c['add'](_0x241507);}else _0x3f0e6f['is']('element','paragraph')&&_0x3f0e6f['isEmpty']&&(_0x383511['removeMarker'](_0x11abce['name']),_0x2d6522=!0x0);}}else{if('tablePasteCell'==_0x383511['subType']){if(!_0x383511['attributes']||!_0x383511['attributes']['tablePasteChainId'])continue;const _0x2c1b5a=_0x383511['attributes']['markerAttributes'];if(_0x2c1b5a&&Object['keys'](_0x2c1b5a)['length'])continue;const _0x437f4f=_0x383511['attributes']['tablePasteChainId'];let _0x503f25=!0x0,_0x24b801=!0x0;for(const _0x1b91c4 of _0x49f4e7)if(_0x1b91c4['subType']&&_0x1b91c4['subType']['startsWith']('tablePaste')){if(!_0x1b91c4['attributes']['tablePasteChainId']){_0x24b801=!0x1;break;}if(_0x1b91c4['id']!=_0x383511['id']&&_0x1b91c4['attributes']['tablePasteChainId']==_0x437f4f){_0x503f25=!0x1;break;}}_0x24b801&&_0x503f25&&(_0x383511['removeMarkers'](),_0x2d6522=!0x0);}}for(const _0x1b9d40 of _0x6b3d57)_0x1c05fa['remove'](_0x1b9d40);for(const _0x47faf3 of _0x58123c)_0x1c05fa['unwrap'](_0x47faf3);return _0x2d6522;}),_0x530ebb['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5bba19=>_0x23648f(_0x5bba19),'converterPriority':'high'}),_0x530ebb['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x49b7f4,_0x55105f)=>_0x55105f['options']['showSuggestionHighlights']?_0x23648f(_0x49b7f4,!0x1):null,'converterPriority':'high'});const _0x309cd1=_0x530ebb['editing']['view'];this['listenTo'](_0x309cd1['document'],'clipboardOutput',(_0x5ecbb5,_0x8ae699)=>{const _0x237c56=[];for(const _0x2727b3 of _0x309cd1['createRangeIn'](_0x8ae699['content'])['getItems']())_0x2727b3['is']('element','suggestion-td')&&_0x237c56['push'](_0x2727b3);_0x309cd1['change'](_0x6e67cf=>{for(const _0x5d95c0 of _0x237c56)_0x6e67cf['move'](_0x6e67cf['createRangeIn'](_0x5d95c0),_0x6e67cf['createPositionBefore'](_0x5d95c0)),_0x6e67cf['remove'](_0x5d95c0);});});}}function ve(_0x9dae5e){if(_0x9dae5e['isEmpty'])return!0x0;const _0x25f61c=_0x9dae5e['getChild'](0x0);return _0x25f61c['is']('element','paragraph')&&_0x25f61c['isEmpty'];}function xe(_0x564436,_0x448497={},_0x150e85){for(const {isAnchor:_0x2b2dcb,cellHeight:_0x3846f5,cellWidth:_0x464b0b}of _0x150e85['createTableWalker'](_0x564436,{'includeAllSlots':!0x0,..._0x448497}))if(!_0x2b2dcb||0x1!=_0x3846f5||0x1!=_0x464b0b)return!0x1;return!0x0;}class Pe extends _0x687f86{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1ca22c=this['editor']['plugins']['get']('TrackChangesEditing');_0x1ca22c['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1ca22c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1ca22c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1ca22c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1ca22c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1ca22c['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x56d94c,_0x4bcd73){const _0x500081=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c21d7=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3684eb=_0x4bcd73['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2107f7=_0x5c21d7['getColumnGroupElement'](_0x3684eb);let _0x2b4bcf=_0x2107f7?_0x5c21d7['getTableColumnsWidths'](_0x2107f7):null,_0x51ed43=_0x3684eb['getAttribute']('tableWidth')||null;const _0x1bde2e=_0x4bcd73['tableWidth']||_0x51ed43,_0xaefd3=_0x4bcd73['columnWidths']||_0x2b4bcf,_0x3f8c3f=this['editor']['plugins']['get']('Users')['me'];for(const _0x14a6dc of _0x500081['getSuggestions']()){const _0x2c125f=_0x14a6dc['getContainedElement']();if('resizeTable'===_0x14a6dc['subType']&&_0x2c125f===_0x3684eb){_0x14a6dc['author']!==_0x3f8c3f&&_0x14a6dc['discard']();const _0x52e167=_0x14a6dc['data']['commandParams'];_0x51ed43=_0x52e167[0x0]['tableWidth'],_0x2b4bcf=_0x52e167[0x0]['columnWidths'];break;}}_0x56d94c({'table':_0x3684eb,'tableWidth':_0x1bde2e,'columnWidths':_0xaefd3}),_0x500081['markBlockFormat'](_0x3684eb,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x51ed43,'columnWidths':_0x2b4bcf}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x258e78){if('formatBlock'!=_0x258e78['type']&&'formatInline'!=_0x258e78['type'])return;const {data:_0x27ca2a}=_0x258e78;if(_0x27ca2a&&'resizeTable'===_0x27ca2a['formatGroupId']){const _0xd9bd2='*Format:*\x20resize\x20table';return{'type':'format','content':At(this['editor']['locale'],_0xd9bd2)};}}}class Ue extends _0x687f86{['afterInit'](){const _0x2a30b7=this['editor'];_0x2a30b7['plugins']['has']('Template')&&_0x2a30b7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ge extends _0x687f86{['afterInit'](){const _0x60a12e=this['editor'];if(!_0x60a12e['commands']['get']('insertTableOfContents'))return;_0x60a12e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x37d678=_0x60a12e['plugins']['get']('TrackChangesEditing'),_0x471d13=_0x60a12e['locale'];_0x37d678['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4f101a=>At(_0x471d13,'ELEMENT_TABLE_OF_CONTENTS',_0x4f101a));}}class He extends _0x687f86{['afterInit'](){const _0x515350=this['editor'];if(!_0x515350['plugins']['has']('Title'))return;_0x515350['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>At(_0x515350['locale'],'ELEMENT_TITLE')),_0x515350['model']['document']['registerPostFixer'](_0x5c1e65=>{let _0x239eb0=!0x1;const _0x13843=Array['from'](_0x515350['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4cb181,data:_0x4d9ef3}of _0x13843){const {group:_0x21fa80}=_0x116f26(_0x4cb181);if('suggestion'!==_0x21fa80||!_0x4d9ef3['newRange'])continue;const _0x215d7d=_0x4d9ef3['newRange'],_0xe69b97=_0x215d7d['end']['nodeBefore'];if(!_0xe69b97||!_0xe69b97['is']('element','title-content'))continue;if(!_0x215d7d['start']['isTouching'](_0x215d7d['end']))continue;const _0x2b01e2=_0x515350['model']['schema']['getNearestSelectionRange'](_0x215d7d['end'],'forward');if(_0x2b01e2&&_0x2b01e2['isCollapsed']){const _0x45b692=_0x5c1e65['createRange'](_0x215d7d['start'],_0x2b01e2['start']);_0x45b692['isEqual'](_0x215d7d)||(_0x5c1e65['updateMarker'](_0x4cb181,{'range':_0x45b692}),_0x239eb0=!0x0);}_0x239eb0||(_0x5c1e65['removeMarker'](_0x4cb181),_0x239eb0=!0x0);}return _0x239eb0;});}}class $e extends _0x687f86{['afterInit'](){const _0x524967=this['editor'],_0x44ce23=_0x524967['plugins']['get']('TrackChangesEditing');_0x524967['plugins']['has']('Uploadcare')&&(_0x44ce23['enableCommand']('uploadcare'),_0x524967['plugins']['has']('UploadcareImageEdit')&&(_0x44ce23['enableCommand']('uploadcareImageEdit'),_0x44ce23['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x44ce23['descriptionFactory']['registerDescriptionCallback'](_0x3dae4d=>{if('attribute'!=_0x3dae4d['type'])return;const {data:_0x48a86a}=_0x3dae4d;return _0x48a86a&&'uploadcareImageId'==_0x48a86a['key']?{'type':'format','content':''}:void 0x0;})));}}class We extends _0x687f86{['afterInit'](){const _0x2090d1=this['editor'],_0x16cfee=_0x2090d1['plugins']['get']('TrackChangesEditing');_0x2090d1['plugins']['has']('UndoEditing')&&(_0x16cfee['enableCommand']('undo'),_0x16cfee['enableCommand']('redo'));}}class Ve extends _0x687f86{static get['requires'](){return[Ne];}['afterInit'](){const _0x391a60=this['editor'];if(!_0x391a60['plugins']['has']('TableCaptionEditing'))return;_0x391a60['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class je extends _0x687f86{['tableProperties'];['tableCellProperties'];constructor(_0x52ea74){super(_0x52ea74),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellType'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x39c299=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4aee58 of this['tableProperties'])_0x39c299['enableCommand'](_0x4aee58,(_0x4b6740,_0x20f059)=>{const _0x4e5664=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4aee58,[_0x4e5664],this['tableProperties'],'tableProperties',_0x4b6740,_0x20f059);});_0x39c299['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x39c299['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x39c299['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3d1552,_0xd381df)=>this['handleDiscardAction'](this['tableProperties'],_0x3d1552,_0xd381df)),_0x39c299['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3b8e34 of this['tableCellProperties'])this['editor']['commands']['get'](_0x3b8e34)&&_0x39c299['enableCommand'](_0x3b8e34,(_0x41815c,_0x2c9102)=>{const _0x52efb4=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3b8e34,_0x52efb4,this['tableCellProperties'],'tableCellProperties',_0x41815c,_0x2c9102);});_0x39c299['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x39c299['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x39c299['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x489e4d,_0x2318c6)=>this['handleDiscardAction'](this['tableCellProperties'],_0x489e4d,_0x2318c6)),_0x39c299['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x39c299['descriptionFactory']['registerAttributeLabel']('tableCellType',At(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x39c299['descriptionFactory']['registerDescriptionCallback'](_0x1fe9e8=>this['handleSuggestionDescription'](_0x1fe9e8)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x551a29,_0x508e81,_0xaa0e0e,_0x252771,_0x213cd5,_0x3fa1a3){const _0xd9cc96=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3fa1a3['batch'],()=>{for(const _0x3e60d9 of _0x508e81){if(this['_getSuggestion'](_0x3e60d9,_0x252771))_0x213cd5(_0x3fa1a3);else{const _0x17f639={};for(const _0x10260d of _0xaa0e0e){const _0x1578c7=_0x3e60d9['getAttribute'](_0x10260d);void 0x0!==_0x1578c7&&(_0x17f639[_0x10260d]=_0x1578c7);}_0x213cd5(_0x3fa1a3),_0xd9cc96['markBlockFormat'](_0x3e60d9,{'commandParams':[_0x17f639]},[],_0x252771);}}});}['handleDiscardAction'](_0x48e2af,_0x481930,_0x2e2bec){const _0x1c3330=_0x481930[0x0]['start']['nodeAfter'],_0x5a786e=_0x2e2bec['commandParams'][0x0];this['editor']['model']['change'](_0x103688=>{for(const _0x50badf of _0x48e2af)void 0x0!==_0x5a786e[_0x50badf]?_0x103688['setAttribute'](_0x50badf,_0x5a786e[_0x50badf],_0x1c3330):_0x103688['removeAttribute'](_0x50badf,_0x1c3330);});}['handleSuggestionDescription'](_0x4c3822){if(_0x4c3822['data'])switch(_0x4c3822['subType']){case'tableProperties':return{'type':'format','content':At(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':At(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x313e03,_0x4fe33a){const _0x69ae2d=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x51a2cb of _0x69ae2d['getSuggestions']({'skipNotAttached':!0x0})){const _0x3a1915=_0x51a2cb['getContainedElement']();if(_0x51a2cb['subType']===_0x4fe33a&&_0x3a1915===_0x313e03)return _0x51a2cb;}return null;}['_registerTablePropertiesAttributes'](){const _0x2276a9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4ed23c=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x1ee9d2 of _0x4ed23c){const _0x3fca58=_0x1ee9d2['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x2276a9['descriptionFactory']['registerAttributeLabel'](_0x1ee9d2,At(this['editor']['locale'],'FORMAT_'+_0x3fca58));}}}class ze extends _0x687f86{['afterInit'](){const _0x4f6cb9=this['editor'];if(!_0x4f6cb9['plugins']['has']('LineHeight'))return;const _0x42a180=_0x4f6cb9['plugins']['get']('TrackChangesEditing'),_0x20c258=_0x4f6cb9['locale'];_0x42a180['enableDefaultAttributesIntegration']('lineHeight'),_0x42a180['descriptionFactory']['registerAttributeLabel']('lineHeight',At(_0x20c258,'FORMAT_LINE_HEIGHT'));}}const Ke='$elementName';class Xe extends _0x687f86{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x424274,_0x856be7,_0x345397,_0x1a5f01,_0x108ee7,Ct,yt,Nt,Rt,Mt,Ot,Bt,Dt,Ft,vt,Pt,Ut,jt,zt,Kt,Yt,qt,Qt,Jt,te,ee,ne,ie,re,se,oe,ae,ce,ue,fe,Te,le,Gt,ze,$t,ge,me,Ee,_e,pe,Le,Ie,be,Ae,Ce,ye,Ne,Se,Me,Oe,we,Ve,De,Pe,Ge,je,Ue,He,$e,We];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1fccaf){super(_0x1fccaf),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x25a1e7,_0x169330,_0x5d0a38,_0x42eb08)=>{this['_model']['change'](()=>{for(const _0x1b9cc2 of[..._0x42eb08,..._0x5d0a38])this['_model']['markers']['has'](_0x1b9cc2)&&_0x1fccaf['editing']['reconvertMarker'](_0x1b9cc2);});}),this['descriptionFactory']=new kt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ye(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1fccaf['plugins']['get'](_0x424274),this['_suggestionsConversion']=_0x1fccaf['plugins']['get'](_0x856be7),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x1fccaf['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1fccaf['config']['get']('trackChanges.trackFormatChanges'),_0x1fccaf['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1fccaf['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new ht(_0x1fccaf,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x406724=this['editor'];_0x406724['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3b6fe8,{writer:_0x4af8d6})=>{let _0x22be4b='suggestion:'+_0x3b6fe8['getAttribute']('suggestion-type')+':'+_0x3b6fe8['getAttribute']('id');return _0x3b6fe8['getAttribute']('marker-count')&&(_0x22be4b+=':'+_0x3b6fe8['getAttribute']('marker-count')),_0x4af8d6['createElement']('$marker',{'data-name':_0x22be4b});}}),_0x406724['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x406724['model']['document']['registerPostFixer'](_0x4ef553=>{let _0x2f61bd=!0x1;const _0xa82b7d=Array['from'](_0x406724['model']['document']['differ']['getChangedMarkers']()),_0x57520e=new Set();for(const {name:_0x1ed29d,data:_0xda63d5}of _0xa82b7d){const {group:_0x29d79b,type:_0xc70ae0,subType:_0x1fa3f0,id:_0x91f4a}=_0x116f26(_0x1ed29d);if('suggestion'!==_0x29d79b)continue;const _0x696672=_0x1fa3f0?'suggestion:'+_0xc70ae0+':'+_0x1fa3f0+':'+_0x91f4a:'suggestion:'+_0xc70ae0+':'+_0x91f4a,_0x88f131=_0x406724['model']['markers']['getMarkersGroup'](_0x696672),_0x213b85=_0x406724['model']['markers']['get'](_0x1ed29d),_0x480e1d=this['_suggestions']['get'](_0x91f4a);if(null!=_0xda63d5['newRange']){'formatInline'==_0xc70ae0&&(_0x2f61bd=_0x2f61bd||Ze(_0xda63d5['newRange'],_0x1ed29d,_0x4ef553,_0x406724['model']['schema']));const _0xbbc2ae='attribute'==_0xc70ae0&&this['_suggestionsConversion']['isBlockAttribute'](un(_0x1fa3f0)),_0x13f4c5='attribute'==_0xc70ae0&&this['_suggestionsConversion']['isInlineAttribute'](un(_0x1fa3f0));if(_0xda63d5['newRange']['isCollapsed']||'$graveyard'==_0xda63d5['newRange']['root']['rootName']||'formatBlock'==_0xc70ae0&&!tn(_0xda63d5['newRange'])||_0xbbc2ae&&!tn(_0xda63d5['newRange'])||_0x13f4c5&&en(_0xda63d5['newRange'])||'deletion'==_0xc70ae0&&en(_0xda63d5['newRange'])||_0x213b85&&nn(_0x213b85,_0x88f131))_0x4ef553['removeMarker'](_0x1ed29d),_0x2f61bd=!0x0;else{if(!_0x480e1d||!_0x480e1d['isInContent'])continue;if(_0xda63d5['newRange']&&_0xda63d5['oldRange']&&_0xda63d5['newRange']['isEqual'](_0xda63d5['oldRange']))continue;_0x57520e['add'](_0x480e1d);}}}return _0x57520e['size']>0x0&&(_0x2f61bd=!!this['_joinWithAdjacentSuggestions'](_0x57520e)||_0x2f61bd),_0x2f61bd;}),_0x406724['model']['document']['registerPostFixer'](_0x4dbe15=>{let _0x1e3e1f=!0x1;for(const _0x518924 of _0x406724['model']['document']['differ']['getChanges']())if('insert'==_0x518924['type'])for(const _0x33e9ef of this['_suggestions']['values']()){if(_0x33e9ef['isMultiRange']||!_0x33e9ef['isInContent'])continue;const _0x313ab3='formatBlock'==_0x33e9ef['type'],_0x7dd989=this['_getAttributeKey'](_0x33e9ef),_0x3e587f=_0x7dd989&&this['_suggestionsConversion']['isBlockAttribute'](_0x7dd989);if(!_0x313ab3&&!_0x3e587f)continue;const _0x2cee1b=_0x33e9ef['getFirstRange']();if(_0x2cee1b['start']['parent']!=_0x2cee1b['end']['parent']&&!_0x2cee1b['end']['isAtEnd']){const _0x37a49b=_0x406724['model']['createPositionAt'](_0x2cee1b['start']['nodeAfter'],'end'),_0x113d4b=_0x406724['model']['createRange'](_0x2cee1b['start'],_0x37a49b);_0x4dbe15['updateMarker'](_0x33e9ef['getFirstMarker'](),{'range':_0x113d4b}),_0x1e3e1f=!0x0;}}return _0x1e3e1f;}),_0x406724['model']['document']['registerPostFixer'](_0x48ef73=>this['_processAttributeChanges'](_0x48ef73)),_0x406724['model']['document']['registerPostFixer'](_0x228cad=>!_0x228cad['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x228cad)),_0x406724['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x406724['model']['document']['on']('change:data',(_0x21d06c,_0x1de683)=>{if(!_0x1de683['isLocal']||_0x1de683['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3d81fd=_0x406724['model']['document']['differ']['getChanges']();if(0x0==_0x3d81fd['length'])return;const _0x4761a1=[],_0x3eab77=_0x3d81fd['filter'](_0x50c722=>'attribute'==_0x50c722['type']),_0x53f313=_0x3d81fd['filter'](_0xb91413=>'insert'==_0xb91413['type']&&'$text'!=_0xb91413['name']);for(const _0x56328c of _0x3eab77)this['_suggestionsConversion']['isRegisteredAttribute'](_0x56328c['attributeKey'])&&_0x4761a1['push']({'key':_0x56328c['attributeKey'],'newValue':_0x56328c['attributeNewValue'],'oldValue':_0x56328c['attributeOldValue'],'range':sn(_0x56328c['range'],_0x406724['model'])});for(const _0x530b43 of _0x53f313){if('rename'!=_0x530b43['action']&&'refresh'!=_0x530b43['action'])continue;const _0x26db1a=rn(_0x530b43['position']['nodeAfter'],_0x406724['model']),_0x315184=_0x530b43['before'];'rename'==_0x530b43['action']&&_0x4761a1['push']({'key':Ke,'newValue':_0x530b43['name'],'oldValue':_0x315184['name'],'range':_0x26db1a});for(const [_0x97ee9f,_0x21528b]of _0x315184['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x97ee9f))continue;const _0x53a4af=_0x530b43['attributes']['get'](_0x97ee9f);_0x21528b!==_0x53a4af&&_0x4761a1['push']({'key':_0x97ee9f,'newValue':_0x53a4af,'oldValue':_0x21528b,'range':_0x26db1a});}for(const [_0x1dbbef,_0x1b67a0]of _0x530b43['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x1dbbef)&&(_0x315184['attributes']['has'](_0x1dbbef)||_0x4761a1['push']({'key':_0x1dbbef,'newValue':_0x1b67a0,'oldValue':null,'range':_0x26db1a}));}0x0!=_0x4761a1['length']&&_0x406724['model']['enqueueChange'](_0x1de683,_0x1edaee=>{const _0x195073=_0x41141f();for(const {range:_0x470b7c,key:_0x126bc1,oldValue:_0x2ead25,newValue:_0x3c3205}of _0x4761a1)this['markAttributeChange'](_0x470b7c,_0x126bc1,_0x2ead25,_0x3c3205,{'groupId':_0x195073});this['_reduceExistingSuggestions'](_0x1edaee,_0x4761a1);});},{'priority':'lowest'}),_0x406724['model']['markers']['on']('update:suggestion',(_0xe71a37,_0x72eb37,_0x36714c)=>{if(null==_0x36714c){const {id:_0x31af65}=_0x116f26(_0x72eb37['name']),_0x3c77d1=this['_suggestions']['get'](_0x31af65);_0x3c77d1&&_0x3c77d1['addMarkerName'](_0x72eb37['name']);}}),_0x406724['model']['document']['on']('change:data',()=>{const _0x3e5c79=Array['from'](_0x406724['model']['document']['differ']['getChangedMarkers']())['filter'](_0x27988e=>'suggestion'===_0x116f26(_0x27988e['name'])['group']);if(0x0===_0x3e5c79['length'])return;_0x3e5c79['sort']((_0x3b6299,_0x468371)=>{const _0x92f180=_0x3b6299['data']['oldRange'],_0x3d7b46=_0x468371['data']['oldRange'];return null===_0x92f180&&null===_0x3d7b46?0x0:null===_0x92f180&&null!==_0x3d7b46?-0x1:null!==_0x92f180&&null===_0x3d7b46?0x1:_0x92f180['start']['isBefore'](_0x3d7b46['start'])?-0x1:0x1;});const _0x1ee468=new Set(),_0x4fa5b5=new Set();for(const {name:_0x219610,data:_0x391631}of _0x3e5c79){const {id:_0x393a9e}=_0x116f26(_0x219610);if(null===_0x391631['oldRange']){const _0x379cfa=this['_handleNewSuggestionMarker'](_0x219610);_0x4fa5b5['add'](_0x379cfa);}else{const _0x1e15ac=this['_suggestions']['get'](_0x393a9e);null!==_0x391631['newRange']||_0x1e15ac['isInContent']?(_0x1ee468['add'](_0x1e15ac['head']),_0x4fa5b5['add'](_0x1e15ac)):this['_removeSuggestion'](_0x1e15ac);}}_0x4fa5b5['size']>0x0&&this['_refreshSuggestionsChain'](_0x4fa5b5);for(const _0x57b441 of _0x1ee468)this['fire']('suggestionChanged',_0x57b441);}),_0x406724['model']['on']('applyOperation',(_0x414fcd,_0x23056c)=>{const _0xfc5fb6=_0x23056c[0x0];if(!this['_suggestions']['size'])return;if(!_0xfc5fb6['isDocumentOperation'])return;if(_0xfc5fb6['batch']['isUndo']||!_0xfc5fb6['batch']['isLocal'])return;let _0x47eb36,_0x4ce354;switch(_0xfc5fb6['type']){case'insert':_0x47eb36=_0x406724['model']['createPositionAt'](_0xfc5fb6['position']),_0x4ce354=_0x47eb36['getShiftedBy'](_0xfc5fb6['howMany']);break;case'split':_0x47eb36=_0x406724['model']['createPositionAt'](_0xfc5fb6['splitPosition']),_0x4ce354=_0x406724['model']['createPositionAt'](_0xfc5fb6['moveTargetPosition']);break;case'move':_0x47eb36=_0x406724['model']['createPositionAt'](_0xfc5fb6['targetPosition']),_0x4ce354=_0x47eb36['getShiftedBy'](_0xfc5fb6['howMany']);break;default:return;}const _0x1c8305=_0x406724['model']['createRange'](_0x47eb36,_0x4ce354);_0x406724['model']['change'](()=>{for(const {suggestion:_0x25f43b,meta:_0x557459}of this['_findSuggestions'](_0x1c8305)){if(_0x25f43b['isMultiRange'])continue;if('formatInline'==_0x25f43b['type'])continue;const _0x190075=this['_getAttributeKey'](_0x25f43b);if(_0x190075&&this['_suggestionsConversion']['isBlockAttribute'](_0x190075)&&'split'!=_0xfc5fb6['type'])continue;const _0x22c54f=_0x25f43b['data']&&_0x25f43b['data']['multipleBlocks'];('formatBlock'!=_0x25f43b['type']||'split'==_0xfc5fb6['type']&&!_0x22c54f)&&(_0x557459['containsRangeInObject']||'insertion'==_0x25f43b['type']&&_0x557459['isOwn']||_0x25f43b['getFirstRange']()['containsRange'](_0x1c8305)&&this['_breakSuggestionMarker'](_0x25f43b,_0x47eb36,_0x4ce354));}});},{'priority':'lowest'}),_0x406724['model']['on']('deleteContent',(_0x5221a0,_0x288ae4)=>{const _0xc4a5a7=_0x288ae4[0x0],_0x46016b=_0x288ae4[0x1];if(_0x46016b&&_0x46016b['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xc4a5a7['isCollapsed'])return;const _0xc2de4d=_0x406724['model']['schema'],{start:_0x362936,end:_0x53ca38}=_0xc4a5a7['getFirstRange'](),_0x391512=_0x362936['nodeAfter']&&_0xc2de4d['isLimit'](_0x362936['nodeAfter'])?null:_0xc2de4d['getNearestSelectionRange'](_0x362936,'forward'),_0x5b6341=_0x53ca38['nodeBefore']&&_0xc2de4d['isLimit'](_0x53ca38['nodeBefore'])?null:_0xc2de4d['getNearestSelectionRange'](_0x53ca38,'backward'),_0x2ec756=_0x406724['model']['createRange'](_0x391512?_0x391512['start']:_0x362936,_0x5b6341?_0x5b6341['end']:_0x53ca38);_0x406724['model']['change'](_0x108286=>{this['markDeletion'](_0x2ec756);const _0x4cddc8=_0x406724['model']['schema']['getNearestSelectionRange'](_0x2ec756['start']);_0xc4a5a7['is']('documentSelection')?_0x108286['setSelection'](_0x4cddc8):_0xc4a5a7['setTo'](_0x4cddc8);}),_0x5221a0['stop']();},{'priority':_0x1e3508['normal']+0xa}),_0x406724['model']['on']('insertContent',(_0xd1e82e,_0x147103)=>{const _0x5cd480=_0x147103[_0x147103['length']-0x1];_0x5cd480&&_0x5cd480['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x406724['model']['change'](()=>{let _0x163b48=_0x406724['model']['insertContent'](_0x147103[0x0],_0x147103[0x1],_0x147103[0x2],{'forceDefaultExecution':!0x0});if(!_0x163b48)return;_0xd1e82e['return']=_0x163b48['clone']();const _0x36870f=_0x163b48['end']['nodeBefore'],_0x2389ec=_0x406724['model']['schema'];_0x36870f&&_0x2389ec['isBlock'](_0x36870f)&&!_0x2389ec['isObject'](_0x36870f)&&(_0x163b48=_0x406724['model']['createRange'](_0x163b48['start'],_0x406724['model']['createPositionAt'](_0x36870f,'end'))),this['markInsertion'](_0x163b48);}),_0xd1e82e['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3b2cd5=new dt(_0x406724,this['_suggestions']);_0x406724['commands']['add']('acceptSuggestion',_0x3b2cd5),this['enableCommand']('acceptSuggestion');const _0x4d06e2=new ft(_0x406724,this['_suggestions']);_0x406724['commands']['add']('discardSuggestion',_0x4d06e2),this['enableCommand']('discardSuggestion'),_0x406724['commands']['add']('acceptAllSuggestions',new Lt(_0x406724,_0x3b2cd5,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x406724['commands']['add']('discardAllSuggestions',new Lt(_0x406724,_0x4d06e2,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x406724['commands']['add']('acceptSelectedSuggestions',new It(_0x406724,_0x3b2cd5,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x406724['commands']['add']('discardSelectedSuggestions',new It(_0x406724,_0x4d06e2,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x33f0b4=_0x406724['plugins']['get'](_0x424274);this['listenTo'](_0x33f0b4,'addComment',(_0x371317,{threadId:_0x152579})=>{const _0x2b6e8f=this['_suggestions']['get'](_0x152579);_0x2b6e8f&&_0x2b6e8f['commentThread']&&0x1===_0x2b6e8f['commentThread']['length']&&this['_updateSuggestionData'](_0x152579,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x33f0b4,'removeComment',(_0x3f4352,{threadId:_0x2b9514})=>{const _0x4ecb4a=this['_suggestions']['get'](_0x2b9514);_0x4ecb4a&&_0x4ecb4a['commentThread']&&!_0x4ecb4a['commentThread']['length']&&this['_updateSuggestionData'](_0x2b9514,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x281368){const _0x4c7771=_0x5dc0d4([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0xd91c2f=0x3d8d0df,_0x206bc3=0x3df5977^_0xd91c2f,_0x21a824=window[_0x5dc0d4([0x44,0x61,0x74,0x65])][_0x5dc0d4([0x6e,0x6f,0x77])](),_0x1f5644=_0x281368[_0x5dc0d4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x38b029=new window[(_0x5dc0d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3938a7=>{_0x1f5644[_0x5dc0d4([0x6f,0x6e,0x63,0x65])](_0x5dc0d4([0x72,0x65,0x61,0x64,0x79]),_0x3938a7);}),_0x5163b0={[_0x5dc0d4([0x6b,0x74,0x79])]:_0x5dc0d4([0x45,0x43]),[_0x5dc0d4([0x75,0x73,0x65])]:_0x5dc0d4([0x73,0x69,0x67]),[_0x5dc0d4([0x63,0x72,0x76])]:_0x5dc0d4([0x50,0x2d,0x32,0x35,0x36]),[_0x5dc0d4([0x78])]:_0x5dc0d4([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]),[_0x5dc0d4([0x79])]:_0x5dc0d4([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]),[_0x5dc0d4([0x61,0x6c,0x67])]:_0x5dc0d4([0x45,0x53,0x32,0x35,0x36])},_0x18bd4e=_0x1f5644[_0x5dc0d4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5dc0d4([0x67,0x65,0x74])](_0x5dc0d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x39632d(){let _0x4e3b4a,_0x478408=null,_0x5d770a=null;try{if(_0x18bd4e==_0x5dc0d4([0x47,0x50,0x4c]))return _0x5dc0d4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4e3b4a=_0x530feb(),!_0x4e3b4a)return _0x5dc0d4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4e3b4a[_0x5dc0d4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5d770a=_0x4ea6d2(_0x4e3b4a[_0x5dc0d4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4e3b4a[_0x5dc0d4([0x6a,0x74,0x69])])),await _0x510a99()?_0xd965f3()?_0x5c65de()?_0x5dc0d4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x129e7c()?(_0x4e3b4a[_0x5dc0d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5dc0d4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x478408=_0xc6d809(_0x5dc0d4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3b758()):_0x5dc0d4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5dc0d4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5dc0d4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5dc0d4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5c65de(){const _0x154f6d=[_0x5dc0d4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5dc0d4([0x74,0x72,0x69,0x61,0x6c])][_0x5dc0d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e3b4a[_0x5dc0d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x21a824/0x3e8:0xe10*_0x206bc3;return _0x4e3b4a[_0x5dc0d4([0x65,0x78,0x70])]<_0x154f6d;}function _0xd965f3(){const _0x3945dd=_0x4e3b4a[_0x5dc0d4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3945dd)return!0x1;if(_0x3945dd[_0x5dc0d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5dc0d4([0x2a])))return!0x0;if(_0x3945dd[_0x5dc0d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5dc0d4([0x54,0x43])))return!0x0;if(_0x3945dd[_0x5dc0d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5dc0d4([0x52,0x54,0x43]))){if(_0x21f4fd())return!0x0;if(_0x112567()||_0x4c412a())return!0x0;}return!0x1;}function _0x129e7c(){const _0x562544=_0x4e3b4a[_0x5dc0d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x562544||0x0==_0x562544[_0x5dc0d4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5b94b1}=new URL(window[_0x5dc0d4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x562544[_0x5dc0d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b94b1))return!0x0;const _0x347f84=_0x5b94b1[_0x5dc0d4([0x73,0x70,0x6c,0x69,0x74])](_0x5dc0d4([0x2e]));return _0x562544[_0x5dc0d4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x469a7b=>_0x469a7b[_0x5dc0d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5dc0d4([0x2a])))[_0x5dc0d4([0x6d,0x61,0x70])](_0x27e80f=>_0x27e80f[_0x5dc0d4([0x73,0x70,0x6c,0x69,0x74])](_0x5dc0d4([0x2e])))[_0x5dc0d4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x515e12=>_0x515e12[_0x5dc0d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x347f84[_0x5dc0d4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5dc0d4([0x6d,0x61,0x70])](_0x59c782=>Array(_0x347f84[_0x5dc0d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x59c782[_0x5dc0d4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5dc0d4([0x66,0x69,0x6c,0x6c])](_0x59c782[0x0]===_0x5dc0d4([0x2a])?_0x5dc0d4([0x2a]):'')[_0x5dc0d4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x59c782))[_0x5dc0d4([0x73,0x6f,0x6d,0x65])](_0x242e1e=>_0x347f84[_0x5dc0d4([0x65,0x76,0x65,0x72,0x79])]((_0x2a5a2e,_0x24e8fa)=>_0x242e1e[_0x24e8fa]===_0x2a5a2e||_0x242e1e[_0x24e8fa]===_0x5dc0d4([0x2a])));}function _0x3b758(){return _0x478408&&_0x5d770a?new window[(_0x5dc0d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2bebbb,_0x208383)=>{_0x478408[_0x5dc0d4([0x74,0x68,0x65,0x6e])](_0x2bebbb,_0x208383),_0x5d770a[_0x5dc0d4([0x74,0x68,0x65,0x6e])](_0x1acef6=>{_0x1acef6!=_0x5dc0d4([0x56,0x61,0x6c,0x69,0x64])&&_0x2bebbb(_0x1acef6);},_0x208383);}):_0x478408||_0x5d770a||_0x5dc0d4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4ea6d2(_0x5f57e1,_0x29b15a){return new window[(_0x5dc0d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x242a97=>{if(_0x392b2d())return _0x242a97(_0x5dc0d4([0x56,0x61,0x6c,0x69,0x64]));_0x130234(),_0x1f5644[_0x5dc0d4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5dc0d4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x19690e=!0x1;const _0x24d977=_0x41141f();function _0x202251(_0x1855c3){return!!_0x1855c3&&(typeof _0x1855c3===_0x5dc0d4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1855c3===_0x5dc0d4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1855c3[_0x5dc0d4([0x74,0x68,0x65,0x6e])]===_0x5dc0d4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1855c3[_0x5dc0d4([0x63,0x61,0x74,0x63,0x68])]===_0x5dc0d4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x8fe13a(_0x1b09da){_0x59dac0(_0x1b09da)[_0x5dc0d4([0x74,0x68,0x65,0x6e])](_0x1672e1=>{if(!_0x1672e1||_0x1672e1[_0x5dc0d4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5dc0d4([0x6f,0x6b]))return _0x5dc0d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x14fa53(_0xb0f9e(_0x24d977+_0x29b15a))!=_0x1672e1[_0x5dc0d4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5dc0d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5dc0d4([0x56,0x61,0x6c,0x69,0x64]);})[_0x5dc0d4([0x74,0x68,0x65,0x6e])](_0x581908=>(_0x47707f(),_0x581908),()=>{const _0x51a414=_0x46b173();return null==_0x51a414?(_0x47707f(),_0x5dc0d4([0x56,0x61,0x6c,0x69,0x64])):_0x5dc0d4(_0x21a824-_0x51a414>(0x27d454df^_0xd91c2f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5dc0d4([0x74,0x68,0x65,0x6e])](_0x242a97)[_0x5dc0d4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x242a97(_0x5dc0d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x51b54f=0x3ee3e5f^_0xd91c2f;function _0x47707f(){const _0x1fb51e=_0x5dc0d4([0x6c,0x6c,0x63,0x74,0x2d])+_0x14fa53(_0xb0f9e(_0x5f57e1)),_0x488dda=_0x319b28(_0x14fa53(window[_0x5dc0d4([0x4d,0x61,0x74,0x68])][_0x5dc0d4([0x63,0x65,0x69,0x6c])](_0x21a824/_0x51b54f)));window[_0x5dc0d4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5dc0d4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1fb51e,_0x488dda);}function _0x46b173(){const _0x545be6=_0x5dc0d4([0x6c,0x6c,0x63,0x74,0x2d])+_0x14fa53(_0xb0f9e(_0x5f57e1)),_0x1f8cfb=window[_0x5dc0d4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5dc0d4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x545be6);return _0x1f8cfb?window[_0x5dc0d4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x319b28(_0x1f8cfb),0x10)*_0x51b54f:null;}function _0x59dac0(_0x5d642b){return new window[(_0x5dc0d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x52a041,_0x51e2e1)=>{_0x5d642b[_0x5dc0d4([0x74,0x68,0x65,0x6e])](_0x52a041,_0x51e2e1),window[_0x5dc0d4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x51e2e1,0x3d9041f^_0xd91c2f);});}}_0x1f5644[_0x5dc0d4([0x6f,0x6e])](_0x5dc0d4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x315d04,_0xac4ce6)=>{if(_0xac4ce6[0x0]!=_0x5f57e1)return _0x242a97(_0x5dc0d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xac4ce6[0x1]={..._0xac4ce6[0x1],[_0x5dc0d4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x24d977};},{[_0x5dc0d4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5dc0d4([0x68,0x69,0x67,0x68])}),_0x1f5644[_0x5dc0d4([0x6f,0x6e])](_0x5dc0d4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x371fd3=>{_0x202251(_0x371fd3[_0x5dc0d4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x19690e=!0x0,_0x8fe13a(_0x371fd3[_0x5dc0d4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5dc0d4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5dc0d4([0x6c,0x6f,0x77])}),_0x38b029[_0x5dc0d4([0x74,0x68,0x65,0x6e])](()=>{_0x19690e||_0x242a97(_0x5dc0d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x392b2d(){return _0x1f5644[_0x5dc0d4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5dc0d4([0x76,0x69,0x65,0x77])][_0x5dc0d4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5dc0d4([0x61,0x75,0x74,0x6f]);}function _0x130234(){_0x1f5644[_0x5dc0d4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5dc0d4([0x76,0x69,0x65,0x77])][_0x5dc0d4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5dc0d4([0x61,0x75,0x74,0x6f]);}}function _0xc6d809(_0x2f3b04){const _0x5f1908=[new window[(_0x5dc0d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b99f9=>setTimeout(_0x4b99f9,0x3d1ee13^_0xd91c2f)),_0x38b029[_0x5dc0d4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5dc0d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13f4f6=>{let _0x145aad=0x0;_0x1f5644[_0x5dc0d4([0x6d,0x6f,0x64,0x65,0x6c])][_0x5dc0d4([0x6f,0x6e])](_0x5dc0d4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x528d93,_0x489ab5)=>{_0x489ab5[0x0][_0x5dc0d4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x145aad++,_0x145aad==(0x3d8d537^_0xd91c2f)&&(_0x13f4f6(),_0x528d93[_0x5dc0d4([0x6f,0x66,0x66])]());});}))];return window[_0x5dc0d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5dc0d4([0x72,0x61,0x63,0x65])](_0x5f1908)[_0x5dc0d4([0x74,0x68,0x65,0x6e])](()=>_0x2f3b04);}async function _0xd40523(){await _0x38b029,_0x1f5644[_0x5dc0d4([0x6d,0x6f,0x64,0x65,0x6c])][_0x5dc0d4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x20f4dc,_0x1f5644[_0x5dc0d4([0x6d,0x6f,0x64,0x65,0x6c])][_0x5dc0d4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x20f4dc,_0x1f5644[_0x5dc0d4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5dc0d4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x21f4fd(){return _0x1c51a6(_0x5dc0d4([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xd6a87a(_0x5dc0d4([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5dc0d4([0x73,0x74,0x61,0x74,0x65])]==_0x5dc0d4([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x112567(){return _0x1c51a6(_0x5dc0d4([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 _0x4c412a(){return _0x1c51a6(_0x5dc0d4([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x26d073(_0x19be61){const _0x4d1e9d=_0x174e8f();_0x1f5644[_0x4d1e9d]=_0x5dc0d4([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x19be61,_0x19be61!=_0x5dc0d4([0x56,0x61,0x6c,0x69,0x64])&&_0xd40523();}function _0x174e8f(){const _0x599b00=window[_0x5dc0d4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5dc0d4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5dc0d4([0x6e,0x6f,0x77])]())[_0x5dc0d4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5dc0d4([0x2e]),'');let _0x599da8=_0x5dc0d4([0x52]);for(let _0x5ccb98=0x0;_0x5ccb98<_0x599b00[_0x5dc0d4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5ccb98+=0x2){let _0x14cc76=window[_0x5dc0d4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x599b00[_0x5dc0d4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5ccb98,_0x5ccb98+0x2));_0x14cc76>=_0x4c7771[_0x5dc0d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x14cc76-=_0x4c7771[_0x5dc0d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x599da8+=_0x4c7771[_0x14cc76];}return _0x599da8;}function _0x530feb(){const _0x5aa8e6=_0x18bd4e[_0x5dc0d4([0x73,0x70,0x6c,0x69,0x74])](_0x5dc0d4([0x2e]));if(0x3!=_0x5aa8e6[_0x5dc0d4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4fcab4(_0x5aa8e6[0x1]);function _0x4fcab4(_0x5f3381){const _0x15e24a=_0x536e1a(_0x5f3381);return _0x15e24a&&_0x306fca()?_0x15e24a:null;function _0x306fca(){const _0x54bdcd=_0x15e24a[_0x5dc0d4([0x6a,0x74,0x69])],_0x13d30a=window[_0x5dc0d4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x54bdcd[_0x5dc0d4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x54bdcd[_0x5dc0d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x8e23bb={..._0x15e24a,[_0x5dc0d4([0x6a,0x74,0x69])]:_0x54bdcd[_0x5dc0d4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x54bdcd[_0x5dc0d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x8e23bb[_0x5dc0d4([0x76,0x63])],_0xb0f9e(_0x8e23bb)==_0x13d30a;}}}async function _0x510a99(){let _0x3dba0e=!0x0;try{const _0x5ee34c=_0x18bd4e[_0x5dc0d4([0x73,0x70,0x6c,0x69,0x74])](_0x5dc0d4([0x2e])),[_0x201fbd,_0x2bc151,_0x27ff23]=_0x5ee34c;return _0x96dfd0(_0x201fbd),await _0x44498b(_0x201fbd,_0x2bc151,_0x27ff23),_0x3dba0e;}catch{return!0x1;}function _0x96dfd0(_0xa03bea){const _0xe2daf1=_0x536e1a(_0xa03bea);_0xe2daf1&&_0xe2daf1[_0x5dc0d4([0x61,0x6c,0x67])]==_0x5dc0d4([0x45,0x53,0x32,0x35,0x36])||(_0x3dba0e=!0x1);}async function _0x44498b(_0x231673,_0x421190,_0x308393){const _0x245ae6=window[_0x5dc0d4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5dc0d4([0x66,0x72,0x6f,0x6d])](_0x329776(_0x308393),_0x1685da=>_0x1685da[_0x5dc0d4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2c4b1c=new window[(_0x5dc0d4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5dc0d4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x231673+_0x5dc0d4([0x2e])+_0x421190),_0x2f4408=window[_0x5dc0d4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5dc0d4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2f4408)return;const _0xf75b8b=await _0x2f4408[_0x5dc0d4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5dc0d4([0x6a,0x77,0x6b]),_0x5163b0,{[_0x5dc0d4([0x6e,0x61,0x6d,0x65])]:_0x5dc0d4([0x45,0x43,0x44,0x53,0x41]),[_0x5dc0d4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5dc0d4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5dc0d4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2f4408[_0x5dc0d4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5dc0d4([0x6e,0x61,0x6d,0x65])]:_0x5dc0d4([0x45,0x43,0x44,0x53,0x41]),[_0x5dc0d4([0x68,0x61,0x73,0x68])]:{[_0x5dc0d4([0x6e,0x61,0x6d,0x65])]:_0x5dc0d4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xf75b8b,_0x245ae6,_0x2c4b1c)||(_0x3dba0e=!0x1);}}function _0x536e1a(_0x44dd3c){return _0x44dd3c[_0x5dc0d4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5dc0d4([0x65,0x79]))?JSON[_0x5dc0d4([0x70,0x61,0x72,0x73,0x65])](_0x329776(_0x44dd3c)):null;}function _0x329776(_0x405658){return window[_0x5dc0d4([0x61,0x74,0x6f,0x62])](_0x405658[_0x5dc0d4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5dc0d4([0x2b]))[_0x5dc0d4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5dc0d4([0x2f])));}function _0xb0f9e(_0x1aa87e){let _0x5f421f=0x1505;function _0x5bb602(_0x1e394a){for(let _0x23f6d9=0x0;_0x23f6d9<_0x1e394a[_0x5dc0d4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x23f6d9++){const _0x1562b8=_0x1e394a[_0x5dc0d4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x23f6d9);_0x5f421f=(_0x5f421f<<0x5)+_0x5f421f+_0x1562b8,_0x5f421f&=_0x5f421f;}}function _0x22640c(_0x228423){Array[_0x5dc0d4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x228423)?_0x228423[_0x5dc0d4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x22640c):_0x228423&&typeof _0x228423==_0x5dc0d4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5dc0d4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x228423)[_0x5dc0d4([0x73,0x6f,0x72,0x74])]()[_0x5dc0d4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x27683b,_0x2898c6])=>{_0x5bb602(_0x27683b),_0x22640c(_0x2898c6);}):_0x5bb602(window[_0x5dc0d4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x228423));}return _0x22640c(_0x1aa87e),_0x5f421f>>>0x0;}function _0x14fa53(_0x1cbdc3){return _0x1cbdc3[_0x5dc0d4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5dc0d4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5dc0d4([0x30]));}function _0x319b28(_0x3609b5){return _0x3609b5[_0x5dc0d4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5dc0d4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5dc0d4([0x6a,0x6f,0x69,0x6e])]('');}function _0x1c51a6(_0x13cbf0){return _0x1f5644[_0x5dc0d4([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5dc0d4([0x68,0x61,0x73])](_0x13cbf0);}function _0xd6a87a(_0x1b1f87){return _0x1f5644[_0x5dc0d4([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5dc0d4([0x67,0x65,0x74])](_0x1b1f87);}function _0x20f4dc(){}function _0x5dc0d4(_0x2305d0){return _0x2305d0['map'](_0xfcd5be=>String['fromCharCode'](_0xfcd5be))['join']('');}_0x26d073(await _0x39632d());}(this);}set['adapter'](_0x58d3fc){if(this['_adapter'])throw new _0x2608ca('track-changes-adapter-already-set',this);this['_adapter']=_0x58d3fc;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1892e5=!0x1,toJSON:_0x190458=!0x1}={}){const _0x4da23e=[];for(const _0x358e06 of this['_suggestions']['values']())_0x1892e5&&!_0x358e06['isInContent']||_0x4da23e['push'](_0x358e06);return _0x190458?_0x4da23e['map'](_0x56455e=>_0x56455e['toJSON']()):_0x4da23e;}['getSuggestion'](_0x1f463c){const _0x25fb96=this['_suggestions']['get'](_0x1f463c);if(!_0x25fb96)throw new _0x2608ca('track-changes-suggestion-not-found',this);return _0x25fb96;}['hasSuggestion'](_0x314d46){return this['_suggestions']['has'](_0x314d46);}['addSuggestionData'](_0xd7e75f){const {authorId:_0x27eed3,id:_0x544ea8,originalSuggestionId:_0x3a29a9,attributes:_0x6c3b25}=_0xd7e75f,[_0xf4ecd7,_0x3e397f]=_0xd7e75f['type']['split'](':'),_0x4e54b2=this['_suggestions']['get'](_0x544ea8)||this['_createSuggestion'](_0xf4ecd7,_0x3e397f,_0x544ea8,_0x27eed3,_0x6c3b25,_0x3a29a9);if(this['_addThreadToSuggestion'](_0x4e54b2),this['_checkSuggestionCorrectness'](_0x4e54b2,_0xf4ecd7,_0x3e397f||null,_0x27eed3),_0x4e54b2['createdAt']=_0xd7e75f['createdAt'],_0x4e54b2['_isDataLoaded']=!0x0,_0x6c3b25&&_0x6c3b25['@external']){const _0x543033=_0x6c3b25['@external'],_0x471d45=this['_getExternalAuthor'](_0x543033['authorName']);_0x4e54b2['authoredAt']=_0x543033['createdAt'],_0x4e54b2['author']=_0x471d45,_0x4e54b2['isExternal']=!0x0;}else _0x4e54b2['authoredAt']=_0xd7e75f['createdAt'];switch(_0xd7e75f['data']&&(_0x4e54b2['data']=_0xd7e75f['data']),_0xd7e75f['attributes']&&(_0x4e54b2['attributes']=_0xd7e75f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4e54b2['_saved']=!0x0),this['_suggestionState']['get'](_0x4e54b2)){case'notReady':this['_suggestionState']['set'](_0x4e54b2,'dataReady');break;case'markerReady':_0x4e54b2['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4e54b2])),this['_refreshSuggestionsChain'](new Set([_0x4e54b2])),this['_suggestionState']['set'](_0x4e54b2,'ready'),this['fire']('suggestionLoaded',_0x4e54b2)):this['_suggestionState']['set'](_0x4e54b2,'removed');}return _0x4e54b2;}['acceptSuggestion'](_0x3b906a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2fdd5f of _0x3b906a['getAllAdjacentSuggestions']())_0x2fdd5f['accept']();});});}['discardSuggestion'](_0x238e15){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x47a47f of _0x238e15['getAllAdjacentSuggestions']())_0x47a47f['discard']();});});}['enableCommand'](_0x20a799,_0x34ef7a){const _0x21f1b0=this['editor']['commands']['get'](_0x20a799);if(!_0x21f1b0)throw new _0x2608ca('track-changes-command-not-found',this,{'commandName':_0x20a799});if(this['_enabledCommands']['has'](_0x21f1b0))throw new _0x2608ca('track-changes-enable-command-twice',this,{'commandName':_0x20a799});this['_enabledCommands']['add'](_0x21f1b0),_0x34ef7a&&_0x21f1b0['on']('execute',(_0x2baf33,_0x25f497)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x25f497['length']>0x0&&_0x25f497[_0x25f497['length']-0x1]&&_0x25f497[_0x25f497['length']-0x1]['forceDefaultExecution']?_0x25f497['pop']():(_0x2baf33['return']=_0x34ef7a((..._0x1fccb9)=>_0x21f1b0['execute'](..._0x1fccb9,{'forceDefaultExecution':!0x0}),..._0x25f497),_0x2baf33['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4f66dc){let _0x4bdd72,_0xaff001;const _0x31047a=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4bdd72=_0x4f66dc();}catch(_0x9d5979){_0xaff001=_0x9d5979;}return _0x31047a||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xaff001&&_0x2608ca['rethrowUnexpectedError'](_0xaff001,this),_0x4bdd72;}['markInsertion'](_0x1ab621,_0x2a3483=null,_0x25b69a={}){if(_0x1ab621['isCollapsed'])return null;const _0x3807b7=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x25b69a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x25f0e9,meta:_0x4aa944}of this['_findSuggestions'](_0x1ab621,'insertion'))if(_0x4aa944['isOwn']){if(!_0x4aa944['isNextTo']){if(_0x4aa944['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!cn(_0x25f0e9,_0x25b69a))continue;return _0x25f0e9;}if(cn(_0x25f0e9,_0x25b69a))return _0x25f0e9;this['_breakSuggestionMarker'](_0x25f0e9,_0x1ab621['start'],_0x1ab621['end']);break;}if(_0x2a3483==_0x25f0e9['subType']&&cn(_0x25f0e9,_0x25b69a)){const _0x557f82=_0x25f0e9['getFirstRange']();return _0x557f82['start']['isEqual'](_0x1ab621['end'])?this['_setSuggestionRange'](_0x25f0e9,this['_model']['createRange'](_0x1ab621['start'],_0x557f82['end'])):this['_setSuggestionRange'](_0x25f0e9,this['_model']['createRange'](_0x557f82['start'],_0x1ab621['end'])),_0x25f0e9;}}const _0x4b8042=_0x41141f(),_0x2a578c=_0x3807b7['id'],_0x318db4=_0x2a3483?'insertion:'+_0x2a3483:'insertion',_0x531e47=this['_setSuggestionData']({'id':_0x4b8042,'type':_0x318db4,'createdAt':new Date(),'authorId':_0x2a578c,'attributes':_0x25b69a});return this['_addSuggestionMarker'](_0x318db4,_0x4b8042,_0x2a578c,_0x1ab621),_0x531e47;}['markMultiRangeInsertion'](_0x4c91d6,_0x510c21='multi',_0x23d098={}){const _0x5c655b=this['editor']['plugins']['get']('Users')['me'],_0x52425b=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x510c21,'join');this['_trackingSessionId']&&(_0x23d098['trackingSessionId']=this['_trackingSessionId']);for(const _0x52ab00 of this['getSuggestions']())if(_0x52ab00['author']['id']==_0x5c655b['id']&&'insertion'==_0x52ab00['type']&&_0x52ab00['subType']==_0x510c21&&cn(_0x52ab00,_0x23d098)&&(_0x52425b(_0x52ab00['getRanges'](),_0x4c91d6)||_0x52425b(_0x4c91d6,_0x52ab00['getRanges']()))){for(const _0x52a60b of _0x4c91d6)_0x52ab00['addRange'](_0x52a60b);return _0x52ab00;}for(const {suggestion:_0x24e917,meta:_0x5f060d}of this['_findSuggestions'](_0x4c91d6,'insertion')){if(!_0x5f060d['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5f060d['containsRangeInObject'])continue;if(!cn(_0x24e917,_0x23d098))continue;let _0x4af8a7=!0x0;for(const _0x424c3b of _0x24e917['getRanges']())for(const _0x266174 of _0x4c91d6)if(!_0x424c3b['containsRange'](_0x266174)){_0x4af8a7=!0x1;break;}if(_0x4af8a7)return _0x24e917;}const _0x245ce0=_0x41141f(),_0x57ec72=_0x5c655b['id'],_0x31a4fa='insertion:'+_0x510c21,_0x173a6d=this['_setSuggestionData']({'id':_0x245ce0,'type':_0x31a4fa,'createdAt':new Date(),'authorId':_0x57ec72,'attributes':_0x23d098});for(const _0xaf5054 of _0x4c91d6)this['_addSuggestionMarker'](_0x31a4fa,_0x245ce0,_0x57ec72,_0xaf5054,bt['getMultiRangeId']());return _0x173a6d;}['markInlineFormat'](_0x2afa12,_0x20c619,_0x233257=null,_0x2e3f61={}){if(_0x233257=_0x233257||Je(_0x20c619),_0x2afa12['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x2e3f61['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xbec34d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x233257,'accept');return this['forceDefaultExecution'](()=>_0xbec34d([_0x2afa12],_0x20c619,_0x2e3f61)),null;}const _0x357743=this['editor']['plugins']['get']('Users')['me'],_0x3e4840=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4e5bc1,meta:_0xd3f7b7}of this['_findSuggestions'](_0x2afa12,'insertion'))_0xd3f7b7['isOwn']&&!_0xd3f7b7['isInsideObject']&&_0x3e4840['push'](..._0x4e5bc1['getRanges']());}const _0x46280e=function(_0x43349e,_0x21d43c){const _0x5d6b39=[];for(const _0x3922f2 of _0x21d43c){const _0x2dcc46=_0x43349e['getIntersection'](_0x3922f2);_0x2dcc46&&_0x5d6b39['push'](_0x2dcc46);}return _0x5d6b39;}(_0x2afa12,_0x3e4840),_0x5b1fdc=function(_0x2c10e9,_0x2bf48b){const _0x1cac8d=[_0x2c10e9];for(const _0x27d343 of _0x2bf48b){let _0x31aea5=0x0;for(;_0x31aea5<_0x1cac8d['length'];){const _0x1a46ff=_0x1cac8d[_0x31aea5]['getDifference'](_0x27d343);_0x1cac8d['splice'](_0x31aea5,0x1,..._0x1a46ff),_0x31aea5+=_0x1a46ff['length'];}}return _0x1cac8d;}(_0x2afa12,_0x3e4840);_0x46280e['length']&&this['_model']['change'](()=>{for(const _0x46663d of _0x46280e){const _0x3b1d00=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x233257,'accept');this['forceDefaultExecution'](()=>_0x3b1d00([_0x46663d],_0x20c619,_0x2e3f61));}});for(const _0x271516 of _0x5b1fdc){let _0x1b2010=null,_0xcb0af0=_0x271516['start'],_0x3cdc33=_0x271516['end'];for(const {suggestion:_0x5f2f1b,meta:_0x1d9038}of this['_findSuggestions'](_0x271516,'formatInline')){if(!_0x1d9038['isOwn'])continue;if(_0x5f2f1b['subType']!=_0x233257)continue;if(!cn(_0x5f2f1b,_0x2e3f61))continue;const _0x3ffdbd=_0x5f2f1b['getFirstRange']();if(_0x3ffdbd['containsRange'](_0x271516,!0x0))return null;_0xcb0af0=_0xcb0af0['isBefore'](_0x3ffdbd['start'])?_0xcb0af0:_0x3ffdbd['start'],_0x3cdc33=_0x3cdc33['isAfter'](_0x3ffdbd['end'])?_0x3cdc33:_0x3ffdbd['end'],_0x1b2010?_0x3ffdbd['start']['isBefore'](_0x1b2010['getFirstRange']()['start'])?(_0x1b2010['removeMarkers'](),_0x1b2010=_0x5f2f1b):_0x5f2f1b['removeMarkers']():_0x1b2010=_0x5f2f1b;}const _0x49bd9a=this['_model']['createRange'](_0xcb0af0,_0x3cdc33);if(_0x1b2010)this['_setSuggestionRange'](_0x1b2010,_0x49bd9a);else{const _0x1b28fe=_0x41141f(),_0x1a0f63=_0x357743['id'];this['_setSuggestionData']({'id':_0x1b28fe,'type':'formatInline:'+_0x233257,'data':_0x20c619,'createdAt':new Date(),'authorId':_0x1a0f63,'attributes':_0x2e3f61}),this['_addSuggestionMarker']('formatInline:'+_0x233257,_0x1b28fe,_0x1a0f63,_0x49bd9a);}}return null;}['markBlockFormat'](_0x4e02a1,_0x3e5d3d,_0x46d793=[],_0x163c66=null,_0xaec5ce={}){_0x3e5d3d['formatGroupId']||(_0x3e5d3d['formatGroupId']=_0x3e5d3d['commandName']),_0x3e5d3d['multipleBlocks']=_0x4e02a1['is']('range'),_0x163c66=_0x163c66||Je(_0x3e5d3d);const _0xf3b16d=_0x46d793['map'](_0x317163=>rn(_0x317163,this['_model'])),_0x6f253a=_0x4e02a1['is']('range')?_0x4e02a1:rn(_0x4e02a1,this['_model']);if(this['_trackingSessionId']&&(_0xaec5ce['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x37e005=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x163c66,'accept');return this['forceDefaultExecution'](()=>_0x37e005([_0x6f253a],_0x3e5d3d,_0xaec5ce)),null;}_0xf3b16d['push'](_0x6f253a);let _0x1253d6=!0x0;for(const _0xbb6b51 of _0xf3b16d)if(!this['_rangeIsInLocalUserInsertion'](_0xbb6b51)){_0x1253d6=!0x1;break;}if(_0x1253d6&&'always'!==this['_trackFormatChanges']){const _0x3551a6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x163c66,'accept');return this['forceDefaultExecution'](()=>_0x3551a6([_0x6f253a],_0x3e5d3d,_0xaec5ce)),null;}let _0x3eb90a=null,_0x27df7e=_0x6f253a['start'],_0x144fa5=_0x6f253a['end'];for(const {suggestion:_0x19658a,meta:_0x4bc0ed}of this['_findSuggestions'](_0x6f253a,'formatBlock')){if(!_0x4bc0ed['isOwn'])continue;if(_0x4bc0ed['isNextTo']||_0x4bc0ed['containsRangeInObject']||_0x4bc0ed['isInsideObject'])continue;if(_0x19658a['data']['formatGroupId']!=_0x3e5d3d['formatGroupId'])continue;if(!cn(_0x19658a,_0xaec5ce))continue;const _0x4e36ad=_0x19658a['getFirstRange']();if(_0x19658a['subType']==_0x163c66){if(_0x4e36ad['containsRange'](_0x6f253a,!0x0))return null;_0x27df7e=_0x27df7e['isBefore'](_0x4e36ad['start'])?_0x27df7e:_0x4e36ad['start'],_0x144fa5=_0x144fa5['isAfter'](_0x4e36ad['end'])?_0x144fa5:_0x4e36ad['end'],_0x3eb90a?_0x4e36ad['start']['isBefore'](_0x3eb90a['getFirstRange']()['start'])?(_0x3eb90a['removeMarkers'](),_0x3eb90a=_0x19658a):_0x19658a['removeMarkers']():_0x3eb90a=_0x19658a;}else{const _0x224f69=_0x6f253a['getIntersection'](_0x4e36ad);this['_cutOutSuggestionMarker'](_0x19658a,_0x224f69);}}const _0x47f122=this['editor']['plugins']['get']('Users')['me'],_0x1a7cb8=_0x41141f(),_0x4dae29=_0x47f122['id'];if(_0x3eb90a)return this['_setSuggestionRange'](_0x3eb90a,this['_model']['createRange'](_0x27df7e,_0x144fa5)),_0x3eb90a;{const _0x58f3a4=this['_setSuggestionData']({'id':_0x1a7cb8,'type':'formatBlock:'+_0x163c66,'data':_0x3e5d3d,'createdAt':new Date(),'authorId':_0x4dae29,'attributes':_0xaec5ce});return this['_addSuggestionMarker']('formatBlock:'+_0x163c66,_0x1a7cb8,_0x4dae29,this['_model']['createRange'](_0x27df7e,_0x144fa5)),_0x58f3a4;}}['markMultiRangeBlockFormat'](_0x5b2342,_0x16c6fc,_0x873459=[],_0x5d3120=null,_0x4ed99d={}){_0x16c6fc['formatGroupId']||(_0x16c6fc['formatGroupId']=_0x16c6fc['commandName']);const _0x1f3df9=_0x5b2342[0x0];_0x16c6fc['multipleBlocks']=_0x1f3df9['is']('range'),_0x5d3120=_0x5d3120||Je(_0x16c6fc);const _0x572e7e=_0x873459['map'](_0x3bd6b6=>rn(_0x3bd6b6,this['_model'])),_0x5e1dcd=_0x1f3df9['is']('range')?_0x5b2342:_0x5b2342['map'](_0x486387=>rn(_0x486387,this['_model']));if(this['_trackingSessionId']&&(_0x4ed99d['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x32d6a6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5d3120,'accept');return this['forceDefaultExecution'](()=>_0x32d6a6(_0x5e1dcd,_0x16c6fc,_0x4ed99d)),null;}_0x572e7e['push'](..._0x5e1dcd);let _0xbb3c61=!0x0;for(const _0x114b54 of _0x572e7e)if(!this['_rangeIsInLocalUserInsertion'](_0x114b54)){_0xbb3c61=!0x1;break;}if(_0xbb3c61&&'always'!==this['_trackFormatChanges']){const _0x4aeb76=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5d3120,'accept');return this['forceDefaultExecution'](()=>_0x4aeb76(_0x5e1dcd,_0x16c6fc,_0x4ed99d)),null;}const _0xd24df8=this['editor']['plugins']['get']('Users')['me'];for(const _0x56734a of this['getSuggestions']()){const _0x175014=_0x56734a['data'];if(_0x56734a['author']['id']!=_0xd24df8['id'])continue;if('formatBlock'!=_0x56734a['type']||_0x175014['formatGroupId']!=_0x16c6fc['formatGroupId'])continue;if(!cn(_0x56734a,_0x4ed99d))continue;const _0x1b8514=_0x56734a['subType']==_0x5d3120;for(let _0x9c1cac=0x0;_0x9c1cac<_0x5e1dcd['length'];_0x9c1cac++){const _0x491f10=_0x5e1dcd[_0x9c1cac];for(const _0x4841bb of _0x56734a['getMarkers']()){const _0x14d5b9=_0x4841bb['getRange']();if(_0x491f10['isEqual'](_0x14d5b9)){_0x1b8514?(_0x5e1dcd['splice'](_0x9c1cac,0x1),_0x9c1cac--):_0x56734a['removeMarker'](_0x4841bb['name']);break;}}}}if(0x0==_0x5e1dcd['length'])return null;const _0x109691=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5d3120,'join');for(const _0x1498e7 of this['getSuggestions']()){const _0x4535aa=_0x1498e7['data'];if(_0x1498e7['author']['id']==_0xd24df8['id']&&('formatBlock'==_0x1498e7['type']&&_0x4535aa['formatGroupId']==_0x16c6fc['formatGroupId']&&_0x1498e7['subType']==_0x5d3120&&cn(_0x1498e7,_0x4ed99d)&&(_0x109691(_0x1498e7['getRanges'](),_0x5e1dcd)||_0x109691(_0x5e1dcd,_0x1498e7['getRanges']())))){for(const _0x58c1e2 of _0x5e1dcd)_0x1498e7['addRange'](_0x58c1e2);return _0x1498e7;}}const _0x13a6cc=_0x41141f(),_0x2ab923=_0xd24df8['id'],_0x2a21d6='formatBlock:'+_0x5d3120,_0x5c52e8=this['_setSuggestionData']({'id':_0x13a6cc,'type':_0x2a21d6,'data':_0x16c6fc,'createdAt':new Date(),'authorId':_0x2ab923,'attributes':_0x4ed99d});for(const _0x306c18 of _0x5e1dcd)this['_addSuggestionMarker'](_0x2a21d6,_0x13a6cc,_0x2ab923,_0x306c18,bt['getMultiRangeId']());return _0x5c52e8;}['markDeletion'](_0x2692dc,_0x38dde5=null,_0x1e575e={}){if(_0x2692dc['isCollapsed'])return null;const _0x4fae7e=this['editor']['plugins']['get']('Users')['me'],_0x27e383=new _0x2725ec(_0x2692dc['start'],_0x2692dc['end']);this['_trackingSessionId']&&(_0x1e575e['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3ad466,meta:_0x30e87b}of this['_findSuggestions'](_0x27e383,'insertion'))if(_0x30e87b['isOwn']&&!_0x30e87b['isNextTo']){if(_0x3ad466['isMultiRange']){const _0x54ebfa=_0x3ad466['getRanges']()['filter'](_0x301857=>'$graveyard'!=_0x301857['root']['rootName']);_0x54ebfa['every'](_0x38e795=>_0x27e383['containsRange'](_0x38e795,!0x0))&&_0x3ad466['discard']();if(_0x54ebfa['some'](_0x2b094f=>_0x2b094f['containsRange'](_0x27e383,!0x0))){const _0xc7668b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x38dde5,'accept');return this['forceDefaultExecution'](()=>_0xc7668b([_0x27e383],null,_0x1e575e)),null;}}else{const _0x3bf903=_0x27e383['getIntersection'](_0x3ad466['getFirstRange']());null!==_0x3bf903&&_0x3ad466['_onDiscard']([_0x3bf903],null,_0x1e575e);}}if(_0x27e383['detach'](),_0x27e383['isCollapsed']||'$graveyard'==_0x27e383['root']['rootName'])return null;let _0x897b14=null,_0x5814bf=_0x27e383['start'],_0x13dc96=_0x27e383['end'];const _0x2816e7=this['_findSuggestions'](_0x27e383,'deletion');for(const {suggestion:_0x2c83cb,meta:_0x48e505}of _0x2816e7){const _0x17f398=this['_model']['createRange'](_0x5814bf,_0x13dc96);if(_0x48e505['isOwn']&&(this['_mergeNestedSuggestions']||!_0x48e505['containsRangeInObject']&&!_0x48e505['isInsideObject'])){if(_0x2c83cb['isMultiRange']){if(!cn(_0x2c83cb,_0x1e575e))continue;let _0x2d3912=!0x0;for(const _0x38081e of _0x2c83cb['getRanges']()){if(_0x38081e['containsRange'](_0x17f398,!0x0))return _0x2c83cb;_0x17f398['containsRange'](_0x38081e)||(_0x2d3912=!0x1);}_0x2d3912&&_0x2c83cb['discard']();}else{const _0x369beb=_0x2c83cb['getFirstRange']();if(_0x369beb['containsRange'](_0x17f398,!0x0))return _0x2c83cb;if(!cn(_0x2c83cb,_0x1e575e)){_0x17f398['containsRange'](_0x369beb)?_0x2c83cb['removeMarkers']():_0x369beb['containsPosition'](_0x5814bf)?_0x5814bf=_0x369beb['end']:_0x369beb['containsPosition'](_0x13dc96)&&(_0x13dc96=_0x369beb['start']);continue;}_0x5814bf=_0x5814bf['isBefore'](_0x369beb['start'])?_0x5814bf:_0x369beb['start'],_0x13dc96=_0x13dc96['isAfter'](_0x369beb['end'])?_0x13dc96:_0x369beb['end'],_0x1e575e=Object['assign']({},_0x2c83cb['attributes']),_0x897b14?_0x369beb['start']['isBefore'](_0x897b14['getFirstRange']()['start'])?(_0x897b14['removeMarkers'](),_0x897b14=_0x2c83cb):_0x2c83cb['removeMarkers']():_0x897b14=_0x2c83cb;}}}if(_0x897b14)return this['_setSuggestionRange'](_0x897b14,this['_model']['createRange'](_0x5814bf,_0x13dc96)),_0x897b14;{const _0x14b2ab=_0x41141f(),_0x403059=this['_model']['createRange'](_0x5814bf,_0x13dc96),_0x1f950b=_0x4fae7e['id'],_0xd7e1ad=_0x38dde5?'deletion:'+_0x38dde5:'deletion',_0x319902=this['_setSuggestionData']({'id':_0x14b2ab,'type':_0xd7e1ad,'createdAt':new Date(),'authorId':_0x1f950b,'attributes':_0x1e575e});return this['_addSuggestionMarker'](_0xd7e1ad,_0x14b2ab,_0x1f950b,_0x403059),_0x319902;}}['markMultiRangeDeletion'](_0x48dc46,_0x5c6942='multi',_0x345126={}){const _0x2468dc=this['editor']['plugins']['get']('Users')['me'],_0x5f544d=_0x48dc46['map'](_0xe001e6=>new _0x2725ec(_0xe001e6['start'],_0xe001e6['end'])),_0x3d05c3=new Set();this['_trackingSessionId']&&(_0x345126['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x41aa04,meta:_0x15405d}of this['_findSuggestions'](_0x5f544d,'insertion'))_0x15405d['isOwn']&&!_0x15405d['isNextTo']&&_0x3d05c3['add'](_0x41aa04);for(const _0x737ba4 of _0x3d05c3)if(_0x737ba4['isMultiRange']){const _0x1621bc=_0x737ba4['getRanges']();(!_0x737ba4['attributes']||!_0x737ba4['attributes']['skipNestingCheck'])&&(_0x1621bc['every'](_0xb2e481=>_0x5f544d['some'](_0x352ec2=>_0x352ec2['containsRange'](_0xb2e481,!0x0)))&&_0x737ba4['discard']());if(_0x5f544d['every'](_0x2704f8=>_0x1621bc['some'](_0x4bcd33=>_0x4bcd33['containsRange'](_0x2704f8,!0x0)))){const _0x39124b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5c6942,'accept');return this['forceDefaultExecution'](()=>_0x39124b(_0x48dc46,null,_0x345126)),null;}}else{const _0x7ba200=_0x737ba4['getFirstRange']();_0x5f544d['some'](_0x9bb9c7=>_0x9bb9c7['containsRange'](_0x7ba200,!0x0))&&_0x737ba4['discard']();if(_0x5f544d['every'](_0x43bc70=>_0x7ba200['containsRange'](_0x43bc70,!0x0))){const _0x2a3e6e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5c6942,'accept');return this['forceDefaultExecution'](()=>_0x2a3e6e(_0x5f544d,null,_0x345126)),null;}}const _0x2a5953=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5c6942,'join');let _0x4bdc2a=null;for(const _0x5b4c08 of this['getSuggestions']())if(_0x5b4c08['author']['id']==_0x2468dc['id']&&_0x5b4c08['isInContent']&&'deletion'==_0x5b4c08['type']&&_0x5b4c08['subType']==_0x5c6942&&cn(_0x5b4c08,_0x345126)&&(_0x2a5953(_0x5b4c08['getRanges'](),_0x5f544d)||_0x2a5953(_0x5f544d,_0x5b4c08['getRanges']()))){if(_0x4bdc2a){if(_0x5b4c08['commentThread']&&_0x5b4c08['commentThread']['length'])continue;for(const _0x17bd12 of _0x5b4c08['getRanges']())_0x4bdc2a['isIntersectingWithRange'](_0x17bd12)||_0x4bdc2a['addRange'](_0x17bd12);_0x5b4c08['removeMarkers']();}else{_0x4bdc2a=_0x5b4c08;for(const _0x1669ce of _0x5f544d)_0x5b4c08['isIntersectingWithRange'](_0x1669ce)||_0x5b4c08['addRange'](_0x1669ce);}}if(_0x4bdc2a)return _0x4bdc2a;_0x3d05c3['clear']();for(const {suggestion:_0x23bc79,meta:_0x4ae1a1}of this['_findSuggestions'](_0x5f544d,'deletion'))_0x4ae1a1['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4ae1a1['containsRangeInObject']&&!_0x4ae1a1['isInsideObject'])&&cn(_0x23bc79,_0x345126)&&_0x3d05c3['add'](_0x23bc79);for(const _0x2a6d69 of _0x3d05c3){const _0x4896f6=_0x2a6d69['getRanges']();if(!_0x345126||!_0x345126['skipNestingCheck']){if(_0x5f544d['every'](_0x393c11=>_0x4896f6['some'](_0x2fdbec=>_0x2fdbec['containsRange'](_0x393c11,!0x0))))return _0x2a6d69;}(!_0x2a6d69['attributes']||!_0x2a6d69['attributes']['skipNestingCheck'])&&(_0x4896f6['every'](_0x6c770d=>_0x5f544d['some'](_0x361c7f=>_0x361c7f['containsRange'](_0x6c770d,!0x0)))&&_0x2a6d69['discard']());}const _0x21de3e=_0x41141f(),_0x434f0c=_0x2468dc['id'],_0x2de096='deletion:'+_0x5c6942,_0xa922ed=this['_setSuggestionData']({'id':_0x21de3e,'type':_0x2de096,'createdAt':new Date(),'authorId':_0x434f0c,'attributes':_0x345126});for(const _0x5759cc of _0x5f544d)_0x5759cc['detach'](),_0x5759cc['isCollapsed']||'$graveyard'==_0x5759cc['root']['rootName']||this['_addSuggestionMarker'](_0x2de096,_0x21de3e,_0x434f0c,_0x5759cc,bt['getMultiRangeId']());return _0xa922ed;}['markAttributeChange'](_0x13656c,_0x181b12,_0xb4954d,_0x33721a,_0x3e333e){if(_0x13656c['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x28010b=this['editor']['plugins']['get']('Users')['me']['id'],_0x2cae34=Array['from'](this['_suggestions']['values']())['filter'](_0x57a2c0=>'attribute'==_0x57a2c0['type']&&_0x57a2c0['data']['key']==_0x181b12&&_0x57a2c0['isIntersectingWithRange'](_0x13656c));if(this['_trackingSessionId']&&(_0x3e333e['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x2daaa8=this['_findSuggestions'](_0x13656c,'insertion')['filter'](({meta:_0x460529})=>_0x460529['isOwn']&&!_0x460529['isInsideObject']&&!_0x460529['isNextTo'])['map'](({suggestion:_0x5be4a6})=>_0x5be4a6);_0x2cae34['unshift'](..._0x2daaa8);}const _0x5cad85=new Map([[_0x13656c,_0xb4954d]]);for(const _0x4baab9 of _0x2cae34){const _0x521abf='attribute'==_0x4baab9['type']?_0x4baab9['data']['oldValue']:void 0x0,_0x2e16d2=_0x4baab9['getFirstRange'](),_0x19e90d=Array['from'](_0x5cad85['keys']())['find'](_0x65c2a3=>_0x65c2a3['isIntersecting'](_0x2e16d2));if(!_0x19e90d)continue;const _0x137fc2=_0x19e90d['getDifference'](_0x2e16d2);this['_suggestionsConversion']['isBlockAttribute'](_0x181b12)&&'insertion'==_0x4baab9['type']&&0x0!=_0x137fc2['length']||(_0x5cad85['delete'](_0x19e90d),_0x137fc2['forEach'](_0x5ef5a2=>{_0x5cad85['set'](_0x5ef5a2,_0xb4954d);}),'insertion'!=_0x4baab9['type']&&_0x521abf!=_0x33721a&&_0x5cad85['set'](_0x19e90d['getIntersection'](_0x2e16d2),_0x521abf));}const _0xf18f5c=[];for(const [_0x5a1685,_0x4c84f2]of _0x5cad85){const _0x291b11=_0x41141f(),_0x5e87c0={'key':_0x181b12,'oldValue':_0x4c84f2,'newValue':_0x33721a};_0x181b12['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':_0x181b12});const _0x1b5f79=('attribute:'+(_0x181b12+'|'+Je({'newValue':_0x33721a})))['substring'](0x0,0x3c),_0x40be78=this['_setSuggestionData']({'id':_0x291b11,'type':_0x1b5f79,'data':_0x5e87c0,'createdAt':new Date(),'authorId':_0x28010b,'attributes':_0x3e333e});_0xf18f5c['push'](_0x40be78),this['_addSuggestionMarker'](_0x1b5f79,_0x291b11,_0x28010b,_0x5a1685);}return _0xf18f5c;}['enableDefaultAttributesIntegration'](_0x3ba466){this['enableCommand'](_0x3ba466,(_0x4c2466,..._0x3ff929)=>{this['recordAttributeChanges'](()=>{_0x4c2466(..._0x3ff929);});});}['startTrackingSession'](_0x9d7bd9){return this['_trackingSessionId']=void 0x0!==_0x9d7bd9?_0x9d7bd9:_0x41141f(),this['_trackingSessionId'];}['_getAttributeKey'](_0x4945d3){return'attribute'==_0x4945d3['type']?un(_0x4945d3['subType']):null;}['_applyOperationsAsSuggestions'](_0x1c09a8){if(0x0==_0x1c09a8['length'])return;const _0x4013b0=this['editor'],_0x46bc83=_0x4013b0['plugins']['get'](_0x108ee7),_0x4489bd=[];_0x4013b0['model']['change'](_0x11de10=>{for(let _0x3a846d=0x0;_0x3a846d<_0x1c09a8['length'];_0x3a846d++){const _0x353d39=_0x1c09a8[_0x3a846d];if(_0x353d39['baseVersion']=_0x4013b0['model']['document']['version'],_0x353d39['isDocumentOperation']=!0x0,_0x46bc83['isMarkedRemoveOperation'](_0x353d39)){const _0x122a42=_0x291558(_0x353d39['newRange'],_0x4013b0['model']);_0x4489bd['unshift'](_0x2725ec['fromRange'](_0x122a42));}else switch(_0x353d39['type']){case'rename':{const _0x1fb185=_0x353d39['oldName'],_0x366010=_0x353d39['newName'];if(_0x1fb185==_0x366010)break;_0x11de10['batch']['addOperation'](_0x353d39),_0x4013b0['model']['applyOperation'](_0x353d39);const _0x41a7e7='$elementName',_0x3fb82b=_0x353d39['position'],_0x49de8b=_0x4013b0['model']['createRange'](_0x3fb82b,_0x4013b0['model']['createPositionAt'](_0x3fb82b['nodeAfter'],'end'));this['markAttributeChange'](_0x49de8b,_0x41a7e7,_0x1fb185,_0x366010,{'groupId':_0x41141f()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x294277=_0x353d39['oldValue'],_0x19a843=_0x353d39['newValue'];if(_0x294277==_0x19a843)break;_0x11de10['batch']['addOperation'](_0x353d39),_0x4013b0['model']['applyOperation'](_0x353d39);const _0x5a397c=_0x353d39['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x5a397c))break;const _0x3db671=_0x291558(_0x353d39['range'],_0x4013b0['model']);this['markAttributeChange'](_0x3db671,_0x5a397c,_0x294277,_0x19a843,{'groupId':_0x41141f()});break;}case'insert':{_0x11de10['batch']['addOperation'](_0x353d39),_0x4013b0['model']['applyOperation'](_0x353d39);if(_0x1c09a8[_0x3a846d+0x1]&&'move'==_0x1c09a8[_0x3a846d+0x1]['type'])break;const _0x3e571d=_0x353d39['position'],_0x42c603=_0x353d39['howMany'],_0x7ca8ba=_0x291558(_0x4013b0['model']['createRange'](_0x3e571d,_0x3e571d['getShiftedBy'](_0x42c603)),_0x4013b0['model']);this['markInsertion'](_0x7ca8ba);break;}case'split':{_0x11de10['batch']['addOperation'](_0x353d39),_0x4013b0['model']['applyOperation'](_0x353d39);const _0x126998=_0x353d39['splitPosition'],_0x539f76=_0x353d39['moveTargetPosition'];this['markInsertion'](_0x4013b0['model']['createRange'](_0x126998,_0x539f76));break;}case'move':case'remove':_0x11de10['batch']['addOperation'](_0x353d39),_0x4013b0['model']['applyOperation'](_0x353d39);}}for(const _0x16a230 of _0x4489bd)_0x16a230['detach'](),this['markDeletion'](_0x16a230);});}['_setSuggestionRange'](_0x396925,_0x571480){const _0x2555e5=_0x396925['getFirstMarker']();this['_model']['change'](_0x9b72cf=>{_0x9b72cf['updateMarker'](_0x2555e5,{'range':_0x571480});});}['_addThreadToSuggestion'](_0x42b8b1){const _0x40faad=_0x42b8b1['id'],_0xf15cbf=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x40faad)||this['_commentsRepository']['addCommentThread']({'channelId':_0xf15cbf,'threadId':_0x40faad,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x49d882=this['_commentsRepository']['getCommentThread'](_0x40faad);_0x49d882['unbind']('isRemovable'),_0x49d882['isRemovable']=!0x1,_0x42b8b1['commentThread']=_0x49d882;}['_checkSuggestionCorrectness'](_0x12573a,_0x113216,_0x4db12b,_0x3fd125){if(_0x12573a['type']!=_0x113216||_0x12573a['subType']!=_0x4db12b||_0x12573a['creator']['id']!=_0x3fd125)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2608ca('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x23fe6c,_0x5a72cd){const _0x31cfc2=_0x23fe6c['getFirstRange']();if(_0x5a72cd['isEqual'](_0x31cfc2))_0x23fe6c['removeMarkers']();else{if(_0x31cfc2['containsRange'](_0x5a72cd)){const _0x3f18b=this['_model']['createPositionAt'](_0x5a72cd['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x23fe6c,this['_model']['createRange'](_0x31cfc2['start'],_0x3f18b));const _0x3cdbf4=_0x41141f(),_0x1ae9c3=_0x23fe6c['creator']['id'],_0x152e2a=_0x23fe6c['type']+':'+_0x23fe6c['subType'];this['_setSuggestionData']({'id':_0x3cdbf4,'type':_0x152e2a,'createdAt':new Date(),'authorId':_0x1ae9c3,'data':_0x23fe6c['data'],'attributes':_0x23fe6c['attributes']});const _0x3c1136=this['_model']['createPositionAt'](_0x5a72cd['end']['parent'],'after'),_0x19cd31=this['_model']['createRange'](_0x3c1136,_0x31cfc2['end']);this['_addSuggestionMarker'](_0x152e2a,_0x3cdbf4,_0x1ae9c3,_0x19cd31);}else{if(_0x31cfc2['containsPosition'](_0x5a72cd['start'])){const _0x42df8e=this['_model']['createPositionAt'](_0x5a72cd['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x23fe6c,this['_model']['createRange'](_0x31cfc2['start'],_0x42df8e));}else{const _0xf7bdce=this['_model']['createPositionAt'](_0x5a72cd['end']['parent'],'after');this['_setSuggestionRange'](_0x23fe6c,this['_model']['createRange'](_0xf7bdce,_0x31cfc2['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x27b0cf){for(const {suggestion:_0x1df3e5,meta:_0x1d63b6}of this['_findSuggestions'](_0x27b0cf,'insertion')){if(!_0x1d63b6['isOwn'])continue;const _0x17005e=_0x1df3e5['getRanges']();for(const _0x289c9f of _0x17005e)if(!_0x27b0cf['getDifference'](_0x289c9f)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x11e520){return this['editor']['plugins']['get']('Users')['getUser'](_0x11e520);}['_getExternalAuthor'](_0x1fd8ed){const _0x4ed58c=this['editor']['plugins']['get']('Users'),_0x2b52e3=_0x5e24f9('external:'+_0x1fd8ed),_0x30d57e=_0x4ed58c['getUser'](_0x2b52e3);return _0x30d57e||_0x4ed58c['addUser']({'id':_0x2b52e3,'name':_0x1fd8ed});}['_createSuggestion'](_0x5f4544,_0x38865e,_0x5c6a8c,_0x30c8b4,_0x31b418,_0x564e83){const _0x1bd857=this['_getAuthorFromId'](_0x30c8b4);if(!_0x1bd857)throw new _0x2608ca('track-changes-user-not-found',this,{'authorId':_0x30c8b4,'suggestionId':_0x5c6a8c});const _0x513a95=this['_suggestionFactory']['buildSuggestion'](_0x5f4544,_0x38865e,_0x5c6a8c,_0x1bd857,_0x31b418,_0x16ff72=>{this['_updateSuggestionData'](_0x5c6a8c,{'attributes':_0x16ff72});const _0xff8200=this['getSuggestion'](_0x5c6a8c);this['_joinWithAdjacentSuggestions'](new Set([_0xff8200])),this['_refreshSuggestionsChain'](new Set([_0xff8200]));},_0x564e83);return this['listenTo'](_0x513a95,'accept',()=>{this['_updateSuggestionData'](_0x5c6a8c,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x513a95,'discard',()=>{this['_updateSuggestionData'](_0x5c6a8c,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5c6a8c,_0x513a95),this['_suggestionState']['set'](_0x513a95,'notReady'),_0x513a95;}['_breakSuggestionMarker'](_0x3a2c8d,_0x1e3996,_0x3e0aa6){const _0x2b6866=_0x3a2c8d['getFirstRange'](),_0x4728ca=_0x2b6866['start'],_0xbac84c=_0x2b6866['end'];this['_setSuggestionRange'](_0x3a2c8d,this['_model']['createRange'](_0x4728ca,_0x1e3996));const _0x4d582a=_0x41141f(),_0x270f32=_0x3a2c8d['creator']['id'],_0x147d8c=_0x3a2c8d['type']+(_0x3a2c8d['subType']?':'+_0x3a2c8d['subType']:'');this['_setSuggestionData']({'id':_0x4d582a,'type':_0x147d8c,'createdAt':new Date(),'authorId':_0x270f32,'originalSuggestionId':_0x3a2c8d['_originalSuggestionId']||_0x3a2c8d['id'],'attributes':_0x3a2c8d['attributes'],'data':_0x3a2c8d['data']});const _0x102559=this['_getAttributeKey'](_0x3a2c8d);('formatBlock'==_0x3a2c8d['type']||_0x102559&&this['_suggestionsConversion']['isBlockAttribute'](_0x102559))&&(_0x3e0aa6=this['_model']['createPositionBefore'](_0x3e0aa6['parent'])),this['_addSuggestionMarker'](_0x147d8c,_0x4d582a,_0x270f32,this['_model']['createRange'](_0x3e0aa6,_0xbac84c));}['_findSuggestions'](_0x58b782,_0x145950=null){const _0xe564bd=[],_0x36070d=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x58b782)||(_0x58b782=[_0x58b782]);for(const _0xec159c of this['getSuggestions']()){if(!_0xec159c['isInContent'])continue;if(_0x145950&&_0xec159c['type']!=_0x145950)continue;let _0x1c5235=!0x1;for(const _0x292d47 of _0xec159c['getRanges']()){for(const _0x456ff4 of _0x58b782){const _0x2bbbc6=_0x456ff4['start']['isEqual'](_0x292d47['end'])||_0x456ff4['end']['isEqual'](_0x292d47['start']);if(_0x2bbbc6||_0x456ff4['getIntersection'](_0x292d47)){const _0x2ea13a=_0x456ff4['containsRange'](_0x292d47)&&qe(this['_model']['schema'],_0x292d47['start'],_0x456ff4),_0x2edbb5=_0x292d47['containsRange'](_0x456ff4)&&qe(this['_model']['schema'],_0x456ff4['start'],_0x292d47);_0xe564bd['push']({'suggestion':_0xec159c,'meta':{'isOwn':_0x36070d==_0xec159c['author'],'isNextTo':_0x2bbbc6,'isInsideObject':_0x2ea13a,'containsRangeInObject':_0x2edbb5}}),_0x1c5235=!0x0;break;}}if(_0x1c5235)break;}}return _0xe564bd;}['_addSuggestionMarker'](_0x4804ff,_0x45a3f5,_0x38e356,_0x1be257,_0x439e49){this['_model']['change'](_0x5bea17=>{let _0x40511f='suggestion:'+_0x4804ff+':'+_0x45a3f5+':'+_0x38e356;_0x439e49&&(_0x40511f=_0x40511f+':'+_0x439e49),_0x5bea17['addMarker'](_0x40511f,{'range':_0x1be257,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x21dd22){const _0x81054b=_0x21dd22['previous'],_0x3cf342=_0x21dd22['next'];_0x21dd22['previous']=null,_0x21dd22['next']=null,null!=_0x81054b&&_0x81054b['next']==_0x21dd22&&(_0x81054b['next']=_0x3cf342),null!=_0x3cf342&&_0x3cf342['previous']==_0x21dd22&&(_0x3cf342['previous']=_0x81054b),'ready'==this['_suggestionState']['get'](_0x21dd22)&&(this['_suggestionState']['set'](_0x21dd22,'removed'),this['fire']('suggestionUnloaded',_0x21dd22,_0x81054b,_0x3cf342));}['_setSuggestionData'](_0x3d992d){const _0xb7d487=_0x3d992d['id'],_0x1c5004=this['addSuggestionData'](_0x3d992d);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x215b46=this['editor']['plugins']['get']('PendingActions'),_0x12565c=_0x1c5004['hasComments'],_0x1a99a1=_0x1c5004['subType']?_0x1c5004['type']+':'+_0x1c5004['subType']:_0x1c5004['type'],_0x3d38f3=this['editor']['locale'],_0x93095=_0x215b46['add'](At(_0x3d38f3,'PENDING_ACTION_SUGGESTION')),_0x4dfc4c={'id':_0xb7d487,'type':_0x1a99a1,'hasComments':_0x12565c,'data':_0x3d992d['data']||null,'originalSuggestionId':_0x3d992d['originalSuggestionId']||null,'attributes':_0x1c5004['attributes']};this['_adapter']['addSuggestion'](_0x4dfc4c)['then'](_0x4e546c=>{_0x1c5004['_saved']=!0x0,_0x215b46['remove'](_0x93095),_0x4e546c&&_0x4e546c['createdAt']&&(this['_suggestions']['get'](_0xb7d487)['createdAt']=_0x4e546c['createdAt']);})['catch'](_0x388109=>{throw _0x1a5f78('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1c5004['discard']();}),_0x1c5004['stopListening'](),this['_suggestions']['delete'](_0x1c5004['id']),this['_suggestionState']['delete'](_0x1c5004),_0x388109;});}return _0x1c5004;}['_updateSuggestionData'](_0x472bc0,_0x44aa2b){const _0x35e209=this['editor']['plugins']['get']('PendingActions'),_0x57092a=this['getSuggestion'](_0x472bc0);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x57092a['_saved']){const _0x2cefe7=_0x35e209['add'](At(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x472bc0,_0x44aa2b)['then'](()=>{_0x35e209['remove'](_0x2cefe7);});}else _0x57092a['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x472bc0,_0x44aa2b);});}}['_getSuggestionData'](_0x1f30ef){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2608ca('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1f30ef);}['_handleNewSuggestionMarker'](_0xa6e462){const {id:_0x242e13,type:_0xc69fd7,subType:_0x4350f0,authorId:_0x59ae9f}=_0x116f26(_0xa6e462),_0x54af0f=this['_suggestions']['get'](_0x242e13)||this['_createSuggestion'](_0xc69fd7,_0x4350f0,_0x242e13,_0x59ae9f,{});switch(this['_checkSuggestionCorrectness'](_0x54af0f,_0xc69fd7,_0x4350f0,_0x59ae9f),this['_suggestionState']['get'](_0x54af0f)){case'notReady':this['_getSuggestionData'](_0x242e13)['then'](_0x242ef9=>{let _0x28a00e=Promise['resolve']();_0x242ef9['hasComments']&&(_0x28a00e=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x242e13})),_0x28a00e['then'](()=>{this['addSuggestionData'](_0x242ef9)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x54af0f,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x242e13,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x54af0f,'ready'),this['fire']('suggestionLoaded',_0x54af0f);break;case'ready':this['fire']('suggestionChanged',_0x54af0f);}return _0x54af0f['addMarkerName'](_0xa6e462),_0x54af0f;}['_refreshSuggestionsChain'](_0x16e0bb){const _0x387d96=Array['from'](_0x16e0bb),_0x3bf174=_0x387d96['filter'](_0x353c0d=>'attribute'==_0x353c0d['type']);this['_refreshAttributeSuggestionsChain'](_0x3bf174);const _0x477eb6=_0x387d96['filter'](_0x3d5692=>!_0x3d5692['isMultiRange']&&'attribute'!=_0x3d5692['type']),_0x393884=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x568f23=>!_0x568f23['isMultiRange']&&'attribute'!=_0x568f23['type']),_0x16c071=_0x393884['filter'](_0x4bd059=>!_0x16e0bb['has'](_0x4bd059)),_0x56170c=new Map(_0x393884['map'](_0x6f65d2=>[_0x6f65d2,this['_suggestionFactory']['getSuggestionCallback'](_0x6f65d2['type'],_0x6f65d2['subType'],'chain')])),_0x56c80c=new Map(_0x393884['map'](_0x543411=>[_0x543411,_0x543411['getFirstRange']()])),_0x1949e6=new Set(),_0x496c86=new Set();for(let _0x2bc655=0x0;_0x2bc655<_0x477eb6['length'];_0x2bc655++)_0x2da8ee(_0x477eb6[_0x2bc655],_0x477eb6,_0x2bc655+0x1);for(let _0x3e9cd6=0x0;_0x3e9cd6<_0x477eb6['length'];_0x3e9cd6++)_0x2da8ee(_0x477eb6[_0x3e9cd6],_0x16c071,0x0);const _0x45f0d1=new Set();for(let _0x399192=0x0;_0x399192<_0x477eb6['length'];_0x399192++){const _0x3913d4=_0x477eb6[_0x399192];!_0x496c86['has'](_0x3913d4)&&_0x3913d4['previous']&&(_0x45f0d1['add'](_0x3913d4['previous']),_0x3913d4['previous']['next']===_0x3913d4&&(_0x3913d4['previous']['next']=null),_0x3913d4['previous']=null),!_0x1949e6['has'](_0x3913d4)&&_0x3913d4['next']&&(_0x45f0d1['add'](_0x3913d4['next']),_0x3913d4['next']['previous']===_0x3913d4&&(_0x3913d4['next']['previous']=null),_0x3913d4['next']=null);}function _0x2da8ee(_0x24cc76,_0x3daa98,_0x5326fa){for(let _0xfbaeaf=_0x5326fa;_0xfbaeaf<_0x3daa98['length'];_0xfbaeaf++){const _0x1c1ae8=_0x1392ec(_0x24cc76,_0x3daa98[_0xfbaeaf]);_0x1c1ae8&&(_0x1c1ae8[0x0]['next']=_0x1c1ae8[0x1],_0x1c1ae8[0x1]['previous']=_0x1c1ae8[0x0],_0x1949e6['add'](_0x1c1ae8[0x0]),_0x496c86['add'](_0x1c1ae8[0x1]));}}function _0x1392ec(_0x1a8461,_0x5937c1){if(_0x1a8461['author']['id']!==_0x5937c1['author']['id'])return null;const _0x5c0098=_0x56170c['get'](_0x1a8461)(_0x1a8461,_0x5937c1,_0x56c80c['get'](_0x1a8461),_0x56c80c['get'](_0x5937c1));if(!_0x5c0098)return null;return _0x56170c['get'](_0x5937c1)(_0x1a8461,_0x5937c1,_0x56c80c['get'](_0x1a8461),_0x56c80c['get'](_0x5937c1))?_0x5c0098[0x1]['commentThread']&&_0x5c0098[0x1]['commentThread']['length']?null:_0x5c0098:null;}_0x45f0d1['size']&&this['_refreshSuggestionsChain'](_0x45f0d1);}['_refreshAttributeSuggestionsChain'](_0x237278){if(0x0==_0x237278['length'])return;const _0x21160b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x18dce5=>'attribute'==_0x18dce5['type']&&_0x18dce5['_isDataLoaded']),_0x439da1=[],_0x1419f9=new Map();for(const _0x4c14f3 of _0x21160b){const _0x48f602=_0x5e24f9(_0x4c14f3['attributes']);_0x1419f9['has'](_0x48f602)||(_0x1419f9['set'](_0x48f602,_0x439da1['length']),_0x439da1['push']([]));const _0x3edb6b=_0x1419f9['get'](_0x48f602);_0x439da1[_0x3edb6b]['push'](_0x4c14f3);}!(function(){_0x439da1['sort']((_0x2aae99,_0xee338a)=>{const _0x121845=_0x2aae99[0x0]['createdAt'],_0x2612e5=_0xee338a[0x0]['createdAt'];return _0x121845==_0x2612e5?_0x2aae99[0x0]['attributes']['groupId']<_0xee338a[0x0]['attributes']['groupId']?-0x1:0x1:_0x121845<_0x2612e5?-0x1:0x1;});for(const _0x2cd6da of _0x439da1)_0x2cd6da['sort']((_0x28c22f,_0x39a4cd)=>_0x28c22f['id']<_0x39a4cd['id']?-0x1:0x1);}());for(let _0x22fd68=0x0;_0x22fd68<_0x439da1['length'];_0x22fd68++){if(0x0==_0x439da1[_0x22fd68]['length'])continue;const _0x2b33b6=[];for(let _0x3cb2ca=_0x22fd68+0x1;_0x3cb2ca<_0x439da1['length'];_0x3cb2ca++)0x0!=_0x439da1[_0x3cb2ca]['length']&&_0x1c16ff(_0x439da1[_0x22fd68],_0x439da1[_0x3cb2ca])&&_0x2b33b6['push'](_0x3cb2ca);for(const _0x1907a0 of _0x2b33b6)_0x439da1[_0x22fd68]=_0x439da1[_0x22fd68]['concat'](_0x439da1[_0x1907a0]),_0x439da1[_0x1907a0]=[];}for(const _0x541f44 of _0x439da1)for(let _0x27a075=0x0;_0x27a075<_0x541f44['length'];_0x27a075++){const _0x3ee636=_0x541f44[_0x27a075+0x1]||null;_0x541f44[_0x27a075]['next']!==_0x3ee636&&(_0x541f44[_0x27a075]['next']=_0x3ee636);}for(const _0x292346 of _0x439da1)for(let _0x340f5b=0x0;_0x340f5b<_0x292346['length'];_0x340f5b++){const _0x408e60=_0x292346[_0x340f5b-0x1]||null;_0x292346[_0x340f5b]['previous']!==_0x408e60&&(_0x292346[_0x340f5b]['previous']=_0x408e60);}function _0x1c16ff(_0x353c14,_0xf3acda){if(_0x353c14[0x0]['attributes']['groupId']!==_0xf3acda[0x0]['attributes']['groupId']&&_0x353c14[0x0]['author']!==_0xf3acda[0x0]['author'])return!0x1;if(!function(_0x4ec33f,_0x59afc3){if(!_0x4ec33f['hasComments']&&!_0x59afc3['hasComments'])return!0x0;if(_0x4ec33f['hasComments']&&_0x59afc3['hasComments'])return!0x1;if(_0x4ec33f['hasComments']&&_0x59afc3['createdAt']<_0x4ec33f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x59afc3['hasComments']&&_0x4ec33f['createdAt']<_0x59afc3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x353c14[0x0],_0xf3acda[0x0]))return!0x1;const _0x44c7ce=ot(_0x353c14[0x0]['attributes'],['groupId','trackingSessionId']),_0x254cd9=ot(_0xf3acda[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x44c7ce,_0x254cd9))return!0x1;if(_0x353c14[0x0]['attributes']['groupId']==_0xf3acda[0x0]['attributes']['groupId'])return!0x0;if(_0x353c14[0x0]['attributes']['trackingSessionId']!==_0xf3acda[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x353c14['every'](_0x152ac2=>_0xf3acda['some'](_0x483dc8=>_0x152ac2['getFirstRange']()['isEqual'](_0x483dc8['getFirstRange']())))&&_0xf3acda['every'](_0x3aebf9=>_0x353c14['some'](_0x327341=>_0x3aebf9['getFirstRange']()['isEqual'](_0x327341['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x10f8de){const _0x54b3b2=Array['from'](_0x10f8de),_0x592170=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1dda0f=_0x592170['filter'](_0x253917=>!_0x10f8de['has'](_0x253917)),_0x59ad85=new Map(_0x54b3b2['map'](_0x4a345f=>[_0x4a345f,this['_suggestionFactory']['getSuggestionCallback'](_0x4a345f['type'],_0x4a345f['subType'],'join')])),_0x442c45=new Map(_0x592170['map'](_0x155a6f=>[_0x155a6f,_0x155a6f['getRanges']()]));for(let _0x5a4357=0x0;_0x5a4357<_0x54b3b2['length'];_0x5a4357++){if(_0x2501a7(this,_0x54b3b2[_0x5a4357],_0x54b3b2,_0x5a4357+0x1))return!0x0;}for(let _0x27c8ff=0x0;_0x27c8ff<_0x54b3b2['length'];_0x27c8ff++){if(_0x2501a7(this,_0x54b3b2[_0x27c8ff],_0x1dda0f,0x0))return!0x0;}return!0x1;function _0x2501a7(_0x41bb47,_0xc70978,_0xc88554,_0x5c8b2b){for(let _0x35f090=_0x5c8b2b;_0x35f090<_0xc88554['length'];_0x35f090++){const _0x159f1c=_0xc88554[_0x35f090];if(_0x159f1c['type']!==_0xc70978['type']||_0x159f1c['author']['id']!==_0xc70978['author']['id']||_0x159f1c['subType']!==_0xc70978['subType'])continue;if(!an(_0xc70978,_0x159f1c))continue;if('attribute'==_0xc70978['type']&&_0xc70978['data']['oldValue']!=_0x159f1c['data']['oldValue'])continue;if('attribute'==_0xc70978['type']&&_0x41bb47['_suggestionsConversion']['isBlockAttribute'](_0xc70978['data']['key']))continue;if('formatBlock'==_0xc70978['type']){const _0x19a35a=_0x41bb47['editor']['model'],_0x535f0d=_0xc70978['getContainedElement']();if(_0x535f0d&&(_0x19a35a['schema']['isObject'](_0x535f0d)||_0x19a35a['schema']['isLimit'](_0x535f0d)))continue;}const _0x4f5cd4=_0x59ad85['get'](_0xc70978),_0x4a7e49=_0x442c45['get'](_0xc70978),_0x121811=_0x442c45['get'](_0x159f1c),_0x4af7b8=_0xc70978['commentThread']&&_0xc70978['commentThread']['length'],_0x8a71f3=_0x159f1c['commentThread']&&_0x159f1c['commentThread']['length'];if(!_0x4af7b8&&_0x4f5cd4(_0x121811,_0x4a7e49))return _0x41bb47['_joinSuggestions'](_0x159f1c,_0xc70978),_0x442c45['delete'](_0xc70978),!0x0;if(!_0x8a71f3&&_0x4f5cd4(_0x4a7e49,_0x121811))return _0x41bb47['_joinSuggestions'](_0xc70978,_0x159f1c),_0x442c45['delete'](_0x159f1c),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2a22ca,_0xe7eb71){if(_0x2a22ca['isMultiRange']){for(const _0x56c3e2 of _0xe7eb71['getRanges']())_0x2a22ca['addRange'](_0x56c3e2);}else{const _0x606f5=_0xe7eb71['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2a22ca,this['_model']['createRange'](_0x2a22ca['getFirstRange']()['start'],_0x606f5));}_0xe7eb71['removeMarkers']();}['_getMarkerAnnouncementText'](_0x23672d,_0x5d1c46,_0x381e79){const _0x16a823=_0x23672d['startsWith']('format')||_0x23672d['startsWith']('attribute')?'FORMATTING':_0x23672d['toUpperCase']();return At(this['editor']['locale'],_0x5d1c46+'_'+_0x16a823+'_SUGGESTION_ANNOUNCEMENT',_0x381e79);}['_initAriaMarkerChangeAnnouncements'](){const _0x599826=this['editor'];if(!_0x599826['ui'])return;const {ariaLiveAnnouncer:_0x27d60a}=_0x599826['ui'];_0x482da2(this['_model'],({left:_0x2f8c36,entered:_0x2bed16})=>{for(const _0x26b371 of _0x2f8c36){const {group:_0x5c9271,type:_0x16a860}=_0x116f26(_0x26b371['name']);if('suggestion'===_0x5c9271){_0x27d60a['announce'](this['_getMarkerAnnouncementText'](_0x16a860,'LEAVE'));break;}}for(const _0x2d0ce9 of _0x2bed16){const {group:_0x1769d4,type:_0x41e054}=_0x116f26(_0x2d0ce9['name']);if('suggestion'===_0x1769d4){_0x27d60a['announce'](this['_getMarkerAnnouncementText'](_0x41e054,'ENTER',_0xde7c1f(_0xc262ab)));break;}}});}['_processAttributeChanges'](_0x2594c8){if(this['_recordAttributeSuggestions'])return!0x1;const _0x316de3=this['editor'],_0x49a36c=_0x316de3['model']['document']['differ']['getChanges']();if(0x0==_0x49a36c['length'])return!0x1;const _0x5e676f=[],_0x5ac321=_0x49a36c['filter'](_0x41293e=>'attribute'==_0x41293e['type']),_0x39c57e=_0x49a36c['filter'](_0x3d4a3d=>'insert'==_0x3d4a3d['type']&&'$text'!=_0x3d4a3d['name']),_0x45ec9f=_0x49a36c['filter'](_0x3fafbc=>'remove'==_0x3fafbc['type']&&'$text'!=_0x3fafbc['name']);for(const _0x201e03 of _0x5ac321)_0x5e676f['push']({'key':_0x201e03['attributeKey'],'newValue':_0x201e03['attributeNewValue'],'oldValue':_0x201e03['attributeOldValue'],'range':sn(_0x201e03['range'],_0x316de3['model'])});for(const _0xe3c261 of _0x39c57e){const _0x49b310=_0x45ec9f['find'](_0x4b7464=>_0x4b7464['position']['isEqual'](_0xe3c261['position']));_0x49b310&&_0x5e676f['push']({'key':Ke,'newValue':_0xe3c261['name'],'oldValue':_0x49b310['name'],'range':_0x316de3['model']['createRangeOn'](_0xe3c261['position']['nodeAfter'])});}return 0x0!=_0x5e676f['length']&&this['_reduceExistingSuggestions'](_0x2594c8,_0x5e676f);}['_processAttributeSuggestions'](_0xef5266){let _0x417982=!0x1;const _0x336562=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x267247=>_0x267247['data']['newRange']&&_0x267247['name']['startsWith']('suggestion:attribute:'));for(const _0x4d2dd7 of _0x336562){const {subType:_0x46bae7,id:_0x15a66b}=_0x116f26(_0x4d2dd7['name']),_0x4976bc=_0x46bae7['split']('|')[0x0];for(const _0x59db72 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x59db72['id']!=_0x15a66b&&'attribute'==_0x59db72['type']&&_0x59db72['data']&&_0x59db72['data']['key']==_0x4976bc&&_0x59db72['getFirstRange']()['isIntersecting'](_0x4d2dd7['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x59db72,_0x4d2dd7['data']['newRange'],_0xef5266),_0x417982=!0x0);}return _0x417982;}['recordAttributeChanges'](_0x362f99){this['_recordAttributeSuggestions']=!0x0,_0x362f99();}['_reduceExistingSuggestions'](_0x21e55c,_0xc9a8cf){if(0x0==_0xc9a8cf['length'])return!0x1;let _0x1aa117=!0x1;for(const _0x517ce6 of _0xc9a8cf){const _0x580386=this['_findSuggestions'](_0x517ce6['range'],'attribute')['filter'](_0x51195b=>!_0x51195b['meta']['isNextTo'])['map'](_0x4b7bb5=>_0x4b7bb5['suggestion']),_0x71f0f3=_0x5e24f9({'newValue':_0x517ce6['newValue']});_0x580386['filter'](_0x4d88d1=>{const [_0x4c3d04,_0x5a37bf]=_0x4d88d1['subType']['split']('|');return _0x4c3d04==_0x517ce6['key']&&_0x5a37bf!=_0x71f0f3;})['forEach'](_0x24eadd=>{this['_reduceSuggestionAttributeRange'](_0x24eadd,_0x517ce6['range'],_0x21e55c),_0x1aa117=!0x0;});}return _0x1aa117;}['_reduceSuggestionAttributeRange'](_0x4b43a4,_0x2d36ba,_0x576be1){const _0x582310=_0x4b43a4['getFirstRange']()['getDifference'](_0x2d36ba);0x0!==_0x582310['length']?0x1!==_0x582310['length']?this['_breakSuggestionMarker'](_0x4b43a4,_0x2d36ba['start'],_0x2d36ba['end']):this['_setSuggestionRange'](_0x4b43a4,_0x582310[0x0]):_0x576be1['removeMarker'](_0x4b43a4['getFirstMarker']());}}class Ye{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x115854){this['_editor']=_0x115854,this['_model']=_0x115854['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4bcc9d,_0x5eb1bb,_0x18e93c,_0x3a39bb,_0x5eb829,_0x311feb,_0x23e9e5){return new bt(this['_model'],{'type':_0x4bcc9d,'subType':_0x5eb1bb,'id':_0x18e93c,'originalSuggestionId':_0x23e9e5,'author':_0x3a39bb,'creator':_0x3a39bb,'attributes':_0x5eb829,'onAttributesChange':_0x311feb,'onAccept':(..._0x22d7eb)=>this['getSuggestionCallback'](_0x4bcc9d,_0x5eb1bb,'accept')(..._0x22d7eb),'onDiscard':(..._0x26f849)=>this['getSuggestionCallback'](_0x4bcc9d,_0x5eb1bb,'discard')(..._0x26f849)});}['registerCustomCallback'](_0x1cebb0,_0x5dfdab,_0x6ffa1e,_0x58cd05){const _0x3669e2=_0x1cebb0+':'+_0x5dfdab+':'+_0x6ffa1e;this['_customCallbacks']['set'](_0x3669e2,_0x58cd05);}['getSuggestionCallback'](_0x30b995,_0x3b9ca5,_0x2910d1){const _0x1e709e=_0x30b995+':'+_0x3b9ca5+':'+_0x2910d1;return this['_customCallbacks']['get'](_0x1e709e)||this['_defaultCallbacks']['get'](_0x30b995+':'+_0x2910d1);}['_registerDefaultCallbacks'](){const _0x50d7af=()=>!0x1,_0x5a4f44=_0x2005de=>{_0x2005de['sort']((_0x1a977a,_0x3a09fc)=>_0x1a977a['start']['isBefore'](_0x3a09fc['start'])?0x1:-0x1),this['_model']['change'](_0x4a21f7=>{for(const _0x16d779 of _0x2005de){let _0x4ec7f0;_0x4ec7f0=_0x16d779['end']['isAtEnd']&&_0x16d779['end']['parent']==_0x16d779['start']['nodeAfter']?_0x4a21f7['createSelection'](_0x16d779['start']['nodeAfter'],'on'):_0x4a21f7['createSelection'](_0x16d779),this['_model']['deleteContent'](_0x4ec7f0,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x53c8e8=(_0x18a669,_0x5abde0)=>{_0x5abde0&&this['_model']['change'](_0x584b40=>{const {commandName:_0x16d1b3,commandParams:_0x1094d3=[]}=_0x5abde0,_0x504c31=_0x18a669['map'](_0x14c73f=>(Qe(_0x14c73f)&&(_0x14c73f=this['_model']['createRange'](_0x14c73f['end'])),_0x14c73f))['filter'](_0x2197d1=>'$graveyard'!==_0x2197d1['root']['rootName']);if(_0x504c31['length']<0x1)return;const _0x3a4934=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x48e189=>_0x2725ec['fromRange'](_0x48e189));_0x584b40['setSelection'](_0x504c31);for(const _0x18c243 of this['_editor']['commands']['commands']())_0x18c243['refresh']();_0x1094d3['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x16d1b3,..._0x1094d3);const _0x5404ae=_0x3a4934['filter'](_0x28b65b=>'$graveyard'!=_0x28b65b['root']['rootName']);_0x5404ae['length']>0x0&&_0x584b40['setSelection'](_0x5404ae);for(const _0x3337ff of _0x3a4934)_0x3337ff['detach']();});},_0x340be5=(_0x25e3a9,_0x25232f)=>0x1==_0x25e3a9['length']&&0x1==_0x25232f['length']&&_0x25e3a9[0x0]['end']['isEqual'](_0x25232f[0x0]['start']),_0x3b35a6=(_0x3df397,_0x561962,_0x3f6c6f,_0x24c8e1)=>on(_0x3df397,_0x561962,_0x3f6c6f,_0x24c8e1)?[_0x3df397,_0x561962]:on(_0x561962,_0x3df397,_0x24c8e1,_0x3f6c6f)?[_0x561962,_0x3df397]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x50d7af),this['_defaultCallbacks']['set']('insertion:discard',_0x5a4f44),this['_defaultCallbacks']['set']('insertion:join',_0x340be5),this['_defaultCallbacks']['set']('insertion:chain',_0x3b35a6),this['_defaultCallbacks']['set']('deletion:accept',_0x5a4f44),this['_defaultCallbacks']['set']('deletion:discard',_0x50d7af),this['_defaultCallbacks']['set']('deletion:join',_0x340be5),this['_defaultCallbacks']['set']('deletion:chain',_0x3b35a6),this['_defaultCallbacks']['set']('formatInline:accept',_0x53c8e8),this['_defaultCallbacks']['set']('formatInline:discard',_0x50d7af),this['_defaultCallbacks']['set']('formatInline:join',_0x340be5),this['_defaultCallbacks']['set']('formatInline:chain',_0x50d7af),this['_defaultCallbacks']['set']('formatBlock:accept',_0x53c8e8),this['_defaultCallbacks']['set']('formatBlock:discard',_0x50d7af),this['_defaultCallbacks']['set']('formatBlock:join',_0x340be5),this['_defaultCallbacks']['set']('formatBlock:chain',_0x50d7af),this['_defaultCallbacks']['set']('attribute:accept',_0x50d7af),this['_defaultCallbacks']['set']('attribute:discard',(_0x38ddf3,_0x5dce35)=>{if(!_0x5dce35)return;const _0x14daf4=this['_editor']['plugins']['get'](_0x856be7);this['_model']['change'](_0x40552c=>{if(_0x5dce35['key']==Ke)for(const _0x18b274 of _0x38ddf3){const _0x2330a8=_0x18b274['start']['nodeAfter'],_0x5417a4=_0x5dce35['oldValue'];_0x40552c['rename'](_0x2330a8,_0x5417a4);}else{if(_0x14daf4['isBlockAttribute'](_0x5dce35['key'])){for(const _0x2ea060 of _0x38ddf3)void 0x0!==_0x5dce35['oldValue']?_0x40552c['setAttribute'](_0x5dce35['key'],_0x5dce35['oldValue'],_0x2ea060['start']['nodeAfter']):_0x40552c['removeAttribute'](_0x5dce35['key'],_0x2ea060['start']['nodeAfter']);}else{for(const _0x2df80b of _0x38ddf3)_0x5dce35['oldValue']?_0x40552c['setAttribute'](_0x5dce35['key'],_0x5dce35['oldValue'],_0x2df80b):_0x40552c['removeAttribute'](_0x5dce35['key'],_0x2df80b);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x340be5);}}function qe(_0x35e2cf,_0x43611c,_0x3d4e3b){for(const _0x480406 of _0x43611c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x480406['root']==_0x480406)return!0x1;if(!_0x3d4e3b['containsItem'](_0x480406))return!0x1;if(_0x35e2cf['isObject'](_0x480406)||_0x35e2cf['isLimit'](_0x480406))return!0x0;}return!0x1;}function Qe(_0x3145af){return _0x3145af['end']['parent']==_0x3145af['start']['nodeAfter']&&_0x3145af['end']['isAtStart'];}function Ze(_0x5001dc,_0xafc419,_0x29c40d,_0x52f786){const _0x52f6cc=_0x4e8c66=>!_0x4e8c66['item']['is']('$textProxy')&&!_0x52f786['isObject'](_0x4e8c66['item']),_0x4d7c4c=_0x5001dc['start']['getLastMatchingPosition'](_0x52f6cc),_0x4e295b=_0x5001dc['end']['getLastMatchingPosition'](_0x52f6cc,{'direction':'backward'});return(!_0x5001dc['start']['isEqual'](_0x4d7c4c)||!_0x5001dc['end']['isEqual'](_0x4e295b))&&(_0x4d7c4c['isBefore'](_0x4e295b)?_0x29c40d['updateMarker'](_0xafc419,{'range':_0x29c40d['createRange'](_0x4d7c4c,_0x4e295b)}):_0x29c40d['removeMarker'](_0xafc419),!0x0);}function Je(_0x2595ff){return _0x5e24f9(_0x2595ff);}function tn(_0x349f70){const _0x5e1df1=_0x349f70['start']['nodeAfter'];return _0x5e1df1&&_0x5e1df1['is']('element');}function en(_0x5392e2){return Qe(_0x5392e2)||function(_0x2284b1){return _0x2284b1['start']['parent']==_0x2284b1['end']['nodeBefore']&&_0x2284b1['start']['isAtEnd'];}(_0x5392e2);}function nn(_0x3b4a7e,_0x4a19f8){try{const _0x2a6f59=_0x3b4a7e['getRange']();for(const _0x5e49f4 of _0x4a19f8)if(_0x3b4a7e!==_0x5e49f4&&_0x2a6f59&&_0x2a6f59['isIntersecting'](_0x5e49f4['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function sn(_0x374c6a,_0x12f3d0){return null==_0x374c6a['end']['nodeBefore']&&_0x374c6a['end']['parent']==_0x374c6a['start']['nodeAfter']?rn(_0x374c6a['start']['nodeAfter'],_0x12f3d0):_0x374c6a;}function rn(_0x431df5,_0x15958e){const _0x488900=_0x15958e['schema']['isObject'](_0x431df5)||_0x15958e['schema']['isSelectable'](_0x431df5);return _0x15958e['createRange'](_0x15958e['createPositionAt'](_0x431df5,'before'),_0x488900?_0x15958e['createPositionAfter'](_0x431df5):_0x15958e['createPositionAt'](_0x431df5,'end'));}function on(_0x50b761,_0x3dffd5,_0x28b9d3,_0x195549){return!!an(_0x50b761,_0x3dffd5)&&_0x28b9d3['end']['isEqual'](_0x195549['start']);}function an(_0x4f0fe0,_0x403440){if(!_0x4f0fe0['_isDataLoaded']||!_0x403440['_isDataLoaded'])return!0x1;const _0x23a010=new Set(Object['keys'](_0x4f0fe0['attributes'])),_0x1cb040=new Set(Object['keys'](_0x403440['attributes']));if(_0x23a010['delete']('groupId'),_0x1cb040['delete']('groupId'),0x0==_0x23a010['size']&&0x0==_0x1cb040['size'])return!0x0;if(_0x23a010['size']!=_0x1cb040['size'])return!0x1;const _0x350fc5={..._0x4f0fe0['attributes']},_0x4af32d={..._0x403440['attributes']};return delete _0x350fc5['groupId'],delete _0x4af32d['groupId'],JSON['stringify'](_0x350fc5)==JSON['stringify'](_0x4af32d);}function cn(_0x4c532c,_0x4cf08a){const _0x37fad5=ln(_0x4c532c['attributes']),_0x2c649a=ln(_0x4cf08a);if(!_0x4c532c['_isDataLoaded'])return!0x1;for(const _0x260cd1 of Object['keys'](_0x2c649a))if(!st(_0x37fad5[_0x260cd1],_0x2c649a[_0x260cd1]))return!0x1;return!0x0;}function ln(_0x1c6327){const _0x2e2abc=Object['assign']({},_0x1c6327);return delete _0x2e2abc['skipNestingCheck'],delete _0x2e2abc['tablePasteChainId'],_0x2e2abc;}function un(_0x266cf3){return _0x266cf3['split']('|')[0x0];}class hn extends/* #__PURE__ -- @preserve */
26
+ _0x3078d9(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x15a0bd,_0xb9dc5d,_0x28fb71,_0x409eae){super(),this['model']=_0xb9dc5d,this['view']=_0x28fb71,this['commentThreadController']=_0x409eae,this['_editor']=_0x15a0bd,this['_acceptCommand']=_0x15a0bd['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x15a0bd['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x26498c,_0x2c1ce7)=>_0x26498c||_0x2c1ce7),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x8e789=>_0x8e789&&this['_editor']['model']['canEditAt'](_0xb9dc5d['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5de90b=>_0x5de90b&&this['_editor']['model']['canEditAt'](_0xb9dc5d['getRanges']())),this['_pendingAction']=null,_0x28fb71['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x28fb71,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x28fb71,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x28fb71,'change:isDirty',()=>{_0x28fb71['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 _0x472f41=At(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x472f41);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class dn extends _0x3ad9d5{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3fa16d,_0x1b712f,_0x5c533c,_0x331036){super(_0x3fa16d),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x4caf05(_0x3fa16d,At(_0x3fa16d,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x1b712f['authoredAt']),this['bind']('authoredAt')['to'](_0x1b712f),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',_0x1b712f,'authoredAt',this,'descriptionParts',(_0x545388,_0x35c527,_0x416458)=>{const _0x33fd34=_0x416458['map'](_0x11629f=>gt(_0x11629f['content']))['join']('.\x20')+'.';return At(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x545388-0x1,_0x1b712f['author']['name'],_0x35c527?_0x331036['formatDateTime'](_0x35c527):'',new DOMParser()['parseFromString'](_0x33fd34,'text/html')['body']['textContent']]);}),this['focusables']=new _0xf6b59f(),this['focusTracker']=new _0x31ba1a(),this['keystrokes']=new _0x3f6c9d(),this['focusCycler']=new _0x372e8f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x39479d=>_0x39479d['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x1b712f,this['_localUser']=_0x5c533c,this['_config']=_0x331036,_0x331036['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x18a878(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x581315}=this['_config'];this['commentsListView']=new _0x581315(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',_0x27f8b0=>_0x27f8b0+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5d1aae,_0x37d7f1)=>_0x5d1aae||!!_0x37d7f1);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x323170}=this['_config'],_0x59d36c=new _0x323170(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2fdf7f=_0x59d36c['commentInputView'];return _0x59d36c['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2fdf7f,'value',(_0x5d9858,_0x389e83,_0x595484)=>!!_0x595484||_0x5d9858&&!_0x389e83),_0x2fdf7f['on']('submit',(_0x52c7e4,_0x47c391)=>{this['fire']('addComment',_0x47c391),_0x2fdf7f['editor']['setData']('');}),_0x2fdf7f['on']('cancel',()=>this['focus']()),_0x2fdf7f['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x59d36c;}}class fn extends dn{['suggestionView'];['_descriptionElement'];constructor(_0x15a712,_0x1bf4cf,_0x239ad3,_0x58f8fb){super(_0x15a712,_0x1bf4cf,_0x239ad3,_0x58f8fb),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x47f790=>_0x47f790&&_0x47f790[0x0]?_0x47f790[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1d1274,_0x40cb07)=>{let _0x46b856='';for(const _0x8e3b3d of _0x1d1274)_0x46b856+='<p>'+gt(_0x8e3b3d['content'],_0x8e3b3d['color'])+'</p>';return _0x40cb07?_0x46b856:_0x346f2e(_0x46b856,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x58f8fb['SuggestionView'](_0x15a712,_0x1bf4cf,{'formatDateTime':_0x58f8fb['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 _0x32e896=this['bindTemplate'],_0x764703=[this['suggestionView']];return this['commentsListView']&&_0x764703['push'](this['commentsListView']),this['commentThreadInputView']&&_0x764703['push'](this['commentThreadInputView']),_0x764703['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x32e896['if']('isActive','ck-suggestion-wrapper--active'),_0x32e896['to']('type',_0x14571c=>'ck-suggestion-'+_0x14571c),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':_0x32e896['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x764703};}['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 gn extends _0x3ad9d5{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x49751b,_0xa7707,_0x5dc5f5){super(_0x49751b),this['_model']=_0xa7707,this['_config']=_0x5dc5f5,this['set']('description',''),this['bind']('authoredAt')['to'](_0xa7707),this['acceptButton']=this['_createButton'](At(_0x49751b,'Accept\x20suggestion'),_0x16ff65,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](At(_0x49751b,'Discard\x20suggestion'),_0x494930,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x581721(_0x49751b,_0xa7707['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xf6b59f([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x31ba1a(),this['keystrokes']=new _0x3f6c9d(),this['focusCycler']=new _0x372e8f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0xb2764a=>_0xb2764a['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5db96f=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5db96f['innerHTML']=this['description'],this['on']('change:description',(_0x4d1ce3,_0x520074,_0xd9d7cb)=>{_0x5db96f['innerHTML']=_0xd9d7cb;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3bdd63=this['bindTemplate'],_0x560ab7=[{'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':_0x3bdd63['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3bdd63['to']('authoredAt',_0x221317=>this['_config']['formatDateTime'](_0x221317))}]}]},{'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']&&_0x560ab7['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':_0x560ab7}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?At(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):At(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?At(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):At(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x279bf8,_0x13a781,_0x26f079,_0x32a972,_0x5a8796){const _0x43186d=new _0x2ee9bf(this['locale']);return _0x43186d['set']({'label':_0x279bf8,'icon':_0x13a781,'tooltip':!0x0,'tooltipPosition':_0x5a8796}),_0x43186d['extendTemplate']({'attributes':{'class':_0x26f079}}),_0x43186d['on']('execute',()=>{this['fire'](_0x32a972,this['_model']['id']);}),_0x43186d;}['_setupKeyboardNavigation'](){const _0x222efa=this['element'];this['keystrokes']['listenTo'](_0x222efa);for(const _0xfb3278 of this['focusables'])this['focusTracker']['add'](_0xfb3278['element']),this['keystrokes']['listenTo'](_0xfb3278['element']);this['keystrokes']['set']('enter',(_0x18e49c,_0x54009e)=>{_0x222efa===_0x18e49c['target']&&(this['focusCycler']['focusFirst'](),_0x54009e());}),this['keystrokes']['set']('esc',(_0x98fb2f,_0x23084e)=>{_0x222efa!==_0x98fb2f['target']&&(this['focus'](),_0x23084e());});}}class mn extends _0x687f86{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[Xe,_0x345397,_0x424274,_0x306ff4,_0x2a31b0];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x29d086){super(_0x29d086),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2f7fe3=this['editor']['config'];_0x2f7fe3['define']('trackChanges.SuggestionThreadView',fn),_0x2f7fe3['define']('trackChanges.SuggestionView',gn),_0x2f7fe3['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2f7fe3['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x23ed51,_0x1c2926){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x15a03d,_0x371861]of this['_handleControllerBuffer']){const _0x302f9b=this['_suggestionToController']['has'](_0x15a03d);_0x302f9b||_0x371861?_0x302f9b&&_0x371861&&this['_destroyController'](_0x15a03d):this['_initializeController'](_0x15a03d);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x2a31b0)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x23ed51,_0x1c2926);}['init'](){const _0x351d19=this['editor'],_0x42eb9e=_0x351d19['plugins']['get'](Xe),_0x4863fd=_0x351d19['plugins']['get'](_0x306ff4),_0x3c1038=_0x351d19['plugins']['get'](_0x2a31b0),_0x58c25f=_0x351d19['plugins']['get'](_0x424274);this['_addUIComponentsToFactory'](),_0x3c1038['addSourceCollector'](()=>{const _0x43a44f=[];for(const [_0x33effc,_0x1e1755]of Array['from'](this['_suggestionToController'])){const _0x2b4643=_0x33effc['getAllAdjacentSuggestions'](),_0x32db20=[];for(const _0x464e6e of _0x2b4643){if(!_0x464e6e['isInContent'])continue;if(_0x464e6e['isMultiRange']){_0x32db20['push'](..._0x464e6e['getRanges']());continue;}const _0x13add0=_0x464e6e['getFirstRange']();if(_0x32db20['length']>0x0){const _0xd6586e=_0x32db20[0x0]['getJoined'](_0x13add0);if(_0xd6586e){_0x32db20[0x0]=_0xd6586e;continue;}}_0x32db20['push'](_0x13add0);}_0x43a44f['push']([_0x1e1755['view'],_0x32db20]);}return _0x43a44f;}),this['listenTo'](_0x42eb9e,'suggestionLoaded',(_0x1f0eb0,_0xcac8ce)=>{this['listenTo'](_0xcac8ce,'change:previous',(_0x50d6be,_0x4bbd56,_0x58268a,_0x28b4f5)=>{_0xcac8ce['isInContent']&&(null==_0x58268a?(this['_updateController'](_0x28b4f5['head']),this['_handleSuggestionControllerDelayed'](_0xcac8ce,!0x1)):(this['_updateController'](_0x58268a['head']),null==_0x28b4f5&&this['_handleSuggestionControllerDelayed'](_0xcac8ce,!0x0)));}),null!==_0xcac8ce['previous']?this['_updateController'](_0xcac8ce['head']):this['_handleSuggestionControllerDelayed'](_0xcac8ce,!0x1);}),this['listenTo'](_0x42eb9e,'suggestionUnloaded',(_0x5d0d3e,_0x21f8e5,_0x23f9a3)=>{this['stopListening'](_0x21f8e5,'change:previous'),this['_handleControllerBuffer']['delete'](_0x21f8e5),this['_suggestionToController']['has'](_0x21f8e5)&&this['_destroyController'](_0x21f8e5),_0x23f9a3&&this['_updateController'](_0x23f9a3['head']);}),this['listenTo'](_0x42eb9e,'suggestionChanged',(_0xfffbb9,_0x46cdb3)=>{this['_updateController'](_0x46cdb3);}),this['listenTo'](_0x4863fd,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x58c25f,'addComment',(_0x33c0aa,{threadId:_0x1b88de,isFromAdapter:_0xd0bc6b})=>{if(_0xd0bc6b||!_0x42eb9e['hasSuggestion'](_0x1b88de))return;const _0x2c93a5=_0x42eb9e['getSuggestion'](_0x1b88de);this['_suggestionToController']['get'](_0x2c93a5)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x982344=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x732482;for(const _0xb831a7 in _0x982344){const _0x27c46d=_0xb831a7,_0x290662=_0x982344[_0x27c46d];if('trackChangesLicenseKeyValid'==_0x290662||'trackChangesLicenseKeyInvalid'==_0x290662||'trackChangesLicenseKeyExpired'==_0x290662||'trackChangesLicenseKeyDomainLimit'==_0x290662||'trackChangesLicenseKeyNotAllowed'==_0x290662||'trackChangesLicenseKeyEvaluationLimit'==_0x290662||'trackChangesLicenseKeyUsageLimit'==_0x290662){delete _0x982344[_0x27c46d],_0x732482=_0x290662,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x732482&&_0x982344['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x732482&&_0x982344['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x732482&&_0x982344['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x732482&&_0x982344['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x732482&&_0x982344['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x732482&&_0x982344['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x1ad094){const _0x4ab9e7=this['_suggestionToController']['get'](_0x1ad094);if(!_0x4ab9e7)return null;return this['editor']['plugins']['get'](_0x306ff4)['getByInnerView'](_0x4ab9e7['view'])||null;}['getSuggestionForAnnotation'](_0x4a7b8c){const _0x88f38d=this['_viewToController']['get'](_0x4a7b8c['innerView']);return _0x88f38d?_0x88f38d['model']:null;}['_refreshActiveMarkers'](){const _0x5008d0=this['editor']['plugins']['get'](_0x306ff4),_0x527a05=this['editor']['plugins']['get'](Xe),_0x446ad6=Array['from'](_0x5008d0['activeAnnotations'],_0x30d0a2=>_0x30d0a2['innerView'])['filter'](_0x136dd1=>this['_viewToController']['has'](_0x136dd1)),_0x1fc912=[];for(const _0x2fd491 of _0x446ad6){const _0x40832f=this['_viewToController']['get'](_0x2fd491)['model']['getAllAdjacentSuggestions']();_0x1fc912['push'](..._0x40832f['reduce']((_0x12c3b3,_0x22da11)=>[..._0x12c3b3,..._0x22da11['getMarkerNames']()],[]));}_0x527a05['activeMarkers']=_0x1fc912;}['_addUIComponentsToFactory'](){const _0x31dfd0=this['editor'],_0x50e12d=_0x31dfd0['locale'],_0x538bc6=At(_0x50e12d,'Track\x20changes'),_0x43253b=new _0x3f1bf3([{'type':'switchbutton','model':new _0x41c483({'withText':!0x0,'isToggleable':!0x0,'label':_0x538bc6,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x41c483({'withText':!0x0,'label':At(_0x50e12d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x41c483({'withText':!0x0,'label':At(_0x50e12d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x41c483({'withText':!0x0,'label':At(_0x50e12d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x41c483({'withText':!0x0,'label':At(_0x50e12d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x31dfd0['plugins']['has']('TrackChangesPreview')&&_0x43253b['addMany']([{'type':'separator'},{'type':'button','model':new _0x41c483({'withText':!0x0,'label':At(_0x50e12d,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x31b265 of _0x43253b)if(En(_0x31b265)){const _0x2a1b15=_0x31dfd0['commands']['get'](_0x31b265['model']['commandName']);_0x31b265['model']['bind']('isOn','isEnabled')['to'](_0x2a1b15,'value','isEnabled');}_0x31dfd0['ui']['componentFactory']['add']('trackChanges',_0x45a6d0=>this['_createToolbarButton'](_0x45a6d0,_0x43253b,_0x538bc6)),_0x31dfd0['ui']['componentFactory']['add']('menuBar:trackChanges',_0x13d1e2=>this['_createMenuBarMenu'](_0x13d1e2,_0x43253b,_0x538bc6));}['_createToolbarButton'](_0x2f3ef7,_0x2a7bcd,_0x1e6843){const _0x37ea9d=_0x404bd2(_0x2f3ef7,_0xc8ab23),_0x455767=this['editor']['commands']['get']('trackChanges');_0x37ea9d['buttonView']['set']({'tooltip':_0x1e6843,'label':_0x1e6843,'icon':_0x20b319}),_0x37ea9d['buttonView']['bind']('isOn')['to'](_0x455767,'value'),_0x37ea9d['buttonView']['on']('execute',()=>{_0x455767['execute'](),this['editor']['editing']['view']['focus']();}),_0x2f215b(_0x37ea9d,_0x2a7bcd,{'role':'menu'});const _0x45da36=[];for(const _0x38194d of _0x2a7bcd)En(_0x38194d)&&_0x45da36['push'](this['editor']['commands']['get'](_0x38194d['model']['commandName']));const _0x10e53a=_0x37ea9d['buttonView'];return _0x10e53a['actionView']['unbind']('isEnabled'),_0x10e53a['arrowView']['unbind']('isEnabled'),_0x10e53a['actionView']['bind']('isEnabled')['to'](_0x455767,'isEnabled'),_0x10e53a['arrowView']['bind']('isEnabled')['toMany'](_0x45da36,'isEnabled',(..._0x6dc3ce)=>_0x6dc3ce['some'](_0x31fd3a=>_0x31fd3a)),_0x37ea9d['on']('execute',_0x2c3fb0=>{this['editor']['execute'](_0x2c3fb0['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x37ea9d;}['_createMenuBarMenu'](_0xd43248,_0x4c8887,_0x56fce3){const _0x412d4e=new _0x310d48(_0xd43248),_0x4a38ae=this['editor']['commands']['get']('trackChanges');_0x412d4e['buttonView']['set']({'label':_0x56fce3,'icon':_0x20b319});const _0x395b98=new _0x34ef5b(_0xd43248);for(const _0x5302ef of _0x4c8887){if('separator'==_0x5302ef['type']){_0x395b98['items']['add'](new _0x4bae18(_0xd43248));continue;}const _0x43ac6d=new _0x2c3960(_0xd43248,_0x412d4e),_0x39e957=new _0x196eea(_0xd43248),_0x53f1a9=_0x5302ef['model'];_0x39e957['bind'](...Object['keys'](_0x53f1a9))['to'](_0x53f1a9),_0x39e957['delegate']('execute')['to'](_0x412d4e),_0x39e957['on']('execute',()=>{this['editor']['execute'](_0x53f1a9['commandName']),this['editor']['editing']['view']['focus']();}),_0x43ac6d['children']['add'](_0x39e957),_0x395b98['items']['add'](_0x43ac6d);}return _0x412d4e['bind']('isEnabled')['to'](_0x4a38ae,'isEnabled'),_0x412d4e['panelView']['children']['add'](_0x395b98),_0x412d4e;}['_initializeController'](_0x1d08a0){const _0x4ad8b=this['editor'],_0x4d5f35=_0x4ad8b['config'],_0x49b575=_0x4ad8b['plugins']['get'](_0x306ff4),_0x577e82=_0x4ad8b['plugins']['get'](_0x424274),_0x39fa21=_0x4ad8b['plugins']['get'](_0x2a31b0),_0x1ef18a=_0x4ad8b['plugins']['get'](_0x345397)['me'],_0x2f655d=_0x4d5f35['get']('trackChanges')['SuggestionThreadView'],_0x207c98=_0x4d5f35['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4121ef,CommentThreadInputView:_0x592145}=_0x4ad8b['plugins']['get']('CommentsUI');let _0x208660,_0x357d19,_0x26f30b;this['_annotationViews']['has'](_0x1d08a0['id'])?(_0x357d19=this['_annotationViews']['get'](_0x1d08a0['id']),_0x208660=_0x357d19['mainView']):(_0x208660=new _0x2f655d(_0x4ad8b['locale'],_0x1d08a0,_0x1ef18a,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4d5f35['get']('comments.editorConfig'),'licenseKey':_0x4d5f35['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4d5f35['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4d5f35['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4d5f35['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x45b369(_0x4d5f35['get']('locale'),_0x4ad8b['locale']),'CommentView':_0x4d5f35['get']('comments')['CommentView'],'CommentsListView':_0x4121ef,'CommentThreadInputView':_0x592145,'SuggestionView':_0x207c98}),_0x208660['suggestionView']['acceptButton']['on']('execute',()=>{_0x4ad8b['editing']['view']['focus']();}),_0x208660['suggestionView']['discardButton']['on']('execute',()=>{_0x4ad8b['editing']['view']['focus']();}),_0x357d19=_0x49b575['createAnnotationView'](this['editor']['locale'],_0x208660),_0x357d19['bind']('isDirty')['to'](_0x208660,'isDirty'),_0x357d19['bind']('length')['to'](_0x208660),_0x357d19['bind']('type')['to'](_0x208660,'type',_0x51f46e=>'suggestion-'+_0x51f46e),_0x208660['on']('escape',()=>{_0x26f30b['fire']('escape');}),this['_annotationViews']['set'](_0x1d08a0['id'],_0x357d19));const _0x4a9106=_0x577e82['createCommentThreadController'](_0x1d08a0['commentThread'],_0x208660),_0x57f806=new hn(_0x4ad8b,_0x1d08a0,_0x208660,_0x4a9106),_0x3358af=_0x1d08a0['getAllAdjacentSuggestions']()['filter'](_0x79dbb5=>_0x79dbb5['isInContent']);_0x208660['descriptionParts']=_0x4ad8b['plugins']['get'](Xe)['descriptionFactory']['getDescriptions'](_0x3358af),this['_suggestionToController']['set'](_0x1d08a0,_0x57f806),this['_viewToController']['set'](_0x208660,_0x57f806);const _0x8a3b8f=()=>{const _0x113c89=[],_0x1fef53=_0x1d08a0['getAllAdjacentSuggestions']()['filter'](_0xaf8964=>_0xaf8964['isInContent']);for(const _0x2220cf of _0x1fef53)_0x113c89['push'](..._0x2220cf['getMarkers']());return _0xda1a43(_0x4ad8b['editing'],_0x113c89);};_0x26f30b=_0x49b575['createAnnotation']({'view':_0x357d19,'target':_0x8a3b8f,'type':()=>'suggestion-'+_0x57f806['view']['type'],'isVisible':!!_0x8a3b8f()}),_0x577e82['_bindAnnotationToEditors'](_0x208660,_0x26f30b),_0x49b575['add'](_0x26f30b),_0x39fa21['registerAnnotation'](_0x26f30b);}['_destroyController'](_0x217967){const _0x21f924=this['editor']['plugins']['get'](_0x424274),_0x1fd830=this['editor']['plugins']['get'](_0x306ff4),_0x9adbc9=this['_suggestionToController']['get'](_0x217967),_0xa40391=_0x9adbc9['view'],_0x5c9d42=_0x1fd830['getByInnerView'](_0xa40391);_0x21f924['_unbindEditors'](_0xa40391),_0x5c9d42&&_0x1fd830['remove'](_0x5c9d42),this['_suggestionToController']['delete'](_0x217967),this['_viewToController']['delete'](_0xa40391),_0x9adbc9['destroy']();}['_updateController'](_0x229826){if(!_0x229826['isInContent']||!this['_suggestionToController']['has'](_0x229826))return;const _0x11eda8=this['editor']['plugins']['get'](Xe),_0x540a54=this['_suggestionToController']['get'](_0x229826),_0x3b608b=_0x229826['getAllAdjacentSuggestions']();_0x540a54['view']['descriptionParts']=_0x11eda8['descriptionFactory']['getDescriptions'](_0x3b608b);}['destroy'](){for(const _0x15287d of this['_suggestionToController']['keys']())this['_destroyController'](_0x15287d);for(const _0xfcdf62 of this['_annotationViews']['values']())_0xfcdf62['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function En(_0x2b9f80){return'model'in _0x2b9f80;}class Tn extends _0x687f86{static get['requires'](){return[Xe,mn,_0x5d3b42];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x3d64d2){this['editor']['plugins']['get'](Xe)['adapter']=_0x3d64d2;}get['adapter'](){return this['editor']['plugins']['get'](Xe)['adapter'];}['addSuggestion'](_0x5a2da8){return this['editor']['plugins']['get'](Xe)['addSuggestionData'](_0x5a2da8);}['getSuggestions']({skipNotAttached:_0x25b780=!0x1,toJSON:_0xf81bf6=!0x1}={}){return this['editor']['plugins']['get'](Xe)['getSuggestions']({'skipNotAttached':_0x25b780,'toJSON':_0xf81bf6});}['getSuggestion'](_0x3cef90){return this['editor']['plugins']['get'](Xe)['getSuggestion'](_0x3cef90);}}const _n=['Pagination'];class pn extends _0x687f86{static get['requires'](){return[Xe];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x462807=this['editor'];if(_0x462807['config']['define']('trackChangesData.editorCreator',_0x4f40ba=>{const _0x485ae7=_0x462807['model']['document']['getRootNames']()['reduce']((_0x686e31,_0x19c345)=>(_0x686e31[_0x19c345]='',_0x686e31),{});return _0x462807['constructor']['create'](_0x485ae7,_0x4f40ba);}),'function'!=typeof _0x462807['config']['get']('trackChangesData')['editorCreator'])throw new _0x2608ca('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x54fa6f){return bn(this['editor'],!0x0,_0x54fa6f);}['getDataWithDiscardedSuggestions'](_0x4cc6c7){return bn(this['editor'],!0x1,_0x4cc6c7);}}class Ln extends _0x687f86{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3db52c){function _0x1763e3(_0x3790ab){return _0x3790ab['map'](_0x466253=>String['fromCharCode'](_0x466253))['join']('');}super(_0x3db52c),this['result']='end',_0x3db52c[_0x1763e3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1763e3([0x76,0x69,0x65,0x77])][_0x1763e3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1763e3([0x61,0x75,0x74,0x6f]),_0x3db52c[_0x1763e3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1763e3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1763e3([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1763e3([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1763e3([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 In(_0x54cc55){return void 0x0!==_0x54cc55['getRootsAttributes'];}async function bn(_0x2a3923,_0x535eef,_0x3df990){const _0x43386e=_0xc99b65(_0x2a3923,_n);if(_0x43386e['plugins']['push'](Xe,Ln),In(_0x2a3923)){_0x43386e['roots']=Object['create'](null);for(const _0x54184b of _0x2a3923['model']['document']['getRootNames']())_0x43386e['roots'][_0x54184b]={'modelAttributes':_0x2a3923['getRootAttributes'](_0x54184b)};}const _0x1aa1b8=document['createDocumentFragment'](),_0x340d50=_0x2a3923['config']['get']('trackChangesData')['editorCreator'],_0x354eb9=await _0x340d50(_0x43386e,()=>function(_0x3cf2a7){const _0x4bc303=document['createElement']('div');return _0x3cf2a7['appendChild'](_0x4bc303),_0x4bc303;}(_0x1aa1b8));!function(_0x2471f4,_0x5b8a8d){const _0x31dac7=_0x2471f4['model']['document']['getRootNames']()['reduce']((_0x365013,_0x1653f1)=>(_0x365013[_0x1653f1]=_0x2471f4['data']['get']({'rootName':_0x1653f1}),_0x365013),{}),_0x1f7ab4=_0x2471f4['plugins']['get']('Users')['users']['map'](_0xb604cf=>({'id':_0xb604cf['id'],'name':_0xb604cf['name']})),_0x44bf8a=_0x2471f4['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4777e9=_0x2471f4['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4f8ae3=_0x5b8a8d['plugins']['get']('Users'),_0x2b108e=_0x5b8a8d['plugins']['get']('TrackChangesEditing'),_0x30b914=_0x5b8a8d['plugins']['get']('CommentsRepository');for(const _0x3875f1 of _0x30b914['getCommentThreads']())_0x3875f1['remove']();for(const _0x4bcc17 of _0x1f7ab4)_0x4f8ae3['getUser'](_0x4bcc17['id'])||_0x4f8ae3['addUser'](_0x4bcc17);_0x4f8ae3['me']||_0x4f8ae3['useAnonymousUser']();for(const _0x1ec415 of _0x4777e9)_0x30b914['addCommentThread'](_0x1ec415);for(const _0x46f442 of _0x44bf8a)_0x2b108e['addSuggestionData'](_0x46f442);_0x5b8a8d['data']['set'](_0x31dac7);}(_0x2a3923,_0x354eb9),_0x354eb9['execute'](_0x535eef?'acceptAllSuggestions':'discardAllSuggestions');const _0x36a0d0=In(_0x354eb9)?_0x354eb9['getFullData'](_0x3df990):_0x354eb9['data']['get'](_0x3df990);return await _0x354eb9['destroy'](),_0x36a0d0;}class An extends _0x3ad9d5{['options'];constructor(_0x5aebb9,_0xe5cd57){super(_0x5aebb9),this['options']=_0xe5cd57,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'](_0x4d54fb,_0x56d98a){if(!this['element'])return;const _0xf33225=[];for(const [_0x563e93,_0x37abf5]of _0x4d54fb){const _0x332777=document['createElement']('div');_0x332777['setAttribute']('data-ck-root-name',_0x563e93),_0x332777['className']=_0x37abf5['classes']+'\x20ck-track-changes-preview__root-container',_0x332777['innerHTML']=_0x37abf5['content'],_0xf33225['push'](_0x332777);}_0x56d98a(this['element'],_0xf33225),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class kn extends _0x4d1f2e{constructor(_0x4311db){super(_0x4311db),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x7dbd42=this['editor'],_0x15bc56=_0x7dbd42['locale'],_0x25e8d6=_0x7dbd42['plugins']['get']('Dialog');let _0x3f1007;const _0xbd8e7=function(_0xbda226){const _0x1c16a4={};if('editables'in _0xbda226['ui']['view']){for(const [_0x2d0c4c,_0x2c4392]of Object['entries'](_0xbda226['ui']['view']['editables']))_0x1c16a4[_0x2d0c4c]=_0x2c4392['element'];}else _0x1c16a4[_0xbda226['model']['document']['getRootNames']()[0x0]]=_0xbda226['ui']['view']['editable']['element'];return _0x1c16a4;}(_0x7dbd42),_0x5d2f3c=function(_0xc86981){let _0x316ccc=0x0;for(const _0x1ee86c of Object['values'](_0xc86981))_0x316ccc=Math['max'](_0x316ccc,_0x1ee86c['getBoundingClientRect']()['width']);let _0x59a6de=0x0;for(const _0x20902b of Object['values'](_0xc86981))_0x59a6de+=_0x20902b['getBoundingClientRect']()['height'];const _0x4bdbea=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x459afb=Math['min'](_0x59a6de,_0x4bdbea);return{'width':_0x316ccc,'height':_0x459afb};}(_0xbd8e7);_0x25e8d6['show']({'id':'finalContentPreview','title':At(_0x15bc56,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new An(_0x15bc56,{'dialogRects':_0x5d2f3c}),'onHide':()=>{_0x3f1007['detachFromDom']();},'onShow':()=>{_0x7dbd42['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0xfd2f20=>{const _0x1b5886=this['_standarizeRootsData'](_0xfd2f20,_0x7dbd42,_0xbd8e7);_0x25e8d6['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x1b5886,_0x7dbd42['config']['get']('trackChanges.preview.renderFunction'));}),_0x3f1007=new _0x131736(_0x15bc56,[_0x25e8d6['view']]),_0x3f1007['attachToDom'](),_0x3f1007['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x7dbd42['once']('destroy',()=>{_0x3f1007['detachFromDom']();});const _0xd6e9dc=_0x25e8d6['view']['headerView']['class'];_0x25e8d6['view']['headerView']['class']=_0xd6e9dc?_0xd6e9dc+'\x20ck-reset_all':'ck-reset_all',_0x25e8d6['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x25e8d6['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x4967cd=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4f130e=_0x4967cd['previewMode'],_0x935283={};if('$labels'===_0x4f130e){for(const _0x136747 of _0x4967cd['getMergeFieldsIds']())_0x935283[_0x136747]=_0x4967cd['getLabel'](_0x136747)||_0x136747;}else{const _0x136557='$defaultValues'===_0x4f130e?_0x4967cd['getDefaultValues']():_0x4967cd['getDataSetValues'](_0x4f130e,!0x0);for(const _0xa68e4d of Object['entries'](_0x136557)){const [_0x39be44,_0x430072]=_0xa68e4d;_0x935283[_0x39be44]=null!==_0x430072?_0x430072:_0x4967cd['getLabel'](_0x39be44)||_0x39be44;}}return{'mergeFieldsData':_0x935283};}['_standarizeRootsData'](_0x5cfa1a,_0x5509e6,_0x2fa59b){let _0x5eab83;if('string'==typeof _0x5cfa1a){const _0x4a9dc3=_0x5509e6['model']['document']['getRootNames']()[0x0];_0x5eab83={[_0x4a9dc3]:_0x5cfa1a};}else _0x5eab83=_0x5cfa1a;const _0x34bfbc=this['_fixMediaEmbeds'](_0x5eab83,_0x5509e6),_0x1a4072=function(_0x12d3d8,_0x6af213){for(const [_0x56b776,_0x4743bf]of _0x12d3d8)_0x4743bf['classes']=_0x6af213[_0x56b776]['classList']['value']['replace']('ck-focused','');return _0x12d3d8;}(this['_sortRoots'](_0x5509e6)['reduce']((_0x59a88c,_0x3b3771)=>(_0x59a88c['push']([_0x3b3771,{'content':_0x34bfbc[_0x3b3771],'classes':''}]),_0x59a88c),[]),_0x2fa59b);return _0x1a4072;}['_fixMediaEmbeds'](_0x4dd8d6,_0x5c8689){if(!_0x5c8689['plugins']['has']('MediaEmbedEditing'))return _0x4dd8d6;const _0x20bc2d=_0x5c8689['plugins']['get']('MediaEmbedEditing');for(const [_0x70c28d,_0x571bd0]of Object['entries'](_0x4dd8d6)){const _0x47a824=document['createElement']('div');_0x47a824['innerHTML']=_0x571bd0,(_0x47a824['querySelectorAll']('figure.media')['forEach'](_0x468191=>{const _0x542591=_0x468191['querySelector']('oembed');if(_0x542591){const _0x23748c=_0x542591['getAttribute']('url');if(_0x23748c){const _0xbdab94=_0x20bc2d['registry']['getMediaViewElement'](new et(_0x5c8689['editing']['view']['document']),_0x23748c,{'elementName':'','renderForEditingView':!0x0}),_0x2180d2=document['createElement']('div');_0x2180d2['classList']['add']('ck-media__wrapper'),_0xbdab94['render'](_0x2180d2,_0x5c8689['editing']['view']['domConverter']),_0x542591['replaceWith'](_0x2180d2);}}}),_0x4dd8d6[_0x70c28d]=_0x47a824['innerHTML']);}return _0x4dd8d6;}['_sortRoots'](_0x35f6b7){if(!function(_0x4f5e43){return void 0x0!==_0x4f5e43['getRootsAttributes'];}(_0x35f6b7))return _0x35f6b7['model']['document']['getRootNames']();const _0x18b0d8=[],_0x50fe7d=new Map();for(const _0x8396ab of _0x35f6b7['model']['document']['getRootNames']()){const _0xbd2af1=_0x35f6b7['editing']['view']['getDomRoot'](_0x8396ab)['getClientRects']()['item'](0x0);_0x18b0d8['push'](_0x8396ab),_0x50fe7d['set'](_0x8396ab,_0xbd2af1);}return _0x18b0d8['sort']((_0x2277b6,_0x434463)=>{const _0x205d2e=_0x50fe7d['get'](_0x2277b6),_0x20077b=_0x50fe7d['get'](_0x434463);return _0x205d2e['y']-_0x20077b['y']||_0x205d2e['x']-_0x20077b['x'];}),_0x18b0d8;}}class Cn extends _0x687f86{static get['requires'](){return[pn,_0x7238bc];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2ae02e){super(_0x2ae02e),_0x2ae02e['commands']['add']('previewFinalContent',new kn(this['editor'])),_0x2ae02e['config']['define']('trackChanges.preview.renderFunction',(_0x412474,_0x57a6d4)=>{for(const _0xfb86b4 of _0x57a6d4)_0x412474['appendChild'](_0xfb86b4);});}}export{dt as AcceptSuggestionCommand,dn as BaseSuggestionThreadView,ft as DiscardSuggestionCommand,Lt as ExecuteOnAllSuggestionsCommand,It as ExecuteOnSelectedSuggestionsCommand,kn as PreviewFinalContentCommand,bt as Suggestion,kt as SuggestionDescriptionFactory,fn as SuggestionThreadView,gn as SuggestionView,Tn as TrackChanges,ht as TrackChangesCommand,pn as TrackChangesData,Ln as TrackChangesDataGetter,Xe as TrackChangesEditing,Cn as TrackChangesPreview,mn as TrackChangesUI};