@ckeditor/ckeditor5-track-changes 47.6.0-alpha.4 → 47.6.0-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x24f82f,Plugin as _0x5107bb,PendingActions as _0x56344a}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x187e95,ObservableMixin as _0x22fddc,uid as _0xf5d073,priorities as _0x509283,insertToPriorityArray as _0x33f33c,logWarning as _0x5ba368,getEnvKeystrokeText as _0x56040c,FocusTracker as _0x38b42b,KeystrokeHandler as _0x2625f3,Collection as _0x3bd0ac}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x29c6a1,IconCancel as _0x3e6f6a,IconTrackChanges as _0x552007}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0xabcbde,View as _0xe23dbb,ViewCollection as _0x18cdf1,FocusCycler as _0x1d5863,UIModel as _0x4c9776,createDropdown as _0xd67522,SplitButtonView as _0x1d00b2,addListToDropdown as _0x135e0f,MenuBarMenuView as _0x1aefad,MenuBarMenuListView as _0x540b6e,ListSeparatorView as _0x3a3cfb,MenuBarMenuListItemView as _0x5a3971,MenuBarMenuListItemButtonView as _0x380209,BodyCollection as _0xdf54bc,Dialog as _0x4cbfbf}from'@ckeditor/ckeditor5-ui/dist/index.js';import{SuggestionsConversion as _0x2ed961,Users as _0x35c2b4,DocumentCompare as _0x1f49c4,fixElementSuggestionRange as _0xf22ca6,hashObject as _0x211986,splitSuggestionMarkerName as _0x7af1eb,surroundingMarkersDetector as _0x2dd89b,FOCUS_ANNOTATION_KEYSTROKE as _0x209231,AriaDescriptionView as _0x678961,setupThreadKeyboardNavigation as _0xad1d28,trimHtml as _0x1550e6,UserView as _0x92466b,LateFocusButtonView as _0x4e8bf4,getDateTimeFormatter as _0x2a46d4,getAllMarkersDomElementsSorted as _0x777ecb,sanitizeEditorConfig as _0x922b51}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x1e0d9d,ModelLiveRange as _0xe89877,ModelLivePosition as _0x21db0a,ViewDowncastWriter as _0x24aa95}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x162899,set as _0x9470f0,isEqual as _0x4ea718,unset as _0x626380,omit as Jt}from'es-toolkit/compat';import{Delete as _0x1a991d,Input as _0x39ac54}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x5aaab2}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x475d0c}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x24f82f{['_enabledCommands'];constructor(_0x2cb3ce,_0x4ab659){super(_0x2cb3ce),this['_enabledCommands']=_0x4ab659,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 _0x352bac of this['editor']['commands']['commands']())_0x352bac['affectsData']&&!this['_enabledCommands']['has'](_0x352bac)&&_0x352bac['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xb5fdf2 of this['editor']['commands']['commands']())_0xb5fdf2['affectsData']&&!this['_enabledCommands']['has'](_0xb5fdf2)&&_0xb5fdf2['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x24f82f{['_suggestions'];constructor(_0x10a962,_0x14a67d){super(_0x10a962),this['_suggestions']=_0x14a67d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x24cfab){const _0x1c6fd3=this['_suggestions']['get'](_0x24cfab);if(!_0x1c6fd3)throw new _0x187e95('track-changes-accept-suggestion-not-found',this);const _0x436106=_0x1c6fd3['getRanges']();this['editor']['model']['canEditAt'](_0x436106)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1c6fd3);}}class x extends _0x24f82f{['_suggestions'];constructor(_0x21934a,_0x34540c){super(_0x21934a),this['_suggestions']=_0x34540c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x10eeb5){const _0x20dcc4=this['_suggestions']['get'](_0x10eeb5);if(!_0x20dcc4)throw new _0x187e95('track-changes-discard-suggestion-not-found',this);const _0x5b369c=_0x20dcc4['getRanges']();this['editor']['model']['canEditAt'](_0x5b369c)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x20dcc4);}}function ls(_0x3d8b07,_0x196b3c){let _0x128f9f='';return _0x128f9f+=_0x3d8b07['split']('*')['map']((_0x282b40,_0x14d8a6)=>_0x14d8a6%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rn(_0x282b40)+'</span>':rn(_0x282b40))['join'](''),_0x196b3c&&(_0x128f9f+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x196b3c['value']+'\x22\x20title=\x22'+_0x196b3c['title']+'\x22></span>'),_0x128f9f;}function rn(_0xb6c12b){const _0x172dd7=document['createElement']('span');return _0x172dd7['innerText']=_0xb6c12b,_0x172dd7['innerHTML'];}function ts(_0x5594bf){return _0x5594bf['sort']((_0x4311d5,_0x458c05)=>'attribute'===_0x4311d5['type']&&'attribute'!==_0x458c05['type']?-0x1:'attribute'!==_0x4311d5['type']&&'attribute'===_0x458c05['type']?0x1:'deletion'==_0x4311d5['type']&&'deletion'!=_0x458c05['type']?-0x1:'deletion'!=_0x4311d5['type']&&'deletion'==_0x458c05['type']?0x1:0x0);}function to(_0x5ba4a7,_0x463d82){let _0x3d0133,_0x5a29b8=0x0;const _0x3a3994=[],_0xf37965=_0x463d82['schema'];for(;_0x5a29b8<_0x5ba4a7['length'];){const _0x1000d3=_0x5ba4a7[_0x5a29b8],_0x537f7e=_0x5ba4a7[_0x5a29b8+0x1];_0x3d0133||(_0x3d0133=_0x463d82['createPositionBefore'](_0x1000d3)),cn(_0x463d82,_0x1000d3,_0x537f7e)||(_0x3a3994['push'](_0x463d82['createRange'](_0x3d0133,_0xf37965['isObject'](_0x1000d3)?_0x463d82['createPositionAfter'](_0x1000d3):_0x463d82['createPositionAt'](_0x1000d3,'end'))),_0x3d0133=null),_0x5a29b8++;}return _0x3a3994;}function cn(_0x35b517,_0x4617e4,_0x44dbfc){if(!_0x44dbfc)return!0x1;const _0x1a8442=_0x35b517['createPositionAfter'](_0x4617e4),_0xaed5b=_0x35b517['createPositionBefore'](_0x44dbfc);return _0x1a8442['isTouching'](_0xaed5b);}function rs(_0x3f85b5,_0x332ca9,_0x492601){for(;_0x492601['length'];){const _0x51bf50=_0x492601['splice'](0x0,0x64);_0x3f85b5['change'](()=>{for(const _0x2e3ad5 of _0x51bf50)_0x2e3ad5['isInContent']&&_0x332ca9['execute'](_0x2e3ad5['id']);});}}class M extends _0x24f82f{['_command'];['_suggestions'];constructor(_0x3517bb,_0x5dd2e1,_0x53d578){super(_0x3517bb),this['_command']=_0x5dd2e1,this['_suggestions']=_0x53d578,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1319eb=Array['from'](this['_suggestions']['values']())['some'](_0x231b66=>_0x231b66['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1319eb;}['execute'](){const _0x4bde14=ts(Array['from'](this['_suggestions']['values']()));for(const _0x3fb502 of _0x4bde14){const _0x57b8e2=_0x3fb502['getRanges']();if(!this['editor']['model']['canEditAt'](_0x57b8e2))return;}rs(this['editor']['model'],this['_command'],_0x4bde14);}}class R extends _0x24f82f{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4f3b5a,_0x143dee,_0x5770d8){super(_0x4f3b5a),this['_command']=_0x143dee,this['_suggestions']=_0x5770d8,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2d7650=this['editor']['model']['document']['selection'],_0x1b74f0=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x98b235,_0x15215c){const _0x4a1b57=Array['from'](_0x98b235['getRanges']()),_0xd85fcd=new Set();for(const _0x24366d of _0x15215c)if(_0x24366d['isInContent']){for(const _0x312792 of _0x4a1b57)for(const _0x4f9ad7 of _0x24366d['getRanges']())(_0x312792['isIntersecting'](_0x4f9ad7)||_0x98b235['isCollapsed']&&!_0x24366d['isMultiRange']&&_0x24366d['next']&&_0x4f9ad7['end']['isTouching'](_0x312792['start']))&&_0xd85fcd['add'](_0x24366d);}return _0xd85fcd;}(_0x2d7650,_0x1b74f0),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xac07c=ts(Array['from'](this['_selectedSuggestions']));for(const _0x10e2ed of _0xac07c){const _0x367197=_0x10e2ed['getRanges']();if(!this['editor']['model']['canEditAt'](_0x367197))return;}rs(this['editor']['model'],this['_command'],_0xac07c);}}class T extends/* #__PURE__ -- @preserve */
24
- _0x22fddc(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3c8ee3,_0x2a1c7c){super(),this['id']=_0x2a1c7c['id'],this['type']=_0x2a1c7c['type'],this['subType']=_0x2a1c7c['subType']||null,this['author']=_0x2a1c7c['author'],this['creator']=_0x2a1c7c['creator']||_0x2a1c7c['author'],this['isExternal']=Boolean(_0x2a1c7c['attributes']&&_0x2a1c7c['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x2a1c7c['originalSuggestionId']||null,this['_model']=_0x3c8ee3,this['_onAccept']=_0x2a1c7c['onAccept'],this['_onDiscard']=_0x2a1c7c['onDiscard'],this['_onAttributesChange']=_0x2a1c7c['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2a1c7c['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 _0x2bab54=this;for(;_0x2bab54['previous'];)_0x2bab54=_0x2bab54['previous'];return _0x2bab54;}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'](_0x26a488){this['_markerNames']['add'](_0x26a488);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x29cbee=>this['_model']['markers']['get'](_0x29cbee))['filter'](_0x5e25df=>_0x5e25df);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x310055=>{for(const _0x26eb49 of this['getMarkers']())_0x310055['removeMarker'](_0x26eb49);}),this['_markerNames']['clear']();}['removeMarker'](_0x3d1a8a){this['_model']['change'](_0xd2dbef=>{_0xd2dbef['removeMarker'](_0x3d1a8a);}),this['_markerNames']['delete'](_0x3d1a8a);}['addRange'](_0x4c80c9){const _0x73b6f9='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x73b6f9),this['_model']['change'](_0x294276=>{_0x294276['addMarker'](_0x73b6f9,{'range':_0x4c80c9,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x454968){for(const _0x26c72d of this['getRanges']())if(_0x26c72d['isIntersecting'](_0x454968))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2b834e=>_0x2b834e['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x35ff6b,_0xeed02a)=>[..._0x35ff6b,..._0xeed02a['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3f3659=this['getRanges']();if(0x1!=_0x3f3659['length'])return null;const _0x3c5a42=_0x3f3659[0x0],_0x35e136=_0x3c5a42['start']['nodeAfter'],_0x1e2241=_0x3c5a42['end']['nodeBefore'];return _0x35e136 instanceof _0x1e0d9d?_0x35e136!=_0x1e2241?null:_0x35e136: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 _0x5dd240=[];let _0x39d808=this['head'];for(;_0x39d808;)_0x5dd240['push'](_0x39d808),_0x39d808=_0x39d808['next'];return _0x5dd240;}['setAttribute'](_0x5a2a7e,_0x3ba728){const _0x1eefb4=_0x162899(this['attributes']);_0x9470f0(_0x1eefb4,_0x5a2a7e,_0x3ba728),_0x4ea718(_0x1eefb4,this['attributes'])||(this['attributes']=_0x1eefb4,this['_onAttributesChange'](_0x1eefb4));}['removeAttribute'](_0x2f5905){const _0x4ffdc9=_0x162899(this['attributes']);_0x626380(_0x4ffdc9,_0x2f5905),_0x4ea718(_0x4ffdc9,this['attributes'])||(this['attributes']=_0x4ffdc9,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 _0xf5d073()['substr'](0x1,0x5);}}function o(_0x10f0e0,_0x3db3c3,_0x1f341b){const _0x5b7981=_0x10f0e0['t'],t=_0x10f0e0['t'];switch(_0x3db3c3){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',_0x1f341b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1f341b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1f341b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1f341b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1f341b);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',_0x1f341b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1f341b);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',_0x1f341b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1f341b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1f341b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1f341b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1f341b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1f341b);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x1f341b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1f341b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1f341b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1f341b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1f341b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1f341b);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1f341b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1f341b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1f341b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1f341b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1f341b);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x1f341b);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'},_0x1f341b);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x1f341b);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x1f341b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1f341b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1f341b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1f341b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1f341b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1f341b);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'},_0x1f341b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1f341b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1f341b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1f341b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1f341b);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'},_0x1f341b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1f341b);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'},_0x1f341b);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'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'},_0x1f341b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1f341b);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'},_0x1f341b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1f341b);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'},_0x1f341b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1f341b);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x1f341b);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x1f341b);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x1f341b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1f341b);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'},_0x1f341b);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x1f341b);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 _0x5b7981({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1f341b);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5b7981({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1f341b);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1f341b);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'},_0x1f341b);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'},_0x1f341b);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'},_0x1f341b);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3db3c3;}}class E{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x499433,_0x11719c){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x499433,this['_locale']=_0x11719c;}['getDescriptions'](_0x100408){const _0x8caaad=[],_0x10f9e2=new Set(),_0x3511f9=new Set();for(let _0x492d23=0x0;_0x492d23<_0x100408['length'];_0x492d23++){const _0x46168e=_0x100408[_0x492d23];if(!_0x46168e['isInContent'])continue;const _0x302502=this['_handleCustomCallbackDescription'](_0x46168e);if(_0x302502){if(null!=_0x46168e['subType']){if(_0x10f9e2['has'](_0x46168e['subType']))continue;_0x10f9e2['add'](_0x46168e['subType']);}_0x8caaad['push'](_0x302502);}else{if('attribute'==_0x46168e['type']){const _0x201a87=_0x46168e['data']['key'];if(_0x3511f9['has'](_0x201a87))continue;_0x3511f9['add'](_0x46168e['data']['key']),_0x201a87==m?this['_handleRenameSuggestionDescription'](_0x8caaad,_0x46168e):this['_handleAttributeSuggestionDescription'](_0x8caaad,_0x46168e);continue;}'insertion'!=_0x46168e['type']&&'deletion'!=_0x46168e['type']||this['_handleInsertRemoveSuggestionDescription'](_0x8caaad,_0x46168e,_0x100408[_0x492d23+0x1]);}}return this['_resolveDescriptionItems'](_0x8caaad);}['registerDescriptionCallback'](_0x2f69fd){this['_customCallbacks']['push'](_0x2f69fd);}['registerElementLabel'](_0x3d6d45,_0x57281b,_0x2cfe73=_0x509283['normal']){'function'==typeof _0x3d6d45?_0x33f33c(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3d6d45,'label':_0x57281b,'priority':_0x2cfe73}):this['_itemLabels']['set'](_0x3d6d45,_0x57281b);}['registerAttributeLabel'](_0x1d8344,_0x421aef){this['_attributeLabels']['set'](_0x1d8344,_0x421aef);}['getItemLabel'](_0x56a53e,_0x423fe8=0x1){let _0x3c9c13;for(const _0x3df0a3 of this['_itemLabelsCallbacks'])if(_0x3df0a3['matchingCallback'](_0x56a53e)){_0x3c9c13=_0x3df0a3['label'];break;}return _0x3c9c13||(_0x3c9c13=this['_itemLabels']['get'](_0x56a53e['name'])),_0x3c9c13?_0x3c9c13(_0x423fe8):0x1!==_0x423fe8?_0x423fe8+'\x20'+_0x56a53e['name']+'s':''+_0x56a53e['name'];}['_addDescriptionItems'](_0x225e32,_0x594fa0){const _0x27126d=_0x594fa0['getFirstRange']()['getWalker'](),_0x126cb0='insertion'==_0x594fa0['type']?'add':'remove';for(const _0x2a9456 of _0x27126d){const _0x4777ab=_0x2a9456['item'],_0x2be0c8=_0x225e32[_0x225e32['length']-0x1];if(_0x4777ab['is']('$textProxy'))_0x2be0c8&&_0x2be0c8['type']['indexOf']('Container')>-0x1&&_0x225e32['pop'](),_0x2be0c8&&'text'==_0x2be0c8['type']?_0x2be0c8[_0x126cb0]+=_0x4777ab['data']:_0x225e32['push']({'type':'text','add':'add'==_0x126cb0?_0x4777ab['data']:'','remove':'remove'==_0x126cb0?_0x4777ab['data']:''});else{if(this['_schema']['isObject'](_0x4777ab)){const _0x137be8=_0x4777ab;if(_0x2be0c8&&_0x2be0c8['type']['indexOf']('Container')>-0x1&&_0x225e32['pop'](),'elementEnd'==_0x2a9456['type'])continue;_0x2be0c8&&_0x2be0c8['type']==_0x126cb0+'Object'&&_0x2be0c8['element']['name']==_0x137be8['name']?_0x2be0c8['quantity']++:_0x225e32['push']({'type':_0x126cb0+'Object','element':_0x137be8,'quantity':0x1}),_0x27126d['skip'](_0xd6ed94=>!('elementEnd'==_0xd6ed94['type']&&_0xd6ed94['item']==_0x4777ab));}else{if(this['_schema']['checkChild'](_0x4777ab,'$text')||_0x4777ab['is']('element','softBreak')){const _0x4d1301=_0x4777ab;if('add'==_0x126cb0&&'elementStart'==_0x2a9456['type']||'remove'==_0x126cb0&&'elementEnd'==_0x2a9456['type'])continue;if(_0x2be0c8&&-0x1==_0x2be0c8['type']['indexOf']('Container')){'text'==_0x2be0c8['type']&&(_0x2be0c8[_0x126cb0]+='\x0a');continue;}let _0x7dad36;if(_0x7dad36='add'==_0x126cb0?_0x4d1301['nextSibling']&&!this['_schema']['isObject'](_0x4d1301['nextSibling'])?_0x4d1301['nextSibling']:null:_0x4d1301['previousSibling']&&!this['_schema']['isObject'](_0x4d1301['previousSibling'])?_0x4d1301['previousSibling']:null,_0x4d1301['isEmpty']||_0x7dad36&&_0x7dad36['isEmpty']){const _0x528115=_0x7dad36&&_0x7dad36['isEmpty']?_0x7dad36:_0x4d1301;_0x2be0c8&&_0x2be0c8['type']==_0x126cb0+'EmptyContainer'&&_0x2be0c8['element']['name']==_0x528115['name']?_0x2be0c8['quantity']++:_0x225e32['push']({'type':_0x126cb0+'EmptyContainer','element':_0x528115,'quantity':0x1});}else _0x225e32['push']({'type':_0x126cb0+'Container','element':_0x4d1301});}}}}}['_resolveDescriptionItems'](_0x83495a){const _0x290378=this['_locale'],_0x2f2e83=[],_0x2ba51a=[],_0x5a8f8e=[];for(const _0x2cc254 of _0x83495a)switch(_0x2cc254['type']){case'text':if(_0x2cc254['add']=_0x2cc254['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2cc254['remove']=_0x2cc254['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2cc254['add']&&''!=_0x2cc254['remove']){_0x2f2e83['push']({'type':'replace','content':o(_0x290378,'REPLACE_TEXT',['\x22'+_0x2cc254['remove']+'\x22','\x22'+_0x2cc254['add']+'\x22'])});continue;}if(null!=_0x2cc254['add']['match'](/^ +$/)){_0x2f2e83['push']({'type':'insertion','content':o(_0x290378,'*Insert:*\x20%0',o(_0x290378,'ELEMENT_SPACE',_0x2cc254['add']['length']))});continue;}if(null!=_0x2cc254['remove']['match'](/^ +$/)){_0x2f2e83['push']({'type':'deletion','content':o(_0x290378,'*Remove:*\x20%0',o(_0x290378,'ELEMENT_SPACE',_0x2cc254['remove']['length']))});continue;}if(''!=_0x2cc254['add']){_0x2f2e83['push']({'type':'insertion','content':o(_0x290378,'*Insert:*\x20%0','\x22'+_0x2cc254['add']+'\x22')});continue;}_0x2f2e83['push']({'type':'deletion','content':o(_0x290378,'*Remove:*\x20%0','\x22'+_0x2cc254['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2f2e83['push']({'type':'insertion','content':o(_0x290378,'*Insert:*\x20%0',this['getItemLabel'](_0x2cc254['element'],_0x2cc254['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2f2e83['push']({'type':'deletion','content':o(_0x290378,'*Remove:*\x20%0',this['getItemLabel'](_0x2cc254['element'],_0x2cc254['quantity']))});continue;case'addContainer':_0x2f2e83['push']({'type':'insertion','content':o(_0x290378,'*Split:*\x20%0',this['getItemLabel'](_0x2cc254['element'],_0x2cc254['quantity']))});continue;case'removeContainer':_0x2f2e83['push']({'type':'deletion','content':o(_0x290378,'*Merge:*\x20%0',this['getItemLabel'](_0x2cc254['element'],_0x2cc254['quantity']))});continue;case'addFormat':_0x2ba51a['push'](_0x2cc254['key']);continue;case'removeFormat':_0x5a8f8e['push'](_0x2cc254['key']);continue;default:_0x2f2e83['push'](_0x2cc254);}if(_0x2ba51a['length']){const _0x29ddb9=_0x2ba51a['map'](_0xc031e7=>this['_attributeLabels']['has'](_0xc031e7)?this['_attributeLabels']['get'](_0xc031e7):_0xc031e7)['join'](',\x20');_0x2f2e83['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x29ddb9)});}if(_0x5a8f8e['length']){const _0x4b85b9=_0x5a8f8e['map'](_0x29ac08=>this['_attributeLabels']['has'](_0x29ac08)?this['_attributeLabels']['get'](_0x29ac08):_0x29ac08)['join'](',\x20');_0x2f2e83['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4b85b9)});}return _0x2f2e83;}['_handleCustomCallbackDescription'](_0x5ebfa7){for(const _0x5b77d3 of this['_customCallbacks']){const _0x4ddddb=_0x5b77d3(_0x5ebfa7);if(_0x4ddddb&&'type'in _0x4ddddb)return _0x4ddddb;}}['_handleAttributeSuggestionDescription'](_0x169ec3,_0x5c2c68){const _0x2a3c4c=_0x5c2c68['data'],_0x162efa=void 0x0===_0x2a3c4c['newValue']?'removeFormat':'addFormat';_0x169ec3['push']({'type':_0x162efa,'key':_0x2a3c4c['key']});}['_handleRenameSuggestionDescription'](_0x31cf5c,_0x2a9262){_0x31cf5c['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2a9262['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x8cdd3f,_0x3cb8cc,_0x36febc){if(this['_addDescriptionItems'](_0x8cdd3f,_0x3cb8cc),_0x36febc&&_0x36febc['getFirstRange']()&&!_0x3cb8cc['getFirstRange']()['end']['isEqual'](_0x36febc['getFirstRange']()['start'])){const _0x3e86de=_0x8cdd3f[_0x8cdd3f['length']-0x1],_0x5cee46='insertion'==_0x3cb8cc['type']?'add':'remove';_0x3e86de&&'text'==_0x3e86de['type']&&(_0x3e86de[_0x5cee46]+='\x0a');}}}class U extends _0x5107bb{['afterInit'](){const _0x1c4f6f=this['editor'],_0x3b2bef=_0x1c4f6f['plugins']['get']('TrackChangesEditing');_0x1c4f6f['commands']['get']('showAIAssistant')&&_0x3b2bef['enableCommand']('showAIAssistant');}}class V extends _0x5107bb{['afterInit'](){const _0x2ff145=this['editor'],_0x1d4c57=_0x2ff145['plugins']['get']('TrackChangesEditing');_0x2ff145['commands']['get']('toggleAi')&&_0x1d4c57['enableCommand']('toggleAi');}}class F extends _0x5107bb{['afterInit'](){const _0x3b0d51=this['editor'],_0x4425c9=_0x3b0d51['plugins']['get']('TrackChangesEditing');_0x3b0d51['commands']['get']('aiQuickAction')&&_0x4425c9['enableCommand']('aiQuickAction');}}class G extends _0x5107bb{['afterInit'](){const _0x5b0b24=this['editor'],_0x59dcbb=_0x5b0b24['locale'];if(!_0x5b0b24['plugins']['has']('AlignmentEditing'))return;const _0x458621=_0x5b0b24['plugins']['get']('TrackChangesEditing');_0x458621['enableDefaultAttributesIntegration']('alignment'),_0x458621['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x59dcbb,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x253b03=this['editor'],_0x1587f9=_0x253b03['locale'];_0x253b03['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18b52f=>{if('formatBlock'!=_0x18b52f['type'])return;const {data:_0x2f2bad}=_0x18b52f;if(_0x2f2bad&&'alignment'==_0x2f2bad['commandName']){const _0x588979=_0x2f2bad['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1587f9,'*Format:*\x20%0',function(_0x50369d){switch(_0x50369d){case'left':return o(_0x1587f9,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1587f9,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1587f9,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1587f9,'FORMAT_JUSTIFY_TEXT');}}(_0x588979))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class L extends _0x5107bb{['afterInit'](){const _0x573162=this['editor'],_0x50f5ef=_0x573162['plugins']['get']('TrackChangesEditing'),_0x486823=_0x573162['locale'];for(const _0x2d5434 of ti){if(!_0x573162['plugins']['has'](_0x2d5434))continue;const _0x23faf5=_0x2d5434['slice'](0x0,-0x7)['toLowerCase'](),_0xbce3bf='FORMAT_'+_0x23faf5['toUpperCase']();_0x50f5ef['enableDefaultAttributesIntegration'](_0x23faf5),_0x50f5ef['descriptionFactory']['registerAttributeLabel'](_0x23faf5,o(_0x486823,_0xbce3bf));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39c3b7=this['editor'],_0x29ddb7=_0x39c3b7['locale'],_0xf9a3ed=_0x39c3b7['plugins']['get']('TrackChangesEditing');function _0x116bf2(_0x2e55f9,_0x5976c4){_0xf9a3ed['descriptionFactory']['registerDescriptionCallback'](_0x49a3f6=>{if('formatInline'!=_0x49a3f6['type'])return;const {data:_0x3fbc8e}=_0x49a3f6;return _0x3fbc8e&&_0x3fbc8e['commandName']===_0x2e55f9?_0x3fbc8e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x29ddb7,'*Format:*\x20%0',_0x5976c4)}:{'type':'format','content':o(_0x29ddb7,'*Remove\x20format:*\x20%0',_0x5976c4)}:void 0x0;});}_0x116bf2('bold',o(_0x29ddb7,'FORMAT_BOLD')),_0x116bf2('italic',o(_0x29ddb7,'FORMAT_ITALIC')),_0x116bf2('underline',o(_0x29ddb7,'FORMAT_UNDERLINE')),_0x116bf2('code',o(_0x29ddb7,'FORMAT_CODE')),_0x116bf2('strikethrough',o(_0x29ddb7,'FORMAT_STRIKETHROUGH')),_0x116bf2('subscript',o(_0x29ddb7,'FORMAT_SUBSCRIPT')),_0x116bf2('superscript',o(_0x29ddb7,'FORMAT_SUPERSCRIPT'));}}class J extends _0x5107bb{['afterInit'](){const _0x10bcee=this['editor'],_0x5f5963=_0x10bcee['locale'];if(!_0x10bcee['plugins']['has']('BlockQuoteEditing'))return;const _0x8dc3a4=_0x10bcee['plugins']['get']('TrackChangesEditing'),_0x1059af=this['editor']['commands']['get']('blockQuote');_0x8dc3a4['enableCommand']('blockQuote',(_0x591cd2,_0x1a5868={})=>{const _0x1c5bb2=this['editor']['model']['document']['selection'],_0x727ee4=_0x1a5868&&void 0x0!==_0x1a5868['forceValue']?_0x1a5868['forceValue']:!_0x1059af['value'];let _0x23e1e3=[];if(_0x727ee4){const _0x1eb18d=Array['from'](_0x1c5bb2['getSelectedBlocks']())['filter'](_0x11712a=>oo(_0x11712a)||function(_0x19bed2,_0x144a91){const _0x19d096=_0x144a91['checkChild'](_0x19bed2['parent'],'blockQuote'),_0x3c1515=_0x144a91['checkChild'](['$root','blockQuote'],_0x19bed2);return _0x19d096&&_0x3c1515;}(_0x11712a,this['editor']['model']['schema']));_0x23e1e3=to(_0x1eb18d,_0x10bcee['model']);}else{const _0x3e9451=Array['from'](_0x1c5bb2['getSelectedBlocks']())['filter'](_0x55379f=>oo(_0x55379f));_0x23e1e3=to(_0x3e9451,_0x10bcee['model']);}_0x10bcee['model']['change'](()=>{for(const _0x2dd354 of _0x23e1e3)_0x8dc3a4['markBlockFormat'](_0x2dd354,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x727ee4}]});});}),_0x8dc3a4['descriptionFactory']['registerDescriptionCallback'](_0x4cdaa5=>{const {data:_0x1bba34}=_0x4cdaa5;if(_0x1bba34&&'blockQuote'==_0x1bba34['commandName']){const _0x335362=o(_0x5f5963,'ELEMENT_BLOCK_QUOTE');return _0x1bba34['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5f5963,'*Set\x20format:*\x20%0',_0x335362)}:{'type':'format','content':o(_0x5f5963,'*Remove\x20format:*\x20%0',_0x335362)};}});}}function oo(_0x40881f){return'blockQuote'==_0x40881f['parent']['name'];}class q extends _0x5107bb{['afterInit'](){const _0x48d919=this['editor'],_0x3fd892=_0x48d919['locale'],_0x555c2c=_0x48d919['plugins']['get']('TrackChangesEditing');_0x48d919['plugins']['has']('BookmarkEditing')&&(_0x555c2c['enableCommand']('insertBookmark'),_0x555c2c['enableDefaultAttributesIntegration']('updateBookmark'),_0x555c2c['descriptionFactory']['registerDescriptionCallback'](_0x56d5a3=>{if('insertion'!=_0x56d5a3['type']&&'deletion'!=_0x56d5a3['type']&&'attribute'!=_0x56d5a3['type'])return;const _0x5bf2ad=_0x56d5a3['getContainedElement']();if(null==_0x5bf2ad)return;if(!_0x5bf2ad['is']('element','bookmark'))return;const _0x31a831=_0x5bf2ad['getAttribute']('bookmarkId');if('insertion'==_0x56d5a3['type'])return{'type':'insertion','content':o(_0x3fd892,'*Insert:*\x20%0','\x22'+_0x31a831+'\x22\x20'+o(_0x3fd892,'ELEMENT_BOOKMARK'))};if('deletion'==_0x56d5a3['type'])return{'type':'deletion','content':o(_0x3fd892,'*Remove:*\x20%0','\x22'+_0x31a831+'\x22\x20'+o(_0x3fd892,'ELEMENT_BOOKMARK'))};const {data:_0xe46f8e}=_0x56d5a3;if(!_0xe46f8e||'bookmarkId'!=_0xe46f8e['key'])return;return{'type':'format','content':o(_0x3fd892,'*Set\x20bookmark:*\x20%0','\x22'+_0xe46f8e['newValue']+'\x22')};}));}}class z extends _0x5107bb{['afterInit'](){const _0x4aabb6=this['editor'];_0x4aabb6['plugins']['has']('CaseChange')&&(_0x4aabb6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4aabb6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4aabb6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x5107bb{['afterInit'](){const _0x4b3e9e=this['editor'];_0x4b3e9e['commands']['get']('ckbox')&&_0x4b3e9e['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0x5107bb{['afterInit'](){const _0x1ed9b0=this['editor'];if(!_0x1ed9b0['plugins']['has']('CodeBlock'))return;const _0x568603=_0x1ed9b0['plugins']['get']('TrackChangesEditing'),_0x508f56=_0x1ed9b0['locale'],_0xcae1b9=_0x1ed9b0['config']['get']('codeBlock')['languages'],_0x455bcd=_0x1ed9b0['commands']['get']('codeBlock');_0x568603['enableCommand']('indentCodeBlock'),_0x568603['enableCommand']('outdentCodeBlock'),_0x568603['enableCommand']('codeBlock',(_0x55192c,_0x30a54f={})=>{const _0x4ad4f1=_0x1ed9b0['model'],_0x43b461=_0x1ed9b0['model']['document']['selection'],_0x25844c=_0x30a54f&&void 0x0!==_0x30a54f['forceValue']?_0x30a54f['forceValue']:!_0x455bcd['value'];let _0x581e85;_0x30a54f['language']||(_0x30a54f['language']=_0xcae1b9[0x0]['language']),_0x581e85=_0x25844c?Array['from'](_0x43b461['getSelectedBlocks']())['filter'](_0x308b96=>co(_0x308b96)||function(_0xed020e,_0x420793){if(_0xed020e['is']('rootElement')||_0x420793['isLimit'](_0xed020e))return!0x1;return _0x420793['checkChild'](_0xed020e['parent'],'codeBlock');}(_0x308b96,_0x4ad4f1['schema'])):Array['from'](_0x43b461['getSelectedBlocks']())['filter'](_0x4ae536=>co(_0x4ae536));const _0x9b0e23=to(_0x581e85,_0x4ad4f1);_0x4ad4f1['change'](()=>{for(const _0x1caf6f of _0x9b0e23)_0x568603['markBlockFormat'](_0x1caf6f,{'commandName':'codeBlock','commandParams':[{..._0x30a54f,'forceValue':_0x25844c}],'formatGroupId':'blockName'});});}),(_0x568603['descriptionFactory']['registerElementLabel']('codeBlock',_0x3cd440=>o(_0x508f56,'ELEMENT_CODE_BLOCK',_0x3cd440)),_0x568603['descriptionFactory']['registerDescriptionCallback'](_0x1904a0=>{if('formatBlock'!=_0x1904a0['type'])return;const _0x1bdcc9=_0x508f56['t'],{data:_0x5559ee}=_0x1904a0;if(!_0x5559ee||'codeBlock'!=_0x5559ee['commandName'])return;const _0x43358b=_0x5559ee['commandParams'][0x0]['language'],_0x3831ce=_0x1bdcc9(_0xcae1b9['find'](_0x349064=>_0x349064['language']===_0x43358b)['label'])['toLowerCase']();return _0x5559ee['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x508f56,'*Set\x20format:*\x20%0',o(_0x508f56,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3831ce+')')}:{'type':'format','content':o(_0x508f56,'*Remove\x20format:*\x20%0',o(_0x508f56,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x5637a5){return'codeBlock'==_0x5637a5['name'];}class H extends _0x5107bb{['afterInit'](){const _0x1ca22f=this['editor'];if(!_0x1ca22f['plugins']['has']('CommentsEditing'))return;_0x1ca22f['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Q extends _0x5107bb{static get['requires'](){return[_0x1a991d];}['init'](){const _0x81b1a3=this['editor'],_0x11e563=_0x81b1a3['plugins']['get']('TrackChangesEditing');_0x11e563['enableCommand']('delete');const _0x3d8a34=_0x81b1a3['commands']['get']('deleteForward');_0x11e563['enableCommand']('deleteForward',(_0x116a0c,_0x5f3ef0={})=>{const _0x14086d=_0x81b1a3['model']['createSelection'](_0x81b1a3['model']['document']['selection']);_0x14086d['isCollapsed']&&_0x81b1a3['model']['modifySelection'](_0x14086d,{'direction':'forward','unit':_0x5f3ef0['unit']});const _0x54e234=_0x14086d['getFirstRange'](),_0x557ace=_0xe89877['fromRange'](_0x54e234);let _0x2cf9dd;_0x116a0c(_0x5f3ef0),_0x2cf9dd='$graveyard'==_0x557ace['root']['rootName']?_0x81b1a3['model']['createRange'](_0x54e234['start']):_0x81b1a3['model']['createRange'](_0x557ace['start'],_0x557ace['end']),_0x557ace['detach'](),_0x81b1a3['model']['enqueueChange'](_0x3d8a34['buffer']['batch'],_0x4b3952=>{_0x3d8a34['buffer']['lock'](),_0x4b3952['setSelection'](_0x4b3952['createRange'](_0x2cf9dd['end'])),_0x3d8a34['buffer']['unlock']();});});}}class X extends _0x5107bb{['afterInit'](){const _0x3180ea=this['editor'];if(!_0x3180ea['plugins']['has']('ListEditing'))return;const _0xfebf65=_0x3180ea['locale'],_0x405d0b=_0x3180ea['plugins']['get']('TrackChangesEditing'),_0xde1a5=_0x3180ea['plugins']['has']('TodoListEditing'),_0x22b097=!!_0x3180ea['config']['get']('list.multiBlock');function _0x4919c4(_0x216091){return{'type':'format','content':''+o(_0xfebf65,'*Set\x20format:*\x20%0',_0x216091)};}function _0x2bc451(_0x49d6aa){return{'type':'format','content':''+o(_0xfebf65,'*Remove\x20format:*\x20%0',_0x49d6aa)};}_0x405d0b['enableDefaultAttributesIntegration']('numberedList'),_0x405d0b['enableDefaultAttributesIntegration']('bulletedList'),_0x405d0b['enableDefaultAttributesIntegration']('customNumberedList'),_0x405d0b['enableDefaultAttributesIntegration']('customBulletedList'),_0x405d0b['enableDefaultAttributesIntegration']('indentList'),_0x405d0b['enableDefaultAttributesIntegration']('outdentList'),_0x405d0b['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x405d0b['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x22b097&&(_0x405d0b['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x405d0b['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xde1a5&&(_0x405d0b['enableDefaultAttributesIntegration']('todoList'),_0x405d0b['enableDefaultAttributesIntegration']('checkTodoList'),_0x405d0b['descriptionFactory']['registerDescriptionCallback'](_0x32aff1=>{const {data:_0x397967}=_0x32aff1;if(_0x397967&&'todoListChecked'==_0x397967['key'])return{'type':'format','content':_0x397967['newValue']?o(_0xfebf65,'*Check\x20item*'):o(_0xfebf65,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2a926e=>{if(_0x2a926e['batch']['isUndo'])return!0x1;let _0x2d949a=!0x1;const _0x34d9a3=_0x405d0b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2ac5b0=>'todoListChecked'===_0x405d0b['_getAttributeKey'](_0x2ac5b0));for(const _0x2c4c27 of _0x34d9a3){'todo'!=_0x2c4c27['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x405d0b['_findSuggestions'](_0x2c4c27['getFirstRange'](),'attribute')['find'](_0x7e4f3e=>'listType'===_0x405d0b['_getAttributeKey'](_0x7e4f3e['suggestion']))||(_0x2a926e['removeMarker'](_0x2c4c27['getFirstMarker']()),_0x2d949a=!0x0));}return _0x2d949a;})),_0x405d0b['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0xfebf65,'FORMAT_INDENT'));const _0x4a39fd={'type':'format','content':''};_0x405d0b['descriptionFactory']['registerDescriptionCallback'](_0x56e90c=>{const {data:_0x47bb37}=_0x56e90c;if(!_0x47bb37||'listType'!=_0x47bb37['key'])return;let _0x55df0d=_0x56e90c['head'];for(;_0x55df0d;){if(_0x55df0d['data']&&(('listStyle'==_0x55df0d['data']['key']||'listMarkerStyle'==_0x55df0d['data']['key'])&&(_0x55df0d['data']['newValue']&&'default'!=_0x55df0d['data']['newValue']||'default'!=_0x55df0d['data']['oldValue']&&!_0x47bb37['newValue'])||!_0x22b097&&_0x55df0d['data']['key']==m))return _0x4a39fd;_0x55df0d=_0x55df0d['next'];}if(null==_0x47bb37['newValue'])switch(_0x47bb37['oldValue']){case'bulleted':return _0x2bc451(o(_0xfebf65,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2bc451(o(_0xfebf65,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2bc451(o(_0xfebf65,'ELEMENT_TODO_LIST'));}switch(_0x47bb37['newValue']){case'bulleted':return _0x4919c4(o(_0xfebf65,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4919c4(o(_0xfebf65,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4919c4(o(_0xfebf65,'ELEMENT_TODO_LIST'));}}),_0x405d0b['descriptionFactory']['registerDescriptionCallback'](_0x2c3dd2=>{const {data:_0x5bb9ea}=_0x2c3dd2;if(_0x5bb9ea&&'listIndent'==_0x5bb9ea['key'])return null==_0x5bb9ea['newValue']||null==_0x5bb9ea['oldValue']&&0x0==_0x5bb9ea['newValue']?_0x4a39fd:void 0x0;}),_0x405d0b['descriptionFactory']['registerDescriptionCallback'](_0x14a13d=>{if('attribute'!=_0x14a13d['type'])return;const {data:_0x1e0f36}=_0x14a13d;if(!_0x1e0f36||'listItemId'!=_0x1e0f36['key'])return;const _0x4304a3=Te(_0x14a13d);return'newValue'==_0x4304a3?{'type':'format','content':o(_0xfebf65,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4304a3?{'type':'format','content':o(_0xfebf65,'*Split:*\x20list\x20item')}:_0x4a39fd;}),_0x3180ea['model']['document']['registerPostFixer'](_0xfd5251=>this['listItemIdFixer'](_0xfd5251)),_0x3180ea['model']['document']['registerPostFixer'](_0x1c7178=>this['noTrackChangesFixer'](_0x1c7178)),_0x3180ea['model']['document']['on']('change:data',(_0xe36ae7,_0x33ed0b)=>{if(_0x33ed0b['isUndo']||!_0x33ed0b['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3f5be8){if(_0x3f5be8['batch']['isUndo']||!_0x3f5be8['batch']['isLocal'])return!0x1;let _0x296324=!0x1;const _0x373a7e=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4fcf4f=>_0x4fcf4f['data']&&'listItemId'==_0x4fcf4f['data']['key'])['filter'](_0x349cc4=>_0x349cc4['data']['newValue']&&_0x349cc4['data']['oldValue']);for(const _0x119122 of _0x373a7e)Te(_0x119122)||(_0x3f5be8['removeMarker'](_0x119122['getFirstMarker']()),_0x296324=!0x0);return _0x296324;}['noTrackChangesFixer'](_0x5aaf26){if(_0x5aaf26['batch']['isUndo']||!_0x5aaf26['batch']['isLocal'])return!0x1;const _0x32254b=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x32254b['trackChangesCommand']['value'])return!0x1;let _0x461759=!0x1;const _0x7e09b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x22adff=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3fc9e7=>'attribute'==_0x3fc9e7['type'])['filter'](_0x300452=>_0x7e09b['includes'](_0x300452['attributeKey']));if(0x0==_0x22adff['length'])return _0x461759;for(const _0xde1987 of _0x22adff){const _0x28a595=_0x32254b['_findSuggestions'](_0xde1987['range'],'attribute')['filter'](_0x791927=>!_0x791927['meta']['isNextTo'])['map'](_0x4fe231=>_0x4fe231['suggestion'])['filter'](_0x49d9b8=>{const _0xb832a9=_0x32254b['_getAttributeKey'](_0x49d9b8);return _0x7e09b['includes'](_0xb832a9);});if(_0x28a595['length']){for(const _0x2f04ae of _0x28a595)_0x5aaf26['removeMarker'](_0x2f04ae['getFirstMarker']());_0x461759=!0x0;}}return _0x461759;}['assureChains'](){const _0x278807=this['editor']['plugins']['get']('TrackChangesEditing'),_0x156d0c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x29bdfa;const _0x5b8d12=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x8e8d8b=>{if(_0x8e8d8b['data']['oldRange']||!_0x8e8d8b['data']['newRange'])return null;if(!_0x8e8d8b['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4a76b9}=_0x278807['_splitMarkerName'](_0x8e8d8b['name']);if(!_0x278807['hasSuggestion'](_0x4a76b9))return null;const _0x163fc2=_0x278807['getSuggestion'](_0x4a76b9);return _0x156d0c['includes'](_0x163fc2['data']['key']);})['map'](_0xbffc3b=>{const {id:_0x58dd47}=_0x278807['_splitMarkerName'](_0xbffc3b['name']),_0x3fbf31=_0x278807['getSuggestion'](_0x58dd47);return _0x29bdfa=_0x3fbf31['attributes']['groupId'],_0x3fbf31['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5b8d12['size'])return;const _0x2eb423=_0x278807['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x23fe51=>'attribute'==_0x23fe51['type']&&_0x23fe51['data']&&_0x156d0c['includes'](_0x23fe51['data']['key'])&&_0x23fe51['attributes']['groupId']!=_0x29bdfa)['map'](_0xfa1b5b=>({'listItem':_0xfa1b5b['getFirstRange']()['start']['nodeAfter'],'groupId':_0xfa1b5b['attributes']['groupId']})),_0x236d36=new Set();for(const {groupId:_0x4b6795,listItem:_0xe95b2c}of _0x2eb423)_0x5b8d12['has'](_0xe95b2c)&&_0x236d36['add'](_0x4b6795);for(const _0x2031b3 of _0x278807['getSuggestions']())_0x236d36['has'](_0x2031b3['attributes']['groupId'])&&_0x2031b3['setAttribute']('groupId',_0x29bdfa);}['_supportLegacySuggestions'](){const _0xe32a10=this['editor'],_0x88201b=_0xe32a10['locale'],_0x29144a=_0xe32a10['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x29144a['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x19781b,_0x119f78){const _0x335174=[];for(let _0x4a743a of _0x19781b)_0x4a743a['start']['nodeAfter']===_0x4a743a['end']['parent']&&(_0x4a743a=_0xe32a10['model']['createRange'](_0xe32a10['model']['createPositionAt'](_0x4a743a['start']['nodeAfter'],0x0))),_0x335174['push'](_0x4a743a);_0xe32a10['model']['change'](_0xa1fca5=>{const _0x1270b2=_0xe32a10['model']['document']['selection'],_0x4d1f71=Array['from'](_0x1270b2['getRanges']())['map'](_0x2ae7c8=>_0xe89877['fromRange'](_0x2ae7c8));_0xa1fca5['setSelection'](_0x335174),_0xe32a10['commands']['get'](_0x119f78['commandName'])['refresh'](),_0x119f78['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xe32a10['execute'](_0x119f78['commandName'],..._0x119f78['commandParams']),_0xa1fca5['setSelection'](_0x4d1f71);for(const _0x4f6efc of _0x4d1f71)_0x4f6efc['detach']();});}),_0x29144a['descriptionFactory']['registerElementLabel'](function(_0x2a8f46){const _0x54090d=!_0xe32a10['model']['schema']['isObject'](_0x2a8f46),_0x2bcd9c=_0x2a8f46['previousSibling'],_0x3ee4ec=_0x2a8f46['nextSibling'],_0x59da55=_0x2a8f46['getAttribute']('listItemId'),_0x33fe2b=!_0x2bcd9c||_0x2bcd9c['getAttribute']('listItemId')!==_0x59da55,_0x3727ae=!_0x3ee4ec||_0x3ee4ec['getAttribute']('listItemId')!==_0x59da55;return _0x54090d&&Boolean(_0x59da55)&&_0x33fe2b&&_0x3727ae;},_0x119245=>o(_0x88201b,'ELEMENT_LIST_ITEM',_0x119245));}['_registerLegacyDescription'](){const _0x3d0285=this['editor'],_0x154430=_0x3d0285['locale'];function _0x4ce5d3(_0x53cc24){const _0x505882=_0x3d0285['commands']['get']('bulletedList')['value'],_0x2fdc0a=_0x3d0285['commands']['get']('numberedList')['value'];return'numberedList'===_0x53cc24?_0x505882:_0x2fdc0a;}_0x3d0285['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5a4f23){if('formatBlock'!=_0x5a4f23['type'])return;const {data:_0x3b1a31}=_0x5a4f23;if(!_0x3b1a31)return;let _0x115ba8,_0x4cf22f,_0x1f0166,_0x3d5b72;switch(_0x3b1a31['commandName']){case'bulletedList':_0x1f0166=_0x3b1a31['commandParams'][0x0]['forceValue'],_0x3d5b72=_0x4ce5d3(_0x3b1a31['commandName']),_0x115ba8=_0x1f0166?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3d5b72&&_0x3d0285['config']['get']('list.multiBlock')||(_0x115ba8='*Change\x20to:*\x20%0'),_0x4cf22f={'type':'format','content':o(_0x154430,_0x115ba8,o(_0x154430,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1f0166=_0x3b1a31['commandParams'][0x0]['forceValue'],_0x3d5b72=_0x4ce5d3(_0x3b1a31['commandName']),_0x115ba8=_0x1f0166?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3d5b72&&_0x3d0285['config']['get']('list.multiBlock')||(_0x115ba8='*Change\x20to:*\x20%0'),_0x4cf22f={'type':'format','content':o(_0x154430,_0x115ba8,o(_0x154430,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x115ba8='*Indent:*\x20%0',_0x4cf22f={'type':'format','content':o(_0x154430,_0x115ba8,o(_0x154430,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x115ba8=function(_0x5167af){const _0x81d6cb=_0x5167af['getFirstRange']();let _0xeaf785=_0x81d6cb['start']['nodeAfter'];for(;_0xeaf785&&_0x81d6cb['containsItem'](_0xeaf785);){if(_0xeaf785['getAttribute']('listIndent')>0x0)return!0x1;_0xeaf785=_0xeaf785['nextSibling'];}return!0x0;}(_0x5a4f23)?o(_0x154430,'*Format:*\x20remove\x20from\x20%0',o(_0x154430,function(_0x2a939e){return'ELEMENT_'+_0x2a939e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5a4f23))):o(_0x154430,'*Outdent:*\x20%0',o(_0x154430,'ELEMENT_LIST_ITEM')),_0x4cf22f={'type':'format','content':_0x115ba8};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3b1a31['multipleBlocks']&&(_0x115ba8='*Merge:*\x20%0',_0x4cf22f={'type':'deletion','content':o(_0x154430,_0x115ba8,o(_0x154430,'ELEMENT_LIST_ITEM'))});}return _0x4cf22f;});}}function Te(_0x5cb964){let _0x3884b7=_0x5cb964['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3884b7;){const _0x25fbbd=_0x3884b7['getAttribute']('listItemId');if(!_0x25fbbd)return!0x1;if(_0x25fbbd==_0x5cb964['data']['newValue'])return'newValue';if(_0x25fbbd==_0x5cb964['data']['oldValue'])return'oldValue';_0x3884b7=_0x3884b7['previousSibling'];}return!0x1;}class Y extends _0x5107bb{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x58baa5=this['editor']['config']['get']('list.properties'),_0x24149a=this['editor']['plugins']['get']('TrackChangesEditing');_0x58baa5['styles']&&_0x24149a['enableDefaultAttributesIntegration']('listStyle'),_0x58baa5['reversed']&&_0x24149a['enableDefaultAttributesIntegration']('listReversed'),_0x58baa5['startIndex']&&_0x24149a['enableDefaultAttributesIntegration']('listStart');const _0x5152d7={'type':'format','content':''};_0x24149a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x100510=this['editor']['locale'];_0x24149a['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x100510,'FORMAT_LIST_REVERSED')),_0x24149a['descriptionFactory']['registerDescriptionCallback'](_0x133e99=>{const {data:_0xe61281}=_0x133e99;if(_0xe61281&&'listReversed'==_0xe61281['key'])return null==_0xe61281['newValue']||0x0==_0xe61281['newValue']&&null==_0xe61281['oldValue']?_0x5152d7:void 0x0;}),_0x24149a['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x100510,'FORMAT_LIST_START')),_0x24149a['descriptionFactory']['registerDescriptionCallback'](_0xd4876c=>{const {data:_0x1f5289}=_0xd4876c;if(_0x1f5289&&'listStart'==_0x1f5289['key'])return null==_0x1f5289['newValue']||0x1==_0x1f5289['newValue']&&null==_0x1f5289['oldValue']?_0x5152d7:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x18c014=>{if(_0x18c014['batch']['isUndo'])return!0x1;let _0x1dc9db=!0x1;const _0x511d29=_0x24149a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3f1e10=>{const _0x2e5581=_0x24149a['_getAttributeKey'](_0x3f1e10);return'listStart'==_0x2e5581||'listReversed'==_0x2e5581;});for(const _0x524731 of _0x511d29){const _0x4e4dc1=_0x524731['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4e4dc1||'customNumbered'==_0x4e4dc1)continue;_0x24149a['_findSuggestions'](_0x524731['getFirstRange'](),'attribute')['find'](_0x1f51cc=>'listType'==_0x24149a['_getAttributeKey'](_0x1f51cc['suggestion']))||(_0x18c014['removeMarker'](_0x524731['getFirstMarker']()),_0x1dc9db=!0x0);}return _0x1dc9db;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5dad3c){const _0x17ee98=this['editor']['locale'],{data:_0x6c62f}=_0x5dad3c,_0x223803={'type':'format','content':''};if(!_0x6c62f||'listStyle'!=_0x6c62f['key'])return;if(!_0x6c62f['oldValue'])return'default'==_0x6c62f['newValue']?_0x223803:{'type':'format','content':''+o(_0x17ee98,'*Set\x20format:*\x20%0',o(_0x17ee98,this['_getTranslationKeyForListStyle'](_0x6c62f['newValue'])))};if(!_0x6c62f['newValue']){if('default'==_0x6c62f['oldValue'])return _0x223803;let _0xd8912b=_0x5dad3c['head'];for(;_0xd8912b;){if(_0xd8912b['data']&&'listType'==_0xd8912b['data']['key']&&_0xd8912b['data']['newValue'])return _0x223803;_0xd8912b=_0xd8912b['next'];}return{'type':'format','content':''+o(_0x17ee98,'*Remove\x20format:*\x20%0',o(_0x17ee98,this['_getTranslationKeyForListStyle'](_0x6c62f['oldValue'])))};}if('default'!=_0x6c62f['newValue'])return{'type':'format','content':''+o(_0x17ee98,'*Set\x20format:*\x20%0',o(_0x17ee98,this['_getTranslationKeyForListStyle'](_0x6c62f['newValue'])))};let _0x44a8a3=_0x5dad3c['head'];for(;_0x44a8a3;){if(_0x44a8a3['data']&&'listType'==_0x44a8a3['data']['key']&&_0x44a8a3['data']['newValue']&&_0x44a8a3['data']['oldValue'])return _0x223803;_0x44a8a3=_0x44a8a3['next'];}return{'type':'format','content':o(_0x17ee98,'*Set\x20format:*\x20%0',o(_0x17ee98,'ELEMENT_'+_0x5dad3c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x26249d=this['editor'],_0x1092e8=_0x26249d['locale'];_0x26249d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x281cfa=>{if('formatBlock'!=_0x281cfa['type'])return;const {data:_0x1c263c}=_0x281cfa;if(!_0x1c263c)return;let _0xc1f6db,_0x2e43f6;switch(_0x1c263c['commandName']){case'listStyle':_0xc1f6db='*Change\x20to:*\x20%0',_0x2e43f6={'type':'format','content':o(_0x1092e8,_0xc1f6db,o(_0x1092e8,this['_getTranslationKeyForListStyle'](_0x1c263c['commandParams'][0x0]['type'])))};break;case'listReversed':_0xc1f6db=_0x1c263c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2e43f6={'type':'format','content':o(_0x1092e8,_0xc1f6db)};break;case'listStart':_0xc1f6db='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2e43f6={'type':'format','content':o(_0x1092e8,_0xc1f6db,_0x1c263c['commandParams'][0x0]['startIndex'])};}return _0x2e43f6;});}['_getTranslationKeyForListStyle'](_0x5528bf){return'ELEMENT_'+function(_0x2d2182){if(ye['includes'](_0x2d2182))return'bulleted';if(Se['includes'](_0x2d2182))return'numbered';return null;}(_0x5528bf)['toUpperCase']()+'_LIST_'+_0x5528bf['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class Z extends _0x5107bb{['afterInit'](){const _0x46c857=this['editor'];_0x46c857['commands']['get']('emoji')&&_0x46c857['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class tt extends _0x5107bb{static get['requires'](){return[_0x5aaab2];}['init'](){const _0x5e4d0f=this['editor'],_0x5bdd4e=_0x5e4d0f['plugins']['get']('TrackChangesEditing'),_0x200c8c=_0x5e4d0f['commands']['get']('enter');_0x5bdd4e['enableCommand']('enter',()=>{_0x5e4d0f['model']['change'](_0x441acb=>{const _0x1f004a=_0x5e4d0f['model']['document']['selection'],_0x2a8f05=_0x1f004a['getFirstPosition'](),_0x1041c1=_0xe89877['fromRange'](_0x1f004a['getFirstRange']());if(_0x200c8c['enterBlock'](_0x441acb)){const _0x1c4cca=_0x5e4d0f['model']['createPositionAt'](_0x2a8f05['parent']['nextSibling'],0x0),_0xaa20ed=_0x441acb['createRange'](_0x2a8f05,_0x1c4cca);_0x5bdd4e['markInsertion'](_0xaa20ed);}else _0x441acb['setSelection'](_0x441acb['createRange'](_0x1041c1['end']));_0x1041c1['detach'](),_0x200c8c['fire']('afterExecute',{'writer':_0x441acb});});});}}class nt extends _0x5107bb{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x543671=this['editor']['plugins']['get']('TrackChangesEditing');_0x543671['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x543671['enableCommand']('findNext'),_0x543671['enableCommand']('findPrevious'),_0x543671['enableCommand']('replace'),_0x543671['enableCommand']('replaceAll');}['handleFindCommand'](_0x1daf17,_0x460640,_0x1c79be={}){const _0x2574f8=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1daf17(_0x53844f=>{let _0x361740=('string'==typeof _0x460640?_0x2574f8['findByTextCallback'](_0x460640,_0x1c79be):_0x460640)(_0x53844f);Array['isArray'](_0x361740)&&(_0x361740={'results':_0x361740,'searchText':'string'==typeof _0x460640?_0x460640:''});const _0x24f5e7=_0x361740['results']['filter'](_0x3d1343=>!0x1===this['_isInDeletionRange'](_0x3d1343,_0x53844f['item']));return{..._0x361740,'results':_0x24f5e7};},_0x1c79be);}['_isInDeletionRange'](_0x2a13eb,_0x40f29f){const _0x5389a0=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x40f29f,_0x2a13eb['start']),this['editor']['model']['createPositionAt'](_0x40f29f,_0x2a13eb['end']));for(const _0x5376c1 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5389a0['getIntersection'](_0x5376c1['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class it extends _0x5107bb{['afterInit'](){const _0xed9250=this['editor']['locale'],_0x41120b=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x643699,commandName:_0x274802}of eo)this['editor']['plugins']['has'](_0x643699)&&_0x41120b['enableDefaultAttributesIntegration'](_0x274802);_0x41120b['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0xed9250,'FORMAT_FONT_SIZE')),_0x41120b['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0xed9250,'FORMAT_FONT_FAMILY')),_0x41120b['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0xed9250,'FORMAT_FONT_COLOR')),_0x41120b['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0xed9250,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f01c0=this['editor'],_0x14fa16=_0x3f01c0['locale'];_0x3f01c0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8554d=>{const _0x4f3a02=_0x14fa16['t'];if('formatInline'!=_0x8554d['type'])return;const {data:_0x5aabe5}=_0x8554d;if(null!=_0x5aabe5){if('fontSize'==_0x5aabe5['commandName']){const _0x27a2e4=_0x5aabe5['commandParams'][0x0]['value'];if(_0x27a2e4){const _0x4e0a9a=_0x4f3a02(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1696a9=>_0x1696a9['model']==_0x27a2e4)['title'])['toLowerCase']();return{'type':'format','content':o(_0x14fa16,'*Set\x20font\x20size:*\x20%0',_0x4e0a9a)};}return{'type':'format','content':o(_0x14fa16,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5aabe5['commandName']){const _0x4e0a5e=_0x5aabe5['commandParams'][0x0]['value'];return _0x4e0a5e?{'type':'format','content':o(_0x14fa16,'*Set\x20font\x20family:*\x20%0',_0x4e0a5e)}:{'type':'format','content':o(_0x14fa16,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5aabe5['commandName']){const _0x82ec3c=_0x5aabe5['commandParams'][0x0]['value'];if(_0x82ec3c){const _0x78e566=_0xabcbde(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5a1963=>_0x5a1963['model']==_0x82ec3c);let _0x3836e5=_0x82ec3c,_0xba3a9a='';return _0x78e566&&(_0x3836e5=_0x78e566['label'],_0xba3a9a=_0x4f3a02(_0x3836e5)['toLowerCase']()),{'type':'format','content':o(_0x14fa16,'*Set\x20font\x20color:*\x20%0',_0xba3a9a)['trim'](),'color':{'value':_0x82ec3c,'title':_0xba3a9a||_0x3836e5}};}return{'type':'format','content':o(_0x14fa16,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5aabe5['commandName']){const _0x525918=_0x5aabe5['commandParams'][0x0]['value'];if(_0x525918){const _0x4163a9=_0xabcbde(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1cab42=>_0x1cab42['model']==_0x525918);let _0x1a915d=_0x525918,_0x1d3ac0='';return _0x4163a9&&(_0x1a915d=_0x4163a9['label'],_0x1d3ac0=_0x4f3a02(_0x1a915d)['toLowerCase']()),{'type':'format','content':o(_0x14fa16,'*Set\x20font\x20background\x20color:*\x20%0',_0x1d3ac0)['trim'](),'color':{'value':_0x525918,'title':_0x1d3ac0||_0x1a915d}};}return{'type':'format','content':o(_0x14fa16,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x5107bb{['afterInit'](){const {plugins:_0x26c105}=this['editor'];_0x26c105['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x26c105['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x2f932a,plugins:_0x2fed93,commands:_0x392b5a}=this['editor'],_0x23f158=_0x2fed93['get']('TrackChangesEditing');_0x392b5a['get']('footnotesStyle')&&_0x23f158['enableDefaultAttributesIntegration']('footnotesStyle'),_0x392b5a['get']('footnotesStart')&&_0x23f158['enableDefaultAttributesIntegration']('footnotesStart'),_0x23f158['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x2f932a,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x23f158['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x2f932a,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x7cd011=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x58c046,commands:_0x45c7ed}=this['editor'];_0x45c7ed['get']('insertFootnote')&&_0x7cd011['enableCommand']('insertFootnote'),_0x7cd011['descriptionFactory']['registerElementLabel']('footnoteRef',_0x35ca4b=>o(_0x58c046,'ELEMENT_FOOTNOTE_REF',_0x35ca4b)),_0x7cd011['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x83fcd2=>o(_0x58c046,'ELEMENT_FOOTNOTE_DEFINITION',_0x83fcd2)),_0x7cd011['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x3041e4=>o(_0x58c046,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x3041e4));}}class st extends _0x5107bb{['afterInit'](){const _0x2f0090=this['editor'],_0x170373=_0x2f0090['plugins']['get']('TrackChangesEditing'),_0x3229ec=_0x2f0090['commands']['get']('copyFormat'),_0x1a4518=_0x2f0090['commands']['get']('pasteFormat');_0x3229ec&&_0x1a4518&&(_0x170373['enableDefaultAttributesIntegration']('pasteFormat'),_0x170373['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x190ff6=this['editor'],_0x4cfb31=_0x190ff6['locale'];_0x190ff6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xdace15=>{if('formatBlock'!=_0xdace15['type']&&'formatInline'!=_0xdace15['type'])return;const {data:_0x4eb00a}=_0xdace15;if(_0x4eb00a&&'pasteFormat'===_0x4eb00a['commandName']){const _0x250db3=[],_0x35cfb3=_0x4eb00a['commandParams'][0x0];for(const [_0x12e77c,_0x204018]of Object['entries'](_0x35cfb3))_0x250db3['push'](ro(_0x190ff6,_0x12e77c,_0x204018));return _0x250db3['length']?{'type':'format','content':o(_0x4cfb31,'*Set\x20format\x20to:*\x20%0',_0x250db3['join'](',\x20'))}:{'type':'format','content':o(_0x4cfb31,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x389d26,_0x4e1fd5,_0xf6744e){const _0x2e631f=_0x389d26['locale']['t'],_0x341bb2=_0x4e1fd5['split'](/(?=[A-Z])/)['join']('\x20'),_0x45baa2=_0x2e631f(_0x341bb2['charAt'](0x0)['toUpperCase']()+_0x341bb2['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xf6744e)return _0x45baa2;if('fontColor'===_0x4e1fd5||'fontBackgroundColor'===_0x4e1fd5){const _0x69b757=_0xabcbde(_0x389d26['config']['get']('fontColor.colors'))['find'](_0x48e4da=>_0x48e4da['model']==_0xf6744e);return _0x45baa2+'\x20('+(_0x69b757?_0x2e631f(_0x69b757['label'])['toLowerCase']():_0xf6744e)+')';}if('fontSize'===_0x4e1fd5&&isNaN(parseFloat(_0xf6744e))){const _0x3d75f9=_0x389d26['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x389d26['config']['get']('fontSize.options'))['find'](_0x56495b=>_0x56495b['model']==_0xf6744e);return _0x45baa2+'\x20('+(_0x3d75f9?_0x2e631f(_0x3d75f9['title'])['toLowerCase']():_0xf6744e)+')';}return _0x45baa2+'\x20('+_0xf6744e+')';}class ot extends _0x5107bb{['_headingOptions'];['afterInit'](){const _0xa1edf1=this['editor'];if(!_0xa1edf1['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xa1edf1['config']['get']('heading.options');const _0x290f77=_0xa1edf1['locale'],_0x15a1c4=_0xa1edf1['plugins']['get']('TrackChangesEditing');_0x15a1c4['enableDefaultAttributesIntegration']('heading');for(const _0x3b3332 of this['_headingOptions'])'paragraph'!=_0x3b3332['model']&&_0x15a1c4['descriptionFactory']['registerElementLabel'](_0x3b3332['model'],_0x48a30d=>{const _0x5eb531=this['_getHeadingLevel'](_0x3b3332['model']);return null!==_0x5eb531?_0x44d6b5(_0x48a30d,_0x5eb531):_0x1412d4(_0x48a30d,_0x3b3332['title']);});function _0x44d6b5(_0x39d9b8,_0x58c506){return o(_0x290f77,'ELEMENT_HEADING',[_0x39d9b8,_0x58c506]);}function _0x1412d4(_0x45a0fc,_0x367cd5){return o(_0x290f77,'ELEMENT_HEADING_CUSTOM',[_0x45a0fc,_0x367cd5]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x122bfc=this['editor'],_0x5d67ca=_0x122bfc['locale'];function _0x549c0c(_0x46c010,_0xc7b930){return o(_0x5d67ca,'ELEMENT_HEADING_CUSTOM',[_0x46c010,_0xc7b930]);}_0x122bfc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4169ff=>{if('formatBlock'!=_0x4169ff['type'])return;const {data:_0x426fb8}=_0x4169ff;if(_0x426fb8&&'heading'==_0x426fb8['commandName']){const _0x4141da=_0x426fb8['commandParams'][0x0]['value'],_0x33dd6f=this['_getHeadingLevel'](_0x4141da);if(null!==_0x33dd6f)return{'type':'format','content':o(_0x5d67ca,'*Change\x20to:*\x20%0',(_0x18481a=0x1,_0x288c10=_0x33dd6f,o(_0x5d67ca,'ELEMENT_HEADING',[_0x18481a,_0x288c10])))};const _0x3cad16=this['_headingOptions']['find'](_0x17b7e7=>_0x17b7e7['model']===_0x4141da)['title'];return{'type':'format','content':o(_0x5d67ca,'*Change\x20to:*\x20%0',_0x549c0c(0x1,_0x3cad16))};}var _0x18481a,_0x288c10;});}['_getHeadingLevel'](_0x513bc1){const _0x514d8a=_0x513bc1['match'](/^heading(\d+)/);if(_0x514d8a)return _0x514d8a[0x1];const _0xdf4c04=this['_headingOptions']?.['find'](_0x1a38da=>_0x1a38da['model']==_0x513bc1);if(_0xdf4c04&&_0xdf4c04['view']){const _0x412d56=_0xdf4c04['view'],_0x115aa4=(_0x412d56['name']??_0x412d56)['match'](/^h(\d+)/);if(_0x115aa4)return _0x115aa4[0x1];}return null;}}class rt extends _0x5107bb{['afterInit'](){const _0x103bef=this['editor'];if(!_0x103bef['plugins']['has']('HighlightEditing'))return;const _0xf150f7=_0x103bef['plugins']['get']('TrackChangesEditing'),_0x3d3f61=_0x103bef['locale'];_0xf150f7['enableDefaultAttributesIntegration']('highlight'),_0xf150f7['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3d3f61,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x563fad=this['editor'],_0x2c3a46=_0x563fad['locale'];_0x563fad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d5b54=>{if('formatInline'!=_0x2d5b54['type'])return;const {data:_0x1e839c}=_0x2d5b54;if(_0x1e839c&&'highlight'==_0x1e839c['commandName']){const _0x1afb4e=_0x2c3a46['t'],_0x4f7e30=_0x1e839c['commandParams'][0x0]['value'];if(_0x4f7e30){const _0x30242e=_0x563fad['config']['get']('highlight.options')['find'](_0x3fec0e=>_0x3fec0e['model']==_0x4f7e30),_0x334226=_0x1afb4e(_0x30242e['title'])['toLowerCase']();return{'type':'format','content':o(_0x2c3a46,'*Set\x20highlight:*\x20%0',_0x334226),'color':{'value':_0x30242e['color'],'title':_0x30242e['title']}};}return{'type':'format','content':o(_0x2c3a46,'*Remove\x20highlight*',o(_0x2c3a46,'FORMAT_HIGHLIGHT'))};}});}}class at extends _0x5107bb{['afterInit'](){const _0x8be812=this['editor'];if(!_0x8be812['plugins']['has']('HorizontalLineEditing'))return;_0x8be812['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3fe365=_0x8be812['plugins']['get']('TrackChangesEditing'),_0x2e8074=_0x8be812['locale'];_0x3fe365['descriptionFactory']['registerElementLabel']('horizontalLine',_0x349123=>o(_0x2e8074,'ELEMENT_HORIZONTAL_LINE',_0x349123));}}class ct extends _0x5107bb{['afterInit'](){const _0x3a4dc0=this['editor'];if(!_0x3a4dc0['plugins']['has']('HtmlEmbed'))return;const _0xb2db96=_0x3a4dc0['plugins']['get']('TrackChangesEditing'),_0x2fd0ef=_0x3a4dc0['locale'];_0xb2db96['descriptionFactory']['registerElementLabel']('rawHtml',_0x91a3e6=>o(_0x2fd0ef,'ELEMENT_HTML_EMBED',_0x91a3e6)),_0xb2db96['enableDefaultAttributesIntegration']('htmlEmbed'),_0xb2db96['descriptionFactory']['registerDescriptionCallback'](_0x15c6c8=>{if('attribute'!=_0x15c6c8['type'])return;const {data:_0x4718a7}=_0x15c6c8;if(_0x4718a7&&'value'==_0x4718a7['key']&&_0x15c6c8['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x47ed34=o(_0x2fd0ef,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2fd0ef,'*Change\x20%0\x20content*',_0x47ed34)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42f88a=this['editor'],_0x167f0c=_0x42f88a['locale'];_0x42f88a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x400571=>{if('formatBlock'!=_0x400571['type'])return;const {data:_0x40a764}=_0x400571;if(_0x40a764&&'htmlEmbed'==_0x40a764['commandName']){const _0x1e1bfd=o(_0x167f0c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x167f0c,'*Change\x20%0\x20content*',_0x1e1bfd)};}});}}class ut extends _0x5107bb{['afterInit'](){const _0x27eb19=this['editor'];if(!_0x27eb19['plugins']['has']('ImageEditing'))return;const _0x70b1ab=_0x27eb19['plugins']['get']('TrackChangesEditing'),_0x181fe8=_0x27eb19['plugins']['get']('ImageUtils'),_0x4352f4=_0x27eb19['locale'];_0x70b1ab['enableCommand']('insertImage'),_0x70b1ab['descriptionFactory']['registerElementLabel']('imageBlock',_0x539d8a=>o(_0x4352f4,'ELEMENT_IMAGE',_0x539d8a)),_0x70b1ab['descriptionFactory']['registerElementLabel']('imageInline',_0xc546f=>o(_0x4352f4,'ELEMENT_INLINE_IMAGE',_0xc546f)),_0x70b1ab['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4352f4,'ELEMENT_CAPTION')),_0x27eb19['plugins']['has']('ImageUploadEditing')&&_0x70b1ab['enableCommand']('uploadImage'),_0x27eb19['plugins']['has']('ImageBlockEditing')&&_0x27eb19['plugins']['has']('ImageInlineEditing')&&(_0x70b1ab['enableCommand']('imageTypeInline',(_0x5a32dc,_0x33fb55)=>{const _0x2f3450=_0x181fe8['getClosestSelectedImageElement'](_0x27eb19['model']['document']['selection']);_0x27eb19['model']['change'](()=>{_0x70b1ab['markBlockFormat'](_0x2f3450,{'commandName':'imageTypeInline','commandParams':[_0x33fb55]},[],'convertBlockImageToInline');});}),_0x70b1ab['enableCommand']('imageTypeBlock',(_0x1666bc,_0x3cc783)=>{_0x27eb19['model']['change'](_0x5ab9d4=>{let _0x15de0d=_0x181fe8['getClosestSelectedImageElement'](_0x27eb19['model']['document']['selection']),_0x59b9b7=_0x5ab9d4['createRangeOn'](_0x15de0d);const _0x1a4eac=_0x21db0a['fromPosition'](_0x59b9b7['start'],'toPrevious'),_0x3c9ecf=_0x21db0a['fromPosition'](_0x59b9b7['end'],'toNext');_0x70b1ab['forceDefaultExecution'](()=>_0x1666bc(_0x3cc783)),_0x15de0d=_0x181fe8['getClosestSelectedImageElement'](_0x27eb19['model']['document']['selection']),_0x59b9b7=_0x5ab9d4['createRangeOn'](_0x15de0d);const _0x3ae596=_0x5ab9d4['createRange'](_0x1a4eac,_0x3c9ecf);_0x1a4eac['detach'](),_0x3c9ecf['detach'](),_0x70b1ab['markBlockFormat'](_0x15de0d,{'commandName':'imageTypeInline','commandParams':[_0x3cc783]},[],'convertInlineImageToBlock'),_0x3ae596['start']['isBefore'](_0x59b9b7['start'])&&_0x70b1ab['markInsertion'](_0x5ab9d4['createRange'](_0x3ae596['start'],_0x59b9b7['start']),'convertInlineImageToBlock'),_0x59b9b7['end']['isBefore'](_0x3ae596['end'])&&_0x70b1ab['markInsertion'](_0x5ab9d4['createRange'](_0x59b9b7['end'],_0x3ae596['end']),'convertInlineImageToBlock');});}),_0x70b1ab['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x70b1ab['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x70b1ab['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x70b1ab['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x70b1ab['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x70b1ab['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x163eb3])=>{const _0x44e239=_0x70b1ab['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5da25f=_0x163eb3['start'],_0x11434f=_0x163eb3['end'];const _0x86f639=_0x27eb19['model']['schema']['getNearestSelectionRange'](_0x5da25f,'backward'),_0xab3728=_0x27eb19['model']['schema']['getNearestSelectionRange'](_0x11434f,'forward');_0x86f639['isCollapsed']&&(_0x5da25f=_0x86f639['start']),_0xab3728['isCollapsed']&&(_0x11434f=_0xab3728['end']),_0x44e239([_0x27eb19['model']['createRange'](_0x5da25f,_0x11434f)]);}),_0x70b1ab['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3afea5),_0x70b1ab['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3afea5)),_0x27eb19['plugins']['has']('ImageCaptionEditing')&&(_0x70b1ab['enableCommand']('toggleImageCaption',(_0x4d4212,_0x293223)=>{const _0x521a44=_0x27eb19['plugins']['get']('ImageCaptionUtils');let _0x4042ca=_0x181fe8['getClosestSelectedImageElement'](_0x27eb19['model']['document']['selection']),_0x448917=_0x521a44['getCaptionFromImageModelElement'](_0x4042ca);_0x27eb19['model']['change'](()=>{if(_0x448917)return void _0x70b1ab['markDeletion'](_0x27eb19['model']['createRangeOn'](_0x448917));const _0x2c2485=_0x181fe8['isBlockImage'](_0x4042ca);_0x4d4212(_0x293223),_0x4042ca=_0x181fe8['getClosestSelectedImageElement'](_0x27eb19['model']['document']['selection']),_0x448917=_0x521a44['getCaptionFromImageModelElement'](_0x4042ca),_0x70b1ab['markInsertion'](_0x27eb19['model']['createRangeOn'](_0x448917),_0x2c2485?null:'imageCaption');});}),_0x70b1ab['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3afea5));const _0x50a089=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x285ab9(_0x31c277,_0x1243b2){const _0x561800=_0x50a089['findIndex'](({type:_0x511668,subType:_0x185dba})=>_0x31c277['type']==_0x511668&&_0x31c277['subType']==_0x185dba),_0x4f2b55=_0x50a089['findIndex'](({type:_0x581eaf,subType:_0x3cd73a})=>_0x1243b2['type']==_0x581eaf&&_0x1243b2['subType']==_0x3cd73a);if(_0x561800<0x0||_0x4f2b55<0x0)return!0x1;const _0x120f1b=_0x31c277['getFirstRange'](),_0x5a0d36=_0x1243b2['getFirstRange']();if((0x0==_0x561800||0x1==_0x561800)&&0x2==_0x4f2b55&&_0x120f1b['isIntersecting'](_0x5a0d36))return!0x0;if(0x2==_0x561800&&0x3==_0x4f2b55){const _0x363d28=_0x70b1ab['_findSuggestions'](_0x120f1b,'insertion')['filter'](({suggestion:_0x2efc7f,meta:_0x52e521})=>_0x52e521['isOwn']&&'convertInlineImageToBlock'==_0x2efc7f['subType']);if(_0x363d28['length']>0x1&&_0x5a0d36['end']['isEqual'](_0x120f1b['start']))return!0x0;if(0x1==_0x363d28['length']&&(_0x120f1b['start']['isEqual'](_0x5a0d36['end'])||_0x120f1b['end']['isEqual'](_0x5a0d36['start'])))return!0x0;}if(0x3==_0x561800&&0x3==_0x4f2b55&&_0x120f1b['start']['isBefore'](_0x5a0d36['start'])){const _0x512921=_0x120f1b['end']['nodeAfter'],_0x430cb6=_0x5a0d36['start']['nodeBefore'];return _0x181fe8['isBlockImage'](_0x512921)&&_0x512921===_0x430cb6;}return!0x1;}function _0x3afea5(_0x242d3e,_0x2d4713){return _0x285ab9(_0x242d3e,_0x2d4713)?[_0x242d3e,_0x2d4713]:_0x285ab9(_0x2d4713,_0x242d3e)?[_0x2d4713,_0x242d3e]:null;}_0x27eb19['plugins']['has']('ImageResize')&&(_0x70b1ab['enableDefaultAttributesIntegration']('resizeImage'),_0x70b1ab['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4352f4,'FORMAT_IMAGE_SIZE'))),_0x27eb19['plugins']['has']('ImageTextAlternativeEditing')&&_0x70b1ab['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x27eb19['plugins']['has']('PictureEditing')&&_0x70b1ab['descriptionFactory']['registerDescriptionCallback'](_0x4490a=>{if('attribute'!=_0x4490a['type'])return;const {data:_0x20eb20}=_0x4490a;return _0x20eb20&&'sources'==_0x20eb20['key']?{'type':'format','content':''}:void 0x0;}),_0x27eb19['plugins']['has']('ImageSizeAttributes')&&_0x70b1ab['descriptionFactory']['registerDescriptionCallback'](_0x416b8d=>{if('attribute'!=_0x416b8d['type'])return;const {data:_0x364330}=_0x416b8d;return!_0x364330||'width'!=_0x364330['key']&&'height'!=_0x364330['key']?void 0x0:{'type':'format','content':''};}),_0x70b1ab['descriptionFactory']['registerDescriptionCallback'](_0x4ecd89=>{if(!!_0x50a089['find'](({type:_0x11f371,subType:_0x5acb59})=>_0x4ecd89['type']==_0x11f371&&_0x4ecd89['subType']==_0x5acb59))return _0x4ecd89['previous']?{}:void 0x0;}),_0x70b1ab['descriptionFactory']['registerDescriptionCallback'](_0x4e3e7f=>{if('insertion'==_0x4e3e7f['type']||'deletion'==_0x4e3e7f['type']){const _0x41d511=_0x4e3e7f['getContainedElement']();if(_0x41d511&&_0x41d511['is']('element','caption'))return{'type':'insertion'==_0x4e3e7f['type']?'addObject':'removeObject','element':_0x41d511,'quantity':0x1};}}),_0x70b1ab['descriptionFactory']['registerDescriptionCallback'](_0x5b434f=>'formatBlock'==_0x5b434f['type']&&'convertInlineImageToBlock'==_0x5b434f['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5b434f['type']&&'convertBlockImageToInline'==_0x5b434f['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x70b1ab['descriptionFactory']['registerDescriptionCallback'](_0x55aee6=>{if('attribute'!=_0x55aee6['type'])return;const {data:_0x1e6923}=_0x55aee6;if(!_0x1e6923||'alt'!=_0x1e6923['key'])return;const _0x477c4c=_0x1e6923['newValue'];return _0x477c4c?{'type':'format','content':o(_0x4352f4,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x477c4c+'\x22')}:{'type':'format','content':o(_0x4352f4,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x547eea=this['editor'],_0x1a0be0=_0x547eea['locale'];_0x547eea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x392cc7=>{if('formatBlock'!=_0x392cc7['type']&&'formatInline'!=_0x392cc7['type'])return;const {data:_0x194e61}=_0x392cc7;if(_0x194e61){if('imageTextAlternative'==_0x194e61['commandName']){const _0x148afb=_0x194e61['commandParams'][0x0]['newValue'];return _0x148afb?{'type':'format','content':o(_0x1a0be0,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x148afb+'\x22')}:{'type':'format','content':o(_0x1a0be0,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x194e61['commandName']){const _0x332f9c=_0x194e61['commandParams'][0x0]['width'];return _0x332f9c?{'type':'format','content':o(_0x1a0be0,'*Set\x20image\x20width:*\x20%0',_0x332f9c)}:{'type':'format','content':o(_0x1a0be0,'*Reset\x20image\x20width*')};}}});}}class ft extends _0x5107bb{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x43d79c=this['editor']['locale'],_0x208d17=this['editor']['plugins']['get']('TrackChangesEditing');_0x208d17['enableDefaultAttributesIntegration']('replaceImageSource'),_0x208d17['descriptionFactory']['registerDescriptionCallback'](_0x25cc41=>{if('attribute'!=_0x25cc41['type'])return;const {data:_0x11a744}=_0x25cc41;return _0x11a744&&'src'==_0x11a744['key']?_0x11a744['newValue']&&_0x11a744['oldValue']?{'type':'format','content':o(_0x43d79c,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x190008=this['editor']['plugins']['get']('TrackChangesEditing');_0x190008['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x190008['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x190008['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x190008['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4db792=this['editor'],_0x31c09e=_0x4db792['locale'];_0x4db792['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd21d76=>{if('formatBlock'!=_0xd21d76['type']&&'formatInline'!=_0xd21d76['type'])return;const {data:_0x51202f}=_0xd21d76;if(!_0x51202f||'replaceImageSource'!=_0x51202f['commandName'])return;return{'type':'format','content':o(_0x31c09e,'*Format:*\x20replace\x20image\x20URL')};});}}class ht extends _0x5107bb{['afterInit'](){const _0x1f2322=this['editor'];if(!_0x1f2322['plugins']['has']('ImageStyleEditing'))return;const _0x2ae0e5=_0x1f2322['plugins']['get']('TrackChangesEditing'),_0x1f7c3d=_0x1f2322['plugins']['get']('ImageUtils'),_0x4f65ce={};_0x2ae0e5['enableCommand']('imageStyle',(_0x5470ee,_0x2ac286)=>{const _0x140006=_0x1f2322['plugins']['get']('Users')['me'],_0x2a598b=_0x1f2322['commands']['get']('imageStyle');let _0x260843=_0x1f7c3d['getClosestSelectedImageElement'](_0x1f2322['model']['document']['selection']),_0xd5db09=_0x1f2322['model']['createRangeOn'](_0x260843),_0x3ec092=_0x2a598b['value'];if(_0x3ec092==_0x2ac286['value'])return;const _0x20023c={'commandName':'imageStyle','commandParams':[_0x2ac286],'formatGroupId':_0xf5d073()};_0x1f2322['model']['change'](()=>{if(_0x2ae0e5['getSuggestions']()['filter'](_0x50d3b7=>_0x50d3b7['isInContent']&&_0x140006==_0x50d3b7['author']&&('formatBlock'==_0x50d3b7['type']||'formatInline'==_0x50d3b7['type'])&&('imageStylePreApply'==_0x50d3b7['subType']||'imageStylePostApply'==_0x50d3b7['subType'])&&_0x50d3b7['getFirstRange']()['isEqual'](_0xd5db09))['forEach'](_0x8c588e=>_0x2ae0e5['discardSuggestion'](_0x8c588e['head'])),_0x260843=_0x1f7c3d['getClosestSelectedImageElement'](_0x1f2322['model']['document']['selection']),_0xd5db09=_0x1f2322['model']['createRangeOn'](_0x260843),_0x2a598b['refresh'](),_0x1f2322['commands']['get']('imageTypeInline')['refresh'](),_0x1f2322['commands']['get']('imageTypeBlock')['refresh'](),_0x3ec092=_0x2a598b['value'],_0x3ec092!=_0x2ac286['value'])return _0x1f7c3d['isInlineImage'](_0x260843)&&_0x2a598b['shouldConvertImageType'](_0x2ac286['value'],_0x260843)?(_0x5470ee({..._0x2ac286,'setImageSizes':!0x1}),_0x260843=_0x1f7c3d['getClosestSelectedImageElement'](_0x1f2322['model']['document']['selection']),void _0x2ae0e5['markBlockFormat'](_0x260843,{..._0x20023c,'commandReversedParams':[{'value':_0x3ec092||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1f7c3d['isBlockImage'](_0x260843)?_0x2ae0e5['markBlockFormat'](_0x260843,_0x20023c,[],'imageStylePostApply'):_0x2ae0e5['markInlineFormat'](_0xd5db09,_0x20023c,'imageStylePostApply'));});});for(const _0x37d37b of _0x1f2322['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4f65ce[_0x37d37b['name']]=_0x37d37b['title']['toLowerCase']();_0x2ae0e5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2ae0e5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2ae0e5['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2ae0e5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4f8549])=>{_0x1f7c3d['setImageNaturalSizeAttributes'](_0x4f8549['getContainedElement']());}),_0x2ae0e5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x24ed00,_0x28e2b4)=>{_0x2ae0e5['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x24ed00,{'commandName':_0x28e2b4['commandName'],'commandParams':_0x28e2b4['commandReversedParams']});}),_0x2ae0e5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x12f60f,_0x235d07){if(_0x5a3318(_0x12f60f,_0x235d07))return[_0x12f60f,_0x235d07];if(_0x5a3318(_0x235d07,_0x12f60f))return[_0x235d07,_0x12f60f];return null;});const _0x2fd6ab=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5a3318(_0x5adeed,_0x154118){const _0x4ddb5c=_0x2fd6ab['findIndex'](({type:_0x55f026,subType:_0x29f63d})=>_0x5adeed['type']==_0x55f026&&_0x5adeed['subType']==_0x29f63d),_0x56819d=_0x2fd6ab['findIndex'](({type:_0x3bbf60,subType:_0x3b6aed})=>_0x154118['type']==_0x3bbf60&&_0x154118['subType']==_0x3b6aed);if(_0x4ddb5c<0x0||_0x56819d<0x0)return!0x1;const _0x476dde=_0x5adeed['getFirstRange'](),_0x332586=_0x154118['getFirstRange']();if((0x0==_0x4ddb5c||0x1==_0x4ddb5c)&&0x2==_0x56819d&&_0x476dde['isIntersecting'](_0x332586))return!0x0;if(0x2==_0x4ddb5c&&0x3==_0x56819d){const _0x478810=_0x2ae0e5['_findSuggestions'](_0x476dde,'insertion')['filter'](({suggestion:_0x23d0f8,meta:_0x4f2404})=>_0x4f2404['isOwn']&&'convertInlineImageToBlock'==_0x23d0f8['subType']);if(_0x478810['length']>0x1&&_0x332586['end']['isEqual'](_0x476dde['start']))return!0x0;if(0x1==_0x478810['length']&&(_0x476dde['start']['isEqual'](_0x332586['end'])||_0x476dde['end']['isEqual'](_0x332586['start'])))return!0x0;}if(0x3==_0x4ddb5c&&0x3==_0x56819d&&_0x476dde['start']['isBefore'](_0x332586['start'])){const _0x8ff595=_0x476dde['end']['nodeAfter'],_0x631f09=_0x332586['start']['nodeBefore'];return _0x1f7c3d['isBlockImage'](_0x8ff595)&&_0x8ff595===_0x631f09;}return!0x1;}_0x1f2322['model']['document']['registerPostFixer'](()=>{let _0x3b5df2=!0x1;const _0x585939=Array['from'](_0x1f2322['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x27d641,data:_0x128f6b}of _0x585939){const {group:_0x469bf2,type:_0x4630bb,subType:_0x48351d,id:_0x38fbec}=_0x2ae0e5['_splitMarkerName'](_0x27d641);if('suggestion'==_0x469bf2&&_0x2ae0e5['hasSuggestion'](_0x38fbec)){if('formatBlock'==_0x4630bb&&('imageStylePreApply'==_0x48351d||'imageStylePostApply'==_0x48351d)){const _0x3c0a44=_0x2ae0e5['getSuggestion'](_0x38fbec);if(_0x128f6b['newRange']){const _0x361926=_0x3c0a44['getFirstRange']()['getContainedElement']();if(_0x1f7c3d['isBlockImage'](_0x361926))continue;_0x2ae0e5['discardSuggestion'](_0x3c0a44),_0x3b5df2=!0x0;}}if('insertion'==_0x4630bb&&'imageCaption'==_0x48351d&&!_0x128f6b['newRange']){const _0x477435=_0x2ae0e5['getSuggestion'](_0x38fbec);_0x477435['next']&&_0x477435['next']['isInContent']&&(_0x2ae0e5['discardSuggestion'](_0x477435['next']),_0x3b5df2=!0x0);}}}return _0x3b5df2;}),this['_registerLegacyDescription'](_0x4f65ce);}['_registerLegacyDescription'](_0x549e1a){const _0xd8ff4e=this['editor'],_0x38b40f=_0xd8ff4e['locale'];_0xd8ff4e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59e7a1=>{if('formatBlock'!=_0x59e7a1['type']&&'formatInline'!=_0x59e7a1['type'])return;const {data:_0x5d70e4}=_0x59e7a1;if(!_0x5d70e4||'imageStyle'!=_0x5d70e4['commandName'])return;const _0x4e6f65=_0x5d70e4['commandParams'][0x0]['value'];return _0xc591b6('side'===_0x4e6f65?o(_0x38b40f,'FORMAT_SIDE_IMAGE'):_0x549e1a[_0x4e6f65]||_0x4e6f65);function _0xc591b6(_0x34c892){return{'type':'format','content':o(_0x38b40f,'*Format:*\x20%0',_0x34c892)};}});}}class lt extends _0x5107bb{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x55f7a5){super(_0x55f7a5),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3bf2b6=this['editor'],_0x52def8=_0x3bf2b6['commands']['get']('importWord'),_0xf336c5=_0x3bf2b6['commands']['get']('trackChanges');_0x52def8&&(_0x52def8['on']('execute',(_0x2a0dae,[,_0xe37150])=>{this['_trackChangesValueDuringImport']=_0xf336c5['value'],_0xe37150['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x52def8,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x52def8,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xf336c5['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3bf2b6['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x30118e,_0x431580){const {suggestions:_0x18759c}=_0x431580,_0x191174=this['editor']['commands']['get']('trackChanges'),_0x15f682=_0x191174['value'];this['_trackChangesValueDuringImport']!==_0x15f682&&(_0x191174['execute'](),this['_trackChangesExecuted']=!0x0),_0x18759c&&_0x18759c['forEach'](({id:_0x4d06eb,type:_0x49ec8e,author:_0x15e199,created_at:_0x5e6e67})=>{const _0x4917dc={'id':_0x4d06eb,'type':_0x49ec8e,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x15e199,'createdAt':_0x5e6e67?new Date(_0x5e6e67):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4917dc);});}}class gt extends _0x5107bb{['afterInit'](){const _0x4af6c2=this['editor'],_0x20e3e3=_0x4af6c2['plugins']['get']('TrackChangesEditing');if(_0x4af6c2['plugins']['has']('IndentEditing')&&(_0x20e3e3['enableCommand']('indent'),_0x20e3e3['enableCommand']('outdent')),_0x4af6c2['plugins']['has']('IndentBlock')){for(const _0x3683cd of['indentBlock','outdentBlock'])_0x20e3e3['enableDefaultAttributesIntegration'](_0x3683cd);if(_0x4af6c2['plugins']['has']('ListEditing')){for(const _0x14e43c of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x20e3e3['enableDefaultAttributesIntegration'](_0x14e43c);}}const _0xebc768=_0x4af6c2['locale'];_0x20e3e3['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0xebc768,'FORMAT_INDENT')),_0x20e3e3['descriptionFactory']['registerAttributeLabel']('blockIndentList',o(_0xebc768,'FORMAT_INDENT')),_0x20e3e3['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',o(_0xebc768,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46286a=this['editor'],_0x3719a9=_0x46286a['locale'],_0x104baf=_0x46286a['plugins']['get']('TrackChangesEditing');_0x104baf['descriptionFactory']['registerDescriptionCallback'](_0x1b3fec=>{if('formatBlock'!=_0x1b3fec['type'])return;const {data:_0x180189}=_0x1b3fec;if(!_0x180189)return;if('indentBlock'!=_0x180189['commandName']&&'outdentBlock'!=_0x180189['commandName'])return;const _0x189c3c=_0x1b3fec['getItems']()[0x0],_0x43e2ab=_0x104baf['descriptionFactory']['getItemLabel'](_0x189c3c);return'indentBlock'==_0x180189['commandName']?{'type':'format','content':o(_0x3719a9,'*Indent:*\x20%0',_0x43e2ab)}:'outdentBlock'==_0x180189['commandName']?{'type':'format','content':o(_0x3719a9,'*Outdent:*\x20%0',_0x43e2ab)}:void 0x0;});}}class mt extends _0x5107bb{static get['requires'](){return[_0x39ac54];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class dt extends _0x5107bb{['afterInit'](){const _0x5d05a9=this['editor'];if(!_0x5d05a9['plugins']['has']('LinkEditing'))return;const _0x1626ab=_0x5d05a9['plugins']['get']('TrackChangesEditing'),_0x2e44d6=_0x5d05a9['commands']['get']('link');_0x1626ab['enableDefaultAttributesIntegration']('link'),_0x1626ab['enableDefaultAttributesIntegration']('unlink');for(const _0x6c59fe of _0x2e44d6['manualDecorators'])_0x1626ab['descriptionFactory']['registerAttributeLabel'](_0x6c59fe['id'],'link\x20('+_0x6c59fe['label']['toLowerCase']()+')');_0x1626ab['descriptionFactory']['registerDescriptionCallback'](_0x511c57=>{if('attribute'!=_0x511c57['type'])return;const {data:_0x409880}=_0x511c57;if(!_0x409880||'linkHref'!=_0x409880['key'])return;const _0x3875db=_0x409880['newValue'],_0x2ae06f=_0x5d05a9['locale'];return{'type':'format','content':null==_0x3875db?o(_0x2ae06f,'*Remove\x20link*'):o(_0x2ae06f,'*Set\x20link:*\x20%0','\x22'+_0x3875db+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x400b57=this['editor'],_0x3e11f5=_0x400b57['locale'];_0x400b57['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d05da=>{if('formatInline'!=_0x3d05da['type'])return;const {data:_0x38b5ad}=_0x3d05da;if(_0x38b5ad){if('link'==_0x38b5ad['commandName']){const _0x2361cc=_0x38b5ad['commandParams'][0x0];return{'type':'format','content':o(_0x3e11f5,'*Set\x20link:*\x20%0','\x22'+_0x2361cc+'\x22')};}return'unlink'==_0x38b5ad['commandName']?{'type':'format','content':o(_0x3e11f5,'*Remove\x20link*')}:void 0x0;}});}}class pt extends _0x5107bb{['afterInit'](){const _0x2dbca2=this['editor'],_0x2666c9=_0x2dbca2['locale'];if(!_0x2dbca2['plugins']['has']('LegacyListEditing'))return;const _0x27ac93=_0x2dbca2['plugins']['get']('TrackChangesEditing'),_0x2f1c85=_0x2dbca2['plugins']['has']('LegacyTodoListEditing');function _0x570d7a(_0x34cb1e){return()=>{const _0xfe350d=_0x2dbca2['model']['document']['selection'],_0x5e4f6d=_0x2dbca2['commands']['get'](_0x34cb1e);if(_0x5e4f6d['value'])return void _0x2dbca2['execute']('paragraph',{});const _0x4fd82e=_0x34cb1e['slice'](0x0,-0x4),_0x57722e=function(_0x5e4580,_0x154a00,_0x123420){let _0x40db06=Array['from'](_0x5e4580)['filter'](_0x26501b=>function(_0x262ac6,_0x440878){return _0x440878['checkChild'](_0x262ac6['parent'],'listItem')&&!_0x440878['isObject'](_0x262ac6);}(_0x26501b,_0x123420));_0x40db06=_0x40db06['filter'](_0x5c2c66=>!_0x5c2c66['is']('element','listItem')||_0x5c2c66['getAttribute']('listType')!=_0x154a00);const _0x2c4ccb=new Set();for(const _0x21cc70 of _0x40db06)_0x21cc70['is']('element','listItem')?_0x2c4ccb['add'](Le(_0x21cc70)):_0x2c4ccb['add'](_0x21cc70);return Array['from'](_0x2c4ccb);}(_0xfe350d['getSelectedBlocks'](),_0x4fd82e,_0x2dbca2['model']['schema']);_0x2dbca2['model']['change'](()=>{for(const _0x5da9ba of _0x57722e)_0x27ac93['markBlockFormat'](_0x5da9ba,{'commandName':_0x34cb1e,'commandParams':[{'forceValue':!_0x5e4f6d['value']}],'formatGroupId':'blockName'},Ee(_0x5da9ba));});};}function _0x447e82(_0x27b73d){return()=>{const _0x1c308f=function(_0x49fbea){let _0x9a1ac4=Array['from'](_0x49fbea);const _0x4f701a=_0x9a1ac4['findIndex'](_0x42b7d3=>'listItem'!=_0x42b7d3['name']);return _0x4f701a>-0x1&&(_0x9a1ac4=_0x9a1ac4['slice'](0x0,_0x4f701a)),_0x9a1ac4;}(_0x2dbca2['model']['document']['selection']['getSelectedBlocks']()),_0x5dd023=_0x2dbca2['model']['createRange'](_0x2dbca2['model']['createPositionAt'](_0x1c308f[0x0],'before'),_0x2dbca2['model']['createPositionAt'](_0x1c308f[_0x1c308f['length']-0x1],'end'));_0x2dbca2['model']['change'](()=>{_0x27ac93['markBlockFormat'](_0x5dd023,{'commandName':_0x27b73d,'commandParams':[],'formatGroupId':'listIndent'},function(_0xc56c02){const _0x1160cf=new Set();for(const _0x49156b of _0xc56c02){let _0x4549c6=_0x49156b['nextSibling'];for(;_0x4549c6&&_0x4549c6['getAttribute']('listIndent')>_0x49156b['getAttribute']('listIndent');)_0x1160cf['add'](_0x4549c6),_0x4549c6=_0x4549c6['nextSibling'];}return Array['from'](_0x1160cf);}(_0x1c308f));});};}_0x27ac93['enableCommand']('numberedList',_0x570d7a('numberedList')),_0x27ac93['enableCommand']('bulletedList',_0x570d7a('bulletedList')),_0x2f1c85&&_0x27ac93['enableCommand']('todoList',_0x570d7a('todoList')),_0x27ac93['enableCommand']('indentList',_0x447e82('indentList')),_0x27ac93['enableCommand']('outdentList',_0x447e82('outdentList')),_0x2f1c85&&_0x27ac93['enableCommand']('checkTodoList',()=>{const _0x5ec5e6=_0x2dbca2['commands']['get']('checkTodoList'),_0x20fba6=Array['from'](_0x5ec5e6['_selectedElements']);_0x20fba6['filter'](_0x317d16=>_0x317d16['getAttribute']('todoListChecked')!=_0x5ec5e6['value']),_0x2dbca2['model']['change'](()=>{for(const _0xce4e8e of _0x20fba6)_0x27ac93['markBlockFormat'](_0xce4e8e,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5ec5e6['value']}]});});}),_0x27ac93['descriptionFactory']['registerElementLabel']('listItem',_0x439701=>o(_0x2666c9,'ELEMENT_LIST_ITEM',_0x439701)),_0x27ac93['descriptionFactory']['registerDescriptionCallback'](_0x2b8f32=>{if('formatBlock'!=_0x2b8f32['type']&&'formatInline'!=_0x2b8f32['type'])return;const {data:_0x2c3062}=_0x2b8f32;if(_0x2c3062){if('numberedList'==_0x2c3062['commandName']||'bulletedList'==_0x2c3062['commandName']||'todoList'==_0x2c3062['commandName'])switch(_0x2c3062['commandName']['replace']('List','')){case'bulleted':return _0x546148(o(_0x2666c9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x546148(o(_0x2666c9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x546148(o(_0x2666c9,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2c3062['commandName'])return{'type':'format','content':o(_0x2666c9,'*Indent:*\x20%0',o(_0x2666c9,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2c3062['commandName'])return{'type':'format','content':o(_0x2666c9,'*Outdent:*\x20%0',o(_0x2666c9,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2c3062['commandName'])return _0x2c3062['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2666c9,'*Check\x20item*')}:{'type':'format','content':o(_0x2666c9,'*Uncheck\x20item*')};}function _0x546148(_0x3a507d){return{'type':'format','content':o(_0x2666c9,'*Change\x20to:*\x20%0',_0x3a507d)};}});}}function Le(_0x57e2f4){const _0x4f9711=_0x57e2f4['getAttribute']('listIndent');if(0x0==_0x4f9711)return _0x57e2f4;let _0xb35472=_0x57e2f4;for(;_0x57e2f4['previousSibling']&&_0x57e2f4['previousSibling']['is']('element','listItem');){const _0x2c7d41=_0x57e2f4['previousSibling']['getAttribute']('listIndent');if(_0x2c7d41==_0x4f9711)_0xb35472=_0x57e2f4['previousSibling'];else{if(_0x2c7d41<_0x4f9711)break;}_0x57e2f4=_0x57e2f4['previousSibling'];}return _0xb35472;}function Ee(_0x4c9345){const _0x435a31=[];if(_0x4c9345['is']('element','listItem')&&_0x4c9345['getAttribute']('listIndent')>0x0){let _0x459826=_0x4c9345['nextSibling'];for(;_0x459826&&'listItem'==_0x459826['name']&&_0x459826['getAttribute']('listIndent')==_0x4c9345['getAttribute']('listIndent');)_0x435a31['push'](_0x459826),_0x459826=_0x459826['nextSibling'];}return _0x435a31;}class wt extends _0x5107bb{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x11366b=this['editor']['config']['get']('list.properties'),_0x4261d0=this['editor']['plugins']['get']('TrackChangesEditing');_0x11366b['styles']&&_0x4261d0['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x11366b['reversed']&&_0x4261d0['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x11366b['startIndex']&&_0x4261d0['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4261d0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1f68cc,_0x4dc199={}){const _0x29d853=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ea4a=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x29d853['markMultiRangeBlockFormat'](_0x5ea4a,{'commandName':'listStyle','commandParams':[{'type':_0x4dc199['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x37d703,_0x210974={}){const _0x1c86f2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x38eafb=this['_getSuggestionBlocks'](_0x5c72ce=>_0x5c72ce['is']('element','listItem')&&'numbered'===_0x5c72ce['getAttribute']('listType'));if(_0x38eafb['length']<0x1)return;const _0x22e043=_0x38eafb['map'](_0x2ed12b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2ed12b,'before'),this['editor']['model']['createPositionAt'](_0x2ed12b,0x0)));this['editor']['model']['change'](()=>{_0x1c86f2['markMultiRangeBlockFormat'](_0x22e043,{'commandName':'listReversed','commandParams':[{'reversed':_0x210974['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x55a955,_0x3024d0={}){const _0x8b51cf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x550c9b=this['_getSuggestionBlocks'](_0xd71c25=>_0xd71c25['is']('element','listItem')&&'numbered'===_0xd71c25['getAttribute']('listType'));if(_0x550c9b['length']<0x1)return;const _0x42b4c6=_0x550c9b['map'](_0x4a20e6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4a20e6,'before'),this['editor']['model']['createPositionAt'](_0x4a20e6,0x0)));this['editor']['model']['change'](()=>{_0x8b51cf['markMultiRangeBlockFormat'](_0x42b4c6,{'commandName':'listStart','commandParams':[{'startIndex':_0x3024d0['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x22f11c){if('formatBlock'!=_0x22f11c['type']&&'formatInline'!=_0x22f11c['type'])return;const _0x4fe193=this['editor']['locale'],{data:_0x397100}=_0x22f11c;if(!_0x397100)return;let _0x58816b,_0x17f727;switch(_0x397100['commandName']){case'listStyle':_0x58816b='*Change\x20to:*\x20%0',_0x17f727={'type':'format','content':o(_0x4fe193,_0x58816b,o(_0x4fe193,this['_getTranslationKeyForListStyle'](_0x397100['commandParams'][0x0]['type'])))};break;case'listReversed':_0x58816b=_0x397100['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x17f727={'type':'format','content':o(_0x4fe193,_0x58816b)};break;case'listStart':_0x58816b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x17f727={'type':'format','content':o(_0x4fe193,_0x58816b,_0x397100['commandParams'][0x0]['startIndex'])};}return _0x17f727;}['_getSuggestionBlocksForListStyle'](){const _0x5ab46f=this['editor']['plugins']['get']('LegacyListUtils');let _0x1be047=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1be047[0x0]?.['is']('element','listItem')&&_0x1be047['unshift'](..._0x5ab46f['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1be047[_0x1be047['length']-0x1]?.['is']('element','listItem')&&_0x1be047['push'](..._0x5ab46f['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1be047=[...new Set(_0x1be047)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1be047=_0x1be047['filter'](_0x1a185d=>_0x1a185d['is']('element','listItem'))),_0x1be047;}['_getSuggestionBlocks'](_0x1cac27){const _0x47a388=this['editor']['plugins']['get']('LegacyListUtils');let _0xe536f2=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1cac27)['map'](_0x20e0c3=>{const _0x58e4ee=this['editor']['model']['createPositionAt'](_0x20e0c3,0x0);return[..._0x47a388['getSiblingNodes'](_0x58e4ee,'backward'),..._0x47a388['getSiblingNodes'](_0x58e4ee,'forward')];})['flat']();return _0xe536f2=[...new Set(_0xe536f2)],_0xe536f2;}['_getTranslationKeyForListStyle'](_0x5402d9){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5402d9)||'default')['toUpperCase']()+'_LIST_'+_0x5402d9['toUpperCase']()['replace'](/-/g,'_');}}class kt extends _0x5107bb{['afterInit'](){const _0x1f44a6=this['editor'];if(!_0x1f44a6['plugins']['has']('MediaEmbedEditing'))return;const _0x103913=_0x1f44a6['plugins']['get']('TrackChangesEditing'),_0x485563=_0x1f44a6['locale'];_0x103913['enableCommand']('mediaEmbed'),_0x103913['descriptionFactory']['registerElementLabel']('media',_0x5368cb=>o(_0x485563,'ELEMENT_MEDIA',_0x5368cb));}}class bt extends _0x5107bb{['afterInit'](){const _0x3b95a4=this['editor'];_0x3b95a4['plugins']['has']('MentionEditing')&&_0x3b95a4['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class yt extends _0x5107bb{['afterInit'](){const _0x3e0d38=this['editor'];if(!_0x3e0d38['plugins']['has']('MergeFieldsEditing'))return;const _0x52f866=_0x3e0d38['plugins']['get']('TrackChangesEditing'),_0x1acead=_0x3e0d38['locale'];_0x52f866['enableCommand']('insertMergeField'),_0x52f866['enableCommand']('insertMergeFieldBlock'),_0x52f866['enableCommand']('insertMergeFieldImage'),_0x52f866['descriptionFactory']['registerElementLabel']('mergeField',_0x127dce=>o(_0x1acead,'ELEMENT_MERGE_FIELD',_0x127dce)),_0x52f866['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3346ca=>o(_0x1acead,'ELEMENT_MERGE_FIELD',_0x3346ca)),_0x52f866['descriptionFactory']['registerDescriptionCallback'](_0x3eb86f=>{if('insertion'!=_0x3eb86f['type']&&'deletion'!=_0x3eb86f['type'])return;const _0x4508ea=_0x3eb86f['getContainedElement']();if(null==_0x4508ea)return;const _0xbf49e5=_0x3e0d38['plugins']['get']('MergeFieldsEditing');let _0x14a7e3;switch(_0xbf49e5['getMergeFieldType'](_0x4508ea)){case null:return;case'image':{const _0x1ca89c=_0xbf49e5['unwrapAffixes'](_0x4508ea['getAttribute']('src'));_0x14a7e3=_0xbf49e5['getLabel'](_0x1ca89c)||_0x1ca89c;break;}default:{const _0x2af8e9=_0x4508ea['getAttribute']('id');_0x14a7e3=_0xbf49e5['getLabel'](_0x2af8e9)||_0x2af8e9;break;}}return'insertion'==_0x3eb86f['type']?{'type':'insertion','content':o(_0x1acead,'*Insert:*\x20%0','\x22'+_0x14a7e3+'\x22\x20'+o(_0x1acead,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x1acead,'*Remove:*\x20%0','\x22'+_0x14a7e3+'\x22\x20'+o(_0x1acead,'ELEMENT_MERGE_FIELD'))};});}}class jt extends _0x5107bb{['afterInit'](){const _0x3ee391=this['editor'],_0x19c6e2=_0x3ee391['plugins']['get']('TrackChangesEditing');_0x3ee391['plugins']['has']('MultiLevelList')&&(_0x19c6e2['enableDefaultAttributesIntegration']('multiLevelList'),_0x19c6e2['descriptionFactory']['registerDescriptionCallback'](_0x288732=>this['handleDescriptions'](_0x288732)));}['handleDescriptions'](_0x5a90d3){const _0x3868ea=this['editor']['locale'],{data:_0x3b06cd}=_0x5a90d3,_0x395644={'type':'format','content':''};if(_0x3b06cd&&'listMarkerStyle'==_0x3b06cd['key']){if(!_0x3b06cd['oldValue'])return{'type':'format','content':o(_0x3868ea,'*Set\x20format:*\x20%0',o(_0x3868ea,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3b06cd['newValue']+')'};if(!_0x3b06cd['newValue']){let _0x30df28=_0x5a90d3['head'];for(;_0x30df28;){if(_0x30df28['data']&&'listType'==_0x30df28['data']['key']&&_0x30df28['data']['newValue'])return _0x395644;_0x30df28=_0x30df28['next'];}return{'type':'format','content':o(_0x3868ea,'*Remove\x20format:*\x20%0',o(_0x3868ea,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3b06cd['oldValue']+')'};}}}}class St extends _0x5107bb{['afterInit'](){const _0x4e6d55=this['editor'];if(!_0x4e6d55['plugins']['has']('PageBreakEditing'))return;_0x4e6d55['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x528a64=_0x4e6d55['plugins']['get']('TrackChangesEditing'),_0x262654=_0x4e6d55['locale'];_0x528a64['descriptionFactory']['registerElementLabel']('pageBreak',_0x2f5408=>o(_0x262654,'ELEMENT_PAGE_BREAK',_0x2f5408));}}class It extends _0x5107bb{['afterInit'](){const _0x32258e=this['editor'];if(!_0x32258e['plugins']['has']('Paragraph'))return;const _0x3575a9=_0x32258e['locale'],_0x258367=_0x32258e['plugins']['get']('TrackChangesEditing');_0x258367['descriptionFactory']['registerElementLabel']('paragraph',_0x2d9a33=>o(_0x3575a9,'ELEMENT_PARAGRAPH',_0x2d9a33)),_0x258367['enableDefaultAttributesIntegration']('paragraph'),_0x258367['enableCommand']('insertParagraph');const _0x7e29e3=_0x258367['descriptionFactory'];_0x7e29e3['registerDescriptionCallback'](_0x3564f3=>{if('insertion'!==_0x3564f3['type'])return;const {start:_0x4c7f82,end:_0x5c8f11}=_0x3564f3['getFirstRange']();if(!_0x4c7f82['isTouching'](_0x5c8f11)||!_0x4c7f82['nodeAfter'])return;const _0x4513e3=_0x32258e['model']['schema'],_0x428bf9=_0x4c7f82['nodeAfter'];return _0x4513e3['isBlock'](_0x428bf9)&&!_0x4513e3['isLimit'](_0x428bf9)&&_0x4513e3['checkChild'](_0x428bf9,'$text')?{'type':'insertion','content':o(_0x3575a9,'*Insert:*\x20%0',_0x7e29e3['getItemLabel'](_0x428bf9,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ef492=this['editor'],_0x311faa=_0x2ef492['locale'];_0x2ef492['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bb08e=>{if('formatBlock'!=_0x3bb08e['type'])return;const {data:_0x3033b7}=_0x3bb08e;return _0x3033b7&&'paragraph'==_0x3033b7['commandName']?{'type':'format','content':o(_0x311faa,'*Change\x20to:*\x20%0',o(_0x311faa,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class At extends _0x5107bb{['afterInit'](){const _0x1b7c71=this['editor'];_0x1b7c71['commands']['get']('replaceSource')&&_0x1b7c71['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class _t extends _0x5107bb{['afterInit'](){const _0x1d243c=this['editor'];if(!_0x1d243c['plugins']['has']('RemoveFormatEditing'))return;_0x1d243c['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5bf36b=this['editor'];_0x5bf36b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x195ea7=>{if('formatBlock'!=_0x195ea7['type']&&'formatInline'!=_0x195ea7['type'])return;const {data:_0x2ce2fc}=_0x195ea7;return _0x2ce2fc&&'removeFormat'==_0x2ce2fc['commandName']?{'type':'format','content':o(_0x5bf36b['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class Ct extends _0x5107bb{['afterInit'](){const _0x1400f9=this['editor'];if(!_0x1400f9['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x421ef6=_0x1400f9['plugins']['get']('TrackChangesEditing');_0x421ef6['enableCommand']('goToPreviousRestrictedEditingException'),_0x421ef6['enableCommand']('goToNextRestrictedEditingException');const _0x52c438=_0x1400f9['plugins']['get']('RestrictedEditingModeEditing');_0x52c438['enableCommand']('trackChanges'),_0x52c438['enableCommand']('acceptSuggestion'),_0x52c438['enableCommand']('discardSuggestion'),_0x52c438['enableCommand']('acceptAllSuggestions'),_0x52c438['enableCommand']('discardAllSuggestions'),_0x52c438['enableCommand']('acceptSelectedSuggestions'),_0x52c438['enableCommand']('discardSelectedSuggestions');}}class Nt extends _0x5107bb{['afterInit'](){const _0x5341dc=this['editor'];if(!_0x5341dc['plugins']['has']('ShiftEnter'))return;const _0x17baa7=_0x5341dc['plugins']['get']('TrackChangesEditing');_0x17baa7['enableCommand']('shiftEnter'),_0x17baa7['descriptionFactory']['registerElementLabel']('softBreak',_0x4bc9c7=>o(_0x5341dc['locale'],'ELEMENT_LINE_BREAK',_0x4bc9c7));}}function an(_0x459be6,_0x4b0548,_0x230430){const _0x5b6d1e=[];for(const _0x409764 of _0x4b0548['getItems']())_0x409764['hasAttribute'](_0x459be6)&&_0x5b6d1e['push'](_0x230430['createRangeOn'](_0x409764));return _0x5b6d1e;}class $t extends _0x5107bb{['afterInit'](){const _0x192644=this['editor'],_0xdc8fb=_0x192644['plugins']['get']('TrackChangesEditing');_0x192644['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0xdc8fb['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x3ddce3=this['editor'],_0x2cea6c=_0x3ddce3['model'],_0xddf7da=_0x3ddce3['locale'],_0x49f52f=_0x3ddce3['plugins']['get']('TrackChangesEditing'),_0x1607b3='restrictedEditingException',_0x15d779=_0x3ddce3['commands']['get'](_0x1607b3);_0x49f52f['enableCommand'](_0x1607b3,(_0x1592c7,_0x2bfca4={})=>{const _0x38bd6b=_0x2cea6c['document']['selection'];if(_0x38bd6b['isCollapsed'])return void _0x1592c7(_0x2bfca4);const _0x32e331=void 0x0!==_0x2bfca4['forceValue']?_0x2bfca4['forceValue']:!_0x15d779['value'];_0x2cea6c['change'](()=>{const _0x579da7=Array['from'](_0x38bd6b['getRanges']());for(const _0x1a72e6 of _0x579da7){const _0x2f883d=_0x32e331?[_0x1a72e6]:an(_0x1607b3,_0x1a72e6,_0x2cea6c);for(const _0x37368c of _0x2f883d)_0x49f52f['markInlineFormat'](_0x37368c,{'commandName':_0x1607b3,'commandParams':[{'forceValue':_0x32e331}]});}});}),_0x49f52f['descriptionFactory']['registerDescriptionCallback'](_0x569148=>{if('formatBlock'!=_0x569148['type']&&'formatInline'!=_0x569148['type'])return;const {data:_0x520991}=_0x569148;return _0x520991&&_0x520991['commandName']==_0x1607b3?_0x520991['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xddf7da,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0xddf7da,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x5d6a5d=this['editor'],_0x406772=_0x5d6a5d['locale'],_0x5dc9ea=_0x5d6a5d['plugins']['get']('TrackChangesEditing'),_0x97df18='restrictedEditingExceptionBlock',_0xa1c56f=this['editor']['commands']['get'](_0x97df18);_0x5dc9ea['enableCommand'](_0x97df18,(_0x25803a,_0x514600={})=>{const _0x20a277=this['editor']['model']['document']['selection'],_0x87578=_0x514600&&void 0x0!==_0x514600['forceValue']?_0x514600['forceValue']:!_0xa1c56f['value'];let _0x4de20a=[];if(_0x87578){const _0xa7ada2=Array['from'](_0x20a277['getSelectedBlocks']())['filter'](_0x2acd75=>function(_0x57b080){return!!_0x57b080['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x2acd75)||function(_0x5e7e03,_0x204857){const _0xe7025a=_0x204857['createContext'](_0x5e7e03['parent']);if(!_0x204857['checkChild'](_0xe7025a,'restrictedEditingException'))return!0x1;if(!_0x204857['checkChild'](_0xe7025a['push']('restrictedEditingException'),_0x5e7e03))return!0x1;return!0x0;}(_0x2acd75,this['editor']['model']['schema']));_0x4de20a=to(_0xa7ada2,_0x5d6a5d['model']);}else{const _0x573cf1=Array['from'](_0x20a277['getSelectedBlocks']())['map'](_0x4697b4=>function(_0x268d30){let _0x4a45eb=_0x268d30;for(;_0x4a45eb['parent'];){if('restrictedEditingException'==_0x4a45eb['parent']['name'])return _0x4a45eb;_0x4a45eb=_0x4a45eb['parent'];}return null;}(_0x4697b4))['filter'](_0x41737a=>!!_0x41737a);_0x4de20a=to(_0x573cf1,_0x5d6a5d['model']);}_0x5d6a5d['model']['change'](()=>{for(const _0x5ba5bc of _0x4de20a)_0x5dc9ea['markBlockFormat'](_0x5ba5bc,{'commandName':_0x97df18,'commandParams':[{'forceValue':_0x87578}]});});}),_0x5dc9ea['descriptionFactory']['registerDescriptionCallback'](_0x204fb8=>{const {data:_0x317b4e}=_0x204fb8;if(_0x317b4e&&_0x317b4e['commandName']==_0x97df18)return _0x317b4e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x406772,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x406772,'FORMAT_RESTRICTED_DISABLED')};});}}class vt extends _0x5107bb{['afterInit'](){const _0x331098=this['editor'];if(!_0x331098['plugins']['has']('Style')||!_0x331098['plugins']['has']('DataSchema'))return;const _0x5be511=_0x331098['plugins']['get']('TrackChangesEditing'),_0x21dbff=_0x331098['locale'],_0x1f9427=_0x331098['config']['get']('style')||{},_0x35c085=_0x331098['plugins']['get']('GeneralHtmlSupport'),_0x3032d3=_0x331098['plugins']['get']('StyleUtils')['normalizeConfig'](_0x331098['plugins']['get']('DataSchema'),_0x1f9427['definitions']);_0x5be511['enableDefaultAttributesIntegration']('style');const _0x473b4c=new Set();for(const _0xda23f2 of _0x3032d3['block']){const _0xd60b94=_0x35c085['getGhsAttributeNameForElement'](_0xda23f2['element']);_0x473b4c['add'](_0xd60b94);}const _0x151c3c=new Set();for(const _0x5323c8 of _0x3032d3['inline']){const _0x396941=_0x35c085['getGhsAttributeNameForElement'](_0x5323c8['element']);_0x151c3c['add'](_0x396941);for(const _0x3d1b0a of _0x5323c8['ghsAttributes'])_0x151c3c['add'](_0x3d1b0a);}for(const _0x51affd of _0x473b4c)_0x5be511['descriptionFactory']['registerAttributeLabel'](_0x51affd,o(_0x21dbff,'FORMAT_STYLE'));for(const _0x470b52 of _0x151c3c)_0x5be511['descriptionFactory']['registerAttributeLabel'](_0x470b52,o(_0x21dbff,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x314a16=this['editor'],_0x582bb9=_0x314a16['locale'];_0x314a16['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11170e=>{if('formatBlock'!=_0x11170e['type']&&'formatInline'!=_0x11170e['type'])return;const {data:_0x4754f5}=_0x11170e;return _0x4754f5&&'style'===_0x4754f5['commandName']?_0x4754f5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x582bb9,'*Set\x20format:*\x20%0',_0x4754f5['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x582bb9,'*Remove\x20format:*\x20%0',_0x4754f5['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Dt extends _0x5107bb{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x42725d){super(_0x42725d),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3145ad=this['editor'],_0x55dbe2=_0x3145ad['model']['document']['selection'];if(!_0x3145ad['plugins']['has']('TableEditing'))return;const _0x447621=_0x3145ad['locale'],_0xd0dd57=_0x3145ad['plugins']['get']('TrackChangesEditing'),_0x48d569=_0x3145ad['plugins']['get']('TableUtils');_0xd0dd57['descriptionFactory']['registerElementLabel']('table',_0x395aa5=>o(_0x447621,'ELEMENT_TABLE',_0x395aa5)),this['_setupColumnsRowsFixing'](),_0xd0dd57['enableCommand']('insertTable'),_0xd0dd57['enableCommand']('selectTableRow'),_0xd0dd57['enableCommand']('selectTableColumn');for(const _0x908247 of['insertTableRowAbove','insertTableRowBelow']){const _0xe52603=_0x3145ad['commands']['get'](_0x908247);_0xd0dd57['enableCommand'](_0x908247,_0x381730=>{_0x3145ad['model']['change'](_0x5b34b6=>{_0x381730();const _0x16d44b='above'===_0xe52603['order'],_0x4bebd8=_0x48d569['getSelectionAffectedTableCells'](_0x55dbe2),_0x4d7a94=_0x48d569['getRowIndexes'](_0x4bebd8),_0x1c8181=_0x16d44b?_0x4d7a94['first']-0x1:_0x4d7a94['last']+0x1,_0x570633=_0x4bebd8[0x0]['findAncestor']('table'),_0x3f4b1b=_0x48d569['createTableWalker'](_0x570633,{'startRow':_0x1c8181,'endRow':_0x1c8181}),_0x20b99e=Array['from'](_0x3f4b1b)['map'](_0x11e0d1=>_0x5b34b6['createRangeOn'](_0x11e0d1['cell']));_0xd0dd57['markMultiRangeInsertion'](_0x20b99e,'tableRow');});});}for(const _0x5ebaec of['insertTableColumnLeft','insertTableColumnRight']){const _0x153b43=_0x3145ad['commands']['get'](_0x5ebaec);_0xd0dd57['enableCommand'](_0x5ebaec,_0x43fdbb=>{_0x3145ad['model']['change'](_0x464710=>{_0x43fdbb();const _0x8b812a='left'===_0x153b43['order'],_0x4859dc=_0x48d569['getSelectionAffectedTableCells'](_0x55dbe2),_0x116a49=_0x48d569['getColumnIndexes'](_0x4859dc),_0x13ccd4=_0x8b812a?_0x116a49['first']-0x1:_0x116a49['last']+0x1,_0x9d0cec=_0x4859dc[0x0]['findAncestor']('table'),_0x232c1b=_0x48d569['createTableWalker'](_0x9d0cec,{'startRow':0x0,'column':_0x13ccd4,'includeAllSlots':!0x1}),_0x17eec5=Array['from'](_0x232c1b)['map'](_0x4eb153=>_0x464710['createRangeOn'](_0x4eb153['cell']));_0xd0dd57['markMultiRangeInsertion'](_0x17eec5,'tableColumn');});});}for(const _0xfd8ab0 of['removeTableRow','removeTableColumn']){const _0x38929a=_0xfd8ab0['substr'](0xb),_0x4d05b5=_0x38929a['toLowerCase'](),_0x356a4d=_0x4d05b5['substr'](0x0,0x3)+'span',_0x28449a='table'+_0x38929a,_0x37c23c='min'+_0x38929a,_0x38e8f2='max'+_0x38929a;_0xd0dd57['enableCommand'](_0xfd8ab0,()=>{_0x3145ad['model']['change'](_0x3c6b20=>{const _0x3cc169=_0x48d569['getSelectionAffectedTableCells'](_0x55dbe2),_0x285bf6=_0x3cc169[0x0]['findAncestor']('table');let _0x3edbce;if('removeTableRow'==_0xfd8ab0){const _0x5ae648=_0x48d569['getRowIndexes'](_0x3cc169);_0x3edbce={'startRow':_0x5ae648['first'],'endRow':_0x5ae648['last'],'includeAllSlots':!0x0};}else{const _0x2cfd80=_0x48d569['getColumnIndexes'](_0x3cc169);_0x3edbce={'startColumn':_0x2cfd80['first'],'endColumn':_0x2cfd80['last'],'includeAllSlots':!0x0};}const _0x354122=_0x48d569['createTableWalker'](_0x285bf6,_0x3edbce),_0x1854ec=Array['from'](_0x354122)['map'](({cell:_0x4d936c})=>_0x4d936c),_0x51bb59=_e(_0x1854ec['filter'](_0x2a5048=>_0x2a5048['hasAttribute'](_0x356a4d))),_0x7b828b=_e(_0x1854ec['filter'](_0xc75c46=>!_0xc75c46['hasAttribute'](_0x356a4d)))['map'](_0x4e76c1=>_0x3c6b20['createRangeOn'](_0x4e76c1)),_0x188479=_0xd0dd57['markMultiRangeDeletion'](_0x7b828b,_0x28449a);if(_0x188479&&('tableRow'==_0x188479['subType']||'tableColumn'==_0x188479['subType'])){const _0x1482e2=this['_getSuggestionCoords'](_0x188479);for(const _0x516d64 of _0x51bb59){const _0x3fa2e8=_0x3c6b20['createRangeOn'](_0x516d64),_0x545d69=_0x48d569['getCellLocation'](_0x516d64),_0x296e0f=_0x516d64['getAttribute'](_0x356a4d)-0x1,_0x2a097e=_0x1482e2[_0x37c23c],_0x54812a=_0x1482e2[_0x38e8f2];_0x2a097e<=_0x545d69[_0x4d05b5]&&_0x545d69[_0x4d05b5]+_0x296e0f<=_0x54812a&&_0x188479['addRange'](_0x3fa2e8);}}});});}function _0x139740(_0x24e365){const _0x3a9254=Array['from'](_0x55dbe2['getRanges']())['map'](_0x1ec088=>_0xe89877['fromRange'](_0x1ec088));_0x3145ad['model']['change'](_0x34fe14=>{const _0x13aeb8=_0x34fe14['batch'];_0x24e365=_0x24e365['filter'](_0xbeb435=>'$graveyard'!=_0xbeb435['root']['rootName']),_0x34fe14['setSelection'](_0x24e365),_0x3145ad['commands']['get']('removeTableRow')['refresh'](),_0x3145ad['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3145ad['model']['enqueueChange'](()=>{_0x3145ad['model']['enqueueChange'](_0x13aeb8,_0x2387d3=>{const _0x137cd6=_0x3a9254['filter'](_0x102441=>'$graveyard'!=_0x102441['root']['rootName']);_0x137cd6['length']>0x0&&_0x2387d3['setSelection'](_0x137cd6);for(const _0x149b02 of _0x3a9254)_0x149b02['detach']();});});});}function _0x4ab452(_0x1b9a24){_0x3145ad['model']['change'](_0x59982b=>{const _0x17db74=Array['from'](_0x55dbe2['getRanges']())['map'](_0x1f029b=>_0xe89877['fromRange'](_0x1f029b)),_0x1e6e17=[];for(const _0x337c35 of _0x1b9a24)for(const _0x1d5c4a of _0x337c35['getItems']({'shallow':!0x0}))_0x1e6e17['push'](_0x1d5c4a);for(const _0x2d49c4 of _0x1e6e17)'$graveyard'!=_0x2d49c4['root']['rootName']&&(_0x59982b['setSelection'](_0x59982b['createPositionAt'](_0x2d49c4,0x0)),_0x3145ad['commands']['get']('removeTableColumn')['refresh'](),_0x3145ad['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x31ca5c=_0x17db74['filter'](_0x4bb1fa=>'$graveyard'!=_0x4bb1fa['root']['rootName']);_0x31ca5c['length']>0x0&&_0x59982b['setSelection'](_0x31ca5c);for(const _0x42c38e of _0x17db74)_0x42c38e['detach']();});}function _0x269a41(_0x12c849,_0x23ee24){return _0x23ee24['every'](_0xf2a56d=>_0x12c849['some'](_0x1b1889=>_0x1b1889['end']['isEqual'](_0xf2a56d['start'])||_0xf2a56d['end']['isEqual'](_0x1b1889['start'])));}function _0x248a86(_0x204052,_0x5813f9){return!_0x204052['some'](_0x3dd2d0=>_0x5813f9['some'](_0x3d9ad5=>_0x3dd2d0['isIntersecting'](_0x3d9ad5)))&&_0x204052['some'](_0x8568bd=>_0x5813f9['some'](_0x1c0396=>_0x8568bd['end']['isTouching'](_0x1c0396['start'])));}_0xd0dd57['descriptionFactory']['registerDescriptionCallback'](_0xc9e93d=>{if('insertion'!=_0xc9e93d['type']&&'deletion'!=_0xc9e93d['type'])return;const _0x26daf7=_0xc9e93d['getContainedElement']();if(null!=_0x26daf7&&_0x26daf7['is']('element','table')){if('insertion'==_0xc9e93d['type']){const _0x4bef0e=_0xc9e93d['getItems']()['filter'](_0xafaaee=>_0xafaaee['is']('$textProxy'))['map'](_0x1c649a=>_0x1c649a['data']);if(_0x4bef0e['length'])return{'type':'insertion','content':o(_0x447621,'*Insert:*\x20%0',o(_0x447621,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4bef0e['join']('\x20')+'\x22'))};}if('deletion'==_0xc9e93d['type']){const _0x31e171=_0xc9e93d['getItems']()['filter'](_0xc34c76=>_0xc34c76['is']('$textProxy'))['map'](_0x456d4b=>_0x456d4b['data']);if(_0x31e171['length'])return{'type':'deletion','content':o(_0x447621,'*Remove:*\x20%0',o(_0x447621,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x31e171['join']('\x20')+'\x22'))};}}}),_0xd0dd57['descriptionFactory']['registerDescriptionCallback'](_0x521eee=>{if('tableRow'==_0x521eee['subType']){const _0x439432=_0x521eee['getItems']()['filter'](_0xb647d0=>_0xb647d0['is']('$textProxy'))['map'](_0x323e8b=>_0x323e8b['data']),_0x43720f=this['_getSuggestionCoords'](_0x521eee),_0x27180d=_0x43720f['maxRow']-_0x43720f['minRow']+0x1;if('insertion'==_0x521eee['type'])return _0x439432['length']?{'type':'insertion','content':o(_0x447621,'*Insert:*\x20%0',o(_0x447621,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x27180d,'\x22'+_0x439432['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x447621,'*Insert:*\x20%0',o(_0x447621,'ELEMENT_TABLE_ROW',_0x27180d))};if('deletion'==_0x521eee['type'])return _0x439432['length']?{'type':'deletion','content':o(_0x447621,'*Remove:*\x20%0',o(_0x447621,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x27180d,'\x22'+_0x439432['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x447621,'*Remove:*\x20%0',o(_0x447621,'ELEMENT_TABLE_ROW',_0x27180d))};}if('tableColumn'==_0x521eee['subType']){const _0x2ffcc5=_0x521eee['getItems']()['filter'](_0x3fc64f=>_0x3fc64f['is']('$textProxy'))['map'](_0x332281=>_0x332281['data']),_0x5491d4=this['_getSuggestionCoords'](_0x521eee),_0x51b04e=_0x5491d4['maxColumn']-_0x5491d4['minColumn']+0x1;if('insertion'==_0x521eee['type'])return _0x2ffcc5['length']?{'type':'insertion','content':o(_0x447621,'*Insert:*\x20%0',o(_0x447621,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x51b04e,'\x22'+_0x2ffcc5['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x447621,'*Insert:*\x20%0',o(_0x447621,'ELEMENT_TABLE_COLUMN',_0x51b04e))};if('deletion'==_0x521eee['type'])return _0x2ffcc5['length']?{'type':'deletion','content':o(_0x447621,'*Remove:*\x20%0',o(_0x447621,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x51b04e,'\x22'+_0x2ffcc5['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x447621,'*Remove:*\x20%0',o(_0x447621,'ELEMENT_TABLE_COLUMN',_0x51b04e))};}}),_0xd0dd57['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x139740),_0xd0dd57['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x139740),_0xd0dd57['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4ab452),_0xd0dd57['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4ab452),_0xd0dd57['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x269a41),_0xd0dd57['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x269a41),_0xd0dd57['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x248a86),_0xd0dd57['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x248a86);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4266d9=this['editor'],_0x58c007=_0x4266d9['model']['document']['selection'];return(_0x3ebe8c,_0x506270)=>{_0x4266d9['model']['change'](_0x534b54=>{const {commandName:_0x3d3e63,commandParams:_0x2fb16e}=_0x506270;let _0x3d59ca=_0x3ebe8c[0x0]['end']['nodeBefore'];_0x2fb16e&&_0x2fb16e[0x0]&&!0x1===_0x2fb16e[0x0]['forceValue']&&(_0x3d59ca=_0x3ebe8c[0x0]['start']['nodeAfter']);const _0x3bbeef=_0x534b54['createRangeIn'](_0x3d59ca);if('$graveyard'==_0x3bbeef['root']['rootName'])return;const _0x173f14=Array['from'](_0x58c007['getRanges']())['map'](_0x326c59=>_0xe89877['fromRange'](_0x326c59));_0x534b54['setSelection'](_0x3bbeef),_0x4266d9['commands']['get'](_0x3d3e63)['refresh'](),_0x2fb16e['push']({'forceDefaultExecution':!0x0}),_0x4266d9['execute'](_0x3d3e63,..._0x2fb16e);const _0x44be17=_0x173f14['filter'](_0x6dd395=>'$graveyard'!=_0x6dd395['root']['rootName']);_0x44be17['length']>0x0&&_0x534b54['setSelection'](_0x44be17);for(const _0x4b1853 of _0x173f14)_0x4b1853['detach']();});};}['_getCoordsForCells'](_0x40dacf){const _0x2eb6ff=this['editor']['plugins']['get']('TableUtils');let _0x5bcaf4=Number['MAX_SAFE_INTEGER'],_0x4cd395=Number['MIN_SAFE_INTEGER'],_0x567aac=Number['MAX_SAFE_INTEGER'],_0x3bdf43=Number['MIN_SAFE_INTEGER'];for(const _0x55b5c9 of _0x40dacf){if('$graveyard'==_0x55b5c9['root']['rootName'])continue;const {row:_0x444297,column:_0x5037b2}=_0x2eb6ff['getCellLocation'](_0x55b5c9),_0x5059c1=_0x55b5c9['hasAttribute']('rowspan')?_0x55b5c9['getAttribute']('rowspan')-0x1:0x0,_0xd79c75=_0x55b5c9['hasAttribute']('colspan')?_0x55b5c9['getAttribute']('colspan')-0x1:0x0;_0x5bcaf4=_0x444297<_0x5bcaf4?_0x444297:_0x5bcaf4,_0x4cd395=_0x444297+_0x5059c1>_0x4cd395?_0x444297+_0x5059c1:_0x4cd395,_0x567aac=_0x5037b2<_0x567aac?_0x5037b2:_0x567aac,_0x3bdf43=_0x5037b2+_0xd79c75>_0x3bdf43?_0x5037b2+_0xd79c75:_0x3bdf43;}return{'minRow':_0x5bcaf4,'maxRow':_0x4cd395,'minColumn':_0x567aac,'maxColumn':_0x3bdf43};}['_setupColumnsRowsFixing'](){const _0x1ecfde=this['editor'],_0x394eb9=_0x1ecfde['plugins']['get']('TrackChangesEditing'),_0x20b2dc=_0x1ecfde['plugins']['get']('TableUtils');_0x1ecfde['model']['document']['on']('change:data',()=>{const _0x584c35=Array['from'](_0x1ecfde['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x516d02,data:_0x4d4729}of _0x584c35){const {group:_0xf9836a,id:_0x529976,subType:_0x14c083}=_0x394eb9['_splitMarkerName'](_0x516d02);if('suggestion'!=_0xf9836a)continue;if(null!=_0x4d4729['oldRange'])continue;const _0x1c8782=_0x394eb9['getSuggestion'](_0x529976);this['_tablePostFixingSubtypes']['includes'](_0x14c083)&&this['_tableSuggestions']['add'](_0x1c8782);}},{'priority':'low'});const _0x316e5b=(_0x49bd75,_0x2127be)=>{let _0x19f7c0=!0x1;const _0xaa2656=_0x2127be['createRangeOn'](_0x49bd75),_0x29de0b=_0x49bd75['findAncestor']('table'),_0x57cda5=_0x20b2dc['getCellLocation'](_0x49bd75);for(const _0x5e5709 of this['_tableSuggestions']){const _0x2303e3=_0x5e5709['subType'],_0x5eb22f=_0x2303e3['startsWith']('tablePaste'),_0x3dd631=_0x2303e3['substr'](_0x5eb22f?0xa:0x5),_0x175a49=_0x3dd631['toLowerCase'](),_0x3297ea=_0x175a49['substr'](0x0,0x3)+'span',_0x211deb='min'+_0x3dd631,_0x2b2a8d='max'+_0x3dd631;if(!_0x5e5709['isInContent'])continue;if(_0x29de0b!=_0x5e5709['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5e5709['isIntersectingWithRange'](_0xaa2656))continue;const _0x2618a6=_0x49bd75['hasAttribute'](_0x3297ea)?_0x49bd75['getAttribute'](_0x3297ea)-0x1:0x0,_0x5a2c0e=this['_getSuggestionCoords'](_0x5e5709),_0x27a8d0=_0x5a2c0e[_0x211deb],_0x250142=_0x5a2c0e[_0x2b2a8d];_0x27a8d0<=_0x57cda5[_0x175a49]&&_0x57cda5[_0x175a49]+_0x2618a6<=_0x250142&&(_0x5e5709['addRange'](_0xaa2656),_0x19f7c0=!0x0);}return _0x19f7c0;};_0x1ecfde['model']['document']['registerPostFixer'](_0x26c187=>{let _0x1c76b7=!0x1;for(const _0xe6c791 of _0x1ecfde['model']['document']['differ']['getChanges']())if('insert'==_0xe6c791['type']){if('tableRow'==_0xe6c791['name']){for(const _0xcc7815 of _0xe6c791['position']['nodeAfter']['getChildren']())_0x1c76b7=_0x1c76b7||_0x316e5b(_0xcc7815,_0x26c187);}else'tableCell'==_0xe6c791['name']&&(_0x1c76b7=_0x1c76b7||_0x316e5b(_0xe6c791['position']['nodeAfter'],_0x26c187));}return _0x1c76b7;});}['_getSuggestionCoords'](_0x312823){return this['_getCoordsForCells'](_0x312823['getRanges']()['map'](_0x35f40e=>_0x35f40e['start']['nodeAfter']));}}function _e(_0x22d4e5){return Array['from'](new Set(_0x22d4e5)['values']());}class Bt extends _0x5107bb{static get['requires'](){return[Dt];}['afterInit'](){const _0x1d6239=this['editor'],_0x47b09e=_0x1d6239['model']['document']['selection'],_0x31b339=_0x1d6239['locale'];if(!_0x1d6239['plugins']['has']('TableEditing'))return;const _0x205169=_0x1d6239['plugins']['get']('TrackChangesEditing'),_0x8aa15f=_0x1d6239['plugins']['get']('TableUtils'),_0x3c6589=_0x1d6239['plugins']['get'](Dt);_0x3c6589['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x205169['enableCommand']('mergeTableCells',()=>{const _0x3db405=_0x8aa15f['getSelectionAffectedTableCells'](_0x1d6239['model']['document']['selection']);_0x1d6239['model']['change'](()=>{_0x205169['markMultiRangeBlockFormat'](_0x3db405,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1d6239['commands']['get']('mergeTableCells')['on']('execute',(_0x2b497d,_0x107b6f)=>{_0x1d6239['commands']['get']('trackChanges')['value']&&(_0x107b6f['length']>0x0&&_0x107b6f[_0x107b6f['length']-0x1]&&_0x107b6f[_0x107b6f['length']-0x1]['forceDefaultExecution']||_0x205169['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2b497d['stop']());},{'priority':'highest'});for(const _0x29ac5f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x384315=_0x1d6239['commands']['get'](_0x29ac5f);_0x205169['enableCommand'](_0x29ac5f,()=>{const _0x207451=_0x1d6239['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x245f32=>_0x245f32['is']('element','tableCell')),_0x840a1=_0x384315['value'];_0x1d6239['model']['change'](()=>{_0x205169['markMultiRangeBlockFormat']([_0x207451,_0x840a1],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x238ae4 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x404929=_0x1d6239['commands']['get'](_0x238ae4);_0x205169['enableCommand'](_0x238ae4,()=>{const _0x38f1c7=_0x8aa15f['getSelectionAffectedTableCells'](_0x1d6239['model']['document']['selection'])[0x0],_0xc74baf=_0x38f1c7['findAncestor']('table'),{column:_0x3b5139,row:_0x4113c4}=_0x8aa15f['getCellLocation'](_0x38f1c7);let _0x3ccff5=[];if('horizontally'==_0x404929['direction']){const _0x2e8650=_0x8aa15f['createTableWalker'](_0xc74baf,{'startRow':_0x4113c4,'endRow':_0x4113c4,'includeAllSlots':!0x0});_0x3ccff5=Array['from'](_0x2e8650)['map'](_0xcf5154=>_0xcf5154['cell']);}else{const _0x361c3e=_0x8aa15f['createTableWalker'](_0xc74baf,{'column':_0x3b5139,'includeAllSlots':!0x0});_0x3ccff5=Array['from'](_0x361c3e)['map'](_0x21b529=>_0x21b529['cell']);}_0x1d6239['model']['change'](_0x32193d=>{_0x205169['markBlockFormat'](_0x32193d['createRangeOn'](_0x38f1c7),{'commandName':_0x238ae4,'commandParams':[]},_0x3ccff5,_0x238ae4);});});}_0x205169['descriptionFactory']['registerDescriptionCallback'](_0x2d8f90=>{if('formatBlock'!=_0x2d8f90['type']&&'formatInline'!=_0x2d8f90['type'])return;const {data:_0x169c03}=_0x2d8f90;return _0x169c03&&'mergeTableCells'==_0x169c03['commandName']?{'type':'format','content':o(_0x31b339,'*Merge\x20cells*')}:void 0x0;}),_0x205169['descriptionFactory']['registerDescriptionCallback'](_0x466454=>{if('formatBlock'!=_0x466454['type']&&'formatInline'!=_0x466454['type'])return;const {data:_0x32ccb7}=_0x466454;return _0x32ccb7?'splitTableCellVertically'==_0x32ccb7['commandName']?{'type':'format','content':o(_0x31b339,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x32ccb7['commandName']?{'type':'format','content':o(_0x31b339,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x14d126=_0x3c6589['_acceptFormatSuggestionCallbackFactory']();for(const _0x50ff59 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x205169['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x50ff59,'accept',_0x14d126);for(const _0x219350 of['splitTableCellVertically','splitTableCellHorizontally'])_0x205169['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x219350,'accept',_0x14d126);_0x205169['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0xc85d73=>{_0x1d6239['model']['change'](_0xf0f091=>{const _0x280e5a=Array['from'](_0x47b09e['getRanges']())['map'](_0x3d1069=>_0xe89877['fromRange'](_0x3d1069));_0xf0f091['setSelection'](_0xc85d73),_0x1d6239['commands']['get']('mergeTableCells')['refresh'](),_0x1d6239['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x325b08=_0x280e5a['filter'](_0xbabad1=>'$graveyard'!=_0xbabad1['root']['rootName']);_0x325b08['length']>0x0&&_0xf0f091['setSelection'](_0x325b08);for(const _0x301872 of _0x280e5a)_0x301872['detach']();});});for(const _0x3da457 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x239a38=_0x1d6239['commands']['get'](_0x3da457);_0x239a38['on']('set:isEnabled',(_0x2fc65e,_0x2df661,_0x1b462f)=>{if(_0x1b462f){const _0x49a644=_0x1d6239['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x25464e=>_0x25464e['is']('element','tableCell'));this['_areMergableCells'](_0x239a38['value'],_0x49a644)||(_0x2fc65e['return']=!0x1,_0x2fc65e['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3e26cc=this['editor']['commands']['get']('mergeTableCells'),_0x39cdae=this['editor']['plugins']['get']('TableUtils');if(!_0x3e26cc['isEnabled'])return!0x1;const _0x4536b8=_0x39cdae['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x20e736 of _0x4536b8)for(const _0x5d5585 of _0x4536b8)if(_0x20e736!=_0x5d5585&&!this['_areMergableCells'](_0x20e736,_0x5d5585))return!0x1;return!0x0;}['_areMergableCells'](_0x330628,_0x3925c2){const _0x1d0a32=this['editor']['plugins']['get']('TrackChangesEditing'),_0x321637=this['editor']['model']['createRangeOn'](_0x330628),_0x4afa5c=this['editor']['model']['createRangeOn'](_0x3925c2),_0x291a4f=new Set(),_0x4a21c8=new Set();for(const _0x1706bb of _0x1d0a32['getSuggestions']())if(('insertion'==_0x1706bb['type']||'deletion'==_0x1706bb['type']||'mergeTableCells'==_0x1706bb['subType'])&&_0x1706bb['isInContent']){for(const _0x2af0d4 of _0x1706bb['getRanges']())_0x2af0d4['containsRange'](_0x321637,!0x0)&&_0x291a4f['add'](_0x1706bb['type']+':'+_0x1706bb['author']['id']),_0x2af0d4['containsRange'](_0x4afa5c,!0x0)&&_0x4a21c8['add'](_0x1706bb['type']+':'+_0x1706bb['author']['id']);}if(_0x291a4f['size']!=_0x4a21c8['size'])return!0x1;for(const _0x5c203e of _0x291a4f)if(!_0x4a21c8['has'](_0x5c203e))return!0x1;return!0x0;}}class Ot extends _0x5107bb{static get['requires'](){return[Dt];}['afterInit'](){const _0x4952b2=this['editor'];if(!_0x4952b2['plugins']['has']('TableEditing'))return;const _0x537f07=_0x4952b2['locale'],_0x3834ce=_0x4952b2['plugins']['get']('TrackChangesEditing');_0x3834ce['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3834ce['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3834ce['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x537f07,'FORMAT_HEADER_ROW')),_0x3834ce['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x537f07,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x16f98b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3763b8=this['editor']['plugins']['get'](Dt)['_acceptFormatSuggestionCallbackFactory']();_0x16f98b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3763b8),_0x16f98b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3763b8),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x23bd21=this['editor']['plugins']['get']('TrackChangesEditing'),_0x551651=this['editor']['plugins']['get']('TableUtils');function _0x887621({showActiveMarker:_0x7dfabe=!0x0,setDataAttribute:_0x5e5bb7=!0x0}={}){return(_0x14ddc5,_0x21c479,_0x526d48)=>{const {type:_0x350ef3,id:_0x13d252}=_0x23bd21['_splitMarkerName'](_0x21c479['markerName']);if(!_0x23bd21['hasSuggestion'](_0x13d252))return;const _0x11d660=_0x23bd21['getSuggestion'](_0x13d252),_0x39a446=_0x11d660['data'];if('formatBlock'!=_0x11d660['type']||!_0x39a446||'setTableColumnHeader'!=_0x39a446['commandName'])return;if(_0x21c479['item'])return void _0x14ddc5['stop']();if(!_0x526d48['consumable']['consume'](_0x21c479['markerRange'],_0x14ddc5['name']))return;const _0x5c5b0e=_0x21c479['markerRange']['start']['nodeAfter'],_0x2edc1d=_0x21c479['markerRange']['end']['nodeBefore'],_0x5e9394=_0x5c5b0e['parent']['parent'],{column:_0x21a9fc}=_0x551651['getCellLocation'](_0x5c5b0e),{column:_0x34c893}=_0x551651['getCellLocation'](_0x2edc1d);for(let _0x218a59=_0x21a9fc;_0x218a59<=_0x34c893;_0x218a59++){const _0x4c9580=_0x551651['createTableWalker'](_0x5e9394,{'column':_0x218a59,'includeAllSlots':!0x1});for(const _0x16a04d of _0x4c9580){const _0x53aa51=_0x16a04d['cell'],_0x4148b4=_0x526d48['mapper']['toViewElement'](_0x53aa51);_0x526d48['writer']['addClass']('ck-suggestion-marker-'+_0x350ef3,_0x4148b4),_0x5e5bb7&&_0x526d48['writer']['setAttribute']('data-suggestion',_0x13d252,_0x4148b4),_0x526d48['mapper']['bindElementToMarker'](_0x4148b4,_0x21c479['markerName']),_0x7dfabe&&(_0x23bd21['activeMarkers']['includes'](_0x21c479['markerName'])?_0x526d48['writer']['addClass']('ck-suggestion-marker--active',_0x4148b4):_0x526d48['writer']['removeClass']('ck-suggestion-marker--active',_0x4148b4));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x887621(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x11851b,_0x4938bc,_0x108e43)=>{_0x108e43['options']['showSuggestionHighlights']&&_0x887621({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x11851b,_0x4938bc,_0x108e43);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4de9d9,_0x2bde77,_0x5be065)=>{const {type:_0x309ff2,id:_0x4702cf}=_0x23bd21['_splitMarkerName'](_0x2bde77['markerName']);if(!_0x23bd21['hasSuggestion'](_0x4702cf))return;const _0x564521=_0x23bd21['getSuggestion'](_0x4702cf),_0x12b00f=_0x564521['data'];if('formatBlock'!=_0x564521['type']||!_0x12b00f||'setTableColumnHeader'!=_0x12b00f['commandName'])return;const _0x2a1718=_0x5be065['mapper']['markerNameToElements'](_0x2bde77['markerName']);if(_0x2a1718){for(const _0x10dfe0 of _0x2a1718)_0x5be065['writer']['removeClass']('ck-suggestion-marker-'+_0x309ff2,_0x10dfe0),_0x5be065['writer']['removeClass']('ck-suggestion-marker--active',_0x10dfe0),_0x5be065['writer']['removeAttribute']('data-suggestion',_0x10dfe0),_0x5be065['mapper']['unbindElementFromMarkerName'](_0x10dfe0,_0x2bde77['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x488439=this['editor'],_0x2e6f5d=_0x488439['locale'];function _0x5a699d(_0x32f4a4){return{'type':'format','content':o(_0x2e6f5d,'*Format:*\x20%0',_0x32f4a4)};}_0x488439['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fee64=>{if('formatBlock'!=_0x3fee64['type'])return;const {data:_0x4199c4}=_0x3fee64;if(_0x4199c4){if('setTableRowHeader'==_0x4199c4['commandName']){const _0x402aaf=_0x4199c4['commandParams'][0x0]['forceValue'];return _0x5a699d(o(_0x2e6f5d,_0x402aaf?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4199c4['commandName']){const _0x54381f=_0x4199c4['commandParams'][0x0]['forceValue'];return _0x5a699d(o(_0x2e6f5d,_0x54381f?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class xt extends _0x5107bb{['afterInit'](){const _0x1735e7=this['editor'],_0x4354f0=_0x1735e7['locale'],_0x51de13=_0x1735e7['plugins']['get']('TrackChangesEditing');function _0x25d4d7(_0x4c7ba8){return{'type':'format','content':''+o(_0x4354f0,'*Set\x20table\x20type:*\x20%0',_0x4c7ba8)};}_0x1735e7['plugins']['has']('TableLayout')&&(_0x51de13['enableCommand']('insertTableLayout'),_0x51de13['enableDefaultAttributesIntegration']('tableType'),_0x51de13['descriptionFactory']['registerElementLabel'](_0x28b01a=>_0x28b01a['is']('element','table')&&'layout'===_0x28b01a['getAttribute']('tableType'),_0x547def=>o(_0x4354f0,'ELEMENT_LAYOUT_TABLE',_0x547def)),_0x51de13['descriptionFactory']['registerDescriptionCallback'](_0x30d4c=>{const {data:_0x5e5a1d}=_0x30d4c;if(_0x5e5a1d&&'tableType'==_0x5e5a1d['key'])switch(_0x5e5a1d['newValue']){case'layout':return _0x25d4d7(o(_0x4354f0,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x25d4d7(o(_0x4354f0,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Re['map'](_0x93adfb=>[_0x93adfb,null]));class Mt extends _0x5107bb{static get['requires'](){return[Dt];}['afterInit'](){const _0x7ac6d7=this['editor'];if(!_0x7ac6d7['plugins']['has']('TableClipboard'))return;const _0x1a426f=_0x7ac6d7['plugins']['get']('TrackChangesEditing'),_0x407471=_0x7ac6d7['plugins']['get']('TableUtils'),_0x4c3522=_0x7ac6d7['plugins']['get'](Dt),_0x55e3a6=_0x7ac6d7['plugins']['get']('TableClipboard'),_0x8ef7fb=_0x7ac6d7['plugins']['get']('TableSelection'),_0x4ed8a4=_0x7ac6d7['plugins']['get'](_0x475d0c);_0x4c3522['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x7ac6d7['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x7ac6d7['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x347bbf=null,_0x40135b=!0x1;_0x4ed8a4['on']('contentInsertion',(_0x3a11e0,_0x5e8d2b)=>{_0x40135b='paste'===_0x5e8d2b['method'];}),_0x7ac6d7['model']['on']('insertContent',(_0x35a046,_0x37c448)=>{if(!_0x40135b&&null===_0x8ef7fb['getSelectedTableCells']())return;const [_0x4e298d,_0x158a64]=_0x37c448,_0x1031cd=_0x37c448[_0x37c448['length']-0x1];_0x1031cd&&_0x1031cd['forceDefaultExecution']||_0x1a426f['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x355724,_0x15d88e,_0x549f60,_0x1fd75c,_0x4f8640){if(_0x15d88e&&!_0x15d88e['is']('documentSelection'))return!0x1;const _0x1743fb=_0x4f8640['getTableIfOnlyTableInContent'](_0x355724,_0x549f60);if(!_0x1743fb||!Oe(_0x1743fb,void 0x0,_0x1fd75c))return!0x1;const _0x4f44c5=_0x1fd75c['getSelectionAffectedTableCells'](_0x549f60['document']['selection']);if(!_0x4f44c5['length'])return!0x1;const _0xaf073=_0x4f44c5[0x0]['findAncestor']('table'),_0x4807b3=_0x1fd75c['getRowIndexes'](_0x4f44c5),_0x31acab=_0x1fd75c['getColumnIndexes'](_0x4f44c5),_0x196210={'startRow':_0x4807b3['first'],'endRow':_0x4807b3['last'],'startColumn':_0x31acab['first'],'endColumn':_0x31acab['last']};return 0x1==_0x4f44c5['length']&&(_0x196210['endRow']+=_0x1fd75c['getRows'](_0x1743fb)-0x1,_0x196210['endColumn']+=_0x1fd75c['getColumns'](_0x1743fb)-0x1),Oe(_0xaf073,_0x196210,_0x1fd75c);}(_0x4e298d,_0x158a64,_0x7ac6d7['model'],_0x407471,_0x55e3a6)&&(_0x35a046['stop'](),_0x347bbf={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x7ac6d7['model']['change'](()=>{_0x7ac6d7['model']['insertContent'](_0x37c448[0x0],_0x37c448[0x1],_0x37c448[0x2],{'forceDefaultExecution':!0x0});const _0x26978c=_0xf5d073(),{rowInsertionRanges:_0x1bd5fd,columnInsertionRanges:_0x427017,insertionRanges:_0x24cb58,deletionRanges:_0x1818b7,cells:_0x1211c8}=_0x347bbf;_0x1bd5fd['length']&&_0x1a426f['markMultiRangeInsertion'](_0x1bd5fd,'tablePasteRow',{'tablePasteChainId':_0x26978c}),_0x427017['length']&&_0x1a426f['markMultiRangeInsertion'](_0x427017,'tablePasteColumn',{'tablePasteChainId':_0x26978c}),_0x24cb58['length']&&(_0x1a426f['markMultiRangeInsertion'](_0x24cb58,'tablePaste',{'tablePasteChainId':_0x26978c,'skipNestingCheck':!0x0}),_0x24cb58['forEach'](_0x4ace69=>_0x4ace69['detach']?.())),_0x1818b7['length']&&(_0x1a426f['markMultiRangeDeletion'](_0x1818b7,'tablePaste',{'tablePasteChainId':_0x26978c,'skipNestingCheck':!0x0}),_0x1818b7['forEach'](_0x38b7f9=>_0x38b7f9['detach']?.()));const _0x34bdb6=_0x1a426f['markMultiRangeBlockFormat'](_0x1211c8['map'](({element:_0x58136c})=>_0x58136c),{'formatGroupId':_0xf5d073()},[],'tablePasteCell',{'tablePasteChainId':_0x26978c});if(_0x34bdb6){const _0x1c46e7=_0x34bdb6['getMarkers'](),_0x12b7d7=[];for(const {element:_0xfaffb5,attributes:_0x5ec31f}of _0x1211c8){if(!_0x5ec31f)continue;const _0xa4b886=_0x7ac6d7['model']['createRangeOn'](_0xfaffb5),_0x1d4743=_0x1c46e7['find'](_0x2d9a6e=>_0x2d9a6e['getRange']()['isEqual'](_0xa4b886));_0x1d4743&&_0x12b7d7['push']([_0x1d4743['name'],_0x5ec31f]);}_0x12b7d7['length']&&_0x34bdb6['setAttribute']('markerAttributes',Object['fromEntries'](_0x12b7d7));}_0x347bbf=null;}));},{'priority':_0x509283['high']+0xa}),_0x4ed8a4['on']('contentInsertion',()=>{_0x40135b=!0x1;},{'priority':'lowest'}),_0x7ac6d7['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xc2f9ba,_0x1881ed)=>{const [_0x24f79d,_0x5cd543,,_0x3c35e1]=_0x1881ed;if(!_0x347bbf)return;_0xc2f9ba['stop']();const _0x34d6d=_0x24f79d['cell'],_0x24c67a=_0x5cd543,_0x527fc7=Be(_0x34d6d),_0x2a636d=Be(_0x24c67a);_0xc2f9ba['return']=_0x34d6d;let _0x526d9c=null,_0xe948e8=null;if(_0x2a636d||_0x527fc7){if(_0x527fc7&&!_0x2a636d){_0x3c35e1['remove'](_0x34d6d['getChild'](0x0));for(const _0x117ef4 of Array['from'](_0x24c67a['getChildren']()))_0x3c35e1['insert'](_0x117ef4,_0x34d6d,'end');const _0x64d97b=_0x347bbf['rowInsertionIndexes']['includes'](_0x24f79d['row']),_0x29eab1=_0x347bbf['columnInsertionIndexes']['includes'](_0x24f79d['column']);_0x64d97b||_0x29eab1||(_0x526d9c=_0xe89877['fromRange'](_0x3c35e1['createRangeIn'](_0x34d6d)));}else _0x2a636d&&!_0x527fc7&&(_0xe948e8=_0x3c35e1['createRangeIn'](_0x34d6d));}else{const _0x841e06=_0x3c35e1['createElement']('tableCellSuggestion'),_0x25f417=_0x3c35e1['createElement']('tableCellSuggestion');_0x3c35e1['wrap'](_0x3c35e1['createRangeIn'](_0x34d6d),_0x25f417),_0x3c35e1['insert'](_0x841e06,_0x34d6d,0x0);for(const _0x448ee5 of Array['from'](_0x24c67a['getChildren']()))_0x3c35e1['insert'](_0x448ee5,_0x841e06,'end');_0x526d9c=_0xe89877['fromRange'](_0x3c35e1['createRangeOn'](_0x841e06)),_0xe948e8=_0xe89877['fromRange'](_0x3c35e1['createRangeOn'](_0x25f417));}const _0x70aaaa=Array['from'](_0x24c67a['getAttributes']())['filter'](([_0x24fd4c])=>Re['includes'](_0x24fd4c));_0x347bbf['cells']['push']({'element':_0x34d6d,'attributes':_0x70aaaa['length']?Object['fromEntries'](_0x70aaaa):null}),_0x526d9c&&_0x347bbf['insertionRanges']['push'](_0x526d9c),_0xe948e8&&_0x347bbf['deletionRanges']['push'](_0xe948e8);},{'priority':'high'}),_0x407471['on']('insertColumns',(_0x24db2e,_0x385d7f)=>{const [_0x4dfa55,_0x3df018={}]=_0x385d7f;if(!_0x347bbf)return;const _0x40f9ce=_0x3df018['at']||0x0,_0x50335a=_0x3df018['columns']||0x1;_0x347bbf['columnInsertionIndexes']=new Array(_0x50335a)['fill'](_0x40f9ce)['map']((_0x4d6881,_0x6a99b6)=>_0x4d6881+_0x6a99b6);for(const {cell:_0x1aa217}of _0x407471['createTableWalker'](_0x4dfa55,{'startColumn':_0x40f9ce,'endColumn':_0x40f9ce+_0x50335a-0x1}))_0x347bbf['columnInsertionRanges']['push'](_0x7ac6d7['model']['createRangeOn'](_0x1aa217));},{'priority':'low'}),_0x407471['on']('insertRows',(_0x53017e,_0x29f580)=>{const [_0x172e10,_0x102c51={}]=_0x29f580;if(!_0x347bbf)return;const _0x3f16b7=_0x102c51['at']||0x0,_0x13163b=_0x102c51['rows']||0x1;_0x347bbf['rowInsertionIndexes']=new Array(_0x13163b)['fill'](_0x3f16b7)['map']((_0x31fb2c,_0x9695bb)=>_0x31fb2c+_0x9695bb);for(const {cell:_0x118be6}of _0x407471['createTableWalker'](_0x172e10,{'startRow':_0x3f16b7,'endRow':_0x3f16b7+_0x13163b-0x1}))_0x347bbf['rowInsertionRanges']['push'](_0x7ac6d7['model']['createRangeOn'](_0x118be6));},{'priority':'low'}),_0x1a426f['descriptionFactory']['registerDescriptionCallback'](_0x1ac15d=>{if(_0x1ac15d['subType']&&_0x1ac15d['subType']['startsWith']('tablePaste'))return _0x1ac15d['previous']?{}:{'type':'insertion','content':o(_0x7ac6d7['locale'],'*Replace\x20table\x20cells*')};});const _0x4e5770=()=>!0x1;for(const _0x30bc2e of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1a426f['_suggestionFactory']['registerCustomCallback']('insertion',_0x30bc2e,'join',_0x4e5770),_0x1a426f['_suggestionFactory']['registerCustomCallback']('deletion',_0x30bc2e,'join',_0x4e5770),_0x1a426f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x30bc2e,'join',_0x4e5770);_0x1a426f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4e5770),_0x1a426f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xb5aa7d,_0x2c88d1,_0x53519d)=>{const _0x3fd6bd=_0xb5aa7d['map'](_0x3814e0=>_0x3814e0['getContainedElement']())['filter'](_0x15162d=>_0x15162d),_0x2f0ba0=new Map(_0x3fd6bd['map'](_0x1816ec=>[_0x1816ec,null]));if(_0x347bbf){for(const {element:_0x25aae1,attributes:_0x44a829}of _0x347bbf['cells'])_0x44a829&&_0x2f0ba0['set'](_0x25aae1,_0x44a829);}else{if(_0x53519d&&_0x53519d['markerAttributes'])for(const [_0x12c13d,_0x19b3a2]of Object['entries'](_0x53519d['markerAttributes'])){const _0x48f41c=_0x7ac6d7['model']['markers']['get'](_0x12c13d),_0x5685bb=_0x48f41c?_0x48f41c['getRange']()['getContainedElement']():null;_0x5685bb&&_0x2f0ba0['set'](_0x5685bb,_0x19b3a2);}}_0x7ac6d7['model']['change'](_0x4729ed=>{for(const [_0x349cce,_0x4b28df]of _0x2f0ba0)_0x4729ed['setAttributes']({...Ae,..._0x4b28df},_0x349cce);});});const _0x2737ca=(_0x52f285,_0x10a03a)=>{_0x1a426f['_suggestionFactory']['registerCustomCallback'](_0x52f285,'tablePaste',_0x10a03a,(_0x1bc342,_0x5c4cc4,_0x4c2ff4)=>{_0x7ac6d7['model']['change'](_0x2938e7=>{const _0x5eaff0=[];for(const _0x5a6934 of _0x1bc342){const _0x5f34b9=_0x5a6934['start']['nodeAfter'];_0x5f34b9['is']('element','tableCellSuggestion')&&_0x5eaff0['push'](_0x5f34b9);}_0x1a426f['_suggestionFactory']['getSuggestionCallback'](_0x52f285,null,_0x10a03a)(_0x1bc342,_0x5c4cc4,_0x4c2ff4);for(const _0x42c1ea of _0x5eaff0)'$graveyard'!=_0x42c1ea['root']['rootName']&&_0x2938e7['unwrap'](_0x42c1ea);});});};_0x2737ca('insertion','accept'),_0x2737ca('insertion','discard'),_0x2737ca('deletion','accept'),_0x2737ca('deletion','discard'),_0x1a426f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x40aac8=>{const _0x41666e=_0x40aac8['map'](_0xf0fc3a=>_0xf0fc3a['getContainedElement']()),_0x37c3d3=_0x41666e[0x0]['findAncestor']('table'),{minRow:_0x9165a4,maxRow:_0x26f863}=_0x4c3522['_getCoordsForCells'](_0x41666e);_0x407471['removeRows'](_0x37c3d3,{'at':_0x9165a4,'rows':_0x26f863-_0x9165a4+0x1});}),_0x1a426f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x18b8ac=>{const _0x378a5c=_0x18b8ac['map'](_0x31f7bc=>_0x31f7bc['getContainedElement']()),_0x6a495=_0x378a5c[0x0]['findAncestor']('table'),{minColumn:_0x36ee7a,maxColumn:_0x5a8095}=_0x4c3522['_getCoordsForCells'](_0x378a5c);_0x407471['removeColumns'](_0x6a495,{'at':_0x36ee7a,'columns':_0x5a8095-_0x36ee7a+0x1});});const _0x537b38=(_0x21e751,_0x3237de)=>{if(!_0x3237de['subType']||!_0x3237de['subType']['startsWith']('tablePaste'))return;const _0x571222=_0x3237de['attributes']['tablePasteChainId'],_0x4da61b=_0x1a426f['getSuggestions']()['filter'](_0x492408=>_0x492408['isInContent']&&_0x492408['attributes']&&_0x492408['attributes']['tablePasteChainId']==_0x571222);_0x4da61b['length']&&_0x3237de['getAllAdjacentSuggestions']()['length']!=_0x4da61b['length']&&_0x4da61b['reduce']((_0x1f5150,_0x5ee723)=>(_0x1f5150['next']=_0x5ee723,_0x5ee723['previous']=_0x1f5150,_0x5ee723));};function _0x3ba305(_0x322247,_0x5d15ba=!0x0){const {id:_0x48ff1a,authorId:_0x1aa00f}=_0x1a426f['_splitMarkerName'](_0x322247['markerName']),_0x18468a=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5a3f14=_0x1a426f['activeMarkers']['includes'](_0x322247['markerName']);return _0x5a3f14&&_0x18468a['push']('ck-suggestion-marker--active'),{'classes':_0x18468a,'attributes':{'data-suggestion':_0x48ff1a,'data-author-id':_0x1aa00f},'priority':_0x5a3f14&&_0x5d15ba?0xbc2:0xbb8};}_0x1a426f['on']('suggestionLoaded',_0x537b38,{'priority':'high'}),_0x1a426f['on']('suggestionUnloaded',_0x537b38,{'priority':'high'}),_0x7ac6d7['model']['document']['registerPostFixer'](()=>{let _0x40ee3d=!0x1;const _0x53d092=Array['from'](_0x7ac6d7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x49301b,data:_0x4194ca}of _0x53d092){const {group:_0x6d7d24,type:_0x7035ad,id:_0x2caa51}=_0x1a426f['_splitMarkerName'](_0x49301b);if('suggestion'!=_0x6d7d24||'deletion'!=_0x7035ad||_0x4194ca['oldRange'])continue;if(!_0x1a426f['hasSuggestion'](_0x2caa51))continue;const _0x4738da=_0x1a426f['getSuggestion'](_0x2caa51)['getRanges'](),_0x120f35=_0x7ac6d7['plugins']['get']('Users')['me'];for(const _0x57e78c of _0x1a426f['getSuggestions']()){if(!_0x57e78c['isInContent']||_0x57e78c['author']!=_0x120f35)continue;if('formatBlock'!=_0x57e78c['type']||'tablePasteCell'!=_0x57e78c['subType'])continue;if(_0x57e78c['getRanges']()['every'](_0x5a042c=>_0x4738da['some'](_0x41748b=>_0x41748b['containsRange'](_0x5a042c,!0x0)))){for(const _0x332447 of _0x57e78c['getAllAdjacentSuggestions']())_0x332447['isInContent']&&(_0x332447['discard'](),_0x40ee3d=!0x0);}}}return _0x40ee3d;}),_0x7ac6d7['model']['document']['registerPostFixer'](_0xeadec1=>{const _0x2516d6=_0x7ac6d7['commands']['get']('redo');if(!_0x2516d6||!_0x2516d6['_createdBatches']['has'](_0xeadec1['batch']))return!0x1;let _0x2eecfd=!0x1;const _0x5e02cc=_0x7ac6d7['plugins']['get']('Users')['me'],_0x1bcb6e=_0x7ac6d7['model']['document']['differ']['getChanges'](),_0x4f5292=Array['from'](_0x7ac6d7['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2bfbcb,data:_0x3fc54c})=>{const {group:_0x26b2f4,subType:_0x410d3e,authorId:_0x114cda}=_0x1a426f['_splitMarkerName'](_0x2bfbcb);return'suggestion'==_0x26b2f4&&'tablePaste'==_0x410d3e&&_0x114cda==_0x5e02cc['id']&&!_0x3fc54c['oldRange'];});for(const _0x95c1c4 of _0x1bcb6e){if('insert'!=_0x95c1c4['type']||'tableCellSuggestion'!=_0x95c1c4['name']||0x1!=_0x95c1c4['length'])continue;const _0x56aa07=_0xeadec1['createRange'](_0x95c1c4['position'],_0x95c1c4['position']['getShiftedBy'](0x1));if(!_0x4f5292['find'](({data:_0x27c191})=>_0x27c191['newRange']['isEqual'](_0x56aa07))){for(const {name:_0x1a2f00,data:_0x238f5d}of _0x4f5292)if(_0x56aa07['containsRange'](_0x238f5d['newRange'])){_0xeadec1['updateMarker'](_0x1a2f00,{'range':_0x56aa07}),_0x2eecfd=!0x0;break;}}}return _0x2eecfd;}),_0x7ac6d7['model']['document']['registerPostFixer'](_0x6f7f90=>{let _0x237a32=!0x1;const _0x188d7b=_0x7ac6d7['plugins']['get']('Users')['me'],_0x4ce1f9=_0x1a426f['getSuggestions']()['filter'](_0x5d8090=>_0x5d8090['isInContent']&&_0x5d8090['author']==_0x188d7b),_0x584f7a=new Set(),_0x21ee9d=new Set();for(const _0x1ce34f of _0x4ce1f9)if('tablePaste'==_0x1ce34f['subType'])for(const _0xc00245 of _0x1ce34f['getMarkers']()){const _0x51711d=_0xc00245['getRange']()['getContainedElement']();if(_0x51711d){if(_0x51711d['is']('element','tableCellSuggestion')&&Be(_0x51711d)){_0x1ce34f['removeMarker'](_0xc00245['name']),_0x584f7a['add'](_0x51711d),_0x237a32=!0x0;const _0xa2797f=_0x51711d['nextSibling'],_0x4a4466=_0x51711d['previousSibling'],_0x417cd0=_0xa2797f&&_0xa2797f['is']('element','tableCellSuggestion'),_0x332159=_0x4a4466&&_0x4a4466['is']('element','tableCellSuggestion');_0x417cd0&&!_0x584f7a['has'](_0xa2797f)&&_0x21ee9d['add'](_0xa2797f),_0x332159&&!_0x584f7a['has'](_0x4a4466)&&_0x21ee9d['add'](_0x4a4466);}else _0x51711d['is']('element','paragraph')&&_0x51711d['isEmpty']&&(_0x1ce34f['removeMarker'](_0xc00245['name']),_0x237a32=!0x0);}}else{if('tablePasteCell'==_0x1ce34f['subType']){if(!_0x1ce34f['attributes']||!_0x1ce34f['attributes']['tablePasteChainId'])continue;const _0x2f1448=_0x1ce34f['attributes']['markerAttributes'];if(_0x2f1448&&Object['keys'](_0x2f1448)['length'])continue;const _0x4ca6e9=_0x1ce34f['attributes']['tablePasteChainId'];let _0x4f8694=!0x0,_0x1e7662=!0x0;for(const _0x43c066 of _0x4ce1f9)if(_0x43c066['subType']&&_0x43c066['subType']['startsWith']('tablePaste')){if(!_0x43c066['attributes']['tablePasteChainId']){_0x1e7662=!0x1;break;}if(_0x43c066['id']!=_0x1ce34f['id']&&_0x43c066['attributes']['tablePasteChainId']==_0x4ca6e9){_0x4f8694=!0x1;break;}}_0x1e7662&&_0x4f8694&&(_0x1ce34f['removeMarkers'](),_0x237a32=!0x0);}}for(const _0x4be6a5 of _0x584f7a)_0x6f7f90['remove'](_0x4be6a5);for(const _0x2f004b of _0x21ee9d)_0x6f7f90['unwrap'](_0x2f004b);return _0x237a32;}),_0x7ac6d7['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xe89b42=>_0x3ba305(_0xe89b42),'converterPriority':'high'}),_0x7ac6d7['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2ef4f9,_0x499645)=>_0x499645['options']['showSuggestionHighlights']?_0x3ba305(_0x2ef4f9,!0x1):null,'converterPriority':'high'});const _0x246bde=_0x7ac6d7['editing']['view'];this['listenTo'](_0x246bde['document'],'clipboardOutput',(_0x1d4586,_0x502143)=>{const _0x4e9361=[];for(const _0xe45b5d of _0x246bde['createRangeIn'](_0x502143['content'])['getItems']())_0xe45b5d['is']('element','suggestion-td')&&_0x4e9361['push'](_0xe45b5d);_0x246bde['change'](_0x380b7d=>{for(const _0x5ef94c of _0x4e9361)_0x380b7d['move'](_0x380b7d['createRangeIn'](_0x5ef94c),_0x380b7d['createPositionBefore'](_0x5ef94c)),_0x380b7d['remove'](_0x5ef94c);});});}}function Be(_0x293286){if(_0x293286['isEmpty'])return!0x0;const _0x19d8b4=_0x293286['getChild'](0x0);return _0x19d8b4['is']('element','paragraph')&&_0x19d8b4['isEmpty'];}function Oe(_0x6b200c,_0x431da2={},_0x15b53d){for(const {isAnchor:_0x83fd32,cellHeight:_0x5acd8b,cellWidth:_0x123089}of _0x15b53d['createTableWalker'](_0x6b200c,{'includeAllSlots':!0x0,..._0x431da2}))if(!_0x83fd32||0x1!=_0x5acd8b||0x1!=_0x123089)return!0x1;return!0x0;}class Rt extends _0x5107bb{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4f82dc=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f82dc['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4f82dc['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4f82dc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4f82dc['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4f82dc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4f82dc['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x32f789,_0x56dc3d){const _0x49741d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ab39b=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x406f83=_0x56dc3d['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x288eba=_0x5ab39b['getColumnGroupElement'](_0x406f83);let _0x5a9fde=_0x288eba?_0x5ab39b['getTableColumnsWidths'](_0x288eba):null,_0x3c0217=_0x406f83['getAttribute']('tableWidth')||null;const _0x440bb3=_0x56dc3d['tableWidth']||_0x3c0217,_0x382b5f=_0x56dc3d['columnWidths']||_0x5a9fde,_0x45e917=this['editor']['plugins']['get']('Users')['me'];for(const _0x205062 of _0x49741d['getSuggestions']()){const _0x5dd591=_0x205062['getContainedElement']();if('resizeTable'===_0x205062['subType']&&_0x5dd591===_0x406f83){_0x205062['author']!==_0x45e917&&_0x205062['discard']();const _0xa961d6=_0x205062['data']['commandParams'];_0x3c0217=_0xa961d6[0x0]['tableWidth'],_0x5a9fde=_0xa961d6[0x0]['columnWidths'];break;}}_0x32f789({'table':_0x406f83,'tableWidth':_0x440bb3,'columnWidths':_0x382b5f}),_0x49741d['markBlockFormat'](_0x406f83,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3c0217,'columnWidths':_0x5a9fde}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2c751d){if('formatBlock'!=_0x2c751d['type']&&'formatInline'!=_0x2c751d['type'])return;const {data:_0x202b85}=_0x2c751d;if(_0x202b85&&'resizeTable'===_0x202b85['formatGroupId']){const _0x432659='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x432659)};}}}class Tt extends _0x5107bb{['afterInit'](){const _0x1922c6=this['editor'];_0x1922c6['plugins']['has']('Template')&&_0x1922c6['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Et extends _0x5107bb{['afterInit'](){const _0xc124f4=this['editor'];if(!_0xc124f4['commands']['get']('insertTableOfContents'))return;_0xc124f4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x38c20f=_0xc124f4['plugins']['get']('TrackChangesEditing'),_0x33de1d=_0xc124f4['locale'];_0x38c20f['descriptionFactory']['registerElementLabel']('tableOfContents',_0x52f249=>o(_0x33de1d,'ELEMENT_TABLE_OF_CONTENTS',_0x52f249));}}class Ut extends _0x5107bb{['afterInit'](){const _0x54ea7d=this['editor'];if(!_0x54ea7d['plugins']['has']('Title'))return;const _0x197543=_0x54ea7d['plugins']['get']('TrackChangesEditing');_0x197543['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x54ea7d['locale'],'ELEMENT_TITLE')),_0x54ea7d['model']['document']['registerPostFixer'](_0x2c93f8=>{let _0x4aa391=!0x1;const _0xc58d4c=Array['from'](_0x54ea7d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x59f545,data:_0x186f43}of _0xc58d4c){const {group:_0x51d04a}=_0x197543['_splitMarkerName'](_0x59f545);if('suggestion'!==_0x51d04a||!_0x186f43['newRange'])continue;const _0x45a2f6=_0x186f43['newRange'],_0x3ac22f=_0x45a2f6['end']['nodeBefore'];if(!_0x3ac22f||!_0x3ac22f['is']('element','title-content'))continue;if(!_0x45a2f6['start']['isTouching'](_0x45a2f6['end']))continue;const _0x506dd4=_0x54ea7d['model']['schema']['getNearestSelectionRange'](_0x45a2f6['end'],'forward');if(_0x506dd4&&_0x506dd4['isCollapsed']){const _0xeaa144=_0x2c93f8['createRange'](_0x45a2f6['start'],_0x506dd4['start']);_0xeaa144['isEqual'](_0x45a2f6)||(_0x2c93f8['updateMarker'](_0x59f545,{'range':_0xeaa144}),_0x4aa391=!0x0);}_0x4aa391||(_0x2c93f8['removeMarker'](_0x59f545),_0x4aa391=!0x0);}return _0x4aa391;});}}class Vt extends _0x5107bb{['afterInit'](){const _0x17ce1c=this['editor'],_0x205355=_0x17ce1c['plugins']['get']('TrackChangesEditing');_0x17ce1c['plugins']['has']('Uploadcare')&&(_0x205355['enableCommand']('uploadcare'),_0x17ce1c['plugins']['has']('UploadcareImageEdit')&&(_0x205355['enableCommand']('uploadcareImageEdit'),_0x205355['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x205355['descriptionFactory']['registerDescriptionCallback'](_0x4821df=>{if('attribute'!=_0x4821df['type'])return;const {data:_0x141a06}=_0x4821df;return _0x141a06&&'uploadcareImageId'==_0x141a06['key']?{'type':'format','content':''}:void 0x0;})));}}class Ft extends _0x5107bb{['afterInit'](){const _0x4d7943=this['editor'],_0x1c3d22=_0x4d7943['plugins']['get']('TrackChangesEditing');_0x4d7943['plugins']['has']('UndoEditing')&&(_0x1c3d22['enableCommand']('undo'),_0x1c3d22['enableCommand']('redo'));}}class Pt extends _0x5107bb{static get['requires'](){return[Dt];}['afterInit'](){const _0x1b5f4d=this['editor'];if(!_0x1b5f4d['plugins']['has']('TableCaptionEditing'))return;_0x1b5f4d['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Gt extends _0x5107bb{['tableProperties'];['tableCellProperties'];constructor(_0xb26aff){super(_0xb26aff),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0xb26aff['config']['get']('experimentalFlags.tableCellTypeSupport')&&this['tableCellProperties']['push']('tableCellType');}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x244a30=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x236ec9 of this['tableProperties'])_0x244a30['enableCommand'](_0x236ec9,(_0x2042fb,_0x5a8387)=>{const _0x211644=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x236ec9,[_0x211644],this['tableProperties'],'tableProperties',_0x2042fb,_0x5a8387);});_0x244a30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x244a30['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x244a30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x34518b,_0x108e3d)=>this['handleDiscardAction'](this['tableProperties'],_0x34518b,_0x108e3d)),_0x244a30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x54db3f of this['tableCellProperties'])this['editor']['commands']['get'](_0x54db3f)&&_0x244a30['enableCommand'](_0x54db3f,(_0x656cb3,_0x30d5fa)=>{const _0x12400a=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x54db3f,_0x12400a,this['tableCellProperties'],'tableCellProperties',_0x656cb3,_0x30d5fa);});_0x244a30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x244a30['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x244a30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4771f1,_0x327083)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4771f1,_0x327083)),_0x244a30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x244a30['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x244a30['descriptionFactory']['registerDescriptionCallback'](_0x552b9e=>this['handleSuggestionDescription'](_0x552b9e)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x14ca9b,_0x219365,_0x186eb3,_0x34cd50,_0xdca74c,_0x2a0182){const _0x174ebd=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2a0182['batch'],()=>{for(const _0x47459e of _0x219365){if(this['_getSuggestion'](_0x47459e,_0x34cd50))_0xdca74c(_0x2a0182);else{const _0x570172={};for(const _0x4ed0c5 of _0x186eb3){const _0x197f93=_0x47459e['getAttribute'](_0x4ed0c5);void 0x0!==_0x197f93&&(_0x570172[_0x4ed0c5]=_0x197f93);}_0xdca74c(_0x2a0182),_0x174ebd['markBlockFormat'](_0x47459e,{'commandParams':[_0x570172]},[],_0x34cd50);}}});}['handleDiscardAction'](_0x471378,_0x318400,_0x1c5817){const _0xa5ea10=_0x318400[0x0]['start']['nodeAfter'],_0x40eb42=_0x1c5817['commandParams'][0x0];this['editor']['model']['change'](_0x408b8e=>{for(const _0xaaaedf of _0x471378)void 0x0!==_0x40eb42[_0xaaaedf]?_0x408b8e['setAttribute'](_0xaaaedf,_0x40eb42[_0xaaaedf],_0xa5ea10):_0x408b8e['removeAttribute'](_0xaaaedf,_0xa5ea10);});}['handleSuggestionDescription'](_0x235b07){if(_0x235b07['data'])switch(_0x235b07['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x40cefd,_0x539cfa){const _0x45e8a5=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1b6e20 of _0x45e8a5['getSuggestions']({'skipNotAttached':!0x0})){const _0x1fd615=_0x1b6e20['getContainedElement']();if(_0x1b6e20['subType']===_0x539cfa&&_0x1fd615===_0x40cefd)return _0x1b6e20;}return null;}['_registerTablePropertiesAttributes'](){const _0x2c043f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4bb093=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x528469 of _0x4bb093){const _0x15bf07=_0x528469['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x2c043f['descriptionFactory']['registerAttributeLabel'](_0x528469,o(this['editor']['locale'],'FORMAT_'+_0x15bf07));}}}class Lt extends _0x5107bb{['afterInit'](){const _0x3d49d2=this['editor'];if(!_0x3d49d2['plugins']['has']('LineHeight'))return;const _0x31c51d=_0x3d49d2['plugins']['get']('TrackChangesEditing'),_0x3da11d=_0x3d49d2['locale'];_0x31c51d['enableDefaultAttributesIntegration']('lineHeight'),_0x31c51d['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x3da11d,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x5107bb{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x2ed961,_0x35c2b4,_0x56344a,_0x1f49c4,U,V,F,G,L,J,q,K,z,W,H,Q,Z,tt,nt,it,et,st,ot,rt,at,ct,ut,ht,ft,lt,gt,mt,pt,wt,jt,dt,X,Lt,Y,kt,bt,yt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Bt,Ot,xt,Pt,Mt,Rt,Et,Gt,Tt,Ut,Vt,Ft];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x78fc06){super(_0x78fc06),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x11c9d0,_0x28acf4,_0x47fcaf,_0xc36483)=>{this['_model']['change'](()=>{for(const _0x4f58c7 of[..._0xc36483,..._0x47fcaf])this['_model']['markers']['has'](_0x4f58c7)&&_0x78fc06['editing']['reconvertMarker'](_0x4f58c7);});}),this['descriptionFactory']=new E(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x78fc06['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x78fc06['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x78fc06['config']['get']('trackChanges.trackFormatChanges'),_0x78fc06['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x78fc06['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x78fc06,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3169cf=this['editor'];_0x3169cf['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1cde50,{writer:_0x3e2b78})=>{let _0x5d98ab='suggestion:'+_0x1cde50['getAttribute']('suggestion-type')+':'+_0x1cde50['getAttribute']('id');return _0x1cde50['getAttribute']('marker-count')&&(_0x5d98ab+=':'+_0x1cde50['getAttribute']('marker-count')),_0x3e2b78['createElement']('$marker',{'data-name':_0x5d98ab});}}),_0x3169cf['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3169cf['model']['document']['registerPostFixer'](_0x4a4cdf=>{let _0xaf184a=!0x1;const _0x37def8=Array['from'](_0x3169cf['model']['document']['differ']['getChangedMarkers']()),_0x37a81d=new Set();for(const {name:_0x5be73f,data:_0x2796c7}of _0x37def8){const {group:_0xeb2427,type:_0x5d602c,subType:_0x35fb88,id:_0x317c17}=this['_splitMarkerName'](_0x5be73f);if('suggestion'!==_0xeb2427)continue;const _0x3c3591=_0x35fb88?'suggestion:'+_0x5d602c+':'+_0x35fb88+':'+_0x317c17:'suggestion:'+_0x5d602c+':'+_0x317c17,_0x115990=_0x3169cf['model']['markers']['getMarkersGroup'](_0x3c3591),_0x312ffb=_0x3169cf['model']['markers']['get'](_0x5be73f),_0x24bf84=this['_suggestions']['get'](_0x317c17);if(null!=_0x2796c7['newRange']){'formatInline'==_0x5d602c&&(_0xaf184a=_0xaf184a||Wt(_0x2796c7['newRange'],_0x5be73f,_0x4a4cdf,_0x3169cf['model']['schema']));const _0x8e82a9='attribute'==_0x5d602c&&this['_isBlockAttribute'](_0x35fb88['split']('|')[0x0]),_0x57c320='attribute'==_0x5d602c&&this['_isInlineAttribute'](_0x35fb88['split']('|')[0x0]);if(_0x2796c7['newRange']['isCollapsed']||'$graveyard'==_0x2796c7['newRange']['root']['rootName']||'formatBlock'==_0x5d602c&&!Qt(_0x2796c7['newRange'])||_0x8e82a9&&!Qt(_0x2796c7['newRange'])||_0x57c320&&Xt(_0x2796c7['newRange'])||'deletion'==_0x5d602c&&Xt(_0x2796c7['newRange'])||_0x312ffb&&Yt(_0x312ffb,_0x115990))_0x4a4cdf['removeMarker'](_0x5be73f),_0xaf184a=!0x0;else{if(!_0x24bf84||!_0x24bf84['isInContent'])continue;if(_0x2796c7['newRange']&&_0x2796c7['oldRange']&&_0x2796c7['newRange']['isEqual'](_0x2796c7['oldRange']))continue;_0x37a81d['add'](_0x24bf84);}}}return _0x37a81d['size']>0x0&&(_0xaf184a=!!this['_joinWithAdjacentSuggestions'](_0x37a81d)||_0xaf184a),_0xaf184a;}),_0x3169cf['model']['document']['registerPostFixer'](_0x1c5961=>{let _0x3aa7eb=!0x1;for(const _0x2e9db6 of _0x3169cf['model']['document']['differ']['getChanges']())if('insert'==_0x2e9db6['type'])for(const _0x431f04 of this['_suggestions']['values']()){if(_0x431f04['isMultiRange']||!_0x431f04['isInContent'])continue;const _0xeca1ce='formatBlock'==_0x431f04['type'],_0x1df0b7=this['_getAttributeKey'](_0x431f04),_0x1ed8f0=_0x1df0b7&&this['_isBlockAttribute'](_0x1df0b7);if(!_0xeca1ce&&!_0x1ed8f0)continue;const _0x5a29f5=_0x431f04['getFirstRange']();if(_0x5a29f5['start']['parent']!=_0x5a29f5['end']['parent']&&!_0x5a29f5['end']['isAtEnd']){const _0x2ebace=_0x3169cf['model']['createPositionAt'](_0x5a29f5['start']['nodeAfter'],'end'),_0x4432a0=_0x3169cf['model']['createRange'](_0x5a29f5['start'],_0x2ebace);_0x1c5961['updateMarker'](_0x431f04['getFirstMarker'](),{'range':_0x4432a0}),_0x3aa7eb=!0x0;}}return _0x3aa7eb;}),_0x3169cf['model']['document']['registerPostFixer'](_0x4a3440=>this['_processAttributeChanges'](_0x4a3440)),_0x3169cf['model']['document']['registerPostFixer'](_0x392df6=>!_0x392df6['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x392df6)),_0x3169cf['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3169cf['model']['document']['on']('change:data',(_0x2742ab,_0x3135a9)=>{if(!_0x3135a9['isLocal']||_0x3135a9['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1f2265=_0x3169cf['model']['document']['differ']['getChanges']();if(0x0==_0x1f2265['length'])return;const _0x532be8=[],_0xa57e22=_0x1f2265['filter'](_0x38de58=>'attribute'==_0x38de58['type']),_0x3aee34=_0x1f2265['filter'](_0x42040f=>'insert'==_0x42040f['type']&&'$text'!=_0x42040f['name']);for(const _0x3ab582 of _0xa57e22)this['_isRegisteredAttribute'](_0x3ab582['attributeKey'])&&_0x532be8['push']({'key':_0x3ab582['attributeKey'],'newValue':_0x3ab582['attributeNewValue'],'oldValue':_0x3ab582['attributeOldValue'],'range':Zt(_0x3ab582['range'],_0x3169cf['model'])});for(const _0x559aa1 of _0x3aee34){if('rename'!=_0x559aa1['action']&&'refresh'!=_0x559aa1['action'])continue;const _0x2b2aaa=tn(_0x559aa1['position']['nodeAfter'],_0x3169cf['model']),_0x461937=_0x559aa1['before'];'rename'==_0x559aa1['action']&&_0x532be8['push']({'key':m,'newValue':_0x559aa1['name'],'oldValue':_0x461937['name'],'range':_0x2b2aaa});for(const [_0xab15f3,_0x488893]of _0x461937['attributes']){if(!this['_isRegisteredAttribute'](_0xab15f3))continue;const _0xad50af=_0x559aa1['attributes']['get'](_0xab15f3);_0x488893!==_0xad50af&&_0x532be8['push']({'key':_0xab15f3,'newValue':_0xad50af,'oldValue':_0x488893,'range':_0x2b2aaa});}for(const [_0x248629,_0x1d1e44]of _0x559aa1['attributes'])this['_isRegisteredAttribute'](_0x248629)&&(_0x461937['attributes']['has'](_0x248629)||_0x532be8['push']({'key':_0x248629,'newValue':_0x1d1e44,'oldValue':null,'range':_0x2b2aaa}));}0x0!=_0x532be8['length']&&_0x3169cf['model']['enqueueChange'](_0x3135a9,_0x179382=>{const _0x4e99ac=_0xf5d073();for(const {range:_0x3d53d1,key:_0x5abb72,oldValue:_0x3b1aaf,newValue:_0x47ab36}of _0x532be8)this['markAttributeChange'](_0x3d53d1,_0x5abb72,_0x3b1aaf,_0x47ab36,{'groupId':_0x4e99ac});this['_reduceExistingSuggestions'](_0x179382,_0x532be8);});},{'priority':'lowest'}),_0x3169cf['model']['markers']['on']('update:suggestion',(_0x405428,_0x336e7c,_0x2e5f68)=>{if(null==_0x2e5f68){const {id:_0x265b52}=this['_splitMarkerName'](_0x336e7c['name']),_0x4bce5d=this['_suggestions']['get'](_0x265b52);_0x4bce5d&&_0x4bce5d['addMarkerName'](_0x336e7c['name']);}}),_0x3169cf['model']['document']['on']('change:data',()=>{const _0x172bfd=Array['from'](_0x3169cf['model']['document']['differ']['getChangedMarkers']())['filter'](_0x55b7b8=>'suggestion'===this['_splitMarkerName'](_0x55b7b8['name'])['group']);if(0x0===_0x172bfd['length'])return;_0x172bfd['sort']((_0x576057,_0x2cca78)=>{const _0x4e2dd6=_0x576057['data']['oldRange'],_0x361c7f=_0x2cca78['data']['oldRange'];return null===_0x4e2dd6&&null===_0x361c7f?0x0:null===_0x4e2dd6&&null!==_0x361c7f?-0x1:null!==_0x4e2dd6&&null===_0x361c7f?0x1:_0x4e2dd6['start']['isBefore'](_0x361c7f['start'])?-0x1:0x1;});const _0xb1aac6=new Set(),_0x50150e=new Set();for(const {name:_0x5824a6,data:_0x44097f}of _0x172bfd){const {id:_0xed92d9}=this['_splitMarkerName'](_0x5824a6);if(null===_0x44097f['oldRange']){const _0x4d0687=this['_handleNewSuggestionMarker'](_0x5824a6);_0x50150e['add'](_0x4d0687);}else{const _0x2a901c=this['_suggestions']['get'](_0xed92d9);null!==_0x44097f['newRange']||_0x2a901c['isInContent']?(_0xb1aac6['add'](_0x2a901c['head']),_0x50150e['add'](_0x2a901c)):this['_removeSuggestion'](_0x2a901c);}}_0x50150e['size']>0x0&&this['_refreshSuggestionsChain'](_0x50150e);for(const _0x2d2a29 of _0xb1aac6)this['fire']('suggestionChanged',_0x2d2a29);}),_0x3169cf['model']['on']('applyOperation',(_0x5bd637,_0x493422)=>{const _0x32dd0b=_0x493422[0x0];if(!this['_suggestions']['size'])return;if(!_0x32dd0b['isDocumentOperation'])return;if(_0x32dd0b['batch']['isUndo']||!_0x32dd0b['batch']['isLocal'])return;let _0x147b76,_0x54328a;switch(_0x32dd0b['type']){case'insert':_0x147b76=_0x3169cf['model']['createPositionAt'](_0x32dd0b['position']),_0x54328a=_0x147b76['getShiftedBy'](_0x32dd0b['howMany']);break;case'split':_0x147b76=_0x3169cf['model']['createPositionAt'](_0x32dd0b['splitPosition']),_0x54328a=_0x3169cf['model']['createPositionAt'](_0x32dd0b['moveTargetPosition']);break;case'move':_0x147b76=_0x3169cf['model']['createPositionAt'](_0x32dd0b['targetPosition']),_0x54328a=_0x147b76['getShiftedBy'](_0x32dd0b['howMany']);break;default:return;}const _0x2e68fc=_0x3169cf['model']['createRange'](_0x147b76,_0x54328a);_0x3169cf['model']['change'](()=>{for(const {suggestion:_0x5d8032,meta:_0x1002c7}of this['_findSuggestions'](_0x2e68fc)){if(_0x5d8032['isMultiRange'])continue;if('formatInline'==_0x5d8032['type'])continue;const _0x27d314=this['_getAttributeKey'](_0x5d8032);if(_0x27d314&&this['_isBlockAttribute'](_0x27d314)&&'split'!=_0x32dd0b['type'])continue;const _0x4e3377=_0x5d8032['data']&&_0x5d8032['data']['multipleBlocks'];('formatBlock'!=_0x5d8032['type']||'split'==_0x32dd0b['type']&&!_0x4e3377)&&(_0x1002c7['containsRangeInObject']||'insertion'==_0x5d8032['type']&&_0x1002c7['isOwn']||_0x5d8032['getFirstRange']()['containsRange'](_0x2e68fc)&&this['_breakSuggestionMarker'](_0x5d8032,_0x147b76,_0x54328a));}});},{'priority':'lowest'}),_0x3169cf['model']['on']('deleteContent',(_0x82cb84,_0x37497b)=>{const _0x2d3655=_0x37497b[0x0],_0xd5125d=_0x37497b[0x1];if(_0xd5125d&&_0xd5125d['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2d3655['isCollapsed'])return;const _0x329c3f=_0x3169cf['model']['schema'],{start:_0x2b8609,end:_0x1369f9}=_0x2d3655['getFirstRange'](),_0x5e2469=_0x2b8609['nodeAfter']&&_0x329c3f['isLimit'](_0x2b8609['nodeAfter'])?null:_0x329c3f['getNearestSelectionRange'](_0x2b8609,'forward'),_0xdcda58=_0x1369f9['nodeBefore']&&_0x329c3f['isLimit'](_0x1369f9['nodeBefore'])?null:_0x329c3f['getNearestSelectionRange'](_0x1369f9,'backward'),_0x4a7d5c=_0x3169cf['model']['createRange'](_0x5e2469?_0x5e2469['start']:_0x2b8609,_0xdcda58?_0xdcda58['end']:_0x1369f9);_0x3169cf['model']['change'](_0x5c6c60=>{this['markDeletion'](_0x4a7d5c);const _0x38623e=_0x3169cf['model']['schema']['getNearestSelectionRange'](_0x4a7d5c['start']);_0x2d3655['is']('documentSelection')?_0x5c6c60['setSelection'](_0x38623e):_0x2d3655['setTo'](_0x38623e);}),_0x82cb84['stop']();},{'priority':_0x509283['normal']+0xa}),_0x3169cf['model']['on']('insertContent',(_0x34db07,_0x4ca504)=>{const _0x1a933d=_0x4ca504[_0x4ca504['length']-0x1];_0x1a933d&&_0x1a933d['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3169cf['model']['change'](()=>{let _0x4b7148=_0x3169cf['model']['insertContent'](_0x4ca504[0x0],_0x4ca504[0x1],_0x4ca504[0x2],{'forceDefaultExecution':!0x0});if(!_0x4b7148)return;_0x34db07['return']=_0x4b7148['clone']();const _0x14002b=_0x4b7148['end']['nodeBefore'],_0x19650c=_0x3169cf['model']['schema'];_0x14002b&&_0x19650c['isBlock'](_0x14002b)&&!_0x19650c['isObject'](_0x14002b)&&(_0x4b7148=_0x3169cf['model']['createRange'](_0x4b7148['start'],_0x3169cf['model']['createPositionAt'](_0x14002b,'end'))),this['markInsertion'](_0x4b7148);}),_0x34db07['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3ac007=new O(_0x3169cf,this['_suggestions']);_0x3169cf['commands']['add']('acceptSuggestion',_0x3ac007),this['enableCommand']('acceptSuggestion');const _0x331e53=new x(_0x3169cf,this['_suggestions']);_0x3169cf['commands']['add']('discardSuggestion',_0x331e53),this['enableCommand']('discardSuggestion'),_0x3169cf['commands']['add']('acceptAllSuggestions',new M(_0x3169cf,_0x3ac007,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3169cf['commands']['add']('discardAllSuggestions',new M(_0x3169cf,_0x331e53,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3169cf['commands']['add']('acceptSelectedSuggestions',new R(_0x3169cf,_0x3ac007,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3169cf['commands']['add']('discardSelectedSuggestions',new R(_0x3169cf,_0x331e53,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x50d063=_0x3169cf['plugins']['get']('CommentsRepository');this['listenTo'](_0x50d063,'addComment',(_0x240bc7,{threadId:_0x47634e})=>{const _0x24f11c=this['_suggestions']['get'](_0x47634e);_0x24f11c&&_0x24f11c['commentThread']&&0x1===_0x24f11c['commentThread']['length']&&this['_updateSuggestionData'](_0x47634e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x50d063,'removeComment',(_0x98bd98,{threadId:_0xbc3b2d})=>{const _0x6d408d=this['_suggestions']['get'](_0xbc3b2d);_0x6d408d&&_0x6d408d['commentThread']&&!_0x6d408d['commentThread']['length']&&this['_updateSuggestionData'](_0xbc3b2d,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x5d0f5c){const _0x49278a=_0x54d9d3([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]),_0x372a60=0x3d8d0df,_0x416f62=0x3df53c7^_0x372a60,_0x284b13=window[_0x54d9d3([0x44,0x61,0x74,0x65])][_0x54d9d3([0x6e,0x6f,0x77])](),_0x407071=_0x5d0f5c[_0x54d9d3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3cce76=new window[(_0x54d9d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a0ade=>{_0x407071[_0x54d9d3([0x6f,0x6e,0x63,0x65])](_0x54d9d3([0x72,0x65,0x61,0x64,0x79]),_0x3a0ade);}),_0x1a0e65={[_0x54d9d3([0x6b,0x74,0x79])]:_0x54d9d3([0x45,0x43]),[_0x54d9d3([0x75,0x73,0x65])]:_0x54d9d3([0x73,0x69,0x67]),[_0x54d9d3([0x63,0x72,0x76])]:_0x54d9d3([0x50,0x2d,0x32,0x35,0x36]),[_0x54d9d3([0x78])]:_0x54d9d3([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]),[_0x54d9d3([0x79])]:_0x54d9d3([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]),[_0x54d9d3([0x61,0x6c,0x67])]:_0x54d9d3([0x45,0x53,0x32,0x35,0x36])},_0xe318a7=_0x407071[_0x54d9d3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x54d9d3([0x67,0x65,0x74])](_0x54d9d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x508677(){let _0x2ff5db,_0xc212ac=null,_0x41ddf6=null;try{if(_0xe318a7==_0x54d9d3([0x47,0x50,0x4c]))return _0x54d9d3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2ff5db=_0x4735d4(),!_0x2ff5db)return _0x54d9d3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2ff5db[_0x54d9d3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x41ddf6=_0x38b0aa(_0x2ff5db[_0x54d9d3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2ff5db[_0x54d9d3([0x6a,0x74,0x69])])),await _0x159a18()?_0x33514f()?_0x514f0d()?_0x54d9d3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x58f9a1()?(_0x2ff5db[_0x54d9d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x54d9d3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xc212ac=_0x2b1823(_0x54d9d3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5b7828()):_0x54d9d3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x54d9d3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x54d9d3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x54d9d3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x514f0d(){const _0x5bb76b=[_0x54d9d3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x54d9d3([0x74,0x72,0x69,0x61,0x6c])][_0x54d9d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ff5db[_0x54d9d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x284b13/0x3e8:0xe10*_0x416f62;return _0x2ff5db[_0x54d9d3([0x65,0x78,0x70])]<_0x5bb76b;}function _0x33514f(){const _0x3107b2=_0x2ff5db[_0x54d9d3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3107b2)return!0x1;if(_0x3107b2[_0x54d9d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54d9d3([0x2a])))return!0x0;if(_0x3107b2[_0x54d9d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54d9d3([0x54,0x43])))return!0x0;if(_0x3107b2[_0x54d9d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54d9d3([0x52,0x54,0x43]))){if(_0x4b8b4d())return!0x0;if(_0x5e0476()||_0x59b587())return!0x0;}return!0x1;}function _0x58f9a1(){const _0x2c2739=_0x2ff5db[_0x54d9d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2c2739||0x0==_0x2c2739[_0x54d9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x525dfb}=new URL(window[_0x54d9d3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2c2739[_0x54d9d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x525dfb))return!0x0;const _0xfa94df=_0x525dfb[_0x54d9d3([0x73,0x70,0x6c,0x69,0x74])](_0x54d9d3([0x2e]));return _0x2c2739[_0x54d9d3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x52ecff=>_0x52ecff[_0x54d9d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54d9d3([0x2a])))[_0x54d9d3([0x6d,0x61,0x70])](_0x54aac1=>_0x54aac1[_0x54d9d3([0x73,0x70,0x6c,0x69,0x74])](_0x54d9d3([0x2e])))[_0x54d9d3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x54f927=>_0x54f927[_0x54d9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xfa94df[_0x54d9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x54d9d3([0x6d,0x61,0x70])](_0x525545=>Array(_0xfa94df[_0x54d9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x525545[_0x54d9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x54d9d3([0x66,0x69,0x6c,0x6c])](_0x525545[0x0]===_0x54d9d3([0x2a])?_0x54d9d3([0x2a]):'')[_0x54d9d3([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x525545))[_0x54d9d3([0x73,0x6f,0x6d,0x65])](_0x530591=>_0xfa94df[_0x54d9d3([0x65,0x76,0x65,0x72,0x79])]((_0x5a9ec4,_0x2d76e4)=>_0x530591[_0x2d76e4]===_0x5a9ec4||_0x530591[_0x2d76e4]===_0x54d9d3([0x2a])));}function _0x5b7828(){return _0xc212ac&&_0x41ddf6?new window[(_0x54d9d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x264665,_0x15f96f)=>{_0xc212ac[_0x54d9d3([0x74,0x68,0x65,0x6e])](_0x264665,_0x15f96f),_0x41ddf6[_0x54d9d3([0x74,0x68,0x65,0x6e])](_0x45ece3=>{_0x45ece3!=_0x54d9d3([0x56,0x61,0x6c,0x69,0x64])&&_0x264665(_0x45ece3);},_0x15f96f);}):_0xc212ac||_0x41ddf6||_0x54d9d3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x38b0aa(_0x2fed3c,_0x5b8ff4){return new window[(_0x54d9d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x420ac5=>{if(_0x2048e2())return _0x420ac5(_0x54d9d3([0x56,0x61,0x6c,0x69,0x64]));_0x40ea5b(),_0x407071[_0x54d9d3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x54d9d3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xa44cc1=!0x1;const _0x39ae0a=_0xf5d073();function _0x31c4c5(_0x5c6b8f){return!!_0x5c6b8f&&(typeof _0x5c6b8f===_0x54d9d3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5c6b8f===_0x54d9d3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5c6b8f[_0x54d9d3([0x74,0x68,0x65,0x6e])]===_0x54d9d3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5c6b8f[_0x54d9d3([0x63,0x61,0x74,0x63,0x68])]===_0x54d9d3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1fbf4b(_0x10a3b8){_0x1dba55(_0x10a3b8)[_0x54d9d3([0x74,0x68,0x65,0x6e])](_0x552c90=>{if(!_0x552c90||_0x552c90[_0x54d9d3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x54d9d3([0x6f,0x6b]))return _0x54d9d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1f2659(_0x2269d0(_0x39ae0a+_0x5b8ff4))!=_0x552c90[_0x54d9d3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x54d9d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x54d9d3([0x56,0x61,0x6c,0x69,0x64]);})[_0x54d9d3([0x74,0x68,0x65,0x6e])](_0x21a88e=>(_0x4783ea(),_0x21a88e),()=>{const _0x106fdc=_0x2c2824();return null==_0x106fdc?(_0x4783ea(),_0x54d9d3([0x56,0x61,0x6c,0x69,0x64])):_0x54d9d3(_0x284b13-_0x106fdc>(0x27d454df^_0x372a60)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x54d9d3([0x74,0x68,0x65,0x6e])](_0x420ac5)[_0x54d9d3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x420ac5(_0x54d9d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x140980=0x3ee3e5f^_0x372a60;function _0x4783ea(){const _0x39f325=_0x54d9d3([0x6c,0x6c,0x63,0x74,0x2d])+_0x1f2659(_0x2269d0(_0x2fed3c)),_0x2294ef=_0x5dd338(_0x1f2659(window[_0x54d9d3([0x4d,0x61,0x74,0x68])][_0x54d9d3([0x63,0x65,0x69,0x6c])](_0x284b13/_0x140980)));window[_0x54d9d3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x54d9d3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x39f325,_0x2294ef);}function _0x2c2824(){const _0x41e7f9=_0x54d9d3([0x6c,0x6c,0x63,0x74,0x2d])+_0x1f2659(_0x2269d0(_0x2fed3c)),_0x51baa3=window[_0x54d9d3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x54d9d3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x41e7f9);return _0x51baa3?window[_0x54d9d3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5dd338(_0x51baa3),0x10)*_0x140980:null;}function _0x1dba55(_0x15520c){return new window[(_0x54d9d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x423de2,_0x5f05d1)=>{_0x15520c[_0x54d9d3([0x74,0x68,0x65,0x6e])](_0x423de2,_0x5f05d1),window[_0x54d9d3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5f05d1,0x3d9041f^_0x372a60);});}}_0x407071[_0x54d9d3([0x6f,0x6e])](_0x54d9d3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3da28a,_0x28309c)=>{if(_0x28309c[0x0]!=_0x2fed3c)return _0x420ac5(_0x54d9d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x28309c[0x1]={..._0x28309c[0x1],[_0x54d9d3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x39ae0a};},{[_0x54d9d3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x54d9d3([0x68,0x69,0x67,0x68])}),_0x407071[_0x54d9d3([0x6f,0x6e])](_0x54d9d3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x33a01a=>{_0x31c4c5(_0x33a01a[_0x54d9d3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xa44cc1=!0x0,_0x1fbf4b(_0x33a01a[_0x54d9d3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x54d9d3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x54d9d3([0x6c,0x6f,0x77])}),_0x3cce76[_0x54d9d3([0x74,0x68,0x65,0x6e])](()=>{_0xa44cc1||_0x420ac5(_0x54d9d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2048e2(){return _0x407071[_0x54d9d3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x54d9d3([0x76,0x69,0x65,0x77])][_0x54d9d3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x54d9d3([0x61,0x75,0x74,0x6f]);}function _0x40ea5b(){_0x407071[_0x54d9d3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x54d9d3([0x76,0x69,0x65,0x77])][_0x54d9d3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x54d9d3([0x61,0x75,0x74,0x6f]);}}function _0x2b1823(_0x4a451c){const _0x25dd7a=[new window[(_0x54d9d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3898d8=>setTimeout(_0x3898d8,0x3d1ee13^_0x372a60)),_0x3cce76[_0x54d9d3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x54d9d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c05ee=>{let _0x5624aa=0x0;_0x407071[_0x54d9d3([0x6d,0x6f,0x64,0x65,0x6c])][_0x54d9d3([0x6f,0x6e])](_0x54d9d3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x44844f,_0x22cade)=>{_0x22cade[0x0][_0x54d9d3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5624aa++,_0x5624aa==(0x3d8d537^_0x372a60)&&(_0x4c05ee(),_0x44844f[_0x54d9d3([0x6f,0x66,0x66])]());});}))];return window[_0x54d9d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x54d9d3([0x72,0x61,0x63,0x65])](_0x25dd7a)[_0x54d9d3([0x74,0x68,0x65,0x6e])](()=>_0x4a451c);}async function _0x1bb299(){await _0x3cce76,_0x407071[_0x54d9d3([0x6d,0x6f,0x64,0x65,0x6c])][_0x54d9d3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x660dd1,_0x407071[_0x54d9d3([0x6d,0x6f,0x64,0x65,0x6c])][_0x54d9d3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x660dd1,_0x407071[_0x54d9d3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x54d9d3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4b8b4d(){return _0x2726c6(_0x54d9d3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x19c59e(_0x54d9d3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x54d9d3([0x73,0x74,0x61,0x74,0x65])]==_0x54d9d3([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5e0476(){return _0x2726c6(_0x54d9d3([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 _0x59b587(){return _0x2726c6(_0x54d9d3([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xf784b7(_0x45c9e2){const _0x30fc83=_0x406b5a();_0x407071[_0x30fc83]=_0x54d9d3([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x45c9e2,_0x45c9e2!=_0x54d9d3([0x56,0x61,0x6c,0x69,0x64])&&_0x1bb299();}function _0x406b5a(){const _0x45a151=window[_0x54d9d3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x54d9d3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x54d9d3([0x6e,0x6f,0x77])]())[_0x54d9d3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x54d9d3([0x2e]),'');let _0x28e0bb=_0x54d9d3([0x52]);for(let _0x4a2f19=0x0;_0x4a2f19<_0x45a151[_0x54d9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4a2f19+=0x2){let _0x584697=window[_0x54d9d3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45a151[_0x54d9d3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a2f19,_0x4a2f19+0x2));_0x584697>=_0x49278a[_0x54d9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x584697-=_0x49278a[_0x54d9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x28e0bb+=_0x49278a[_0x584697];}return _0x28e0bb;}function _0x4735d4(){const _0x148025=_0xe318a7[_0x54d9d3([0x73,0x70,0x6c,0x69,0x74])](_0x54d9d3([0x2e]));if(0x3!=_0x148025[_0x54d9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3a7a0b(_0x148025[0x1]);function _0x3a7a0b(_0x34b3d3){const _0x31ef1e=_0x53ef49(_0x34b3d3);return _0x31ef1e&&_0x4eb011()?_0x31ef1e:null;function _0x4eb011(){const _0x1e7b00=_0x31ef1e[_0x54d9d3([0x6a,0x74,0x69])],_0x258d35=window[_0x54d9d3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e7b00[_0x54d9d3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1e7b00[_0x54d9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x570948={..._0x31ef1e,[_0x54d9d3([0x6a,0x74,0x69])]:_0x1e7b00[_0x54d9d3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1e7b00[_0x54d9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x570948[_0x54d9d3([0x76,0x63])],_0x2269d0(_0x570948)==_0x258d35;}}}async function _0x159a18(){let _0x338a68=!0x0;try{const _0x39ebf0=_0xe318a7[_0x54d9d3([0x73,0x70,0x6c,0x69,0x74])](_0x54d9d3([0x2e])),[_0x4bd0ab,_0x33d435,_0x3aa7ac]=_0x39ebf0;return _0x4ba418(_0x4bd0ab),await _0x52ac58(_0x4bd0ab,_0x33d435,_0x3aa7ac),_0x338a68;}catch{return!0x1;}function _0x4ba418(_0x7c3a2d){const _0x2e5105=_0x53ef49(_0x7c3a2d);_0x2e5105&&_0x2e5105[_0x54d9d3([0x61,0x6c,0x67])]==_0x54d9d3([0x45,0x53,0x32,0x35,0x36])||(_0x338a68=!0x1);}async function _0x52ac58(_0x14e79c,_0x61cf66,_0x36f7d2){const _0x156b90=window[_0x54d9d3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x54d9d3([0x66,0x72,0x6f,0x6d])](_0x51f0f2(_0x36f7d2),_0x328875=>_0x328875[_0x54d9d3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xe1e45=new window[(_0x54d9d3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x54d9d3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x14e79c+_0x54d9d3([0x2e])+_0x61cf66),_0x21f65e=window[_0x54d9d3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x54d9d3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x21f65e)return;const _0x1a637e=await _0x21f65e[_0x54d9d3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x54d9d3([0x6a,0x77,0x6b]),_0x1a0e65,{[_0x54d9d3([0x6e,0x61,0x6d,0x65])]:_0x54d9d3([0x45,0x43,0x44,0x53,0x41]),[_0x54d9d3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x54d9d3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x54d9d3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x21f65e[_0x54d9d3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x54d9d3([0x6e,0x61,0x6d,0x65])]:_0x54d9d3([0x45,0x43,0x44,0x53,0x41]),[_0x54d9d3([0x68,0x61,0x73,0x68])]:{[_0x54d9d3([0x6e,0x61,0x6d,0x65])]:_0x54d9d3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1a637e,_0x156b90,_0xe1e45)||(_0x338a68=!0x1);}}function _0x53ef49(_0xa68c66){return _0xa68c66[_0x54d9d3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x54d9d3([0x65,0x79]))?JSON[_0x54d9d3([0x70,0x61,0x72,0x73,0x65])](_0x51f0f2(_0xa68c66)):null;}function _0x51f0f2(_0x1bef02){return window[_0x54d9d3([0x61,0x74,0x6f,0x62])](_0x1bef02[_0x54d9d3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x54d9d3([0x2b]))[_0x54d9d3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x54d9d3([0x2f])));}function _0x2269d0(_0x2d9b8b){let _0x321387=0x1505;function _0x27e227(_0x2f3911){for(let _0x526461=0x0;_0x526461<_0x2f3911[_0x54d9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x526461++){const _0x479609=_0x2f3911[_0x54d9d3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x526461);_0x321387=(_0x321387<<0x5)+_0x321387+_0x479609,_0x321387&=_0x321387;}}function _0x5c2df0(_0x5f422e){Array[_0x54d9d3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5f422e)?_0x5f422e[_0x54d9d3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5c2df0):_0x5f422e&&typeof _0x5f422e==_0x54d9d3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x54d9d3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5f422e)[_0x54d9d3([0x73,0x6f,0x72,0x74])]()[_0x54d9d3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3774d6,_0x2add52])=>{_0x27e227(_0x3774d6),_0x5c2df0(_0x2add52);}):_0x27e227(window[_0x54d9d3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5f422e));}return _0x5c2df0(_0x2d9b8b),_0x321387>>>0x0;}function _0x1f2659(_0x359d84){return _0x359d84[_0x54d9d3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x54d9d3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x54d9d3([0x30]));}function _0x5dd338(_0x26ec72){return _0x26ec72[_0x54d9d3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x54d9d3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x54d9d3([0x6a,0x6f,0x69,0x6e])]('');}function _0x2726c6(_0x4b91b5){return _0x407071[_0x54d9d3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x54d9d3([0x68,0x61,0x73])](_0x4b91b5);}function _0x19c59e(_0x3895ba){return _0x407071[_0x54d9d3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x54d9d3([0x67,0x65,0x74])](_0x3895ba);}function _0x660dd1(){}function _0x54d9d3(_0x36640d){return _0x36640d['map'](_0xfccb86=>String['fromCharCode'](_0xfccb86))['join']('');}_0xf784b7(await _0x508677());}(this);}set['adapter'](_0x2766e8){if(this['_adapter'])throw new _0x187e95('track-changes-adapter-already-set',this);this['_adapter']=_0x2766e8;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3fc931=!0x1,toJSON:_0xec7c1c=!0x1}={}){const _0x319b4e=[];for(const _0x3a4af8 of this['_suggestions']['values']())_0x3fc931&&!_0x3a4af8['isInContent']||_0x319b4e['push'](_0x3a4af8);return _0xec7c1c?_0x319b4e['map'](_0x53b632=>_0x53b632['toJSON']()):_0x319b4e;}['getSuggestion'](_0x5a8726){const _0xd4eab=this['_suggestions']['get'](_0x5a8726);if(!_0xd4eab)throw new _0x187e95('track-changes-suggestion-not-found',this);return _0xd4eab;}['hasSuggestion'](_0x462ced){return this['_suggestions']['has'](_0x462ced);}['addSuggestionData'](_0x3c2fac){const {authorId:_0x2ae00c,id:_0x50d31b,originalSuggestionId:_0x1d911d,attributes:_0x5074b2}=_0x3c2fac,[_0x1256af,_0x40d39a]=_0x3c2fac['type']['split'](':'),_0x3dc676=this['_suggestions']['get'](_0x50d31b)||this['_createSuggestion'](_0x1256af,_0x40d39a,_0x50d31b,_0x2ae00c,_0x5074b2,_0x1d911d);if(this['_addThreadToSuggestion'](_0x3dc676),this['_checkSuggestionCorrectness'](_0x3dc676,_0x1256af,_0x40d39a||null,_0x2ae00c),_0x3dc676['createdAt']=_0x3c2fac['createdAt'],_0x3dc676['_isDataLoaded']=!0x0,_0x5074b2&&_0x5074b2['@external']){const _0x1f9ed8=_0x5074b2['@external'],_0x4268c2=this['_getExternalAuthor'](_0x1f9ed8['authorName']);_0x3dc676['authoredAt']=_0x1f9ed8['createdAt'],_0x3dc676['author']=_0x4268c2,_0x3dc676['isExternal']=!0x0;}else _0x3dc676['authoredAt']=_0x3c2fac['createdAt'];switch(_0x3c2fac['data']&&(_0x3dc676['data']=_0x3c2fac['data']),_0x3c2fac['attributes']&&(_0x3dc676['attributes']=_0x3c2fac['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3dc676['_saved']=!0x0),this['_suggestionState']['get'](_0x3dc676)){case'notReady':this['_suggestionState']['set'](_0x3dc676,'dataReady');break;case'markerReady':_0x3dc676['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3dc676])),this['_refreshSuggestionsChain'](new Set([_0x3dc676])),this['_suggestionState']['set'](_0x3dc676,'ready'),this['fire']('suggestionLoaded',_0x3dc676)):this['_suggestionState']['set'](_0x3dc676,'removed');}return _0x3dc676;}['acceptSuggestion'](_0x32458f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3164a0 of _0x32458f['getAllAdjacentSuggestions']())_0x3164a0['accept']();});});}['discardSuggestion'](_0xaf1d35){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1e8883 of _0xaf1d35['getAllAdjacentSuggestions']())_0x1e8883['discard']();});});}['enableCommand'](_0x5d799b,_0x114cb9){const _0x5f415c=this['editor']['commands']['get'](_0x5d799b);if(!_0x5f415c)throw new _0x187e95('track-changes-command-not-found',this,{'commandName':_0x5d799b});if(this['_enabledCommands']['has'](_0x5f415c))throw new _0x187e95('track-changes-enable-command-twice',this,{'commandName':_0x5d799b});this['_enabledCommands']['add'](_0x5f415c),_0x114cb9&&_0x5f415c['on']('execute',(_0x8b73f3,_0x16c367)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x16c367['length']>0x0&&_0x16c367[_0x16c367['length']-0x1]&&_0x16c367[_0x16c367['length']-0x1]['forceDefaultExecution']?_0x16c367['pop']():(_0x8b73f3['return']=_0x114cb9((..._0x40558e)=>_0x5f415c['execute'](..._0x40558e,{'forceDefaultExecution':!0x0}),..._0x16c367),_0x8b73f3['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x343a70){let _0x171762,_0xf951ba;const _0x22b45d=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x171762=_0x343a70();}catch(_0x54e68c){_0xf951ba=_0x54e68c;}return _0x22b45d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xf951ba&&_0x187e95['rethrowUnexpectedError'](_0xf951ba,this),_0x171762;}['markInsertion'](_0x1f0f09,_0x5059ef=null,_0x17091d={}){if(_0x1f0f09['isCollapsed'])return null;const _0x50977b=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x17091d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3696e3,meta:_0x250464}of this['_findSuggestions'](_0x1f0f09,'insertion'))if(_0x250464['isOwn']){if(!_0x250464['isNextTo']){if(_0x250464['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x3696e3,_0x17091d))continue;return _0x3696e3;}if(sn(_0x3696e3,_0x17091d))return _0x3696e3;this['_breakSuggestionMarker'](_0x3696e3,_0x1f0f09['start'],_0x1f0f09['end']);break;}if(_0x5059ef==_0x3696e3['subType']&&sn(_0x3696e3,_0x17091d)){const _0x5096ed=_0x3696e3['getFirstRange']();return _0x5096ed['start']['isEqual'](_0x1f0f09['end'])?this['_setSuggestionRange'](_0x3696e3,this['_model']['createRange'](_0x1f0f09['start'],_0x5096ed['end'])):this['_setSuggestionRange'](_0x3696e3,this['_model']['createRange'](_0x5096ed['start'],_0x1f0f09['end'])),_0x3696e3;}}const _0x4336e1=_0xf5d073(),_0xcbaf8c=_0x50977b['id'],_0x3dc8e8=_0x5059ef?'insertion:'+_0x5059ef:'insertion',_0x44e618=this['_setSuggestionData']({'id':_0x4336e1,'type':_0x3dc8e8,'createdAt':new Date(),'authorId':_0xcbaf8c,'attributes':_0x17091d});return this['_addSuggestionMarker'](_0x3dc8e8,_0x4336e1,_0xcbaf8c,_0x1f0f09),_0x44e618;}['markMultiRangeInsertion'](_0x107065,_0x4ff21b='multi',_0x3b539b={}){const _0x245ac3=this['editor']['plugins']['get']('Users')['me'],_0x55bb33=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4ff21b,'join');this['_trackingSessionId']&&(_0x3b539b['trackingSessionId']=this['_trackingSessionId']);for(const _0x449dbd of this['getSuggestions']())if(_0x449dbd['author']['id']==_0x245ac3['id']&&'insertion'==_0x449dbd['type']&&_0x449dbd['subType']==_0x4ff21b&&sn(_0x449dbd,_0x3b539b)&&(_0x55bb33(_0x449dbd['getRanges'](),_0x107065)||_0x55bb33(_0x107065,_0x449dbd['getRanges']()))){for(const _0x31edae of _0x107065)_0x449dbd['addRange'](_0x31edae);return _0x449dbd;}for(const {suggestion:_0x1d86b9,meta:_0x35ccba}of this['_findSuggestions'](_0x107065,'insertion')){if(!_0x35ccba['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x35ccba['containsRangeInObject'])continue;if(!sn(_0x1d86b9,_0x3b539b))continue;let _0x3b4cd1=!0x0;for(const _0x168ae0 of _0x1d86b9['getRanges']())for(const _0x4a475f of _0x107065)if(!_0x168ae0['containsRange'](_0x4a475f)){_0x3b4cd1=!0x1;break;}if(_0x3b4cd1)return _0x1d86b9;}const _0x1865c3=_0xf5d073(),_0xa94064=_0x245ac3['id'],_0x471da2='insertion:'+_0x4ff21b,_0x4c52fb=this['_setSuggestionData']({'id':_0x1865c3,'type':_0x471da2,'createdAt':new Date(),'authorId':_0xa94064,'attributes':_0x3b539b});for(const _0x1c6e34 of _0x107065)this['_addSuggestionMarker'](_0x471da2,_0x1865c3,_0xa94064,_0x1c6e34,T['getMultiRangeId']());return _0x4c52fb;}['markInlineFormat'](_0x51de55,_0x3d0ae5,_0x5b4e2a=null,_0x4c9b89={}){if(_0x5b4e2a=_0x5b4e2a||Ht(_0x3d0ae5),_0x51de55['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x4c9b89['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2fd5e8=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5b4e2a,'accept');return this['forceDefaultExecution'](()=>_0x2fd5e8([_0x51de55],_0x3d0ae5,_0x4c9b89)),null;}const _0x50451d=this['editor']['plugins']['get']('Users')['me'],_0x327b22=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5455f2,meta:_0x1b8d72}of this['_findSuggestions'](_0x51de55,'insertion'))_0x1b8d72['isOwn']&&!_0x1b8d72['isInsideObject']&&_0x327b22['push'](..._0x5455f2['getRanges']());}const _0x21e6c5=function(_0x3e114c,_0x411b7b){const _0x389c19=[];for(const _0x461a6d of _0x411b7b){const _0x3b35b5=_0x3e114c['getIntersection'](_0x461a6d);_0x3b35b5&&_0x389c19['push'](_0x3b35b5);}return _0x389c19;}(_0x51de55,_0x327b22),_0x556a6c=function(_0x3153d0,_0x2ef0f3){const _0x39ec99=[_0x3153d0];for(const _0x236c77 of _0x2ef0f3){let _0x167761=0x0;for(;_0x167761<_0x39ec99['length'];){const _0x208560=_0x39ec99[_0x167761]['getDifference'](_0x236c77);_0x39ec99['splice'](_0x167761,0x1,..._0x208560),_0x167761+=_0x208560['length'];}}return _0x39ec99;}(_0x51de55,_0x327b22);_0x21e6c5['length']&&this['_model']['change'](()=>{for(const _0x2b7dac of _0x21e6c5){const _0x534b51=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5b4e2a,'accept');this['forceDefaultExecution'](()=>_0x534b51([_0x2b7dac],_0x3d0ae5,_0x4c9b89));}});for(const _0x471941 of _0x556a6c){let _0x52f980=null,_0x465e7a=_0x471941['start'],_0x133307=_0x471941['end'];for(const {suggestion:_0x585422,meta:_0x10b1cf}of this['_findSuggestions'](_0x471941,'formatInline')){if(!_0x10b1cf['isOwn'])continue;if(_0x585422['subType']!=_0x5b4e2a)continue;if(!sn(_0x585422,_0x4c9b89))continue;const _0x3b3cbc=_0x585422['getFirstRange']();if(_0x3b3cbc['containsRange'](_0x471941,!0x0))return null;_0x465e7a=_0x465e7a['isBefore'](_0x3b3cbc['start'])?_0x465e7a:_0x3b3cbc['start'],_0x133307=_0x133307['isAfter'](_0x3b3cbc['end'])?_0x133307:_0x3b3cbc['end'],_0x52f980?_0x3b3cbc['start']['isBefore'](_0x52f980['getFirstRange']()['start'])?(_0x52f980['removeMarkers'](),_0x52f980=_0x585422):_0x585422['removeMarkers']():_0x52f980=_0x585422;}const _0x1786cf=this['_model']['createRange'](_0x465e7a,_0x133307);if(_0x52f980)this['_setSuggestionRange'](_0x52f980,_0x1786cf);else{const _0x4d84e1=_0xf5d073(),_0x3dc9d4=_0x50451d['id'];this['_setSuggestionData']({'id':_0x4d84e1,'type':'formatInline:'+_0x5b4e2a,'data':_0x3d0ae5,'createdAt':new Date(),'authorId':_0x3dc9d4,'attributes':_0x4c9b89}),this['_addSuggestionMarker']('formatInline:'+_0x5b4e2a,_0x4d84e1,_0x3dc9d4,_0x1786cf);}}return null;}['markBlockFormat'](_0x174bd0,_0x4e4ffb,_0x23a1f6=[],_0xf86016=null,_0x3b0b46={}){_0x4e4ffb['formatGroupId']||(_0x4e4ffb['formatGroupId']=_0x4e4ffb['commandName']),_0x4e4ffb['multipleBlocks']=_0x174bd0['is']('range'),_0xf86016=_0xf86016||Ht(_0x4e4ffb);const _0x620e41=_0x23a1f6['map'](_0x12b433=>tn(_0x12b433,this['_model'])),_0x798ccd=_0x174bd0['is']('range')?_0x174bd0:tn(_0x174bd0,this['_model']);if(this['_trackingSessionId']&&(_0x3b0b46['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4243a7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xf86016,'accept');return this['forceDefaultExecution'](()=>_0x4243a7([_0x798ccd],_0x4e4ffb,_0x3b0b46)),null;}_0x620e41['push'](_0x798ccd);let _0x113532=!0x0;for(const _0x301427 of _0x620e41)if(!this['_rangeIsInLocalUserInsertion'](_0x301427)){_0x113532=!0x1;break;}if(_0x113532&&'always'!==this['_trackFormatChanges']){const _0x127f20=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xf86016,'accept');return this['forceDefaultExecution'](()=>_0x127f20([_0x798ccd],_0x4e4ffb,_0x3b0b46)),null;}let _0x5db7e9=null,_0x5e1043=_0x798ccd['start'],_0x503815=_0x798ccd['end'];for(const {suggestion:_0x4fc9f9,meta:_0x1eb06f}of this['_findSuggestions'](_0x798ccd,'formatBlock')){if(!_0x1eb06f['isOwn'])continue;if(_0x1eb06f['isNextTo']||_0x1eb06f['containsRangeInObject']||_0x1eb06f['isInsideObject'])continue;if(_0x4fc9f9['data']['formatGroupId']!=_0x4e4ffb['formatGroupId'])continue;if(!sn(_0x4fc9f9,_0x3b0b46))continue;const _0x3f844c=_0x4fc9f9['getFirstRange']();if(_0x4fc9f9['subType']==_0xf86016){if(_0x3f844c['containsRange'](_0x798ccd,!0x0))return null;_0x5e1043=_0x5e1043['isBefore'](_0x3f844c['start'])?_0x5e1043:_0x3f844c['start'],_0x503815=_0x503815['isAfter'](_0x3f844c['end'])?_0x503815:_0x3f844c['end'],_0x5db7e9?_0x3f844c['start']['isBefore'](_0x5db7e9['getFirstRange']()['start'])?(_0x5db7e9['removeMarkers'](),_0x5db7e9=_0x4fc9f9):_0x4fc9f9['removeMarkers']():_0x5db7e9=_0x4fc9f9;}else{const _0x10ff2a=_0x798ccd['getIntersection'](_0x3f844c);this['_cutOutSuggestionMarker'](_0x4fc9f9,_0x10ff2a);}}const _0xe731c6=this['editor']['plugins']['get']('Users')['me'],_0x38247b=_0xf5d073(),_0x11989f=_0xe731c6['id'];if(_0x5db7e9)return this['_setSuggestionRange'](_0x5db7e9,this['_model']['createRange'](_0x5e1043,_0x503815)),_0x5db7e9;{const _0x5ee0fb=this['_setSuggestionData']({'id':_0x38247b,'type':'formatBlock:'+_0xf86016,'data':_0x4e4ffb,'createdAt':new Date(),'authorId':_0x11989f,'attributes':_0x3b0b46});return this['_addSuggestionMarker']('formatBlock:'+_0xf86016,_0x38247b,_0x11989f,this['_model']['createRange'](_0x5e1043,_0x503815)),_0x5ee0fb;}}['markMultiRangeBlockFormat'](_0x37cd71,_0x27a7a5,_0x1c5aa7=[],_0x153e69=null,_0x3db613={}){_0x27a7a5['formatGroupId']||(_0x27a7a5['formatGroupId']=_0x27a7a5['commandName']);const _0x109c53=_0x37cd71[0x0];_0x27a7a5['multipleBlocks']=_0x109c53['is']('range'),_0x153e69=_0x153e69||Ht(_0x27a7a5);const _0x2f6295=_0x1c5aa7['map'](_0x69f897=>tn(_0x69f897,this['_model'])),_0x428128=_0x109c53['is']('range')?_0x37cd71:_0x37cd71['map'](_0x476381=>tn(_0x476381,this['_model']));if(this['_trackingSessionId']&&(_0x3db613['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4efa37=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x153e69,'accept');return this['forceDefaultExecution'](()=>_0x4efa37(_0x428128,_0x27a7a5,_0x3db613)),null;}_0x2f6295['push'](..._0x428128);let _0x3e40e7=!0x0;for(const _0x83cf05 of _0x2f6295)if(!this['_rangeIsInLocalUserInsertion'](_0x83cf05)){_0x3e40e7=!0x1;break;}if(_0x3e40e7&&'always'!==this['_trackFormatChanges']){const _0x3b75dc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x153e69,'accept');return this['forceDefaultExecution'](()=>_0x3b75dc(_0x428128,_0x27a7a5,_0x3db613)),null;}const _0x5bf7ae=this['editor']['plugins']['get']('Users')['me'];for(const _0x5146a7 of this['getSuggestions']()){const _0x576a40=_0x5146a7['data'];if(_0x5146a7['author']['id']!=_0x5bf7ae['id'])continue;if('formatBlock'!=_0x5146a7['type']||_0x576a40['formatGroupId']!=_0x27a7a5['formatGroupId'])continue;if(!sn(_0x5146a7,_0x3db613))continue;const _0x4593dd=_0x5146a7['subType']==_0x153e69;for(let _0x29970e=0x0;_0x29970e<_0x428128['length'];_0x29970e++){const _0x4c05a7=_0x428128[_0x29970e];for(const _0x1947e6 of _0x5146a7['getMarkers']()){const _0x402c23=_0x1947e6['getRange']();if(_0x4c05a7['isEqual'](_0x402c23)){_0x4593dd?(_0x428128['splice'](_0x29970e,0x1),_0x29970e--):_0x5146a7['removeMarker'](_0x1947e6['name']);break;}}}}if(0x0==_0x428128['length'])return null;const _0x1e46ea=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x153e69,'join');for(const _0x1c36bd of this['getSuggestions']()){const _0x462557=_0x1c36bd['data'];if(_0x1c36bd['author']['id']==_0x5bf7ae['id']&&('formatBlock'==_0x1c36bd['type']&&_0x462557['formatGroupId']==_0x27a7a5['formatGroupId']&&_0x1c36bd['subType']==_0x153e69&&sn(_0x1c36bd,_0x3db613)&&(_0x1e46ea(_0x1c36bd['getRanges'](),_0x428128)||_0x1e46ea(_0x428128,_0x1c36bd['getRanges']())))){for(const _0x219c77 of _0x428128)_0x1c36bd['addRange'](_0x219c77);return _0x1c36bd;}}const _0xa1050a=_0xf5d073(),_0x437df7=_0x5bf7ae['id'],_0x27462f='formatBlock:'+_0x153e69,_0x1ffd1c=this['_setSuggestionData']({'id':_0xa1050a,'type':_0x27462f,'data':_0x27a7a5,'createdAt':new Date(),'authorId':_0x437df7,'attributes':_0x3db613});for(const _0x1ebefa of _0x428128)this['_addSuggestionMarker'](_0x27462f,_0xa1050a,_0x437df7,_0x1ebefa,T['getMultiRangeId']());return _0x1ffd1c;}['markDeletion'](_0x5edc54,_0x31a203=null,_0x3c6cf6={}){if(_0x5edc54['isCollapsed'])return null;const _0x6fb3b7=this['editor']['plugins']['get']('Users')['me'],_0x2b7ae9=new _0xe89877(_0x5edc54['start'],_0x5edc54['end']);this['_trackingSessionId']&&(_0x3c6cf6['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x10471e,meta:_0x5dd2b6}of this['_findSuggestions'](_0x2b7ae9,'insertion'))if(_0x5dd2b6['isOwn']&&!_0x5dd2b6['isNextTo']){if(_0x10471e['isMultiRange']){const _0xf66439=_0x10471e['getRanges']()['filter'](_0x43ad2f=>'$graveyard'!=_0x43ad2f['root']['rootName']);_0xf66439['every'](_0x5bd7c8=>_0x2b7ae9['containsRange'](_0x5bd7c8,!0x0))&&_0x10471e['discard']();if(_0xf66439['some'](_0x34b5c1=>_0x34b5c1['containsRange'](_0x2b7ae9,!0x0))){const _0xdcf0f9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x31a203,'accept');return this['forceDefaultExecution'](()=>_0xdcf0f9([_0x2b7ae9],null,_0x3c6cf6)),null;}}else{const _0x36932a=_0x2b7ae9['getIntersection'](_0x10471e['getFirstRange']());null!==_0x36932a&&_0x10471e['_onDiscard']([_0x36932a],null,_0x3c6cf6);}}if(_0x2b7ae9['detach'](),_0x2b7ae9['isCollapsed']||'$graveyard'==_0x2b7ae9['root']['rootName'])return null;let _0xb8459a=null,_0x114e33=_0x2b7ae9['start'],_0x12482d=_0x2b7ae9['end'];const _0x1e01d5=this['_findSuggestions'](_0x2b7ae9,'deletion');for(const {suggestion:_0x10b9e5,meta:_0x3a1e61}of _0x1e01d5){const _0x195bba=this['_model']['createRange'](_0x114e33,_0x12482d);if(_0x3a1e61['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3a1e61['containsRangeInObject']&&!_0x3a1e61['isInsideObject'])){if(_0x10b9e5['isMultiRange']){if(!sn(_0x10b9e5,_0x3c6cf6))continue;let _0x1a4e31=!0x0;for(const _0x1e5afe of _0x10b9e5['getRanges']()){if(_0x1e5afe['containsRange'](_0x195bba,!0x0))return _0x10b9e5;_0x195bba['containsRange'](_0x1e5afe)||(_0x1a4e31=!0x1);}_0x1a4e31&&_0x10b9e5['discard']();}else{const _0xc0a662=_0x10b9e5['getFirstRange']();if(_0xc0a662['containsRange'](_0x195bba,!0x0))return _0x10b9e5;if(!sn(_0x10b9e5,_0x3c6cf6)){_0x195bba['containsRange'](_0xc0a662)?_0x10b9e5['removeMarkers']():_0xc0a662['containsPosition'](_0x114e33)?_0x114e33=_0xc0a662['end']:_0xc0a662['containsPosition'](_0x12482d)&&(_0x12482d=_0xc0a662['start']);continue;}_0x114e33=_0x114e33['isBefore'](_0xc0a662['start'])?_0x114e33:_0xc0a662['start'],_0x12482d=_0x12482d['isAfter'](_0xc0a662['end'])?_0x12482d:_0xc0a662['end'],_0x3c6cf6=Object['assign']({},_0x10b9e5['attributes']),_0xb8459a?_0xc0a662['start']['isBefore'](_0xb8459a['getFirstRange']()['start'])?(_0xb8459a['removeMarkers'](),_0xb8459a=_0x10b9e5):_0x10b9e5['removeMarkers']():_0xb8459a=_0x10b9e5;}}}if(_0xb8459a)return this['_setSuggestionRange'](_0xb8459a,this['_model']['createRange'](_0x114e33,_0x12482d)),_0xb8459a;{const _0x59b469=_0xf5d073(),_0x5959fe=this['_model']['createRange'](_0x114e33,_0x12482d),_0x375950=_0x6fb3b7['id'],_0x40b597=_0x31a203?'deletion:'+_0x31a203:'deletion',_0x1b412e=this['_setSuggestionData']({'id':_0x59b469,'type':_0x40b597,'createdAt':new Date(),'authorId':_0x375950,'attributes':_0x3c6cf6});return this['_addSuggestionMarker'](_0x40b597,_0x59b469,_0x375950,_0x5959fe),_0x1b412e;}}['markMultiRangeDeletion'](_0x314e85,_0x3be82d='multi',_0x7efc83={}){const _0x45d322=this['editor']['plugins']['get']('Users')['me'],_0x15ccc8=_0x314e85['map'](_0x389608=>new _0xe89877(_0x389608['start'],_0x389608['end'])),_0x44887a=new Set();this['_trackingSessionId']&&(_0x7efc83['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x40bc0b,meta:_0x61bd42}of this['_findSuggestions'](_0x15ccc8,'insertion'))_0x61bd42['isOwn']&&!_0x61bd42['isNextTo']&&_0x44887a['add'](_0x40bc0b);for(const _0x554c7a of _0x44887a)if(_0x554c7a['isMultiRange']){const _0x415644=_0x554c7a['getRanges']();(!_0x554c7a['attributes']||!_0x554c7a['attributes']['skipNestingCheck'])&&(_0x415644['every'](_0x50c9ce=>_0x15ccc8['some'](_0x89cc84=>_0x89cc84['containsRange'](_0x50c9ce,!0x0)))&&_0x554c7a['discard']());if(_0x15ccc8['every'](_0x4cdca3=>_0x415644['some'](_0x541d85=>_0x541d85['containsRange'](_0x4cdca3,!0x0)))){const _0x59d4b6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3be82d,'accept');return this['forceDefaultExecution'](()=>_0x59d4b6(_0x314e85,null,_0x7efc83)),null;}}else{const _0xefc00f=_0x554c7a['getFirstRange']();_0x15ccc8['some'](_0x37f46e=>_0x37f46e['containsRange'](_0xefc00f,!0x0))&&_0x554c7a['discard']();if(_0x15ccc8['every'](_0x43baeb=>_0xefc00f['containsRange'](_0x43baeb,!0x0))){const _0x28cad0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3be82d,'accept');return this['forceDefaultExecution'](()=>_0x28cad0(_0x15ccc8,null,_0x7efc83)),null;}}const _0x14ee6b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3be82d,'join');let _0xc1c549=null;for(const _0x5e04da of this['getSuggestions']())if(_0x5e04da['author']['id']==_0x45d322['id']&&_0x5e04da['isInContent']&&'deletion'==_0x5e04da['type']&&_0x5e04da['subType']==_0x3be82d&&sn(_0x5e04da,_0x7efc83)&&(_0x14ee6b(_0x5e04da['getRanges'](),_0x15ccc8)||_0x14ee6b(_0x15ccc8,_0x5e04da['getRanges']()))){if(_0xc1c549){if(_0x5e04da['commentThread']&&_0x5e04da['commentThread']['length'])continue;for(const _0x2490de of _0x5e04da['getRanges']())_0xc1c549['isIntersectingWithRange'](_0x2490de)||_0xc1c549['addRange'](_0x2490de);_0x5e04da['removeMarkers']();}else{_0xc1c549=_0x5e04da;for(const _0x463aff of _0x15ccc8)_0x5e04da['isIntersectingWithRange'](_0x463aff)||_0x5e04da['addRange'](_0x463aff);}}if(_0xc1c549)return _0xc1c549;_0x44887a['clear']();for(const {suggestion:_0x2553a0,meta:_0x40a59a}of this['_findSuggestions'](_0x15ccc8,'deletion'))_0x40a59a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x40a59a['containsRangeInObject']&&!_0x40a59a['isInsideObject'])&&sn(_0x2553a0,_0x7efc83)&&_0x44887a['add'](_0x2553a0);for(const _0x7550af of _0x44887a){const _0x25001f=_0x7550af['getRanges']();if(!_0x7efc83||!_0x7efc83['skipNestingCheck']){if(_0x15ccc8['every'](_0x2777a5=>_0x25001f['some'](_0xd5ac=>_0xd5ac['containsRange'](_0x2777a5,!0x0))))return _0x7550af;}(!_0x7550af['attributes']||!_0x7550af['attributes']['skipNestingCheck'])&&(_0x25001f['every'](_0x307230=>_0x15ccc8['some'](_0x4b12f2=>_0x4b12f2['containsRange'](_0x307230,!0x0)))&&_0x7550af['discard']());}const _0x3839f3=_0xf5d073(),_0x2d42bd=_0x45d322['id'],_0x18c43b='deletion:'+_0x3be82d,_0x3a70c4=this['_setSuggestionData']({'id':_0x3839f3,'type':_0x18c43b,'createdAt':new Date(),'authorId':_0x2d42bd,'attributes':_0x7efc83});for(const _0x3f4651 of _0x15ccc8)_0x3f4651['detach'](),_0x3f4651['isCollapsed']||'$graveyard'==_0x3f4651['root']['rootName']||this['_addSuggestionMarker'](_0x18c43b,_0x3839f3,_0x2d42bd,_0x3f4651,T['getMultiRangeId']());return _0x3a70c4;}['markAttributeChange'](_0x5a55ef,_0x3b6b05,_0x42bd2e,_0x3cd0e0,_0x3718fe){if(_0x5a55ef['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xb68092=this['editor']['plugins']['get']('Users')['me']['id'],_0x3611e9=Array['from'](this['_suggestions']['values']())['filter'](_0x1c2518=>'attribute'==_0x1c2518['type']&&_0x1c2518['data']['key']==_0x3b6b05&&_0x1c2518['isIntersectingWithRange'](_0x5a55ef));if(this['_trackingSessionId']&&(_0x3718fe['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x131c0e=this['_findSuggestions'](_0x5a55ef,'insertion')['filter'](({meta:_0x5b53c4})=>_0x5b53c4['isOwn']&&!_0x5b53c4['isInsideObject']&&!_0x5b53c4['isNextTo'])['map'](({suggestion:_0x2b184e})=>_0x2b184e);_0x3611e9['unshift'](..._0x131c0e);}const _0x560365=new Map([[_0x5a55ef,_0x42bd2e]]);for(const _0x35c43c of _0x3611e9){const _0x3e7ba2='attribute'==_0x35c43c['type']?_0x35c43c['data']['oldValue']:void 0x0,_0x2bd1d3=_0x35c43c['getFirstRange'](),_0x4bc5c8=Array['from'](_0x560365['keys']())['find'](_0x5d100b=>_0x5d100b['isIntersecting'](_0x2bd1d3));if(!_0x4bc5c8)continue;const _0x5cf7b8=_0x4bc5c8['getDifference'](_0x2bd1d3);this['_isBlockAttribute'](_0x3b6b05)&&'insertion'==_0x35c43c['type']&&0x0!=_0x5cf7b8['length']||(_0x560365['delete'](_0x4bc5c8),_0x5cf7b8['forEach'](_0x5ba984=>{_0x560365['set'](_0x5ba984,_0x42bd2e);}),'insertion'!=_0x35c43c['type']&&_0x3e7ba2!=_0x3cd0e0&&_0x560365['set'](_0x4bc5c8['getIntersection'](_0x2bd1d3),_0x3e7ba2));}const _0x5c6378=[];for(const [_0x33c7fc,_0x22b209]of _0x560365){const _0x3555cf=_0xf5d073(),_0x1f4c59={'key':_0x3b6b05,'oldValue':_0x22b209,'newValue':_0x3cd0e0};_0x3b6b05['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':_0x3b6b05});const _0x5198dc=('attribute:'+(_0x3b6b05+'|'+Ht({'newValue':_0x3cd0e0})))['substring'](0x0,0x3c),_0x403809=this['_setSuggestionData']({'id':_0x3555cf,'type':_0x5198dc,'data':_0x1f4c59,'createdAt':new Date(),'authorId':_0xb68092,'attributes':_0x3718fe});_0x5c6378['push'](_0x403809),this['_addSuggestionMarker'](_0x5198dc,_0x3555cf,_0xb68092,_0x33c7fc);}return _0x5c6378;}['enableDefaultAttributesIntegration'](_0xd2f4f4){this['enableCommand'](_0xd2f4f4,(_0x48743e,..._0x4999ce)=>{this['recordAttributeChanges'](()=>{_0x48743e(..._0x4999ce);});});}['registerBlockAttribute'](_0x547ded){this['editor']['plugins']['get'](_0x2ed961)['registerBlockAttribute'](_0x547ded);}['registerInlineAttribute'](_0x3db503){this['editor']['plugins']['get'](_0x2ed961)['registerInlineAttribute'](_0x3db503);}['startTrackingSession'](_0x2cff57){return this['_trackingSessionId']=void 0x0!==_0x2cff57?_0x2cff57:_0xf5d073(),this['_trackingSessionId'];}['_getAttributeKey'](_0x2fd9be){return'attribute'==_0x2fd9be['type']?_0x2fd9be['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x268cf8){if(0x0==_0x268cf8['length'])return;const _0x10f870=this['editor'],_0x29f62a=_0x10f870['plugins']['get'](_0x1f49c4),_0x398941=[];_0x10f870['model']['change'](_0x581c10=>{for(let _0x39d2dd=0x0;_0x39d2dd<_0x268cf8['length'];_0x39d2dd++){const _0x2e12d7=_0x268cf8[_0x39d2dd];if(_0x2e12d7['baseVersion']=_0x10f870['model']['document']['version'],_0x2e12d7['isDocumentOperation']=!0x0,_0x29f62a['isMarkedRemoveOperation'](_0x2e12d7)){const _0x313beb=_0xf22ca6(_0x2e12d7['newRange'],_0x10f870['model']);_0x398941['unshift'](_0xe89877['fromRange'](_0x313beb));}else switch(_0x2e12d7['type']){case'rename':{const _0x202d4b=_0x2e12d7['oldName'],_0x661511=_0x2e12d7['newName'];if(_0x202d4b==_0x661511)break;_0x581c10['batch']['addOperation'](_0x2e12d7),_0x10f870['model']['applyOperation'](_0x2e12d7);const _0x326cea='$elementName',_0x224a6a=_0x2e12d7['position'],_0x133a4b=_0x10f870['model']['createRange'](_0x224a6a,_0x10f870['model']['createPositionAt'](_0x224a6a['nodeAfter'],'end'));this['markAttributeChange'](_0x133a4b,_0x326cea,_0x202d4b,_0x661511,{'groupId':_0xf5d073()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x440f19=_0x2e12d7['oldValue'],_0x50ef3=_0x2e12d7['newValue'];if(_0x440f19==_0x50ef3)break;_0x581c10['batch']['addOperation'](_0x2e12d7),_0x10f870['model']['applyOperation'](_0x2e12d7);const _0x5c09fe=_0x2e12d7['key'];if(!this['_isRegisteredAttribute'](_0x5c09fe))break;const _0x1b7b45=_0xf22ca6(_0x2e12d7['range'],_0x10f870['model']);this['markAttributeChange'](_0x1b7b45,_0x5c09fe,_0x440f19,_0x50ef3,{'groupId':_0xf5d073()});break;}case'insert':{_0x581c10['batch']['addOperation'](_0x2e12d7),_0x10f870['model']['applyOperation'](_0x2e12d7);if(_0x268cf8[_0x39d2dd+0x1]&&'move'==_0x268cf8[_0x39d2dd+0x1]['type'])break;const _0x24b97a=_0x2e12d7['position'],_0x390eb6=_0x2e12d7['howMany'],_0x4e2035=_0xf22ca6(_0x10f870['model']['createRange'](_0x24b97a,_0x24b97a['getShiftedBy'](_0x390eb6)),_0x10f870['model']);this['markInsertion'](_0x4e2035);break;}case'split':{_0x581c10['batch']['addOperation'](_0x2e12d7),_0x10f870['model']['applyOperation'](_0x2e12d7);const _0x49a98f=_0x2e12d7['splitPosition'],_0x2e1075=_0x2e12d7['moveTargetPosition'];this['markInsertion'](_0x10f870['model']['createRange'](_0x49a98f,_0x2e1075));break;}case'move':case'remove':_0x581c10['batch']['addOperation'](_0x2e12d7),_0x10f870['model']['applyOperation'](_0x2e12d7);}}for(const _0x4b223e of _0x398941)_0x4b223e['detach'](),this['markDeletion'](_0x4b223e);});}['_setSuggestionRange'](_0x159d66,_0x51cba6){const _0x2a7c74=_0x159d66['getFirstMarker']();this['_model']['change'](_0x76c1fe=>{_0x76c1fe['updateMarker'](_0x2a7c74,{'range':_0x51cba6});});}['_addThreadToSuggestion'](_0x2bc467){const _0xc75ce7=_0x2bc467['id'],_0x5b784c=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0xc75ce7)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5b784c,'threadId':_0xc75ce7,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x59458b=this['_commentsRepository']['getCommentThread'](_0xc75ce7);_0x59458b['unbind']('isRemovable'),_0x59458b['isRemovable']=!0x1,_0x2bc467['commentThread']=_0x59458b;}['_checkSuggestionCorrectness'](_0x41e9a1,_0x22e328,_0x55caf0,_0x5951d8){if(_0x41e9a1['type']!=_0x22e328||_0x41e9a1['subType']!=_0x55caf0||_0x41e9a1['creator']['id']!=_0x5951d8)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x187e95('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1b8071,_0x25529f){const _0x1f3bc6=_0x1b8071['getFirstRange']();if(_0x25529f['isEqual'](_0x1f3bc6))_0x1b8071['removeMarkers']();else{if(_0x1f3bc6['containsRange'](_0x25529f)){const _0x5e9eae=this['_model']['createPositionAt'](_0x25529f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1b8071,this['_model']['createRange'](_0x1f3bc6['start'],_0x5e9eae));const _0x301d93=_0xf5d073(),_0x45fe92=_0x1b8071['creator']['id'],_0x137b05=_0x1b8071['type']+':'+_0x1b8071['subType'];this['_setSuggestionData']({'id':_0x301d93,'type':_0x137b05,'createdAt':new Date(),'authorId':_0x45fe92,'data':_0x1b8071['data'],'attributes':_0x1b8071['attributes']});const _0x10bce1=this['_model']['createPositionAt'](_0x25529f['end']['parent'],'after'),_0x24f7e2=this['_model']['createRange'](_0x10bce1,_0x1f3bc6['end']);this['_addSuggestionMarker'](_0x137b05,_0x301d93,_0x45fe92,_0x24f7e2);}else{if(_0x1f3bc6['containsPosition'](_0x25529f['start'])){const _0xb1467e=this['_model']['createPositionAt'](_0x25529f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1b8071,this['_model']['createRange'](_0x1f3bc6['start'],_0xb1467e));}else{const _0x993335=this['_model']['createPositionAt'](_0x25529f['end']['parent'],'after');this['_setSuggestionRange'](_0x1b8071,this['_model']['createRange'](_0x993335,_0x1f3bc6['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x32233c){for(const {suggestion:_0x597f7c,meta:_0xdd09ee}of this['_findSuggestions'](_0x32233c,'insertion')){if(!_0xdd09ee['isOwn'])continue;const _0x6c2790=_0x597f7c['getRanges']();for(const _0x47a1ae of _0x6c2790)if(!_0x32233c['getDifference'](_0x47a1ae)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3f5d9f){return this['editor']['plugins']['get']('Users')['getUser'](_0x3f5d9f);}['_getExternalAuthor'](_0x2687e6){const _0x1180cd=this['editor']['plugins']['get']('Users'),_0x24c65a=_0x211986('external:'+_0x2687e6),_0x3d080a=_0x1180cd['getUser'](_0x24c65a);return _0x3d080a||_0x1180cd['addUser']({'id':_0x24c65a,'name':_0x2687e6});}['_createSuggestion'](_0x2c94a1,_0x46d6b8,_0x1e8c94,_0x4639a8,_0x2d70df,_0x2ec60f){const _0x176a33=this['_getAuthorFromId'](_0x4639a8);if(!_0x176a33)throw new _0x187e95('track-changes-user-not-found',this,{'authorId':_0x4639a8,'suggestionId':_0x1e8c94});const _0x29a8f3=this['_suggestionFactory']['buildSuggestion'](_0x2c94a1,_0x46d6b8,_0x1e8c94,_0x176a33,_0x2d70df,_0xdae92=>{this['_updateSuggestionData'](_0x1e8c94,{'attributes':_0xdae92});const _0x58d078=this['getSuggestion'](_0x1e8c94);this['_joinWithAdjacentSuggestions'](new Set([_0x58d078])),this['_refreshSuggestionsChain'](new Set([_0x58d078]));},_0x2ec60f);return this['listenTo'](_0x29a8f3,'accept',()=>{this['_updateSuggestionData'](_0x1e8c94,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x29a8f3,'discard',()=>{this['_updateSuggestionData'](_0x1e8c94,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1e8c94,_0x29a8f3),this['_suggestionState']['set'](_0x29a8f3,'notReady'),_0x29a8f3;}['_splitMarkerName'](_0x42965a){return _0x7af1eb(_0x42965a);}['_breakSuggestionMarker'](_0x2df886,_0x15f302,_0x13c931){const _0x110b90=_0x2df886['getFirstRange'](),_0x3e9f26=_0x110b90['start'],_0x46f322=_0x110b90['end'];this['_setSuggestionRange'](_0x2df886,this['_model']['createRange'](_0x3e9f26,_0x15f302));const _0x12ab22=_0xf5d073(),_0x4b08c9=_0x2df886['creator']['id'],_0xec1a72=_0x2df886['type']+(_0x2df886['subType']?':'+_0x2df886['subType']:'');this['_setSuggestionData']({'id':_0x12ab22,'type':_0xec1a72,'createdAt':new Date(),'authorId':_0x4b08c9,'originalSuggestionId':_0x2df886['_originalSuggestionId']||_0x2df886['id'],'attributes':_0x2df886['attributes'],'data':_0x2df886['data']});const _0x5e714f=this['_getAttributeKey'](_0x2df886);('formatBlock'==_0x2df886['type']||_0x5e714f&&this['_isBlockAttribute'](_0x5e714f))&&(_0x13c931=this['_model']['createPositionBefore'](_0x13c931['parent'])),this['_addSuggestionMarker'](_0xec1a72,_0x12ab22,_0x4b08c9,this['_model']['createRange'](_0x13c931,_0x46f322));}['_findSuggestions'](_0x55b041,_0x860a55=null){const _0x23e42d=[],_0x1e63ec=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x55b041)||(_0x55b041=[_0x55b041]);for(const _0x542eda of this['getSuggestions']()){if(!_0x542eda['isInContent'])continue;if(_0x860a55&&_0x542eda['type']!=_0x860a55)continue;let _0x310e75=!0x1;for(const _0x2f0b6a of _0x542eda['getRanges']()){for(const _0x23ee69 of _0x55b041){const _0x406c55=_0x23ee69['start']['isEqual'](_0x2f0b6a['end'])||_0x23ee69['end']['isEqual'](_0x2f0b6a['start']);if(_0x406c55||_0x23ee69['getIntersection'](_0x2f0b6a)){const _0x41a31c=_0x23ee69['containsRange'](_0x2f0b6a)&&zt(this['_model']['schema'],_0x2f0b6a['start'],_0x23ee69),_0x495cd9=_0x2f0b6a['containsRange'](_0x23ee69)&&zt(this['_model']['schema'],_0x23ee69['start'],_0x2f0b6a);_0x23e42d['push']({'suggestion':_0x542eda,'meta':{'isOwn':_0x1e63ec==_0x542eda['author'],'isNextTo':_0x406c55,'isInsideObject':_0x41a31c,'containsRangeInObject':_0x495cd9}}),_0x310e75=!0x0;break;}}if(_0x310e75)break;}}return _0x23e42d;}['_addSuggestionMarker'](_0x451f29,_0x400ffa,_0x1386c8,_0x5a1991,_0x3a9a11){this['_model']['change'](_0x235432=>{let _0x58cb09='suggestion:'+_0x451f29+':'+_0x400ffa+':'+_0x1386c8;_0x3a9a11&&(_0x58cb09=_0x58cb09+':'+_0x3a9a11),_0x235432['addMarker'](_0x58cb09,{'range':_0x5a1991,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x443600){const _0xc7f5fa=_0x443600['previous'],_0x586e61=_0x443600['next'];_0x443600['previous']=null,_0x443600['next']=null,null!=_0xc7f5fa&&_0xc7f5fa['next']==_0x443600&&(_0xc7f5fa['next']=_0x586e61),null!=_0x586e61&&_0x586e61['previous']==_0x443600&&(_0x586e61['previous']=_0xc7f5fa),'ready'==this['_suggestionState']['get'](_0x443600)&&(this['_suggestionState']['set'](_0x443600,'removed'),this['fire']('suggestionUnloaded',_0x443600,_0xc7f5fa,_0x586e61));}['_setSuggestionData'](_0x3f1c4c){const _0x264c4b=_0x3f1c4c['id'],_0x17720d=this['addSuggestionData'](_0x3f1c4c);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5b9840=this['editor']['plugins']['get']('PendingActions'),_0x24057f=_0x17720d['hasComments'],_0x19fdba=_0x17720d['subType']?_0x17720d['type']+':'+_0x17720d['subType']:_0x17720d['type'],_0x5ee410=this['editor']['locale'],_0x15aeaf=_0x5b9840['add'](o(_0x5ee410,'PENDING_ACTION_SUGGESTION')),_0x4d2bf9={'id':_0x264c4b,'type':_0x19fdba,'hasComments':_0x24057f,'data':_0x3f1c4c['data']||null,'originalSuggestionId':_0x3f1c4c['originalSuggestionId']||null,'attributes':_0x17720d['attributes']};this['_adapter']['addSuggestion'](_0x4d2bf9)['then'](_0x2ed660=>{_0x17720d['_saved']=!0x0,_0x5b9840['remove'](_0x15aeaf),_0x2ed660&&_0x2ed660['createdAt']&&(this['_suggestions']['get'](_0x264c4b)['createdAt']=_0x2ed660['createdAt']);})['catch'](_0x19ff56=>{throw _0x5ba368('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x17720d['discard']();}),_0x17720d['stopListening'](),this['_suggestions']['delete'](_0x17720d['id']),this['_suggestionState']['delete'](_0x17720d),_0x19ff56;});}return _0x17720d;}['_isBlockAttribute'](_0x58e5b3){return this['editor']['plugins']['get'](_0x2ed961)['isBlockAttribute'](_0x58e5b3);}['_isInlineAttribute'](_0x4b4116){return this['editor']['plugins']['get'](_0x2ed961)['isInlineAttribute'](_0x4b4116);}['_updateSuggestionData'](_0x1cf0cc,_0x40549f){const _0x5d28dc=this['editor']['plugins']['get']('PendingActions'),_0xe3c89c=this['getSuggestion'](_0x1cf0cc);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xe3c89c['_saved']){const _0x5d1fcc=_0x5d28dc['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1cf0cc,_0x40549f)['then'](()=>{_0x5d28dc['remove'](_0x5d1fcc);});}else _0xe3c89c['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1cf0cc,_0x40549f);});}}['_getSuggestionData'](_0x19b813){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x187e95('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x19b813);}['_handleNewSuggestionMarker'](_0x23eeb5){const {id:_0x3da551,type:_0x182e45,subType:_0x35812a,authorId:_0x516430}=this['_splitMarkerName'](_0x23eeb5),_0x53cc48=this['_suggestions']['get'](_0x3da551)||this['_createSuggestion'](_0x182e45,_0x35812a,_0x3da551,_0x516430,{});switch(this['_checkSuggestionCorrectness'](_0x53cc48,_0x182e45,_0x35812a,_0x516430),this['_suggestionState']['get'](_0x53cc48)){case'notReady':this['_getSuggestionData'](_0x3da551)['then'](_0x52c1b=>{let _0x57afe1=Promise['resolve']();_0x52c1b['hasComments']&&(_0x57afe1=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3da551})),_0x57afe1['then'](()=>{this['addSuggestionData'](_0x52c1b)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x53cc48,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3da551,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x53cc48,'ready'),this['fire']('suggestionLoaded',_0x53cc48);break;case'ready':this['fire']('suggestionChanged',_0x53cc48);}return _0x53cc48['addMarkerName'](_0x23eeb5),_0x53cc48;}['_refreshSuggestionsChain'](_0x157390){const _0x8d4280=Array['from'](_0x157390),_0x5ef75e=_0x8d4280['filter'](_0xb5cfe6=>'attribute'==_0xb5cfe6['type']);this['_refreshAttributeSuggestionsChain'](_0x5ef75e);const _0x38fefe=_0x8d4280['filter'](_0x525898=>!_0x525898['isMultiRange']&&'attribute'!=_0x525898['type']),_0x2d7a49=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x442d4b=>!_0x442d4b['isMultiRange']&&'attribute'!=_0x442d4b['type']),_0x68c8f2=_0x2d7a49['filter'](_0x411b13=>!_0x157390['has'](_0x411b13)),_0x303539=new Map(_0x2d7a49['map'](_0xb6ecc=>[_0xb6ecc,this['_suggestionFactory']['getSuggestionCallback'](_0xb6ecc['type'],_0xb6ecc['subType'],'chain')])),_0x383326=new Map(_0x2d7a49['map'](_0x48ec0b=>[_0x48ec0b,_0x48ec0b['getFirstRange']()])),_0x1522db=new Set(),_0x3df427=new Set();for(let _0x17c3a2=0x0;_0x17c3a2<_0x38fefe['length'];_0x17c3a2++)_0x49e4fe(_0x38fefe[_0x17c3a2],_0x38fefe,_0x17c3a2+0x1);for(let _0x5757a1=0x0;_0x5757a1<_0x38fefe['length'];_0x5757a1++)_0x49e4fe(_0x38fefe[_0x5757a1],_0x68c8f2,0x0);const _0x295f49=new Set();for(let _0x48c493=0x0;_0x48c493<_0x38fefe['length'];_0x48c493++){const _0x3e7ea3=_0x38fefe[_0x48c493];!_0x3df427['has'](_0x3e7ea3)&&_0x3e7ea3['previous']&&(_0x295f49['add'](_0x3e7ea3['previous']),_0x3e7ea3['previous']['next']===_0x3e7ea3&&(_0x3e7ea3['previous']['next']=null),_0x3e7ea3['previous']=null),!_0x1522db['has'](_0x3e7ea3)&&_0x3e7ea3['next']&&(_0x295f49['add'](_0x3e7ea3['next']),_0x3e7ea3['next']['previous']===_0x3e7ea3&&(_0x3e7ea3['next']['previous']=null),_0x3e7ea3['next']=null);}function _0x49e4fe(_0x2aba41,_0xd634be,_0x13dccf){for(let _0x2a5a54=_0x13dccf;_0x2a5a54<_0xd634be['length'];_0x2a5a54++){const _0x53731=_0xb42f0c(_0x2aba41,_0xd634be[_0x2a5a54]);_0x53731&&(_0x53731[0x0]['next']=_0x53731[0x1],_0x53731[0x1]['previous']=_0x53731[0x0],_0x1522db['add'](_0x53731[0x0]),_0x3df427['add'](_0x53731[0x1]));}}function _0xb42f0c(_0xe74d12,_0x20dfa2){if(_0xe74d12['author']['id']!==_0x20dfa2['author']['id'])return null;const _0x3aee2e=_0x303539['get'](_0xe74d12)(_0xe74d12,_0x20dfa2,_0x383326['get'](_0xe74d12),_0x383326['get'](_0x20dfa2));if(!_0x3aee2e)return null;return _0x303539['get'](_0x20dfa2)(_0xe74d12,_0x20dfa2,_0x383326['get'](_0xe74d12),_0x383326['get'](_0x20dfa2))?_0x3aee2e[0x1]['commentThread']&&_0x3aee2e[0x1]['commentThread']['length']?null:_0x3aee2e:null;}_0x295f49['size']&&this['_refreshSuggestionsChain'](_0x295f49);}['_refreshAttributeSuggestionsChain'](_0x52aa27){if(0x0==_0x52aa27['length'])return;const _0x4b0b66=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x297170=>'attribute'==_0x297170['type']&&_0x297170['_isDataLoaded']),_0x718562=[],_0x2a04ad=new Map();for(const _0x52555f of _0x4b0b66){const _0x4a6aa5=_0x211986(_0x52555f['attributes']);_0x2a04ad['has'](_0x4a6aa5)||(_0x2a04ad['set'](_0x4a6aa5,_0x718562['length']),_0x718562['push']([]));const _0x587775=_0x2a04ad['get'](_0x4a6aa5);_0x718562[_0x587775]['push'](_0x52555f);}!(function(){_0x718562['sort']((_0xd02f3e,_0x1f9498)=>{const _0x4e55fb=_0xd02f3e[0x0]['createdAt'],_0x58e7ad=_0x1f9498[0x0]['createdAt'];return _0x4e55fb==_0x58e7ad?_0xd02f3e[0x0]['attributes']['groupId']<_0x1f9498[0x0]['attributes']['groupId']?-0x1:0x1:_0x4e55fb<_0x58e7ad?-0x1:0x1;});for(const _0x790636 of _0x718562)_0x790636['sort']((_0x10a193,_0x3ebbf0)=>_0x10a193['id']<_0x3ebbf0['id']?-0x1:0x1);}());for(let _0x1074b1=0x0;_0x1074b1<_0x718562['length'];_0x1074b1++){if(0x0==_0x718562[_0x1074b1]['length'])continue;const _0xc4a87a=[];for(let _0x1992fe=_0x1074b1+0x1;_0x1992fe<_0x718562['length'];_0x1992fe++)0x0!=_0x718562[_0x1992fe]['length']&&_0x5bf32c(_0x718562[_0x1074b1],_0x718562[_0x1992fe])&&_0xc4a87a['push'](_0x1992fe);for(const _0x32ceca of _0xc4a87a)_0x718562[_0x1074b1]=_0x718562[_0x1074b1]['concat'](_0x718562[_0x32ceca]),_0x718562[_0x32ceca]=[];}for(const _0x40382a of _0x718562)for(let _0x1faf63=0x0;_0x1faf63<_0x40382a['length'];_0x1faf63++){const _0x59f48f=_0x40382a[_0x1faf63+0x1]||null;_0x40382a[_0x1faf63]['next']!==_0x59f48f&&(_0x40382a[_0x1faf63]['next']=_0x59f48f);}for(const _0x53164f of _0x718562)for(let _0x38b06b=0x0;_0x38b06b<_0x53164f['length'];_0x38b06b++){const _0x5875da=_0x53164f[_0x38b06b-0x1]||null;_0x53164f[_0x38b06b]['previous']!==_0x5875da&&(_0x53164f[_0x38b06b]['previous']=_0x5875da);}function _0x5bf32c(_0x56e322,_0x4a4882){if(_0x56e322[0x0]['attributes']['groupId']!==_0x4a4882[0x0]['attributes']['groupId']&&_0x56e322[0x0]['author']!==_0x4a4882[0x0]['author'])return!0x1;if(!function(_0x2d4429,_0x3f3f6b){if(!_0x2d4429['hasComments']&&!_0x3f3f6b['hasComments'])return!0x0;if(_0x2d4429['hasComments']&&_0x3f3f6b['hasComments'])return!0x1;if(_0x2d4429['hasComments']&&_0x3f3f6b['createdAt']<_0x2d4429['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3f3f6b['hasComments']&&_0x2d4429['createdAt']<_0x3f3f6b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x56e322[0x0],_0x4a4882[0x0]))return!0x1;const _0xfd2f85=Jt(_0x56e322[0x0]['attributes'],['groupId','trackingSessionId']),_0x3f1095=Jt(_0x4a4882[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x4ea718(_0xfd2f85,_0x3f1095))return!0x1;if(_0x56e322[0x0]['attributes']['groupId']==_0x4a4882[0x0]['attributes']['groupId'])return!0x0;if(_0x56e322[0x0]['attributes']['trackingSessionId']!==_0x4a4882[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x56e322['every'](_0x72e89d=>_0x4a4882['some'](_0x591ecd=>_0x72e89d['getFirstRange']()['isEqual'](_0x591ecd['getFirstRange']())))&&_0x4a4882['every'](_0x3a1bb6=>_0x56e322['some'](_0x43cb10=>_0x3a1bb6['getFirstRange']()['isEqual'](_0x43cb10['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1d8d14){const _0x12d4d3=Array['from'](_0x1d8d14),_0x3a46b3=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4b4802=_0x3a46b3['filter'](_0x34150d=>!_0x1d8d14['has'](_0x34150d)),_0x50e4cc=new Map(_0x12d4d3['map'](_0x7a701f=>[_0x7a701f,this['_suggestionFactory']['getSuggestionCallback'](_0x7a701f['type'],_0x7a701f['subType'],'join')])),_0x6d5062=new Map(_0x3a46b3['map'](_0xb7e7e=>[_0xb7e7e,_0xb7e7e['getRanges']()]));for(let _0x5c4cfa=0x0;_0x5c4cfa<_0x12d4d3['length'];_0x5c4cfa++){if(_0x4abfaa(this,_0x12d4d3[_0x5c4cfa],_0x12d4d3,_0x5c4cfa+0x1))return!0x0;}for(let _0x2518b7=0x0;_0x2518b7<_0x12d4d3['length'];_0x2518b7++){if(_0x4abfaa(this,_0x12d4d3[_0x2518b7],_0x4b4802,0x0))return!0x0;}return!0x1;function _0x4abfaa(_0x50eb4b,_0x4c88c0,_0x2f0ccb,_0x5d5b8d){for(let _0x1dc8ca=_0x5d5b8d;_0x1dc8ca<_0x2f0ccb['length'];_0x1dc8ca++){const _0x186f52=_0x2f0ccb[_0x1dc8ca];if(_0x186f52['type']!==_0x4c88c0['type']||_0x186f52['author']['id']!==_0x4c88c0['author']['id']||_0x186f52['subType']!==_0x4c88c0['subType'])continue;if(!en(_0x4c88c0,_0x186f52))continue;if('attribute'==_0x4c88c0['type']&&_0x4c88c0['data']['oldValue']!=_0x186f52['data']['oldValue'])continue;if('attribute'==_0x4c88c0['type']&&_0x50eb4b['_isBlockAttribute'](_0x4c88c0['data']['key']))continue;if('formatBlock'==_0x4c88c0['type']){const _0x1ddf2a=_0x50eb4b['editor']['model'],_0x4db2e9=_0x4c88c0['getContainedElement']();if(_0x4db2e9&&(_0x1ddf2a['schema']['isObject'](_0x4db2e9)||_0x1ddf2a['schema']['isLimit'](_0x4db2e9)))continue;}const _0x1263ec=_0x50e4cc['get'](_0x4c88c0),_0x2fd586=_0x6d5062['get'](_0x4c88c0),_0x3a8d28=_0x6d5062['get'](_0x186f52),_0x191908=_0x4c88c0['commentThread']&&_0x4c88c0['commentThread']['length'],_0x5038c9=_0x186f52['commentThread']&&_0x186f52['commentThread']['length'];if(!_0x191908&&_0x1263ec(_0x3a8d28,_0x2fd586))return _0x50eb4b['_joinSuggestions'](_0x186f52,_0x4c88c0),_0x6d5062['delete'](_0x4c88c0),!0x0;if(!_0x5038c9&&_0x1263ec(_0x2fd586,_0x3a8d28))return _0x50eb4b['_joinSuggestions'](_0x4c88c0,_0x186f52),_0x6d5062['delete'](_0x186f52),!0x0;}return!0x1;}}['_joinSuggestions'](_0x468de5,_0x55e6c6){if(_0x468de5['isMultiRange']){for(const _0x50b66a of _0x55e6c6['getRanges']())_0x468de5['addRange'](_0x50b66a);}else{const _0x2c01ca=_0x55e6c6['getFirstRange']()['end'];this['_setSuggestionRange'](_0x468de5,this['_model']['createRange'](_0x468de5['getFirstRange']()['start'],_0x2c01ca));}_0x55e6c6['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4ed1c0,_0x20f45b,_0x52bb7f){const _0x243eb2=_0x4ed1c0['startsWith']('format')||_0x4ed1c0['startsWith']('attribute')?'FORMATTING':_0x4ed1c0['toUpperCase']();return o(this['editor']['locale'],_0x20f45b+'_'+_0x243eb2+'_SUGGESTION_ANNOUNCEMENT',_0x52bb7f);}['_initAriaMarkerChangeAnnouncements'](){const _0x5165bb=this['editor'];if(!_0x5165bb['ui'])return;const {ariaLiveAnnouncer:_0x4ebc56}=_0x5165bb['ui'];_0x2dd89b(this['_model'],({left:_0x851466,entered:_0x69bb5b})=>{for(const _0x50bb72 of _0x851466){const {group:_0x2f7f9a,type:_0x3172ff}=this['_splitMarkerName'](_0x50bb72['name']);if('suggestion'===_0x2f7f9a){_0x4ebc56['announce'](this['_getMarkerAnnouncementText'](_0x3172ff,'LEAVE'));break;}}for(const _0x164f1a of _0x69bb5b){const {group:_0x259c2d,type:_0x356a0c}=this['_splitMarkerName'](_0x164f1a['name']);if('suggestion'===_0x259c2d){_0x4ebc56['announce'](this['_getMarkerAnnouncementText'](_0x356a0c,'ENTER',_0x56040c(_0x209231)));break;}}});}['_processAttributeChanges'](_0x15fbba){if(this['_recordAttributeSuggestions'])return!0x1;const _0x450f3c=this['editor'],_0x55036d=_0x450f3c['model']['document']['differ']['getChanges']();if(0x0==_0x55036d['length'])return!0x1;const _0x27b006=[],_0x16aae9=_0x55036d['filter'](_0x4579ce=>'attribute'==_0x4579ce['type']),_0x560be9=_0x55036d['filter'](_0x23c4b4=>'insert'==_0x23c4b4['type']&&'$text'!=_0x23c4b4['name']),_0x477d35=_0x55036d['filter'](_0x1d2aa0=>'remove'==_0x1d2aa0['type']&&'$text'!=_0x1d2aa0['name']);for(const _0x34be15 of _0x16aae9)_0x27b006['push']({'key':_0x34be15['attributeKey'],'newValue':_0x34be15['attributeNewValue'],'oldValue':_0x34be15['attributeOldValue'],'range':Zt(_0x34be15['range'],_0x450f3c['model'])});for(const _0x54c2d4 of _0x560be9){const _0x4e62b5=_0x477d35['find'](_0x228339=>_0x228339['position']['isEqual'](_0x54c2d4['position']));_0x4e62b5&&_0x27b006['push']({'key':m,'newValue':_0x54c2d4['name'],'oldValue':_0x4e62b5['name'],'range':_0x450f3c['model']['createRangeOn'](_0x54c2d4['position']['nodeAfter'])});}return 0x0!=_0x27b006['length']&&this['_reduceExistingSuggestions'](_0x15fbba,_0x27b006);}['_processAttributeSuggestions'](_0x3586ac){let _0x38bce0=!0x1;const _0x64a16c=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xa77f3e=>_0xa77f3e['data']['newRange']&&_0xa77f3e['name']['startsWith']('suggestion:attribute:'));for(const _0x2a37c4 of _0x64a16c){const {subType:_0x143a46,id:_0x4aa4cc}=this['_splitMarkerName'](_0x2a37c4['name']),_0x1347c9=_0x143a46['split']('|')[0x0];for(const _0x2f83aa of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2f83aa['id']!=_0x4aa4cc&&'attribute'==_0x2f83aa['type']&&_0x2f83aa['data']&&_0x2f83aa['data']['key']==_0x1347c9&&_0x2f83aa['getFirstRange']()['isIntersecting'](_0x2a37c4['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2f83aa,_0x2a37c4['data']['newRange'],_0x3586ac),_0x38bce0=!0x0);}return _0x38bce0;}['recordAttributeChanges'](_0xebde28){this['_recordAttributeSuggestions']=!0x0,_0xebde28();}['_isRegisteredAttribute'](_0x3b5227){return this['editor']['plugins']['get'](_0x2ed961)['isRegisteredAttribute'](_0x3b5227);}['_reduceExistingSuggestions'](_0x2cafed,_0x43f467){if(0x0==_0x43f467['length'])return!0x1;let _0x5438d2=!0x1;for(const _0x4f9200 of _0x43f467){const _0x2f8b0f=this['_findSuggestions'](_0x4f9200['range'],'attribute')['filter'](_0x2d1ef3=>!_0x2d1ef3['meta']['isNextTo'])['map'](_0x5dad04=>_0x5dad04['suggestion']),_0x42c036=_0x211986({'newValue':_0x4f9200['newValue']});_0x2f8b0f['filter'](_0x49aac5=>{const [_0x1a0175,_0x3a4292]=_0x49aac5['subType']['split']('|');return _0x1a0175==_0x4f9200['key']&&_0x3a4292!=_0x42c036;})['forEach'](_0x5196ac=>{this['_reduceSuggestionAttributeRange'](_0x5196ac,_0x4f9200['range'],_0x2cafed),_0x5438d2=!0x0;});}return _0x5438d2;}['_reduceSuggestionAttributeRange'](_0x245adf,_0x4822de,_0x30d9f0){const _0x4e425c=_0x245adf['getFirstRange']()['getDifference'](_0x4822de);0x0!==_0x4e425c['length']?0x1!==_0x4e425c['length']?this['_breakSuggestionMarker'](_0x245adf,_0x4822de['start'],_0x4822de['end']):this['_setSuggestionRange'](_0x245adf,_0x4e425c[0x0]):_0x30d9f0['removeMarker'](_0x245adf['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x20c956){this['_editor']=_0x20c956,this['_model']=_0x20c956['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5df3a4,_0xccade1,_0x1a8b07,_0x266006,_0x1ce6b6,_0x3ef86c,_0x48dba4){return new T(this['_model'],{'type':_0x5df3a4,'subType':_0xccade1,'id':_0x1a8b07,'originalSuggestionId':_0x48dba4,'author':_0x266006,'creator':_0x266006,'attributes':_0x1ce6b6,'onAttributesChange':_0x3ef86c,'onAccept':(..._0x2704e5)=>this['getSuggestionCallback'](_0x5df3a4,_0xccade1,'accept')(..._0x2704e5),'onDiscard':(..._0x25da85)=>this['getSuggestionCallback'](_0x5df3a4,_0xccade1,'discard')(..._0x25da85)});}['registerCustomCallback'](_0x5004ee,_0x2753ef,_0x5d1474,_0x16c209){const _0x477b03=_0x5004ee+':'+_0x2753ef+':'+_0x5d1474;this['_customCallbacks']['set'](_0x477b03,_0x16c209);}['getSuggestionCallback'](_0x5f0c7b,_0x4864fb,_0x39afa5){const _0x2a003f=_0x5f0c7b+':'+_0x4864fb+':'+_0x39afa5;return this['_customCallbacks']['get'](_0x2a003f)||this['_defaultCallbacks']['get'](_0x5f0c7b+':'+_0x39afa5);}['_registerDefaultCallbacks'](){const _0x4cd09=()=>!0x1,_0x35cf78=_0x159109=>{_0x159109['sort']((_0x485421,_0x1f0f9b)=>_0x485421['start']['isBefore'](_0x1f0f9b['start'])?0x1:-0x1),this['_model']['change'](_0x582703=>{for(const _0x5272ae of _0x159109){let _0x2eef53;_0x2eef53=_0x5272ae['end']['isAtEnd']&&_0x5272ae['end']['parent']==_0x5272ae['start']['nodeAfter']?_0x582703['createSelection'](_0x5272ae['start']['nodeAfter'],'on'):_0x582703['createSelection'](_0x5272ae),this['_model']['deleteContent'](_0x2eef53,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x361057=(_0x5760c4,_0x489030)=>{_0x489030&&this['_model']['change'](_0x3aca84=>{const {commandName:_0x34bac6,commandParams:_0x115741=[]}=_0x489030,_0x8918d5=_0x5760c4['map'](_0x59f84f=>(Kt(_0x59f84f)&&(_0x59f84f=this['_model']['createRange'](_0x59f84f['end'])),_0x59f84f))['filter'](_0x11b4e0=>'$graveyard'!==_0x11b4e0['root']['rootName']);if(_0x8918d5['length']<0x1)return;const _0x4dbe03=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5f024e=>_0xe89877['fromRange'](_0x5f024e));_0x3aca84['setSelection'](_0x8918d5);for(const _0x20da44 of this['_editor']['commands']['commands']())_0x20da44['refresh']();_0x115741['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x34bac6,..._0x115741);const _0x3a184a=_0x4dbe03['filter'](_0x4bd467=>'$graveyard'!=_0x4bd467['root']['rootName']);_0x3a184a['length']>0x0&&_0x3aca84['setSelection'](_0x3a184a);for(const _0x8d0bbf of _0x4dbe03)_0x8d0bbf['detach']();});},_0xe653f3=(_0x4742b9,_0x2f3cf4)=>0x1==_0x4742b9['length']&&0x1==_0x2f3cf4['length']&&_0x4742b9[0x0]['end']['isEqual'](_0x2f3cf4[0x0]['start']),_0x50e9dd=(_0xf5c612,_0x447b96,_0x152f72,_0x3727b1)=>nn(_0xf5c612,_0x447b96,_0x152f72,_0x3727b1)?[_0xf5c612,_0x447b96]:nn(_0x447b96,_0xf5c612,_0x3727b1,_0x152f72)?[_0x447b96,_0xf5c612]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4cd09),this['_defaultCallbacks']['set']('insertion:discard',_0x35cf78),this['_defaultCallbacks']['set']('insertion:join',_0xe653f3),this['_defaultCallbacks']['set']('insertion:chain',_0x50e9dd),this['_defaultCallbacks']['set']('deletion:accept',_0x35cf78),this['_defaultCallbacks']['set']('deletion:discard',_0x4cd09),this['_defaultCallbacks']['set']('deletion:join',_0xe653f3),this['_defaultCallbacks']['set']('deletion:chain',_0x50e9dd),this['_defaultCallbacks']['set']('formatInline:accept',_0x361057),this['_defaultCallbacks']['set']('formatInline:discard',_0x4cd09),this['_defaultCallbacks']['set']('formatInline:join',_0xe653f3),this['_defaultCallbacks']['set']('formatInline:chain',_0x4cd09),this['_defaultCallbacks']['set']('formatBlock:accept',_0x361057),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4cd09),this['_defaultCallbacks']['set']('formatBlock:join',_0xe653f3),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4cd09),this['_defaultCallbacks']['set']('attribute:accept',_0x4cd09),this['_defaultCallbacks']['set']('attribute:discard',(_0x490b4b,_0x409509)=>{if(!_0x409509)return;const _0x4882ce=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x89d209=>{if(_0x409509['key']==m)for(const _0x103dff of _0x490b4b){const _0x400ace=_0x103dff['start']['nodeAfter'],_0x5c8031=_0x409509['oldValue'];_0x89d209['rename'](_0x400ace,_0x5c8031);}else{if(_0x4882ce['_isBlockAttribute'](_0x409509['key'])){for(const _0x479a1f of _0x490b4b)void 0x0!==_0x409509['oldValue']?_0x89d209['setAttribute'](_0x409509['key'],_0x409509['oldValue'],_0x479a1f['start']['nodeAfter']):_0x89d209['removeAttribute'](_0x409509['key'],_0x479a1f['start']['nodeAfter']);}else{for(const _0x280470 of _0x490b4b)_0x409509['oldValue']?_0x89d209['setAttribute'](_0x409509['key'],_0x409509['oldValue'],_0x280470):_0x89d209['removeAttribute'](_0x409509['key'],_0x280470);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0xe653f3);}}function zt(_0x1978e2,_0x4a1c24,_0x24294e){for(const _0x480435 of _0x4a1c24['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x480435['root']==_0x480435)return!0x1;if(!_0x24294e['containsItem'](_0x480435))return!0x1;if(_0x1978e2['isObject'](_0x480435)||_0x1978e2['isLimit'](_0x480435))return!0x0;}return!0x1;}function Kt(_0x34a307){return _0x34a307['end']['parent']==_0x34a307['start']['nodeAfter']&&_0x34a307['end']['isAtStart'];}function Wt(_0x4592c5,_0x2bc58c,_0x39b3b8,_0x1dd842){const _0x222355=_0x1a822=>!_0x1a822['item']['is']('$textProxy')&&!_0x1dd842['isObject'](_0x1a822['item']),_0xcd7b55=_0x4592c5['start']['getLastMatchingPosition'](_0x222355),_0x5f10f7=_0x4592c5['end']['getLastMatchingPosition'](_0x222355,{'direction':'backward'});return(!_0x4592c5['start']['isEqual'](_0xcd7b55)||!_0x4592c5['end']['isEqual'](_0x5f10f7))&&(_0xcd7b55['isBefore'](_0x5f10f7)?_0x39b3b8['updateMarker'](_0x2bc58c,{'range':_0x39b3b8['createRange'](_0xcd7b55,_0x5f10f7)}):_0x39b3b8['removeMarker'](_0x2bc58c),!0x0);}function Ht(_0x240f12){return _0x211986(_0x240f12);}function Qt(_0x1fef9a){const _0x343518=_0x1fef9a['start']['nodeAfter'];return _0x343518&&_0x343518['is']('element');}function Xt(_0x3511f4){return Kt(_0x3511f4)||function(_0x180d12){return _0x180d12['start']['parent']==_0x180d12['end']['nodeBefore']&&_0x180d12['start']['isAtEnd'];}(_0x3511f4);}function Yt(_0x19bbd8,_0x389b28){try{const _0x51dd1c=_0x19bbd8['getRange']();for(const _0x51d40a of _0x389b28)if(_0x19bbd8!==_0x51d40a&&_0x51dd1c&&_0x51dd1c['isIntersecting'](_0x51d40a['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x5b6b26,_0x5745dd){return null==_0x5b6b26['end']['nodeBefore']&&_0x5b6b26['end']['parent']==_0x5b6b26['start']['nodeAfter']?tn(_0x5b6b26['start']['nodeAfter'],_0x5745dd):_0x5b6b26;}function tn(_0x11c0ab,_0x2babb0){const _0x63d4b2=_0x2babb0['schema']['isObject'](_0x11c0ab)||_0x2babb0['schema']['isSelectable'](_0x11c0ab);return _0x2babb0['createRange'](_0x2babb0['createPositionAt'](_0x11c0ab,'before'),_0x63d4b2?_0x2babb0['createPositionAfter'](_0x11c0ab):_0x2babb0['createPositionAt'](_0x11c0ab,'end'));}function nn(_0x4ea166,_0x583970,_0x28845f,_0x3fffdb){return!!en(_0x4ea166,_0x583970)&&_0x28845f['end']['isEqual'](_0x3fffdb['start']);}function en(_0x36149d,_0x148c26){if(!_0x36149d['_isDataLoaded']||!_0x148c26['_isDataLoaded'])return!0x1;const _0x3f1c60=new Set(Object['keys'](_0x36149d['attributes'])),_0x27ce54=new Set(Object['keys'](_0x148c26['attributes']));if(_0x3f1c60['delete']('groupId'),_0x27ce54['delete']('groupId'),0x0==_0x3f1c60['size']&&0x0==_0x27ce54['size'])return!0x0;if(_0x3f1c60['size']!=_0x27ce54['size'])return!0x1;const _0x24c968={..._0x36149d['attributes']},_0x2e4191={..._0x148c26['attributes']};return delete _0x24c968['groupId'],delete _0x2e4191['groupId'],JSON['stringify'](_0x24c968)==JSON['stringify'](_0x2e4191);}function sn(_0x9e68cd,_0x28379f){const _0x219fd9=on(_0x9e68cd['attributes']),_0x4f2bb8=on(_0x28379f);if(!_0x9e68cd['_isDataLoaded'])return!0x1;for(const _0x23bf4c of Object['keys'](_0x4f2bb8))if(!_0x4ea718(_0x219fd9[_0x23bf4c],_0x4f2bb8[_0x23bf4c]))return!0x1;return!0x0;}function on(_0x45d16e){const _0x1f69f0=Object['assign']({},_0x45d16e);return delete _0x1f69f0['skipNestingCheck'],delete _0x1f69f0['tablePasteChainId'],_0x1f69f0;}class pe extends/* #__PURE__ -- @preserve */
26
- _0x22fddc(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x508be7,_0x4e4222,_0x38a303,_0x6bca3d){super(),this['model']=_0x4e4222,this['view']=_0x38a303,this['commentThreadController']=_0x6bca3d,this['_editor']=_0x508be7,this['_acceptCommand']=_0x508be7['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x508be7['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1fb189,_0x45c00e)=>_0x1fb189||_0x45c00e),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x253723=>_0x253723&&this['_editor']['model']['canEditAt'](_0x4e4222['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x47e7b9=>_0x47e7b9&&this['_editor']['model']['canEditAt'](_0x4e4222['getRanges']())),this['_pendingAction']=null,_0x38a303['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x38a303,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x38a303,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x38a303,'change:isDirty',()=>{_0x38a303['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 _0x3a9fb0=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3a9fb0);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0xe23dbb{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1fe007,_0x111f03,_0x3ecd69,_0x93eb1c){super(_0x1fe007),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x678961(_0x1fe007,o(_0x1fe007,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x111f03['authoredAt']),this['bind']('authoredAt')['to'](_0x111f03),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',_0x111f03,'authoredAt',this,'descriptionParts',(_0x50882d,_0x1109a2,_0x2f11d0)=>{const _0x4fe78d=_0x2f11d0['map'](_0x48fa56=>ls(_0x48fa56['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x50882d-0x1,_0x111f03['author']['name'],_0x1109a2?_0x93eb1c['formatDateTime'](_0x1109a2):'',new DOMParser()['parseFromString'](_0x4fe78d,'text/html')['body']['textContent']]);}),this['focusables']=new _0x18cdf1(),this['focusTracker']=new _0x38b42b(),this['keystrokes']=new _0x2625f3(),this['focusCycler']=new _0x1d5863({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x477c12=>_0x477c12['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x111f03,this['_localUser']=_0x3ecd69,this['_config']=_0x93eb1c,_0x93eb1c['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xad1d28(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1e59df}=this['_config'];this['commentsListView']=new _0x1e59df(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',_0x114d7f=>_0x114d7f+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1a0ed7,_0x32efb6)=>_0x1a0ed7||!!_0x32efb6);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3dc211}=this['_config'],_0x236f7c=new _0x3dc211(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2fbc74=_0x236f7c['commentInputView'];return _0x236f7c['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2fbc74,'value',(_0x5b0032,_0x1b16fb,_0x1156b2)=>!!_0x1156b2||_0x5b0032&&!_0x1b16fb),_0x2fbc74['on']('submit',(_0xd1bbb3,_0xa2ea29)=>{this['fire']('addComment',_0xa2ea29),_0x2fbc74['editor']['setData']('');}),_0x2fbc74['on']('cancel',()=>this['focus']()),_0x2fbc74['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x236f7c;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x102d47,_0x1546fa,_0x4b0927,_0x56f03d){super(_0x102d47,_0x1546fa,_0x4b0927,_0x56f03d),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x516b7b=>_0x516b7b&&_0x516b7b[0x0]?_0x516b7b[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3d0f0c,_0x5ee524)=>{let _0x58f548='';for(const _0xedc2a5 of _0x3d0f0c)_0x58f548+='<p>'+ls(_0xedc2a5['content'],_0xedc2a5['color'])+'</p>';return _0x5ee524?_0x58f548:_0x1550e6(_0x58f548,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x56f03d['SuggestionView'](_0x102d47,_0x1546fa,{'formatDateTime':_0x56f03d['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 _0xd7730b=this['bindTemplate'],_0x5a90c0=[this['suggestionView']];return this['commentsListView']&&_0x5a90c0['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5a90c0['push'](this['commentThreadInputView']),_0x5a90c0['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0xd7730b['if']('isActive','ck-suggestion-wrapper--active'),_0xd7730b['to']('type',_0x37b0c9=>'ck-suggestion-'+_0x37b0c9),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':_0xd7730b['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5a90c0};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0xe23dbb{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x46b503,_0x486729,_0x46b5b){super(_0x46b503),this['_model']=_0x486729,this['_config']=_0x46b5b,this['set']('description',''),this['bind']('authoredAt')['to'](_0x486729),this['acceptButton']=this['_createButton'](o(_0x46b503,'Accept\x20suggestion'),_0x29c6a1,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x46b503,'Discard\x20suggestion'),_0x3e6f6a,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x92466b(_0x46b503,_0x486729['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x18cdf1([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x38b42b(),this['keystrokes']=new _0x2625f3(),this['focusCycler']=new _0x1d5863({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4e383a=>_0x4e383a['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2aef5c=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2aef5c['innerHTML']=this['description'],this['on']('change:description',(_0x266be9,_0x3b6e47,_0x5abe64)=>{_0x2aef5c['innerHTML']=_0x5abe64;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5f0143=this['bindTemplate'],_0x4735c4=[{'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':_0x5f0143['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5f0143['to']('authoredAt',_0x355e6b=>this['_config']['formatDateTime'](_0x355e6b))}]}]},{'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']&&_0x4735c4['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':_0x4735c4}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x1299fd,_0x450731,_0x37d66f,_0x45ac3d,_0x36296c){const _0x48e7d4=new _0x4e8bf4(this['locale']);return _0x48e7d4['set']({'label':_0x1299fd,'icon':_0x450731,'tooltip':!0x0,'tooltipPosition':_0x36296c}),_0x48e7d4['extendTemplate']({'attributes':{'class':_0x37d66f}}),_0x48e7d4['on']('execute',()=>{this['fire'](_0x45ac3d,this['_model']['id']);}),_0x48e7d4;}['_setupKeyboardNavigation'](){const _0x1523c5=this['element'];this['keystrokes']['listenTo'](_0x1523c5);for(const _0x3d6c6f of this['focusables'])this['focusTracker']['add'](_0x3d6c6f['element']),this['keystrokes']['listenTo'](_0x3d6c6f['element']);this['keystrokes']['set']('enter',(_0x5e3bde,_0x4fba93)=>{_0x1523c5===_0x5e3bde['target']&&(this['focusCycler']['focusFirst'](),_0x4fba93());}),this['keystrokes']['set']('esc',(_0x5b7936,_0xe21a0)=>{_0x1523c5!==_0x5b7936['target']&&(this['focus'](),_0xe21a0());});}}class u extends _0x5107bb{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x35c2b4,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x122298){super(_0x122298),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x263861=this['editor']['config'];_0x263861['define']('trackChanges.SuggestionThreadView',fe),_0x263861['define']('trackChanges.SuggestionView',we),_0x263861['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x263861['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2a18e7,_0x51d5de){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x20ff78,_0x26e99a]of this['_handleControllerBuffer']){const _0x26c89b=this['_suggestionToController']['has'](_0x20ff78);_0x26c89b||_0x26e99a?_0x26c89b&&_0x26e99a&&this['_destroyController'](_0x20ff78):this['_initializeController'](_0x20ff78);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2a18e7,_0x51d5de);}['init'](){const _0x47f552=this['editor'],_0x1b502a=_0x47f552['plugins']['get']('TrackChangesEditing'),_0x157b00=_0x47f552['plugins']['get']('Annotations'),_0x229fb1=_0x47f552['plugins']['get']('EditorAnnotations'),_0x25aa7c=_0x47f552['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x229fb1['addSourceCollector'](()=>{const _0x1263d5=[];for(const [_0x3d4a01,_0x465ec1]of Array['from'](this['_suggestionToController'])){const _0x264f02=_0x3d4a01['getAllAdjacentSuggestions'](),_0x5b9b77=[];for(const _0x190de3 of _0x264f02){if(!_0x190de3['isInContent'])continue;if(_0x190de3['isMultiRange']){_0x5b9b77['push'](..._0x190de3['getRanges']());continue;}const _0x3c0e4b=_0x190de3['getFirstRange']();if(_0x5b9b77['length']>0x0){const _0x78a5ea=_0x5b9b77[0x0]['getJoined'](_0x3c0e4b);if(_0x78a5ea){_0x5b9b77[0x0]=_0x78a5ea;continue;}}_0x5b9b77['push'](_0x3c0e4b);}_0x1263d5['push']([_0x465ec1['view'],_0x5b9b77]);}return _0x1263d5;}),this['listenTo'](_0x1b502a,'suggestionLoaded',(_0x4abb08,_0x1d1973)=>{this['listenTo'](_0x1d1973,'change:previous',(_0x4d9271,_0x3a55a1,_0x19c380,_0x51ba29)=>{_0x1d1973['isInContent']&&(null==_0x19c380?(this['_updateController'](_0x51ba29['head']),this['_handleSuggestionControllerDelayed'](_0x1d1973,!0x1)):(this['_updateController'](_0x19c380['head']),null==_0x51ba29&&this['_handleSuggestionControllerDelayed'](_0x1d1973,!0x0)));}),null!==_0x1d1973['previous']?this['_updateController'](_0x1d1973['head']):this['_handleSuggestionControllerDelayed'](_0x1d1973,!0x1);}),this['listenTo'](_0x1b502a,'suggestionUnloaded',(_0x58c4d2,_0x46d3dc,_0x54edec)=>{this['stopListening'](_0x46d3dc,'change:previous'),this['_handleControllerBuffer']['delete'](_0x46d3dc),this['_suggestionToController']['has'](_0x46d3dc)&&this['_destroyController'](_0x46d3dc),_0x54edec&&this['_updateController'](_0x54edec['head']);}),this['listenTo'](_0x1b502a,'suggestionChanged',(_0x1a5ca5,_0x4e673e)=>{this['_updateController'](_0x4e673e);}),this['listenTo'](_0x157b00,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x25aa7c,'addComment',(_0x46f413,{threadId:_0x513d3e,isFromAdapter:_0x44be8d})=>{if(_0x44be8d||!_0x1b502a['hasSuggestion'](_0x513d3e))return;const _0x5bdfec=_0x1b502a['getSuggestion'](_0x513d3e);this['_suggestionToController']['get'](_0x5bdfec)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4b3853=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x22fd4e;for(const _0x1c3f74 in _0x4b3853){const _0x3d5e71=_0x1c3f74,_0x16fb74=_0x4b3853[_0x3d5e71];if('trackChangesLicenseKeyValid'==_0x16fb74||'trackChangesLicenseKeyInvalid'==_0x16fb74||'trackChangesLicenseKeyExpired'==_0x16fb74||'trackChangesLicenseKeyDomainLimit'==_0x16fb74||'trackChangesLicenseKeyNotAllowed'==_0x16fb74||'trackChangesLicenseKeyEvaluationLimit'==_0x16fb74||'trackChangesLicenseKeyUsageLimit'==_0x16fb74){delete _0x4b3853[_0x3d5e71],_0x22fd4e=_0x16fb74,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x22fd4e&&_0x4b3853['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x22fd4e&&_0x4b3853['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x22fd4e&&_0x4b3853['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x22fd4e&&_0x4b3853['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x22fd4e&&_0x4b3853['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x22fd4e&&_0x4b3853['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x3dafee){const _0x38daa2=this['_suggestionToController']['get'](_0x3dafee);if(!_0x38daa2)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x38daa2['view'])||null;}['getSuggestionForAnnotation'](_0x2467ae){const _0x53016b=this['_viewToController']['get'](_0x2467ae['innerView']);return _0x53016b?_0x53016b['model']:null;}['_refreshActiveMarkers'](){const _0x237c1c=this['editor']['plugins']['get']('Annotations'),_0x12d214=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4de264=Array['from'](_0x237c1c['activeAnnotations'],_0x297ff8=>_0x297ff8['innerView'])['filter'](_0x3b8a27=>this['_viewToController']['has'](_0x3b8a27)),_0x49ab5a=[];for(const _0x240eed of _0x4de264){const _0x100de5=this['_viewToController']['get'](_0x240eed)['model']['getAllAdjacentSuggestions']();_0x49ab5a['push'](..._0x100de5['reduce']((_0x5554e4,_0x124349)=>[..._0x5554e4,..._0x124349['getMarkerNames']()],[]));}_0x12d214['activeMarkers']=_0x49ab5a;}['_addUIComponentsToFactory'](){const _0x59d3b0=this['editor'],_0x4ee10c=_0x59d3b0['locale'],_0x2e5649=o(_0x4ee10c,'Track\x20changes'),_0x565dcd=new _0x3bd0ac([{'type':'switchbutton','model':new _0x4c9776({'withText':!0x0,'isToggleable':!0x0,'label':_0x2e5649,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4c9776({'withText':!0x0,'label':o(_0x4ee10c,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4c9776({'withText':!0x0,'label':o(_0x4ee10c,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4c9776({'withText':!0x0,'label':o(_0x4ee10c,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4c9776({'withText':!0x0,'label':o(_0x4ee10c,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x59d3b0['plugins']['has']('TrackChangesPreview')&&_0x565dcd['addMany']([{'type':'separator'},{'type':'button','model':new _0x4c9776({'withText':!0x0,'label':o(_0x4ee10c,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x4fd689 of _0x565dcd)if(ke(_0x4fd689)){const _0x46fdf2=_0x59d3b0['commands']['get'](_0x4fd689['model']['commandName']);_0x4fd689['model']['bind']('isOn','isEnabled')['to'](_0x46fdf2,'value','isEnabled');}_0x59d3b0['ui']['componentFactory']['add']('trackChanges',_0x14a47d=>this['_createToolbarButton'](_0x14a47d,_0x565dcd,_0x2e5649)),_0x59d3b0['ui']['componentFactory']['add']('menuBar:trackChanges',_0x43ed1a=>this['_createMenuBarMenu'](_0x43ed1a,_0x565dcd,_0x2e5649));}['_createToolbarButton'](_0x2a2e52,_0x43bd1b,_0x37e960){const _0x3c1e04=_0xd67522(_0x2a2e52,_0x1d00b2),_0x28adb3=this['editor']['commands']['get']('trackChanges');_0x3c1e04['buttonView']['set']({'tooltip':_0x37e960,'label':_0x37e960,'icon':_0x552007}),_0x3c1e04['buttonView']['bind']('isOn')['to'](_0x28adb3,'value'),_0x3c1e04['buttonView']['on']('execute',()=>{_0x28adb3['execute'](),this['editor']['editing']['view']['focus']();}),_0x135e0f(_0x3c1e04,_0x43bd1b,{'role':'menu'});const _0x29ae75=[];for(const _0x318360 of _0x43bd1b)ke(_0x318360)&&_0x29ae75['push'](this['editor']['commands']['get'](_0x318360['model']['commandName']));const _0x551ecf=_0x3c1e04['buttonView'];return _0x551ecf['actionView']['unbind']('isEnabled'),_0x551ecf['arrowView']['unbind']('isEnabled'),_0x551ecf['actionView']['bind']('isEnabled')['to'](_0x28adb3,'isEnabled'),_0x551ecf['arrowView']['bind']('isEnabled')['toMany'](_0x29ae75,'isEnabled',(..._0x27764f)=>_0x27764f['some'](_0xfa68eb=>_0xfa68eb)),_0x3c1e04['on']('execute',_0xcdfdcf=>{this['editor']['execute'](_0xcdfdcf['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3c1e04;}['_createMenuBarMenu'](_0x35e44e,_0x254678,_0x13b469){const _0x238165=new _0x1aefad(_0x35e44e),_0x135d8d=this['editor']['commands']['get']('trackChanges');_0x238165['buttonView']['set']({'label':_0x13b469,'icon':_0x552007});const _0x44ad75=new _0x540b6e(_0x35e44e);for(const _0xf6ad0 of _0x254678){if('separator'==_0xf6ad0['type']){_0x44ad75['items']['add'](new _0x3a3cfb(_0x35e44e));continue;}const _0x2f6b0a=new _0x5a3971(_0x35e44e,_0x238165),_0x3611c9=new _0x380209(_0x35e44e),_0x263f3f=_0xf6ad0['model'];_0x3611c9['bind'](...Object['keys'](_0x263f3f))['to'](_0x263f3f),_0x3611c9['delegate']('execute')['to'](_0x238165),_0x3611c9['on']('execute',()=>{this['editor']['execute'](_0x263f3f['commandName']),this['editor']['editing']['view']['focus']();}),_0x2f6b0a['children']['add'](_0x3611c9),_0x44ad75['items']['add'](_0x2f6b0a);}return _0x238165['bind']('isEnabled')['to'](_0x135d8d,'isEnabled'),_0x238165['panelView']['children']['add'](_0x44ad75),_0x238165;}['_initializeController'](_0x1dde04){const _0x5b9b6c=this['editor'],_0x7bf776=_0x5b9b6c['config'],_0x2d25e0=_0x5b9b6c['plugins']['get']('Annotations'),_0x1328f1=_0x5b9b6c['plugins']['get']('CommentsRepository'),_0x4d96de=_0x5b9b6c['plugins']['get']('EditorAnnotations'),_0x25f456=_0x5b9b6c['plugins']['get'](_0x35c2b4)['me'],_0x3a6dbd=_0x7bf776['get']('trackChanges')['SuggestionThreadView'],_0x397f6c=_0x7bf776['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x52b45d,CommentThreadInputView:_0x35092e}=_0x5b9b6c['plugins']['get']('CommentsUI');let _0x2b3f7f,_0x15de5d,_0x47f3ba;this['_annotationViews']['has'](_0x1dde04['id'])?(_0x15de5d=this['_annotationViews']['get'](_0x1dde04['id']),_0x2b3f7f=_0x15de5d['mainView']):(_0x2b3f7f=new _0x3a6dbd(_0x5b9b6c['locale'],_0x1dde04,_0x25f456,{'disableComments':this['_disableComments'],'editorConfig':{..._0x7bf776['get']('comments.editorConfig'),'licenseKey':_0x7bf776['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x7bf776['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x7bf776['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x7bf776['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2a46d4(_0x7bf776['get']('locale'),_0x5b9b6c['locale']),'CommentView':_0x7bf776['get']('comments')['CommentView'],'CommentsListView':_0x52b45d,'CommentThreadInputView':_0x35092e,'SuggestionView':_0x397f6c}),_0x2b3f7f['suggestionView']['acceptButton']['on']('execute',()=>{_0x5b9b6c['editing']['view']['focus']();}),_0x2b3f7f['suggestionView']['discardButton']['on']('execute',()=>{_0x5b9b6c['editing']['view']['focus']();}),_0x15de5d=_0x2d25e0['createAnnotationView'](this['editor']['locale'],_0x2b3f7f),_0x15de5d['bind']('isDirty')['to'](_0x2b3f7f,'isDirty'),_0x15de5d['bind']('length')['to'](_0x2b3f7f),_0x15de5d['bind']('type')['to'](_0x2b3f7f,'type',_0x43ed0a=>'suggestion-'+_0x43ed0a),_0x2b3f7f['on']('escape',()=>{_0x47f3ba['fire']('escape');}),this['_annotationViews']['set'](_0x1dde04['id'],_0x15de5d));const _0x5dc8aa=_0x1328f1['createCommentThreadController'](_0x1dde04['commentThread'],_0x2b3f7f),_0x43f0e4=new pe(_0x5b9b6c,_0x1dde04,_0x2b3f7f,_0x5dc8aa),_0x2fe2dd=_0x1dde04['getAllAdjacentSuggestions']()['filter'](_0x511e7a=>_0x511e7a['isInContent']);_0x2b3f7f['descriptionParts']=_0x5b9b6c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2fe2dd),this['_suggestionToController']['set'](_0x1dde04,_0x43f0e4),this['_viewToController']['set'](_0x2b3f7f,_0x43f0e4);const _0x18df9a=()=>{const _0x29f6f4=[],_0x5e1fcb=_0x1dde04['getAllAdjacentSuggestions']()['filter'](_0x11adb9=>_0x11adb9['isInContent']);for(const _0xa95efb of _0x5e1fcb)_0x29f6f4['push'](..._0xa95efb['getMarkers']());return _0x777ecb(_0x5b9b6c['editing'],_0x29f6f4);};_0x47f3ba=_0x2d25e0['createAnnotation']({'view':_0x15de5d,'target':_0x18df9a,'type':()=>'suggestion-'+_0x43f0e4['view']['type'],'isVisible':!!_0x18df9a()}),_0x1328f1['_bindAnnotationToEditors'](_0x2b3f7f,_0x47f3ba),_0x2d25e0['add'](_0x47f3ba),_0x4d96de['registerAnnotation'](_0x47f3ba);}['_destroyController'](_0x3e5cb7){const _0x3100ac=this['editor']['plugins']['get']('CommentsRepository'),_0x424faf=this['editor']['plugins']['get']('Annotations'),_0x575008=this['_suggestionToController']['get'](_0x3e5cb7),_0x2cbe1e=_0x575008['view'],_0x2c9d78=_0x424faf['getByInnerView'](_0x2cbe1e);_0x3100ac['_unbindEditors'](_0x2cbe1e),_0x2c9d78&&_0x424faf['remove'](_0x2c9d78),this['_suggestionToController']['delete'](_0x3e5cb7),this['_viewToController']['delete'](_0x2cbe1e),_0x575008['destroy']();}['_updateController'](_0x5425d9){if(!_0x5425d9['isInContent']||!this['_suggestionToController']['has'](_0x5425d9))return;const _0xde73e0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x38430a=this['_suggestionToController']['get'](_0x5425d9),_0xb6cdcf=_0x5425d9['getAllAdjacentSuggestions']();_0x38430a['view']['descriptionParts']=_0xde73e0['descriptionFactory']['getDescriptions'](_0xb6cdcf);}['destroy'](){for(const _0x18836b of this['_suggestionToController']['keys']())this['_destroyController'](_0x18836b);for(const _0x4b59ca of this['_annotationViews']['values']())_0x4b59ca['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x28d152){return'model'in _0x28d152;}class Ne extends _0x5107bb{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x5f0fad){this['editor']['plugins']['get'](d)['adapter']=_0x5f0fad;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x3555c8){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x3555c8);}['getSuggestions']({skipNotAttached:_0x5b7749=!0x1,toJSON:_0x4dd1af=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x5b7749,'toJSON':_0x4dd1af});}['getSuggestion'](_0x4627bb){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x4627bb);}}const p=['Pagination'];class re extends _0x5107bb{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5dbd8d=this['editor'];if(_0x5dbd8d['config']['define']('trackChangesData.editorCreator',_0x53162f=>{const _0x1c56d2=_0x5dbd8d['model']['document']['getRootNames']()['reduce']((_0x59c8fe,_0x1577f1)=>(_0x59c8fe[_0x1577f1]='',_0x59c8fe),{});return _0x5dbd8d['constructor']['create'](_0x1c56d2,_0x53162f);}),'function'!=typeof _0x5dbd8d['config']['get']('trackChangesData')['editorCreator'])throw new _0x187e95('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3557b4){return P(this['editor'],!0x0,_0x3557b4);}['getDataWithDiscardedSuggestions'](_0x4b87f3){return P(this['editor'],!0x1,_0x4b87f3);}}class Fe extends _0x5107bb{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x168e0c){function _0x3909b9(_0x3e7649){return _0x3e7649['map'](_0x5ae785=>String['fromCharCode'](_0x5ae785))['join']('');}super(_0x168e0c),this['result']='end',_0x168e0c[_0x3909b9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3909b9([0x76,0x69,0x65,0x77])][_0x3909b9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3909b9([0x61,0x75,0x74,0x6f]),_0x168e0c[_0x3909b9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3909b9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3909b9([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3909b9([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3909b9([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 De(_0x1d6a6f){return void 0x0!==_0x1d6a6f['getRootsAttributes'];}async function P(_0x311175,_0x25c728,_0x4be251){const _0x1da4d9=_0x922b51(_0x311175,p);_0x1da4d9['plugins']['push'](d,Fe),_0x1da4d9['rootsAttributes']=De(_0x311175)?_0x311175['getRootsAttributes']():void 0x0;const _0x46615b=document['createDocumentFragment'](),_0x25337f=_0x311175['config']['get']('trackChangesData')['editorCreator'],_0x353c4a=await _0x25337f(_0x1da4d9,()=>function(_0x14876f){const _0x1cc6c2=document['createElement']('div');return _0x14876f['appendChild'](_0x1cc6c2),_0x1cc6c2;}(_0x46615b));!function(_0x102179,_0x1a41a4){const _0x5e7ba2=_0x102179['model']['document']['getRootNames']()['reduce']((_0x5aa778,_0x1c319d)=>(_0x5aa778[_0x1c319d]=_0x102179['data']['get']({'rootName':_0x1c319d}),_0x5aa778),{}),_0xa1d666=_0x102179['plugins']['get']('Users')['users']['map'](_0xd2028f=>({'id':_0xd2028f['id'],'name':_0xd2028f['name']})),_0x2df27a=_0x102179['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4177f1=_0x102179['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x46fa4f=_0x1a41a4['plugins']['get']('Users'),_0x487246=_0x1a41a4['plugins']['get']('TrackChangesEditing'),_0x4ca468=_0x1a41a4['plugins']['get']('CommentsRepository');for(const _0x39d64a of _0x4ca468['getCommentThreads']())_0x39d64a['remove']();for(const _0x5e7e8b of _0xa1d666)_0x46fa4f['getUser'](_0x5e7e8b['id'])||_0x46fa4f['addUser'](_0x5e7e8b);_0x46fa4f['me']||_0x46fa4f['useAnonymousUser']();for(const _0x31d470 of _0x4177f1)_0x4ca468['addCommentThread'](_0x31d470);for(const _0x204591 of _0x2df27a)_0x487246['addSuggestionData'](_0x204591);_0x1a41a4['data']['set'](_0x5e7ba2);}(_0x311175,_0x353c4a),_0x353c4a['execute'](_0x25c728?'acceptAllSuggestions':'discardAllSuggestions');const _0xeeb9fb=De(_0x353c4a)?_0x353c4a['getFullData'](_0x4be251):_0x353c4a['data']['get'](_0x4be251);return await _0x353c4a['destroy'](),_0xeeb9fb;}class Me extends _0xe23dbb{['options'];constructor(_0x26f94d,_0x21342d){super(_0x26f94d),this['options']=_0x21342d,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'](_0x97be2d,_0x5e4946){if(!this['element'])return;const _0xa2a349=[];for(const [_0x28d526,_0x5cf058]of _0x97be2d){const _0x2a76b1=document['createElement']('div');_0x2a76b1['setAttribute']('data-ck-root-name',_0x28d526),_0x2a76b1['className']=_0x5cf058['classes']+'\x20ck-track-changes-preview__root-container',_0x2a76b1['innerHTML']=_0x5cf058['content'],_0xa2a349['push'](_0x2a76b1);}_0x5e4946(this['element'],_0xa2a349),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x24f82f{constructor(_0x5113c8){super(_0x5113c8),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x37d924=this['editor'],_0x59d540=_0x37d924['locale'],_0x1899f0=_0x37d924['plugins']['get']('Dialog');let _0x109b96;const _0x1d94df=function(_0x2c9735){const _0x1a4a3a={};if('editables'in _0x2c9735['ui']['view']){for(const [_0x50cde4,_0x1dd907]of Object['entries'](_0x2c9735['ui']['view']['editables']))_0x1a4a3a[_0x50cde4]=_0x1dd907['element'];}else _0x1a4a3a[_0x2c9735['model']['document']['getRootNames']()[0x0]]=_0x2c9735['ui']['view']['editable']['element'];return _0x1a4a3a;}(_0x37d924),_0x211f37=function(_0x19122e){let _0x53fdce=0x0;for(const _0x488834 of Object['values'](_0x19122e))_0x53fdce=Math['max'](_0x53fdce,_0x488834['getBoundingClientRect']()['width']);let _0xe315e3=0x0;for(const _0x470bf2 of Object['values'](_0x19122e))_0xe315e3+=_0x470bf2['getBoundingClientRect']()['height'];const _0x573981=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x5b88c0=Math['min'](_0xe315e3,_0x573981);return{'width':_0x53fdce,'height':_0x5b88c0};}(_0x1d94df);_0x1899f0['show']({'id':'finalContentPreview','title':o(_0x59d540,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x59d540,{'dialogRects':_0x211f37}),'onHide':()=>{_0x109b96['detachFromDom']();},'onShow':()=>{_0x37d924['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x50d3b5=>{const _0x2943d2=this['_standarizeRootsData'](_0x50d3b5,_0x37d924,_0x1d94df);_0x1899f0['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2943d2,_0x37d924['config']['get']('trackChanges.preview.renderFunction'));}),_0x109b96=new _0xdf54bc(_0x59d540,[_0x1899f0['view']]),_0x109b96['attachToDom'](),_0x109b96['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x37d924['once']('destroy',()=>{_0x109b96['detachFromDom']();});const _0x15c262=_0x1899f0['view']['headerView']['class'];_0x1899f0['view']['headerView']['class']=_0x15c262?_0x15c262+'\x20ck-reset_all':'ck-reset_all',_0x1899f0['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1899f0['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x539457=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x1e6e60=_0x539457['previewMode'],_0x1d7713={};if('$labels'===_0x1e6e60){for(const _0x248b18 of _0x539457['getMergeFieldsIds']())_0x1d7713[_0x248b18]=_0x539457['getLabel'](_0x248b18)||_0x248b18;}else{const _0x303f57='$defaultValues'===_0x1e6e60?_0x539457['getDefaultValues']():_0x539457['getDataSetValues'](_0x1e6e60,!0x0);for(const _0x3d7ae4 of Object['entries'](_0x303f57)){const [_0x2389f2,_0x30a4ac]=_0x3d7ae4;_0x1d7713[_0x2389f2]=null!==_0x30a4ac?_0x30a4ac:_0x539457['getLabel'](_0x2389f2)||_0x2389f2;}}return{'mergeFieldsData':_0x1d7713};}['_standarizeRootsData'](_0x129ec4,_0xd2ce8e,_0x1bff29){let _0x3a9c24;if('string'==typeof _0x129ec4){const _0x54c90a=_0xd2ce8e['model']['document']['getRootNames']()[0x0];_0x3a9c24={[_0x54c90a]:_0x129ec4};}else _0x3a9c24=_0x129ec4;const _0x15b409=this['_fixMediaEmbeds'](_0x3a9c24,_0xd2ce8e),_0x1e5741=function(_0x2ad8ab,_0x40445a){for(const [_0x2e452d,_0x41e7f4]of _0x2ad8ab)_0x41e7f4['classes']=_0x40445a[_0x2e452d]['classList']['value']['replace']('ck-focused','');return _0x2ad8ab;}(this['_sortRoots'](_0xd2ce8e)['reduce']((_0x55a865,_0x3503dc)=>(_0x55a865['push']([_0x3503dc,{'content':_0x15b409[_0x3503dc],'classes':''}]),_0x55a865),[]),_0x1bff29);return _0x1e5741;}['_fixMediaEmbeds'](_0x2e32de,_0x1eccf8){if(!_0x1eccf8['plugins']['has']('MediaEmbedEditing'))return _0x2e32de;const _0x4c5f3e=_0x1eccf8['plugins']['get']('MediaEmbedEditing');for(const [_0x3b5e17,_0xd04ce6]of Object['entries'](_0x2e32de)){const _0x1d9c3b=document['createElement']('div');_0x1d9c3b['innerHTML']=_0xd04ce6,(_0x1d9c3b['querySelectorAll']('figure.media')['forEach'](_0x140925=>{const _0x440d12=_0x140925['querySelector']('oembed');if(_0x440d12){const _0x50fd40=_0x440d12['getAttribute']('url');if(_0x50fd40){const _0x560f61=_0x4c5f3e['registry']['getMediaViewElement'](new _0x24aa95(_0x1eccf8['editing']['view']['document']),_0x50fd40,{'elementName':'','renderForEditingView':!0x0}),_0x19d004=document['createElement']('div');_0x19d004['classList']['add']('ck-media__wrapper'),_0x560f61['render'](_0x19d004,_0x1eccf8['editing']['view']['domConverter']),_0x440d12['replaceWith'](_0x19d004);}}}),_0x2e32de[_0x3b5e17]=_0x1d9c3b['innerHTML']);}return _0x2e32de;}['_sortRoots'](_0x287fd9){if(!function(_0x135248){return void 0x0!==_0x135248['getRootsAttributes'];}(_0x287fd9))return _0x287fd9['model']['document']['getRootNames']();const _0xb10cfd=[],_0x22a64e=new Map();for(const _0xf8af51 of _0x287fd9['model']['document']['getRootNames']()){const _0x5755bd=_0x287fd9['editing']['view']['getDomRoot'](_0xf8af51)['getClientRects']()['item'](0x0);_0xb10cfd['push'](_0xf8af51),_0x22a64e['set'](_0xf8af51,_0x5755bd);}return _0xb10cfd['sort']((_0x2e81f4,_0x1e2337)=>{const _0xeec5af=_0x22a64e['get'](_0x2e81f4),_0x3147fa=_0x22a64e['get'](_0x1e2337);return _0xeec5af['y']-_0x3147fa['y']||_0xeec5af['x']-_0x3147fa['x'];}),_0xb10cfd;}}class Ue extends _0x5107bb{static get['requires'](){return[re,_0x4cbfbf];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x36a514){super(_0x36a514),_0x36a514['commands']['add']('previewFinalContent',new te(this['editor'])),_0x36a514['config']['define']('trackChanges.preview.renderFunction',(_0x581921,_0x45a65a)=>{for(const _0x3530f4 of _0x45a65a)_0x581921['appendChild'](_0x3530f4);});}}export{O as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,x as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,R as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,E as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,B as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};
23
+ import{Command as _0x1a4a5,Plugin as _0xe64fa2,PendingActions as _0x2bb545}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x2d7099,ObservableMixin as _0x4eddca,uid as _0x3f9e0f,priorities as _0x3598fa,insertToPriorityArray as _0x517b27,logWarning as _0x1fb013,getEnvKeystrokeText as _0x25c1b3,FocusTracker as _0x4e5baa,KeystrokeHandler as _0x13447e,Collection as _0x381bd6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x1f434f,IconCancel as _0x4e1e17,IconTrackChanges as _0x199585}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x2480d4,View as _0xb1432,ViewCollection as _0x19a77d,FocusCycler as _0x3c5699,UIModel as _0x1d8cca,createDropdown as _0x18900c,SplitButtonView as _0x5af1b8,addListToDropdown as _0x5a4a0b,MenuBarMenuView as _0x180354,MenuBarMenuListView as _0x4376e9,ListSeparatorView as _0x54fda7,MenuBarMenuListItemView as _0x4d41e1,MenuBarMenuListItemButtonView as _0x3a5fd1,BodyCollection as _0x55ef78,Dialog as _0x51c9c9}from'@ckeditor/ckeditor5-ui/dist/index.js';import{SuggestionsConversion as _0x2e3730,Users as _0x28b628,DocumentCompare as _0x2c0923,fixElementSuggestionRange as _0x440ebc,hashObject as _0x23e3f1,splitSuggestionMarkerName as _0x349b55,surroundingMarkersDetector as _0x317569,FOCUS_ANNOTATION_KEYSTROKE as _0x50a83c,AriaDescriptionView as _0x496091,setupThreadKeyboardNavigation as _0x29cae7,trimHtml as _0x1fe732,UserView as _0x1348f6,LateFocusButtonView as _0x26df0e,getDateTimeFormatter as _0x3dfccf,getAllMarkersDomElementsSorted as _0x65496a,sanitizeEditorConfig as _0x59a2ca}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0xcf4da2,ModelLiveRange as _0x54bffc,ModelLivePosition as _0x19f516,ViewDowncastWriter as _0x302369}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x1242ea,set as _0x2ba0b6,isEqual as _0x1dd4f8,unset as _0x1f7e02,omit as Jt}from'es-toolkit/compat';import{Delete as _0x48d623,Input as _0x32ce8c}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x1bf802}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x29988d}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x1a4a5{['_enabledCommands'];constructor(_0xda36e8,_0x346332){super(_0xda36e8),this['_enabledCommands']=_0x346332,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 _0xff266b of this['editor']['commands']['commands']())_0xff266b['affectsData']&&!this['_enabledCommands']['has'](_0xff266b)&&_0xff266b['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3c5edc of this['editor']['commands']['commands']())_0x3c5edc['affectsData']&&!this['_enabledCommands']['has'](_0x3c5edc)&&_0x3c5edc['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x1a4a5{['_suggestions'];constructor(_0x5d6648,_0x4bb7c8){super(_0x5d6648),this['_suggestions']=_0x4bb7c8,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xca94a2){const _0x2f8eda=this['_suggestions']['get'](_0xca94a2);if(!_0x2f8eda)throw new _0x2d7099('track-changes-accept-suggestion-not-found',this);const _0x3f47a9=_0x2f8eda['getRanges']();this['editor']['model']['canEditAt'](_0x3f47a9)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2f8eda);}}class x extends _0x1a4a5{['_suggestions'];constructor(_0xb66bfe,_0xfaedb9){super(_0xb66bfe),this['_suggestions']=_0xfaedb9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4c233f){const _0x548013=this['_suggestions']['get'](_0x4c233f);if(!_0x548013)throw new _0x2d7099('track-changes-discard-suggestion-not-found',this);const _0x2f0d0e=_0x548013['getRanges']();this['editor']['model']['canEditAt'](_0x2f0d0e)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x548013);}}function ls(_0x5244b2,_0x5c60f7){let _0x5b353b='';return _0x5b353b+=_0x5244b2['split']('*')['map']((_0xc62fa8,_0x314eac)=>_0x314eac%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rn(_0xc62fa8)+'</span>':rn(_0xc62fa8))['join'](''),_0x5c60f7&&(_0x5b353b+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x5c60f7['value']+'\x22\x20title=\x22'+_0x5c60f7['title']+'\x22></span>'),_0x5b353b;}function rn(_0x49b9bc){const _0x596098=document['createElement']('span');return _0x596098['innerText']=_0x49b9bc,_0x596098['innerHTML'];}function ts(_0x2426d7){return _0x2426d7['sort']((_0x1a61da,_0x163b49)=>'attribute'===_0x1a61da['type']&&'attribute'!==_0x163b49['type']?-0x1:'attribute'!==_0x1a61da['type']&&'attribute'===_0x163b49['type']?0x1:'deletion'==_0x1a61da['type']&&'deletion'!=_0x163b49['type']?-0x1:'deletion'!=_0x1a61da['type']&&'deletion'==_0x163b49['type']?0x1:0x0);}function to(_0x5e40d8,_0x3a2204){let _0x20f07d,_0x508684=0x0;const _0xe7e88b=[],_0x3fadca=_0x3a2204['schema'];for(;_0x508684<_0x5e40d8['length'];){const _0x40396e=_0x5e40d8[_0x508684],_0x252c2f=_0x5e40d8[_0x508684+0x1];_0x20f07d||(_0x20f07d=_0x3a2204['createPositionBefore'](_0x40396e)),cn(_0x3a2204,_0x40396e,_0x252c2f)||(_0xe7e88b['push'](_0x3a2204['createRange'](_0x20f07d,_0x3fadca['isObject'](_0x40396e)?_0x3a2204['createPositionAfter'](_0x40396e):_0x3a2204['createPositionAt'](_0x40396e,'end'))),_0x20f07d=null),_0x508684++;}return _0xe7e88b;}function cn(_0x3b2743,_0x2e45d8,_0x4ca958){if(!_0x4ca958)return!0x1;const _0x1dcd05=_0x3b2743['createPositionAfter'](_0x2e45d8),_0x1172c9=_0x3b2743['createPositionBefore'](_0x4ca958);return _0x1dcd05['isTouching'](_0x1172c9);}function rs(_0x2c94c0,_0x31826d,_0x440855){for(;_0x440855['length'];){const _0x3660c2=_0x440855['splice'](0x0,0x64);_0x2c94c0['change'](()=>{for(const _0x5781f0 of _0x3660c2)_0x5781f0['isInContent']&&_0x31826d['execute'](_0x5781f0['id']);});}}class M extends _0x1a4a5{['_command'];['_suggestions'];constructor(_0x5efeb1,_0x477281,_0x54b725){super(_0x5efeb1),this['_command']=_0x477281,this['_suggestions']=_0x54b725,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xfac429=Array['from'](this['_suggestions']['values']())['some'](_0x59199c=>_0x59199c['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0xfac429;}['execute'](){const _0x305f45=ts(Array['from'](this['_suggestions']['values']()));for(const _0x22e2e3 of _0x305f45){const _0x59d9db=_0x22e2e3['getRanges']();if(!this['editor']['model']['canEditAt'](_0x59d9db))return;}rs(this['editor']['model'],this['_command'],_0x305f45);}}class R extends _0x1a4a5{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x59765b,_0x3b6643,_0x3c55b6){super(_0x59765b),this['_command']=_0x3b6643,this['_suggestions']=_0x3c55b6,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1e6f99=this['editor']['model']['document']['selection'],_0x188d91=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x27a5d8,_0x13cfeb){const _0x4160f0=Array['from'](_0x27a5d8['getRanges']()),_0x189962=new Set();for(const _0xfd9bc7 of _0x13cfeb)if(_0xfd9bc7['isInContent']){for(const _0x4835ed of _0x4160f0)for(const _0x5cd0ce of _0xfd9bc7['getRanges']())(_0x4835ed['isIntersecting'](_0x5cd0ce)||_0x27a5d8['isCollapsed']&&!_0xfd9bc7['isMultiRange']&&_0xfd9bc7['next']&&_0x5cd0ce['end']['isTouching'](_0x4835ed['start']))&&_0x189962['add'](_0xfd9bc7);}return _0x189962;}(_0x1e6f99,_0x188d91),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2a17bd=ts(Array['from'](this['_selectedSuggestions']));for(const _0x54a919 of _0x2a17bd){const _0x2fa7dc=_0x54a919['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2fa7dc))return;}rs(this['editor']['model'],this['_command'],_0x2a17bd);}}class T extends/* #__PURE__ -- @preserve */
24
+ _0x4eddca(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4413f7,_0x20334c){super(),this['id']=_0x20334c['id'],this['type']=_0x20334c['type'],this['subType']=_0x20334c['subType']||null,this['author']=_0x20334c['author'],this['creator']=_0x20334c['creator']||_0x20334c['author'],this['isExternal']=Boolean(_0x20334c['attributes']&&_0x20334c['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x20334c['originalSuggestionId']||null,this['_model']=_0x4413f7,this['_onAccept']=_0x20334c['onAccept'],this['_onDiscard']=_0x20334c['onDiscard'],this['_onAttributesChange']=_0x20334c['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x20334c['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 _0x1b25b9=this;for(;_0x1b25b9['previous'];)_0x1b25b9=_0x1b25b9['previous'];return _0x1b25b9;}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'](_0x250409){this['_markerNames']['add'](_0x250409);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x35ea3a=>this['_model']['markers']['get'](_0x35ea3a))['filter'](_0x4b9f65=>_0x4b9f65);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2aab3c=>{for(const _0xc92f4c of this['getMarkers']())_0x2aab3c['removeMarker'](_0xc92f4c);}),this['_markerNames']['clear']();}['removeMarker'](_0x20737c){this['_model']['change'](_0x33f222=>{_0x33f222['removeMarker'](_0x20737c);}),this['_markerNames']['delete'](_0x20737c);}['addRange'](_0x1fa79c){const _0x1d827f='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x1d827f),this['_model']['change'](_0x4a6030=>{_0x4a6030['addMarker'](_0x1d827f,{'range':_0x1fa79c,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4a86d2){for(const _0x5ce67d of this['getRanges']())if(_0x5ce67d['isIntersecting'](_0x4a86d2))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4be822=>_0x4be822['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2d397f,_0x4e6dc4)=>[..._0x2d397f,..._0x4e6dc4['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2445de=this['getRanges']();if(0x1!=_0x2445de['length'])return null;const _0x2a9bdf=_0x2445de[0x0],_0x31b7e7=_0x2a9bdf['start']['nodeAfter'],_0x2639e6=_0x2a9bdf['end']['nodeBefore'];return _0x31b7e7 instanceof _0xcf4da2?_0x31b7e7!=_0x2639e6?null:_0x31b7e7: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 _0x3c9bed=[];let _0x3944d0=this['head'];for(;_0x3944d0;)_0x3c9bed['push'](_0x3944d0),_0x3944d0=_0x3944d0['next'];return _0x3c9bed;}['setAttribute'](_0x37cee0,_0x47728d){const _0x228249=_0x1242ea(this['attributes']);_0x2ba0b6(_0x228249,_0x37cee0,_0x47728d),_0x1dd4f8(_0x228249,this['attributes'])||(this['attributes']=_0x228249,this['_onAttributesChange'](_0x228249));}['removeAttribute'](_0x508a52){const _0x416da1=_0x1242ea(this['attributes']);_0x1f7e02(_0x416da1,_0x508a52),_0x1dd4f8(_0x416da1,this['attributes'])||(this['attributes']=_0x416da1,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 _0x3f9e0f()['substr'](0x1,0x5);}}function o(_0x2ff88c,_0x48a529,_0x2d2156){const _0xcb47c7=_0x2ff88c['t'],t=_0x2ff88c['t'];switch(_0x48a529){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',_0x2d2156);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2d2156);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2d2156);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2d2156);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2d2156);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',_0x2d2156);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2d2156);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',_0x2d2156);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2d2156);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2d2156);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2d2156);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2d2156);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2d2156);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2d2156);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2d2156);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2d2156);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2d2156);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2d2156);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2d2156);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2d2156);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2d2156);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2d2156);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2d2156);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2d2156);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x2d2156);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'},_0x2d2156);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x2d2156);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x2d2156);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2d2156);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2d2156);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2d2156);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2d2156);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2d2156);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'},_0x2d2156);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2d2156);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2d2156);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2d2156);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2d2156);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'},_0x2d2156);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2d2156);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'},_0x2d2156);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'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'},_0x2d2156);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2d2156);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'},_0x2d2156);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2d2156);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'},_0x2d2156);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2d2156);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x2d2156);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x2d2156);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x2d2156);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2d2156);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'},_0x2d2156);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2d2156);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 _0xcb47c7({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2d2156);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0xcb47c7({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2d2156);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2d2156);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'},_0x2d2156);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'},_0x2d2156);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'},_0x2d2156);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x48a529;}}class E{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1231c9,_0x2a7733){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1231c9,this['_locale']=_0x2a7733;}['getDescriptions'](_0x2d9c3a){const _0x54f152=[],_0x98e197=new Set(),_0x476faa=new Set();for(let _0x50d645=0x0;_0x50d645<_0x2d9c3a['length'];_0x50d645++){const _0x4223ef=_0x2d9c3a[_0x50d645];if(!_0x4223ef['isInContent'])continue;const _0x4b997c=this['_handleCustomCallbackDescription'](_0x4223ef);if(_0x4b997c){if(null!=_0x4223ef['subType']){if(_0x98e197['has'](_0x4223ef['subType']))continue;_0x98e197['add'](_0x4223ef['subType']);}_0x54f152['push'](_0x4b997c);}else{if('attribute'==_0x4223ef['type']){const _0xdd09cc=_0x4223ef['data']['key'];if(_0x476faa['has'](_0xdd09cc))continue;_0x476faa['add'](_0x4223ef['data']['key']),_0xdd09cc==m?this['_handleRenameSuggestionDescription'](_0x54f152,_0x4223ef):this['_handleAttributeSuggestionDescription'](_0x54f152,_0x4223ef);continue;}'insertion'!=_0x4223ef['type']&&'deletion'!=_0x4223ef['type']||this['_handleInsertRemoveSuggestionDescription'](_0x54f152,_0x4223ef,_0x2d9c3a[_0x50d645+0x1]);}}return this['_resolveDescriptionItems'](_0x54f152);}['registerDescriptionCallback'](_0x226d35){this['_customCallbacks']['push'](_0x226d35);}['registerElementLabel'](_0x1e24e0,_0x6dd2de,_0x903ac4=_0x3598fa['normal']){'function'==typeof _0x1e24e0?_0x517b27(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1e24e0,'label':_0x6dd2de,'priority':_0x903ac4}):this['_itemLabels']['set'](_0x1e24e0,_0x6dd2de);}['registerAttributeLabel'](_0x3025ab,_0x3a9b1a){this['_attributeLabels']['set'](_0x3025ab,_0x3a9b1a);}['getItemLabel'](_0x58631b,_0x1282ee=0x1){let _0x2be453;for(const _0xcecd75 of this['_itemLabelsCallbacks'])if(_0xcecd75['matchingCallback'](_0x58631b)){_0x2be453=_0xcecd75['label'];break;}return _0x2be453||(_0x2be453=this['_itemLabels']['get'](_0x58631b['name'])),_0x2be453?_0x2be453(_0x1282ee):0x1!==_0x1282ee?_0x1282ee+'\x20'+_0x58631b['name']+'s':''+_0x58631b['name'];}['_addDescriptionItems'](_0x4f6906,_0x53624d){const _0x184135=_0x53624d['getFirstRange']()['getWalker'](),_0x26e8f8='insertion'==_0x53624d['type']?'add':'remove';for(const _0x100a2f of _0x184135){const _0xa53a34=_0x100a2f['item'],_0x4ff34c=_0x4f6906[_0x4f6906['length']-0x1];if(_0xa53a34['is']('$textProxy'))_0x4ff34c&&_0x4ff34c['type']['indexOf']('Container')>-0x1&&_0x4f6906['pop'](),_0x4ff34c&&'text'==_0x4ff34c['type']?_0x4ff34c[_0x26e8f8]+=_0xa53a34['data']:_0x4f6906['push']({'type':'text','add':'add'==_0x26e8f8?_0xa53a34['data']:'','remove':'remove'==_0x26e8f8?_0xa53a34['data']:''});else{if(this['_schema']['isObject'](_0xa53a34)){const _0x4b37cd=_0xa53a34;if(_0x4ff34c&&_0x4ff34c['type']['indexOf']('Container')>-0x1&&_0x4f6906['pop'](),'elementEnd'==_0x100a2f['type'])continue;_0x4ff34c&&_0x4ff34c['type']==_0x26e8f8+'Object'&&_0x4ff34c['element']['name']==_0x4b37cd['name']?_0x4ff34c['quantity']++:_0x4f6906['push']({'type':_0x26e8f8+'Object','element':_0x4b37cd,'quantity':0x1}),_0x184135['skip'](_0xf3cb9d=>!('elementEnd'==_0xf3cb9d['type']&&_0xf3cb9d['item']==_0xa53a34));}else{if(this['_schema']['checkChild'](_0xa53a34,'$text')||_0xa53a34['is']('element','softBreak')){const _0x11176d=_0xa53a34;if('add'==_0x26e8f8&&'elementStart'==_0x100a2f['type']||'remove'==_0x26e8f8&&'elementEnd'==_0x100a2f['type'])continue;if(_0x4ff34c&&-0x1==_0x4ff34c['type']['indexOf']('Container')){'text'==_0x4ff34c['type']&&(_0x4ff34c[_0x26e8f8]+='\x0a');continue;}let _0x27c99e;if(_0x27c99e='add'==_0x26e8f8?_0x11176d['nextSibling']&&!this['_schema']['isObject'](_0x11176d['nextSibling'])?_0x11176d['nextSibling']:null:_0x11176d['previousSibling']&&!this['_schema']['isObject'](_0x11176d['previousSibling'])?_0x11176d['previousSibling']:null,_0x11176d['isEmpty']||_0x27c99e&&_0x27c99e['isEmpty']){const _0xa415d4=_0x27c99e&&_0x27c99e['isEmpty']?_0x27c99e:_0x11176d;_0x4ff34c&&_0x4ff34c['type']==_0x26e8f8+'EmptyContainer'&&_0x4ff34c['element']['name']==_0xa415d4['name']?_0x4ff34c['quantity']++:_0x4f6906['push']({'type':_0x26e8f8+'EmptyContainer','element':_0xa415d4,'quantity':0x1});}else _0x4f6906['push']({'type':_0x26e8f8+'Container','element':_0x11176d});}}}}}['_resolveDescriptionItems'](_0x433d0d){const _0x5e2994=this['_locale'],_0x2d3d2a=[],_0x5b0aad=[],_0x443665=[];for(const _0x329885 of _0x433d0d)switch(_0x329885['type']){case'text':if(_0x329885['add']=_0x329885['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x329885['remove']=_0x329885['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x329885['add']&&''!=_0x329885['remove']){_0x2d3d2a['push']({'type':'replace','content':o(_0x5e2994,'REPLACE_TEXT',['\x22'+_0x329885['remove']+'\x22','\x22'+_0x329885['add']+'\x22'])});continue;}if(null!=_0x329885['add']['match'](/^ +$/)){_0x2d3d2a['push']({'type':'insertion','content':o(_0x5e2994,'*Insert:*\x20%0',o(_0x5e2994,'ELEMENT_SPACE',_0x329885['add']['length']))});continue;}if(null!=_0x329885['remove']['match'](/^ +$/)){_0x2d3d2a['push']({'type':'deletion','content':o(_0x5e2994,'*Remove:*\x20%0',o(_0x5e2994,'ELEMENT_SPACE',_0x329885['remove']['length']))});continue;}if(''!=_0x329885['add']){_0x2d3d2a['push']({'type':'insertion','content':o(_0x5e2994,'*Insert:*\x20%0','\x22'+_0x329885['add']+'\x22')});continue;}_0x2d3d2a['push']({'type':'deletion','content':o(_0x5e2994,'*Remove:*\x20%0','\x22'+_0x329885['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2d3d2a['push']({'type':'insertion','content':o(_0x5e2994,'*Insert:*\x20%0',this['getItemLabel'](_0x329885['element'],_0x329885['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2d3d2a['push']({'type':'deletion','content':o(_0x5e2994,'*Remove:*\x20%0',this['getItemLabel'](_0x329885['element'],_0x329885['quantity']))});continue;case'addContainer':_0x2d3d2a['push']({'type':'insertion','content':o(_0x5e2994,'*Split:*\x20%0',this['getItemLabel'](_0x329885['element'],_0x329885['quantity']))});continue;case'removeContainer':_0x2d3d2a['push']({'type':'deletion','content':o(_0x5e2994,'*Merge:*\x20%0',this['getItemLabel'](_0x329885['element'],_0x329885['quantity']))});continue;case'addFormat':_0x5b0aad['push'](_0x329885['key']);continue;case'removeFormat':_0x443665['push'](_0x329885['key']);continue;default:_0x2d3d2a['push'](_0x329885);}if(_0x5b0aad['length']){const _0xce55f7=_0x5b0aad['map'](_0x50f961=>this['_attributeLabels']['has'](_0x50f961)?this['_attributeLabels']['get'](_0x50f961):_0x50f961)['join'](',\x20');_0x2d3d2a['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0xce55f7)});}if(_0x443665['length']){const _0x18c1f0=_0x443665['map'](_0x2c332d=>this['_attributeLabels']['has'](_0x2c332d)?this['_attributeLabels']['get'](_0x2c332d):_0x2c332d)['join'](',\x20');_0x2d3d2a['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x18c1f0)});}return _0x2d3d2a;}['_handleCustomCallbackDescription'](_0x1def91){for(const _0x1ee295 of this['_customCallbacks']){const _0x3cc39d=_0x1ee295(_0x1def91);if(_0x3cc39d&&'type'in _0x3cc39d)return _0x3cc39d;}}['_handleAttributeSuggestionDescription'](_0x4dca27,_0x27bf7f){const _0x5b5b20=_0x27bf7f['data'],_0x5bc77c=void 0x0===_0x5b5b20['newValue']?'removeFormat':'addFormat';_0x4dca27['push']({'type':_0x5bc77c,'key':_0x5b5b20['key']});}['_handleRenameSuggestionDescription'](_0xb7b080,_0x458642){_0xb7b080['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x458642['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x118fab,_0x4e57ce,_0x32adcd){if(this['_addDescriptionItems'](_0x118fab,_0x4e57ce),_0x32adcd&&_0x32adcd['getFirstRange']()&&!_0x4e57ce['getFirstRange']()['end']['isEqual'](_0x32adcd['getFirstRange']()['start'])){const _0x2cdf93=_0x118fab[_0x118fab['length']-0x1],_0x43ad53='insertion'==_0x4e57ce['type']?'add':'remove';_0x2cdf93&&'text'==_0x2cdf93['type']&&(_0x2cdf93[_0x43ad53]+='\x0a');}}}class U extends _0xe64fa2{['afterInit'](){const _0x5767ae=this['editor'],_0x2faa4c=_0x5767ae['plugins']['get']('TrackChangesEditing');_0x5767ae['commands']['get']('showAIAssistant')&&_0x2faa4c['enableCommand']('showAIAssistant');}}class V extends _0xe64fa2{['afterInit'](){const _0x673fb0=this['editor'],_0x2930fb=_0x673fb0['plugins']['get']('TrackChangesEditing');_0x673fb0['commands']['get']('toggleAi')&&_0x2930fb['enableCommand']('toggleAi');}}class F extends _0xe64fa2{['afterInit'](){const _0x383b02=this['editor'],_0x514340=_0x383b02['plugins']['get']('TrackChangesEditing');_0x383b02['commands']['get']('aiQuickAction')&&_0x514340['enableCommand']('aiQuickAction');}}class G extends _0xe64fa2{['afterInit'](){const _0x5dcb1f=this['editor'],_0x177d51=_0x5dcb1f['locale'];if(!_0x5dcb1f['plugins']['has']('AlignmentEditing'))return;const _0x5119fb=_0x5dcb1f['plugins']['get']('TrackChangesEditing');_0x5119fb['enableDefaultAttributesIntegration']('alignment'),_0x5119fb['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x177d51,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34cc9a=this['editor'],_0x21ccdf=_0x34cc9a['locale'];_0x34cc9a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29fa37=>{if('formatBlock'!=_0x29fa37['type'])return;const {data:_0x2f9e6c}=_0x29fa37;if(_0x2f9e6c&&'alignment'==_0x2f9e6c['commandName']){const _0x2fd298=_0x2f9e6c['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x21ccdf,'*Format:*\x20%0',function(_0x286801){switch(_0x286801){case'left':return o(_0x21ccdf,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x21ccdf,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x21ccdf,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x21ccdf,'FORMAT_JUSTIFY_TEXT');}}(_0x2fd298))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class L extends _0xe64fa2{['afterInit'](){const _0x14e0b5=this['editor'],_0x40cd49=_0x14e0b5['plugins']['get']('TrackChangesEditing'),_0x1e9d13=_0x14e0b5['locale'];for(const _0x54c564 of ti){if(!_0x14e0b5['plugins']['has'](_0x54c564))continue;const _0x50700f=_0x54c564['slice'](0x0,-0x7)['toLowerCase'](),_0x522887='FORMAT_'+_0x50700f['toUpperCase']();_0x40cd49['enableDefaultAttributesIntegration'](_0x50700f),_0x40cd49['descriptionFactory']['registerAttributeLabel'](_0x50700f,o(_0x1e9d13,_0x522887));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49088e=this['editor'],_0x13ebdf=_0x49088e['locale'],_0x5b4f81=_0x49088e['plugins']['get']('TrackChangesEditing');function _0x152c2b(_0x125cb4,_0x1d3f80){_0x5b4f81['descriptionFactory']['registerDescriptionCallback'](_0x3100ba=>{if('formatInline'!=_0x3100ba['type'])return;const {data:_0x4e1dc7}=_0x3100ba;return _0x4e1dc7&&_0x4e1dc7['commandName']===_0x125cb4?_0x4e1dc7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x13ebdf,'*Format:*\x20%0',_0x1d3f80)}:{'type':'format','content':o(_0x13ebdf,'*Remove\x20format:*\x20%0',_0x1d3f80)}:void 0x0;});}_0x152c2b('bold',o(_0x13ebdf,'FORMAT_BOLD')),_0x152c2b('italic',o(_0x13ebdf,'FORMAT_ITALIC')),_0x152c2b('underline',o(_0x13ebdf,'FORMAT_UNDERLINE')),_0x152c2b('code',o(_0x13ebdf,'FORMAT_CODE')),_0x152c2b('strikethrough',o(_0x13ebdf,'FORMAT_STRIKETHROUGH')),_0x152c2b('subscript',o(_0x13ebdf,'FORMAT_SUBSCRIPT')),_0x152c2b('superscript',o(_0x13ebdf,'FORMAT_SUPERSCRIPT'));}}class J extends _0xe64fa2{['afterInit'](){const _0x5993a8=this['editor'],_0x206b78=_0x5993a8['locale'];if(!_0x5993a8['plugins']['has']('BlockQuoteEditing'))return;const _0x48aab9=_0x5993a8['plugins']['get']('TrackChangesEditing'),_0x39b161=this['editor']['commands']['get']('blockQuote');_0x48aab9['enableCommand']('blockQuote',(_0x492fa3,_0x48e02d={})=>{const _0x4027d8=this['editor']['model']['document']['selection'],_0x168b8d=_0x48e02d&&void 0x0!==_0x48e02d['forceValue']?_0x48e02d['forceValue']:!_0x39b161['value'];let _0x3d4f35=[];if(_0x168b8d){const _0x24750e=Array['from'](_0x4027d8['getSelectedBlocks']())['filter'](_0x3a2910=>oo(_0x3a2910)||function(_0x4c1f67,_0x3115c6){const _0x35d0b0=_0x3115c6['checkChild'](_0x4c1f67['parent'],'blockQuote'),_0x5aa820=_0x3115c6['checkChild'](['$root','blockQuote'],_0x4c1f67);return _0x35d0b0&&_0x5aa820;}(_0x3a2910,this['editor']['model']['schema']));_0x3d4f35=to(_0x24750e,_0x5993a8['model']);}else{const _0x47a05e=Array['from'](_0x4027d8['getSelectedBlocks']())['filter'](_0x4d5936=>oo(_0x4d5936));_0x3d4f35=to(_0x47a05e,_0x5993a8['model']);}_0x5993a8['model']['change'](()=>{for(const _0xd0c1a5 of _0x3d4f35)_0x48aab9['markBlockFormat'](_0xd0c1a5,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x168b8d}]});});}),_0x48aab9['descriptionFactory']['registerDescriptionCallback'](_0xdf8881=>{const {data:_0xa02a9}=_0xdf8881;if(_0xa02a9&&'blockQuote'==_0xa02a9['commandName']){const _0x501c3d=o(_0x206b78,'ELEMENT_BLOCK_QUOTE');return _0xa02a9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x206b78,'*Set\x20format:*\x20%0',_0x501c3d)}:{'type':'format','content':o(_0x206b78,'*Remove\x20format:*\x20%0',_0x501c3d)};}});}}function oo(_0x17e0d8){return'blockQuote'==_0x17e0d8['parent']['name'];}class q extends _0xe64fa2{['afterInit'](){const _0x35cc9a=this['editor'],_0x38a460=_0x35cc9a['locale'],_0x20f30a=_0x35cc9a['plugins']['get']('TrackChangesEditing');_0x35cc9a['plugins']['has']('BookmarkEditing')&&(_0x20f30a['enableCommand']('insertBookmark'),_0x20f30a['enableDefaultAttributesIntegration']('updateBookmark'),_0x20f30a['descriptionFactory']['registerDescriptionCallback'](_0x919e93=>{if('insertion'!=_0x919e93['type']&&'deletion'!=_0x919e93['type']&&'attribute'!=_0x919e93['type'])return;const _0x1cc751=_0x919e93['getContainedElement']();if(null==_0x1cc751)return;if(!_0x1cc751['is']('element','bookmark'))return;const _0x28cea8=_0x1cc751['getAttribute']('bookmarkId');if('insertion'==_0x919e93['type'])return{'type':'insertion','content':o(_0x38a460,'*Insert:*\x20%0','\x22'+_0x28cea8+'\x22\x20'+o(_0x38a460,'ELEMENT_BOOKMARK'))};if('deletion'==_0x919e93['type'])return{'type':'deletion','content':o(_0x38a460,'*Remove:*\x20%0','\x22'+_0x28cea8+'\x22\x20'+o(_0x38a460,'ELEMENT_BOOKMARK'))};const {data:_0x35c254}=_0x919e93;if(!_0x35c254||'bookmarkId'!=_0x35c254['key'])return;return{'type':'format','content':o(_0x38a460,'*Set\x20bookmark:*\x20%0','\x22'+_0x35c254['newValue']+'\x22')};}));}}class z extends _0xe64fa2{['afterInit'](){const _0x7d087b=this['editor'];_0x7d087b['plugins']['has']('CaseChange')&&(_0x7d087b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x7d087b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x7d087b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0xe64fa2{['afterInit'](){const _0x45d4ed=this['editor'];_0x45d4ed['commands']['get']('ckbox')&&_0x45d4ed['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0xe64fa2{['afterInit'](){const _0x5eefd1=this['editor'];if(!_0x5eefd1['plugins']['has']('CodeBlock'))return;const _0x55751f=_0x5eefd1['plugins']['get']('TrackChangesEditing'),_0x1fce77=_0x5eefd1['locale'],_0x3ef48c=_0x5eefd1['config']['get']('codeBlock')['languages'],_0x431143=_0x5eefd1['commands']['get']('codeBlock');_0x55751f['enableCommand']('indentCodeBlock'),_0x55751f['enableCommand']('outdentCodeBlock'),_0x55751f['enableCommand']('codeBlock',(_0x3cd606,_0xaa56cd={})=>{const _0x5f34f9=_0x5eefd1['model'],_0x615509=_0x5eefd1['model']['document']['selection'],_0x1ac959=_0xaa56cd&&void 0x0!==_0xaa56cd['forceValue']?_0xaa56cd['forceValue']:!_0x431143['value'];let _0x1d1c6f;_0xaa56cd['language']||(_0xaa56cd['language']=_0x3ef48c[0x0]['language']),_0x1d1c6f=_0x1ac959?Array['from'](_0x615509['getSelectedBlocks']())['filter'](_0x43419c=>co(_0x43419c)||function(_0x367b00,_0x256fb2){if(_0x367b00['is']('rootElement')||_0x256fb2['isLimit'](_0x367b00))return!0x1;return _0x256fb2['checkChild'](_0x367b00['parent'],'codeBlock');}(_0x43419c,_0x5f34f9['schema'])):Array['from'](_0x615509['getSelectedBlocks']())['filter'](_0xe4c8a2=>co(_0xe4c8a2));const _0x52a222=to(_0x1d1c6f,_0x5f34f9);_0x5f34f9['change'](()=>{for(const _0x47ffad of _0x52a222)_0x55751f['markBlockFormat'](_0x47ffad,{'commandName':'codeBlock','commandParams':[{..._0xaa56cd,'forceValue':_0x1ac959}],'formatGroupId':'blockName'});});}),(_0x55751f['descriptionFactory']['registerElementLabel']('codeBlock',_0x45aba1=>o(_0x1fce77,'ELEMENT_CODE_BLOCK',_0x45aba1)),_0x55751f['descriptionFactory']['registerDescriptionCallback'](_0x5e945b=>{if('formatBlock'!=_0x5e945b['type'])return;const _0x483853=_0x1fce77['t'],{data:_0x7d5135}=_0x5e945b;if(!_0x7d5135||'codeBlock'!=_0x7d5135['commandName'])return;const _0x52b413=_0x7d5135['commandParams'][0x0]['language'],_0x282a4d=_0x483853(_0x3ef48c['find'](_0x281f11=>_0x281f11['language']===_0x52b413)['label'])['toLowerCase']();return _0x7d5135['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1fce77,'*Set\x20format:*\x20%0',o(_0x1fce77,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x282a4d+')')}:{'type':'format','content':o(_0x1fce77,'*Remove\x20format:*\x20%0',o(_0x1fce77,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x4349c6){return'codeBlock'==_0x4349c6['name'];}class H extends _0xe64fa2{['afterInit'](){const _0x17716b=this['editor'];if(!_0x17716b['plugins']['has']('CommentsEditing'))return;_0x17716b['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Q extends _0xe64fa2{static get['requires'](){return[_0x48d623];}['init'](){const _0x3d6bad=this['editor'],_0xa8dabd=_0x3d6bad['plugins']['get']('TrackChangesEditing');_0xa8dabd['enableCommand']('delete');const _0x1bafd9=_0x3d6bad['commands']['get']('deleteForward');_0xa8dabd['enableCommand']('deleteForward',(_0x4356d7,_0x281c47={})=>{const _0x578f57=_0x3d6bad['model']['createSelection'](_0x3d6bad['model']['document']['selection']);_0x578f57['isCollapsed']&&_0x3d6bad['model']['modifySelection'](_0x578f57,{'direction':'forward','unit':_0x281c47['unit']});const _0x3d6b7e=_0x578f57['getFirstRange'](),_0x45f4dd=_0x54bffc['fromRange'](_0x3d6b7e);let _0x262a96;_0x4356d7(_0x281c47),_0x262a96='$graveyard'==_0x45f4dd['root']['rootName']?_0x3d6bad['model']['createRange'](_0x3d6b7e['start']):_0x3d6bad['model']['createRange'](_0x45f4dd['start'],_0x45f4dd['end']),_0x45f4dd['detach'](),_0x3d6bad['model']['enqueueChange'](_0x1bafd9['buffer']['batch'],_0x5346b6=>{_0x1bafd9['buffer']['lock'](),_0x5346b6['setSelection'](_0x5346b6['createRange'](_0x262a96['end'])),_0x1bafd9['buffer']['unlock']();});});}}class X extends _0xe64fa2{['afterInit'](){const _0x3c36f1=this['editor'];if(!_0x3c36f1['plugins']['has']('ListEditing'))return;const _0x52be2c=_0x3c36f1['locale'],_0xf8699b=_0x3c36f1['plugins']['get']('TrackChangesEditing'),_0x2c9172=_0x3c36f1['plugins']['has']('TodoListEditing'),_0x2e1197=!!_0x3c36f1['config']['get']('list.multiBlock');function _0x1e735f(_0x36b5bb){return{'type':'format','content':''+o(_0x52be2c,'*Set\x20format:*\x20%0',_0x36b5bb)};}function _0x1b10ae(_0x62dc91){return{'type':'format','content':''+o(_0x52be2c,'*Remove\x20format:*\x20%0',_0x62dc91)};}_0xf8699b['enableDefaultAttributesIntegration']('numberedList'),_0xf8699b['enableDefaultAttributesIntegration']('bulletedList'),_0xf8699b['enableDefaultAttributesIntegration']('customNumberedList'),_0xf8699b['enableDefaultAttributesIntegration']('customBulletedList'),_0xf8699b['enableDefaultAttributesIntegration']('indentList'),_0xf8699b['enableDefaultAttributesIntegration']('outdentList'),_0xf8699b['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xf8699b['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2e1197&&(_0xf8699b['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xf8699b['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2c9172&&(_0xf8699b['enableDefaultAttributesIntegration']('todoList'),_0xf8699b['enableDefaultAttributesIntegration']('checkTodoList'),_0xf8699b['descriptionFactory']['registerDescriptionCallback'](_0x44b85e=>{const {data:_0x47dae}=_0x44b85e;if(_0x47dae&&'todoListChecked'==_0x47dae['key'])return{'type':'format','content':_0x47dae['newValue']?o(_0x52be2c,'*Check\x20item*'):o(_0x52be2c,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1a0369=>{if(_0x1a0369['batch']['isUndo'])return!0x1;let _0x30627c=!0x1;const _0x2446ef=_0xf8699b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1d93a3=>'todoListChecked'===_0xf8699b['_getAttributeKey'](_0x1d93a3));for(const _0x277a29 of _0x2446ef){'todo'!=_0x277a29['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xf8699b['_findSuggestions'](_0x277a29['getFirstRange'](),'attribute')['find'](_0x1f6a95=>'listType'===_0xf8699b['_getAttributeKey'](_0x1f6a95['suggestion']))||(_0x1a0369['removeMarker'](_0x277a29['getFirstMarker']()),_0x30627c=!0x0));}return _0x30627c;})),_0xf8699b['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x52be2c,'FORMAT_INDENT'));const _0x2a5d7e={'type':'format','content':''};_0xf8699b['descriptionFactory']['registerDescriptionCallback'](_0x2e6dc9=>{const {data:_0x1d6179}=_0x2e6dc9;if(!_0x1d6179||'listType'!=_0x1d6179['key'])return;let _0xef1d6f=_0x2e6dc9['head'];for(;_0xef1d6f;){if(_0xef1d6f['data']&&(('listStyle'==_0xef1d6f['data']['key']||'listMarkerStyle'==_0xef1d6f['data']['key'])&&(_0xef1d6f['data']['newValue']&&'default'!=_0xef1d6f['data']['newValue']||'default'!=_0xef1d6f['data']['oldValue']&&!_0x1d6179['newValue'])||!_0x2e1197&&_0xef1d6f['data']['key']==m))return _0x2a5d7e;_0xef1d6f=_0xef1d6f['next'];}if(null==_0x1d6179['newValue'])switch(_0x1d6179['oldValue']){case'bulleted':return _0x1b10ae(o(_0x52be2c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1b10ae(o(_0x52be2c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1b10ae(o(_0x52be2c,'ELEMENT_TODO_LIST'));}switch(_0x1d6179['newValue']){case'bulleted':return _0x1e735f(o(_0x52be2c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1e735f(o(_0x52be2c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1e735f(o(_0x52be2c,'ELEMENT_TODO_LIST'));}}),_0xf8699b['descriptionFactory']['registerDescriptionCallback'](_0x13b9e8=>{const {data:_0x3f8c76}=_0x13b9e8;if(_0x3f8c76&&'listIndent'==_0x3f8c76['key'])return null==_0x3f8c76['newValue']||null==_0x3f8c76['oldValue']&&0x0==_0x3f8c76['newValue']?_0x2a5d7e:void 0x0;}),_0xf8699b['descriptionFactory']['registerDescriptionCallback'](_0x2b3645=>{if('attribute'!=_0x2b3645['type'])return;const {data:_0x2cef86}=_0x2b3645;if(!_0x2cef86||'listItemId'!=_0x2cef86['key'])return;const _0x5cd02b=Te(_0x2b3645);return'newValue'==_0x5cd02b?{'type':'format','content':o(_0x52be2c,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5cd02b?{'type':'format','content':o(_0x52be2c,'*Split:*\x20list\x20item')}:_0x2a5d7e;}),_0x3c36f1['model']['document']['registerPostFixer'](_0x1a29d3=>this['listItemIdFixer'](_0x1a29d3)),_0x3c36f1['model']['document']['registerPostFixer'](_0x296667=>this['noTrackChangesFixer'](_0x296667)),_0x3c36f1['model']['document']['on']('change:data',(_0x6072d5,_0x18f548)=>{if(_0x18f548['isUndo']||!_0x18f548['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3748b9){if(_0x3748b9['batch']['isUndo']||!_0x3748b9['batch']['isLocal'])return!0x1;let _0x34cac3=!0x1;const _0x393315=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1e1540=>_0x1e1540['data']&&'listItemId'==_0x1e1540['data']['key'])['filter'](_0xc0d1c5=>_0xc0d1c5['data']['newValue']&&_0xc0d1c5['data']['oldValue']);for(const _0x556ab8 of _0x393315)Te(_0x556ab8)||(_0x3748b9['removeMarker'](_0x556ab8['getFirstMarker']()),_0x34cac3=!0x0);return _0x34cac3;}['noTrackChangesFixer'](_0x46f877){if(_0x46f877['batch']['isUndo']||!_0x46f877['batch']['isLocal'])return!0x1;const _0x4090b7=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4090b7['trackChangesCommand']['value'])return!0x1;let _0x25cb46=!0x1;const _0x44ba17=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x17559e=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xf08d24=>'attribute'==_0xf08d24['type'])['filter'](_0x1f1bcc=>_0x44ba17['includes'](_0x1f1bcc['attributeKey']));if(0x0==_0x17559e['length'])return _0x25cb46;for(const _0x273385 of _0x17559e){const _0x1801fc=_0x4090b7['_findSuggestions'](_0x273385['range'],'attribute')['filter'](_0x585d65=>!_0x585d65['meta']['isNextTo'])['map'](_0x4feb29=>_0x4feb29['suggestion'])['filter'](_0x4dff92=>{const _0x36cc21=_0x4090b7['_getAttributeKey'](_0x4dff92);return _0x44ba17['includes'](_0x36cc21);});if(_0x1801fc['length']){for(const _0x54ea91 of _0x1801fc)_0x46f877['removeMarker'](_0x54ea91['getFirstMarker']());_0x25cb46=!0x0;}}return _0x25cb46;}['assureChains'](){const _0x530e4b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5de2da=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x27de12;const _0x1bd4fe=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x135172=>{if(_0x135172['data']['oldRange']||!_0x135172['data']['newRange'])return null;if(!_0x135172['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x39fcd9}=_0x530e4b['_splitMarkerName'](_0x135172['name']);if(!_0x530e4b['hasSuggestion'](_0x39fcd9))return null;const _0x4f90f7=_0x530e4b['getSuggestion'](_0x39fcd9);return _0x5de2da['includes'](_0x4f90f7['data']['key']);})['map'](_0x5f1eb0=>{const {id:_0x4058e3}=_0x530e4b['_splitMarkerName'](_0x5f1eb0['name']),_0x4afa5e=_0x530e4b['getSuggestion'](_0x4058e3);return _0x27de12=_0x4afa5e['attributes']['groupId'],_0x4afa5e['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x1bd4fe['size'])return;const _0x110aff=_0x530e4b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x592b08=>'attribute'==_0x592b08['type']&&_0x592b08['data']&&_0x5de2da['includes'](_0x592b08['data']['key'])&&_0x592b08['attributes']['groupId']!=_0x27de12)['map'](_0x4ee8ea=>({'listItem':_0x4ee8ea['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4ee8ea['attributes']['groupId']})),_0xfd75e2=new Set();for(const {groupId:_0x30e29e,listItem:_0x257290}of _0x110aff)_0x1bd4fe['has'](_0x257290)&&_0xfd75e2['add'](_0x30e29e);for(const _0x3aea99 of _0x530e4b['getSuggestions']())_0xfd75e2['has'](_0x3aea99['attributes']['groupId'])&&_0x3aea99['setAttribute']('groupId',_0x27de12);}['_supportLegacySuggestions'](){const _0x22c70e=this['editor'],_0x29dbf8=_0x22c70e['locale'],_0x549e63=_0x22c70e['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x549e63['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5bc69e,_0x7e6b13){const _0xa5504d=[];for(let _0x290319 of _0x5bc69e)_0x290319['start']['nodeAfter']===_0x290319['end']['parent']&&(_0x290319=_0x22c70e['model']['createRange'](_0x22c70e['model']['createPositionAt'](_0x290319['start']['nodeAfter'],0x0))),_0xa5504d['push'](_0x290319);_0x22c70e['model']['change'](_0x1eb1a4=>{const _0x5f2ec1=_0x22c70e['model']['document']['selection'],_0x2b5016=Array['from'](_0x5f2ec1['getRanges']())['map'](_0x2477d0=>_0x54bffc['fromRange'](_0x2477d0));_0x1eb1a4['setSelection'](_0xa5504d),_0x22c70e['commands']['get'](_0x7e6b13['commandName'])['refresh'](),_0x7e6b13['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x22c70e['execute'](_0x7e6b13['commandName'],..._0x7e6b13['commandParams']),_0x1eb1a4['setSelection'](_0x2b5016);for(const _0x37b93d of _0x2b5016)_0x37b93d['detach']();});}),_0x549e63['descriptionFactory']['registerElementLabel'](function(_0x20e177){const _0x4d7052=!_0x22c70e['model']['schema']['isObject'](_0x20e177),_0x52bfe9=_0x20e177['previousSibling'],_0x18042f=_0x20e177['nextSibling'],_0x4013af=_0x20e177['getAttribute']('listItemId'),_0x391594=!_0x52bfe9||_0x52bfe9['getAttribute']('listItemId')!==_0x4013af,_0x1d8fd9=!_0x18042f||_0x18042f['getAttribute']('listItemId')!==_0x4013af;return _0x4d7052&&Boolean(_0x4013af)&&_0x391594&&_0x1d8fd9;},_0x16b246=>o(_0x29dbf8,'ELEMENT_LIST_ITEM',_0x16b246));}['_registerLegacyDescription'](){const _0x577424=this['editor'],_0x1db38f=_0x577424['locale'];function _0x2bc294(_0x2981be){const _0x3e1795=_0x577424['commands']['get']('bulletedList')['value'],_0x4920ec=_0x577424['commands']['get']('numberedList')['value'];return'numberedList'===_0x2981be?_0x3e1795:_0x4920ec;}_0x577424['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x426bdf){if('formatBlock'!=_0x426bdf['type'])return;const {data:_0x461942}=_0x426bdf;if(!_0x461942)return;let _0x3a92cd,_0x1e1cc8,_0x553f4c,_0x2e0325;switch(_0x461942['commandName']){case'bulletedList':_0x553f4c=_0x461942['commandParams'][0x0]['forceValue'],_0x2e0325=_0x2bc294(_0x461942['commandName']),_0x3a92cd=_0x553f4c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2e0325&&_0x577424['config']['get']('list.multiBlock')||(_0x3a92cd='*Change\x20to:*\x20%0'),_0x1e1cc8={'type':'format','content':o(_0x1db38f,_0x3a92cd,o(_0x1db38f,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x553f4c=_0x461942['commandParams'][0x0]['forceValue'],_0x2e0325=_0x2bc294(_0x461942['commandName']),_0x3a92cd=_0x553f4c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2e0325&&_0x577424['config']['get']('list.multiBlock')||(_0x3a92cd='*Change\x20to:*\x20%0'),_0x1e1cc8={'type':'format','content':o(_0x1db38f,_0x3a92cd,o(_0x1db38f,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3a92cd='*Indent:*\x20%0',_0x1e1cc8={'type':'format','content':o(_0x1db38f,_0x3a92cd,o(_0x1db38f,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3a92cd=function(_0x51d7b7){const _0x525337=_0x51d7b7['getFirstRange']();let _0x2f7c75=_0x525337['start']['nodeAfter'];for(;_0x2f7c75&&_0x525337['containsItem'](_0x2f7c75);){if(_0x2f7c75['getAttribute']('listIndent')>0x0)return!0x1;_0x2f7c75=_0x2f7c75['nextSibling'];}return!0x0;}(_0x426bdf)?o(_0x1db38f,'*Format:*\x20remove\x20from\x20%0',o(_0x1db38f,function(_0x10bd94){return'ELEMENT_'+_0x10bd94['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x426bdf))):o(_0x1db38f,'*Outdent:*\x20%0',o(_0x1db38f,'ELEMENT_LIST_ITEM')),_0x1e1cc8={'type':'format','content':_0x3a92cd};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x461942['multipleBlocks']&&(_0x3a92cd='*Merge:*\x20%0',_0x1e1cc8={'type':'deletion','content':o(_0x1db38f,_0x3a92cd,o(_0x1db38f,'ELEMENT_LIST_ITEM'))});}return _0x1e1cc8;});}}function Te(_0x17c5e9){let _0x244f1c=_0x17c5e9['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x244f1c;){const _0x36ad81=_0x244f1c['getAttribute']('listItemId');if(!_0x36ad81)return!0x1;if(_0x36ad81==_0x17c5e9['data']['newValue'])return'newValue';if(_0x36ad81==_0x17c5e9['data']['oldValue'])return'oldValue';_0x244f1c=_0x244f1c['previousSibling'];}return!0x1;}class Y extends _0xe64fa2{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x6697ef=this['editor']['config']['get']('list.properties'),_0x3334be=this['editor']['plugins']['get']('TrackChangesEditing');_0x6697ef['styles']&&_0x3334be['enableDefaultAttributesIntegration']('listStyle'),_0x6697ef['reversed']&&_0x3334be['enableDefaultAttributesIntegration']('listReversed'),_0x6697ef['startIndex']&&_0x3334be['enableDefaultAttributesIntegration']('listStart');const _0x458056={'type':'format','content':''};_0x3334be['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1b5d17=this['editor']['locale'];_0x3334be['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x1b5d17,'FORMAT_LIST_REVERSED')),_0x3334be['descriptionFactory']['registerDescriptionCallback'](_0x282c15=>{const {data:_0x36d90f}=_0x282c15;if(_0x36d90f&&'listReversed'==_0x36d90f['key'])return null==_0x36d90f['newValue']||0x0==_0x36d90f['newValue']&&null==_0x36d90f['oldValue']?_0x458056:void 0x0;}),_0x3334be['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x1b5d17,'FORMAT_LIST_START')),_0x3334be['descriptionFactory']['registerDescriptionCallback'](_0x2466a1=>{const {data:_0xdae336}=_0x2466a1;if(_0xdae336&&'listStart'==_0xdae336['key'])return null==_0xdae336['newValue']||0x1==_0xdae336['newValue']&&null==_0xdae336['oldValue']?_0x458056:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5457cc=>{if(_0x5457cc['batch']['isUndo'])return!0x1;let _0x1cfcbd=!0x1;const _0x3050f0=_0x3334be['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2cbd1e=>{const _0x1d6a25=_0x3334be['_getAttributeKey'](_0x2cbd1e);return'listStart'==_0x1d6a25||'listReversed'==_0x1d6a25;});for(const _0x46bd38 of _0x3050f0){const _0x3c0025=_0x46bd38['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3c0025||'customNumbered'==_0x3c0025)continue;_0x3334be['_findSuggestions'](_0x46bd38['getFirstRange'](),'attribute')['find'](_0x16201d=>'listType'==_0x3334be['_getAttributeKey'](_0x16201d['suggestion']))||(_0x5457cc['removeMarker'](_0x46bd38['getFirstMarker']()),_0x1cfcbd=!0x0);}return _0x1cfcbd;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5665f7){const _0x255799=this['editor']['locale'],{data:_0xdc2a4f}=_0x5665f7,_0x1262b5={'type':'format','content':''};if(!_0xdc2a4f||'listStyle'!=_0xdc2a4f['key'])return;if(!_0xdc2a4f['oldValue'])return'default'==_0xdc2a4f['newValue']?_0x1262b5:{'type':'format','content':''+o(_0x255799,'*Set\x20format:*\x20%0',o(_0x255799,this['_getTranslationKeyForListStyle'](_0xdc2a4f['newValue'])))};if(!_0xdc2a4f['newValue']){if('default'==_0xdc2a4f['oldValue'])return _0x1262b5;let _0x533deb=_0x5665f7['head'];for(;_0x533deb;){if(_0x533deb['data']&&'listType'==_0x533deb['data']['key']&&_0x533deb['data']['newValue'])return _0x1262b5;_0x533deb=_0x533deb['next'];}return{'type':'format','content':''+o(_0x255799,'*Remove\x20format:*\x20%0',o(_0x255799,this['_getTranslationKeyForListStyle'](_0xdc2a4f['oldValue'])))};}if('default'!=_0xdc2a4f['newValue'])return{'type':'format','content':''+o(_0x255799,'*Set\x20format:*\x20%0',o(_0x255799,this['_getTranslationKeyForListStyle'](_0xdc2a4f['newValue'])))};let _0x5db6a5=_0x5665f7['head'];for(;_0x5db6a5;){if(_0x5db6a5['data']&&'listType'==_0x5db6a5['data']['key']&&_0x5db6a5['data']['newValue']&&_0x5db6a5['data']['oldValue'])return _0x1262b5;_0x5db6a5=_0x5db6a5['next'];}return{'type':'format','content':o(_0x255799,'*Set\x20format:*\x20%0',o(_0x255799,'ELEMENT_'+_0x5665f7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2ac103=this['editor'],_0x149c62=_0x2ac103['locale'];_0x2ac103['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ee437=>{if('formatBlock'!=_0x5ee437['type'])return;const {data:_0x132b38}=_0x5ee437;if(!_0x132b38)return;let _0x214673,_0x4f8ef1;switch(_0x132b38['commandName']){case'listStyle':_0x214673='*Change\x20to:*\x20%0',_0x4f8ef1={'type':'format','content':o(_0x149c62,_0x214673,o(_0x149c62,this['_getTranslationKeyForListStyle'](_0x132b38['commandParams'][0x0]['type'])))};break;case'listReversed':_0x214673=_0x132b38['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4f8ef1={'type':'format','content':o(_0x149c62,_0x214673)};break;case'listStart':_0x214673='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4f8ef1={'type':'format','content':o(_0x149c62,_0x214673,_0x132b38['commandParams'][0x0]['startIndex'])};}return _0x4f8ef1;});}['_getTranslationKeyForListStyle'](_0x3d2b4d){return'ELEMENT_'+function(_0x2a18e2){if(ye['includes'](_0x2a18e2))return'bulleted';if(Se['includes'](_0x2a18e2))return'numbered';return null;}(_0x3d2b4d)['toUpperCase']()+'_LIST_'+_0x3d2b4d['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class Z extends _0xe64fa2{['afterInit'](){const _0x1b078a=this['editor'];_0x1b078a['commands']['get']('emoji')&&_0x1b078a['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class tt extends _0xe64fa2{static get['requires'](){return[_0x1bf802];}['init'](){const _0x284b25=this['editor'],_0x5bd26e=_0x284b25['plugins']['get']('TrackChangesEditing'),_0x3e0a2f=_0x284b25['commands']['get']('enter');_0x5bd26e['enableCommand']('enter',()=>{_0x284b25['model']['change'](_0x4e8a6e=>{const _0x55e40e=_0x284b25['model']['document']['selection'],_0x29ff66=_0x55e40e['getFirstPosition'](),_0x520c9b=_0x54bffc['fromRange'](_0x55e40e['getFirstRange']());if(_0x3e0a2f['enterBlock'](_0x4e8a6e)){const _0x5f2f4d=_0x284b25['model']['createPositionAt'](_0x29ff66['parent']['nextSibling'],0x0),_0x55e48b=_0x4e8a6e['createRange'](_0x29ff66,_0x5f2f4d);_0x5bd26e['markInsertion'](_0x55e48b);}else _0x4e8a6e['setSelection'](_0x4e8a6e['createRange'](_0x520c9b['end']));_0x520c9b['detach'](),_0x3e0a2f['fire']('afterExecute',{'writer':_0x4e8a6e});});});}}class nt extends _0xe64fa2{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x236c9a=this['editor']['plugins']['get']('TrackChangesEditing');_0x236c9a['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x236c9a['enableCommand']('findNext'),_0x236c9a['enableCommand']('findPrevious'),_0x236c9a['enableCommand']('replace'),_0x236c9a['enableCommand']('replaceAll');}['handleFindCommand'](_0x580700,_0xf312f1,_0xa0c4c6={}){const _0x2b174e=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x580700(_0x5c9c45=>{let _0x12166d=('string'==typeof _0xf312f1?_0x2b174e['findByTextCallback'](_0xf312f1,_0xa0c4c6):_0xf312f1)(_0x5c9c45);Array['isArray'](_0x12166d)&&(_0x12166d={'results':_0x12166d,'searchText':'string'==typeof _0xf312f1?_0xf312f1:''});const _0x41b80c=_0x12166d['results']['filter'](_0x365d71=>!0x1===this['_isInDeletionRange'](_0x365d71,_0x5c9c45['item']));return{..._0x12166d,'results':_0x41b80c};},_0xa0c4c6);}['_isInDeletionRange'](_0x129fff,_0x2f43da){const _0x1e8ab8=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2f43da,_0x129fff['start']),this['editor']['model']['createPositionAt'](_0x2f43da,_0x129fff['end']));for(const _0x119050 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1e8ab8['getIntersection'](_0x119050['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class it extends _0xe64fa2{['afterInit'](){const _0x399d60=this['editor']['locale'],_0x4b52e1=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x44d189,commandName:_0x57ecf2}of eo)this['editor']['plugins']['has'](_0x44d189)&&_0x4b52e1['enableDefaultAttributesIntegration'](_0x57ecf2);_0x4b52e1['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x399d60,'FORMAT_FONT_SIZE')),_0x4b52e1['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x399d60,'FORMAT_FONT_FAMILY')),_0x4b52e1['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x399d60,'FORMAT_FONT_COLOR')),_0x4b52e1['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x399d60,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19d473=this['editor'],_0x263622=_0x19d473['locale'];_0x19d473['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x100867=>{const _0x4224cd=_0x263622['t'];if('formatInline'!=_0x100867['type'])return;const {data:_0x2f01ff}=_0x100867;if(null!=_0x2f01ff){if('fontSize'==_0x2f01ff['commandName']){const _0x1b9fe9=_0x2f01ff['commandParams'][0x0]['value'];if(_0x1b9fe9){const _0xd4d6bf=_0x4224cd(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5cbee5=>_0x5cbee5['model']==_0x1b9fe9)['title'])['toLowerCase']();return{'type':'format','content':o(_0x263622,'*Set\x20font\x20size:*\x20%0',_0xd4d6bf)};}return{'type':'format','content':o(_0x263622,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2f01ff['commandName']){const _0x5ab6a1=_0x2f01ff['commandParams'][0x0]['value'];return _0x5ab6a1?{'type':'format','content':o(_0x263622,'*Set\x20font\x20family:*\x20%0',_0x5ab6a1)}:{'type':'format','content':o(_0x263622,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2f01ff['commandName']){const _0x28398c=_0x2f01ff['commandParams'][0x0]['value'];if(_0x28398c){const _0x3aa033=_0x2480d4(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2c3009=>_0x2c3009['model']==_0x28398c);let _0xea3cb5=_0x28398c,_0x29e221='';return _0x3aa033&&(_0xea3cb5=_0x3aa033['label'],_0x29e221=_0x4224cd(_0xea3cb5)['toLowerCase']()),{'type':'format','content':o(_0x263622,'*Set\x20font\x20color:*\x20%0',_0x29e221)['trim'](),'color':{'value':_0x28398c,'title':_0x29e221||_0xea3cb5}};}return{'type':'format','content':o(_0x263622,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2f01ff['commandName']){const _0x1ed9cc=_0x2f01ff['commandParams'][0x0]['value'];if(_0x1ed9cc){const _0x52f714=_0x2480d4(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x270e48=>_0x270e48['model']==_0x1ed9cc);let _0x4dcb20=_0x1ed9cc,_0x58efc='';return _0x52f714&&(_0x4dcb20=_0x52f714['label'],_0x58efc=_0x4224cd(_0x4dcb20)['toLowerCase']()),{'type':'format','content':o(_0x263622,'*Set\x20font\x20background\x20color:*\x20%0',_0x58efc)['trim'](),'color':{'value':_0x1ed9cc,'title':_0x58efc||_0x4dcb20}};}return{'type':'format','content':o(_0x263622,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0xe64fa2{['afterInit'](){const {plugins:_0x3f9f45}=this['editor'];_0x3f9f45['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x3f9f45['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0xdd56ca,plugins:_0x45c598,commands:_0x113d11}=this['editor'],_0x1f0b77=_0x45c598['get']('TrackChangesEditing');_0x113d11['get']('footnotesStyle')&&_0x1f0b77['enableDefaultAttributesIntegration']('footnotesStyle'),_0x113d11['get']('footnotesStart')&&_0x1f0b77['enableDefaultAttributesIntegration']('footnotesStart'),_0x1f0b77['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0xdd56ca,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x1f0b77['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0xdd56ca,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x158a35=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x46753c,commands:_0xa433b6}=this['editor'];_0xa433b6['get']('insertFootnote')&&_0x158a35['enableCommand']('insertFootnote'),_0x158a35['descriptionFactory']['registerElementLabel']('footnoteRef',_0x9abe1b=>o(_0x46753c,'ELEMENT_FOOTNOTE_REF',_0x9abe1b)),_0x158a35['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x571b7c=>o(_0x46753c,'ELEMENT_FOOTNOTE_DEFINITION',_0x571b7c)),_0x158a35['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x3aeebf=>o(_0x46753c,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x3aeebf));}}class st extends _0xe64fa2{['afterInit'](){const _0x56a65d=this['editor'],_0x3d76bd=_0x56a65d['plugins']['get']('TrackChangesEditing'),_0x1c661a=_0x56a65d['commands']['get']('copyFormat'),_0x2520b6=_0x56a65d['commands']['get']('pasteFormat');_0x1c661a&&_0x2520b6&&(_0x3d76bd['enableDefaultAttributesIntegration']('pasteFormat'),_0x3d76bd['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1463b5=this['editor'],_0x40e4c8=_0x1463b5['locale'];_0x1463b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a2e0a=>{if('formatBlock'!=_0x3a2e0a['type']&&'formatInline'!=_0x3a2e0a['type'])return;const {data:_0x749a72}=_0x3a2e0a;if(_0x749a72&&'pasteFormat'===_0x749a72['commandName']){const _0x1a8a3c=[],_0xdc5827=_0x749a72['commandParams'][0x0];for(const [_0x4736a6,_0x1d377a]of Object['entries'](_0xdc5827))_0x1a8a3c['push'](ro(_0x1463b5,_0x4736a6,_0x1d377a));return _0x1a8a3c['length']?{'type':'format','content':o(_0x40e4c8,'*Set\x20format\x20to:*\x20%0',_0x1a8a3c['join'](',\x20'))}:{'type':'format','content':o(_0x40e4c8,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x6b3de5,_0x20bfe0,_0x13e07c){const _0x2370d9=_0x6b3de5['locale']['t'],_0x123114=_0x20bfe0['split'](/(?=[A-Z])/)['join']('\x20'),_0x32a120=_0x2370d9(_0x123114['charAt'](0x0)['toUpperCase']()+_0x123114['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x13e07c)return _0x32a120;if('fontColor'===_0x20bfe0||'fontBackgroundColor'===_0x20bfe0){const _0x248d6f=_0x2480d4(_0x6b3de5['config']['get']('fontColor.colors'))['find'](_0x50a6d4=>_0x50a6d4['model']==_0x13e07c);return _0x32a120+'\x20('+(_0x248d6f?_0x2370d9(_0x248d6f['label'])['toLowerCase']():_0x13e07c)+')';}if('fontSize'===_0x20bfe0&&isNaN(parseFloat(_0x13e07c))){const _0x1aefa9=_0x6b3de5['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x6b3de5['config']['get']('fontSize.options'))['find'](_0x2b4b1a=>_0x2b4b1a['model']==_0x13e07c);return _0x32a120+'\x20('+(_0x1aefa9?_0x2370d9(_0x1aefa9['title'])['toLowerCase']():_0x13e07c)+')';}return _0x32a120+'\x20('+_0x13e07c+')';}class ot extends _0xe64fa2{['_headingOptions'];['afterInit'](){const _0x109a2b=this['editor'];if(!_0x109a2b['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x109a2b['config']['get']('heading.options');const _0x4f6fdb=_0x109a2b['locale'],_0x12b156=_0x109a2b['plugins']['get']('TrackChangesEditing');_0x12b156['enableDefaultAttributesIntegration']('heading');for(const _0x13899f of this['_headingOptions'])'paragraph'!=_0x13899f['model']&&_0x12b156['descriptionFactory']['registerElementLabel'](_0x13899f['model'],_0x76632f=>{const _0x1e301f=this['_getHeadingLevel'](_0x13899f['model']);return null!==_0x1e301f?_0x4a3845(_0x76632f,_0x1e301f):_0x48ba07(_0x76632f,_0x13899f['title']);});function _0x4a3845(_0x4601d9,_0x2f0002){return o(_0x4f6fdb,'ELEMENT_HEADING',[_0x4601d9,_0x2f0002]);}function _0x48ba07(_0x59db02,_0x3ac6cf){return o(_0x4f6fdb,'ELEMENT_HEADING_CUSTOM',[_0x59db02,_0x3ac6cf]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5258d9=this['editor'],_0x2888a9=_0x5258d9['locale'];function _0xcd7ecb(_0x39f3bb,_0x10d0ca){return o(_0x2888a9,'ELEMENT_HEADING_CUSTOM',[_0x39f3bb,_0x10d0ca]);}_0x5258d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35abb2=>{if('formatBlock'!=_0x35abb2['type'])return;const {data:_0x60f542}=_0x35abb2;if(_0x60f542&&'heading'==_0x60f542['commandName']){const _0x2b4e9c=_0x60f542['commandParams'][0x0]['value'],_0x4f4de4=this['_getHeadingLevel'](_0x2b4e9c);if(null!==_0x4f4de4)return{'type':'format','content':o(_0x2888a9,'*Change\x20to:*\x20%0',(_0x9f6ffd=0x1,_0x332abb=_0x4f4de4,o(_0x2888a9,'ELEMENT_HEADING',[_0x9f6ffd,_0x332abb])))};const _0x52088b=this['_headingOptions']['find'](_0x164685=>_0x164685['model']===_0x2b4e9c)['title'];return{'type':'format','content':o(_0x2888a9,'*Change\x20to:*\x20%0',_0xcd7ecb(0x1,_0x52088b))};}var _0x9f6ffd,_0x332abb;});}['_getHeadingLevel'](_0x1861a5){const _0x504e22=_0x1861a5['match'](/^heading(\d+)/);if(_0x504e22)return _0x504e22[0x1];const _0x5538c6=this['_headingOptions']?.['find'](_0x4bfb56=>_0x4bfb56['model']==_0x1861a5);if(_0x5538c6&&_0x5538c6['view']){const _0x54df13=_0x5538c6['view'],_0x3ba11a=(_0x54df13['name']??_0x54df13)['match'](/^h(\d+)/);if(_0x3ba11a)return _0x3ba11a[0x1];}return null;}}class rt extends _0xe64fa2{['afterInit'](){const _0x5ba2f3=this['editor'];if(!_0x5ba2f3['plugins']['has']('HighlightEditing'))return;const _0x44bff1=_0x5ba2f3['plugins']['get']('TrackChangesEditing'),_0x249e72=_0x5ba2f3['locale'];_0x44bff1['enableDefaultAttributesIntegration']('highlight'),_0x44bff1['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x249e72,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f2958=this['editor'],_0x7918f8=_0x1f2958['locale'];_0x1f2958['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x729e72=>{if('formatInline'!=_0x729e72['type'])return;const {data:_0x5d691e}=_0x729e72;if(_0x5d691e&&'highlight'==_0x5d691e['commandName']){const _0x1949a5=_0x7918f8['t'],_0x5e259f=_0x5d691e['commandParams'][0x0]['value'];if(_0x5e259f){const _0x49f3d0=_0x1f2958['config']['get']('highlight.options')['find'](_0x52bd12=>_0x52bd12['model']==_0x5e259f),_0x2be982=_0x1949a5(_0x49f3d0['title'])['toLowerCase']();return{'type':'format','content':o(_0x7918f8,'*Set\x20highlight:*\x20%0',_0x2be982),'color':{'value':_0x49f3d0['color'],'title':_0x49f3d0['title']}};}return{'type':'format','content':o(_0x7918f8,'*Remove\x20highlight*',o(_0x7918f8,'FORMAT_HIGHLIGHT'))};}});}}class at extends _0xe64fa2{['afterInit'](){const _0x315916=this['editor'];if(!_0x315916['plugins']['has']('HorizontalLineEditing'))return;_0x315916['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x11b8db=_0x315916['plugins']['get']('TrackChangesEditing'),_0x1f0078=_0x315916['locale'];_0x11b8db['descriptionFactory']['registerElementLabel']('horizontalLine',_0x483adf=>o(_0x1f0078,'ELEMENT_HORIZONTAL_LINE',_0x483adf));}}class ct extends _0xe64fa2{['afterInit'](){const _0x4ff428=this['editor'];if(!_0x4ff428['plugins']['has']('HtmlEmbed'))return;const _0xdfb1a3=_0x4ff428['plugins']['get']('TrackChangesEditing'),_0x4865c5=_0x4ff428['locale'];_0xdfb1a3['descriptionFactory']['registerElementLabel']('rawHtml',_0x3de1cd=>o(_0x4865c5,'ELEMENT_HTML_EMBED',_0x3de1cd)),_0xdfb1a3['enableDefaultAttributesIntegration']('htmlEmbed'),_0xdfb1a3['descriptionFactory']['registerDescriptionCallback'](_0x7cc1f=>{if('attribute'!=_0x7cc1f['type'])return;const {data:_0x4f43b2}=_0x7cc1f;if(_0x4f43b2&&'value'==_0x4f43b2['key']&&_0x7cc1f['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x490408=o(_0x4865c5,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4865c5,'*Change\x20%0\x20content*',_0x490408)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f34dc=this['editor'],_0x3cb8b3=_0x1f34dc['locale'];_0x1f34dc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3078b1=>{if('formatBlock'!=_0x3078b1['type'])return;const {data:_0x3d09c5}=_0x3078b1;if(_0x3d09c5&&'htmlEmbed'==_0x3d09c5['commandName']){const _0x509f37=o(_0x3cb8b3,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3cb8b3,'*Change\x20%0\x20content*',_0x509f37)};}});}}class ut extends _0xe64fa2{['afterInit'](){const _0x4a0407=this['editor'];if(!_0x4a0407['plugins']['has']('ImageEditing'))return;const _0x3e70d6=_0x4a0407['plugins']['get']('TrackChangesEditing'),_0x1c5c53=_0x4a0407['plugins']['get']('ImageUtils'),_0x34562f=_0x4a0407['locale'];_0x3e70d6['enableCommand']('insertImage'),_0x3e70d6['descriptionFactory']['registerElementLabel']('imageBlock',_0xcd872a=>o(_0x34562f,'ELEMENT_IMAGE',_0xcd872a)),_0x3e70d6['descriptionFactory']['registerElementLabel']('imageInline',_0x282b58=>o(_0x34562f,'ELEMENT_INLINE_IMAGE',_0x282b58)),_0x3e70d6['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x34562f,'ELEMENT_CAPTION')),_0x4a0407['plugins']['has']('ImageUploadEditing')&&_0x3e70d6['enableCommand']('uploadImage'),_0x4a0407['plugins']['has']('ImageBlockEditing')&&_0x4a0407['plugins']['has']('ImageInlineEditing')&&(_0x3e70d6['enableCommand']('imageTypeInline',(_0x1271dd,_0x101fe6)=>{const _0x5a9c63=_0x1c5c53['getClosestSelectedImageElement'](_0x4a0407['model']['document']['selection']);_0x4a0407['model']['change'](()=>{_0x3e70d6['markBlockFormat'](_0x5a9c63,{'commandName':'imageTypeInline','commandParams':[_0x101fe6]},[],'convertBlockImageToInline');});}),_0x3e70d6['enableCommand']('imageTypeBlock',(_0x46688b,_0x21e062)=>{_0x4a0407['model']['change'](_0x3bd78c=>{let _0x11db37=_0x1c5c53['getClosestSelectedImageElement'](_0x4a0407['model']['document']['selection']),_0x3a23fd=_0x3bd78c['createRangeOn'](_0x11db37);const _0x490f6e=_0x19f516['fromPosition'](_0x3a23fd['start'],'toPrevious'),_0x2650f1=_0x19f516['fromPosition'](_0x3a23fd['end'],'toNext');_0x3e70d6['forceDefaultExecution'](()=>_0x46688b(_0x21e062)),_0x11db37=_0x1c5c53['getClosestSelectedImageElement'](_0x4a0407['model']['document']['selection']),_0x3a23fd=_0x3bd78c['createRangeOn'](_0x11db37);const _0x2112e9=_0x3bd78c['createRange'](_0x490f6e,_0x2650f1);_0x490f6e['detach'](),_0x2650f1['detach'](),_0x3e70d6['markBlockFormat'](_0x11db37,{'commandName':'imageTypeInline','commandParams':[_0x21e062]},[],'convertInlineImageToBlock'),_0x2112e9['start']['isBefore'](_0x3a23fd['start'])&&_0x3e70d6['markInsertion'](_0x3bd78c['createRange'](_0x2112e9['start'],_0x3a23fd['start']),'convertInlineImageToBlock'),_0x3a23fd['end']['isBefore'](_0x2112e9['end'])&&_0x3e70d6['markInsertion'](_0x3bd78c['createRange'](_0x3a23fd['end'],_0x2112e9['end']),'convertInlineImageToBlock');});}),_0x3e70d6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3e70d6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3e70d6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3e70d6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3e70d6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3e70d6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4435dc])=>{const _0x3b0f77=_0x3e70d6['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x56a23c=_0x4435dc['start'],_0x45693a=_0x4435dc['end'];const _0x2f6ae0=_0x4a0407['model']['schema']['getNearestSelectionRange'](_0x56a23c,'backward'),_0x1a5051=_0x4a0407['model']['schema']['getNearestSelectionRange'](_0x45693a,'forward');_0x2f6ae0['isCollapsed']&&(_0x56a23c=_0x2f6ae0['start']),_0x1a5051['isCollapsed']&&(_0x45693a=_0x1a5051['end']),_0x3b0f77([_0x4a0407['model']['createRange'](_0x56a23c,_0x45693a)]);}),_0x3e70d6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x439766),_0x3e70d6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x439766)),_0x4a0407['plugins']['has']('ImageCaptionEditing')&&(_0x3e70d6['enableCommand']('toggleImageCaption',(_0x38ac89,_0x462403)=>{const _0x212d72=_0x4a0407['plugins']['get']('ImageCaptionUtils');let _0x40b462=_0x1c5c53['getClosestSelectedImageElement'](_0x4a0407['model']['document']['selection']),_0xb94e2a=_0x212d72['getCaptionFromImageModelElement'](_0x40b462);_0x4a0407['model']['change'](()=>{if(_0xb94e2a)return void _0x3e70d6['markDeletion'](_0x4a0407['model']['createRangeOn'](_0xb94e2a));const _0x3d4428=_0x1c5c53['isBlockImage'](_0x40b462);_0x38ac89(_0x462403),_0x40b462=_0x1c5c53['getClosestSelectedImageElement'](_0x4a0407['model']['document']['selection']),_0xb94e2a=_0x212d72['getCaptionFromImageModelElement'](_0x40b462),_0x3e70d6['markInsertion'](_0x4a0407['model']['createRangeOn'](_0xb94e2a),_0x3d4428?null:'imageCaption');});}),_0x3e70d6['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x439766));const _0x2f8427=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3a64cb(_0x31d740,_0x5a7df0){const _0x577dad=_0x2f8427['findIndex'](({type:_0x1f9f5d,subType:_0x1c4087})=>_0x31d740['type']==_0x1f9f5d&&_0x31d740['subType']==_0x1c4087),_0x1094da=_0x2f8427['findIndex'](({type:_0x4bb48d,subType:_0x4ed319})=>_0x5a7df0['type']==_0x4bb48d&&_0x5a7df0['subType']==_0x4ed319);if(_0x577dad<0x0||_0x1094da<0x0)return!0x1;const _0x1befd6=_0x31d740['getFirstRange'](),_0x1408ab=_0x5a7df0['getFirstRange']();if((0x0==_0x577dad||0x1==_0x577dad)&&0x2==_0x1094da&&_0x1befd6['isIntersecting'](_0x1408ab))return!0x0;if(0x2==_0x577dad&&0x3==_0x1094da){const _0x2754aa=_0x3e70d6['_findSuggestions'](_0x1befd6,'insertion')['filter'](({suggestion:_0x413665,meta:_0x30486e})=>_0x30486e['isOwn']&&'convertInlineImageToBlock'==_0x413665['subType']);if(_0x2754aa['length']>0x1&&_0x1408ab['end']['isEqual'](_0x1befd6['start']))return!0x0;if(0x1==_0x2754aa['length']&&(_0x1befd6['start']['isEqual'](_0x1408ab['end'])||_0x1befd6['end']['isEqual'](_0x1408ab['start'])))return!0x0;}if(0x3==_0x577dad&&0x3==_0x1094da&&_0x1befd6['start']['isBefore'](_0x1408ab['start'])){const _0x49d716=_0x1befd6['end']['nodeAfter'],_0x5b0d04=_0x1408ab['start']['nodeBefore'];return _0x1c5c53['isBlockImage'](_0x49d716)&&_0x49d716===_0x5b0d04;}return!0x1;}function _0x439766(_0x183903,_0x5e1f28){return _0x3a64cb(_0x183903,_0x5e1f28)?[_0x183903,_0x5e1f28]:_0x3a64cb(_0x5e1f28,_0x183903)?[_0x5e1f28,_0x183903]:null;}_0x4a0407['plugins']['has']('ImageResize')&&(_0x3e70d6['enableDefaultAttributesIntegration']('resizeImage'),_0x3e70d6['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x34562f,'FORMAT_IMAGE_SIZE'))),_0x4a0407['plugins']['has']('ImageTextAlternativeEditing')&&_0x3e70d6['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4a0407['plugins']['has']('PictureEditing')&&_0x3e70d6['descriptionFactory']['registerDescriptionCallback'](_0x420f58=>{if('attribute'!=_0x420f58['type'])return;const {data:_0x13ad16}=_0x420f58;return _0x13ad16&&'sources'==_0x13ad16['key']?{'type':'format','content':''}:void 0x0;}),_0x4a0407['plugins']['has']('ImageSizeAttributes')&&_0x3e70d6['descriptionFactory']['registerDescriptionCallback'](_0xd73399=>{if('attribute'!=_0xd73399['type'])return;const {data:_0x15d471}=_0xd73399;return!_0x15d471||'width'!=_0x15d471['key']&&'height'!=_0x15d471['key']?void 0x0:{'type':'format','content':''};}),_0x3e70d6['descriptionFactory']['registerDescriptionCallback'](_0x5b11a6=>{if(!!_0x2f8427['find'](({type:_0x5ba0bf,subType:_0x5e1548})=>_0x5b11a6['type']==_0x5ba0bf&&_0x5b11a6['subType']==_0x5e1548))return _0x5b11a6['previous']?{}:void 0x0;}),_0x3e70d6['descriptionFactory']['registerDescriptionCallback'](_0x5e2fb2=>{if('insertion'==_0x5e2fb2['type']||'deletion'==_0x5e2fb2['type']){const _0x56998a=_0x5e2fb2['getContainedElement']();if(_0x56998a&&_0x56998a['is']('element','caption'))return{'type':'insertion'==_0x5e2fb2['type']?'addObject':'removeObject','element':_0x56998a,'quantity':0x1};}}),_0x3e70d6['descriptionFactory']['registerDescriptionCallback'](_0x3668ba=>'formatBlock'==_0x3668ba['type']&&'convertInlineImageToBlock'==_0x3668ba['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3668ba['type']&&'convertBlockImageToInline'==_0x3668ba['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3e70d6['descriptionFactory']['registerDescriptionCallback'](_0x487f90=>{if('attribute'!=_0x487f90['type'])return;const {data:_0x2712b0}=_0x487f90;if(!_0x2712b0||'alt'!=_0x2712b0['key'])return;const _0x24ccae=_0x2712b0['newValue'];return _0x24ccae?{'type':'format','content':o(_0x34562f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x24ccae+'\x22')}:{'type':'format','content':o(_0x34562f,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e7a52=this['editor'],_0x555468=_0x1e7a52['locale'];_0x1e7a52['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ae5a7=>{if('formatBlock'!=_0x5ae5a7['type']&&'formatInline'!=_0x5ae5a7['type'])return;const {data:_0x2fcd24}=_0x5ae5a7;if(_0x2fcd24){if('imageTextAlternative'==_0x2fcd24['commandName']){const _0x2da576=_0x2fcd24['commandParams'][0x0]['newValue'];return _0x2da576?{'type':'format','content':o(_0x555468,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2da576+'\x22')}:{'type':'format','content':o(_0x555468,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2fcd24['commandName']){const _0x3abf65=_0x2fcd24['commandParams'][0x0]['width'];return _0x3abf65?{'type':'format','content':o(_0x555468,'*Set\x20image\x20width:*\x20%0',_0x3abf65)}:{'type':'format','content':o(_0x555468,'*Reset\x20image\x20width*')};}}});}}class ft extends _0xe64fa2{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4ae48f=this['editor']['locale'],_0x13c8fd=this['editor']['plugins']['get']('TrackChangesEditing');_0x13c8fd['enableDefaultAttributesIntegration']('replaceImageSource'),_0x13c8fd['descriptionFactory']['registerDescriptionCallback'](_0x5c3c62=>{if('attribute'!=_0x5c3c62['type'])return;const {data:_0xa0d719}=_0x5c3c62;return _0xa0d719&&'src'==_0xa0d719['key']?_0xa0d719['newValue']&&_0xa0d719['oldValue']?{'type':'format','content':o(_0x4ae48f,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5de283=this['editor']['plugins']['get']('TrackChangesEditing');_0x5de283['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5de283['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5de283['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5de283['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x411068=this['editor'],_0x3166d7=_0x411068['locale'];_0x411068['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11b352=>{if('formatBlock'!=_0x11b352['type']&&'formatInline'!=_0x11b352['type'])return;const {data:_0x5ab2b7}=_0x11b352;if(!_0x5ab2b7||'replaceImageSource'!=_0x5ab2b7['commandName'])return;return{'type':'format','content':o(_0x3166d7,'*Format:*\x20replace\x20image\x20URL')};});}}class ht extends _0xe64fa2{['afterInit'](){const _0x40ca00=this['editor'];if(!_0x40ca00['plugins']['has']('ImageStyleEditing'))return;const _0xffc22b=_0x40ca00['plugins']['get']('TrackChangesEditing'),_0x434f3b=_0x40ca00['plugins']['get']('ImageUtils'),_0x248164={};_0xffc22b['enableCommand']('imageStyle',(_0x3f6266,_0x14a785)=>{const _0x37c5c3=_0x40ca00['plugins']['get']('Users')['me'],_0xbfd08d=_0x40ca00['commands']['get']('imageStyle');let _0x225425=_0x434f3b['getClosestSelectedImageElement'](_0x40ca00['model']['document']['selection']),_0x2c1fa4=_0x40ca00['model']['createRangeOn'](_0x225425),_0xc56ac6=_0xbfd08d['value'];if(_0xc56ac6==_0x14a785['value'])return;const _0x273cb8={'commandName':'imageStyle','commandParams':[_0x14a785],'formatGroupId':_0x3f9e0f()};_0x40ca00['model']['change'](()=>{if(_0xffc22b['getSuggestions']()['filter'](_0x33684f=>_0x33684f['isInContent']&&_0x37c5c3==_0x33684f['author']&&('formatBlock'==_0x33684f['type']||'formatInline'==_0x33684f['type'])&&('imageStylePreApply'==_0x33684f['subType']||'imageStylePostApply'==_0x33684f['subType'])&&_0x33684f['getFirstRange']()['isEqual'](_0x2c1fa4))['forEach'](_0xb308e4=>_0xffc22b['discardSuggestion'](_0xb308e4['head'])),_0x225425=_0x434f3b['getClosestSelectedImageElement'](_0x40ca00['model']['document']['selection']),_0x2c1fa4=_0x40ca00['model']['createRangeOn'](_0x225425),_0xbfd08d['refresh'](),_0x40ca00['commands']['get']('imageTypeInline')['refresh'](),_0x40ca00['commands']['get']('imageTypeBlock')['refresh'](),_0xc56ac6=_0xbfd08d['value'],_0xc56ac6!=_0x14a785['value'])return _0x434f3b['isInlineImage'](_0x225425)&&_0xbfd08d['shouldConvertImageType'](_0x14a785['value'],_0x225425)?(_0x3f6266({..._0x14a785,'setImageSizes':!0x1}),_0x225425=_0x434f3b['getClosestSelectedImageElement'](_0x40ca00['model']['document']['selection']),void _0xffc22b['markBlockFormat'](_0x225425,{..._0x273cb8,'commandReversedParams':[{'value':_0xc56ac6||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x434f3b['isBlockImage'](_0x225425)?_0xffc22b['markBlockFormat'](_0x225425,_0x273cb8,[],'imageStylePostApply'):_0xffc22b['markInlineFormat'](_0x2c1fa4,_0x273cb8,'imageStylePostApply'));});});for(const _0x49cd0b of _0x40ca00['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x248164[_0x49cd0b['name']]=_0x49cd0b['title']['toLowerCase']();_0xffc22b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xffc22b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xffc22b['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xffc22b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x33eec4])=>{_0x434f3b['setImageNaturalSizeAttributes'](_0x33eec4['getContainedElement']());}),_0xffc22b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1a1bbd,_0x1688d0)=>{_0xffc22b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1a1bbd,{'commandName':_0x1688d0['commandName'],'commandParams':_0x1688d0['commandReversedParams']});}),_0xffc22b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x507c58,_0x161ba0){if(_0x4b0c03(_0x507c58,_0x161ba0))return[_0x507c58,_0x161ba0];if(_0x4b0c03(_0x161ba0,_0x507c58))return[_0x161ba0,_0x507c58];return null;});const _0x3d2623=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4b0c03(_0x92a4e3,_0x4903cf){const _0xb1a98d=_0x3d2623['findIndex'](({type:_0xd724f,subType:_0x161120})=>_0x92a4e3['type']==_0xd724f&&_0x92a4e3['subType']==_0x161120),_0x4bd347=_0x3d2623['findIndex'](({type:_0x31b229,subType:_0x167a4c})=>_0x4903cf['type']==_0x31b229&&_0x4903cf['subType']==_0x167a4c);if(_0xb1a98d<0x0||_0x4bd347<0x0)return!0x1;const _0x289709=_0x92a4e3['getFirstRange'](),_0x2e1728=_0x4903cf['getFirstRange']();if((0x0==_0xb1a98d||0x1==_0xb1a98d)&&0x2==_0x4bd347&&_0x289709['isIntersecting'](_0x2e1728))return!0x0;if(0x2==_0xb1a98d&&0x3==_0x4bd347){const _0x16ab71=_0xffc22b['_findSuggestions'](_0x289709,'insertion')['filter'](({suggestion:_0x157a1b,meta:_0x314660})=>_0x314660['isOwn']&&'convertInlineImageToBlock'==_0x157a1b['subType']);if(_0x16ab71['length']>0x1&&_0x2e1728['end']['isEqual'](_0x289709['start']))return!0x0;if(0x1==_0x16ab71['length']&&(_0x289709['start']['isEqual'](_0x2e1728['end'])||_0x289709['end']['isEqual'](_0x2e1728['start'])))return!0x0;}if(0x3==_0xb1a98d&&0x3==_0x4bd347&&_0x289709['start']['isBefore'](_0x2e1728['start'])){const _0x5ab0bf=_0x289709['end']['nodeAfter'],_0x56c540=_0x2e1728['start']['nodeBefore'];return _0x434f3b['isBlockImage'](_0x5ab0bf)&&_0x5ab0bf===_0x56c540;}return!0x1;}_0x40ca00['model']['document']['registerPostFixer'](()=>{let _0xb1862f=!0x1;const _0x34255e=Array['from'](_0x40ca00['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x34a571,data:_0x5c8e55}of _0x34255e){const {group:_0x3edf23,type:_0x27b3cd,subType:_0x23382a,id:_0xd89d1}=_0xffc22b['_splitMarkerName'](_0x34a571);if('suggestion'==_0x3edf23&&_0xffc22b['hasSuggestion'](_0xd89d1)){if('formatBlock'==_0x27b3cd&&('imageStylePreApply'==_0x23382a||'imageStylePostApply'==_0x23382a)){const _0x3702be=_0xffc22b['getSuggestion'](_0xd89d1);if(_0x5c8e55['newRange']){const _0x2e2cab=_0x3702be['getFirstRange']()['getContainedElement']();if(_0x434f3b['isBlockImage'](_0x2e2cab))continue;_0xffc22b['discardSuggestion'](_0x3702be),_0xb1862f=!0x0;}}if('insertion'==_0x27b3cd&&'imageCaption'==_0x23382a&&!_0x5c8e55['newRange']){const _0x1f0eb9=_0xffc22b['getSuggestion'](_0xd89d1);_0x1f0eb9['next']&&_0x1f0eb9['next']['isInContent']&&(_0xffc22b['discardSuggestion'](_0x1f0eb9['next']),_0xb1862f=!0x0);}}}return _0xb1862f;}),this['_registerLegacyDescription'](_0x248164);}['_registerLegacyDescription'](_0x4ed5d8){const _0x196b38=this['editor'],_0x2840d9=_0x196b38['locale'];_0x196b38['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2cc18d=>{if('formatBlock'!=_0x2cc18d['type']&&'formatInline'!=_0x2cc18d['type'])return;const {data:_0x747ec1}=_0x2cc18d;if(!_0x747ec1||'imageStyle'!=_0x747ec1['commandName'])return;const _0x2aeb03=_0x747ec1['commandParams'][0x0]['value'];return _0x36c198('side'===_0x2aeb03?o(_0x2840d9,'FORMAT_SIDE_IMAGE'):_0x4ed5d8[_0x2aeb03]||_0x2aeb03);function _0x36c198(_0xbba0e4){return{'type':'format','content':o(_0x2840d9,'*Format:*\x20%0',_0xbba0e4)};}});}}class lt extends _0xe64fa2{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xd53b73){super(_0xd53b73),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x135135=this['editor'],_0x111c5a=_0x135135['commands']['get']('importWord'),_0x430f3e=_0x135135['commands']['get']('trackChanges');_0x111c5a&&(_0x111c5a['on']('execute',(_0xf405d,[,_0x5554aa])=>{this['_trackChangesValueDuringImport']=_0x430f3e['value'],_0x5554aa['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x111c5a,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x111c5a,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x430f3e['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x135135['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x15de46,_0x283a1d){const {suggestions:_0x883060}=_0x283a1d,_0x6be4fd=this['editor']['commands']['get']('trackChanges'),_0x135ecd=_0x6be4fd['value'];this['_trackChangesValueDuringImport']!==_0x135ecd&&(_0x6be4fd['execute'](),this['_trackChangesExecuted']=!0x0),_0x883060&&_0x883060['forEach'](({id:_0x476f6f,type:_0x507383,author:_0x595f65,created_at:_0x782e90})=>{const _0x258a60={'id':_0x476f6f,'type':_0x507383,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x595f65,'createdAt':_0x782e90?new Date(_0x782e90):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x258a60);});}}class gt extends _0xe64fa2{['afterInit'](){const _0x3b2b01=this['editor'],_0x41b18a=_0x3b2b01['plugins']['get']('TrackChangesEditing');if(_0x3b2b01['plugins']['has']('IndentEditing')&&(_0x41b18a['enableCommand']('indent'),_0x41b18a['enableCommand']('outdent')),_0x3b2b01['plugins']['has']('IndentBlock')){for(const _0x29a3f6 of['indentBlock','outdentBlock'])_0x41b18a['enableDefaultAttributesIntegration'](_0x29a3f6);if(_0x3b2b01['plugins']['has']('ListEditing')){for(const _0x165fca of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x41b18a['enableDefaultAttributesIntegration'](_0x165fca);}}const _0x1cc193=_0x3b2b01['locale'];_0x41b18a['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1cc193,'FORMAT_INDENT')),_0x41b18a['descriptionFactory']['registerAttributeLabel']('blockIndentList',o(_0x1cc193,'FORMAT_INDENT')),_0x41b18a['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',o(_0x1cc193,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c6c34=this['editor'],_0x3ee96f=_0x2c6c34['locale'],_0x437ed0=_0x2c6c34['plugins']['get']('TrackChangesEditing');_0x437ed0['descriptionFactory']['registerDescriptionCallback'](_0x83c278=>{if('formatBlock'!=_0x83c278['type'])return;const {data:_0x4acec2}=_0x83c278;if(!_0x4acec2)return;if('indentBlock'!=_0x4acec2['commandName']&&'outdentBlock'!=_0x4acec2['commandName'])return;const _0x403495=_0x83c278['getItems']()[0x0],_0x3f8842=_0x437ed0['descriptionFactory']['getItemLabel'](_0x403495);return'indentBlock'==_0x4acec2['commandName']?{'type':'format','content':o(_0x3ee96f,'*Indent:*\x20%0',_0x3f8842)}:'outdentBlock'==_0x4acec2['commandName']?{'type':'format','content':o(_0x3ee96f,'*Outdent:*\x20%0',_0x3f8842)}:void 0x0;});}}class mt extends _0xe64fa2{static get['requires'](){return[_0x32ce8c];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class dt extends _0xe64fa2{['afterInit'](){const _0x31c5a6=this['editor'];if(!_0x31c5a6['plugins']['has']('LinkEditing'))return;const _0x5740db=_0x31c5a6['plugins']['get']('TrackChangesEditing'),_0x23db56=_0x31c5a6['commands']['get']('link');_0x5740db['enableDefaultAttributesIntegration']('link'),_0x5740db['enableDefaultAttributesIntegration']('unlink');for(const _0x43c4c9 of _0x23db56['manualDecorators'])_0x5740db['descriptionFactory']['registerAttributeLabel'](_0x43c4c9['id'],'link\x20('+_0x43c4c9['label']['toLowerCase']()+')');_0x5740db['descriptionFactory']['registerDescriptionCallback'](_0x36266b=>{if('attribute'!=_0x36266b['type'])return;const {data:_0x35fb82}=_0x36266b;if(!_0x35fb82||'linkHref'!=_0x35fb82['key'])return;const _0x420198=_0x35fb82['newValue'],_0x23f7c7=_0x31c5a6['locale'];return{'type':'format','content':null==_0x420198?o(_0x23f7c7,'*Remove\x20link*'):o(_0x23f7c7,'*Set\x20link:*\x20%0','\x22'+_0x420198+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x309869=this['editor'],_0x3e939f=_0x309869['locale'];_0x309869['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c6b90=>{if('formatInline'!=_0x2c6b90['type'])return;const {data:_0x15f6cc}=_0x2c6b90;if(_0x15f6cc){if('link'==_0x15f6cc['commandName']){const _0x539934=_0x15f6cc['commandParams'][0x0];return{'type':'format','content':o(_0x3e939f,'*Set\x20link:*\x20%0','\x22'+_0x539934+'\x22')};}return'unlink'==_0x15f6cc['commandName']?{'type':'format','content':o(_0x3e939f,'*Remove\x20link*')}:void 0x0;}});}}class pt extends _0xe64fa2{['afterInit'](){const _0x50e132=this['editor'],_0x2786c9=_0x50e132['locale'];if(!_0x50e132['plugins']['has']('LegacyListEditing'))return;const _0x1d2de2=_0x50e132['plugins']['get']('TrackChangesEditing'),_0x57285e=_0x50e132['plugins']['has']('LegacyTodoListEditing');function _0x20aa9c(_0x57fc60){return()=>{const _0x2a3922=_0x50e132['model']['document']['selection'],_0x55640d=_0x50e132['commands']['get'](_0x57fc60);if(_0x55640d['value'])return void _0x50e132['execute']('paragraph',{});const _0x31c297=_0x57fc60['slice'](0x0,-0x4),_0x59ddee=function(_0x15aaa9,_0x4c824e,_0x37efd1){let _0x3c59a0=Array['from'](_0x15aaa9)['filter'](_0x16af4f=>function(_0x49c3d9,_0x5a08e1){return _0x5a08e1['checkChild'](_0x49c3d9['parent'],'listItem')&&!_0x5a08e1['isObject'](_0x49c3d9);}(_0x16af4f,_0x37efd1));_0x3c59a0=_0x3c59a0['filter'](_0x35f8aa=>!_0x35f8aa['is']('element','listItem')||_0x35f8aa['getAttribute']('listType')!=_0x4c824e);const _0x16bf60=new Set();for(const _0x9b85fc of _0x3c59a0)_0x9b85fc['is']('element','listItem')?_0x16bf60['add'](Le(_0x9b85fc)):_0x16bf60['add'](_0x9b85fc);return Array['from'](_0x16bf60);}(_0x2a3922['getSelectedBlocks'](),_0x31c297,_0x50e132['model']['schema']);_0x50e132['model']['change'](()=>{for(const _0x4cee38 of _0x59ddee)_0x1d2de2['markBlockFormat'](_0x4cee38,{'commandName':_0x57fc60,'commandParams':[{'forceValue':!_0x55640d['value']}],'formatGroupId':'blockName'},Ee(_0x4cee38));});};}function _0x1448a7(_0x507a5a){return()=>{const _0x39b084=function(_0x388b72){let _0x2e7b5c=Array['from'](_0x388b72);const _0x4b207c=_0x2e7b5c['findIndex'](_0x3ec0d5=>'listItem'!=_0x3ec0d5['name']);return _0x4b207c>-0x1&&(_0x2e7b5c=_0x2e7b5c['slice'](0x0,_0x4b207c)),_0x2e7b5c;}(_0x50e132['model']['document']['selection']['getSelectedBlocks']()),_0x439b12=_0x50e132['model']['createRange'](_0x50e132['model']['createPositionAt'](_0x39b084[0x0],'before'),_0x50e132['model']['createPositionAt'](_0x39b084[_0x39b084['length']-0x1],'end'));_0x50e132['model']['change'](()=>{_0x1d2de2['markBlockFormat'](_0x439b12,{'commandName':_0x507a5a,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2c9a01){const _0x11499d=new Set();for(const _0x3e003c of _0x2c9a01){let _0x197078=_0x3e003c['nextSibling'];for(;_0x197078&&_0x197078['getAttribute']('listIndent')>_0x3e003c['getAttribute']('listIndent');)_0x11499d['add'](_0x197078),_0x197078=_0x197078['nextSibling'];}return Array['from'](_0x11499d);}(_0x39b084));});};}_0x1d2de2['enableCommand']('numberedList',_0x20aa9c('numberedList')),_0x1d2de2['enableCommand']('bulletedList',_0x20aa9c('bulletedList')),_0x57285e&&_0x1d2de2['enableCommand']('todoList',_0x20aa9c('todoList')),_0x1d2de2['enableCommand']('indentList',_0x1448a7('indentList')),_0x1d2de2['enableCommand']('outdentList',_0x1448a7('outdentList')),_0x57285e&&_0x1d2de2['enableCommand']('checkTodoList',()=>{const _0x25ac0c=_0x50e132['commands']['get']('checkTodoList'),_0x567a8d=Array['from'](_0x25ac0c['_selectedElements']);_0x567a8d['filter'](_0x19858d=>_0x19858d['getAttribute']('todoListChecked')!=_0x25ac0c['value']),_0x50e132['model']['change'](()=>{for(const _0x4c07fa of _0x567a8d)_0x1d2de2['markBlockFormat'](_0x4c07fa,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x25ac0c['value']}]});});}),_0x1d2de2['descriptionFactory']['registerElementLabel']('listItem',_0x1f33d0=>o(_0x2786c9,'ELEMENT_LIST_ITEM',_0x1f33d0)),_0x1d2de2['descriptionFactory']['registerDescriptionCallback'](_0xb1564a=>{if('formatBlock'!=_0xb1564a['type']&&'formatInline'!=_0xb1564a['type'])return;const {data:_0x3f5b6f}=_0xb1564a;if(_0x3f5b6f){if('numberedList'==_0x3f5b6f['commandName']||'bulletedList'==_0x3f5b6f['commandName']||'todoList'==_0x3f5b6f['commandName'])switch(_0x3f5b6f['commandName']['replace']('List','')){case'bulleted':return _0x54d7c8(o(_0x2786c9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x54d7c8(o(_0x2786c9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x54d7c8(o(_0x2786c9,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3f5b6f['commandName'])return{'type':'format','content':o(_0x2786c9,'*Indent:*\x20%0',o(_0x2786c9,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3f5b6f['commandName'])return{'type':'format','content':o(_0x2786c9,'*Outdent:*\x20%0',o(_0x2786c9,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3f5b6f['commandName'])return _0x3f5b6f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2786c9,'*Check\x20item*')}:{'type':'format','content':o(_0x2786c9,'*Uncheck\x20item*')};}function _0x54d7c8(_0x322caf){return{'type':'format','content':o(_0x2786c9,'*Change\x20to:*\x20%0',_0x322caf)};}});}}function Le(_0x2d301e){const _0x1af90d=_0x2d301e['getAttribute']('listIndent');if(0x0==_0x1af90d)return _0x2d301e;let _0x3c3642=_0x2d301e;for(;_0x2d301e['previousSibling']&&_0x2d301e['previousSibling']['is']('element','listItem');){const _0x4524e0=_0x2d301e['previousSibling']['getAttribute']('listIndent');if(_0x4524e0==_0x1af90d)_0x3c3642=_0x2d301e['previousSibling'];else{if(_0x4524e0<_0x1af90d)break;}_0x2d301e=_0x2d301e['previousSibling'];}return _0x3c3642;}function Ee(_0x5c2abe){const _0x3eb363=[];if(_0x5c2abe['is']('element','listItem')&&_0x5c2abe['getAttribute']('listIndent')>0x0){let _0x2d51b3=_0x5c2abe['nextSibling'];for(;_0x2d51b3&&'listItem'==_0x2d51b3['name']&&_0x2d51b3['getAttribute']('listIndent')==_0x5c2abe['getAttribute']('listIndent');)_0x3eb363['push'](_0x2d51b3),_0x2d51b3=_0x2d51b3['nextSibling'];}return _0x3eb363;}class wt extends _0xe64fa2{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1dbd9e=this['editor']['config']['get']('list.properties'),_0x10f280=this['editor']['plugins']['get']('TrackChangesEditing');_0x1dbd9e['styles']&&_0x10f280['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1dbd9e['reversed']&&_0x10f280['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1dbd9e['startIndex']&&_0x10f280['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x10f280['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x384512,_0x3fdf95={}){const _0x5c2f3d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x40c0d1=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5c2f3d['markMultiRangeBlockFormat'](_0x40c0d1,{'commandName':'listStyle','commandParams':[{'type':_0x3fdf95['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3f2978,_0x581ab9={}){const _0x5ce277=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1a5d08=this['_getSuggestionBlocks'](_0x48b23d=>_0x48b23d['is']('element','listItem')&&'numbered'===_0x48b23d['getAttribute']('listType'));if(_0x1a5d08['length']<0x1)return;const _0x32f49a=_0x1a5d08['map'](_0x1f2fd4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1f2fd4,'before'),this['editor']['model']['createPositionAt'](_0x1f2fd4,0x0)));this['editor']['model']['change'](()=>{_0x5ce277['markMultiRangeBlockFormat'](_0x32f49a,{'commandName':'listReversed','commandParams':[{'reversed':_0x581ab9['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x58b715,_0x5396bf={}){const _0x3b998b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d8bb6=this['_getSuggestionBlocks'](_0x2aecc1=>_0x2aecc1['is']('element','listItem')&&'numbered'===_0x2aecc1['getAttribute']('listType'));if(_0x2d8bb6['length']<0x1)return;const _0x50b57b=_0x2d8bb6['map'](_0x180f94=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x180f94,'before'),this['editor']['model']['createPositionAt'](_0x180f94,0x0)));this['editor']['model']['change'](()=>{_0x3b998b['markMultiRangeBlockFormat'](_0x50b57b,{'commandName':'listStart','commandParams':[{'startIndex':_0x5396bf['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2f5a67){if('formatBlock'!=_0x2f5a67['type']&&'formatInline'!=_0x2f5a67['type'])return;const _0x51d77f=this['editor']['locale'],{data:_0x47e4e2}=_0x2f5a67;if(!_0x47e4e2)return;let _0xc48068,_0x898599;switch(_0x47e4e2['commandName']){case'listStyle':_0xc48068='*Change\x20to:*\x20%0',_0x898599={'type':'format','content':o(_0x51d77f,_0xc48068,o(_0x51d77f,this['_getTranslationKeyForListStyle'](_0x47e4e2['commandParams'][0x0]['type'])))};break;case'listReversed':_0xc48068=_0x47e4e2['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x898599={'type':'format','content':o(_0x51d77f,_0xc48068)};break;case'listStart':_0xc48068='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x898599={'type':'format','content':o(_0x51d77f,_0xc48068,_0x47e4e2['commandParams'][0x0]['startIndex'])};}return _0x898599;}['_getSuggestionBlocksForListStyle'](){const _0x3c5d1a=this['editor']['plugins']['get']('LegacyListUtils');let _0xd79829=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xd79829[0x0]?.['is']('element','listItem')&&_0xd79829['unshift'](..._0x3c5d1a['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xd79829[_0xd79829['length']-0x1]?.['is']('element','listItem')&&_0xd79829['push'](..._0x3c5d1a['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xd79829=[...new Set(_0xd79829)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xd79829=_0xd79829['filter'](_0x23e2ff=>_0x23e2ff['is']('element','listItem'))),_0xd79829;}['_getSuggestionBlocks'](_0x5b6b26){const _0x2c0b8f=this['editor']['plugins']['get']('LegacyListUtils');let _0x39939d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5b6b26)['map'](_0x46c4a4=>{const _0x8705ef=this['editor']['model']['createPositionAt'](_0x46c4a4,0x0);return[..._0x2c0b8f['getSiblingNodes'](_0x8705ef,'backward'),..._0x2c0b8f['getSiblingNodes'](_0x8705ef,'forward')];})['flat']();return _0x39939d=[...new Set(_0x39939d)],_0x39939d;}['_getTranslationKeyForListStyle'](_0x1112b1){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1112b1)||'default')['toUpperCase']()+'_LIST_'+_0x1112b1['toUpperCase']()['replace'](/-/g,'_');}}class kt extends _0xe64fa2{['afterInit'](){const _0x1ef139=this['editor'];if(!_0x1ef139['plugins']['has']('MediaEmbedEditing'))return;const _0x4a395d=_0x1ef139['plugins']['get']('TrackChangesEditing'),_0x365cea=_0x1ef139['locale'];_0x4a395d['enableCommand']('mediaEmbed'),_0x4a395d['descriptionFactory']['registerElementLabel']('media',_0x5309f5=>o(_0x365cea,'ELEMENT_MEDIA',_0x5309f5));}}class bt extends _0xe64fa2{['afterInit'](){const _0x5abe12=this['editor'];_0x5abe12['plugins']['has']('MentionEditing')&&_0x5abe12['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class yt extends _0xe64fa2{['afterInit'](){const _0x109836=this['editor'];if(!_0x109836['plugins']['has']('MergeFieldsEditing'))return;const _0x835541=_0x109836['plugins']['get']('TrackChangesEditing'),_0xa5dea4=_0x109836['locale'];_0x835541['enableCommand']('insertMergeField'),_0x835541['enableCommand']('insertMergeFieldBlock'),_0x835541['enableCommand']('insertMergeFieldImage'),_0x835541['descriptionFactory']['registerElementLabel']('mergeField',_0x26a465=>o(_0xa5dea4,'ELEMENT_MERGE_FIELD',_0x26a465)),_0x835541['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3510e0=>o(_0xa5dea4,'ELEMENT_MERGE_FIELD',_0x3510e0)),_0x835541['descriptionFactory']['registerDescriptionCallback'](_0x26704e=>{if('insertion'!=_0x26704e['type']&&'deletion'!=_0x26704e['type'])return;const _0x21c8e5=_0x26704e['getContainedElement']();if(null==_0x21c8e5)return;const _0x128bac=_0x109836['plugins']['get']('MergeFieldsEditing');let _0x3caf4b;switch(_0x128bac['getMergeFieldType'](_0x21c8e5)){case null:return;case'image':{const _0x23961a=_0x128bac['unwrapAffixes'](_0x21c8e5['getAttribute']('src'));_0x3caf4b=_0x128bac['getLabel'](_0x23961a)||_0x23961a;break;}default:{const _0x2b081a=_0x21c8e5['getAttribute']('id');_0x3caf4b=_0x128bac['getLabel'](_0x2b081a)||_0x2b081a;break;}}return'insertion'==_0x26704e['type']?{'type':'insertion','content':o(_0xa5dea4,'*Insert:*\x20%0','\x22'+_0x3caf4b+'\x22\x20'+o(_0xa5dea4,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0xa5dea4,'*Remove:*\x20%0','\x22'+_0x3caf4b+'\x22\x20'+o(_0xa5dea4,'ELEMENT_MERGE_FIELD'))};});}}class jt extends _0xe64fa2{['afterInit'](){const _0x3586c1=this['editor'],_0x166dd3=_0x3586c1['plugins']['get']('TrackChangesEditing');_0x3586c1['plugins']['has']('MultiLevelList')&&(_0x166dd3['enableDefaultAttributesIntegration']('multiLevelList'),_0x166dd3['descriptionFactory']['registerDescriptionCallback'](_0x3b6d45=>this['handleDescriptions'](_0x3b6d45)));}['handleDescriptions'](_0x4b5e29){const _0x8012e5=this['editor']['locale'],{data:_0x5b68f3}=_0x4b5e29,_0x437c22={'type':'format','content':''};if(_0x5b68f3&&'listMarkerStyle'==_0x5b68f3['key']){if(!_0x5b68f3['oldValue'])return{'type':'format','content':o(_0x8012e5,'*Set\x20format:*\x20%0',o(_0x8012e5,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5b68f3['newValue']+')'};if(!_0x5b68f3['newValue']){let _0x4a0ba4=_0x4b5e29['head'];for(;_0x4a0ba4;){if(_0x4a0ba4['data']&&'listType'==_0x4a0ba4['data']['key']&&_0x4a0ba4['data']['newValue'])return _0x437c22;_0x4a0ba4=_0x4a0ba4['next'];}return{'type':'format','content':o(_0x8012e5,'*Remove\x20format:*\x20%0',o(_0x8012e5,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5b68f3['oldValue']+')'};}}}}class St extends _0xe64fa2{['afterInit'](){const _0x446f5f=this['editor'];if(!_0x446f5f['plugins']['has']('PageBreakEditing'))return;_0x446f5f['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x509b4b=_0x446f5f['plugins']['get']('TrackChangesEditing'),_0x1a227c=_0x446f5f['locale'];_0x509b4b['descriptionFactory']['registerElementLabel']('pageBreak',_0xb7bcea=>o(_0x1a227c,'ELEMENT_PAGE_BREAK',_0xb7bcea));}}class It extends _0xe64fa2{['afterInit'](){const _0x538120=this['editor'];if(!_0x538120['plugins']['has']('Paragraph'))return;const _0x388368=_0x538120['locale'],_0x56ff5b=_0x538120['plugins']['get']('TrackChangesEditing');_0x56ff5b['descriptionFactory']['registerElementLabel']('paragraph',_0x146c07=>o(_0x388368,'ELEMENT_PARAGRAPH',_0x146c07)),_0x56ff5b['enableDefaultAttributesIntegration']('paragraph'),_0x56ff5b['enableCommand']('insertParagraph');const _0x591a9e=_0x56ff5b['descriptionFactory'];_0x591a9e['registerDescriptionCallback'](_0x14163e=>{if('insertion'!==_0x14163e['type'])return;const {start:_0x4bae43,end:_0x13b2de}=_0x14163e['getFirstRange']();if(!_0x4bae43['isTouching'](_0x13b2de)||!_0x4bae43['nodeAfter'])return;const _0x402d8c=_0x538120['model']['schema'],_0x116e57=_0x4bae43['nodeAfter'];return _0x402d8c['isBlock'](_0x116e57)&&!_0x402d8c['isLimit'](_0x116e57)&&_0x402d8c['checkChild'](_0x116e57,'$text')?{'type':'insertion','content':o(_0x388368,'*Insert:*\x20%0',_0x591a9e['getItemLabel'](_0x116e57,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x477b0f=this['editor'],_0x552e71=_0x477b0f['locale'];_0x477b0f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e0a72=>{if('formatBlock'!=_0x4e0a72['type'])return;const {data:_0x1ad12f}=_0x4e0a72;return _0x1ad12f&&'paragraph'==_0x1ad12f['commandName']?{'type':'format','content':o(_0x552e71,'*Change\x20to:*\x20%0',o(_0x552e71,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class At extends _0xe64fa2{['afterInit'](){const _0x25c97=this['editor'];_0x25c97['commands']['get']('replaceSource')&&_0x25c97['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class _t extends _0xe64fa2{['afterInit'](){const _0x1cc816=this['editor'];if(!_0x1cc816['plugins']['has']('RemoveFormatEditing'))return;_0x1cc816['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d8f78=this['editor'];_0x5d8f78['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ea246=>{if('formatBlock'!=_0x2ea246['type']&&'formatInline'!=_0x2ea246['type'])return;const {data:_0x176951}=_0x2ea246;return _0x176951&&'removeFormat'==_0x176951['commandName']?{'type':'format','content':o(_0x5d8f78['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class Ct extends _0xe64fa2{['afterInit'](){const _0x4654e5=this['editor'];if(!_0x4654e5['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x71a659=_0x4654e5['plugins']['get']('TrackChangesEditing');_0x71a659['enableCommand']('goToPreviousRestrictedEditingException'),_0x71a659['enableCommand']('goToNextRestrictedEditingException');const _0x9905f1=_0x4654e5['plugins']['get']('RestrictedEditingModeEditing');_0x9905f1['enableCommand']('trackChanges'),_0x9905f1['enableCommand']('acceptSuggestion'),_0x9905f1['enableCommand']('discardSuggestion'),_0x9905f1['enableCommand']('acceptAllSuggestions'),_0x9905f1['enableCommand']('discardAllSuggestions'),_0x9905f1['enableCommand']('acceptSelectedSuggestions'),_0x9905f1['enableCommand']('discardSelectedSuggestions');}}class Nt extends _0xe64fa2{['afterInit'](){const _0x31b27f=this['editor'];if(!_0x31b27f['plugins']['has']('ShiftEnter'))return;const _0x4b0f9f=_0x31b27f['plugins']['get']('TrackChangesEditing');_0x4b0f9f['enableCommand']('shiftEnter'),_0x4b0f9f['descriptionFactory']['registerElementLabel']('softBreak',_0x47c961=>o(_0x31b27f['locale'],'ELEMENT_LINE_BREAK',_0x47c961));}}function an(_0x311802,_0xd71721,_0x3222bc){const _0xf6aabb=[];for(const _0x56f238 of _0xd71721['getItems']())_0x56f238['hasAttribute'](_0x311802)&&_0xf6aabb['push'](_0x3222bc['createRangeOn'](_0x56f238));return _0xf6aabb;}class $t extends _0xe64fa2{['afterInit'](){const _0x48b132=this['editor'],_0x1e792f=_0x48b132['plugins']['get']('TrackChangesEditing');_0x48b132['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x1e792f['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x4cf3b7=this['editor'],_0x27505d=_0x4cf3b7['model'],_0x6f2536=_0x4cf3b7['locale'],_0xc821b8=_0x4cf3b7['plugins']['get']('TrackChangesEditing'),_0x588918='restrictedEditingException',_0x2159e2=_0x4cf3b7['commands']['get'](_0x588918);_0xc821b8['enableCommand'](_0x588918,(_0x29f46f,_0x8882e8={})=>{const _0x1db1d8=_0x27505d['document']['selection'];if(_0x1db1d8['isCollapsed'])return void _0x29f46f(_0x8882e8);const _0x3f8c2c=void 0x0!==_0x8882e8['forceValue']?_0x8882e8['forceValue']:!_0x2159e2['value'];_0x27505d['change'](()=>{const _0x44eeb8=Array['from'](_0x1db1d8['getRanges']());for(const _0x2de85e of _0x44eeb8){const _0x360302=_0x3f8c2c?[_0x2de85e]:an(_0x588918,_0x2de85e,_0x27505d);for(const _0x312a2a of _0x360302)_0xc821b8['markInlineFormat'](_0x312a2a,{'commandName':_0x588918,'commandParams':[{'forceValue':_0x3f8c2c}]});}});}),_0xc821b8['descriptionFactory']['registerDescriptionCallback'](_0x235a20=>{if('formatBlock'!=_0x235a20['type']&&'formatInline'!=_0x235a20['type'])return;const {data:_0x14c89a}=_0x235a20;return _0x14c89a&&_0x14c89a['commandName']==_0x588918?_0x14c89a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x6f2536,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x6f2536,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0xe20663=this['editor'],_0x40edc7=_0xe20663['locale'],_0x75f068=_0xe20663['plugins']['get']('TrackChangesEditing'),_0x10be92='restrictedEditingExceptionBlock',_0x2491fb=this['editor']['commands']['get'](_0x10be92);_0x75f068['enableCommand'](_0x10be92,(_0x2a862e,_0x1bf8a9={})=>{const _0x331178=this['editor']['model']['document']['selection'],_0x3331c0=_0x1bf8a9&&void 0x0!==_0x1bf8a9['forceValue']?_0x1bf8a9['forceValue']:!_0x2491fb['value'];let _0x5c40c2=[];if(_0x3331c0){const _0x36a59f=Array['from'](_0x331178['getSelectedBlocks']())['filter'](_0x28118f=>function(_0x53cc30){return!!_0x53cc30['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x28118f)||function(_0x247bc4,_0x4f10f3){const _0x450ef9=_0x4f10f3['createContext'](_0x247bc4['parent']);if(!_0x4f10f3['checkChild'](_0x450ef9,'restrictedEditingException'))return!0x1;if(!_0x4f10f3['checkChild'](_0x450ef9['push']('restrictedEditingException'),_0x247bc4))return!0x1;return!0x0;}(_0x28118f,this['editor']['model']['schema']));_0x5c40c2=to(_0x36a59f,_0xe20663['model']);}else{const _0x5e2403=Array['from'](_0x331178['getSelectedBlocks']())['map'](_0xc79204=>function(_0x2e4b4b){let _0x2233d6=_0x2e4b4b;for(;_0x2233d6['parent'];){if('restrictedEditingException'==_0x2233d6['parent']['name'])return _0x2233d6;_0x2233d6=_0x2233d6['parent'];}return null;}(_0xc79204))['filter'](_0x140eaf=>!!_0x140eaf);_0x5c40c2=to(_0x5e2403,_0xe20663['model']);}_0xe20663['model']['change'](()=>{for(const _0x135c23 of _0x5c40c2)_0x75f068['markBlockFormat'](_0x135c23,{'commandName':_0x10be92,'commandParams':[{'forceValue':_0x3331c0}]});});}),_0x75f068['descriptionFactory']['registerDescriptionCallback'](_0x4888c4=>{const {data:_0xd40de4}=_0x4888c4;if(_0xd40de4&&_0xd40de4['commandName']==_0x10be92)return _0xd40de4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x40edc7,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x40edc7,'FORMAT_RESTRICTED_DISABLED')};});}}class vt extends _0xe64fa2{['afterInit'](){const _0x48f4b6=this['editor'];if(!_0x48f4b6['plugins']['has']('Style')||!_0x48f4b6['plugins']['has']('DataSchema'))return;const _0x40fd86=_0x48f4b6['plugins']['get']('TrackChangesEditing'),_0x32fbdb=_0x48f4b6['locale'],_0x514261=_0x48f4b6['config']['get']('style')||{},_0x3ac215=_0x48f4b6['plugins']['get']('GeneralHtmlSupport'),_0x8d9deb=_0x48f4b6['plugins']['get']('StyleUtils')['normalizeConfig'](_0x48f4b6['plugins']['get']('DataSchema'),_0x514261['definitions']);_0x40fd86['enableDefaultAttributesIntegration']('style');const _0x8d51a3=new Set();for(const _0x1e2f77 of _0x8d9deb['block']){const _0xa5124e=_0x3ac215['getGhsAttributeNameForElement'](_0x1e2f77['element']);_0x8d51a3['add'](_0xa5124e);}const _0x371802=new Set();for(const _0x3eba97 of _0x8d9deb['inline']){const _0x5c3a7f=_0x3ac215['getGhsAttributeNameForElement'](_0x3eba97['element']);_0x371802['add'](_0x5c3a7f);for(const _0x5214c7 of _0x3eba97['ghsAttributes'])_0x371802['add'](_0x5214c7);}for(const _0xecfd9b of _0x8d51a3)_0x40fd86['descriptionFactory']['registerAttributeLabel'](_0xecfd9b,o(_0x32fbdb,'FORMAT_STYLE'));for(const _0x487d74 of _0x371802)_0x40fd86['descriptionFactory']['registerAttributeLabel'](_0x487d74,o(_0x32fbdb,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd78c63=this['editor'],_0x42971f=_0xd78c63['locale'];_0xd78c63['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23ffa5=>{if('formatBlock'!=_0x23ffa5['type']&&'formatInline'!=_0x23ffa5['type'])return;const {data:_0x14ff25}=_0x23ffa5;return _0x14ff25&&'style'===_0x14ff25['commandName']?_0x14ff25['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x42971f,'*Set\x20format:*\x20%0',_0x14ff25['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x42971f,'*Remove\x20format:*\x20%0',_0x14ff25['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Dt extends _0xe64fa2{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2df0ff){super(_0x2df0ff),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1a8e4d=this['editor'],_0x5c6ebb=_0x1a8e4d['model']['document']['selection'];if(!_0x1a8e4d['plugins']['has']('TableEditing'))return;const _0x2e1ac8=_0x1a8e4d['locale'],_0x26ea9d=_0x1a8e4d['plugins']['get']('TrackChangesEditing'),_0x21b1a1=_0x1a8e4d['plugins']['get']('TableUtils');_0x26ea9d['descriptionFactory']['registerElementLabel']('table',_0x15a0ff=>o(_0x2e1ac8,'ELEMENT_TABLE',_0x15a0ff)),this['_setupColumnsRowsFixing'](),_0x26ea9d['enableCommand']('insertTable'),_0x26ea9d['enableCommand']('selectTableRow'),_0x26ea9d['enableCommand']('selectTableColumn');for(const _0x15b143 of['insertTableRowAbove','insertTableRowBelow']){const _0x2ad6da=_0x1a8e4d['commands']['get'](_0x15b143);_0x26ea9d['enableCommand'](_0x15b143,_0x23ad62=>{_0x1a8e4d['model']['change'](_0x1b5e91=>{_0x23ad62();const _0x38480d='above'===_0x2ad6da['order'],_0x523a88=_0x21b1a1['getSelectionAffectedTableCells'](_0x5c6ebb),_0x488073=_0x21b1a1['getRowIndexes'](_0x523a88),_0x362dd7=_0x38480d?_0x488073['first']-0x1:_0x488073['last']+0x1,_0x40d531=_0x523a88[0x0]['findAncestor']('table'),_0x182c01=_0x21b1a1['createTableWalker'](_0x40d531,{'startRow':_0x362dd7,'endRow':_0x362dd7}),_0x20f684=Array['from'](_0x182c01)['map'](_0x1f6a42=>_0x1b5e91['createRangeOn'](_0x1f6a42['cell']));_0x26ea9d['markMultiRangeInsertion'](_0x20f684,'tableRow');});});}for(const _0x1738b1 of['insertTableColumnLeft','insertTableColumnRight']){const _0x25d6ee=_0x1a8e4d['commands']['get'](_0x1738b1);_0x26ea9d['enableCommand'](_0x1738b1,_0x59aed7=>{_0x1a8e4d['model']['change'](_0x333cf4=>{_0x59aed7();const _0x15d736='left'===_0x25d6ee['order'],_0x9036d5=_0x21b1a1['getSelectionAffectedTableCells'](_0x5c6ebb),_0x266715=_0x21b1a1['getColumnIndexes'](_0x9036d5),_0x45a370=_0x15d736?_0x266715['first']-0x1:_0x266715['last']+0x1,_0x167d72=_0x9036d5[0x0]['findAncestor']('table'),_0x173c77=_0x21b1a1['createTableWalker'](_0x167d72,{'startRow':0x0,'column':_0x45a370,'includeAllSlots':!0x1}),_0x1b33ae=Array['from'](_0x173c77)['map'](_0x513e1e=>_0x333cf4['createRangeOn'](_0x513e1e['cell']));_0x26ea9d['markMultiRangeInsertion'](_0x1b33ae,'tableColumn');});});}for(const _0x32a5ba of['removeTableRow','removeTableColumn']){const _0x2c7fed=_0x32a5ba['substr'](0xb),_0x1452dc=_0x2c7fed['toLowerCase'](),_0x4d0605=_0x1452dc['substr'](0x0,0x3)+'span',_0x54c430='table'+_0x2c7fed,_0x4b0c4f='min'+_0x2c7fed,_0x4bf60a='max'+_0x2c7fed;_0x26ea9d['enableCommand'](_0x32a5ba,()=>{_0x1a8e4d['model']['change'](_0x5e8b9b=>{const _0x354a09=_0x21b1a1['getSelectionAffectedTableCells'](_0x5c6ebb),_0xda4176=_0x354a09[0x0]['findAncestor']('table');let _0x323119;if('removeTableRow'==_0x32a5ba){const _0x246ac8=_0x21b1a1['getRowIndexes'](_0x354a09);_0x323119={'startRow':_0x246ac8['first'],'endRow':_0x246ac8['last'],'includeAllSlots':!0x0};}else{const _0x437303=_0x21b1a1['getColumnIndexes'](_0x354a09);_0x323119={'startColumn':_0x437303['first'],'endColumn':_0x437303['last'],'includeAllSlots':!0x0};}const _0x4ec5b1=_0x21b1a1['createTableWalker'](_0xda4176,_0x323119),_0x18aba5=Array['from'](_0x4ec5b1)['map'](({cell:_0xa28514})=>_0xa28514),_0x3ed499=_e(_0x18aba5['filter'](_0x334eca=>_0x334eca['hasAttribute'](_0x4d0605))),_0x5a0da6=_e(_0x18aba5['filter'](_0x49a3a9=>!_0x49a3a9['hasAttribute'](_0x4d0605)))['map'](_0x1eb000=>_0x5e8b9b['createRangeOn'](_0x1eb000)),_0xc78ce9=_0x26ea9d['markMultiRangeDeletion'](_0x5a0da6,_0x54c430);if(_0xc78ce9&&('tableRow'==_0xc78ce9['subType']||'tableColumn'==_0xc78ce9['subType'])){const _0x4f43da=this['_getSuggestionCoords'](_0xc78ce9);for(const _0x17008b of _0x3ed499){const _0x777235=_0x5e8b9b['createRangeOn'](_0x17008b),_0x30aeff=_0x21b1a1['getCellLocation'](_0x17008b),_0x1875d0=_0x17008b['getAttribute'](_0x4d0605)-0x1,_0x7e9834=_0x4f43da[_0x4b0c4f],_0x417203=_0x4f43da[_0x4bf60a];_0x7e9834<=_0x30aeff[_0x1452dc]&&_0x30aeff[_0x1452dc]+_0x1875d0<=_0x417203&&_0xc78ce9['addRange'](_0x777235);}}});});}function _0x1cb9e0(_0x174a5f){const _0x13d077=Array['from'](_0x5c6ebb['getRanges']())['map'](_0xab1525=>_0x54bffc['fromRange'](_0xab1525));_0x1a8e4d['model']['change'](_0x4eb565=>{const _0xe2eb0c=_0x4eb565['batch'];_0x174a5f=_0x174a5f['filter'](_0x42dd14=>'$graveyard'!=_0x42dd14['root']['rootName']),_0x4eb565['setSelection'](_0x174a5f),_0x1a8e4d['commands']['get']('removeTableRow')['refresh'](),_0x1a8e4d['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1a8e4d['model']['enqueueChange'](()=>{_0x1a8e4d['model']['enqueueChange'](_0xe2eb0c,_0x27308f=>{const _0x2dc73a=_0x13d077['filter'](_0x448373=>'$graveyard'!=_0x448373['root']['rootName']);_0x2dc73a['length']>0x0&&_0x27308f['setSelection'](_0x2dc73a);for(const _0x59f251 of _0x13d077)_0x59f251['detach']();});});});}function _0xd4ab52(_0x82fbcb){_0x1a8e4d['model']['change'](_0x28a533=>{const _0xba5c7b=Array['from'](_0x5c6ebb['getRanges']())['map'](_0x1ec2b1=>_0x54bffc['fromRange'](_0x1ec2b1)),_0x276ed0=[];for(const _0x19dbfe of _0x82fbcb)for(const _0x2dc818 of _0x19dbfe['getItems']({'shallow':!0x0}))_0x276ed0['push'](_0x2dc818);for(const _0x2fb993 of _0x276ed0)'$graveyard'!=_0x2fb993['root']['rootName']&&(_0x28a533['setSelection'](_0x28a533['createPositionAt'](_0x2fb993,0x0)),_0x1a8e4d['commands']['get']('removeTableColumn')['refresh'](),_0x1a8e4d['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x43b809=_0xba5c7b['filter'](_0x46d1fe=>'$graveyard'!=_0x46d1fe['root']['rootName']);_0x43b809['length']>0x0&&_0x28a533['setSelection'](_0x43b809);for(const _0x19e748 of _0xba5c7b)_0x19e748['detach']();});}function _0x181e92(_0x19a809,_0x18ef01){return _0x18ef01['every'](_0x5cd4e9=>_0x19a809['some'](_0x134a72=>_0x134a72['end']['isEqual'](_0x5cd4e9['start'])||_0x5cd4e9['end']['isEqual'](_0x134a72['start'])));}function _0x506b9a(_0x575d5c,_0x564773){return!_0x575d5c['some'](_0x3c95b9=>_0x564773['some'](_0x406bde=>_0x3c95b9['isIntersecting'](_0x406bde)))&&_0x575d5c['some'](_0x31fe82=>_0x564773['some'](_0x149889=>_0x31fe82['end']['isTouching'](_0x149889['start'])));}_0x26ea9d['descriptionFactory']['registerDescriptionCallback'](_0xf4d56f=>{if('insertion'!=_0xf4d56f['type']&&'deletion'!=_0xf4d56f['type'])return;const _0x32c7ec=_0xf4d56f['getContainedElement']();if(null!=_0x32c7ec&&_0x32c7ec['is']('element','table')){if('insertion'==_0xf4d56f['type']){const _0x5dbdcb=_0xf4d56f['getItems']()['filter'](_0x230dc3=>_0x230dc3['is']('$textProxy'))['map'](_0x48abc8=>_0x48abc8['data']);if(_0x5dbdcb['length'])return{'type':'insertion','content':o(_0x2e1ac8,'*Insert:*\x20%0',o(_0x2e1ac8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5dbdcb['join']('\x20')+'\x22'))};}if('deletion'==_0xf4d56f['type']){const _0x330a09=_0xf4d56f['getItems']()['filter'](_0x2ae790=>_0x2ae790['is']('$textProxy'))['map'](_0x486894=>_0x486894['data']);if(_0x330a09['length'])return{'type':'deletion','content':o(_0x2e1ac8,'*Remove:*\x20%0',o(_0x2e1ac8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x330a09['join']('\x20')+'\x22'))};}}}),_0x26ea9d['descriptionFactory']['registerDescriptionCallback'](_0x1b0917=>{if('tableRow'==_0x1b0917['subType']){const _0x34a72f=_0x1b0917['getItems']()['filter'](_0x5bdf25=>_0x5bdf25['is']('$textProxy'))['map'](_0x2ccff8=>_0x2ccff8['data']),_0x1eb7a2=this['_getSuggestionCoords'](_0x1b0917),_0x9f4858=_0x1eb7a2['maxRow']-_0x1eb7a2['minRow']+0x1;if('insertion'==_0x1b0917['type'])return _0x34a72f['length']?{'type':'insertion','content':o(_0x2e1ac8,'*Insert:*\x20%0',o(_0x2e1ac8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x9f4858,'\x22'+_0x34a72f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2e1ac8,'*Insert:*\x20%0',o(_0x2e1ac8,'ELEMENT_TABLE_ROW',_0x9f4858))};if('deletion'==_0x1b0917['type'])return _0x34a72f['length']?{'type':'deletion','content':o(_0x2e1ac8,'*Remove:*\x20%0',o(_0x2e1ac8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x9f4858,'\x22'+_0x34a72f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2e1ac8,'*Remove:*\x20%0',o(_0x2e1ac8,'ELEMENT_TABLE_ROW',_0x9f4858))};}if('tableColumn'==_0x1b0917['subType']){const _0x424c3e=_0x1b0917['getItems']()['filter'](_0x5052e3=>_0x5052e3['is']('$textProxy'))['map'](_0xb3ac70=>_0xb3ac70['data']),_0x209b81=this['_getSuggestionCoords'](_0x1b0917),_0x5f364a=_0x209b81['maxColumn']-_0x209b81['minColumn']+0x1;if('insertion'==_0x1b0917['type'])return _0x424c3e['length']?{'type':'insertion','content':o(_0x2e1ac8,'*Insert:*\x20%0',o(_0x2e1ac8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5f364a,'\x22'+_0x424c3e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2e1ac8,'*Insert:*\x20%0',o(_0x2e1ac8,'ELEMENT_TABLE_COLUMN',_0x5f364a))};if('deletion'==_0x1b0917['type'])return _0x424c3e['length']?{'type':'deletion','content':o(_0x2e1ac8,'*Remove:*\x20%0',o(_0x2e1ac8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5f364a,'\x22'+_0x424c3e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2e1ac8,'*Remove:*\x20%0',o(_0x2e1ac8,'ELEMENT_TABLE_COLUMN',_0x5f364a))};}}),_0x26ea9d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1cb9e0),_0x26ea9d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1cb9e0),_0x26ea9d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xd4ab52),_0x26ea9d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xd4ab52),_0x26ea9d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x181e92),_0x26ea9d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x181e92),_0x26ea9d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x506b9a),_0x26ea9d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x506b9a);}['_acceptFormatSuggestionCallbackFactory'](){const _0x472304=this['editor'],_0x13a446=_0x472304['model']['document']['selection'];return(_0x59ab2d,_0x518f40)=>{_0x472304['model']['change'](_0x1c60e1=>{const {commandName:_0x11ee32,commandParams:_0x5173fb}=_0x518f40;let _0x5dea4b=_0x59ab2d[0x0]['end']['nodeBefore'];_0x5173fb&&_0x5173fb[0x0]&&!0x1===_0x5173fb[0x0]['forceValue']&&(_0x5dea4b=_0x59ab2d[0x0]['start']['nodeAfter']);const _0x4294aa=_0x1c60e1['createRangeIn'](_0x5dea4b);if('$graveyard'==_0x4294aa['root']['rootName'])return;const _0x796c16=Array['from'](_0x13a446['getRanges']())['map'](_0x5dbbf7=>_0x54bffc['fromRange'](_0x5dbbf7));_0x1c60e1['setSelection'](_0x4294aa),_0x472304['commands']['get'](_0x11ee32)['refresh'](),_0x5173fb['push']({'forceDefaultExecution':!0x0}),_0x472304['execute'](_0x11ee32,..._0x5173fb);const _0x547af7=_0x796c16['filter'](_0x270f28=>'$graveyard'!=_0x270f28['root']['rootName']);_0x547af7['length']>0x0&&_0x1c60e1['setSelection'](_0x547af7);for(const _0x4fab86 of _0x796c16)_0x4fab86['detach']();});};}['_getCoordsForCells'](_0x11bc8b){const _0x4e7962=this['editor']['plugins']['get']('TableUtils');let _0x90ac25=Number['MAX_SAFE_INTEGER'],_0x1e1b49=Number['MIN_SAFE_INTEGER'],_0x303c08=Number['MAX_SAFE_INTEGER'],_0x4b5cd6=Number['MIN_SAFE_INTEGER'];for(const _0xabf499 of _0x11bc8b){if('$graveyard'==_0xabf499['root']['rootName'])continue;const {row:_0x11f799,column:_0x46e4fb}=_0x4e7962['getCellLocation'](_0xabf499),_0x281d9b=_0xabf499['hasAttribute']('rowspan')?_0xabf499['getAttribute']('rowspan')-0x1:0x0,_0x3f6471=_0xabf499['hasAttribute']('colspan')?_0xabf499['getAttribute']('colspan')-0x1:0x0;_0x90ac25=_0x11f799<_0x90ac25?_0x11f799:_0x90ac25,_0x1e1b49=_0x11f799+_0x281d9b>_0x1e1b49?_0x11f799+_0x281d9b:_0x1e1b49,_0x303c08=_0x46e4fb<_0x303c08?_0x46e4fb:_0x303c08,_0x4b5cd6=_0x46e4fb+_0x3f6471>_0x4b5cd6?_0x46e4fb+_0x3f6471:_0x4b5cd6;}return{'minRow':_0x90ac25,'maxRow':_0x1e1b49,'minColumn':_0x303c08,'maxColumn':_0x4b5cd6};}['_setupColumnsRowsFixing'](){const _0x4f7acf=this['editor'],_0x1200d4=_0x4f7acf['plugins']['get']('TrackChangesEditing'),_0x3eb65d=_0x4f7acf['plugins']['get']('TableUtils');_0x4f7acf['model']['document']['on']('change:data',()=>{const _0x38b5f3=Array['from'](_0x4f7acf['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4a4884,data:_0x28d5fb}of _0x38b5f3){const {group:_0x378d65,id:_0x483312,subType:_0x36c0d6}=_0x1200d4['_splitMarkerName'](_0x4a4884);if('suggestion'!=_0x378d65)continue;if(null!=_0x28d5fb['oldRange'])continue;const _0x5509bc=_0x1200d4['getSuggestion'](_0x483312);this['_tablePostFixingSubtypes']['includes'](_0x36c0d6)&&this['_tableSuggestions']['add'](_0x5509bc);}},{'priority':'low'});const _0x5b8c5b=(_0x28fc20,_0x6289c9)=>{let _0x20e316=!0x1;const _0x2d47ae=_0x6289c9['createRangeOn'](_0x28fc20),_0x5733eb=_0x28fc20['findAncestor']('table'),_0x2e3376=_0x3eb65d['getCellLocation'](_0x28fc20);for(const _0x4c5a5 of this['_tableSuggestions']){const _0x35205f=_0x4c5a5['subType'],_0x1e17d7=_0x35205f['startsWith']('tablePaste'),_0xe793a4=_0x35205f['substr'](_0x1e17d7?0xa:0x5),_0x2ff7bb=_0xe793a4['toLowerCase'](),_0x40d3d2=_0x2ff7bb['substr'](0x0,0x3)+'span',_0x505f1f='min'+_0xe793a4,_0x262547='max'+_0xe793a4;if(!_0x4c5a5['isInContent'])continue;if(_0x5733eb!=_0x4c5a5['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4c5a5['isIntersectingWithRange'](_0x2d47ae))continue;const _0x2142cc=_0x28fc20['hasAttribute'](_0x40d3d2)?_0x28fc20['getAttribute'](_0x40d3d2)-0x1:0x0,_0x452951=this['_getSuggestionCoords'](_0x4c5a5),_0x208566=_0x452951[_0x505f1f],_0x4dd925=_0x452951[_0x262547];_0x208566<=_0x2e3376[_0x2ff7bb]&&_0x2e3376[_0x2ff7bb]+_0x2142cc<=_0x4dd925&&(_0x4c5a5['addRange'](_0x2d47ae),_0x20e316=!0x0);}return _0x20e316;};_0x4f7acf['model']['document']['registerPostFixer'](_0x1e6a61=>{let _0x42d910=!0x1;for(const _0x4307e1 of _0x4f7acf['model']['document']['differ']['getChanges']())if('insert'==_0x4307e1['type']){if('tableRow'==_0x4307e1['name']){for(const _0x4685cf of _0x4307e1['position']['nodeAfter']['getChildren']())_0x42d910=_0x42d910||_0x5b8c5b(_0x4685cf,_0x1e6a61);}else'tableCell'==_0x4307e1['name']&&(_0x42d910=_0x42d910||_0x5b8c5b(_0x4307e1['position']['nodeAfter'],_0x1e6a61));}return _0x42d910;});}['_getSuggestionCoords'](_0x35ce83){return this['_getCoordsForCells'](_0x35ce83['getRanges']()['map'](_0x73f20b=>_0x73f20b['start']['nodeAfter']));}}function _e(_0x189ce5){return Array['from'](new Set(_0x189ce5)['values']());}class Bt extends _0xe64fa2{static get['requires'](){return[Dt];}['afterInit'](){const _0x29bda4=this['editor'],_0x2abd15=_0x29bda4['model']['document']['selection'],_0x558969=_0x29bda4['locale'];if(!_0x29bda4['plugins']['has']('TableEditing'))return;const _0x4a5c2a=_0x29bda4['plugins']['get']('TrackChangesEditing'),_0xeb5fdf=_0x29bda4['plugins']['get']('TableUtils'),_0x205075=_0x29bda4['plugins']['get'](Dt);_0x205075['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4a5c2a['enableCommand']('mergeTableCells',()=>{const _0x420f07=_0xeb5fdf['getSelectionAffectedTableCells'](_0x29bda4['model']['document']['selection']);_0x29bda4['model']['change'](()=>{_0x4a5c2a['markMultiRangeBlockFormat'](_0x420f07,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x29bda4['commands']['get']('mergeTableCells')['on']('execute',(_0x456aab,_0x2b562f)=>{_0x29bda4['commands']['get']('trackChanges')['value']&&(_0x2b562f['length']>0x0&&_0x2b562f[_0x2b562f['length']-0x1]&&_0x2b562f[_0x2b562f['length']-0x1]['forceDefaultExecution']||_0x4a5c2a['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x456aab['stop']());},{'priority':'highest'});for(const _0x3c041a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x13e19b=_0x29bda4['commands']['get'](_0x3c041a);_0x4a5c2a['enableCommand'](_0x3c041a,()=>{const _0x1a2bc7=_0x29bda4['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4cdec4=>_0x4cdec4['is']('element','tableCell')),_0x376d52=_0x13e19b['value'];_0x29bda4['model']['change'](()=>{_0x4a5c2a['markMultiRangeBlockFormat']([_0x1a2bc7,_0x376d52],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x31cab3 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1e3386=_0x29bda4['commands']['get'](_0x31cab3);_0x4a5c2a['enableCommand'](_0x31cab3,()=>{const _0x175d26=_0xeb5fdf['getSelectionAffectedTableCells'](_0x29bda4['model']['document']['selection'])[0x0],_0x35a03e=_0x175d26['findAncestor']('table'),{column:_0x3a0737,row:_0x20ac79}=_0xeb5fdf['getCellLocation'](_0x175d26);let _0x1aa67f=[];if('horizontally'==_0x1e3386['direction']){const _0x44fe0c=_0xeb5fdf['createTableWalker'](_0x35a03e,{'startRow':_0x20ac79,'endRow':_0x20ac79,'includeAllSlots':!0x0});_0x1aa67f=Array['from'](_0x44fe0c)['map'](_0x42568a=>_0x42568a['cell']);}else{const _0x5d683f=_0xeb5fdf['createTableWalker'](_0x35a03e,{'column':_0x3a0737,'includeAllSlots':!0x0});_0x1aa67f=Array['from'](_0x5d683f)['map'](_0x566926=>_0x566926['cell']);}_0x29bda4['model']['change'](_0xcfd41a=>{_0x4a5c2a['markBlockFormat'](_0xcfd41a['createRangeOn'](_0x175d26),{'commandName':_0x31cab3,'commandParams':[]},_0x1aa67f,_0x31cab3);});});}_0x4a5c2a['descriptionFactory']['registerDescriptionCallback'](_0x101cae=>{if('formatBlock'!=_0x101cae['type']&&'formatInline'!=_0x101cae['type'])return;const {data:_0x135a37}=_0x101cae;return _0x135a37&&'mergeTableCells'==_0x135a37['commandName']?{'type':'format','content':o(_0x558969,'*Merge\x20cells*')}:void 0x0;}),_0x4a5c2a['descriptionFactory']['registerDescriptionCallback'](_0x2a34f9=>{if('formatBlock'!=_0x2a34f9['type']&&'formatInline'!=_0x2a34f9['type'])return;const {data:_0x404318}=_0x2a34f9;return _0x404318?'splitTableCellVertically'==_0x404318['commandName']?{'type':'format','content':o(_0x558969,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x404318['commandName']?{'type':'format','content':o(_0x558969,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x577e74=_0x205075['_acceptFormatSuggestionCallbackFactory']();for(const _0x13c76b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4a5c2a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x13c76b,'accept',_0x577e74);for(const _0x46c4ae of['splitTableCellVertically','splitTableCellHorizontally'])_0x4a5c2a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x46c4ae,'accept',_0x577e74);_0x4a5c2a['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3651cf=>{_0x29bda4['model']['change'](_0x94df23=>{const _0xe34fc0=Array['from'](_0x2abd15['getRanges']())['map'](_0x1aa01a=>_0x54bffc['fromRange'](_0x1aa01a));_0x94df23['setSelection'](_0x3651cf),_0x29bda4['commands']['get']('mergeTableCells')['refresh'](),_0x29bda4['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x36f5bc=_0xe34fc0['filter'](_0x2965d3=>'$graveyard'!=_0x2965d3['root']['rootName']);_0x36f5bc['length']>0x0&&_0x94df23['setSelection'](_0x36f5bc);for(const _0x1cd879 of _0xe34fc0)_0x1cd879['detach']();});});for(const _0x149214 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3ba44d=_0x29bda4['commands']['get'](_0x149214);_0x3ba44d['on']('set:isEnabled',(_0x2059bb,_0x4d61fd,_0x23004a)=>{if(_0x23004a){const _0x2964d8=_0x29bda4['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1dda77=>_0x1dda77['is']('element','tableCell'));this['_areMergableCells'](_0x3ba44d['value'],_0x2964d8)||(_0x2059bb['return']=!0x1,_0x2059bb['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4f608f=this['editor']['commands']['get']('mergeTableCells'),_0x1ab725=this['editor']['plugins']['get']('TableUtils');if(!_0x4f608f['isEnabled'])return!0x1;const _0x534480=_0x1ab725['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2dc99f of _0x534480)for(const _0x141b2f of _0x534480)if(_0x2dc99f!=_0x141b2f&&!this['_areMergableCells'](_0x2dc99f,_0x141b2f))return!0x1;return!0x0;}['_areMergableCells'](_0x2ac659,_0x58d529){const _0xe081ea=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a1f59=this['editor']['model']['createRangeOn'](_0x2ac659),_0x54f22c=this['editor']['model']['createRangeOn'](_0x58d529),_0x34cee5=new Set(),_0x50eb50=new Set();for(const _0x44edbc of _0xe081ea['getSuggestions']())if(('insertion'==_0x44edbc['type']||'deletion'==_0x44edbc['type']||'mergeTableCells'==_0x44edbc['subType'])&&_0x44edbc['isInContent']){for(const _0x5a3802 of _0x44edbc['getRanges']())_0x5a3802['containsRange'](_0x4a1f59,!0x0)&&_0x34cee5['add'](_0x44edbc['type']+':'+_0x44edbc['author']['id']),_0x5a3802['containsRange'](_0x54f22c,!0x0)&&_0x50eb50['add'](_0x44edbc['type']+':'+_0x44edbc['author']['id']);}if(_0x34cee5['size']!=_0x50eb50['size'])return!0x1;for(const _0x3ab059 of _0x34cee5)if(!_0x50eb50['has'](_0x3ab059))return!0x1;return!0x0;}}class Ot extends _0xe64fa2{static get['requires'](){return[Dt];}['afterInit'](){const _0x175470=this['editor'];if(!_0x175470['plugins']['has']('TableEditing'))return;const _0x1c3b40=_0x175470['locale'],_0x4eff33=_0x175470['plugins']['get']('TrackChangesEditing');_0x4eff33['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4eff33['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4eff33['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1c3b40,'FORMAT_HEADER_ROW')),_0x4eff33['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1c3b40,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x568baf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3cc031=this['editor']['plugins']['get'](Dt)['_acceptFormatSuggestionCallbackFactory']();_0x568baf['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3cc031),_0x568baf['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3cc031),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x414574=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54b140=this['editor']['plugins']['get']('TableUtils');function _0x529c5b({showActiveMarker:_0x48f871=!0x0,setDataAttribute:_0x885795=!0x0}={}){return(_0x1fab36,_0x32422e,_0x554e4a)=>{const {type:_0x2abcf8,id:_0x14cb25}=_0x414574['_splitMarkerName'](_0x32422e['markerName']);if(!_0x414574['hasSuggestion'](_0x14cb25))return;const _0x20a30b=_0x414574['getSuggestion'](_0x14cb25),_0x5cdb86=_0x20a30b['data'];if('formatBlock'!=_0x20a30b['type']||!_0x5cdb86||'setTableColumnHeader'!=_0x5cdb86['commandName'])return;if(_0x32422e['item'])return void _0x1fab36['stop']();if(!_0x554e4a['consumable']['consume'](_0x32422e['markerRange'],_0x1fab36['name']))return;const _0x20f25b=_0x32422e['markerRange']['start']['nodeAfter'],_0x955546=_0x32422e['markerRange']['end']['nodeBefore'],_0x35cde9=_0x20f25b['parent']['parent'],{column:_0x1d37eb}=_0x54b140['getCellLocation'](_0x20f25b),{column:_0x6afc3}=_0x54b140['getCellLocation'](_0x955546);for(let _0x5711f5=_0x1d37eb;_0x5711f5<=_0x6afc3;_0x5711f5++){const _0x29f596=_0x54b140['createTableWalker'](_0x35cde9,{'column':_0x5711f5,'includeAllSlots':!0x1});for(const _0x10b355 of _0x29f596){const _0x25d7f3=_0x10b355['cell'],_0x3350b4=_0x554e4a['mapper']['toViewElement'](_0x25d7f3);_0x554e4a['writer']['addClass']('ck-suggestion-marker-'+_0x2abcf8,_0x3350b4),_0x885795&&_0x554e4a['writer']['setAttribute']('data-suggestion',_0x14cb25,_0x3350b4),_0x554e4a['mapper']['bindElementToMarker'](_0x3350b4,_0x32422e['markerName']),_0x48f871&&(_0x414574['activeMarkers']['includes'](_0x32422e['markerName'])?_0x554e4a['writer']['addClass']('ck-suggestion-marker--active',_0x3350b4):_0x554e4a['writer']['removeClass']('ck-suggestion-marker--active',_0x3350b4));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x529c5b(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2ae299,_0x186f35,_0x3fcebb)=>{_0x3fcebb['options']['showSuggestionHighlights']&&_0x529c5b({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2ae299,_0x186f35,_0x3fcebb);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4a8a6d,_0xfbf58d,_0x54173e)=>{const {type:_0x300301,id:_0x3e88ed}=_0x414574['_splitMarkerName'](_0xfbf58d['markerName']);if(!_0x414574['hasSuggestion'](_0x3e88ed))return;const _0x25c331=_0x414574['getSuggestion'](_0x3e88ed),_0x576c64=_0x25c331['data'];if('formatBlock'!=_0x25c331['type']||!_0x576c64||'setTableColumnHeader'!=_0x576c64['commandName'])return;const _0xa02dbe=_0x54173e['mapper']['markerNameToElements'](_0xfbf58d['markerName']);if(_0xa02dbe){for(const _0x1c6e84 of _0xa02dbe)_0x54173e['writer']['removeClass']('ck-suggestion-marker-'+_0x300301,_0x1c6e84),_0x54173e['writer']['removeClass']('ck-suggestion-marker--active',_0x1c6e84),_0x54173e['writer']['removeAttribute']('data-suggestion',_0x1c6e84),_0x54173e['mapper']['unbindElementFromMarkerName'](_0x1c6e84,_0xfbf58d['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x996777=this['editor'],_0x3e310e=_0x996777['locale'];function _0x56f280(_0x3e5c98){return{'type':'format','content':o(_0x3e310e,'*Format:*\x20%0',_0x3e5c98)};}_0x996777['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x248487=>{if('formatBlock'!=_0x248487['type'])return;const {data:_0x552f99}=_0x248487;if(_0x552f99){if('setTableRowHeader'==_0x552f99['commandName']){const _0x2c2942=_0x552f99['commandParams'][0x0]['forceValue'];return _0x56f280(o(_0x3e310e,_0x2c2942?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x552f99['commandName']){const _0x590f09=_0x552f99['commandParams'][0x0]['forceValue'];return _0x56f280(o(_0x3e310e,_0x590f09?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class xt extends _0xe64fa2{['afterInit'](){const _0xbb401b=this['editor'],_0x2ddacd=_0xbb401b['locale'],_0x48eef9=_0xbb401b['plugins']['get']('TrackChangesEditing');function _0x2b13aa(_0x600919){return{'type':'format','content':''+o(_0x2ddacd,'*Set\x20table\x20type:*\x20%0',_0x600919)};}_0xbb401b['plugins']['has']('TableLayout')&&(_0x48eef9['enableCommand']('insertTableLayout'),_0x48eef9['enableDefaultAttributesIntegration']('tableType'),_0x48eef9['descriptionFactory']['registerElementLabel'](_0x6c55d4=>_0x6c55d4['is']('element','table')&&'layout'===_0x6c55d4['getAttribute']('tableType'),_0x1184f7=>o(_0x2ddacd,'ELEMENT_LAYOUT_TABLE',_0x1184f7)),_0x48eef9['descriptionFactory']['registerDescriptionCallback'](_0x233ddc=>{const {data:_0x306797}=_0x233ddc;if(_0x306797&&'tableType'==_0x306797['key'])switch(_0x306797['newValue']){case'layout':return _0x2b13aa(o(_0x2ddacd,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x2b13aa(o(_0x2ddacd,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Re['map'](_0x54b79a=>[_0x54b79a,null]));class Mt extends _0xe64fa2{static get['requires'](){return[Dt];}['afterInit'](){const _0x18f5e9=this['editor'];if(!_0x18f5e9['plugins']['has']('TableClipboard'))return;const _0x273b7b=_0x18f5e9['plugins']['get']('TrackChangesEditing'),_0x373de9=_0x18f5e9['plugins']['get']('TableUtils'),_0x124fa7=_0x18f5e9['plugins']['get'](Dt),_0x524e8a=_0x18f5e9['plugins']['get']('TableClipboard'),_0x57f6ee=_0x18f5e9['plugins']['get']('TableSelection'),_0x11560a=_0x18f5e9['plugins']['get'](_0x29988d);_0x124fa7['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x18f5e9['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x18f5e9['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x482f6b=null,_0x3c44aa=!0x1;_0x11560a['on']('contentInsertion',(_0x5e41c0,_0x389e4f)=>{_0x3c44aa='paste'===_0x389e4f['method'];}),_0x18f5e9['model']['on']('insertContent',(_0x254dc1,_0x36ca62)=>{if(!_0x3c44aa&&null===_0x57f6ee['getSelectedTableCells']())return;const [_0x54ed7e,_0x5bb132]=_0x36ca62,_0xbbde=_0x36ca62[_0x36ca62['length']-0x1];_0xbbde&&_0xbbde['forceDefaultExecution']||_0x273b7b['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x116ad9,_0x3ba38a,_0x3bffdc,_0x3c520c,_0x37d9b3){if(_0x3ba38a&&!_0x3ba38a['is']('documentSelection'))return!0x1;const _0x2ba044=_0x37d9b3['getTableIfOnlyTableInContent'](_0x116ad9,_0x3bffdc);if(!_0x2ba044||!Oe(_0x2ba044,void 0x0,_0x3c520c))return!0x1;const _0x1e0897=_0x3c520c['getSelectionAffectedTableCells'](_0x3bffdc['document']['selection']);if(!_0x1e0897['length'])return!0x1;const _0x35284b=_0x1e0897[0x0]['findAncestor']('table'),_0x51f5b9=_0x3c520c['getRowIndexes'](_0x1e0897),_0x518154=_0x3c520c['getColumnIndexes'](_0x1e0897),_0x5bd8c8={'startRow':_0x51f5b9['first'],'endRow':_0x51f5b9['last'],'startColumn':_0x518154['first'],'endColumn':_0x518154['last']};return 0x1==_0x1e0897['length']&&(_0x5bd8c8['endRow']+=_0x3c520c['getRows'](_0x2ba044)-0x1,_0x5bd8c8['endColumn']+=_0x3c520c['getColumns'](_0x2ba044)-0x1),Oe(_0x35284b,_0x5bd8c8,_0x3c520c);}(_0x54ed7e,_0x5bb132,_0x18f5e9['model'],_0x373de9,_0x524e8a)&&(_0x254dc1['stop'](),_0x482f6b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x18f5e9['model']['change'](()=>{_0x18f5e9['model']['insertContent'](_0x36ca62[0x0],_0x36ca62[0x1],_0x36ca62[0x2],{'forceDefaultExecution':!0x0});const _0x11d646=_0x3f9e0f(),{rowInsertionRanges:_0x4758ea,columnInsertionRanges:_0x1d4d79,insertionRanges:_0x4b121e,deletionRanges:_0x4d9a16,cells:_0x2d739e}=_0x482f6b;_0x4758ea['length']&&_0x273b7b['markMultiRangeInsertion'](_0x4758ea,'tablePasteRow',{'tablePasteChainId':_0x11d646}),_0x1d4d79['length']&&_0x273b7b['markMultiRangeInsertion'](_0x1d4d79,'tablePasteColumn',{'tablePasteChainId':_0x11d646}),_0x4b121e['length']&&(_0x273b7b['markMultiRangeInsertion'](_0x4b121e,'tablePaste',{'tablePasteChainId':_0x11d646,'skipNestingCheck':!0x0}),_0x4b121e['forEach'](_0x36cfde=>_0x36cfde['detach']?.())),_0x4d9a16['length']&&(_0x273b7b['markMultiRangeDeletion'](_0x4d9a16,'tablePaste',{'tablePasteChainId':_0x11d646,'skipNestingCheck':!0x0}),_0x4d9a16['forEach'](_0x566696=>_0x566696['detach']?.()));const _0x445cbb=_0x273b7b['markMultiRangeBlockFormat'](_0x2d739e['map'](({element:_0x1dfa81})=>_0x1dfa81),{'formatGroupId':_0x3f9e0f()},[],'tablePasteCell',{'tablePasteChainId':_0x11d646});if(_0x445cbb){const _0x22cd91=_0x445cbb['getMarkers'](),_0x5b456b=[];for(const {element:_0x34a742,attributes:_0x4ade2d}of _0x2d739e){if(!_0x4ade2d)continue;const _0x884963=_0x18f5e9['model']['createRangeOn'](_0x34a742),_0x36ec5f=_0x22cd91['find'](_0x3a806f=>_0x3a806f['getRange']()['isEqual'](_0x884963));_0x36ec5f&&_0x5b456b['push']([_0x36ec5f['name'],_0x4ade2d]);}_0x5b456b['length']&&_0x445cbb['setAttribute']('markerAttributes',Object['fromEntries'](_0x5b456b));}_0x482f6b=null;}));},{'priority':_0x3598fa['high']+0xa}),_0x11560a['on']('contentInsertion',()=>{_0x3c44aa=!0x1;},{'priority':'lowest'}),_0x18f5e9['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x37a606,_0x10697a)=>{const [_0x4709dd,_0x261c9c,,_0x1acae2]=_0x10697a;if(!_0x482f6b)return;_0x37a606['stop']();const _0x1f0b20=_0x4709dd['cell'],_0x32bd25=_0x261c9c,_0x44f76c=Be(_0x1f0b20),_0xcabc3a=Be(_0x32bd25);_0x37a606['return']=_0x1f0b20;let _0x4cf24d=null,_0xe85a51=null;if(_0xcabc3a||_0x44f76c){if(_0x44f76c&&!_0xcabc3a){_0x1acae2['remove'](_0x1f0b20['getChild'](0x0));for(const _0x9649d4 of Array['from'](_0x32bd25['getChildren']()))_0x1acae2['insert'](_0x9649d4,_0x1f0b20,'end');const _0x26d9c7=_0x482f6b['rowInsertionIndexes']['includes'](_0x4709dd['row']),_0x11b770=_0x482f6b['columnInsertionIndexes']['includes'](_0x4709dd['column']);_0x26d9c7||_0x11b770||(_0x4cf24d=_0x54bffc['fromRange'](_0x1acae2['createRangeIn'](_0x1f0b20)));}else _0xcabc3a&&!_0x44f76c&&(_0xe85a51=_0x1acae2['createRangeIn'](_0x1f0b20));}else{const _0x5b33c9=_0x1acae2['createElement']('tableCellSuggestion'),_0x175432=_0x1acae2['createElement']('tableCellSuggestion');_0x1acae2['wrap'](_0x1acae2['createRangeIn'](_0x1f0b20),_0x175432),_0x1acae2['insert'](_0x5b33c9,_0x1f0b20,0x0);for(const _0x384387 of Array['from'](_0x32bd25['getChildren']()))_0x1acae2['insert'](_0x384387,_0x5b33c9,'end');_0x4cf24d=_0x54bffc['fromRange'](_0x1acae2['createRangeOn'](_0x5b33c9)),_0xe85a51=_0x54bffc['fromRange'](_0x1acae2['createRangeOn'](_0x175432));}const _0x38beff=Array['from'](_0x32bd25['getAttributes']())['filter'](([_0x17e0f4])=>Re['includes'](_0x17e0f4));_0x482f6b['cells']['push']({'element':_0x1f0b20,'attributes':_0x38beff['length']?Object['fromEntries'](_0x38beff):null}),_0x4cf24d&&_0x482f6b['insertionRanges']['push'](_0x4cf24d),_0xe85a51&&_0x482f6b['deletionRanges']['push'](_0xe85a51);},{'priority':'high'}),_0x373de9['on']('insertColumns',(_0x4eb6a8,_0x4da8a3)=>{const [_0x2bd1a2,_0x36e4e4={}]=_0x4da8a3;if(!_0x482f6b)return;const _0x643d5a=_0x36e4e4['at']||0x0,_0x410239=_0x36e4e4['columns']||0x1;_0x482f6b['columnInsertionIndexes']=new Array(_0x410239)['fill'](_0x643d5a)['map']((_0x49e9ab,_0x3644fa)=>_0x49e9ab+_0x3644fa);for(const {cell:_0x55a4ec}of _0x373de9['createTableWalker'](_0x2bd1a2,{'startColumn':_0x643d5a,'endColumn':_0x643d5a+_0x410239-0x1}))_0x482f6b['columnInsertionRanges']['push'](_0x18f5e9['model']['createRangeOn'](_0x55a4ec));},{'priority':'low'}),_0x373de9['on']('insertRows',(_0x15052,_0x1a439e)=>{const [_0x22f9fb,_0x419869={}]=_0x1a439e;if(!_0x482f6b)return;const _0x1c7f65=_0x419869['at']||0x0,_0x549513=_0x419869['rows']||0x1;_0x482f6b['rowInsertionIndexes']=new Array(_0x549513)['fill'](_0x1c7f65)['map']((_0x218801,_0x200401)=>_0x218801+_0x200401);for(const {cell:_0x45bd61}of _0x373de9['createTableWalker'](_0x22f9fb,{'startRow':_0x1c7f65,'endRow':_0x1c7f65+_0x549513-0x1}))_0x482f6b['rowInsertionRanges']['push'](_0x18f5e9['model']['createRangeOn'](_0x45bd61));},{'priority':'low'}),_0x273b7b['descriptionFactory']['registerDescriptionCallback'](_0x54e3dd=>{if(_0x54e3dd['subType']&&_0x54e3dd['subType']['startsWith']('tablePaste'))return _0x54e3dd['previous']?{}:{'type':'insertion','content':o(_0x18f5e9['locale'],'*Replace\x20table\x20cells*')};});const _0x39f04e=()=>!0x1;for(const _0x299395 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x273b7b['_suggestionFactory']['registerCustomCallback']('insertion',_0x299395,'join',_0x39f04e),_0x273b7b['_suggestionFactory']['registerCustomCallback']('deletion',_0x299395,'join',_0x39f04e),_0x273b7b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x299395,'join',_0x39f04e);_0x273b7b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x39f04e),_0x273b7b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3668bb,_0x31365e,_0x234fda)=>{const _0xcd69cc=_0x3668bb['map'](_0x544191=>_0x544191['getContainedElement']())['filter'](_0x19bd09=>_0x19bd09),_0x2d0535=new Map(_0xcd69cc['map'](_0x1ab16d=>[_0x1ab16d,null]));if(_0x482f6b){for(const {element:_0x313d34,attributes:_0x189284}of _0x482f6b['cells'])_0x189284&&_0x2d0535['set'](_0x313d34,_0x189284);}else{if(_0x234fda&&_0x234fda['markerAttributes'])for(const [_0x559bc8,_0x4b842f]of Object['entries'](_0x234fda['markerAttributes'])){const _0x3f7284=_0x18f5e9['model']['markers']['get'](_0x559bc8),_0x318fce=_0x3f7284?_0x3f7284['getRange']()['getContainedElement']():null;_0x318fce&&_0x2d0535['set'](_0x318fce,_0x4b842f);}}_0x18f5e9['model']['change'](_0x1cf7cd=>{for(const [_0x5e5852,_0x1e28ea]of _0x2d0535)_0x1cf7cd['setAttributes']({...Ae,..._0x1e28ea},_0x5e5852);});});const _0x4e63d9=(_0x53e592,_0x3e661d)=>{_0x273b7b['_suggestionFactory']['registerCustomCallback'](_0x53e592,'tablePaste',_0x3e661d,(_0x502534,_0x17af05,_0x590973)=>{_0x18f5e9['model']['change'](_0x65ad41=>{const _0x1762b1=[];for(const _0x3ff633 of _0x502534){const _0x427528=_0x3ff633['start']['nodeAfter'];_0x427528['is']('element','tableCellSuggestion')&&_0x1762b1['push'](_0x427528);}_0x273b7b['_suggestionFactory']['getSuggestionCallback'](_0x53e592,null,_0x3e661d)(_0x502534,_0x17af05,_0x590973);for(const _0x3a616b of _0x1762b1)'$graveyard'!=_0x3a616b['root']['rootName']&&_0x65ad41['unwrap'](_0x3a616b);});});};_0x4e63d9('insertion','accept'),_0x4e63d9('insertion','discard'),_0x4e63d9('deletion','accept'),_0x4e63d9('deletion','discard'),_0x273b7b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x461c1e=>{const _0x3d0ca0=_0x461c1e['map'](_0x3820df=>_0x3820df['getContainedElement']()),_0x498689=_0x3d0ca0[0x0]['findAncestor']('table'),{minRow:_0x597195,maxRow:_0x2ca1c2}=_0x124fa7['_getCoordsForCells'](_0x3d0ca0);_0x373de9['removeRows'](_0x498689,{'at':_0x597195,'rows':_0x2ca1c2-_0x597195+0x1});}),_0x273b7b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x23dcaa=>{const _0x1f5e3c=_0x23dcaa['map'](_0x508062=>_0x508062['getContainedElement']()),_0x4ed10b=_0x1f5e3c[0x0]['findAncestor']('table'),{minColumn:_0x14ef9c,maxColumn:_0x10782d}=_0x124fa7['_getCoordsForCells'](_0x1f5e3c);_0x373de9['removeColumns'](_0x4ed10b,{'at':_0x14ef9c,'columns':_0x10782d-_0x14ef9c+0x1});});const _0x42f5e3=(_0x5bcb47,_0x15ea5d)=>{if(!_0x15ea5d['subType']||!_0x15ea5d['subType']['startsWith']('tablePaste'))return;const _0x3ebfe2=_0x15ea5d['attributes']['tablePasteChainId'],_0x317d9c=_0x273b7b['getSuggestions']()['filter'](_0x377756=>_0x377756['isInContent']&&_0x377756['attributes']&&_0x377756['attributes']['tablePasteChainId']==_0x3ebfe2);_0x317d9c['length']&&_0x15ea5d['getAllAdjacentSuggestions']()['length']!=_0x317d9c['length']&&_0x317d9c['reduce']((_0x4096f6,_0x275eb5)=>(_0x4096f6['next']=_0x275eb5,_0x275eb5['previous']=_0x4096f6,_0x275eb5));};function _0xadb6db(_0x5e1177,_0x5a1d54=!0x0){const {id:_0x4ab06a,authorId:_0x51ee0a}=_0x273b7b['_splitMarkerName'](_0x5e1177['markerName']),_0x1cb824=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x188fc8=_0x273b7b['activeMarkers']['includes'](_0x5e1177['markerName']);return _0x188fc8&&_0x1cb824['push']('ck-suggestion-marker--active'),{'classes':_0x1cb824,'attributes':{'data-suggestion':_0x4ab06a,'data-author-id':_0x51ee0a},'priority':_0x188fc8&&_0x5a1d54?0xbc2:0xbb8};}_0x273b7b['on']('suggestionLoaded',_0x42f5e3,{'priority':'high'}),_0x273b7b['on']('suggestionUnloaded',_0x42f5e3,{'priority':'high'}),_0x18f5e9['model']['document']['registerPostFixer'](()=>{let _0x4c75b1=!0x1;const _0x434a26=Array['from'](_0x18f5e9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4fa221,data:_0x378fec}of _0x434a26){const {group:_0x410c05,type:_0x40b89a,id:_0x590972}=_0x273b7b['_splitMarkerName'](_0x4fa221);if('suggestion'!=_0x410c05||'deletion'!=_0x40b89a||_0x378fec['oldRange'])continue;if(!_0x273b7b['hasSuggestion'](_0x590972))continue;const _0x3e2131=_0x273b7b['getSuggestion'](_0x590972)['getRanges'](),_0x3d822f=_0x18f5e9['plugins']['get']('Users')['me'];for(const _0x30e55f of _0x273b7b['getSuggestions']()){if(!_0x30e55f['isInContent']||_0x30e55f['author']!=_0x3d822f)continue;if('formatBlock'!=_0x30e55f['type']||'tablePasteCell'!=_0x30e55f['subType'])continue;if(_0x30e55f['getRanges']()['every'](_0x17e7cf=>_0x3e2131['some'](_0x169fc1=>_0x169fc1['containsRange'](_0x17e7cf,!0x0)))){for(const _0x34e5ce of _0x30e55f['getAllAdjacentSuggestions']())_0x34e5ce['isInContent']&&(_0x34e5ce['discard'](),_0x4c75b1=!0x0);}}}return _0x4c75b1;}),_0x18f5e9['model']['document']['registerPostFixer'](_0x29832b=>{const _0xaa5a13=_0x18f5e9['commands']['get']('redo');if(!_0xaa5a13||!_0xaa5a13['_createdBatches']['has'](_0x29832b['batch']))return!0x1;let _0x45ca3f=!0x1;const _0x233040=_0x18f5e9['plugins']['get']('Users')['me'],_0x11fd6a=_0x18f5e9['model']['document']['differ']['getChanges'](),_0x1f0e16=Array['from'](_0x18f5e9['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1698d6,data:_0x2a7b75})=>{const {group:_0x3642f0,subType:_0x5455c5,authorId:_0x5604fb}=_0x273b7b['_splitMarkerName'](_0x1698d6);return'suggestion'==_0x3642f0&&'tablePaste'==_0x5455c5&&_0x5604fb==_0x233040['id']&&!_0x2a7b75['oldRange'];});for(const _0x41ff97 of _0x11fd6a){if('insert'!=_0x41ff97['type']||'tableCellSuggestion'!=_0x41ff97['name']||0x1!=_0x41ff97['length'])continue;const _0x542c5c=_0x29832b['createRange'](_0x41ff97['position'],_0x41ff97['position']['getShiftedBy'](0x1));if(!_0x1f0e16['find'](({data:_0x50aa3a})=>_0x50aa3a['newRange']['isEqual'](_0x542c5c))){for(const {name:_0x42ff44,data:_0x569d17}of _0x1f0e16)if(_0x542c5c['containsRange'](_0x569d17['newRange'])){_0x29832b['updateMarker'](_0x42ff44,{'range':_0x542c5c}),_0x45ca3f=!0x0;break;}}}return _0x45ca3f;}),_0x18f5e9['model']['document']['registerPostFixer'](_0x3d3ea3=>{let _0xd47732=!0x1;const _0x4b9db9=_0x18f5e9['plugins']['get']('Users')['me'],_0x2c254c=_0x273b7b['getSuggestions']()['filter'](_0x14cc12=>_0x14cc12['isInContent']&&_0x14cc12['author']==_0x4b9db9),_0x5b463b=new Set(),_0x4570d5=new Set();for(const _0x2adb98 of _0x2c254c)if('tablePaste'==_0x2adb98['subType'])for(const _0x5e962a of _0x2adb98['getMarkers']()){const _0x2b41f2=_0x5e962a['getRange']()['getContainedElement']();if(_0x2b41f2){if(_0x2b41f2['is']('element','tableCellSuggestion')&&Be(_0x2b41f2)){_0x2adb98['removeMarker'](_0x5e962a['name']),_0x5b463b['add'](_0x2b41f2),_0xd47732=!0x0;const _0x1d672e=_0x2b41f2['nextSibling'],_0x221982=_0x2b41f2['previousSibling'],_0x2183a0=_0x1d672e&&_0x1d672e['is']('element','tableCellSuggestion'),_0x1a1367=_0x221982&&_0x221982['is']('element','tableCellSuggestion');_0x2183a0&&!_0x5b463b['has'](_0x1d672e)&&_0x4570d5['add'](_0x1d672e),_0x1a1367&&!_0x5b463b['has'](_0x221982)&&_0x4570d5['add'](_0x221982);}else _0x2b41f2['is']('element','paragraph')&&_0x2b41f2['isEmpty']&&(_0x2adb98['removeMarker'](_0x5e962a['name']),_0xd47732=!0x0);}}else{if('tablePasteCell'==_0x2adb98['subType']){if(!_0x2adb98['attributes']||!_0x2adb98['attributes']['tablePasteChainId'])continue;const _0x542372=_0x2adb98['attributes']['markerAttributes'];if(_0x542372&&Object['keys'](_0x542372)['length'])continue;const _0x2b33e4=_0x2adb98['attributes']['tablePasteChainId'];let _0x233112=!0x0,_0x39f983=!0x0;for(const _0x2f8b83 of _0x2c254c)if(_0x2f8b83['subType']&&_0x2f8b83['subType']['startsWith']('tablePaste')){if(!_0x2f8b83['attributes']['tablePasteChainId']){_0x39f983=!0x1;break;}if(_0x2f8b83['id']!=_0x2adb98['id']&&_0x2f8b83['attributes']['tablePasteChainId']==_0x2b33e4){_0x233112=!0x1;break;}}_0x39f983&&_0x233112&&(_0x2adb98['removeMarkers'](),_0xd47732=!0x0);}}for(const _0x5371be of _0x5b463b)_0x3d3ea3['remove'](_0x5371be);for(const _0x567a8a of _0x4570d5)_0x3d3ea3['unwrap'](_0x567a8a);return _0xd47732;}),_0x18f5e9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x59bb76=>_0xadb6db(_0x59bb76),'converterPriority':'high'}),_0x18f5e9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5b57b7,_0x3c8e8b)=>_0x3c8e8b['options']['showSuggestionHighlights']?_0xadb6db(_0x5b57b7,!0x1):null,'converterPriority':'high'});const _0x487f1a=_0x18f5e9['editing']['view'];this['listenTo'](_0x487f1a['document'],'clipboardOutput',(_0x29ffe3,_0x315148)=>{const _0x11644c=[];for(const _0x4f75b1 of _0x487f1a['createRangeIn'](_0x315148['content'])['getItems']())_0x4f75b1['is']('element','suggestion-td')&&_0x11644c['push'](_0x4f75b1);_0x487f1a['change'](_0x7d01bc=>{for(const _0x5e54f1 of _0x11644c)_0x7d01bc['move'](_0x7d01bc['createRangeIn'](_0x5e54f1),_0x7d01bc['createPositionBefore'](_0x5e54f1)),_0x7d01bc['remove'](_0x5e54f1);});});}}function Be(_0x4abc37){if(_0x4abc37['isEmpty'])return!0x0;const _0x3c0a76=_0x4abc37['getChild'](0x0);return _0x3c0a76['is']('element','paragraph')&&_0x3c0a76['isEmpty'];}function Oe(_0x17b45d,_0x428636={},_0x252981){for(const {isAnchor:_0x6c6235,cellHeight:_0x2d1fac,cellWidth:_0x34d7c0}of _0x252981['createTableWalker'](_0x17b45d,{'includeAllSlots':!0x0,..._0x428636}))if(!_0x6c6235||0x1!=_0x2d1fac||0x1!=_0x34d7c0)return!0x1;return!0x0;}class Rt extends _0xe64fa2{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3852ac=this['editor']['plugins']['get']('TrackChangesEditing');_0x3852ac['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3852ac['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3852ac['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3852ac['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3852ac['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3852ac['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x5f2354,_0x4e040e){const _0x48ad51=this['editor']['plugins']['get']('TrackChangesEditing'),_0x91befb=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1ce08f=_0x4e040e['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x87a0e2=_0x91befb['getColumnGroupElement'](_0x1ce08f);let _0x46d35d=_0x87a0e2?_0x91befb['getTableColumnsWidths'](_0x87a0e2):null,_0x3a842a=_0x1ce08f['getAttribute']('tableWidth')||null;const _0x33a651=_0x4e040e['tableWidth']||_0x3a842a,_0x4324c5=_0x4e040e['columnWidths']||_0x46d35d,_0x884959=this['editor']['plugins']['get']('Users')['me'];for(const _0x4f17c7 of _0x48ad51['getSuggestions']()){const _0x1bc75c=_0x4f17c7['getContainedElement']();if('resizeTable'===_0x4f17c7['subType']&&_0x1bc75c===_0x1ce08f){_0x4f17c7['author']!==_0x884959&&_0x4f17c7['discard']();const _0x3b70f7=_0x4f17c7['data']['commandParams'];_0x3a842a=_0x3b70f7[0x0]['tableWidth'],_0x46d35d=_0x3b70f7[0x0]['columnWidths'];break;}}_0x5f2354({'table':_0x1ce08f,'tableWidth':_0x33a651,'columnWidths':_0x4324c5}),_0x48ad51['markBlockFormat'](_0x1ce08f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3a842a,'columnWidths':_0x46d35d}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5e2565){if('formatBlock'!=_0x5e2565['type']&&'formatInline'!=_0x5e2565['type'])return;const {data:_0x20211e}=_0x5e2565;if(_0x20211e&&'resizeTable'===_0x20211e['formatGroupId']){const _0x593811='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x593811)};}}}class Tt extends _0xe64fa2{['afterInit'](){const _0x1e5595=this['editor'];_0x1e5595['plugins']['has']('Template')&&_0x1e5595['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Et extends _0xe64fa2{['afterInit'](){const _0x20985e=this['editor'];if(!_0x20985e['commands']['get']('insertTableOfContents'))return;_0x20985e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2d36b9=_0x20985e['plugins']['get']('TrackChangesEditing'),_0x212062=_0x20985e['locale'];_0x2d36b9['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3c3b26=>o(_0x212062,'ELEMENT_TABLE_OF_CONTENTS',_0x3c3b26));}}class Ut extends _0xe64fa2{['afterInit'](){const _0x3a0523=this['editor'];if(!_0x3a0523['plugins']['has']('Title'))return;const _0x4e54c0=_0x3a0523['plugins']['get']('TrackChangesEditing');_0x4e54c0['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x3a0523['locale'],'ELEMENT_TITLE')),_0x3a0523['model']['document']['registerPostFixer'](_0x182dbb=>{let _0x439955=!0x1;const _0x468175=Array['from'](_0x3a0523['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4aa983,data:_0x2b2e73}of _0x468175){const {group:_0x10ce38}=_0x4e54c0['_splitMarkerName'](_0x4aa983);if('suggestion'!==_0x10ce38||!_0x2b2e73['newRange'])continue;const _0x44aefd=_0x2b2e73['newRange'],_0x127732=_0x44aefd['end']['nodeBefore'];if(!_0x127732||!_0x127732['is']('element','title-content'))continue;if(!_0x44aefd['start']['isTouching'](_0x44aefd['end']))continue;const _0x2ad031=_0x3a0523['model']['schema']['getNearestSelectionRange'](_0x44aefd['end'],'forward');if(_0x2ad031&&_0x2ad031['isCollapsed']){const _0x272f37=_0x182dbb['createRange'](_0x44aefd['start'],_0x2ad031['start']);_0x272f37['isEqual'](_0x44aefd)||(_0x182dbb['updateMarker'](_0x4aa983,{'range':_0x272f37}),_0x439955=!0x0);}_0x439955||(_0x182dbb['removeMarker'](_0x4aa983),_0x439955=!0x0);}return _0x439955;});}}class Vt extends _0xe64fa2{['afterInit'](){const _0x438b25=this['editor'],_0x99aaf1=_0x438b25['plugins']['get']('TrackChangesEditing');_0x438b25['plugins']['has']('Uploadcare')&&(_0x99aaf1['enableCommand']('uploadcare'),_0x438b25['plugins']['has']('UploadcareImageEdit')&&(_0x99aaf1['enableCommand']('uploadcareImageEdit'),_0x99aaf1['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x99aaf1['descriptionFactory']['registerDescriptionCallback'](_0x11ee68=>{if('attribute'!=_0x11ee68['type'])return;const {data:_0x3025d2}=_0x11ee68;return _0x3025d2&&'uploadcareImageId'==_0x3025d2['key']?{'type':'format','content':''}:void 0x0;})));}}class Ft extends _0xe64fa2{['afterInit'](){const _0x29b923=this['editor'],_0x4bd733=_0x29b923['plugins']['get']('TrackChangesEditing');_0x29b923['plugins']['has']('UndoEditing')&&(_0x4bd733['enableCommand']('undo'),_0x4bd733['enableCommand']('redo'));}}class Pt extends _0xe64fa2{static get['requires'](){return[Dt];}['afterInit'](){const _0x520ab4=this['editor'];if(!_0x520ab4['plugins']['has']('TableCaptionEditing'))return;_0x520ab4['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Gt extends _0xe64fa2{['tableProperties'];['tableCellProperties'];constructor(_0x35351a){super(_0x35351a),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x35351a['config']['get']('experimentalFlags.tableCellTypeSupport')&&this['tableCellProperties']['push']('tableCellType');}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x48d1a7=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x53d834 of this['tableProperties'])_0x48d1a7['enableCommand'](_0x53d834,(_0x3bb4d0,_0x43f3fb)=>{const _0x1e2473=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x53d834,[_0x1e2473],this['tableProperties'],'tableProperties',_0x3bb4d0,_0x43f3fb);});_0x48d1a7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x48d1a7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x48d1a7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4e7eb9,_0x20b156)=>this['handleDiscardAction'](this['tableProperties'],_0x4e7eb9,_0x20b156)),_0x48d1a7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5d9ba2 of this['tableCellProperties'])this['editor']['commands']['get'](_0x5d9ba2)&&_0x48d1a7['enableCommand'](_0x5d9ba2,(_0x8094c3,_0x2fb860)=>{const _0x1d3413=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5d9ba2,_0x1d3413,this['tableCellProperties'],'tableCellProperties',_0x8094c3,_0x2fb860);});_0x48d1a7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x48d1a7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x48d1a7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x553c43,_0x59597a)=>this['handleDiscardAction'](this['tableCellProperties'],_0x553c43,_0x59597a)),_0x48d1a7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x48d1a7['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x48d1a7['descriptionFactory']['registerDescriptionCallback'](_0x2d80f2=>this['handleSuggestionDescription'](_0x2d80f2)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x506e67,_0x346dce,_0x10149f,_0xd90e40,_0x391be2,_0x32ee45){const _0x524850=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x32ee45['batch'],()=>{for(const _0x28ced0 of _0x346dce){if(this['_getSuggestion'](_0x28ced0,_0xd90e40))_0x391be2(_0x32ee45);else{const _0x25880a={};for(const _0x7afbce of _0x10149f){const _0x35352d=_0x28ced0['getAttribute'](_0x7afbce);void 0x0!==_0x35352d&&(_0x25880a[_0x7afbce]=_0x35352d);}_0x391be2(_0x32ee45),_0x524850['markBlockFormat'](_0x28ced0,{'commandParams':[_0x25880a]},[],_0xd90e40);}}});}['handleDiscardAction'](_0x4ec8c1,_0x22b470,_0x226e8c){const _0x31fce7=_0x22b470[0x0]['start']['nodeAfter'],_0x2b5937=_0x226e8c['commandParams'][0x0];this['editor']['model']['change'](_0xd0193a=>{for(const _0x3082eb of _0x4ec8c1)void 0x0!==_0x2b5937[_0x3082eb]?_0xd0193a['setAttribute'](_0x3082eb,_0x2b5937[_0x3082eb],_0x31fce7):_0xd0193a['removeAttribute'](_0x3082eb,_0x31fce7);});}['handleSuggestionDescription'](_0x2dcc47){if(_0x2dcc47['data'])switch(_0x2dcc47['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x1e7779,_0x12e740){const _0x512844=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2133c7 of _0x512844['getSuggestions']({'skipNotAttached':!0x0})){const _0x339f2e=_0x2133c7['getContainedElement']();if(_0x2133c7['subType']===_0x12e740&&_0x339f2e===_0x1e7779)return _0x2133c7;}return null;}['_registerTablePropertiesAttributes'](){const _0x54502f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x45c66a=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x394cd9 of _0x45c66a){const _0x1303ae=_0x394cd9['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x54502f['descriptionFactory']['registerAttributeLabel'](_0x394cd9,o(this['editor']['locale'],'FORMAT_'+_0x1303ae));}}}class Lt extends _0xe64fa2{['afterInit'](){const _0x22ab32=this['editor'];if(!_0x22ab32['plugins']['has']('LineHeight'))return;const _0x4ccfc3=_0x22ab32['plugins']['get']('TrackChangesEditing'),_0x3d0421=_0x22ab32['locale'];_0x4ccfc3['enableDefaultAttributesIntegration']('lineHeight'),_0x4ccfc3['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x3d0421,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0xe64fa2{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x2e3730,_0x28b628,_0x2bb545,_0x2c0923,U,V,F,G,L,J,q,K,z,W,H,Q,Z,tt,nt,it,et,st,ot,rt,at,ct,ut,ht,ft,lt,gt,mt,pt,wt,jt,dt,X,Lt,Y,kt,bt,yt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Bt,Ot,xt,Pt,Mt,Rt,Et,Gt,Tt,Ut,Vt,Ft];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3a25a6){super(_0x3a25a6),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x17448e,_0x489052,_0x3de5b2,_0x3d66ab)=>{this['_model']['change'](()=>{for(const _0x6d7f22 of[..._0x3d66ab,..._0x3de5b2])this['_model']['markers']['has'](_0x6d7f22)&&_0x3a25a6['editing']['reconvertMarker'](_0x6d7f22);});}),this['descriptionFactory']=new E(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3a25a6['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x3a25a6['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3a25a6['config']['get']('trackChanges.trackFormatChanges'),_0x3a25a6['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3a25a6['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x3a25a6,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2cc9de=this['editor'];_0x2cc9de['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3fcc2a,{writer:_0x39bb0e})=>{let _0x494391='suggestion:'+_0x3fcc2a['getAttribute']('suggestion-type')+':'+_0x3fcc2a['getAttribute']('id');return _0x3fcc2a['getAttribute']('marker-count')&&(_0x494391+=':'+_0x3fcc2a['getAttribute']('marker-count')),_0x39bb0e['createElement']('$marker',{'data-name':_0x494391});}}),_0x2cc9de['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2cc9de['model']['document']['registerPostFixer'](_0x56e70f=>{let _0x30c154=!0x1;const _0x2c3c82=Array['from'](_0x2cc9de['model']['document']['differ']['getChangedMarkers']()),_0x28d65b=new Set();for(const {name:_0x170908,data:_0x556e42}of _0x2c3c82){const {group:_0x14fd7c,type:_0x171d54,subType:_0x3dc0e8,id:_0x5daca9}=this['_splitMarkerName'](_0x170908);if('suggestion'!==_0x14fd7c)continue;const _0x591592=_0x3dc0e8?'suggestion:'+_0x171d54+':'+_0x3dc0e8+':'+_0x5daca9:'suggestion:'+_0x171d54+':'+_0x5daca9,_0x47efc9=_0x2cc9de['model']['markers']['getMarkersGroup'](_0x591592),_0x52b334=_0x2cc9de['model']['markers']['get'](_0x170908),_0x2058c5=this['_suggestions']['get'](_0x5daca9);if(null!=_0x556e42['newRange']){'formatInline'==_0x171d54&&(_0x30c154=_0x30c154||Wt(_0x556e42['newRange'],_0x170908,_0x56e70f,_0x2cc9de['model']['schema']));const _0x25f84b='attribute'==_0x171d54&&this['_isBlockAttribute'](_0x3dc0e8['split']('|')[0x0]),_0x111213='attribute'==_0x171d54&&this['_isInlineAttribute'](_0x3dc0e8['split']('|')[0x0]);if(_0x556e42['newRange']['isCollapsed']||'$graveyard'==_0x556e42['newRange']['root']['rootName']||'formatBlock'==_0x171d54&&!Qt(_0x556e42['newRange'])||_0x25f84b&&!Qt(_0x556e42['newRange'])||_0x111213&&Xt(_0x556e42['newRange'])||'deletion'==_0x171d54&&Xt(_0x556e42['newRange'])||_0x52b334&&Yt(_0x52b334,_0x47efc9))_0x56e70f['removeMarker'](_0x170908),_0x30c154=!0x0;else{if(!_0x2058c5||!_0x2058c5['isInContent'])continue;if(_0x556e42['newRange']&&_0x556e42['oldRange']&&_0x556e42['newRange']['isEqual'](_0x556e42['oldRange']))continue;_0x28d65b['add'](_0x2058c5);}}}return _0x28d65b['size']>0x0&&(_0x30c154=!!this['_joinWithAdjacentSuggestions'](_0x28d65b)||_0x30c154),_0x30c154;}),_0x2cc9de['model']['document']['registerPostFixer'](_0x3f60f3=>{let _0x42dcd2=!0x1;for(const _0x339eb5 of _0x2cc9de['model']['document']['differ']['getChanges']())if('insert'==_0x339eb5['type'])for(const _0x3db898 of this['_suggestions']['values']()){if(_0x3db898['isMultiRange']||!_0x3db898['isInContent'])continue;const _0x53e994='formatBlock'==_0x3db898['type'],_0x5047d4=this['_getAttributeKey'](_0x3db898),_0x547c93=_0x5047d4&&this['_isBlockAttribute'](_0x5047d4);if(!_0x53e994&&!_0x547c93)continue;const _0x3e01b2=_0x3db898['getFirstRange']();if(_0x3e01b2['start']['parent']!=_0x3e01b2['end']['parent']&&!_0x3e01b2['end']['isAtEnd']){const _0xe8261f=_0x2cc9de['model']['createPositionAt'](_0x3e01b2['start']['nodeAfter'],'end'),_0x3778f1=_0x2cc9de['model']['createRange'](_0x3e01b2['start'],_0xe8261f);_0x3f60f3['updateMarker'](_0x3db898['getFirstMarker'](),{'range':_0x3778f1}),_0x42dcd2=!0x0;}}return _0x42dcd2;}),_0x2cc9de['model']['document']['registerPostFixer'](_0x200f8c=>this['_processAttributeChanges'](_0x200f8c)),_0x2cc9de['model']['document']['registerPostFixer'](_0x156d48=>!_0x156d48['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x156d48)),_0x2cc9de['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2cc9de['model']['document']['on']('change:data',(_0xdfeeeb,_0x24109c)=>{if(!_0x24109c['isLocal']||_0x24109c['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x57bc73=_0x2cc9de['model']['document']['differ']['getChanges']();if(0x0==_0x57bc73['length'])return;const _0x1df412=[],_0x25af99=_0x57bc73['filter'](_0x5985d7=>'attribute'==_0x5985d7['type']),_0x427f69=_0x57bc73['filter'](_0x1103f7=>'insert'==_0x1103f7['type']&&'$text'!=_0x1103f7['name']);for(const _0x3b6eb6 of _0x25af99)this['_isRegisteredAttribute'](_0x3b6eb6['attributeKey'])&&_0x1df412['push']({'key':_0x3b6eb6['attributeKey'],'newValue':_0x3b6eb6['attributeNewValue'],'oldValue':_0x3b6eb6['attributeOldValue'],'range':Zt(_0x3b6eb6['range'],_0x2cc9de['model'])});for(const _0x1dff15 of _0x427f69){if('rename'!=_0x1dff15['action']&&'refresh'!=_0x1dff15['action'])continue;const _0xe7c3f6=tn(_0x1dff15['position']['nodeAfter'],_0x2cc9de['model']),_0x16047f=_0x1dff15['before'];'rename'==_0x1dff15['action']&&_0x1df412['push']({'key':m,'newValue':_0x1dff15['name'],'oldValue':_0x16047f['name'],'range':_0xe7c3f6});for(const [_0x16b6f9,_0x3f3ad4]of _0x16047f['attributes']){if(!this['_isRegisteredAttribute'](_0x16b6f9))continue;const _0x29c9b7=_0x1dff15['attributes']['get'](_0x16b6f9);_0x3f3ad4!==_0x29c9b7&&_0x1df412['push']({'key':_0x16b6f9,'newValue':_0x29c9b7,'oldValue':_0x3f3ad4,'range':_0xe7c3f6});}for(const [_0x28858a,_0x5356f8]of _0x1dff15['attributes'])this['_isRegisteredAttribute'](_0x28858a)&&(_0x16047f['attributes']['has'](_0x28858a)||_0x1df412['push']({'key':_0x28858a,'newValue':_0x5356f8,'oldValue':null,'range':_0xe7c3f6}));}0x0!=_0x1df412['length']&&_0x2cc9de['model']['enqueueChange'](_0x24109c,_0xd11cad=>{const _0x113007=_0x3f9e0f();for(const {range:_0x217ffa,key:_0xb77915,oldValue:_0x3b92fb,newValue:_0x2340f9}of _0x1df412)this['markAttributeChange'](_0x217ffa,_0xb77915,_0x3b92fb,_0x2340f9,{'groupId':_0x113007});this['_reduceExistingSuggestions'](_0xd11cad,_0x1df412);});},{'priority':'lowest'}),_0x2cc9de['model']['markers']['on']('update:suggestion',(_0x465bdd,_0x34c92b,_0x5d1110)=>{if(null==_0x5d1110){const {id:_0x1afc5f}=this['_splitMarkerName'](_0x34c92b['name']),_0x49bcfd=this['_suggestions']['get'](_0x1afc5f);_0x49bcfd&&_0x49bcfd['addMarkerName'](_0x34c92b['name']);}}),_0x2cc9de['model']['document']['on']('change:data',()=>{const _0x54a545=Array['from'](_0x2cc9de['model']['document']['differ']['getChangedMarkers']())['filter'](_0xe1924e=>'suggestion'===this['_splitMarkerName'](_0xe1924e['name'])['group']);if(0x0===_0x54a545['length'])return;_0x54a545['sort']((_0x4b3b24,_0x511c83)=>{const _0x2699ae=_0x4b3b24['data']['oldRange'],_0x1f3be6=_0x511c83['data']['oldRange'];return null===_0x2699ae&&null===_0x1f3be6?0x0:null===_0x2699ae&&null!==_0x1f3be6?-0x1:null!==_0x2699ae&&null===_0x1f3be6?0x1:_0x2699ae['start']['isBefore'](_0x1f3be6['start'])?-0x1:0x1;});const _0x37831e=new Set(),_0x9b23c0=new Set();for(const {name:_0x200c06,data:_0x3c5b45}of _0x54a545){const {id:_0x80066}=this['_splitMarkerName'](_0x200c06);if(null===_0x3c5b45['oldRange']){const _0x1fa457=this['_handleNewSuggestionMarker'](_0x200c06);_0x9b23c0['add'](_0x1fa457);}else{const _0x33c0db=this['_suggestions']['get'](_0x80066);null!==_0x3c5b45['newRange']||_0x33c0db['isInContent']?(_0x37831e['add'](_0x33c0db['head']),_0x9b23c0['add'](_0x33c0db)):this['_removeSuggestion'](_0x33c0db);}}_0x9b23c0['size']>0x0&&this['_refreshSuggestionsChain'](_0x9b23c0);for(const _0x15091f of _0x37831e)this['fire']('suggestionChanged',_0x15091f);}),_0x2cc9de['model']['on']('applyOperation',(_0x41e341,_0x5343a2)=>{const _0x29a1e9=_0x5343a2[0x0];if(!this['_suggestions']['size'])return;if(!_0x29a1e9['isDocumentOperation'])return;if(_0x29a1e9['batch']['isUndo']||!_0x29a1e9['batch']['isLocal'])return;let _0xc8eeb,_0x60c961;switch(_0x29a1e9['type']){case'insert':_0xc8eeb=_0x2cc9de['model']['createPositionAt'](_0x29a1e9['position']),_0x60c961=_0xc8eeb['getShiftedBy'](_0x29a1e9['howMany']);break;case'split':_0xc8eeb=_0x2cc9de['model']['createPositionAt'](_0x29a1e9['splitPosition']),_0x60c961=_0x2cc9de['model']['createPositionAt'](_0x29a1e9['moveTargetPosition']);break;case'move':_0xc8eeb=_0x2cc9de['model']['createPositionAt'](_0x29a1e9['targetPosition']),_0x60c961=_0xc8eeb['getShiftedBy'](_0x29a1e9['howMany']);break;default:return;}const _0x7d3898=_0x2cc9de['model']['createRange'](_0xc8eeb,_0x60c961);_0x2cc9de['model']['change'](()=>{for(const {suggestion:_0x409b8f,meta:_0x3bf2e0}of this['_findSuggestions'](_0x7d3898)){if(_0x409b8f['isMultiRange'])continue;if('formatInline'==_0x409b8f['type'])continue;const _0x4dce7f=this['_getAttributeKey'](_0x409b8f);if(_0x4dce7f&&this['_isBlockAttribute'](_0x4dce7f)&&'split'!=_0x29a1e9['type'])continue;const _0x2b60f8=_0x409b8f['data']&&_0x409b8f['data']['multipleBlocks'];('formatBlock'!=_0x409b8f['type']||'split'==_0x29a1e9['type']&&!_0x2b60f8)&&(_0x3bf2e0['containsRangeInObject']||'insertion'==_0x409b8f['type']&&_0x3bf2e0['isOwn']||_0x409b8f['getFirstRange']()['containsRange'](_0x7d3898)&&this['_breakSuggestionMarker'](_0x409b8f,_0xc8eeb,_0x60c961));}});},{'priority':'lowest'}),_0x2cc9de['model']['on']('deleteContent',(_0x454cb2,_0x1b96fe)=>{const _0x32cfbd=_0x1b96fe[0x0],_0x1aca17=_0x1b96fe[0x1];if(_0x1aca17&&_0x1aca17['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x32cfbd['isCollapsed'])return;const _0x61dac7=_0x2cc9de['model']['schema'],{start:_0xa50ac6,end:_0x580eb4}=_0x32cfbd['getFirstRange'](),_0x1fbf4d=_0xa50ac6['nodeAfter']&&_0x61dac7['isLimit'](_0xa50ac6['nodeAfter'])?null:_0x61dac7['getNearestSelectionRange'](_0xa50ac6,'forward'),_0x3aff8f=_0x580eb4['nodeBefore']&&_0x61dac7['isLimit'](_0x580eb4['nodeBefore'])?null:_0x61dac7['getNearestSelectionRange'](_0x580eb4,'backward'),_0x5a1bc3=_0x2cc9de['model']['createRange'](_0x1fbf4d?_0x1fbf4d['start']:_0xa50ac6,_0x3aff8f?_0x3aff8f['end']:_0x580eb4);_0x2cc9de['model']['change'](_0x152943=>{this['markDeletion'](_0x5a1bc3);const _0x4d84f5=_0x2cc9de['model']['schema']['getNearestSelectionRange'](_0x5a1bc3['start']);_0x32cfbd['is']('documentSelection')?_0x152943['setSelection'](_0x4d84f5):_0x32cfbd['setTo'](_0x4d84f5);}),_0x454cb2['stop']();},{'priority':_0x3598fa['normal']+0xa}),_0x2cc9de['model']['on']('insertContent',(_0x51b152,_0x14e189)=>{const _0x82cf2a=_0x14e189[_0x14e189['length']-0x1];_0x82cf2a&&_0x82cf2a['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2cc9de['model']['change'](()=>{let _0x29c6d0=_0x2cc9de['model']['insertContent'](_0x14e189[0x0],_0x14e189[0x1],_0x14e189[0x2],{'forceDefaultExecution':!0x0});if(!_0x29c6d0)return;_0x51b152['return']=_0x29c6d0['clone']();const _0x464d02=_0x29c6d0['end']['nodeBefore'],_0x4aa007=_0x2cc9de['model']['schema'];_0x464d02&&_0x4aa007['isBlock'](_0x464d02)&&!_0x4aa007['isObject'](_0x464d02)&&(_0x29c6d0=_0x2cc9de['model']['createRange'](_0x29c6d0['start'],_0x2cc9de['model']['createPositionAt'](_0x464d02,'end'))),this['markInsertion'](_0x29c6d0);}),_0x51b152['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x354333=new O(_0x2cc9de,this['_suggestions']);_0x2cc9de['commands']['add']('acceptSuggestion',_0x354333),this['enableCommand']('acceptSuggestion');const _0x9c4711=new x(_0x2cc9de,this['_suggestions']);_0x2cc9de['commands']['add']('discardSuggestion',_0x9c4711),this['enableCommand']('discardSuggestion'),_0x2cc9de['commands']['add']('acceptAllSuggestions',new M(_0x2cc9de,_0x354333,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2cc9de['commands']['add']('discardAllSuggestions',new M(_0x2cc9de,_0x9c4711,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2cc9de['commands']['add']('acceptSelectedSuggestions',new R(_0x2cc9de,_0x354333,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2cc9de['commands']['add']('discardSelectedSuggestions',new R(_0x2cc9de,_0x9c4711,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3626fd=_0x2cc9de['plugins']['get']('CommentsRepository');this['listenTo'](_0x3626fd,'addComment',(_0x39dece,{threadId:_0x2ad396})=>{const _0xa037b9=this['_suggestions']['get'](_0x2ad396);_0xa037b9&&_0xa037b9['commentThread']&&0x1===_0xa037b9['commentThread']['length']&&this['_updateSuggestionData'](_0x2ad396,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3626fd,'removeComment',(_0x2fcbe5,{threadId:_0x141518})=>{const _0x25b263=this['_suggestions']['get'](_0x141518);_0x25b263&&_0x25b263['commentThread']&&!_0x25b263['commentThread']['length']&&this['_updateSuggestionData'](_0x141518,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2a2798){const _0x41dcb8=_0xd7f515([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]),_0x491408=0x3d8d0df,_0x2903d2=0x3df53ef^_0x491408,_0x502e71=window[_0xd7f515([0x44,0x61,0x74,0x65])][_0xd7f515([0x6e,0x6f,0x77])](),_0x5ed115=_0x2a2798[_0xd7f515([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x458768=new window[(_0xd7f515([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x469a7d=>{_0x5ed115[_0xd7f515([0x6f,0x6e,0x63,0x65])](_0xd7f515([0x72,0x65,0x61,0x64,0x79]),_0x469a7d);}),_0x493dd6={[_0xd7f515([0x6b,0x74,0x79])]:_0xd7f515([0x45,0x43]),[_0xd7f515([0x75,0x73,0x65])]:_0xd7f515([0x73,0x69,0x67]),[_0xd7f515([0x63,0x72,0x76])]:_0xd7f515([0x50,0x2d,0x32,0x35,0x36]),[_0xd7f515([0x78])]:_0xd7f515([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]),[_0xd7f515([0x79])]:_0xd7f515([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]),[_0xd7f515([0x61,0x6c,0x67])]:_0xd7f515([0x45,0x53,0x32,0x35,0x36])},_0x466ef1=_0x5ed115[_0xd7f515([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xd7f515([0x67,0x65,0x74])](_0xd7f515([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x58c861(){let _0x4138c1,_0x1d8d79=null,_0xd879a7=null;try{if(_0x466ef1==_0xd7f515([0x47,0x50,0x4c]))return _0xd7f515([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4138c1=_0x5a5974(),!_0x4138c1)return _0xd7f515([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4138c1[_0xd7f515([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xd879a7=_0x36b88d(_0x4138c1[_0xd7f515([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4138c1[_0xd7f515([0x6a,0x74,0x69])])),await _0x13e750()?_0x270b51()?_0x3839b7()?_0xd7f515([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x169e6f()?(_0x4138c1[_0xd7f515([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xd7f515([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1d8d79=_0x3daea5(_0xd7f515([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x978b41()):_0xd7f515([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xd7f515([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xd7f515([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xd7f515([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3839b7(){const _0x4f6513=[_0xd7f515([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xd7f515([0x74,0x72,0x69,0x61,0x6c])][_0xd7f515([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4138c1[_0xd7f515([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x502e71/0x3e8:0xe10*_0x2903d2;return _0x4138c1[_0xd7f515([0x65,0x78,0x70])]<_0x4f6513;}function _0x270b51(){const _0x22ee35=_0x4138c1[_0xd7f515([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x22ee35)return!0x1;if(_0x22ee35[_0xd7f515([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd7f515([0x2a])))return!0x0;if(_0x22ee35[_0xd7f515([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd7f515([0x54,0x43])))return!0x0;if(_0x22ee35[_0xd7f515([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd7f515([0x52,0x54,0x43]))){if(_0x115aad())return!0x0;if(_0x99778d()||_0x383f8f())return!0x0;}return!0x1;}function _0x169e6f(){const _0x30f6ae=_0x4138c1[_0xd7f515([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x30f6ae||0x0==_0x30f6ae[_0xd7f515([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5a0312}=new URL(window[_0xd7f515([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x30f6ae[_0xd7f515([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a0312))return!0x0;const _0x4e09c8=_0x5a0312[_0xd7f515([0x73,0x70,0x6c,0x69,0x74])](_0xd7f515([0x2e]));return _0x30f6ae[_0xd7f515([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xc623a=>_0xc623a[_0xd7f515([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd7f515([0x2a])))[_0xd7f515([0x6d,0x61,0x70])](_0x2034c4=>_0x2034c4[_0xd7f515([0x73,0x70,0x6c,0x69,0x74])](_0xd7f515([0x2e])))[_0xd7f515([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1539b5=>_0x1539b5[_0xd7f515([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4e09c8[_0xd7f515([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xd7f515([0x6d,0x61,0x70])](_0x434a38=>Array(_0x4e09c8[_0xd7f515([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x434a38[_0xd7f515([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xd7f515([0x66,0x69,0x6c,0x6c])](_0x434a38[0x0]===_0xd7f515([0x2a])?_0xd7f515([0x2a]):'')[_0xd7f515([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x434a38))[_0xd7f515([0x73,0x6f,0x6d,0x65])](_0x3a875a=>_0x4e09c8[_0xd7f515([0x65,0x76,0x65,0x72,0x79])]((_0x1449df,_0x4b914d)=>_0x3a875a[_0x4b914d]===_0x1449df||_0x3a875a[_0x4b914d]===_0xd7f515([0x2a])));}function _0x978b41(){return _0x1d8d79&&_0xd879a7?new window[(_0xd7f515([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x576fbf,_0x309340)=>{_0x1d8d79[_0xd7f515([0x74,0x68,0x65,0x6e])](_0x576fbf,_0x309340),_0xd879a7[_0xd7f515([0x74,0x68,0x65,0x6e])](_0x4a0f11=>{_0x4a0f11!=_0xd7f515([0x56,0x61,0x6c,0x69,0x64])&&_0x576fbf(_0x4a0f11);},_0x309340);}):_0x1d8d79||_0xd879a7||_0xd7f515([0x56,0x61,0x6c,0x69,0x64]);}}function _0x36b88d(_0x2827dc,_0x569354){return new window[(_0xd7f515([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x304d71=>{if(_0x5aeb1())return _0x304d71(_0xd7f515([0x56,0x61,0x6c,0x69,0x64]));_0x5402d0(),_0x5ed115[_0xd7f515([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xd7f515([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4ee50a=!0x1;const _0x10bd4c=_0x3f9e0f();function _0x4fca4b(_0xdeceb8){return!!_0xdeceb8&&(typeof _0xdeceb8===_0xd7f515([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xdeceb8===_0xd7f515([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xdeceb8[_0xd7f515([0x74,0x68,0x65,0x6e])]===_0xd7f515([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xdeceb8[_0xd7f515([0x63,0x61,0x74,0x63,0x68])]===_0xd7f515([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x16f4a8(_0x154928){_0x269adc(_0x154928)[_0xd7f515([0x74,0x68,0x65,0x6e])](_0x1dc0bc=>{if(!_0x1dc0bc||_0x1dc0bc[_0xd7f515([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xd7f515([0x6f,0x6b]))return _0xd7f515([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1d7141(_0x38c168(_0x10bd4c+_0x569354))!=_0x1dc0bc[_0xd7f515([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xd7f515([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xd7f515([0x56,0x61,0x6c,0x69,0x64]);})[_0xd7f515([0x74,0x68,0x65,0x6e])](_0x194509=>(_0x2cab30(),_0x194509),()=>{const _0x129da8=_0x581152();return null==_0x129da8?(_0x2cab30(),_0xd7f515([0x56,0x61,0x6c,0x69,0x64])):_0xd7f515(_0x502e71-_0x129da8>(0x27d454df^_0x491408)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xd7f515([0x74,0x68,0x65,0x6e])](_0x304d71)[_0xd7f515([0x63,0x61,0x74,0x63,0x68])](()=>{_0x304d71(_0xd7f515([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2606b0=0x3ee3e5f^_0x491408;function _0x2cab30(){const _0xc53b6f=_0xd7f515([0x6c,0x6c,0x63,0x74,0x2d])+_0x1d7141(_0x38c168(_0x2827dc)),_0x17a776=_0x1de406(_0x1d7141(window[_0xd7f515([0x4d,0x61,0x74,0x68])][_0xd7f515([0x63,0x65,0x69,0x6c])](_0x502e71/_0x2606b0)));window[_0xd7f515([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd7f515([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc53b6f,_0x17a776);}function _0x581152(){const _0x2662a1=_0xd7f515([0x6c,0x6c,0x63,0x74,0x2d])+_0x1d7141(_0x38c168(_0x2827dc)),_0x1e8cb9=window[_0xd7f515([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd7f515([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2662a1);return _0x1e8cb9?window[_0xd7f515([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1de406(_0x1e8cb9),0x10)*_0x2606b0:null;}function _0x269adc(_0x2eeb74){return new window[(_0xd7f515([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x423cf1,_0x29487b)=>{_0x2eeb74[_0xd7f515([0x74,0x68,0x65,0x6e])](_0x423cf1,_0x29487b),window[_0xd7f515([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x29487b,0x3d9041f^_0x491408);});}}_0x5ed115[_0xd7f515([0x6f,0x6e])](_0xd7f515([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x158cf6,_0x1ebcaf)=>{if(_0x1ebcaf[0x0]!=_0x2827dc)return _0x304d71(_0xd7f515([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1ebcaf[0x1]={..._0x1ebcaf[0x1],[_0xd7f515([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x10bd4c};},{[_0xd7f515([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd7f515([0x68,0x69,0x67,0x68])}),_0x5ed115[_0xd7f515([0x6f,0x6e])](_0xd7f515([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x241c31=>{_0x4fca4b(_0x241c31[_0xd7f515([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4ee50a=!0x0,_0x16f4a8(_0x241c31[_0xd7f515([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xd7f515([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd7f515([0x6c,0x6f,0x77])}),_0x458768[_0xd7f515([0x74,0x68,0x65,0x6e])](()=>{_0x4ee50a||_0x304d71(_0xd7f515([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5aeb1(){return _0x5ed115[_0xd7f515([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd7f515([0x76,0x69,0x65,0x77])][_0xd7f515([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xd7f515([0x61,0x75,0x74,0x6f]);}function _0x5402d0(){_0x5ed115[_0xd7f515([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd7f515([0x76,0x69,0x65,0x77])][_0xd7f515([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xd7f515([0x61,0x75,0x74,0x6f]);}}function _0x3daea5(_0x5f4c35){const _0x45ce1c=[new window[(_0xd7f515([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x157440=>setTimeout(_0x157440,0x3d1ee13^_0x491408)),_0x458768[_0xd7f515([0x74,0x68,0x65,0x6e])](()=>new window[(_0xd7f515([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5cec95=>{let _0x15b18b=0x0;_0x5ed115[_0xd7f515([0x6d,0x6f,0x64,0x65,0x6c])][_0xd7f515([0x6f,0x6e])](_0xd7f515([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x40b702,_0x738e22)=>{_0x738e22[0x0][_0xd7f515([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x15b18b++,_0x15b18b==(0x3d8d537^_0x491408)&&(_0x5cec95(),_0x40b702[_0xd7f515([0x6f,0x66,0x66])]());});}))];return window[_0xd7f515([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xd7f515([0x72,0x61,0x63,0x65])](_0x45ce1c)[_0xd7f515([0x74,0x68,0x65,0x6e])](()=>_0x5f4c35);}async function _0xc07adc(){await _0x458768,_0x5ed115[_0xd7f515([0x6d,0x6f,0x64,0x65,0x6c])][_0xd7f515([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xd801c4,_0x5ed115[_0xd7f515([0x6d,0x6f,0x64,0x65,0x6c])][_0xd7f515([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xd801c4,_0x5ed115[_0xd7f515([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xd7f515([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x115aad(){return _0x382674(_0xd7f515([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3081d0(_0xd7f515([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xd7f515([0x73,0x74,0x61,0x74,0x65])]==_0xd7f515([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x99778d(){return _0x382674(_0xd7f515([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 _0x383f8f(){return _0x382674(_0xd7f515([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x399b22(_0x186542){const _0x5c4be7=_0x385d7b();_0x5ed115[_0x5c4be7]=_0xd7f515([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x186542,_0x186542!=_0xd7f515([0x56,0x61,0x6c,0x69,0x64])&&_0xc07adc();}function _0x385d7b(){const _0x258de4=window[_0xd7f515([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xd7f515([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xd7f515([0x6e,0x6f,0x77])]())[_0xd7f515([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xd7f515([0x2e]),'');let _0x3554fb=_0xd7f515([0x52]);for(let _0x509edb=0x0;_0x509edb<_0x258de4[_0xd7f515([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x509edb+=0x2){let _0x4d3b7a=window[_0xd7f515([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x258de4[_0xd7f515([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x509edb,_0x509edb+0x2));_0x4d3b7a>=_0x41dcb8[_0xd7f515([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4d3b7a-=_0x41dcb8[_0xd7f515([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3554fb+=_0x41dcb8[_0x4d3b7a];}return _0x3554fb;}function _0x5a5974(){const _0x307d51=_0x466ef1[_0xd7f515([0x73,0x70,0x6c,0x69,0x74])](_0xd7f515([0x2e]));if(0x3!=_0x307d51[_0xd7f515([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x456aff(_0x307d51[0x1]);function _0x456aff(_0x43ba00){const _0x1053c1=_0x4ff68a(_0x43ba00);return _0x1053c1&&_0x2e2b62()?_0x1053c1:null;function _0x2e2b62(){const _0x3d03ae=_0x1053c1[_0xd7f515([0x6a,0x74,0x69])],_0x1501af=window[_0xd7f515([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d03ae[_0xd7f515([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d03ae[_0xd7f515([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5408b1={..._0x1053c1,[_0xd7f515([0x6a,0x74,0x69])]:_0x3d03ae[_0xd7f515([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3d03ae[_0xd7f515([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5408b1[_0xd7f515([0x76,0x63])],_0x38c168(_0x5408b1)==_0x1501af;}}}async function _0x13e750(){let _0x50af6d=!0x0;try{const _0x4deb83=_0x466ef1[_0xd7f515([0x73,0x70,0x6c,0x69,0x74])](_0xd7f515([0x2e])),[_0xd121d5,_0x2edebf,_0x292eaf]=_0x4deb83;return _0x1f15cb(_0xd121d5),await _0xd2ad17(_0xd121d5,_0x2edebf,_0x292eaf),_0x50af6d;}catch{return!0x1;}function _0x1f15cb(_0x4f7e52){const _0x38c956=_0x4ff68a(_0x4f7e52);_0x38c956&&_0x38c956[_0xd7f515([0x61,0x6c,0x67])]==_0xd7f515([0x45,0x53,0x32,0x35,0x36])||(_0x50af6d=!0x1);}async function _0xd2ad17(_0x4c6bec,_0x5abdf1,_0x1f3b7a){const _0x52d0c4=window[_0xd7f515([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xd7f515([0x66,0x72,0x6f,0x6d])](_0x149b38(_0x1f3b7a),_0x44967e=>_0x44967e[_0xd7f515([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1d7245=new window[(_0xd7f515([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xd7f515([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4c6bec+_0xd7f515([0x2e])+_0x5abdf1),_0x3c1c4a=window[_0xd7f515([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xd7f515([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3c1c4a)return;const _0xebaabf=await _0x3c1c4a[_0xd7f515([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xd7f515([0x6a,0x77,0x6b]),_0x493dd6,{[_0xd7f515([0x6e,0x61,0x6d,0x65])]:_0xd7f515([0x45,0x43,0x44,0x53,0x41]),[_0xd7f515([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xd7f515([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xd7f515([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3c1c4a[_0xd7f515([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xd7f515([0x6e,0x61,0x6d,0x65])]:_0xd7f515([0x45,0x43,0x44,0x53,0x41]),[_0xd7f515([0x68,0x61,0x73,0x68])]:{[_0xd7f515([0x6e,0x61,0x6d,0x65])]:_0xd7f515([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xebaabf,_0x52d0c4,_0x1d7245)||(_0x50af6d=!0x1);}}function _0x4ff68a(_0x51cc87){return _0x51cc87[_0xd7f515([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xd7f515([0x65,0x79]))?JSON[_0xd7f515([0x70,0x61,0x72,0x73,0x65])](_0x149b38(_0x51cc87)):null;}function _0x149b38(_0x486dbb){return window[_0xd7f515([0x61,0x74,0x6f,0x62])](_0x486dbb[_0xd7f515([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xd7f515([0x2b]))[_0xd7f515([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xd7f515([0x2f])));}function _0x38c168(_0x552b97){let _0x221a4d=0x1505;function _0x2b7d2c(_0x30b6a4){for(let _0x439705=0x0;_0x439705<_0x30b6a4[_0xd7f515([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x439705++){const _0x2639b3=_0x30b6a4[_0xd7f515([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x439705);_0x221a4d=(_0x221a4d<<0x5)+_0x221a4d+_0x2639b3,_0x221a4d&=_0x221a4d;}}function _0x14b0c3(_0x57aee0){Array[_0xd7f515([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x57aee0)?_0x57aee0[_0xd7f515([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x14b0c3):_0x57aee0&&typeof _0x57aee0==_0xd7f515([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xd7f515([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x57aee0)[_0xd7f515([0x73,0x6f,0x72,0x74])]()[_0xd7f515([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x459727,_0x154bf0])=>{_0x2b7d2c(_0x459727),_0x14b0c3(_0x154bf0);}):_0x2b7d2c(window[_0xd7f515([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x57aee0));}return _0x14b0c3(_0x552b97),_0x221a4d>>>0x0;}function _0x1d7141(_0x4ec44c){return _0x4ec44c[_0xd7f515([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xd7f515([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xd7f515([0x30]));}function _0x1de406(_0x26d834){return _0x26d834[_0xd7f515([0x73,0x70,0x6c,0x69,0x74])]('')[_0xd7f515([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xd7f515([0x6a,0x6f,0x69,0x6e])]('');}function _0x382674(_0x42b140){return _0x5ed115[_0xd7f515([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xd7f515([0x68,0x61,0x73])](_0x42b140);}function _0x3081d0(_0x43900f){return _0x5ed115[_0xd7f515([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xd7f515([0x67,0x65,0x74])](_0x43900f);}function _0xd801c4(){}function _0xd7f515(_0x497219){return _0x497219['map'](_0x5eb8c8=>String['fromCharCode'](_0x5eb8c8))['join']('');}_0x399b22(await _0x58c861());}(this);}set['adapter'](_0xde5f7c){if(this['_adapter'])throw new _0x2d7099('track-changes-adapter-already-set',this);this['_adapter']=_0xde5f7c;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x166f6e=!0x1,toJSON:_0x5cfdda=!0x1}={}){const _0x59afb7=[];for(const _0x4efc1e of this['_suggestions']['values']())_0x166f6e&&!_0x4efc1e['isInContent']||_0x59afb7['push'](_0x4efc1e);return _0x5cfdda?_0x59afb7['map'](_0xded0e=>_0xded0e['toJSON']()):_0x59afb7;}['getSuggestion'](_0x4385be){const _0x26ac02=this['_suggestions']['get'](_0x4385be);if(!_0x26ac02)throw new _0x2d7099('track-changes-suggestion-not-found',this);return _0x26ac02;}['hasSuggestion'](_0x183eaf){return this['_suggestions']['has'](_0x183eaf);}['addSuggestionData'](_0x232d8d){const {authorId:_0xb7610f,id:_0x3c944f,originalSuggestionId:_0x96a7e8,attributes:_0x5ab3bf}=_0x232d8d,[_0x71ddf7,_0x20fd23]=_0x232d8d['type']['split'](':'),_0x7b2193=this['_suggestions']['get'](_0x3c944f)||this['_createSuggestion'](_0x71ddf7,_0x20fd23,_0x3c944f,_0xb7610f,_0x5ab3bf,_0x96a7e8);if(this['_addThreadToSuggestion'](_0x7b2193),this['_checkSuggestionCorrectness'](_0x7b2193,_0x71ddf7,_0x20fd23||null,_0xb7610f),_0x7b2193['createdAt']=_0x232d8d['createdAt'],_0x7b2193['_isDataLoaded']=!0x0,_0x5ab3bf&&_0x5ab3bf['@external']){const _0x5043a5=_0x5ab3bf['@external'],_0x2215f3=this['_getExternalAuthor'](_0x5043a5['authorName']);_0x7b2193['authoredAt']=_0x5043a5['createdAt'],_0x7b2193['author']=_0x2215f3,_0x7b2193['isExternal']=!0x0;}else _0x7b2193['authoredAt']=_0x232d8d['createdAt'];switch(_0x232d8d['data']&&(_0x7b2193['data']=_0x232d8d['data']),_0x232d8d['attributes']&&(_0x7b2193['attributes']=_0x232d8d['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x7b2193['_saved']=!0x0),this['_suggestionState']['get'](_0x7b2193)){case'notReady':this['_suggestionState']['set'](_0x7b2193,'dataReady');break;case'markerReady':_0x7b2193['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x7b2193])),this['_refreshSuggestionsChain'](new Set([_0x7b2193])),this['_suggestionState']['set'](_0x7b2193,'ready'),this['fire']('suggestionLoaded',_0x7b2193)):this['_suggestionState']['set'](_0x7b2193,'removed');}return _0x7b2193;}['acceptSuggestion'](_0x22c380){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3d31c2 of _0x22c380['getAllAdjacentSuggestions']())_0x3d31c2['accept']();});});}['discardSuggestion'](_0x110916){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1de5f9 of _0x110916['getAllAdjacentSuggestions']())_0x1de5f9['discard']();});});}['enableCommand'](_0x14351b,_0x5488f5){const _0x1634d8=this['editor']['commands']['get'](_0x14351b);if(!_0x1634d8)throw new _0x2d7099('track-changes-command-not-found',this,{'commandName':_0x14351b});if(this['_enabledCommands']['has'](_0x1634d8))throw new _0x2d7099('track-changes-enable-command-twice',this,{'commandName':_0x14351b});this['_enabledCommands']['add'](_0x1634d8),_0x5488f5&&_0x1634d8['on']('execute',(_0x1ec3f7,_0x5d6413)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5d6413['length']>0x0&&_0x5d6413[_0x5d6413['length']-0x1]&&_0x5d6413[_0x5d6413['length']-0x1]['forceDefaultExecution']?_0x5d6413['pop']():(_0x1ec3f7['return']=_0x5488f5((..._0x1f98a4)=>_0x1634d8['execute'](..._0x1f98a4,{'forceDefaultExecution':!0x0}),..._0x5d6413),_0x1ec3f7['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x9f882){let _0x846af8,_0x48faa4;const _0x41111e=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x846af8=_0x9f882();}catch(_0x49518e){_0x48faa4=_0x49518e;}return _0x41111e||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x48faa4&&_0x2d7099['rethrowUnexpectedError'](_0x48faa4,this),_0x846af8;}['markInsertion'](_0x3ff7c8,_0x13405a=null,_0x52d67a={}){if(_0x3ff7c8['isCollapsed'])return null;const _0x1e87de=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x52d67a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2c08da,meta:_0x39585d}of this['_findSuggestions'](_0x3ff7c8,'insertion'))if(_0x39585d['isOwn']){if(!_0x39585d['isNextTo']){if(_0x39585d['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x2c08da,_0x52d67a))continue;return _0x2c08da;}if(sn(_0x2c08da,_0x52d67a))return _0x2c08da;this['_breakSuggestionMarker'](_0x2c08da,_0x3ff7c8['start'],_0x3ff7c8['end']);break;}if(_0x13405a==_0x2c08da['subType']&&sn(_0x2c08da,_0x52d67a)){const _0x5522ff=_0x2c08da['getFirstRange']();return _0x5522ff['start']['isEqual'](_0x3ff7c8['end'])?this['_setSuggestionRange'](_0x2c08da,this['_model']['createRange'](_0x3ff7c8['start'],_0x5522ff['end'])):this['_setSuggestionRange'](_0x2c08da,this['_model']['createRange'](_0x5522ff['start'],_0x3ff7c8['end'])),_0x2c08da;}}const _0xcfb644=_0x3f9e0f(),_0x568ea1=_0x1e87de['id'],_0x4b6f5b=_0x13405a?'insertion:'+_0x13405a:'insertion',_0x362e6c=this['_setSuggestionData']({'id':_0xcfb644,'type':_0x4b6f5b,'createdAt':new Date(),'authorId':_0x568ea1,'attributes':_0x52d67a});return this['_addSuggestionMarker'](_0x4b6f5b,_0xcfb644,_0x568ea1,_0x3ff7c8),_0x362e6c;}['markMultiRangeInsertion'](_0x23b74f,_0x231509='multi',_0x1c9d9e={}){const _0x12a0b4=this['editor']['plugins']['get']('Users')['me'],_0x510f59=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x231509,'join');this['_trackingSessionId']&&(_0x1c9d9e['trackingSessionId']=this['_trackingSessionId']);for(const _0x33fa8f of this['getSuggestions']())if(_0x33fa8f['author']['id']==_0x12a0b4['id']&&'insertion'==_0x33fa8f['type']&&_0x33fa8f['subType']==_0x231509&&sn(_0x33fa8f,_0x1c9d9e)&&(_0x510f59(_0x33fa8f['getRanges'](),_0x23b74f)||_0x510f59(_0x23b74f,_0x33fa8f['getRanges']()))){for(const _0xee02b1 of _0x23b74f)_0x33fa8f['addRange'](_0xee02b1);return _0x33fa8f;}for(const {suggestion:_0x5b457d,meta:_0x2a2cfc}of this['_findSuggestions'](_0x23b74f,'insertion')){if(!_0x2a2cfc['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2a2cfc['containsRangeInObject'])continue;if(!sn(_0x5b457d,_0x1c9d9e))continue;let _0x56be22=!0x0;for(const _0x255c01 of _0x5b457d['getRanges']())for(const _0x5d9c7f of _0x23b74f)if(!_0x255c01['containsRange'](_0x5d9c7f)){_0x56be22=!0x1;break;}if(_0x56be22)return _0x5b457d;}const _0x1e9854=_0x3f9e0f(),_0x58c230=_0x12a0b4['id'],_0xc8fb55='insertion:'+_0x231509,_0x232646=this['_setSuggestionData']({'id':_0x1e9854,'type':_0xc8fb55,'createdAt':new Date(),'authorId':_0x58c230,'attributes':_0x1c9d9e});for(const _0x27952e of _0x23b74f)this['_addSuggestionMarker'](_0xc8fb55,_0x1e9854,_0x58c230,_0x27952e,T['getMultiRangeId']());return _0x232646;}['markInlineFormat'](_0x2fba61,_0x559e7f,_0x4ab44e=null,_0x2ba585={}){if(_0x4ab44e=_0x4ab44e||Ht(_0x559e7f),_0x2fba61['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x2ba585['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x46a9ab=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4ab44e,'accept');return this['forceDefaultExecution'](()=>_0x46a9ab([_0x2fba61],_0x559e7f,_0x2ba585)),null;}const _0x549a33=this['editor']['plugins']['get']('Users')['me'],_0x3588b5=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5b78eb,meta:_0x4e750b}of this['_findSuggestions'](_0x2fba61,'insertion'))_0x4e750b['isOwn']&&!_0x4e750b['isInsideObject']&&_0x3588b5['push'](..._0x5b78eb['getRanges']());}const _0x97ea2f=function(_0x2997e8,_0x37e194){const _0x423d2f=[];for(const _0x35b4be of _0x37e194){const _0x3d07f7=_0x2997e8['getIntersection'](_0x35b4be);_0x3d07f7&&_0x423d2f['push'](_0x3d07f7);}return _0x423d2f;}(_0x2fba61,_0x3588b5),_0x54bf5b=function(_0x413c6e,_0xaa0a43){const _0x9f1576=[_0x413c6e];for(const _0x2c1980 of _0xaa0a43){let _0x4c25d5=0x0;for(;_0x4c25d5<_0x9f1576['length'];){const _0x31f746=_0x9f1576[_0x4c25d5]['getDifference'](_0x2c1980);_0x9f1576['splice'](_0x4c25d5,0x1,..._0x31f746),_0x4c25d5+=_0x31f746['length'];}}return _0x9f1576;}(_0x2fba61,_0x3588b5);_0x97ea2f['length']&&this['_model']['change'](()=>{for(const _0x1274b6 of _0x97ea2f){const _0x3390dc=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4ab44e,'accept');this['forceDefaultExecution'](()=>_0x3390dc([_0x1274b6],_0x559e7f,_0x2ba585));}});for(const _0x218996 of _0x54bf5b){let _0x2c05a9=null,_0x4b0ea2=_0x218996['start'],_0x184b76=_0x218996['end'];for(const {suggestion:_0x490409,meta:_0x30d86d}of this['_findSuggestions'](_0x218996,'formatInline')){if(!_0x30d86d['isOwn'])continue;if(_0x490409['subType']!=_0x4ab44e)continue;if(!sn(_0x490409,_0x2ba585))continue;const _0x36c950=_0x490409['getFirstRange']();if(_0x36c950['containsRange'](_0x218996,!0x0))return null;_0x4b0ea2=_0x4b0ea2['isBefore'](_0x36c950['start'])?_0x4b0ea2:_0x36c950['start'],_0x184b76=_0x184b76['isAfter'](_0x36c950['end'])?_0x184b76:_0x36c950['end'],_0x2c05a9?_0x36c950['start']['isBefore'](_0x2c05a9['getFirstRange']()['start'])?(_0x2c05a9['removeMarkers'](),_0x2c05a9=_0x490409):_0x490409['removeMarkers']():_0x2c05a9=_0x490409;}const _0x2ce9cb=this['_model']['createRange'](_0x4b0ea2,_0x184b76);if(_0x2c05a9)this['_setSuggestionRange'](_0x2c05a9,_0x2ce9cb);else{const _0x17a385=_0x3f9e0f(),_0x1ced45=_0x549a33['id'];this['_setSuggestionData']({'id':_0x17a385,'type':'formatInline:'+_0x4ab44e,'data':_0x559e7f,'createdAt':new Date(),'authorId':_0x1ced45,'attributes':_0x2ba585}),this['_addSuggestionMarker']('formatInline:'+_0x4ab44e,_0x17a385,_0x1ced45,_0x2ce9cb);}}return null;}['markBlockFormat'](_0x42c41b,_0x3b0ffe,_0x376630=[],_0x549c2c=null,_0x3dcd0c={}){_0x3b0ffe['formatGroupId']||(_0x3b0ffe['formatGroupId']=_0x3b0ffe['commandName']),_0x3b0ffe['multipleBlocks']=_0x42c41b['is']('range'),_0x549c2c=_0x549c2c||Ht(_0x3b0ffe);const _0x4bd67a=_0x376630['map'](_0x24e541=>tn(_0x24e541,this['_model'])),_0x38fd92=_0x42c41b['is']('range')?_0x42c41b:tn(_0x42c41b,this['_model']);if(this['_trackingSessionId']&&(_0x3dcd0c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3333ff=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x549c2c,'accept');return this['forceDefaultExecution'](()=>_0x3333ff([_0x38fd92],_0x3b0ffe,_0x3dcd0c)),null;}_0x4bd67a['push'](_0x38fd92);let _0x112bc4=!0x0;for(const _0xeead2 of _0x4bd67a)if(!this['_rangeIsInLocalUserInsertion'](_0xeead2)){_0x112bc4=!0x1;break;}if(_0x112bc4&&'always'!==this['_trackFormatChanges']){const _0x4b5ff0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x549c2c,'accept');return this['forceDefaultExecution'](()=>_0x4b5ff0([_0x38fd92],_0x3b0ffe,_0x3dcd0c)),null;}let _0x59bb45=null,_0x44a62f=_0x38fd92['start'],_0x15e455=_0x38fd92['end'];for(const {suggestion:_0x4b0d52,meta:_0x4f17d3}of this['_findSuggestions'](_0x38fd92,'formatBlock')){if(!_0x4f17d3['isOwn'])continue;if(_0x4f17d3['isNextTo']||_0x4f17d3['containsRangeInObject']||_0x4f17d3['isInsideObject'])continue;if(_0x4b0d52['data']['formatGroupId']!=_0x3b0ffe['formatGroupId'])continue;if(!sn(_0x4b0d52,_0x3dcd0c))continue;const _0x67d7eb=_0x4b0d52['getFirstRange']();if(_0x4b0d52['subType']==_0x549c2c){if(_0x67d7eb['containsRange'](_0x38fd92,!0x0))return null;_0x44a62f=_0x44a62f['isBefore'](_0x67d7eb['start'])?_0x44a62f:_0x67d7eb['start'],_0x15e455=_0x15e455['isAfter'](_0x67d7eb['end'])?_0x15e455:_0x67d7eb['end'],_0x59bb45?_0x67d7eb['start']['isBefore'](_0x59bb45['getFirstRange']()['start'])?(_0x59bb45['removeMarkers'](),_0x59bb45=_0x4b0d52):_0x4b0d52['removeMarkers']():_0x59bb45=_0x4b0d52;}else{const _0x24ac29=_0x38fd92['getIntersection'](_0x67d7eb);this['_cutOutSuggestionMarker'](_0x4b0d52,_0x24ac29);}}const _0x52fcab=this['editor']['plugins']['get']('Users')['me'],_0x1bd679=_0x3f9e0f(),_0x46a09b=_0x52fcab['id'];if(_0x59bb45)return this['_setSuggestionRange'](_0x59bb45,this['_model']['createRange'](_0x44a62f,_0x15e455)),_0x59bb45;{const _0xa7372d=this['_setSuggestionData']({'id':_0x1bd679,'type':'formatBlock:'+_0x549c2c,'data':_0x3b0ffe,'createdAt':new Date(),'authorId':_0x46a09b,'attributes':_0x3dcd0c});return this['_addSuggestionMarker']('formatBlock:'+_0x549c2c,_0x1bd679,_0x46a09b,this['_model']['createRange'](_0x44a62f,_0x15e455)),_0xa7372d;}}['markMultiRangeBlockFormat'](_0x3c0233,_0xec66c9,_0xe09cf2=[],_0x245dc5=null,_0x45448d={}){_0xec66c9['formatGroupId']||(_0xec66c9['formatGroupId']=_0xec66c9['commandName']);const _0x18953a=_0x3c0233[0x0];_0xec66c9['multipleBlocks']=_0x18953a['is']('range'),_0x245dc5=_0x245dc5||Ht(_0xec66c9);const _0x3bb7f3=_0xe09cf2['map'](_0x343f6e=>tn(_0x343f6e,this['_model'])),_0x452202=_0x18953a['is']('range')?_0x3c0233:_0x3c0233['map'](_0x46ae38=>tn(_0x46ae38,this['_model']));if(this['_trackingSessionId']&&(_0x45448d['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5e3649=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x245dc5,'accept');return this['forceDefaultExecution'](()=>_0x5e3649(_0x452202,_0xec66c9,_0x45448d)),null;}_0x3bb7f3['push'](..._0x452202);let _0x13a2ef=!0x0;for(const _0x5b13c3 of _0x3bb7f3)if(!this['_rangeIsInLocalUserInsertion'](_0x5b13c3)){_0x13a2ef=!0x1;break;}if(_0x13a2ef&&'always'!==this['_trackFormatChanges']){const _0x2747fe=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x245dc5,'accept');return this['forceDefaultExecution'](()=>_0x2747fe(_0x452202,_0xec66c9,_0x45448d)),null;}const _0xc36a27=this['editor']['plugins']['get']('Users')['me'];for(const _0x4bd422 of this['getSuggestions']()){const _0x1aff8f=_0x4bd422['data'];if(_0x4bd422['author']['id']!=_0xc36a27['id'])continue;if('formatBlock'!=_0x4bd422['type']||_0x1aff8f['formatGroupId']!=_0xec66c9['formatGroupId'])continue;if(!sn(_0x4bd422,_0x45448d))continue;const _0x1c8162=_0x4bd422['subType']==_0x245dc5;for(let _0x388e4c=0x0;_0x388e4c<_0x452202['length'];_0x388e4c++){const _0x11e139=_0x452202[_0x388e4c];for(const _0x4797b2 of _0x4bd422['getMarkers']()){const _0x56215f=_0x4797b2['getRange']();if(_0x11e139['isEqual'](_0x56215f)){_0x1c8162?(_0x452202['splice'](_0x388e4c,0x1),_0x388e4c--):_0x4bd422['removeMarker'](_0x4797b2['name']);break;}}}}if(0x0==_0x452202['length'])return null;const _0x464926=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x245dc5,'join');for(const _0x521dec of this['getSuggestions']()){const _0x4c8464=_0x521dec['data'];if(_0x521dec['author']['id']==_0xc36a27['id']&&('formatBlock'==_0x521dec['type']&&_0x4c8464['formatGroupId']==_0xec66c9['formatGroupId']&&_0x521dec['subType']==_0x245dc5&&sn(_0x521dec,_0x45448d)&&(_0x464926(_0x521dec['getRanges'](),_0x452202)||_0x464926(_0x452202,_0x521dec['getRanges']())))){for(const _0x2fe3ef of _0x452202)_0x521dec['addRange'](_0x2fe3ef);return _0x521dec;}}const _0x277904=_0x3f9e0f(),_0xd676eb=_0xc36a27['id'],_0x1da5f3='formatBlock:'+_0x245dc5,_0x474ad6=this['_setSuggestionData']({'id':_0x277904,'type':_0x1da5f3,'data':_0xec66c9,'createdAt':new Date(),'authorId':_0xd676eb,'attributes':_0x45448d});for(const _0x3f6186 of _0x452202)this['_addSuggestionMarker'](_0x1da5f3,_0x277904,_0xd676eb,_0x3f6186,T['getMultiRangeId']());return _0x474ad6;}['markDeletion'](_0x3136a8,_0xbd3eb3=null,_0x3efcb7={}){if(_0x3136a8['isCollapsed'])return null;const _0x11f12b=this['editor']['plugins']['get']('Users')['me'],_0x974df0=new _0x54bffc(_0x3136a8['start'],_0x3136a8['end']);this['_trackingSessionId']&&(_0x3efcb7['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x32cc2d,meta:_0x19b928}of this['_findSuggestions'](_0x974df0,'insertion'))if(_0x19b928['isOwn']&&!_0x19b928['isNextTo']){if(_0x32cc2d['isMultiRange']){const _0x98d07a=_0x32cc2d['getRanges']()['filter'](_0x276119=>'$graveyard'!=_0x276119['root']['rootName']);_0x98d07a['every'](_0x5341b8=>_0x974df0['containsRange'](_0x5341b8,!0x0))&&_0x32cc2d['discard']();if(_0x98d07a['some'](_0x351e50=>_0x351e50['containsRange'](_0x974df0,!0x0))){const _0x406c0e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xbd3eb3,'accept');return this['forceDefaultExecution'](()=>_0x406c0e([_0x974df0],null,_0x3efcb7)),null;}}else{const _0x117034=_0x974df0['getIntersection'](_0x32cc2d['getFirstRange']());null!==_0x117034&&_0x32cc2d['_onDiscard']([_0x117034],null,_0x3efcb7);}}if(_0x974df0['detach'](),_0x974df0['isCollapsed']||'$graveyard'==_0x974df0['root']['rootName'])return null;let _0x10071e=null,_0x2f2b4a=_0x974df0['start'],_0xb63a4e=_0x974df0['end'];const _0x33472a=this['_findSuggestions'](_0x974df0,'deletion');for(const {suggestion:_0x4cb5b5,meta:_0x410647}of _0x33472a){const _0x20755a=this['_model']['createRange'](_0x2f2b4a,_0xb63a4e);if(_0x410647['isOwn']&&(this['_mergeNestedSuggestions']||!_0x410647['containsRangeInObject']&&!_0x410647['isInsideObject'])){if(_0x4cb5b5['isMultiRange']){if(!sn(_0x4cb5b5,_0x3efcb7))continue;let _0x3e0c91=!0x0;for(const _0x438f1d of _0x4cb5b5['getRanges']()){if(_0x438f1d['containsRange'](_0x20755a,!0x0))return _0x4cb5b5;_0x20755a['containsRange'](_0x438f1d)||(_0x3e0c91=!0x1);}_0x3e0c91&&_0x4cb5b5['discard']();}else{const _0xa32925=_0x4cb5b5['getFirstRange']();if(_0xa32925['containsRange'](_0x20755a,!0x0))return _0x4cb5b5;if(!sn(_0x4cb5b5,_0x3efcb7)){_0x20755a['containsRange'](_0xa32925)?_0x4cb5b5['removeMarkers']():_0xa32925['containsPosition'](_0x2f2b4a)?_0x2f2b4a=_0xa32925['end']:_0xa32925['containsPosition'](_0xb63a4e)&&(_0xb63a4e=_0xa32925['start']);continue;}_0x2f2b4a=_0x2f2b4a['isBefore'](_0xa32925['start'])?_0x2f2b4a:_0xa32925['start'],_0xb63a4e=_0xb63a4e['isAfter'](_0xa32925['end'])?_0xb63a4e:_0xa32925['end'],_0x3efcb7=Object['assign']({},_0x4cb5b5['attributes']),_0x10071e?_0xa32925['start']['isBefore'](_0x10071e['getFirstRange']()['start'])?(_0x10071e['removeMarkers'](),_0x10071e=_0x4cb5b5):_0x4cb5b5['removeMarkers']():_0x10071e=_0x4cb5b5;}}}if(_0x10071e)return this['_setSuggestionRange'](_0x10071e,this['_model']['createRange'](_0x2f2b4a,_0xb63a4e)),_0x10071e;{const _0x334dee=_0x3f9e0f(),_0x32a466=this['_model']['createRange'](_0x2f2b4a,_0xb63a4e),_0x4eb3a1=_0x11f12b['id'],_0x487220=_0xbd3eb3?'deletion:'+_0xbd3eb3:'deletion',_0x5e4422=this['_setSuggestionData']({'id':_0x334dee,'type':_0x487220,'createdAt':new Date(),'authorId':_0x4eb3a1,'attributes':_0x3efcb7});return this['_addSuggestionMarker'](_0x487220,_0x334dee,_0x4eb3a1,_0x32a466),_0x5e4422;}}['markMultiRangeDeletion'](_0x3e7339,_0x101fca='multi',_0x5d17bb={}){const _0x87788a=this['editor']['plugins']['get']('Users')['me'],_0x16b8d7=_0x3e7339['map'](_0x307b08=>new _0x54bffc(_0x307b08['start'],_0x307b08['end'])),_0x255f59=new Set();this['_trackingSessionId']&&(_0x5d17bb['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x23f3e0,meta:_0xb342c2}of this['_findSuggestions'](_0x16b8d7,'insertion'))_0xb342c2['isOwn']&&!_0xb342c2['isNextTo']&&_0x255f59['add'](_0x23f3e0);for(const _0x274525 of _0x255f59)if(_0x274525['isMultiRange']){const _0x3150d7=_0x274525['getRanges']();(!_0x274525['attributes']||!_0x274525['attributes']['skipNestingCheck'])&&(_0x3150d7['every'](_0x88d95e=>_0x16b8d7['some'](_0x5ae346=>_0x5ae346['containsRange'](_0x88d95e,!0x0)))&&_0x274525['discard']());if(_0x16b8d7['every'](_0x113c7e=>_0x3150d7['some'](_0x449d3b=>_0x449d3b['containsRange'](_0x113c7e,!0x0)))){const _0x1faf1b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x101fca,'accept');return this['forceDefaultExecution'](()=>_0x1faf1b(_0x3e7339,null,_0x5d17bb)),null;}}else{const _0x40c932=_0x274525['getFirstRange']();_0x16b8d7['some'](_0xde87ff=>_0xde87ff['containsRange'](_0x40c932,!0x0))&&_0x274525['discard']();if(_0x16b8d7['every'](_0x442ecc=>_0x40c932['containsRange'](_0x442ecc,!0x0))){const _0x2f85cd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x101fca,'accept');return this['forceDefaultExecution'](()=>_0x2f85cd(_0x16b8d7,null,_0x5d17bb)),null;}}const _0x2f5f9d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x101fca,'join');let _0x36ff9e=null;for(const _0x1a60da of this['getSuggestions']())if(_0x1a60da['author']['id']==_0x87788a['id']&&_0x1a60da['isInContent']&&'deletion'==_0x1a60da['type']&&_0x1a60da['subType']==_0x101fca&&sn(_0x1a60da,_0x5d17bb)&&(_0x2f5f9d(_0x1a60da['getRanges'](),_0x16b8d7)||_0x2f5f9d(_0x16b8d7,_0x1a60da['getRanges']()))){if(_0x36ff9e){if(_0x1a60da['commentThread']&&_0x1a60da['commentThread']['length'])continue;for(const _0x52a714 of _0x1a60da['getRanges']())_0x36ff9e['isIntersectingWithRange'](_0x52a714)||_0x36ff9e['addRange'](_0x52a714);_0x1a60da['removeMarkers']();}else{_0x36ff9e=_0x1a60da;for(const _0x1c8296 of _0x16b8d7)_0x1a60da['isIntersectingWithRange'](_0x1c8296)||_0x1a60da['addRange'](_0x1c8296);}}if(_0x36ff9e)return _0x36ff9e;_0x255f59['clear']();for(const {suggestion:_0x352f25,meta:_0x389085}of this['_findSuggestions'](_0x16b8d7,'deletion'))_0x389085['isOwn']&&(this['_mergeNestedSuggestions']||!_0x389085['containsRangeInObject']&&!_0x389085['isInsideObject'])&&sn(_0x352f25,_0x5d17bb)&&_0x255f59['add'](_0x352f25);for(const _0x4e51a2 of _0x255f59){const _0x7ee56e=_0x4e51a2['getRanges']();if(!_0x5d17bb||!_0x5d17bb['skipNestingCheck']){if(_0x16b8d7['every'](_0x5e1158=>_0x7ee56e['some'](_0x181177=>_0x181177['containsRange'](_0x5e1158,!0x0))))return _0x4e51a2;}(!_0x4e51a2['attributes']||!_0x4e51a2['attributes']['skipNestingCheck'])&&(_0x7ee56e['every'](_0x11125b=>_0x16b8d7['some'](_0x485b5f=>_0x485b5f['containsRange'](_0x11125b,!0x0)))&&_0x4e51a2['discard']());}const _0x410123=_0x3f9e0f(),_0x373d0d=_0x87788a['id'],_0x528316='deletion:'+_0x101fca,_0xe6a4a8=this['_setSuggestionData']({'id':_0x410123,'type':_0x528316,'createdAt':new Date(),'authorId':_0x373d0d,'attributes':_0x5d17bb});for(const _0x8eb29 of _0x16b8d7)_0x8eb29['detach'](),_0x8eb29['isCollapsed']||'$graveyard'==_0x8eb29['root']['rootName']||this['_addSuggestionMarker'](_0x528316,_0x410123,_0x373d0d,_0x8eb29,T['getMultiRangeId']());return _0xe6a4a8;}['markAttributeChange'](_0x39759b,_0x11787e,_0x13bac6,_0x12a11e,_0x30cc9d){if(_0x39759b['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x27ca79=this['editor']['plugins']['get']('Users')['me']['id'],_0x570058=Array['from'](this['_suggestions']['values']())['filter'](_0x3b0dbc=>'attribute'==_0x3b0dbc['type']&&_0x3b0dbc['data']['key']==_0x11787e&&_0x3b0dbc['isIntersectingWithRange'](_0x39759b));if(this['_trackingSessionId']&&(_0x30cc9d['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x335569=this['_findSuggestions'](_0x39759b,'insertion')['filter'](({meta:_0x458c3e})=>_0x458c3e['isOwn']&&!_0x458c3e['isInsideObject']&&!_0x458c3e['isNextTo'])['map'](({suggestion:_0x5eff9})=>_0x5eff9);_0x570058['unshift'](..._0x335569);}const _0x3375b2=new Map([[_0x39759b,_0x13bac6]]);for(const _0x527c6b of _0x570058){const _0x14d049='attribute'==_0x527c6b['type']?_0x527c6b['data']['oldValue']:void 0x0,_0x49cfa4=_0x527c6b['getFirstRange'](),_0x10f44a=Array['from'](_0x3375b2['keys']())['find'](_0x2609da=>_0x2609da['isIntersecting'](_0x49cfa4));if(!_0x10f44a)continue;const _0x39a892=_0x10f44a['getDifference'](_0x49cfa4);this['_isBlockAttribute'](_0x11787e)&&'insertion'==_0x527c6b['type']&&0x0!=_0x39a892['length']||(_0x3375b2['delete'](_0x10f44a),_0x39a892['forEach'](_0x2aa13e=>{_0x3375b2['set'](_0x2aa13e,_0x13bac6);}),'insertion'!=_0x527c6b['type']&&_0x14d049!=_0x12a11e&&_0x3375b2['set'](_0x10f44a['getIntersection'](_0x49cfa4),_0x14d049));}const _0xecc7d2=[];for(const [_0x3a2c5c,_0x42c592]of _0x3375b2){const _0x5a7253=_0x3f9e0f(),_0x3a84cf={'key':_0x11787e,'oldValue':_0x42c592,'newValue':_0x12a11e};_0x11787e['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':_0x11787e});const _0x5bbd04=('attribute:'+(_0x11787e+'|'+Ht({'newValue':_0x12a11e})))['substring'](0x0,0x3c),_0x1ff2fd=this['_setSuggestionData']({'id':_0x5a7253,'type':_0x5bbd04,'data':_0x3a84cf,'createdAt':new Date(),'authorId':_0x27ca79,'attributes':_0x30cc9d});_0xecc7d2['push'](_0x1ff2fd),this['_addSuggestionMarker'](_0x5bbd04,_0x5a7253,_0x27ca79,_0x3a2c5c);}return _0xecc7d2;}['enableDefaultAttributesIntegration'](_0x1c84d2){this['enableCommand'](_0x1c84d2,(_0x20622c,..._0x2153f0)=>{this['recordAttributeChanges'](()=>{_0x20622c(..._0x2153f0);});});}['registerBlockAttribute'](_0x23b717){this['editor']['plugins']['get'](_0x2e3730)['registerBlockAttribute'](_0x23b717);}['registerInlineAttribute'](_0x3d7321){this['editor']['plugins']['get'](_0x2e3730)['registerInlineAttribute'](_0x3d7321);}['startTrackingSession'](_0x24593a){return this['_trackingSessionId']=void 0x0!==_0x24593a?_0x24593a:_0x3f9e0f(),this['_trackingSessionId'];}['_getAttributeKey'](_0x891d83){return'attribute'==_0x891d83['type']?_0x891d83['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x1bfc31){if(0x0==_0x1bfc31['length'])return;const _0x4ee744=this['editor'],_0x37302c=_0x4ee744['plugins']['get'](_0x2c0923),_0x247adc=[];_0x4ee744['model']['change'](_0x1c5cfe=>{for(let _0x3dfa29=0x0;_0x3dfa29<_0x1bfc31['length'];_0x3dfa29++){const _0x10f580=_0x1bfc31[_0x3dfa29];if(_0x10f580['baseVersion']=_0x4ee744['model']['document']['version'],_0x10f580['isDocumentOperation']=!0x0,_0x37302c['isMarkedRemoveOperation'](_0x10f580)){const _0x274528=_0x440ebc(_0x10f580['newRange'],_0x4ee744['model']);_0x247adc['unshift'](_0x54bffc['fromRange'](_0x274528));}else switch(_0x10f580['type']){case'rename':{const _0x288fa7=_0x10f580['oldName'],_0x2b052a=_0x10f580['newName'];if(_0x288fa7==_0x2b052a)break;_0x1c5cfe['batch']['addOperation'](_0x10f580),_0x4ee744['model']['applyOperation'](_0x10f580);const _0x690b6f='$elementName',_0x546202=_0x10f580['position'],_0xfc22ab=_0x4ee744['model']['createRange'](_0x546202,_0x4ee744['model']['createPositionAt'](_0x546202['nodeAfter'],'end'));this['markAttributeChange'](_0xfc22ab,_0x690b6f,_0x288fa7,_0x2b052a,{'groupId':_0x3f9e0f()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x3f6dce=_0x10f580['oldValue'],_0x3fe7b2=_0x10f580['newValue'];if(_0x3f6dce==_0x3fe7b2)break;_0x1c5cfe['batch']['addOperation'](_0x10f580),_0x4ee744['model']['applyOperation'](_0x10f580);const _0x9ae53=_0x10f580['key'];if(!this['_isRegisteredAttribute'](_0x9ae53))break;const _0x5cff48=_0x440ebc(_0x10f580['range'],_0x4ee744['model']);this['markAttributeChange'](_0x5cff48,_0x9ae53,_0x3f6dce,_0x3fe7b2,{'groupId':_0x3f9e0f()});break;}case'insert':{_0x1c5cfe['batch']['addOperation'](_0x10f580),_0x4ee744['model']['applyOperation'](_0x10f580);if(_0x1bfc31[_0x3dfa29+0x1]&&'move'==_0x1bfc31[_0x3dfa29+0x1]['type'])break;const _0x3dbd4d=_0x10f580['position'],_0x4acd2f=_0x10f580['howMany'],_0x102499=_0x440ebc(_0x4ee744['model']['createRange'](_0x3dbd4d,_0x3dbd4d['getShiftedBy'](_0x4acd2f)),_0x4ee744['model']);this['markInsertion'](_0x102499);break;}case'split':{_0x1c5cfe['batch']['addOperation'](_0x10f580),_0x4ee744['model']['applyOperation'](_0x10f580);const _0x57c9c9=_0x10f580['splitPosition'],_0x18c791=_0x10f580['moveTargetPosition'];this['markInsertion'](_0x4ee744['model']['createRange'](_0x57c9c9,_0x18c791));break;}case'move':case'remove':_0x1c5cfe['batch']['addOperation'](_0x10f580),_0x4ee744['model']['applyOperation'](_0x10f580);}}for(const _0x345dee of _0x247adc)_0x345dee['detach'](),this['markDeletion'](_0x345dee);});}['_setSuggestionRange'](_0x42add2,_0x8b3a38){const _0x4f77dd=_0x42add2['getFirstMarker']();this['_model']['change'](_0x67da86=>{_0x67da86['updateMarker'](_0x4f77dd,{'range':_0x8b3a38});});}['_addThreadToSuggestion'](_0x2830f3){const _0x37aa8d=_0x2830f3['id'],_0x3d4506=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x37aa8d)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3d4506,'threadId':_0x37aa8d,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x24ed8c=this['_commentsRepository']['getCommentThread'](_0x37aa8d);_0x24ed8c['unbind']('isRemovable'),_0x24ed8c['isRemovable']=!0x1,_0x2830f3['commentThread']=_0x24ed8c;}['_checkSuggestionCorrectness'](_0xfea1ed,_0xf6ba6d,_0x5d3869,_0x596dc0){if(_0xfea1ed['type']!=_0xf6ba6d||_0xfea1ed['subType']!=_0x5d3869||_0xfea1ed['creator']['id']!=_0x596dc0)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2d7099('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x555529,_0x2b59ef){const _0x4d7a5c=_0x555529['getFirstRange']();if(_0x2b59ef['isEqual'](_0x4d7a5c))_0x555529['removeMarkers']();else{if(_0x4d7a5c['containsRange'](_0x2b59ef)){const _0x3e7999=this['_model']['createPositionAt'](_0x2b59ef['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x555529,this['_model']['createRange'](_0x4d7a5c['start'],_0x3e7999));const _0x3dd759=_0x3f9e0f(),_0xb21d74=_0x555529['creator']['id'],_0x2c73b7=_0x555529['type']+':'+_0x555529['subType'];this['_setSuggestionData']({'id':_0x3dd759,'type':_0x2c73b7,'createdAt':new Date(),'authorId':_0xb21d74,'data':_0x555529['data'],'attributes':_0x555529['attributes']});const _0x33d8e9=this['_model']['createPositionAt'](_0x2b59ef['end']['parent'],'after'),_0x1ec6db=this['_model']['createRange'](_0x33d8e9,_0x4d7a5c['end']);this['_addSuggestionMarker'](_0x2c73b7,_0x3dd759,_0xb21d74,_0x1ec6db);}else{if(_0x4d7a5c['containsPosition'](_0x2b59ef['start'])){const _0x3e9905=this['_model']['createPositionAt'](_0x2b59ef['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x555529,this['_model']['createRange'](_0x4d7a5c['start'],_0x3e9905));}else{const _0x491837=this['_model']['createPositionAt'](_0x2b59ef['end']['parent'],'after');this['_setSuggestionRange'](_0x555529,this['_model']['createRange'](_0x491837,_0x4d7a5c['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x35eec7){for(const {suggestion:_0x4baf8e,meta:_0x257c77}of this['_findSuggestions'](_0x35eec7,'insertion')){if(!_0x257c77['isOwn'])continue;const _0x26378f=_0x4baf8e['getRanges']();for(const _0x3a4ffe of _0x26378f)if(!_0x35eec7['getDifference'](_0x3a4ffe)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4ce822){return this['editor']['plugins']['get']('Users')['getUser'](_0x4ce822);}['_getExternalAuthor'](_0x42d007){const _0x91281=this['editor']['plugins']['get']('Users'),_0x4e0f6e=_0x23e3f1('external:'+_0x42d007),_0x1b6fdd=_0x91281['getUser'](_0x4e0f6e);return _0x1b6fdd||_0x91281['addUser']({'id':_0x4e0f6e,'name':_0x42d007});}['_createSuggestion'](_0x412658,_0x45c14a,_0x5f1ea9,_0x3456c7,_0x1c49b6,_0x51585a){const _0x52a5ff=this['_getAuthorFromId'](_0x3456c7);if(!_0x52a5ff)throw new _0x2d7099('track-changes-user-not-found',this,{'authorId':_0x3456c7,'suggestionId':_0x5f1ea9});const _0x109fee=this['_suggestionFactory']['buildSuggestion'](_0x412658,_0x45c14a,_0x5f1ea9,_0x52a5ff,_0x1c49b6,_0x32eed7=>{this['_updateSuggestionData'](_0x5f1ea9,{'attributes':_0x32eed7});const _0x25b9a0=this['getSuggestion'](_0x5f1ea9);this['_joinWithAdjacentSuggestions'](new Set([_0x25b9a0])),this['_refreshSuggestionsChain'](new Set([_0x25b9a0]));},_0x51585a);return this['listenTo'](_0x109fee,'accept',()=>{this['_updateSuggestionData'](_0x5f1ea9,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x109fee,'discard',()=>{this['_updateSuggestionData'](_0x5f1ea9,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5f1ea9,_0x109fee),this['_suggestionState']['set'](_0x109fee,'notReady'),_0x109fee;}['_splitMarkerName'](_0x190869){return _0x349b55(_0x190869);}['_breakSuggestionMarker'](_0x10bdc0,_0x4c1038,_0x40c7e7){const _0x5cac39=_0x10bdc0['getFirstRange'](),_0x2c2fbc=_0x5cac39['start'],_0x1d3651=_0x5cac39['end'];this['_setSuggestionRange'](_0x10bdc0,this['_model']['createRange'](_0x2c2fbc,_0x4c1038));const _0x22739c=_0x3f9e0f(),_0x554759=_0x10bdc0['creator']['id'],_0x41667a=_0x10bdc0['type']+(_0x10bdc0['subType']?':'+_0x10bdc0['subType']:'');this['_setSuggestionData']({'id':_0x22739c,'type':_0x41667a,'createdAt':new Date(),'authorId':_0x554759,'originalSuggestionId':_0x10bdc0['_originalSuggestionId']||_0x10bdc0['id'],'attributes':_0x10bdc0['attributes'],'data':_0x10bdc0['data']});const _0x41347e=this['_getAttributeKey'](_0x10bdc0);('formatBlock'==_0x10bdc0['type']||_0x41347e&&this['_isBlockAttribute'](_0x41347e))&&(_0x40c7e7=this['_model']['createPositionBefore'](_0x40c7e7['parent'])),this['_addSuggestionMarker'](_0x41667a,_0x22739c,_0x554759,this['_model']['createRange'](_0x40c7e7,_0x1d3651));}['_findSuggestions'](_0x2a01a9,_0x1f43b0=null){const _0xf77217=[],_0x2e7728=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2a01a9)||(_0x2a01a9=[_0x2a01a9]);for(const _0x3c10a3 of this['getSuggestions']()){if(!_0x3c10a3['isInContent'])continue;if(_0x1f43b0&&_0x3c10a3['type']!=_0x1f43b0)continue;let _0x47be47=!0x1;for(const _0x490de2 of _0x3c10a3['getRanges']()){for(const _0x54a43e of _0x2a01a9){const _0x43fe58=_0x54a43e['start']['isEqual'](_0x490de2['end'])||_0x54a43e['end']['isEqual'](_0x490de2['start']);if(_0x43fe58||_0x54a43e['getIntersection'](_0x490de2)){const _0x23aba2=_0x54a43e['containsRange'](_0x490de2)&&zt(this['_model']['schema'],_0x490de2['start'],_0x54a43e),_0x2e23fe=_0x490de2['containsRange'](_0x54a43e)&&zt(this['_model']['schema'],_0x54a43e['start'],_0x490de2);_0xf77217['push']({'suggestion':_0x3c10a3,'meta':{'isOwn':_0x2e7728==_0x3c10a3['author'],'isNextTo':_0x43fe58,'isInsideObject':_0x23aba2,'containsRangeInObject':_0x2e23fe}}),_0x47be47=!0x0;break;}}if(_0x47be47)break;}}return _0xf77217;}['_addSuggestionMarker'](_0x29b9d1,_0x4ee517,_0x12fc0f,_0x379031,_0x3298f8){this['_model']['change'](_0x5edac3=>{let _0x417d5c='suggestion:'+_0x29b9d1+':'+_0x4ee517+':'+_0x12fc0f;_0x3298f8&&(_0x417d5c=_0x417d5c+':'+_0x3298f8),_0x5edac3['addMarker'](_0x417d5c,{'range':_0x379031,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x35d453){const _0x31e77b=_0x35d453['previous'],_0x37245b=_0x35d453['next'];_0x35d453['previous']=null,_0x35d453['next']=null,null!=_0x31e77b&&_0x31e77b['next']==_0x35d453&&(_0x31e77b['next']=_0x37245b),null!=_0x37245b&&_0x37245b['previous']==_0x35d453&&(_0x37245b['previous']=_0x31e77b),'ready'==this['_suggestionState']['get'](_0x35d453)&&(this['_suggestionState']['set'](_0x35d453,'removed'),this['fire']('suggestionUnloaded',_0x35d453,_0x31e77b,_0x37245b));}['_setSuggestionData'](_0x28ab12){const _0x3b106f=_0x28ab12['id'],_0xb515b4=this['addSuggestionData'](_0x28ab12);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2f7397=this['editor']['plugins']['get']('PendingActions'),_0x37a5ee=_0xb515b4['hasComments'],_0x160c99=_0xb515b4['subType']?_0xb515b4['type']+':'+_0xb515b4['subType']:_0xb515b4['type'],_0x3a05e5=this['editor']['locale'],_0x101a03=_0x2f7397['add'](o(_0x3a05e5,'PENDING_ACTION_SUGGESTION')),_0x53c80a={'id':_0x3b106f,'type':_0x160c99,'hasComments':_0x37a5ee,'data':_0x28ab12['data']||null,'originalSuggestionId':_0x28ab12['originalSuggestionId']||null,'attributes':_0xb515b4['attributes']};this['_adapter']['addSuggestion'](_0x53c80a)['then'](_0x387ac9=>{_0xb515b4['_saved']=!0x0,_0x2f7397['remove'](_0x101a03),_0x387ac9&&_0x387ac9['createdAt']&&(this['_suggestions']['get'](_0x3b106f)['createdAt']=_0x387ac9['createdAt']);})['catch'](_0x2a281d=>{throw _0x1fb013('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xb515b4['discard']();}),_0xb515b4['stopListening'](),this['_suggestions']['delete'](_0xb515b4['id']),this['_suggestionState']['delete'](_0xb515b4),_0x2a281d;});}return _0xb515b4;}['_isBlockAttribute'](_0x177b71){return this['editor']['plugins']['get'](_0x2e3730)['isBlockAttribute'](_0x177b71);}['_isInlineAttribute'](_0x185b92){return this['editor']['plugins']['get'](_0x2e3730)['isInlineAttribute'](_0x185b92);}['_updateSuggestionData'](_0x1e8059,_0x54efd8){const _0x473847=this['editor']['plugins']['get']('PendingActions'),_0x5d185a=this['getSuggestion'](_0x1e8059);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5d185a['_saved']){const _0x8cb3f5=_0x473847['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1e8059,_0x54efd8)['then'](()=>{_0x473847['remove'](_0x8cb3f5);});}else _0x5d185a['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1e8059,_0x54efd8);});}}['_getSuggestionData'](_0x1fde51){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2d7099('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1fde51);}['_handleNewSuggestionMarker'](_0x51ba60){const {id:_0x279d11,type:_0x4e4bff,subType:_0x57f62a,authorId:_0x4cea34}=this['_splitMarkerName'](_0x51ba60),_0x55f50b=this['_suggestions']['get'](_0x279d11)||this['_createSuggestion'](_0x4e4bff,_0x57f62a,_0x279d11,_0x4cea34,{});switch(this['_checkSuggestionCorrectness'](_0x55f50b,_0x4e4bff,_0x57f62a,_0x4cea34),this['_suggestionState']['get'](_0x55f50b)){case'notReady':this['_getSuggestionData'](_0x279d11)['then'](_0x278012=>{let _0x49ee21=Promise['resolve']();_0x278012['hasComments']&&(_0x49ee21=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x279d11})),_0x49ee21['then'](()=>{this['addSuggestionData'](_0x278012)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x55f50b,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x279d11,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x55f50b,'ready'),this['fire']('suggestionLoaded',_0x55f50b);break;case'ready':this['fire']('suggestionChanged',_0x55f50b);}return _0x55f50b['addMarkerName'](_0x51ba60),_0x55f50b;}['_refreshSuggestionsChain'](_0x1c1228){const _0x41946a=Array['from'](_0x1c1228),_0x2add37=_0x41946a['filter'](_0x490c63=>'attribute'==_0x490c63['type']);this['_refreshAttributeSuggestionsChain'](_0x2add37);const _0x488723=_0x41946a['filter'](_0x1ac5d4=>!_0x1ac5d4['isMultiRange']&&'attribute'!=_0x1ac5d4['type']),_0x5ecf9b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2dbdcb=>!_0x2dbdcb['isMultiRange']&&'attribute'!=_0x2dbdcb['type']),_0x2fe5e3=_0x5ecf9b['filter'](_0x5967fe=>!_0x1c1228['has'](_0x5967fe)),_0x510606=new Map(_0x5ecf9b['map'](_0x3ed610=>[_0x3ed610,this['_suggestionFactory']['getSuggestionCallback'](_0x3ed610['type'],_0x3ed610['subType'],'chain')])),_0x362fef=new Map(_0x5ecf9b['map'](_0x2b953a=>[_0x2b953a,_0x2b953a['getFirstRange']()])),_0x4a81f2=new Set(),_0x119dac=new Set();for(let _0xf7271a=0x0;_0xf7271a<_0x488723['length'];_0xf7271a++)_0x286ae9(_0x488723[_0xf7271a],_0x488723,_0xf7271a+0x1);for(let _0x21ad81=0x0;_0x21ad81<_0x488723['length'];_0x21ad81++)_0x286ae9(_0x488723[_0x21ad81],_0x2fe5e3,0x0);const _0x302d53=new Set();for(let _0x34f44a=0x0;_0x34f44a<_0x488723['length'];_0x34f44a++){const _0x6f697=_0x488723[_0x34f44a];!_0x119dac['has'](_0x6f697)&&_0x6f697['previous']&&(_0x302d53['add'](_0x6f697['previous']),_0x6f697['previous']['next']===_0x6f697&&(_0x6f697['previous']['next']=null),_0x6f697['previous']=null),!_0x4a81f2['has'](_0x6f697)&&_0x6f697['next']&&(_0x302d53['add'](_0x6f697['next']),_0x6f697['next']['previous']===_0x6f697&&(_0x6f697['next']['previous']=null),_0x6f697['next']=null);}function _0x286ae9(_0x1f4124,_0x20d9a6,_0x2cef81){for(let _0x20754a=_0x2cef81;_0x20754a<_0x20d9a6['length'];_0x20754a++){const _0x25e1c3=_0x12e4c3(_0x1f4124,_0x20d9a6[_0x20754a]);_0x25e1c3&&(_0x25e1c3[0x0]['next']=_0x25e1c3[0x1],_0x25e1c3[0x1]['previous']=_0x25e1c3[0x0],_0x4a81f2['add'](_0x25e1c3[0x0]),_0x119dac['add'](_0x25e1c3[0x1]));}}function _0x12e4c3(_0xbcf6ed,_0x4baea9){if(_0xbcf6ed['author']['id']!==_0x4baea9['author']['id'])return null;const _0x5bec25=_0x510606['get'](_0xbcf6ed)(_0xbcf6ed,_0x4baea9,_0x362fef['get'](_0xbcf6ed),_0x362fef['get'](_0x4baea9));if(!_0x5bec25)return null;return _0x510606['get'](_0x4baea9)(_0xbcf6ed,_0x4baea9,_0x362fef['get'](_0xbcf6ed),_0x362fef['get'](_0x4baea9))?_0x5bec25[0x1]['commentThread']&&_0x5bec25[0x1]['commentThread']['length']?null:_0x5bec25:null;}_0x302d53['size']&&this['_refreshSuggestionsChain'](_0x302d53);}['_refreshAttributeSuggestionsChain'](_0x15e97a){if(0x0==_0x15e97a['length'])return;const _0x57eaef=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x574d89=>'attribute'==_0x574d89['type']&&_0x574d89['_isDataLoaded']),_0x41d2cd=[],_0x31381e=new Map();for(const _0x454b68 of _0x57eaef){const _0x416ba9=_0x23e3f1(_0x454b68['attributes']);_0x31381e['has'](_0x416ba9)||(_0x31381e['set'](_0x416ba9,_0x41d2cd['length']),_0x41d2cd['push']([]));const _0x2fe153=_0x31381e['get'](_0x416ba9);_0x41d2cd[_0x2fe153]['push'](_0x454b68);}!(function(){_0x41d2cd['sort']((_0x54fa52,_0x41ab5a)=>{const _0x344569=_0x54fa52[0x0]['createdAt'],_0x36a509=_0x41ab5a[0x0]['createdAt'];return _0x344569==_0x36a509?_0x54fa52[0x0]['attributes']['groupId']<_0x41ab5a[0x0]['attributes']['groupId']?-0x1:0x1:_0x344569<_0x36a509?-0x1:0x1;});for(const _0x4435c3 of _0x41d2cd)_0x4435c3['sort']((_0x897bf1,_0x28ed32)=>_0x897bf1['id']<_0x28ed32['id']?-0x1:0x1);}());for(let _0x1fbe83=0x0;_0x1fbe83<_0x41d2cd['length'];_0x1fbe83++){if(0x0==_0x41d2cd[_0x1fbe83]['length'])continue;const _0x439fc2=[];for(let _0x44f304=_0x1fbe83+0x1;_0x44f304<_0x41d2cd['length'];_0x44f304++)0x0!=_0x41d2cd[_0x44f304]['length']&&_0x16c0c9(_0x41d2cd[_0x1fbe83],_0x41d2cd[_0x44f304])&&_0x439fc2['push'](_0x44f304);for(const _0x1485a9 of _0x439fc2)_0x41d2cd[_0x1fbe83]=_0x41d2cd[_0x1fbe83]['concat'](_0x41d2cd[_0x1485a9]),_0x41d2cd[_0x1485a9]=[];}for(const _0x7d23bf of _0x41d2cd)for(let _0x3d54ec=0x0;_0x3d54ec<_0x7d23bf['length'];_0x3d54ec++){const _0x4abc89=_0x7d23bf[_0x3d54ec+0x1]||null;_0x7d23bf[_0x3d54ec]['next']!==_0x4abc89&&(_0x7d23bf[_0x3d54ec]['next']=_0x4abc89);}for(const _0x31e5c3 of _0x41d2cd)for(let _0x5f2c31=0x0;_0x5f2c31<_0x31e5c3['length'];_0x5f2c31++){const _0x2d9a30=_0x31e5c3[_0x5f2c31-0x1]||null;_0x31e5c3[_0x5f2c31]['previous']!==_0x2d9a30&&(_0x31e5c3[_0x5f2c31]['previous']=_0x2d9a30);}function _0x16c0c9(_0x57b31a,_0x242db0){if(_0x57b31a[0x0]['attributes']['groupId']!==_0x242db0[0x0]['attributes']['groupId']&&_0x57b31a[0x0]['author']!==_0x242db0[0x0]['author'])return!0x1;if(!function(_0x5e133f,_0x220344){if(!_0x5e133f['hasComments']&&!_0x220344['hasComments'])return!0x0;if(_0x5e133f['hasComments']&&_0x220344['hasComments'])return!0x1;if(_0x5e133f['hasComments']&&_0x220344['createdAt']<_0x5e133f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x220344['hasComments']&&_0x5e133f['createdAt']<_0x220344['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x57b31a[0x0],_0x242db0[0x0]))return!0x1;const _0x156d43=Jt(_0x57b31a[0x0]['attributes'],['groupId','trackingSessionId']),_0x4acea4=Jt(_0x242db0[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x1dd4f8(_0x156d43,_0x4acea4))return!0x1;if(_0x57b31a[0x0]['attributes']['groupId']==_0x242db0[0x0]['attributes']['groupId'])return!0x0;if(_0x57b31a[0x0]['attributes']['trackingSessionId']!==_0x242db0[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x57b31a['every'](_0x57cdc6=>_0x242db0['some'](_0x2aa806=>_0x57cdc6['getFirstRange']()['isEqual'](_0x2aa806['getFirstRange']())))&&_0x242db0['every'](_0x3b19d1=>_0x57b31a['some'](_0x5a1662=>_0x3b19d1['getFirstRange']()['isEqual'](_0x5a1662['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x59292e){const _0x5d6856=Array['from'](_0x59292e),_0xab5174=this['getSuggestions']({'skipNotAttached':!0x0}),_0x27c5e6=_0xab5174['filter'](_0x5ac1a2=>!_0x59292e['has'](_0x5ac1a2)),_0x1782b0=new Map(_0x5d6856['map'](_0x45de8e=>[_0x45de8e,this['_suggestionFactory']['getSuggestionCallback'](_0x45de8e['type'],_0x45de8e['subType'],'join')])),_0x62bf62=new Map(_0xab5174['map'](_0x236c83=>[_0x236c83,_0x236c83['getRanges']()]));for(let _0x55075f=0x0;_0x55075f<_0x5d6856['length'];_0x55075f++){if(_0x16f967(this,_0x5d6856[_0x55075f],_0x5d6856,_0x55075f+0x1))return!0x0;}for(let _0x210853=0x0;_0x210853<_0x5d6856['length'];_0x210853++){if(_0x16f967(this,_0x5d6856[_0x210853],_0x27c5e6,0x0))return!0x0;}return!0x1;function _0x16f967(_0x595981,_0x7c38c9,_0x314e74,_0x56ea49){for(let _0x2adf7e=_0x56ea49;_0x2adf7e<_0x314e74['length'];_0x2adf7e++){const _0x13c4a9=_0x314e74[_0x2adf7e];if(_0x13c4a9['type']!==_0x7c38c9['type']||_0x13c4a9['author']['id']!==_0x7c38c9['author']['id']||_0x13c4a9['subType']!==_0x7c38c9['subType'])continue;if(!en(_0x7c38c9,_0x13c4a9))continue;if('attribute'==_0x7c38c9['type']&&_0x7c38c9['data']['oldValue']!=_0x13c4a9['data']['oldValue'])continue;if('attribute'==_0x7c38c9['type']&&_0x595981['_isBlockAttribute'](_0x7c38c9['data']['key']))continue;if('formatBlock'==_0x7c38c9['type']){const _0x45cc19=_0x595981['editor']['model'],_0x2e4a22=_0x7c38c9['getContainedElement']();if(_0x2e4a22&&(_0x45cc19['schema']['isObject'](_0x2e4a22)||_0x45cc19['schema']['isLimit'](_0x2e4a22)))continue;}const _0x31cce2=_0x1782b0['get'](_0x7c38c9),_0x15de2b=_0x62bf62['get'](_0x7c38c9),_0x412218=_0x62bf62['get'](_0x13c4a9),_0x380bc3=_0x7c38c9['commentThread']&&_0x7c38c9['commentThread']['length'],_0x4dc91b=_0x13c4a9['commentThread']&&_0x13c4a9['commentThread']['length'];if(!_0x380bc3&&_0x31cce2(_0x412218,_0x15de2b))return _0x595981['_joinSuggestions'](_0x13c4a9,_0x7c38c9),_0x62bf62['delete'](_0x7c38c9),!0x0;if(!_0x4dc91b&&_0x31cce2(_0x15de2b,_0x412218))return _0x595981['_joinSuggestions'](_0x7c38c9,_0x13c4a9),_0x62bf62['delete'](_0x13c4a9),!0x0;}return!0x1;}}['_joinSuggestions'](_0x518174,_0x5766ca){if(_0x518174['isMultiRange']){for(const _0x5daf37 of _0x5766ca['getRanges']())_0x518174['addRange'](_0x5daf37);}else{const _0x132806=_0x5766ca['getFirstRange']()['end'];this['_setSuggestionRange'](_0x518174,this['_model']['createRange'](_0x518174['getFirstRange']()['start'],_0x132806));}_0x5766ca['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5c8e2a,_0x570bb3,_0x235ebf){const _0x40feff=_0x5c8e2a['startsWith']('format')||_0x5c8e2a['startsWith']('attribute')?'FORMATTING':_0x5c8e2a['toUpperCase']();return o(this['editor']['locale'],_0x570bb3+'_'+_0x40feff+'_SUGGESTION_ANNOUNCEMENT',_0x235ebf);}['_initAriaMarkerChangeAnnouncements'](){const _0x8a89ca=this['editor'];if(!_0x8a89ca['ui'])return;const {ariaLiveAnnouncer:_0x5b10f5}=_0x8a89ca['ui'];_0x317569(this['_model'],({left:_0x1fb0f9,entered:_0x1ca476})=>{for(const _0x319cdc of _0x1fb0f9){const {group:_0x3000bc,type:_0x3a76db}=this['_splitMarkerName'](_0x319cdc['name']);if('suggestion'===_0x3000bc){_0x5b10f5['announce'](this['_getMarkerAnnouncementText'](_0x3a76db,'LEAVE'));break;}}for(const _0x246615 of _0x1ca476){const {group:_0x139963,type:_0x4c29f2}=this['_splitMarkerName'](_0x246615['name']);if('suggestion'===_0x139963){_0x5b10f5['announce'](this['_getMarkerAnnouncementText'](_0x4c29f2,'ENTER',_0x25c1b3(_0x50a83c)));break;}}});}['_processAttributeChanges'](_0x52d7ae){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3fb749=this['editor'],_0x451d0c=_0x3fb749['model']['document']['differ']['getChanges']();if(0x0==_0x451d0c['length'])return!0x1;const _0x15feaa=[],_0x2bf986=_0x451d0c['filter'](_0x48d588=>'attribute'==_0x48d588['type']),_0x3e09f5=_0x451d0c['filter'](_0x514104=>'insert'==_0x514104['type']&&'$text'!=_0x514104['name']),_0x4687a6=_0x451d0c['filter'](_0xe33f7e=>'remove'==_0xe33f7e['type']&&'$text'!=_0xe33f7e['name']);for(const _0x405004 of _0x2bf986)_0x15feaa['push']({'key':_0x405004['attributeKey'],'newValue':_0x405004['attributeNewValue'],'oldValue':_0x405004['attributeOldValue'],'range':Zt(_0x405004['range'],_0x3fb749['model'])});for(const _0x50e382 of _0x3e09f5){const _0x379e18=_0x4687a6['find'](_0x5e3d56=>_0x5e3d56['position']['isEqual'](_0x50e382['position']));_0x379e18&&_0x15feaa['push']({'key':m,'newValue':_0x50e382['name'],'oldValue':_0x379e18['name'],'range':_0x3fb749['model']['createRangeOn'](_0x50e382['position']['nodeAfter'])});}return 0x0!=_0x15feaa['length']&&this['_reduceExistingSuggestions'](_0x52d7ae,_0x15feaa);}['_processAttributeSuggestions'](_0x3d1629){let _0xaf8cc5=!0x1;const _0x519681=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5f2231=>_0x5f2231['data']['newRange']&&_0x5f2231['name']['startsWith']('suggestion:attribute:'));for(const _0x7f65ce of _0x519681){const {subType:_0x1938c2,id:_0x100bbd}=this['_splitMarkerName'](_0x7f65ce['name']),_0xc8e722=_0x1938c2['split']('|')[0x0];for(const _0x5bad76 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5bad76['id']!=_0x100bbd&&'attribute'==_0x5bad76['type']&&_0x5bad76['data']&&_0x5bad76['data']['key']==_0xc8e722&&_0x5bad76['getFirstRange']()['isIntersecting'](_0x7f65ce['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5bad76,_0x7f65ce['data']['newRange'],_0x3d1629),_0xaf8cc5=!0x0);}return _0xaf8cc5;}['recordAttributeChanges'](_0x3e5067){this['_recordAttributeSuggestions']=!0x0,_0x3e5067();}['_isRegisteredAttribute'](_0x446614){return this['editor']['plugins']['get'](_0x2e3730)['isRegisteredAttribute'](_0x446614);}['_reduceExistingSuggestions'](_0x1f21ea,_0x37f23b){if(0x0==_0x37f23b['length'])return!0x1;let _0x1fdf8e=!0x1;for(const _0x41b47d of _0x37f23b){const _0x56e997=this['_findSuggestions'](_0x41b47d['range'],'attribute')['filter'](_0x91b294=>!_0x91b294['meta']['isNextTo'])['map'](_0x343917=>_0x343917['suggestion']),_0x4e5109=_0x23e3f1({'newValue':_0x41b47d['newValue']});_0x56e997['filter'](_0x1615da=>{const [_0x3e21b7,_0x3dfa51]=_0x1615da['subType']['split']('|');return _0x3e21b7==_0x41b47d['key']&&_0x3dfa51!=_0x4e5109;})['forEach'](_0x254e63=>{this['_reduceSuggestionAttributeRange'](_0x254e63,_0x41b47d['range'],_0x1f21ea),_0x1fdf8e=!0x0;});}return _0x1fdf8e;}['_reduceSuggestionAttributeRange'](_0x89513b,_0x539b58,_0x2ee66f){const _0x449ca7=_0x89513b['getFirstRange']()['getDifference'](_0x539b58);0x0!==_0x449ca7['length']?0x1!==_0x449ca7['length']?this['_breakSuggestionMarker'](_0x89513b,_0x539b58['start'],_0x539b58['end']):this['_setSuggestionRange'](_0x89513b,_0x449ca7[0x0]):_0x2ee66f['removeMarker'](_0x89513b['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5b0668){this['_editor']=_0x5b0668,this['_model']=_0x5b0668['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4d035f,_0x3142b5,_0x2a61fd,_0x4d211c,_0x5ecca7,_0x21eab1,_0x5b278b){return new T(this['_model'],{'type':_0x4d035f,'subType':_0x3142b5,'id':_0x2a61fd,'originalSuggestionId':_0x5b278b,'author':_0x4d211c,'creator':_0x4d211c,'attributes':_0x5ecca7,'onAttributesChange':_0x21eab1,'onAccept':(..._0x33c1e0)=>this['getSuggestionCallback'](_0x4d035f,_0x3142b5,'accept')(..._0x33c1e0),'onDiscard':(..._0x2b026e)=>this['getSuggestionCallback'](_0x4d035f,_0x3142b5,'discard')(..._0x2b026e)});}['registerCustomCallback'](_0x28db47,_0x1b34ae,_0x424124,_0x596594){const _0x110a77=_0x28db47+':'+_0x1b34ae+':'+_0x424124;this['_customCallbacks']['set'](_0x110a77,_0x596594);}['getSuggestionCallback'](_0x3229f9,_0x2969de,_0x1eba4c){const _0x1bfcab=_0x3229f9+':'+_0x2969de+':'+_0x1eba4c;return this['_customCallbacks']['get'](_0x1bfcab)||this['_defaultCallbacks']['get'](_0x3229f9+':'+_0x1eba4c);}['_registerDefaultCallbacks'](){const _0x8ad9b=()=>!0x1,_0x56e1e3=_0x1d193d=>{_0x1d193d['sort']((_0x259372,_0x5296c)=>_0x259372['start']['isBefore'](_0x5296c['start'])?0x1:-0x1),this['_model']['change'](_0x55b63b=>{for(const _0x2686b6 of _0x1d193d){let _0x4e9a62;_0x4e9a62=_0x2686b6['end']['isAtEnd']&&_0x2686b6['end']['parent']==_0x2686b6['start']['nodeAfter']?_0x55b63b['createSelection'](_0x2686b6['start']['nodeAfter'],'on'):_0x55b63b['createSelection'](_0x2686b6),this['_model']['deleteContent'](_0x4e9a62,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x5942d0=(_0x24cfa0,_0x50fa80)=>{_0x50fa80&&this['_model']['change'](_0x1228b9=>{const {commandName:_0x319265,commandParams:_0x5bfbeb=[]}=_0x50fa80,_0x36223f=_0x24cfa0['map'](_0x2359d3=>(Kt(_0x2359d3)&&(_0x2359d3=this['_model']['createRange'](_0x2359d3['end'])),_0x2359d3))['filter'](_0x2d1e13=>'$graveyard'!==_0x2d1e13['root']['rootName']);if(_0x36223f['length']<0x1)return;const _0x168116=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x17b1d9=>_0x54bffc['fromRange'](_0x17b1d9));_0x1228b9['setSelection'](_0x36223f);for(const _0x444221 of this['_editor']['commands']['commands']())_0x444221['refresh']();_0x5bfbeb['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x319265,..._0x5bfbeb);const _0x79e4ef=_0x168116['filter'](_0x390df1=>'$graveyard'!=_0x390df1['root']['rootName']);_0x79e4ef['length']>0x0&&_0x1228b9['setSelection'](_0x79e4ef);for(const _0x5ab671 of _0x168116)_0x5ab671['detach']();});},_0x44e5b3=(_0x45ae1a,_0x24f05d)=>0x1==_0x45ae1a['length']&&0x1==_0x24f05d['length']&&_0x45ae1a[0x0]['end']['isEqual'](_0x24f05d[0x0]['start']),_0x400da9=(_0x262984,_0x49b61f,_0x58cb76,_0x8240d2)=>nn(_0x262984,_0x49b61f,_0x58cb76,_0x8240d2)?[_0x262984,_0x49b61f]:nn(_0x49b61f,_0x262984,_0x8240d2,_0x58cb76)?[_0x49b61f,_0x262984]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x8ad9b),this['_defaultCallbacks']['set']('insertion:discard',_0x56e1e3),this['_defaultCallbacks']['set']('insertion:join',_0x44e5b3),this['_defaultCallbacks']['set']('insertion:chain',_0x400da9),this['_defaultCallbacks']['set']('deletion:accept',_0x56e1e3),this['_defaultCallbacks']['set']('deletion:discard',_0x8ad9b),this['_defaultCallbacks']['set']('deletion:join',_0x44e5b3),this['_defaultCallbacks']['set']('deletion:chain',_0x400da9),this['_defaultCallbacks']['set']('formatInline:accept',_0x5942d0),this['_defaultCallbacks']['set']('formatInline:discard',_0x8ad9b),this['_defaultCallbacks']['set']('formatInline:join',_0x44e5b3),this['_defaultCallbacks']['set']('formatInline:chain',_0x8ad9b),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5942d0),this['_defaultCallbacks']['set']('formatBlock:discard',_0x8ad9b),this['_defaultCallbacks']['set']('formatBlock:join',_0x44e5b3),this['_defaultCallbacks']['set']('formatBlock:chain',_0x8ad9b),this['_defaultCallbacks']['set']('attribute:accept',_0x8ad9b),this['_defaultCallbacks']['set']('attribute:discard',(_0x63da15,_0x48b554)=>{if(!_0x48b554)return;const _0x43a660=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x26b094=>{if(_0x48b554['key']==m)for(const _0x19fac2 of _0x63da15){const _0x4c93de=_0x19fac2['start']['nodeAfter'],_0x4ee5b9=_0x48b554['oldValue'];_0x26b094['rename'](_0x4c93de,_0x4ee5b9);}else{if(_0x43a660['_isBlockAttribute'](_0x48b554['key'])){for(const _0x46dee7 of _0x63da15)void 0x0!==_0x48b554['oldValue']?_0x26b094['setAttribute'](_0x48b554['key'],_0x48b554['oldValue'],_0x46dee7['start']['nodeAfter']):_0x26b094['removeAttribute'](_0x48b554['key'],_0x46dee7['start']['nodeAfter']);}else{for(const _0x2d2a7a of _0x63da15)_0x48b554['oldValue']?_0x26b094['setAttribute'](_0x48b554['key'],_0x48b554['oldValue'],_0x2d2a7a):_0x26b094['removeAttribute'](_0x48b554['key'],_0x2d2a7a);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x44e5b3);}}function zt(_0x3e5078,_0x270f2b,_0x204d14){for(const _0x222984 of _0x270f2b['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x222984['root']==_0x222984)return!0x1;if(!_0x204d14['containsItem'](_0x222984))return!0x1;if(_0x3e5078['isObject'](_0x222984)||_0x3e5078['isLimit'](_0x222984))return!0x0;}return!0x1;}function Kt(_0x2cb3b8){return _0x2cb3b8['end']['parent']==_0x2cb3b8['start']['nodeAfter']&&_0x2cb3b8['end']['isAtStart'];}function Wt(_0x2fdc9d,_0x15159d,_0x226406,_0x14c1c6){const _0x26b715=_0x77bfe9=>!_0x77bfe9['item']['is']('$textProxy')&&!_0x14c1c6['isObject'](_0x77bfe9['item']),_0x25a630=_0x2fdc9d['start']['getLastMatchingPosition'](_0x26b715),_0xaf2438=_0x2fdc9d['end']['getLastMatchingPosition'](_0x26b715,{'direction':'backward'});return(!_0x2fdc9d['start']['isEqual'](_0x25a630)||!_0x2fdc9d['end']['isEqual'](_0xaf2438))&&(_0x25a630['isBefore'](_0xaf2438)?_0x226406['updateMarker'](_0x15159d,{'range':_0x226406['createRange'](_0x25a630,_0xaf2438)}):_0x226406['removeMarker'](_0x15159d),!0x0);}function Ht(_0x49363d){return _0x23e3f1(_0x49363d);}function Qt(_0x31476b){const _0x3e4a83=_0x31476b['start']['nodeAfter'];return _0x3e4a83&&_0x3e4a83['is']('element');}function Xt(_0x418670){return Kt(_0x418670)||function(_0x127ce3){return _0x127ce3['start']['parent']==_0x127ce3['end']['nodeBefore']&&_0x127ce3['start']['isAtEnd'];}(_0x418670);}function Yt(_0x23227f,_0x36d5d1){try{const _0x254737=_0x23227f['getRange']();for(const _0x3d2338 of _0x36d5d1)if(_0x23227f!==_0x3d2338&&_0x254737&&_0x254737['isIntersecting'](_0x3d2338['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x1d1190,_0x4536e9){return null==_0x1d1190['end']['nodeBefore']&&_0x1d1190['end']['parent']==_0x1d1190['start']['nodeAfter']?tn(_0x1d1190['start']['nodeAfter'],_0x4536e9):_0x1d1190;}function tn(_0x4f0de6,_0x1a83b1){const _0x2ecf8a=_0x1a83b1['schema']['isObject'](_0x4f0de6)||_0x1a83b1['schema']['isSelectable'](_0x4f0de6);return _0x1a83b1['createRange'](_0x1a83b1['createPositionAt'](_0x4f0de6,'before'),_0x2ecf8a?_0x1a83b1['createPositionAfter'](_0x4f0de6):_0x1a83b1['createPositionAt'](_0x4f0de6,'end'));}function nn(_0x1bc9d4,_0x46f1cc,_0x49f72e,_0x314583){return!!en(_0x1bc9d4,_0x46f1cc)&&_0x49f72e['end']['isEqual'](_0x314583['start']);}function en(_0x270e4f,_0x5ad1b1){if(!_0x270e4f['_isDataLoaded']||!_0x5ad1b1['_isDataLoaded'])return!0x1;const _0x54ecc4=new Set(Object['keys'](_0x270e4f['attributes'])),_0x36bfc8=new Set(Object['keys'](_0x5ad1b1['attributes']));if(_0x54ecc4['delete']('groupId'),_0x36bfc8['delete']('groupId'),0x0==_0x54ecc4['size']&&0x0==_0x36bfc8['size'])return!0x0;if(_0x54ecc4['size']!=_0x36bfc8['size'])return!0x1;const _0x31ba79={..._0x270e4f['attributes']},_0x3a323e={..._0x5ad1b1['attributes']};return delete _0x31ba79['groupId'],delete _0x3a323e['groupId'],JSON['stringify'](_0x31ba79)==JSON['stringify'](_0x3a323e);}function sn(_0x186498,_0x29a6f5){const _0x1ed2c7=on(_0x186498['attributes']),_0x42d1ab=on(_0x29a6f5);if(!_0x186498['_isDataLoaded'])return!0x1;for(const _0x417c49 of Object['keys'](_0x42d1ab))if(!_0x1dd4f8(_0x1ed2c7[_0x417c49],_0x42d1ab[_0x417c49]))return!0x1;return!0x0;}function on(_0x175ed1){const _0x33dcec=Object['assign']({},_0x175ed1);return delete _0x33dcec['skipNestingCheck'],delete _0x33dcec['tablePasteChainId'],_0x33dcec;}class pe extends/* #__PURE__ -- @preserve */
26
+ _0x4eddca(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3f98c3,_0x5d922a,_0x3a331b,_0x5e9a09){super(),this['model']=_0x5d922a,this['view']=_0x3a331b,this['commentThreadController']=_0x5e9a09,this['_editor']=_0x3f98c3,this['_acceptCommand']=_0x3f98c3['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3f98c3['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x495f90,_0x51cd6d)=>_0x495f90||_0x51cd6d),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5c271f=>_0x5c271f&&this['_editor']['model']['canEditAt'](_0x5d922a['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x19adae=>_0x19adae&&this['_editor']['model']['canEditAt'](_0x5d922a['getRanges']())),this['_pendingAction']=null,_0x3a331b['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3a331b,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3a331b,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3a331b,'change:isDirty',()=>{_0x3a331b['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 _0x42613c=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x42613c);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0xb1432{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x465764,_0x346cbb,_0x47ae8e,_0x247cd6){super(_0x465764),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x496091(_0x465764,o(_0x465764,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x346cbb['authoredAt']),this['bind']('authoredAt')['to'](_0x346cbb),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',_0x346cbb,'authoredAt',this,'descriptionParts',(_0x3a67ef,_0x5a042b,_0x5df051)=>{const _0x37f590=_0x5df051['map'](_0x181596=>ls(_0x181596['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3a67ef-0x1,_0x346cbb['author']['name'],_0x5a042b?_0x247cd6['formatDateTime'](_0x5a042b):'',new DOMParser()['parseFromString'](_0x37f590,'text/html')['body']['textContent']]);}),this['focusables']=new _0x19a77d(),this['focusTracker']=new _0x4e5baa(),this['keystrokes']=new _0x13447e(),this['focusCycler']=new _0x3c5699({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1fa1c3=>_0x1fa1c3['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x346cbb,this['_localUser']=_0x47ae8e,this['_config']=_0x247cd6,_0x247cd6['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x29cae7(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xa5f431}=this['_config'];this['commentsListView']=new _0xa5f431(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',_0xc9f02d=>_0xc9f02d+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x175ca6,_0x5e1e10)=>_0x175ca6||!!_0x5e1e10);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4d25fb}=this['_config'],_0x1a43c8=new _0x4d25fb(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x526d6e=_0x1a43c8['commentInputView'];return _0x1a43c8['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x526d6e,'value',(_0x4d6dbd,_0x4d301a,_0xe2b6c0)=>!!_0xe2b6c0||_0x4d6dbd&&!_0x4d301a),_0x526d6e['on']('submit',(_0x5eca71,_0x3b5bf2)=>{this['fire']('addComment',_0x3b5bf2),_0x526d6e['editor']['setData']('');}),_0x526d6e['on']('cancel',()=>this['focus']()),_0x526d6e['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1a43c8;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x2ff13e,_0x1ba16c,_0x16c74b,_0x42cdf2){super(_0x2ff13e,_0x1ba16c,_0x16c74b,_0x42cdf2),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x11388c=>_0x11388c&&_0x11388c[0x0]?_0x11388c[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x192ec1,_0x507227)=>{let _0x23f526='';for(const _0x292d4b of _0x192ec1)_0x23f526+='<p>'+ls(_0x292d4b['content'],_0x292d4b['color'])+'</p>';return _0x507227?_0x23f526:_0x1fe732(_0x23f526,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x42cdf2['SuggestionView'](_0x2ff13e,_0x1ba16c,{'formatDateTime':_0x42cdf2['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 _0x49807c=this['bindTemplate'],_0x531443=[this['suggestionView']];return this['commentsListView']&&_0x531443['push'](this['commentsListView']),this['commentThreadInputView']&&_0x531443['push'](this['commentThreadInputView']),_0x531443['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x49807c['if']('isActive','ck-suggestion-wrapper--active'),_0x49807c['to']('type',_0x449b2c=>'ck-suggestion-'+_0x449b2c),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':_0x49807c['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x531443};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0xb1432{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x488e82,_0x52994a,_0x2f512b){super(_0x488e82),this['_model']=_0x52994a,this['_config']=_0x2f512b,this['set']('description',''),this['bind']('authoredAt')['to'](_0x52994a),this['acceptButton']=this['_createButton'](o(_0x488e82,'Accept\x20suggestion'),_0x1f434f,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x488e82,'Discard\x20suggestion'),_0x4e1e17,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1348f6(_0x488e82,_0x52994a['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x19a77d([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4e5baa(),this['keystrokes']=new _0x13447e(),this['focusCycler']=new _0x3c5699({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x13d35b=>_0x13d35b['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x106e20=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x106e20['innerHTML']=this['description'],this['on']('change:description',(_0x31d468,_0x2e4b37,_0x5527d6)=>{_0x106e20['innerHTML']=_0x5527d6;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2a8177=this['bindTemplate'],_0x252583=[{'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':_0x2a8177['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2a8177['to']('authoredAt',_0x25bed0=>this['_config']['formatDateTime'](_0x25bed0))}]}]},{'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']&&_0x252583['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':_0x252583}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x937d2b,_0x364d0d,_0x2d4c2f,_0x1c4891,_0x3b3fc5){const _0x5bc8ce=new _0x26df0e(this['locale']);return _0x5bc8ce['set']({'label':_0x937d2b,'icon':_0x364d0d,'tooltip':!0x0,'tooltipPosition':_0x3b3fc5}),_0x5bc8ce['extendTemplate']({'attributes':{'class':_0x2d4c2f}}),_0x5bc8ce['on']('execute',()=>{this['fire'](_0x1c4891,this['_model']['id']);}),_0x5bc8ce;}['_setupKeyboardNavigation'](){const _0xc346e8=this['element'];this['keystrokes']['listenTo'](_0xc346e8);for(const _0x3fdc07 of this['focusables'])this['focusTracker']['add'](_0x3fdc07['element']),this['keystrokes']['listenTo'](_0x3fdc07['element']);this['keystrokes']['set']('enter',(_0x131621,_0x46c776)=>{_0xc346e8===_0x131621['target']&&(this['focusCycler']['focusFirst'](),_0x46c776());}),this['keystrokes']['set']('esc',(_0x166709,_0x536f07)=>{_0xc346e8!==_0x166709['target']&&(this['focus'](),_0x536f07());});}}class u extends _0xe64fa2{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x28b628,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xde99da){super(_0xde99da),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4f03a0=this['editor']['config'];_0x4f03a0['define']('trackChanges.SuggestionThreadView',fe),_0x4f03a0['define']('trackChanges.SuggestionView',we),_0x4f03a0['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4f03a0['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3aba48,_0x2507d6){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3a3152,_0x481ffc]of this['_handleControllerBuffer']){const _0x5f3ecc=this['_suggestionToController']['has'](_0x3a3152);_0x5f3ecc||_0x481ffc?_0x5f3ecc&&_0x481ffc&&this['_destroyController'](_0x3a3152):this['_initializeController'](_0x3a3152);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3aba48,_0x2507d6);}['init'](){const _0x55dde6=this['editor'],_0x14f738=_0x55dde6['plugins']['get']('TrackChangesEditing'),_0x1c843f=_0x55dde6['plugins']['get']('Annotations'),_0x441080=_0x55dde6['plugins']['get']('EditorAnnotations'),_0x588e6c=_0x55dde6['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x441080['addSourceCollector'](()=>{const _0x4aeabd=[];for(const [_0x1d4c4b,_0x46a377]of Array['from'](this['_suggestionToController'])){const _0x238b97=_0x1d4c4b['getAllAdjacentSuggestions'](),_0x2641f4=[];for(const _0x564f60 of _0x238b97){if(!_0x564f60['isInContent'])continue;if(_0x564f60['isMultiRange']){_0x2641f4['push'](..._0x564f60['getRanges']());continue;}const _0x68ef6b=_0x564f60['getFirstRange']();if(_0x2641f4['length']>0x0){const _0x9e3706=_0x2641f4[0x0]['getJoined'](_0x68ef6b);if(_0x9e3706){_0x2641f4[0x0]=_0x9e3706;continue;}}_0x2641f4['push'](_0x68ef6b);}_0x4aeabd['push']([_0x46a377['view'],_0x2641f4]);}return _0x4aeabd;}),this['listenTo'](_0x14f738,'suggestionLoaded',(_0x28e595,_0x2acd4d)=>{this['listenTo'](_0x2acd4d,'change:previous',(_0x51ec07,_0x1e0851,_0x1c0535,_0x1cf6b2)=>{_0x2acd4d['isInContent']&&(null==_0x1c0535?(this['_updateController'](_0x1cf6b2['head']),this['_handleSuggestionControllerDelayed'](_0x2acd4d,!0x1)):(this['_updateController'](_0x1c0535['head']),null==_0x1cf6b2&&this['_handleSuggestionControllerDelayed'](_0x2acd4d,!0x0)));}),null!==_0x2acd4d['previous']?this['_updateController'](_0x2acd4d['head']):this['_handleSuggestionControllerDelayed'](_0x2acd4d,!0x1);}),this['listenTo'](_0x14f738,'suggestionUnloaded',(_0x2428d3,_0x553d6b,_0x2aecf6)=>{this['stopListening'](_0x553d6b,'change:previous'),this['_handleControllerBuffer']['delete'](_0x553d6b),this['_suggestionToController']['has'](_0x553d6b)&&this['_destroyController'](_0x553d6b),_0x2aecf6&&this['_updateController'](_0x2aecf6['head']);}),this['listenTo'](_0x14f738,'suggestionChanged',(_0x3f5f25,_0x28f010)=>{this['_updateController'](_0x28f010);}),this['listenTo'](_0x1c843f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x588e6c,'addComment',(_0x193254,{threadId:_0x2973c4,isFromAdapter:_0x4ef481})=>{if(_0x4ef481||!_0x14f738['hasSuggestion'](_0x2973c4))return;const _0x323f74=_0x14f738['getSuggestion'](_0x2973c4);this['_suggestionToController']['get'](_0x323f74)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x170818=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x38b234;for(const _0x818cb5 in _0x170818){const _0x34dc32=_0x818cb5,_0x495610=_0x170818[_0x34dc32];if('trackChangesLicenseKeyValid'==_0x495610||'trackChangesLicenseKeyInvalid'==_0x495610||'trackChangesLicenseKeyExpired'==_0x495610||'trackChangesLicenseKeyDomainLimit'==_0x495610||'trackChangesLicenseKeyNotAllowed'==_0x495610||'trackChangesLicenseKeyEvaluationLimit'==_0x495610||'trackChangesLicenseKeyUsageLimit'==_0x495610){delete _0x170818[_0x34dc32],_0x38b234=_0x495610,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x38b234&&_0x170818['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x38b234&&_0x170818['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x38b234&&_0x170818['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x38b234&&_0x170818['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x38b234&&_0x170818['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x38b234&&_0x170818['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x2a1ab6){const _0x59c454=this['_suggestionToController']['get'](_0x2a1ab6);if(!_0x59c454)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x59c454['view'])||null;}['getSuggestionForAnnotation'](_0x405ff2){const _0x549e9e=this['_viewToController']['get'](_0x405ff2['innerView']);return _0x549e9e?_0x549e9e['model']:null;}['_refreshActiveMarkers'](){const _0x92f475=this['editor']['plugins']['get']('Annotations'),_0x53d015=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42a89b=Array['from'](_0x92f475['activeAnnotations'],_0x51146d=>_0x51146d['innerView'])['filter'](_0x4d043c=>this['_viewToController']['has'](_0x4d043c)),_0x45bfeb=[];for(const _0x50a459 of _0x42a89b){const _0x236780=this['_viewToController']['get'](_0x50a459)['model']['getAllAdjacentSuggestions']();_0x45bfeb['push'](..._0x236780['reduce']((_0x35bc38,_0x12ae01)=>[..._0x35bc38,..._0x12ae01['getMarkerNames']()],[]));}_0x53d015['activeMarkers']=_0x45bfeb;}['_addUIComponentsToFactory'](){const _0x44cdfa=this['editor'],_0x5aecda=_0x44cdfa['locale'],_0x4ac394=o(_0x5aecda,'Track\x20changes'),_0x4ffc15=new _0x381bd6([{'type':'switchbutton','model':new _0x1d8cca({'withText':!0x0,'isToggleable':!0x0,'label':_0x4ac394,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1d8cca({'withText':!0x0,'label':o(_0x5aecda,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1d8cca({'withText':!0x0,'label':o(_0x5aecda,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1d8cca({'withText':!0x0,'label':o(_0x5aecda,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1d8cca({'withText':!0x0,'label':o(_0x5aecda,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x44cdfa['plugins']['has']('TrackChangesPreview')&&_0x4ffc15['addMany']([{'type':'separator'},{'type':'button','model':new _0x1d8cca({'withText':!0x0,'label':o(_0x5aecda,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x17ace1 of _0x4ffc15)if(ke(_0x17ace1)){const _0x1aa08f=_0x44cdfa['commands']['get'](_0x17ace1['model']['commandName']);_0x17ace1['model']['bind']('isOn','isEnabled')['to'](_0x1aa08f,'value','isEnabled');}_0x44cdfa['ui']['componentFactory']['add']('trackChanges',_0x36ff1d=>this['_createToolbarButton'](_0x36ff1d,_0x4ffc15,_0x4ac394)),_0x44cdfa['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5e31b6=>this['_createMenuBarMenu'](_0x5e31b6,_0x4ffc15,_0x4ac394));}['_createToolbarButton'](_0x1c0168,_0x28729b,_0x138c45){const _0x41c095=_0x18900c(_0x1c0168,_0x5af1b8),_0x502067=this['editor']['commands']['get']('trackChanges');_0x41c095['buttonView']['set']({'tooltip':_0x138c45,'label':_0x138c45,'icon':_0x199585}),_0x41c095['buttonView']['bind']('isOn')['to'](_0x502067,'value'),_0x41c095['buttonView']['on']('execute',()=>{_0x502067['execute'](),this['editor']['editing']['view']['focus']();}),_0x5a4a0b(_0x41c095,_0x28729b,{'role':'menu'});const _0x12d372=[];for(const _0x3b820c of _0x28729b)ke(_0x3b820c)&&_0x12d372['push'](this['editor']['commands']['get'](_0x3b820c['model']['commandName']));const _0x27503d=_0x41c095['buttonView'];return _0x27503d['actionView']['unbind']('isEnabled'),_0x27503d['arrowView']['unbind']('isEnabled'),_0x27503d['actionView']['bind']('isEnabled')['to'](_0x502067,'isEnabled'),_0x27503d['arrowView']['bind']('isEnabled')['toMany'](_0x12d372,'isEnabled',(..._0x207c48)=>_0x207c48['some'](_0x9c7dc4=>_0x9c7dc4)),_0x41c095['on']('execute',_0x19669e=>{this['editor']['execute'](_0x19669e['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x41c095;}['_createMenuBarMenu'](_0x35f0ad,_0x245931,_0x26a8aa){const _0xdca503=new _0x180354(_0x35f0ad),_0x40ad88=this['editor']['commands']['get']('trackChanges');_0xdca503['buttonView']['set']({'label':_0x26a8aa,'icon':_0x199585});const _0x63078b=new _0x4376e9(_0x35f0ad);for(const _0x5c7302 of _0x245931){if('separator'==_0x5c7302['type']){_0x63078b['items']['add'](new _0x54fda7(_0x35f0ad));continue;}const _0x223598=new _0x4d41e1(_0x35f0ad,_0xdca503),_0x339c02=new _0x3a5fd1(_0x35f0ad),_0x2f2056=_0x5c7302['model'];_0x339c02['bind'](...Object['keys'](_0x2f2056))['to'](_0x2f2056),_0x339c02['delegate']('execute')['to'](_0xdca503),_0x339c02['on']('execute',()=>{this['editor']['execute'](_0x2f2056['commandName']),this['editor']['editing']['view']['focus']();}),_0x223598['children']['add'](_0x339c02),_0x63078b['items']['add'](_0x223598);}return _0xdca503['bind']('isEnabled')['to'](_0x40ad88,'isEnabled'),_0xdca503['panelView']['children']['add'](_0x63078b),_0xdca503;}['_initializeController'](_0x3c7e48){const _0x43c89d=this['editor'],_0x53b7d0=_0x43c89d['config'],_0x43721e=_0x43c89d['plugins']['get']('Annotations'),_0x59bc55=_0x43c89d['plugins']['get']('CommentsRepository'),_0x1aff40=_0x43c89d['plugins']['get']('EditorAnnotations'),_0x166c32=_0x43c89d['plugins']['get'](_0x28b628)['me'],_0x41229d=_0x53b7d0['get']('trackChanges')['SuggestionThreadView'],_0x56e476=_0x53b7d0['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4ff0ff,CommentThreadInputView:_0x301a52}=_0x43c89d['plugins']['get']('CommentsUI');let _0x4e2431,_0x3ed778,_0x2924f5;this['_annotationViews']['has'](_0x3c7e48['id'])?(_0x3ed778=this['_annotationViews']['get'](_0x3c7e48['id']),_0x4e2431=_0x3ed778['mainView']):(_0x4e2431=new _0x41229d(_0x43c89d['locale'],_0x3c7e48,_0x166c32,{'disableComments':this['_disableComments'],'editorConfig':{..._0x53b7d0['get']('comments.editorConfig'),'licenseKey':_0x53b7d0['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x53b7d0['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x53b7d0['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x53b7d0['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3dfccf(_0x53b7d0['get']('locale'),_0x43c89d['locale']),'CommentView':_0x53b7d0['get']('comments')['CommentView'],'CommentsListView':_0x4ff0ff,'CommentThreadInputView':_0x301a52,'SuggestionView':_0x56e476}),_0x4e2431['suggestionView']['acceptButton']['on']('execute',()=>{_0x43c89d['editing']['view']['focus']();}),_0x4e2431['suggestionView']['discardButton']['on']('execute',()=>{_0x43c89d['editing']['view']['focus']();}),_0x3ed778=_0x43721e['createAnnotationView'](this['editor']['locale'],_0x4e2431),_0x3ed778['bind']('isDirty')['to'](_0x4e2431,'isDirty'),_0x3ed778['bind']('length')['to'](_0x4e2431),_0x3ed778['bind']('type')['to'](_0x4e2431,'type',_0x16dd3c=>'suggestion-'+_0x16dd3c),_0x4e2431['on']('escape',()=>{_0x2924f5['fire']('escape');}),this['_annotationViews']['set'](_0x3c7e48['id'],_0x3ed778));const _0x11db22=_0x59bc55['createCommentThreadController'](_0x3c7e48['commentThread'],_0x4e2431),_0x39bd1b=new pe(_0x43c89d,_0x3c7e48,_0x4e2431,_0x11db22),_0x348013=_0x3c7e48['getAllAdjacentSuggestions']()['filter'](_0x33cdc5=>_0x33cdc5['isInContent']);_0x4e2431['descriptionParts']=_0x43c89d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x348013),this['_suggestionToController']['set'](_0x3c7e48,_0x39bd1b),this['_viewToController']['set'](_0x4e2431,_0x39bd1b);const _0x3a871b=()=>{const _0x46fcf3=[],_0x3f7b81=_0x3c7e48['getAllAdjacentSuggestions']()['filter'](_0x3bf8f1=>_0x3bf8f1['isInContent']);for(const _0x2a6fd0 of _0x3f7b81)_0x46fcf3['push'](..._0x2a6fd0['getMarkers']());return _0x65496a(_0x43c89d['editing'],_0x46fcf3);};_0x2924f5=_0x43721e['createAnnotation']({'view':_0x3ed778,'target':_0x3a871b,'type':()=>'suggestion-'+_0x39bd1b['view']['type'],'isVisible':!!_0x3a871b()}),_0x59bc55['_bindAnnotationToEditors'](_0x4e2431,_0x2924f5),_0x43721e['add'](_0x2924f5),_0x1aff40['registerAnnotation'](_0x2924f5);}['_destroyController'](_0x506121){const _0x547492=this['editor']['plugins']['get']('CommentsRepository'),_0x7e2c16=this['editor']['plugins']['get']('Annotations'),_0x13450c=this['_suggestionToController']['get'](_0x506121),_0x353014=_0x13450c['view'],_0x4da36e=_0x7e2c16['getByInnerView'](_0x353014);_0x547492['_unbindEditors'](_0x353014),_0x4da36e&&_0x7e2c16['remove'](_0x4da36e),this['_suggestionToController']['delete'](_0x506121),this['_viewToController']['delete'](_0x353014),_0x13450c['destroy']();}['_updateController'](_0x3efc97){if(!_0x3efc97['isInContent']||!this['_suggestionToController']['has'](_0x3efc97))return;const _0x544d15=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3dd04a=this['_suggestionToController']['get'](_0x3efc97),_0x45f92e=_0x3efc97['getAllAdjacentSuggestions']();_0x3dd04a['view']['descriptionParts']=_0x544d15['descriptionFactory']['getDescriptions'](_0x45f92e);}['destroy'](){for(const _0x1b4462 of this['_suggestionToController']['keys']())this['_destroyController'](_0x1b4462);for(const _0x3ded07 of this['_annotationViews']['values']())_0x3ded07['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x43a082){return'model'in _0x43a082;}class Ne extends _0xe64fa2{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x5a9659){this['editor']['plugins']['get'](d)['adapter']=_0x5a9659;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x5615c7){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x5615c7);}['getSuggestions']({skipNotAttached:_0x309637=!0x1,toJSON:_0x3f98e4=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x309637,'toJSON':_0x3f98e4});}['getSuggestion'](_0x12e88a){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x12e88a);}}const p=['Pagination'];class re extends _0xe64fa2{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x248184=this['editor'];if(_0x248184['config']['define']('trackChangesData.editorCreator',_0x221865=>{const _0x283989=_0x248184['model']['document']['getRootNames']()['reduce']((_0x443446,_0x5562f1)=>(_0x443446[_0x5562f1]='',_0x443446),{});return _0x248184['constructor']['create'](_0x283989,_0x221865);}),'function'!=typeof _0x248184['config']['get']('trackChangesData')['editorCreator'])throw new _0x2d7099('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x8fd8f6){return P(this['editor'],!0x0,_0x8fd8f6);}['getDataWithDiscardedSuggestions'](_0x5306ba){return P(this['editor'],!0x1,_0x5306ba);}}class Fe extends _0xe64fa2{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5771ea){function _0x56353(_0xb450f3){return _0xb450f3['map'](_0x2f9329=>String['fromCharCode'](_0x2f9329))['join']('');}super(_0x5771ea),this['result']='end',_0x5771ea[_0x56353([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x56353([0x76,0x69,0x65,0x77])][_0x56353([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x56353([0x61,0x75,0x74,0x6f]),_0x5771ea[_0x56353([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x56353([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x56353([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x56353([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x56353([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 De(_0x70599d){return void 0x0!==_0x70599d['getRootsAttributes'];}async function P(_0x4e7c13,_0x274c9b,_0x30e125){const _0x183c3d=_0x59a2ca(_0x4e7c13,p);_0x183c3d['plugins']['push'](d,Fe),_0x183c3d['rootsAttributes']=De(_0x4e7c13)?_0x4e7c13['getRootsAttributes']():void 0x0;const _0x27d6f0=document['createDocumentFragment'](),_0x1dc34c=_0x4e7c13['config']['get']('trackChangesData')['editorCreator'],_0x184429=await _0x1dc34c(_0x183c3d,()=>function(_0x34befa){const _0x586f5c=document['createElement']('div');return _0x34befa['appendChild'](_0x586f5c),_0x586f5c;}(_0x27d6f0));!function(_0x120296,_0x11a405){const _0x26daad=_0x120296['model']['document']['getRootNames']()['reduce']((_0xa934ab,_0xcb74c4)=>(_0xa934ab[_0xcb74c4]=_0x120296['data']['get']({'rootName':_0xcb74c4}),_0xa934ab),{}),_0x3de1d5=_0x120296['plugins']['get']('Users')['users']['map'](_0x355417=>({'id':_0x355417['id'],'name':_0x355417['name']})),_0x4b0f03=_0x120296['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x58f7c4=_0x120296['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x496763=_0x11a405['plugins']['get']('Users'),_0x1fe6eb=_0x11a405['plugins']['get']('TrackChangesEditing'),_0x4a1ae3=_0x11a405['plugins']['get']('CommentsRepository');for(const _0x356f12 of _0x4a1ae3['getCommentThreads']())_0x356f12['remove']();for(const _0x51b112 of _0x3de1d5)_0x496763['getUser'](_0x51b112['id'])||_0x496763['addUser'](_0x51b112);_0x496763['me']||_0x496763['useAnonymousUser']();for(const _0x143a72 of _0x58f7c4)_0x4a1ae3['addCommentThread'](_0x143a72);for(const _0x494957 of _0x4b0f03)_0x1fe6eb['addSuggestionData'](_0x494957);_0x11a405['data']['set'](_0x26daad);}(_0x4e7c13,_0x184429),_0x184429['execute'](_0x274c9b?'acceptAllSuggestions':'discardAllSuggestions');const _0x2c5694=De(_0x184429)?_0x184429['getFullData'](_0x30e125):_0x184429['data']['get'](_0x30e125);return await _0x184429['destroy'](),_0x2c5694;}class Me extends _0xb1432{['options'];constructor(_0x13136b,_0x356ea1){super(_0x13136b),this['options']=_0x356ea1,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'](_0x242ba0,_0x30f301){if(!this['element'])return;const _0x5cbed0=[];for(const [_0x1baa7c,_0x2123db]of _0x242ba0){const _0x271ed7=document['createElement']('div');_0x271ed7['setAttribute']('data-ck-root-name',_0x1baa7c),_0x271ed7['className']=_0x2123db['classes']+'\x20ck-track-changes-preview__root-container',_0x271ed7['innerHTML']=_0x2123db['content'],_0x5cbed0['push'](_0x271ed7);}_0x30f301(this['element'],_0x5cbed0),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x1a4a5{constructor(_0x3d3cec){super(_0x3d3cec),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x13b10e=this['editor'],_0x3ebc35=_0x13b10e['locale'],_0x363356=_0x13b10e['plugins']['get']('Dialog');let _0x4853a3;const _0x14c8fb=function(_0x581994){const _0x3971ca={};if('editables'in _0x581994['ui']['view']){for(const [_0x5b35e9,_0x50e1ff]of Object['entries'](_0x581994['ui']['view']['editables']))_0x3971ca[_0x5b35e9]=_0x50e1ff['element'];}else _0x3971ca[_0x581994['model']['document']['getRootNames']()[0x0]]=_0x581994['ui']['view']['editable']['element'];return _0x3971ca;}(_0x13b10e),_0x4e9716=function(_0x48711b){let _0x419ca7=0x0;for(const _0x356c0d of Object['values'](_0x48711b))_0x419ca7=Math['max'](_0x419ca7,_0x356c0d['getBoundingClientRect']()['width']);let _0x5bdecc=0x0;for(const _0x5be98c of Object['values'](_0x48711b))_0x5bdecc+=_0x5be98c['getBoundingClientRect']()['height'];const _0x18e978=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2987d9=Math['min'](_0x5bdecc,_0x18e978);return{'width':_0x419ca7,'height':_0x2987d9};}(_0x14c8fb);_0x363356['show']({'id':'finalContentPreview','title':o(_0x3ebc35,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x3ebc35,{'dialogRects':_0x4e9716}),'onHide':()=>{_0x4853a3['detachFromDom']();},'onShow':()=>{_0x13b10e['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x9aabc9=>{const _0x19d219=this['_standarizeRootsData'](_0x9aabc9,_0x13b10e,_0x14c8fb);_0x363356['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x19d219,_0x13b10e['config']['get']('trackChanges.preview.renderFunction'));}),_0x4853a3=new _0x55ef78(_0x3ebc35,[_0x363356['view']]),_0x4853a3['attachToDom'](),_0x4853a3['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x13b10e['once']('destroy',()=>{_0x4853a3['detachFromDom']();});const _0x161fa2=_0x363356['view']['headerView']['class'];_0x363356['view']['headerView']['class']=_0x161fa2?_0x161fa2+'\x20ck-reset_all':'ck-reset_all',_0x363356['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x363356['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2489b6=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x296808=_0x2489b6['previewMode'],_0x1fff6e={};if('$labels'===_0x296808){for(const _0x4522b6 of _0x2489b6['getMergeFieldsIds']())_0x1fff6e[_0x4522b6]=_0x2489b6['getLabel'](_0x4522b6)||_0x4522b6;}else{const _0x1f08d9='$defaultValues'===_0x296808?_0x2489b6['getDefaultValues']():_0x2489b6['getDataSetValues'](_0x296808,!0x0);for(const _0x262259 of Object['entries'](_0x1f08d9)){const [_0x56cdb2,_0x4b332c]=_0x262259;_0x1fff6e[_0x56cdb2]=null!==_0x4b332c?_0x4b332c:_0x2489b6['getLabel'](_0x56cdb2)||_0x56cdb2;}}return{'mergeFieldsData':_0x1fff6e};}['_standarizeRootsData'](_0x5d65af,_0x1ca3ac,_0x1d75a2){let _0x32591b;if('string'==typeof _0x5d65af){const _0x16bdd0=_0x1ca3ac['model']['document']['getRootNames']()[0x0];_0x32591b={[_0x16bdd0]:_0x5d65af};}else _0x32591b=_0x5d65af;const _0x270004=this['_fixMediaEmbeds'](_0x32591b,_0x1ca3ac),_0x160265=function(_0x214b5e,_0x1489e5){for(const [_0x283737,_0x33a099]of _0x214b5e)_0x33a099['classes']=_0x1489e5[_0x283737]['classList']['value']['replace']('ck-focused','');return _0x214b5e;}(this['_sortRoots'](_0x1ca3ac)['reduce']((_0x57b318,_0x4aa25e)=>(_0x57b318['push']([_0x4aa25e,{'content':_0x270004[_0x4aa25e],'classes':''}]),_0x57b318),[]),_0x1d75a2);return _0x160265;}['_fixMediaEmbeds'](_0x9eba44,_0x648532){if(!_0x648532['plugins']['has']('MediaEmbedEditing'))return _0x9eba44;const _0x4c1b23=_0x648532['plugins']['get']('MediaEmbedEditing');for(const [_0x445077,_0x1644a6]of Object['entries'](_0x9eba44)){const _0x42adc5=document['createElement']('div');_0x42adc5['innerHTML']=_0x1644a6,(_0x42adc5['querySelectorAll']('figure.media')['forEach'](_0xb88f1e=>{const _0x1856d4=_0xb88f1e['querySelector']('oembed');if(_0x1856d4){const _0x19faff=_0x1856d4['getAttribute']('url');if(_0x19faff){const _0xfee3ba=_0x4c1b23['registry']['getMediaViewElement'](new _0x302369(_0x648532['editing']['view']['document']),_0x19faff,{'elementName':'','renderForEditingView':!0x0}),_0x3ee249=document['createElement']('div');_0x3ee249['classList']['add']('ck-media__wrapper'),_0xfee3ba['render'](_0x3ee249,_0x648532['editing']['view']['domConverter']),_0x1856d4['replaceWith'](_0x3ee249);}}}),_0x9eba44[_0x445077]=_0x42adc5['innerHTML']);}return _0x9eba44;}['_sortRoots'](_0x2758e1){if(!function(_0x2dcea4){return void 0x0!==_0x2dcea4['getRootsAttributes'];}(_0x2758e1))return _0x2758e1['model']['document']['getRootNames']();const _0x477bca=[],_0x5baa0d=new Map();for(const _0x500c03 of _0x2758e1['model']['document']['getRootNames']()){const _0x152f32=_0x2758e1['editing']['view']['getDomRoot'](_0x500c03)['getClientRects']()['item'](0x0);_0x477bca['push'](_0x500c03),_0x5baa0d['set'](_0x500c03,_0x152f32);}return _0x477bca['sort']((_0x3ea1e7,_0x403277)=>{const _0x13bfc5=_0x5baa0d['get'](_0x3ea1e7),_0x435a23=_0x5baa0d['get'](_0x403277);return _0x13bfc5['y']-_0x435a23['y']||_0x13bfc5['x']-_0x435a23['x'];}),_0x477bca;}}class Ue extends _0xe64fa2{static get['requires'](){return[re,_0x51c9c9];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x32e1f7){super(_0x32e1f7),_0x32e1f7['commands']['add']('previewFinalContent',new te(this['editor'])),_0x32e1f7['config']['define']('trackChanges.preview.renderFunction',(_0x5b9334,_0x315198)=>{for(const _0x2eabef of _0x315198)_0x5b9334['appendChild'](_0x2eabef);});}}export{O as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,x as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,R as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,E as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,B as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};