@ckeditor/ckeditor5-track-changes 46.0.1-alpha.10 → 46.0.1-alpha.11

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 _0x5be447,Plugin as _0x8725f3,PendingActions as _0x5d7386}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4fc565,ObservableMixin as _0x3c38f4,uid as _0xd0f9be,priorities as _0x4c5029,insertToPriorityArray as _0xcfcfef,toArray as _0x2a699c,logWarning as _0x40102e,getEnvKeystrokeText as _0x17d6f8,FocusTracker as _0x420794,KeystrokeHandler as _0x23ba89,Collection as _0x36cae3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x4a712b,IconCancel as _0x550f39,IconTrackChanges as _0x23ec22}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x13ed01,View as _0x82070,ViewCollection as _0x3bbed4,FocusCycler as _0x49c277,UIModel as _0x1cf42f,createDropdown as _0x92968c,SplitButtonView as _0x326f58,addListToDropdown as _0x305f68,MenuBarMenuView as _0x106e9a,MenuBarMenuListView as _0x117bf8,ListSeparatorView as _0x133aa6,MenuBarMenuListItemView as _0x1e07cc,MenuBarMenuListItemButtonView as _0x360cd2,BodyCollection as _0x21b6d8,Dialog as _0x35058c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x5c3456,hashObject as _0xc7d82c,surroundingMarkersDetector as _0x102e1c,FOCUS_ANNOTATION_KEYSTROKE as _0x2534da,AriaDescriptionView as _0x33c388,setupThreadKeyboardNavigation as _0x19ab60,trimHtml as _0xcd9997,UserView as _0x5a8aec,LateFocusButtonView as _0x2caa7c,getDateTimeFormatter as _0x54739e,getAllMarkersDomElementsSorted as _0x198ca2,sanitizeEditorConfig as _0x13b2d3}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x32d25f,ModelLiveRange as _0x3e3f9b,ModelLivePosition as _0x5ebc95,ViewDowncastWriter as _0xe495ac}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x5107fe,toWidget as _0x6e93eb}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x14f8f8,set as _0x10efcf,isEqual as _0x1314a1,unset as _0x54060d,omit as Ut}from'es-toolkit/compat';import{Delete as _0x1eb864,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x33a875}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x24f075}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x5be447{['_enabledCommands'];constructor(_0x335022,_0x4a4733){super(_0x335022),this['_enabledCommands']=_0x4a4733,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 _0x407677 of this['editor']['commands']['commands']())_0x407677['affectsData']&&!this['_enabledCommands']['has'](_0x407677)&&_0x407677['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1c425a of this['editor']['commands']['commands']())_0x1c425a['affectsData']&&!this['_enabledCommands']['has'](_0x1c425a)&&_0x1c425a['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x5be447{['_suggestions'];constructor(_0x3df98b,_0x23f211){super(_0x3df98b),this['_suggestions']=_0x23f211,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x24cd30){const _0x38e803=this['_suggestions']['get'](_0x24cd30);if(!_0x38e803)throw new _0x4fc565('track-changes-accept-suggestion-not-found',this);const _0x1ee177=_0x38e803['getRanges']();this['editor']['model']['canEditAt'](_0x1ee177)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x38e803);}}class $ extends _0x5be447{['_suggestions'];constructor(_0x3aa8bd,_0xaf85f9){super(_0x3aa8bd),this['_suggestions']=_0xaf85f9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x541384){const _0xd59500=this['_suggestions']['get'](_0x541384);if(!_0xd59500)throw new _0x4fc565('track-changes-discard-suggestion-not-found',this);const _0x35182e=_0xd59500['getRanges']();this['editor']['model']['canEditAt'](_0x35182e)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0xd59500);}}function ls(_0x1c60ae,_0xeea39c){let _0x2e0830='';return _0x2e0830+=_0x1c60ae['split']('*')['map']((_0x51fe39,_0x1ab411)=>_0x1ab411%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Zt(_0x51fe39)+'</span>':Zt(_0x51fe39))['join'](''),_0xeea39c&&(_0x2e0830+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xeea39c['value']+'\x22\x20title=\x22'+_0xeea39c['title']+'\x22></span>'),_0x2e0830;}function Zt(_0x5a1631){const _0x25e5af=document['createElement']('span');return _0x25e5af['innerText']=_0x5a1631,_0x25e5af['innerHTML'];}function ts(_0x550f50){return _0x550f50['sort']((_0x3a545d,_0x593cf0)=>'attribute'===_0x3a545d['type']&&'attribute'!==_0x593cf0['type']?-0x1:'attribute'!==_0x3a545d['type']&&'attribute'===_0x593cf0['type']?0x1:'deletion'==_0x3a545d['type']&&'deletion'!=_0x593cf0['type']?-0x1:'deletion'!=_0x3a545d['type']&&'deletion'==_0x593cf0['type']?0x1:0x0);}function to(_0x2ba3fc,_0x286fc9){let _0x3f266e,_0x5f7af6=0x0;const _0x2f9b8c=[],_0x375577=_0x286fc9['schema'];for(;_0x5f7af6<_0x2ba3fc['length'];){const _0xcaf84c=_0x2ba3fc[_0x5f7af6],_0x4d8be3=_0x2ba3fc[_0x5f7af6+0x1];_0x3f266e||(_0x3f266e=_0x286fc9['createPositionBefore'](_0xcaf84c)),tn(_0x286fc9,_0xcaf84c,_0x4d8be3)||(_0x2f9b8c['push'](_0x286fc9['createRange'](_0x3f266e,_0x375577['isObject'](_0xcaf84c)?_0x286fc9['createPositionAfter'](_0xcaf84c):_0x286fc9['createPositionAt'](_0xcaf84c,'end'))),_0x3f266e=null),_0x5f7af6++;}return _0x2f9b8c;}function tn(_0x4c1983,_0x25498f,_0x52c764){if(!_0x52c764)return!0x1;const _0x5da5b9=_0x4c1983['createPositionAfter'](_0x25498f),_0x5b8acd=_0x4c1983['createPositionBefore'](_0x52c764);return _0x5da5b9['isTouching'](_0x5b8acd);}function rs(_0x50b566,_0x52a48c,_0xbad12b){for(;_0xbad12b['length'];){const _0x9da7ad=_0xbad12b['splice'](0x0,0x64);_0x50b566['change'](()=>{for(const _0x23e427 of _0x9da7ad)_0x23e427['isInContent']&&_0x52a48c['execute'](_0x23e427['id']);});}}class M extends _0x5be447{['_command'];['_suggestions'];constructor(_0x5b3a9a,_0x313112,_0x5692f1){super(_0x5b3a9a),this['_command']=_0x313112,this['_suggestions']=_0x5692f1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x82af42=Array['from'](this['_suggestions']['values']())['some'](_0x4ae538=>_0x4ae538['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x82af42;}['execute'](){const _0x39a617=ts(Array['from'](this['_suggestions']['values']()));for(const _0x41133d of _0x39a617){const _0x9f6e49=_0x41133d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x9f6e49))return;}rs(this['editor']['model'],this['_command'],_0x39a617);}}class B extends _0x5be447{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x2dc030,_0x2a2b85,_0x41105d){super(_0x2dc030),this['_command']=_0x2a2b85,this['_suggestions']=_0x41105d,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xdb9f4a=this['editor']['model']['document']['selection'],_0x28ad72=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3eca53,_0x519576){const _0x485c13=Array['from'](_0x3eca53['getRanges']()),_0x494054=new Set();for(const _0x4f7929 of _0x519576)if(_0x4f7929['isInContent']){for(const _0x4809cd of _0x485c13)for(const _0x3fea9c of _0x4f7929['getRanges']())(_0x4809cd['isIntersecting'](_0x3fea9c)||_0x3eca53['isCollapsed']&&!_0x4f7929['isMultiRange']&&_0x4f7929['next']&&_0x3fea9c['end']['isTouching'](_0x4809cd['start']))&&_0x494054['add'](_0x4f7929);}return _0x494054;}(_0xdb9f4a,_0x28ad72),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x409105=ts(Array['from'](this['_selectedSuggestions']));for(const _0x3f651f of _0x409105){const _0x30734b=_0x3f651f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x30734b))return;}rs(this['editor']['model'],this['_command'],_0x409105);}}class T extends/* #__PURE__ -- @preserve */
24
- _0x3c38f4(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x366e15,_0x712dab){super(),this['id']=_0x712dab['id'],this['type']=_0x712dab['type'],this['subType']=_0x712dab['subType']||null,this['author']=_0x712dab['author'],this['creator']=_0x712dab['creator']||_0x712dab['author'],this['isExternal']=Boolean(_0x712dab['attributes']&&_0x712dab['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x712dab['originalSuggestionId']||null,this['_model']=_0x366e15,this['_onAccept']=_0x712dab['onAccept'],this['_onDiscard']=_0x712dab['onDiscard'],this['_onAttributesChange']=_0x712dab['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x712dab['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 _0x2e2a9b=this;for(;_0x2e2a9b['previous'];)_0x2e2a9b=_0x2e2a9b['previous'];return _0x2e2a9b;}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'](_0x52b651){this['_markerNames']['add'](_0x52b651);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4863e6=>this['_model']['markers']['get'](_0x4863e6))['filter'](_0x4ac14d=>_0x4ac14d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x44929f=>{for(const _0x4fa920 of this['getMarkers']())_0x44929f['removeMarker'](_0x4fa920);}),this['_markerNames']['clear']();}['removeMarker'](_0x525ff1){this['_model']['change'](_0x441c81=>{_0x441c81['removeMarker'](_0x525ff1);}),this['_markerNames']['delete'](_0x525ff1);}['addRange'](_0x193262){const _0x3204fc='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x3204fc),this['_model']['change'](_0x42d50d=>{_0x42d50d['addMarker'](_0x3204fc,{'range':_0x193262,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x839294){for(const _0x4aa7fc of this['getRanges']())if(_0x4aa7fc['isIntersecting'](_0x839294))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x54e759=>_0x54e759['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x177175,_0x4ff0ca)=>[..._0x177175,..._0x4ff0ca['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x37a7c1=this['getRanges']();if(0x1!=_0x37a7c1['length'])return null;const _0x4ceadc=_0x37a7c1[0x0],_0x5683a8=_0x4ceadc['start']['nodeAfter'],_0x3595ac=_0x4ceadc['end']['nodeBefore'];return _0x5683a8 instanceof _0x32d25f?_0x5683a8!=_0x3595ac?null:_0x5683a8: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 _0xe32c5d=[];let _0x4b4eb2=this['head'];for(;_0x4b4eb2;)_0xe32c5d['push'](_0x4b4eb2),_0x4b4eb2=_0x4b4eb2['next'];return _0xe32c5d;}['setAttribute'](_0x84f2e4,_0x2b2090){const _0x53f096=_0x14f8f8(this['attributes']);_0x10efcf(_0x53f096,_0x84f2e4,_0x2b2090),_0x1314a1(_0x53f096,this['attributes'])||(this['attributes']=_0x53f096,this['_onAttributesChange'](_0x53f096));}['removeAttribute'](_0xeff3f7){const _0x32228d=_0x14f8f8(this['attributes']);_0x54060d(_0x32228d,_0xeff3f7),_0x1314a1(_0x32228d,this['attributes'])||(this['attributes']=_0x32228d,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 _0xd0f9be()['substr'](0x1,0x5);}}function o(_0x252e64,_0x124f59,_0x191967){const _0x52ec6b=_0x252e64['t'],t=_0x252e64['t'];switch(_0x124f59){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',_0x191967);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x191967);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x191967);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x191967);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x191967);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',_0x191967);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x191967);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',_0x191967);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x191967);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x191967);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x191967);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x191967);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x191967);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x191967);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x191967);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x191967);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x191967);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x191967);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x191967);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x191967);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x191967);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x191967);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x191967);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x191967);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x191967);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'},_0x191967);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x191967);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x191967);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x191967);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x191967);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x191967);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x191967);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x191967);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'},_0x191967);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x191967);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x191967);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x191967);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x191967);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x191967);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x191967);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'},_0x191967);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x191967);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x191967);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'},_0x191967);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x191967);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'},_0x191967);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x191967);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x191967);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'},_0x191967);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x191967);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 _0x52ec6b({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x191967);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x52ec6b({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x191967);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x191967);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'},_0x191967);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'},_0x191967);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'},_0x191967);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x124f59;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xcf91f4,_0xfd5ac8){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xcf91f4,this['_locale']=_0xfd5ac8;}['getDescriptions'](_0x47d25b){const _0x2b3030=[],_0x11a713=new Set(),_0x319fa7=new Set();for(let _0x414bb7=0x0;_0x414bb7<_0x47d25b['length'];_0x414bb7++){const _0x123b4d=_0x47d25b[_0x414bb7];if(!_0x123b4d['isInContent'])continue;const _0x5dd1f3=this['_handleCustomCallbackDescription'](_0x123b4d);if(_0x5dd1f3){if(null!=_0x123b4d['subType']){if(_0x11a713['has'](_0x123b4d['subType']))continue;_0x11a713['add'](_0x123b4d['subType']);}_0x2b3030['push'](_0x5dd1f3);}else{if('attribute'==_0x123b4d['type']){const _0x5a64ba=_0x123b4d['data']['key'];if(_0x319fa7['has'](_0x5a64ba))continue;_0x319fa7['add'](_0x123b4d['data']['key']),_0x5a64ba==m?this['_handleRenameSuggestionDescription'](_0x2b3030,_0x123b4d):this['_handleAttributeSuggestionDescription'](_0x2b3030,_0x123b4d);continue;}'insertion'!=_0x123b4d['type']&&'deletion'!=_0x123b4d['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2b3030,_0x123b4d,_0x47d25b[_0x414bb7+0x1]);}}return this['_resolveDescriptionItems'](_0x2b3030);}['registerDescriptionCallback'](_0x5e2fed){this['_customCallbacks']['push'](_0x5e2fed);}['registerElementLabel'](_0xdcd204,_0x204351,_0x1ad0fc=_0x4c5029['normal']){'function'==typeof _0xdcd204?_0xcfcfef(this['_itemLabelsCallbacks'],{'matchingCallback':_0xdcd204,'label':_0x204351,'priority':_0x1ad0fc}):this['_itemLabels']['set'](_0xdcd204,_0x204351);}['registerAttributeLabel'](_0x1bd34f,_0x7b876c){this['_attributeLabels']['set'](_0x1bd34f,_0x7b876c);}['getItemLabel'](_0x4e8793,_0x5e96b4=0x1){let _0x5ef1e8;for(const _0xbab895 of this['_itemLabelsCallbacks'])if(_0xbab895['matchingCallback'](_0x4e8793)){_0x5ef1e8=_0xbab895['label'];break;}return _0x5ef1e8||(_0x5ef1e8=this['_itemLabels']['get'](_0x4e8793['name'])),_0x5ef1e8?_0x5ef1e8(_0x5e96b4):0x1!==_0x5e96b4?_0x5e96b4+'\x20'+_0x4e8793['name']+'s':''+_0x4e8793['name'];}['_addDescriptionItems'](_0x39b9be,_0x3dd795){const _0x4d0f96=_0x3dd795['getFirstRange']()['getWalker'](),_0x1124dd='insertion'==_0x3dd795['type']?'add':'remove';for(const _0x224cca of _0x4d0f96){const _0xcfce6c=_0x224cca['item'],_0x4a24b6=_0x39b9be[_0x39b9be['length']-0x1];if(_0xcfce6c['is']('$textProxy'))_0x4a24b6&&_0x4a24b6['type']['indexOf']('Container')>-0x1&&_0x39b9be['pop'](),_0x4a24b6&&'text'==_0x4a24b6['type']?_0x4a24b6[_0x1124dd]+=_0xcfce6c['data']:_0x39b9be['push']({'type':'text','add':'add'==_0x1124dd?_0xcfce6c['data']:'','remove':'remove'==_0x1124dd?_0xcfce6c['data']:''});else{if(this['_schema']['isObject'](_0xcfce6c)){const _0x106454=_0xcfce6c;if(_0x4a24b6&&_0x4a24b6['type']['indexOf']('Container')>-0x1&&_0x39b9be['pop'](),'elementEnd'==_0x224cca['type'])continue;_0x4a24b6&&_0x4a24b6['type']==_0x1124dd+'Object'&&_0x4a24b6['element']['name']==_0x106454['name']?_0x4a24b6['quantity']++:_0x39b9be['push']({'type':_0x1124dd+'Object','element':_0x106454,'quantity':0x1}),_0x4d0f96['skip'](_0x9da7b=>!('elementEnd'==_0x9da7b['type']&&_0x9da7b['item']==_0xcfce6c));}else{if(this['_schema']['checkChild'](_0xcfce6c,'$text')||_0xcfce6c['is']('element','softBreak')){const _0x57175e=_0xcfce6c;if('add'==_0x1124dd&&'elementStart'==_0x224cca['type']||'remove'==_0x1124dd&&'elementEnd'==_0x224cca['type'])continue;if(_0x4a24b6&&-0x1==_0x4a24b6['type']['indexOf']('Container')){'text'==_0x4a24b6['type']&&(_0x4a24b6[_0x1124dd]+='\x0a');continue;}let _0x23461b;if(_0x23461b='add'==_0x1124dd?_0x57175e['nextSibling']&&!this['_schema']['isObject'](_0x57175e['nextSibling'])?_0x57175e['nextSibling']:null:_0x57175e['previousSibling']&&!this['_schema']['isObject'](_0x57175e['previousSibling'])?_0x57175e['previousSibling']:null,_0x57175e['isEmpty']||_0x23461b&&_0x23461b['isEmpty']){const _0x55a2bc=_0x23461b&&_0x23461b['isEmpty']?_0x23461b:_0x57175e;_0x4a24b6&&_0x4a24b6['type']==_0x1124dd+'EmptyContainer'&&_0x4a24b6['element']['name']==_0x55a2bc['name']?_0x4a24b6['quantity']++:_0x39b9be['push']({'type':_0x1124dd+'EmptyContainer','element':_0x55a2bc,'quantity':0x1});}else _0x39b9be['push']({'type':_0x1124dd+'Container','element':_0x57175e});}}}}}['_resolveDescriptionItems'](_0x187bc5){const _0x37cafb=this['_locale'],_0x6726c=[],_0x3b82b9=[],_0x296840=[];for(const _0x2d940b of _0x187bc5)switch(_0x2d940b['type']){case'text':if(_0x2d940b['add']=_0x2d940b['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2d940b['remove']=_0x2d940b['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2d940b['add']&&''!=_0x2d940b['remove']){_0x6726c['push']({'type':'replace','content':o(_0x37cafb,'REPLACE_TEXT',['\x22'+_0x2d940b['remove']+'\x22','\x22'+_0x2d940b['add']+'\x22'])});continue;}if(null!=_0x2d940b['add']['match'](/^ +$/)){_0x6726c['push']({'type':'insertion','content':o(_0x37cafb,'*Insert:*\x20%0',o(_0x37cafb,'ELEMENT_SPACE',_0x2d940b['add']['length']))});continue;}if(null!=_0x2d940b['remove']['match'](/^ +$/)){_0x6726c['push']({'type':'deletion','content':o(_0x37cafb,'*Remove:*\x20%0',o(_0x37cafb,'ELEMENT_SPACE',_0x2d940b['remove']['length']))});continue;}if(''!=_0x2d940b['add']){_0x6726c['push']({'type':'insertion','content':o(_0x37cafb,'*Insert:*\x20%0','\x22'+_0x2d940b['add']+'\x22')});continue;}_0x6726c['push']({'type':'deletion','content':o(_0x37cafb,'*Remove:*\x20%0','\x22'+_0x2d940b['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x6726c['push']({'type':'insertion','content':o(_0x37cafb,'*Insert:*\x20%0',this['getItemLabel'](_0x2d940b['element'],_0x2d940b['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x6726c['push']({'type':'deletion','content':o(_0x37cafb,'*Remove:*\x20%0',this['getItemLabel'](_0x2d940b['element'],_0x2d940b['quantity']))});continue;case'addContainer':_0x6726c['push']({'type':'insertion','content':o(_0x37cafb,'*Split:*\x20%0',this['getItemLabel'](_0x2d940b['element'],_0x2d940b['quantity']))});continue;case'removeContainer':_0x6726c['push']({'type':'deletion','content':o(_0x37cafb,'*Merge:*\x20%0',this['getItemLabel'](_0x2d940b['element'],_0x2d940b['quantity']))});continue;case'addFormat':_0x3b82b9['push'](_0x2d940b['key']);continue;case'removeFormat':_0x296840['push'](_0x2d940b['key']);continue;default:_0x6726c['push'](_0x2d940b);}if(_0x3b82b9['length']){const _0x5efca3=_0x3b82b9['map'](_0x435131=>this['_attributeLabels']['has'](_0x435131)?this['_attributeLabels']['get'](_0x435131):_0x435131)['join'](',\x20');_0x6726c['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x5efca3)});}if(_0x296840['length']){const _0x56c52e=_0x296840['map'](_0x1d3e1c=>this['_attributeLabels']['has'](_0x1d3e1c)?this['_attributeLabels']['get'](_0x1d3e1c):_0x1d3e1c)['join'](',\x20');_0x6726c['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x56c52e)});}return _0x6726c;}['_handleCustomCallbackDescription'](_0x1d33a7){for(const _0x30bbec of this['_customCallbacks']){const _0x6586f4=_0x30bbec(_0x1d33a7);if(_0x6586f4&&'type'in _0x6586f4)return _0x6586f4;}}['_handleAttributeSuggestionDescription'](_0x2d35a2,_0x49d349){const _0x4caae6=_0x49d349['data'],_0x1fdbc8=void 0x0===_0x4caae6['newValue']?'removeFormat':'addFormat';_0x2d35a2['push']({'type':_0x1fdbc8,'key':_0x4caae6['key']});}['_handleRenameSuggestionDescription'](_0x5837d9,_0x15512d){_0x5837d9['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x15512d['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1f162e,_0x611a17,_0x31c312){if(this['_addDescriptionItems'](_0x1f162e,_0x611a17),_0x31c312&&_0x31c312['getFirstRange']()&&!_0x611a17['getFirstRange']()['end']['isEqual'](_0x31c312['getFirstRange']()['start'])){const _0xa85fe3=_0x1f162e[_0x1f162e['length']-0x1],_0xf6ce74='insertion'==_0x611a17['type']?'add':'remove';_0xa85fe3&&'text'==_0xa85fe3['type']&&(_0xa85fe3[_0xf6ce74]+='\x0a');}}}class O extends _0x8725f3{['afterInit'](){const _0x28d508=this['editor'],_0x504a10=_0x28d508['plugins']['get']('TrackChangesEditing');_0x28d508['commands']['get']('showAIAssistant')&&_0x504a10['enableCommand']('showAIAssistant');}}class E extends _0x8725f3{['afterInit'](){const _0x2621f1=this['editor'],_0x153992=_0x2621f1['locale'];if(!_0x2621f1['plugins']['has']('AlignmentEditing'))return;const _0x4343a4=_0x2621f1['plugins']['get']('TrackChangesEditing');_0x4343a4['enableDefaultAttributesIntegration']('alignment'),_0x4343a4['registerBlockAttribute']('alignment'),_0x4343a4['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x153992,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5654ff=this['editor'],_0x2aa662=_0x5654ff['locale'];_0x5654ff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f41ec=>{if('formatBlock'!=_0x3f41ec['type'])return;const {data:_0x1bf74b}=_0x3f41ec;if(_0x1bf74b&&'alignment'==_0x1bf74b['commandName']){const _0x4286e1=_0x1bf74b['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2aa662,'*Format:*\x20%0',function(_0x6c5a76){switch(_0x6c5a76){case'left':return o(_0x2aa662,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2aa662,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2aa662,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2aa662,'FORMAT_JUSTIFY_TEXT');}}(_0x4286e1))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x8725f3{['afterInit'](){const _0x268fb1=this['editor'],_0x47c46b=_0x268fb1['plugins']['get']('TrackChangesEditing'),_0x8537d2=_0x268fb1['locale'];for(const _0x39ccc7 of ti){if(!_0x268fb1['plugins']['has'](_0x39ccc7))continue;const _0x1f1477=_0x39ccc7['slice'](0x0,-0x7)['toLowerCase'](),_0x452120='FORMAT_'+_0x1f1477['toUpperCase']();_0x47c46b['enableDefaultAttributesIntegration'](_0x1f1477),_0x47c46b['registerInlineAttribute'](_0x1f1477),_0x47c46b['descriptionFactory']['registerAttributeLabel'](_0x1f1477,o(_0x8537d2,_0x452120));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30a410=this['editor'],_0x3ecde6=_0x30a410['locale'],_0x54f082=_0x30a410['plugins']['get']('TrackChangesEditing');function _0x476822(_0x191731,_0x5ef5e1){_0x54f082['descriptionFactory']['registerDescriptionCallback'](_0xe26cf4=>{if('formatInline'!=_0xe26cf4['type'])return;const {data:_0x37c7b6}=_0xe26cf4;return _0x37c7b6&&_0x37c7b6['commandName']===_0x191731?_0x37c7b6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3ecde6,'*Format:*\x20%0',_0x5ef5e1)}:{'type':'format','content':o(_0x3ecde6,'*Remove\x20format:*\x20%0',_0x5ef5e1)}:void 0x0;});}_0x476822('bold',o(_0x3ecde6,'FORMAT_BOLD')),_0x476822('italic',o(_0x3ecde6,'FORMAT_ITALIC')),_0x476822('underline',o(_0x3ecde6,'FORMAT_UNDERLINE')),_0x476822('code',o(_0x3ecde6,'FORMAT_CODE')),_0x476822('strikethrough',o(_0x3ecde6,'FORMAT_STRIKETHROUGH')),_0x476822('subscript',o(_0x3ecde6,'FORMAT_SUBSCRIPT')),_0x476822('superscript',o(_0x3ecde6,'FORMAT_SUPERSCRIPT'));}}class U extends _0x8725f3{['afterInit'](){const _0x86af77=this['editor'],_0x35b501=_0x86af77['locale'];if(!_0x86af77['plugins']['has']('BlockQuoteEditing'))return;const _0x3816a4=_0x86af77['plugins']['get']('TrackChangesEditing'),_0x191437=this['editor']['commands']['get']('blockQuote');_0x3816a4['enableCommand']('blockQuote',(_0x3f26a7,_0x5a770b={})=>{const _0x1e8e64=this['editor']['model']['document']['selection'],_0x2e66cf=_0x5a770b&&void 0x0!==_0x5a770b['forceValue']?_0x5a770b['forceValue']:!_0x191437['value'];let _0x284772=[];if(_0x2e66cf){const _0x15a696=Array['from'](_0x1e8e64['getSelectedBlocks']())['filter'](_0x2c842c=>oo(_0x2c842c)||function(_0x5d4aa9,_0x47669c){const _0x1d74bb=_0x47669c['checkChild'](_0x5d4aa9['parent'],'blockQuote'),_0x52642c=_0x47669c['checkChild'](['$root','blockQuote'],_0x5d4aa9);return _0x1d74bb&&_0x52642c;}(_0x2c842c,this['editor']['model']['schema']));_0x284772=to(_0x15a696,_0x86af77['model']);}else{const _0x29b97c=Array['from'](_0x1e8e64['getSelectedBlocks']())['filter'](_0x101dd8=>oo(_0x101dd8));_0x284772=to(_0x29b97c,_0x86af77['model']);}_0x86af77['model']['change'](()=>{for(const _0x7055af of _0x284772)_0x3816a4['markBlockFormat'](_0x7055af,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2e66cf}]});});}),_0x3816a4['descriptionFactory']['registerDescriptionCallback'](_0x5abbcf=>{const {data:_0x2dc919}=_0x5abbcf;if(_0x2dc919&&'blockQuote'==_0x2dc919['commandName']){const _0x49a86a=o(_0x35b501,'ELEMENT_BLOCK_QUOTE');return _0x2dc919['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x35b501,'*Set\x20format:*\x20%0',_0x49a86a)}:{'type':'format','content':o(_0x35b501,'*Remove\x20format:*\x20%0',_0x49a86a)};}});}}function oo(_0x27239e){return'blockQuote'==_0x27239e['parent']['name'];}class V extends _0x8725f3{['afterInit'](){const _0x4d5157=this['editor'],_0x4aeb43=_0x4d5157['locale'],_0x364120=_0x4d5157['plugins']['get']('TrackChangesEditing');_0x4d5157['plugins']['has']('BookmarkEditing')&&(_0x364120['enableCommand']('insertBookmark'),_0x364120['enableDefaultAttributesIntegration']('updateBookmark'),_0x364120['registerBlockAttribute']('bookmarkId'),_0x364120['descriptionFactory']['registerDescriptionCallback'](_0x2631c2=>{if('insertion'!=_0x2631c2['type']&&'deletion'!=_0x2631c2['type']&&'attribute'!=_0x2631c2['type'])return;const _0x336c12=_0x2631c2['getContainedElement']();if(null==_0x336c12)return;if(!_0x336c12['is']('element','bookmark'))return;const _0x152db7=_0x336c12['getAttribute']('bookmarkId');if('insertion'==_0x2631c2['type'])return{'type':'insertion','content':o(_0x4aeb43,'*Insert:*\x20%0','\x22'+_0x152db7+'\x22\x20'+o(_0x4aeb43,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2631c2['type'])return{'type':'deletion','content':o(_0x4aeb43,'*Remove:*\x20%0','\x22'+_0x152db7+'\x22\x20'+o(_0x4aeb43,'ELEMENT_BOOKMARK'))};const {data:_0x5121fb}=_0x2631c2;if(!_0x5121fb||'bookmarkId'!=_0x5121fb['key'])return;return{'type':'format','content':o(_0x4aeb43,'*Set\x20bookmark:*\x20%0','\x22'+_0x5121fb['newValue']+'\x22')};}));}}class F extends _0x8725f3{['afterInit'](){const _0x180e24=this['editor'];_0x180e24['plugins']['has']('CaseChange')&&(_0x180e24['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x180e24['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x180e24['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x8725f3{['afterInit'](){const _0x2886c1=this['editor'];_0x2886c1['commands']['get']('ckbox')&&_0x2886c1['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x8725f3{['afterInit'](){const _0x4cccf7=this['editor'];if(!_0x4cccf7['plugins']['has']('CodeBlock'))return;const _0x585f2f=_0x4cccf7['plugins']['get']('TrackChangesEditing'),_0x2467a9=_0x4cccf7['locale'],_0x20502=_0x4cccf7['config']['get']('codeBlock')['languages'],_0x42b653=_0x4cccf7['commands']['get']('codeBlock');_0x585f2f['enableCommand']('indentCodeBlock'),_0x585f2f['enableCommand']('outdentCodeBlock'),_0x585f2f['enableCommand']('codeBlock',(_0x2dd27c,_0x309b1d={})=>{const _0x3c7584=_0x4cccf7['model'],_0x486122=_0x4cccf7['model']['document']['selection'],_0x5b4ac1=_0x309b1d&&void 0x0!==_0x309b1d['forceValue']?_0x309b1d['forceValue']:!_0x42b653['value'];let _0x275a21;_0x309b1d['language']||(_0x309b1d['language']=_0x20502[0x0]['language']),_0x275a21=_0x5b4ac1?Array['from'](_0x486122['getSelectedBlocks']())['filter'](_0x29cb6d=>co(_0x29cb6d)||function(_0x158c06,_0x3b63ec){if(_0x158c06['is']('rootElement')||_0x3b63ec['isLimit'](_0x158c06))return!0x1;return _0x3b63ec['checkChild'](_0x158c06['parent'],'codeBlock');}(_0x29cb6d,_0x3c7584['schema'])):Array['from'](_0x486122['getSelectedBlocks']())['filter'](_0x975ee7=>co(_0x975ee7));const _0x2b12f2=to(_0x275a21,_0x3c7584);_0x3c7584['change'](()=>{for(const _0x554c92 of _0x2b12f2)_0x585f2f['markBlockFormat'](_0x554c92,{'commandName':'codeBlock','commandParams':[{..._0x309b1d,'forceValue':_0x5b4ac1}],'formatGroupId':'blockName'});});}),(_0x585f2f['descriptionFactory']['registerElementLabel']('codeBlock',_0x14257f=>o(_0x2467a9,'ELEMENT_CODE_BLOCK',_0x14257f)),_0x585f2f['descriptionFactory']['registerDescriptionCallback'](_0x2d59bb=>{if('formatBlock'!=_0x2d59bb['type'])return;const _0x2ea815=_0x2467a9['t'],{data:_0x143a42}=_0x2d59bb;if(!_0x143a42||'codeBlock'!=_0x143a42['commandName'])return;const _0x34a5f8=_0x143a42['commandParams'][0x0]['language'],_0x3b70d4=_0x2ea815(_0x20502['find'](_0x57961c=>_0x57961c['language']===_0x34a5f8)['label'])['toLowerCase']();return _0x143a42['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2467a9,'*Set\x20format:*\x20%0',o(_0x2467a9,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3b70d4+')')}:{'type':'format','content':o(_0x2467a9,'*Remove\x20format:*\x20%0',o(_0x2467a9,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x3419af){return'codeBlock'==_0x3419af['name'];}class J extends _0x8725f3{['afterInit'](){const _0x171b84=this['editor'];if(!_0x171b84['plugins']['has']('CommentsEditing'))return;_0x171b84['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4e5dd8,_0x34f4df,_0x5eab56){const _0x37b704=[];for(const _0x30f88e of _0x34f4df['getItems']())_0x30f88e['hasAttribute'](_0x4e5dd8)&&_0x37b704['push'](_0x5eab56['createRangeOn'](_0x30f88e));return _0x37b704;}function De(_0x294404,_0x1afbcb,{showActiveMarker:_0x4345fc=!0x0}={}){const _0x1ab5c4=_0x294404['plugins']['get']('TrackChangesEditing');return(_0x43dab1,_0x41a23a,_0x19346b)=>{if(!_0x19346b['consumable']['test'](_0x41a23a['markerRange'],_0x43dab1['name']))return;const _0x2c9de6=_0x41a23a['markerRange']['getWalker'](),_0x570f54=_0x41a23a['markerRange']['start'],_0x2a211d=_0x294404['model']['schema'];let _0x4d3204=null,_0x4dd543=null,_0x22af8d=!0x1,_0x311fe2=!0x1;for(const _0x58556b of _0x2c9de6){const _0x17ccef=_0x58556b['item'];_0x22af8d=_0x22af8d||_0x2a211d['isContent'](_0x17ccef);const _0x458332=_0x19346b['mapper']['toViewElement'](_0x17ccef);if(_0x458332&&_0x458332['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x58556b['type']&&(_0x2a211d['isBlock'](_0x17ccef)&&!_0x2a211d['isLimit'](_0x17ccef)&&(_0x17ccef['nextSibling']||_0x570f54['isAtEnd']?_0x4d3204&&_0x4d3204['parent']==_0x17ccef||(_0x4d3204=_0x17ccef,_0x1846d0(_0x58556b['previousPosition']),_0x311fe2=!0x0):_0x4dd543=_0x4dd543||_0x58556b['previousPosition']));}function _0x1846d0(_0x78c723){const {id:_0x4c9f84,authorId:_0x1d7bbc}=_0x1ab5c4['_splitMarkerName'](_0x41a23a['markerName']),_0x384691=_0x19346b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1afbcb,'data-suggestion':_0x4c9f84,'data-author-id':_0x1d7bbc}),_0x1b66ca=_0x19346b['mapper']['toViewPosition'](_0x78c723);_0x4345fc&&_0x1ab5c4['activeMarkers']['includes'](_0x41a23a['markerName'])&&_0x19346b['writer']['addClass']('ck-suggestion-marker--active',_0x384691),_0x19346b['writer']['insert'](_0x1b66ca,_0x384691),_0x19346b['mapper']['bindElementToMarker'](_0x384691,_0x41a23a['markerName']);}_0x22af8d||_0x311fe2||!_0x4dd543||_0x1846d0(_0x4dd543);};}class K extends _0x8725f3{static get['requires'](){return[_0x1eb864];}['init'](){const _0x214a76=this['editor'],_0x2ba10a=_0x214a76['plugins']['get']('TrackChangesEditing');_0x2ba10a['enableCommand']('delete');const _0x193746=_0x214a76['commands']['get']('deleteForward');_0x2ba10a['enableCommand']('deleteForward',(_0x53286e,_0x484def={})=>{const _0x57cb1d=_0x214a76['model']['createSelection'](_0x214a76['model']['document']['selection']);_0x57cb1d['isCollapsed']&&_0x214a76['model']['modifySelection'](_0x57cb1d,{'direction':'forward','unit':_0x484def['unit']});const _0x4a3655=_0x57cb1d['getFirstRange'](),_0x2bc1ba=_0x3e3f9b['fromRange'](_0x4a3655);let _0x358ec2;_0x53286e(_0x484def),_0x358ec2='$graveyard'==_0x2bc1ba['root']['rootName']?_0x214a76['model']['createRange'](_0x4a3655['start']):_0x214a76['model']['createRange'](_0x2bc1ba['start'],_0x2bc1ba['end']),_0x2bc1ba['detach'](),_0x214a76['model']['enqueueChange'](_0x193746['buffer']['batch'],_0x48d84e=>{_0x193746['buffer']['lock'](),_0x48d84e['setSelection'](_0x48d84e['createRange'](_0x358ec2['end'])),_0x193746['buffer']['unlock']();});}),_0x214a76['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x214a76,'merge'),{'priority':'high'}),_0x214a76['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x38155d,_0x2c84ee,_0x2659f6)=>{_0x2659f6['options']['showSuggestionHighlights']&&De(_0x214a76,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x38155d,_0x2c84ee,_0x2659f6);},{'priority':'high'}),_0x214a76['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x595e92,_0x577d95,_0x316eb4)=>{const _0x20b496=_0x316eb4['mapper']['markerNameToElements'](_0x577d95['markerName']);if(_0x20b496){for(const _0x2b8227 of _0x20b496)_0x2b8227['is']('uiElement')&&(_0x316eb4['mapper']['unbindElementFromMarkerName'](_0x2b8227,_0x577d95['markerName']),_0x316eb4['writer']['remove'](_0x2b8227));}},{'priority':'high'});}}class H extends _0x8725f3{['afterInit'](){const _0x1c8a17=this['editor'];if(!_0x1c8a17['plugins']['has']('ListEditing'))return;const _0x3d50f5=_0x1c8a17['locale'],_0x2a81b3=_0x1c8a17['plugins']['get']('TrackChangesEditing'),_0x4b5001=_0x1c8a17['plugins']['has']('TodoListEditing'),_0x62d5b=!!_0x1c8a17['config']['get']('list.multiBlock');function _0x57dd05(_0x58f28f){return{'type':'format','content':''+o(_0x3d50f5,'*Set\x20format:*\x20%0',_0x58f28f)};}function _0x1b011c(_0x53f56c){return{'type':'format','content':''+o(_0x3d50f5,'*Remove\x20format:*\x20%0',_0x53f56c)};}_0x2a81b3['enableDefaultAttributesIntegration']('numberedList'),_0x2a81b3['enableDefaultAttributesIntegration']('bulletedList'),_0x2a81b3['enableDefaultAttributesIntegration']('customNumberedList'),_0x2a81b3['enableDefaultAttributesIntegration']('customBulletedList'),_0x2a81b3['enableDefaultAttributesIntegration']('indentList'),_0x2a81b3['enableDefaultAttributesIntegration']('outdentList'),_0x2a81b3['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2a81b3['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2a81b3['registerBlockAttribute']('listItemId'),_0x2a81b3['registerBlockAttribute']('listType'),_0x2a81b3['registerBlockAttribute']('listIndent'),_0x62d5b&&(_0x2a81b3['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2a81b3['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4b5001&&(_0x2a81b3['enableDefaultAttributesIntegration']('todoList'),_0x2a81b3['enableDefaultAttributesIntegration']('checkTodoList'),_0x2a81b3['registerBlockAttribute']('todoListChecked'),_0x2a81b3['descriptionFactory']['registerDescriptionCallback'](_0x6cb222=>{const {data:_0x260b30}=_0x6cb222;if(_0x260b30&&'todoListChecked'==_0x260b30['key'])return{'type':'format','content':_0x260b30['newValue']?o(_0x3d50f5,'*Check\x20item*'):o(_0x3d50f5,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x432eb1=>{if(_0x432eb1['batch']['isUndo'])return!0x1;let _0x56072e=!0x1;const _0x19fe59=_0x2a81b3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x406eef=>'todoListChecked'===_0x2a81b3['_getAttributeKey'](_0x406eef));for(const _0x112e8a of _0x19fe59){'todo'!=_0x112e8a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2a81b3['_findSuggestions'](_0x112e8a['getFirstRange'](),'attribute')['find'](_0x23def7=>'listType'===_0x2a81b3['_getAttributeKey'](_0x23def7['suggestion']))||(_0x432eb1['removeMarker'](_0x112e8a['getFirstMarker']()),_0x56072e=!0x0));}return _0x56072e;})),_0x2a81b3['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x3d50f5,'FORMAT_INDENT'));const _0x3a70a1={'type':'format','content':''};_0x2a81b3['descriptionFactory']['registerDescriptionCallback'](_0x2ab36a=>{const {data:_0xd49710}=_0x2ab36a;if(!_0xd49710||'listType'!=_0xd49710['key'])return;let _0x5a9780=_0x2ab36a['head'];for(;_0x5a9780;){if(_0x5a9780['data']&&(('listStyle'==_0x5a9780['data']['key']||'listMarkerStyle'==_0x5a9780['data']['key'])&&(_0x5a9780['data']['newValue']&&'default'!=_0x5a9780['data']['newValue']||'default'!=_0x5a9780['data']['oldValue']&&!_0xd49710['newValue'])||!_0x62d5b&&_0x5a9780['data']['key']==m))return _0x3a70a1;_0x5a9780=_0x5a9780['next'];}if(null==_0xd49710['newValue'])switch(_0xd49710['oldValue']){case'bulleted':return _0x1b011c(o(_0x3d50f5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1b011c(o(_0x3d50f5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1b011c(o(_0x3d50f5,'ELEMENT_TODO_LIST'));}switch(_0xd49710['newValue']){case'bulleted':return _0x57dd05(o(_0x3d50f5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x57dd05(o(_0x3d50f5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x57dd05(o(_0x3d50f5,'ELEMENT_TODO_LIST'));}}),_0x2a81b3['descriptionFactory']['registerDescriptionCallback'](_0x5ca9be=>{const {data:_0x1660e0}=_0x5ca9be;if(_0x1660e0&&'listIndent'==_0x1660e0['key'])return null==_0x1660e0['newValue']||null==_0x1660e0['oldValue']&&0x0==_0x1660e0['newValue']?_0x3a70a1:void 0x0;}),_0x2a81b3['descriptionFactory']['registerDescriptionCallback'](_0x326172=>{if('attribute'!=_0x326172['type'])return;const {data:_0x5b3f51}=_0x326172;if(!_0x5b3f51||'listItemId'!=_0x5b3f51['key'])return;const _0xf260eb=Te(_0x326172);return'newValue'==_0xf260eb?{'type':'format','content':o(_0x3d50f5,'*Merge:*\x20list\x20item')}:'oldValue'==_0xf260eb?{'type':'format','content':o(_0x3d50f5,'*Split:*\x20list\x20item')}:_0x3a70a1;}),_0x1c8a17['model']['document']['registerPostFixer'](_0x564c82=>this['listItemIdFixer'](_0x564c82)),_0x1c8a17['model']['document']['registerPostFixer'](_0x19ff1d=>this['noTrackChangesFixer'](_0x19ff1d)),_0x1c8a17['model']['document']['on']('change:data',(_0x252f55,_0x2489b0)=>{if(_0x2489b0['isUndo']||!_0x2489b0['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4c62b7){if(_0x4c62b7['batch']['isUndo']||!_0x4c62b7['batch']['isLocal'])return!0x1;let _0x244dd5=!0x1;const _0x2c52f9=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x44a0d9=>_0x44a0d9['data']&&'listItemId'==_0x44a0d9['data']['key'])['filter'](_0x56eebc=>_0x56eebc['data']['newValue']&&_0x56eebc['data']['oldValue']);for(const _0x493372 of _0x2c52f9)Te(_0x493372)||(_0x4c62b7['removeMarker'](_0x493372['getFirstMarker']()),_0x244dd5=!0x0);return _0x244dd5;}['noTrackChangesFixer'](_0x31bb2c){if(_0x31bb2c['batch']['isUndo']||!_0x31bb2c['batch']['isLocal'])return!0x1;const _0x1d7d67=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1d7d67['trackChangesCommand']['value'])return!0x1;let _0x33ac2b=!0x1;const _0x4f2fa7=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x23663b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x549238=>'attribute'==_0x549238['type'])['filter'](_0x10614b=>_0x4f2fa7['includes'](_0x10614b['attributeKey']));if(0x0==_0x23663b['length'])return _0x33ac2b;for(const _0x2694da of _0x23663b){const _0x3802e4=_0x1d7d67['_findSuggestions'](_0x2694da['range'],'attribute')['filter'](_0x44b5ce=>!_0x44b5ce['meta']['isNextTo'])['map'](_0x294691=>_0x294691['suggestion'])['filter'](_0xf5d2bb=>{const _0xc2eb99=_0x1d7d67['_getAttributeKey'](_0xf5d2bb);return _0x4f2fa7['includes'](_0xc2eb99);});if(_0x3802e4['length']){for(const _0x5ca6f2 of _0x3802e4)_0x31bb2c['removeMarker'](_0x5ca6f2['getFirstMarker']());_0x33ac2b=!0x0;}}return _0x33ac2b;}['assureChains'](){const _0x5f277b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3cc931=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4529e1;const _0x469e5c=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x28bd2a=>{if(_0x28bd2a['data']['oldRange']||!_0x28bd2a['data']['newRange'])return null;if(!_0x28bd2a['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x217ce7}=_0x5f277b['_splitMarkerName'](_0x28bd2a['name']);if(!_0x5f277b['hasSuggestion'](_0x217ce7))return null;const _0x26d873=_0x5f277b['getSuggestion'](_0x217ce7);return _0x3cc931['includes'](_0x26d873['data']['key']);})['map'](_0x42670b=>{const {id:_0x9f8d57}=_0x5f277b['_splitMarkerName'](_0x42670b['name']),_0x3bf060=_0x5f277b['getSuggestion'](_0x9f8d57);return _0x4529e1=_0x3bf060['attributes']['groupId'],_0x3bf060['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x469e5c['size'])return;const _0x34db80=_0x5f277b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x85aaa8=>'attribute'==_0x85aaa8['type']&&_0x85aaa8['data']&&_0x3cc931['includes'](_0x85aaa8['data']['key'])&&_0x85aaa8['attributes']['groupId']!=_0x4529e1)['map'](_0x379e4a=>({'listItem':_0x379e4a['getFirstRange']()['start']['nodeAfter'],'groupId':_0x379e4a['attributes']['groupId']})),_0x266fb6=new Set();for(const {groupId:_0x48c728,listItem:_0x1cbb2d}of _0x34db80)_0x469e5c['has'](_0x1cbb2d)&&_0x266fb6['add'](_0x48c728);for(const _0x1c841f of _0x5f277b['getSuggestions']())_0x266fb6['has'](_0x1c841f['attributes']['groupId'])&&_0x1c841f['setAttribute']('groupId',_0x4529e1);}['_supportLegacySuggestions'](){const _0x2202ec=this['editor'],_0x57a24c=_0x2202ec['locale'],_0x5a1d94=_0x2202ec['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5a1d94['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1c3f0b,_0x58f793){const _0x5569a0=[];for(let _0x2a0d48 of _0x1c3f0b)_0x2a0d48['start']['nodeAfter']===_0x2a0d48['end']['parent']&&(_0x2a0d48=_0x2202ec['model']['createRange'](_0x2202ec['model']['createPositionAt'](_0x2a0d48['start']['nodeAfter'],0x0))),_0x5569a0['push'](_0x2a0d48);_0x2202ec['model']['change'](_0x5674c6=>{const _0x3401f0=_0x2202ec['model']['document']['selection'],_0x3d2962=Array['from'](_0x3401f0['getRanges']())['map'](_0x269624=>_0x3e3f9b['fromRange'](_0x269624));_0x5674c6['setSelection'](_0x5569a0),_0x2202ec['commands']['get'](_0x58f793['commandName'])['refresh'](),_0x58f793['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2202ec['execute'](_0x58f793['commandName'],..._0x58f793['commandParams']),_0x5674c6['setSelection'](_0x3d2962);for(const _0x55987e of _0x3d2962)_0x55987e['detach']();});}),_0x5a1d94['descriptionFactory']['registerElementLabel'](function(_0x456313){const _0x3c8813=!_0x2202ec['model']['schema']['isObject'](_0x456313),_0x24d93f=_0x456313['previousSibling'],_0x476383=_0x456313['nextSibling'],_0x4ab849=_0x456313['getAttribute']('listItemId'),_0x10e4af=!_0x24d93f||_0x24d93f['getAttribute']('listItemId')!==_0x4ab849,_0x80b75a=!_0x476383||_0x476383['getAttribute']('listItemId')!==_0x4ab849;return _0x3c8813&&Boolean(_0x4ab849)&&_0x10e4af&&_0x80b75a;},_0x16a4bc=>o(_0x57a24c,'ELEMENT_LIST_ITEM',_0x16a4bc));}['_registerLegacyDescription'](){const _0x154b41=this['editor'],_0x12f7af=_0x154b41['locale'];function _0x436f30(_0x42a2d4){const _0x20bc99=_0x154b41['commands']['get']('bulletedList')['value'],_0x3390f0=_0x154b41['commands']['get']('numberedList')['value'];return'numberedList'===_0x42a2d4?_0x20bc99:_0x3390f0;}_0x154b41['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x28c35b){if('formatBlock'!=_0x28c35b['type'])return;const {data:_0x21803d}=_0x28c35b;if(!_0x21803d)return;let _0x2bb665,_0x1c796e,_0x12f348,_0x2657ed;switch(_0x21803d['commandName']){case'bulletedList':_0x12f348=_0x21803d['commandParams'][0x0]['forceValue'],_0x2657ed=_0x436f30(_0x21803d['commandName']),_0x2bb665=_0x12f348?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2657ed&&_0x154b41['config']['get']('list.multiBlock')||(_0x2bb665='*Change\x20to:*\x20%0'),_0x1c796e={'type':'format','content':o(_0x12f7af,_0x2bb665,o(_0x12f7af,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x12f348=_0x21803d['commandParams'][0x0]['forceValue'],_0x2657ed=_0x436f30(_0x21803d['commandName']),_0x2bb665=_0x12f348?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2657ed&&_0x154b41['config']['get']('list.multiBlock')||(_0x2bb665='*Change\x20to:*\x20%0'),_0x1c796e={'type':'format','content':o(_0x12f7af,_0x2bb665,o(_0x12f7af,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2bb665='*Indent:*\x20%0',_0x1c796e={'type':'format','content':o(_0x12f7af,_0x2bb665,o(_0x12f7af,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2bb665=function(_0x3fc19e){const _0x22b1b8=_0x3fc19e['getFirstRange']();let _0x1a0c25=_0x22b1b8['start']['nodeAfter'];for(;_0x1a0c25&&_0x22b1b8['containsItem'](_0x1a0c25);){if(_0x1a0c25['getAttribute']('listIndent')>0x0)return!0x1;_0x1a0c25=_0x1a0c25['nextSibling'];}return!0x0;}(_0x28c35b)?o(_0x12f7af,'*Format:*\x20remove\x20from\x20%0',o(_0x12f7af,function(_0x23f31c){return'ELEMENT_'+_0x23f31c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x28c35b))):o(_0x12f7af,'*Outdent:*\x20%0',o(_0x12f7af,'ELEMENT_LIST_ITEM')),_0x1c796e={'type':'format','content':_0x2bb665};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x21803d['multipleBlocks']&&(_0x2bb665='*Merge:*\x20%0',_0x1c796e={'type':'deletion','content':o(_0x12f7af,_0x2bb665,o(_0x12f7af,'ELEMENT_LIST_ITEM'))});}return _0x1c796e;});}}function Te(_0x74a390){let _0x328bf8=_0x74a390['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x328bf8;){const _0x38f1a4=_0x328bf8['getAttribute']('listItemId');if(!_0x38f1a4)return!0x1;if(_0x38f1a4==_0x74a390['data']['newValue'])return'newValue';if(_0x38f1a4==_0x74a390['data']['oldValue'])return'oldValue';_0x328bf8=_0x328bf8['previousSibling'];}return!0x1;}class q extends _0x8725f3{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x20eb0b=this['editor']['config']['get']('list.properties'),_0x5b25d3=this['editor']['plugins']['get']('TrackChangesEditing');_0x20eb0b['styles']&&(_0x5b25d3['enableDefaultAttributesIntegration']('listStyle'),_0x5b25d3['registerBlockAttribute']('listStyle')),_0x20eb0b['reversed']&&(_0x5b25d3['enableDefaultAttributesIntegration']('listReversed'),_0x5b25d3['registerBlockAttribute']('listReversed')),_0x20eb0b['startIndex']&&(_0x5b25d3['enableDefaultAttributesIntegration']('listStart'),_0x5b25d3['registerBlockAttribute']('listStart'));const _0x2dd26f={'type':'format','content':''};_0x5b25d3['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x27c8b1=this['editor']['locale'];_0x5b25d3['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x27c8b1,'FORMAT_LIST_REVERSED')),_0x5b25d3['descriptionFactory']['registerDescriptionCallback'](_0x1a2d68=>{const {data:_0x1460ae}=_0x1a2d68;if(_0x1460ae&&'listReversed'==_0x1460ae['key'])return null==_0x1460ae['newValue']||0x0==_0x1460ae['newValue']&&null==_0x1460ae['oldValue']?_0x2dd26f:void 0x0;}),_0x5b25d3['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x27c8b1,'FORMAT_LIST_START')),_0x5b25d3['descriptionFactory']['registerDescriptionCallback'](_0x1b14d6=>{const {data:_0x490bc2}=_0x1b14d6;if(_0x490bc2&&'listStart'==_0x490bc2['key'])return null==_0x490bc2['newValue']||0x1==_0x490bc2['newValue']&&null==_0x490bc2['oldValue']?_0x2dd26f:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2f5916=>{if(_0x2f5916['batch']['isUndo'])return!0x1;let _0x23e560=!0x1;const _0x4fe40f=_0x5b25d3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x23d503=>{const _0x2ec509=_0x5b25d3['_getAttributeKey'](_0x23d503);return'listStart'==_0x2ec509||'listReversed'==_0x2ec509;});for(const _0x2e1788 of _0x4fe40f){const _0x25ef29=_0x2e1788['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x25ef29||'customNumbered'==_0x25ef29)continue;_0x5b25d3['_findSuggestions'](_0x2e1788['getFirstRange'](),'attribute')['find'](_0x13d659=>'listType'==_0x5b25d3['_getAttributeKey'](_0x13d659['suggestion']))||(_0x2f5916['removeMarker'](_0x2e1788['getFirstMarker']()),_0x23e560=!0x0);}return _0x23e560;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4d8082){const _0x2ce4ce=this['editor']['locale'],{data:_0x28fdf5}=_0x4d8082,_0x219d2d={'type':'format','content':''};if(!_0x28fdf5||'listStyle'!=_0x28fdf5['key'])return;if(!_0x28fdf5['oldValue'])return'default'==_0x28fdf5['newValue']?_0x219d2d:{'type':'format','content':''+o(_0x2ce4ce,'*Set\x20format:*\x20%0',o(_0x2ce4ce,this['_getTranslationKeyForListStyle'](_0x28fdf5['newValue'])))};if(!_0x28fdf5['newValue']){if('default'==_0x28fdf5['oldValue'])return _0x219d2d;let _0x356da0=_0x4d8082['head'];for(;_0x356da0;){if(_0x356da0['data']&&'listType'==_0x356da0['data']['key']&&_0x356da0['data']['newValue'])return _0x219d2d;_0x356da0=_0x356da0['next'];}return{'type':'format','content':''+o(_0x2ce4ce,'*Remove\x20format:*\x20%0',o(_0x2ce4ce,this['_getTranslationKeyForListStyle'](_0x28fdf5['oldValue'])))};}if('default'!=_0x28fdf5['newValue'])return{'type':'format','content':''+o(_0x2ce4ce,'*Set\x20format:*\x20%0',o(_0x2ce4ce,this['_getTranslationKeyForListStyle'](_0x28fdf5['newValue'])))};let _0xf33fff=_0x4d8082['head'];for(;_0xf33fff;){if(_0xf33fff['data']&&'listType'==_0xf33fff['data']['key']&&_0xf33fff['data']['newValue']&&_0xf33fff['data']['oldValue'])return _0x219d2d;_0xf33fff=_0xf33fff['next'];}return{'type':'format','content':o(_0x2ce4ce,'*Set\x20format:*\x20%0',o(_0x2ce4ce,'ELEMENT_'+_0x4d8082['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x43d431=this['editor'],_0x3fdc5e=_0x43d431['locale'];_0x43d431['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4127f9=>{if('formatBlock'!=_0x4127f9['type'])return;const {data:_0xfb2d64}=_0x4127f9;if(!_0xfb2d64)return;let _0x36f511,_0x2b31fd;switch(_0xfb2d64['commandName']){case'listStyle':_0x36f511='*Change\x20to:*\x20%0',_0x2b31fd={'type':'format','content':o(_0x3fdc5e,_0x36f511,o(_0x3fdc5e,this['_getTranslationKeyForListStyle'](_0xfb2d64['commandParams'][0x0]['type'])))};break;case'listReversed':_0x36f511=_0xfb2d64['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2b31fd={'type':'format','content':o(_0x3fdc5e,_0x36f511)};break;case'listStart':_0x36f511='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2b31fd={'type':'format','content':o(_0x3fdc5e,_0x36f511,_0xfb2d64['commandParams'][0x0]['startIndex'])};}return _0x2b31fd;});}['_getTranslationKeyForListStyle'](_0xeee38f){return'ELEMENT_'+function(_0x48aa87){if(Se['includes'](_0x48aa87))return'bulleted';if(_e['includes'](_0x48aa87))return'numbered';return null;}(_0xeee38f)['toUpperCase']()+'_LIST_'+_0xeee38f['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x8725f3{['afterInit'](){const _0x2b15eb=this['editor'];_0x2b15eb['commands']['get']('emoji')&&_0x2b15eb['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x8725f3{static get['requires'](){return[_0x33a875];}['init'](){const _0xaa4571=this['editor'],_0x2c787d=_0xaa4571['plugins']['get']('TrackChangesEditing'),_0x3c600f=_0xaa4571['commands']['get']('enter');_0x2c787d['enableCommand']('enter',()=>{_0xaa4571['model']['change'](_0xfc0bad=>{const _0x52bfba=_0xaa4571['model']['document']['selection'],_0x380860=_0x52bfba['getFirstPosition'](),_0x335695=_0x3e3f9b['fromRange'](_0x52bfba['getFirstRange']());if(_0x3c600f['enterBlock'](_0xfc0bad)){const _0x426720=_0xaa4571['model']['createPositionAt'](_0x380860['parent']['nextSibling'],0x0),_0x9f9f82=_0xfc0bad['createRange'](_0x380860,_0x426720);_0x2c787d['markInsertion'](_0x9f9f82);}else _0xfc0bad['setSelection'](_0xfc0bad['createRange'](_0x335695['end']));_0x335695['detach'](),_0x3c600f['fire']('afterExecute',{'writer':_0xfc0bad});});}),_0xaa4571['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0xaa4571,'split'),{'priority':'high'}),_0xaa4571['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2a8622,_0x236d24,_0x1e0b80)=>{const _0x24bd5b=_0x1e0b80['mapper']['markerNameToElements'](_0x236d24['markerName']);if(_0x24bd5b){for(const _0x1aecd5 of _0x24bd5b)_0x1aecd5['hasClass']('ck-suggestion-marker-split')&&(_0x1e0b80['mapper']['unbindElementFromMarkerName'](_0x1aecd5,_0x236d24['markerName']),_0x1e0b80['writer']['remove'](_0x1aecd5));}},{'priority':'high'}),_0xaa4571['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x515b6d,_0x49278f,_0x48bf11)=>{_0x48bf11['options']['showSuggestionHighlights']&&De(_0xaa4571,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x515b6d,_0x49278f,_0x48bf11);},{'priority':'high'});}}class Q extends _0x8725f3{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x210dd7=this['editor']['plugins']['get']('TrackChangesEditing');_0x210dd7['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x210dd7['enableCommand']('findNext'),_0x210dd7['enableCommand']('findPrevious'),_0x210dd7['enableCommand']('replace'),_0x210dd7['enableCommand']('replaceAll');}['handleFindCommand'](_0x54429d,_0x3b9087,_0x13d32a={}){const _0x1cc267=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x54429d(_0x125971=>{let _0x23daac=('string'==typeof _0x3b9087?_0x1cc267['findByTextCallback'](_0x3b9087,_0x13d32a):_0x3b9087)(_0x125971);Array['isArray'](_0x23daac)&&(_0x23daac={'results':_0x23daac,'searchText':'string'==typeof _0x3b9087?_0x3b9087:''});const _0x3d5722=_0x23daac['results']['filter'](_0x2e7ce8=>!0x1===this['_isInDeletionRange'](_0x2e7ce8,_0x125971['item']));return{..._0x23daac,'results':_0x3d5722};},_0x13d32a);}['_isInDeletionRange'](_0x196241,_0x5c4582){const _0x510d21=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5c4582,_0x196241['start']),this['editor']['model']['createPositionAt'](_0x5c4582,_0x196241['end']));for(const _0x30a726 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x510d21['getIntersection'](_0x30a726['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x8725f3{['afterInit'](){const _0x585f2b=this['editor']['locale'],_0x3f8d64=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x347415,commandName:_0x3e28fd}of eo)this['editor']['plugins']['has'](_0x347415)&&(_0x3f8d64['enableDefaultAttributesIntegration'](_0x3e28fd),_0x3f8d64['registerInlineAttribute'](_0x3e28fd));_0x3f8d64['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x585f2b,'FORMAT_FONT_SIZE')),_0x3f8d64['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x585f2b,'FORMAT_FONT_FAMILY')),_0x3f8d64['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x585f2b,'FORMAT_FONT_COLOR')),_0x3f8d64['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x585f2b,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b1d49=this['editor'],_0xd435a8=_0x3b1d49['locale'];_0x3b1d49['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4328de=>{const _0x5d46a1=_0xd435a8['t'];if('formatInline'!=_0x4328de['type'])return;const {data:_0x11fbee}=_0x4328de;if(null!=_0x11fbee){if('fontSize'==_0x11fbee['commandName']){const _0x1502e7=_0x11fbee['commandParams'][0x0]['value'];if(_0x1502e7){const _0x274b0c=_0x5d46a1(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5e7822=>_0x5e7822['model']==_0x1502e7)['title'])['toLowerCase']();return{'type':'format','content':o(_0xd435a8,'*Set\x20font\x20size:*\x20%0',_0x274b0c)};}return{'type':'format','content':o(_0xd435a8,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x11fbee['commandName']){const _0x3bad0f=_0x11fbee['commandParams'][0x0]['value'];return _0x3bad0f?{'type':'format','content':o(_0xd435a8,'*Set\x20font\x20family:*\x20%0',_0x3bad0f)}:{'type':'format','content':o(_0xd435a8,'*Reset\x20font\x20family*')};}if('fontColor'==_0x11fbee['commandName']){const _0x5c0e27=_0x11fbee['commandParams'][0x0]['value'];if(_0x5c0e27){const _0x891999=_0x13ed01(this['editor']['config']['get']('fontColor.colors'))['find'](_0x585498=>_0x585498['model']==_0x5c0e27);let _0x4f617c=_0x5c0e27,_0x919833='';return _0x891999&&(_0x4f617c=_0x891999['label'],_0x919833=_0x5d46a1(_0x4f617c)['toLowerCase']()),{'type':'format','content':o(_0xd435a8,'*Set\x20font\x20color:*\x20%0',_0x919833)['trim'](),'color':{'value':_0x5c0e27,'title':_0x919833||_0x4f617c}};}return{'type':'format','content':o(_0xd435a8,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x11fbee['commandName']){const _0x283be0=_0x11fbee['commandParams'][0x0]['value'];if(_0x283be0){const _0x3f0914=_0x13ed01(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1ff107=>_0x1ff107['model']==_0x283be0);let _0x36ac80=_0x283be0,_0x1a45cd='';return _0x3f0914&&(_0x36ac80=_0x3f0914['label'],_0x1a45cd=_0x5d46a1(_0x36ac80)['toLowerCase']()),{'type':'format','content':o(_0xd435a8,'*Set\x20font\x20background\x20color:*\x20%0',_0x1a45cd)['trim'](),'color':{'value':_0x283be0,'title':_0x1a45cd||_0x36ac80}};}return{'type':'format','content':o(_0xd435a8,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x8725f3{['afterInit'](){const _0x35509c=this['editor'],_0x6c75ca=_0x35509c['plugins']['get']('TrackChangesEditing'),_0x27d84e=_0x35509c['commands']['get']('copyFormat'),_0xf577f6=_0x35509c['commands']['get']('pasteFormat');_0x27d84e&&_0xf577f6&&(_0x6c75ca['enableDefaultAttributesIntegration']('pasteFormat'),_0x6c75ca['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x203ed5=this['editor'],_0x3988f3=_0x203ed5['locale'];_0x203ed5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x485002=>{if('formatBlock'!=_0x485002['type']&&'formatInline'!=_0x485002['type'])return;const {data:_0x2c356d}=_0x485002;if(_0x2c356d&&'pasteFormat'===_0x2c356d['commandName']){const _0x1814cb=[],_0x448d6c=_0x2c356d['commandParams'][0x0];for(const [_0x24988a,_0x19b334]of Object['entries'](_0x448d6c))_0x1814cb['push'](ro(_0x203ed5,_0x24988a,_0x19b334));return _0x1814cb['length']?{'type':'format','content':o(_0x3988f3,'*Set\x20format\x20to:*\x20%0',_0x1814cb['join'](',\x20'))}:{'type':'format','content':o(_0x3988f3,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x1b2df2,_0x264f63,_0x4f0221){const _0x53b1b2=_0x1b2df2['locale']['t'],_0x422bcb=_0x264f63['split'](/(?=[A-Z])/)['join']('\x20'),_0xab20ba=_0x53b1b2(_0x422bcb['charAt'](0x0)['toUpperCase']()+_0x422bcb['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4f0221)return _0xab20ba;if('fontColor'===_0x264f63||'fontBackgroundColor'===_0x264f63){const _0x88887d=_0x13ed01(_0x1b2df2['config']['get']('fontColor.colors'))['find'](_0x2ced93=>_0x2ced93['model']==_0x4f0221);return _0xab20ba+'\x20('+(_0x88887d?_0x53b1b2(_0x88887d['label'])['toLowerCase']():_0x4f0221)+')';}if('fontSize'===_0x264f63&&isNaN(parseFloat(_0x4f0221))){const _0x18f727=_0x1b2df2['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1b2df2['config']['get']('fontSize.options'))['find'](_0x97ec56=>_0x97ec56['model']==_0x4f0221);return _0xab20ba+'\x20('+(_0x18f727?_0x53b1b2(_0x18f727['title'])['toLowerCase']():_0x4f0221)+')';}return _0xab20ba+'\x20('+_0x4f0221+')';}class Z extends _0x8725f3{['_headingOptions'];['afterInit'](){const _0x120e04=this['editor'];if(!_0x120e04['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x120e04['config']['get']('heading.options');const _0x222d3b=_0x120e04['locale'],_0x51c4a1=_0x120e04['plugins']['get']('TrackChangesEditing');_0x51c4a1['enableDefaultAttributesIntegration']('heading');for(const _0x56822c of this['_headingOptions'])'paragraph'!=_0x56822c['model']&&_0x51c4a1['descriptionFactory']['registerElementLabel'](_0x56822c['model'],_0x19ca15=>{const _0x228899=this['_getHeadingLevel'](_0x56822c['model']);return null!==_0x228899?_0x146105(_0x19ca15,_0x228899):_0x197552(_0x19ca15,_0x56822c['title']);});function _0x146105(_0x4a772f,_0x1b3498){return o(_0x222d3b,'ELEMENT_HEADING',[_0x4a772f,_0x1b3498]);}function _0x197552(_0x5efd6c,_0x704d78){return o(_0x222d3b,'ELEMENT_HEADING_CUSTOM',[_0x5efd6c,_0x704d78]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x472729=this['editor'],_0x231bec=_0x472729['locale'];function _0x4db30b(_0x47561c,_0x279d09){return o(_0x231bec,'ELEMENT_HEADING_CUSTOM',[_0x47561c,_0x279d09]);}_0x472729['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b1bf8=>{if('formatBlock'!=_0x4b1bf8['type'])return;const {data:_0xff5457}=_0x4b1bf8;if(_0xff5457&&'heading'==_0xff5457['commandName']){const _0x59bb00=_0xff5457['commandParams'][0x0]['value'],_0xa9d9c4=this['_getHeadingLevel'](_0x59bb00);if(null!==_0xa9d9c4)return{'type':'format','content':o(_0x231bec,'*Change\x20to:*\x20%0',(_0x3f267c=0x1,_0x44efb8=_0xa9d9c4,o(_0x231bec,'ELEMENT_HEADING',[_0x3f267c,_0x44efb8])))};const _0x235932=this['_headingOptions']['find'](_0x7e654b=>_0x7e654b['model']===_0x59bb00)['title'];return{'type':'format','content':o(_0x231bec,'*Change\x20to:*\x20%0',_0x4db30b(0x1,_0x235932))};}var _0x3f267c,_0x44efb8;});}['_getHeadingLevel'](_0x3cedfa){const _0x2f67bb=_0x3cedfa['match'](/^heading(\d+)/);if(_0x2f67bb)return _0x2f67bb[0x1];const _0x1dc258=this['_headingOptions']?.['find'](_0xa90ca4=>_0xa90ca4['model']==_0x3cedfa);if(_0x1dc258&&_0x1dc258['view']){const _0xa4f769=_0x1dc258['view'],_0x270654=(_0xa4f769['name']??_0xa4f769)['match'](/^h(\d+)/);if(_0x270654)return _0x270654[0x1];}return null;}}class tt extends _0x8725f3{['afterInit'](){const _0x53637f=this['editor'];if(!_0x53637f['plugins']['has']('HighlightEditing'))return;const _0x4a9513=_0x53637f['plugins']['get']('TrackChangesEditing'),_0x21218c=_0x53637f['locale'];_0x4a9513['enableDefaultAttributesIntegration']('highlight'),_0x4a9513['registerInlineAttribute']('highlight'),_0x4a9513['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x21218c,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2867cd=this['editor'],_0x4fd40f=_0x2867cd['locale'];_0x2867cd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37ea68=>{if('formatInline'!=_0x37ea68['type'])return;const {data:_0x5661f9}=_0x37ea68;if(_0x5661f9&&'highlight'==_0x5661f9['commandName']){const _0x322660=_0x4fd40f['t'],_0x709d32=_0x5661f9['commandParams'][0x0]['value'];if(_0x709d32){const _0x374040=_0x2867cd['config']['get']('highlight.options')['find'](_0xdd1195=>_0xdd1195['model']==_0x709d32),_0x21f436=_0x322660(_0x374040['title'])['toLowerCase']();return{'type':'format','content':o(_0x4fd40f,'*Set\x20highlight:*\x20%0',_0x21f436),'color':{'value':_0x374040['color'],'title':_0x374040['title']}};}return{'type':'format','content':o(_0x4fd40f,'*Remove\x20highlight*',o(_0x4fd40f,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x8725f3{['afterInit'](){const _0x38bfd4=this['editor'];if(!_0x38bfd4['plugins']['has']('HorizontalLineEditing'))return;_0x38bfd4['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xef14d2=_0x38bfd4['plugins']['get']('TrackChangesEditing'),_0x3ba134=_0x38bfd4['locale'];_0xef14d2['descriptionFactory']['registerElementLabel']('horizontalLine',_0x124be8=>o(_0x3ba134,'ELEMENT_HORIZONTAL_LINE',_0x124be8)),_0x38bfd4['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x11cdab,{writer:_0x3bb413,options:_0x5ef6fc})=>{if(!_0x5ef6fc['showSuggestionHighlights'])return null;const _0x569983=_0x3bb413['createContainerElement']('div'),_0x4547a1=_0x3bb413['createEmptyElement']('hr');return _0x3bb413['addClass']('ck-horizontal-line',_0x569983),_0x3bb413['insert'](_0x3bb413['createPositionAt'](_0x569983,0x0),_0x4547a1),_0x569983;},'converterPriority':'high'});}}class nt extends _0x8725f3{['afterInit'](){const _0xf8bde8=this['editor'];if(!_0xf8bde8['plugins']['has']('HtmlEmbed'))return;const _0x5dfd7f=_0xf8bde8['plugins']['get']('TrackChangesEditing'),_0x4c3501=_0xf8bde8['locale'];_0x5dfd7f['descriptionFactory']['registerElementLabel']('rawHtml',_0x5a485a=>o(_0x4c3501,'ELEMENT_HTML_EMBED',_0x5a485a)),_0x5dfd7f['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5dfd7f['registerBlockAttribute']('value'),_0x5dfd7f['descriptionFactory']['registerDescriptionCallback'](_0x483e6c=>{if('attribute'!=_0x483e6c['type'])return;const {data:_0x55c821}=_0x483e6c;if(_0x55c821&&'value'==_0x55c821['key']&&_0x483e6c['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x475c50=o(_0x4c3501,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4c3501,'*Change\x20%0\x20content*',_0x475c50)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x105bf5=this['editor'],_0x1461f4=_0x105bf5['locale'];_0x105bf5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f802e=>{if('formatBlock'!=_0x1f802e['type'])return;const {data:_0x3a659b}=_0x1f802e;if(_0x3a659b&&'htmlEmbed'==_0x3a659b['commandName']){const _0x2ce7cf=o(_0x1461f4,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1461f4,'*Change\x20%0\x20content*',_0x2ce7cf)};}});}}class et extends _0x8725f3{['afterInit'](){const _0x430915=this['editor'];if(!_0x430915['plugins']['has']('ImageEditing'))return;const _0x18f640=_0x430915['plugins']['get']('TrackChangesEditing'),_0x246192=_0x430915['plugins']['get']('ImageUtils'),_0x1c7e51=_0x430915['locale'];_0x18f640['enableCommand']('insertImage'),_0x18f640['descriptionFactory']['registerElementLabel']('imageBlock',_0x41a094=>o(_0x1c7e51,'ELEMENT_IMAGE',_0x41a094)),_0x18f640['descriptionFactory']['registerElementLabel']('imageInline',_0x56c703=>o(_0x1c7e51,'ELEMENT_INLINE_IMAGE',_0x56c703)),_0x18f640['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1c7e51,'ELEMENT_CAPTION')),_0x430915['plugins']['has']('ImageUploadEditing')&&_0x18f640['enableCommand']('uploadImage'),_0x430915['plugins']['has']('ImageBlockEditing')&&_0x430915['plugins']['has']('ImageInlineEditing')&&(_0x18f640['enableCommand']('imageTypeInline',(_0x1a765c,_0x2f7860)=>{const _0x47acf8=_0x246192['getClosestSelectedImageElement'](_0x430915['model']['document']['selection']);_0x430915['model']['change'](()=>{_0x18f640['markBlockFormat'](_0x47acf8,{'commandName':'imageTypeInline','commandParams':[_0x2f7860]},[],'convertBlockImageToInline');});}),_0x18f640['enableCommand']('imageTypeBlock',(_0xc9f583,_0x53eb45)=>{_0x430915['model']['change'](_0x3301a9=>{let _0x2bab79=_0x246192['getClosestSelectedImageElement'](_0x430915['model']['document']['selection']),_0x408f81=_0x3301a9['createRangeOn'](_0x2bab79);const _0x322d8e=_0x5ebc95['fromPosition'](_0x408f81['start'],'toPrevious'),_0x60ba04=_0x5ebc95['fromPosition'](_0x408f81['end'],'toNext');_0x18f640['forceDefaultExecution'](()=>_0xc9f583(_0x53eb45)),_0x2bab79=_0x246192['getClosestSelectedImageElement'](_0x430915['model']['document']['selection']),_0x408f81=_0x3301a9['createRangeOn'](_0x2bab79);const _0x19cacb=_0x3301a9['createRange'](_0x322d8e,_0x60ba04);_0x322d8e['detach'](),_0x60ba04['detach'](),_0x18f640['markBlockFormat'](_0x2bab79,{'commandName':'imageTypeInline','commandParams':[_0x53eb45]},[],'convertInlineImageToBlock'),_0x19cacb['start']['isBefore'](_0x408f81['start'])&&_0x18f640['markInsertion'](_0x3301a9['createRange'](_0x19cacb['start'],_0x408f81['start']),'convertInlineImageToBlock'),_0x408f81['end']['isBefore'](_0x19cacb['end'])&&_0x18f640['markInsertion'](_0x3301a9['createRange'](_0x408f81['end'],_0x19cacb['end']),'convertInlineImageToBlock');});}),_0x18f640['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x18f640['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x18f640['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x18f640['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x18f640['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x18f640['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1a9298])=>{const _0x3b24f7=_0x18f640['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x16da7f=_0x1a9298['start'],_0xd3d758=_0x1a9298['end'];const _0x1b3322=_0x430915['model']['schema']['getNearestSelectionRange'](_0x16da7f,'backward'),_0x164b85=_0x430915['model']['schema']['getNearestSelectionRange'](_0xd3d758,'forward');_0x1b3322['isCollapsed']&&(_0x16da7f=_0x1b3322['start']),_0x164b85['isCollapsed']&&(_0xd3d758=_0x164b85['end']),_0x3b24f7([_0x430915['model']['createRange'](_0x16da7f,_0xd3d758)]);}),_0x18f640['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3386d1),_0x18f640['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3386d1)),_0x430915['plugins']['has']('ImageCaptionEditing')&&(_0x18f640['enableCommand']('toggleImageCaption',(_0x4f52ba,_0x4760bf)=>{const _0x1a09e8=_0x430915['plugins']['get']('ImageCaptionUtils');let _0x202c0a=_0x246192['getClosestSelectedImageElement'](_0x430915['model']['document']['selection']),_0x25cb17=_0x1a09e8['getCaptionFromImageModelElement'](_0x202c0a);_0x430915['model']['change'](()=>{if(_0x25cb17)return void _0x18f640['markDeletion'](_0x430915['model']['createRangeOn'](_0x25cb17));const _0x10e43b=_0x246192['isBlockImage'](_0x202c0a);_0x4f52ba(_0x4760bf),_0x202c0a=_0x246192['getClosestSelectedImageElement'](_0x430915['model']['document']['selection']),_0x25cb17=_0x1a09e8['getCaptionFromImageModelElement'](_0x202c0a),_0x18f640['markInsertion'](_0x430915['model']['createRangeOn'](_0x25cb17),_0x10e43b?null:'imageCaption');});}),_0x18f640['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3386d1));const _0x23ed0e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x154b79(_0x58a1d6,_0x6c5c5){const _0x1c6497=_0x23ed0e['findIndex'](({type:_0x29ee41,subType:_0x486843})=>_0x58a1d6['type']==_0x29ee41&&_0x58a1d6['subType']==_0x486843),_0x46f360=_0x23ed0e['findIndex'](({type:_0x4b830a,subType:_0x5ea85c})=>_0x6c5c5['type']==_0x4b830a&&_0x6c5c5['subType']==_0x5ea85c);if(_0x1c6497<0x0||_0x46f360<0x0)return!0x1;const _0x1da8b9=_0x58a1d6['getFirstRange'](),_0x8f026f=_0x6c5c5['getFirstRange']();if((0x0==_0x1c6497||0x1==_0x1c6497)&&0x2==_0x46f360&&_0x1da8b9['isIntersecting'](_0x8f026f))return!0x0;if(0x2==_0x1c6497&&0x3==_0x46f360){const _0x2c38c6=_0x18f640['_findSuggestions'](_0x1da8b9,'insertion')['filter'](({suggestion:_0x212a75,meta:_0x528fc8})=>_0x528fc8['isOwn']&&'convertInlineImageToBlock'==_0x212a75['subType']);if(_0x2c38c6['length']>0x1&&_0x8f026f['end']['isEqual'](_0x1da8b9['start']))return!0x0;if(0x1==_0x2c38c6['length']&&(_0x1da8b9['start']['isEqual'](_0x8f026f['end'])||_0x1da8b9['end']['isEqual'](_0x8f026f['start'])))return!0x0;}if(0x3==_0x1c6497&&0x3==_0x46f360&&_0x1da8b9['start']['isBefore'](_0x8f026f['start'])){const _0x2a44b8=_0x1da8b9['end']['nodeAfter'],_0x447cd8=_0x8f026f['start']['nodeBefore'];return _0x246192['isBlockImage'](_0x2a44b8)&&_0x2a44b8===_0x447cd8;}return!0x1;}function _0x3386d1(_0x5cc7e0,_0x23cf2b){return _0x154b79(_0x5cc7e0,_0x23cf2b)?[_0x5cc7e0,_0x23cf2b]:_0x154b79(_0x23cf2b,_0x5cc7e0)?[_0x23cf2b,_0x5cc7e0]:null;}_0x430915['plugins']['has']('ImageResize')&&(_0x18f640['enableDefaultAttributesIntegration']('resizeImage'),_0x18f640['registerBlockAttribute']('resizedWidth'),_0x18f640['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1c7e51,'FORMAT_IMAGE_SIZE'))),_0x430915['plugins']['has']('ImageTextAlternativeEditing')&&(_0x18f640['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x18f640['registerBlockAttribute']('alt')),_0x430915['plugins']['has']('PictureEditing')&&(_0x18f640['registerBlockAttribute']('sources'),_0x18f640['descriptionFactory']['registerDescriptionCallback'](_0x1a92be=>{if('attribute'!=_0x1a92be['type'])return;const {data:_0x3429e4}=_0x1a92be;return _0x3429e4&&'sources'==_0x3429e4['key']?{'type':'format','content':''}:void 0x0;})),_0x430915['plugins']['has']('ImageSizeAttributes')&&(_0x18f640['registerBlockAttribute']('width'),_0x18f640['registerBlockAttribute']('height'),_0x18f640['descriptionFactory']['registerDescriptionCallback'](_0x1e1c97=>{if('attribute'!=_0x1e1c97['type'])return;const {data:_0x3e0651}=_0x1e1c97;return!_0x3e0651||'width'!=_0x3e0651['key']&&'height'!=_0x3e0651['key']?void 0x0:{'type':'format','content':''};})),_0x18f640['descriptionFactory']['registerDescriptionCallback'](_0x485909=>{if(!!_0x23ed0e['find'](({type:_0x33fe90,subType:_0x2e72e6})=>_0x485909['type']==_0x33fe90&&_0x485909['subType']==_0x2e72e6))return _0x485909['previous']?{}:void 0x0;}),_0x18f640['descriptionFactory']['registerDescriptionCallback'](_0x258b6a=>{if('insertion'==_0x258b6a['type']||'deletion'==_0x258b6a['type']){const _0x492497=_0x258b6a['getContainedElement']();if(_0x492497&&_0x492497['is']('element','caption'))return{'type':'insertion'==_0x258b6a['type']?'addObject':'removeObject','element':_0x492497,'quantity':0x1};}}),_0x18f640['descriptionFactory']['registerDescriptionCallback'](_0x228ebd=>'formatBlock'==_0x228ebd['type']&&'convertInlineImageToBlock'==_0x228ebd['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x228ebd['type']&&'convertBlockImageToInline'==_0x228ebd['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x18f640['descriptionFactory']['registerDescriptionCallback'](_0xdd31c6=>{if('attribute'!=_0xdd31c6['type'])return;const {data:_0x4fe6db}=_0xdd31c6;if(!_0x4fe6db||'alt'!=_0x4fe6db['key'])return;const _0x1d369a=_0x4fe6db['newValue'];return _0x1d369a?{'type':'format','content':o(_0x1c7e51,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1d369a+'\x22')}:{'type':'format','content':o(_0x1c7e51,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19a2b0=this['editor'],_0x4df3bc=_0x19a2b0['locale'];_0x19a2b0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f8c92=>{if('formatBlock'!=_0x3f8c92['type']&&'formatInline'!=_0x3f8c92['type'])return;const {data:_0x5c1782}=_0x3f8c92;if(_0x5c1782){if('imageTextAlternative'==_0x5c1782['commandName']){const _0x199a8e=_0x5c1782['commandParams'][0x0]['newValue'];return _0x199a8e?{'type':'format','content':o(_0x4df3bc,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x199a8e+'\x22')}:{'type':'format','content':o(_0x4df3bc,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x5c1782['commandName']){const _0x32138d=_0x5c1782['commandParams'][0x0]['width'];return _0x32138d?{'type':'format','content':o(_0x4df3bc,'*Set\x20image\x20width:*\x20%0',_0x32138d)}:{'type':'format','content':o(_0x4df3bc,'*Reset\x20image\x20width*')};}}});}}class st extends _0x8725f3{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5de266=this['editor']['locale'],_0x31a4ca=this['editor']['plugins']['get']('TrackChangesEditing');_0x31a4ca['enableDefaultAttributesIntegration']('replaceImageSource'),_0x31a4ca['registerBlockAttribute']('src'),_0x31a4ca['descriptionFactory']['registerDescriptionCallback'](_0x2eafd2=>{if('attribute'!=_0x2eafd2['type'])return;const {data:_0x3e962e}=_0x2eafd2;return _0x3e962e&&'src'==_0x3e962e['key']?_0x3e962e['newValue']&&_0x3e962e['oldValue']?{'type':'format','content':o(_0x5de266,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x50bafe=this['editor']['plugins']['get']('TrackChangesEditing');_0x50bafe['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x50bafe['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x50bafe['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x50bafe['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c1c59=this['editor'],_0x3d65e7=_0x4c1c59['locale'];_0x4c1c59['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x222754=>{if('formatBlock'!=_0x222754['type']&&'formatInline'!=_0x222754['type'])return;const {data:_0x1ef6b1}=_0x222754;if(!_0x1ef6b1||'replaceImageSource'!=_0x1ef6b1['commandName'])return;return{'type':'format','content':o(_0x3d65e7,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x8725f3{['afterInit'](){const _0x2b757f=this['editor'];if(!_0x2b757f['plugins']['has']('ImageStyleEditing'))return;const _0x3f8198=_0x2b757f['plugins']['get']('TrackChangesEditing'),_0x11a6bf=_0x2b757f['plugins']['get']('ImageUtils'),_0x1aa7e4={};_0x3f8198['enableCommand']('imageStyle',(_0x54fbaf,_0x438c28)=>{const _0x32c940=_0x2b757f['plugins']['get']('Users')['me'],_0x5126a5=_0x2b757f['commands']['get']('imageStyle');let _0x41cd3b=_0x11a6bf['getClosestSelectedImageElement'](_0x2b757f['model']['document']['selection']),_0x516e47=_0x2b757f['model']['createRangeOn'](_0x41cd3b),_0x441cb4=_0x5126a5['value'];if(_0x441cb4==_0x438c28['value'])return;const _0x569a49={'commandName':'imageStyle','commandParams':[_0x438c28],'formatGroupId':_0xd0f9be()};_0x2b757f['model']['change'](()=>{if(_0x3f8198['getSuggestions']()['filter'](_0x435334=>_0x435334['isInContent']&&_0x32c940==_0x435334['author']&&('formatBlock'==_0x435334['type']||'formatInline'==_0x435334['type'])&&('imageStylePreApply'==_0x435334['subType']||'imageStylePostApply'==_0x435334['subType'])&&_0x435334['getFirstRange']()['isEqual'](_0x516e47))['forEach'](_0x1b2e6a=>_0x3f8198['discardSuggestion'](_0x1b2e6a['head'])),_0x41cd3b=_0x11a6bf['getClosestSelectedImageElement'](_0x2b757f['model']['document']['selection']),_0x516e47=_0x2b757f['model']['createRangeOn'](_0x41cd3b),_0x5126a5['refresh'](),_0x2b757f['commands']['get']('imageTypeInline')['refresh'](),_0x2b757f['commands']['get']('imageTypeBlock')['refresh'](),_0x441cb4=_0x5126a5['value'],_0x441cb4!=_0x438c28['value'])return _0x11a6bf['isInlineImage'](_0x41cd3b)&&_0x5126a5['shouldConvertImageType'](_0x438c28['value'],_0x41cd3b)?(_0x54fbaf({..._0x438c28,'setImageSizes':!0x1}),_0x41cd3b=_0x11a6bf['getClosestSelectedImageElement'](_0x2b757f['model']['document']['selection']),void _0x3f8198['markBlockFormat'](_0x41cd3b,{..._0x569a49,'commandReversedParams':[{'value':_0x441cb4||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x11a6bf['isBlockImage'](_0x41cd3b)?_0x3f8198['markBlockFormat'](_0x41cd3b,_0x569a49,[],'imageStylePostApply'):_0x3f8198['markInlineFormat'](_0x516e47,_0x569a49,'imageStylePostApply'));});});for(const _0x94a831 of _0x2b757f['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1aa7e4[_0x94a831['name']]=_0x94a831['title']['toLowerCase']();_0x3f8198['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3f8198['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3f8198['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3f8198['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x570312])=>{_0x11a6bf['setImageNaturalSizeAttributes'](_0x570312['getContainedElement']());}),_0x3f8198['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5eb075,_0x12bc7e)=>{_0x3f8198['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5eb075,{'commandName':_0x12bc7e['commandName'],'commandParams':_0x12bc7e['commandReversedParams']});}),_0x3f8198['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xc61a3,_0x4e2429){if(_0x16658a(_0xc61a3,_0x4e2429))return[_0xc61a3,_0x4e2429];if(_0x16658a(_0x4e2429,_0xc61a3))return[_0x4e2429,_0xc61a3];return null;});const _0x96dff5=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x16658a(_0x5e2b36,_0x22c15b){const _0xdcc9e1=_0x96dff5['findIndex'](({type:_0x12595b,subType:_0x4c08e3})=>_0x5e2b36['type']==_0x12595b&&_0x5e2b36['subType']==_0x4c08e3),_0x25effe=_0x96dff5['findIndex'](({type:_0x371b9b,subType:_0xb7e94a})=>_0x22c15b['type']==_0x371b9b&&_0x22c15b['subType']==_0xb7e94a);if(_0xdcc9e1<0x0||_0x25effe<0x0)return!0x1;const _0x4b7d9a=_0x5e2b36['getFirstRange'](),_0x50e1f2=_0x22c15b['getFirstRange']();if((0x0==_0xdcc9e1||0x1==_0xdcc9e1)&&0x2==_0x25effe&&_0x4b7d9a['isIntersecting'](_0x50e1f2))return!0x0;if(0x2==_0xdcc9e1&&0x3==_0x25effe){const _0x2c4eaa=_0x3f8198['_findSuggestions'](_0x4b7d9a,'insertion')['filter'](({suggestion:_0x66e0d9,meta:_0x4afc12})=>_0x4afc12['isOwn']&&'convertInlineImageToBlock'==_0x66e0d9['subType']);if(_0x2c4eaa['length']>0x1&&_0x50e1f2['end']['isEqual'](_0x4b7d9a['start']))return!0x0;if(0x1==_0x2c4eaa['length']&&(_0x4b7d9a['start']['isEqual'](_0x50e1f2['end'])||_0x4b7d9a['end']['isEqual'](_0x50e1f2['start'])))return!0x0;}if(0x3==_0xdcc9e1&&0x3==_0x25effe&&_0x4b7d9a['start']['isBefore'](_0x50e1f2['start'])){const _0x340014=_0x4b7d9a['end']['nodeAfter'],_0x501f5b=_0x50e1f2['start']['nodeBefore'];return _0x11a6bf['isBlockImage'](_0x340014)&&_0x340014===_0x501f5b;}return!0x1;}_0x2b757f['model']['document']['registerPostFixer'](()=>{let _0xc1701e=!0x1;const _0x2822ac=Array['from'](_0x2b757f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x28817d,data:_0x1d3a57}of _0x2822ac){const {group:_0x17767e,type:_0x5e059,subType:_0x4fbdb3,id:_0x215a01}=_0x3f8198['_splitMarkerName'](_0x28817d);if('suggestion'==_0x17767e&&_0x3f8198['hasSuggestion'](_0x215a01)){if('formatBlock'==_0x5e059&&('imageStylePreApply'==_0x4fbdb3||'imageStylePostApply'==_0x4fbdb3)){const _0x395558=_0x3f8198['getSuggestion'](_0x215a01);if(_0x1d3a57['newRange']){const _0x265f1b=_0x395558['getFirstRange']()['getContainedElement']();if(_0x11a6bf['isBlockImage'](_0x265f1b))continue;_0x3f8198['discardSuggestion'](_0x395558),_0xc1701e=!0x0;}}if('insertion'==_0x5e059&&'imageCaption'==_0x4fbdb3&&!_0x1d3a57['newRange']){const _0x532d64=_0x3f8198['getSuggestion'](_0x215a01);_0x532d64['next']&&_0x532d64['next']['isInContent']&&(_0x3f8198['discardSuggestion'](_0x532d64['next']),_0xc1701e=!0x0);}}}return _0xc1701e;}),this['_registerLegacyDescription'](_0x1aa7e4);}['_registerLegacyDescription'](_0x244dbd){const _0x2113f9=this['editor'],_0x5b1665=_0x2113f9['locale'];_0x2113f9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57abaa=>{if('formatBlock'!=_0x57abaa['type']&&'formatInline'!=_0x57abaa['type'])return;const {data:_0x4c24e9}=_0x57abaa;if(!_0x4c24e9||'imageStyle'!=_0x4c24e9['commandName'])return;const _0x4a1832=_0x4c24e9['commandParams'][0x0]['value'];return _0x3a916e('side'===_0x4a1832?o(_0x5b1665,'FORMAT_SIDE_IMAGE'):_0x244dbd[_0x4a1832]||_0x4a1832);function _0x3a916e(_0x2db7fb){return{'type':'format','content':o(_0x5b1665,'*Format:*\x20%0',_0x2db7fb)};}});}}class rt extends _0x8725f3{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5a44de){super(_0x5a44de),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1f2bae=this['editor'],_0x13ec6f=_0x1f2bae['commands']['get']('importWord'),_0x185ec8=_0x1f2bae['commands']['get']('trackChanges');_0x13ec6f&&(_0x13ec6f['on']('execute',(_0x5a8b53,[,_0x48736d])=>{this['_trackChangesValueDuringImport']=_0x185ec8['value'],_0x48736d['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x13ec6f,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x13ec6f,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x185ec8['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1f2bae['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x226961,_0xee309d){const {suggestions:_0x201529}=_0xee309d,_0x2ebc75=this['editor']['commands']['get']('trackChanges'),_0x2f663e=_0x2ebc75['value'];this['_trackChangesValueDuringImport']!==_0x2f663e&&(_0x2ebc75['execute'](),this['_trackChangesExecuted']=!0x0),_0x201529&&_0x201529['forEach'](({id:_0x143977,type:_0x430319,author:_0x3de9a3,created_at:_0x9f8940})=>{const _0x99dd40={'id':_0x143977,'type':_0x430319,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3de9a3,'createdAt':_0x9f8940?new Date(_0x9f8940):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x99dd40);});}}class at extends _0x8725f3{['afterInit'](){const _0x133af7=this['editor'],_0x1cf589=_0x133af7['plugins']['get']('TrackChangesEditing');if(_0x133af7['plugins']['has']('IndentEditing')&&(_0x1cf589['enableCommand']('indent'),_0x1cf589['enableCommand']('outdent')),_0x133af7['plugins']['has']('IndentBlock')){for(const _0x532dd1 of['indentBlock','outdentBlock'])_0x1cf589['enableDefaultAttributesIntegration'](_0x532dd1);}const _0x238ecc=_0x133af7['locale'];_0x1cf589['registerBlockAttribute']('blockIndent'),_0x1cf589['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x238ecc,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcf91cd=this['editor'],_0x17d86b=_0xcf91cd['locale'],_0x12ea55=_0xcf91cd['plugins']['get']('TrackChangesEditing');_0x12ea55['descriptionFactory']['registerDescriptionCallback'](_0x1660f8=>{if('formatBlock'!=_0x1660f8['type'])return;const {data:_0x3d32c3}=_0x1660f8;if(!_0x3d32c3)return;if('indentBlock'!=_0x3d32c3['commandName']&&'outdentBlock'!=_0x3d32c3['commandName'])return;const _0xc52f27=_0x1660f8['getItems']()[0x0],_0x14c316=_0x12ea55['descriptionFactory']['getItemLabel'](_0xc52f27);return'indentBlock'==_0x3d32c3['commandName']?{'type':'format','content':o(_0x17d86b,'*Indent:*\x20%0',_0x14c316)}:'outdentBlock'==_0x3d32c3['commandName']?{'type':'format','content':o(_0x17d86b,'*Outdent:*\x20%0',_0x14c316)}:void 0x0;});}}class ct extends _0x8725f3{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x8725f3{['afterInit'](){const _0x46a1af=this['editor'];if(!_0x46a1af['plugins']['has']('LinkEditing'))return;const _0xb0a204=_0x46a1af['plugins']['get']('TrackChangesEditing'),_0x37efe8=_0x46a1af['commands']['get']('link');_0xb0a204['enableDefaultAttributesIntegration']('link'),_0xb0a204['enableDefaultAttributesIntegration']('unlink'),_0xb0a204['registerInlineAttribute']('linkHref');for(const _0x16ce00 of _0x37efe8['manualDecorators'])_0xb0a204['registerInlineAttribute'](_0x16ce00['id']),_0xb0a204['descriptionFactory']['registerAttributeLabel'](_0x16ce00['id'],'link\x20('+_0x16ce00['label']['toLowerCase']()+')');_0xb0a204['descriptionFactory']['registerDescriptionCallback'](_0x4cbca0=>{if('attribute'!=_0x4cbca0['type'])return;const {data:_0x1d7a29}=_0x4cbca0;if(!_0x1d7a29||'linkHref'!=_0x1d7a29['key'])return;const _0x80dd5d=_0x1d7a29['newValue'],_0x3f41fc=_0x46a1af['locale'];return{'type':'format','content':null==_0x80dd5d?o(_0x3f41fc,'*Remove\x20link*'):o(_0x3f41fc,'*Set\x20link:*\x20%0','\x22'+_0x80dd5d+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c2f76=this['editor'],_0x4ac9dc=_0x1c2f76['locale'];_0x1c2f76['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c61fc=>{if('formatInline'!=_0x4c61fc['type'])return;const {data:_0x3ef3da}=_0x4c61fc;if(_0x3ef3da){if('link'==_0x3ef3da['commandName']){const _0x2aac75=_0x3ef3da['commandParams'][0x0];return{'type':'format','content':o(_0x4ac9dc,'*Set\x20link:*\x20%0','\x22'+_0x2aac75+'\x22')};}return'unlink'==_0x3ef3da['commandName']?{'type':'format','content':o(_0x4ac9dc,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x8725f3{['afterInit'](){const _0x166d1c=this['editor'],_0x5cfdf1=_0x166d1c['locale'];if(!_0x166d1c['plugins']['has']('LegacyListEditing'))return;const _0x22ff3f=_0x166d1c['plugins']['get']('TrackChangesEditing'),_0x2deb59=_0x166d1c['plugins']['has']('LegacyTodoListEditing');function _0x471182(_0x689c49){return()=>{const _0x5b3f0a=_0x166d1c['model']['document']['selection'],_0x5ca7ec=_0x166d1c['commands']['get'](_0x689c49);if(_0x5ca7ec['value'])return void _0x166d1c['execute']('paragraph',{});const _0x190342=_0x689c49['slice'](0x0,-0x4),_0x482bb1=function(_0x1e1e7a,_0x565586,_0x37debb){let _0x4dd033=Array['from'](_0x1e1e7a)['filter'](_0x5c5444=>function(_0x23add7,_0x159d58){return _0x159d58['checkChild'](_0x23add7['parent'],'listItem')&&!_0x159d58['isObject'](_0x23add7);}(_0x5c5444,_0x37debb));_0x4dd033=_0x4dd033['filter'](_0x4b3270=>!_0x4b3270['is']('element','listItem')||_0x4b3270['getAttribute']('listType')!=_0x565586);const _0x2daa39=new Set();for(const _0x1033ee of _0x4dd033)_0x1033ee['is']('element','listItem')?_0x2daa39['add'](Le(_0x1033ee)):_0x2daa39['add'](_0x1033ee);return Array['from'](_0x2daa39);}(_0x5b3f0a['getSelectedBlocks'](),_0x190342,_0x166d1c['model']['schema']);_0x166d1c['model']['change'](()=>{for(const _0x558b97 of _0x482bb1)_0x22ff3f['markBlockFormat'](_0x558b97,{'commandName':_0x689c49,'commandParams':[{'forceValue':!_0x5ca7ec['value']}],'formatGroupId':'blockName'},Ee(_0x558b97));});};}function _0x2315dc(_0x4d64c7){return()=>{const _0x4e89f1=function(_0x57cca2){let _0x3a9c29=Array['from'](_0x57cca2);const _0x106f89=_0x3a9c29['findIndex'](_0x4e2411=>'listItem'!=_0x4e2411['name']);return _0x106f89>-0x1&&(_0x3a9c29=_0x3a9c29['slice'](0x0,_0x106f89)),_0x3a9c29;}(_0x166d1c['model']['document']['selection']['getSelectedBlocks']()),_0x5e6c21=_0x166d1c['model']['createRange'](_0x166d1c['model']['createPositionAt'](_0x4e89f1[0x0],'before'),_0x166d1c['model']['createPositionAt'](_0x4e89f1[_0x4e89f1['length']-0x1],'end'));_0x166d1c['model']['change'](()=>{_0x22ff3f['markBlockFormat'](_0x5e6c21,{'commandName':_0x4d64c7,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3fd740){const _0x59459c=new Set();for(const _0x2f70fd of _0x3fd740){let _0x1f0e34=_0x2f70fd['nextSibling'];for(;_0x1f0e34&&_0x1f0e34['getAttribute']('listIndent')>_0x2f70fd['getAttribute']('listIndent');)_0x59459c['add'](_0x1f0e34),_0x1f0e34=_0x1f0e34['nextSibling'];}return Array['from'](_0x59459c);}(_0x4e89f1));});};}_0x22ff3f['enableCommand']('numberedList',_0x471182('numberedList')),_0x22ff3f['enableCommand']('bulletedList',_0x471182('bulletedList')),_0x2deb59&&_0x22ff3f['enableCommand']('todoList',_0x471182('todoList')),_0x22ff3f['enableCommand']('indentList',_0x2315dc('indentList')),_0x22ff3f['enableCommand']('outdentList',_0x2315dc('outdentList')),_0x2deb59&&_0x22ff3f['enableCommand']('checkTodoList',()=>{const _0x63f6cc=_0x166d1c['commands']['get']('checkTodoList'),_0x4038d9=Array['from'](_0x63f6cc['_selectedElements']);_0x4038d9['filter'](_0x1fe8e9=>_0x1fe8e9['getAttribute']('todoListChecked')!=_0x63f6cc['value']),_0x166d1c['model']['change'](()=>{for(const _0x58c860 of _0x4038d9)_0x22ff3f['markBlockFormat'](_0x58c860,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x63f6cc['value']}]});});}),_0x22ff3f['descriptionFactory']['registerElementLabel']('listItem',_0xcb95f7=>o(_0x5cfdf1,'ELEMENT_LIST_ITEM',_0xcb95f7)),_0x22ff3f['descriptionFactory']['registerDescriptionCallback'](_0x58ff15=>{if('formatBlock'!=_0x58ff15['type']&&'formatInline'!=_0x58ff15['type'])return;const {data:_0x273c37}=_0x58ff15;if(_0x273c37){if('numberedList'==_0x273c37['commandName']||'bulletedList'==_0x273c37['commandName']||'todoList'==_0x273c37['commandName'])switch(_0x273c37['commandName']['replace']('List','')){case'bulleted':return _0x45f867(o(_0x5cfdf1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x45f867(o(_0x5cfdf1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x45f867(o(_0x5cfdf1,'ELEMENT_TODO_LIST'));}if('indentList'==_0x273c37['commandName'])return{'type':'format','content':o(_0x5cfdf1,'*Indent:*\x20%0',o(_0x5cfdf1,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x273c37['commandName'])return{'type':'format','content':o(_0x5cfdf1,'*Outdent:*\x20%0',o(_0x5cfdf1,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x273c37['commandName'])return _0x273c37['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5cfdf1,'*Check\x20item*')}:{'type':'format','content':o(_0x5cfdf1,'*Uncheck\x20item*')};}function _0x45f867(_0x28cd72){return{'type':'format','content':o(_0x5cfdf1,'*Change\x20to:*\x20%0',_0x28cd72)};}});}}function Le(_0x3a15fa){const _0x1caf64=_0x3a15fa['getAttribute']('listIndent');if(0x0==_0x1caf64)return _0x3a15fa;let _0x113aca=_0x3a15fa;for(;_0x3a15fa['previousSibling']&&_0x3a15fa['previousSibling']['is']('element','listItem');){const _0x17afd0=_0x3a15fa['previousSibling']['getAttribute']('listIndent');if(_0x17afd0==_0x1caf64)_0x113aca=_0x3a15fa['previousSibling'];else{if(_0x17afd0<_0x1caf64)break;}_0x3a15fa=_0x3a15fa['previousSibling'];}return _0x113aca;}function Ee(_0x456d76){const _0x693138=[];if(_0x456d76['is']('element','listItem')&&_0x456d76['getAttribute']('listIndent')>0x0){let _0x509d01=_0x456d76['nextSibling'];for(;_0x509d01&&'listItem'==_0x509d01['name']&&_0x509d01['getAttribute']('listIndent')==_0x456d76['getAttribute']('listIndent');)_0x693138['push'](_0x509d01),_0x509d01=_0x509d01['nextSibling'];}return _0x693138;}class ht extends _0x8725f3{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2f00e7=this['editor']['config']['get']('list.properties'),_0x524c0c=this['editor']['plugins']['get']('TrackChangesEditing');_0x2f00e7['styles']&&_0x524c0c['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2f00e7['reversed']&&_0x524c0c['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2f00e7['startIndex']&&_0x524c0c['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x524c0c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x99a96b,_0x7262c6={}){const _0x2946f3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x24340a=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2946f3['markMultiRangeBlockFormat'](_0x24340a,{'commandName':'listStyle','commandParams':[{'type':_0x7262c6['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3b17fb,_0x2704c7={}){const _0x385721=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b3f22=this['_getSuggestionBlocks'](_0x381fc0=>_0x381fc0['is']('element','listItem')&&'numbered'===_0x381fc0['getAttribute']('listType'));if(_0x3b3f22['length']<0x1)return;const _0x5bb7d0=_0x3b3f22['map'](_0x19aaba=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x19aaba,'before'),this['editor']['model']['createPositionAt'](_0x19aaba,0x0)));this['editor']['model']['change'](()=>{_0x385721['markMultiRangeBlockFormat'](_0x5bb7d0,{'commandName':'listReversed','commandParams':[{'reversed':_0x2704c7['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x37df9b,_0x51ad47={}){const _0x599c0e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x244d30=this['_getSuggestionBlocks'](_0x47eeae=>_0x47eeae['is']('element','listItem')&&'numbered'===_0x47eeae['getAttribute']('listType'));if(_0x244d30['length']<0x1)return;const _0x128ab6=_0x244d30['map'](_0x4cdb5f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4cdb5f,'before'),this['editor']['model']['createPositionAt'](_0x4cdb5f,0x0)));this['editor']['model']['change'](()=>{_0x599c0e['markMultiRangeBlockFormat'](_0x128ab6,{'commandName':'listStart','commandParams':[{'startIndex':_0x51ad47['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x387c1c){if('formatBlock'!=_0x387c1c['type']&&'formatInline'!=_0x387c1c['type'])return;const _0x58a5d6=this['editor']['locale'],{data:_0x348c3d}=_0x387c1c;if(!_0x348c3d)return;let _0x42cf50,_0x58d911;switch(_0x348c3d['commandName']){case'listStyle':_0x42cf50='*Change\x20to:*\x20%0',_0x58d911={'type':'format','content':o(_0x58a5d6,_0x42cf50,o(_0x58a5d6,this['_getTranslationKeyForListStyle'](_0x348c3d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x42cf50=_0x348c3d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x58d911={'type':'format','content':o(_0x58a5d6,_0x42cf50)};break;case'listStart':_0x42cf50='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x58d911={'type':'format','content':o(_0x58a5d6,_0x42cf50,_0x348c3d['commandParams'][0x0]['startIndex'])};}return _0x58d911;}['_getSuggestionBlocksForListStyle'](){const _0x114366=this['editor']['plugins']['get']('LegacyListUtils');let _0x2bf6ef=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2bf6ef[0x0]?.['is']('element','listItem')&&_0x2bf6ef['unshift'](..._0x114366['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2bf6ef[_0x2bf6ef['length']-0x1]?.['is']('element','listItem')&&_0x2bf6ef['push'](..._0x114366['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2bf6ef=[...new Set(_0x2bf6ef)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2bf6ef=_0x2bf6ef['filter'](_0x11fef0=>_0x11fef0['is']('element','listItem'))),_0x2bf6ef;}['_getSuggestionBlocks'](_0x3c6530){const _0x829cd5=this['editor']['plugins']['get']('LegacyListUtils');let _0x18f894=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3c6530)['map'](_0x173e1f=>{const _0x4990ec=this['editor']['model']['createPositionAt'](_0x173e1f,0x0);return[..._0x829cd5['getSiblingNodes'](_0x4990ec,'backward'),..._0x829cd5['getSiblingNodes'](_0x4990ec,'forward')];})['flat']();return _0x18f894=[...new Set(_0x18f894)],_0x18f894;}['_getTranslationKeyForListStyle'](_0x41ddf2){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x41ddf2)||'default')['toUpperCase']()+'_LIST_'+_0x41ddf2['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x8725f3{['afterInit'](){const _0x3e251e=this['editor'];if(!_0x3e251e['plugins']['has']('MediaEmbedEditing'))return;const _0x2187da=_0x3e251e['plugins']['get']('TrackChangesEditing'),_0x425288=_0x3e251e['locale'];_0x2187da['enableCommand']('mediaEmbed'),_0x2187da['descriptionFactory']['registerElementLabel']('media',_0x31f3b0=>o(_0x425288,'ELEMENT_MEDIA',_0x31f3b0)),_0x3e251e['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1e4230,{writer:_0x5876b3,options:_0xd1102d})=>{if(_0xd1102d['showSuggestionHighlights'])return _0x5876b3['createEmptyElement']('div');},'converterPriority':'high'}),_0x3e251e['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3541e3,_0x5d8c22,_0x1ece58)=>{_0x1ece58['options']['showSuggestionHighlights']&&_0x3541e3['stop']();},{'priority':'high'});}}class lt extends _0x8725f3{['afterInit'](){const _0x1f5b3f=this['editor'];_0x1f5b3f['plugins']['has']('MentionEditing')&&_0x1f5b3f['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x8725f3{['afterInit'](){const _0x1f50e1=this['editor'];if(!_0x1f50e1['plugins']['has']('MergeFieldsEditing'))return;const _0x5598f3=_0x1f50e1['plugins']['get']('TrackChangesEditing'),_0x4d0f82=_0x1f50e1['locale'];_0x5598f3['enableCommand']('insertMergeField'),_0x5598f3['enableCommand']('insertMergeFieldBlock'),_0x5598f3['enableCommand']('insertMergeFieldImage'),_0x5598f3['descriptionFactory']['registerElementLabel']('mergeField',_0x44d8c7=>o(_0x4d0f82,'ELEMENT_MERGE_FIELD',_0x44d8c7)),_0x5598f3['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4d0e21=>o(_0x4d0f82,'ELEMENT_MERGE_FIELD',_0x4d0e21)),_0x5598f3['descriptionFactory']['registerDescriptionCallback'](_0x72ec6=>{if('insertion'!=_0x72ec6['type']&&'deletion'!=_0x72ec6['type'])return;const _0x1d35f2=_0x72ec6['getContainedElement']();if(null==_0x1d35f2)return;const _0xc6f6dd=_0x1f50e1['plugins']['get']('MergeFieldsEditing');let _0x41cae8;switch(_0xc6f6dd['getMergeFieldType'](_0x1d35f2)){case null:return;case'image':{const _0x3fa8ac=_0xc6f6dd['unwrapAffixes'](_0x1d35f2['getAttribute']('src'));_0x41cae8=_0xc6f6dd['getLabel'](_0x3fa8ac)||_0x3fa8ac;break;}default:{const _0xdead12=_0x1d35f2['getAttribute']('id');_0x41cae8=_0xc6f6dd['getLabel'](_0xdead12)||_0xdead12;break;}}return'insertion'==_0x72ec6['type']?{'type':'insertion','content':o(_0x4d0f82,'*Insert:*\x20%0','\x22'+_0x41cae8+'\x22\x20'+o(_0x4d0f82,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x4d0f82,'*Remove:*\x20%0','\x22'+_0x41cae8+'\x22\x20'+o(_0x4d0f82,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x8725f3{['afterInit'](){const _0x3b2f74=this['editor'],_0x22a443=_0x3b2f74['plugins']['get']('TrackChangesEditing');_0x3b2f74['plugins']['has']('MultiLevelList')&&(_0x22a443['enableDefaultAttributesIntegration']('multiLevelList'),_0x22a443['registerBlockAttribute']('listMarkerStyle'),_0x22a443['descriptionFactory']['registerDescriptionCallback'](_0x95c53b=>this['handleDescriptions'](_0x95c53b)));}['handleDescriptions'](_0x2ad913){const _0x211005=this['editor']['locale'],{data:_0x1de70a}=_0x2ad913,_0x2651c4={'type':'format','content':''};if(_0x1de70a&&'listMarkerStyle'==_0x1de70a['key']){if(!_0x1de70a['oldValue'])return{'type':'format','content':o(_0x211005,'*Set\x20format:*\x20%0',o(_0x211005,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1de70a['newValue']+')'};if(!_0x1de70a['newValue']){let _0x4dd141=_0x2ad913['head'];for(;_0x4dd141;){if(_0x4dd141['data']&&'listType'==_0x4dd141['data']['key']&&_0x4dd141['data']['newValue'])return _0x2651c4;_0x4dd141=_0x4dd141['next'];}return{'type':'format','content':o(_0x211005,'*Remove\x20format:*\x20%0',o(_0x211005,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1de70a['oldValue']+')'};}}}}class pt extends _0x8725f3{['afterInit'](){const _0x46cb34=this['editor'];if(!_0x46cb34['plugins']['has']('PageBreakEditing'))return;_0x46cb34['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1a8faa=_0x46cb34['plugins']['get']('TrackChangesEditing'),_0x529820=_0x46cb34['locale'];_0x1a8faa['descriptionFactory']['registerElementLabel']('pageBreak',_0x3765ac=>o(_0x529820,'ELEMENT_PAGE_BREAK',_0x3765ac));}}class kt extends _0x8725f3{['afterInit'](){const _0x15423a=this['editor'];if(!_0x15423a['plugins']['has']('Paragraph'))return;const _0x26a523=_0x15423a['locale'],_0x50053e=_0x15423a['plugins']['get']('TrackChangesEditing');_0x50053e['descriptionFactory']['registerElementLabel']('paragraph',_0x8a1187=>o(_0x26a523,'ELEMENT_PARAGRAPH',_0x8a1187)),_0x50053e['enableDefaultAttributesIntegration']('paragraph'),_0x50053e['enableCommand']('insertParagraph'),_0x15423a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x15423a),{'priority':'highest'}),_0x15423a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x333a51,_0x2ce91,_0x185bc0)=>{_0x185bc0['options']['showSuggestionHighlights']&&nr(_0x15423a,{'showActiveMarker':!0x1})(_0x333a51,_0x2ce91,_0x185bc0);},{'priority':'highest'});const _0x10638c=_0x50053e['descriptionFactory'];_0x10638c['registerDescriptionCallback'](_0xff31c8=>{if('insertion'!==_0xff31c8['type'])return;const {start:_0x4d8e65,end:_0x5be182}=_0xff31c8['getFirstRange']();if(!_0x4d8e65['isTouching'](_0x5be182)||!_0x4d8e65['nodeAfter'])return;const _0x1a3345=_0x15423a['model']['schema'],_0x2c07f4=_0x4d8e65['nodeAfter'];return _0x1a3345['isBlock'](_0x2c07f4)&&!_0x1a3345['isLimit'](_0x2c07f4)&&_0x1a3345['checkChild'](_0x2c07f4,'$text')?{'type':'insertion','content':o(_0x26a523,'*Insert:*\x20%0',_0x10638c['getItemLabel'](_0x2c07f4,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28be8c=this['editor'],_0x395ce0=_0x28be8c['locale'];_0x28be8c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a1f66=>{if('formatBlock'!=_0x5a1f66['type'])return;const {data:_0xa5425d}=_0x5a1f66;return _0xa5425d&&'paragraph'==_0xa5425d['commandName']?{'type':'format','content':o(_0x395ce0,'*Change\x20to:*\x20%0',o(_0x395ce0,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x299649,{showActiveMarker:_0x3f618b=!0x0}={}){return(_0x582c83,_0x15097d,_0x578cf3)=>{const _0x4436b1=_0x299649['plugins']['get']('TrackChangesEditing'),_0x4bf56f=_0x15097d['markerRange']['start'],_0x1cd4e7=_0x15097d['markerRange']['end'],_0x2f343d=_0x299649['model']['schema'];if(!_0x4bf56f['isTouching'](_0x1cd4e7)||!_0x4bf56f['nodeAfter'])return;const _0x33e600=_0x4bf56f['nodeAfter'];if(_0x2f343d['isBlock'](_0x33e600)&&!_0x2f343d['isLimit'](_0x33e600)&&_0x2f343d['checkChild'](_0x33e600,'$text')){if(!_0x578cf3['consumable']['consume'](_0x15097d['markerRange'],_0x582c83['name']))return;const {id:_0x151302,authorId:_0x5b1ec1}=_0x4436b1['_splitMarkerName'](_0x15097d['markerName']),_0x19c024=_0x578cf3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x151302,'data-author-id':_0x5b1ec1}),_0x50c530=_0x578cf3['mapper']['toViewPosition'](_0x1cd4e7);_0x3f618b&&_0x4436b1['activeMarkers']['includes'](_0x15097d['markerName'])&&_0x578cf3['writer']['addClass']('ck-suggestion-marker--active',_0x19c024),_0x578cf3['writer']['insert'](_0x50c530,_0x19c024),_0x578cf3['mapper']['bindElementToMarker'](_0x19c024,_0x15097d['markerName']);}};}class wt extends _0x8725f3{['afterInit'](){const _0x4a1655=this['editor'];_0x4a1655['commands']['get']('replaceSource')&&_0x4a1655['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x8725f3{['afterInit'](){const _0x38f176=this['editor'];if(!_0x38f176['plugins']['has']('RemoveFormatEditing'))return;_0x38f176['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb6bfab=this['editor'];_0xb6bfab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x446b99=>{if('formatBlock'!=_0x446b99['type']&&'formatInline'!=_0x446b99['type'])return;const {data:_0xcffaf4}=_0x446b99;return _0xcffaf4&&'removeFormat'==_0xcffaf4['commandName']?{'type':'format','content':o(_0xb6bfab['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x8725f3{['afterInit'](){const _0x15d145=this['editor'];if(!_0x15d145['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x58b6df=_0x15d145['plugins']['get']('TrackChangesEditing');_0x58b6df['enableCommand']('goToPreviousRestrictedEditingException'),_0x58b6df['enableCommand']('goToNextRestrictedEditingException');const _0x269c82=_0x15d145['plugins']['get']('RestrictedEditingModeEditing');_0x269c82['enableCommand']('trackChanges'),_0x269c82['enableCommand']('acceptSuggestion'),_0x269c82['enableCommand']('discardSuggestion'),_0x269c82['enableCommand']('acceptAllSuggestions'),_0x269c82['enableCommand']('discardAllSuggestions'),_0x269c82['enableCommand']('acceptSelectedSuggestions'),_0x269c82['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x8725f3{['afterInit'](){const _0x565256=this['editor'];if(!_0x565256['plugins']['has']('ShiftEnter'))return;const _0x1b4496=_0x565256['plugins']['get']('TrackChangesEditing');_0x1b4496['enableCommand']('shiftEnter'),_0x565256['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x565256),{'priority':'high'}),_0x565256['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x565256),{'priority':'high'}),_0x565256['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4908f8,_0x55783a,_0x2d57d3)=>{_0x2d57d3['options']['showSuggestionHighlights']&&je(_0x565256,{'showActiveMarker':!0x1})(_0x4908f8,_0x55783a,_0x2d57d3);}),_0x1b4496['descriptionFactory']['registerElementLabel']('softBreak',_0x1fb6e4=>o(_0x565256['locale'],'ELEMENT_LINE_BREAK',_0x1fb6e4));}}function je(_0x2f8dea,{showActiveMarker:_0x3f51c3=!0x0}={}){return(_0x3bbe19,_0x4f9eb4,_0x42ffe5)=>{const _0xa070dd=_0x2f8dea['plugins']['get']('TrackChangesEditing');if(!_0x42ffe5['consumable']['test'](_0x4f9eb4['markerRange'],_0x3bbe19['name']))return;const _0x1c8137=_0x2f8dea['model'];for(const _0x2b464f of _0x4f9eb4['markerRange']['getItems']()){if(!_0x2b464f['is']('element','softBreak'))continue;const _0x43d3d1='deletion'==_0x4f9eb4['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x19226b,authorId:_0x4ae2ad}=_0xa070dd['_splitMarkerName'](_0x4f9eb4['markerName']),_0x2dac4f=_0x42ffe5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x43d3d1,'data-suggestion':_0x19226b,'data-author-id':_0x4ae2ad}),_0x157f81=_0x42ffe5['mapper']['toViewPosition'](_0x1c8137['createPositionBefore'](_0x2b464f));_0x3f51c3&&_0xa070dd['activeMarkers']['includes'](_0x4f9eb4['markerName'])&&_0x42ffe5['writer']['addClass']('ck-suggestion-marker--active',_0x2dac4f),_0x42ffe5['writer']['insert'](_0x157f81,_0x2dac4f),_0x42ffe5['mapper']['bindElementToMarker'](_0x2dac4f,_0x4f9eb4['markerName']);}};}class St extends _0x8725f3{['afterInit'](){const _0x3239e1=this['editor'],_0x17a6fd=_0x3239e1['model'],_0x52d80f=_0x3239e1['locale'];if(!_0x3239e1['plugins']['has']('StandardEditingModeEditing'))return;const _0x29daa6=_0x3239e1['plugins']['get']('TrackChangesEditing'),_0x37dca9='restrictedEditingException',_0x532b02=_0x3239e1['commands']['get'](_0x37dca9);_0x29daa6['enableCommand'](_0x37dca9,(_0x4a3e35,_0x785614={})=>{const _0x255a7f=_0x17a6fd['document']['selection'];if(_0x255a7f['isCollapsed'])return void _0x4a3e35(_0x785614);const _0x1de6d8=void 0x0!==_0x785614['forceValue']?_0x785614['forceValue']:!_0x532b02['value'];_0x17a6fd['change'](()=>{const _0x51d6db=Array['from'](_0x255a7f['getRanges']());for(const _0x480edd of _0x51d6db){const _0x1f30fd=_0x1de6d8?[_0x480edd]:io(_0x37dca9,_0x480edd,_0x17a6fd);for(const _0x22def5 of _0x1f30fd)_0x29daa6['markInlineFormat'](_0x22def5,{'commandName':_0x37dca9,'commandParams':[{'forceValue':_0x1de6d8}]});}});}),_0x29daa6['descriptionFactory']['registerDescriptionCallback'](_0x10c4ce=>{if('formatBlock'!=_0x10c4ce['type']&&'formatInline'!=_0x10c4ce['type'])return;const {data:_0x191645}=_0x10c4ce;return _0x191645&&_0x191645['commandName']==_0x37dca9?_0x191645['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x52d80f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x52d80f,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x8725f3{['afterInit'](){const _0x13d7ce=this['editor'];if(!_0x13d7ce['plugins']['has']('Style')||!_0x13d7ce['plugins']['has']('DataSchema'))return;const _0x340f1e=_0x13d7ce['plugins']['get']('TrackChangesEditing'),_0x2bb46c=_0x13d7ce['locale'],_0x5c8a58=_0x13d7ce['config']['get']('style')||{},_0x109aed=_0x13d7ce['plugins']['get']('GeneralHtmlSupport'),_0x227e19=_0x13d7ce['plugins']['get']('StyleUtils')['normalizeConfig'](_0x13d7ce['plugins']['get']('DataSchema'),_0x5c8a58['definitions']);_0x340f1e['enableDefaultAttributesIntegration']('style');const _0x1f192b=new Set();for(const _0x1b7e99 of _0x227e19['block']){const _0xff1398=_0x109aed['getGhsAttributeNameForElement'](_0x1b7e99['element']);_0x1f192b['add'](_0xff1398);}const _0x1bc9c8=new Set();for(const _0x55f6fd of _0x227e19['inline']){const _0x280b40=_0x109aed['getGhsAttributeNameForElement'](_0x55f6fd['element']);_0x1bc9c8['add'](_0x280b40);for(const _0x3a0c3b of _0x55f6fd['ghsAttributes'])_0x1bc9c8['add'](_0x3a0c3b);}for(const _0x3299d2 of _0x1f192b)_0x340f1e['registerBlockAttribute'](_0x3299d2),_0x340f1e['descriptionFactory']['registerAttributeLabel'](_0x3299d2,o(_0x2bb46c,'FORMAT_STYLE'));for(const _0x446a2f of _0x1bc9c8)_0x340f1e['registerInlineAttribute'](_0x446a2f),_0x340f1e['descriptionFactory']['registerAttributeLabel'](_0x446a2f,o(_0x2bb46c,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5118f7=this['editor'],_0x2450d2=_0x5118f7['locale'];_0x5118f7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xcb2f06=>{if('formatBlock'!=_0xcb2f06['type']&&'formatInline'!=_0xcb2f06['type'])return;const {data:_0x99bac0}=_0xcb2f06;return _0x99bac0&&'style'===_0x99bac0['commandName']?_0x99bac0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2450d2,'*Set\x20format:*\x20%0',_0x99bac0['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x2450d2,'*Remove\x20format:*\x20%0',_0x99bac0['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x8725f3{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3f6213){super(_0x3f6213),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5ceba1=this['editor'],_0x262e62=_0x5ceba1['model']['document']['selection'];if(!_0x5ceba1['plugins']['has']('TableEditing'))return;const _0x51c2d1=_0x5ceba1['locale'],_0x25285c=_0x5ceba1['plugins']['get']('TrackChangesEditing'),_0x20db0d=_0x5ceba1['plugins']['get']('TableUtils');_0x25285c['descriptionFactory']['registerElementLabel']('table',_0x13d563=>o(_0x51c2d1,'ELEMENT_TABLE',_0x13d563)),this['_setupColumnsRowsFixing'](),_0x25285c['enableCommand']('insertTable'),_0x25285c['enableCommand']('selectTableRow'),_0x25285c['enableCommand']('selectTableColumn');for(const _0x40ebcb of['insertTableRowAbove','insertTableRowBelow']){const _0x3dd6ba=_0x5ceba1['commands']['get'](_0x40ebcb);_0x25285c['enableCommand'](_0x40ebcb,_0x3d32aa=>{_0x5ceba1['model']['change'](_0x126459=>{_0x3d32aa();const _0x247113='above'===_0x3dd6ba['order'],_0x2a746f=_0x20db0d['getSelectionAffectedTableCells'](_0x262e62),_0x2698ff=_0x20db0d['getRowIndexes'](_0x2a746f),_0x20e0b8=_0x247113?_0x2698ff['first']-0x1:_0x2698ff['last']+0x1,_0xdce0cd=_0x2a746f[0x0]['findAncestor']('table'),_0x252543=_0x20db0d['createTableWalker'](_0xdce0cd,{'startRow':_0x20e0b8,'endRow':_0x20e0b8}),_0x34250a=Array['from'](_0x252543)['map'](_0x1e8c12=>_0x126459['createRangeOn'](_0x1e8c12['cell']));_0x25285c['markMultiRangeInsertion'](_0x34250a,'tableRow');});});}for(const _0x14448b of['insertTableColumnLeft','insertTableColumnRight']){const _0x2ac201=_0x5ceba1['commands']['get'](_0x14448b);_0x25285c['enableCommand'](_0x14448b,_0x40094a=>{_0x5ceba1['model']['change'](_0x92ed7c=>{_0x40094a();const _0x557c85='left'===_0x2ac201['order'],_0x3a2c88=_0x20db0d['getSelectionAffectedTableCells'](_0x262e62),_0x43706a=_0x20db0d['getColumnIndexes'](_0x3a2c88),_0x3e62db=_0x557c85?_0x43706a['first']-0x1:_0x43706a['last']+0x1,_0x2779f6=_0x3a2c88[0x0]['findAncestor']('table'),_0x398c8f=_0x20db0d['createTableWalker'](_0x2779f6,{'startRow':0x0,'column':_0x3e62db,'includeAllSlots':!0x1}),_0x134d97=Array['from'](_0x398c8f)['map'](_0x51abb2=>_0x92ed7c['createRangeOn'](_0x51abb2['cell']));_0x25285c['markMultiRangeInsertion'](_0x134d97,'tableColumn');});});}for(const _0xf39458 of['removeTableRow','removeTableColumn']){const _0x58bbf3=_0xf39458['substr'](0xb),_0x2b9976=_0x58bbf3['toLowerCase'](),_0x5739fe=_0x2b9976['substr'](0x0,0x3)+'span',_0x1e732d='table'+_0x58bbf3,_0x2b18cc='min'+_0x58bbf3,_0x6d7c3a='max'+_0x58bbf3;_0x25285c['enableCommand'](_0xf39458,()=>{_0x5ceba1['model']['change'](_0x4aa00a=>{const _0xf7c007=_0x20db0d['getSelectionAffectedTableCells'](_0x262e62),_0x3097bb=_0xf7c007[0x0]['findAncestor']('table');let _0x54971e;if('removeTableRow'==_0xf39458){const _0x361f19=_0x20db0d['getRowIndexes'](_0xf7c007);_0x54971e={'startRow':_0x361f19['first'],'endRow':_0x361f19['last'],'includeAllSlots':!0x0};}else{const _0x510d95=_0x20db0d['getColumnIndexes'](_0xf7c007);_0x54971e={'startColumn':_0x510d95['first'],'endColumn':_0x510d95['last'],'includeAllSlots':!0x0};}const _0x4212d3=_0x20db0d['createTableWalker'](_0x3097bb,_0x54971e),_0x35fa2a=Array['from'](_0x4212d3)['map'](({cell:_0x55cf79})=>_0x55cf79),_0x2fe4c7=Ne(_0x35fa2a['filter'](_0x2b7943=>_0x2b7943['hasAttribute'](_0x5739fe))),_0x5a5a87=Ne(_0x35fa2a['filter'](_0x1b4655=>!_0x1b4655['hasAttribute'](_0x5739fe)))['map'](_0x5c8bdb=>_0x4aa00a['createRangeOn'](_0x5c8bdb)),_0x30b1ab=_0x25285c['markMultiRangeDeletion'](_0x5a5a87,_0x1e732d);if(_0x30b1ab&&('tableRow'==_0x30b1ab['subType']||'tableColumn'==_0x30b1ab['subType'])){const _0x1e89a2=this['_getSuggestionCoords'](_0x30b1ab);for(const _0x3475e3 of _0x2fe4c7){const _0x323db9=_0x4aa00a['createRangeOn'](_0x3475e3),_0x1191a5=_0x20db0d['getCellLocation'](_0x3475e3),_0x2c7105=_0x3475e3['getAttribute'](_0x5739fe)-0x1,_0x2f18eb=_0x1e89a2[_0x2b18cc],_0xd87469=_0x1e89a2[_0x6d7c3a];_0x2f18eb<=_0x1191a5[_0x2b9976]&&_0x1191a5[_0x2b9976]+_0x2c7105<=_0xd87469&&_0x30b1ab['addRange'](_0x323db9);}}});});}function _0x1286f6(_0xc9186){const _0x558c0e=Array['from'](_0x262e62['getRanges']())['map'](_0x16a467=>_0x3e3f9b['fromRange'](_0x16a467));_0x5ceba1['model']['change'](_0x57f563=>{const _0x178868=_0x57f563['batch'];_0xc9186=_0xc9186['filter'](_0x42c4b0=>'$graveyard'!=_0x42c4b0['root']['rootName']),_0x57f563['setSelection'](_0xc9186),_0x5ceba1['commands']['get']('removeTableRow')['refresh'](),_0x5ceba1['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5ceba1['model']['enqueueChange'](()=>{_0x5ceba1['model']['enqueueChange'](_0x178868,_0x41e868=>{const _0x52332a=_0x558c0e['filter'](_0xcc2643=>'$graveyard'!=_0xcc2643['root']['rootName']);_0x52332a['length']>0x0&&_0x41e868['setSelection'](_0x52332a);for(const _0x4cf538 of _0x558c0e)_0x4cf538['detach']();});});});}function _0x6e82e0(_0x1e5485){_0x5ceba1['model']['change'](_0x548e81=>{const _0x5e9953=Array['from'](_0x262e62['getRanges']())['map'](_0xb2376c=>_0x3e3f9b['fromRange'](_0xb2376c)),_0xa8e843=[];for(const _0x1a92f7 of _0x1e5485)for(const _0xab18d5 of _0x1a92f7['getItems']({'shallow':!0x0}))_0xa8e843['push'](_0xab18d5);for(const _0x189bb9 of _0xa8e843)'$graveyard'!=_0x189bb9['root']['rootName']&&(_0x548e81['setSelection'](_0x548e81['createPositionAt'](_0x189bb9,0x0)),_0x5ceba1['commands']['get']('removeTableColumn')['refresh'](),_0x5ceba1['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1fbecf=_0x5e9953['filter'](_0x11a285=>'$graveyard'!=_0x11a285['root']['rootName']);_0x1fbecf['length']>0x0&&_0x548e81['setSelection'](_0x1fbecf);for(const _0x9ab48a of _0x5e9953)_0x9ab48a['detach']();});}function _0x3c0e87(_0x1d5f36,_0x4eda94){return _0x4eda94['every'](_0x3a9b2c=>_0x1d5f36['some'](_0x16fa2e=>_0x16fa2e['end']['isEqual'](_0x3a9b2c['start'])||_0x3a9b2c['end']['isEqual'](_0x16fa2e['start'])));}function _0x4232a7(_0x24dcbe,_0x47f07d){return!_0x24dcbe['some'](_0x584c21=>_0x47f07d['some'](_0x53cb3b=>_0x584c21['isIntersecting'](_0x53cb3b)))&&_0x24dcbe['some'](_0x873f25=>_0x47f07d['some'](_0x3b244f=>_0x873f25['end']['isTouching'](_0x3b244f['start'])));}_0x5ceba1['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4070ed,_0x3a1451,_0x572c86)=>{if(!_0x572c86['options']['showSuggestionHighlights'])return;const _0x52eafc=_0x3a1451['item'];if(!_0x52eafc||!_0x52eafc['is']('element','tableCell'))return;const _0x3a921d=_0x572c86['mapper']['toViewElement'](_0x52eafc);if(_0x3a921d){const {id:_0x43db13,authorId:_0x298da5}=_0x25285c['_splitMarkerName'](_0x3a1451['markerName']);_0x5107fe(_0x3a921d,_0x572c86['writer'],(_0x1caab2,_0x15e76b,_0x4e2e87)=>{_0x4e2e87['addClass'](_0x2a699c(_0x15e76b['classes']),_0x1caab2),_0x4e2e87['setAttribute']('data-suggestion-id',_0x43db13,_0x1caab2),_0x4e2e87['setAttribute']('data-author-id',_0x298da5,_0x1caab2);},(_0x3aad8b,_0x5c6f48,_0x5e6a1f)=>{_0x5e6a1f['removeClass'](_0x2a699c(_0x5c6f48['classes']),_0x3aad8b),_0x5e6a1f['removeAttribute']('data-suggestion-id',_0x3aad8b),_0x5e6a1f['removeAttribute']('data-author-id',_0x3aad8b);});}},{'priority':'highest'}),_0x25285c['descriptionFactory']['registerDescriptionCallback'](_0x5ba2c8=>{if('insertion'!=_0x5ba2c8['type']&&'deletion'!=_0x5ba2c8['type'])return;const _0x460c77=_0x5ba2c8['getContainedElement']();if(null!=_0x460c77&&_0x460c77['is']('element','table')){if('insertion'==_0x5ba2c8['type']){const _0x170733=_0x5ba2c8['getItems']()['filter'](_0x1afe01=>_0x1afe01['is']('$textProxy'))['map'](_0x42f8ca=>_0x42f8ca['data']);if(_0x170733['length'])return{'type':'insertion','content':o(_0x51c2d1,'*Insert:*\x20%0',o(_0x51c2d1,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x170733['join']('\x20')+'\x22'))};}if('deletion'==_0x5ba2c8['type']){const _0xe6a354=_0x5ba2c8['getItems']()['filter'](_0x426d96=>_0x426d96['is']('$textProxy'))['map'](_0x263f65=>_0x263f65['data']);if(_0xe6a354['length'])return{'type':'deletion','content':o(_0x51c2d1,'*Remove:*\x20%0',o(_0x51c2d1,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xe6a354['join']('\x20')+'\x22'))};}}}),_0x25285c['descriptionFactory']['registerDescriptionCallback'](_0x244c0f=>{if('tableRow'==_0x244c0f['subType']){const _0x2d5ae1=_0x244c0f['getItems']()['filter'](_0x468be6=>_0x468be6['is']('$textProxy'))['map'](_0x30f162=>_0x30f162['data']),_0x2f3a65=this['_getSuggestionCoords'](_0x244c0f),_0xb74d39=_0x2f3a65['maxRow']-_0x2f3a65['minRow']+0x1;if('insertion'==_0x244c0f['type'])return _0x2d5ae1['length']?{'type':'insertion','content':o(_0x51c2d1,'*Insert:*\x20%0',o(_0x51c2d1,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xb74d39,'\x22'+_0x2d5ae1['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x51c2d1,'*Insert:*\x20%0',o(_0x51c2d1,'ELEMENT_TABLE_ROW',_0xb74d39))};if('deletion'==_0x244c0f['type'])return _0x2d5ae1['length']?{'type':'deletion','content':o(_0x51c2d1,'*Remove:*\x20%0',o(_0x51c2d1,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xb74d39,'\x22'+_0x2d5ae1['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x51c2d1,'*Remove:*\x20%0',o(_0x51c2d1,'ELEMENT_TABLE_ROW',_0xb74d39))};}if('tableColumn'==_0x244c0f['subType']){const _0x130046=_0x244c0f['getItems']()['filter'](_0xd0e521=>_0xd0e521['is']('$textProxy'))['map'](_0x1474aa=>_0x1474aa['data']),_0x28f7fa=this['_getSuggestionCoords'](_0x244c0f),_0x5cf6a3=_0x28f7fa['maxColumn']-_0x28f7fa['minColumn']+0x1;if('insertion'==_0x244c0f['type'])return _0x130046['length']?{'type':'insertion','content':o(_0x51c2d1,'*Insert:*\x20%0',o(_0x51c2d1,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5cf6a3,'\x22'+_0x130046['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x51c2d1,'*Insert:*\x20%0',o(_0x51c2d1,'ELEMENT_TABLE_COLUMN',_0x5cf6a3))};if('deletion'==_0x244c0f['type'])return _0x130046['length']?{'type':'deletion','content':o(_0x51c2d1,'*Remove:*\x20%0',o(_0x51c2d1,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5cf6a3,'\x22'+_0x130046['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x51c2d1,'*Remove:*\x20%0',o(_0x51c2d1,'ELEMENT_TABLE_COLUMN',_0x5cf6a3))};}}),_0x25285c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1286f6),_0x25285c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1286f6),_0x25285c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x6e82e0),_0x25285c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x6e82e0),_0x25285c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3c0e87),_0x25285c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3c0e87),_0x25285c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4232a7),_0x25285c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4232a7);}['_acceptFormatSuggestionCallbackFactory'](){const _0x60bd4c=this['editor'],_0x1a6fcb=_0x60bd4c['model']['document']['selection'];return(_0x33ea84,_0x48a13c)=>{_0x60bd4c['model']['change'](_0x330052=>{const {commandName:_0x1d4a79,commandParams:_0xf9ea6c}=_0x48a13c;let _0x3b0a2c=_0x33ea84[0x0]['end']['nodeBefore'];_0xf9ea6c&&_0xf9ea6c[0x0]&&!0x1===_0xf9ea6c[0x0]['forceValue']&&(_0x3b0a2c=_0x33ea84[0x0]['start']['nodeAfter']);const _0x2c0242=_0x330052['createRangeIn'](_0x3b0a2c);if('$graveyard'==_0x2c0242['root']['rootName'])return;const _0x1d2404=Array['from'](_0x1a6fcb['getRanges']())['map'](_0x4d9fb8=>_0x3e3f9b['fromRange'](_0x4d9fb8));_0x330052['setSelection'](_0x2c0242),_0x60bd4c['commands']['get'](_0x1d4a79)['refresh'](),_0xf9ea6c['push']({'forceDefaultExecution':!0x0}),_0x60bd4c['execute'](_0x1d4a79,..._0xf9ea6c);const _0x3179d3=_0x1d2404['filter'](_0x3afccc=>'$graveyard'!=_0x3afccc['root']['rootName']);_0x3179d3['length']>0x0&&_0x330052['setSelection'](_0x3179d3);for(const _0x4e65fc of _0x1d2404)_0x4e65fc['detach']();});};}['_getCoordsForCells'](_0x46d50a){const _0x102a63=this['editor']['plugins']['get']('TableUtils');let _0x421177=Number['MAX_SAFE_INTEGER'],_0xec3a1b=Number['MIN_SAFE_INTEGER'],_0x21bd1f=Number['MAX_SAFE_INTEGER'],_0xb32c30=Number['MIN_SAFE_INTEGER'];for(const _0x181f26 of _0x46d50a){if('$graveyard'==_0x181f26['root']['rootName'])continue;const {row:_0x2a9c75,column:_0x3eec9b}=_0x102a63['getCellLocation'](_0x181f26),_0x458dc3=_0x181f26['hasAttribute']('rowspan')?_0x181f26['getAttribute']('rowspan')-0x1:0x0,_0x432fc9=_0x181f26['hasAttribute']('colspan')?_0x181f26['getAttribute']('colspan')-0x1:0x0;_0x421177=_0x2a9c75<_0x421177?_0x2a9c75:_0x421177,_0xec3a1b=_0x2a9c75+_0x458dc3>_0xec3a1b?_0x2a9c75+_0x458dc3:_0xec3a1b,_0x21bd1f=_0x3eec9b<_0x21bd1f?_0x3eec9b:_0x21bd1f,_0xb32c30=_0x3eec9b+_0x432fc9>_0xb32c30?_0x3eec9b+_0x432fc9:_0xb32c30;}return{'minRow':_0x421177,'maxRow':_0xec3a1b,'minColumn':_0x21bd1f,'maxColumn':_0xb32c30};}['_setupColumnsRowsFixing'](){const _0x3ff8d0=this['editor'],_0x381608=_0x3ff8d0['plugins']['get']('TrackChangesEditing'),_0x386623=_0x3ff8d0['plugins']['get']('TableUtils');_0x3ff8d0['model']['document']['on']('change:data',()=>{const _0x4cf2b6=Array['from'](_0x3ff8d0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5ebae8,data:_0x32727d}of _0x4cf2b6){const {group:_0x930800,id:_0x32b9b8,subType:_0x40b20f}=_0x381608['_splitMarkerName'](_0x5ebae8);if('suggestion'!=_0x930800)continue;if(null!=_0x32727d['oldRange'])continue;const _0xbdc487=_0x381608['getSuggestion'](_0x32b9b8);this['_tablePostFixingSubtypes']['includes'](_0x40b20f)&&this['_tableSuggestions']['add'](_0xbdc487);}},{'priority':'low'});const _0xab9e99=(_0x53ccce,_0xa8632)=>{let _0x1a0cb4=!0x1;const _0x90ef=_0xa8632['createRangeOn'](_0x53ccce),_0x2d48cf=_0x53ccce['findAncestor']('table'),_0x1b450c=_0x386623['getCellLocation'](_0x53ccce);for(const _0x1cdf31 of this['_tableSuggestions']){const _0x273da8=_0x1cdf31['subType'],_0xce7177=_0x273da8['startsWith']('tablePaste'),_0x41e77d=_0x273da8['substr'](_0xce7177?0xa:0x5),_0x579729=_0x41e77d['toLowerCase'](),_0x33b4da=_0x579729['substr'](0x0,0x3)+'span',_0x4f7df8='min'+_0x41e77d,_0x5d54e6='max'+_0x41e77d;if(!_0x1cdf31['isInContent'])continue;if(_0x2d48cf!=_0x1cdf31['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1cdf31['isIntersectingWithRange'](_0x90ef))continue;const _0x322edb=_0x53ccce['hasAttribute'](_0x33b4da)?_0x53ccce['getAttribute'](_0x33b4da)-0x1:0x0,_0x5aeb46=this['_getSuggestionCoords'](_0x1cdf31),_0x5e5fcd=_0x5aeb46[_0x4f7df8],_0x5b18db=_0x5aeb46[_0x5d54e6];_0x5e5fcd<=_0x1b450c[_0x579729]&&_0x1b450c[_0x579729]+_0x322edb<=_0x5b18db&&(_0x1cdf31['addRange'](_0x90ef),_0x1a0cb4=!0x0);}return _0x1a0cb4;};_0x3ff8d0['model']['document']['registerPostFixer'](_0x26539a=>{let _0x5217c7=!0x1;for(const _0x13a750 of _0x3ff8d0['model']['document']['differ']['getChanges']())if('insert'==_0x13a750['type']){if('tableRow'==_0x13a750['name']){for(const _0xd97457 of _0x13a750['position']['nodeAfter']['getChildren']())_0x5217c7=_0x5217c7||_0xab9e99(_0xd97457,_0x26539a);}else'tableCell'==_0x13a750['name']&&(_0x5217c7=_0x5217c7||_0xab9e99(_0x13a750['position']['nodeAfter'],_0x26539a));}return _0x5217c7;});}['_getSuggestionCoords'](_0x45a00c){return this['_getCoordsForCells'](_0x45a00c['getRanges']()['map'](_0x1dac8b=>_0x1dac8b['start']['nodeAfter']));}}function Ne(_0x275faa){return Array['from'](new Set(_0x275faa)['values']());}class _t extends _0x8725f3{static get['requires'](){return[At];}['afterInit'](){const _0x422374=this['editor'],_0x244e31=_0x422374['model']['document']['selection'],_0x32dd6b=_0x422374['locale'];if(!_0x422374['plugins']['has']('TableEditing'))return;const _0x28115b=_0x422374['plugins']['get']('TrackChangesEditing'),_0xf44fb6=_0x422374['plugins']['get']('TableUtils'),_0x21fc7d=_0x422374['plugins']['get'](At);_0x21fc7d['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x28115b['enableCommand']('mergeTableCells',()=>{const _0x28127e=_0xf44fb6['getSelectionAffectedTableCells'](_0x422374['model']['document']['selection']);_0x422374['model']['change'](()=>{_0x28115b['markMultiRangeBlockFormat'](_0x28127e,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x422374['commands']['get']('mergeTableCells')['on']('execute',(_0x1f7f31,_0x1e8bd9)=>{_0x422374['commands']['get']('trackChanges')['value']&&(_0x1e8bd9['length']>0x0&&_0x1e8bd9[_0x1e8bd9['length']-0x1]&&_0x1e8bd9[_0x1e8bd9['length']-0x1]['forceDefaultExecution']||_0x28115b['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1f7f31['stop']());},{'priority':'highest'});for(const _0xb7937f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x48db79=_0x422374['commands']['get'](_0xb7937f);_0x28115b['enableCommand'](_0xb7937f,()=>{const _0x2fc463=_0x422374['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x20e18f=>_0x20e18f['is']('element','tableCell')),_0x5ad0bf=_0x48db79['value'];_0x422374['model']['change'](()=>{_0x28115b['markMultiRangeBlockFormat']([_0x2fc463,_0x5ad0bf],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x451f49 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x59b8bf=_0x422374['commands']['get'](_0x451f49);_0x28115b['enableCommand'](_0x451f49,()=>{const _0x5b45c3=_0xf44fb6['getSelectionAffectedTableCells'](_0x422374['model']['document']['selection'])[0x0],_0x2cc51d=_0x5b45c3['findAncestor']('table'),{column:_0x151f36,row:_0x135ca2}=_0xf44fb6['getCellLocation'](_0x5b45c3);let _0x315b9e=[];if('horizontally'==_0x59b8bf['direction']){const _0x34410e=_0xf44fb6['createTableWalker'](_0x2cc51d,{'startRow':_0x135ca2,'endRow':_0x135ca2,'includeAllSlots':!0x0});_0x315b9e=Array['from'](_0x34410e)['map'](_0xb979a1=>_0xb979a1['cell']);}else{const _0x38b95c=_0xf44fb6['createTableWalker'](_0x2cc51d,{'column':_0x151f36,'includeAllSlots':!0x0});_0x315b9e=Array['from'](_0x38b95c)['map'](_0x491c71=>_0x491c71['cell']);}_0x422374['model']['change'](_0x5db9be=>{_0x28115b['markBlockFormat'](_0x5db9be['createRangeOn'](_0x5b45c3),{'commandName':_0x451f49,'commandParams':[]},_0x315b9e,_0x451f49);});});}_0x28115b['descriptionFactory']['registerDescriptionCallback'](_0x53335f=>{if('formatBlock'!=_0x53335f['type']&&'formatInline'!=_0x53335f['type'])return;const {data:_0x2b62da}=_0x53335f;return _0x2b62da&&'mergeTableCells'==_0x2b62da['commandName']?{'type':'format','content':o(_0x32dd6b,'*Merge\x20cells*')}:void 0x0;}),_0x28115b['descriptionFactory']['registerDescriptionCallback'](_0xb00ab6=>{if('formatBlock'!=_0xb00ab6['type']&&'formatInline'!=_0xb00ab6['type'])return;const {data:_0x348c91}=_0xb00ab6;return _0x348c91?'splitTableCellVertically'==_0x348c91['commandName']?{'type':'format','content':o(_0x32dd6b,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x348c91['commandName']?{'type':'format','content':o(_0x32dd6b,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5513d2=_0x21fc7d['_acceptFormatSuggestionCallbackFactory']();for(const _0x18f973 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x28115b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x18f973,'accept',_0x5513d2);for(const _0x35b4cd of['splitTableCellVertically','splitTableCellHorizontally'])_0x28115b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x35b4cd,'accept',_0x5513d2);_0x28115b['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x8edf14=>{_0x422374['model']['change'](_0x326d17=>{const _0x17d458=Array['from'](_0x244e31['getRanges']())['map'](_0x57c016=>_0x3e3f9b['fromRange'](_0x57c016));_0x326d17['setSelection'](_0x8edf14),_0x422374['commands']['get']('mergeTableCells')['refresh'](),_0x422374['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x323efd=_0x17d458['filter'](_0x49ff0a=>'$graveyard'!=_0x49ff0a['root']['rootName']);_0x323efd['length']>0x0&&_0x326d17['setSelection'](_0x323efd);for(const _0x586c93 of _0x17d458)_0x586c93['detach']();});});for(const _0x39ec2b of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x544870=_0x422374['commands']['get'](_0x39ec2b);_0x544870['on']('set:isEnabled',(_0x1301f0,_0x50481a,_0x2473a5)=>{if(_0x2473a5){const _0x1bb63d=_0x422374['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2b4f9a=>_0x2b4f9a['is']('element','tableCell'));this['_areMergableCells'](_0x544870['value'],_0x1bb63d)||(_0x1301f0['return']=!0x1,_0x1301f0['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1398ef=this['editor']['commands']['get']('mergeTableCells'),_0x59a753=this['editor']['plugins']['get']('TableUtils');if(!_0x1398ef['isEnabled'])return!0x1;const _0x54cea6=_0x59a753['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3a0fa9 of _0x54cea6)for(const _0x3b9355 of _0x54cea6)if(_0x3a0fa9!=_0x3b9355&&!this['_areMergableCells'](_0x3a0fa9,_0x3b9355))return!0x1;return!0x0;}['_areMergableCells'](_0x2d86b4,_0x2ce58){const _0x757fde=this['editor']['plugins']['get']('TrackChangesEditing'),_0x209113=this['editor']['model']['createRangeOn'](_0x2d86b4),_0x437d13=this['editor']['model']['createRangeOn'](_0x2ce58),_0x4d4500=new Set(),_0x35b4c1=new Set();for(const _0x4f7f29 of _0x757fde['getSuggestions']())if(('insertion'==_0x4f7f29['type']||'deletion'==_0x4f7f29['type']||'mergeTableCells'==_0x4f7f29['subType'])&&_0x4f7f29['isInContent']){for(const _0x5cb3e7 of _0x4f7f29['getRanges']())_0x5cb3e7['containsRange'](_0x209113,!0x0)&&_0x4d4500['add'](_0x4f7f29['type']+':'+_0x4f7f29['author']['id']),_0x5cb3e7['containsRange'](_0x437d13,!0x0)&&_0x35b4c1['add'](_0x4f7f29['type']+':'+_0x4f7f29['author']['id']);}if(_0x4d4500['size']!=_0x35b4c1['size'])return!0x1;for(const _0x4ac24c of _0x4d4500)if(!_0x35b4c1['has'](_0x4ac24c))return!0x1;return!0x0;}}class Ct extends _0x8725f3{static get['requires'](){return[At];}['afterInit'](){const _0x25116c=this['editor'];if(!_0x25116c['plugins']['has']('TableEditing'))return;const _0x25b1ba=_0x25116c['locale'],_0x721716=_0x25116c['plugins']['get']('TrackChangesEditing');_0x721716['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x721716['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x721716['registerBlockAttribute']('headingRows'),_0x721716['registerBlockAttribute']('headingColumns'),_0x721716['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x25b1ba,'FORMAT_HEADER_ROW')),_0x721716['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x25b1ba,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x19ba7f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4f84a0=this['editor']['plugins']['get']('TableUtils'),_0x2f96d9=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x4c11d8({showActiveMarker:_0x5c2a83=!0x0,setDataAttribute:_0x4e59b4=!0x0}={}){return(_0x12631c,_0x14000a,_0x544fad)=>{const {type:_0x5dc9de,id:_0x46e0fa}=_0x19ba7f['_splitMarkerName'](_0x14000a['markerName']),_0x3c78b6=_0x19ba7f['getSuggestion'](_0x46e0fa),_0x38ec24=_0x3c78b6['data'];if('formatBlock'!=_0x3c78b6['type']||!_0x38ec24||'setTableColumnHeader'!=_0x38ec24['commandName'])return;if(_0x14000a['item'])return void _0x12631c['stop']();if(!_0x544fad['consumable']['consume'](_0x14000a['markerRange'],_0x12631c['name']))return;const _0x3c4ea7=_0x14000a['markerRange']['start']['nodeAfter'],_0x468397=_0x14000a['markerRange']['end']['nodeBefore'],_0x4823ca=_0x3c4ea7['parent']['parent'],{column:_0x2a6a62}=_0x4f84a0['getCellLocation'](_0x3c4ea7),{column:_0x5de75d}=_0x4f84a0['getCellLocation'](_0x468397);for(let _0x45a960=_0x2a6a62;_0x45a960<=_0x5de75d;_0x45a960++){const _0x2f3566=_0x4f84a0['createTableWalker'](_0x4823ca,{'column':_0x45a960,'includeAllSlots':!0x1});for(const _0x14d749 of _0x2f3566){const _0x59684c=_0x14d749['cell'],_0x5eb0d9=_0x544fad['mapper']['toViewElement'](_0x59684c);_0x544fad['writer']['addClass']('ck-suggestion-marker-'+_0x5dc9de,_0x5eb0d9),_0x4e59b4&&_0x544fad['writer']['setAttribute']('data-suggestion',_0x46e0fa,_0x5eb0d9),_0x544fad['mapper']['bindElementToMarker'](_0x5eb0d9,_0x14000a['markerName']),_0x5c2a83&&(_0x19ba7f['activeMarkers']['includes'](_0x14000a['markerName'])?_0x544fad['writer']['addClass']('ck-suggestion-marker--active',_0x5eb0d9):_0x544fad['writer']['removeClass']('ck-suggestion-marker--active',_0x5eb0d9));}}};}_0x19ba7f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2f96d9),_0x19ba7f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2f96d9),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4c11d8(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x47bf19,_0x2da76a,_0x26cc51)=>{_0x26cc51['options']['showSuggestionHighlights']&&_0x4c11d8({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x47bf19,_0x2da76a,_0x26cc51);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x38faa5,_0xbce978,_0x32630d)=>{const {type:_0x2c4fcc,id:_0x41d9d3}=_0x19ba7f['_splitMarkerName'](_0xbce978['markerName']),_0x19e81e=_0x19ba7f['getSuggestion'](_0x41d9d3),_0x8843c3=_0x19e81e['data'];if('formatBlock'!=_0x19e81e['type']||!_0x8843c3||'setTableColumnHeader'!=_0x8843c3['commandName'])return;const _0x5d0556=_0x32630d['mapper']['markerNameToElements'](_0xbce978['markerName']);if(_0x5d0556){for(const _0x3ea4f1 of _0x5d0556)_0x32630d['writer']['removeClass']('ck-suggestion-marker-'+_0x2c4fcc,_0x3ea4f1),_0x32630d['writer']['removeClass']('ck-suggestion-marker--active',_0x3ea4f1),_0x32630d['writer']['removeAttribute']('data-suggestion',_0x3ea4f1),_0x32630d['mapper']['unbindElementFromMarkerName'](_0x3ea4f1,_0xbce978['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51ed31=this['editor'],_0x14f739=_0x51ed31['locale'];function _0x34cb89(_0x3951fc){return{'type':'format','content':o(_0x14f739,'*Format:*\x20%0',_0x3951fc)};}_0x51ed31['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b627a=>{if('formatBlock'!=_0x3b627a['type'])return;const {data:_0xc3d11}=_0x3b627a;if(_0xc3d11){if('setTableRowHeader'==_0xc3d11['commandName']){const _0x16ddc1=_0xc3d11['commandParams'][0x0]['forceValue'];return _0x34cb89(o(_0x14f739,_0x16ddc1?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xc3d11['commandName']){const _0x38fe05=_0xc3d11['commandParams'][0x0]['forceValue'];return _0x34cb89(o(_0x14f739,_0x38fe05?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x8725f3{['afterInit'](){const _0x1d6d3c=this['editor'],_0x2a23d7=_0x1d6d3c['locale'],_0x3c962b=_0x1d6d3c['plugins']['get']('TrackChangesEditing');function _0x53e6d8(_0x2ca5b4){return{'type':'format','content':''+o(_0x2a23d7,'*Set\x20table\x20type:*\x20%0',_0x2ca5b4)};}_0x1d6d3c['plugins']['has']('TableLayout')&&(_0x3c962b['enableCommand']('insertTableLayout'),_0x3c962b['enableDefaultAttributesIntegration']('tableType'),_0x3c962b['registerBlockAttribute']('tableType'),_0x3c962b['descriptionFactory']['registerElementLabel'](_0x23b548=>_0x23b548['is']('element','table')&&'layout'===_0x23b548['getAttribute']('tableType'),_0x411e06=>o(_0x2a23d7,'ELEMENT_LAYOUT_TABLE',_0x411e06)),_0x3c962b['descriptionFactory']['registerDescriptionCallback'](_0x360c60=>{const {data:_0x5a72bb}=_0x360c60;if(_0x5a72bb&&'tableType'==_0x5a72bb['key'])switch(_0x5a72bb['newValue']){case'layout':return _0x53e6d8(o(_0x2a23d7,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x53e6d8(o(_0x2a23d7,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Be['map'](_0x4b1bf7=>[_0x4b1bf7,null]));class Nt extends _0x8725f3{static get['requires'](){return[At];}['afterInit'](){const _0x1b23fb=this['editor'];if(!_0x1b23fb['plugins']['has']('TableClipboard'))return;const _0x2f76e3=_0x1b23fb['plugins']['get']('TrackChangesEditing'),_0x4ddd6c=_0x1b23fb['plugins']['get']('TableUtils'),_0x57f038=_0x1b23fb['plugins']['get'](At),_0x3136ed=_0x1b23fb['plugins']['get']('TableClipboard'),_0x4e4afb=_0x1b23fb['plugins']['get']('TableSelection'),_0x3e1a81=_0x1b23fb['plugins']['get'](_0x24f075);_0x57f038['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1b23fb['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1b23fb['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x17e0c4=null,_0x2026bc=!0x1;_0x3e1a81['on']('contentInsertion',(_0x5ed430,_0x167f2d)=>{_0x2026bc='paste'===_0x167f2d['method'];}),_0x1b23fb['model']['on']('insertContent',(_0x2b3913,_0x1f022)=>{if(!_0x2026bc&&null===_0x4e4afb['getSelectedTableCells']())return;const [_0x179790,_0x15a8ba]=_0x1f022,_0x211849=_0x1f022[_0x1f022['length']-0x1];_0x211849&&_0x211849['forceDefaultExecution']||_0x2f76e3['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5c3774,_0x454b37,_0x5ef439,_0x297c39,_0x34783e){if(_0x454b37&&!_0x454b37['is']('documentSelection'))return!0x1;const _0x226698=_0x34783e['getTableIfOnlyTableInContent'](_0x5c3774,_0x5ef439);if(!_0x226698||!Ue(_0x226698,void 0x0,_0x297c39))return!0x1;const _0x225f7f=_0x297c39['getSelectionAffectedTableCells'](_0x5ef439['document']['selection']);if(!_0x225f7f['length'])return!0x1;const _0x5d6530=_0x225f7f[0x0]['findAncestor']('table'),_0x3b4a2a=_0x297c39['getRowIndexes'](_0x225f7f),_0x395e7e=_0x297c39['getColumnIndexes'](_0x225f7f),_0x4e867a={'startRow':_0x3b4a2a['first'],'endRow':_0x3b4a2a['last'],'startColumn':_0x395e7e['first'],'endColumn':_0x395e7e['last']};return 0x1==_0x225f7f['length']&&(_0x4e867a['endRow']+=_0x297c39['getRows'](_0x226698)-0x1,_0x4e867a['endColumn']+=_0x297c39['getColumns'](_0x226698)-0x1),Ue(_0x5d6530,_0x4e867a,_0x297c39);}(_0x179790,_0x15a8ba,_0x1b23fb['model'],_0x4ddd6c,_0x3136ed)&&(_0x2b3913['stop'](),_0x17e0c4={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1b23fb['model']['change'](()=>{_0x1b23fb['model']['insertContent'](_0x1f022[0x0],_0x1f022[0x1],_0x1f022[0x2],{'forceDefaultExecution':!0x0});const _0x8b8554=_0xd0f9be(),{rowInsertionRanges:_0x2e55f1,columnInsertionRanges:_0x1344b8,insertionRanges:_0x2417b7,deletionRanges:_0x43feaf,cells:_0x3fe11c}=_0x17e0c4;_0x2e55f1['length']&&_0x2f76e3['markMultiRangeInsertion'](_0x2e55f1,'tablePasteRow',{'tablePasteChainId':_0x8b8554}),_0x1344b8['length']&&_0x2f76e3['markMultiRangeInsertion'](_0x1344b8,'tablePasteColumn',{'tablePasteChainId':_0x8b8554}),_0x2417b7['length']&&(_0x2f76e3['markMultiRangeInsertion'](_0x2417b7,'tablePaste',{'tablePasteChainId':_0x8b8554,'skipNestingCheck':!0x0}),_0x2417b7['forEach'](_0x16a852=>_0x16a852['detach']?.())),_0x43feaf['length']&&(_0x2f76e3['markMultiRangeDeletion'](_0x43feaf,'tablePaste',{'tablePasteChainId':_0x8b8554,'skipNestingCheck':!0x0}),_0x43feaf['forEach'](_0x3cd366=>_0x3cd366['detach']?.()));const _0x5e73d7=_0x2f76e3['markMultiRangeBlockFormat'](_0x3fe11c['map'](({element:_0x5dbcfe})=>_0x5dbcfe),{'formatGroupId':_0xd0f9be()},[],'tablePasteCell',{'tablePasteChainId':_0x8b8554});if(_0x5e73d7){const _0x1ec6d0=_0x5e73d7['getMarkers'](),_0x4c8832=[];for(const {element:_0x482366,attributes:_0x5641ff}of _0x3fe11c){if(!_0x5641ff)continue;const _0x731482=_0x1b23fb['model']['createRangeOn'](_0x482366),_0x510ab7=_0x1ec6d0['find'](_0x203837=>_0x203837['getRange']()['isEqual'](_0x731482));_0x510ab7&&_0x4c8832['push']([_0x510ab7['name'],_0x5641ff]);}_0x4c8832['length']&&_0x5e73d7['setAttribute']('markerAttributes',Object['fromEntries'](_0x4c8832));}_0x17e0c4=null;}));},{'priority':_0x4c5029['high']+0xa}),_0x3e1a81['on']('contentInsertion',()=>{_0x2026bc=!0x1;},{'priority':'lowest'}),_0x1b23fb['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x59f1c2,_0x454e07)=>{const [_0x231020,_0x1559a5,,_0x2ec788]=_0x454e07;if(!_0x17e0c4)return;_0x59f1c2['stop']();const _0x109ef6=_0x231020['cell'],_0x1aeda7=_0x1559a5,_0x5a6d31=Oe(_0x109ef6),_0x5b9124=Oe(_0x1aeda7);_0x59f1c2['return']=_0x109ef6;let _0x2a128a=null,_0x206f1d=null;if(_0x5b9124||_0x5a6d31){if(_0x5a6d31&&!_0x5b9124){_0x2ec788['remove'](_0x109ef6['getChild'](0x0));for(const _0x2346e4 of Array['from'](_0x1aeda7['getChildren']()))_0x2ec788['insert'](_0x2346e4,_0x109ef6,'end');const _0x577bb7=_0x17e0c4['rowInsertionIndexes']['includes'](_0x231020['row']),_0xb1667e=_0x17e0c4['columnInsertionIndexes']['includes'](_0x231020['column']);_0x577bb7||_0xb1667e||(_0x2a128a=_0x3e3f9b['fromRange'](_0x2ec788['createRangeIn'](_0x109ef6)));}else _0x5b9124&&!_0x5a6d31&&(_0x206f1d=_0x2ec788['createRangeIn'](_0x109ef6));}else{const _0x13703a=_0x2ec788['createElement']('tableCellSuggestion'),_0x4d5fe5=_0x2ec788['createElement']('tableCellSuggestion');_0x2ec788['wrap'](_0x2ec788['createRangeIn'](_0x109ef6),_0x4d5fe5),_0x2ec788['insert'](_0x13703a,_0x109ef6,0x0);for(const _0x3ba797 of Array['from'](_0x1aeda7['getChildren']()))_0x2ec788['insert'](_0x3ba797,_0x13703a,'end');_0x2a128a=_0x3e3f9b['fromRange'](_0x2ec788['createRangeOn'](_0x13703a)),_0x206f1d=_0x3e3f9b['fromRange'](_0x2ec788['createRangeOn'](_0x4d5fe5));}const _0x23fe0e=Array['from'](_0x1aeda7['getAttributes']())['filter'](([_0x32ef71])=>Be['includes'](_0x32ef71));_0x17e0c4['cells']['push']({'element':_0x109ef6,'attributes':_0x23fe0e['length']?Object['fromEntries'](_0x23fe0e):null}),_0x2a128a&&_0x17e0c4['insertionRanges']['push'](_0x2a128a),_0x206f1d&&_0x17e0c4['deletionRanges']['push'](_0x206f1d);},{'priority':'high'}),_0x4ddd6c['on']('insertColumns',(_0x2d3fa5,_0x242877)=>{const [_0x498657,_0x2bb4b3={}]=_0x242877;if(!_0x17e0c4)return;const _0x3fe07d=_0x2bb4b3['at']||0x0,_0x14b53a=_0x2bb4b3['columns']||0x1;_0x17e0c4['columnInsertionIndexes']=new Array(_0x14b53a)['fill'](_0x3fe07d)['map']((_0x416aa8,_0x3ff814)=>_0x416aa8+_0x3ff814);for(const {cell:_0x15e358}of _0x4ddd6c['createTableWalker'](_0x498657,{'startColumn':_0x3fe07d,'endColumn':_0x3fe07d+_0x14b53a-0x1}))_0x17e0c4['columnInsertionRanges']['push'](_0x1b23fb['model']['createRangeOn'](_0x15e358));},{'priority':'low'}),_0x4ddd6c['on']('insertRows',(_0x4a64c3,_0x5203ac)=>{const [_0x399ac7,_0x42cdef={}]=_0x5203ac;if(!_0x17e0c4)return;const _0x3cfe80=_0x42cdef['at']||0x0,_0x55a16a=_0x42cdef['rows']||0x1;_0x17e0c4['rowInsertionIndexes']=new Array(_0x55a16a)['fill'](_0x3cfe80)['map']((_0x12b508,_0x2ae90c)=>_0x12b508+_0x2ae90c);for(const {cell:_0x2c681a}of _0x4ddd6c['createTableWalker'](_0x399ac7,{'startRow':_0x3cfe80,'endRow':_0x3cfe80+_0x55a16a-0x1}))_0x17e0c4['rowInsertionRanges']['push'](_0x1b23fb['model']['createRangeOn'](_0x2c681a));},{'priority':'low'}),_0x2f76e3['descriptionFactory']['registerDescriptionCallback'](_0x24a8e1=>{if(_0x24a8e1['subType']&&_0x24a8e1['subType']['startsWith']('tablePaste'))return _0x24a8e1['previous']?{}:{'type':'insertion','content':o(_0x1b23fb['locale'],'*Replace\x20table\x20cells*')};});const _0x121316=()=>!0x1;for(const _0x328d47 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2f76e3['_suggestionFactory']['registerCustomCallback']('insertion',_0x328d47,'join',_0x121316),_0x2f76e3['_suggestionFactory']['registerCustomCallback']('deletion',_0x328d47,'join',_0x121316),_0x2f76e3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x328d47,'join',_0x121316);_0x2f76e3['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x121316),_0x2f76e3['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5ae060,_0xe96237,_0x423032)=>{const _0x46721d=_0x5ae060['map'](_0x8b69fc=>_0x8b69fc['getContainedElement']())['filter'](_0x178456=>_0x178456),_0x1170cb=new Map(_0x46721d['map'](_0x16995b=>[_0x16995b,null]));if(_0x17e0c4){for(const {element:_0x2d2a8f,attributes:_0x3c9d02}of _0x17e0c4['cells'])_0x3c9d02&&_0x1170cb['set'](_0x2d2a8f,_0x3c9d02);}else{if(_0x423032&&_0x423032['markerAttributes'])for(const [_0x4d930a,_0x433bf5]of Object['entries'](_0x423032['markerAttributes'])){const _0xbd50a5=_0x1b23fb['model']['markers']['get'](_0x4d930a),_0x33beb0=_0xbd50a5?_0xbd50a5['getRange']()['getContainedElement']():null;_0x33beb0&&_0x1170cb['set'](_0x33beb0,_0x433bf5);}}_0x1b23fb['model']['change'](_0xa9c550=>{for(const [_0x1fea92,_0xadafaf]of _0x1170cb)_0xa9c550['setAttributes']({...xe,..._0xadafaf},_0x1fea92);});});const _0x30e88b=(_0x33d0a6,_0x1ed0b0)=>{_0x2f76e3['_suggestionFactory']['registerCustomCallback'](_0x33d0a6,'tablePaste',_0x1ed0b0,(_0x3dbe5c,_0x4072ba,_0x3429a0)=>{_0x1b23fb['model']['change'](_0x320aa9=>{const _0x2333d3=[];for(const _0x44605d of _0x3dbe5c){const _0x5f26bb=_0x44605d['start']['nodeAfter'];_0x5f26bb['is']('element','tableCellSuggestion')&&_0x2333d3['push'](_0x5f26bb);}_0x2f76e3['_suggestionFactory']['getSuggestionCallback'](_0x33d0a6,null,_0x1ed0b0)(_0x3dbe5c,_0x4072ba,_0x3429a0);for(const _0x4de63b of _0x2333d3)'$graveyard'!=_0x4de63b['root']['rootName']&&_0x320aa9['unwrap'](_0x4de63b);});});};_0x30e88b('insertion','accept'),_0x30e88b('insertion','discard'),_0x30e88b('deletion','accept'),_0x30e88b('deletion','discard'),_0x2f76e3['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x43e88c=>{const _0x474106=_0x43e88c['map'](_0x2cf3df=>_0x2cf3df['getContainedElement']()),_0xd51c38=_0x474106[0x0]['findAncestor']('table'),{minRow:_0x4dfc1d,maxRow:_0x312300}=_0x57f038['_getCoordsForCells'](_0x474106);_0x4ddd6c['removeRows'](_0xd51c38,{'at':_0x4dfc1d,'rows':_0x312300-_0x4dfc1d+0x1});}),_0x2f76e3['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2850f5=>{const _0x5281d7=_0x2850f5['map'](_0xbaa163=>_0xbaa163['getContainedElement']()),_0x5b4176=_0x5281d7[0x0]['findAncestor']('table'),{minColumn:_0x268aed,maxColumn:_0x52db2c}=_0x57f038['_getCoordsForCells'](_0x5281d7);_0x4ddd6c['removeColumns'](_0x5b4176,{'at':_0x268aed,'columns':_0x52db2c-_0x268aed+0x1});});const _0x544897=(_0xb20fa7,_0x50afd6)=>{if(!_0x50afd6['subType']||!_0x50afd6['subType']['startsWith']('tablePaste'))return;const _0x5c87dc=_0x50afd6['attributes']['tablePasteChainId'],_0x21ce00=_0x2f76e3['getSuggestions']()['filter'](_0x4d23c8=>_0x4d23c8['isInContent']&&_0x4d23c8['attributes']&&_0x4d23c8['attributes']['tablePasteChainId']==_0x5c87dc);_0x21ce00['length']&&_0x50afd6['getAllAdjacentSuggestions']()['length']!=_0x21ce00['length']&&_0x21ce00['reduce']((_0x4c6d7a,_0xd24df3)=>(_0x4c6d7a['next']=_0xd24df3,_0xd24df3['previous']=_0x4c6d7a,_0xd24df3));};function _0x4a18af(_0x339bcb,_0x3e8097=!0x0){const {id:_0x18716f,authorId:_0x1fac65}=_0x2f76e3['_splitMarkerName'](_0x339bcb['markerName']),_0x49b494=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xd70dec=_0x2f76e3['activeMarkers']['includes'](_0x339bcb['markerName']);return _0xd70dec&&_0x49b494['push']('ck-suggestion-marker--active'),{'classes':_0x49b494,'attributes':{'data-suggestion':_0x18716f,'data-author-id':_0x1fac65},'priority':_0xd70dec&&_0x3e8097?0xbc2:0xbb8};}_0x2f76e3['on']('suggestionLoaded',_0x544897,{'priority':'high'}),_0x2f76e3['on']('suggestionUnloaded',_0x544897,{'priority':'high'}),_0x1b23fb['model']['document']['registerPostFixer'](()=>{let _0x102742=!0x1;const _0x12dde6=Array['from'](_0x1b23fb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x34d6ce,data:_0x1d3acc}of _0x12dde6){const {group:_0xe68506,type:_0x2438d7,id:_0x4cae37}=_0x2f76e3['_splitMarkerName'](_0x34d6ce);if('suggestion'!=_0xe68506||'deletion'!=_0x2438d7||_0x1d3acc['oldRange'])continue;if(!_0x2f76e3['hasSuggestion'](_0x4cae37))continue;const _0x1e27d6=_0x2f76e3['getSuggestion'](_0x4cae37)['getRanges'](),_0x2ce6a3=_0x1b23fb['plugins']['get']('Users')['me'];for(const _0x1c6e0a of _0x2f76e3['getSuggestions']()){if(!_0x1c6e0a['isInContent']||_0x1c6e0a['author']!=_0x2ce6a3)continue;if('formatBlock'!=_0x1c6e0a['type']||'tablePasteCell'!=_0x1c6e0a['subType'])continue;if(_0x1c6e0a['getRanges']()['every'](_0x37ecb0=>_0x1e27d6['some'](_0x1138c7=>_0x1138c7['containsRange'](_0x37ecb0,!0x0)))){for(const _0x1641b4 of _0x1c6e0a['getAllAdjacentSuggestions']())_0x1641b4['isInContent']&&(_0x1641b4['discard'](),_0x102742=!0x0);}}}return _0x102742;}),_0x1b23fb['model']['document']['registerPostFixer'](_0x32d6f7=>{const _0x17e18c=_0x1b23fb['commands']['get']('redo');if(!_0x17e18c||!_0x17e18c['_createdBatches']['has'](_0x32d6f7['batch']))return!0x1;let _0x5bdc8c=!0x1;const _0x122cf3=_0x1b23fb['plugins']['get']('Users')['me'],_0x245719=_0x1b23fb['model']['document']['differ']['getChanges'](),_0x8110ce=Array['from'](_0x1b23fb['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x33756a,data:_0x4721ff})=>{const {group:_0x44f498,subType:_0x49789d,authorId:_0x5be043}=_0x2f76e3['_splitMarkerName'](_0x33756a);return'suggestion'==_0x44f498&&'tablePaste'==_0x49789d&&_0x5be043==_0x122cf3['id']&&!_0x4721ff['oldRange'];});for(const _0x194d60 of _0x245719){if('insert'!=_0x194d60['type']||'tableCellSuggestion'!=_0x194d60['name']||0x1!=_0x194d60['length'])continue;const _0x2e887c=_0x32d6f7['createRange'](_0x194d60['position'],_0x194d60['position']['getShiftedBy'](0x1));if(!_0x8110ce['find'](({data:_0x1ca354})=>_0x1ca354['newRange']['isEqual'](_0x2e887c))){for(const {name:_0x424a2f,data:_0x4d85f6}of _0x8110ce)if(_0x2e887c['containsRange'](_0x4d85f6['newRange'])){_0x32d6f7['updateMarker'](_0x424a2f,{'range':_0x2e887c}),_0x5bdc8c=!0x0;break;}}}return _0x5bdc8c;}),_0x1b23fb['model']['document']['registerPostFixer'](_0x3b26ba=>{let _0x22d9d=!0x1;const _0x4d0a6b=_0x1b23fb['plugins']['get']('Users')['me'],_0x43843f=_0x2f76e3['getSuggestions']()['filter'](_0x54fbea=>_0x54fbea['isInContent']&&_0x54fbea['author']==_0x4d0a6b),_0x3a576d=new Set(),_0x238078=new Set();for(const _0x41f3e6 of _0x43843f)if('tablePaste'==_0x41f3e6['subType'])for(const _0x2bd3e0 of _0x41f3e6['getMarkers']()){const _0x2f54aa=_0x2bd3e0['getRange']()['getContainedElement']();if(_0x2f54aa){if(_0x2f54aa['is']('element','tableCellSuggestion')&&Oe(_0x2f54aa)){_0x41f3e6['removeMarker'](_0x2bd3e0['name']),_0x3a576d['add'](_0x2f54aa),_0x22d9d=!0x0;const _0x5bb4e3=_0x2f54aa['nextSibling'],_0x2954a5=_0x2f54aa['previousSibling'],_0x4c7430=_0x5bb4e3&&_0x5bb4e3['is']('element','tableCellSuggestion'),_0x50e5ac=_0x2954a5&&_0x2954a5['is']('element','tableCellSuggestion');_0x4c7430&&!_0x3a576d['has'](_0x5bb4e3)&&_0x238078['add'](_0x5bb4e3),_0x50e5ac&&!_0x3a576d['has'](_0x2954a5)&&_0x238078['add'](_0x2954a5);}else _0x2f54aa['is']('element','paragraph')&&_0x2f54aa['isEmpty']&&(_0x41f3e6['removeMarker'](_0x2bd3e0['name']),_0x22d9d=!0x0);}}else{if('tablePasteCell'==_0x41f3e6['subType']){if(!_0x41f3e6['attributes']||!_0x41f3e6['attributes']['tablePasteChainId'])continue;const _0x3bbc18=_0x41f3e6['attributes']['markerAttributes'];if(_0x3bbc18&&Object['keys'](_0x3bbc18)['length'])continue;const _0x2ccba4=_0x41f3e6['attributes']['tablePasteChainId'];let _0x91b9c0=!0x0,_0x113076=!0x0;for(const _0x3d02e7 of _0x43843f)if(_0x3d02e7['subType']&&_0x3d02e7['subType']['startsWith']('tablePaste')){if(!_0x3d02e7['attributes']['tablePasteChainId']){_0x113076=!0x1;break;}if(_0x3d02e7['id']!=_0x41f3e6['id']&&_0x3d02e7['attributes']['tablePasteChainId']==_0x2ccba4){_0x91b9c0=!0x1;break;}}_0x113076&&_0x91b9c0&&(_0x41f3e6['removeMarkers'](),_0x22d9d=!0x0);}}for(const _0x8b46df of _0x3a576d)_0x3b26ba['remove'](_0x8b46df);for(const _0x2411a9 of _0x238078)_0x3b26ba['unwrap'](_0x2411a9);return _0x22d9d;}),_0x1b23fb['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x571c30=>_0x4a18af(_0x571c30),'converterPriority':'high'}),_0x1b23fb['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x484461,_0x5cea94)=>_0x5cea94['options']['showSuggestionHighlights']?_0x4a18af(_0x484461,!0x1):null,'converterPriority':'high'});const _0x5b99b3=_0x1b23fb['editing']['view'];this['listenTo'](_0x5b99b3['document'],'clipboardOutput',(_0x52734c,_0x20f69d)=>{const _0x482542=[];for(const _0x3e0dda of _0x5b99b3['createRangeIn'](_0x20f69d['content'])['getItems']())_0x3e0dda['is']('element','suggestion-td')&&_0x482542['push'](_0x3e0dda);_0x5b99b3['change'](_0x53a92c=>{for(const _0x9c3599 of _0x482542)_0x53a92c['move'](_0x53a92c['createRangeIn'](_0x9c3599),_0x53a92c['createPositionBefore'](_0x9c3599)),_0x53a92c['remove'](_0x9c3599);});});}}function Oe(_0x14d204){if(_0x14d204['isEmpty'])return!0x0;const _0x54a27a=_0x14d204['getChild'](0x0);return _0x54a27a['is']('element','paragraph')&&_0x54a27a['isEmpty'];}function Ue(_0x3ce391,_0x2b5d77={},_0x9484cf){for(const {isAnchor:_0x4fa828,cellHeight:_0x5f956d,cellWidth:_0x2321bd}of _0x9484cf['createTableWalker'](_0x3ce391,{'includeAllSlots':!0x0,..._0x2b5d77}))if(!_0x4fa828||0x1!=_0x5f956d||0x1!=_0x2321bd)return!0x1;return!0x0;}class Dt extends _0x8725f3{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x565c84=this['editor']['plugins']['get']('TrackChangesEditing');_0x565c84['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x565c84['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x565c84['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x565c84['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x565c84['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x565c84['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xf6ae2a,_0x106f0a){const _0x5652dc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2aac95=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5b0505=_0x106f0a['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x43193d=_0x2aac95['getColumnGroupElement'](_0x5b0505);let _0x331dfe=_0x43193d?_0x2aac95['getTableColumnsWidths'](_0x43193d):null,_0x48e2b3=_0x5b0505['getAttribute']('tableWidth')||null;const _0x53a3d9=_0x106f0a['tableWidth']||_0x48e2b3,_0x587fa0=_0x106f0a['columnWidths']||_0x331dfe,_0x250389=this['editor']['plugins']['get']('Users')['me'];for(const _0x307e55 of _0x5652dc['getSuggestions']()){const _0x5e70a7=_0x307e55['getContainedElement']();if('resizeTable'===_0x307e55['subType']&&_0x5e70a7===_0x5b0505){_0x307e55['author']!==_0x250389&&_0x307e55['discard']();const _0x4cc399=_0x307e55['data']['commandParams'];_0x48e2b3=_0x4cc399[0x0]['tableWidth'],_0x331dfe=_0x4cc399[0x0]['columnWidths'];break;}}_0xf6ae2a({'table':_0x5b0505,'tableWidth':_0x53a3d9,'columnWidths':_0x587fa0}),_0x5652dc['markBlockFormat'](_0x5b0505,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x48e2b3,'columnWidths':_0x331dfe}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x421b29){if('formatBlock'!=_0x421b29['type']&&'formatInline'!=_0x421b29['type'])return;const {data:_0x284af8}=_0x421b29;if(_0x284af8&&'resizeTable'===_0x284af8['formatGroupId']){const _0x25e795='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x25e795)};}}}class $t extends _0x8725f3{['afterInit'](){const _0x76c2d4=this['editor'];_0x76c2d4['plugins']['has']('Template')&&_0x76c2d4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x8725f3{['afterInit'](){const _0x57aabd=this['editor'];if(!_0x57aabd['commands']['get']('insertTableOfContents'))return;_0x57aabd['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x46075a=_0x57aabd['plugins']['get']('TrackChangesEditing'),_0x500db1=_0x57aabd['locale'];_0x46075a['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5d67b3=>o(_0x500db1,'ELEMENT_TABLE_OF_CONTENTS',_0x5d67b3));}}class Bt extends _0x8725f3{['afterInit'](){const _0x5aea8a=this['editor'];if(!_0x5aea8a['plugins']['has']('Title'))return;const _0x3d9646=_0x5aea8a['plugins']['get']('TrackChangesEditing');_0x3d9646['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5aea8a['locale'],'ELEMENT_TITLE')),_0x5aea8a['model']['document']['registerPostFixer'](_0x33297c=>{let _0x14bf0e=!0x1;const _0xbc2da7=Array['from'](_0x5aea8a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3469e6,data:_0xae972a}of _0xbc2da7){const {group:_0x26bd18}=_0x3d9646['_splitMarkerName'](_0x3469e6);if('suggestion'!==_0x26bd18||!_0xae972a['newRange'])continue;const _0x35e035=_0xae972a['newRange'],_0x57691d=_0x35e035['end']['nodeBefore'];if(!_0x57691d||!_0x57691d['is']('element','title-content'))continue;if(!_0x35e035['start']['isTouching'](_0x35e035['end']))continue;const _0x5b2c1c=_0x5aea8a['model']['schema']['getNearestSelectionRange'](_0x35e035['end'],'forward');if(_0x5b2c1c&&_0x5b2c1c['isCollapsed']){const _0x1d6e74=_0x33297c['createRange'](_0x35e035['start'],_0x5b2c1c['start']);_0x1d6e74['isEqual'](_0x35e035)||(_0x33297c['updateMarker'](_0x3469e6,{'range':_0x1d6e74}),_0x14bf0e=!0x0);}_0x14bf0e||(_0x33297c['removeMarker'](_0x3469e6),_0x14bf0e=!0x0);}return _0x14bf0e;});}}class Tt extends _0x8725f3{['afterInit'](){const _0x1952be=this['editor'],_0x19ad07=_0x1952be['plugins']['get']('TrackChangesEditing');_0x1952be['plugins']['has']('Uploadcare')&&(_0x19ad07['enableCommand']('uploadcare'),_0x1952be['plugins']['has']('UploadcareImageEdit')&&(_0x19ad07['enableCommand']('uploadcareImageEdit'),_0x19ad07['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x19ad07['registerBlockAttribute']('uploadcareImageId'),_0x19ad07['descriptionFactory']['registerDescriptionCallback'](_0x7ed0c5=>{if('attribute'!=_0x7ed0c5['type'])return;const {data:_0x566274}=_0x7ed0c5;return _0x566274&&'uploadcareImageId'==_0x566274['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x8725f3{['afterInit'](){const _0x128e68=this['editor'],_0x2dc814=_0x128e68['plugins']['get']('TrackChangesEditing');_0x128e68['plugins']['has']('UndoEditing')&&(_0x2dc814['enableCommand']('undo'),_0x2dc814['enableCommand']('redo'));}}class Ot extends _0x8725f3{static get['requires'](){return[At];}['afterInit'](){const _0x7ecb25=this['editor'];if(!_0x7ecb25['plugins']['has']('TableCaptionEditing'))return;_0x7ecb25['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x8725f3{['tableProperties'];['tableCellProperties'];constructor(_0x3f17b4){super(_0x3f17b4),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x2ca640=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1ae09d of this['tableProperties'])_0x2ca640['enableCommand'](_0x1ae09d,(_0x3a0895,_0x1f3293)=>{const _0x46788c=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1ae09d,[_0x46788c],this['tableProperties'],'tableProperties',_0x3a0895,_0x1f3293);});_0x2ca640['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2ca640['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2ca640['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5688ec,_0x321030)=>this['handleDiscardAction'](this['tableProperties'],_0x5688ec,_0x321030)),_0x2ca640['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x536425 of this['tableCellProperties'])_0x2ca640['enableCommand'](_0x536425,(_0x36a029,_0x41ba16)=>{const _0x180033=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x536425,_0x180033,this['tableCellProperties'],'tableCellProperties',_0x36a029,_0x41ba16);});_0x2ca640['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2ca640['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2ca640['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x33664c,_0x3f995a)=>this['handleDiscardAction'](this['tableCellProperties'],_0x33664c,_0x3f995a)),_0x2ca640['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2ca640['descriptionFactory']['registerDescriptionCallback'](_0x458c97=>this['handleSuggestionDescription'](_0x458c97)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x454c3e,_0x335c93,_0x4aa9c9,_0x50603c,_0x19313b,_0x41674c){const _0x2cb5ce=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x41674c['batch'],()=>{for(const _0xe4ea5e of _0x335c93){if(this['_getSuggestion'](_0xe4ea5e,_0x50603c))_0x19313b(_0x41674c);else{const _0xa698df={};for(const _0x455d4d of _0x4aa9c9){const _0x2cdbbf=_0xe4ea5e['getAttribute'](_0x455d4d);void 0x0!==_0x2cdbbf&&(_0xa698df[_0x455d4d]=_0x2cdbbf);}_0x19313b(_0x41674c),_0x2cb5ce['markBlockFormat'](_0xe4ea5e,{'commandParams':[_0xa698df]},[],_0x50603c);}}});}['handleDiscardAction'](_0xffa0cd,_0x19a0bf,_0x44ef1d){const _0x17e3c7=_0x19a0bf[0x0]['start']['nodeAfter'],_0x108186=_0x44ef1d['commandParams'][0x0];this['editor']['model']['change'](_0x299bce=>{for(const _0x3d1434 of _0xffa0cd)void 0x0!==_0x108186[_0x3d1434]?_0x299bce['setAttribute'](_0x3d1434,_0x108186[_0x3d1434],_0x17e3c7):_0x299bce['removeAttribute'](_0x3d1434,_0x17e3c7);});}['handleSuggestionDescription'](_0x1ad2a6){if(_0x1ad2a6['data'])switch(_0x1ad2a6['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'](_0x2b9a5f,_0x27dc3f){const _0x4a951f=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x54f196 of _0x4a951f['getSuggestions']({'skipNotAttached':!0x0})){const _0x39d1db=_0x54f196['getContainedElement']();if(_0x54f196['subType']===_0x27dc3f&&_0x39d1db===_0x2b9a5f)return _0x54f196;}return null;}['_registerTablePropertiesAttributes'](){const _0x1a1efc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b2494=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x278031 of _0x5b2494){const _0x270b4d=_0x278031['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x1a1efc['registerBlockAttribute'](_0x278031),_0x1a1efc['descriptionFactory']['registerAttributeLabel'](_0x278031,o(this['editor']['locale'],'FORMAT_'+_0x270b4d));}}}class Rt extends _0x8725f3{['afterInit'](){const _0x4005f2=this['editor'];if(!_0x4005f2['plugins']['has']('LineHeight'))return;const _0x2bcbb0=_0x4005f2['plugins']['get']('TrackChangesEditing'),_0x37b5db=_0x4005f2['locale'];_0x2bcbb0['enableDefaultAttributesIntegration']('lineHeight'),_0x2bcbb0['registerBlockAttribute']('lineHeight'),_0x2bcbb0['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x37b5db,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x8725f3{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x5c3456,_0x5d7386,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,Mt,Et,$t,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x41d59d){super(_0x41d59d),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x37d331,_0x1027b1,_0x1bab0d,_0x45e238)=>{this['_model']['change'](()=>{for(const _0x37e922 of[..._0x45e238,..._0x1bab0d])this['_model']['markers']['has'](_0x37e922)&&_0x41d59d['editing']['reconvertMarker'](_0x37e922);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x41d59d['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x41d59d['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x41d59d['config']['get']('trackChanges.trackFormatChanges'),_0x41d59d['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x41d59d['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x41d59d,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0xe94645=this['editor'],_0x1c32f4=(_0x223a39,_0x2616b3)=>{if('attribute'!=_0x223a39)return'ck-suggestion-marker-'+_0x223a39;const _0x2aa1cd=_0x2616b3['split']('|')[0x0];return this['_isBlockAttribute'](_0x2aa1cd)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xe94645['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4623c7=>{const {id:_0x13f6bb,authorId:_0xfde806,type:_0x127df6,subType:_0x5d685f}=this['_splitMarkerName'](_0x4623c7['markerName']),_0x1f2002=['ck-suggestion-marker',_0x1c32f4(_0x127df6,_0x5d685f)];let _0xa8b7e0=0xbb8;return this['activeMarkers']['includes'](_0x4623c7['markerName'])&&(_0x1f2002['push']('ck-suggestion-marker--active'),_0xa8b7e0=0xbc2),'deletion'==_0x127df6&&(_0xa8b7e0+=0x5),{'classes':_0x1f2002,'attributes':{'data-suggestion':_0x13f6bb,'data-author-id':_0xfde806},'priority':_0xa8b7e0};}}),_0xe94645['conversion']['for']('dataDowncast')['add'](_0x550a7d=>{_0x550a7d['on']('addMarker:suggestion',(_0x1d25ac,_0x7ebfb1,_0x11e325)=>{if(!_0x11e325['options']['showSuggestionHighlights'])return;const _0xc5d33c=_0x7ebfb1['item'];if(!_0xc5d33c)return;const _0x436634=_0x11e325['mapper']['toViewElement'](_0xc5d33c);_0xe94645['model']['schema']['isObject'](_0xc5d33c)&&_0x436634&&!_0x436634['getCustomProperty']('widget')&&_0x436634['is']('containerElement')&&_0x6e93eb(_0x436634,_0x11e325['writer']);},{'priority':'high'});}),_0xe94645['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x439bf3,_0x9334ef)=>{if(!_0x9334ef['options']['showSuggestionHighlights'])return null;const {id:_0x4aa674,authorId:_0x168ce2,type:_0x111abe,subType:_0x181489}=this['_splitMarkerName'](_0x439bf3['markerName']);return{'classes':['ck-suggestion-marker',_0x1c32f4(_0x111abe,_0x181489)],'priority':0xbb8,'attributes':{'data-suggestion':_0x4aa674,'data-author-id':_0x168ce2}};}});const _0x5375b2=({showActiveMarkers:_0x7a14c=!0x0,isAttributeSuggestion:_0x1ac79e=!0x1}={})=>(_0x4701e9,_0x34eff1,_0x4c43bf)=>{if(!_0x34eff1['item'])return;const {id:_0x427444,authorId:_0xe875df}=this['_splitMarkerName'](_0x34eff1['markerName']);if(_0x1ac79e){const _0x4df439=this['_suggestions']['get'](_0x427444),_0x206568=this['_getAttributeKey'](_0x4df439);if(!this['_isBlockAttribute'](_0x206568))return;}if(_0x34eff1['item']['is']('selection'))return void _0x4c43bf['consumable']['consume'](_0x34eff1['item'],_0x4701e9['name']);const _0x5ec4cf=_0x4c43bf['mapper']['toViewElement'](_0x34eff1['item']);if(_0x34eff1['item']['is']('element')&&_0xe94645['model']['schema']['isBlock'](_0x34eff1['item'])&&!_0x5ec4cf['getCustomProperty']('addHighlight')){_0x4c43bf['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5ec4cf),_0x4c43bf['writer']['setAttribute']('data-suggestion',_0x427444,_0x5ec4cf),_0x4c43bf['writer']['setAttribute']('data-author-id',_0xe875df,_0x5ec4cf),_0x4c43bf['mapper']['bindElementToMarker'](_0x5ec4cf,_0x34eff1['markerName']),_0x7a14c&&(this['activeMarkers']['includes'](_0x34eff1['markerName'])?_0x4c43bf['writer']['addClass']('ck-suggestion-marker--active',_0x5ec4cf):_0x4c43bf['writer']['removeClass']('ck-suggestion-marker--active',_0x5ec4cf));for(const _0x4d110f of _0xe94645['model']['createRangeIn'](_0x34eff1['item'])['getItems']())_0x4c43bf['consumable']['consume'](_0x4d110f,_0x4701e9['name']);_0x4c43bf['consumable']['consume'](_0x34eff1['item'],_0x4701e9['name']);}};_0xe94645['conversion']['for']('dataDowncast')['add'](_0x114bde=>{_0x114bde['on']('addMarker:suggestion:formatBlock',(_0x3fbc6e,_0x284a1a,_0x3c1e70)=>{_0x3c1e70['options']['showSuggestionHighlights']&&_0x5375b2({'showActiveMarkers':!0x1})(_0x3fbc6e,_0x284a1a,_0x3c1e70);},{'priority':'highest'});}),_0xe94645['conversion']['for']('dataDowncast')['add'](_0xe457a5=>{_0xe457a5['on']('addMarker:suggestion:attribute',(_0x40fa59,_0x16902e,_0x2e4f88)=>{_0x2e4f88['options']['showSuggestionHighlights']&&_0x5375b2({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x40fa59,_0x16902e,_0x2e4f88);},{'priority':'highest'});}),_0xe94645['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4d2c5c,_0x462f93)=>{if(_0x462f93['options']['showSuggestionHighlights']){const {id:_0x2d3b39,authorId:_0x709d4c}=this['_splitMarkerName'](_0x4d2c5c);return _0x4d2c5c['includes'](':split')||_0x4d2c5c['includes'](':merge')?{'group':'suggestion','name':_0x4d2c5c['substr'](0xb),'attributes':{'data-suggestion':_0x2d3b39,'data-author-id':_0x709d4c}}:null;}return{'group':'suggestion','name':_0x4d2c5c['substr'](0xb)};}}),_0xe94645['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1a271c,{writer:_0x4cdb45})=>{let _0x172cf8='suggestion:'+_0x1a271c['getAttribute']('suggestion-type')+':'+_0x1a271c['getAttribute']('id');return _0x1a271c['getAttribute']('marker-count')&&(_0x172cf8+=':'+_0x1a271c['getAttribute']('marker-count')),_0x4cdb45['createElement']('$marker',{'data-name':_0x172cf8});}}),_0xe94645['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xe94645['conversion']['for']('editingDowncast')['add'](_0x8cfcf3=>{_0x8cfcf3['on']('addMarker:suggestion:formatBlock',_0x5375b2(),{'priority':'high'});}),_0xe94645['conversion']['for']('editingDowncast')['add'](_0x599fc8=>{_0x599fc8['on']('addMarker:suggestion:attribute',_0x5375b2({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xe94645['conversion']['for']('editingDowncast')['add'](_0x392a6e=>{_0x392a6e['on']('removeMarker:suggestion:formatBlock',(_0x3a6412,_0x5da578,_0x3faf66)=>{const _0xa618e=_0x3faf66['mapper']['markerNameToElements'](_0x5da578['markerName']);if(_0xa618e){for(const _0x3c9c93 of _0xa618e)_0x3c9c93['getCustomProperty']('addHighlight')||(_0x3faf66['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3c9c93),_0x3faf66['writer']['removeAttribute']('data-suggestion',_0x3c9c93),_0x3faf66['writer']['removeAttribute']('data-author-id',_0x3c9c93),_0x3faf66['mapper']['unbindElementFromMarkerName'](_0x3c9c93,_0x5da578['markerName']));}},{'priority':'high'});}),_0xe94645['conversion']['for']('editingDowncast')['add'](_0x5be919=>{_0x5be919['on']('removeMarker:suggestion:attribute',(_0xf40b63,_0x4c368d,_0x3195bd)=>{const _0x593d03=_0x3195bd['mapper']['markerNameToElements'](_0x4c368d['markerName']);if(!_0x593d03)return;const {id:_0x42b6b7}=this['_splitMarkerName'](_0x4c368d['markerName']),_0xd48fd4=this['_suggestions']['get'](_0x42b6b7),_0x208856=this['_getAttributeKey'](_0xd48fd4);if(this['_isBlockAttribute'](_0x208856)){for(const _0x532cf8 of _0x593d03)_0x532cf8['getCustomProperty']('addHighlight')||(_0x3195bd['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x532cf8),_0x3195bd['writer']['removeAttribute']('data-suggestion',_0x532cf8),_0x3195bd['writer']['removeAttribute']('data-author-id',_0x532cf8),_0x3195bd['mapper']['unbindElementFromMarkerName'](_0x532cf8,_0x4c368d['markerName']));}},{'priority':'high'});}),_0xe94645['model']['document']['registerPostFixer'](_0x25fe72=>{let _0x38e910=!0x1;const _0x5f0e5b=Array['from'](_0xe94645['model']['document']['differ']['getChangedMarkers']()),_0xa49c7f=new Set();for(const {name:_0x3a4481,data:_0x37f5c3}of _0x5f0e5b){const {group:_0x5d52c0,type:_0x4e38cd,subType:_0x2a9225,id:_0x335fd2}=this['_splitMarkerName'](_0x3a4481);if('suggestion'!==_0x5d52c0)continue;const _0x3e27d7=_0x2a9225?'suggestion:'+_0x4e38cd+':'+_0x2a9225+':'+_0x335fd2:'suggestion:'+_0x4e38cd+':'+_0x335fd2,_0x52aed2=_0xe94645['model']['markers']['getMarkersGroup'](_0x3e27d7),_0x34ee1f=_0xe94645['model']['markers']['get'](_0x3a4481),_0x6354ef=this['_suggestions']['get'](_0x335fd2);if(null!=_0x37f5c3['newRange']){'formatInline'==_0x4e38cd&&(_0x38e910=_0x38e910||Gt(_0x37f5c3['newRange'],_0x3a4481,_0x25fe72,_0xe94645['model']['schema']));const _0x2d087e='attribute'==_0x4e38cd&&this['_isBlockAttribute'](_0x2a9225['split']('|')[0x0]),_0x35333b='attribute'==_0x4e38cd&&this['_isInlineAttribute'](_0x2a9225['split']('|')[0x0]);if(_0x37f5c3['newRange']['isCollapsed']||'$graveyard'==_0x37f5c3['newRange']['root']['rootName']||'formatBlock'==_0x4e38cd&&!Jt(_0x37f5c3['newRange'])||_0x2d087e&&!Jt(_0x37f5c3['newRange'])||_0x35333b&&Kt(_0x37f5c3['newRange'])||'deletion'==_0x4e38cd&&Kt(_0x37f5c3['newRange'])||_0x34ee1f&&Ht(_0x34ee1f,_0x52aed2))_0x25fe72['removeMarker'](_0x3a4481),_0x38e910=!0x0;else{if(!_0x6354ef||!_0x6354ef['isInContent'])continue;if(_0x37f5c3['newRange']&&_0x37f5c3['oldRange']&&_0x37f5c3['newRange']['isEqual'](_0x37f5c3['oldRange']))continue;_0xa49c7f['add'](_0x6354ef);}}}return _0xa49c7f['size']>0x0&&(_0x38e910=!!this['_joinWithAdjacentSuggestions'](_0xa49c7f)||_0x38e910),_0x38e910;}),_0xe94645['model']['document']['registerPostFixer'](_0x425198=>{let _0x5906c1=!0x1;for(const _0x3cf8d4 of _0xe94645['model']['document']['differ']['getChanges']())if('insert'==_0x3cf8d4['type'])for(const _0x277025 of this['_suggestions']['values']()){if(_0x277025['isMultiRange']||!_0x277025['isInContent'])continue;const _0x2a1747='formatBlock'==_0x277025['type'],_0x2be628=this['_getAttributeKey'](_0x277025),_0x2598df=_0x2be628&&this['_isBlockAttribute'](_0x2be628);if(!_0x2a1747&&!_0x2598df)continue;const _0x21de4b=_0x277025['getFirstRange']();if(_0x21de4b['start']['parent']!=_0x21de4b['end']['parent']&&!_0x21de4b['end']['isAtEnd']){const _0x479176=_0xe94645['model']['createPositionAt'](_0x21de4b['start']['nodeAfter'],'end'),_0x278cd5=_0xe94645['model']['createRange'](_0x21de4b['start'],_0x479176);_0x425198['updateMarker'](_0x277025['getFirstMarker'](),{'range':_0x278cd5}),_0x5906c1=!0x0;}}return _0x5906c1;}),_0xe94645['model']['document']['registerPostFixer'](_0x541d49=>this['_processAttributeChanges'](_0x541d49)),_0xe94645['model']['document']['registerPostFixer'](_0x4cbf91=>!_0x4cbf91['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4cbf91)),_0xe94645['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xe94645['model']['document']['on']('change:data',(_0x324f07,_0x47bd10)=>{if(!_0x47bd10['isLocal']||_0x47bd10['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x43f629=_0xe94645['model']['document']['differ']['getChanges']();if(0x0==_0x43f629['length'])return;const _0x4d49da=[],_0x2d47d1=_0x43f629['filter'](_0xd1b517=>'attribute'==_0xd1b517['type']),_0x4e4289=_0x43f629['filter'](_0x1db1fb=>'insert'==_0x1db1fb['type']&&'$text'!=_0x1db1fb['name']);for(const _0x32dfda of _0x2d47d1)this['_isRegisteredAttribute'](_0x32dfda['attributeKey'])&&_0x4d49da['push']({'key':_0x32dfda['attributeKey'],'newValue':_0x32dfda['attributeNewValue'],'oldValue':_0x32dfda['attributeOldValue'],'range':qt(_0x32dfda['range'],_0xe94645['model'])});for(const _0x2852b0 of _0x4e4289){if('rename'!=_0x2852b0['action']&&'refresh'!=_0x2852b0['action'])continue;const _0x15f7fc=zt(_0x2852b0['position']['nodeAfter'],_0xe94645['model']),_0x689f3a=_0x2852b0['before'];'rename'==_0x2852b0['action']&&_0x4d49da['push']({'key':m,'newValue':_0x2852b0['name'],'oldValue':_0x689f3a['name'],'range':_0x15f7fc});for(const [_0x3f53b2,_0x1cb1e4]of _0x689f3a['attributes']){if(!this['_isRegisteredAttribute'](_0x3f53b2))continue;const _0x51df9c=_0x2852b0['attributes']['get'](_0x3f53b2);_0x1cb1e4!==_0x51df9c&&_0x4d49da['push']({'key':_0x3f53b2,'newValue':_0x51df9c,'oldValue':_0x1cb1e4,'range':_0x15f7fc});}for(const [_0x1899eb,_0x56bc25]of _0x2852b0['attributes'])this['_isRegisteredAttribute'](_0x1899eb)&&(_0x689f3a['attributes']['has'](_0x1899eb)||_0x4d49da['push']({'key':_0x1899eb,'newValue':_0x56bc25,'oldValue':null,'range':_0x15f7fc}));}0x0!=_0x4d49da['length']&&_0xe94645['model']['enqueueChange'](_0x47bd10,_0x29a846=>{const _0x24c1cf=_0xd0f9be();for(const {range:_0x2920b7,key:_0x38ae7b,oldValue:_0xebd00e,newValue:_0x4db256}of _0x4d49da)this['markAttributeChange'](_0x2920b7,_0x38ae7b,_0xebd00e,_0x4db256,{'groupId':_0x24c1cf});this['_reduceExistingSuggestions'](_0x29a846,_0x4d49da);});},{'priority':'lowest'}),_0xe94645['model']['markers']['on']('update:suggestion',(_0x551b8e,_0xd5e526,_0x33ab6c)=>{if(null==_0x33ab6c){const {id:_0x4106bd}=this['_splitMarkerName'](_0xd5e526['name']),_0x52e3bd=this['_suggestions']['get'](_0x4106bd);_0x52e3bd&&_0x52e3bd['addMarkerName'](_0xd5e526['name']);}}),_0xe94645['model']['document']['on']('change:data',()=>{const _0xc27937=Array['from'](_0xe94645['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4fe142=>'suggestion'===this['_splitMarkerName'](_0x4fe142['name'])['group']);if(0x0===_0xc27937['length'])return;_0xc27937['sort']((_0x2bbe97,_0x3e964a)=>{const _0x586877=_0x2bbe97['data']['oldRange'],_0xaafa66=_0x3e964a['data']['oldRange'];return null===_0x586877&&null===_0xaafa66?0x0:null===_0x586877&&null!==_0xaafa66?-0x1:null!==_0x586877&&null===_0xaafa66?0x1:_0x586877['start']['isBefore'](_0xaafa66['start'])?-0x1:0x1;});const _0x14dabc=new Set(),_0xc1a42f=new Set();for(const {name:_0xd91c15,data:_0x2f5dfe}of _0xc27937){const {id:_0x3eaf48}=this['_splitMarkerName'](_0xd91c15);if(null===_0x2f5dfe['oldRange']){const _0x7a959=this['_handleNewSuggestionMarker'](_0xd91c15);_0xc1a42f['add'](_0x7a959);}else{const _0x4225d1=this['_suggestions']['get'](_0x3eaf48);null!==_0x2f5dfe['newRange']||_0x4225d1['isInContent']?(_0x14dabc['add'](_0x4225d1['head']),_0xc1a42f['add'](_0x4225d1)):this['_removeSuggestion'](_0x4225d1);}}_0xc1a42f['size']>0x0&&this['_refreshSuggestionsChain'](_0xc1a42f);for(const _0x3c1bb4 of _0x14dabc)this['fire']('suggestionChanged',_0x3c1bb4);}),_0xe94645['model']['on']('applyOperation',(_0x2fb5bd,_0x25a05a)=>{const _0x4cb021=_0x25a05a[0x0];if(!this['_suggestions']['size'])return;if(!_0x4cb021['isDocumentOperation'])return;if(_0x4cb021['batch']['isUndo']||!_0x4cb021['batch']['isLocal'])return;let _0x5c9121,_0x43d802;switch(_0x4cb021['type']){case'insert':_0x5c9121=_0xe94645['model']['createPositionAt'](_0x4cb021['position']),_0x43d802=_0x5c9121['getShiftedBy'](_0x4cb021['howMany']);break;case'split':_0x5c9121=_0xe94645['model']['createPositionAt'](_0x4cb021['splitPosition']),_0x43d802=_0xe94645['model']['createPositionAt'](_0x4cb021['moveTargetPosition']);break;case'move':_0x5c9121=_0xe94645['model']['createPositionAt'](_0x4cb021['targetPosition']),_0x43d802=_0x5c9121['getShiftedBy'](_0x4cb021['howMany']);break;default:return;}const _0x2c9c8d=_0xe94645['model']['createRange'](_0x5c9121,_0x43d802);_0xe94645['model']['change'](()=>{for(const {suggestion:_0x56fc59,meta:_0x58fe2e}of this['_findSuggestions'](_0x2c9c8d)){if(_0x56fc59['isMultiRange'])continue;if('formatInline'==_0x56fc59['type'])continue;const _0x21bafe=this['_getAttributeKey'](_0x56fc59);if(_0x21bafe&&this['_isBlockAttribute'](_0x21bafe)&&'split'!=_0x4cb021['type'])continue;const _0x27f529=_0x56fc59['data']&&_0x56fc59['data']['multipleBlocks'];('formatBlock'!=_0x56fc59['type']||'split'==_0x4cb021['type']&&!_0x27f529)&&(_0x58fe2e['containsRangeInObject']||'insertion'==_0x56fc59['type']&&_0x58fe2e['isOwn']||_0x56fc59['getFirstRange']()['containsRange'](_0x2c9c8d)&&this['_breakSuggestionMarker'](_0x56fc59,_0x5c9121,_0x43d802));}});},{'priority':'lowest'}),_0xe94645['model']['on']('deleteContent',(_0x2262b8,_0x2eb748)=>{const _0x47d11e=_0x2eb748[0x0],_0x1bfc1f=_0x2eb748[0x1];if(_0x1bfc1f&&_0x1bfc1f['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x47d11e['isCollapsed'])return;const _0x43fcac=_0xe94645['model']['schema'],{start:_0x2bd40,end:_0x378134}=_0x47d11e['getFirstRange'](),_0x5d438f=_0x2bd40['nodeAfter']&&_0x43fcac['isLimit'](_0x2bd40['nodeAfter'])?null:_0x43fcac['getNearestSelectionRange'](_0x2bd40,'forward'),_0x160691=_0x378134['nodeBefore']&&_0x43fcac['isLimit'](_0x378134['nodeBefore'])?null:_0x43fcac['getNearestSelectionRange'](_0x378134,'backward'),_0x212ee4=_0xe94645['model']['createRange'](_0x5d438f?_0x5d438f['start']:_0x2bd40,_0x160691?_0x160691['end']:_0x378134);_0xe94645['model']['change'](_0x3d570d=>{this['markDeletion'](_0x212ee4);const _0x4a2171=_0xe94645['model']['schema']['getNearestSelectionRange'](_0x212ee4['start']);_0x47d11e['is']('documentSelection')?_0x3d570d['setSelection'](_0x4a2171):_0x47d11e['setTo'](_0x4a2171);}),_0x2262b8['stop']();},{'priority':_0x4c5029['normal']+0xa}),_0xe94645['model']['on']('insertContent',(_0x5d12cd,_0x31d9af)=>{const _0x2036aa=_0x31d9af[_0x31d9af['length']-0x1];_0x2036aa&&_0x2036aa['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xe94645['model']['change'](()=>{let _0x505c00=_0xe94645['model']['insertContent'](_0x31d9af[0x0],_0x31d9af[0x1],_0x31d9af[0x2],{'forceDefaultExecution':!0x0});if(!_0x505c00)return;_0x5d12cd['return']=_0x505c00['clone']();const _0x390f8c=_0x505c00['end']['nodeBefore'],_0x5838bc=_0xe94645['model']['schema'];_0x390f8c&&_0x5838bc['isBlock'](_0x390f8c)&&!_0x5838bc['isObject'](_0x390f8c)&&(_0x505c00=_0xe94645['model']['createRange'](_0x505c00['start'],_0xe94645['model']['createPositionAt'](_0x390f8c,'end'))),this['markInsertion'](_0x505c00);}),_0x5d12cd['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5cd402=new D(_0xe94645,this['_suggestions']);_0xe94645['commands']['add']('acceptSuggestion',_0x5cd402),this['enableCommand']('acceptSuggestion');const _0x23188a=new $(_0xe94645,this['_suggestions']);_0xe94645['commands']['add']('discardSuggestion',_0x23188a),this['enableCommand']('discardSuggestion'),_0xe94645['commands']['add']('acceptAllSuggestions',new M(_0xe94645,_0x5cd402,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xe94645['commands']['add']('discardAllSuggestions',new M(_0xe94645,_0x23188a,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xe94645['commands']['add']('acceptSelectedSuggestions',new B(_0xe94645,_0x5cd402,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xe94645['commands']['add']('discardSelectedSuggestions',new B(_0xe94645,_0x23188a,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x44f810=_0xe94645['plugins']['get']('CommentsRepository');this['listenTo'](_0x44f810,'addComment',(_0x4402c1,{threadId:_0x417780})=>{const _0x51bc92=this['_suggestions']['get'](_0x417780);_0x51bc92&&_0x51bc92['commentThread']&&0x1===_0x51bc92['commentThread']['length']&&this['_updateSuggestionData'](_0x417780,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x44f810,'removeComment',(_0x529f59,{threadId:_0x34e874})=>{const _0x3df242=this['_suggestions']['get'](_0x34e874);_0x3df242&&_0x3df242['commentThread']&&!_0x3df242['commentThread']['length']&&this['_updateSuggestionData'](_0x34e874,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x275d76){const _0x114a7a=_0x42412f([0x4f,0x61,0x30,0x38,0x52,0x47,0x6e,0x72,0x31,0x4b,0x7a,0x33,0x5a,0x75,0x55,0x59,0x68,0x57,0x67,0x73,0x6f,0x46,0x56,0x77,0x42,0x48,0x69,0x62,0x4e,0x76,0x6a,0x6c,0x44,0x35,0x51,0x54,0x58,0x34,0x6b,0x71,0x6d,0x32,0x64,0x4d,0x39,0x50,0x74,0x37,0x49,0x63,0x4a,0x70,0x4c,0x43,0x66,0x53,0x78,0x45,0x79,0x41,0x36,0x65]),_0x3d2420=0x7a631f67,_0x3e51f1=0x7a6470af^_0x3d2420,_0x33b6cf=window[_0x42412f([0x44,0x61,0x74,0x65])][_0x42412f([0x6e,0x6f,0x77])](),_0x2214eb=_0x275d76[_0x42412f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x348e9d=new window[(_0x42412f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d6f1f=>{_0x2214eb[_0x42412f([0x6f,0x6e,0x63,0x65])](_0x42412f([0x72,0x65,0x61,0x64,0x79]),_0x5d6f1f);}),_0x54bf1b={[_0x42412f([0x6b,0x74,0x79])]:_0x42412f([0x45,0x43]),[_0x42412f([0x75,0x73,0x65])]:_0x42412f([0x73,0x69,0x67]),[_0x42412f([0x63,0x72,0x76])]:_0x42412f([0x50,0x2d,0x32,0x35,0x36]),[_0x42412f([0x78])]:_0x42412f([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]),[_0x42412f([0x79])]:_0x42412f([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]),[_0x42412f([0x61,0x6c,0x67])]:_0x42412f([0x45,0x53,0x32,0x35,0x36])},_0x2c149f=_0x2214eb[_0x42412f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x42412f([0x67,0x65,0x74])](_0x42412f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2c3f9d(){let _0x11c00c,_0x174ac4=null,_0x515b41=null;try{if(_0x2c149f==_0x42412f([0x47,0x50,0x4c]))return _0x42412f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x11c00c=_0x579463(),!_0x11c00c)return _0x42412f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x11c00c[_0x42412f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x515b41=_0x5ca004(_0x11c00c[_0x42412f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x11c00c[_0x42412f([0x6a,0x74,0x69])])),await _0x18cfc0()?_0x30992f()?_0x281236()?_0x42412f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x481f1a()?(_0x11c00c[_0x42412f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x42412f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x174ac4=_0x20c5ab(_0x42412f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x11c00c[_0x42412f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x42412f([0x74,0x72,0x69,0x61,0x6c])&&(_0x174ac4=_0x20c5ab(_0x42412f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3b2897()):_0x42412f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x42412f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x42412f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x42412f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x281236(){const _0x425869=[_0x42412f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x42412f([0x74,0x72,0x69,0x61,0x6c])][_0x42412f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11c00c[_0x42412f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x33b6cf/0x3e8:0xe10*_0x3e51f1;return _0x11c00c[_0x42412f([0x65,0x78,0x70])]<_0x425869;}function _0x30992f(){const _0x1dfa95=_0x11c00c[_0x42412f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1dfa95)return!0x1;if(_0x1dfa95[_0x42412f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42412f([0x2a])))return!0x0;if(_0x1dfa95[_0x42412f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42412f([0x54,0x43])))return!0x0;if(_0x1dfa95[_0x42412f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42412f([0x52,0x54,0x43]))){if(_0x300f9b())return!0x0;if(_0x3ba4d1()||_0x423bd3())return!0x0;}return!0x1;}function _0x481f1a(){const _0x535774=_0x11c00c[_0x42412f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x535774||0x0==_0x535774[_0x42412f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5f1d4a}=new URL(window[_0x42412f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x535774[_0x42412f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f1d4a))return!0x0;const _0x177cb5=_0x5f1d4a[_0x42412f([0x73,0x70,0x6c,0x69,0x74])](_0x42412f([0x2e]));return _0x535774[_0x42412f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x28066d=>_0x28066d[_0x42412f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42412f([0x2a])))[_0x42412f([0x6d,0x61,0x70])](_0x5e807c=>_0x5e807c[_0x42412f([0x73,0x70,0x6c,0x69,0x74])](_0x42412f([0x2e])))[_0x42412f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4d397e=>_0x4d397e[_0x42412f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x177cb5[_0x42412f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x42412f([0x6d,0x61,0x70])](_0x3cdfde=>Array(_0x177cb5[_0x42412f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3cdfde[_0x42412f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x42412f([0x66,0x69,0x6c,0x6c])](_0x3cdfde[0x0]===_0x42412f([0x2a])?_0x42412f([0x2a]):'')[_0x42412f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3cdfde))[_0x42412f([0x73,0x6f,0x6d,0x65])](_0x40f71e=>_0x177cb5[_0x42412f([0x65,0x76,0x65,0x72,0x79])]((_0x1daec1,_0x5e5883)=>_0x40f71e[_0x5e5883]===_0x1daec1||_0x40f71e[_0x5e5883]===_0x42412f([0x2a])));}function _0x3b2897(){return _0x174ac4&&_0x515b41?new window[(_0x42412f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d410c,_0x49e00f)=>{_0x174ac4[_0x42412f([0x74,0x68,0x65,0x6e])](_0x4d410c,_0x49e00f),_0x515b41[_0x42412f([0x74,0x68,0x65,0x6e])](_0x54dc94=>{_0x54dc94!=_0x42412f([0x56,0x61,0x6c,0x69,0x64])&&_0x4d410c(_0x54dc94);},_0x49e00f);}):_0x174ac4||_0x515b41||_0x42412f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5ca004(_0x1ff6b2,_0x2a4084){return new window[(_0x42412f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x146e13=>{if(_0x394b0a())return _0x146e13(_0x42412f([0x56,0x61,0x6c,0x69,0x64]));_0x1c0a8a(),_0x2214eb[_0x42412f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x42412f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3816a2=!0x1;const _0x4403b2=_0xd0f9be();function _0x204926(_0x5772ac){return!!_0x5772ac&&(typeof _0x5772ac===_0x42412f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5772ac===_0x42412f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5772ac[_0x42412f([0x74,0x68,0x65,0x6e])]===_0x42412f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5772ac[_0x42412f([0x63,0x61,0x74,0x63,0x68])]===_0x42412f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x6eee34(_0x3b3587){_0x6e8692(_0x3b3587)[_0x42412f([0x74,0x68,0x65,0x6e])](_0x86d146=>{if(!_0x86d146||_0x86d146[_0x42412f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x42412f([0x6f,0x6b]))return _0x42412f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2a1e8d(_0xd15ff3(_0x4403b2+_0x2a4084))!=_0x86d146[_0x42412f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x42412f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x42412f([0x56,0x61,0x6c,0x69,0x64]);})[_0x42412f([0x74,0x68,0x65,0x6e])](_0x3df9b0=>(_0xb0298c(),_0x3df9b0),()=>{const _0xe3d921=_0x193b12();return null==_0xe3d921?(_0xb0298c(),_0x42412f([0x56,0x61,0x6c,0x69,0x64])):_0x42412f(_0x33b6cf-_0xe3d921>(0x5e6f9b67^_0x3d2420)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x42412f([0x74,0x68,0x65,0x6e])](_0x146e13)[_0x42412f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x146e13(_0x42412f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x440d19=0x7a55f1e7^_0x3d2420;function _0xb0298c(){const _0x1dfa68=_0x42412f([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a1e8d(_0xd15ff3(_0x1ff6b2)),_0x6794fa=_0x5267fe(_0x2a1e8d(window[_0x42412f([0x4d,0x61,0x74,0x68])][_0x42412f([0x63,0x65,0x69,0x6c])](_0x33b6cf/_0x440d19)));window[_0x42412f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x42412f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1dfa68,_0x6794fa);}function _0x193b12(){const _0x4c3c1f=_0x42412f([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a1e8d(_0xd15ff3(_0x1ff6b2)),_0x4e733e=window[_0x42412f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x42412f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4c3c1f);return _0x4e733e?window[_0x42412f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5267fe(_0x4e733e),0x10)*_0x440d19:null;}function _0x6e8692(_0x31bdb7){return new window[(_0x42412f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c97c0,_0x5d40dd)=>{_0x31bdb7[_0x42412f([0x74,0x68,0x65,0x6e])](_0x3c97c0,_0x5d40dd),window[_0x42412f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5d40dd,0x7a62cba7^_0x3d2420);});}}_0x2214eb[_0x42412f([0x6f,0x6e])](_0x42412f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xf5b7f3,_0x1430ad)=>{if(_0x1430ad[0x0]!=_0x1ff6b2)return _0x146e13(_0x42412f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1430ad[0x1]={..._0x1430ad[0x1],[_0x42412f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4403b2};},{[_0x42412f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x42412f([0x68,0x69,0x67,0x68])}),_0x2214eb[_0x42412f([0x6f,0x6e])](_0x42412f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5a5fd9=>{_0x204926(_0x5a5fd9[_0x42412f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3816a2=!0x0,_0x6eee34(_0x5a5fd9[_0x42412f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x42412f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x42412f([0x6c,0x6f,0x77])}),_0x348e9d[_0x42412f([0x74,0x68,0x65,0x6e])](()=>{_0x3816a2||_0x146e13(_0x42412f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x394b0a(){return _0x2214eb[_0x42412f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42412f([0x76,0x69,0x65,0x77])][_0x42412f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x42412f([0x61,0x75,0x74,0x6f]);}function _0x1c0a8a(){_0x2214eb[_0x42412f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42412f([0x76,0x69,0x65,0x77])][_0x42412f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x42412f([0x61,0x75,0x74,0x6f]);}}function _0x20c5ab(_0x522087){const _0xe24a6b=[new window[(_0x42412f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57ba99=>setTimeout(_0x57ba99,0x7a6a21ab^_0x3d2420)),_0x348e9d[_0x42412f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x42412f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20f0e1=>{let _0x27823f=0x0;_0x2214eb[_0x42412f([0x6d,0x6f,0x64,0x65,0x6c])][_0x42412f([0x6f,0x6e])](_0x42412f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x595ac3,_0x128a50)=>{_0x128a50[0x0][_0x42412f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x27823f++,_0x27823f==(0x7a631e9f^_0x3d2420)&&(_0x20f0e1(),_0x595ac3[_0x42412f([0x6f,0x66,0x66])]());});}))];return window[_0x42412f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x42412f([0x72,0x61,0x63,0x65])](_0xe24a6b)[_0x42412f([0x74,0x68,0x65,0x6e])](()=>_0x522087);}async function _0x2dd3d4(){await _0x348e9d,_0x2214eb[_0x42412f([0x6d,0x6f,0x64,0x65,0x6c])][_0x42412f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xfafefd,_0x2214eb[_0x42412f([0x6d,0x6f,0x64,0x65,0x6c])][_0x42412f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xfafefd,_0x2214eb[_0x42412f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x42412f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x300f9b(){return _0x190dea(_0x42412f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x498b37(_0x42412f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x42412f([0x73,0x74,0x61,0x74,0x65])]==_0x42412f([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3ba4d1(){return _0x190dea(_0x42412f([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 _0x423bd3(){return _0x190dea(_0x42412f([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3fd924(_0x58af1e){const _0x42a753=_0x1108a5();_0x2214eb[_0x42a753]=_0x42412f([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x58af1e,_0x58af1e!=_0x42412f([0x56,0x61,0x6c,0x69,0x64])&&_0x2dd3d4();}function _0x1108a5(){const _0x161807=window[_0x42412f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x42412f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x42412f([0x6e,0x6f,0x77])]())[_0x42412f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x42412f([0x2e]),'');let _0x1ab58d=_0x42412f([0x4f]);for(let _0x576747=0x0;_0x576747<_0x161807[_0x42412f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x576747+=0x2){let _0x33ca73=window[_0x42412f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x161807[_0x42412f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x576747,_0x576747+0x2));_0x33ca73>=_0x114a7a[_0x42412f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x33ca73-=_0x114a7a[_0x42412f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1ab58d+=_0x114a7a[_0x33ca73];}return _0x1ab58d;}function _0x579463(){const _0x4b8af1=_0x2c149f[_0x42412f([0x73,0x70,0x6c,0x69,0x74])](_0x42412f([0x2e]));if(0x3!=_0x4b8af1[_0x42412f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3abe24(_0x4b8af1[0x1]);function _0x3abe24(_0x4708cf){const _0x244012=_0x2a2846(_0x4708cf);return _0x244012&&_0x25c919()?_0x244012:null;function _0x25c919(){const _0x516887=_0x244012[_0x42412f([0x6a,0x74,0x69])],_0xf25cf=window[_0x42412f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x516887[_0x42412f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x516887[_0x42412f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x511272={..._0x244012,[_0x42412f([0x6a,0x74,0x69])]:_0x516887[_0x42412f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x516887[_0x42412f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x511272[_0x42412f([0x76,0x63])],_0xd15ff3(_0x511272)==_0xf25cf;}}}async function _0x18cfc0(){let _0x4f24e1=!0x0;try{const _0x511c92=_0x2c149f[_0x42412f([0x73,0x70,0x6c,0x69,0x74])](_0x42412f([0x2e])),[_0x4802d2,_0x5b5b8e,_0x5d9ddd]=_0x511c92;return _0x6f0c36(_0x4802d2),await _0x1bfb5f(_0x4802d2,_0x5b5b8e,_0x5d9ddd),_0x4f24e1;}catch{return!0x1;}function _0x6f0c36(_0x56a02f){const _0x379e69=_0x2a2846(_0x56a02f);_0x379e69&&_0x379e69[_0x42412f([0x61,0x6c,0x67])]==_0x42412f([0x45,0x53,0x32,0x35,0x36])||(_0x4f24e1=!0x1);}async function _0x1bfb5f(_0x438192,_0x45f376,_0x225c52){const _0x5c528e=window[_0x42412f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x42412f([0x66,0x72,0x6f,0x6d])](_0x160bc5(_0x225c52),_0x57de00=>_0x57de00[_0x42412f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1d1d96=new window[(_0x42412f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x42412f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x438192+_0x42412f([0x2e])+_0x45f376),_0x8add84=window[_0x42412f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x42412f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x8add84)return;const _0x410da2=await _0x8add84[_0x42412f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x42412f([0x6a,0x77,0x6b]),_0x54bf1b,{[_0x42412f([0x6e,0x61,0x6d,0x65])]:_0x42412f([0x45,0x43,0x44,0x53,0x41]),[_0x42412f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x42412f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x42412f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x8add84[_0x42412f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x42412f([0x6e,0x61,0x6d,0x65])]:_0x42412f([0x45,0x43,0x44,0x53,0x41]),[_0x42412f([0x68,0x61,0x73,0x68])]:{[_0x42412f([0x6e,0x61,0x6d,0x65])]:_0x42412f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x410da2,_0x5c528e,_0x1d1d96)||(_0x4f24e1=!0x1);}}function _0x2a2846(_0x4e0df5){return _0x4e0df5[_0x42412f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x42412f([0x65,0x79]))?JSON[_0x42412f([0x70,0x61,0x72,0x73,0x65])](_0x160bc5(_0x4e0df5)):null;}function _0x160bc5(_0x5eb430){return window[_0x42412f([0x61,0x74,0x6f,0x62])](_0x5eb430[_0x42412f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x42412f([0x2b]))[_0x42412f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x42412f([0x2f])));}function _0xd15ff3(_0xe69e0b){let _0x54dd5a=0x1505;function _0x2e63df(_0x4e56c9){for(let _0x437a3e=0x0;_0x437a3e<_0x4e56c9[_0x42412f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x437a3e++){const _0x33b0f5=_0x4e56c9[_0x42412f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x437a3e);_0x54dd5a=(_0x54dd5a<<0x5)+_0x54dd5a+_0x33b0f5,_0x54dd5a&=_0x54dd5a;}}function _0xa6fd90(_0x8de73b){Array[_0x42412f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x8de73b)?_0x8de73b[_0x42412f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xa6fd90):_0x8de73b&&typeof _0x8de73b==_0x42412f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x42412f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x8de73b)[_0x42412f([0x73,0x6f,0x72,0x74])]()[_0x42412f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3c6ad9,_0xe023e5])=>{_0x2e63df(_0x3c6ad9),_0xa6fd90(_0xe023e5);}):_0x2e63df(window[_0x42412f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x8de73b));}return _0xa6fd90(_0xe69e0b),_0x54dd5a>>>0x0;}function _0x2a1e8d(_0x2dfd3a){return _0x2dfd3a[_0x42412f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x42412f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x42412f([0x30]));}function _0x5267fe(_0x1bc232){return _0x1bc232[_0x42412f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x42412f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x42412f([0x6a,0x6f,0x69,0x6e])]('');}function _0x190dea(_0x56860f){return _0x2214eb[_0x42412f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x42412f([0x68,0x61,0x73])](_0x56860f);}function _0x498b37(_0x5325a5){return _0x2214eb[_0x42412f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x42412f([0x67,0x65,0x74])](_0x5325a5);}function _0xfafefd(){}function _0x42412f(_0x2d26d3){return _0x2d26d3['map'](_0x32fe41=>String['fromCharCode'](_0x32fe41))['join']('');}_0x3fd924(await _0x2c3f9d());}(this);}set['adapter'](_0x3f5a44){if(this['_adapter'])throw new _0x4fc565('track-changes-adapter-already-set',this);this['_adapter']=_0x3f5a44;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x430995=!0x1,toJSON:_0x4a3387=!0x1}={}){const _0x41b9e4=[];for(const _0x5bc91c of this['_suggestions']['values']())_0x430995&&!_0x5bc91c['isInContent']||_0x41b9e4['push'](_0x5bc91c);return _0x4a3387?_0x41b9e4['map'](_0x33d25d=>_0x33d25d['toJSON']()):_0x41b9e4;}['getSuggestion'](_0x291b2d){const _0x4c4992=this['_suggestions']['get'](_0x291b2d);if(!_0x4c4992)throw new _0x4fc565('track-changes-suggestion-not-found',this);return _0x4c4992;}['hasSuggestion'](_0x489d50){return this['_suggestions']['has'](_0x489d50);}['addSuggestionData'](_0x9ca5bc){const {authorId:_0x17b880,id:_0x50b89a,originalSuggestionId:_0x54b44e,attributes:_0x5ee60f}=_0x9ca5bc,[_0xb709f2,_0x1c5945]=_0x9ca5bc['type']['split'](':'),_0x3452aa=this['_suggestions']['get'](_0x50b89a)||this['_createSuggestion'](_0xb709f2,_0x1c5945,_0x50b89a,_0x17b880,_0x5ee60f,_0x54b44e);if(this['_addThreadToSuggestion'](_0x3452aa),this['_checkSuggestionCorrectness'](_0x3452aa,_0xb709f2,_0x1c5945||null,_0x17b880),_0x3452aa['createdAt']=_0x9ca5bc['createdAt'],_0x3452aa['_isDataLoaded']=!0x0,_0x5ee60f&&_0x5ee60f['@external']){const _0x305425=_0x5ee60f['@external'],_0x28bb79=this['_getExternalAuthor'](_0x305425['authorName']);_0x3452aa['authoredAt']=_0x305425['createdAt'],_0x3452aa['author']=_0x28bb79,_0x3452aa['isExternal']=!0x0;}else _0x3452aa['authoredAt']=_0x9ca5bc['createdAt'];switch(_0x9ca5bc['data']&&(_0x3452aa['data']=_0x9ca5bc['data']),_0x9ca5bc['attributes']&&(_0x3452aa['attributes']=_0x9ca5bc['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3452aa['_saved']=!0x0),this['_suggestionState']['get'](_0x3452aa)){case'notReady':this['_suggestionState']['set'](_0x3452aa,'dataReady');break;case'markerReady':_0x3452aa['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3452aa])),this['_refreshSuggestionsChain'](new Set([_0x3452aa])),this['_suggestionState']['set'](_0x3452aa,'ready'),this['fire']('suggestionLoaded',_0x3452aa)):this['_suggestionState']['set'](_0x3452aa,'removed');}return _0x3452aa;}['acceptSuggestion'](_0x543c33){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5d7c9b of _0x543c33['getAllAdjacentSuggestions']())_0x5d7c9b['accept']();});});}['discardSuggestion'](_0x13f4c6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x50cbfd of _0x13f4c6['getAllAdjacentSuggestions']())_0x50cbfd['discard']();});});}['enableCommand'](_0xa12f30,_0x5c8e77){const _0x3ac846=this['editor']['commands']['get'](_0xa12f30);if(!_0x3ac846)throw new _0x4fc565('track-changes-command-not-found',this,{'commandName':_0xa12f30});if(this['_enabledCommands']['has'](_0x3ac846))throw new _0x4fc565('track-changes-enable-command-twice',this,{'commandName':_0xa12f30});this['_enabledCommands']['add'](_0x3ac846),_0x5c8e77&&_0x3ac846['on']('execute',(_0x34c059,_0x1e17ea)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1e17ea['length']>0x0&&_0x1e17ea[_0x1e17ea['length']-0x1]&&_0x1e17ea[_0x1e17ea['length']-0x1]['forceDefaultExecution']?_0x1e17ea['pop']():(_0x34c059['return']=_0x5c8e77((..._0x5a4565)=>_0x3ac846['execute'](..._0x5a4565,{'forceDefaultExecution':!0x0}),..._0x1e17ea),_0x34c059['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3e557a){let _0x3b4aee,_0xbd3554;const _0x887afb=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3b4aee=_0x3e557a();}catch(_0x2e64e6){_0xbd3554=_0x2e64e6;}return _0x887afb||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xbd3554&&_0x4fc565['rethrowUnexpectedError'](_0xbd3554,this),_0x3b4aee;}['markInsertion'](_0xb05933,_0x3026b6=null,_0x4081d2={}){if(_0xb05933['isCollapsed'])return null;const _0x5a2053=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x4081d2['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2ee2f9,meta:_0x128b8c}of this['_findSuggestions'](_0xb05933,'insertion'))if(_0x128b8c['isOwn']){if(!_0x128b8c['isNextTo']){if(_0x128b8c['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x2ee2f9,_0x4081d2))continue;return _0x2ee2f9;}if(Xt(_0x2ee2f9,_0x4081d2))return _0x2ee2f9;this['_breakSuggestionMarker'](_0x2ee2f9,_0xb05933['start'],_0xb05933['end']);break;}if(_0x3026b6==_0x2ee2f9['subType']&&Xt(_0x2ee2f9,_0x4081d2)){const _0x47e642=_0x2ee2f9['getFirstRange']();return _0x47e642['start']['isEqual'](_0xb05933['end'])?this['_setSuggestionRange'](_0x2ee2f9,this['_model']['createRange'](_0xb05933['start'],_0x47e642['end'])):this['_setSuggestionRange'](_0x2ee2f9,this['_model']['createRange'](_0x47e642['start'],_0xb05933['end'])),_0x2ee2f9;}}const _0x409d0d=_0xd0f9be(),_0x2433af=_0x5a2053['id'],_0x512683=_0x3026b6?'insertion:'+_0x3026b6:'insertion',_0x194d69=this['_setSuggestionData']({'id':_0x409d0d,'type':_0x512683,'createdAt':new Date(),'authorId':_0x2433af,'attributes':_0x4081d2});return this['_addSuggestionMarker'](_0x512683,_0x409d0d,_0x2433af,_0xb05933),_0x194d69;}['markMultiRangeInsertion'](_0x521c29,_0x38fc8b='multi',_0x2cff66={}){const _0x17cba3=this['editor']['plugins']['get']('Users')['me'],_0x5d9f0c=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x38fc8b,'join');this['_trackingSessionId']&&(_0x2cff66['trackingSessionId']=this['_trackingSessionId']);for(const _0x3e3170 of this['getSuggestions']())if(_0x3e3170['author']['id']==_0x17cba3['id']&&'insertion'==_0x3e3170['type']&&_0x3e3170['subType']==_0x38fc8b&&Xt(_0x3e3170,_0x2cff66)&&(_0x5d9f0c(_0x3e3170['getRanges'](),_0x521c29)||_0x5d9f0c(_0x521c29,_0x3e3170['getRanges']()))){for(const _0x26e55e of _0x521c29)_0x3e3170['addRange'](_0x26e55e);return _0x3e3170;}for(const {suggestion:_0x5c2cee,meta:_0x44dc97}of this['_findSuggestions'](_0x521c29,'insertion')){if(!_0x44dc97['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x44dc97['containsRangeInObject'])continue;if(!Xt(_0x5c2cee,_0x2cff66))continue;let _0x26859d=!0x0;for(const _0x4df9f2 of _0x5c2cee['getRanges']())for(const _0x1e010c of _0x521c29)if(!_0x4df9f2['containsRange'](_0x1e010c)){_0x26859d=!0x1;break;}if(_0x26859d)return _0x5c2cee;}const _0x4ed5e4=_0xd0f9be(),_0x3a05c6=_0x17cba3['id'],_0x525017='insertion:'+_0x38fc8b,_0x31d448=this['_setSuggestionData']({'id':_0x4ed5e4,'type':_0x525017,'createdAt':new Date(),'authorId':_0x3a05c6,'attributes':_0x2cff66});for(const _0x490193 of _0x521c29)this['_addSuggestionMarker'](_0x525017,_0x4ed5e4,_0x3a05c6,_0x490193,T['getMultiRangeId']());return _0x31d448;}['markInlineFormat'](_0x22cc10,_0x4abbd0,_0x521133=null,_0x30751d={}){if(_0x521133=_0x521133||Lt(_0x4abbd0),_0x22cc10['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x30751d['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x22ffc7=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x521133,'accept');return this['forceDefaultExecution'](()=>_0x22ffc7([_0x22cc10],_0x4abbd0,_0x30751d)),null;}const _0x5df205=this['editor']['plugins']['get']('Users')['me'],_0x2a358b=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x377055,meta:_0x1c617e}of this['_findSuggestions'](_0x22cc10,'insertion'))_0x1c617e['isOwn']&&!_0x1c617e['isInsideObject']&&_0x2a358b['push'](..._0x377055['getRanges']());}const _0x3b64fc=function(_0x4adad8,_0x4e90fd){const _0x1abc7d=[];for(const _0xf9474a of _0x4e90fd){const _0x235930=_0x4adad8['getIntersection'](_0xf9474a);_0x235930&&_0x1abc7d['push'](_0x235930);}return _0x1abc7d;}(_0x22cc10,_0x2a358b),_0x172e7d=function(_0x598ca3,_0x1ff358){const _0x3ae81c=[_0x598ca3];for(const _0x26602a of _0x1ff358){let _0x4f0705=0x0;for(;_0x4f0705<_0x3ae81c['length'];){const _0x1d464c=_0x3ae81c[_0x4f0705]['getDifference'](_0x26602a);_0x3ae81c['splice'](_0x4f0705,0x1,..._0x1d464c),_0x4f0705+=_0x1d464c['length'];}}return _0x3ae81c;}(_0x22cc10,_0x2a358b);_0x3b64fc['length']&&this['_model']['change'](()=>{for(const _0x259f58 of _0x3b64fc){const _0x2cf3a6=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x521133,'accept');this['forceDefaultExecution'](()=>_0x2cf3a6([_0x259f58],_0x4abbd0,_0x30751d));}});for(const _0x4907ce of _0x172e7d){let _0x551267=null,_0x46fc21=_0x4907ce['start'],_0x3370c8=_0x4907ce['end'];for(const {suggestion:_0x2d8c7c,meta:_0x1b38cb}of this['_findSuggestions'](_0x4907ce,'formatInline')){if(!_0x1b38cb['isOwn'])continue;if(_0x2d8c7c['subType']!=_0x521133)continue;if(!Xt(_0x2d8c7c,_0x30751d))continue;const _0x1d2a1f=_0x2d8c7c['getFirstRange']();if(_0x1d2a1f['containsRange'](_0x4907ce,!0x0))return null;_0x46fc21=_0x46fc21['isBefore'](_0x1d2a1f['start'])?_0x46fc21:_0x1d2a1f['start'],_0x3370c8=_0x3370c8['isAfter'](_0x1d2a1f['end'])?_0x3370c8:_0x1d2a1f['end'],_0x551267?_0x1d2a1f['start']['isBefore'](_0x551267['getFirstRange']()['start'])?(_0x551267['removeMarkers'](),_0x551267=_0x2d8c7c):_0x2d8c7c['removeMarkers']():_0x551267=_0x2d8c7c;}const _0x3b4406=this['_model']['createRange'](_0x46fc21,_0x3370c8);if(_0x551267)this['_setSuggestionRange'](_0x551267,_0x3b4406);else{const _0x316b67=_0xd0f9be(),_0x67777b=_0x5df205['id'];this['_setSuggestionData']({'id':_0x316b67,'type':'formatInline:'+_0x521133,'data':_0x4abbd0,'createdAt':new Date(),'authorId':_0x67777b,'attributes':_0x30751d}),this['_addSuggestionMarker']('formatInline:'+_0x521133,_0x316b67,_0x67777b,_0x3b4406);}}return null;}['markBlockFormat'](_0x53ac4a,_0x597cdf,_0x1a44da=[],_0x510ab2=null,_0x319ba0={}){_0x597cdf['formatGroupId']||(_0x597cdf['formatGroupId']=_0x597cdf['commandName']),_0x597cdf['multipleBlocks']=_0x53ac4a['is']('range'),_0x510ab2=_0x510ab2||Lt(_0x597cdf);const _0x3e9478=_0x1a44da['map'](_0x52c1e1=>zt(_0x52c1e1,this['_model'])),_0x129d46=_0x53ac4a['is']('range')?_0x53ac4a:zt(_0x53ac4a,this['_model']);if(this['_trackingSessionId']&&(_0x319ba0['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5d0c8a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x510ab2,'accept');return this['forceDefaultExecution'](()=>_0x5d0c8a([_0x129d46],_0x597cdf,_0x319ba0)),null;}_0x3e9478['push'](_0x129d46);let _0x3016a0=!0x0;for(const _0x4386ac of _0x3e9478)if(!this['_rangeIsInLocalUserInsertion'](_0x4386ac)){_0x3016a0=!0x1;break;}if(_0x3016a0&&'always'!==this['_trackFormatChanges']){const _0x12d47a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x510ab2,'accept');return this['forceDefaultExecution'](()=>_0x12d47a([_0x129d46],_0x597cdf,_0x319ba0)),null;}let _0x563aff=null,_0x5d7aa1=_0x129d46['start'],_0xc84c30=_0x129d46['end'];for(const {suggestion:_0x5a8607,meta:_0x2611be}of this['_findSuggestions'](_0x129d46,'formatBlock')){if(!_0x2611be['isOwn'])continue;if(_0x2611be['isNextTo']||_0x2611be['containsRangeInObject']||_0x2611be['isInsideObject'])continue;if(_0x5a8607['data']['formatGroupId']!=_0x597cdf['formatGroupId'])continue;if(!Xt(_0x5a8607,_0x319ba0))continue;const _0x2c6648=_0x5a8607['getFirstRange']();if(_0x5a8607['subType']==_0x510ab2){if(_0x2c6648['containsRange'](_0x129d46,!0x0))return null;_0x5d7aa1=_0x5d7aa1['isBefore'](_0x2c6648['start'])?_0x5d7aa1:_0x2c6648['start'],_0xc84c30=_0xc84c30['isAfter'](_0x2c6648['end'])?_0xc84c30:_0x2c6648['end'],_0x563aff?_0x2c6648['start']['isBefore'](_0x563aff['getFirstRange']()['start'])?(_0x563aff['removeMarkers'](),_0x563aff=_0x5a8607):_0x5a8607['removeMarkers']():_0x563aff=_0x5a8607;}else{const _0x159eb7=_0x129d46['getIntersection'](_0x2c6648);this['_cutOutSuggestionMarker'](_0x5a8607,_0x159eb7);}}const _0x487896=this['editor']['plugins']['get']('Users')['me'],_0x42be29=_0xd0f9be(),_0x2bbf2b=_0x487896['id'];if(_0x563aff)return this['_setSuggestionRange'](_0x563aff,this['_model']['createRange'](_0x5d7aa1,_0xc84c30)),_0x563aff;{const _0x6265dd=this['_setSuggestionData']({'id':_0x42be29,'type':'formatBlock:'+_0x510ab2,'data':_0x597cdf,'createdAt':new Date(),'authorId':_0x2bbf2b,'attributes':_0x319ba0});return this['_addSuggestionMarker']('formatBlock:'+_0x510ab2,_0x42be29,_0x2bbf2b,this['_model']['createRange'](_0x5d7aa1,_0xc84c30)),_0x6265dd;}}['markMultiRangeBlockFormat'](_0x3ba96f,_0x317cf1,_0x5bcd47=[],_0x1e901f=null,_0x389d3c={}){_0x317cf1['formatGroupId']||(_0x317cf1['formatGroupId']=_0x317cf1['commandName']);const _0x9b3f13=_0x3ba96f[0x0];_0x317cf1['multipleBlocks']=_0x9b3f13['is']('range'),_0x1e901f=_0x1e901f||Lt(_0x317cf1);const _0x48ba05=_0x5bcd47['map'](_0x32f45c=>zt(_0x32f45c,this['_model'])),_0xa683f4=_0x9b3f13['is']('range')?_0x3ba96f:_0x3ba96f['map'](_0xb7cf3b=>zt(_0xb7cf3b,this['_model']));if(this['_trackingSessionId']&&(_0x389d3c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4e71c5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1e901f,'accept');return this['forceDefaultExecution'](()=>_0x4e71c5(_0xa683f4,_0x317cf1,_0x389d3c)),null;}_0x48ba05['push'](..._0xa683f4);let _0x4633ca=!0x0;for(const _0xe4a3d4 of _0x48ba05)if(!this['_rangeIsInLocalUserInsertion'](_0xe4a3d4)){_0x4633ca=!0x1;break;}if(_0x4633ca&&'always'!==this['_trackFormatChanges']){const _0x2ff90a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1e901f,'accept');return this['forceDefaultExecution'](()=>_0x2ff90a(_0xa683f4,_0x317cf1,_0x389d3c)),null;}const _0x50582f=this['editor']['plugins']['get']('Users')['me'];for(const _0x90c636 of this['getSuggestions']()){const _0x3fc14c=_0x90c636['data'];if(_0x90c636['author']['id']!=_0x50582f['id'])continue;if('formatBlock'!=_0x90c636['type']||_0x3fc14c['formatGroupId']!=_0x317cf1['formatGroupId'])continue;if(!Xt(_0x90c636,_0x389d3c))continue;const _0x1f0a1e=_0x90c636['subType']==_0x1e901f;for(let _0x26a196=0x0;_0x26a196<_0xa683f4['length'];_0x26a196++){const _0x36c623=_0xa683f4[_0x26a196];for(const _0x1ae596 of _0x90c636['getMarkers']()){const _0x3ab9b5=_0x1ae596['getRange']();if(_0x36c623['isEqual'](_0x3ab9b5)){_0x1f0a1e?(_0xa683f4['splice'](_0x26a196,0x1),_0x26a196--):_0x90c636['removeMarker'](_0x1ae596['name']);break;}}}}if(0x0==_0xa683f4['length'])return null;const _0x13ae36=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1e901f,'join');for(const _0xe3e70e of this['getSuggestions']()){const _0x41bba4=_0xe3e70e['data'];if(_0xe3e70e['author']['id']==_0x50582f['id']&&('formatBlock'==_0xe3e70e['type']&&_0x41bba4['formatGroupId']==_0x317cf1['formatGroupId']&&_0xe3e70e['subType']==_0x1e901f&&Xt(_0xe3e70e,_0x389d3c)&&(_0x13ae36(_0xe3e70e['getRanges'](),_0xa683f4)||_0x13ae36(_0xa683f4,_0xe3e70e['getRanges']())))){for(const _0xe46167 of _0xa683f4)_0xe3e70e['addRange'](_0xe46167);return _0xe3e70e;}}const _0x148fa2=_0xd0f9be(),_0x24d914=_0x50582f['id'],_0x31db05='formatBlock:'+_0x1e901f,_0x155c0b=this['_setSuggestionData']({'id':_0x148fa2,'type':_0x31db05,'data':_0x317cf1,'createdAt':new Date(),'authorId':_0x24d914,'attributes':_0x389d3c});for(const _0x1ca9e3 of _0xa683f4)this['_addSuggestionMarker'](_0x31db05,_0x148fa2,_0x24d914,_0x1ca9e3,T['getMultiRangeId']());return _0x155c0b;}['markDeletion'](_0x56957e,_0x5598fc=null,_0x40cf1b={}){if(_0x56957e['isCollapsed'])return null;const _0xfb763a=this['editor']['plugins']['get']('Users')['me'],_0x2b01c3=new _0x3e3f9b(_0x56957e['start'],_0x56957e['end']);this['_trackingSessionId']&&(_0x40cf1b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x585ba5,meta:_0x523c47}of this['_findSuggestions'](_0x2b01c3,'insertion'))if(_0x523c47['isOwn']&&!_0x523c47['isNextTo']){if(_0x585ba5['isMultiRange']){const _0x33d9f9=_0x585ba5['getRanges']()['filter'](_0xcc373a=>'$graveyard'!=_0xcc373a['root']['rootName']);_0x33d9f9['every'](_0x32b70a=>_0x2b01c3['containsRange'](_0x32b70a,!0x0))&&_0x585ba5['discard']();if(_0x33d9f9['some'](_0x4631a8=>_0x4631a8['containsRange'](_0x2b01c3,!0x0))){const _0x2eff22=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5598fc,'accept');return this['forceDefaultExecution'](()=>_0x2eff22([_0x2b01c3],null,_0x40cf1b)),null;}}else{const _0x24d21e=_0x2b01c3['getIntersection'](_0x585ba5['getFirstRange']());null!==_0x24d21e&&_0x585ba5['_onDiscard']([_0x24d21e],null,_0x40cf1b);}}if(_0x2b01c3['detach'](),_0x2b01c3['isCollapsed']||'$graveyard'==_0x2b01c3['root']['rootName'])return null;let _0x344ad0=null,_0x4eb2b3=_0x2b01c3['start'],_0x32f51c=_0x2b01c3['end'];const _0x5913f4=this['_findSuggestions'](_0x2b01c3,'deletion');for(const {suggestion:_0x5e0c4f,meta:_0x18c698}of _0x5913f4){const _0x16a536=this['_model']['createRange'](_0x4eb2b3,_0x32f51c);if(_0x18c698['isOwn']&&(this['_mergeNestedSuggestions']||!_0x18c698['containsRangeInObject']&&!_0x18c698['isInsideObject'])){if(_0x5e0c4f['isMultiRange']){if(!Xt(_0x5e0c4f,_0x40cf1b))continue;let _0x4ab5dc=!0x0;for(const _0x28a0f3 of _0x5e0c4f['getRanges']()){if(_0x28a0f3['containsRange'](_0x16a536,!0x0))return _0x5e0c4f;_0x16a536['containsRange'](_0x28a0f3)||(_0x4ab5dc=!0x1);}_0x4ab5dc&&_0x5e0c4f['discard']();}else{const _0x5ab685=_0x5e0c4f['getFirstRange']();if(_0x5ab685['containsRange'](_0x16a536,!0x0))return _0x5e0c4f;if(!Xt(_0x5e0c4f,_0x40cf1b)){_0x16a536['containsRange'](_0x5ab685)?_0x5e0c4f['removeMarkers']():_0x5ab685['containsPosition'](_0x4eb2b3)?_0x4eb2b3=_0x5ab685['end']:_0x5ab685['containsPosition'](_0x32f51c)&&(_0x32f51c=_0x5ab685['start']);continue;}_0x4eb2b3=_0x4eb2b3['isBefore'](_0x5ab685['start'])?_0x4eb2b3:_0x5ab685['start'],_0x32f51c=_0x32f51c['isAfter'](_0x5ab685['end'])?_0x32f51c:_0x5ab685['end'],_0x40cf1b=Object['assign']({},_0x5e0c4f['attributes']),_0x344ad0?_0x5ab685['start']['isBefore'](_0x344ad0['getFirstRange']()['start'])?(_0x344ad0['removeMarkers'](),_0x344ad0=_0x5e0c4f):_0x5e0c4f['removeMarkers']():_0x344ad0=_0x5e0c4f;}}}if(_0x344ad0)return this['_setSuggestionRange'](_0x344ad0,this['_model']['createRange'](_0x4eb2b3,_0x32f51c)),_0x344ad0;{const _0x1ec289=_0xd0f9be(),_0x5db1c6=this['_model']['createRange'](_0x4eb2b3,_0x32f51c),_0x17e913=_0xfb763a['id'],_0x47eaf2=_0x5598fc?'deletion:'+_0x5598fc:'deletion',_0x3ce0fe=this['_setSuggestionData']({'id':_0x1ec289,'type':_0x47eaf2,'createdAt':new Date(),'authorId':_0x17e913,'attributes':_0x40cf1b});return this['_addSuggestionMarker'](_0x47eaf2,_0x1ec289,_0x17e913,_0x5db1c6),_0x3ce0fe;}}['markMultiRangeDeletion'](_0x37a527,_0x33650d='multi',_0x28619a={}){const _0x593692=this['editor']['plugins']['get']('Users')['me'],_0x1f3568=_0x37a527['map'](_0x59971c=>new _0x3e3f9b(_0x59971c['start'],_0x59971c['end'])),_0x2d0e6c=new Set();this['_trackingSessionId']&&(_0x28619a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5c4f2e,meta:_0x3bfc1a}of this['_findSuggestions'](_0x1f3568,'insertion'))_0x3bfc1a['isOwn']&&!_0x3bfc1a['isNextTo']&&_0x2d0e6c['add'](_0x5c4f2e);for(const _0x459c8e of _0x2d0e6c)if(_0x459c8e['isMultiRange']){const _0x21bbb1=_0x459c8e['getRanges']();(!_0x459c8e['attributes']||!_0x459c8e['attributes']['skipNestingCheck'])&&(_0x21bbb1['every'](_0x128c6c=>_0x1f3568['some'](_0x1b9c73=>_0x1b9c73['containsRange'](_0x128c6c,!0x0)))&&_0x459c8e['discard']());if(_0x1f3568['every'](_0xef047d=>_0x21bbb1['some'](_0x532abc=>_0x532abc['containsRange'](_0xef047d,!0x0)))){const _0x561a23=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x33650d,'accept');return this['forceDefaultExecution'](()=>_0x561a23(_0x37a527,null,_0x28619a)),null;}}else{const _0x5302a0=_0x459c8e['getFirstRange']();_0x1f3568['some'](_0x367397=>_0x367397['containsRange'](_0x5302a0,!0x0))&&_0x459c8e['discard']();if(_0x1f3568['every'](_0x55a42e=>_0x5302a0['containsRange'](_0x55a42e,!0x0))){const _0x4be2ca=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x33650d,'accept');return this['forceDefaultExecution'](()=>_0x4be2ca(_0x1f3568,null,_0x28619a)),null;}}const _0x364823=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x33650d,'join');let _0x439008=null;for(const _0x21c688 of this['getSuggestions']())if(_0x21c688['author']['id']==_0x593692['id']&&_0x21c688['isInContent']&&'deletion'==_0x21c688['type']&&_0x21c688['subType']==_0x33650d&&Xt(_0x21c688,_0x28619a)&&(_0x364823(_0x21c688['getRanges'](),_0x1f3568)||_0x364823(_0x1f3568,_0x21c688['getRanges']()))){if(_0x439008){if(_0x21c688['commentThread']&&_0x21c688['commentThread']['length'])continue;for(const _0x29aff6 of _0x21c688['getRanges']())_0x439008['isIntersectingWithRange'](_0x29aff6)||_0x439008['addRange'](_0x29aff6);_0x21c688['removeMarkers']();}else{_0x439008=_0x21c688;for(const _0x614af9 of _0x1f3568)_0x21c688['isIntersectingWithRange'](_0x614af9)||_0x21c688['addRange'](_0x614af9);}}if(_0x439008)return _0x439008;_0x2d0e6c['clear']();for(const {suggestion:_0xccc144,meta:_0x10436a}of this['_findSuggestions'](_0x1f3568,'deletion'))_0x10436a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x10436a['containsRangeInObject']&&!_0x10436a['isInsideObject'])&&Xt(_0xccc144,_0x28619a)&&_0x2d0e6c['add'](_0xccc144);for(const _0x542751 of _0x2d0e6c){const _0x238c85=_0x542751['getRanges']();if(!_0x28619a||!_0x28619a['skipNestingCheck']){if(_0x1f3568['every'](_0x57c236=>_0x238c85['some'](_0x17c083=>_0x17c083['containsRange'](_0x57c236,!0x0))))return _0x542751;}(!_0x542751['attributes']||!_0x542751['attributes']['skipNestingCheck'])&&(_0x238c85['every'](_0x92b3d3=>_0x1f3568['some'](_0x2a207e=>_0x2a207e['containsRange'](_0x92b3d3,!0x0)))&&_0x542751['discard']());}const _0x1498ff=_0xd0f9be(),_0x7d0574=_0x593692['id'],_0x895555='deletion:'+_0x33650d,_0x4e3a1f=this['_setSuggestionData']({'id':_0x1498ff,'type':_0x895555,'createdAt':new Date(),'authorId':_0x7d0574,'attributes':_0x28619a});for(const _0x3f5378 of _0x1f3568)_0x3f5378['detach'](),_0x3f5378['isCollapsed']||'$graveyard'==_0x3f5378['root']['rootName']||this['_addSuggestionMarker'](_0x895555,_0x1498ff,_0x7d0574,_0x3f5378,T['getMultiRangeId']());return _0x4e3a1f;}['markAttributeChange'](_0x2746fe,_0x21545b,_0x27e1fb,_0x42e1a4,_0x38c05b){if(_0x2746fe['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1aa985=this['editor']['plugins']['get']('Users')['me']['id'],_0xdb1347=Array['from'](this['_suggestions']['values']())['filter'](_0x2a9dd3=>'attribute'==_0x2a9dd3['type']&&_0x2a9dd3['data']['key']==_0x21545b&&_0x2a9dd3['isIntersectingWithRange'](_0x2746fe));if(this['_trackingSessionId']&&(_0x38c05b['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x514496=this['_findSuggestions'](_0x2746fe,'insertion')['filter'](({meta:_0x14e77a})=>_0x14e77a['isOwn']&&!_0x14e77a['isInsideObject']&&!_0x14e77a['isNextTo'])['map'](({suggestion:_0x39e126})=>_0x39e126);_0xdb1347['unshift'](..._0x514496);}const _0x1671f4=new Map([[_0x2746fe,_0x27e1fb]]);for(const _0x898e0e of _0xdb1347){const _0x4eff4b='attribute'==_0x898e0e['type']?_0x898e0e['data']['oldValue']:void 0x0,_0x5ad668=_0x898e0e['getFirstRange'](),_0x5ed90f=Array['from'](_0x1671f4['keys']())['find'](_0x31fe7f=>_0x31fe7f['isIntersecting'](_0x5ad668));if(!_0x5ed90f)continue;const _0x47795e=_0x5ed90f['getDifference'](_0x5ad668);this['_isBlockAttribute'](_0x21545b)&&'insertion'==_0x898e0e['type']&&0x0!=_0x47795e['length']||(_0x1671f4['delete'](_0x5ed90f),_0x47795e['forEach'](_0x11ff19=>{_0x1671f4['set'](_0x11ff19,_0x27e1fb);}),'insertion'!=_0x898e0e['type']&&_0x4eff4b!=_0x42e1a4&&_0x1671f4['set'](_0x5ed90f['getIntersection'](_0x5ad668),_0x4eff4b));}const _0x33ca5d=[];for(const [_0x5205b1,_0x2af891]of _0x1671f4){const _0x32cdb3=_0xd0f9be(),_0x3d208d={'key':_0x21545b,'oldValue':_0x2af891,'newValue':_0x42e1a4};_0x21545b['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':_0x21545b});const _0x4bab0e=('attribute:'+(_0x21545b+'|'+Lt({'newValue':_0x42e1a4})))['substring'](0x0,0x3c),_0x227b0c=this['_setSuggestionData']({'id':_0x32cdb3,'type':_0x4bab0e,'data':_0x3d208d,'createdAt':new Date(),'authorId':_0x1aa985,'attributes':_0x38c05b});_0x33ca5d['push'](_0x227b0c),this['_addSuggestionMarker'](_0x4bab0e,_0x32cdb3,_0x1aa985,_0x5205b1);}return _0x33ca5d;}['enableDefaultAttributesIntegration'](_0x1244e7){this['enableCommand'](_0x1244e7,(_0x354d2e,..._0x526ac4)=>{this['recordAttributeChanges'](()=>{_0x354d2e(..._0x526ac4);});});}['registerBlockAttribute'](_0x1bf51d){this['_blockAttributeKeys']['add'](_0x1bf51d);}['registerInlineAttribute'](_0x369eba){this['_inlineAttributeKeys']['add'](_0x369eba);}['startTrackingSession'](_0x4c5103){return this['_trackingSessionId']=void 0x0!==_0x4c5103?_0x4c5103:_0xd0f9be(),this['_trackingSessionId'];}['_getAttributeKey'](_0x46f936){return'attribute'==_0x46f936['type']?_0x46f936['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x398c21,_0xd83ca6){const _0x1ed268=_0x398c21['getFirstMarker']();this['_model']['change'](_0x55fdc7=>{_0x55fdc7['updateMarker'](_0x1ed268,{'range':_0xd83ca6});});}['_addThreadToSuggestion'](_0x495a3b){const _0x4a41a6=_0x495a3b['id'],_0x58bc19=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4a41a6)||this['_commentsRepository']['addCommentThread']({'channelId':_0x58bc19,'threadId':_0x4a41a6,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x59b3d8=this['_commentsRepository']['getCommentThread'](_0x4a41a6);_0x59b3d8['unbind']('isRemovable'),_0x59b3d8['isRemovable']=!0x1,_0x495a3b['commentThread']=_0x59b3d8;}['_checkSuggestionCorrectness'](_0x394cc7,_0x10b46a,_0x545bc7,_0xafebac){if(_0x394cc7['type']!=_0x10b46a||_0x394cc7['subType']!=_0x545bc7||_0x394cc7['creator']['id']!=_0xafebac)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4fc565('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x554f62,_0x19d152){const _0x2399c1=_0x554f62['getFirstRange']();if(_0x19d152['isEqual'](_0x2399c1))_0x554f62['removeMarkers']();else{if(_0x2399c1['containsRange'](_0x19d152)){const _0x6c707b=this['_model']['createPositionAt'](_0x19d152['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x554f62,this['_model']['createRange'](_0x2399c1['start'],_0x6c707b));const _0x44fbf2=_0xd0f9be(),_0x218b6a=_0x554f62['creator']['id'],_0x232485=_0x554f62['type']+':'+_0x554f62['subType'];this['_setSuggestionData']({'id':_0x44fbf2,'type':_0x232485,'createdAt':new Date(),'authorId':_0x218b6a,'data':_0x554f62['data'],'attributes':_0x554f62['attributes']});const _0x513808=this['_model']['createPositionAt'](_0x19d152['end']['parent'],'after'),_0x277902=this['_model']['createRange'](_0x513808,_0x2399c1['end']);this['_addSuggestionMarker'](_0x232485,_0x44fbf2,_0x218b6a,_0x277902);}else{if(_0x2399c1['containsPosition'](_0x19d152['start'])){const _0x23e997=this['_model']['createPositionAt'](_0x19d152['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x554f62,this['_model']['createRange'](_0x2399c1['start'],_0x23e997));}else{const _0x276e77=this['_model']['createPositionAt'](_0x19d152['end']['parent'],'after');this['_setSuggestionRange'](_0x554f62,this['_model']['createRange'](_0x276e77,_0x2399c1['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x366617){for(const {suggestion:_0x41369a,meta:_0x5482be}of this['_findSuggestions'](_0x366617,'insertion')){if(!_0x5482be['isOwn'])continue;const _0x23a2c0=_0x41369a['getRanges']();for(const _0x3f6ab0 of _0x23a2c0)if(!_0x366617['getDifference'](_0x3f6ab0)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x13c49a){const _0x5052af=this['editor']['plugins']['get']('Users')['getUser'](_0x13c49a);if(!_0x5052af)throw new _0x4fc565('track-changes-user-not-found',this);return _0x5052af;}['_getExternalAuthor'](_0x2c5e9a){const _0x456927=this['editor']['plugins']['get']('Users'),_0x546b8c=_0xc7d82c('external:'+_0x2c5e9a),_0xff7d0=_0x456927['getUser'](_0x546b8c);return _0xff7d0||_0x456927['addUser']({'id':_0x546b8c,'name':_0x2c5e9a});}['_createSuggestion'](_0x2fb76b,_0xb6d283,_0x3dc6bd,_0x5a7f49,_0x4f2593,_0x246edd){const _0x353ce5=this['_getAuthorFromId'](_0x5a7f49),_0x2bee75=this['_suggestionFactory']['buildSuggestion'](_0x2fb76b,_0xb6d283,_0x3dc6bd,_0x353ce5,_0x4f2593,_0x4fdd39=>{this['_updateSuggestionData'](_0x3dc6bd,{'attributes':_0x4fdd39});const _0x45a64d=this['getSuggestion'](_0x3dc6bd);this['_joinWithAdjacentSuggestions'](new Set([_0x45a64d])),this['_refreshSuggestionsChain'](new Set([_0x45a64d]));},_0x246edd);return this['listenTo'](_0x2bee75,'accept',()=>{this['_updateSuggestionData'](_0x3dc6bd,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2bee75,'discard',()=>{this['_updateSuggestionData'](_0x3dc6bd,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3dc6bd,_0x2bee75),this['_suggestionState']['set'](_0x2bee75,'notReady'),_0x2bee75;}['_splitMarkerName'](_0xbdc626){const _0x2ddd56=_0xbdc626['split'](':');return{'group':_0x2ddd56[0x0],'type':_0x2ddd56[0x1],'subType':_0x2ddd56['length']>=0x5?_0x2ddd56[0x2]:null,'id':_0x2ddd56['length']<0x5?_0x2ddd56[0x2]:_0x2ddd56[0x3],'authorId':_0x2ddd56['length']<0x5?_0x2ddd56[0x3]:_0x2ddd56[0x4],'markerCount':0x6==_0x2ddd56['length']?_0x2ddd56[0x5]:null};}['_breakSuggestionMarker'](_0x44448c,_0x506283,_0x47ffdd){const _0x30cd28=_0x44448c['getFirstRange'](),_0x20a02f=_0x30cd28['start'],_0x357759=_0x30cd28['end'];this['_setSuggestionRange'](_0x44448c,this['_model']['createRange'](_0x20a02f,_0x506283));const _0x2219aa=_0xd0f9be(),_0x3ee7f1=_0x44448c['creator']['id'],_0x1afdfb=_0x44448c['type']+(_0x44448c['subType']?':'+_0x44448c['subType']:'');this['_setSuggestionData']({'id':_0x2219aa,'type':_0x1afdfb,'createdAt':new Date(),'authorId':_0x3ee7f1,'originalSuggestionId':_0x44448c['_originalSuggestionId']||_0x44448c['id'],'attributes':_0x44448c['attributes'],'data':_0x44448c['data']});const _0x17830b=this['_getAttributeKey'](_0x44448c);('formatBlock'==_0x44448c['type']||_0x17830b&&this['_isBlockAttribute'](_0x17830b))&&(_0x47ffdd=this['_model']['createPositionBefore'](_0x47ffdd['parent'])),this['_addSuggestionMarker'](_0x1afdfb,_0x2219aa,_0x3ee7f1,this['_model']['createRange'](_0x47ffdd,_0x357759));}['_findSuggestions'](_0x2ece18,_0x56dfda=null){const _0x10af2a=[],_0x5e4eca=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2ece18)||(_0x2ece18=[_0x2ece18]);for(const _0x4dc921 of this['getSuggestions']()){if(!_0x4dc921['isInContent'])continue;if(_0x56dfda&&_0x4dc921['type']!=_0x56dfda)continue;let _0x2c5126=!0x1;for(const _0x173780 of _0x4dc921['getRanges']()){for(const _0x14b961 of _0x2ece18){const _0x51084f=_0x14b961['start']['isEqual'](_0x173780['end'])||_0x14b961['end']['isEqual'](_0x173780['start']);if(_0x51084f||_0x14b961['getIntersection'](_0x173780)){const _0x5da996=_0x14b961['containsRange'](_0x173780)&&Ft(this['_model']['schema'],_0x173780['start'],_0x14b961),_0x173362=_0x173780['containsRange'](_0x14b961)&&Ft(this['_model']['schema'],_0x14b961['start'],_0x173780);_0x10af2a['push']({'suggestion':_0x4dc921,'meta':{'isOwn':_0x5e4eca==_0x4dc921['author'],'isNextTo':_0x51084f,'isInsideObject':_0x5da996,'containsRangeInObject':_0x173362}}),_0x2c5126=!0x0;break;}}if(_0x2c5126)break;}}return _0x10af2a;}['_addSuggestionMarker'](_0x2bc4e2,_0x3bb5c6,_0x41217a,_0x51b982,_0x5b9c93){this['_model']['change'](_0x23891c=>{let _0x36872e='suggestion:'+_0x2bc4e2+':'+_0x3bb5c6+':'+_0x41217a;_0x5b9c93&&(_0x36872e=_0x36872e+':'+_0x5b9c93),_0x23891c['addMarker'](_0x36872e,{'range':_0x51b982,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x59b676){const _0x4ee690=_0x59b676['previous'],_0x25a23d=_0x59b676['next'];_0x59b676['previous']=null,_0x59b676['next']=null,null!=_0x4ee690&&_0x4ee690['next']==_0x59b676&&(_0x4ee690['next']=_0x25a23d),null!=_0x25a23d&&_0x25a23d['previous']==_0x59b676&&(_0x25a23d['previous']=_0x4ee690),'ready'==this['_suggestionState']['get'](_0x59b676)&&(this['_suggestionState']['set'](_0x59b676,'removed'),this['fire']('suggestionUnloaded',_0x59b676,_0x4ee690,_0x25a23d));}['_setSuggestionData'](_0x38b353){const _0x3f5bff=_0x38b353['id'],_0x2e000f=this['addSuggestionData'](_0x38b353);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5d7e89=this['editor']['plugins']['get']('PendingActions'),_0x25534f=_0x2e000f['hasComments'],_0x20cd0b=_0x2e000f['subType']?_0x2e000f['type']+':'+_0x2e000f['subType']:_0x2e000f['type'],_0x1bf99b=this['editor']['locale'],_0x1ff5f3=_0x5d7e89['add'](o(_0x1bf99b,'PENDING_ACTION_SUGGESTION')),_0x5abb58={'id':_0x3f5bff,'type':_0x20cd0b,'hasComments':_0x25534f,'data':_0x38b353['data']||null,'originalSuggestionId':_0x38b353['originalSuggestionId']||null,'attributes':_0x2e000f['attributes']};this['_adapter']['addSuggestion'](_0x5abb58)['then'](_0x2c3289=>{_0x2e000f['_saved']=!0x0,_0x5d7e89['remove'](_0x1ff5f3),_0x2c3289&&_0x2c3289['createdAt']&&(this['_suggestions']['get'](_0x3f5bff)['createdAt']=_0x2c3289['createdAt']);})['catch'](_0x1023a5=>{throw _0x40102e('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2e000f['discard']();}),_0x2e000f['stopListening'](),this['_suggestions']['delete'](_0x2e000f['id']),this['_suggestionState']['delete'](_0x2e000f),_0x1023a5;});}return _0x2e000f;}['_isBlockAttribute'](_0x1ee20a){return this['_blockAttributeKeys']['has'](_0x1ee20a);}['_isInlineAttribute'](_0x272d1b){return this['_inlineAttributeKeys']['has'](_0x272d1b);}['_updateSuggestionData'](_0x3f154c,_0x22a58f){const _0xf780e7=this['editor']['plugins']['get']('PendingActions'),_0x559272=this['getSuggestion'](_0x3f154c);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x559272['_saved']){const _0x47c696=_0xf780e7['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3f154c,_0x22a58f)['then'](()=>{_0xf780e7['remove'](_0x47c696);});}else _0x559272['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3f154c,_0x22a58f);});}}['_getSuggestionData'](_0x1b7333){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4fc565('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1b7333);}['_handleNewSuggestionMarker'](_0x5aec7b){const {id:_0x1d8cf0,type:_0xdff7bb,subType:_0x437c89,authorId:_0xd09775}=this['_splitMarkerName'](_0x5aec7b),_0xaad858=this['_suggestions']['get'](_0x1d8cf0)||this['_createSuggestion'](_0xdff7bb,_0x437c89,_0x1d8cf0,_0xd09775,{});switch(this['_checkSuggestionCorrectness'](_0xaad858,_0xdff7bb,_0x437c89,_0xd09775),this['_suggestionState']['get'](_0xaad858)){case'notReady':this['_getSuggestionData'](_0x1d8cf0)['then'](_0x1f648d=>{let _0x51f4d2=Promise['resolve']();_0x1f648d['hasComments']&&(_0x51f4d2=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1d8cf0})),_0x51f4d2['then'](()=>{this['addSuggestionData'](_0x1f648d)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0xaad858,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1d8cf0,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0xaad858,'ready'),this['fire']('suggestionLoaded',_0xaad858);break;case'ready':this['fire']('suggestionChanged',_0xaad858);}return _0xaad858['addMarkerName'](_0x5aec7b),_0xaad858;}['_refreshSuggestionsChain'](_0x131b3a){const _0x5a0944=Array['from'](_0x131b3a),_0x58fb2f=_0x5a0944['filter'](_0x1989ac=>'attribute'==_0x1989ac['type']);this['_refreshAttributeSuggestionsChain'](_0x58fb2f);const _0x396435=_0x5a0944['filter'](_0x3b5225=>!_0x3b5225['isMultiRange']&&'attribute'!=_0x3b5225['type']),_0x390f2d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x25ef1b=>!_0x25ef1b['isMultiRange']&&'attribute'!=_0x25ef1b['type']),_0x151a9d=_0x390f2d['filter'](_0x484bad=>!_0x131b3a['has'](_0x484bad)),_0x5e9d63=new Map(_0x390f2d['map'](_0x18e194=>[_0x18e194,this['_suggestionFactory']['getSuggestionCallback'](_0x18e194['type'],_0x18e194['subType'],'chain')])),_0xeda59e=new Map(_0x390f2d['map'](_0x427c7a=>[_0x427c7a,_0x427c7a['getFirstRange']()])),_0xeff5ff=new Set(),_0x1843bb=new Set();for(let _0x1fe64c=0x0;_0x1fe64c<_0x396435['length'];_0x1fe64c++)_0x460aad(_0x396435[_0x1fe64c],_0x396435,_0x1fe64c+0x1);for(let _0x377724=0x0;_0x377724<_0x396435['length'];_0x377724++)_0x460aad(_0x396435[_0x377724],_0x151a9d,0x0);const _0x2e1ee4=new Set();for(let _0x17453e=0x0;_0x17453e<_0x396435['length'];_0x17453e++){const _0x25ed24=_0x396435[_0x17453e];!_0x1843bb['has'](_0x25ed24)&&_0x25ed24['previous']&&(_0x2e1ee4['add'](_0x25ed24['previous']),_0x25ed24['previous']['next']===_0x25ed24&&(_0x25ed24['previous']['next']=null),_0x25ed24['previous']=null),!_0xeff5ff['has'](_0x25ed24)&&_0x25ed24['next']&&(_0x2e1ee4['add'](_0x25ed24['next']),_0x25ed24['next']['previous']===_0x25ed24&&(_0x25ed24['next']['previous']=null),_0x25ed24['next']=null);}function _0x460aad(_0x16d44e,_0x3fcdee,_0x245aed){for(let _0x423cc5=_0x245aed;_0x423cc5<_0x3fcdee['length'];_0x423cc5++){const _0x145b48=_0x16af2c(_0x16d44e,_0x3fcdee[_0x423cc5]);_0x145b48&&(_0x145b48[0x0]['next']=_0x145b48[0x1],_0x145b48[0x1]['previous']=_0x145b48[0x0],_0xeff5ff['add'](_0x145b48[0x0]),_0x1843bb['add'](_0x145b48[0x1]));}}function _0x16af2c(_0x55c46a,_0x321832){if(_0x55c46a['author']['id']!==_0x321832['author']['id'])return null;const _0x32f867=_0x5e9d63['get'](_0x55c46a)(_0x55c46a,_0x321832,_0xeda59e['get'](_0x55c46a),_0xeda59e['get'](_0x321832));if(!_0x32f867)return null;return _0x5e9d63['get'](_0x321832)(_0x55c46a,_0x321832,_0xeda59e['get'](_0x55c46a),_0xeda59e['get'](_0x321832))?_0x32f867[0x1]['commentThread']&&_0x32f867[0x1]['commentThread']['length']?null:_0x32f867:null;}_0x2e1ee4['size']&&this['_refreshSuggestionsChain'](_0x2e1ee4);}['_refreshAttributeSuggestionsChain'](_0x2cb780){if(0x0==_0x2cb780['length'])return;const _0x5c5eff=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x58c0b8=>'attribute'==_0x58c0b8['type']&&_0x58c0b8['_isDataLoaded']),_0x5318d6=[],_0x12ad80=new Map();for(const _0x4d9981 of _0x5c5eff){const _0x42c7ab=_0xc7d82c(_0x4d9981['attributes']);_0x12ad80['has'](_0x42c7ab)||(_0x12ad80['set'](_0x42c7ab,_0x5318d6['length']),_0x5318d6['push']([]));const _0x10aca1=_0x12ad80['get'](_0x42c7ab);_0x5318d6[_0x10aca1]['push'](_0x4d9981);}!(function(){_0x5318d6['sort']((_0xaf57f2,_0x3f9dca)=>{const _0x497a75=_0xaf57f2[0x0]['createdAt'],_0x484b6=_0x3f9dca[0x0]['createdAt'];return _0x497a75==_0x484b6?_0xaf57f2[0x0]['attributes']['groupId']<_0x3f9dca[0x0]['attributes']['groupId']?-0x1:0x1:_0x497a75<_0x484b6?-0x1:0x1;});for(const _0x357221 of _0x5318d6)_0x357221['sort']((_0x21edaf,_0x461b39)=>_0x21edaf['id']<_0x461b39['id']?-0x1:0x1);}());for(let _0x374281=0x0;_0x374281<_0x5318d6['length'];_0x374281++){if(0x0==_0x5318d6[_0x374281]['length'])continue;const _0xe05fcb=[];for(let _0x177d19=_0x374281+0x1;_0x177d19<_0x5318d6['length'];_0x177d19++)0x0!=_0x5318d6[_0x177d19]['length']&&_0xc49591(_0x5318d6[_0x374281],_0x5318d6[_0x177d19])&&_0xe05fcb['push'](_0x177d19);for(const _0x25f206 of _0xe05fcb)_0x5318d6[_0x374281]=_0x5318d6[_0x374281]['concat'](_0x5318d6[_0x25f206]),_0x5318d6[_0x25f206]=[];}for(const _0x159b7e of _0x5318d6)for(let _0x144273=0x0;_0x144273<_0x159b7e['length'];_0x144273++){const _0x3db588=_0x159b7e[_0x144273+0x1]||null;_0x159b7e[_0x144273]['next']!==_0x3db588&&(_0x159b7e[_0x144273]['next']=_0x3db588);}for(const _0x5a0cd1 of _0x5318d6)for(let _0x574220=0x0;_0x574220<_0x5a0cd1['length'];_0x574220++){const _0x3dadad=_0x5a0cd1[_0x574220-0x1]||null;_0x5a0cd1[_0x574220]['previous']!==_0x3dadad&&(_0x5a0cd1[_0x574220]['previous']=_0x3dadad);}function _0xc49591(_0x60f985,_0xeae767){if(_0x60f985[0x0]['attributes']['groupId']!==_0xeae767[0x0]['attributes']['groupId']&&_0x60f985[0x0]['author']!==_0xeae767[0x0]['author'])return!0x1;if(!function(_0x1035f6,_0x2a35f5){if(!_0x1035f6['hasComments']&&!_0x2a35f5['hasComments'])return!0x0;if(_0x1035f6['hasComments']&&_0x2a35f5['hasComments'])return!0x1;if(_0x1035f6['hasComments']&&_0x2a35f5['createdAt']<_0x1035f6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2a35f5['hasComments']&&_0x1035f6['createdAt']<_0x2a35f5['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x60f985[0x0],_0xeae767[0x0]))return!0x1;const _0x30b07c=Ut(_0x60f985[0x0]['attributes'],['groupId','trackingSessionId']),_0x1c0eb0=Ut(_0xeae767[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x1314a1(_0x30b07c,_0x1c0eb0))return!0x1;if(_0x60f985[0x0]['attributes']['groupId']==_0xeae767[0x0]['attributes']['groupId'])return!0x0;if(_0x60f985[0x0]['attributes']['trackingSessionId']!==_0xeae767[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x60f985['every'](_0x5c8591=>_0xeae767['some'](_0x43f95b=>_0x5c8591['getFirstRange']()['isEqual'](_0x43f95b['getFirstRange']())))&&_0xeae767['every'](_0x485446=>_0x60f985['some'](_0x1fac07=>_0x485446['getFirstRange']()['isEqual'](_0x1fac07['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2e3978){const _0x4dd2b2=Array['from'](_0x2e3978),_0x3f8dc3=this['getSuggestions']({'skipNotAttached':!0x0}),_0x264375=_0x3f8dc3['filter'](_0x40946f=>!_0x2e3978['has'](_0x40946f)),_0x3a22d2=new Map(_0x4dd2b2['map'](_0x5de0cf=>[_0x5de0cf,this['_suggestionFactory']['getSuggestionCallback'](_0x5de0cf['type'],_0x5de0cf['subType'],'join')])),_0x3acbd4=new Map(_0x3f8dc3['map'](_0x1cb9fd=>[_0x1cb9fd,_0x1cb9fd['getRanges']()]));for(let _0x3b9d14=0x0;_0x3b9d14<_0x4dd2b2['length'];_0x3b9d14++){if(_0x57b3ea(this,_0x4dd2b2[_0x3b9d14],_0x4dd2b2,_0x3b9d14+0x1))return!0x0;}for(let _0x7c2793=0x0;_0x7c2793<_0x4dd2b2['length'];_0x7c2793++){if(_0x57b3ea(this,_0x4dd2b2[_0x7c2793],_0x264375,0x0))return!0x0;}return!0x1;function _0x57b3ea(_0xcb86e4,_0x480bf8,_0x1fb64c,_0x28b51f){for(let _0x316fc9=_0x28b51f;_0x316fc9<_0x1fb64c['length'];_0x316fc9++){const _0x46e5d8=_0x1fb64c[_0x316fc9];if(_0x46e5d8['type']!==_0x480bf8['type']||_0x46e5d8['author']['id']!==_0x480bf8['author']['id']||_0x46e5d8['subType']!==_0x480bf8['subType'])continue;if(!Qt(_0x480bf8,_0x46e5d8))continue;if('attribute'==_0x480bf8['type']&&_0x480bf8['data']['oldValue']!=_0x46e5d8['data']['oldValue'])continue;if('attribute'==_0x480bf8['type']&&_0xcb86e4['_isBlockAttribute'](_0x480bf8['data']['key']))continue;if('formatBlock'==_0x480bf8['type']){const _0x38b286=_0xcb86e4['editor']['model'],_0x4f338c=_0x480bf8['getContainedElement']();if(_0x4f338c&&(_0x38b286['schema']['isObject'](_0x4f338c)||_0x38b286['schema']['isLimit'](_0x4f338c)))continue;}const _0x3c392b=_0x3a22d2['get'](_0x480bf8),_0x55762a=_0x3acbd4['get'](_0x480bf8),_0xd4172b=_0x3acbd4['get'](_0x46e5d8),_0x2b3070=_0x480bf8['commentThread']&&_0x480bf8['commentThread']['length'],_0x860765=_0x46e5d8['commentThread']&&_0x46e5d8['commentThread']['length'];if(!_0x2b3070&&_0x3c392b(_0xd4172b,_0x55762a))return _0xcb86e4['_joinSuggestions'](_0x46e5d8,_0x480bf8),_0x3acbd4['delete'](_0x480bf8),!0x0;if(!_0x860765&&_0x3c392b(_0x55762a,_0xd4172b))return _0xcb86e4['_joinSuggestions'](_0x480bf8,_0x46e5d8),_0x3acbd4['delete'](_0x46e5d8),!0x0;}return!0x1;}}['_joinSuggestions'](_0x555221,_0x5446ec){if(_0x555221['isMultiRange']){for(const _0x81c1b1 of _0x5446ec['getRanges']())_0x555221['addRange'](_0x81c1b1);}else{const _0x367bd9=_0x5446ec['getFirstRange']()['end'];this['_setSuggestionRange'](_0x555221,this['_model']['createRange'](_0x555221['getFirstRange']()['start'],_0x367bd9));}_0x5446ec['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5130a1,_0x958c6c,_0x496ec9){const _0x5203e8=_0x5130a1['startsWith']('format')||_0x5130a1['startsWith']('attribute')?'FORMATTING':_0x5130a1['toUpperCase']();return o(this['editor']['locale'],_0x958c6c+'_'+_0x5203e8+'_SUGGESTION_ANNOUNCEMENT',_0x496ec9);}['_initAriaMarkerChangeAnnouncements'](){const _0x320fd9=this['editor'];if(!_0x320fd9['ui'])return;const {ariaLiveAnnouncer:_0x3a82f6}=_0x320fd9['ui'];_0x102e1c(this['_model'],({left:_0x2607f0,entered:_0x4b22f5})=>{for(const _0xa9bc58 of _0x2607f0){const {group:_0x36c664,type:_0x32654c}=this['_splitMarkerName'](_0xa9bc58['name']);if('suggestion'===_0x36c664){_0x3a82f6['announce'](this['_getMarkerAnnouncementText'](_0x32654c,'LEAVE'));break;}}for(const _0x4a3e07 of _0x4b22f5){const {group:_0x2965c8,type:_0x1cb788}=this['_splitMarkerName'](_0x4a3e07['name']);if('suggestion'===_0x2965c8){_0x3a82f6['announce'](this['_getMarkerAnnouncementText'](_0x1cb788,'ENTER',_0x17d6f8(_0x2534da)));break;}}});}['_processAttributeChanges'](_0x44f5b3){if(this['_recordAttributeSuggestions'])return!0x1;const _0x29c579=this['editor'],_0x2f7811=_0x29c579['model']['document']['differ']['getChanges']();if(0x0==_0x2f7811['length'])return!0x1;const _0x257a8d=[],_0x35be1f=_0x2f7811['filter'](_0x94071=>'attribute'==_0x94071['type']),_0x4a15e0=_0x2f7811['filter'](_0x454e30=>'insert'==_0x454e30['type']&&'$text'!=_0x454e30['name']),_0x2401cf=_0x2f7811['filter'](_0x5205f0=>'remove'==_0x5205f0['type']&&'$text'!=_0x5205f0['name']);for(const _0x214d66 of _0x35be1f)_0x257a8d['push']({'key':_0x214d66['attributeKey'],'newValue':_0x214d66['attributeNewValue'],'oldValue':_0x214d66['attributeOldValue'],'range':qt(_0x214d66['range'],_0x29c579['model'])});for(const _0xf4b26b of _0x4a15e0){const _0x304e57=_0x2401cf['find'](_0x51a1ae=>_0x51a1ae['position']['isEqual'](_0xf4b26b['position']));_0x304e57&&_0x257a8d['push']({'key':m,'newValue':_0xf4b26b['name'],'oldValue':_0x304e57['name'],'range':_0x29c579['model']['createRangeOn'](_0xf4b26b['position']['nodeAfter'])});}return 0x0!=_0x257a8d['length']&&this['_reduceExistingSuggestions'](_0x44f5b3,_0x257a8d);}['_processAttributeSuggestions'](_0x2a9266){let _0xda5401=!0x1;const _0x31ee3a=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4e7e30=>_0x4e7e30['data']['newRange']&&_0x4e7e30['name']['startsWith']('suggestion:attribute:'));for(const _0x32edf9 of _0x31ee3a){const {subType:_0x163a09,id:_0x59c58f}=this['_splitMarkerName'](_0x32edf9['name']),_0xd23bfe=_0x163a09['split']('|')[0x0];for(const _0x3c0680 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3c0680['id']!=_0x59c58f&&'attribute'==_0x3c0680['type']&&_0x3c0680['data']&&_0x3c0680['data']['key']==_0xd23bfe&&_0x3c0680['getFirstRange']()['isIntersecting'](_0x32edf9['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3c0680,_0x32edf9['data']['newRange'],_0x2a9266),_0xda5401=!0x0);}return _0xda5401;}['recordAttributeChanges'](_0x52aca2){this['_recordAttributeSuggestions']=!0x0,_0x52aca2();}['_isRegisteredAttribute'](_0x769a87){const _0x3719b1=this['_isBlockAttribute'](_0x769a87),_0x271a27=this['_isInlineAttribute'](_0x769a87);return _0x3719b1||_0x271a27;}['_reduceExistingSuggestions'](_0x4ddb5d,_0x10ba7c){if(0x0==_0x10ba7c['length'])return!0x1;let _0x52429b=!0x1;for(const _0x4de1f5 of _0x10ba7c){const _0x189d4c=this['_findSuggestions'](_0x4de1f5['range'],'attribute')['filter'](_0x446155=>!_0x446155['meta']['isNextTo'])['map'](_0xd0a7c3=>_0xd0a7c3['suggestion']),_0xd9757f=_0xc7d82c({'newValue':_0x4de1f5['newValue']});_0x189d4c['filter'](_0x3e6aeb=>{const [_0x3fa3c3,_0x2d74f8]=_0x3e6aeb['subType']['split']('|');return _0x3fa3c3==_0x4de1f5['key']&&_0x2d74f8!=_0xd9757f;})['forEach'](_0x513113=>{this['_reduceSuggestionAttributeRange'](_0x513113,_0x4de1f5['range'],_0x4ddb5d),_0x52429b=!0x0;});}return _0x52429b;}['_reduceSuggestionAttributeRange'](_0x4962b8,_0x1711e9,_0x2a5b3b){const _0x16ea1e=_0x4962b8['getFirstRange']()['getDifference'](_0x1711e9);0x0!==_0x16ea1e['length']?0x1!==_0x16ea1e['length']?this['_breakSuggestionMarker'](_0x4962b8,_0x1711e9['start'],_0x1711e9['end']):this['_setSuggestionRange'](_0x4962b8,_0x16ea1e[0x0]):_0x2a5b3b['removeMarker'](_0x4962b8['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3cd839){this['_editor']=_0x3cd839,this['_model']=_0x3cd839['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x355596,_0x3460bd,_0x44abea,_0x529a9d,_0x118525,_0x1807f2,_0x4622b3){return new T(this['_model'],{'type':_0x355596,'subType':_0x3460bd,'id':_0x44abea,'originalSuggestionId':_0x4622b3,'author':_0x529a9d,'creator':_0x529a9d,'attributes':_0x118525,'onAttributesChange':_0x1807f2,'onAccept':(..._0x5ce271)=>this['getSuggestionCallback'](_0x355596,_0x3460bd,'accept')(..._0x5ce271),'onDiscard':(..._0x2e0ac3)=>this['getSuggestionCallback'](_0x355596,_0x3460bd,'discard')(..._0x2e0ac3)});}['registerCustomCallback'](_0x1bbe8f,_0x4e273c,_0x28c1fe,_0x5286ce){const _0x4bbe30=_0x1bbe8f+':'+_0x4e273c+':'+_0x28c1fe;this['_customCallbacks']['set'](_0x4bbe30,_0x5286ce);}['getSuggestionCallback'](_0x1ff6b7,_0x106068,_0x4163ba){const _0x2a0b7c=_0x1ff6b7+':'+_0x106068+':'+_0x4163ba;return this['_customCallbacks']['get'](_0x2a0b7c)||this['_defaultCallbacks']['get'](_0x1ff6b7+':'+_0x4163ba);}['_registerDefaultCallbacks'](){const _0x15d36e=()=>!0x1,_0x4b4565=_0x378cf5=>{_0x378cf5['sort']((_0x20e21f,_0x3bc35d)=>_0x20e21f['start']['isBefore'](_0x3bc35d['start'])?0x1:-0x1),this['_model']['change'](_0x51615f=>{for(const _0x405087 of _0x378cf5){let _0x161260;_0x161260=_0x405087['end']['isAtEnd']&&_0x405087['end']['parent']==_0x405087['start']['nodeAfter']?_0x51615f['createSelection'](_0x405087['start']['nodeAfter'],'on'):_0x51615f['createSelection'](_0x405087),this['_model']['deleteContent'](_0x161260,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x4f28e4=(_0x540c1b,_0x4875b3)=>{_0x4875b3&&this['_model']['change'](_0x25e7d3=>{const {commandName:_0x384ad6,commandParams:_0x5790=[]}=_0x4875b3,_0xe1a8ba=_0x540c1b['map'](_0x5c3006=>(Pt(_0x5c3006)&&(_0x5c3006=this['_model']['createRange'](_0x5c3006['end'])),_0x5c3006))['filter'](_0x153480=>'$graveyard'!==_0x153480['root']['rootName']);if(_0xe1a8ba['length']<0x1)return;const _0x528b40=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2c615e=>_0x3e3f9b['fromRange'](_0x2c615e));_0x25e7d3['setSelection'](_0xe1a8ba);for(const _0x489854 of this['_editor']['commands']['commands']())_0x489854['refresh']();_0x5790['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x384ad6,..._0x5790);const _0x49690a=_0x528b40['filter'](_0x3758e1=>'$graveyard'!=_0x3758e1['root']['rootName']);_0x49690a['length']>0x0&&_0x25e7d3['setSelection'](_0x49690a);for(const _0x53dd3c of _0x528b40)_0x53dd3c['detach']();});},_0x1c089f=(_0x196d01,_0x5ecbe2)=>0x1==_0x196d01['length']&&0x1==_0x5ecbe2['length']&&_0x196d01[0x0]['end']['isEqual'](_0x5ecbe2[0x0]['start']),_0x55069f=(_0x2e7db6,_0x209448,_0x491349,_0x3b2bc6)=>Wt(_0x2e7db6,_0x209448,_0x491349,_0x3b2bc6)?[_0x2e7db6,_0x209448]:Wt(_0x209448,_0x2e7db6,_0x3b2bc6,_0x491349)?[_0x209448,_0x2e7db6]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x15d36e),this['_defaultCallbacks']['set']('insertion:discard',_0x4b4565),this['_defaultCallbacks']['set']('insertion:join',_0x1c089f),this['_defaultCallbacks']['set']('insertion:chain',_0x55069f),this['_defaultCallbacks']['set']('deletion:accept',_0x4b4565),this['_defaultCallbacks']['set']('deletion:discard',_0x15d36e),this['_defaultCallbacks']['set']('deletion:join',_0x1c089f),this['_defaultCallbacks']['set']('deletion:chain',_0x55069f),this['_defaultCallbacks']['set']('formatInline:accept',_0x4f28e4),this['_defaultCallbacks']['set']('formatInline:discard',_0x15d36e),this['_defaultCallbacks']['set']('formatInline:join',_0x1c089f),this['_defaultCallbacks']['set']('formatInline:chain',_0x15d36e),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4f28e4),this['_defaultCallbacks']['set']('formatBlock:discard',_0x15d36e),this['_defaultCallbacks']['set']('formatBlock:join',_0x1c089f),this['_defaultCallbacks']['set']('formatBlock:chain',_0x15d36e),this['_defaultCallbacks']['set']('attribute:accept',_0x15d36e),this['_defaultCallbacks']['set']('attribute:discard',(_0x424c9d,_0x5a94e3)=>{if(!_0x5a94e3)return;const _0x4f2bb0=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x2192ae=>{if(_0x5a94e3['key']==m)for(const _0x32e138 of _0x424c9d){const _0x50df7d=_0x32e138['start']['nodeAfter'],_0x1541be=_0x5a94e3['oldValue'];_0x2192ae['rename'](_0x50df7d,_0x1541be);}else{if(_0x4f2bb0['_isBlockAttribute'](_0x5a94e3['key'])){for(const _0x20ef5d of _0x424c9d)void 0x0!==_0x5a94e3['oldValue']?_0x2192ae['setAttribute'](_0x5a94e3['key'],_0x5a94e3['oldValue'],_0x20ef5d['start']['nodeAfter']):_0x2192ae['removeAttribute'](_0x5a94e3['key'],_0x20ef5d['start']['nodeAfter']);}else{for(const _0x5154ad of _0x424c9d)_0x5a94e3['oldValue']?_0x2192ae['setAttribute'](_0x5a94e3['key'],_0x5a94e3['oldValue'],_0x5154ad):_0x2192ae['removeAttribute'](_0x5a94e3['key'],_0x5154ad);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1c089f);}}function Ft(_0x11d2db,_0x325044,_0x1e1254){for(const _0x59f24b of _0x325044['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x59f24b['root']==_0x59f24b)return!0x1;if(!_0x1e1254['containsItem'](_0x59f24b))return!0x1;if(_0x11d2db['isObject'](_0x59f24b)||_0x11d2db['isLimit'](_0x59f24b))return!0x0;}return!0x1;}function Pt(_0x15cacc){return _0x15cacc['end']['parent']==_0x15cacc['start']['nodeAfter']&&_0x15cacc['end']['isAtStart'];}function Gt(_0x5ea64d,_0x6beffb,_0xd53ef9,_0x4deaac){const _0xa0783a=_0x3767f0=>!_0x3767f0['item']['is']('$textProxy')&&!_0x4deaac['isObject'](_0x3767f0['item']),_0x385224=_0x5ea64d['start']['getLastMatchingPosition'](_0xa0783a),_0x474dfb=_0x5ea64d['end']['getLastMatchingPosition'](_0xa0783a,{'direction':'backward'});return(!_0x5ea64d['start']['isEqual'](_0x385224)||!_0x5ea64d['end']['isEqual'](_0x474dfb))&&(_0x385224['isBefore'](_0x474dfb)?_0xd53ef9['updateMarker'](_0x6beffb,{'range':_0xd53ef9['createRange'](_0x385224,_0x474dfb)}):_0xd53ef9['removeMarker'](_0x6beffb),!0x0);}function Lt(_0x21b7fe){return _0xc7d82c(_0x21b7fe);}function Jt(_0x4f8c38){const _0x5b9851=_0x4f8c38['start']['nodeAfter'];return _0x5b9851&&_0x5b9851['is']('element');}function Kt(_0x9bc396){return Pt(_0x9bc396)||function(_0x27654d){return _0x27654d['start']['parent']==_0x27654d['end']['nodeBefore']&&_0x27654d['start']['isAtEnd'];}(_0x9bc396);}function Ht(_0x3ca0af,_0x4144c7){try{const _0x3f3ff0=_0x3ca0af['getRange']();for(const _0x2dee4f of _0x4144c7)if(_0x3ca0af!==_0x2dee4f&&_0x3f3ff0&&_0x3f3ff0['isIntersecting'](_0x2dee4f['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function qt(_0x5d921a,_0x3b6321){return null==_0x5d921a['end']['nodeBefore']&&_0x5d921a['end']['parent']==_0x5d921a['start']['nodeAfter']?zt(_0x5d921a['start']['nodeAfter'],_0x3b6321):_0x5d921a;}function zt(_0x590d0e,_0x469f48){const _0x357d95=_0x469f48['schema']['isObject'](_0x590d0e)||_0x469f48['schema']['isSelectable'](_0x590d0e);return _0x469f48['createRange'](_0x469f48['createPositionAt'](_0x590d0e,'before'),_0x357d95?_0x469f48['createPositionAfter'](_0x590d0e):_0x469f48['createPositionAt'](_0x590d0e,'end'));}function Wt(_0x1081f3,_0x3a094,_0x370f89,_0x574757){return!!Qt(_0x1081f3,_0x3a094)&&_0x370f89['end']['isEqual'](_0x574757['start']);}function Qt(_0x2deade,_0x545117){if(!_0x2deade['_isDataLoaded']||!_0x545117['_isDataLoaded'])return!0x1;const _0x3c7399=new Set(Object['keys'](_0x2deade['attributes'])),_0x298626=new Set(Object['keys'](_0x545117['attributes']));if(_0x3c7399['delete']('groupId'),_0x298626['delete']('groupId'),0x0==_0x3c7399['size']&&0x0==_0x298626['size'])return!0x0;if(_0x3c7399['size']!=_0x298626['size'])return!0x1;const _0x46ad05={..._0x2deade['attributes']},_0x219619={..._0x545117['attributes']};return delete _0x46ad05['groupId'],delete _0x219619['groupId'],JSON['stringify'](_0x46ad05)==JSON['stringify'](_0x219619);}function Xt(_0x1b96bd,_0x721a4){const _0x116ccb=Yt(_0x1b96bd['attributes']),_0x1f0d65=Yt(_0x721a4);if(!_0x1b96bd['_isDataLoaded'])return!0x1;for(const _0x369290 of Object['keys'](_0x1f0d65))if(!_0x1314a1(_0x116ccb[_0x369290],_0x1f0d65[_0x369290]))return!0x1;return!0x0;}function Yt(_0x458808){const _0x40bece=Object['assign']({},_0x458808);return delete _0x40bece['skipNestingCheck'],delete _0x40bece['tablePasteChainId'],_0x40bece;}class pe extends/* #__PURE__ -- @preserve */
26
- _0x3c38f4(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x334f6b,_0x79ca68,_0x5743ec,_0x314b16){super(),this['model']=_0x79ca68,this['view']=_0x5743ec,this['commentThreadController']=_0x314b16,this['_editor']=_0x334f6b,this['_acceptCommand']=_0x334f6b['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x334f6b['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2dd8aa,_0x26823e)=>_0x2dd8aa||_0x26823e),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3e6b39=>_0x3e6b39&&this['_editor']['model']['canEditAt'](_0x79ca68['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x36c2d9=>_0x36c2d9&&this['_editor']['model']['canEditAt'](_0x79ca68['getRanges']())),this['_pendingAction']=null,_0x5743ec['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5743ec,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5743ec,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5743ec,'change:isDirty',()=>{_0x5743ec['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 _0x12a340=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x12a340);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x82070{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4df2a1,_0x135459,_0x584011,_0x10c425){super(_0x4df2a1),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x33c388(_0x4df2a1,o(_0x4df2a1,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x135459['authoredAt']),this['bind']('authoredAt')['to'](_0x135459),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',_0x135459,'authoredAt',this,'descriptionParts',(_0x14a5e4,_0x2a54dd,_0x4e1f00)=>{const _0x395f7b=_0x4e1f00['map'](_0x117e5c=>ls(_0x117e5c['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x14a5e4-0x1,_0x135459['author']['name'],_0x2a54dd?_0x10c425['formatDateTime'](_0x2a54dd):'',new DOMParser()['parseFromString'](_0x395f7b,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3bbed4(),this['focusTracker']=new _0x420794(),this['keystrokes']=new _0x23ba89(),this['focusCycler']=new _0x49c277({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x64791e=>_0x64791e['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x135459,this['_localUser']=_0x584011,this['_config']=_0x10c425,_0x10c425['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x19ab60(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2ef9ea}=this['_config'];this['commentsListView']=new _0x2ef9ea(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',_0x316da9=>_0x316da9+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3161d4,_0x305821)=>_0x3161d4||!!_0x305821);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x20d8c2}=this['_config'],_0xe39269=new _0x20d8c2(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2b4e9b=_0xe39269['commentInputView'];return _0xe39269['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2b4e9b,'value',(_0x5bc391,_0x176a7b,_0x7d939)=>!!_0x7d939||_0x5bc391&&!_0x176a7b),_0x2b4e9b['on']('submit',(_0x297997,_0x1513d4)=>{this['fire']('addComment',_0x1513d4),_0x2b4e9b['editor']['setData']('');}),_0x2b4e9b['on']('cancel',()=>this['focus']()),_0x2b4e9b['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xe39269;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x254d58,_0xd5b49c,_0x52ed0b,_0x4fec46){super(_0x254d58,_0xd5b49c,_0x52ed0b,_0x4fec46),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3333d4=>_0x3333d4&&_0x3333d4[0x0]?_0x3333d4[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x143571,_0x21b2a3)=>{let _0x29b146='';for(const _0xc3a7d4 of _0x143571)_0x29b146+='<p>'+ls(_0xc3a7d4['content'],_0xc3a7d4['color'])+'</p>';return _0x21b2a3?_0x29b146:_0xcd9997(_0x29b146,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x4fec46['SuggestionView'](_0x254d58,_0xd5b49c,{'formatDateTime':_0x4fec46['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 _0x59230c=this['bindTemplate'],_0x2ba93a=[this['suggestionView']];return this['commentsListView']&&_0x2ba93a['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2ba93a['push'](this['commentThreadInputView']),_0x2ba93a['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x59230c['if']('isActive','ck-suggestion-wrapper--active'),_0x59230c['to']('type',_0x2fad50=>'ck-suggestion-'+_0x2fad50),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':_0x59230c['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2ba93a};}['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 _0x82070{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4b5084,_0x1bbbb9,_0x26402a){super(_0x4b5084),this['_model']=_0x1bbbb9,this['_config']=_0x26402a,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1bbbb9),this['acceptButton']=this['_createButton'](o(_0x4b5084,'Accept\x20suggestion'),_0x4a712b,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x4b5084,'Discard\x20suggestion'),_0x550f39,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5a8aec(_0x4b5084,_0x1bbbb9['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3bbed4([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x420794(),this['keystrokes']=new _0x23ba89(),this['focusCycler']=new _0x49c277({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x46d761=>_0x46d761['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x184c00=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x184c00['innerHTML']=this['description'],this['on']('change:description',(_0x55edf8,_0x235595,_0x49f7df)=>{_0x184c00['innerHTML']=_0x49f7df;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x185d77=this['bindTemplate'],_0x962b06=[{'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':_0x185d77['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x185d77['to']('authoredAt',_0x6f5c81=>this['_config']['formatDateTime'](_0x6f5c81))}]}]},{'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']&&_0x962b06['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':_0x962b06}]};}['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'](_0xc663bf,_0x450966,_0x34f200,_0x17994f,_0x1e75d0){const _0x30af09=new _0x2caa7c(this['locale']);return _0x30af09['set']({'label':_0xc663bf,'icon':_0x450966,'tooltip':!0x0,'tooltipPosition':_0x1e75d0}),_0x30af09['extendTemplate']({'attributes':{'class':_0x34f200}}),_0x30af09['on']('execute',()=>{this['fire'](_0x17994f,this['_model']['id']);}),_0x30af09;}['_setupKeyboardNavigation'](){const _0x3390f5=this['element'];this['keystrokes']['listenTo'](_0x3390f5);for(const _0xc5ccd4 of this['focusables'])this['focusTracker']['add'](_0xc5ccd4['element']),this['keystrokes']['listenTo'](_0xc5ccd4['element']);this['keystrokes']['set']('enter',(_0x3b7b74,_0x2b8f8a)=>{_0x3390f5===_0x3b7b74['target']&&(this['focusCycler']['focusFirst'](),_0x2b8f8a());}),this['keystrokes']['set']('esc',(_0x9c9e99,_0xcd7053)=>{_0x3390f5!==_0x9c9e99['target']&&(this['focus'](),_0xcd7053());});}}class u extends _0x8725f3{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x5c3456,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1e9fd3){super(_0x1e9fd3),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4660da=this['editor']['config'];_0x4660da['define']('trackChanges.SuggestionThreadView',fe),_0x4660da['define']('trackChanges.SuggestionView',we),_0x4660da['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4660da['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x426923,_0x326093){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x16a7f8,_0x384912]of this['_handleControllerBuffer']){const _0x311b26=this['_suggestionToController']['has'](_0x16a7f8);_0x311b26||_0x384912?_0x311b26&&_0x384912&&this['_destroyController'](_0x16a7f8):this['_initializeController'](_0x16a7f8);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x426923,_0x326093);}['init'](){const _0xa3e37a=this['editor'],_0x50784d=_0xa3e37a['plugins']['get']('TrackChangesEditing'),_0x445b57=_0xa3e37a['plugins']['get']('Annotations'),_0x301a4e=_0xa3e37a['plugins']['get']('EditorAnnotations'),_0x45a1cf=_0xa3e37a['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x301a4e['addSourceCollector'](()=>{const _0x5ea766=[];for(const [_0x5bf8fe,_0x14973a]of Array['from'](this['_suggestionToController'])){const _0x782a80=_0x5bf8fe['getAllAdjacentSuggestions'](),_0x2c6b81=[];for(const _0x3707c0 of _0x782a80){if(!_0x3707c0['isInContent'])continue;if(_0x3707c0['isMultiRange']){_0x2c6b81['push'](..._0x3707c0['getRanges']());continue;}const _0xf244e0=_0x3707c0['getFirstRange']();if(_0x2c6b81['length']>0x0){const _0x1a9d45=_0x2c6b81[0x0]['getJoined'](_0xf244e0);if(_0x1a9d45){_0x2c6b81[0x0]=_0x1a9d45;continue;}}_0x2c6b81['push'](_0xf244e0);}_0x5ea766['push']([_0x14973a['view'],_0x2c6b81]);}return _0x5ea766;}),this['listenTo'](_0x50784d,'suggestionLoaded',(_0x511244,_0x34d6fb)=>{this['listenTo'](_0x34d6fb,'change:previous',(_0x2c603b,_0x2a464f,_0x444aba,_0x443d4c)=>{_0x34d6fb['isInContent']&&(null==_0x444aba?(this['_updateController'](_0x443d4c['head']),this['_handleSuggestionControllerDelayed'](_0x34d6fb,!0x1)):(this['_updateController'](_0x444aba['head']),null==_0x443d4c&&this['_handleSuggestionControllerDelayed'](_0x34d6fb,!0x0)));}),null!==_0x34d6fb['previous']?this['_updateController'](_0x34d6fb['head']):this['_handleSuggestionControllerDelayed'](_0x34d6fb,!0x1);}),this['listenTo'](_0x50784d,'suggestionUnloaded',(_0x29e322,_0x5563a5,_0x26e230)=>{this['stopListening'](_0x5563a5,'change:previous'),this['_handleControllerBuffer']['delete'](_0x5563a5),this['_suggestionToController']['has'](_0x5563a5)&&this['_destroyController'](_0x5563a5),_0x26e230&&this['_updateController'](_0x26e230['head']);}),this['listenTo'](_0x50784d,'suggestionChanged',(_0x254a61,_0x1d555b)=>{this['_updateController'](_0x1d555b);}),this['listenTo'](_0x445b57,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x45a1cf,'addComment',(_0x5278a6,{threadId:_0x27a1c0,isFromAdapter:_0x279c11})=>{if(_0x279c11||!_0x50784d['hasSuggestion'](_0x27a1c0))return;const _0xff01d3=_0x50784d['getSuggestion'](_0x27a1c0);this['_suggestionToController']['get'](_0xff01d3)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2751a0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1f53c2;for(const _0x3f21b1 in _0x2751a0){const _0x305fd3=_0x3f21b1,_0x9243ef=_0x2751a0[_0x305fd3];if('trackChangesLicenseKeyValid'==_0x9243ef||'trackChangesLicenseKeyInvalid'==_0x9243ef||'trackChangesLicenseKeyExpired'==_0x9243ef||'trackChangesLicenseKeyDomainLimit'==_0x9243ef||'trackChangesLicenseKeyNotAllowed'==_0x9243ef||'trackChangesLicenseKeyEvaluationLimit'==_0x9243ef||'trackChangesLicenseKeyTrialLimit'==_0x9243ef||'trackChangesLicenseKeyUsageLimit'==_0x9243ef){delete _0x2751a0[_0x305fd3],_0x1f53c2=_0x9243ef,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1f53c2&&_0x2751a0['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1f53c2&&_0x2751a0['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1f53c2&&_0x2751a0['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1f53c2&&_0x2751a0['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1f53c2&&_0x2751a0['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x1f53c2&&_0x2751a0['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1f53c2&&_0x2751a0['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x331f0a){const _0x25e579=this['_suggestionToController']['get'](_0x331f0a);if(!_0x25e579)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x25e579['view'])||null;}['getSuggestionForAnnotation'](_0x5027f3){const _0x2dd587=this['_viewToController']['get'](_0x5027f3['innerView']);return _0x2dd587?_0x2dd587['model']:null;}['_refreshActiveMarkers'](){const _0x1b2dc6=this['editor']['plugins']['get']('Annotations'),_0x5b6188=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e0148=Array['from'](_0x1b2dc6['activeAnnotations'],_0x42eac7=>_0x42eac7['innerView'])['filter'](_0x5d0bfd=>this['_viewToController']['has'](_0x5d0bfd)),_0x568f07=[];for(const _0x196a31 of _0x3e0148){const _0x1133ea=this['_viewToController']['get'](_0x196a31)['model']['getAllAdjacentSuggestions']();_0x568f07['push'](..._0x1133ea['reduce']((_0xd730db,_0x1d8705)=>[..._0xd730db,..._0x1d8705['getMarkerNames']()],[]));}_0x5b6188['activeMarkers']=_0x568f07;}['_addUIComponentsToFactory'](){const _0x560ea0=this['editor'],_0x36966d=_0x560ea0['locale'],_0x1b5b7e=o(_0x36966d,'Track\x20changes'),_0x3a5639=new _0x36cae3([{'type':'switchbutton','model':new _0x1cf42f({'withText':!0x0,'isToggleable':!0x0,'label':_0x1b5b7e,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1cf42f({'withText':!0x0,'label':o(_0x36966d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1cf42f({'withText':!0x0,'label':o(_0x36966d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1cf42f({'withText':!0x0,'label':o(_0x36966d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1cf42f({'withText':!0x0,'label':o(_0x36966d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x560ea0['plugins']['has']('TrackChangesPreview')&&_0x3a5639['addMany']([{'type':'separator'},{'type':'button','model':new _0x1cf42f({'withText':!0x0,'label':o(_0x36966d,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2f93c4 of _0x3a5639)if(ke(_0x2f93c4)){const _0x21cc44=_0x560ea0['commands']['get'](_0x2f93c4['model']['commandName']);_0x2f93c4['model']['bind']('isOn','isEnabled')['to'](_0x21cc44,'value','isEnabled');}_0x560ea0['ui']['componentFactory']['add']('trackChanges',_0x435ef0=>this['_createToolbarButton'](_0x435ef0,_0x3a5639,_0x1b5b7e)),_0x560ea0['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4b472e=>this['_createMenuBarMenu'](_0x4b472e,_0x3a5639,_0x1b5b7e));}['_createToolbarButton'](_0x5c7bf3,_0x44c859,_0x3d4865){const _0x11ca8f=_0x92968c(_0x5c7bf3,_0x326f58),_0x570c17=this['editor']['commands']['get']('trackChanges');_0x11ca8f['buttonView']['set']({'tooltip':_0x3d4865,'label':_0x3d4865,'icon':_0x23ec22}),_0x11ca8f['buttonView']['bind']('isOn')['to'](_0x570c17,'value'),_0x11ca8f['buttonView']['on']('execute',()=>{_0x570c17['execute'](),this['editor']['editing']['view']['focus']();}),_0x305f68(_0x11ca8f,_0x44c859,{'role':'menu'});const _0x14049e=[];for(const _0x16f305 of _0x44c859)ke(_0x16f305)&&_0x14049e['push'](this['editor']['commands']['get'](_0x16f305['model']['commandName']));const _0x44e06b=_0x11ca8f['buttonView'];return _0x44e06b['actionView']['unbind']('isEnabled'),_0x44e06b['arrowView']['unbind']('isEnabled'),_0x44e06b['actionView']['bind']('isEnabled')['to'](_0x570c17,'isEnabled'),_0x44e06b['arrowView']['bind']('isEnabled')['toMany'](_0x14049e,'isEnabled',(..._0x53575e)=>_0x53575e['some'](_0x42b636=>_0x42b636)),_0x11ca8f['on']('execute',_0x283309=>{this['editor']['execute'](_0x283309['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x11ca8f;}['_createMenuBarMenu'](_0x3d9df3,_0x12e32f,_0x44039c){const _0x5ae1db=new _0x106e9a(_0x3d9df3),_0x3d3707=this['editor']['commands']['get']('trackChanges');_0x5ae1db['buttonView']['set']({'label':_0x44039c,'icon':_0x23ec22});const _0x529651=new _0x117bf8(_0x3d9df3);for(const _0x300661 of _0x12e32f){if('separator'==_0x300661['type']){_0x529651['items']['add'](new _0x133aa6(_0x3d9df3));continue;}const _0x10d140=new _0x1e07cc(_0x3d9df3,_0x5ae1db),_0x1ceaea=new _0x360cd2(_0x3d9df3),_0x221a32=_0x300661['model'];_0x1ceaea['bind'](...Object['keys'](_0x221a32))['to'](_0x221a32),_0x1ceaea['delegate']('execute')['to'](_0x5ae1db),_0x1ceaea['on']('execute',()=>{this['editor']['execute'](_0x221a32['commandName']),this['editor']['editing']['view']['focus']();}),_0x10d140['children']['add'](_0x1ceaea),_0x529651['items']['add'](_0x10d140);}return _0x5ae1db['bind']('isEnabled')['to'](_0x3d3707,'isEnabled'),_0x5ae1db['panelView']['children']['add'](_0x529651),_0x5ae1db;}['_initializeController'](_0x31456c){const _0xf024ca=this['editor'],_0x4a334b=_0xf024ca['config'],_0x484bfb=_0xf024ca['plugins']['get']('Annotations'),_0x3503da=_0xf024ca['plugins']['get']('CommentsRepository'),_0x42d0fc=_0xf024ca['plugins']['get']('EditorAnnotations'),_0x28eff0=_0xf024ca['plugins']['get'](_0x5c3456)['me'],_0x2efeed=_0x4a334b['get']('trackChanges')['SuggestionThreadView'],_0x236acd=_0x4a334b['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x5e56ac,CommentThreadInputView:_0x29908e}=_0xf024ca['plugins']['get']('CommentsUI');let _0x275ac3,_0x577ff5,_0x564fc8;this['_annotationViews']['has'](_0x31456c['id'])?(_0x577ff5=this['_annotationViews']['get'](_0x31456c['id']),_0x275ac3=_0x577ff5['mainView']):(_0x275ac3=new _0x2efeed(_0xf024ca['locale'],_0x31456c,_0x28eff0,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4a334b['get']('comments.editorConfig'),'licenseKey':_0x4a334b['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4a334b['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4a334b['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4a334b['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x54739e(_0x4a334b['get']('locale'),_0xf024ca['locale']),'CommentView':_0x4a334b['get']('comments')['CommentView'],'CommentsListView':_0x5e56ac,'CommentThreadInputView':_0x29908e,'SuggestionView':_0x236acd}),_0x275ac3['suggestionView']['acceptButton']['on']('execute',()=>{_0xf024ca['editing']['view']['focus']();}),_0x275ac3['suggestionView']['discardButton']['on']('execute',()=>{_0xf024ca['editing']['view']['focus']();}),_0x577ff5=_0x484bfb['createAnnotationView'](this['editor']['locale'],_0x275ac3),_0x577ff5['bind']('isDirty')['to'](_0x275ac3,'isDirty'),_0x577ff5['bind']('length')['to'](_0x275ac3),_0x577ff5['bind']('type')['to'](_0x275ac3,'type',_0x459fbd=>'suggestion-'+_0x459fbd),_0x275ac3['on']('escape',()=>{_0x564fc8['fire']('escape');}),this['_annotationViews']['set'](_0x31456c['id'],_0x577ff5));const _0x2bebca=_0x3503da['createCommentThreadController'](_0x31456c['commentThread'],_0x275ac3),_0x1c1bea=new pe(_0xf024ca,_0x31456c,_0x275ac3,_0x2bebca),_0x5ab487=_0x31456c['getAllAdjacentSuggestions']()['filter'](_0x5c2f70=>_0x5c2f70['isInContent']);_0x275ac3['descriptionParts']=_0xf024ca['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5ab487),this['_suggestionToController']['set'](_0x31456c,_0x1c1bea),this['_viewToController']['set'](_0x275ac3,_0x1c1bea);const _0x47f498=()=>{const _0x4b74f7=[],_0x391dc7=_0x31456c['getAllAdjacentSuggestions']()['filter'](_0x2ee46a=>_0x2ee46a['isInContent']);for(const _0x2b5d5f of _0x391dc7)_0x4b74f7['push'](..._0x2b5d5f['getMarkers']());return _0x198ca2(_0xf024ca['editing'],_0x4b74f7);};_0x564fc8=_0x484bfb['createAnnotation']({'view':_0x577ff5,'target':_0x47f498,'type':()=>'suggestion-'+_0x1c1bea['view']['type'],'isVisible':!!_0x47f498()}),_0x3503da['_bindAnnotationToEditors'](_0x275ac3,_0x564fc8),_0x484bfb['add'](_0x564fc8),_0x42d0fc['registerAnnotation'](_0x564fc8);}['_destroyController'](_0x1b2969){const _0x5e0f75=this['editor']['plugins']['get']('CommentsRepository'),_0x1fea1c=this['editor']['plugins']['get']('Annotations'),_0x340c9c=this['_suggestionToController']['get'](_0x1b2969),_0x5777c6=_0x340c9c['view'],_0x34402f=_0x1fea1c['getByInnerView'](_0x5777c6);_0x5e0f75['_unbindEditors'](_0x5777c6),_0x34402f&&_0x1fea1c['remove'](_0x34402f),this['_suggestionToController']['delete'](_0x1b2969),this['_viewToController']['delete'](_0x5777c6),_0x340c9c['destroy']();}['_updateController'](_0x26f8d6){if(!_0x26f8d6['isInContent']||!this['_suggestionToController']['has'](_0x26f8d6))return;const _0x108c36=this['editor']['plugins']['get']('TrackChangesEditing'),_0x24d841=this['_suggestionToController']['get'](_0x26f8d6),_0x4ea275=_0x26f8d6['getAllAdjacentSuggestions']();_0x24d841['view']['descriptionParts']=_0x108c36['descriptionFactory']['getDescriptions'](_0x4ea275);}['destroy'](){for(const _0x576177 of this['_suggestionToController']['keys']())this['_destroyController'](_0x576177);for(const _0x287532 of this['_annotationViews']['values']())_0x287532['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x490229){return'model'in _0x490229;}class Fe extends _0x8725f3{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x152ecd){this['editor']['plugins']['get'](d)['adapter']=_0x152ecd;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x487ebf){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x487ebf);}['getSuggestions']({skipNotAttached:_0x295e83=!0x1,toJSON:_0x4dccce=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x295e83,'toJSON':_0x4dccce});}['getSuggestion'](_0x28d3cb){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x28d3cb);}}const p=['Pagination'];class re extends _0x8725f3{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x551a73=this['editor'];if(_0x551a73['config']['define']('trackChangesData.editorCreator',_0x291ff6=>{const _0x4635d7=_0x551a73['model']['document']['getRootNames']()['reduce']((_0x55949b,_0x129cbc)=>(_0x55949b[_0x129cbc]='',_0x55949b),{});return _0x551a73['constructor']['create'](_0x4635d7,_0x291ff6);}),'function'!=typeof _0x551a73['config']['get']('trackChangesData')['editorCreator'])throw new _0x4fc565('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5a03f8){return P(this['editor'],!0x0,_0x5a03f8);}['getDataWithDiscardedSuggestions'](_0x10311b){return P(this['editor'],!0x1,_0x10311b);}}class Ge extends _0x8725f3{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x34db0d){function _0x4572f4(_0x4b7476){return _0x4b7476['map'](_0x13d030=>String['fromCharCode'](_0x13d030))['join']('');}super(_0x34db0d),this['result']='end',_0x34db0d[_0x4572f4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4572f4([0x76,0x69,0x65,0x77])][_0x4572f4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4572f4([0x61,0x75,0x74,0x6f]),_0x34db0d[_0x4572f4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4572f4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4572f4([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4572f4([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4572f4([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 He(_0xe12496){return void 0x0!==_0xe12496['getRootsAttributes'];}async function P(_0x4598f4,_0x24f6d7,_0x490eab){const _0x34dc30=_0x13b2d3(_0x4598f4,p);_0x34dc30['plugins']['push'](d,Ge),_0x34dc30['rootsAttributes']=He(_0x4598f4)?_0x4598f4['getRootsAttributes']():void 0x0;const _0xf87aaa=document['createDocumentFragment'](),_0x3686d3=_0x4598f4['config']['get']('trackChangesData')['editorCreator'],_0x2599df=await _0x3686d3(_0x34dc30,()=>function(_0x33aa09){const _0x11c229=document['createElement']('div');return _0x33aa09['appendChild'](_0x11c229),_0x11c229;}(_0xf87aaa));!function(_0xd687c,_0x535c5b){const _0x2366ac=_0xd687c['model']['document']['getRootNames']()['reduce']((_0x836654,_0x339ace)=>(_0x836654[_0x339ace]=_0xd687c['data']['get']({'rootName':_0x339ace}),_0x836654),{}),_0x1baba4=_0xd687c['plugins']['get']('Users')['users']['map'](_0x3ca9e6=>({'id':_0x3ca9e6['id'],'name':_0x3ca9e6['name']})),_0x452f7a=_0xd687c['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1d6e81=_0xd687c['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x26420d=_0x535c5b['plugins']['get']('Users'),_0x1986c5=_0x535c5b['plugins']['get']('TrackChangesEditing'),_0x450423=_0x535c5b['plugins']['get']('CommentsRepository');for(const _0x439e32 of _0x450423['getCommentThreads']())_0x439e32['remove']();for(const _0x3faf54 of _0x1baba4)_0x26420d['getUser'](_0x3faf54['id'])||_0x26420d['addUser'](_0x3faf54);_0x26420d['me']||_0x26420d['useAnonymousUser']();for(const _0x3c6906 of _0x1d6e81)_0x450423['addCommentThread'](_0x3c6906);for(const _0x4ba065 of _0x452f7a)_0x1986c5['addSuggestionData'](_0x4ba065);_0x535c5b['data']['set'](_0x2366ac);}(_0x4598f4,_0x2599df),_0x2599df['execute'](_0x24f6d7?'acceptAllSuggestions':'discardAllSuggestions');const _0x48f180=He(_0x2599df)?_0x2599df['getFullData'](_0x490eab):_0x2599df['data']['get'](_0x490eab);return await _0x2599df['destroy'](),_0x48f180;}class Me extends _0x82070{['options'];constructor(_0x5d921c,_0x469e52){super(_0x5d921c),this['options']=_0x469e52,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'](_0x29f0d8,_0x2764d2){if(!this['element'])return;const _0x19ea7c=[];for(const [_0x1e5d61,_0x1662ab]of _0x29f0d8){const _0x1ce5d9=document['createElement']('div');_0x1ce5d9['setAttribute']('data-ck-root-name',_0x1e5d61),_0x1ce5d9['className']=_0x1662ab['classes']+'\x20ck-track-changes-preview__root-container',_0x1ce5d9['innerHTML']=_0x1662ab['content'],_0x19ea7c['push'](_0x1ce5d9);}_0x2764d2(this['element'],_0x19ea7c),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x5be447{constructor(_0x50fcc4){super(_0x50fcc4),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x4094c7=this['editor'],_0x52e557=_0x4094c7['locale'],_0x25055f=_0x4094c7['plugins']['get']('Dialog');let _0x2c722b;const _0x4a3624=function(_0x53fe77){const _0x1f4d7c={};if('editables'in _0x53fe77['ui']['view']){for(const [_0x124b79,_0x2acf40]of Object['entries'](_0x53fe77['ui']['view']['editables']))_0x1f4d7c[_0x124b79]=_0x2acf40['element'];}else _0x1f4d7c[_0x53fe77['model']['document']['getRootNames']()[0x0]]=_0x53fe77['ui']['view']['editable']['element'];return _0x1f4d7c;}(_0x4094c7),_0x5f4ce5=function(_0x335b6b){let _0x42deaf=0x0;for(const _0x775b58 of Object['values'](_0x335b6b))_0x42deaf=Math['max'](_0x42deaf,_0x775b58['getBoundingClientRect']()['width']);let _0x4e99cc=0x0;for(const _0x23d039 of Object['values'](_0x335b6b))_0x4e99cc+=_0x23d039['getBoundingClientRect']()['height'];const _0xf86dc=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x5607d5=Math['min'](_0x4e99cc,_0xf86dc);return{'width':_0x42deaf,'height':_0x5607d5};}(_0x4a3624);_0x25055f['show']({'id':'finalContentPreview','title':o(_0x52e557,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x52e557,{'dialogRects':_0x5f4ce5}),'onHide':()=>{_0x2c722b['detachFromDom']();},'onShow':()=>{_0x4094c7['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x181d49=>{const _0x574a52=this['_standarizeRootsData'](_0x181d49,_0x4094c7,_0x4a3624);_0x25055f['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x574a52,_0x4094c7['config']['get']('trackChanges.preview.renderFunction'));}),_0x2c722b=new _0x21b6d8(_0x52e557,[_0x25055f['view']]),_0x2c722b['attachToDom'](),_0x2c722b['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x4094c7['once']('destroy',()=>{_0x2c722b['detachFromDom']();});const _0x1b551b=_0x25055f['view']['headerView']['class'];_0x25055f['view']['headerView']['class']=_0x1b551b?_0x1b551b+'\x20ck-reset_all':'ck-reset_all',_0x25055f['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x25055f['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x513d32=this['editor']['plugins']['get']('MergeFieldsEditing'),_0xfd27c=_0x513d32['previewMode'],_0x4aafb8={};if('$labels'===_0xfd27c){for(const _0x246fe8 of _0x513d32['getMergeFieldsIds']())_0x4aafb8[_0x246fe8]=_0x513d32['getLabel'](_0x246fe8)||_0x246fe8;}else{const _0x50ded9='$defaultValues'===_0xfd27c?_0x513d32['getDefaultValues']():_0x513d32['getDataSetValues'](_0xfd27c,!0x0);for(const _0x550b61 of Object['entries'](_0x50ded9)){const [_0x32c496,_0x4b9685]=_0x550b61;_0x4aafb8[_0x32c496]=null!==_0x4b9685?_0x4b9685:_0x513d32['getLabel'](_0x32c496)||_0x32c496;}}return{'mergeFieldsData':_0x4aafb8};}['_standarizeRootsData'](_0x14ca58,_0x31851f,_0x2bcd20){let _0x3a99ab;if('string'==typeof _0x14ca58){const _0x57a74e=_0x31851f['model']['document']['getRootNames']()[0x0];_0x3a99ab={[_0x57a74e]:_0x14ca58};}else _0x3a99ab=_0x14ca58;const _0x291675=this['_fixMediaEmbeds'](_0x3a99ab,_0x31851f),_0x115bb8=function(_0x12657f,_0x597c10){for(const [_0x5228eb,_0x541a15]of _0x12657f)_0x541a15['classes']=_0x597c10[_0x5228eb]['classList']['value']['replace']('ck-focused','');return _0x12657f;}(this['_sortRoots'](_0x31851f)['reduce']((_0x1241ac,_0x10ffcd)=>(_0x1241ac['push']([_0x10ffcd,{'content':_0x291675[_0x10ffcd],'classes':''}]),_0x1241ac),[]),_0x2bcd20);return _0x115bb8;}['_fixMediaEmbeds'](_0x4c5c05,_0x3ce289){if(!_0x3ce289['plugins']['has']('MediaEmbedEditing'))return _0x4c5c05;const _0x63cce4=_0x3ce289['plugins']['get']('MediaEmbedEditing');for(const [_0x151b33,_0x2c4aed]of Object['entries'](_0x4c5c05)){const _0x8329d2=document['createElement']('div');_0x8329d2['innerHTML']=_0x2c4aed,(_0x8329d2['querySelectorAll']('figure.media')['forEach'](_0x3997c5=>{const _0x48dbba=_0x3997c5['querySelector']('oembed');if(_0x48dbba){const _0x2a13b5=_0x48dbba['getAttribute']('url');if(_0x2a13b5){const _0x61ed6=_0x63cce4['registry']['getMediaViewElement'](new _0xe495ac(_0x3ce289['editing']['view']['document']),_0x2a13b5,{'elementName':'','renderForEditingView':!0x0}),_0x1e2808=document['createElement']('div');_0x1e2808['classList']['add']('ck-media__wrapper'),_0x61ed6['render'](_0x1e2808,_0x3ce289['editing']['view']['domConverter']),_0x48dbba['replaceWith'](_0x1e2808);}}}),_0x4c5c05[_0x151b33]=_0x8329d2['innerHTML']);}return _0x4c5c05;}['_sortRoots'](_0x54457c){if(!function(_0x3692fd){return void 0x0!==_0x3692fd['getRootsAttributes'];}(_0x54457c))return _0x54457c['model']['document']['getRootNames']();const _0x1afdb6=[],_0x310ff=new Map();for(const _0x29544a of _0x54457c['model']['document']['getRootNames']()){const _0x181176=_0x54457c['editing']['view']['getDomRoot'](_0x29544a)['getClientRects']()['item'](0x0);_0x1afdb6['push'](_0x29544a),_0x310ff['set'](_0x29544a,_0x181176);}return _0x1afdb6['sort']((_0x2e75ed,_0x3e11fe)=>{const _0x1c8b7b=_0x310ff['get'](_0x2e75ed),_0x584709=_0x310ff['get'](_0x3e11fe);return _0x1c8b7b['y']-_0x584709['y']||_0x1c8b7b['x']-_0x584709['x'];}),_0x1afdb6;}}class $e extends _0x8725f3{static get['requires'](){return[re,_0x35058c];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x103110){super(_0x103110),_0x103110['commands']['add']('previewFinalContent',new te(this['editor'])),_0x103110['config']['define']('trackChanges.preview.renderFunction',(_0x1eccf7,_0x3bc701)=>{for(const _0x3d7142 of _0x3bc701)_0x1eccf7['appendChild'](_0x3d7142);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,$ as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,$e as TrackChangesPreview,u as TrackChangesUI};
23
+ import{Command as _0x30d37f,Plugin as _0x17823b,PendingActions as _0x3093bb}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5677b3,ObservableMixin as _0x116aef,uid as _0x1fe55e,priorities as _0x4a4dfb,insertToPriorityArray as _0x933f96,toArray as _0x27d236,logWarning as _0xfe2e5e,getEnvKeystrokeText as _0x3dbaa4,FocusTracker as _0x1738bb,KeystrokeHandler as _0x334543,Collection as _0x577c11}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x2ae04d,IconCancel as _0x1ce91b,IconTrackChanges as _0x56a53e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x1c5886,View as _0x53f56c,ViewCollection as _0x1b26b6,FocusCycler as _0x13c493,UIModel as _0x1d3344,createDropdown as _0x2e9a3b,SplitButtonView as _0x339a70,addListToDropdown as _0x8ce190,MenuBarMenuView as _0x55f5e3,MenuBarMenuListView as _0x42b8af,ListSeparatorView as _0x119bcf,MenuBarMenuListItemView as _0x4921bf,MenuBarMenuListItemButtonView as _0x20e3ca,BodyCollection as _0x2a1ef3,Dialog as _0x47fc3c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x246339,hashObject as _0x3c3199,surroundingMarkersDetector as _0x3c0381,FOCUS_ANNOTATION_KEYSTROKE as _0xb96b53,AriaDescriptionView as _0x393f36,setupThreadKeyboardNavigation as _0x49dab8,trimHtml as _0x628eaa,UserView as _0x244206,LateFocusButtonView as _0x278667,getDateTimeFormatter as _0x532bbd,getAllMarkersDomElementsSorted as _0x546d83,sanitizeEditorConfig as _0x2bca11}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x233c1f,ModelLiveRange as _0x5e8c26,ModelLivePosition as _0x2bc57a,ViewDowncastWriter as _0x31d7c1}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x2f3435,toWidget as _0x54a110}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0xe196f8,set as _0x36d730,isEqual as _0x3c1cf0,unset as _0x2a3046,omit as Ut}from'es-toolkit/compat';import{Delete as _0x2a8ebe,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x599094}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x5ebf41}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x30d37f{['_enabledCommands'];constructor(_0x32736d,_0x151e0f){super(_0x32736d),this['_enabledCommands']=_0x151e0f,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 _0x2bd867 of this['editor']['commands']['commands']())_0x2bd867['affectsData']&&!this['_enabledCommands']['has'](_0x2bd867)&&_0x2bd867['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x13e9e1 of this['editor']['commands']['commands']())_0x13e9e1['affectsData']&&!this['_enabledCommands']['has'](_0x13e9e1)&&_0x13e9e1['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x30d37f{['_suggestions'];constructor(_0x48b3fa,_0x171708){super(_0x48b3fa),this['_suggestions']=_0x171708,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x133519){const _0xd6080d=this['_suggestions']['get'](_0x133519);if(!_0xd6080d)throw new _0x5677b3('track-changes-accept-suggestion-not-found',this);const _0x52ffee=_0xd6080d['getRanges']();this['editor']['model']['canEditAt'](_0x52ffee)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xd6080d);}}class $ extends _0x30d37f{['_suggestions'];constructor(_0x36b5a7,_0x558ad8){super(_0x36b5a7),this['_suggestions']=_0x558ad8,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x197a8f){const _0x56ee7c=this['_suggestions']['get'](_0x197a8f);if(!_0x56ee7c)throw new _0x5677b3('track-changes-discard-suggestion-not-found',this);const _0x2c5eac=_0x56ee7c['getRanges']();this['editor']['model']['canEditAt'](_0x2c5eac)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x56ee7c);}}function ls(_0x58821e,_0x13232f){let _0x468e5d='';return _0x468e5d+=_0x58821e['split']('*')['map']((_0x3dafbd,_0x780aa6)=>_0x780aa6%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Zt(_0x3dafbd)+'</span>':Zt(_0x3dafbd))['join'](''),_0x13232f&&(_0x468e5d+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x13232f['value']+'\x22\x20title=\x22'+_0x13232f['title']+'\x22></span>'),_0x468e5d;}function Zt(_0x5c151f){const _0x4dde0f=document['createElement']('span');return _0x4dde0f['innerText']=_0x5c151f,_0x4dde0f['innerHTML'];}function ts(_0x336e3a){return _0x336e3a['sort']((_0x3f83d5,_0x12903b)=>'attribute'===_0x3f83d5['type']&&'attribute'!==_0x12903b['type']?-0x1:'attribute'!==_0x3f83d5['type']&&'attribute'===_0x12903b['type']?0x1:'deletion'==_0x3f83d5['type']&&'deletion'!=_0x12903b['type']?-0x1:'deletion'!=_0x3f83d5['type']&&'deletion'==_0x12903b['type']?0x1:0x0);}function to(_0x5d0d32,_0x241422){let _0xe40fe2,_0xe965a3=0x0;const _0x116657=[],_0x1cb2ab=_0x241422['schema'];for(;_0xe965a3<_0x5d0d32['length'];){const _0x4a2186=_0x5d0d32[_0xe965a3],_0x1757b6=_0x5d0d32[_0xe965a3+0x1];_0xe40fe2||(_0xe40fe2=_0x241422['createPositionBefore'](_0x4a2186)),tn(_0x241422,_0x4a2186,_0x1757b6)||(_0x116657['push'](_0x241422['createRange'](_0xe40fe2,_0x1cb2ab['isObject'](_0x4a2186)?_0x241422['createPositionAfter'](_0x4a2186):_0x241422['createPositionAt'](_0x4a2186,'end'))),_0xe40fe2=null),_0xe965a3++;}return _0x116657;}function tn(_0x4e96b6,_0x1b8d4f,_0x374bb5){if(!_0x374bb5)return!0x1;const _0x3a5091=_0x4e96b6['createPositionAfter'](_0x1b8d4f),_0x132603=_0x4e96b6['createPositionBefore'](_0x374bb5);return _0x3a5091['isTouching'](_0x132603);}function rs(_0x38d35d,_0x2a1cea,_0x185be7){for(;_0x185be7['length'];){const _0x148472=_0x185be7['splice'](0x0,0x64);_0x38d35d['change'](()=>{for(const _0x4abb22 of _0x148472)_0x4abb22['isInContent']&&_0x2a1cea['execute'](_0x4abb22['id']);});}}class M extends _0x30d37f{['_command'];['_suggestions'];constructor(_0x3b3420,_0x490f74,_0x294e15){super(_0x3b3420),this['_command']=_0x490f74,this['_suggestions']=_0x294e15,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4599c9=Array['from'](this['_suggestions']['values']())['some'](_0x44ad0e=>_0x44ad0e['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4599c9;}['execute'](){const _0x19114f=ts(Array['from'](this['_suggestions']['values']()));for(const _0x2bfc14 of _0x19114f){const _0x32aba0=_0x2bfc14['getRanges']();if(!this['editor']['model']['canEditAt'](_0x32aba0))return;}rs(this['editor']['model'],this['_command'],_0x19114f);}}class B extends _0x30d37f{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x55137d,_0x1c61ee,_0x158371){super(_0x55137d),this['_command']=_0x1c61ee,this['_suggestions']=_0x158371,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x19e532=this['editor']['model']['document']['selection'],_0x561103=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1ceeec,_0x1c80c6){const _0x4efff5=Array['from'](_0x1ceeec['getRanges']()),_0x571b29=new Set();for(const _0x5adc11 of _0x1c80c6)if(_0x5adc11['isInContent']){for(const _0x55db24 of _0x4efff5)for(const _0x5b5de7 of _0x5adc11['getRanges']())(_0x55db24['isIntersecting'](_0x5b5de7)||_0x1ceeec['isCollapsed']&&!_0x5adc11['isMultiRange']&&_0x5adc11['next']&&_0x5b5de7['end']['isTouching'](_0x55db24['start']))&&_0x571b29['add'](_0x5adc11);}return _0x571b29;}(_0x19e532,_0x561103),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x7bd84a=ts(Array['from'](this['_selectedSuggestions']));for(const _0xa20df6 of _0x7bd84a){const _0x469359=_0xa20df6['getRanges']();if(!this['editor']['model']['canEditAt'](_0x469359))return;}rs(this['editor']['model'],this['_command'],_0x7bd84a);}}class T extends/* #__PURE__ -- @preserve */
24
+ _0x116aef(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x23d7f4,_0x30425c){super(),this['id']=_0x30425c['id'],this['type']=_0x30425c['type'],this['subType']=_0x30425c['subType']||null,this['author']=_0x30425c['author'],this['creator']=_0x30425c['creator']||_0x30425c['author'],this['isExternal']=Boolean(_0x30425c['attributes']&&_0x30425c['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x30425c['originalSuggestionId']||null,this['_model']=_0x23d7f4,this['_onAccept']=_0x30425c['onAccept'],this['_onDiscard']=_0x30425c['onDiscard'],this['_onAttributesChange']=_0x30425c['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x30425c['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 _0x1265d2=this;for(;_0x1265d2['previous'];)_0x1265d2=_0x1265d2['previous'];return _0x1265d2;}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'](_0x253287){this['_markerNames']['add'](_0x253287);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x267aaa=>this['_model']['markers']['get'](_0x267aaa))['filter'](_0x69129b=>_0x69129b);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x24f18c=>{for(const _0x3ea483 of this['getMarkers']())_0x24f18c['removeMarker'](_0x3ea483);}),this['_markerNames']['clear']();}['removeMarker'](_0x452012){this['_model']['change'](_0x36a9fd=>{_0x36a9fd['removeMarker'](_0x452012);}),this['_markerNames']['delete'](_0x452012);}['addRange'](_0xae43fc){const _0x39ccd0='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x39ccd0),this['_model']['change'](_0x52a861=>{_0x52a861['addMarker'](_0x39ccd0,{'range':_0xae43fc,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x31ebcd){for(const _0x507dff of this['getRanges']())if(_0x507dff['isIntersecting'](_0x31ebcd))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5a94c1=>_0x5a94c1['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x203908,_0x3550bb)=>[..._0x203908,..._0x3550bb['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x355be1=this['getRanges']();if(0x1!=_0x355be1['length'])return null;const _0x5d5010=_0x355be1[0x0],_0x35e206=_0x5d5010['start']['nodeAfter'],_0x42f149=_0x5d5010['end']['nodeBefore'];return _0x35e206 instanceof _0x233c1f?_0x35e206!=_0x42f149?null:_0x35e206: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 _0x2d049d=[];let _0x2cb24e=this['head'];for(;_0x2cb24e;)_0x2d049d['push'](_0x2cb24e),_0x2cb24e=_0x2cb24e['next'];return _0x2d049d;}['setAttribute'](_0x17d0e0,_0x44eb3c){const _0x380588=_0xe196f8(this['attributes']);_0x36d730(_0x380588,_0x17d0e0,_0x44eb3c),_0x3c1cf0(_0x380588,this['attributes'])||(this['attributes']=_0x380588,this['_onAttributesChange'](_0x380588));}['removeAttribute'](_0x4c8016){const _0x3c4846=_0xe196f8(this['attributes']);_0x2a3046(_0x3c4846,_0x4c8016),_0x3c1cf0(_0x3c4846,this['attributes'])||(this['attributes']=_0x3c4846,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 _0x1fe55e()['substr'](0x1,0x5);}}function o(_0x45638e,_0x13d42e,_0x4aa3d1){const _0x5552a2=_0x45638e['t'],t=_0x45638e['t'];switch(_0x13d42e){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',_0x4aa3d1);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4aa3d1);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4aa3d1);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4aa3d1);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4aa3d1);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',_0x4aa3d1);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4aa3d1);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',_0x4aa3d1);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4aa3d1);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4aa3d1);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4aa3d1);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4aa3d1);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4aa3d1);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4aa3d1);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4aa3d1);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4aa3d1);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4aa3d1);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4aa3d1);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4aa3d1);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4aa3d1);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4aa3d1);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4aa3d1);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4aa3d1);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4aa3d1);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x4aa3d1);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'},_0x4aa3d1);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x4aa3d1);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x4aa3d1);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4aa3d1);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4aa3d1);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4aa3d1);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4aa3d1);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4aa3d1);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'},_0x4aa3d1);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4aa3d1);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4aa3d1);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4aa3d1);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4aa3d1);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x4aa3d1);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4aa3d1);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'},_0x4aa3d1);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x4aa3d1);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4aa3d1);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'},_0x4aa3d1);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4aa3d1);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'},_0x4aa3d1);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4aa3d1);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4aa3d1);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'},_0x4aa3d1);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4aa3d1);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 _0x5552a2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4aa3d1);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5552a2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4aa3d1);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4aa3d1);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'},_0x4aa3d1);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'},_0x4aa3d1);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'},_0x4aa3d1);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x13d42e;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x568141,_0x1a4d4c){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x568141,this['_locale']=_0x1a4d4c;}['getDescriptions'](_0x422a77){const _0x509a83=[],_0xe0a74c=new Set(),_0x55bcf2=new Set();for(let _0x1e5d44=0x0;_0x1e5d44<_0x422a77['length'];_0x1e5d44++){const _0x50225f=_0x422a77[_0x1e5d44];if(!_0x50225f['isInContent'])continue;const _0x141c98=this['_handleCustomCallbackDescription'](_0x50225f);if(_0x141c98){if(null!=_0x50225f['subType']){if(_0xe0a74c['has'](_0x50225f['subType']))continue;_0xe0a74c['add'](_0x50225f['subType']);}_0x509a83['push'](_0x141c98);}else{if('attribute'==_0x50225f['type']){const _0x52a503=_0x50225f['data']['key'];if(_0x55bcf2['has'](_0x52a503))continue;_0x55bcf2['add'](_0x50225f['data']['key']),_0x52a503==m?this['_handleRenameSuggestionDescription'](_0x509a83,_0x50225f):this['_handleAttributeSuggestionDescription'](_0x509a83,_0x50225f);continue;}'insertion'!=_0x50225f['type']&&'deletion'!=_0x50225f['type']||this['_handleInsertRemoveSuggestionDescription'](_0x509a83,_0x50225f,_0x422a77[_0x1e5d44+0x1]);}}return this['_resolveDescriptionItems'](_0x509a83);}['registerDescriptionCallback'](_0x4b851e){this['_customCallbacks']['push'](_0x4b851e);}['registerElementLabel'](_0x2dfef3,_0x5162a9,_0x4f3fc6=_0x4a4dfb['normal']){'function'==typeof _0x2dfef3?_0x933f96(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2dfef3,'label':_0x5162a9,'priority':_0x4f3fc6}):this['_itemLabels']['set'](_0x2dfef3,_0x5162a9);}['registerAttributeLabel'](_0x593c9d,_0x59aa0b){this['_attributeLabels']['set'](_0x593c9d,_0x59aa0b);}['getItemLabel'](_0x580049,_0x191b34=0x1){let _0x130fd8;for(const _0x34c54f of this['_itemLabelsCallbacks'])if(_0x34c54f['matchingCallback'](_0x580049)){_0x130fd8=_0x34c54f['label'];break;}return _0x130fd8||(_0x130fd8=this['_itemLabels']['get'](_0x580049['name'])),_0x130fd8?_0x130fd8(_0x191b34):0x1!==_0x191b34?_0x191b34+'\x20'+_0x580049['name']+'s':''+_0x580049['name'];}['_addDescriptionItems'](_0x1b76c8,_0x378d4c){const _0x3f574b=_0x378d4c['getFirstRange']()['getWalker'](),_0x2a65a9='insertion'==_0x378d4c['type']?'add':'remove';for(const _0xd0969b of _0x3f574b){const _0x223daf=_0xd0969b['item'],_0x346846=_0x1b76c8[_0x1b76c8['length']-0x1];if(_0x223daf['is']('$textProxy'))_0x346846&&_0x346846['type']['indexOf']('Container')>-0x1&&_0x1b76c8['pop'](),_0x346846&&'text'==_0x346846['type']?_0x346846[_0x2a65a9]+=_0x223daf['data']:_0x1b76c8['push']({'type':'text','add':'add'==_0x2a65a9?_0x223daf['data']:'','remove':'remove'==_0x2a65a9?_0x223daf['data']:''});else{if(this['_schema']['isObject'](_0x223daf)){const _0x282680=_0x223daf;if(_0x346846&&_0x346846['type']['indexOf']('Container')>-0x1&&_0x1b76c8['pop'](),'elementEnd'==_0xd0969b['type'])continue;_0x346846&&_0x346846['type']==_0x2a65a9+'Object'&&_0x346846['element']['name']==_0x282680['name']?_0x346846['quantity']++:_0x1b76c8['push']({'type':_0x2a65a9+'Object','element':_0x282680,'quantity':0x1}),_0x3f574b['skip'](_0x57dd62=>!('elementEnd'==_0x57dd62['type']&&_0x57dd62['item']==_0x223daf));}else{if(this['_schema']['checkChild'](_0x223daf,'$text')||_0x223daf['is']('element','softBreak')){const _0x1029d2=_0x223daf;if('add'==_0x2a65a9&&'elementStart'==_0xd0969b['type']||'remove'==_0x2a65a9&&'elementEnd'==_0xd0969b['type'])continue;if(_0x346846&&-0x1==_0x346846['type']['indexOf']('Container')){'text'==_0x346846['type']&&(_0x346846[_0x2a65a9]+='\x0a');continue;}let _0x433064;if(_0x433064='add'==_0x2a65a9?_0x1029d2['nextSibling']&&!this['_schema']['isObject'](_0x1029d2['nextSibling'])?_0x1029d2['nextSibling']:null:_0x1029d2['previousSibling']&&!this['_schema']['isObject'](_0x1029d2['previousSibling'])?_0x1029d2['previousSibling']:null,_0x1029d2['isEmpty']||_0x433064&&_0x433064['isEmpty']){const _0x3da859=_0x433064&&_0x433064['isEmpty']?_0x433064:_0x1029d2;_0x346846&&_0x346846['type']==_0x2a65a9+'EmptyContainer'&&_0x346846['element']['name']==_0x3da859['name']?_0x346846['quantity']++:_0x1b76c8['push']({'type':_0x2a65a9+'EmptyContainer','element':_0x3da859,'quantity':0x1});}else _0x1b76c8['push']({'type':_0x2a65a9+'Container','element':_0x1029d2});}}}}}['_resolveDescriptionItems'](_0x15d559){const _0x49ee38=this['_locale'],_0x81f2d1=[],_0x583bef=[],_0x1bf866=[];for(const _0x296ade of _0x15d559)switch(_0x296ade['type']){case'text':if(_0x296ade['add']=_0x296ade['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x296ade['remove']=_0x296ade['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x296ade['add']&&''!=_0x296ade['remove']){_0x81f2d1['push']({'type':'replace','content':o(_0x49ee38,'REPLACE_TEXT',['\x22'+_0x296ade['remove']+'\x22','\x22'+_0x296ade['add']+'\x22'])});continue;}if(null!=_0x296ade['add']['match'](/^ +$/)){_0x81f2d1['push']({'type':'insertion','content':o(_0x49ee38,'*Insert:*\x20%0',o(_0x49ee38,'ELEMENT_SPACE',_0x296ade['add']['length']))});continue;}if(null!=_0x296ade['remove']['match'](/^ +$/)){_0x81f2d1['push']({'type':'deletion','content':o(_0x49ee38,'*Remove:*\x20%0',o(_0x49ee38,'ELEMENT_SPACE',_0x296ade['remove']['length']))});continue;}if(''!=_0x296ade['add']){_0x81f2d1['push']({'type':'insertion','content':o(_0x49ee38,'*Insert:*\x20%0','\x22'+_0x296ade['add']+'\x22')});continue;}_0x81f2d1['push']({'type':'deletion','content':o(_0x49ee38,'*Remove:*\x20%0','\x22'+_0x296ade['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x81f2d1['push']({'type':'insertion','content':o(_0x49ee38,'*Insert:*\x20%0',this['getItemLabel'](_0x296ade['element'],_0x296ade['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x81f2d1['push']({'type':'deletion','content':o(_0x49ee38,'*Remove:*\x20%0',this['getItemLabel'](_0x296ade['element'],_0x296ade['quantity']))});continue;case'addContainer':_0x81f2d1['push']({'type':'insertion','content':o(_0x49ee38,'*Split:*\x20%0',this['getItemLabel'](_0x296ade['element'],_0x296ade['quantity']))});continue;case'removeContainer':_0x81f2d1['push']({'type':'deletion','content':o(_0x49ee38,'*Merge:*\x20%0',this['getItemLabel'](_0x296ade['element'],_0x296ade['quantity']))});continue;case'addFormat':_0x583bef['push'](_0x296ade['key']);continue;case'removeFormat':_0x1bf866['push'](_0x296ade['key']);continue;default:_0x81f2d1['push'](_0x296ade);}if(_0x583bef['length']){const _0x5d8047=_0x583bef['map'](_0x39ea85=>this['_attributeLabels']['has'](_0x39ea85)?this['_attributeLabels']['get'](_0x39ea85):_0x39ea85)['join'](',\x20');_0x81f2d1['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x5d8047)});}if(_0x1bf866['length']){const _0x4fb37a=_0x1bf866['map'](_0x56653b=>this['_attributeLabels']['has'](_0x56653b)?this['_attributeLabels']['get'](_0x56653b):_0x56653b)['join'](',\x20');_0x81f2d1['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4fb37a)});}return _0x81f2d1;}['_handleCustomCallbackDescription'](_0x4bbc21){for(const _0x6e39e4 of this['_customCallbacks']){const _0xdad8b7=_0x6e39e4(_0x4bbc21);if(_0xdad8b7&&'type'in _0xdad8b7)return _0xdad8b7;}}['_handleAttributeSuggestionDescription'](_0x4ac211,_0xb8245d){const _0x4e7302=_0xb8245d['data'],_0x4c738c=void 0x0===_0x4e7302['newValue']?'removeFormat':'addFormat';_0x4ac211['push']({'type':_0x4c738c,'key':_0x4e7302['key']});}['_handleRenameSuggestionDescription'](_0x5ebdb2,_0x1e4c6c){_0x5ebdb2['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1e4c6c['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x36ed87,_0x86d34d,_0x128e3f){if(this['_addDescriptionItems'](_0x36ed87,_0x86d34d),_0x128e3f&&_0x128e3f['getFirstRange']()&&!_0x86d34d['getFirstRange']()['end']['isEqual'](_0x128e3f['getFirstRange']()['start'])){const _0x5da828=_0x36ed87[_0x36ed87['length']-0x1],_0x10d72d='insertion'==_0x86d34d['type']?'add':'remove';_0x5da828&&'text'==_0x5da828['type']&&(_0x5da828[_0x10d72d]+='\x0a');}}}class O extends _0x17823b{['afterInit'](){const _0x382350=this['editor'],_0x2eb8db=_0x382350['plugins']['get']('TrackChangesEditing');_0x382350['commands']['get']('showAIAssistant')&&_0x2eb8db['enableCommand']('showAIAssistant');}}class E extends _0x17823b{['afterInit'](){const _0x1414b1=this['editor'],_0x4f1741=_0x1414b1['locale'];if(!_0x1414b1['plugins']['has']('AlignmentEditing'))return;const _0x296368=_0x1414b1['plugins']['get']('TrackChangesEditing');_0x296368['enableDefaultAttributesIntegration']('alignment'),_0x296368['registerBlockAttribute']('alignment'),_0x296368['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4f1741,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11a5b7=this['editor'],_0x874e03=_0x11a5b7['locale'];_0x11a5b7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4af008=>{if('formatBlock'!=_0x4af008['type'])return;const {data:_0x262ea6}=_0x4af008;if(_0x262ea6&&'alignment'==_0x262ea6['commandName']){const _0x2c9dbf=_0x262ea6['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x874e03,'*Format:*\x20%0',function(_0x6546a2){switch(_0x6546a2){case'left':return o(_0x874e03,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x874e03,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x874e03,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x874e03,'FORMAT_JUSTIFY_TEXT');}}(_0x2c9dbf))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x17823b{['afterInit'](){const _0x559cf1=this['editor'],_0x42656e=_0x559cf1['plugins']['get']('TrackChangesEditing'),_0x59695e=_0x559cf1['locale'];for(const _0x308146 of ti){if(!_0x559cf1['plugins']['has'](_0x308146))continue;const _0x82bcc9=_0x308146['slice'](0x0,-0x7)['toLowerCase'](),_0x198fc9='FORMAT_'+_0x82bcc9['toUpperCase']();_0x42656e['enableDefaultAttributesIntegration'](_0x82bcc9),_0x42656e['registerInlineAttribute'](_0x82bcc9),_0x42656e['descriptionFactory']['registerAttributeLabel'](_0x82bcc9,o(_0x59695e,_0x198fc9));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5099ee=this['editor'],_0x5c80d9=_0x5099ee['locale'],_0x4698f0=_0x5099ee['plugins']['get']('TrackChangesEditing');function _0x50fc55(_0x4577a9,_0x4c4606){_0x4698f0['descriptionFactory']['registerDescriptionCallback'](_0x51dd16=>{if('formatInline'!=_0x51dd16['type'])return;const {data:_0x499114}=_0x51dd16;return _0x499114&&_0x499114['commandName']===_0x4577a9?_0x499114['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5c80d9,'*Format:*\x20%0',_0x4c4606)}:{'type':'format','content':o(_0x5c80d9,'*Remove\x20format:*\x20%0',_0x4c4606)}:void 0x0;});}_0x50fc55('bold',o(_0x5c80d9,'FORMAT_BOLD')),_0x50fc55('italic',o(_0x5c80d9,'FORMAT_ITALIC')),_0x50fc55('underline',o(_0x5c80d9,'FORMAT_UNDERLINE')),_0x50fc55('code',o(_0x5c80d9,'FORMAT_CODE')),_0x50fc55('strikethrough',o(_0x5c80d9,'FORMAT_STRIKETHROUGH')),_0x50fc55('subscript',o(_0x5c80d9,'FORMAT_SUBSCRIPT')),_0x50fc55('superscript',o(_0x5c80d9,'FORMAT_SUPERSCRIPT'));}}class U extends _0x17823b{['afterInit'](){const _0x5a1a9b=this['editor'],_0x401c52=_0x5a1a9b['locale'];if(!_0x5a1a9b['plugins']['has']('BlockQuoteEditing'))return;const _0x2163e9=_0x5a1a9b['plugins']['get']('TrackChangesEditing'),_0x4d6a6f=this['editor']['commands']['get']('blockQuote');_0x2163e9['enableCommand']('blockQuote',(_0x1d5160,_0x5059b4={})=>{const _0x6909f4=this['editor']['model']['document']['selection'],_0x55180a=_0x5059b4&&void 0x0!==_0x5059b4['forceValue']?_0x5059b4['forceValue']:!_0x4d6a6f['value'];let _0x245943=[];if(_0x55180a){const _0x12a307=Array['from'](_0x6909f4['getSelectedBlocks']())['filter'](_0x4e2e64=>oo(_0x4e2e64)||function(_0x585905,_0x121248){const _0x1219f9=_0x121248['checkChild'](_0x585905['parent'],'blockQuote'),_0x2327c6=_0x121248['checkChild'](['$root','blockQuote'],_0x585905);return _0x1219f9&&_0x2327c6;}(_0x4e2e64,this['editor']['model']['schema']));_0x245943=to(_0x12a307,_0x5a1a9b['model']);}else{const _0x4cc895=Array['from'](_0x6909f4['getSelectedBlocks']())['filter'](_0x370564=>oo(_0x370564));_0x245943=to(_0x4cc895,_0x5a1a9b['model']);}_0x5a1a9b['model']['change'](()=>{for(const _0x3f1a6b of _0x245943)_0x2163e9['markBlockFormat'](_0x3f1a6b,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x55180a}]});});}),_0x2163e9['descriptionFactory']['registerDescriptionCallback'](_0x113bb3=>{const {data:_0x261209}=_0x113bb3;if(_0x261209&&'blockQuote'==_0x261209['commandName']){const _0x5d95e2=o(_0x401c52,'ELEMENT_BLOCK_QUOTE');return _0x261209['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x401c52,'*Set\x20format:*\x20%0',_0x5d95e2)}:{'type':'format','content':o(_0x401c52,'*Remove\x20format:*\x20%0',_0x5d95e2)};}});}}function oo(_0xf23e86){return'blockQuote'==_0xf23e86['parent']['name'];}class V extends _0x17823b{['afterInit'](){const _0x8561c5=this['editor'],_0x21395d=_0x8561c5['locale'],_0x1e0712=_0x8561c5['plugins']['get']('TrackChangesEditing');_0x8561c5['plugins']['has']('BookmarkEditing')&&(_0x1e0712['enableCommand']('insertBookmark'),_0x1e0712['enableDefaultAttributesIntegration']('updateBookmark'),_0x1e0712['registerBlockAttribute']('bookmarkId'),_0x1e0712['descriptionFactory']['registerDescriptionCallback'](_0x1da1a7=>{if('insertion'!=_0x1da1a7['type']&&'deletion'!=_0x1da1a7['type']&&'attribute'!=_0x1da1a7['type'])return;const _0x4abb5c=_0x1da1a7['getContainedElement']();if(null==_0x4abb5c)return;if(!_0x4abb5c['is']('element','bookmark'))return;const _0x137781=_0x4abb5c['getAttribute']('bookmarkId');if('insertion'==_0x1da1a7['type'])return{'type':'insertion','content':o(_0x21395d,'*Insert:*\x20%0','\x22'+_0x137781+'\x22\x20'+o(_0x21395d,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1da1a7['type'])return{'type':'deletion','content':o(_0x21395d,'*Remove:*\x20%0','\x22'+_0x137781+'\x22\x20'+o(_0x21395d,'ELEMENT_BOOKMARK'))};const {data:_0x5736c8}=_0x1da1a7;if(!_0x5736c8||'bookmarkId'!=_0x5736c8['key'])return;return{'type':'format','content':o(_0x21395d,'*Set\x20bookmark:*\x20%0','\x22'+_0x5736c8['newValue']+'\x22')};}));}}class F extends _0x17823b{['afterInit'](){const _0x274e7c=this['editor'];_0x274e7c['plugins']['has']('CaseChange')&&(_0x274e7c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x274e7c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x274e7c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x17823b{['afterInit'](){const _0x3faa13=this['editor'];_0x3faa13['commands']['get']('ckbox')&&_0x3faa13['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x17823b{['afterInit'](){const _0x1bbc25=this['editor'];if(!_0x1bbc25['plugins']['has']('CodeBlock'))return;const _0x449670=_0x1bbc25['plugins']['get']('TrackChangesEditing'),_0x44c8a1=_0x1bbc25['locale'],_0x54ef5a=_0x1bbc25['config']['get']('codeBlock')['languages'],_0x16cd11=_0x1bbc25['commands']['get']('codeBlock');_0x449670['enableCommand']('indentCodeBlock'),_0x449670['enableCommand']('outdentCodeBlock'),_0x449670['enableCommand']('codeBlock',(_0x193b50,_0x454187={})=>{const _0x273d1a=_0x1bbc25['model'],_0x4bf8ad=_0x1bbc25['model']['document']['selection'],_0x5d3e81=_0x454187&&void 0x0!==_0x454187['forceValue']?_0x454187['forceValue']:!_0x16cd11['value'];let _0x2d5184;_0x454187['language']||(_0x454187['language']=_0x54ef5a[0x0]['language']),_0x2d5184=_0x5d3e81?Array['from'](_0x4bf8ad['getSelectedBlocks']())['filter'](_0x17bb31=>co(_0x17bb31)||function(_0x1fa752,_0x296c52){if(_0x1fa752['is']('rootElement')||_0x296c52['isLimit'](_0x1fa752))return!0x1;return _0x296c52['checkChild'](_0x1fa752['parent'],'codeBlock');}(_0x17bb31,_0x273d1a['schema'])):Array['from'](_0x4bf8ad['getSelectedBlocks']())['filter'](_0x17f405=>co(_0x17f405));const _0x158e52=to(_0x2d5184,_0x273d1a);_0x273d1a['change'](()=>{for(const _0x404408 of _0x158e52)_0x449670['markBlockFormat'](_0x404408,{'commandName':'codeBlock','commandParams':[{..._0x454187,'forceValue':_0x5d3e81}],'formatGroupId':'blockName'});});}),(_0x449670['descriptionFactory']['registerElementLabel']('codeBlock',_0x5eb5d6=>o(_0x44c8a1,'ELEMENT_CODE_BLOCK',_0x5eb5d6)),_0x449670['descriptionFactory']['registerDescriptionCallback'](_0x1bd006=>{if('formatBlock'!=_0x1bd006['type'])return;const _0x19eb3f=_0x44c8a1['t'],{data:_0x46cb7a}=_0x1bd006;if(!_0x46cb7a||'codeBlock'!=_0x46cb7a['commandName'])return;const _0xd0a8ab=_0x46cb7a['commandParams'][0x0]['language'],_0x594d3f=_0x19eb3f(_0x54ef5a['find'](_0x520f30=>_0x520f30['language']===_0xd0a8ab)['label'])['toLowerCase']();return _0x46cb7a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x44c8a1,'*Set\x20format:*\x20%0',o(_0x44c8a1,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x594d3f+')')}:{'type':'format','content':o(_0x44c8a1,'*Remove\x20format:*\x20%0',o(_0x44c8a1,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x508011){return'codeBlock'==_0x508011['name'];}class J extends _0x17823b{['afterInit'](){const _0x39620c=this['editor'];if(!_0x39620c['plugins']['has']('CommentsEditing'))return;_0x39620c['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x245f28,_0x194559,_0x4b3d10){const _0x397689=[];for(const _0x222715 of _0x194559['getItems']())_0x222715['hasAttribute'](_0x245f28)&&_0x397689['push'](_0x4b3d10['createRangeOn'](_0x222715));return _0x397689;}function De(_0x5c8357,_0x401497,{showActiveMarker:_0x2cbb29=!0x0}={}){const _0x33d9cd=_0x5c8357['plugins']['get']('TrackChangesEditing');return(_0x1099d4,_0x4bd0de,_0x5185fc)=>{if(!_0x5185fc['consumable']['test'](_0x4bd0de['markerRange'],_0x1099d4['name']))return;const _0xac491f=_0x4bd0de['markerRange']['getWalker'](),_0x254c23=_0x4bd0de['markerRange']['start'],_0x468851=_0x5c8357['model']['schema'];let _0x2408af=null,_0x49ee8b=null,_0x3ca336=!0x1,_0x23d034=!0x1;for(const _0x1148d3 of _0xac491f){const _0x44e2c1=_0x1148d3['item'];_0x3ca336=_0x3ca336||_0x468851['isContent'](_0x44e2c1);const _0x59e846=_0x5185fc['mapper']['toViewElement'](_0x44e2c1);if(_0x59e846&&_0x59e846['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1148d3['type']&&(_0x468851['isBlock'](_0x44e2c1)&&!_0x468851['isLimit'](_0x44e2c1)&&(_0x44e2c1['nextSibling']||_0x254c23['isAtEnd']?_0x2408af&&_0x2408af['parent']==_0x44e2c1||(_0x2408af=_0x44e2c1,_0x1c1a5a(_0x1148d3['previousPosition']),_0x23d034=!0x0):_0x49ee8b=_0x49ee8b||_0x1148d3['previousPosition']));}function _0x1c1a5a(_0x56abea){const {id:_0x2521ee,authorId:_0xe82451}=_0x33d9cd['_splitMarkerName'](_0x4bd0de['markerName']),_0x1f5388=_0x5185fc['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x401497,'data-suggestion':_0x2521ee,'data-author-id':_0xe82451}),_0x18136c=_0x5185fc['mapper']['toViewPosition'](_0x56abea);_0x2cbb29&&_0x33d9cd['activeMarkers']['includes'](_0x4bd0de['markerName'])&&_0x5185fc['writer']['addClass']('ck-suggestion-marker--active',_0x1f5388),_0x5185fc['writer']['insert'](_0x18136c,_0x1f5388),_0x5185fc['mapper']['bindElementToMarker'](_0x1f5388,_0x4bd0de['markerName']);}_0x3ca336||_0x23d034||!_0x49ee8b||_0x1c1a5a(_0x49ee8b);};}class K extends _0x17823b{static get['requires'](){return[_0x2a8ebe];}['init'](){const _0x1f7d3f=this['editor'],_0x147f88=_0x1f7d3f['plugins']['get']('TrackChangesEditing');_0x147f88['enableCommand']('delete');const _0x403747=_0x1f7d3f['commands']['get']('deleteForward');_0x147f88['enableCommand']('deleteForward',(_0xba41f8,_0x3b0476={})=>{const _0x43facf=_0x1f7d3f['model']['createSelection'](_0x1f7d3f['model']['document']['selection']);_0x43facf['isCollapsed']&&_0x1f7d3f['model']['modifySelection'](_0x43facf,{'direction':'forward','unit':_0x3b0476['unit']});const _0x2b1c2f=_0x43facf['getFirstRange'](),_0x10acfa=_0x5e8c26['fromRange'](_0x2b1c2f);let _0x1d746f;_0xba41f8(_0x3b0476),_0x1d746f='$graveyard'==_0x10acfa['root']['rootName']?_0x1f7d3f['model']['createRange'](_0x2b1c2f['start']):_0x1f7d3f['model']['createRange'](_0x10acfa['start'],_0x10acfa['end']),_0x10acfa['detach'](),_0x1f7d3f['model']['enqueueChange'](_0x403747['buffer']['batch'],_0xd30507=>{_0x403747['buffer']['lock'](),_0xd30507['setSelection'](_0xd30507['createRange'](_0x1d746f['end'])),_0x403747['buffer']['unlock']();});}),_0x1f7d3f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x1f7d3f,'merge'),{'priority':'high'}),_0x1f7d3f['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x380249,_0x30fcdb,_0x10f43f)=>{_0x10f43f['options']['showSuggestionHighlights']&&De(_0x1f7d3f,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x380249,_0x30fcdb,_0x10f43f);},{'priority':'high'}),_0x1f7d3f['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0xde5957,_0x517146,_0x266323)=>{const _0x2fc9bc=_0x266323['mapper']['markerNameToElements'](_0x517146['markerName']);if(_0x2fc9bc){for(const _0x48bae9 of _0x2fc9bc)_0x48bae9['is']('uiElement')&&(_0x266323['mapper']['unbindElementFromMarkerName'](_0x48bae9,_0x517146['markerName']),_0x266323['writer']['remove'](_0x48bae9));}},{'priority':'high'});}}class H extends _0x17823b{['afterInit'](){const _0x566a1c=this['editor'];if(!_0x566a1c['plugins']['has']('ListEditing'))return;const _0x388955=_0x566a1c['locale'],_0x495f58=_0x566a1c['plugins']['get']('TrackChangesEditing'),_0x55f477=_0x566a1c['plugins']['has']('TodoListEditing'),_0x4e1525=!!_0x566a1c['config']['get']('list.multiBlock');function _0x2a599b(_0x2570fd){return{'type':'format','content':''+o(_0x388955,'*Set\x20format:*\x20%0',_0x2570fd)};}function _0x2fd776(_0x1e8a6c){return{'type':'format','content':''+o(_0x388955,'*Remove\x20format:*\x20%0',_0x1e8a6c)};}_0x495f58['enableDefaultAttributesIntegration']('numberedList'),_0x495f58['enableDefaultAttributesIntegration']('bulletedList'),_0x495f58['enableDefaultAttributesIntegration']('customNumberedList'),_0x495f58['enableDefaultAttributesIntegration']('customBulletedList'),_0x495f58['enableDefaultAttributesIntegration']('indentList'),_0x495f58['enableDefaultAttributesIntegration']('outdentList'),_0x495f58['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x495f58['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x495f58['registerBlockAttribute']('listItemId'),_0x495f58['registerBlockAttribute']('listType'),_0x495f58['registerBlockAttribute']('listIndent'),_0x4e1525&&(_0x495f58['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x495f58['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x55f477&&(_0x495f58['enableDefaultAttributesIntegration']('todoList'),_0x495f58['enableDefaultAttributesIntegration']('checkTodoList'),_0x495f58['registerBlockAttribute']('todoListChecked'),_0x495f58['descriptionFactory']['registerDescriptionCallback'](_0x17fa0e=>{const {data:_0x489c29}=_0x17fa0e;if(_0x489c29&&'todoListChecked'==_0x489c29['key'])return{'type':'format','content':_0x489c29['newValue']?o(_0x388955,'*Check\x20item*'):o(_0x388955,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x164184=>{if(_0x164184['batch']['isUndo'])return!0x1;let _0x2e7427=!0x1;const _0x276ae5=_0x495f58['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3788a3=>'todoListChecked'===_0x495f58['_getAttributeKey'](_0x3788a3));for(const _0x4ab9a7 of _0x276ae5){'todo'!=_0x4ab9a7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x495f58['_findSuggestions'](_0x4ab9a7['getFirstRange'](),'attribute')['find'](_0x14270c=>'listType'===_0x495f58['_getAttributeKey'](_0x14270c['suggestion']))||(_0x164184['removeMarker'](_0x4ab9a7['getFirstMarker']()),_0x2e7427=!0x0));}return _0x2e7427;})),_0x495f58['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x388955,'FORMAT_INDENT'));const _0xef5b27={'type':'format','content':''};_0x495f58['descriptionFactory']['registerDescriptionCallback'](_0x290b94=>{const {data:_0xa72d49}=_0x290b94;if(!_0xa72d49||'listType'!=_0xa72d49['key'])return;let _0x234e69=_0x290b94['head'];for(;_0x234e69;){if(_0x234e69['data']&&(('listStyle'==_0x234e69['data']['key']||'listMarkerStyle'==_0x234e69['data']['key'])&&(_0x234e69['data']['newValue']&&'default'!=_0x234e69['data']['newValue']||'default'!=_0x234e69['data']['oldValue']&&!_0xa72d49['newValue'])||!_0x4e1525&&_0x234e69['data']['key']==m))return _0xef5b27;_0x234e69=_0x234e69['next'];}if(null==_0xa72d49['newValue'])switch(_0xa72d49['oldValue']){case'bulleted':return _0x2fd776(o(_0x388955,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2fd776(o(_0x388955,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2fd776(o(_0x388955,'ELEMENT_TODO_LIST'));}switch(_0xa72d49['newValue']){case'bulleted':return _0x2a599b(o(_0x388955,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2a599b(o(_0x388955,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2a599b(o(_0x388955,'ELEMENT_TODO_LIST'));}}),_0x495f58['descriptionFactory']['registerDescriptionCallback'](_0x2ec6b8=>{const {data:_0xecf59}=_0x2ec6b8;if(_0xecf59&&'listIndent'==_0xecf59['key'])return null==_0xecf59['newValue']||null==_0xecf59['oldValue']&&0x0==_0xecf59['newValue']?_0xef5b27:void 0x0;}),_0x495f58['descriptionFactory']['registerDescriptionCallback'](_0x4d9316=>{if('attribute'!=_0x4d9316['type'])return;const {data:_0x570119}=_0x4d9316;if(!_0x570119||'listItemId'!=_0x570119['key'])return;const _0xb494a9=Te(_0x4d9316);return'newValue'==_0xb494a9?{'type':'format','content':o(_0x388955,'*Merge:*\x20list\x20item')}:'oldValue'==_0xb494a9?{'type':'format','content':o(_0x388955,'*Split:*\x20list\x20item')}:_0xef5b27;}),_0x566a1c['model']['document']['registerPostFixer'](_0x1bd946=>this['listItemIdFixer'](_0x1bd946)),_0x566a1c['model']['document']['registerPostFixer'](_0x258533=>this['noTrackChangesFixer'](_0x258533)),_0x566a1c['model']['document']['on']('change:data',(_0x41016a,_0x181f00)=>{if(_0x181f00['isUndo']||!_0x181f00['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x45e22f){if(_0x45e22f['batch']['isUndo']||!_0x45e22f['batch']['isLocal'])return!0x1;let _0x2c75dc=!0x1;const _0xcd30c6=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3fead4=>_0x3fead4['data']&&'listItemId'==_0x3fead4['data']['key'])['filter'](_0x23ccb0=>_0x23ccb0['data']['newValue']&&_0x23ccb0['data']['oldValue']);for(const _0x2089f8 of _0xcd30c6)Te(_0x2089f8)||(_0x45e22f['removeMarker'](_0x2089f8['getFirstMarker']()),_0x2c75dc=!0x0);return _0x2c75dc;}['noTrackChangesFixer'](_0x511e1e){if(_0x511e1e['batch']['isUndo']||!_0x511e1e['batch']['isLocal'])return!0x1;const _0x4a919f=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4a919f['trackChangesCommand']['value'])return!0x1;let _0x292e91=!0x1;const _0x5b63dd=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x217bf4=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x53682b=>'attribute'==_0x53682b['type'])['filter'](_0x131ddb=>_0x5b63dd['includes'](_0x131ddb['attributeKey']));if(0x0==_0x217bf4['length'])return _0x292e91;for(const _0x17c226 of _0x217bf4){const _0x5eb5a7=_0x4a919f['_findSuggestions'](_0x17c226['range'],'attribute')['filter'](_0xcd2fd1=>!_0xcd2fd1['meta']['isNextTo'])['map'](_0x1bbd15=>_0x1bbd15['suggestion'])['filter'](_0x21a285=>{const _0x2e9d80=_0x4a919f['_getAttributeKey'](_0x21a285);return _0x5b63dd['includes'](_0x2e9d80);});if(_0x5eb5a7['length']){for(const _0x9b5285 of _0x5eb5a7)_0x511e1e['removeMarker'](_0x9b5285['getFirstMarker']());_0x292e91=!0x0;}}return _0x292e91;}['assureChains'](){const _0x2f4276=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4196b2=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1a47ee;const _0x387b98=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x11e60e=>{if(_0x11e60e['data']['oldRange']||!_0x11e60e['data']['newRange'])return null;if(!_0x11e60e['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x53a4df}=_0x2f4276['_splitMarkerName'](_0x11e60e['name']);if(!_0x2f4276['hasSuggestion'](_0x53a4df))return null;const _0x438dcb=_0x2f4276['getSuggestion'](_0x53a4df);return _0x4196b2['includes'](_0x438dcb['data']['key']);})['map'](_0xc95ca=>{const {id:_0x21bb4f}=_0x2f4276['_splitMarkerName'](_0xc95ca['name']),_0x4533dd=_0x2f4276['getSuggestion'](_0x21bb4f);return _0x1a47ee=_0x4533dd['attributes']['groupId'],_0x4533dd['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x387b98['size'])return;const _0x291c4e=_0x2f4276['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3800f2=>'attribute'==_0x3800f2['type']&&_0x3800f2['data']&&_0x4196b2['includes'](_0x3800f2['data']['key'])&&_0x3800f2['attributes']['groupId']!=_0x1a47ee)['map'](_0x591b69=>({'listItem':_0x591b69['getFirstRange']()['start']['nodeAfter'],'groupId':_0x591b69['attributes']['groupId']})),_0x4bc65c=new Set();for(const {groupId:_0x4178e6,listItem:_0x13f7a3}of _0x291c4e)_0x387b98['has'](_0x13f7a3)&&_0x4bc65c['add'](_0x4178e6);for(const _0x50b108 of _0x2f4276['getSuggestions']())_0x4bc65c['has'](_0x50b108['attributes']['groupId'])&&_0x50b108['setAttribute']('groupId',_0x1a47ee);}['_supportLegacySuggestions'](){const _0x4cde58=this['editor'],_0x4705a3=_0x4cde58['locale'],_0x40eaa1=_0x4cde58['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x40eaa1['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x46694d,_0x328b3d){const _0x436794=[];for(let _0xb92800 of _0x46694d)_0xb92800['start']['nodeAfter']===_0xb92800['end']['parent']&&(_0xb92800=_0x4cde58['model']['createRange'](_0x4cde58['model']['createPositionAt'](_0xb92800['start']['nodeAfter'],0x0))),_0x436794['push'](_0xb92800);_0x4cde58['model']['change'](_0x582575=>{const _0x56f0df=_0x4cde58['model']['document']['selection'],_0xebb4d7=Array['from'](_0x56f0df['getRanges']())['map'](_0x15a31a=>_0x5e8c26['fromRange'](_0x15a31a));_0x582575['setSelection'](_0x436794),_0x4cde58['commands']['get'](_0x328b3d['commandName'])['refresh'](),_0x328b3d['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4cde58['execute'](_0x328b3d['commandName'],..._0x328b3d['commandParams']),_0x582575['setSelection'](_0xebb4d7);for(const _0x48bae1 of _0xebb4d7)_0x48bae1['detach']();});}),_0x40eaa1['descriptionFactory']['registerElementLabel'](function(_0x4e046d){const _0x4bedd0=!_0x4cde58['model']['schema']['isObject'](_0x4e046d),_0x404fd9=_0x4e046d['previousSibling'],_0x2da7b3=_0x4e046d['nextSibling'],_0x22ac8d=_0x4e046d['getAttribute']('listItemId'),_0x157478=!_0x404fd9||_0x404fd9['getAttribute']('listItemId')!==_0x22ac8d,_0x1e7cf4=!_0x2da7b3||_0x2da7b3['getAttribute']('listItemId')!==_0x22ac8d;return _0x4bedd0&&Boolean(_0x22ac8d)&&_0x157478&&_0x1e7cf4;},_0x385fbe=>o(_0x4705a3,'ELEMENT_LIST_ITEM',_0x385fbe));}['_registerLegacyDescription'](){const _0x551604=this['editor'],_0x34c6e7=_0x551604['locale'];function _0x349a00(_0x55f7d0){const _0x34db02=_0x551604['commands']['get']('bulletedList')['value'],_0xfc3b5=_0x551604['commands']['get']('numberedList')['value'];return'numberedList'===_0x55f7d0?_0x34db02:_0xfc3b5;}_0x551604['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xf24930){if('formatBlock'!=_0xf24930['type'])return;const {data:_0x14d702}=_0xf24930;if(!_0x14d702)return;let _0xbf4083,_0x3de34a,_0x23cecb,_0x200035;switch(_0x14d702['commandName']){case'bulletedList':_0x23cecb=_0x14d702['commandParams'][0x0]['forceValue'],_0x200035=_0x349a00(_0x14d702['commandName']),_0xbf4083=_0x23cecb?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x200035&&_0x551604['config']['get']('list.multiBlock')||(_0xbf4083='*Change\x20to:*\x20%0'),_0x3de34a={'type':'format','content':o(_0x34c6e7,_0xbf4083,o(_0x34c6e7,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x23cecb=_0x14d702['commandParams'][0x0]['forceValue'],_0x200035=_0x349a00(_0x14d702['commandName']),_0xbf4083=_0x23cecb?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x200035&&_0x551604['config']['get']('list.multiBlock')||(_0xbf4083='*Change\x20to:*\x20%0'),_0x3de34a={'type':'format','content':o(_0x34c6e7,_0xbf4083,o(_0x34c6e7,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xbf4083='*Indent:*\x20%0',_0x3de34a={'type':'format','content':o(_0x34c6e7,_0xbf4083,o(_0x34c6e7,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xbf4083=function(_0x435bdb){const _0x5689da=_0x435bdb['getFirstRange']();let _0x3c1f33=_0x5689da['start']['nodeAfter'];for(;_0x3c1f33&&_0x5689da['containsItem'](_0x3c1f33);){if(_0x3c1f33['getAttribute']('listIndent')>0x0)return!0x1;_0x3c1f33=_0x3c1f33['nextSibling'];}return!0x0;}(_0xf24930)?o(_0x34c6e7,'*Format:*\x20remove\x20from\x20%0',o(_0x34c6e7,function(_0x5a9b39){return'ELEMENT_'+_0x5a9b39['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xf24930))):o(_0x34c6e7,'*Outdent:*\x20%0',o(_0x34c6e7,'ELEMENT_LIST_ITEM')),_0x3de34a={'type':'format','content':_0xbf4083};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x14d702['multipleBlocks']&&(_0xbf4083='*Merge:*\x20%0',_0x3de34a={'type':'deletion','content':o(_0x34c6e7,_0xbf4083,o(_0x34c6e7,'ELEMENT_LIST_ITEM'))});}return _0x3de34a;});}}function Te(_0x4aa614){let _0x269845=_0x4aa614['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x269845;){const _0x3fdbee=_0x269845['getAttribute']('listItemId');if(!_0x3fdbee)return!0x1;if(_0x3fdbee==_0x4aa614['data']['newValue'])return'newValue';if(_0x3fdbee==_0x4aa614['data']['oldValue'])return'oldValue';_0x269845=_0x269845['previousSibling'];}return!0x1;}class q extends _0x17823b{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4727ec=this['editor']['config']['get']('list.properties'),_0x3f5936=this['editor']['plugins']['get']('TrackChangesEditing');_0x4727ec['styles']&&(_0x3f5936['enableDefaultAttributesIntegration']('listStyle'),_0x3f5936['registerBlockAttribute']('listStyle')),_0x4727ec['reversed']&&(_0x3f5936['enableDefaultAttributesIntegration']('listReversed'),_0x3f5936['registerBlockAttribute']('listReversed')),_0x4727ec['startIndex']&&(_0x3f5936['enableDefaultAttributesIntegration']('listStart'),_0x3f5936['registerBlockAttribute']('listStart'));const _0x36a1={'type':'format','content':''};_0x3f5936['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2c7ed8=this['editor']['locale'];_0x3f5936['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2c7ed8,'FORMAT_LIST_REVERSED')),_0x3f5936['descriptionFactory']['registerDescriptionCallback'](_0x2f0548=>{const {data:_0x215757}=_0x2f0548;if(_0x215757&&'listReversed'==_0x215757['key'])return null==_0x215757['newValue']||0x0==_0x215757['newValue']&&null==_0x215757['oldValue']?_0x36a1:void 0x0;}),_0x3f5936['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2c7ed8,'FORMAT_LIST_START')),_0x3f5936['descriptionFactory']['registerDescriptionCallback'](_0x163da8=>{const {data:_0x30a218}=_0x163da8;if(_0x30a218&&'listStart'==_0x30a218['key'])return null==_0x30a218['newValue']||0x1==_0x30a218['newValue']&&null==_0x30a218['oldValue']?_0x36a1:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2580ac=>{if(_0x2580ac['batch']['isUndo'])return!0x1;let _0x34c5c8=!0x1;const _0x219aa2=_0x3f5936['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x21eded=>{const _0x2aedcd=_0x3f5936['_getAttributeKey'](_0x21eded);return'listStart'==_0x2aedcd||'listReversed'==_0x2aedcd;});for(const _0x543ac1 of _0x219aa2){const _0x4e3865=_0x543ac1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4e3865||'customNumbered'==_0x4e3865)continue;_0x3f5936['_findSuggestions'](_0x543ac1['getFirstRange'](),'attribute')['find'](_0x3c760a=>'listType'==_0x3f5936['_getAttributeKey'](_0x3c760a['suggestion']))||(_0x2580ac['removeMarker'](_0x543ac1['getFirstMarker']()),_0x34c5c8=!0x0);}return _0x34c5c8;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x17a3e2){const _0x1d5a40=this['editor']['locale'],{data:_0x88c1cc}=_0x17a3e2,_0x36311a={'type':'format','content':''};if(!_0x88c1cc||'listStyle'!=_0x88c1cc['key'])return;if(!_0x88c1cc['oldValue'])return'default'==_0x88c1cc['newValue']?_0x36311a:{'type':'format','content':''+o(_0x1d5a40,'*Set\x20format:*\x20%0',o(_0x1d5a40,this['_getTranslationKeyForListStyle'](_0x88c1cc['newValue'])))};if(!_0x88c1cc['newValue']){if('default'==_0x88c1cc['oldValue'])return _0x36311a;let _0x34e5ba=_0x17a3e2['head'];for(;_0x34e5ba;){if(_0x34e5ba['data']&&'listType'==_0x34e5ba['data']['key']&&_0x34e5ba['data']['newValue'])return _0x36311a;_0x34e5ba=_0x34e5ba['next'];}return{'type':'format','content':''+o(_0x1d5a40,'*Remove\x20format:*\x20%0',o(_0x1d5a40,this['_getTranslationKeyForListStyle'](_0x88c1cc['oldValue'])))};}if('default'!=_0x88c1cc['newValue'])return{'type':'format','content':''+o(_0x1d5a40,'*Set\x20format:*\x20%0',o(_0x1d5a40,this['_getTranslationKeyForListStyle'](_0x88c1cc['newValue'])))};let _0x1ae3e8=_0x17a3e2['head'];for(;_0x1ae3e8;){if(_0x1ae3e8['data']&&'listType'==_0x1ae3e8['data']['key']&&_0x1ae3e8['data']['newValue']&&_0x1ae3e8['data']['oldValue'])return _0x36311a;_0x1ae3e8=_0x1ae3e8['next'];}return{'type':'format','content':o(_0x1d5a40,'*Set\x20format:*\x20%0',o(_0x1d5a40,'ELEMENT_'+_0x17a3e2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1ee253=this['editor'],_0x3b301b=_0x1ee253['locale'];_0x1ee253['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39d52d=>{if('formatBlock'!=_0x39d52d['type'])return;const {data:_0x40237a}=_0x39d52d;if(!_0x40237a)return;let _0x184745,_0x1c0eb6;switch(_0x40237a['commandName']){case'listStyle':_0x184745='*Change\x20to:*\x20%0',_0x1c0eb6={'type':'format','content':o(_0x3b301b,_0x184745,o(_0x3b301b,this['_getTranslationKeyForListStyle'](_0x40237a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x184745=_0x40237a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1c0eb6={'type':'format','content':o(_0x3b301b,_0x184745)};break;case'listStart':_0x184745='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1c0eb6={'type':'format','content':o(_0x3b301b,_0x184745,_0x40237a['commandParams'][0x0]['startIndex'])};}return _0x1c0eb6;});}['_getTranslationKeyForListStyle'](_0x4d4b45){return'ELEMENT_'+function(_0x2f4d25){if(Se['includes'](_0x2f4d25))return'bulleted';if(_e['includes'](_0x2f4d25))return'numbered';return null;}(_0x4d4b45)['toUpperCase']()+'_LIST_'+_0x4d4b45['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x17823b{['afterInit'](){const _0x5dd021=this['editor'];_0x5dd021['commands']['get']('emoji')&&_0x5dd021['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x17823b{static get['requires'](){return[_0x599094];}['init'](){const _0x2d82a0=this['editor'],_0x65901f=_0x2d82a0['plugins']['get']('TrackChangesEditing'),_0xe058d1=_0x2d82a0['commands']['get']('enter');_0x65901f['enableCommand']('enter',()=>{_0x2d82a0['model']['change'](_0x99fe46=>{const _0xf1e808=_0x2d82a0['model']['document']['selection'],_0x2f7e26=_0xf1e808['getFirstPosition'](),_0x10e533=_0x5e8c26['fromRange'](_0xf1e808['getFirstRange']());if(_0xe058d1['enterBlock'](_0x99fe46)){const _0xd0d536=_0x2d82a0['model']['createPositionAt'](_0x2f7e26['parent']['nextSibling'],0x0),_0x296c9c=_0x99fe46['createRange'](_0x2f7e26,_0xd0d536);_0x65901f['markInsertion'](_0x296c9c);}else _0x99fe46['setSelection'](_0x99fe46['createRange'](_0x10e533['end']));_0x10e533['detach'](),_0xe058d1['fire']('afterExecute',{'writer':_0x99fe46});});}),_0x2d82a0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x2d82a0,'split'),{'priority':'high'}),_0x2d82a0['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2c7603,_0x312eca,_0x498d7f)=>{const _0x417059=_0x498d7f['mapper']['markerNameToElements'](_0x312eca['markerName']);if(_0x417059){for(const _0x315581 of _0x417059)_0x315581['hasClass']('ck-suggestion-marker-split')&&(_0x498d7f['mapper']['unbindElementFromMarkerName'](_0x315581,_0x312eca['markerName']),_0x498d7f['writer']['remove'](_0x315581));}},{'priority':'high'}),_0x2d82a0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1b25f9,_0x3209d9,_0xbc59df)=>{_0xbc59df['options']['showSuggestionHighlights']&&De(_0x2d82a0,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1b25f9,_0x3209d9,_0xbc59df);},{'priority':'high'});}}class Q extends _0x17823b{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1d4abe=this['editor']['plugins']['get']('TrackChangesEditing');_0x1d4abe['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1d4abe['enableCommand']('findNext'),_0x1d4abe['enableCommand']('findPrevious'),_0x1d4abe['enableCommand']('replace'),_0x1d4abe['enableCommand']('replaceAll');}['handleFindCommand'](_0x3178a4,_0x490838,_0x28b78c={}){const _0x53d232=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3178a4(_0x30426a=>{let _0x2fe1cd=('string'==typeof _0x490838?_0x53d232['findByTextCallback'](_0x490838,_0x28b78c):_0x490838)(_0x30426a);Array['isArray'](_0x2fe1cd)&&(_0x2fe1cd={'results':_0x2fe1cd,'searchText':'string'==typeof _0x490838?_0x490838:''});const _0x33773a=_0x2fe1cd['results']['filter'](_0x2426cd=>!0x1===this['_isInDeletionRange'](_0x2426cd,_0x30426a['item']));return{..._0x2fe1cd,'results':_0x33773a};},_0x28b78c);}['_isInDeletionRange'](_0x3b628c,_0x59e893){const _0x275d4c=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x59e893,_0x3b628c['start']),this['editor']['model']['createPositionAt'](_0x59e893,_0x3b628c['end']));for(const _0x225820 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x275d4c['getIntersection'](_0x225820['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x17823b{['afterInit'](){const _0x3293db=this['editor']['locale'],_0x1addcc=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4830db,commandName:_0x566fcd}of eo)this['editor']['plugins']['has'](_0x4830db)&&(_0x1addcc['enableDefaultAttributesIntegration'](_0x566fcd),_0x1addcc['registerInlineAttribute'](_0x566fcd));_0x1addcc['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3293db,'FORMAT_FONT_SIZE')),_0x1addcc['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3293db,'FORMAT_FONT_FAMILY')),_0x1addcc['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3293db,'FORMAT_FONT_COLOR')),_0x1addcc['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3293db,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5de7d5=this['editor'],_0x38136a=_0x5de7d5['locale'];_0x5de7d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x512519=>{const _0x40b871=_0x38136a['t'];if('formatInline'!=_0x512519['type'])return;const {data:_0x55fb4c}=_0x512519;if(null!=_0x55fb4c){if('fontSize'==_0x55fb4c['commandName']){const _0x165b6a=_0x55fb4c['commandParams'][0x0]['value'];if(_0x165b6a){const _0x35669c=_0x40b871(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x153f9f=>_0x153f9f['model']==_0x165b6a)['title'])['toLowerCase']();return{'type':'format','content':o(_0x38136a,'*Set\x20font\x20size:*\x20%0',_0x35669c)};}return{'type':'format','content':o(_0x38136a,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x55fb4c['commandName']){const _0x1935d2=_0x55fb4c['commandParams'][0x0]['value'];return _0x1935d2?{'type':'format','content':o(_0x38136a,'*Set\x20font\x20family:*\x20%0',_0x1935d2)}:{'type':'format','content':o(_0x38136a,'*Reset\x20font\x20family*')};}if('fontColor'==_0x55fb4c['commandName']){const _0x4234eb=_0x55fb4c['commandParams'][0x0]['value'];if(_0x4234eb){const _0x3334a9=_0x1c5886(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5816d2=>_0x5816d2['model']==_0x4234eb);let _0x28b932=_0x4234eb,_0x58b054='';return _0x3334a9&&(_0x28b932=_0x3334a9['label'],_0x58b054=_0x40b871(_0x28b932)['toLowerCase']()),{'type':'format','content':o(_0x38136a,'*Set\x20font\x20color:*\x20%0',_0x58b054)['trim'](),'color':{'value':_0x4234eb,'title':_0x58b054||_0x28b932}};}return{'type':'format','content':o(_0x38136a,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x55fb4c['commandName']){const _0x304335=_0x55fb4c['commandParams'][0x0]['value'];if(_0x304335){const _0x5cdd41=_0x1c5886(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1344d1=>_0x1344d1['model']==_0x304335);let _0x30c479=_0x304335,_0x34b0af='';return _0x5cdd41&&(_0x30c479=_0x5cdd41['label'],_0x34b0af=_0x40b871(_0x30c479)['toLowerCase']()),{'type':'format','content':o(_0x38136a,'*Set\x20font\x20background\x20color:*\x20%0',_0x34b0af)['trim'](),'color':{'value':_0x304335,'title':_0x34b0af||_0x30c479}};}return{'type':'format','content':o(_0x38136a,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x17823b{['afterInit'](){const _0x30fc42=this['editor'],_0x3a3f6f=_0x30fc42['plugins']['get']('TrackChangesEditing'),_0x156fa3=_0x30fc42['commands']['get']('copyFormat'),_0x30109b=_0x30fc42['commands']['get']('pasteFormat');_0x156fa3&&_0x30109b&&(_0x3a3f6f['enableDefaultAttributesIntegration']('pasteFormat'),_0x3a3f6f['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x53440d=this['editor'],_0x3525ca=_0x53440d['locale'];_0x53440d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x323ea2=>{if('formatBlock'!=_0x323ea2['type']&&'formatInline'!=_0x323ea2['type'])return;const {data:_0x42a926}=_0x323ea2;if(_0x42a926&&'pasteFormat'===_0x42a926['commandName']){const _0x3e4a2d=[],_0x333a55=_0x42a926['commandParams'][0x0];for(const [_0x2b95af,_0x30ea87]of Object['entries'](_0x333a55))_0x3e4a2d['push'](ro(_0x53440d,_0x2b95af,_0x30ea87));return _0x3e4a2d['length']?{'type':'format','content':o(_0x3525ca,'*Set\x20format\x20to:*\x20%0',_0x3e4a2d['join'](',\x20'))}:{'type':'format','content':o(_0x3525ca,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x545aec,_0x56501a,_0x2931f4){const _0x26de54=_0x545aec['locale']['t'],_0x1c9eed=_0x56501a['split'](/(?=[A-Z])/)['join']('\x20'),_0x5655ea=_0x26de54(_0x1c9eed['charAt'](0x0)['toUpperCase']()+_0x1c9eed['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2931f4)return _0x5655ea;if('fontColor'===_0x56501a||'fontBackgroundColor'===_0x56501a){const _0x21f60c=_0x1c5886(_0x545aec['config']['get']('fontColor.colors'))['find'](_0x137392=>_0x137392['model']==_0x2931f4);return _0x5655ea+'\x20('+(_0x21f60c?_0x26de54(_0x21f60c['label'])['toLowerCase']():_0x2931f4)+')';}if('fontSize'===_0x56501a&&isNaN(parseFloat(_0x2931f4))){const _0x43576b=_0x545aec['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x545aec['config']['get']('fontSize.options'))['find'](_0x5a8762=>_0x5a8762['model']==_0x2931f4);return _0x5655ea+'\x20('+(_0x43576b?_0x26de54(_0x43576b['title'])['toLowerCase']():_0x2931f4)+')';}return _0x5655ea+'\x20('+_0x2931f4+')';}class Z extends _0x17823b{['_headingOptions'];['afterInit'](){const _0x1c39f9=this['editor'];if(!_0x1c39f9['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1c39f9['config']['get']('heading.options');const _0x58212f=_0x1c39f9['locale'],_0x5f01e5=_0x1c39f9['plugins']['get']('TrackChangesEditing');_0x5f01e5['enableDefaultAttributesIntegration']('heading');for(const _0x5d4c15 of this['_headingOptions'])'paragraph'!=_0x5d4c15['model']&&_0x5f01e5['descriptionFactory']['registerElementLabel'](_0x5d4c15['model'],_0x27cd5b=>{const _0x24fcc4=this['_getHeadingLevel'](_0x5d4c15['model']);return null!==_0x24fcc4?_0xafc921(_0x27cd5b,_0x24fcc4):_0x9e32b4(_0x27cd5b,_0x5d4c15['title']);});function _0xafc921(_0xf54757,_0x21853b){return o(_0x58212f,'ELEMENT_HEADING',[_0xf54757,_0x21853b]);}function _0x9e32b4(_0x49b9ab,_0x485888){return o(_0x58212f,'ELEMENT_HEADING_CUSTOM',[_0x49b9ab,_0x485888]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10b3ba=this['editor'],_0x39a930=_0x10b3ba['locale'];function _0x3f8a2f(_0x513aec,_0x289823){return o(_0x39a930,'ELEMENT_HEADING_CUSTOM',[_0x513aec,_0x289823]);}_0x10b3ba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x114fc1=>{if('formatBlock'!=_0x114fc1['type'])return;const {data:_0x1269fc}=_0x114fc1;if(_0x1269fc&&'heading'==_0x1269fc['commandName']){const _0x3fb4f7=_0x1269fc['commandParams'][0x0]['value'],_0x2b8611=this['_getHeadingLevel'](_0x3fb4f7);if(null!==_0x2b8611)return{'type':'format','content':o(_0x39a930,'*Change\x20to:*\x20%0',(_0x30d19d=0x1,_0x419153=_0x2b8611,o(_0x39a930,'ELEMENT_HEADING',[_0x30d19d,_0x419153])))};const _0x467052=this['_headingOptions']['find'](_0x335f8b=>_0x335f8b['model']===_0x3fb4f7)['title'];return{'type':'format','content':o(_0x39a930,'*Change\x20to:*\x20%0',_0x3f8a2f(0x1,_0x467052))};}var _0x30d19d,_0x419153;});}['_getHeadingLevel'](_0x2f2b04){const _0x32d65d=_0x2f2b04['match'](/^heading(\d+)/);if(_0x32d65d)return _0x32d65d[0x1];const _0x428541=this['_headingOptions']?.['find'](_0x4e0c2d=>_0x4e0c2d['model']==_0x2f2b04);if(_0x428541&&_0x428541['view']){const _0x1f3c1a=_0x428541['view'],_0x509a3b=(_0x1f3c1a['name']??_0x1f3c1a)['match'](/^h(\d+)/);if(_0x509a3b)return _0x509a3b[0x1];}return null;}}class tt extends _0x17823b{['afterInit'](){const _0x1c0cc9=this['editor'];if(!_0x1c0cc9['plugins']['has']('HighlightEditing'))return;const _0xdb5cfc=_0x1c0cc9['plugins']['get']('TrackChangesEditing'),_0x5ab206=_0x1c0cc9['locale'];_0xdb5cfc['enableDefaultAttributesIntegration']('highlight'),_0xdb5cfc['registerInlineAttribute']('highlight'),_0xdb5cfc['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5ab206,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xafa613=this['editor'],_0x4205a7=_0xafa613['locale'];_0xafa613['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1355ea=>{if('formatInline'!=_0x1355ea['type'])return;const {data:_0x1dcda3}=_0x1355ea;if(_0x1dcda3&&'highlight'==_0x1dcda3['commandName']){const _0x284ea9=_0x4205a7['t'],_0x3aa91c=_0x1dcda3['commandParams'][0x0]['value'];if(_0x3aa91c){const _0x4c907d=_0xafa613['config']['get']('highlight.options')['find'](_0xa859c3=>_0xa859c3['model']==_0x3aa91c),_0x2b7e5a=_0x284ea9(_0x4c907d['title'])['toLowerCase']();return{'type':'format','content':o(_0x4205a7,'*Set\x20highlight:*\x20%0',_0x2b7e5a),'color':{'value':_0x4c907d['color'],'title':_0x4c907d['title']}};}return{'type':'format','content':o(_0x4205a7,'*Remove\x20highlight*',o(_0x4205a7,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x17823b{['afterInit'](){const _0x36bc02=this['editor'];if(!_0x36bc02['plugins']['has']('HorizontalLineEditing'))return;_0x36bc02['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xbb08ef=_0x36bc02['plugins']['get']('TrackChangesEditing'),_0x46607e=_0x36bc02['locale'];_0xbb08ef['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2ed158=>o(_0x46607e,'ELEMENT_HORIZONTAL_LINE',_0x2ed158)),_0x36bc02['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2fba65,{writer:_0x2856f5,options:_0x23c418})=>{if(!_0x23c418['showSuggestionHighlights'])return null;const _0x354bea=_0x2856f5['createContainerElement']('div'),_0x25fe08=_0x2856f5['createEmptyElement']('hr');return _0x2856f5['addClass']('ck-horizontal-line',_0x354bea),_0x2856f5['insert'](_0x2856f5['createPositionAt'](_0x354bea,0x0),_0x25fe08),_0x354bea;},'converterPriority':'high'});}}class nt extends _0x17823b{['afterInit'](){const _0x14af0d=this['editor'];if(!_0x14af0d['plugins']['has']('HtmlEmbed'))return;const _0x7f230c=_0x14af0d['plugins']['get']('TrackChangesEditing'),_0x13b61e=_0x14af0d['locale'];_0x7f230c['descriptionFactory']['registerElementLabel']('rawHtml',_0xefc2c4=>o(_0x13b61e,'ELEMENT_HTML_EMBED',_0xefc2c4)),_0x7f230c['enableDefaultAttributesIntegration']('htmlEmbed'),_0x7f230c['registerBlockAttribute']('value'),_0x7f230c['descriptionFactory']['registerDescriptionCallback'](_0x266ed0=>{if('attribute'!=_0x266ed0['type'])return;const {data:_0x1129de}=_0x266ed0;if(_0x1129de&&'value'==_0x1129de['key']&&_0x266ed0['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x42ab49=o(_0x13b61e,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x13b61e,'*Change\x20%0\x20content*',_0x42ab49)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51dbde=this['editor'],_0x35e91b=_0x51dbde['locale'];_0x51dbde['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf54ec1=>{if('formatBlock'!=_0xf54ec1['type'])return;const {data:_0x1e0035}=_0xf54ec1;if(_0x1e0035&&'htmlEmbed'==_0x1e0035['commandName']){const _0x387049=o(_0x35e91b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x35e91b,'*Change\x20%0\x20content*',_0x387049)};}});}}class et extends _0x17823b{['afterInit'](){const _0x1bfbcf=this['editor'];if(!_0x1bfbcf['plugins']['has']('ImageEditing'))return;const _0x7d67d4=_0x1bfbcf['plugins']['get']('TrackChangesEditing'),_0xb12fd=_0x1bfbcf['plugins']['get']('ImageUtils'),_0x2d15bd=_0x1bfbcf['locale'];_0x7d67d4['enableCommand']('insertImage'),_0x7d67d4['descriptionFactory']['registerElementLabel']('imageBlock',_0x279207=>o(_0x2d15bd,'ELEMENT_IMAGE',_0x279207)),_0x7d67d4['descriptionFactory']['registerElementLabel']('imageInline',_0x27cf90=>o(_0x2d15bd,'ELEMENT_INLINE_IMAGE',_0x27cf90)),_0x7d67d4['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x2d15bd,'ELEMENT_CAPTION')),_0x1bfbcf['plugins']['has']('ImageUploadEditing')&&_0x7d67d4['enableCommand']('uploadImage'),_0x1bfbcf['plugins']['has']('ImageBlockEditing')&&_0x1bfbcf['plugins']['has']('ImageInlineEditing')&&(_0x7d67d4['enableCommand']('imageTypeInline',(_0x35251d,_0x8aaad8)=>{const _0x54032c=_0xb12fd['getClosestSelectedImageElement'](_0x1bfbcf['model']['document']['selection']);_0x1bfbcf['model']['change'](()=>{_0x7d67d4['markBlockFormat'](_0x54032c,{'commandName':'imageTypeInline','commandParams':[_0x8aaad8]},[],'convertBlockImageToInline');});}),_0x7d67d4['enableCommand']('imageTypeBlock',(_0x16f78d,_0x2c9f99)=>{_0x1bfbcf['model']['change'](_0x3298f3=>{let _0x589e44=_0xb12fd['getClosestSelectedImageElement'](_0x1bfbcf['model']['document']['selection']),_0x586f85=_0x3298f3['createRangeOn'](_0x589e44);const _0x436b93=_0x2bc57a['fromPosition'](_0x586f85['start'],'toPrevious'),_0x5ec2df=_0x2bc57a['fromPosition'](_0x586f85['end'],'toNext');_0x7d67d4['forceDefaultExecution'](()=>_0x16f78d(_0x2c9f99)),_0x589e44=_0xb12fd['getClosestSelectedImageElement'](_0x1bfbcf['model']['document']['selection']),_0x586f85=_0x3298f3['createRangeOn'](_0x589e44);const _0x44b639=_0x3298f3['createRange'](_0x436b93,_0x5ec2df);_0x436b93['detach'](),_0x5ec2df['detach'](),_0x7d67d4['markBlockFormat'](_0x589e44,{'commandName':'imageTypeInline','commandParams':[_0x2c9f99]},[],'convertInlineImageToBlock'),_0x44b639['start']['isBefore'](_0x586f85['start'])&&_0x7d67d4['markInsertion'](_0x3298f3['createRange'](_0x44b639['start'],_0x586f85['start']),'convertInlineImageToBlock'),_0x586f85['end']['isBefore'](_0x44b639['end'])&&_0x7d67d4['markInsertion'](_0x3298f3['createRange'](_0x586f85['end'],_0x44b639['end']),'convertInlineImageToBlock');});}),_0x7d67d4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x7d67d4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x7d67d4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x7d67d4['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x7d67d4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x7d67d4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x6011d7])=>{const _0x50502b=_0x7d67d4['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x171f1f=_0x6011d7['start'],_0x2f051c=_0x6011d7['end'];const _0x3abc12=_0x1bfbcf['model']['schema']['getNearestSelectionRange'](_0x171f1f,'backward'),_0x91a128=_0x1bfbcf['model']['schema']['getNearestSelectionRange'](_0x2f051c,'forward');_0x3abc12['isCollapsed']&&(_0x171f1f=_0x3abc12['start']),_0x91a128['isCollapsed']&&(_0x2f051c=_0x91a128['end']),_0x50502b([_0x1bfbcf['model']['createRange'](_0x171f1f,_0x2f051c)]);}),_0x7d67d4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3abae7),_0x7d67d4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3abae7)),_0x1bfbcf['plugins']['has']('ImageCaptionEditing')&&(_0x7d67d4['enableCommand']('toggleImageCaption',(_0x8cc9e7,_0xb64ec0)=>{const _0x30d3a0=_0x1bfbcf['plugins']['get']('ImageCaptionUtils');let _0x1212e6=_0xb12fd['getClosestSelectedImageElement'](_0x1bfbcf['model']['document']['selection']),_0x5e4630=_0x30d3a0['getCaptionFromImageModelElement'](_0x1212e6);_0x1bfbcf['model']['change'](()=>{if(_0x5e4630)return void _0x7d67d4['markDeletion'](_0x1bfbcf['model']['createRangeOn'](_0x5e4630));const _0x44ae9e=_0xb12fd['isBlockImage'](_0x1212e6);_0x8cc9e7(_0xb64ec0),_0x1212e6=_0xb12fd['getClosestSelectedImageElement'](_0x1bfbcf['model']['document']['selection']),_0x5e4630=_0x30d3a0['getCaptionFromImageModelElement'](_0x1212e6),_0x7d67d4['markInsertion'](_0x1bfbcf['model']['createRangeOn'](_0x5e4630),_0x44ae9e?null:'imageCaption');});}),_0x7d67d4['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3abae7));const _0x4acf22=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2aff75(_0x3fda3e,_0x1f8252){const _0x311398=_0x4acf22['findIndex'](({type:_0x49de52,subType:_0x5adbbb})=>_0x3fda3e['type']==_0x49de52&&_0x3fda3e['subType']==_0x5adbbb),_0x499f50=_0x4acf22['findIndex'](({type:_0x48a14e,subType:_0x1f700c})=>_0x1f8252['type']==_0x48a14e&&_0x1f8252['subType']==_0x1f700c);if(_0x311398<0x0||_0x499f50<0x0)return!0x1;const _0x524669=_0x3fda3e['getFirstRange'](),_0x5ad041=_0x1f8252['getFirstRange']();if((0x0==_0x311398||0x1==_0x311398)&&0x2==_0x499f50&&_0x524669['isIntersecting'](_0x5ad041))return!0x0;if(0x2==_0x311398&&0x3==_0x499f50){const _0x236f6c=_0x7d67d4['_findSuggestions'](_0x524669,'insertion')['filter'](({suggestion:_0xeed519,meta:_0x1e0b57})=>_0x1e0b57['isOwn']&&'convertInlineImageToBlock'==_0xeed519['subType']);if(_0x236f6c['length']>0x1&&_0x5ad041['end']['isEqual'](_0x524669['start']))return!0x0;if(0x1==_0x236f6c['length']&&(_0x524669['start']['isEqual'](_0x5ad041['end'])||_0x524669['end']['isEqual'](_0x5ad041['start'])))return!0x0;}if(0x3==_0x311398&&0x3==_0x499f50&&_0x524669['start']['isBefore'](_0x5ad041['start'])){const _0x51aa20=_0x524669['end']['nodeAfter'],_0x56fba0=_0x5ad041['start']['nodeBefore'];return _0xb12fd['isBlockImage'](_0x51aa20)&&_0x51aa20===_0x56fba0;}return!0x1;}function _0x3abae7(_0x12591e,_0x5421d9){return _0x2aff75(_0x12591e,_0x5421d9)?[_0x12591e,_0x5421d9]:_0x2aff75(_0x5421d9,_0x12591e)?[_0x5421d9,_0x12591e]:null;}_0x1bfbcf['plugins']['has']('ImageResize')&&(_0x7d67d4['enableDefaultAttributesIntegration']('resizeImage'),_0x7d67d4['registerBlockAttribute']('resizedWidth'),_0x7d67d4['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x2d15bd,'FORMAT_IMAGE_SIZE'))),_0x1bfbcf['plugins']['has']('ImageTextAlternativeEditing')&&(_0x7d67d4['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x7d67d4['registerBlockAttribute']('alt')),_0x1bfbcf['plugins']['has']('PictureEditing')&&(_0x7d67d4['registerBlockAttribute']('sources'),_0x7d67d4['descriptionFactory']['registerDescriptionCallback'](_0x42b42f=>{if('attribute'!=_0x42b42f['type'])return;const {data:_0x987107}=_0x42b42f;return _0x987107&&'sources'==_0x987107['key']?{'type':'format','content':''}:void 0x0;})),_0x1bfbcf['plugins']['has']('ImageSizeAttributes')&&(_0x7d67d4['registerBlockAttribute']('width'),_0x7d67d4['registerBlockAttribute']('height'),_0x7d67d4['descriptionFactory']['registerDescriptionCallback'](_0x775d84=>{if('attribute'!=_0x775d84['type'])return;const {data:_0x1421ff}=_0x775d84;return!_0x1421ff||'width'!=_0x1421ff['key']&&'height'!=_0x1421ff['key']?void 0x0:{'type':'format','content':''};})),_0x7d67d4['descriptionFactory']['registerDescriptionCallback'](_0x1a6295=>{if(!!_0x4acf22['find'](({type:_0x98c6a5,subType:_0x9f2192})=>_0x1a6295['type']==_0x98c6a5&&_0x1a6295['subType']==_0x9f2192))return _0x1a6295['previous']?{}:void 0x0;}),_0x7d67d4['descriptionFactory']['registerDescriptionCallback'](_0x2dac9f=>{if('insertion'==_0x2dac9f['type']||'deletion'==_0x2dac9f['type']){const _0x3e7586=_0x2dac9f['getContainedElement']();if(_0x3e7586&&_0x3e7586['is']('element','caption'))return{'type':'insertion'==_0x2dac9f['type']?'addObject':'removeObject','element':_0x3e7586,'quantity':0x1};}}),_0x7d67d4['descriptionFactory']['registerDescriptionCallback'](_0x29ca9a=>'formatBlock'==_0x29ca9a['type']&&'convertInlineImageToBlock'==_0x29ca9a['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x29ca9a['type']&&'convertBlockImageToInline'==_0x29ca9a['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x7d67d4['descriptionFactory']['registerDescriptionCallback'](_0x46617e=>{if('attribute'!=_0x46617e['type'])return;const {data:_0xa6ae88}=_0x46617e;if(!_0xa6ae88||'alt'!=_0xa6ae88['key'])return;const _0x32c500=_0xa6ae88['newValue'];return _0x32c500?{'type':'format','content':o(_0x2d15bd,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x32c500+'\x22')}:{'type':'format','content':o(_0x2d15bd,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4846b2=this['editor'],_0x1b3942=_0x4846b2['locale'];_0x4846b2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e62a7=>{if('formatBlock'!=_0x5e62a7['type']&&'formatInline'!=_0x5e62a7['type'])return;const {data:_0x55f687}=_0x5e62a7;if(_0x55f687){if('imageTextAlternative'==_0x55f687['commandName']){const _0x2e2d72=_0x55f687['commandParams'][0x0]['newValue'];return _0x2e2d72?{'type':'format','content':o(_0x1b3942,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2e2d72+'\x22')}:{'type':'format','content':o(_0x1b3942,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x55f687['commandName']){const _0x58e5cf=_0x55f687['commandParams'][0x0]['width'];return _0x58e5cf?{'type':'format','content':o(_0x1b3942,'*Set\x20image\x20width:*\x20%0',_0x58e5cf)}:{'type':'format','content':o(_0x1b3942,'*Reset\x20image\x20width*')};}}});}}class st extends _0x17823b{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x361f93=this['editor']['locale'],_0x2df0ae=this['editor']['plugins']['get']('TrackChangesEditing');_0x2df0ae['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2df0ae['registerBlockAttribute']('src'),_0x2df0ae['descriptionFactory']['registerDescriptionCallback'](_0x3d5516=>{if('attribute'!=_0x3d5516['type'])return;const {data:_0x408e12}=_0x3d5516;return _0x408e12&&'src'==_0x408e12['key']?_0x408e12['newValue']&&_0x408e12['oldValue']?{'type':'format','content':o(_0x361f93,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3de8ba=this['editor']['plugins']['get']('TrackChangesEditing');_0x3de8ba['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3de8ba['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3de8ba['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3de8ba['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fc7b3=this['editor'],_0x53b4ca=_0x4fc7b3['locale'];_0x4fc7b3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb8dccf=>{if('formatBlock'!=_0xb8dccf['type']&&'formatInline'!=_0xb8dccf['type'])return;const {data:_0x453c15}=_0xb8dccf;if(!_0x453c15||'replaceImageSource'!=_0x453c15['commandName'])return;return{'type':'format','content':o(_0x53b4ca,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x17823b{['afterInit'](){const _0x6b362b=this['editor'];if(!_0x6b362b['plugins']['has']('ImageStyleEditing'))return;const _0x2fa836=_0x6b362b['plugins']['get']('TrackChangesEditing'),_0x44a960=_0x6b362b['plugins']['get']('ImageUtils'),_0x42fd5c={};_0x2fa836['enableCommand']('imageStyle',(_0x5b192e,_0x449fd8)=>{const _0x53d55a=_0x6b362b['plugins']['get']('Users')['me'],_0x5a1569=_0x6b362b['commands']['get']('imageStyle');let _0x121fe9=_0x44a960['getClosestSelectedImageElement'](_0x6b362b['model']['document']['selection']),_0x554d1d=_0x6b362b['model']['createRangeOn'](_0x121fe9),_0x3e797c=_0x5a1569['value'];if(_0x3e797c==_0x449fd8['value'])return;const _0x1901d6={'commandName':'imageStyle','commandParams':[_0x449fd8],'formatGroupId':_0x1fe55e()};_0x6b362b['model']['change'](()=>{if(_0x2fa836['getSuggestions']()['filter'](_0x4ca055=>_0x4ca055['isInContent']&&_0x53d55a==_0x4ca055['author']&&('formatBlock'==_0x4ca055['type']||'formatInline'==_0x4ca055['type'])&&('imageStylePreApply'==_0x4ca055['subType']||'imageStylePostApply'==_0x4ca055['subType'])&&_0x4ca055['getFirstRange']()['isEqual'](_0x554d1d))['forEach'](_0x36b1fb=>_0x2fa836['discardSuggestion'](_0x36b1fb['head'])),_0x121fe9=_0x44a960['getClosestSelectedImageElement'](_0x6b362b['model']['document']['selection']),_0x554d1d=_0x6b362b['model']['createRangeOn'](_0x121fe9),_0x5a1569['refresh'](),_0x6b362b['commands']['get']('imageTypeInline')['refresh'](),_0x6b362b['commands']['get']('imageTypeBlock')['refresh'](),_0x3e797c=_0x5a1569['value'],_0x3e797c!=_0x449fd8['value'])return _0x44a960['isInlineImage'](_0x121fe9)&&_0x5a1569['shouldConvertImageType'](_0x449fd8['value'],_0x121fe9)?(_0x5b192e({..._0x449fd8,'setImageSizes':!0x1}),_0x121fe9=_0x44a960['getClosestSelectedImageElement'](_0x6b362b['model']['document']['selection']),void _0x2fa836['markBlockFormat'](_0x121fe9,{..._0x1901d6,'commandReversedParams':[{'value':_0x3e797c||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x44a960['isBlockImage'](_0x121fe9)?_0x2fa836['markBlockFormat'](_0x121fe9,_0x1901d6,[],'imageStylePostApply'):_0x2fa836['markInlineFormat'](_0x554d1d,_0x1901d6,'imageStylePostApply'));});});for(const _0x2f32a0 of _0x6b362b['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x42fd5c[_0x2f32a0['name']]=_0x2f32a0['title']['toLowerCase']();_0x2fa836['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2fa836['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2fa836['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2fa836['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2e4872])=>{_0x44a960['setImageNaturalSizeAttributes'](_0x2e4872['getContainedElement']());}),_0x2fa836['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x253e89,_0x3c7e6a)=>{_0x2fa836['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x253e89,{'commandName':_0x3c7e6a['commandName'],'commandParams':_0x3c7e6a['commandReversedParams']});}),_0x2fa836['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x67ed94,_0x262a4c){if(_0x130e67(_0x67ed94,_0x262a4c))return[_0x67ed94,_0x262a4c];if(_0x130e67(_0x262a4c,_0x67ed94))return[_0x262a4c,_0x67ed94];return null;});const _0x52e4fb=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x130e67(_0x36e4a8,_0x476606){const _0x1e4329=_0x52e4fb['findIndex'](({type:_0x575366,subType:_0x2b644d})=>_0x36e4a8['type']==_0x575366&&_0x36e4a8['subType']==_0x2b644d),_0x357554=_0x52e4fb['findIndex'](({type:_0x35ca8c,subType:_0x4eb1be})=>_0x476606['type']==_0x35ca8c&&_0x476606['subType']==_0x4eb1be);if(_0x1e4329<0x0||_0x357554<0x0)return!0x1;const _0x3b8ed2=_0x36e4a8['getFirstRange'](),_0x3af6c3=_0x476606['getFirstRange']();if((0x0==_0x1e4329||0x1==_0x1e4329)&&0x2==_0x357554&&_0x3b8ed2['isIntersecting'](_0x3af6c3))return!0x0;if(0x2==_0x1e4329&&0x3==_0x357554){const _0x1eee9f=_0x2fa836['_findSuggestions'](_0x3b8ed2,'insertion')['filter'](({suggestion:_0x198398,meta:_0x327521})=>_0x327521['isOwn']&&'convertInlineImageToBlock'==_0x198398['subType']);if(_0x1eee9f['length']>0x1&&_0x3af6c3['end']['isEqual'](_0x3b8ed2['start']))return!0x0;if(0x1==_0x1eee9f['length']&&(_0x3b8ed2['start']['isEqual'](_0x3af6c3['end'])||_0x3b8ed2['end']['isEqual'](_0x3af6c3['start'])))return!0x0;}if(0x3==_0x1e4329&&0x3==_0x357554&&_0x3b8ed2['start']['isBefore'](_0x3af6c3['start'])){const _0x9d0f88=_0x3b8ed2['end']['nodeAfter'],_0x97077e=_0x3af6c3['start']['nodeBefore'];return _0x44a960['isBlockImage'](_0x9d0f88)&&_0x9d0f88===_0x97077e;}return!0x1;}_0x6b362b['model']['document']['registerPostFixer'](()=>{let _0x1b55a4=!0x1;const _0x513020=Array['from'](_0x6b362b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4201d3,data:_0x501d1e}of _0x513020){const {group:_0x49d813,type:_0x3520de,subType:_0x4f51d5,id:_0x2ac804}=_0x2fa836['_splitMarkerName'](_0x4201d3);if('suggestion'==_0x49d813&&_0x2fa836['hasSuggestion'](_0x2ac804)){if('formatBlock'==_0x3520de&&('imageStylePreApply'==_0x4f51d5||'imageStylePostApply'==_0x4f51d5)){const _0x12ce4f=_0x2fa836['getSuggestion'](_0x2ac804);if(_0x501d1e['newRange']){const _0x368af3=_0x12ce4f['getFirstRange']()['getContainedElement']();if(_0x44a960['isBlockImage'](_0x368af3))continue;_0x2fa836['discardSuggestion'](_0x12ce4f),_0x1b55a4=!0x0;}}if('insertion'==_0x3520de&&'imageCaption'==_0x4f51d5&&!_0x501d1e['newRange']){const _0x57ab11=_0x2fa836['getSuggestion'](_0x2ac804);_0x57ab11['next']&&_0x57ab11['next']['isInContent']&&(_0x2fa836['discardSuggestion'](_0x57ab11['next']),_0x1b55a4=!0x0);}}}return _0x1b55a4;}),this['_registerLegacyDescription'](_0x42fd5c);}['_registerLegacyDescription'](_0x5b1996){const _0x204a8d=this['editor'],_0xce1e28=_0x204a8d['locale'];_0x204a8d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1fcede=>{if('formatBlock'!=_0x1fcede['type']&&'formatInline'!=_0x1fcede['type'])return;const {data:_0x5c9715}=_0x1fcede;if(!_0x5c9715||'imageStyle'!=_0x5c9715['commandName'])return;const _0x2acfdb=_0x5c9715['commandParams'][0x0]['value'];return _0x2e3a91('side'===_0x2acfdb?o(_0xce1e28,'FORMAT_SIDE_IMAGE'):_0x5b1996[_0x2acfdb]||_0x2acfdb);function _0x2e3a91(_0x4ca03e){return{'type':'format','content':o(_0xce1e28,'*Format:*\x20%0',_0x4ca03e)};}});}}class rt extends _0x17823b{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2d222b){super(_0x2d222b),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x12e305=this['editor'],_0x3cd2f7=_0x12e305['commands']['get']('importWord'),_0x395bf6=_0x12e305['commands']['get']('trackChanges');_0x3cd2f7&&(_0x3cd2f7['on']('execute',(_0x25595f,[,_0x102ef1])=>{this['_trackChangesValueDuringImport']=_0x395bf6['value'],_0x102ef1['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3cd2f7,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3cd2f7,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x395bf6['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x12e305['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x374fae,_0x196d65){const {suggestions:_0x477616}=_0x196d65,_0x578aac=this['editor']['commands']['get']('trackChanges'),_0x194b4a=_0x578aac['value'];this['_trackChangesValueDuringImport']!==_0x194b4a&&(_0x578aac['execute'](),this['_trackChangesExecuted']=!0x0),_0x477616&&_0x477616['forEach'](({id:_0x3550b8,type:_0x5c4c43,author:_0x4060bd,created_at:_0x916ba3})=>{const _0x39d316={'id':_0x3550b8,'type':_0x5c4c43,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4060bd,'createdAt':_0x916ba3?new Date(_0x916ba3):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x39d316);});}}class at extends _0x17823b{['afterInit'](){const _0x2fdafe=this['editor'],_0x2d5c33=_0x2fdafe['plugins']['get']('TrackChangesEditing');if(_0x2fdafe['plugins']['has']('IndentEditing')&&(_0x2d5c33['enableCommand']('indent'),_0x2d5c33['enableCommand']('outdent')),_0x2fdafe['plugins']['has']('IndentBlock')){for(const _0x2dfd1b of['indentBlock','outdentBlock'])_0x2d5c33['enableDefaultAttributesIntegration'](_0x2dfd1b);}const _0x37abf0=_0x2fdafe['locale'];_0x2d5c33['registerBlockAttribute']('blockIndent'),_0x2d5c33['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x37abf0,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x250833=this['editor'],_0x2e7461=_0x250833['locale'],_0x3049b0=_0x250833['plugins']['get']('TrackChangesEditing');_0x3049b0['descriptionFactory']['registerDescriptionCallback'](_0x1bbe8e=>{if('formatBlock'!=_0x1bbe8e['type'])return;const {data:_0x46e4ac}=_0x1bbe8e;if(!_0x46e4ac)return;if('indentBlock'!=_0x46e4ac['commandName']&&'outdentBlock'!=_0x46e4ac['commandName'])return;const _0x3c2d18=_0x1bbe8e['getItems']()[0x0],_0x335d1b=_0x3049b0['descriptionFactory']['getItemLabel'](_0x3c2d18);return'indentBlock'==_0x46e4ac['commandName']?{'type':'format','content':o(_0x2e7461,'*Indent:*\x20%0',_0x335d1b)}:'outdentBlock'==_0x46e4ac['commandName']?{'type':'format','content':o(_0x2e7461,'*Outdent:*\x20%0',_0x335d1b)}:void 0x0;});}}class ct extends _0x17823b{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x17823b{['afterInit'](){const _0xde9daf=this['editor'];if(!_0xde9daf['plugins']['has']('LinkEditing'))return;const _0x5a971f=_0xde9daf['plugins']['get']('TrackChangesEditing'),_0x3a6bb4=_0xde9daf['commands']['get']('link');_0x5a971f['enableDefaultAttributesIntegration']('link'),_0x5a971f['enableDefaultAttributesIntegration']('unlink'),_0x5a971f['registerInlineAttribute']('linkHref');for(const _0x1c744f of _0x3a6bb4['manualDecorators'])_0x5a971f['registerInlineAttribute'](_0x1c744f['id']),_0x5a971f['descriptionFactory']['registerAttributeLabel'](_0x1c744f['id'],'link\x20('+_0x1c744f['label']['toLowerCase']()+')');_0x5a971f['descriptionFactory']['registerDescriptionCallback'](_0x1e1533=>{if('attribute'!=_0x1e1533['type'])return;const {data:_0x4fa84c}=_0x1e1533;if(!_0x4fa84c||'linkHref'!=_0x4fa84c['key'])return;const _0x4b0f7a=_0x4fa84c['newValue'],_0x5e219d=_0xde9daf['locale'];return{'type':'format','content':null==_0x4b0f7a?o(_0x5e219d,'*Remove\x20link*'):o(_0x5e219d,'*Set\x20link:*\x20%0','\x22'+_0x4b0f7a+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fac00=this['editor'],_0x3c81cc=_0x4fac00['locale'];_0x4fac00['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ad8e8=>{if('formatInline'!=_0x4ad8e8['type'])return;const {data:_0x4c74b2}=_0x4ad8e8;if(_0x4c74b2){if('link'==_0x4c74b2['commandName']){const _0x15b0e3=_0x4c74b2['commandParams'][0x0];return{'type':'format','content':o(_0x3c81cc,'*Set\x20link:*\x20%0','\x22'+_0x15b0e3+'\x22')};}return'unlink'==_0x4c74b2['commandName']?{'type':'format','content':o(_0x3c81cc,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x17823b{['afterInit'](){const _0x3400c6=this['editor'],_0x5ebe0b=_0x3400c6['locale'];if(!_0x3400c6['plugins']['has']('LegacyListEditing'))return;const _0x52b1cb=_0x3400c6['plugins']['get']('TrackChangesEditing'),_0x60b71b=_0x3400c6['plugins']['has']('LegacyTodoListEditing');function _0x56a390(_0x247d71){return()=>{const _0x50b2ff=_0x3400c6['model']['document']['selection'],_0x124f9b=_0x3400c6['commands']['get'](_0x247d71);if(_0x124f9b['value'])return void _0x3400c6['execute']('paragraph',{});const _0x383bc0=_0x247d71['slice'](0x0,-0x4),_0x368efc=function(_0x3b4fb8,_0xb43fb9,_0xdd8b52){let _0x234a93=Array['from'](_0x3b4fb8)['filter'](_0x2c1fc5=>function(_0x521e09,_0x25f942){return _0x25f942['checkChild'](_0x521e09['parent'],'listItem')&&!_0x25f942['isObject'](_0x521e09);}(_0x2c1fc5,_0xdd8b52));_0x234a93=_0x234a93['filter'](_0x1e3e1e=>!_0x1e3e1e['is']('element','listItem')||_0x1e3e1e['getAttribute']('listType')!=_0xb43fb9);const _0x21d64d=new Set();for(const _0x17388d of _0x234a93)_0x17388d['is']('element','listItem')?_0x21d64d['add'](Le(_0x17388d)):_0x21d64d['add'](_0x17388d);return Array['from'](_0x21d64d);}(_0x50b2ff['getSelectedBlocks'](),_0x383bc0,_0x3400c6['model']['schema']);_0x3400c6['model']['change'](()=>{for(const _0x19694c of _0x368efc)_0x52b1cb['markBlockFormat'](_0x19694c,{'commandName':_0x247d71,'commandParams':[{'forceValue':!_0x124f9b['value']}],'formatGroupId':'blockName'},Ee(_0x19694c));});};}function _0x3d0cf4(_0x2e59cf){return()=>{const _0x1c1cd0=function(_0x217392){let _0x20c3da=Array['from'](_0x217392);const _0x3227c9=_0x20c3da['findIndex'](_0x5f3c4a=>'listItem'!=_0x5f3c4a['name']);return _0x3227c9>-0x1&&(_0x20c3da=_0x20c3da['slice'](0x0,_0x3227c9)),_0x20c3da;}(_0x3400c6['model']['document']['selection']['getSelectedBlocks']()),_0x161c70=_0x3400c6['model']['createRange'](_0x3400c6['model']['createPositionAt'](_0x1c1cd0[0x0],'before'),_0x3400c6['model']['createPositionAt'](_0x1c1cd0[_0x1c1cd0['length']-0x1],'end'));_0x3400c6['model']['change'](()=>{_0x52b1cb['markBlockFormat'](_0x161c70,{'commandName':_0x2e59cf,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3002fc){const _0x2d454d=new Set();for(const _0x55f7bf of _0x3002fc){let _0x2c1613=_0x55f7bf['nextSibling'];for(;_0x2c1613&&_0x2c1613['getAttribute']('listIndent')>_0x55f7bf['getAttribute']('listIndent');)_0x2d454d['add'](_0x2c1613),_0x2c1613=_0x2c1613['nextSibling'];}return Array['from'](_0x2d454d);}(_0x1c1cd0));});};}_0x52b1cb['enableCommand']('numberedList',_0x56a390('numberedList')),_0x52b1cb['enableCommand']('bulletedList',_0x56a390('bulletedList')),_0x60b71b&&_0x52b1cb['enableCommand']('todoList',_0x56a390('todoList')),_0x52b1cb['enableCommand']('indentList',_0x3d0cf4('indentList')),_0x52b1cb['enableCommand']('outdentList',_0x3d0cf4('outdentList')),_0x60b71b&&_0x52b1cb['enableCommand']('checkTodoList',()=>{const _0x377e7b=_0x3400c6['commands']['get']('checkTodoList'),_0x310e0b=Array['from'](_0x377e7b['_selectedElements']);_0x310e0b['filter'](_0x570dfd=>_0x570dfd['getAttribute']('todoListChecked')!=_0x377e7b['value']),_0x3400c6['model']['change'](()=>{for(const _0x768d8e of _0x310e0b)_0x52b1cb['markBlockFormat'](_0x768d8e,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x377e7b['value']}]});});}),_0x52b1cb['descriptionFactory']['registerElementLabel']('listItem',_0x4d754d=>o(_0x5ebe0b,'ELEMENT_LIST_ITEM',_0x4d754d)),_0x52b1cb['descriptionFactory']['registerDescriptionCallback'](_0x4d5217=>{if('formatBlock'!=_0x4d5217['type']&&'formatInline'!=_0x4d5217['type'])return;const {data:_0x50d419}=_0x4d5217;if(_0x50d419){if('numberedList'==_0x50d419['commandName']||'bulletedList'==_0x50d419['commandName']||'todoList'==_0x50d419['commandName'])switch(_0x50d419['commandName']['replace']('List','')){case'bulleted':return _0x20de44(o(_0x5ebe0b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x20de44(o(_0x5ebe0b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x20de44(o(_0x5ebe0b,'ELEMENT_TODO_LIST'));}if('indentList'==_0x50d419['commandName'])return{'type':'format','content':o(_0x5ebe0b,'*Indent:*\x20%0',o(_0x5ebe0b,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x50d419['commandName'])return{'type':'format','content':o(_0x5ebe0b,'*Outdent:*\x20%0',o(_0x5ebe0b,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x50d419['commandName'])return _0x50d419['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5ebe0b,'*Check\x20item*')}:{'type':'format','content':o(_0x5ebe0b,'*Uncheck\x20item*')};}function _0x20de44(_0x40a1c2){return{'type':'format','content':o(_0x5ebe0b,'*Change\x20to:*\x20%0',_0x40a1c2)};}});}}function Le(_0x11600d){const _0x44786b=_0x11600d['getAttribute']('listIndent');if(0x0==_0x44786b)return _0x11600d;let _0x359dc5=_0x11600d;for(;_0x11600d['previousSibling']&&_0x11600d['previousSibling']['is']('element','listItem');){const _0x1a2691=_0x11600d['previousSibling']['getAttribute']('listIndent');if(_0x1a2691==_0x44786b)_0x359dc5=_0x11600d['previousSibling'];else{if(_0x1a2691<_0x44786b)break;}_0x11600d=_0x11600d['previousSibling'];}return _0x359dc5;}function Ee(_0x43b9b9){const _0x377c25=[];if(_0x43b9b9['is']('element','listItem')&&_0x43b9b9['getAttribute']('listIndent')>0x0){let _0x395d9f=_0x43b9b9['nextSibling'];for(;_0x395d9f&&'listItem'==_0x395d9f['name']&&_0x395d9f['getAttribute']('listIndent')==_0x43b9b9['getAttribute']('listIndent');)_0x377c25['push'](_0x395d9f),_0x395d9f=_0x395d9f['nextSibling'];}return _0x377c25;}class ht extends _0x17823b{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xc07649=this['editor']['config']['get']('list.properties'),_0x25014b=this['editor']['plugins']['get']('TrackChangesEditing');_0xc07649['styles']&&_0x25014b['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xc07649['reversed']&&_0x25014b['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xc07649['startIndex']&&_0x25014b['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x25014b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2c6025,_0x5d76e7={}){const _0x6dd08=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c1322=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x6dd08['markMultiRangeBlockFormat'](_0x2c1322,{'commandName':'listStyle','commandParams':[{'type':_0x5d76e7['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xbf7ddf,_0x40039d={}){const _0x558a9e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1a7a22=this['_getSuggestionBlocks'](_0x8fa457=>_0x8fa457['is']('element','listItem')&&'numbered'===_0x8fa457['getAttribute']('listType'));if(_0x1a7a22['length']<0x1)return;const _0x56e856=_0x1a7a22['map'](_0x320cb2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x320cb2,'before'),this['editor']['model']['createPositionAt'](_0x320cb2,0x0)));this['editor']['model']['change'](()=>{_0x558a9e['markMultiRangeBlockFormat'](_0x56e856,{'commandName':'listReversed','commandParams':[{'reversed':_0x40039d['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x311b3c,_0x51739d={}){const _0x3d056c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c8d5f=this['_getSuggestionBlocks'](_0x8dc7ff=>_0x8dc7ff['is']('element','listItem')&&'numbered'===_0x8dc7ff['getAttribute']('listType'));if(_0x5c8d5f['length']<0x1)return;const _0x800083=_0x5c8d5f['map'](_0xe1225a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xe1225a,'before'),this['editor']['model']['createPositionAt'](_0xe1225a,0x0)));this['editor']['model']['change'](()=>{_0x3d056c['markMultiRangeBlockFormat'](_0x800083,{'commandName':'listStart','commandParams':[{'startIndex':_0x51739d['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4df621){if('formatBlock'!=_0x4df621['type']&&'formatInline'!=_0x4df621['type'])return;const _0x3d780b=this['editor']['locale'],{data:_0x32f8d6}=_0x4df621;if(!_0x32f8d6)return;let _0x1bad31,_0x3cd8b1;switch(_0x32f8d6['commandName']){case'listStyle':_0x1bad31='*Change\x20to:*\x20%0',_0x3cd8b1={'type':'format','content':o(_0x3d780b,_0x1bad31,o(_0x3d780b,this['_getTranslationKeyForListStyle'](_0x32f8d6['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1bad31=_0x32f8d6['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3cd8b1={'type':'format','content':o(_0x3d780b,_0x1bad31)};break;case'listStart':_0x1bad31='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3cd8b1={'type':'format','content':o(_0x3d780b,_0x1bad31,_0x32f8d6['commandParams'][0x0]['startIndex'])};}return _0x3cd8b1;}['_getSuggestionBlocksForListStyle'](){const _0x3c53f7=this['editor']['plugins']['get']('LegacyListUtils');let _0x2644de=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2644de[0x0]?.['is']('element','listItem')&&_0x2644de['unshift'](..._0x3c53f7['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2644de[_0x2644de['length']-0x1]?.['is']('element','listItem')&&_0x2644de['push'](..._0x3c53f7['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2644de=[...new Set(_0x2644de)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2644de=_0x2644de['filter'](_0x427c10=>_0x427c10['is']('element','listItem'))),_0x2644de;}['_getSuggestionBlocks'](_0x9c4566){const _0x4ae65b=this['editor']['plugins']['get']('LegacyListUtils');let _0x1bf899=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x9c4566)['map'](_0x5714e4=>{const _0xa618cd=this['editor']['model']['createPositionAt'](_0x5714e4,0x0);return[..._0x4ae65b['getSiblingNodes'](_0xa618cd,'backward'),..._0x4ae65b['getSiblingNodes'](_0xa618cd,'forward')];})['flat']();return _0x1bf899=[...new Set(_0x1bf899)],_0x1bf899;}['_getTranslationKeyForListStyle'](_0x559230){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x559230)||'default')['toUpperCase']()+'_LIST_'+_0x559230['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x17823b{['afterInit'](){const _0x30d9f5=this['editor'];if(!_0x30d9f5['plugins']['has']('MediaEmbedEditing'))return;const _0x413587=_0x30d9f5['plugins']['get']('TrackChangesEditing'),_0x378a59=_0x30d9f5['locale'];_0x413587['enableCommand']('mediaEmbed'),_0x413587['descriptionFactory']['registerElementLabel']('media',_0x3fd50b=>o(_0x378a59,'ELEMENT_MEDIA',_0x3fd50b)),_0x30d9f5['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x54c564,{writer:_0x49c835,options:_0x56d45b})=>{if(_0x56d45b['showSuggestionHighlights'])return _0x49c835['createEmptyElement']('div');},'converterPriority':'high'}),_0x30d9f5['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2cac09,_0x223ae9,_0x4842dc)=>{_0x4842dc['options']['showSuggestionHighlights']&&_0x2cac09['stop']();},{'priority':'high'});}}class lt extends _0x17823b{['afterInit'](){const _0x157cba=this['editor'];_0x157cba['plugins']['has']('MentionEditing')&&_0x157cba['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x17823b{['afterInit'](){const _0x3c5d29=this['editor'];if(!_0x3c5d29['plugins']['has']('MergeFieldsEditing'))return;const _0x27ef57=_0x3c5d29['plugins']['get']('TrackChangesEditing'),_0x51bd67=_0x3c5d29['locale'];_0x27ef57['enableCommand']('insertMergeField'),_0x27ef57['enableCommand']('insertMergeFieldBlock'),_0x27ef57['enableCommand']('insertMergeFieldImage'),_0x27ef57['descriptionFactory']['registerElementLabel']('mergeField',_0x8a5d53=>o(_0x51bd67,'ELEMENT_MERGE_FIELD',_0x8a5d53)),_0x27ef57['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0xc2306e=>o(_0x51bd67,'ELEMENT_MERGE_FIELD',_0xc2306e)),_0x27ef57['descriptionFactory']['registerDescriptionCallback'](_0x3b541e=>{if('insertion'!=_0x3b541e['type']&&'deletion'!=_0x3b541e['type'])return;const _0x48b4f5=_0x3b541e['getContainedElement']();if(null==_0x48b4f5)return;const _0x262871=_0x3c5d29['plugins']['get']('MergeFieldsEditing');let _0xc882c7;switch(_0x262871['getMergeFieldType'](_0x48b4f5)){case null:return;case'image':{const _0x4dbd73=_0x262871['unwrapAffixes'](_0x48b4f5['getAttribute']('src'));_0xc882c7=_0x262871['getLabel'](_0x4dbd73)||_0x4dbd73;break;}default:{const _0x2d24a5=_0x48b4f5['getAttribute']('id');_0xc882c7=_0x262871['getLabel'](_0x2d24a5)||_0x2d24a5;break;}}return'insertion'==_0x3b541e['type']?{'type':'insertion','content':o(_0x51bd67,'*Insert:*\x20%0','\x22'+_0xc882c7+'\x22\x20'+o(_0x51bd67,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x51bd67,'*Remove:*\x20%0','\x22'+_0xc882c7+'\x22\x20'+o(_0x51bd67,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x17823b{['afterInit'](){const _0x158c17=this['editor'],_0x5c8e6d=_0x158c17['plugins']['get']('TrackChangesEditing');_0x158c17['plugins']['has']('MultiLevelList')&&(_0x5c8e6d['enableDefaultAttributesIntegration']('multiLevelList'),_0x5c8e6d['registerBlockAttribute']('listMarkerStyle'),_0x5c8e6d['descriptionFactory']['registerDescriptionCallback'](_0x57c95a=>this['handleDescriptions'](_0x57c95a)));}['handleDescriptions'](_0x1de1bb){const _0x54215b=this['editor']['locale'],{data:_0x6b86b3}=_0x1de1bb,_0x2bb574={'type':'format','content':''};if(_0x6b86b3&&'listMarkerStyle'==_0x6b86b3['key']){if(!_0x6b86b3['oldValue'])return{'type':'format','content':o(_0x54215b,'*Set\x20format:*\x20%0',o(_0x54215b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x6b86b3['newValue']+')'};if(!_0x6b86b3['newValue']){let _0x3458fe=_0x1de1bb['head'];for(;_0x3458fe;){if(_0x3458fe['data']&&'listType'==_0x3458fe['data']['key']&&_0x3458fe['data']['newValue'])return _0x2bb574;_0x3458fe=_0x3458fe['next'];}return{'type':'format','content':o(_0x54215b,'*Remove\x20format:*\x20%0',o(_0x54215b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x6b86b3['oldValue']+')'};}}}}class pt extends _0x17823b{['afterInit'](){const _0x27a9f1=this['editor'];if(!_0x27a9f1['plugins']['has']('PageBreakEditing'))return;_0x27a9f1['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3d5638=_0x27a9f1['plugins']['get']('TrackChangesEditing'),_0x341364=_0x27a9f1['locale'];_0x3d5638['descriptionFactory']['registerElementLabel']('pageBreak',_0x1e4d18=>o(_0x341364,'ELEMENT_PAGE_BREAK',_0x1e4d18));}}class kt extends _0x17823b{['afterInit'](){const _0x1b2911=this['editor'];if(!_0x1b2911['plugins']['has']('Paragraph'))return;const _0x44664a=_0x1b2911['locale'],_0x15a8ee=_0x1b2911['plugins']['get']('TrackChangesEditing');_0x15a8ee['descriptionFactory']['registerElementLabel']('paragraph',_0x42b293=>o(_0x44664a,'ELEMENT_PARAGRAPH',_0x42b293)),_0x15a8ee['enableDefaultAttributesIntegration']('paragraph'),_0x15a8ee['enableCommand']('insertParagraph'),_0x1b2911['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1b2911),{'priority':'highest'}),_0x1b2911['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x244386,_0xd0c1ab,_0x13909f)=>{_0x13909f['options']['showSuggestionHighlights']&&nr(_0x1b2911,{'showActiveMarker':!0x1})(_0x244386,_0xd0c1ab,_0x13909f);},{'priority':'highest'});const _0x30943e=_0x15a8ee['descriptionFactory'];_0x30943e['registerDescriptionCallback'](_0x134c32=>{if('insertion'!==_0x134c32['type'])return;const {start:_0x34e9ad,end:_0x86016d}=_0x134c32['getFirstRange']();if(!_0x34e9ad['isTouching'](_0x86016d)||!_0x34e9ad['nodeAfter'])return;const _0x547338=_0x1b2911['model']['schema'],_0x58ffb8=_0x34e9ad['nodeAfter'];return _0x547338['isBlock'](_0x58ffb8)&&!_0x547338['isLimit'](_0x58ffb8)&&_0x547338['checkChild'](_0x58ffb8,'$text')?{'type':'insertion','content':o(_0x44664a,'*Insert:*\x20%0',_0x30943e['getItemLabel'](_0x58ffb8,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c3a4d=this['editor'],_0x29699a=_0x1c3a4d['locale'];_0x1c3a4d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e3731=>{if('formatBlock'!=_0x5e3731['type'])return;const {data:_0x2b21c3}=_0x5e3731;return _0x2b21c3&&'paragraph'==_0x2b21c3['commandName']?{'type':'format','content':o(_0x29699a,'*Change\x20to:*\x20%0',o(_0x29699a,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x5780b7,{showActiveMarker:_0x52bec4=!0x0}={}){return(_0x474ee1,_0x4f3e4f,_0x10437f)=>{const _0x31b7be=_0x5780b7['plugins']['get']('TrackChangesEditing'),_0x5129d2=_0x4f3e4f['markerRange']['start'],_0x1360ef=_0x4f3e4f['markerRange']['end'],_0x17e39f=_0x5780b7['model']['schema'];if(!_0x5129d2['isTouching'](_0x1360ef)||!_0x5129d2['nodeAfter'])return;const _0x1624a2=_0x5129d2['nodeAfter'];if(_0x17e39f['isBlock'](_0x1624a2)&&!_0x17e39f['isLimit'](_0x1624a2)&&_0x17e39f['checkChild'](_0x1624a2,'$text')){if(!_0x10437f['consumable']['consume'](_0x4f3e4f['markerRange'],_0x474ee1['name']))return;const {id:_0x246703,authorId:_0xa11f91}=_0x31b7be['_splitMarkerName'](_0x4f3e4f['markerName']),_0x34b89f=_0x10437f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x246703,'data-author-id':_0xa11f91}),_0x25637c=_0x10437f['mapper']['toViewPosition'](_0x1360ef);_0x52bec4&&_0x31b7be['activeMarkers']['includes'](_0x4f3e4f['markerName'])&&_0x10437f['writer']['addClass']('ck-suggestion-marker--active',_0x34b89f),_0x10437f['writer']['insert'](_0x25637c,_0x34b89f),_0x10437f['mapper']['bindElementToMarker'](_0x34b89f,_0x4f3e4f['markerName']);}};}class wt extends _0x17823b{['afterInit'](){const _0x4d399a=this['editor'];_0x4d399a['commands']['get']('replaceSource')&&_0x4d399a['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x17823b{['afterInit'](){const _0x3f28e0=this['editor'];if(!_0x3f28e0['plugins']['has']('RemoveFormatEditing'))return;_0x3f28e0['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x164400=this['editor'];_0x164400['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d2924=>{if('formatBlock'!=_0x3d2924['type']&&'formatInline'!=_0x3d2924['type'])return;const {data:_0x703e37}=_0x3d2924;return _0x703e37&&'removeFormat'==_0x703e37['commandName']?{'type':'format','content':o(_0x164400['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x17823b{['afterInit'](){const _0x13880a=this['editor'];if(!_0x13880a['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x52d99f=_0x13880a['plugins']['get']('TrackChangesEditing');_0x52d99f['enableCommand']('goToPreviousRestrictedEditingException'),_0x52d99f['enableCommand']('goToNextRestrictedEditingException');const _0x1716cb=_0x13880a['plugins']['get']('RestrictedEditingModeEditing');_0x1716cb['enableCommand']('trackChanges'),_0x1716cb['enableCommand']('acceptSuggestion'),_0x1716cb['enableCommand']('discardSuggestion'),_0x1716cb['enableCommand']('acceptAllSuggestions'),_0x1716cb['enableCommand']('discardAllSuggestions'),_0x1716cb['enableCommand']('acceptSelectedSuggestions'),_0x1716cb['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x17823b{['afterInit'](){const _0x22f9e5=this['editor'];if(!_0x22f9e5['plugins']['has']('ShiftEnter'))return;const _0x265cab=_0x22f9e5['plugins']['get']('TrackChangesEditing');_0x265cab['enableCommand']('shiftEnter'),_0x22f9e5['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x22f9e5),{'priority':'high'}),_0x22f9e5['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x22f9e5),{'priority':'high'}),_0x22f9e5['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5a4ec4,_0x5eac0d,_0x24e990)=>{_0x24e990['options']['showSuggestionHighlights']&&je(_0x22f9e5,{'showActiveMarker':!0x1})(_0x5a4ec4,_0x5eac0d,_0x24e990);}),_0x265cab['descriptionFactory']['registerElementLabel']('softBreak',_0xf6b6a1=>o(_0x22f9e5['locale'],'ELEMENT_LINE_BREAK',_0xf6b6a1));}}function je(_0x53bdbd,{showActiveMarker:_0x207464=!0x0}={}){return(_0x5c200e,_0x265718,_0x503be0)=>{const _0xe071=_0x53bdbd['plugins']['get']('TrackChangesEditing');if(!_0x503be0['consumable']['test'](_0x265718['markerRange'],_0x5c200e['name']))return;const _0xdda5f5=_0x53bdbd['model'];for(const _0x4c6fec of _0x265718['markerRange']['getItems']()){if(!_0x4c6fec['is']('element','softBreak'))continue;const _0x5b7c85='deletion'==_0x265718['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x17ce2b,authorId:_0x3919a7}=_0xe071['_splitMarkerName'](_0x265718['markerName']),_0x1941d3=_0x503be0['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5b7c85,'data-suggestion':_0x17ce2b,'data-author-id':_0x3919a7}),_0x54f726=_0x503be0['mapper']['toViewPosition'](_0xdda5f5['createPositionBefore'](_0x4c6fec));_0x207464&&_0xe071['activeMarkers']['includes'](_0x265718['markerName'])&&_0x503be0['writer']['addClass']('ck-suggestion-marker--active',_0x1941d3),_0x503be0['writer']['insert'](_0x54f726,_0x1941d3),_0x503be0['mapper']['bindElementToMarker'](_0x1941d3,_0x265718['markerName']);}};}class St extends _0x17823b{['afterInit'](){const _0x4ffcc9=this['editor'],_0xe86480=_0x4ffcc9['model'],_0x2595b9=_0x4ffcc9['locale'];if(!_0x4ffcc9['plugins']['has']('StandardEditingModeEditing'))return;const _0x21ebe2=_0x4ffcc9['plugins']['get']('TrackChangesEditing'),_0x5d3aff='restrictedEditingException',_0x5c3f67=_0x4ffcc9['commands']['get'](_0x5d3aff);_0x21ebe2['enableCommand'](_0x5d3aff,(_0x25e7fb,_0x3b1b8f={})=>{const _0x312297=_0xe86480['document']['selection'];if(_0x312297['isCollapsed'])return void _0x25e7fb(_0x3b1b8f);const _0x20a31c=void 0x0!==_0x3b1b8f['forceValue']?_0x3b1b8f['forceValue']:!_0x5c3f67['value'];_0xe86480['change'](()=>{const _0x5d240e=Array['from'](_0x312297['getRanges']());for(const _0x3637e6 of _0x5d240e){const _0x519e69=_0x20a31c?[_0x3637e6]:io(_0x5d3aff,_0x3637e6,_0xe86480);for(const _0x4c85e5 of _0x519e69)_0x21ebe2['markInlineFormat'](_0x4c85e5,{'commandName':_0x5d3aff,'commandParams':[{'forceValue':_0x20a31c}]});}});}),_0x21ebe2['descriptionFactory']['registerDescriptionCallback'](_0x1af55d=>{if('formatBlock'!=_0x1af55d['type']&&'formatInline'!=_0x1af55d['type'])return;const {data:_0x26bf47}=_0x1af55d;return _0x26bf47&&_0x26bf47['commandName']==_0x5d3aff?_0x26bf47['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2595b9,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2595b9,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x17823b{['afterInit'](){const _0x3a3323=this['editor'];if(!_0x3a3323['plugins']['has']('Style')||!_0x3a3323['plugins']['has']('DataSchema'))return;const _0x39b036=_0x3a3323['plugins']['get']('TrackChangesEditing'),_0x2f1fbb=_0x3a3323['locale'],_0x56ef31=_0x3a3323['config']['get']('style')||{},_0x5096df=_0x3a3323['plugins']['get']('GeneralHtmlSupport'),_0x54a645=_0x3a3323['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3a3323['plugins']['get']('DataSchema'),_0x56ef31['definitions']);_0x39b036['enableDefaultAttributesIntegration']('style');const _0x4a3d60=new Set();for(const _0x434dbc of _0x54a645['block']){const _0x120205=_0x5096df['getGhsAttributeNameForElement'](_0x434dbc['element']);_0x4a3d60['add'](_0x120205);}const _0x7f604f=new Set();for(const _0x19e209 of _0x54a645['inline']){const _0x20b7bf=_0x5096df['getGhsAttributeNameForElement'](_0x19e209['element']);_0x7f604f['add'](_0x20b7bf);for(const _0x3582d5 of _0x19e209['ghsAttributes'])_0x7f604f['add'](_0x3582d5);}for(const _0x88ccdf of _0x4a3d60)_0x39b036['registerBlockAttribute'](_0x88ccdf),_0x39b036['descriptionFactory']['registerAttributeLabel'](_0x88ccdf,o(_0x2f1fbb,'FORMAT_STYLE'));for(const _0x588282 of _0x7f604f)_0x39b036['registerInlineAttribute'](_0x588282),_0x39b036['descriptionFactory']['registerAttributeLabel'](_0x588282,o(_0x2f1fbb,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32f0d7=this['editor'],_0x25a0b3=_0x32f0d7['locale'];_0x32f0d7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x314ff4=>{if('formatBlock'!=_0x314ff4['type']&&'formatInline'!=_0x314ff4['type'])return;const {data:_0xd7f618}=_0x314ff4;return _0xd7f618&&'style'===_0xd7f618['commandName']?_0xd7f618['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x25a0b3,'*Set\x20format:*\x20%0',_0xd7f618['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x25a0b3,'*Remove\x20format:*\x20%0',_0xd7f618['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x17823b{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2b4527){super(_0x2b4527),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1d404b=this['editor'],_0x3a752c=_0x1d404b['model']['document']['selection'];if(!_0x1d404b['plugins']['has']('TableEditing'))return;const _0x36cf08=_0x1d404b['locale'],_0x18a5cc=_0x1d404b['plugins']['get']('TrackChangesEditing'),_0x291662=_0x1d404b['plugins']['get']('TableUtils');_0x18a5cc['descriptionFactory']['registerElementLabel']('table',_0x2ee823=>o(_0x36cf08,'ELEMENT_TABLE',_0x2ee823)),this['_setupColumnsRowsFixing'](),_0x18a5cc['enableCommand']('insertTable'),_0x18a5cc['enableCommand']('selectTableRow'),_0x18a5cc['enableCommand']('selectTableColumn');for(const _0x361695 of['insertTableRowAbove','insertTableRowBelow']){const _0x16869a=_0x1d404b['commands']['get'](_0x361695);_0x18a5cc['enableCommand'](_0x361695,_0x120239=>{_0x1d404b['model']['change'](_0x7e8670=>{_0x120239();const _0x88930d='above'===_0x16869a['order'],_0x2dc66f=_0x291662['getSelectionAffectedTableCells'](_0x3a752c),_0x4b3452=_0x291662['getRowIndexes'](_0x2dc66f),_0x2a6ff2=_0x88930d?_0x4b3452['first']-0x1:_0x4b3452['last']+0x1,_0x181ab9=_0x2dc66f[0x0]['findAncestor']('table'),_0x337cd8=_0x291662['createTableWalker'](_0x181ab9,{'startRow':_0x2a6ff2,'endRow':_0x2a6ff2}),_0x130a4b=Array['from'](_0x337cd8)['map'](_0x5c0504=>_0x7e8670['createRangeOn'](_0x5c0504['cell']));_0x18a5cc['markMultiRangeInsertion'](_0x130a4b,'tableRow');});});}for(const _0x567b13 of['insertTableColumnLeft','insertTableColumnRight']){const _0x588e71=_0x1d404b['commands']['get'](_0x567b13);_0x18a5cc['enableCommand'](_0x567b13,_0x5ce752=>{_0x1d404b['model']['change'](_0x27b704=>{_0x5ce752();const _0x172496='left'===_0x588e71['order'],_0x5a6e7a=_0x291662['getSelectionAffectedTableCells'](_0x3a752c),_0x1e513b=_0x291662['getColumnIndexes'](_0x5a6e7a),_0x2491bc=_0x172496?_0x1e513b['first']-0x1:_0x1e513b['last']+0x1,_0x4ca832=_0x5a6e7a[0x0]['findAncestor']('table'),_0x2319c8=_0x291662['createTableWalker'](_0x4ca832,{'startRow':0x0,'column':_0x2491bc,'includeAllSlots':!0x1}),_0x357c1a=Array['from'](_0x2319c8)['map'](_0x23a991=>_0x27b704['createRangeOn'](_0x23a991['cell']));_0x18a5cc['markMultiRangeInsertion'](_0x357c1a,'tableColumn');});});}for(const _0x5820b1 of['removeTableRow','removeTableColumn']){const _0x579f1b=_0x5820b1['substr'](0xb),_0x4cc5cd=_0x579f1b['toLowerCase'](),_0x188f1a=_0x4cc5cd['substr'](0x0,0x3)+'span',_0x1fd2c5='table'+_0x579f1b,_0x532d71='min'+_0x579f1b,_0x5d8618='max'+_0x579f1b;_0x18a5cc['enableCommand'](_0x5820b1,()=>{_0x1d404b['model']['change'](_0x5484ed=>{const _0x28523d=_0x291662['getSelectionAffectedTableCells'](_0x3a752c),_0x3902ed=_0x28523d[0x0]['findAncestor']('table');let _0xb52da9;if('removeTableRow'==_0x5820b1){const _0x124320=_0x291662['getRowIndexes'](_0x28523d);_0xb52da9={'startRow':_0x124320['first'],'endRow':_0x124320['last'],'includeAllSlots':!0x0};}else{const _0x1f0f15=_0x291662['getColumnIndexes'](_0x28523d);_0xb52da9={'startColumn':_0x1f0f15['first'],'endColumn':_0x1f0f15['last'],'includeAllSlots':!0x0};}const _0x1e9d1b=_0x291662['createTableWalker'](_0x3902ed,_0xb52da9),_0x16d406=Array['from'](_0x1e9d1b)['map'](({cell:_0x7bdeca})=>_0x7bdeca),_0xd09b4=Ne(_0x16d406['filter'](_0x1eea5e=>_0x1eea5e['hasAttribute'](_0x188f1a))),_0x33f290=Ne(_0x16d406['filter'](_0x151d5e=>!_0x151d5e['hasAttribute'](_0x188f1a)))['map'](_0x29dba1=>_0x5484ed['createRangeOn'](_0x29dba1)),_0x264297=_0x18a5cc['markMultiRangeDeletion'](_0x33f290,_0x1fd2c5);if(_0x264297&&('tableRow'==_0x264297['subType']||'tableColumn'==_0x264297['subType'])){const _0x4bbe32=this['_getSuggestionCoords'](_0x264297);for(const _0x4ae345 of _0xd09b4){const _0x11b684=_0x5484ed['createRangeOn'](_0x4ae345),_0x4b0c0a=_0x291662['getCellLocation'](_0x4ae345),_0x5f2374=_0x4ae345['getAttribute'](_0x188f1a)-0x1,_0x7a286a=_0x4bbe32[_0x532d71],_0x177974=_0x4bbe32[_0x5d8618];_0x7a286a<=_0x4b0c0a[_0x4cc5cd]&&_0x4b0c0a[_0x4cc5cd]+_0x5f2374<=_0x177974&&_0x264297['addRange'](_0x11b684);}}});});}function _0x204672(_0x31a9ac){const _0x26abc1=Array['from'](_0x3a752c['getRanges']())['map'](_0x53ff5d=>_0x5e8c26['fromRange'](_0x53ff5d));_0x1d404b['model']['change'](_0x8229c7=>{const _0x42d009=_0x8229c7['batch'];_0x31a9ac=_0x31a9ac['filter'](_0x20f039=>'$graveyard'!=_0x20f039['root']['rootName']),_0x8229c7['setSelection'](_0x31a9ac),_0x1d404b['commands']['get']('removeTableRow')['refresh'](),_0x1d404b['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1d404b['model']['enqueueChange'](()=>{_0x1d404b['model']['enqueueChange'](_0x42d009,_0x1e17d0=>{const _0x4e28b7=_0x26abc1['filter'](_0x2da763=>'$graveyard'!=_0x2da763['root']['rootName']);_0x4e28b7['length']>0x0&&_0x1e17d0['setSelection'](_0x4e28b7);for(const _0x2f26d2 of _0x26abc1)_0x2f26d2['detach']();});});});}function _0x26127d(_0x15d402){_0x1d404b['model']['change'](_0x26b1a4=>{const _0x30e37b=Array['from'](_0x3a752c['getRanges']())['map'](_0x42915e=>_0x5e8c26['fromRange'](_0x42915e)),_0x3eb147=[];for(const _0x53eb2a of _0x15d402)for(const _0x5a6940 of _0x53eb2a['getItems']({'shallow':!0x0}))_0x3eb147['push'](_0x5a6940);for(const _0x3640af of _0x3eb147)'$graveyard'!=_0x3640af['root']['rootName']&&(_0x26b1a4['setSelection'](_0x26b1a4['createPositionAt'](_0x3640af,0x0)),_0x1d404b['commands']['get']('removeTableColumn')['refresh'](),_0x1d404b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x38aa07=_0x30e37b['filter'](_0x6ef0c5=>'$graveyard'!=_0x6ef0c5['root']['rootName']);_0x38aa07['length']>0x0&&_0x26b1a4['setSelection'](_0x38aa07);for(const _0x142a18 of _0x30e37b)_0x142a18['detach']();});}function _0x15d93e(_0x59fe2c,_0x3b8ee0){return _0x3b8ee0['every'](_0xafe5fd=>_0x59fe2c['some'](_0x5765cb=>_0x5765cb['end']['isEqual'](_0xafe5fd['start'])||_0xafe5fd['end']['isEqual'](_0x5765cb['start'])));}function _0x4b0265(_0x324de1,_0x11b08f){return!_0x324de1['some'](_0x3c63a5=>_0x11b08f['some'](_0x40dfe6=>_0x3c63a5['isIntersecting'](_0x40dfe6)))&&_0x324de1['some'](_0x5c5b1b=>_0x11b08f['some'](_0x2b056d=>_0x5c5b1b['end']['isTouching'](_0x2b056d['start'])));}_0x1d404b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x47efa8,_0x2a0913,_0x56f463)=>{if(!_0x56f463['options']['showSuggestionHighlights'])return;const _0x2a52cd=_0x2a0913['item'];if(!_0x2a52cd||!_0x2a52cd['is']('element','tableCell'))return;const _0xd6110=_0x56f463['mapper']['toViewElement'](_0x2a52cd);if(_0xd6110){const {id:_0x419961,authorId:_0x54724f}=_0x18a5cc['_splitMarkerName'](_0x2a0913['markerName']);_0x2f3435(_0xd6110,_0x56f463['writer'],(_0x3d6724,_0x249790,_0x3f97a1)=>{_0x3f97a1['addClass'](_0x27d236(_0x249790['classes']),_0x3d6724),_0x3f97a1['setAttribute']('data-suggestion-id',_0x419961,_0x3d6724),_0x3f97a1['setAttribute']('data-author-id',_0x54724f,_0x3d6724);},(_0x3e1c5f,_0x5dfb2f,_0xc1fd52)=>{_0xc1fd52['removeClass'](_0x27d236(_0x5dfb2f['classes']),_0x3e1c5f),_0xc1fd52['removeAttribute']('data-suggestion-id',_0x3e1c5f),_0xc1fd52['removeAttribute']('data-author-id',_0x3e1c5f);});}},{'priority':'highest'}),_0x18a5cc['descriptionFactory']['registerDescriptionCallback'](_0x42fa66=>{if('insertion'!=_0x42fa66['type']&&'deletion'!=_0x42fa66['type'])return;const _0x477f95=_0x42fa66['getContainedElement']();if(null!=_0x477f95&&_0x477f95['is']('element','table')){if('insertion'==_0x42fa66['type']){const _0x1154ea=_0x42fa66['getItems']()['filter'](_0x3701a5=>_0x3701a5['is']('$textProxy'))['map'](_0xd8ba4a=>_0xd8ba4a['data']);if(_0x1154ea['length'])return{'type':'insertion','content':o(_0x36cf08,'*Insert:*\x20%0',o(_0x36cf08,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1154ea['join']('\x20')+'\x22'))};}if('deletion'==_0x42fa66['type']){const _0x4cf2c8=_0x42fa66['getItems']()['filter'](_0x8f10ac=>_0x8f10ac['is']('$textProxy'))['map'](_0x1d62a2=>_0x1d62a2['data']);if(_0x4cf2c8['length'])return{'type':'deletion','content':o(_0x36cf08,'*Remove:*\x20%0',o(_0x36cf08,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4cf2c8['join']('\x20')+'\x22'))};}}}),_0x18a5cc['descriptionFactory']['registerDescriptionCallback'](_0x20ad0e=>{if('tableRow'==_0x20ad0e['subType']){const _0x12e3d5=_0x20ad0e['getItems']()['filter'](_0x472ee8=>_0x472ee8['is']('$textProxy'))['map'](_0xee4077=>_0xee4077['data']),_0x5c302f=this['_getSuggestionCoords'](_0x20ad0e),_0x158420=_0x5c302f['maxRow']-_0x5c302f['minRow']+0x1;if('insertion'==_0x20ad0e['type'])return _0x12e3d5['length']?{'type':'insertion','content':o(_0x36cf08,'*Insert:*\x20%0',o(_0x36cf08,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x158420,'\x22'+_0x12e3d5['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x36cf08,'*Insert:*\x20%0',o(_0x36cf08,'ELEMENT_TABLE_ROW',_0x158420))};if('deletion'==_0x20ad0e['type'])return _0x12e3d5['length']?{'type':'deletion','content':o(_0x36cf08,'*Remove:*\x20%0',o(_0x36cf08,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x158420,'\x22'+_0x12e3d5['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x36cf08,'*Remove:*\x20%0',o(_0x36cf08,'ELEMENT_TABLE_ROW',_0x158420))};}if('tableColumn'==_0x20ad0e['subType']){const _0x225304=_0x20ad0e['getItems']()['filter'](_0x31dee5=>_0x31dee5['is']('$textProxy'))['map'](_0x15b0bb=>_0x15b0bb['data']),_0x5af721=this['_getSuggestionCoords'](_0x20ad0e),_0x3710d5=_0x5af721['maxColumn']-_0x5af721['minColumn']+0x1;if('insertion'==_0x20ad0e['type'])return _0x225304['length']?{'type':'insertion','content':o(_0x36cf08,'*Insert:*\x20%0',o(_0x36cf08,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3710d5,'\x22'+_0x225304['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x36cf08,'*Insert:*\x20%0',o(_0x36cf08,'ELEMENT_TABLE_COLUMN',_0x3710d5))};if('deletion'==_0x20ad0e['type'])return _0x225304['length']?{'type':'deletion','content':o(_0x36cf08,'*Remove:*\x20%0',o(_0x36cf08,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3710d5,'\x22'+_0x225304['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x36cf08,'*Remove:*\x20%0',o(_0x36cf08,'ELEMENT_TABLE_COLUMN',_0x3710d5))};}}),_0x18a5cc['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x204672),_0x18a5cc['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x204672),_0x18a5cc['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x26127d),_0x18a5cc['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x26127d),_0x18a5cc['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x15d93e),_0x18a5cc['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x15d93e),_0x18a5cc['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4b0265),_0x18a5cc['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4b0265);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1167d6=this['editor'],_0x9c24f1=_0x1167d6['model']['document']['selection'];return(_0x35864f,_0x4ef113)=>{_0x1167d6['model']['change'](_0x5ec68b=>{const {commandName:_0x2bd225,commandParams:_0x5e5093}=_0x4ef113;let _0xb915ea=_0x35864f[0x0]['end']['nodeBefore'];_0x5e5093&&_0x5e5093[0x0]&&!0x1===_0x5e5093[0x0]['forceValue']&&(_0xb915ea=_0x35864f[0x0]['start']['nodeAfter']);const _0x3c9399=_0x5ec68b['createRangeIn'](_0xb915ea);if('$graveyard'==_0x3c9399['root']['rootName'])return;const _0x3d55d8=Array['from'](_0x9c24f1['getRanges']())['map'](_0x42a1fc=>_0x5e8c26['fromRange'](_0x42a1fc));_0x5ec68b['setSelection'](_0x3c9399),_0x1167d6['commands']['get'](_0x2bd225)['refresh'](),_0x5e5093['push']({'forceDefaultExecution':!0x0}),_0x1167d6['execute'](_0x2bd225,..._0x5e5093);const _0x2048aa=_0x3d55d8['filter'](_0x56b0ad=>'$graveyard'!=_0x56b0ad['root']['rootName']);_0x2048aa['length']>0x0&&_0x5ec68b['setSelection'](_0x2048aa);for(const _0x483dab of _0x3d55d8)_0x483dab['detach']();});};}['_getCoordsForCells'](_0x41847d){const _0x4e29f3=this['editor']['plugins']['get']('TableUtils');let _0x5c2a39=Number['MAX_SAFE_INTEGER'],_0x2b95d5=Number['MIN_SAFE_INTEGER'],_0x1ff939=Number['MAX_SAFE_INTEGER'],_0x2be6c3=Number['MIN_SAFE_INTEGER'];for(const _0x30adf4 of _0x41847d){if('$graveyard'==_0x30adf4['root']['rootName'])continue;const {row:_0x4dbfee,column:_0xfa08d1}=_0x4e29f3['getCellLocation'](_0x30adf4),_0xc0d550=_0x30adf4['hasAttribute']('rowspan')?_0x30adf4['getAttribute']('rowspan')-0x1:0x0,_0x59af31=_0x30adf4['hasAttribute']('colspan')?_0x30adf4['getAttribute']('colspan')-0x1:0x0;_0x5c2a39=_0x4dbfee<_0x5c2a39?_0x4dbfee:_0x5c2a39,_0x2b95d5=_0x4dbfee+_0xc0d550>_0x2b95d5?_0x4dbfee+_0xc0d550:_0x2b95d5,_0x1ff939=_0xfa08d1<_0x1ff939?_0xfa08d1:_0x1ff939,_0x2be6c3=_0xfa08d1+_0x59af31>_0x2be6c3?_0xfa08d1+_0x59af31:_0x2be6c3;}return{'minRow':_0x5c2a39,'maxRow':_0x2b95d5,'minColumn':_0x1ff939,'maxColumn':_0x2be6c3};}['_setupColumnsRowsFixing'](){const _0xb99b96=this['editor'],_0xaf45c1=_0xb99b96['plugins']['get']('TrackChangesEditing'),_0x2d99ac=_0xb99b96['plugins']['get']('TableUtils');_0xb99b96['model']['document']['on']('change:data',()=>{const _0x4f639f=Array['from'](_0xb99b96['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3b3709,data:_0xf39037}of _0x4f639f){const {group:_0x5c4341,id:_0x162100,subType:_0xd178de}=_0xaf45c1['_splitMarkerName'](_0x3b3709);if('suggestion'!=_0x5c4341)continue;if(null!=_0xf39037['oldRange'])continue;const _0x48273b=_0xaf45c1['getSuggestion'](_0x162100);this['_tablePostFixingSubtypes']['includes'](_0xd178de)&&this['_tableSuggestions']['add'](_0x48273b);}},{'priority':'low'});const _0x4e26c9=(_0x25d500,_0x5643be)=>{let _0x4c844c=!0x1;const _0x1f00cf=_0x5643be['createRangeOn'](_0x25d500),_0xce80d6=_0x25d500['findAncestor']('table'),_0x65fe29=_0x2d99ac['getCellLocation'](_0x25d500);for(const _0x4ce9be of this['_tableSuggestions']){const _0x51c1fb=_0x4ce9be['subType'],_0x13f8aa=_0x51c1fb['startsWith']('tablePaste'),_0x1ef180=_0x51c1fb['substr'](_0x13f8aa?0xa:0x5),_0x18f214=_0x1ef180['toLowerCase'](),_0x3dd3c0=_0x18f214['substr'](0x0,0x3)+'span',_0x2580cf='min'+_0x1ef180,_0x54d01c='max'+_0x1ef180;if(!_0x4ce9be['isInContent'])continue;if(_0xce80d6!=_0x4ce9be['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4ce9be['isIntersectingWithRange'](_0x1f00cf))continue;const _0x118ac6=_0x25d500['hasAttribute'](_0x3dd3c0)?_0x25d500['getAttribute'](_0x3dd3c0)-0x1:0x0,_0x5d01ca=this['_getSuggestionCoords'](_0x4ce9be),_0x236e3f=_0x5d01ca[_0x2580cf],_0x48009b=_0x5d01ca[_0x54d01c];_0x236e3f<=_0x65fe29[_0x18f214]&&_0x65fe29[_0x18f214]+_0x118ac6<=_0x48009b&&(_0x4ce9be['addRange'](_0x1f00cf),_0x4c844c=!0x0);}return _0x4c844c;};_0xb99b96['model']['document']['registerPostFixer'](_0x407976=>{let _0x536d25=!0x1;for(const _0x3c7ba5 of _0xb99b96['model']['document']['differ']['getChanges']())if('insert'==_0x3c7ba5['type']){if('tableRow'==_0x3c7ba5['name']){for(const _0x195ddc of _0x3c7ba5['position']['nodeAfter']['getChildren']())_0x536d25=_0x536d25||_0x4e26c9(_0x195ddc,_0x407976);}else'tableCell'==_0x3c7ba5['name']&&(_0x536d25=_0x536d25||_0x4e26c9(_0x3c7ba5['position']['nodeAfter'],_0x407976));}return _0x536d25;});}['_getSuggestionCoords'](_0x16fe38){return this['_getCoordsForCells'](_0x16fe38['getRanges']()['map'](_0x5bf870=>_0x5bf870['start']['nodeAfter']));}}function Ne(_0x40ae04){return Array['from'](new Set(_0x40ae04)['values']());}class _t extends _0x17823b{static get['requires'](){return[At];}['afterInit'](){const _0x33d465=this['editor'],_0x31e624=_0x33d465['model']['document']['selection'],_0x17814c=_0x33d465['locale'];if(!_0x33d465['plugins']['has']('TableEditing'))return;const _0x3ac157=_0x33d465['plugins']['get']('TrackChangesEditing'),_0x4e30ab=_0x33d465['plugins']['get']('TableUtils'),_0x12dcb2=_0x33d465['plugins']['get'](At);_0x12dcb2['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3ac157['enableCommand']('mergeTableCells',()=>{const _0x59a3ba=_0x4e30ab['getSelectionAffectedTableCells'](_0x33d465['model']['document']['selection']);_0x33d465['model']['change'](()=>{_0x3ac157['markMultiRangeBlockFormat'](_0x59a3ba,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x33d465['commands']['get']('mergeTableCells')['on']('execute',(_0x39b557,_0x41dde1)=>{_0x33d465['commands']['get']('trackChanges')['value']&&(_0x41dde1['length']>0x0&&_0x41dde1[_0x41dde1['length']-0x1]&&_0x41dde1[_0x41dde1['length']-0x1]['forceDefaultExecution']||_0x3ac157['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x39b557['stop']());},{'priority':'highest'});for(const _0x37f742 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xacc403=_0x33d465['commands']['get'](_0x37f742);_0x3ac157['enableCommand'](_0x37f742,()=>{const _0x1c39b2=_0x33d465['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3a6ddd=>_0x3a6ddd['is']('element','tableCell')),_0x18c945=_0xacc403['value'];_0x33d465['model']['change'](()=>{_0x3ac157['markMultiRangeBlockFormat']([_0x1c39b2,_0x18c945],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x58711d of['splitTableCellVertically','splitTableCellHorizontally']){const _0x30e073=_0x33d465['commands']['get'](_0x58711d);_0x3ac157['enableCommand'](_0x58711d,()=>{const _0x56ff57=_0x4e30ab['getSelectionAffectedTableCells'](_0x33d465['model']['document']['selection'])[0x0],_0x1c2704=_0x56ff57['findAncestor']('table'),{column:_0x1744f0,row:_0x28fca5}=_0x4e30ab['getCellLocation'](_0x56ff57);let _0xa95e32=[];if('horizontally'==_0x30e073['direction']){const _0x3703b1=_0x4e30ab['createTableWalker'](_0x1c2704,{'startRow':_0x28fca5,'endRow':_0x28fca5,'includeAllSlots':!0x0});_0xa95e32=Array['from'](_0x3703b1)['map'](_0x5b5c1e=>_0x5b5c1e['cell']);}else{const _0x3de23e=_0x4e30ab['createTableWalker'](_0x1c2704,{'column':_0x1744f0,'includeAllSlots':!0x0});_0xa95e32=Array['from'](_0x3de23e)['map'](_0x38cf90=>_0x38cf90['cell']);}_0x33d465['model']['change'](_0x4c2023=>{_0x3ac157['markBlockFormat'](_0x4c2023['createRangeOn'](_0x56ff57),{'commandName':_0x58711d,'commandParams':[]},_0xa95e32,_0x58711d);});});}_0x3ac157['descriptionFactory']['registerDescriptionCallback'](_0x142289=>{if('formatBlock'!=_0x142289['type']&&'formatInline'!=_0x142289['type'])return;const {data:_0x4b339b}=_0x142289;return _0x4b339b&&'mergeTableCells'==_0x4b339b['commandName']?{'type':'format','content':o(_0x17814c,'*Merge\x20cells*')}:void 0x0;}),_0x3ac157['descriptionFactory']['registerDescriptionCallback'](_0x30b3a7=>{if('formatBlock'!=_0x30b3a7['type']&&'formatInline'!=_0x30b3a7['type'])return;const {data:_0x300306}=_0x30b3a7;return _0x300306?'splitTableCellVertically'==_0x300306['commandName']?{'type':'format','content':o(_0x17814c,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x300306['commandName']?{'type':'format','content':o(_0x17814c,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3f30c5=_0x12dcb2['_acceptFormatSuggestionCallbackFactory']();for(const _0x45f2f4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3ac157['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x45f2f4,'accept',_0x3f30c5);for(const _0x1cda9a of['splitTableCellVertically','splitTableCellHorizontally'])_0x3ac157['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1cda9a,'accept',_0x3f30c5);_0x3ac157['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3ba09e=>{_0x33d465['model']['change'](_0x140859=>{const _0x61399d=Array['from'](_0x31e624['getRanges']())['map'](_0x42fce3=>_0x5e8c26['fromRange'](_0x42fce3));_0x140859['setSelection'](_0x3ba09e),_0x33d465['commands']['get']('mergeTableCells')['refresh'](),_0x33d465['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x29d13a=_0x61399d['filter'](_0x13b576=>'$graveyard'!=_0x13b576['root']['rootName']);_0x29d13a['length']>0x0&&_0x140859['setSelection'](_0x29d13a);for(const _0x304902 of _0x61399d)_0x304902['detach']();});});for(const _0x2c8978 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x40de1c=_0x33d465['commands']['get'](_0x2c8978);_0x40de1c['on']('set:isEnabled',(_0x43100c,_0xc1011d,_0x55e988)=>{if(_0x55e988){const _0x36725c=_0x33d465['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2c334c=>_0x2c334c['is']('element','tableCell'));this['_areMergableCells'](_0x40de1c['value'],_0x36725c)||(_0x43100c['return']=!0x1,_0x43100c['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5f2482=this['editor']['commands']['get']('mergeTableCells'),_0xa29d=this['editor']['plugins']['get']('TableUtils');if(!_0x5f2482['isEnabled'])return!0x1;const _0x30a835=_0xa29d['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1a253f of _0x30a835)for(const _0x2a0b80 of _0x30a835)if(_0x1a253f!=_0x2a0b80&&!this['_areMergableCells'](_0x1a253f,_0x2a0b80))return!0x1;return!0x0;}['_areMergableCells'](_0x2e17e0,_0x3f62a1){const _0x2dc2eb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x22d18d=this['editor']['model']['createRangeOn'](_0x2e17e0),_0x412c03=this['editor']['model']['createRangeOn'](_0x3f62a1),_0x5730c0=new Set(),_0x126d82=new Set();for(const _0x336120 of _0x2dc2eb['getSuggestions']())if(('insertion'==_0x336120['type']||'deletion'==_0x336120['type']||'mergeTableCells'==_0x336120['subType'])&&_0x336120['isInContent']){for(const _0x301167 of _0x336120['getRanges']())_0x301167['containsRange'](_0x22d18d,!0x0)&&_0x5730c0['add'](_0x336120['type']+':'+_0x336120['author']['id']),_0x301167['containsRange'](_0x412c03,!0x0)&&_0x126d82['add'](_0x336120['type']+':'+_0x336120['author']['id']);}if(_0x5730c0['size']!=_0x126d82['size'])return!0x1;for(const _0xced838 of _0x5730c0)if(!_0x126d82['has'](_0xced838))return!0x1;return!0x0;}}class Ct extends _0x17823b{static get['requires'](){return[At];}['afterInit'](){const _0x49a4cf=this['editor'];if(!_0x49a4cf['plugins']['has']('TableEditing'))return;const _0x3735ac=_0x49a4cf['locale'],_0x496c5d=_0x49a4cf['plugins']['get']('TrackChangesEditing');_0x496c5d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x496c5d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x496c5d['registerBlockAttribute']('headingRows'),_0x496c5d['registerBlockAttribute']('headingColumns'),_0x496c5d['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x3735ac,'FORMAT_HEADER_ROW')),_0x496c5d['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x3735ac,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3690a1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35cfb8=this['editor']['plugins']['get']('TableUtils'),_0x54a8a0=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x507a9c({showActiveMarker:_0x3eb36f=!0x0,setDataAttribute:_0x2ec1e7=!0x0}={}){return(_0x4595a6,_0x245666,_0x59c9fd)=>{const {type:_0x11fa52,id:_0x4ae102}=_0x3690a1['_splitMarkerName'](_0x245666['markerName']),_0x2ed0ea=_0x3690a1['getSuggestion'](_0x4ae102),_0x1c0b51=_0x2ed0ea['data'];if('formatBlock'!=_0x2ed0ea['type']||!_0x1c0b51||'setTableColumnHeader'!=_0x1c0b51['commandName'])return;if(_0x245666['item'])return void _0x4595a6['stop']();if(!_0x59c9fd['consumable']['consume'](_0x245666['markerRange'],_0x4595a6['name']))return;const _0x531f06=_0x245666['markerRange']['start']['nodeAfter'],_0x437d2a=_0x245666['markerRange']['end']['nodeBefore'],_0x1945a6=_0x531f06['parent']['parent'],{column:_0x1f776f}=_0x35cfb8['getCellLocation'](_0x531f06),{column:_0x554498}=_0x35cfb8['getCellLocation'](_0x437d2a);for(let _0x4a7e03=_0x1f776f;_0x4a7e03<=_0x554498;_0x4a7e03++){const _0x598823=_0x35cfb8['createTableWalker'](_0x1945a6,{'column':_0x4a7e03,'includeAllSlots':!0x1});for(const _0xe5c94 of _0x598823){const _0x30e99e=_0xe5c94['cell'],_0x25c544=_0x59c9fd['mapper']['toViewElement'](_0x30e99e);_0x59c9fd['writer']['addClass']('ck-suggestion-marker-'+_0x11fa52,_0x25c544),_0x2ec1e7&&_0x59c9fd['writer']['setAttribute']('data-suggestion',_0x4ae102,_0x25c544),_0x59c9fd['mapper']['bindElementToMarker'](_0x25c544,_0x245666['markerName']),_0x3eb36f&&(_0x3690a1['activeMarkers']['includes'](_0x245666['markerName'])?_0x59c9fd['writer']['addClass']('ck-suggestion-marker--active',_0x25c544):_0x59c9fd['writer']['removeClass']('ck-suggestion-marker--active',_0x25c544));}}};}_0x3690a1['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x54a8a0),_0x3690a1['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x54a8a0),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x507a9c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x548b88,_0x4c924c,_0x39f057)=>{_0x39f057['options']['showSuggestionHighlights']&&_0x507a9c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x548b88,_0x4c924c,_0x39f057);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x499368,_0x280838,_0x48ce7a)=>{const {type:_0x43ce11,id:_0x1c38bb}=_0x3690a1['_splitMarkerName'](_0x280838['markerName']),_0x2a4cc1=_0x3690a1['getSuggestion'](_0x1c38bb),_0x2cfbb6=_0x2a4cc1['data'];if('formatBlock'!=_0x2a4cc1['type']||!_0x2cfbb6||'setTableColumnHeader'!=_0x2cfbb6['commandName'])return;const _0x2e0113=_0x48ce7a['mapper']['markerNameToElements'](_0x280838['markerName']);if(_0x2e0113){for(const _0x5d7850 of _0x2e0113)_0x48ce7a['writer']['removeClass']('ck-suggestion-marker-'+_0x43ce11,_0x5d7850),_0x48ce7a['writer']['removeClass']('ck-suggestion-marker--active',_0x5d7850),_0x48ce7a['writer']['removeAttribute']('data-suggestion',_0x5d7850),_0x48ce7a['mapper']['unbindElementFromMarkerName'](_0x5d7850,_0x280838['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd07992=this['editor'],_0x241110=_0xd07992['locale'];function _0xc86811(_0x2c6009){return{'type':'format','content':o(_0x241110,'*Format:*\x20%0',_0x2c6009)};}_0xd07992['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xbdc780=>{if('formatBlock'!=_0xbdc780['type'])return;const {data:_0x4a1f89}=_0xbdc780;if(_0x4a1f89){if('setTableRowHeader'==_0x4a1f89['commandName']){const _0x2ca0d9=_0x4a1f89['commandParams'][0x0]['forceValue'];return _0xc86811(o(_0x241110,_0x2ca0d9?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4a1f89['commandName']){const _0x444ca5=_0x4a1f89['commandParams'][0x0]['forceValue'];return _0xc86811(o(_0x241110,_0x444ca5?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x17823b{['afterInit'](){const _0x200dc8=this['editor'],_0x1102df=_0x200dc8['locale'],_0x556eff=_0x200dc8['plugins']['get']('TrackChangesEditing');function _0x85e988(_0x5293a7){return{'type':'format','content':''+o(_0x1102df,'*Set\x20table\x20type:*\x20%0',_0x5293a7)};}_0x200dc8['plugins']['has']('TableLayout')&&(_0x556eff['enableCommand']('insertTableLayout'),_0x556eff['enableDefaultAttributesIntegration']('tableType'),_0x556eff['registerBlockAttribute']('tableType'),_0x556eff['descriptionFactory']['registerElementLabel'](_0xe75374=>_0xe75374['is']('element','table')&&'layout'===_0xe75374['getAttribute']('tableType'),_0x320e6f=>o(_0x1102df,'ELEMENT_LAYOUT_TABLE',_0x320e6f)),_0x556eff['descriptionFactory']['registerDescriptionCallback'](_0x4feac9=>{const {data:_0x4ac16d}=_0x4feac9;if(_0x4ac16d&&'tableType'==_0x4ac16d['key'])switch(_0x4ac16d['newValue']){case'layout':return _0x85e988(o(_0x1102df,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x85e988(o(_0x1102df,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Be['map'](_0x105110=>[_0x105110,null]));class Nt extends _0x17823b{static get['requires'](){return[At];}['afterInit'](){const _0x47eea7=this['editor'];if(!_0x47eea7['plugins']['has']('TableClipboard'))return;const _0x41d5=_0x47eea7['plugins']['get']('TrackChangesEditing'),_0x5b7350=_0x47eea7['plugins']['get']('TableUtils'),_0x726885=_0x47eea7['plugins']['get'](At),_0x1deaba=_0x47eea7['plugins']['get']('TableClipboard'),_0x4490e8=_0x47eea7['plugins']['get']('TableSelection'),_0x3433bd=_0x47eea7['plugins']['get'](_0x5ebf41);_0x726885['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x47eea7['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x47eea7['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1b179e=null,_0x1d13dd=!0x1;_0x3433bd['on']('contentInsertion',(_0xbfba29,_0x3ce400)=>{_0x1d13dd='paste'===_0x3ce400['method'];}),_0x47eea7['model']['on']('insertContent',(_0x3de8e4,_0x308bf9)=>{if(!_0x1d13dd&&null===_0x4490e8['getSelectedTableCells']())return;const [_0x4a54f2,_0xba1da1]=_0x308bf9,_0x1a95d4=_0x308bf9[_0x308bf9['length']-0x1];_0x1a95d4&&_0x1a95d4['forceDefaultExecution']||_0x41d5['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x52bed3,_0x390989,_0x3ec3da,_0x284b09,_0x30cc0e){if(_0x390989&&!_0x390989['is']('documentSelection'))return!0x1;const _0x20d708=_0x30cc0e['getTableIfOnlyTableInContent'](_0x52bed3,_0x3ec3da);if(!_0x20d708||!Ue(_0x20d708,void 0x0,_0x284b09))return!0x1;const _0x1e1ff3=_0x284b09['getSelectionAffectedTableCells'](_0x3ec3da['document']['selection']);if(!_0x1e1ff3['length'])return!0x1;const _0x1b6974=_0x1e1ff3[0x0]['findAncestor']('table'),_0x1c8bd6=_0x284b09['getRowIndexes'](_0x1e1ff3),_0x1b5e7d=_0x284b09['getColumnIndexes'](_0x1e1ff3),_0x293154={'startRow':_0x1c8bd6['first'],'endRow':_0x1c8bd6['last'],'startColumn':_0x1b5e7d['first'],'endColumn':_0x1b5e7d['last']};return 0x1==_0x1e1ff3['length']&&(_0x293154['endRow']+=_0x284b09['getRows'](_0x20d708)-0x1,_0x293154['endColumn']+=_0x284b09['getColumns'](_0x20d708)-0x1),Ue(_0x1b6974,_0x293154,_0x284b09);}(_0x4a54f2,_0xba1da1,_0x47eea7['model'],_0x5b7350,_0x1deaba)&&(_0x3de8e4['stop'](),_0x1b179e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x47eea7['model']['change'](()=>{_0x47eea7['model']['insertContent'](_0x308bf9[0x0],_0x308bf9[0x1],_0x308bf9[0x2],{'forceDefaultExecution':!0x0});const _0x9980d9=_0x1fe55e(),{rowInsertionRanges:_0x3ccfd3,columnInsertionRanges:_0x3249d5,insertionRanges:_0x381236,deletionRanges:_0x54c27d,cells:_0x56b9dd}=_0x1b179e;_0x3ccfd3['length']&&_0x41d5['markMultiRangeInsertion'](_0x3ccfd3,'tablePasteRow',{'tablePasteChainId':_0x9980d9}),_0x3249d5['length']&&_0x41d5['markMultiRangeInsertion'](_0x3249d5,'tablePasteColumn',{'tablePasteChainId':_0x9980d9}),_0x381236['length']&&(_0x41d5['markMultiRangeInsertion'](_0x381236,'tablePaste',{'tablePasteChainId':_0x9980d9,'skipNestingCheck':!0x0}),_0x381236['forEach'](_0x267e62=>_0x267e62['detach']?.())),_0x54c27d['length']&&(_0x41d5['markMultiRangeDeletion'](_0x54c27d,'tablePaste',{'tablePasteChainId':_0x9980d9,'skipNestingCheck':!0x0}),_0x54c27d['forEach'](_0x2d3d89=>_0x2d3d89['detach']?.()));const _0x4005bc=_0x41d5['markMultiRangeBlockFormat'](_0x56b9dd['map'](({element:_0x1eb70d})=>_0x1eb70d),{'formatGroupId':_0x1fe55e()},[],'tablePasteCell',{'tablePasteChainId':_0x9980d9});if(_0x4005bc){const _0x22a55c=_0x4005bc['getMarkers'](),_0x4aeebd=[];for(const {element:_0xec3d7,attributes:_0x4e8815}of _0x56b9dd){if(!_0x4e8815)continue;const _0x29e69f=_0x47eea7['model']['createRangeOn'](_0xec3d7),_0x410cdc=_0x22a55c['find'](_0x3c80b7=>_0x3c80b7['getRange']()['isEqual'](_0x29e69f));_0x410cdc&&_0x4aeebd['push']([_0x410cdc['name'],_0x4e8815]);}_0x4aeebd['length']&&_0x4005bc['setAttribute']('markerAttributes',Object['fromEntries'](_0x4aeebd));}_0x1b179e=null;}));},{'priority':_0x4a4dfb['high']+0xa}),_0x3433bd['on']('contentInsertion',()=>{_0x1d13dd=!0x1;},{'priority':'lowest'}),_0x47eea7['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1a6b7e,_0x425942)=>{const [_0x1540eb,_0x149b45,,_0x2b8406]=_0x425942;if(!_0x1b179e)return;_0x1a6b7e['stop']();const _0x13defc=_0x1540eb['cell'],_0x590da9=_0x149b45,_0x7994e4=Oe(_0x13defc),_0x517ed3=Oe(_0x590da9);_0x1a6b7e['return']=_0x13defc;let _0x36f0b6=null,_0x2fb765=null;if(_0x517ed3||_0x7994e4){if(_0x7994e4&&!_0x517ed3){_0x2b8406['remove'](_0x13defc['getChild'](0x0));for(const _0x5f5380 of Array['from'](_0x590da9['getChildren']()))_0x2b8406['insert'](_0x5f5380,_0x13defc,'end');const _0x5eee32=_0x1b179e['rowInsertionIndexes']['includes'](_0x1540eb['row']),_0x28dacc=_0x1b179e['columnInsertionIndexes']['includes'](_0x1540eb['column']);_0x5eee32||_0x28dacc||(_0x36f0b6=_0x5e8c26['fromRange'](_0x2b8406['createRangeIn'](_0x13defc)));}else _0x517ed3&&!_0x7994e4&&(_0x2fb765=_0x2b8406['createRangeIn'](_0x13defc));}else{const _0x4a66d0=_0x2b8406['createElement']('tableCellSuggestion'),_0x21afab=_0x2b8406['createElement']('tableCellSuggestion');_0x2b8406['wrap'](_0x2b8406['createRangeIn'](_0x13defc),_0x21afab),_0x2b8406['insert'](_0x4a66d0,_0x13defc,0x0);for(const _0x4f125b of Array['from'](_0x590da9['getChildren']()))_0x2b8406['insert'](_0x4f125b,_0x4a66d0,'end');_0x36f0b6=_0x5e8c26['fromRange'](_0x2b8406['createRangeOn'](_0x4a66d0)),_0x2fb765=_0x5e8c26['fromRange'](_0x2b8406['createRangeOn'](_0x21afab));}const _0x36e0e6=Array['from'](_0x590da9['getAttributes']())['filter'](([_0x2b8437])=>Be['includes'](_0x2b8437));_0x1b179e['cells']['push']({'element':_0x13defc,'attributes':_0x36e0e6['length']?Object['fromEntries'](_0x36e0e6):null}),_0x36f0b6&&_0x1b179e['insertionRanges']['push'](_0x36f0b6),_0x2fb765&&_0x1b179e['deletionRanges']['push'](_0x2fb765);},{'priority':'high'}),_0x5b7350['on']('insertColumns',(_0x4fec0f,_0x47b7fd)=>{const [_0x2b390f,_0x4d5cf4={}]=_0x47b7fd;if(!_0x1b179e)return;const _0x228bc6=_0x4d5cf4['at']||0x0,_0x469312=_0x4d5cf4['columns']||0x1;_0x1b179e['columnInsertionIndexes']=new Array(_0x469312)['fill'](_0x228bc6)['map']((_0x38a678,_0x75c78)=>_0x38a678+_0x75c78);for(const {cell:_0x5f25fd}of _0x5b7350['createTableWalker'](_0x2b390f,{'startColumn':_0x228bc6,'endColumn':_0x228bc6+_0x469312-0x1}))_0x1b179e['columnInsertionRanges']['push'](_0x47eea7['model']['createRangeOn'](_0x5f25fd));},{'priority':'low'}),_0x5b7350['on']('insertRows',(_0x23b188,_0x3c0c2b)=>{const [_0x34b3d1,_0x2884db={}]=_0x3c0c2b;if(!_0x1b179e)return;const _0x11cce8=_0x2884db['at']||0x0,_0x29af96=_0x2884db['rows']||0x1;_0x1b179e['rowInsertionIndexes']=new Array(_0x29af96)['fill'](_0x11cce8)['map']((_0x1169e4,_0x4652d4)=>_0x1169e4+_0x4652d4);for(const {cell:_0x44750e}of _0x5b7350['createTableWalker'](_0x34b3d1,{'startRow':_0x11cce8,'endRow':_0x11cce8+_0x29af96-0x1}))_0x1b179e['rowInsertionRanges']['push'](_0x47eea7['model']['createRangeOn'](_0x44750e));},{'priority':'low'}),_0x41d5['descriptionFactory']['registerDescriptionCallback'](_0xf4577e=>{if(_0xf4577e['subType']&&_0xf4577e['subType']['startsWith']('tablePaste'))return _0xf4577e['previous']?{}:{'type':'insertion','content':o(_0x47eea7['locale'],'*Replace\x20table\x20cells*')};});const _0x363138=()=>!0x1;for(const _0x275de9 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x41d5['_suggestionFactory']['registerCustomCallback']('insertion',_0x275de9,'join',_0x363138),_0x41d5['_suggestionFactory']['registerCustomCallback']('deletion',_0x275de9,'join',_0x363138),_0x41d5['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x275de9,'join',_0x363138);_0x41d5['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x363138),_0x41d5['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1fc005,_0x25b6c6,_0xad6965)=>{const _0xa48054=_0x1fc005['map'](_0x537ba8=>_0x537ba8['getContainedElement']())['filter'](_0x3527dc=>_0x3527dc),_0x461bd5=new Map(_0xa48054['map'](_0x42a122=>[_0x42a122,null]));if(_0x1b179e){for(const {element:_0x372315,attributes:_0x22d4b5}of _0x1b179e['cells'])_0x22d4b5&&_0x461bd5['set'](_0x372315,_0x22d4b5);}else{if(_0xad6965&&_0xad6965['markerAttributes'])for(const [_0x5b66b4,_0x798fbc]of Object['entries'](_0xad6965['markerAttributes'])){const _0x45e27d=_0x47eea7['model']['markers']['get'](_0x5b66b4),_0x10f15b=_0x45e27d?_0x45e27d['getRange']()['getContainedElement']():null;_0x10f15b&&_0x461bd5['set'](_0x10f15b,_0x798fbc);}}_0x47eea7['model']['change'](_0x3a9723=>{for(const [_0x436834,_0x455032]of _0x461bd5)_0x3a9723['setAttributes']({...xe,..._0x455032},_0x436834);});});const _0x16d85b=(_0x11c978,_0x51e68b)=>{_0x41d5['_suggestionFactory']['registerCustomCallback'](_0x11c978,'tablePaste',_0x51e68b,(_0x2916a0,_0x12e0e1,_0xda551e)=>{_0x47eea7['model']['change'](_0xa8b425=>{const _0x2fced4=[];for(const _0x5dc6f8 of _0x2916a0){const _0x2dce60=_0x5dc6f8['start']['nodeAfter'];_0x2dce60['is']('element','tableCellSuggestion')&&_0x2fced4['push'](_0x2dce60);}_0x41d5['_suggestionFactory']['getSuggestionCallback'](_0x11c978,null,_0x51e68b)(_0x2916a0,_0x12e0e1,_0xda551e);for(const _0x18503d of _0x2fced4)'$graveyard'!=_0x18503d['root']['rootName']&&_0xa8b425['unwrap'](_0x18503d);});});};_0x16d85b('insertion','accept'),_0x16d85b('insertion','discard'),_0x16d85b('deletion','accept'),_0x16d85b('deletion','discard'),_0x41d5['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5d3f6a=>{const _0x94b6a8=_0x5d3f6a['map'](_0x27a098=>_0x27a098['getContainedElement']()),_0xa8707=_0x94b6a8[0x0]['findAncestor']('table'),{minRow:_0x309cf1,maxRow:_0x307d6b}=_0x726885['_getCoordsForCells'](_0x94b6a8);_0x5b7350['removeRows'](_0xa8707,{'at':_0x309cf1,'rows':_0x307d6b-_0x309cf1+0x1});}),_0x41d5['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2287a1=>{const _0x5efb2d=_0x2287a1['map'](_0x35c36a=>_0x35c36a['getContainedElement']()),_0x269da5=_0x5efb2d[0x0]['findAncestor']('table'),{minColumn:_0x2a7615,maxColumn:_0x38a5da}=_0x726885['_getCoordsForCells'](_0x5efb2d);_0x5b7350['removeColumns'](_0x269da5,{'at':_0x2a7615,'columns':_0x38a5da-_0x2a7615+0x1});});const _0x316cc6=(_0x54bd8f,_0xd3e202)=>{if(!_0xd3e202['subType']||!_0xd3e202['subType']['startsWith']('tablePaste'))return;const _0x2973c1=_0xd3e202['attributes']['tablePasteChainId'],_0x2cc82b=_0x41d5['getSuggestions']()['filter'](_0x2c3e80=>_0x2c3e80['isInContent']&&_0x2c3e80['attributes']&&_0x2c3e80['attributes']['tablePasteChainId']==_0x2973c1);_0x2cc82b['length']&&_0xd3e202['getAllAdjacentSuggestions']()['length']!=_0x2cc82b['length']&&_0x2cc82b['reduce']((_0x513978,_0xed4447)=>(_0x513978['next']=_0xed4447,_0xed4447['previous']=_0x513978,_0xed4447));};function _0x1764c2(_0x17b452,_0x4ce6a8=!0x0){const {id:_0x2d23f5,authorId:_0x55bbe8}=_0x41d5['_splitMarkerName'](_0x17b452['markerName']),_0x2090ec=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x481fac=_0x41d5['activeMarkers']['includes'](_0x17b452['markerName']);return _0x481fac&&_0x2090ec['push']('ck-suggestion-marker--active'),{'classes':_0x2090ec,'attributes':{'data-suggestion':_0x2d23f5,'data-author-id':_0x55bbe8},'priority':_0x481fac&&_0x4ce6a8?0xbc2:0xbb8};}_0x41d5['on']('suggestionLoaded',_0x316cc6,{'priority':'high'}),_0x41d5['on']('suggestionUnloaded',_0x316cc6,{'priority':'high'}),_0x47eea7['model']['document']['registerPostFixer'](()=>{let _0x4df597=!0x1;const _0x434ff5=Array['from'](_0x47eea7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x43eaac,data:_0xf76993}of _0x434ff5){const {group:_0x40e2a,type:_0x6d6d85,id:_0x4e9daf}=_0x41d5['_splitMarkerName'](_0x43eaac);if('suggestion'!=_0x40e2a||'deletion'!=_0x6d6d85||_0xf76993['oldRange'])continue;if(!_0x41d5['hasSuggestion'](_0x4e9daf))continue;const _0x25f160=_0x41d5['getSuggestion'](_0x4e9daf)['getRanges'](),_0x4e4b5b=_0x47eea7['plugins']['get']('Users')['me'];for(const _0x55920f of _0x41d5['getSuggestions']()){if(!_0x55920f['isInContent']||_0x55920f['author']!=_0x4e4b5b)continue;if('formatBlock'!=_0x55920f['type']||'tablePasteCell'!=_0x55920f['subType'])continue;if(_0x55920f['getRanges']()['every'](_0x5eb4e4=>_0x25f160['some'](_0x157905=>_0x157905['containsRange'](_0x5eb4e4,!0x0)))){for(const _0x1042ec of _0x55920f['getAllAdjacentSuggestions']())_0x1042ec['isInContent']&&(_0x1042ec['discard'](),_0x4df597=!0x0);}}}return _0x4df597;}),_0x47eea7['model']['document']['registerPostFixer'](_0xf41990=>{const _0x1340cb=_0x47eea7['commands']['get']('redo');if(!_0x1340cb||!_0x1340cb['_createdBatches']['has'](_0xf41990['batch']))return!0x1;let _0x5628ae=!0x1;const _0x4db382=_0x47eea7['plugins']['get']('Users')['me'],_0x28e5f3=_0x47eea7['model']['document']['differ']['getChanges'](),_0x4e2912=Array['from'](_0x47eea7['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x261bed,data:_0x51c418})=>{const {group:_0x44f6fc,subType:_0x1fc96c,authorId:_0x1515ab}=_0x41d5['_splitMarkerName'](_0x261bed);return'suggestion'==_0x44f6fc&&'tablePaste'==_0x1fc96c&&_0x1515ab==_0x4db382['id']&&!_0x51c418['oldRange'];});for(const _0x2188f9 of _0x28e5f3){if('insert'!=_0x2188f9['type']||'tableCellSuggestion'!=_0x2188f9['name']||0x1!=_0x2188f9['length'])continue;const _0x37f46d=_0xf41990['createRange'](_0x2188f9['position'],_0x2188f9['position']['getShiftedBy'](0x1));if(!_0x4e2912['find'](({data:_0x5288df})=>_0x5288df['newRange']['isEqual'](_0x37f46d))){for(const {name:_0x55a550,data:_0xf07e97}of _0x4e2912)if(_0x37f46d['containsRange'](_0xf07e97['newRange'])){_0xf41990['updateMarker'](_0x55a550,{'range':_0x37f46d}),_0x5628ae=!0x0;break;}}}return _0x5628ae;}),_0x47eea7['model']['document']['registerPostFixer'](_0x796b20=>{let _0x30e8=!0x1;const _0x321f52=_0x47eea7['plugins']['get']('Users')['me'],_0x19ee87=_0x41d5['getSuggestions']()['filter'](_0x33ba6c=>_0x33ba6c['isInContent']&&_0x33ba6c['author']==_0x321f52),_0x320110=new Set(),_0x2366fe=new Set();for(const _0x29e8e2 of _0x19ee87)if('tablePaste'==_0x29e8e2['subType'])for(const _0x384b4c of _0x29e8e2['getMarkers']()){const _0x2d2d56=_0x384b4c['getRange']()['getContainedElement']();if(_0x2d2d56){if(_0x2d2d56['is']('element','tableCellSuggestion')&&Oe(_0x2d2d56)){_0x29e8e2['removeMarker'](_0x384b4c['name']),_0x320110['add'](_0x2d2d56),_0x30e8=!0x0;const _0x54141d=_0x2d2d56['nextSibling'],_0x385d5d=_0x2d2d56['previousSibling'],_0x55e7c2=_0x54141d&&_0x54141d['is']('element','tableCellSuggestion'),_0x2b6c1b=_0x385d5d&&_0x385d5d['is']('element','tableCellSuggestion');_0x55e7c2&&!_0x320110['has'](_0x54141d)&&_0x2366fe['add'](_0x54141d),_0x2b6c1b&&!_0x320110['has'](_0x385d5d)&&_0x2366fe['add'](_0x385d5d);}else _0x2d2d56['is']('element','paragraph')&&_0x2d2d56['isEmpty']&&(_0x29e8e2['removeMarker'](_0x384b4c['name']),_0x30e8=!0x0);}}else{if('tablePasteCell'==_0x29e8e2['subType']){if(!_0x29e8e2['attributes']||!_0x29e8e2['attributes']['tablePasteChainId'])continue;const _0x40e62b=_0x29e8e2['attributes']['markerAttributes'];if(_0x40e62b&&Object['keys'](_0x40e62b)['length'])continue;const _0x20fcf6=_0x29e8e2['attributes']['tablePasteChainId'];let _0x3f85c8=!0x0,_0x3824e0=!0x0;for(const _0x4d5c46 of _0x19ee87)if(_0x4d5c46['subType']&&_0x4d5c46['subType']['startsWith']('tablePaste')){if(!_0x4d5c46['attributes']['tablePasteChainId']){_0x3824e0=!0x1;break;}if(_0x4d5c46['id']!=_0x29e8e2['id']&&_0x4d5c46['attributes']['tablePasteChainId']==_0x20fcf6){_0x3f85c8=!0x1;break;}}_0x3824e0&&_0x3f85c8&&(_0x29e8e2['removeMarkers'](),_0x30e8=!0x0);}}for(const _0x5dc94f of _0x320110)_0x796b20['remove'](_0x5dc94f);for(const _0x476d47 of _0x2366fe)_0x796b20['unwrap'](_0x476d47);return _0x30e8;}),_0x47eea7['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x11bfde=>_0x1764c2(_0x11bfde),'converterPriority':'high'}),_0x47eea7['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2a191c,_0x48413a)=>_0x48413a['options']['showSuggestionHighlights']?_0x1764c2(_0x2a191c,!0x1):null,'converterPriority':'high'});const _0x26d06=_0x47eea7['editing']['view'];this['listenTo'](_0x26d06['document'],'clipboardOutput',(_0x5d6ffb,_0x401cfe)=>{const _0x508e5a=[];for(const _0x29521f of _0x26d06['createRangeIn'](_0x401cfe['content'])['getItems']())_0x29521f['is']('element','suggestion-td')&&_0x508e5a['push'](_0x29521f);_0x26d06['change'](_0x167e65=>{for(const _0x2f4401 of _0x508e5a)_0x167e65['move'](_0x167e65['createRangeIn'](_0x2f4401),_0x167e65['createPositionBefore'](_0x2f4401)),_0x167e65['remove'](_0x2f4401);});});}}function Oe(_0x214fdd){if(_0x214fdd['isEmpty'])return!0x0;const _0x8f8e51=_0x214fdd['getChild'](0x0);return _0x8f8e51['is']('element','paragraph')&&_0x8f8e51['isEmpty'];}function Ue(_0x31c8f0,_0x3f2c27={},_0x1f2734){for(const {isAnchor:_0x1d0504,cellHeight:_0x24991e,cellWidth:_0x531005}of _0x1f2734['createTableWalker'](_0x31c8f0,{'includeAllSlots':!0x0,..._0x3f2c27}))if(!_0x1d0504||0x1!=_0x24991e||0x1!=_0x531005)return!0x1;return!0x0;}class Dt extends _0x17823b{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x52194c=this['editor']['plugins']['get']('TrackChangesEditing');_0x52194c['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x52194c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x52194c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x52194c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x52194c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x52194c['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xa51a60,_0x3682af){const _0x5411d0=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe3d64c=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x53b683=_0x3682af['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x14f6e3=_0xe3d64c['getColumnGroupElement'](_0x53b683);let _0x1ffbd5=_0x14f6e3?_0xe3d64c['getTableColumnsWidths'](_0x14f6e3):null,_0x298993=_0x53b683['getAttribute']('tableWidth')||null;const _0x3597b7=_0x3682af['tableWidth']||_0x298993,_0x1e12ad=_0x3682af['columnWidths']||_0x1ffbd5,_0x231730=this['editor']['plugins']['get']('Users')['me'];for(const _0x4a74d6 of _0x5411d0['getSuggestions']()){const _0x397d93=_0x4a74d6['getContainedElement']();if('resizeTable'===_0x4a74d6['subType']&&_0x397d93===_0x53b683){_0x4a74d6['author']!==_0x231730&&_0x4a74d6['discard']();const _0x2a10af=_0x4a74d6['data']['commandParams'];_0x298993=_0x2a10af[0x0]['tableWidth'],_0x1ffbd5=_0x2a10af[0x0]['columnWidths'];break;}}_0xa51a60({'table':_0x53b683,'tableWidth':_0x3597b7,'columnWidths':_0x1e12ad}),_0x5411d0['markBlockFormat'](_0x53b683,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x298993,'columnWidths':_0x1ffbd5}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1c07bd){if('formatBlock'!=_0x1c07bd['type']&&'formatInline'!=_0x1c07bd['type'])return;const {data:_0x141a8a}=_0x1c07bd;if(_0x141a8a&&'resizeTable'===_0x141a8a['formatGroupId']){const _0x57fc2f='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x57fc2f)};}}}class $t extends _0x17823b{['afterInit'](){const _0x398bd2=this['editor'];_0x398bd2['plugins']['has']('Template')&&_0x398bd2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x17823b{['afterInit'](){const _0xcaa7bd=this['editor'];if(!_0xcaa7bd['commands']['get']('insertTableOfContents'))return;_0xcaa7bd['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2238fe=_0xcaa7bd['plugins']['get']('TrackChangesEditing'),_0x1ff6e5=_0xcaa7bd['locale'];_0x2238fe['descriptionFactory']['registerElementLabel']('tableOfContents',_0x308adc=>o(_0x1ff6e5,'ELEMENT_TABLE_OF_CONTENTS',_0x308adc));}}class Bt extends _0x17823b{['afterInit'](){const _0x447294=this['editor'];if(!_0x447294['plugins']['has']('Title'))return;const _0x231c8c=_0x447294['plugins']['get']('TrackChangesEditing');_0x231c8c['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x447294['locale'],'ELEMENT_TITLE')),_0x447294['model']['document']['registerPostFixer'](_0x272ea3=>{let _0x70a07a=!0x1;const _0x595a53=Array['from'](_0x447294['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x321872,data:_0x1ce041}of _0x595a53){const {group:_0x43c46d}=_0x231c8c['_splitMarkerName'](_0x321872);if('suggestion'!==_0x43c46d||!_0x1ce041['newRange'])continue;const _0x583e07=_0x1ce041['newRange'],_0xb17aac=_0x583e07['end']['nodeBefore'];if(!_0xb17aac||!_0xb17aac['is']('element','title-content'))continue;if(!_0x583e07['start']['isTouching'](_0x583e07['end']))continue;const _0x484a7c=_0x447294['model']['schema']['getNearestSelectionRange'](_0x583e07['end'],'forward');if(_0x484a7c&&_0x484a7c['isCollapsed']){const _0x20166c=_0x272ea3['createRange'](_0x583e07['start'],_0x484a7c['start']);_0x20166c['isEqual'](_0x583e07)||(_0x272ea3['updateMarker'](_0x321872,{'range':_0x20166c}),_0x70a07a=!0x0);}_0x70a07a||(_0x272ea3['removeMarker'](_0x321872),_0x70a07a=!0x0);}return _0x70a07a;});}}class Tt extends _0x17823b{['afterInit'](){const _0x2185c5=this['editor'],_0x12040d=_0x2185c5['plugins']['get']('TrackChangesEditing');_0x2185c5['plugins']['has']('Uploadcare')&&(_0x12040d['enableCommand']('uploadcare'),_0x2185c5['plugins']['has']('UploadcareImageEdit')&&(_0x12040d['enableCommand']('uploadcareImageEdit'),_0x12040d['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x12040d['registerBlockAttribute']('uploadcareImageId'),_0x12040d['descriptionFactory']['registerDescriptionCallback'](_0x556b03=>{if('attribute'!=_0x556b03['type'])return;const {data:_0x56ab9b}=_0x556b03;return _0x56ab9b&&'uploadcareImageId'==_0x56ab9b['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x17823b{['afterInit'](){const _0x3026e4=this['editor'],_0x484c90=_0x3026e4['plugins']['get']('TrackChangesEditing');_0x3026e4['plugins']['has']('UndoEditing')&&(_0x484c90['enableCommand']('undo'),_0x484c90['enableCommand']('redo'));}}class Ot extends _0x17823b{static get['requires'](){return[At];}['afterInit'](){const _0xc959d3=this['editor'];if(!_0xc959d3['plugins']['has']('TableCaptionEditing'))return;_0xc959d3['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x17823b{['tableProperties'];['tableCellProperties'];constructor(_0x4687ce){super(_0x4687ce),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x5ebf2e=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5859c5 of this['tableProperties'])_0x5ebf2e['enableCommand'](_0x5859c5,(_0xbe725a,_0x196f28)=>{const _0x1bd113=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5859c5,[_0x1bd113],this['tableProperties'],'tableProperties',_0xbe725a,_0x196f28);});_0x5ebf2e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5ebf2e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5ebf2e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x36f057,_0x4d67df)=>this['handleDiscardAction'](this['tableProperties'],_0x36f057,_0x4d67df)),_0x5ebf2e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x17490a of this['tableCellProperties'])_0x5ebf2e['enableCommand'](_0x17490a,(_0x202463,_0x440f54)=>{const _0x525e3b=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x17490a,_0x525e3b,this['tableCellProperties'],'tableCellProperties',_0x202463,_0x440f54);});_0x5ebf2e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5ebf2e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5ebf2e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x481ff2,_0x67886a)=>this['handleDiscardAction'](this['tableCellProperties'],_0x481ff2,_0x67886a)),_0x5ebf2e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5ebf2e['descriptionFactory']['registerDescriptionCallback'](_0x37ce75=>this['handleSuggestionDescription'](_0x37ce75)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x36a261,_0x539397,_0x2e1b8f,_0x1bcd42,_0x2c00b0,_0x2dbb18){const _0x4b955b=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2dbb18['batch'],()=>{for(const _0x55bbf3 of _0x539397){if(this['_getSuggestion'](_0x55bbf3,_0x1bcd42))_0x2c00b0(_0x2dbb18);else{const _0x1b2100={};for(const _0x444deb of _0x2e1b8f){const _0x136f07=_0x55bbf3['getAttribute'](_0x444deb);void 0x0!==_0x136f07&&(_0x1b2100[_0x444deb]=_0x136f07);}_0x2c00b0(_0x2dbb18),_0x4b955b['markBlockFormat'](_0x55bbf3,{'commandParams':[_0x1b2100]},[],_0x1bcd42);}}});}['handleDiscardAction'](_0x4f0f04,_0x6f513f,_0x315084){const _0x362876=_0x6f513f[0x0]['start']['nodeAfter'],_0x5d5f41=_0x315084['commandParams'][0x0];this['editor']['model']['change'](_0x57095d=>{for(const _0x37e470 of _0x4f0f04)void 0x0!==_0x5d5f41[_0x37e470]?_0x57095d['setAttribute'](_0x37e470,_0x5d5f41[_0x37e470],_0x362876):_0x57095d['removeAttribute'](_0x37e470,_0x362876);});}['handleSuggestionDescription'](_0x535fe4){if(_0x535fe4['data'])switch(_0x535fe4['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'](_0x34df81,_0x23872b){const _0x5dff2b=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xddc3b9 of _0x5dff2b['getSuggestions']({'skipNotAttached':!0x0})){const _0x29dee0=_0xddc3b9['getContainedElement']();if(_0xddc3b9['subType']===_0x23872b&&_0x29dee0===_0x34df81)return _0xddc3b9;}return null;}['_registerTablePropertiesAttributes'](){const _0x59db48=this['editor']['plugins']['get']('TrackChangesEditing'),_0x24767f=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x268b38 of _0x24767f){const _0x312f2a=_0x268b38['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x59db48['registerBlockAttribute'](_0x268b38),_0x59db48['descriptionFactory']['registerAttributeLabel'](_0x268b38,o(this['editor']['locale'],'FORMAT_'+_0x312f2a));}}}class Rt extends _0x17823b{['afterInit'](){const _0x3b5805=this['editor'];if(!_0x3b5805['plugins']['has']('LineHeight'))return;const _0x1f83a1=_0x3b5805['plugins']['get']('TrackChangesEditing'),_0x24e32a=_0x3b5805['locale'];_0x1f83a1['enableDefaultAttributesIntegration']('lineHeight'),_0x1f83a1['registerBlockAttribute']('lineHeight'),_0x1f83a1['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x24e32a,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x17823b{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x246339,_0x3093bb,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,Mt,Et,$t,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x234347){super(_0x234347),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x487311,_0x4ec7e1,_0x1af2b0,_0x150dcf)=>{this['_model']['change'](()=>{for(const _0x261025 of[..._0x150dcf,..._0x1af2b0])this['_model']['markers']['has'](_0x261025)&&_0x234347['editing']['reconvertMarker'](_0x261025);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x234347['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x234347['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x234347['config']['get']('trackChanges.trackFormatChanges'),_0x234347['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x234347['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x234347,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x18e905=this['editor'],_0x5c089d=(_0x280b87,_0x19718e)=>{if('attribute'!=_0x280b87)return'ck-suggestion-marker-'+_0x280b87;const _0x42d6fa=_0x19718e['split']('|')[0x0];return this['_isBlockAttribute'](_0x42d6fa)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x18e905['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x79e70f=>{const {id:_0xd5e281,authorId:_0x242cb9,type:_0x1e2671,subType:_0x2ba561}=this['_splitMarkerName'](_0x79e70f['markerName']),_0x21ec21=['ck-suggestion-marker',_0x5c089d(_0x1e2671,_0x2ba561)];let _0x57a7e4=0xbb8;return this['activeMarkers']['includes'](_0x79e70f['markerName'])&&(_0x21ec21['push']('ck-suggestion-marker--active'),_0x57a7e4=0xbc2),'deletion'==_0x1e2671&&(_0x57a7e4+=0x5),{'classes':_0x21ec21,'attributes':{'data-suggestion':_0xd5e281,'data-author-id':_0x242cb9},'priority':_0x57a7e4};}}),_0x18e905['conversion']['for']('dataDowncast')['add'](_0x401ed4=>{_0x401ed4['on']('addMarker:suggestion',(_0x2efab4,_0x286a90,_0x599785)=>{if(!_0x599785['options']['showSuggestionHighlights'])return;const _0x38c7ec=_0x286a90['item'];if(!_0x38c7ec)return;const _0x50903f=_0x599785['mapper']['toViewElement'](_0x38c7ec);_0x18e905['model']['schema']['isObject'](_0x38c7ec)&&_0x50903f&&!_0x50903f['getCustomProperty']('widget')&&_0x50903f['is']('containerElement')&&_0x54a110(_0x50903f,_0x599785['writer']);},{'priority':'high'});}),_0x18e905['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5a1946,_0x26dcda)=>{if(!_0x26dcda['options']['showSuggestionHighlights'])return null;const {id:_0x47e17b,authorId:_0x2bb3ac,type:_0x3ae31d,subType:_0xee2808}=this['_splitMarkerName'](_0x5a1946['markerName']);return{'classes':['ck-suggestion-marker',_0x5c089d(_0x3ae31d,_0xee2808)],'priority':0xbb8,'attributes':{'data-suggestion':_0x47e17b,'data-author-id':_0x2bb3ac}};}});const _0x46f59d=({showActiveMarkers:_0x3013b9=!0x0,isAttributeSuggestion:_0x115f8d=!0x1}={})=>(_0x594e9b,_0x28ed1b,_0x46e791)=>{if(!_0x28ed1b['item'])return;const {id:_0x54d8b8,authorId:_0x28791a}=this['_splitMarkerName'](_0x28ed1b['markerName']);if(_0x115f8d){const _0xa37d7c=this['_suggestions']['get'](_0x54d8b8),_0xebc337=this['_getAttributeKey'](_0xa37d7c);if(!this['_isBlockAttribute'](_0xebc337))return;}if(_0x28ed1b['item']['is']('selection'))return void _0x46e791['consumable']['consume'](_0x28ed1b['item'],_0x594e9b['name']);const _0x42a6eb=_0x46e791['mapper']['toViewElement'](_0x28ed1b['item']);if(_0x28ed1b['item']['is']('element')&&_0x18e905['model']['schema']['isBlock'](_0x28ed1b['item'])&&!_0x42a6eb['getCustomProperty']('addHighlight')){_0x46e791['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x42a6eb),_0x46e791['writer']['setAttribute']('data-suggestion',_0x54d8b8,_0x42a6eb),_0x46e791['writer']['setAttribute']('data-author-id',_0x28791a,_0x42a6eb),_0x46e791['mapper']['bindElementToMarker'](_0x42a6eb,_0x28ed1b['markerName']),_0x3013b9&&(this['activeMarkers']['includes'](_0x28ed1b['markerName'])?_0x46e791['writer']['addClass']('ck-suggestion-marker--active',_0x42a6eb):_0x46e791['writer']['removeClass']('ck-suggestion-marker--active',_0x42a6eb));for(const _0x1e59ad of _0x18e905['model']['createRangeIn'](_0x28ed1b['item'])['getItems']())_0x46e791['consumable']['consume'](_0x1e59ad,_0x594e9b['name']);_0x46e791['consumable']['consume'](_0x28ed1b['item'],_0x594e9b['name']);}};_0x18e905['conversion']['for']('dataDowncast')['add'](_0x1cc37a=>{_0x1cc37a['on']('addMarker:suggestion:formatBlock',(_0x3a8e4d,_0x3db3eb,_0x5262e7)=>{_0x5262e7['options']['showSuggestionHighlights']&&_0x46f59d({'showActiveMarkers':!0x1})(_0x3a8e4d,_0x3db3eb,_0x5262e7);},{'priority':'highest'});}),_0x18e905['conversion']['for']('dataDowncast')['add'](_0x3b5bec=>{_0x3b5bec['on']('addMarker:suggestion:attribute',(_0x4c7c40,_0x469fa1,_0x1277ba)=>{_0x1277ba['options']['showSuggestionHighlights']&&_0x46f59d({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4c7c40,_0x469fa1,_0x1277ba);},{'priority':'highest'});}),_0x18e905['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x429bdc,_0x2d8097)=>{if(_0x2d8097['options']['showSuggestionHighlights']){const {id:_0x4dbc97,authorId:_0x268368}=this['_splitMarkerName'](_0x429bdc);return _0x429bdc['includes'](':split')||_0x429bdc['includes'](':merge')?{'group':'suggestion','name':_0x429bdc['substr'](0xb),'attributes':{'data-suggestion':_0x4dbc97,'data-author-id':_0x268368}}:null;}return{'group':'suggestion','name':_0x429bdc['substr'](0xb)};}}),_0x18e905['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x51999d,{writer:_0x1bc1ba})=>{let _0x53d16e='suggestion:'+_0x51999d['getAttribute']('suggestion-type')+':'+_0x51999d['getAttribute']('id');return _0x51999d['getAttribute']('marker-count')&&(_0x53d16e+=':'+_0x51999d['getAttribute']('marker-count')),_0x1bc1ba['createElement']('$marker',{'data-name':_0x53d16e});}}),_0x18e905['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x18e905['conversion']['for']('editingDowncast')['add'](_0x444c1b=>{_0x444c1b['on']('addMarker:suggestion:formatBlock',_0x46f59d(),{'priority':'high'});}),_0x18e905['conversion']['for']('editingDowncast')['add'](_0x3a6e0a=>{_0x3a6e0a['on']('addMarker:suggestion:attribute',_0x46f59d({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x18e905['conversion']['for']('editingDowncast')['add'](_0x491462=>{_0x491462['on']('removeMarker:suggestion:formatBlock',(_0x58c3b0,_0x4d2f37,_0x3d5bc2)=>{const _0x1f895e=_0x3d5bc2['mapper']['markerNameToElements'](_0x4d2f37['markerName']);if(_0x1f895e){for(const _0x15891b of _0x1f895e)_0x15891b['getCustomProperty']('addHighlight')||(_0x3d5bc2['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x15891b),_0x3d5bc2['writer']['removeAttribute']('data-suggestion',_0x15891b),_0x3d5bc2['writer']['removeAttribute']('data-author-id',_0x15891b),_0x3d5bc2['mapper']['unbindElementFromMarkerName'](_0x15891b,_0x4d2f37['markerName']));}},{'priority':'high'});}),_0x18e905['conversion']['for']('editingDowncast')['add'](_0x3a6924=>{_0x3a6924['on']('removeMarker:suggestion:attribute',(_0xad8cb1,_0x292775,_0x36c0fc)=>{const _0x549882=_0x36c0fc['mapper']['markerNameToElements'](_0x292775['markerName']);if(!_0x549882)return;const {id:_0x4db056}=this['_splitMarkerName'](_0x292775['markerName']),_0x4e1d23=this['_suggestions']['get'](_0x4db056),_0x365846=this['_getAttributeKey'](_0x4e1d23);if(this['_isBlockAttribute'](_0x365846)){for(const _0x2edbe3 of _0x549882)_0x2edbe3['getCustomProperty']('addHighlight')||(_0x36c0fc['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2edbe3),_0x36c0fc['writer']['removeAttribute']('data-suggestion',_0x2edbe3),_0x36c0fc['writer']['removeAttribute']('data-author-id',_0x2edbe3),_0x36c0fc['mapper']['unbindElementFromMarkerName'](_0x2edbe3,_0x292775['markerName']));}},{'priority':'high'});}),_0x18e905['model']['document']['registerPostFixer'](_0x5108ad=>{let _0x183c94=!0x1;const _0x480827=Array['from'](_0x18e905['model']['document']['differ']['getChangedMarkers']()),_0xe97b14=new Set();for(const {name:_0x50db58,data:_0x21c742}of _0x480827){const {group:_0x5068ac,type:_0x411a8a,subType:_0x219287,id:_0x494a8f}=this['_splitMarkerName'](_0x50db58);if('suggestion'!==_0x5068ac)continue;const _0x383db9=_0x219287?'suggestion:'+_0x411a8a+':'+_0x219287+':'+_0x494a8f:'suggestion:'+_0x411a8a+':'+_0x494a8f,_0x495897=_0x18e905['model']['markers']['getMarkersGroup'](_0x383db9),_0xc3ea20=_0x18e905['model']['markers']['get'](_0x50db58),_0x2295e1=this['_suggestions']['get'](_0x494a8f);if(null!=_0x21c742['newRange']){'formatInline'==_0x411a8a&&(_0x183c94=_0x183c94||Gt(_0x21c742['newRange'],_0x50db58,_0x5108ad,_0x18e905['model']['schema']));const _0x4e7742='attribute'==_0x411a8a&&this['_isBlockAttribute'](_0x219287['split']('|')[0x0]),_0x506154='attribute'==_0x411a8a&&this['_isInlineAttribute'](_0x219287['split']('|')[0x0]);if(_0x21c742['newRange']['isCollapsed']||'$graveyard'==_0x21c742['newRange']['root']['rootName']||'formatBlock'==_0x411a8a&&!Jt(_0x21c742['newRange'])||_0x4e7742&&!Jt(_0x21c742['newRange'])||_0x506154&&Kt(_0x21c742['newRange'])||'deletion'==_0x411a8a&&Kt(_0x21c742['newRange'])||_0xc3ea20&&Ht(_0xc3ea20,_0x495897))_0x5108ad['removeMarker'](_0x50db58),_0x183c94=!0x0;else{if(!_0x2295e1||!_0x2295e1['isInContent'])continue;if(_0x21c742['newRange']&&_0x21c742['oldRange']&&_0x21c742['newRange']['isEqual'](_0x21c742['oldRange']))continue;_0xe97b14['add'](_0x2295e1);}}}return _0xe97b14['size']>0x0&&(_0x183c94=!!this['_joinWithAdjacentSuggestions'](_0xe97b14)||_0x183c94),_0x183c94;}),_0x18e905['model']['document']['registerPostFixer'](_0xa88cdc=>{let _0x108c61=!0x1;for(const _0x17fcff of _0x18e905['model']['document']['differ']['getChanges']())if('insert'==_0x17fcff['type'])for(const _0x4f9d9a of this['_suggestions']['values']()){if(_0x4f9d9a['isMultiRange']||!_0x4f9d9a['isInContent'])continue;const _0x369b61='formatBlock'==_0x4f9d9a['type'],_0x5d30db=this['_getAttributeKey'](_0x4f9d9a),_0x1c3a13=_0x5d30db&&this['_isBlockAttribute'](_0x5d30db);if(!_0x369b61&&!_0x1c3a13)continue;const _0x193fc1=_0x4f9d9a['getFirstRange']();if(_0x193fc1['start']['parent']!=_0x193fc1['end']['parent']&&!_0x193fc1['end']['isAtEnd']){const _0x2b3839=_0x18e905['model']['createPositionAt'](_0x193fc1['start']['nodeAfter'],'end'),_0x12691d=_0x18e905['model']['createRange'](_0x193fc1['start'],_0x2b3839);_0xa88cdc['updateMarker'](_0x4f9d9a['getFirstMarker'](),{'range':_0x12691d}),_0x108c61=!0x0;}}return _0x108c61;}),_0x18e905['model']['document']['registerPostFixer'](_0x70c9e7=>this['_processAttributeChanges'](_0x70c9e7)),_0x18e905['model']['document']['registerPostFixer'](_0x1e862a=>!_0x1e862a['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1e862a)),_0x18e905['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x18e905['model']['document']['on']('change:data',(_0x2ca28f,_0xb3bf30)=>{if(!_0xb3bf30['isLocal']||_0xb3bf30['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x517da3=_0x18e905['model']['document']['differ']['getChanges']();if(0x0==_0x517da3['length'])return;const _0x40d319=[],_0xc8fa8c=_0x517da3['filter'](_0x125620=>'attribute'==_0x125620['type']),_0x300b9c=_0x517da3['filter'](_0x2a6cb0=>'insert'==_0x2a6cb0['type']&&'$text'!=_0x2a6cb0['name']);for(const _0x59b3ed of _0xc8fa8c)this['_isRegisteredAttribute'](_0x59b3ed['attributeKey'])&&_0x40d319['push']({'key':_0x59b3ed['attributeKey'],'newValue':_0x59b3ed['attributeNewValue'],'oldValue':_0x59b3ed['attributeOldValue'],'range':qt(_0x59b3ed['range'],_0x18e905['model'])});for(const _0x5dffda of _0x300b9c){if('rename'!=_0x5dffda['action']&&'refresh'!=_0x5dffda['action'])continue;const _0x25cf2e=zt(_0x5dffda['position']['nodeAfter'],_0x18e905['model']),_0x86e08=_0x5dffda['before'];'rename'==_0x5dffda['action']&&_0x40d319['push']({'key':m,'newValue':_0x5dffda['name'],'oldValue':_0x86e08['name'],'range':_0x25cf2e});for(const [_0xff5e88,_0x1c031d]of _0x86e08['attributes']){if(!this['_isRegisteredAttribute'](_0xff5e88))continue;const _0x1138f9=_0x5dffda['attributes']['get'](_0xff5e88);_0x1c031d!==_0x1138f9&&_0x40d319['push']({'key':_0xff5e88,'newValue':_0x1138f9,'oldValue':_0x1c031d,'range':_0x25cf2e});}for(const [_0x91317b,_0x55e13e]of _0x5dffda['attributes'])this['_isRegisteredAttribute'](_0x91317b)&&(_0x86e08['attributes']['has'](_0x91317b)||_0x40d319['push']({'key':_0x91317b,'newValue':_0x55e13e,'oldValue':null,'range':_0x25cf2e}));}0x0!=_0x40d319['length']&&_0x18e905['model']['enqueueChange'](_0xb3bf30,_0x2adc30=>{const _0x361609=_0x1fe55e();for(const {range:_0x18338f,key:_0x49eb22,oldValue:_0x69f8c4,newValue:_0x3f0f18}of _0x40d319)this['markAttributeChange'](_0x18338f,_0x49eb22,_0x69f8c4,_0x3f0f18,{'groupId':_0x361609});this['_reduceExistingSuggestions'](_0x2adc30,_0x40d319);});},{'priority':'lowest'}),_0x18e905['model']['markers']['on']('update:suggestion',(_0x3e84a9,_0x5b844c,_0x284606)=>{if(null==_0x284606){const {id:_0x49def6}=this['_splitMarkerName'](_0x5b844c['name']),_0x786b10=this['_suggestions']['get'](_0x49def6);_0x786b10&&_0x786b10['addMarkerName'](_0x5b844c['name']);}}),_0x18e905['model']['document']['on']('change:data',()=>{const _0x11461d=Array['from'](_0x18e905['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1490be=>'suggestion'===this['_splitMarkerName'](_0x1490be['name'])['group']);if(0x0===_0x11461d['length'])return;_0x11461d['sort']((_0x5c6d8e,_0x2d6370)=>{const _0x5c42f0=_0x5c6d8e['data']['oldRange'],_0x570af5=_0x2d6370['data']['oldRange'];return null===_0x5c42f0&&null===_0x570af5?0x0:null===_0x5c42f0&&null!==_0x570af5?-0x1:null!==_0x5c42f0&&null===_0x570af5?0x1:_0x5c42f0['start']['isBefore'](_0x570af5['start'])?-0x1:0x1;});const _0x448317=new Set(),_0x3f8873=new Set();for(const {name:_0x554a0d,data:_0x103645}of _0x11461d){const {id:_0x257292}=this['_splitMarkerName'](_0x554a0d);if(null===_0x103645['oldRange']){const _0x2c278a=this['_handleNewSuggestionMarker'](_0x554a0d);_0x3f8873['add'](_0x2c278a);}else{const _0x2be037=this['_suggestions']['get'](_0x257292);null!==_0x103645['newRange']||_0x2be037['isInContent']?(_0x448317['add'](_0x2be037['head']),_0x3f8873['add'](_0x2be037)):this['_removeSuggestion'](_0x2be037);}}_0x3f8873['size']>0x0&&this['_refreshSuggestionsChain'](_0x3f8873);for(const _0x58adda of _0x448317)this['fire']('suggestionChanged',_0x58adda);}),_0x18e905['model']['on']('applyOperation',(_0x5dc5c3,_0x391f8b)=>{const _0x46dbcf=_0x391f8b[0x0];if(!this['_suggestions']['size'])return;if(!_0x46dbcf['isDocumentOperation'])return;if(_0x46dbcf['batch']['isUndo']||!_0x46dbcf['batch']['isLocal'])return;let _0x43c50b,_0x14bd94;switch(_0x46dbcf['type']){case'insert':_0x43c50b=_0x18e905['model']['createPositionAt'](_0x46dbcf['position']),_0x14bd94=_0x43c50b['getShiftedBy'](_0x46dbcf['howMany']);break;case'split':_0x43c50b=_0x18e905['model']['createPositionAt'](_0x46dbcf['splitPosition']),_0x14bd94=_0x18e905['model']['createPositionAt'](_0x46dbcf['moveTargetPosition']);break;case'move':_0x43c50b=_0x18e905['model']['createPositionAt'](_0x46dbcf['targetPosition']),_0x14bd94=_0x43c50b['getShiftedBy'](_0x46dbcf['howMany']);break;default:return;}const _0x36a98b=_0x18e905['model']['createRange'](_0x43c50b,_0x14bd94);_0x18e905['model']['change'](()=>{for(const {suggestion:_0x5780ef,meta:_0x33f738}of this['_findSuggestions'](_0x36a98b)){if(_0x5780ef['isMultiRange'])continue;if('formatInline'==_0x5780ef['type'])continue;const _0x133b94=this['_getAttributeKey'](_0x5780ef);if(_0x133b94&&this['_isBlockAttribute'](_0x133b94)&&'split'!=_0x46dbcf['type'])continue;const _0x59da81=_0x5780ef['data']&&_0x5780ef['data']['multipleBlocks'];('formatBlock'!=_0x5780ef['type']||'split'==_0x46dbcf['type']&&!_0x59da81)&&(_0x33f738['containsRangeInObject']||'insertion'==_0x5780ef['type']&&_0x33f738['isOwn']||_0x5780ef['getFirstRange']()['containsRange'](_0x36a98b)&&this['_breakSuggestionMarker'](_0x5780ef,_0x43c50b,_0x14bd94));}});},{'priority':'lowest'}),_0x18e905['model']['on']('deleteContent',(_0x1e3edd,_0x29f5e0)=>{const _0x5b6f68=_0x29f5e0[0x0],_0x5c6919=_0x29f5e0[0x1];if(_0x5c6919&&_0x5c6919['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5b6f68['isCollapsed'])return;const _0x102958=_0x18e905['model']['schema'],{start:_0x47ce2f,end:_0x3d853b}=_0x5b6f68['getFirstRange'](),_0x410221=_0x47ce2f['nodeAfter']&&_0x102958['isLimit'](_0x47ce2f['nodeAfter'])?null:_0x102958['getNearestSelectionRange'](_0x47ce2f,'forward'),_0xf82d28=_0x3d853b['nodeBefore']&&_0x102958['isLimit'](_0x3d853b['nodeBefore'])?null:_0x102958['getNearestSelectionRange'](_0x3d853b,'backward'),_0x27bc9e=_0x18e905['model']['createRange'](_0x410221?_0x410221['start']:_0x47ce2f,_0xf82d28?_0xf82d28['end']:_0x3d853b);_0x18e905['model']['change'](_0x266c15=>{this['markDeletion'](_0x27bc9e);const _0x4c22a9=_0x18e905['model']['schema']['getNearestSelectionRange'](_0x27bc9e['start']);_0x5b6f68['is']('documentSelection')?_0x266c15['setSelection'](_0x4c22a9):_0x5b6f68['setTo'](_0x4c22a9);}),_0x1e3edd['stop']();},{'priority':_0x4a4dfb['normal']+0xa}),_0x18e905['model']['on']('insertContent',(_0x49888a,_0x1d67af)=>{const _0x794512=_0x1d67af[_0x1d67af['length']-0x1];_0x794512&&_0x794512['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x18e905['model']['change'](()=>{let _0x3e1ac8=_0x18e905['model']['insertContent'](_0x1d67af[0x0],_0x1d67af[0x1],_0x1d67af[0x2],{'forceDefaultExecution':!0x0});if(!_0x3e1ac8)return;_0x49888a['return']=_0x3e1ac8['clone']();const _0x446a1c=_0x3e1ac8['end']['nodeBefore'],_0x5e4f5f=_0x18e905['model']['schema'];_0x446a1c&&_0x5e4f5f['isBlock'](_0x446a1c)&&!_0x5e4f5f['isObject'](_0x446a1c)&&(_0x3e1ac8=_0x18e905['model']['createRange'](_0x3e1ac8['start'],_0x18e905['model']['createPositionAt'](_0x446a1c,'end'))),this['markInsertion'](_0x3e1ac8);}),_0x49888a['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x15bb5a=new D(_0x18e905,this['_suggestions']);_0x18e905['commands']['add']('acceptSuggestion',_0x15bb5a),this['enableCommand']('acceptSuggestion');const _0x5eceaf=new $(_0x18e905,this['_suggestions']);_0x18e905['commands']['add']('discardSuggestion',_0x5eceaf),this['enableCommand']('discardSuggestion'),_0x18e905['commands']['add']('acceptAllSuggestions',new M(_0x18e905,_0x15bb5a,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x18e905['commands']['add']('discardAllSuggestions',new M(_0x18e905,_0x5eceaf,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x18e905['commands']['add']('acceptSelectedSuggestions',new B(_0x18e905,_0x15bb5a,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x18e905['commands']['add']('discardSelectedSuggestions',new B(_0x18e905,_0x5eceaf,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4fb82e=_0x18e905['plugins']['get']('CommentsRepository');this['listenTo'](_0x4fb82e,'addComment',(_0x5cbaec,{threadId:_0xb9799d})=>{const _0xa1b11b=this['_suggestions']['get'](_0xb9799d);_0xa1b11b&&_0xa1b11b['commentThread']&&0x1===_0xa1b11b['commentThread']['length']&&this['_updateSuggestionData'](_0xb9799d,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4fb82e,'removeComment',(_0x23b4cf,{threadId:_0x3a82e8})=>{const _0x533de7=this['_suggestions']['get'](_0x3a82e8);_0x533de7&&_0x533de7['commentThread']&&!_0x533de7['commentThread']['length']&&this['_updateSuggestionData'](_0x3a82e8,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x61ccdd){const _0x20ecab=_0x5ef706([0x77,0x45,0x4e,0x58,0x55,0x74,0x4c,0x53,0x44,0x31,0x72,0x67,0x6d,0x6b,0x69,0x61,0x48,0x42,0x78,0x62,0x66,0x79,0x39,0x35,0x4b,0x68,0x51,0x36,0x6c,0x50,0x59,0x71,0x57,0x41,0x6e,0x33,0x64,0x70,0x7a,0x30,0x6a,0x47,0x65,0x46,0x54,0x5a,0x32,0x37,0x4d,0x34,0x4f,0x56,0x73,0x63,0x38,0x43,0x6f,0x4a,0x52,0x75,0x49,0x76]),_0x478c8a=0x6f516320,_0x88a57a=0x6f560cc0^_0x478c8a,_0x4ddb55=window[_0x5ef706([0x44,0x61,0x74,0x65])][_0x5ef706([0x6e,0x6f,0x77])](),_0x1b6332=_0x61ccdd[_0x5ef706([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x39135f=new window[(_0x5ef706([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ad119=>{_0x1b6332[_0x5ef706([0x6f,0x6e,0x63,0x65])](_0x5ef706([0x72,0x65,0x61,0x64,0x79]),_0x3ad119);}),_0x1f83ae={[_0x5ef706([0x6b,0x74,0x79])]:_0x5ef706([0x45,0x43]),[_0x5ef706([0x75,0x73,0x65])]:_0x5ef706([0x73,0x69,0x67]),[_0x5ef706([0x63,0x72,0x76])]:_0x5ef706([0x50,0x2d,0x32,0x35,0x36]),[_0x5ef706([0x78])]:_0x5ef706([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]),[_0x5ef706([0x79])]:_0x5ef706([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]),[_0x5ef706([0x61,0x6c,0x67])]:_0x5ef706([0x45,0x53,0x32,0x35,0x36])},_0x27b132=_0x1b6332[_0x5ef706([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5ef706([0x67,0x65,0x74])](_0x5ef706([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3f5bea(){let _0x3daacd,_0x5392ed=null,_0x1d0528=null;try{if(_0x27b132==_0x5ef706([0x47,0x50,0x4c]))return _0x5ef706([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3daacd=_0x27ca31(),!_0x3daacd)return _0x5ef706([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3daacd[_0x5ef706([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1d0528=_0x1aadc8(_0x3daacd[_0x5ef706([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3daacd[_0x5ef706([0x6a,0x74,0x69])])),await _0xf94a45()?_0x25df18()?_0x4cad58()?_0x5ef706([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2c10fa()?(_0x3daacd[_0x5ef706([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5ef706([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5392ed=_0x27bec1(_0x5ef706([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3daacd[_0x5ef706([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5ef706([0x74,0x72,0x69,0x61,0x6c])&&(_0x5392ed=_0x27bec1(_0x5ef706([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x498747()):_0x5ef706([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5ef706([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5ef706([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5ef706([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4cad58(){const _0x14be82=[_0x5ef706([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5ef706([0x74,0x72,0x69,0x61,0x6c])][_0x5ef706([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3daacd[_0x5ef706([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4ddb55/0x3e8:0xe10*_0x88a57a;return _0x3daacd[_0x5ef706([0x65,0x78,0x70])]<_0x14be82;}function _0x25df18(){const _0x59cfe8=_0x3daacd[_0x5ef706([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x59cfe8)return!0x1;if(_0x59cfe8[_0x5ef706([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ef706([0x2a])))return!0x0;if(_0x59cfe8[_0x5ef706([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ef706([0x54,0x43])))return!0x0;if(_0x59cfe8[_0x5ef706([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ef706([0x52,0x54,0x43]))){if(_0x49b8c8())return!0x0;if(_0xea10d3()||_0x2187aa())return!0x0;}return!0x1;}function _0x2c10fa(){const _0x4a13c4=_0x3daacd[_0x5ef706([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4a13c4||0x0==_0x4a13c4[_0x5ef706([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x9badca}=new URL(window[_0x5ef706([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4a13c4[_0x5ef706([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9badca))return!0x0;const _0x3a69b0=_0x9badca[_0x5ef706([0x73,0x70,0x6c,0x69,0x74])](_0x5ef706([0x2e]));return _0x4a13c4[_0x5ef706([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4d7bda=>_0x4d7bda[_0x5ef706([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ef706([0x2a])))[_0x5ef706([0x6d,0x61,0x70])](_0xe11481=>_0xe11481[_0x5ef706([0x73,0x70,0x6c,0x69,0x74])](_0x5ef706([0x2e])))[_0x5ef706([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x517267=>_0x517267[_0x5ef706([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3a69b0[_0x5ef706([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5ef706([0x6d,0x61,0x70])](_0x25b9ce=>Array(_0x3a69b0[_0x5ef706([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x25b9ce[_0x5ef706([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5ef706([0x66,0x69,0x6c,0x6c])](_0x25b9ce[0x0]===_0x5ef706([0x2a])?_0x5ef706([0x2a]):'')[_0x5ef706([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x25b9ce))[_0x5ef706([0x73,0x6f,0x6d,0x65])](_0x2a19f6=>_0x3a69b0[_0x5ef706([0x65,0x76,0x65,0x72,0x79])]((_0x107b72,_0x5613b6)=>_0x2a19f6[_0x5613b6]===_0x107b72||_0x2a19f6[_0x5613b6]===_0x5ef706([0x2a])));}function _0x498747(){return _0x5392ed&&_0x1d0528?new window[(_0x5ef706([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50af21,_0x499069)=>{_0x5392ed[_0x5ef706([0x74,0x68,0x65,0x6e])](_0x50af21,_0x499069),_0x1d0528[_0x5ef706([0x74,0x68,0x65,0x6e])](_0x95c63d=>{_0x95c63d!=_0x5ef706([0x56,0x61,0x6c,0x69,0x64])&&_0x50af21(_0x95c63d);},_0x499069);}):_0x5392ed||_0x1d0528||_0x5ef706([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1aadc8(_0x59faba,_0x3896e9){return new window[(_0x5ef706([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a57e0=>{if(_0x4b707b())return _0x4a57e0(_0x5ef706([0x56,0x61,0x6c,0x69,0x64]));_0x5dd497(),_0x1b6332[_0x5ef706([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5ef706([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4089e0=!0x1;const _0x166ed6=_0x1fe55e();function _0x1e36c6(_0x5f1e7a){return!!_0x5f1e7a&&(typeof _0x5f1e7a===_0x5ef706([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5f1e7a===_0x5ef706([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5f1e7a[_0x5ef706([0x74,0x68,0x65,0x6e])]===_0x5ef706([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5f1e7a[_0x5ef706([0x63,0x61,0x74,0x63,0x68])]===_0x5ef706([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x534fb1(_0x500117){_0x25aa5b(_0x500117)[_0x5ef706([0x74,0x68,0x65,0x6e])](_0x5953a2=>{if(!_0x5953a2||_0x5953a2[_0x5ef706([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5ef706([0x6f,0x6b]))return _0x5ef706([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x31baca(_0x609f23(_0x166ed6+_0x3896e9))!=_0x5953a2[_0x5ef706([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5ef706([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5ef706([0x56,0x61,0x6c,0x69,0x64]);})[_0x5ef706([0x74,0x68,0x65,0x6e])](_0x506214=>(_0x5e9190(),_0x506214),()=>{const _0x5ee9fe=_0x26ee23();return null==_0x5ee9fe?(_0x5e9190(),_0x5ef706([0x56,0x61,0x6c,0x69,0x64])):_0x5ef706(_0x4ddb55-_0x5ee9fe>(0x4b5de720^_0x478c8a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5ef706([0x74,0x68,0x65,0x6e])](_0x4a57e0)[_0x5ef706([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4a57e0(_0x5ef706([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xfb55e1=0x6f678da0^_0x478c8a;function _0x5e9190(){const _0x591478=_0x5ef706([0x6c,0x6c,0x63,0x74,0x2d])+_0x31baca(_0x609f23(_0x59faba)),_0x55ae16=_0x17afd9(_0x31baca(window[_0x5ef706([0x4d,0x61,0x74,0x68])][_0x5ef706([0x63,0x65,0x69,0x6c])](_0x4ddb55/_0xfb55e1)));window[_0x5ef706([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5ef706([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x591478,_0x55ae16);}function _0x26ee23(){const _0x5333ef=_0x5ef706([0x6c,0x6c,0x63,0x74,0x2d])+_0x31baca(_0x609f23(_0x59faba)),_0x4b24b6=window[_0x5ef706([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5ef706([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5333ef);return _0x4b24b6?window[_0x5ef706([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x17afd9(_0x4b24b6),0x10)*_0xfb55e1:null;}function _0x25aa5b(_0x34bea1){return new window[(_0x5ef706([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x6324c3,_0x53185c)=>{_0x34bea1[_0x5ef706([0x74,0x68,0x65,0x6e])](_0x6324c3,_0x53185c),window[_0x5ef706([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x53185c,0x6f50b7e0^_0x478c8a);});}}_0x1b6332[_0x5ef706([0x6f,0x6e])](_0x5ef706([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3d149b,_0x582a01)=>{if(_0x582a01[0x0]!=_0x59faba)return _0x4a57e0(_0x5ef706([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x582a01[0x1]={..._0x582a01[0x1],[_0x5ef706([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x166ed6};},{[_0x5ef706([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5ef706([0x68,0x69,0x67,0x68])}),_0x1b6332[_0x5ef706([0x6f,0x6e])](_0x5ef706([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1bb24b=>{_0x1e36c6(_0x1bb24b[_0x5ef706([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4089e0=!0x0,_0x534fb1(_0x1bb24b[_0x5ef706([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5ef706([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5ef706([0x6c,0x6f,0x77])}),_0x39135f[_0x5ef706([0x74,0x68,0x65,0x6e])](()=>{_0x4089e0||_0x4a57e0(_0x5ef706([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4b707b(){return _0x1b6332[_0x5ef706([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5ef706([0x76,0x69,0x65,0x77])][_0x5ef706([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5ef706([0x61,0x75,0x74,0x6f]);}function _0x5dd497(){_0x1b6332[_0x5ef706([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5ef706([0x76,0x69,0x65,0x77])][_0x5ef706([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5ef706([0x61,0x75,0x74,0x6f]);}}function _0x27bec1(_0x2a43ae){const _0x256af2=[new window[(_0x5ef706([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2316f3=>setTimeout(_0x2316f3,0x6f585dec^_0x478c8a)),_0x39135f[_0x5ef706([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5ef706([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x102740=>{let _0x4952eb=0x0;_0x1b6332[_0x5ef706([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ef706([0x6f,0x6e])](_0x5ef706([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3fb892,_0x1cb201)=>{_0x1cb201[0x0][_0x5ef706([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4952eb++,_0x4952eb==(0x6f5162d8^_0x478c8a)&&(_0x102740(),_0x3fb892[_0x5ef706([0x6f,0x66,0x66])]());});}))];return window[_0x5ef706([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5ef706([0x72,0x61,0x63,0x65])](_0x256af2)[_0x5ef706([0x74,0x68,0x65,0x6e])](()=>_0x2a43ae);}async function _0x6236d(){await _0x39135f,_0x1b6332[_0x5ef706([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ef706([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x6b7e0d,_0x1b6332[_0x5ef706([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ef706([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x6b7e0d,_0x1b6332[_0x5ef706([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5ef706([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x49b8c8(){return _0x3fdc72(_0x5ef706([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4959dc(_0x5ef706([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5ef706([0x73,0x74,0x61,0x74,0x65])]==_0x5ef706([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xea10d3(){return _0x3fdc72(_0x5ef706([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 _0x2187aa(){return _0x3fdc72(_0x5ef706([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3646f0(_0x15e6f2){const _0x263f76=_0x578fce();_0x1b6332[_0x263f76]=_0x5ef706([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x15e6f2,_0x15e6f2!=_0x5ef706([0x56,0x61,0x6c,0x69,0x64])&&_0x6236d();}function _0x578fce(){const _0x2964da=window[_0x5ef706([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5ef706([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5ef706([0x6e,0x6f,0x77])]())[_0x5ef706([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5ef706([0x2e]),'');let _0x3d927b=_0x5ef706([0x77]);for(let _0x4f38fd=0x0;_0x4f38fd<_0x2964da[_0x5ef706([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f38fd+=0x2){let _0x36b157=window[_0x5ef706([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2964da[_0x5ef706([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4f38fd,_0x4f38fd+0x2));_0x36b157>=_0x20ecab[_0x5ef706([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x36b157-=_0x20ecab[_0x5ef706([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3d927b+=_0x20ecab[_0x36b157];}return _0x3d927b;}function _0x27ca31(){const _0x1f5898=_0x27b132[_0x5ef706([0x73,0x70,0x6c,0x69,0x74])](_0x5ef706([0x2e]));if(0x3!=_0x1f5898[_0x5ef706([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2f1bb2(_0x1f5898[0x1]);function _0x2f1bb2(_0x1d9fdf){const _0x31e517=_0x5b1642(_0x1d9fdf);return _0x31e517&&_0x54e3e0()?_0x31e517:null;function _0x54e3e0(){const _0x1729c7=_0x31e517[_0x5ef706([0x6a,0x74,0x69])],_0x355133=window[_0x5ef706([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1729c7[_0x5ef706([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1729c7[_0x5ef706([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x108855={..._0x31e517,[_0x5ef706([0x6a,0x74,0x69])]:_0x1729c7[_0x5ef706([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1729c7[_0x5ef706([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x108855[_0x5ef706([0x76,0x63])],_0x609f23(_0x108855)==_0x355133;}}}async function _0xf94a45(){let _0x2b84d7=!0x0;try{const _0x542f2e=_0x27b132[_0x5ef706([0x73,0x70,0x6c,0x69,0x74])](_0x5ef706([0x2e])),[_0x558521,_0x5403e0,_0x50d09b]=_0x542f2e;return _0x41b258(_0x558521),await _0x413c2d(_0x558521,_0x5403e0,_0x50d09b),_0x2b84d7;}catch{return!0x1;}function _0x41b258(_0x4cd4cd){const _0x340138=_0x5b1642(_0x4cd4cd);_0x340138&&_0x340138[_0x5ef706([0x61,0x6c,0x67])]==_0x5ef706([0x45,0x53,0x32,0x35,0x36])||(_0x2b84d7=!0x1);}async function _0x413c2d(_0x5e9eed,_0x254c03,_0x5165a0){const _0x44c5f2=window[_0x5ef706([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5ef706([0x66,0x72,0x6f,0x6d])](_0x2ce92f(_0x5165a0),_0xc1d1cd=>_0xc1d1cd[_0x5ef706([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x120f66=new window[(_0x5ef706([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5ef706([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5e9eed+_0x5ef706([0x2e])+_0x254c03),_0x40ae30=window[_0x5ef706([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5ef706([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x40ae30)return;const _0x90adb5=await _0x40ae30[_0x5ef706([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5ef706([0x6a,0x77,0x6b]),_0x1f83ae,{[_0x5ef706([0x6e,0x61,0x6d,0x65])]:_0x5ef706([0x45,0x43,0x44,0x53,0x41]),[_0x5ef706([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5ef706([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5ef706([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x40ae30[_0x5ef706([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5ef706([0x6e,0x61,0x6d,0x65])]:_0x5ef706([0x45,0x43,0x44,0x53,0x41]),[_0x5ef706([0x68,0x61,0x73,0x68])]:{[_0x5ef706([0x6e,0x61,0x6d,0x65])]:_0x5ef706([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x90adb5,_0x44c5f2,_0x120f66)||(_0x2b84d7=!0x1);}}function _0x5b1642(_0x3ff0e7){return _0x3ff0e7[_0x5ef706([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5ef706([0x65,0x79]))?JSON[_0x5ef706([0x70,0x61,0x72,0x73,0x65])](_0x2ce92f(_0x3ff0e7)):null;}function _0x2ce92f(_0x2079fb){return window[_0x5ef706([0x61,0x74,0x6f,0x62])](_0x2079fb[_0x5ef706([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5ef706([0x2b]))[_0x5ef706([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5ef706([0x2f])));}function _0x609f23(_0x110702){let _0x3338d8=0x1505;function _0x47308b(_0x2a76fa){for(let _0x34cfef=0x0;_0x34cfef<_0x2a76fa[_0x5ef706([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x34cfef++){const _0x1a556a=_0x2a76fa[_0x5ef706([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x34cfef);_0x3338d8=(_0x3338d8<<0x5)+_0x3338d8+_0x1a556a,_0x3338d8&=_0x3338d8;}}function _0xf3d4e9(_0x4a46d0){Array[_0x5ef706([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4a46d0)?_0x4a46d0[_0x5ef706([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xf3d4e9):_0x4a46d0&&typeof _0x4a46d0==_0x5ef706([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5ef706([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4a46d0)[_0x5ef706([0x73,0x6f,0x72,0x74])]()[_0x5ef706([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1b9f16,_0x2c452e])=>{_0x47308b(_0x1b9f16),_0xf3d4e9(_0x2c452e);}):_0x47308b(window[_0x5ef706([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4a46d0));}return _0xf3d4e9(_0x110702),_0x3338d8>>>0x0;}function _0x31baca(_0x294d4c){return _0x294d4c[_0x5ef706([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5ef706([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5ef706([0x30]));}function _0x17afd9(_0x3a467e){return _0x3a467e[_0x5ef706([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5ef706([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5ef706([0x6a,0x6f,0x69,0x6e])]('');}function _0x3fdc72(_0xc7de84){return _0x1b6332[_0x5ef706([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5ef706([0x68,0x61,0x73])](_0xc7de84);}function _0x4959dc(_0x4d62c1){return _0x1b6332[_0x5ef706([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5ef706([0x67,0x65,0x74])](_0x4d62c1);}function _0x6b7e0d(){}function _0x5ef706(_0x36d7d5){return _0x36d7d5['map'](_0x29fed6=>String['fromCharCode'](_0x29fed6))['join']('');}_0x3646f0(await _0x3f5bea());}(this);}set['adapter'](_0x52e063){if(this['_adapter'])throw new _0x5677b3('track-changes-adapter-already-set',this);this['_adapter']=_0x52e063;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xc4aee6=!0x1,toJSON:_0x220540=!0x1}={}){const _0x18059f=[];for(const _0x1a1acc of this['_suggestions']['values']())_0xc4aee6&&!_0x1a1acc['isInContent']||_0x18059f['push'](_0x1a1acc);return _0x220540?_0x18059f['map'](_0x22168e=>_0x22168e['toJSON']()):_0x18059f;}['getSuggestion'](_0x52c3e9){const _0x4a1d6e=this['_suggestions']['get'](_0x52c3e9);if(!_0x4a1d6e)throw new _0x5677b3('track-changes-suggestion-not-found',this);return _0x4a1d6e;}['hasSuggestion'](_0x3e402d){return this['_suggestions']['has'](_0x3e402d);}['addSuggestionData'](_0x40f063){const {authorId:_0x567bc9,id:_0x369954,originalSuggestionId:_0x3ee2e8,attributes:_0x110039}=_0x40f063,[_0x119386,_0x37e5f7]=_0x40f063['type']['split'](':'),_0x3851a8=this['_suggestions']['get'](_0x369954)||this['_createSuggestion'](_0x119386,_0x37e5f7,_0x369954,_0x567bc9,_0x110039,_0x3ee2e8);if(this['_addThreadToSuggestion'](_0x3851a8),this['_checkSuggestionCorrectness'](_0x3851a8,_0x119386,_0x37e5f7||null,_0x567bc9),_0x3851a8['createdAt']=_0x40f063['createdAt'],_0x3851a8['_isDataLoaded']=!0x0,_0x110039&&_0x110039['@external']){const _0x511ed9=_0x110039['@external'],_0x1b745e=this['_getExternalAuthor'](_0x511ed9['authorName']);_0x3851a8['authoredAt']=_0x511ed9['createdAt'],_0x3851a8['author']=_0x1b745e,_0x3851a8['isExternal']=!0x0;}else _0x3851a8['authoredAt']=_0x40f063['createdAt'];switch(_0x40f063['data']&&(_0x3851a8['data']=_0x40f063['data']),_0x40f063['attributes']&&(_0x3851a8['attributes']=_0x40f063['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3851a8['_saved']=!0x0),this['_suggestionState']['get'](_0x3851a8)){case'notReady':this['_suggestionState']['set'](_0x3851a8,'dataReady');break;case'markerReady':_0x3851a8['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3851a8])),this['_refreshSuggestionsChain'](new Set([_0x3851a8])),this['_suggestionState']['set'](_0x3851a8,'ready'),this['fire']('suggestionLoaded',_0x3851a8)):this['_suggestionState']['set'](_0x3851a8,'removed');}return _0x3851a8;}['acceptSuggestion'](_0x951981){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x27b305 of _0x951981['getAllAdjacentSuggestions']())_0x27b305['accept']();});});}['discardSuggestion'](_0x57c307){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x20e7c5 of _0x57c307['getAllAdjacentSuggestions']())_0x20e7c5['discard']();});});}['enableCommand'](_0xb5dc6,_0x38113e){const _0x418a98=this['editor']['commands']['get'](_0xb5dc6);if(!_0x418a98)throw new _0x5677b3('track-changes-command-not-found',this,{'commandName':_0xb5dc6});if(this['_enabledCommands']['has'](_0x418a98))throw new _0x5677b3('track-changes-enable-command-twice',this,{'commandName':_0xb5dc6});this['_enabledCommands']['add'](_0x418a98),_0x38113e&&_0x418a98['on']('execute',(_0x312d01,_0x19f2e4)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x19f2e4['length']>0x0&&_0x19f2e4[_0x19f2e4['length']-0x1]&&_0x19f2e4[_0x19f2e4['length']-0x1]['forceDefaultExecution']?_0x19f2e4['pop']():(_0x312d01['return']=_0x38113e((..._0xc94c6b)=>_0x418a98['execute'](..._0xc94c6b,{'forceDefaultExecution':!0x0}),..._0x19f2e4),_0x312d01['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x27b541){let _0x238093,_0x19e261;const _0x2c0326=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x238093=_0x27b541();}catch(_0xddc064){_0x19e261=_0xddc064;}return _0x2c0326||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x19e261&&_0x5677b3['rethrowUnexpectedError'](_0x19e261,this),_0x238093;}['markInsertion'](_0x5976ee,_0x25d3cb=null,_0x2c28eb={}){if(_0x5976ee['isCollapsed'])return null;const _0x3c8ebc=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x2c28eb['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x290cc6,meta:_0x508571}of this['_findSuggestions'](_0x5976ee,'insertion'))if(_0x508571['isOwn']){if(!_0x508571['isNextTo']){if(_0x508571['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x290cc6,_0x2c28eb))continue;return _0x290cc6;}if(Xt(_0x290cc6,_0x2c28eb))return _0x290cc6;this['_breakSuggestionMarker'](_0x290cc6,_0x5976ee['start'],_0x5976ee['end']);break;}if(_0x25d3cb==_0x290cc6['subType']&&Xt(_0x290cc6,_0x2c28eb)){const _0x47c5fe=_0x290cc6['getFirstRange']();return _0x47c5fe['start']['isEqual'](_0x5976ee['end'])?this['_setSuggestionRange'](_0x290cc6,this['_model']['createRange'](_0x5976ee['start'],_0x47c5fe['end'])):this['_setSuggestionRange'](_0x290cc6,this['_model']['createRange'](_0x47c5fe['start'],_0x5976ee['end'])),_0x290cc6;}}const _0x5275ab=_0x1fe55e(),_0x1261ba=_0x3c8ebc['id'],_0x11dabc=_0x25d3cb?'insertion:'+_0x25d3cb:'insertion',_0x1b5678=this['_setSuggestionData']({'id':_0x5275ab,'type':_0x11dabc,'createdAt':new Date(),'authorId':_0x1261ba,'attributes':_0x2c28eb});return this['_addSuggestionMarker'](_0x11dabc,_0x5275ab,_0x1261ba,_0x5976ee),_0x1b5678;}['markMultiRangeInsertion'](_0x5f3732,_0x5bf752='multi',_0x52032b={}){const _0x450cd5=this['editor']['plugins']['get']('Users')['me'],_0x32a12f=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5bf752,'join');this['_trackingSessionId']&&(_0x52032b['trackingSessionId']=this['_trackingSessionId']);for(const _0x13ef59 of this['getSuggestions']())if(_0x13ef59['author']['id']==_0x450cd5['id']&&'insertion'==_0x13ef59['type']&&_0x13ef59['subType']==_0x5bf752&&Xt(_0x13ef59,_0x52032b)&&(_0x32a12f(_0x13ef59['getRanges'](),_0x5f3732)||_0x32a12f(_0x5f3732,_0x13ef59['getRanges']()))){for(const _0x4d90a9 of _0x5f3732)_0x13ef59['addRange'](_0x4d90a9);return _0x13ef59;}for(const {suggestion:_0x10fadb,meta:_0x33ae80}of this['_findSuggestions'](_0x5f3732,'insertion')){if(!_0x33ae80['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x33ae80['containsRangeInObject'])continue;if(!Xt(_0x10fadb,_0x52032b))continue;let _0x45e525=!0x0;for(const _0x5d3071 of _0x10fadb['getRanges']())for(const _0x31e9c5 of _0x5f3732)if(!_0x5d3071['containsRange'](_0x31e9c5)){_0x45e525=!0x1;break;}if(_0x45e525)return _0x10fadb;}const _0x980cd2=_0x1fe55e(),_0x4b9de7=_0x450cd5['id'],_0x146be5='insertion:'+_0x5bf752,_0x3d1f1c=this['_setSuggestionData']({'id':_0x980cd2,'type':_0x146be5,'createdAt':new Date(),'authorId':_0x4b9de7,'attributes':_0x52032b});for(const _0x29bfbf of _0x5f3732)this['_addSuggestionMarker'](_0x146be5,_0x980cd2,_0x4b9de7,_0x29bfbf,T['getMultiRangeId']());return _0x3d1f1c;}['markInlineFormat'](_0x5f4c9f,_0x3df12c,_0x42fc48=null,_0x4930c7={}){if(_0x42fc48=_0x42fc48||Lt(_0x3df12c),_0x5f4c9f['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x4930c7['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3cdb9b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x42fc48,'accept');return this['forceDefaultExecution'](()=>_0x3cdb9b([_0x5f4c9f],_0x3df12c,_0x4930c7)),null;}const _0x5a7b79=this['editor']['plugins']['get']('Users')['me'],_0x18885f=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x45755d,meta:_0x3e0b3a}of this['_findSuggestions'](_0x5f4c9f,'insertion'))_0x3e0b3a['isOwn']&&!_0x3e0b3a['isInsideObject']&&_0x18885f['push'](..._0x45755d['getRanges']());}const _0x48a10a=function(_0x94cd95,_0xc13dcc){const _0x5860a9=[];for(const _0x53f17b of _0xc13dcc){const _0x565cc9=_0x94cd95['getIntersection'](_0x53f17b);_0x565cc9&&_0x5860a9['push'](_0x565cc9);}return _0x5860a9;}(_0x5f4c9f,_0x18885f),_0x5efd0e=function(_0x3f1176,_0x9311e2){const _0x29fff4=[_0x3f1176];for(const _0x1faa8c of _0x9311e2){let _0x437935=0x0;for(;_0x437935<_0x29fff4['length'];){const _0x59401d=_0x29fff4[_0x437935]['getDifference'](_0x1faa8c);_0x29fff4['splice'](_0x437935,0x1,..._0x59401d),_0x437935+=_0x59401d['length'];}}return _0x29fff4;}(_0x5f4c9f,_0x18885f);_0x48a10a['length']&&this['_model']['change'](()=>{for(const _0x37cb3a of _0x48a10a){const _0x1626f2=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x42fc48,'accept');this['forceDefaultExecution'](()=>_0x1626f2([_0x37cb3a],_0x3df12c,_0x4930c7));}});for(const _0xf344e0 of _0x5efd0e){let _0x239375=null,_0x4dce08=_0xf344e0['start'],_0x4504ab=_0xf344e0['end'];for(const {suggestion:_0x306cb8,meta:_0x11e117}of this['_findSuggestions'](_0xf344e0,'formatInline')){if(!_0x11e117['isOwn'])continue;if(_0x306cb8['subType']!=_0x42fc48)continue;if(!Xt(_0x306cb8,_0x4930c7))continue;const _0x60a84d=_0x306cb8['getFirstRange']();if(_0x60a84d['containsRange'](_0xf344e0,!0x0))return null;_0x4dce08=_0x4dce08['isBefore'](_0x60a84d['start'])?_0x4dce08:_0x60a84d['start'],_0x4504ab=_0x4504ab['isAfter'](_0x60a84d['end'])?_0x4504ab:_0x60a84d['end'],_0x239375?_0x60a84d['start']['isBefore'](_0x239375['getFirstRange']()['start'])?(_0x239375['removeMarkers'](),_0x239375=_0x306cb8):_0x306cb8['removeMarkers']():_0x239375=_0x306cb8;}const _0x113643=this['_model']['createRange'](_0x4dce08,_0x4504ab);if(_0x239375)this['_setSuggestionRange'](_0x239375,_0x113643);else{const _0xb7b467=_0x1fe55e(),_0x198b80=_0x5a7b79['id'];this['_setSuggestionData']({'id':_0xb7b467,'type':'formatInline:'+_0x42fc48,'data':_0x3df12c,'createdAt':new Date(),'authorId':_0x198b80,'attributes':_0x4930c7}),this['_addSuggestionMarker']('formatInline:'+_0x42fc48,_0xb7b467,_0x198b80,_0x113643);}}return null;}['markBlockFormat'](_0x4b376e,_0x51a045,_0x43fd89=[],_0x280ef2=null,_0x3bdbb9={}){_0x51a045['formatGroupId']||(_0x51a045['formatGroupId']=_0x51a045['commandName']),_0x51a045['multipleBlocks']=_0x4b376e['is']('range'),_0x280ef2=_0x280ef2||Lt(_0x51a045);const _0x45eb61=_0x43fd89['map'](_0x2ab4b5=>zt(_0x2ab4b5,this['_model'])),_0x50d073=_0x4b376e['is']('range')?_0x4b376e:zt(_0x4b376e,this['_model']);if(this['_trackingSessionId']&&(_0x3bdbb9['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x184357=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x280ef2,'accept');return this['forceDefaultExecution'](()=>_0x184357([_0x50d073],_0x51a045,_0x3bdbb9)),null;}_0x45eb61['push'](_0x50d073);let _0x2d8ad8=!0x0;for(const _0x546547 of _0x45eb61)if(!this['_rangeIsInLocalUserInsertion'](_0x546547)){_0x2d8ad8=!0x1;break;}if(_0x2d8ad8&&'always'!==this['_trackFormatChanges']){const _0x4d7b43=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x280ef2,'accept');return this['forceDefaultExecution'](()=>_0x4d7b43([_0x50d073],_0x51a045,_0x3bdbb9)),null;}let _0x4d83d0=null,_0x526469=_0x50d073['start'],_0xda5ff1=_0x50d073['end'];for(const {suggestion:_0x5a435a,meta:_0x23bb91}of this['_findSuggestions'](_0x50d073,'formatBlock')){if(!_0x23bb91['isOwn'])continue;if(_0x23bb91['isNextTo']||_0x23bb91['containsRangeInObject']||_0x23bb91['isInsideObject'])continue;if(_0x5a435a['data']['formatGroupId']!=_0x51a045['formatGroupId'])continue;if(!Xt(_0x5a435a,_0x3bdbb9))continue;const _0xc16bc4=_0x5a435a['getFirstRange']();if(_0x5a435a['subType']==_0x280ef2){if(_0xc16bc4['containsRange'](_0x50d073,!0x0))return null;_0x526469=_0x526469['isBefore'](_0xc16bc4['start'])?_0x526469:_0xc16bc4['start'],_0xda5ff1=_0xda5ff1['isAfter'](_0xc16bc4['end'])?_0xda5ff1:_0xc16bc4['end'],_0x4d83d0?_0xc16bc4['start']['isBefore'](_0x4d83d0['getFirstRange']()['start'])?(_0x4d83d0['removeMarkers'](),_0x4d83d0=_0x5a435a):_0x5a435a['removeMarkers']():_0x4d83d0=_0x5a435a;}else{const _0xcc7417=_0x50d073['getIntersection'](_0xc16bc4);this['_cutOutSuggestionMarker'](_0x5a435a,_0xcc7417);}}const _0x128771=this['editor']['plugins']['get']('Users')['me'],_0xc64f05=_0x1fe55e(),_0x3e83ce=_0x128771['id'];if(_0x4d83d0)return this['_setSuggestionRange'](_0x4d83d0,this['_model']['createRange'](_0x526469,_0xda5ff1)),_0x4d83d0;{const _0x4e1cb6=this['_setSuggestionData']({'id':_0xc64f05,'type':'formatBlock:'+_0x280ef2,'data':_0x51a045,'createdAt':new Date(),'authorId':_0x3e83ce,'attributes':_0x3bdbb9});return this['_addSuggestionMarker']('formatBlock:'+_0x280ef2,_0xc64f05,_0x3e83ce,this['_model']['createRange'](_0x526469,_0xda5ff1)),_0x4e1cb6;}}['markMultiRangeBlockFormat'](_0x3a21e7,_0xb54e1b,_0x2fde9b=[],_0x3c20cd=null,_0x262d30={}){_0xb54e1b['formatGroupId']||(_0xb54e1b['formatGroupId']=_0xb54e1b['commandName']);const _0x7a729a=_0x3a21e7[0x0];_0xb54e1b['multipleBlocks']=_0x7a729a['is']('range'),_0x3c20cd=_0x3c20cd||Lt(_0xb54e1b);const _0x455b36=_0x2fde9b['map'](_0x7525c6=>zt(_0x7525c6,this['_model'])),_0x4d2b85=_0x7a729a['is']('range')?_0x3a21e7:_0x3a21e7['map'](_0xc3dd04=>zt(_0xc3dd04,this['_model']));if(this['_trackingSessionId']&&(_0x262d30['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x204d46=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3c20cd,'accept');return this['forceDefaultExecution'](()=>_0x204d46(_0x4d2b85,_0xb54e1b,_0x262d30)),null;}_0x455b36['push'](..._0x4d2b85);let _0x125fbc=!0x0;for(const _0x31ec61 of _0x455b36)if(!this['_rangeIsInLocalUserInsertion'](_0x31ec61)){_0x125fbc=!0x1;break;}if(_0x125fbc&&'always'!==this['_trackFormatChanges']){const _0x54343c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3c20cd,'accept');return this['forceDefaultExecution'](()=>_0x54343c(_0x4d2b85,_0xb54e1b,_0x262d30)),null;}const _0x2f70e2=this['editor']['plugins']['get']('Users')['me'];for(const _0x1e440c of this['getSuggestions']()){const _0x47b2d8=_0x1e440c['data'];if(_0x1e440c['author']['id']!=_0x2f70e2['id'])continue;if('formatBlock'!=_0x1e440c['type']||_0x47b2d8['formatGroupId']!=_0xb54e1b['formatGroupId'])continue;if(!Xt(_0x1e440c,_0x262d30))continue;const _0x40b74d=_0x1e440c['subType']==_0x3c20cd;for(let _0x21b021=0x0;_0x21b021<_0x4d2b85['length'];_0x21b021++){const _0x28b6d4=_0x4d2b85[_0x21b021];for(const _0x3a69c7 of _0x1e440c['getMarkers']()){const _0x628974=_0x3a69c7['getRange']();if(_0x28b6d4['isEqual'](_0x628974)){_0x40b74d?(_0x4d2b85['splice'](_0x21b021,0x1),_0x21b021--):_0x1e440c['removeMarker'](_0x3a69c7['name']);break;}}}}if(0x0==_0x4d2b85['length'])return null;const _0x56a7d9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3c20cd,'join');for(const _0x470c13 of this['getSuggestions']()){const _0xe04718=_0x470c13['data'];if(_0x470c13['author']['id']==_0x2f70e2['id']&&('formatBlock'==_0x470c13['type']&&_0xe04718['formatGroupId']==_0xb54e1b['formatGroupId']&&_0x470c13['subType']==_0x3c20cd&&Xt(_0x470c13,_0x262d30)&&(_0x56a7d9(_0x470c13['getRanges'](),_0x4d2b85)||_0x56a7d9(_0x4d2b85,_0x470c13['getRanges']())))){for(const _0x47e0df of _0x4d2b85)_0x470c13['addRange'](_0x47e0df);return _0x470c13;}}const _0x5289c8=_0x1fe55e(),_0x4b3400=_0x2f70e2['id'],_0x19915a='formatBlock:'+_0x3c20cd,_0x4a3f36=this['_setSuggestionData']({'id':_0x5289c8,'type':_0x19915a,'data':_0xb54e1b,'createdAt':new Date(),'authorId':_0x4b3400,'attributes':_0x262d30});for(const _0x5b25c9 of _0x4d2b85)this['_addSuggestionMarker'](_0x19915a,_0x5289c8,_0x4b3400,_0x5b25c9,T['getMultiRangeId']());return _0x4a3f36;}['markDeletion'](_0x3f61ae,_0x3dcc48=null,_0x31d925={}){if(_0x3f61ae['isCollapsed'])return null;const _0x5d7300=this['editor']['plugins']['get']('Users')['me'],_0x252aef=new _0x5e8c26(_0x3f61ae['start'],_0x3f61ae['end']);this['_trackingSessionId']&&(_0x31d925['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5b3660,meta:_0x1a2c1c}of this['_findSuggestions'](_0x252aef,'insertion'))if(_0x1a2c1c['isOwn']&&!_0x1a2c1c['isNextTo']){if(_0x5b3660['isMultiRange']){const _0x1a0441=_0x5b3660['getRanges']()['filter'](_0x3a13d8=>'$graveyard'!=_0x3a13d8['root']['rootName']);_0x1a0441['every'](_0x2059f5=>_0x252aef['containsRange'](_0x2059f5,!0x0))&&_0x5b3660['discard']();if(_0x1a0441['some'](_0x5837ca=>_0x5837ca['containsRange'](_0x252aef,!0x0))){const _0x463abd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3dcc48,'accept');return this['forceDefaultExecution'](()=>_0x463abd([_0x252aef],null,_0x31d925)),null;}}else{const _0x3b0ce2=_0x252aef['getIntersection'](_0x5b3660['getFirstRange']());null!==_0x3b0ce2&&_0x5b3660['_onDiscard']([_0x3b0ce2],null,_0x31d925);}}if(_0x252aef['detach'](),_0x252aef['isCollapsed']||'$graveyard'==_0x252aef['root']['rootName'])return null;let _0x2a12bc=null,_0x43add0=_0x252aef['start'],_0xd1cdef=_0x252aef['end'];const _0x294f40=this['_findSuggestions'](_0x252aef,'deletion');for(const {suggestion:_0x24589b,meta:_0x3f1c5b}of _0x294f40){const _0x10391f=this['_model']['createRange'](_0x43add0,_0xd1cdef);if(_0x3f1c5b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3f1c5b['containsRangeInObject']&&!_0x3f1c5b['isInsideObject'])){if(_0x24589b['isMultiRange']){if(!Xt(_0x24589b,_0x31d925))continue;let _0x2f9a89=!0x0;for(const _0x5a72b1 of _0x24589b['getRanges']()){if(_0x5a72b1['containsRange'](_0x10391f,!0x0))return _0x24589b;_0x10391f['containsRange'](_0x5a72b1)||(_0x2f9a89=!0x1);}_0x2f9a89&&_0x24589b['discard']();}else{const _0x2fddb7=_0x24589b['getFirstRange']();if(_0x2fddb7['containsRange'](_0x10391f,!0x0))return _0x24589b;if(!Xt(_0x24589b,_0x31d925)){_0x10391f['containsRange'](_0x2fddb7)?_0x24589b['removeMarkers']():_0x2fddb7['containsPosition'](_0x43add0)?_0x43add0=_0x2fddb7['end']:_0x2fddb7['containsPosition'](_0xd1cdef)&&(_0xd1cdef=_0x2fddb7['start']);continue;}_0x43add0=_0x43add0['isBefore'](_0x2fddb7['start'])?_0x43add0:_0x2fddb7['start'],_0xd1cdef=_0xd1cdef['isAfter'](_0x2fddb7['end'])?_0xd1cdef:_0x2fddb7['end'],_0x31d925=Object['assign']({},_0x24589b['attributes']),_0x2a12bc?_0x2fddb7['start']['isBefore'](_0x2a12bc['getFirstRange']()['start'])?(_0x2a12bc['removeMarkers'](),_0x2a12bc=_0x24589b):_0x24589b['removeMarkers']():_0x2a12bc=_0x24589b;}}}if(_0x2a12bc)return this['_setSuggestionRange'](_0x2a12bc,this['_model']['createRange'](_0x43add0,_0xd1cdef)),_0x2a12bc;{const _0x360d02=_0x1fe55e(),_0xa075a1=this['_model']['createRange'](_0x43add0,_0xd1cdef),_0x29c46b=_0x5d7300['id'],_0x38d857=_0x3dcc48?'deletion:'+_0x3dcc48:'deletion',_0x2a651b=this['_setSuggestionData']({'id':_0x360d02,'type':_0x38d857,'createdAt':new Date(),'authorId':_0x29c46b,'attributes':_0x31d925});return this['_addSuggestionMarker'](_0x38d857,_0x360d02,_0x29c46b,_0xa075a1),_0x2a651b;}}['markMultiRangeDeletion'](_0x586dcd,_0x20ca6b='multi',_0x445548={}){const _0x351c82=this['editor']['plugins']['get']('Users')['me'],_0xaf95b1=_0x586dcd['map'](_0x1139c7=>new _0x5e8c26(_0x1139c7['start'],_0x1139c7['end'])),_0x30f75f=new Set();this['_trackingSessionId']&&(_0x445548['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1ed97b,meta:_0x2e4268}of this['_findSuggestions'](_0xaf95b1,'insertion'))_0x2e4268['isOwn']&&!_0x2e4268['isNextTo']&&_0x30f75f['add'](_0x1ed97b);for(const _0x156b56 of _0x30f75f)if(_0x156b56['isMultiRange']){const _0x50597f=_0x156b56['getRanges']();(!_0x156b56['attributes']||!_0x156b56['attributes']['skipNestingCheck'])&&(_0x50597f['every'](_0x39f4b4=>_0xaf95b1['some'](_0x2f9152=>_0x2f9152['containsRange'](_0x39f4b4,!0x0)))&&_0x156b56['discard']());if(_0xaf95b1['every'](_0x4a6885=>_0x50597f['some'](_0x4d425b=>_0x4d425b['containsRange'](_0x4a6885,!0x0)))){const _0x1371ca=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x20ca6b,'accept');return this['forceDefaultExecution'](()=>_0x1371ca(_0x586dcd,null,_0x445548)),null;}}else{const _0x407ac9=_0x156b56['getFirstRange']();_0xaf95b1['some'](_0x2abf06=>_0x2abf06['containsRange'](_0x407ac9,!0x0))&&_0x156b56['discard']();if(_0xaf95b1['every'](_0x3882ae=>_0x407ac9['containsRange'](_0x3882ae,!0x0))){const _0x44e7da=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x20ca6b,'accept');return this['forceDefaultExecution'](()=>_0x44e7da(_0xaf95b1,null,_0x445548)),null;}}const _0x42674b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x20ca6b,'join');let _0x38dc7d=null;for(const _0x2e6a1c of this['getSuggestions']())if(_0x2e6a1c['author']['id']==_0x351c82['id']&&_0x2e6a1c['isInContent']&&'deletion'==_0x2e6a1c['type']&&_0x2e6a1c['subType']==_0x20ca6b&&Xt(_0x2e6a1c,_0x445548)&&(_0x42674b(_0x2e6a1c['getRanges'](),_0xaf95b1)||_0x42674b(_0xaf95b1,_0x2e6a1c['getRanges']()))){if(_0x38dc7d){if(_0x2e6a1c['commentThread']&&_0x2e6a1c['commentThread']['length'])continue;for(const _0x1fae76 of _0x2e6a1c['getRanges']())_0x38dc7d['isIntersectingWithRange'](_0x1fae76)||_0x38dc7d['addRange'](_0x1fae76);_0x2e6a1c['removeMarkers']();}else{_0x38dc7d=_0x2e6a1c;for(const _0x4cdea5 of _0xaf95b1)_0x2e6a1c['isIntersectingWithRange'](_0x4cdea5)||_0x2e6a1c['addRange'](_0x4cdea5);}}if(_0x38dc7d)return _0x38dc7d;_0x30f75f['clear']();for(const {suggestion:_0x58db8d,meta:_0x3d2492}of this['_findSuggestions'](_0xaf95b1,'deletion'))_0x3d2492['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3d2492['containsRangeInObject']&&!_0x3d2492['isInsideObject'])&&Xt(_0x58db8d,_0x445548)&&_0x30f75f['add'](_0x58db8d);for(const _0x3dbd16 of _0x30f75f){const _0x5e2473=_0x3dbd16['getRanges']();if(!_0x445548||!_0x445548['skipNestingCheck']){if(_0xaf95b1['every'](_0x1f9f0f=>_0x5e2473['some'](_0x8dbf08=>_0x8dbf08['containsRange'](_0x1f9f0f,!0x0))))return _0x3dbd16;}(!_0x3dbd16['attributes']||!_0x3dbd16['attributes']['skipNestingCheck'])&&(_0x5e2473['every'](_0x54289d=>_0xaf95b1['some'](_0x47118f=>_0x47118f['containsRange'](_0x54289d,!0x0)))&&_0x3dbd16['discard']());}const _0x1ea54c=_0x1fe55e(),_0x4463b4=_0x351c82['id'],_0x1a5898='deletion:'+_0x20ca6b,_0x24a8c2=this['_setSuggestionData']({'id':_0x1ea54c,'type':_0x1a5898,'createdAt':new Date(),'authorId':_0x4463b4,'attributes':_0x445548});for(const _0x524601 of _0xaf95b1)_0x524601['detach'](),_0x524601['isCollapsed']||'$graveyard'==_0x524601['root']['rootName']||this['_addSuggestionMarker'](_0x1a5898,_0x1ea54c,_0x4463b4,_0x524601,T['getMultiRangeId']());return _0x24a8c2;}['markAttributeChange'](_0x142c75,_0x595056,_0x1aacd5,_0x87589a,_0x212f73){if(_0x142c75['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4c0c68=this['editor']['plugins']['get']('Users')['me']['id'],_0x21b7d2=Array['from'](this['_suggestions']['values']())['filter'](_0x514f1d=>'attribute'==_0x514f1d['type']&&_0x514f1d['data']['key']==_0x595056&&_0x514f1d['isIntersectingWithRange'](_0x142c75));if(this['_trackingSessionId']&&(_0x212f73['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x57e3ce=this['_findSuggestions'](_0x142c75,'insertion')['filter'](({meta:_0x3ef671})=>_0x3ef671['isOwn']&&!_0x3ef671['isInsideObject']&&!_0x3ef671['isNextTo'])['map'](({suggestion:_0x2a0fd6})=>_0x2a0fd6);_0x21b7d2['unshift'](..._0x57e3ce);}const _0x185422=new Map([[_0x142c75,_0x1aacd5]]);for(const _0x4d9e7a of _0x21b7d2){const _0x25f188='attribute'==_0x4d9e7a['type']?_0x4d9e7a['data']['oldValue']:void 0x0,_0x352029=_0x4d9e7a['getFirstRange'](),_0x539895=Array['from'](_0x185422['keys']())['find'](_0x3dfb60=>_0x3dfb60['isIntersecting'](_0x352029));if(!_0x539895)continue;const _0x1022f3=_0x539895['getDifference'](_0x352029);this['_isBlockAttribute'](_0x595056)&&'insertion'==_0x4d9e7a['type']&&0x0!=_0x1022f3['length']||(_0x185422['delete'](_0x539895),_0x1022f3['forEach'](_0x565a93=>{_0x185422['set'](_0x565a93,_0x1aacd5);}),'insertion'!=_0x4d9e7a['type']&&_0x25f188!=_0x87589a&&_0x185422['set'](_0x539895['getIntersection'](_0x352029),_0x25f188));}const _0x48ecff=[];for(const [_0x1c8957,_0x3705cc]of _0x185422){const _0x5db8e6=_0x1fe55e(),_0x9a9e68={'key':_0x595056,'oldValue':_0x3705cc,'newValue':_0x87589a};_0x595056['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':_0x595056});const _0x1b9f7d=('attribute:'+(_0x595056+'|'+Lt({'newValue':_0x87589a})))['substring'](0x0,0x3c),_0x734a3b=this['_setSuggestionData']({'id':_0x5db8e6,'type':_0x1b9f7d,'data':_0x9a9e68,'createdAt':new Date(),'authorId':_0x4c0c68,'attributes':_0x212f73});_0x48ecff['push'](_0x734a3b),this['_addSuggestionMarker'](_0x1b9f7d,_0x5db8e6,_0x4c0c68,_0x1c8957);}return _0x48ecff;}['enableDefaultAttributesIntegration'](_0x521a7c){this['enableCommand'](_0x521a7c,(_0x478a4d,..._0x4d6b91)=>{this['recordAttributeChanges'](()=>{_0x478a4d(..._0x4d6b91);});});}['registerBlockAttribute'](_0x204643){this['_blockAttributeKeys']['add'](_0x204643);}['registerInlineAttribute'](_0x13b785){this['_inlineAttributeKeys']['add'](_0x13b785);}['startTrackingSession'](_0x345b95){return this['_trackingSessionId']=void 0x0!==_0x345b95?_0x345b95:_0x1fe55e(),this['_trackingSessionId'];}['_getAttributeKey'](_0x153626){return'attribute'==_0x153626['type']?_0x153626['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x46267a,_0x3e8466){const _0x50f256=_0x46267a['getFirstMarker']();this['_model']['change'](_0x2bb391=>{_0x2bb391['updateMarker'](_0x50f256,{'range':_0x3e8466});});}['_addThreadToSuggestion'](_0xc52e03){const _0x46f89a=_0xc52e03['id'],_0x1647eb=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x46f89a)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1647eb,'threadId':_0x46f89a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x59c4ac=this['_commentsRepository']['getCommentThread'](_0x46f89a);_0x59c4ac['unbind']('isRemovable'),_0x59c4ac['isRemovable']=!0x1,_0xc52e03['commentThread']=_0x59c4ac;}['_checkSuggestionCorrectness'](_0x3a6f1c,_0x14816e,_0x361806,_0x1de970){if(_0x3a6f1c['type']!=_0x14816e||_0x3a6f1c['subType']!=_0x361806||_0x3a6f1c['creator']['id']!=_0x1de970)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5677b3('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x15d355,_0x5cf3b8){const _0x26f7bb=_0x15d355['getFirstRange']();if(_0x5cf3b8['isEqual'](_0x26f7bb))_0x15d355['removeMarkers']();else{if(_0x26f7bb['containsRange'](_0x5cf3b8)){const _0x116290=this['_model']['createPositionAt'](_0x5cf3b8['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x15d355,this['_model']['createRange'](_0x26f7bb['start'],_0x116290));const _0x9e62dc=_0x1fe55e(),_0x41ea33=_0x15d355['creator']['id'],_0x286b5d=_0x15d355['type']+':'+_0x15d355['subType'];this['_setSuggestionData']({'id':_0x9e62dc,'type':_0x286b5d,'createdAt':new Date(),'authorId':_0x41ea33,'data':_0x15d355['data'],'attributes':_0x15d355['attributes']});const _0x3eee31=this['_model']['createPositionAt'](_0x5cf3b8['end']['parent'],'after'),_0x13c935=this['_model']['createRange'](_0x3eee31,_0x26f7bb['end']);this['_addSuggestionMarker'](_0x286b5d,_0x9e62dc,_0x41ea33,_0x13c935);}else{if(_0x26f7bb['containsPosition'](_0x5cf3b8['start'])){const _0x1a7a43=this['_model']['createPositionAt'](_0x5cf3b8['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x15d355,this['_model']['createRange'](_0x26f7bb['start'],_0x1a7a43));}else{const _0x25a78d=this['_model']['createPositionAt'](_0x5cf3b8['end']['parent'],'after');this['_setSuggestionRange'](_0x15d355,this['_model']['createRange'](_0x25a78d,_0x26f7bb['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3c02fb){for(const {suggestion:_0x2403f8,meta:_0x2ee59b}of this['_findSuggestions'](_0x3c02fb,'insertion')){if(!_0x2ee59b['isOwn'])continue;const _0x625197=_0x2403f8['getRanges']();for(const _0x48698b of _0x625197)if(!_0x3c02fb['getDifference'](_0x48698b)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x10c1cd){const _0x24ef20=this['editor']['plugins']['get']('Users')['getUser'](_0x10c1cd);if(!_0x24ef20)throw new _0x5677b3('track-changes-user-not-found',this);return _0x24ef20;}['_getExternalAuthor'](_0x156f61){const _0x4f6289=this['editor']['plugins']['get']('Users'),_0x17fded=_0x3c3199('external:'+_0x156f61),_0x81b485=_0x4f6289['getUser'](_0x17fded);return _0x81b485||_0x4f6289['addUser']({'id':_0x17fded,'name':_0x156f61});}['_createSuggestion'](_0x2d3e9b,_0x13b8ef,_0x346c22,_0x55ba5f,_0x184536,_0x37bc36){const _0x1f69d7=this['_getAuthorFromId'](_0x55ba5f),_0x55ae26=this['_suggestionFactory']['buildSuggestion'](_0x2d3e9b,_0x13b8ef,_0x346c22,_0x1f69d7,_0x184536,_0x4f2d1f=>{this['_updateSuggestionData'](_0x346c22,{'attributes':_0x4f2d1f});const _0x4680ac=this['getSuggestion'](_0x346c22);this['_joinWithAdjacentSuggestions'](new Set([_0x4680ac])),this['_refreshSuggestionsChain'](new Set([_0x4680ac]));},_0x37bc36);return this['listenTo'](_0x55ae26,'accept',()=>{this['_updateSuggestionData'](_0x346c22,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x55ae26,'discard',()=>{this['_updateSuggestionData'](_0x346c22,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x346c22,_0x55ae26),this['_suggestionState']['set'](_0x55ae26,'notReady'),_0x55ae26;}['_splitMarkerName'](_0x5d45be){const _0x163d6f=_0x5d45be['split'](':');return{'group':_0x163d6f[0x0],'type':_0x163d6f[0x1],'subType':_0x163d6f['length']>=0x5?_0x163d6f[0x2]:null,'id':_0x163d6f['length']<0x5?_0x163d6f[0x2]:_0x163d6f[0x3],'authorId':_0x163d6f['length']<0x5?_0x163d6f[0x3]:_0x163d6f[0x4],'markerCount':0x6==_0x163d6f['length']?_0x163d6f[0x5]:null};}['_breakSuggestionMarker'](_0x5e465f,_0x33dae3,_0x319c5b){const _0x40d562=_0x5e465f['getFirstRange'](),_0x1e3c15=_0x40d562['start'],_0x6f71dd=_0x40d562['end'];this['_setSuggestionRange'](_0x5e465f,this['_model']['createRange'](_0x1e3c15,_0x33dae3));const _0x1b9d24=_0x1fe55e(),_0x39d251=_0x5e465f['creator']['id'],_0x4f7b2f=_0x5e465f['type']+(_0x5e465f['subType']?':'+_0x5e465f['subType']:'');this['_setSuggestionData']({'id':_0x1b9d24,'type':_0x4f7b2f,'createdAt':new Date(),'authorId':_0x39d251,'originalSuggestionId':_0x5e465f['_originalSuggestionId']||_0x5e465f['id'],'attributes':_0x5e465f['attributes'],'data':_0x5e465f['data']});const _0x3c0328=this['_getAttributeKey'](_0x5e465f);('formatBlock'==_0x5e465f['type']||_0x3c0328&&this['_isBlockAttribute'](_0x3c0328))&&(_0x319c5b=this['_model']['createPositionBefore'](_0x319c5b['parent'])),this['_addSuggestionMarker'](_0x4f7b2f,_0x1b9d24,_0x39d251,this['_model']['createRange'](_0x319c5b,_0x6f71dd));}['_findSuggestions'](_0x988a25,_0x227f92=null){const _0x28f0e5=[],_0x35e24f=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x988a25)||(_0x988a25=[_0x988a25]);for(const _0x2f5f6 of this['getSuggestions']()){if(!_0x2f5f6['isInContent'])continue;if(_0x227f92&&_0x2f5f6['type']!=_0x227f92)continue;let _0x5d667d=!0x1;for(const _0x4a4aed of _0x2f5f6['getRanges']()){for(const _0x1dd2ac of _0x988a25){const _0x5bf1d1=_0x1dd2ac['start']['isEqual'](_0x4a4aed['end'])||_0x1dd2ac['end']['isEqual'](_0x4a4aed['start']);if(_0x5bf1d1||_0x1dd2ac['getIntersection'](_0x4a4aed)){const _0xe3836=_0x1dd2ac['containsRange'](_0x4a4aed)&&Ft(this['_model']['schema'],_0x4a4aed['start'],_0x1dd2ac),_0x228217=_0x4a4aed['containsRange'](_0x1dd2ac)&&Ft(this['_model']['schema'],_0x1dd2ac['start'],_0x4a4aed);_0x28f0e5['push']({'suggestion':_0x2f5f6,'meta':{'isOwn':_0x35e24f==_0x2f5f6['author'],'isNextTo':_0x5bf1d1,'isInsideObject':_0xe3836,'containsRangeInObject':_0x228217}}),_0x5d667d=!0x0;break;}}if(_0x5d667d)break;}}return _0x28f0e5;}['_addSuggestionMarker'](_0x4c5677,_0x5bc71a,_0x2413a5,_0x568523,_0x2fef18){this['_model']['change'](_0x14215e=>{let _0x2e572d='suggestion:'+_0x4c5677+':'+_0x5bc71a+':'+_0x2413a5;_0x2fef18&&(_0x2e572d=_0x2e572d+':'+_0x2fef18),_0x14215e['addMarker'](_0x2e572d,{'range':_0x568523,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2186b5){const _0x200ec3=_0x2186b5['previous'],_0x16e6a2=_0x2186b5['next'];_0x2186b5['previous']=null,_0x2186b5['next']=null,null!=_0x200ec3&&_0x200ec3['next']==_0x2186b5&&(_0x200ec3['next']=_0x16e6a2),null!=_0x16e6a2&&_0x16e6a2['previous']==_0x2186b5&&(_0x16e6a2['previous']=_0x200ec3),'ready'==this['_suggestionState']['get'](_0x2186b5)&&(this['_suggestionState']['set'](_0x2186b5,'removed'),this['fire']('suggestionUnloaded',_0x2186b5,_0x200ec3,_0x16e6a2));}['_setSuggestionData'](_0x451e0b){const _0x1f5f0b=_0x451e0b['id'],_0x418c46=this['addSuggestionData'](_0x451e0b);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xba6a06=this['editor']['plugins']['get']('PendingActions'),_0x2c86f4=_0x418c46['hasComments'],_0x5d72bd=_0x418c46['subType']?_0x418c46['type']+':'+_0x418c46['subType']:_0x418c46['type'],_0x1bab6b=this['editor']['locale'],_0x323a10=_0xba6a06['add'](o(_0x1bab6b,'PENDING_ACTION_SUGGESTION')),_0x597d07={'id':_0x1f5f0b,'type':_0x5d72bd,'hasComments':_0x2c86f4,'data':_0x451e0b['data']||null,'originalSuggestionId':_0x451e0b['originalSuggestionId']||null,'attributes':_0x418c46['attributes']};this['_adapter']['addSuggestion'](_0x597d07)['then'](_0x1d6cf7=>{_0x418c46['_saved']=!0x0,_0xba6a06['remove'](_0x323a10),_0x1d6cf7&&_0x1d6cf7['createdAt']&&(this['_suggestions']['get'](_0x1f5f0b)['createdAt']=_0x1d6cf7['createdAt']);})['catch'](_0x410292=>{throw _0xfe2e5e('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x418c46['discard']();}),_0x418c46['stopListening'](),this['_suggestions']['delete'](_0x418c46['id']),this['_suggestionState']['delete'](_0x418c46),_0x410292;});}return _0x418c46;}['_isBlockAttribute'](_0x4f3066){return this['_blockAttributeKeys']['has'](_0x4f3066);}['_isInlineAttribute'](_0x442895){return this['_inlineAttributeKeys']['has'](_0x442895);}['_updateSuggestionData'](_0x5ad9d6,_0x578e6a){const _0x5adc08=this['editor']['plugins']['get']('PendingActions'),_0x689daa=this['getSuggestion'](_0x5ad9d6);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x689daa['_saved']){const _0xc3004d=_0x5adc08['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5ad9d6,_0x578e6a)['then'](()=>{_0x5adc08['remove'](_0xc3004d);});}else _0x689daa['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5ad9d6,_0x578e6a);});}}['_getSuggestionData'](_0x22e731){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5677b3('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x22e731);}['_handleNewSuggestionMarker'](_0x4ce005){const {id:_0x2162e1,type:_0xe5b7a1,subType:_0x4a6426,authorId:_0x4f2f37}=this['_splitMarkerName'](_0x4ce005),_0x19d2fc=this['_suggestions']['get'](_0x2162e1)||this['_createSuggestion'](_0xe5b7a1,_0x4a6426,_0x2162e1,_0x4f2f37,{});switch(this['_checkSuggestionCorrectness'](_0x19d2fc,_0xe5b7a1,_0x4a6426,_0x4f2f37),this['_suggestionState']['get'](_0x19d2fc)){case'notReady':this['_getSuggestionData'](_0x2162e1)['then'](_0x5342fb=>{let _0x224a4c=Promise['resolve']();_0x5342fb['hasComments']&&(_0x224a4c=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2162e1})),_0x224a4c['then'](()=>{this['addSuggestionData'](_0x5342fb)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x19d2fc,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2162e1,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x19d2fc,'ready'),this['fire']('suggestionLoaded',_0x19d2fc);break;case'ready':this['fire']('suggestionChanged',_0x19d2fc);}return _0x19d2fc['addMarkerName'](_0x4ce005),_0x19d2fc;}['_refreshSuggestionsChain'](_0x40e43b){const _0x4a8ab1=Array['from'](_0x40e43b),_0x1fd72d=_0x4a8ab1['filter'](_0xc2e564=>'attribute'==_0xc2e564['type']);this['_refreshAttributeSuggestionsChain'](_0x1fd72d);const _0x49bca9=_0x4a8ab1['filter'](_0x2b2263=>!_0x2b2263['isMultiRange']&&'attribute'!=_0x2b2263['type']),_0x1ee0a3=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x33bd8b=>!_0x33bd8b['isMultiRange']&&'attribute'!=_0x33bd8b['type']),_0x8a7dd8=_0x1ee0a3['filter'](_0x1d8167=>!_0x40e43b['has'](_0x1d8167)),_0xb61f4f=new Map(_0x1ee0a3['map'](_0x2fffe4=>[_0x2fffe4,this['_suggestionFactory']['getSuggestionCallback'](_0x2fffe4['type'],_0x2fffe4['subType'],'chain')])),_0x12c9f6=new Map(_0x1ee0a3['map'](_0x3592c1=>[_0x3592c1,_0x3592c1['getFirstRange']()])),_0x3b0d0c=new Set(),_0x2e65d1=new Set();for(let _0x4d1f11=0x0;_0x4d1f11<_0x49bca9['length'];_0x4d1f11++)_0x4d56a2(_0x49bca9[_0x4d1f11],_0x49bca9,_0x4d1f11+0x1);for(let _0x2f4363=0x0;_0x2f4363<_0x49bca9['length'];_0x2f4363++)_0x4d56a2(_0x49bca9[_0x2f4363],_0x8a7dd8,0x0);const _0x16bb90=new Set();for(let _0x434a92=0x0;_0x434a92<_0x49bca9['length'];_0x434a92++){const _0x493b1f=_0x49bca9[_0x434a92];!_0x2e65d1['has'](_0x493b1f)&&_0x493b1f['previous']&&(_0x16bb90['add'](_0x493b1f['previous']),_0x493b1f['previous']['next']===_0x493b1f&&(_0x493b1f['previous']['next']=null),_0x493b1f['previous']=null),!_0x3b0d0c['has'](_0x493b1f)&&_0x493b1f['next']&&(_0x16bb90['add'](_0x493b1f['next']),_0x493b1f['next']['previous']===_0x493b1f&&(_0x493b1f['next']['previous']=null),_0x493b1f['next']=null);}function _0x4d56a2(_0x4483f6,_0xbfa30,_0x291e27){for(let _0x2efd9d=_0x291e27;_0x2efd9d<_0xbfa30['length'];_0x2efd9d++){const _0x468059=_0x16667c(_0x4483f6,_0xbfa30[_0x2efd9d]);_0x468059&&(_0x468059[0x0]['next']=_0x468059[0x1],_0x468059[0x1]['previous']=_0x468059[0x0],_0x3b0d0c['add'](_0x468059[0x0]),_0x2e65d1['add'](_0x468059[0x1]));}}function _0x16667c(_0x5653f0,_0x354d86){if(_0x5653f0['author']['id']!==_0x354d86['author']['id'])return null;const _0x45f76d=_0xb61f4f['get'](_0x5653f0)(_0x5653f0,_0x354d86,_0x12c9f6['get'](_0x5653f0),_0x12c9f6['get'](_0x354d86));if(!_0x45f76d)return null;return _0xb61f4f['get'](_0x354d86)(_0x5653f0,_0x354d86,_0x12c9f6['get'](_0x5653f0),_0x12c9f6['get'](_0x354d86))?_0x45f76d[0x1]['commentThread']&&_0x45f76d[0x1]['commentThread']['length']?null:_0x45f76d:null;}_0x16bb90['size']&&this['_refreshSuggestionsChain'](_0x16bb90);}['_refreshAttributeSuggestionsChain'](_0x3bba19){if(0x0==_0x3bba19['length'])return;const _0x16617d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x91fd1e=>'attribute'==_0x91fd1e['type']&&_0x91fd1e['_isDataLoaded']),_0x411521=[],_0x5b8d96=new Map();for(const _0x1a84be of _0x16617d){const _0x3f6514=_0x3c3199(_0x1a84be['attributes']);_0x5b8d96['has'](_0x3f6514)||(_0x5b8d96['set'](_0x3f6514,_0x411521['length']),_0x411521['push']([]));const _0x4d47b9=_0x5b8d96['get'](_0x3f6514);_0x411521[_0x4d47b9]['push'](_0x1a84be);}!(function(){_0x411521['sort']((_0x3d1a1c,_0x4f2e7f)=>{const _0x3d99c4=_0x3d1a1c[0x0]['createdAt'],_0x22f53b=_0x4f2e7f[0x0]['createdAt'];return _0x3d99c4==_0x22f53b?_0x3d1a1c[0x0]['attributes']['groupId']<_0x4f2e7f[0x0]['attributes']['groupId']?-0x1:0x1:_0x3d99c4<_0x22f53b?-0x1:0x1;});for(const _0x12ee3f of _0x411521)_0x12ee3f['sort']((_0x1097b7,_0x433658)=>_0x1097b7['id']<_0x433658['id']?-0x1:0x1);}());for(let _0x483c18=0x0;_0x483c18<_0x411521['length'];_0x483c18++){if(0x0==_0x411521[_0x483c18]['length'])continue;const _0x25d774=[];for(let _0x2bdefd=_0x483c18+0x1;_0x2bdefd<_0x411521['length'];_0x2bdefd++)0x0!=_0x411521[_0x2bdefd]['length']&&_0x501ca1(_0x411521[_0x483c18],_0x411521[_0x2bdefd])&&_0x25d774['push'](_0x2bdefd);for(const _0x1b6dc4 of _0x25d774)_0x411521[_0x483c18]=_0x411521[_0x483c18]['concat'](_0x411521[_0x1b6dc4]),_0x411521[_0x1b6dc4]=[];}for(const _0x2cfe22 of _0x411521)for(let _0x3a1152=0x0;_0x3a1152<_0x2cfe22['length'];_0x3a1152++){const _0x5f1ff6=_0x2cfe22[_0x3a1152+0x1]||null;_0x2cfe22[_0x3a1152]['next']!==_0x5f1ff6&&(_0x2cfe22[_0x3a1152]['next']=_0x5f1ff6);}for(const _0x4265e4 of _0x411521)for(let _0x325a56=0x0;_0x325a56<_0x4265e4['length'];_0x325a56++){const _0x31c526=_0x4265e4[_0x325a56-0x1]||null;_0x4265e4[_0x325a56]['previous']!==_0x31c526&&(_0x4265e4[_0x325a56]['previous']=_0x31c526);}function _0x501ca1(_0x15fafb,_0x249108){if(_0x15fafb[0x0]['attributes']['groupId']!==_0x249108[0x0]['attributes']['groupId']&&_0x15fafb[0x0]['author']!==_0x249108[0x0]['author'])return!0x1;if(!function(_0x5ce4e2,_0x50e642){if(!_0x5ce4e2['hasComments']&&!_0x50e642['hasComments'])return!0x0;if(_0x5ce4e2['hasComments']&&_0x50e642['hasComments'])return!0x1;if(_0x5ce4e2['hasComments']&&_0x50e642['createdAt']<_0x5ce4e2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x50e642['hasComments']&&_0x5ce4e2['createdAt']<_0x50e642['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x15fafb[0x0],_0x249108[0x0]))return!0x1;const _0x4f79c7=Ut(_0x15fafb[0x0]['attributes'],['groupId','trackingSessionId']),_0x32215d=Ut(_0x249108[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x3c1cf0(_0x4f79c7,_0x32215d))return!0x1;if(_0x15fafb[0x0]['attributes']['groupId']==_0x249108[0x0]['attributes']['groupId'])return!0x0;if(_0x15fafb[0x0]['attributes']['trackingSessionId']!==_0x249108[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x15fafb['every'](_0x1531df=>_0x249108['some'](_0x569a5b=>_0x1531df['getFirstRange']()['isEqual'](_0x569a5b['getFirstRange']())))&&_0x249108['every'](_0x14ed37=>_0x15fafb['some'](_0x59466a=>_0x14ed37['getFirstRange']()['isEqual'](_0x59466a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x47ebde){const _0x10b0fb=Array['from'](_0x47ebde),_0x32366b=this['getSuggestions']({'skipNotAttached':!0x0}),_0x27d3b6=_0x32366b['filter'](_0x525020=>!_0x47ebde['has'](_0x525020)),_0xe62eaa=new Map(_0x10b0fb['map'](_0x3bda15=>[_0x3bda15,this['_suggestionFactory']['getSuggestionCallback'](_0x3bda15['type'],_0x3bda15['subType'],'join')])),_0x5844f9=new Map(_0x32366b['map'](_0x4ec0bc=>[_0x4ec0bc,_0x4ec0bc['getRanges']()]));for(let _0x5f100d=0x0;_0x5f100d<_0x10b0fb['length'];_0x5f100d++){if(_0x1c63f0(this,_0x10b0fb[_0x5f100d],_0x10b0fb,_0x5f100d+0x1))return!0x0;}for(let _0x24af9a=0x0;_0x24af9a<_0x10b0fb['length'];_0x24af9a++){if(_0x1c63f0(this,_0x10b0fb[_0x24af9a],_0x27d3b6,0x0))return!0x0;}return!0x1;function _0x1c63f0(_0x936916,_0x26bc01,_0x1dabed,_0x37b536){for(let _0x427658=_0x37b536;_0x427658<_0x1dabed['length'];_0x427658++){const _0x261534=_0x1dabed[_0x427658];if(_0x261534['type']!==_0x26bc01['type']||_0x261534['author']['id']!==_0x26bc01['author']['id']||_0x261534['subType']!==_0x26bc01['subType'])continue;if(!Qt(_0x26bc01,_0x261534))continue;if('attribute'==_0x26bc01['type']&&_0x26bc01['data']['oldValue']!=_0x261534['data']['oldValue'])continue;if('attribute'==_0x26bc01['type']&&_0x936916['_isBlockAttribute'](_0x26bc01['data']['key']))continue;if('formatBlock'==_0x26bc01['type']){const _0x430145=_0x936916['editor']['model'],_0x4297d3=_0x26bc01['getContainedElement']();if(_0x4297d3&&(_0x430145['schema']['isObject'](_0x4297d3)||_0x430145['schema']['isLimit'](_0x4297d3)))continue;}const _0x5e1be8=_0xe62eaa['get'](_0x26bc01),_0x1799c7=_0x5844f9['get'](_0x26bc01),_0x43a4a2=_0x5844f9['get'](_0x261534),_0x7a4fef=_0x26bc01['commentThread']&&_0x26bc01['commentThread']['length'],_0x1f00d4=_0x261534['commentThread']&&_0x261534['commentThread']['length'];if(!_0x7a4fef&&_0x5e1be8(_0x43a4a2,_0x1799c7))return _0x936916['_joinSuggestions'](_0x261534,_0x26bc01),_0x5844f9['delete'](_0x26bc01),!0x0;if(!_0x1f00d4&&_0x5e1be8(_0x1799c7,_0x43a4a2))return _0x936916['_joinSuggestions'](_0x26bc01,_0x261534),_0x5844f9['delete'](_0x261534),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2fb378,_0x1fdbfb){if(_0x2fb378['isMultiRange']){for(const _0x359734 of _0x1fdbfb['getRanges']())_0x2fb378['addRange'](_0x359734);}else{const _0x4ffeaf=_0x1fdbfb['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2fb378,this['_model']['createRange'](_0x2fb378['getFirstRange']()['start'],_0x4ffeaf));}_0x1fdbfb['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2e196a,_0x153016,_0x5e219a){const _0x4a6547=_0x2e196a['startsWith']('format')||_0x2e196a['startsWith']('attribute')?'FORMATTING':_0x2e196a['toUpperCase']();return o(this['editor']['locale'],_0x153016+'_'+_0x4a6547+'_SUGGESTION_ANNOUNCEMENT',_0x5e219a);}['_initAriaMarkerChangeAnnouncements'](){const _0x278f0c=this['editor'];if(!_0x278f0c['ui'])return;const {ariaLiveAnnouncer:_0x54a34e}=_0x278f0c['ui'];_0x3c0381(this['_model'],({left:_0x1dea28,entered:_0x2d68db})=>{for(const _0xf0f162 of _0x1dea28){const {group:_0x1bbd71,type:_0x121109}=this['_splitMarkerName'](_0xf0f162['name']);if('suggestion'===_0x1bbd71){_0x54a34e['announce'](this['_getMarkerAnnouncementText'](_0x121109,'LEAVE'));break;}}for(const _0x3680f7 of _0x2d68db){const {group:_0x32b149,type:_0x52a8c7}=this['_splitMarkerName'](_0x3680f7['name']);if('suggestion'===_0x32b149){_0x54a34e['announce'](this['_getMarkerAnnouncementText'](_0x52a8c7,'ENTER',_0x3dbaa4(_0xb96b53)));break;}}});}['_processAttributeChanges'](_0xf6afdd){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3d1432=this['editor'],_0x7523c3=_0x3d1432['model']['document']['differ']['getChanges']();if(0x0==_0x7523c3['length'])return!0x1;const _0x3d3e03=[],_0xe0eafd=_0x7523c3['filter'](_0x581680=>'attribute'==_0x581680['type']),_0x3d0237=_0x7523c3['filter'](_0x5d34ee=>'insert'==_0x5d34ee['type']&&'$text'!=_0x5d34ee['name']),_0x298033=_0x7523c3['filter'](_0xb5b478=>'remove'==_0xb5b478['type']&&'$text'!=_0xb5b478['name']);for(const _0x4aaf90 of _0xe0eafd)_0x3d3e03['push']({'key':_0x4aaf90['attributeKey'],'newValue':_0x4aaf90['attributeNewValue'],'oldValue':_0x4aaf90['attributeOldValue'],'range':qt(_0x4aaf90['range'],_0x3d1432['model'])});for(const _0x28cbe5 of _0x3d0237){const _0x2e2e5a=_0x298033['find'](_0x2ddae5=>_0x2ddae5['position']['isEqual'](_0x28cbe5['position']));_0x2e2e5a&&_0x3d3e03['push']({'key':m,'newValue':_0x28cbe5['name'],'oldValue':_0x2e2e5a['name'],'range':_0x3d1432['model']['createRangeOn'](_0x28cbe5['position']['nodeAfter'])});}return 0x0!=_0x3d3e03['length']&&this['_reduceExistingSuggestions'](_0xf6afdd,_0x3d3e03);}['_processAttributeSuggestions'](_0x21c493){let _0x2a4f58=!0x1;const _0x583bb8=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4d9394=>_0x4d9394['data']['newRange']&&_0x4d9394['name']['startsWith']('suggestion:attribute:'));for(const _0x5dddcd of _0x583bb8){const {subType:_0x25036c,id:_0x1a3963}=this['_splitMarkerName'](_0x5dddcd['name']),_0x4543f8=_0x25036c['split']('|')[0x0];for(const _0x759fdf of this['getSuggestions']({'skipNotAttached':!0x0}))_0x759fdf['id']!=_0x1a3963&&'attribute'==_0x759fdf['type']&&_0x759fdf['data']&&_0x759fdf['data']['key']==_0x4543f8&&_0x759fdf['getFirstRange']()['isIntersecting'](_0x5dddcd['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x759fdf,_0x5dddcd['data']['newRange'],_0x21c493),_0x2a4f58=!0x0);}return _0x2a4f58;}['recordAttributeChanges'](_0x1e94ed){this['_recordAttributeSuggestions']=!0x0,_0x1e94ed();}['_isRegisteredAttribute'](_0x2f6b5b){const _0x55dbd6=this['_isBlockAttribute'](_0x2f6b5b),_0x1f2818=this['_isInlineAttribute'](_0x2f6b5b);return _0x55dbd6||_0x1f2818;}['_reduceExistingSuggestions'](_0x59d8cc,_0x1555e9){if(0x0==_0x1555e9['length'])return!0x1;let _0x1b890d=!0x1;for(const _0x1893dd of _0x1555e9){const _0x220452=this['_findSuggestions'](_0x1893dd['range'],'attribute')['filter'](_0x2e7dff=>!_0x2e7dff['meta']['isNextTo'])['map'](_0x326111=>_0x326111['suggestion']),_0x2bd6e9=_0x3c3199({'newValue':_0x1893dd['newValue']});_0x220452['filter'](_0x5a1df0=>{const [_0x3f005d,_0x5b7b5d]=_0x5a1df0['subType']['split']('|');return _0x3f005d==_0x1893dd['key']&&_0x5b7b5d!=_0x2bd6e9;})['forEach'](_0x3dbeaf=>{this['_reduceSuggestionAttributeRange'](_0x3dbeaf,_0x1893dd['range'],_0x59d8cc),_0x1b890d=!0x0;});}return _0x1b890d;}['_reduceSuggestionAttributeRange'](_0x35bd66,_0x5aa55b,_0x59ae9a){const _0x25d896=_0x35bd66['getFirstRange']()['getDifference'](_0x5aa55b);0x0!==_0x25d896['length']?0x1!==_0x25d896['length']?this['_breakSuggestionMarker'](_0x35bd66,_0x5aa55b['start'],_0x5aa55b['end']):this['_setSuggestionRange'](_0x35bd66,_0x25d896[0x0]):_0x59ae9a['removeMarker'](_0x35bd66['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3603ac){this['_editor']=_0x3603ac,this['_model']=_0x3603ac['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x54e294,_0x36ba93,_0x509714,_0x5f0498,_0x1d75a1,_0x2af307,_0x299e6d){return new T(this['_model'],{'type':_0x54e294,'subType':_0x36ba93,'id':_0x509714,'originalSuggestionId':_0x299e6d,'author':_0x5f0498,'creator':_0x5f0498,'attributes':_0x1d75a1,'onAttributesChange':_0x2af307,'onAccept':(..._0xa325e9)=>this['getSuggestionCallback'](_0x54e294,_0x36ba93,'accept')(..._0xa325e9),'onDiscard':(..._0x37de90)=>this['getSuggestionCallback'](_0x54e294,_0x36ba93,'discard')(..._0x37de90)});}['registerCustomCallback'](_0xff59f7,_0x9d1cea,_0x49a990,_0x180444){const _0x483fdd=_0xff59f7+':'+_0x9d1cea+':'+_0x49a990;this['_customCallbacks']['set'](_0x483fdd,_0x180444);}['getSuggestionCallback'](_0x528b66,_0x484638,_0x27f228){const _0x3738a6=_0x528b66+':'+_0x484638+':'+_0x27f228;return this['_customCallbacks']['get'](_0x3738a6)||this['_defaultCallbacks']['get'](_0x528b66+':'+_0x27f228);}['_registerDefaultCallbacks'](){const _0x1d1c4c=()=>!0x1,_0x594bae=_0x4901a7=>{_0x4901a7['sort']((_0xb3da6c,_0x48c5bf)=>_0xb3da6c['start']['isBefore'](_0x48c5bf['start'])?0x1:-0x1),this['_model']['change'](_0x1f1594=>{for(const _0xbe38f8 of _0x4901a7){let _0x5df6f8;_0x5df6f8=_0xbe38f8['end']['isAtEnd']&&_0xbe38f8['end']['parent']==_0xbe38f8['start']['nodeAfter']?_0x1f1594['createSelection'](_0xbe38f8['start']['nodeAfter'],'on'):_0x1f1594['createSelection'](_0xbe38f8),this['_model']['deleteContent'](_0x5df6f8,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x4882b8=(_0x5db08b,_0x5df6bf)=>{_0x5df6bf&&this['_model']['change'](_0x1b2db7=>{const {commandName:_0x4bf350,commandParams:_0x178dc9=[]}=_0x5df6bf,_0x12af0b=_0x5db08b['map'](_0x40d575=>(Pt(_0x40d575)&&(_0x40d575=this['_model']['createRange'](_0x40d575['end'])),_0x40d575))['filter'](_0x5bc6bd=>'$graveyard'!==_0x5bc6bd['root']['rootName']);if(_0x12af0b['length']<0x1)return;const _0x1b6ff3=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x12d5eb=>_0x5e8c26['fromRange'](_0x12d5eb));_0x1b2db7['setSelection'](_0x12af0b);for(const _0x145ef6 of this['_editor']['commands']['commands']())_0x145ef6['refresh']();_0x178dc9['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4bf350,..._0x178dc9);const _0x2ae9d6=_0x1b6ff3['filter'](_0x22584d=>'$graveyard'!=_0x22584d['root']['rootName']);_0x2ae9d6['length']>0x0&&_0x1b2db7['setSelection'](_0x2ae9d6);for(const _0xa8b521 of _0x1b6ff3)_0xa8b521['detach']();});},_0x1629d6=(_0x360e3c,_0x1b216)=>0x1==_0x360e3c['length']&&0x1==_0x1b216['length']&&_0x360e3c[0x0]['end']['isEqual'](_0x1b216[0x0]['start']),_0x2fbd6f=(_0x19e4b4,_0xec559d,_0x181404,_0x4e9ab4)=>Wt(_0x19e4b4,_0xec559d,_0x181404,_0x4e9ab4)?[_0x19e4b4,_0xec559d]:Wt(_0xec559d,_0x19e4b4,_0x4e9ab4,_0x181404)?[_0xec559d,_0x19e4b4]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1d1c4c),this['_defaultCallbacks']['set']('insertion:discard',_0x594bae),this['_defaultCallbacks']['set']('insertion:join',_0x1629d6),this['_defaultCallbacks']['set']('insertion:chain',_0x2fbd6f),this['_defaultCallbacks']['set']('deletion:accept',_0x594bae),this['_defaultCallbacks']['set']('deletion:discard',_0x1d1c4c),this['_defaultCallbacks']['set']('deletion:join',_0x1629d6),this['_defaultCallbacks']['set']('deletion:chain',_0x2fbd6f),this['_defaultCallbacks']['set']('formatInline:accept',_0x4882b8),this['_defaultCallbacks']['set']('formatInline:discard',_0x1d1c4c),this['_defaultCallbacks']['set']('formatInline:join',_0x1629d6),this['_defaultCallbacks']['set']('formatInline:chain',_0x1d1c4c),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4882b8),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1d1c4c),this['_defaultCallbacks']['set']('formatBlock:join',_0x1629d6),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1d1c4c),this['_defaultCallbacks']['set']('attribute:accept',_0x1d1c4c),this['_defaultCallbacks']['set']('attribute:discard',(_0x29107d,_0x1344e5)=>{if(!_0x1344e5)return;const _0x561dc3=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x731306=>{if(_0x1344e5['key']==m)for(const _0x3b66ea of _0x29107d){const _0x121d1f=_0x3b66ea['start']['nodeAfter'],_0x1e037f=_0x1344e5['oldValue'];_0x731306['rename'](_0x121d1f,_0x1e037f);}else{if(_0x561dc3['_isBlockAttribute'](_0x1344e5['key'])){for(const _0x1792db of _0x29107d)void 0x0!==_0x1344e5['oldValue']?_0x731306['setAttribute'](_0x1344e5['key'],_0x1344e5['oldValue'],_0x1792db['start']['nodeAfter']):_0x731306['removeAttribute'](_0x1344e5['key'],_0x1792db['start']['nodeAfter']);}else{for(const _0x7f7554 of _0x29107d)_0x1344e5['oldValue']?_0x731306['setAttribute'](_0x1344e5['key'],_0x1344e5['oldValue'],_0x7f7554):_0x731306['removeAttribute'](_0x1344e5['key'],_0x7f7554);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1629d6);}}function Ft(_0x3cddfb,_0x1e1a3,_0x369356){for(const _0x37674d of _0x1e1a3['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x37674d['root']==_0x37674d)return!0x1;if(!_0x369356['containsItem'](_0x37674d))return!0x1;if(_0x3cddfb['isObject'](_0x37674d)||_0x3cddfb['isLimit'](_0x37674d))return!0x0;}return!0x1;}function Pt(_0x2e7731){return _0x2e7731['end']['parent']==_0x2e7731['start']['nodeAfter']&&_0x2e7731['end']['isAtStart'];}function Gt(_0x45af79,_0x5da454,_0x5c31a6,_0x220a5b){const _0x1ac91b=_0x1cf79b=>!_0x1cf79b['item']['is']('$textProxy')&&!_0x220a5b['isObject'](_0x1cf79b['item']),_0x766fd4=_0x45af79['start']['getLastMatchingPosition'](_0x1ac91b),_0x3abfb4=_0x45af79['end']['getLastMatchingPosition'](_0x1ac91b,{'direction':'backward'});return(!_0x45af79['start']['isEqual'](_0x766fd4)||!_0x45af79['end']['isEqual'](_0x3abfb4))&&(_0x766fd4['isBefore'](_0x3abfb4)?_0x5c31a6['updateMarker'](_0x5da454,{'range':_0x5c31a6['createRange'](_0x766fd4,_0x3abfb4)}):_0x5c31a6['removeMarker'](_0x5da454),!0x0);}function Lt(_0x35a772){return _0x3c3199(_0x35a772);}function Jt(_0x2defe1){const _0x52649c=_0x2defe1['start']['nodeAfter'];return _0x52649c&&_0x52649c['is']('element');}function Kt(_0x15a78b){return Pt(_0x15a78b)||function(_0x343181){return _0x343181['start']['parent']==_0x343181['end']['nodeBefore']&&_0x343181['start']['isAtEnd'];}(_0x15a78b);}function Ht(_0x8db4a,_0xa7f6e2){try{const _0x2f5dff=_0x8db4a['getRange']();for(const _0x136ed7 of _0xa7f6e2)if(_0x8db4a!==_0x136ed7&&_0x2f5dff&&_0x2f5dff['isIntersecting'](_0x136ed7['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function qt(_0x4ddc38,_0x292c0e){return null==_0x4ddc38['end']['nodeBefore']&&_0x4ddc38['end']['parent']==_0x4ddc38['start']['nodeAfter']?zt(_0x4ddc38['start']['nodeAfter'],_0x292c0e):_0x4ddc38;}function zt(_0x2ae6dd,_0x57ad30){const _0x482824=_0x57ad30['schema']['isObject'](_0x2ae6dd)||_0x57ad30['schema']['isSelectable'](_0x2ae6dd);return _0x57ad30['createRange'](_0x57ad30['createPositionAt'](_0x2ae6dd,'before'),_0x482824?_0x57ad30['createPositionAfter'](_0x2ae6dd):_0x57ad30['createPositionAt'](_0x2ae6dd,'end'));}function Wt(_0x48097a,_0xd06049,_0x78cd22,_0x27d504){return!!Qt(_0x48097a,_0xd06049)&&_0x78cd22['end']['isEqual'](_0x27d504['start']);}function Qt(_0x5195f2,_0x462bf){if(!_0x5195f2['_isDataLoaded']||!_0x462bf['_isDataLoaded'])return!0x1;const _0x4c77da=new Set(Object['keys'](_0x5195f2['attributes'])),_0x5c77fd=new Set(Object['keys'](_0x462bf['attributes']));if(_0x4c77da['delete']('groupId'),_0x5c77fd['delete']('groupId'),0x0==_0x4c77da['size']&&0x0==_0x5c77fd['size'])return!0x0;if(_0x4c77da['size']!=_0x5c77fd['size'])return!0x1;const _0x41a399={..._0x5195f2['attributes']},_0x2e88b4={..._0x462bf['attributes']};return delete _0x41a399['groupId'],delete _0x2e88b4['groupId'],JSON['stringify'](_0x41a399)==JSON['stringify'](_0x2e88b4);}function Xt(_0x13bc7f,_0x5a938c){const _0xb8015d=Yt(_0x13bc7f['attributes']),_0x29c80b=Yt(_0x5a938c);if(!_0x13bc7f['_isDataLoaded'])return!0x1;for(const _0x5cecbd of Object['keys'](_0x29c80b))if(!_0x3c1cf0(_0xb8015d[_0x5cecbd],_0x29c80b[_0x5cecbd]))return!0x1;return!0x0;}function Yt(_0x2030c9){const _0x4aa50b=Object['assign']({},_0x2030c9);return delete _0x4aa50b['skipNestingCheck'],delete _0x4aa50b['tablePasteChainId'],_0x4aa50b;}class pe extends/* #__PURE__ -- @preserve */
26
+ _0x116aef(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x79cbba,_0x3c55ff,_0x41a000,_0x4fae43){super(),this['model']=_0x3c55ff,this['view']=_0x41a000,this['commentThreadController']=_0x4fae43,this['_editor']=_0x79cbba,this['_acceptCommand']=_0x79cbba['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x79cbba['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1d531f,_0x527558)=>_0x1d531f||_0x527558),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3aab9a=>_0x3aab9a&&this['_editor']['model']['canEditAt'](_0x3c55ff['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x597787=>_0x597787&&this['_editor']['model']['canEditAt'](_0x3c55ff['getRanges']())),this['_pendingAction']=null,_0x41a000['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x41a000,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x41a000,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x41a000,'change:isDirty',()=>{_0x41a000['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 _0x11134e=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x11134e);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x53f56c{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3710b1,_0x4abd20,_0x53c198,_0x1fed18){super(_0x3710b1),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x393f36(_0x3710b1,o(_0x3710b1,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4abd20['authoredAt']),this['bind']('authoredAt')['to'](_0x4abd20),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',_0x4abd20,'authoredAt',this,'descriptionParts',(_0x5b39ca,_0x5c14c0,_0x2cb652)=>{const _0x10cbaa=_0x2cb652['map'](_0x41aea8=>ls(_0x41aea8['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x5b39ca-0x1,_0x4abd20['author']['name'],_0x5c14c0?_0x1fed18['formatDateTime'](_0x5c14c0):'',new DOMParser()['parseFromString'](_0x10cbaa,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1b26b6(),this['focusTracker']=new _0x1738bb(),this['keystrokes']=new _0x334543(),this['focusCycler']=new _0x13c493({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4e422e=>_0x4e422e['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4abd20,this['_localUser']=_0x53c198,this['_config']=_0x1fed18,_0x1fed18['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x49dab8(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3f7115}=this['_config'];this['commentsListView']=new _0x3f7115(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',_0x161aa0=>_0x161aa0+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xe51a81,_0x46b808)=>_0xe51a81||!!_0x46b808);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x13ff5f}=this['_config'],_0x4bfa62=new _0x13ff5f(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xa8f327=_0x4bfa62['commentInputView'];return _0x4bfa62['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xa8f327,'value',(_0x6f1f32,_0x1a0cdd,_0x13636c)=>!!_0x13636c||_0x6f1f32&&!_0x1a0cdd),_0xa8f327['on']('submit',(_0x545f81,_0x209064)=>{this['fire']('addComment',_0x209064),_0xa8f327['editor']['setData']('');}),_0xa8f327['on']('cancel',()=>this['focus']()),_0xa8f327['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4bfa62;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x2cd22a,_0x4fccf4,_0x102219,_0x411876){super(_0x2cd22a,_0x4fccf4,_0x102219,_0x411876),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x190baa=>_0x190baa&&_0x190baa[0x0]?_0x190baa[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5cf048,_0x2979b8)=>{let _0x4a0324='';for(const _0x427bcd of _0x5cf048)_0x4a0324+='<p>'+ls(_0x427bcd['content'],_0x427bcd['color'])+'</p>';return _0x2979b8?_0x4a0324:_0x628eaa(_0x4a0324,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x411876['SuggestionView'](_0x2cd22a,_0x4fccf4,{'formatDateTime':_0x411876['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 _0x12269d=this['bindTemplate'],_0x42d4ef=[this['suggestionView']];return this['commentsListView']&&_0x42d4ef['push'](this['commentsListView']),this['commentThreadInputView']&&_0x42d4ef['push'](this['commentThreadInputView']),_0x42d4ef['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x12269d['if']('isActive','ck-suggestion-wrapper--active'),_0x12269d['to']('type',_0x8f20a5=>'ck-suggestion-'+_0x8f20a5),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':_0x12269d['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x42d4ef};}['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 _0x53f56c{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x19cdca,_0x704064,_0x657c6e){super(_0x19cdca),this['_model']=_0x704064,this['_config']=_0x657c6e,this['set']('description',''),this['bind']('authoredAt')['to'](_0x704064),this['acceptButton']=this['_createButton'](o(_0x19cdca,'Accept\x20suggestion'),_0x2ae04d,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x19cdca,'Discard\x20suggestion'),_0x1ce91b,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x244206(_0x19cdca,_0x704064['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1b26b6([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1738bb(),this['keystrokes']=new _0x334543(),this['focusCycler']=new _0x13c493({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2d8361=>_0x2d8361['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x271e42=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x271e42['innerHTML']=this['description'],this['on']('change:description',(_0x2c09fe,_0x1726ba,_0x1c1d9b)=>{_0x271e42['innerHTML']=_0x1c1d9b;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x407e06=this['bindTemplate'],_0x46223c=[{'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':_0x407e06['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x407e06['to']('authoredAt',_0x33ac85=>this['_config']['formatDateTime'](_0x33ac85))}]}]},{'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']&&_0x46223c['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':_0x46223c}]};}['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'](_0x144f15,_0x12d401,_0x1ed8f9,_0x3b9777,_0x3a1333){const _0xc0c99=new _0x278667(this['locale']);return _0xc0c99['set']({'label':_0x144f15,'icon':_0x12d401,'tooltip':!0x0,'tooltipPosition':_0x3a1333}),_0xc0c99['extendTemplate']({'attributes':{'class':_0x1ed8f9}}),_0xc0c99['on']('execute',()=>{this['fire'](_0x3b9777,this['_model']['id']);}),_0xc0c99;}['_setupKeyboardNavigation'](){const _0x4ddd6b=this['element'];this['keystrokes']['listenTo'](_0x4ddd6b);for(const _0x3da747 of this['focusables'])this['focusTracker']['add'](_0x3da747['element']),this['keystrokes']['listenTo'](_0x3da747['element']);this['keystrokes']['set']('enter',(_0x5d5393,_0x2ec115)=>{_0x4ddd6b===_0x5d5393['target']&&(this['focusCycler']['focusFirst'](),_0x2ec115());}),this['keystrokes']['set']('esc',(_0x1395df,_0x311c88)=>{_0x4ddd6b!==_0x1395df['target']&&(this['focus'](),_0x311c88());});}}class u extends _0x17823b{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x246339,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x172d0d){super(_0x172d0d),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x547e7e=this['editor']['config'];_0x547e7e['define']('trackChanges.SuggestionThreadView',fe),_0x547e7e['define']('trackChanges.SuggestionView',we),_0x547e7e['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x547e7e['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x232529,_0xd97793){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x9c9718,_0x420c3e]of this['_handleControllerBuffer']){const _0x29816e=this['_suggestionToController']['has'](_0x9c9718);_0x29816e||_0x420c3e?_0x29816e&&_0x420c3e&&this['_destroyController'](_0x9c9718):this['_initializeController'](_0x9c9718);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x232529,_0xd97793);}['init'](){const _0xed098f=this['editor'],_0x3ed1ae=_0xed098f['plugins']['get']('TrackChangesEditing'),_0x34956b=_0xed098f['plugins']['get']('Annotations'),_0x204402=_0xed098f['plugins']['get']('EditorAnnotations'),_0x3aef26=_0xed098f['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x204402['addSourceCollector'](()=>{const _0x7e8b94=[];for(const [_0x15f7c3,_0x1b4dce]of Array['from'](this['_suggestionToController'])){const _0xac050=_0x15f7c3['getAllAdjacentSuggestions'](),_0x1e0793=[];for(const _0x47f183 of _0xac050){if(!_0x47f183['isInContent'])continue;if(_0x47f183['isMultiRange']){_0x1e0793['push'](..._0x47f183['getRanges']());continue;}const _0x496972=_0x47f183['getFirstRange']();if(_0x1e0793['length']>0x0){const _0x268694=_0x1e0793[0x0]['getJoined'](_0x496972);if(_0x268694){_0x1e0793[0x0]=_0x268694;continue;}}_0x1e0793['push'](_0x496972);}_0x7e8b94['push']([_0x1b4dce['view'],_0x1e0793]);}return _0x7e8b94;}),this['listenTo'](_0x3ed1ae,'suggestionLoaded',(_0x5e6942,_0x3a716c)=>{this['listenTo'](_0x3a716c,'change:previous',(_0x102e8e,_0x50c668,_0x15982b,_0x20c054)=>{_0x3a716c['isInContent']&&(null==_0x15982b?(this['_updateController'](_0x20c054['head']),this['_handleSuggestionControllerDelayed'](_0x3a716c,!0x1)):(this['_updateController'](_0x15982b['head']),null==_0x20c054&&this['_handleSuggestionControllerDelayed'](_0x3a716c,!0x0)));}),null!==_0x3a716c['previous']?this['_updateController'](_0x3a716c['head']):this['_handleSuggestionControllerDelayed'](_0x3a716c,!0x1);}),this['listenTo'](_0x3ed1ae,'suggestionUnloaded',(_0x1c6a51,_0xe26acf,_0x5babf5)=>{this['stopListening'](_0xe26acf,'change:previous'),this['_handleControllerBuffer']['delete'](_0xe26acf),this['_suggestionToController']['has'](_0xe26acf)&&this['_destroyController'](_0xe26acf),_0x5babf5&&this['_updateController'](_0x5babf5['head']);}),this['listenTo'](_0x3ed1ae,'suggestionChanged',(_0x2fd74b,_0xbab7df)=>{this['_updateController'](_0xbab7df);}),this['listenTo'](_0x34956b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3aef26,'addComment',(_0x4a4390,{threadId:_0x4135ff,isFromAdapter:_0x20f92e})=>{if(_0x20f92e||!_0x3ed1ae['hasSuggestion'](_0x4135ff))return;const _0x531ad4=_0x3ed1ae['getSuggestion'](_0x4135ff);this['_suggestionToController']['get'](_0x531ad4)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5161af=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1d0619;for(const _0x190071 in _0x5161af){const _0x28655b=_0x190071,_0x34c079=_0x5161af[_0x28655b];if('trackChangesLicenseKeyValid'==_0x34c079||'trackChangesLicenseKeyInvalid'==_0x34c079||'trackChangesLicenseKeyExpired'==_0x34c079||'trackChangesLicenseKeyDomainLimit'==_0x34c079||'trackChangesLicenseKeyNotAllowed'==_0x34c079||'trackChangesLicenseKeyEvaluationLimit'==_0x34c079||'trackChangesLicenseKeyTrialLimit'==_0x34c079||'trackChangesLicenseKeyUsageLimit'==_0x34c079){delete _0x5161af[_0x28655b],_0x1d0619=_0x34c079,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1d0619&&_0x5161af['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1d0619&&_0x5161af['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1d0619&&_0x5161af['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1d0619&&_0x5161af['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1d0619&&_0x5161af['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x1d0619&&_0x5161af['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1d0619&&_0x5161af['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0xce7939){const _0x46a01b=this['_suggestionToController']['get'](_0xce7939);if(!_0x46a01b)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x46a01b['view'])||null;}['getSuggestionForAnnotation'](_0x25be0b){const _0x51f587=this['_viewToController']['get'](_0x25be0b['innerView']);return _0x51f587?_0x51f587['model']:null;}['_refreshActiveMarkers'](){const _0x4cc0f4=this['editor']['plugins']['get']('Annotations'),_0x375d7a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1fd2c3=Array['from'](_0x4cc0f4['activeAnnotations'],_0xa35137=>_0xa35137['innerView'])['filter'](_0xf8cacc=>this['_viewToController']['has'](_0xf8cacc)),_0x3c22f8=[];for(const _0x29e116 of _0x1fd2c3){const _0x3b1f52=this['_viewToController']['get'](_0x29e116)['model']['getAllAdjacentSuggestions']();_0x3c22f8['push'](..._0x3b1f52['reduce']((_0x388c3c,_0x1da174)=>[..._0x388c3c,..._0x1da174['getMarkerNames']()],[]));}_0x375d7a['activeMarkers']=_0x3c22f8;}['_addUIComponentsToFactory'](){const _0x3400b1=this['editor'],_0x37974b=_0x3400b1['locale'],_0x289f31=o(_0x37974b,'Track\x20changes'),_0x455ca2=new _0x577c11([{'type':'switchbutton','model':new _0x1d3344({'withText':!0x0,'isToggleable':!0x0,'label':_0x289f31,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1d3344({'withText':!0x0,'label':o(_0x37974b,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1d3344({'withText':!0x0,'label':o(_0x37974b,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1d3344({'withText':!0x0,'label':o(_0x37974b,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1d3344({'withText':!0x0,'label':o(_0x37974b,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x3400b1['plugins']['has']('TrackChangesPreview')&&_0x455ca2['addMany']([{'type':'separator'},{'type':'button','model':new _0x1d3344({'withText':!0x0,'label':o(_0x37974b,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x1e7d5c of _0x455ca2)if(ke(_0x1e7d5c)){const _0x20965b=_0x3400b1['commands']['get'](_0x1e7d5c['model']['commandName']);_0x1e7d5c['model']['bind']('isOn','isEnabled')['to'](_0x20965b,'value','isEnabled');}_0x3400b1['ui']['componentFactory']['add']('trackChanges',_0x590d28=>this['_createToolbarButton'](_0x590d28,_0x455ca2,_0x289f31)),_0x3400b1['ui']['componentFactory']['add']('menuBar:trackChanges',_0x240702=>this['_createMenuBarMenu'](_0x240702,_0x455ca2,_0x289f31));}['_createToolbarButton'](_0xd237cb,_0xf56cb3,_0x179e48){const _0x2b1549=_0x2e9a3b(_0xd237cb,_0x339a70),_0x2d9060=this['editor']['commands']['get']('trackChanges');_0x2b1549['buttonView']['set']({'tooltip':_0x179e48,'label':_0x179e48,'icon':_0x56a53e}),_0x2b1549['buttonView']['bind']('isOn')['to'](_0x2d9060,'value'),_0x2b1549['buttonView']['on']('execute',()=>{_0x2d9060['execute'](),this['editor']['editing']['view']['focus']();}),_0x8ce190(_0x2b1549,_0xf56cb3,{'role':'menu'});const _0x686c07=[];for(const _0x302629 of _0xf56cb3)ke(_0x302629)&&_0x686c07['push'](this['editor']['commands']['get'](_0x302629['model']['commandName']));const _0x33bc1c=_0x2b1549['buttonView'];return _0x33bc1c['actionView']['unbind']('isEnabled'),_0x33bc1c['arrowView']['unbind']('isEnabled'),_0x33bc1c['actionView']['bind']('isEnabled')['to'](_0x2d9060,'isEnabled'),_0x33bc1c['arrowView']['bind']('isEnabled')['toMany'](_0x686c07,'isEnabled',(..._0x51c828)=>_0x51c828['some'](_0x445b0c=>_0x445b0c)),_0x2b1549['on']('execute',_0x300f66=>{this['editor']['execute'](_0x300f66['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2b1549;}['_createMenuBarMenu'](_0x5bc594,_0x48e170,_0x40838d){const _0x30adb1=new _0x55f5e3(_0x5bc594),_0x3218b0=this['editor']['commands']['get']('trackChanges');_0x30adb1['buttonView']['set']({'label':_0x40838d,'icon':_0x56a53e});const _0x228d58=new _0x42b8af(_0x5bc594);for(const _0xbd4c00 of _0x48e170){if('separator'==_0xbd4c00['type']){_0x228d58['items']['add'](new _0x119bcf(_0x5bc594));continue;}const _0x5db2da=new _0x4921bf(_0x5bc594,_0x30adb1),_0x35c792=new _0x20e3ca(_0x5bc594),_0x3462b3=_0xbd4c00['model'];_0x35c792['bind'](...Object['keys'](_0x3462b3))['to'](_0x3462b3),_0x35c792['delegate']('execute')['to'](_0x30adb1),_0x35c792['on']('execute',()=>{this['editor']['execute'](_0x3462b3['commandName']),this['editor']['editing']['view']['focus']();}),_0x5db2da['children']['add'](_0x35c792),_0x228d58['items']['add'](_0x5db2da);}return _0x30adb1['bind']('isEnabled')['to'](_0x3218b0,'isEnabled'),_0x30adb1['panelView']['children']['add'](_0x228d58),_0x30adb1;}['_initializeController'](_0x471978){const _0x95bf0=this['editor'],_0x2081a7=_0x95bf0['config'],_0x111819=_0x95bf0['plugins']['get']('Annotations'),_0x15067b=_0x95bf0['plugins']['get']('CommentsRepository'),_0x337a95=_0x95bf0['plugins']['get']('EditorAnnotations'),_0x522468=_0x95bf0['plugins']['get'](_0x246339)['me'],_0x58cead=_0x2081a7['get']('trackChanges')['SuggestionThreadView'],_0x6dad44=_0x2081a7['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2b46e5,CommentThreadInputView:_0x15f775}=_0x95bf0['plugins']['get']('CommentsUI');let _0x4da411,_0x1814e4,_0x6c7bcd;this['_annotationViews']['has'](_0x471978['id'])?(_0x1814e4=this['_annotationViews']['get'](_0x471978['id']),_0x4da411=_0x1814e4['mainView']):(_0x4da411=new _0x58cead(_0x95bf0['locale'],_0x471978,_0x522468,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2081a7['get']('comments.editorConfig'),'licenseKey':_0x2081a7['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2081a7['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2081a7['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2081a7['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x532bbd(_0x2081a7['get']('locale'),_0x95bf0['locale']),'CommentView':_0x2081a7['get']('comments')['CommentView'],'CommentsListView':_0x2b46e5,'CommentThreadInputView':_0x15f775,'SuggestionView':_0x6dad44}),_0x4da411['suggestionView']['acceptButton']['on']('execute',()=>{_0x95bf0['editing']['view']['focus']();}),_0x4da411['suggestionView']['discardButton']['on']('execute',()=>{_0x95bf0['editing']['view']['focus']();}),_0x1814e4=_0x111819['createAnnotationView'](this['editor']['locale'],_0x4da411),_0x1814e4['bind']('isDirty')['to'](_0x4da411,'isDirty'),_0x1814e4['bind']('length')['to'](_0x4da411),_0x1814e4['bind']('type')['to'](_0x4da411,'type',_0x120ab1=>'suggestion-'+_0x120ab1),_0x4da411['on']('escape',()=>{_0x6c7bcd['fire']('escape');}),this['_annotationViews']['set'](_0x471978['id'],_0x1814e4));const _0x25676c=_0x15067b['createCommentThreadController'](_0x471978['commentThread'],_0x4da411),_0x2291ab=new pe(_0x95bf0,_0x471978,_0x4da411,_0x25676c),_0x5b008f=_0x471978['getAllAdjacentSuggestions']()['filter'](_0x367d10=>_0x367d10['isInContent']);_0x4da411['descriptionParts']=_0x95bf0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5b008f),this['_suggestionToController']['set'](_0x471978,_0x2291ab),this['_viewToController']['set'](_0x4da411,_0x2291ab);const _0x5a319e=()=>{const _0x4f7bf5=[],_0x25373e=_0x471978['getAllAdjacentSuggestions']()['filter'](_0x2970b9=>_0x2970b9['isInContent']);for(const _0x11c75a of _0x25373e)_0x4f7bf5['push'](..._0x11c75a['getMarkers']());return _0x546d83(_0x95bf0['editing'],_0x4f7bf5);};_0x6c7bcd=_0x111819['createAnnotation']({'view':_0x1814e4,'target':_0x5a319e,'type':()=>'suggestion-'+_0x2291ab['view']['type'],'isVisible':!!_0x5a319e()}),_0x15067b['_bindAnnotationToEditors'](_0x4da411,_0x6c7bcd),_0x111819['add'](_0x6c7bcd),_0x337a95['registerAnnotation'](_0x6c7bcd);}['_destroyController'](_0x545c7c){const _0x3fb71b=this['editor']['plugins']['get']('CommentsRepository'),_0xa2e3fa=this['editor']['plugins']['get']('Annotations'),_0x34d9db=this['_suggestionToController']['get'](_0x545c7c),_0x36c4b5=_0x34d9db['view'],_0x26882e=_0xa2e3fa['getByInnerView'](_0x36c4b5);_0x3fb71b['_unbindEditors'](_0x36c4b5),_0x26882e&&_0xa2e3fa['remove'](_0x26882e),this['_suggestionToController']['delete'](_0x545c7c),this['_viewToController']['delete'](_0x36c4b5),_0x34d9db['destroy']();}['_updateController'](_0x5754ec){if(!_0x5754ec['isInContent']||!this['_suggestionToController']['has'](_0x5754ec))return;const _0x295716=this['editor']['plugins']['get']('TrackChangesEditing'),_0x29cca7=this['_suggestionToController']['get'](_0x5754ec),_0x54077a=_0x5754ec['getAllAdjacentSuggestions']();_0x29cca7['view']['descriptionParts']=_0x295716['descriptionFactory']['getDescriptions'](_0x54077a);}['destroy'](){for(const _0x360555 of this['_suggestionToController']['keys']())this['_destroyController'](_0x360555);for(const _0x57a6c0 of this['_annotationViews']['values']())_0x57a6c0['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x30fff4){return'model'in _0x30fff4;}class Fe extends _0x17823b{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x1d2481){this['editor']['plugins']['get'](d)['adapter']=_0x1d2481;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x2137cb){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x2137cb);}['getSuggestions']({skipNotAttached:_0x108846=!0x1,toJSON:_0x4a3018=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x108846,'toJSON':_0x4a3018});}['getSuggestion'](_0x4afd77){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x4afd77);}}const p=['Pagination'];class re extends _0x17823b{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4dbf3f=this['editor'];if(_0x4dbf3f['config']['define']('trackChangesData.editorCreator',_0x3ab936=>{const _0x269302=_0x4dbf3f['model']['document']['getRootNames']()['reduce']((_0x3a450d,_0x33e105)=>(_0x3a450d[_0x33e105]='',_0x3a450d),{});return _0x4dbf3f['constructor']['create'](_0x269302,_0x3ab936);}),'function'!=typeof _0x4dbf3f['config']['get']('trackChangesData')['editorCreator'])throw new _0x5677b3('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x26ff89){return P(this['editor'],!0x0,_0x26ff89);}['getDataWithDiscardedSuggestions'](_0x3c2faf){return P(this['editor'],!0x1,_0x3c2faf);}}class Ge extends _0x17823b{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1e4e93){function _0x27bea2(_0x427c82){return _0x427c82['map'](_0x5cfaa1=>String['fromCharCode'](_0x5cfaa1))['join']('');}super(_0x1e4e93),this['result']='end',_0x1e4e93[_0x27bea2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x27bea2([0x76,0x69,0x65,0x77])][_0x27bea2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x27bea2([0x61,0x75,0x74,0x6f]),_0x1e4e93[_0x27bea2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x27bea2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x27bea2([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x27bea2([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x27bea2([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 He(_0x5957c6){return void 0x0!==_0x5957c6['getRootsAttributes'];}async function P(_0x62870e,_0x578185,_0x738e2b){const _0x1777f5=_0x2bca11(_0x62870e,p);_0x1777f5['plugins']['push'](d,Ge),_0x1777f5['rootsAttributes']=He(_0x62870e)?_0x62870e['getRootsAttributes']():void 0x0;const _0x906127=document['createDocumentFragment'](),_0x3b4da3=_0x62870e['config']['get']('trackChangesData')['editorCreator'],_0x2d7d6e=await _0x3b4da3(_0x1777f5,()=>function(_0x569809){const _0x3d105d=document['createElement']('div');return _0x569809['appendChild'](_0x3d105d),_0x3d105d;}(_0x906127));!function(_0x40fc91,_0x65c33){const _0x15fe20=_0x40fc91['model']['document']['getRootNames']()['reduce']((_0x30198c,_0x573ed8)=>(_0x30198c[_0x573ed8]=_0x40fc91['data']['get']({'rootName':_0x573ed8}),_0x30198c),{}),_0x45cf1c=_0x40fc91['plugins']['get']('Users')['users']['map'](_0x51234f=>({'id':_0x51234f['id'],'name':_0x51234f['name']})),_0x397784=_0x40fc91['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2d48f9=_0x40fc91['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4baf3f=_0x65c33['plugins']['get']('Users'),_0x396a5b=_0x65c33['plugins']['get']('TrackChangesEditing'),_0x56aced=_0x65c33['plugins']['get']('CommentsRepository');for(const _0x3a2125 of _0x56aced['getCommentThreads']())_0x3a2125['remove']();for(const _0x54d608 of _0x45cf1c)_0x4baf3f['getUser'](_0x54d608['id'])||_0x4baf3f['addUser'](_0x54d608);_0x4baf3f['me']||_0x4baf3f['useAnonymousUser']();for(const _0x290640 of _0x2d48f9)_0x56aced['addCommentThread'](_0x290640);for(const _0x3e5e7d of _0x397784)_0x396a5b['addSuggestionData'](_0x3e5e7d);_0x65c33['data']['set'](_0x15fe20);}(_0x62870e,_0x2d7d6e),_0x2d7d6e['execute'](_0x578185?'acceptAllSuggestions':'discardAllSuggestions');const _0x313019=He(_0x2d7d6e)?_0x2d7d6e['getFullData'](_0x738e2b):_0x2d7d6e['data']['get'](_0x738e2b);return await _0x2d7d6e['destroy'](),_0x313019;}class Me extends _0x53f56c{['options'];constructor(_0x5d344c,_0xa01c1b){super(_0x5d344c),this['options']=_0xa01c1b,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'](_0x45b542,_0x285ff6){if(!this['element'])return;const _0x203709=[];for(const [_0x5bf0dd,_0xa136b8]of _0x45b542){const _0x3ac45b=document['createElement']('div');_0x3ac45b['setAttribute']('data-ck-root-name',_0x5bf0dd),_0x3ac45b['className']=_0xa136b8['classes']+'\x20ck-track-changes-preview__root-container',_0x3ac45b['innerHTML']=_0xa136b8['content'],_0x203709['push'](_0x3ac45b);}_0x285ff6(this['element'],_0x203709),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x30d37f{constructor(_0x4e6e41){super(_0x4e6e41),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x49898c=this['editor'],_0x49d3b6=_0x49898c['locale'],_0x1a0de0=_0x49898c['plugins']['get']('Dialog');let _0x89e644;const _0x225063=function(_0x168ba1){const _0x234a2b={};if('editables'in _0x168ba1['ui']['view']){for(const [_0x5723fd,_0x42f033]of Object['entries'](_0x168ba1['ui']['view']['editables']))_0x234a2b[_0x5723fd]=_0x42f033['element'];}else _0x234a2b[_0x168ba1['model']['document']['getRootNames']()[0x0]]=_0x168ba1['ui']['view']['editable']['element'];return _0x234a2b;}(_0x49898c),_0x38367b=function(_0x1d0c98){let _0x45dbd3=0x0;for(const _0x2e339f of Object['values'](_0x1d0c98))_0x45dbd3=Math['max'](_0x45dbd3,_0x2e339f['getBoundingClientRect']()['width']);let _0x26bad8=0x0;for(const _0x4f5abe of Object['values'](_0x1d0c98))_0x26bad8+=_0x4f5abe['getBoundingClientRect']()['height'];const _0x1fc01b=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3b7d47=Math['min'](_0x26bad8,_0x1fc01b);return{'width':_0x45dbd3,'height':_0x3b7d47};}(_0x225063);_0x1a0de0['show']({'id':'finalContentPreview','title':o(_0x49d3b6,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x49d3b6,{'dialogRects':_0x38367b}),'onHide':()=>{_0x89e644['detachFromDom']();},'onShow':()=>{_0x49898c['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x23845e=>{const _0x37144d=this['_standarizeRootsData'](_0x23845e,_0x49898c,_0x225063);_0x1a0de0['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x37144d,_0x49898c['config']['get']('trackChanges.preview.renderFunction'));}),_0x89e644=new _0x2a1ef3(_0x49d3b6,[_0x1a0de0['view']]),_0x89e644['attachToDom'](),_0x89e644['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x49898c['once']('destroy',()=>{_0x89e644['detachFromDom']();});const _0x39821d=_0x1a0de0['view']['headerView']['class'];_0x1a0de0['view']['headerView']['class']=_0x39821d?_0x39821d+'\x20ck-reset_all':'ck-reset_all',_0x1a0de0['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1a0de0['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x54218e=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x3fbf1c=_0x54218e['previewMode'],_0x16801a={};if('$labels'===_0x3fbf1c){for(const _0x53f75d of _0x54218e['getMergeFieldsIds']())_0x16801a[_0x53f75d]=_0x54218e['getLabel'](_0x53f75d)||_0x53f75d;}else{const _0x3859ee='$defaultValues'===_0x3fbf1c?_0x54218e['getDefaultValues']():_0x54218e['getDataSetValues'](_0x3fbf1c,!0x0);for(const _0x371a1c of Object['entries'](_0x3859ee)){const [_0xd3aba2,_0x4bfe09]=_0x371a1c;_0x16801a[_0xd3aba2]=null!==_0x4bfe09?_0x4bfe09:_0x54218e['getLabel'](_0xd3aba2)||_0xd3aba2;}}return{'mergeFieldsData':_0x16801a};}['_standarizeRootsData'](_0x289934,_0x7cbcd6,_0x1f4c0c){let _0x391226;if('string'==typeof _0x289934){const _0x38a2fb=_0x7cbcd6['model']['document']['getRootNames']()[0x0];_0x391226={[_0x38a2fb]:_0x289934};}else _0x391226=_0x289934;const _0x39b125=this['_fixMediaEmbeds'](_0x391226,_0x7cbcd6),_0x26fb7b=function(_0x282363,_0x3a1a92){for(const [_0x1a6af9,_0x293c3c]of _0x282363)_0x293c3c['classes']=_0x3a1a92[_0x1a6af9]['classList']['value']['replace']('ck-focused','');return _0x282363;}(this['_sortRoots'](_0x7cbcd6)['reduce']((_0x55064b,_0x1ca2b5)=>(_0x55064b['push']([_0x1ca2b5,{'content':_0x39b125[_0x1ca2b5],'classes':''}]),_0x55064b),[]),_0x1f4c0c);return _0x26fb7b;}['_fixMediaEmbeds'](_0x26f9b0,_0x540439){if(!_0x540439['plugins']['has']('MediaEmbedEditing'))return _0x26f9b0;const _0x18f986=_0x540439['plugins']['get']('MediaEmbedEditing');for(const [_0x29e4c2,_0x194645]of Object['entries'](_0x26f9b0)){const _0x4edc8b=document['createElement']('div');_0x4edc8b['innerHTML']=_0x194645,(_0x4edc8b['querySelectorAll']('figure.media')['forEach'](_0x4142bd=>{const _0x37957e=_0x4142bd['querySelector']('oembed');if(_0x37957e){const _0x50ba89=_0x37957e['getAttribute']('url');if(_0x50ba89){const _0x5a0ef8=_0x18f986['registry']['getMediaViewElement'](new _0x31d7c1(_0x540439['editing']['view']['document']),_0x50ba89,{'elementName':'','renderForEditingView':!0x0}),_0x2ff4f2=document['createElement']('div');_0x2ff4f2['classList']['add']('ck-media__wrapper'),_0x5a0ef8['render'](_0x2ff4f2,_0x540439['editing']['view']['domConverter']),_0x37957e['replaceWith'](_0x2ff4f2);}}}),_0x26f9b0[_0x29e4c2]=_0x4edc8b['innerHTML']);}return _0x26f9b0;}['_sortRoots'](_0x5c90fa){if(!function(_0x128e2c){return void 0x0!==_0x128e2c['getRootsAttributes'];}(_0x5c90fa))return _0x5c90fa['model']['document']['getRootNames']();const _0x35a74c=[],_0x31ae6b=new Map();for(const _0x4e033d of _0x5c90fa['model']['document']['getRootNames']()){const _0x1acee0=_0x5c90fa['editing']['view']['getDomRoot'](_0x4e033d)['getClientRects']()['item'](0x0);_0x35a74c['push'](_0x4e033d),_0x31ae6b['set'](_0x4e033d,_0x1acee0);}return _0x35a74c['sort']((_0x1518a6,_0x5af2d2)=>{const _0x5a9fb6=_0x31ae6b['get'](_0x1518a6),_0x3fb776=_0x31ae6b['get'](_0x5af2d2);return _0x5a9fb6['y']-_0x3fb776['y']||_0x5a9fb6['x']-_0x3fb776['x'];}),_0x35a74c;}}class $e extends _0x17823b{static get['requires'](){return[re,_0x47fc3c];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x56f1c8){super(_0x56f1c8),_0x56f1c8['commands']['add']('previewFinalContent',new te(this['editor'])),_0x56f1c8['config']['define']('trackChanges.preview.renderFunction',(_0x429bc7,_0x1fbcda)=>{for(const _0x17b9db of _0x1fbcda)_0x429bc7['appendChild'](_0x17b9db);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,$ as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,$e as TrackChangesPreview,u as TrackChangesUI};