@ckeditor/ckeditor5-track-changes 46.0.0-alpha.5 → 46.0.0-alpha.6

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 _0x1ceda1,Plugin as _0x559983,PendingActions as _0x5e448f}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x346a74,ObservableMixin as _0x4f27e0,uid as _0x20cf05,priorities as _0x3a0027,insertToPriorityArray as _0x838c40,toArray as _0x549793,logWarning as _0xe69762,getEnvKeystrokeText as _0x538503,FocusTracker as _0x231eb3,KeystrokeHandler as _0x1ffabe,Collection as _0x30f5d4}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x34b441,IconCancel as _0x40347d,IconTrackChanges as _0x2f5b1a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x542ec3,View as _0x59a488,ViewCollection as _0x56d81b,FocusCycler as _0x3129c0,UIModel as _0x4d3856,createDropdown as _0x1e80c3,SplitButtonView as _0x552a5f,addListToDropdown as _0x56cc45,MenuBarMenuView as _0x2f852e,MenuBarMenuListView as _0xa85213,ListSeparatorView as _0x381151,MenuBarMenuListItemView as _0x32fd6e,MenuBarMenuListItemButtonView as _0x5ce50d,BodyCollection as _0x107e82,Dialog as _0x401523}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x597f1a,hashObject as _0x2fe077,surroundingMarkersDetector as _0x138bd3,FOCUS_ANNOTATION_KEYSTROKE as _0x49096d,AriaDescriptionView as _0x395108,setupThreadKeyboardNavigation as _0x163ace,trimHtml as _0x347682,UserView as _0x3b83ce,LateFocusButtonView as _0x2ec40b,getDateTimeFormatter as _0x4f5d71,getAllMarkersDomElementsSorted as _0x3a0d9a,sanitizeEditorConfig as _0x17c6af}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x10593b,ModelLiveRange as _0x334b1a,ModelLivePosition as _0x333b95,ViewDowncastWriter as _0x3be5d0}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x186ae4,toWidget as _0x1a071f}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x3e2439,set as _0x39eb1c,isEqual as _0x17f578,unset as _0x5d356b,omit as Ut}from'es-toolkit/compat';import{Delete as _0x35d7e9,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x5bca97}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x9367c}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x1ceda1{['_enabledCommands'];constructor(_0x10a7df,_0x4043a8){super(_0x10a7df),this['_enabledCommands']=_0x4043a8,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 _0x4b395f of this['editor']['commands']['commands']())_0x4b395f['affectsData']&&!this['_enabledCommands']['has'](_0x4b395f)&&_0x4b395f['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x57769a of this['editor']['commands']['commands']())_0x57769a['affectsData']&&!this['_enabledCommands']['has'](_0x57769a)&&_0x57769a['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x1ceda1{['_suggestions'];constructor(_0x5be312,_0x4e6bef){super(_0x5be312),this['_suggestions']=_0x4e6bef,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x23bcb8){const _0xa7b4e4=this['_suggestions']['get'](_0x23bcb8);if(!_0xa7b4e4)throw new _0x346a74('track-changes-accept-suggestion-not-found',this);const _0x174ff6=_0xa7b4e4['getRanges']();this['editor']['model']['canEditAt'](_0x174ff6)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xa7b4e4);}}class M extends _0x1ceda1{['_suggestions'];constructor(_0x5a76d3,_0x2185f7){super(_0x5a76d3),this['_suggestions']=_0x2185f7,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x588ad3){const _0x3d8b86=this['_suggestions']['get'](_0x588ad3);if(!_0x3d8b86)throw new _0x346a74('track-changes-discard-suggestion-not-found',this);const _0x2ca09c=_0x3d8b86['getRanges']();this['editor']['model']['canEditAt'](_0x2ca09c)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3d8b86);}}function ls(_0x47c11f,_0xcad8f9){let _0x4b40dd='';return _0x4b40dd+=_0x47c11f['split']('*')['map']((_0x2a192a,_0x2c08be)=>_0x2c08be%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Yt(_0x2a192a)+'</span>':Yt(_0x2a192a))['join'](''),_0xcad8f9&&(_0x4b40dd+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xcad8f9['value']+'\x22\x20title=\x22'+_0xcad8f9['title']+'\x22></span>'),_0x4b40dd;}function Yt(_0xdba502){const _0x55adea=document['createElement']('span');return _0x55adea['innerText']=_0xdba502,_0x55adea['innerHTML'];}function ts(_0x2786e6){return _0x2786e6['sort']((_0x5b8dff,_0x239cd5)=>'attribute'===_0x5b8dff['type']&&'attribute'!==_0x239cd5['type']?-0x1:'attribute'!==_0x5b8dff['type']&&'attribute'===_0x239cd5['type']?0x1:'deletion'==_0x5b8dff['type']&&'deletion'!=_0x239cd5['type']?-0x1:'deletion'!=_0x5b8dff['type']&&'deletion'==_0x239cd5['type']?0x1:0x0);}function to(_0xc13dcb,_0x436584){let _0x566e85,_0x245f7f=0x0;const _0x34e125=[],_0x2f07e8=_0x436584['schema'];for(;_0x245f7f<_0xc13dcb['length'];){const _0x120387=_0xc13dcb[_0x245f7f],_0x1fdd8a=_0xc13dcb[_0x245f7f+0x1];_0x566e85||(_0x566e85=_0x436584['createPositionBefore'](_0x120387)),Zt(_0x436584,_0x120387,_0x1fdd8a)||(_0x34e125['push'](_0x436584['createRange'](_0x566e85,_0x2f07e8['isObject'](_0x120387)?_0x436584['createPositionAfter'](_0x120387):_0x436584['createPositionAt'](_0x120387,'end'))),_0x566e85=null),_0x245f7f++;}return _0x34e125;}function Zt(_0x5864de,_0x1f2b57,_0x423046){if(!_0x423046)return!0x1;const _0x438d91=_0x5864de['createPositionAfter'](_0x1f2b57),_0x3e7bd0=_0x5864de['createPositionBefore'](_0x423046);return _0x438d91['isTouching'](_0x3e7bd0);}function rs(_0x18325c,_0x51096a,_0x3fb6a5){for(;_0x3fb6a5['length'];){const _0x5db7f0=_0x3fb6a5['splice'](0x0,0x64);_0x18325c['change'](()=>{for(const _0x1bebb5 of _0x5db7f0)_0x1bebb5['isInContent']&&_0x51096a['execute'](_0x1bebb5['id']);});}}class $ extends _0x1ceda1{['_command'];['_suggestions'];constructor(_0xc772dd,_0x52a38c,_0x19704c){super(_0xc772dd),this['_command']=_0x52a38c,this['_suggestions']=_0x19704c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3daa7c=Array['from'](this['_suggestions']['values']())['some'](_0x44cbd7=>_0x44cbd7['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3daa7c;}['execute'](){const _0x4ce0cd=ts(Array['from'](this['_suggestions']['values']()));for(const _0x58a4ff of _0x4ce0cd){const _0x187c58=_0x58a4ff['getRanges']();if(!this['editor']['model']['canEditAt'](_0x187c58))return;}rs(this['editor']['model'],this['_command'],_0x4ce0cd);}}class B extends _0x1ceda1{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x123f8a,_0x3e4128,_0x360ef6){super(_0x123f8a),this['_command']=_0x3e4128,this['_suggestions']=_0x360ef6,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x44f629=this['editor']['model']['document']['selection'],_0x4cc609=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0xd92b2b,_0x1e03ef){const _0x389e3d=Array['from'](_0xd92b2b['getRanges']()),_0x62e653=new Set();for(const _0x15fdcf of _0x1e03ef)if(_0x15fdcf['isInContent']){for(const _0xcb22ac of _0x389e3d)for(const _0x35c939 of _0x15fdcf['getRanges']())(_0xcb22ac['isIntersecting'](_0x35c939)||_0xd92b2b['isCollapsed']&&!_0x15fdcf['isMultiRange']&&_0x15fdcf['next']&&_0x35c939['end']['isTouching'](_0xcb22ac['start']))&&_0x62e653['add'](_0x15fdcf);}return _0x62e653;}(_0x44f629,_0x4cc609),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x93448d=ts(Array['from'](this['_selectedSuggestions']));for(const _0x4b9f2e of _0x93448d){const _0x4b0fb0=_0x4b9f2e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4b0fb0))return;}rs(this['editor']['model'],this['_command'],_0x93448d);}}class T extends/* #__PURE__ -- @preserve */
24
- _0x4f27e0(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x509a45,_0x2a92b1){super(),this['id']=_0x2a92b1['id'],this['type']=_0x2a92b1['type'],this['subType']=_0x2a92b1['subType']||null,this['author']=_0x2a92b1['author'],this['creator']=_0x2a92b1['creator']||_0x2a92b1['author'],this['isExternal']=Boolean(_0x2a92b1['attributes']&&_0x2a92b1['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x2a92b1['originalSuggestionId']||null,this['_model']=_0x509a45,this['_onAccept']=_0x2a92b1['onAccept'],this['_onDiscard']=_0x2a92b1['onDiscard'],this['_onAttributesChange']=_0x2a92b1['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2a92b1['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 _0x29f988=this;for(;_0x29f988['previous'];)_0x29f988=_0x29f988['previous'];return _0x29f988;}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'](_0x27b1d8){this['_markerNames']['add'](_0x27b1d8);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x466132=>this['_model']['markers']['get'](_0x466132))['filter'](_0x41ed1f=>_0x41ed1f);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5c0544=>{for(const _0x4818a2 of this['getMarkers']())_0x5c0544['removeMarker'](_0x4818a2);}),this['_markerNames']['clear']();}['removeMarker'](_0x568730){this['_model']['change'](_0xb54f74=>{_0xb54f74['removeMarker'](_0x568730);}),this['_markerNames']['delete'](_0x568730);}['addRange'](_0x2a4dd9){const _0x5614c1='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x5614c1),this['_model']['change'](_0x2b120a=>{_0x2b120a['addMarker'](_0x5614c1,{'range':_0x2a4dd9,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x28c143){for(const _0x53512b of this['getRanges']())if(_0x53512b['isIntersecting'](_0x28c143))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4a9c16=>_0x4a9c16['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4eb1b7,_0x5f8511)=>[..._0x4eb1b7,..._0x5f8511['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x35433d=this['getRanges']();if(0x1!=_0x35433d['length'])return null;const _0x26a322=_0x35433d[0x0],_0x4a4788=_0x26a322['start']['nodeAfter'],_0x4a9b22=_0x26a322['end']['nodeBefore'];return _0x4a4788 instanceof _0x10593b?_0x4a4788!=_0x4a9b22?null:_0x4a4788: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 _0x2c494c=[];let _0x4f2df2=this['head'];for(;_0x4f2df2;)_0x2c494c['push'](_0x4f2df2),_0x4f2df2=_0x4f2df2['next'];return _0x2c494c;}['setAttribute'](_0x21f4c2,_0x141afb){const _0x56de02=_0x3e2439(this['attributes']);_0x39eb1c(_0x56de02,_0x21f4c2,_0x141afb),_0x17f578(_0x56de02,this['attributes'])||(this['attributes']=_0x56de02,this['_onAttributesChange'](_0x56de02));}['removeAttribute'](_0x55fcf5){const _0x1c7834=_0x3e2439(this['attributes']);_0x5d356b(_0x1c7834,_0x55fcf5),_0x17f578(_0x1c7834,this['attributes'])||(this['attributes']=_0x1c7834,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 _0x20cf05()['substr'](0x1,0x5);}}function o(_0x30671f,_0x4ccdb0,_0x421bfa){const _0x703a8=_0x30671f['t'],t=_0x30671f['t'];switch(_0x4ccdb0){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',_0x421bfa);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x421bfa);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x421bfa);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x421bfa);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x421bfa);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',_0x421bfa);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x421bfa);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',_0x421bfa);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x421bfa);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x421bfa);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x421bfa);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x421bfa);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x421bfa);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x421bfa);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x421bfa);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x421bfa);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x421bfa);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x421bfa);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x421bfa);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x421bfa);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x421bfa);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x421bfa);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x421bfa);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x421bfa);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x421bfa);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'},_0x421bfa);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x421bfa);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x421bfa);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x421bfa);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x421bfa);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x421bfa);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x421bfa);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x421bfa);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'},_0x421bfa);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x421bfa);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x421bfa);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x421bfa);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x421bfa);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'},_0x421bfa);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x421bfa);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'},_0x421bfa);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'},_0x421bfa);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x421bfa);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'},_0x421bfa);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x421bfa);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'},_0x421bfa);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x421bfa);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x421bfa);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'},_0x421bfa);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x421bfa);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 _0x703a8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x421bfa);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x703a8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x421bfa);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x421bfa);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'},_0x421bfa);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'},_0x421bfa);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'},_0x421bfa);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4ccdb0;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1c4fc5,_0x5e76c8){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1c4fc5,this['_locale']=_0x5e76c8;}['getDescriptions'](_0x30dcdf){const _0xb22d53=[],_0x35b3f7=new Set(),_0x3397ce=new Set();for(let _0x3ff526=0x0;_0x3ff526<_0x30dcdf['length'];_0x3ff526++){const _0x4edf4d=_0x30dcdf[_0x3ff526];if(!_0x4edf4d['isInContent'])continue;const _0x508210=this['_handleCustomCallbackDescription'](_0x4edf4d);if(_0x508210){if(null!=_0x4edf4d['subType']){if(_0x35b3f7['has'](_0x4edf4d['subType']))continue;_0x35b3f7['add'](_0x4edf4d['subType']);}_0xb22d53['push'](_0x508210);}else{if('attribute'==_0x4edf4d['type']){const _0x390345=_0x4edf4d['data']['key'];if(_0x3397ce['has'](_0x390345))continue;_0x3397ce['add'](_0x4edf4d['data']['key']),_0x390345==m?this['_handleRenameSuggestionDescription'](_0xb22d53,_0x4edf4d):this['_handleAttributeSuggestionDescription'](_0xb22d53,_0x4edf4d);continue;}'insertion'!=_0x4edf4d['type']&&'deletion'!=_0x4edf4d['type']||this['_handleInsertRemoveSuggestionDescription'](_0xb22d53,_0x4edf4d,_0x30dcdf[_0x3ff526+0x1]);}}return this['_resolveDescriptionItems'](_0xb22d53);}['registerDescriptionCallback'](_0x5259d7){this['_customCallbacks']['push'](_0x5259d7);}['registerElementLabel'](_0x5d13ce,_0x564876,_0x561866=_0x3a0027['normal']){'function'==typeof _0x5d13ce?_0x838c40(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5d13ce,'label':_0x564876,'priority':_0x561866}):this['_itemLabels']['set'](_0x5d13ce,_0x564876);}['registerAttributeLabel'](_0x1e3846,_0x562639){this['_attributeLabels']['set'](_0x1e3846,_0x562639);}['getItemLabel'](_0x19b46f,_0x56a25f=0x1){let _0x328397;for(const _0x4075af of this['_itemLabelsCallbacks'])if(_0x4075af['matchingCallback'](_0x19b46f)){_0x328397=_0x4075af['label'];break;}return _0x328397||(_0x328397=this['_itemLabels']['get'](_0x19b46f['name'])),_0x328397?_0x328397(_0x56a25f):0x1!==_0x56a25f?_0x56a25f+'\x20'+_0x19b46f['name']+'s':''+_0x19b46f['name'];}['_addDescriptionItems'](_0x24c6d9,_0x156dfd){const _0x133ab3=_0x156dfd['getFirstRange']()['getWalker'](),_0x2dab09='insertion'==_0x156dfd['type']?'add':'remove';for(const _0x39ce94 of _0x133ab3){const _0x2ca1a5=_0x39ce94['item'],_0x20295f=_0x24c6d9[_0x24c6d9['length']-0x1];if(_0x2ca1a5['is']('$textProxy'))_0x20295f&&_0x20295f['type']['indexOf']('Container')>-0x1&&_0x24c6d9['pop'](),_0x20295f&&'text'==_0x20295f['type']?_0x20295f[_0x2dab09]+=_0x2ca1a5['data']:_0x24c6d9['push']({'type':'text','add':'add'==_0x2dab09?_0x2ca1a5['data']:'','remove':'remove'==_0x2dab09?_0x2ca1a5['data']:''});else{if(this['_schema']['isObject'](_0x2ca1a5)){const _0x4fd613=_0x2ca1a5;if(_0x20295f&&_0x20295f['type']['indexOf']('Container')>-0x1&&_0x24c6d9['pop'](),'elementEnd'==_0x39ce94['type'])continue;_0x20295f&&_0x20295f['type']==_0x2dab09+'Object'&&_0x20295f['element']['name']==_0x4fd613['name']?_0x20295f['quantity']++:_0x24c6d9['push']({'type':_0x2dab09+'Object','element':_0x4fd613,'quantity':0x1}),_0x133ab3['skip'](_0x117124=>!('elementEnd'==_0x117124['type']&&_0x117124['item']==_0x2ca1a5));}else{if(this['_schema']['checkChild'](_0x2ca1a5,'$text')||_0x2ca1a5['is']('element','softBreak')){const _0x559f62=_0x2ca1a5;if('add'==_0x2dab09&&'elementStart'==_0x39ce94['type']||'remove'==_0x2dab09&&'elementEnd'==_0x39ce94['type'])continue;if(_0x20295f&&-0x1==_0x20295f['type']['indexOf']('Container')){'text'==_0x20295f['type']&&(_0x20295f[_0x2dab09]+='\x0a');continue;}let _0x52acf4;if(_0x52acf4='add'==_0x2dab09?_0x559f62['nextSibling']&&!this['_schema']['isObject'](_0x559f62['nextSibling'])?_0x559f62['nextSibling']:null:_0x559f62['previousSibling']&&!this['_schema']['isObject'](_0x559f62['previousSibling'])?_0x559f62['previousSibling']:null,_0x559f62['isEmpty']||_0x52acf4&&_0x52acf4['isEmpty']){const _0x4be9b2=_0x52acf4&&_0x52acf4['isEmpty']?_0x52acf4:_0x559f62;_0x20295f&&_0x20295f['type']==_0x2dab09+'EmptyContainer'&&_0x20295f['element']['name']==_0x4be9b2['name']?_0x20295f['quantity']++:_0x24c6d9['push']({'type':_0x2dab09+'EmptyContainer','element':_0x4be9b2,'quantity':0x1});}else _0x24c6d9['push']({'type':_0x2dab09+'Container','element':_0x559f62});}}}}}['_resolveDescriptionItems'](_0x208d8d){const _0x36abb9=this['_locale'],_0x2e3198=[],_0x1e6799=[],_0x76c728=[];for(const _0x45adc1 of _0x208d8d)switch(_0x45adc1['type']){case'text':if(_0x45adc1['add']=_0x45adc1['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x45adc1['remove']=_0x45adc1['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x45adc1['add']&&''!=_0x45adc1['remove']){_0x2e3198['push']({'type':'replace','content':o(_0x36abb9,'REPLACE_TEXT',['\x22'+_0x45adc1['remove']+'\x22','\x22'+_0x45adc1['add']+'\x22'])});continue;}if(null!=_0x45adc1['add']['match'](/^ +$/)){_0x2e3198['push']({'type':'insertion','content':o(_0x36abb9,'*Insert:*\x20%0',o(_0x36abb9,'ELEMENT_SPACE',_0x45adc1['add']['length']))});continue;}if(null!=_0x45adc1['remove']['match'](/^ +$/)){_0x2e3198['push']({'type':'deletion','content':o(_0x36abb9,'*Remove:*\x20%0',o(_0x36abb9,'ELEMENT_SPACE',_0x45adc1['remove']['length']))});continue;}if(''!=_0x45adc1['add']){_0x2e3198['push']({'type':'insertion','content':o(_0x36abb9,'*Insert:*\x20%0','\x22'+_0x45adc1['add']+'\x22')});continue;}_0x2e3198['push']({'type':'deletion','content':o(_0x36abb9,'*Remove:*\x20%0','\x22'+_0x45adc1['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2e3198['push']({'type':'insertion','content':o(_0x36abb9,'*Insert:*\x20%0',this['getItemLabel'](_0x45adc1['element'],_0x45adc1['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2e3198['push']({'type':'deletion','content':o(_0x36abb9,'*Remove:*\x20%0',this['getItemLabel'](_0x45adc1['element'],_0x45adc1['quantity']))});continue;case'addContainer':_0x2e3198['push']({'type':'insertion','content':o(_0x36abb9,'*Split:*\x20%0',this['getItemLabel'](_0x45adc1['element'],_0x45adc1['quantity']))});continue;case'removeContainer':_0x2e3198['push']({'type':'deletion','content':o(_0x36abb9,'*Merge:*\x20%0',this['getItemLabel'](_0x45adc1['element'],_0x45adc1['quantity']))});continue;case'addFormat':_0x1e6799['push'](_0x45adc1['key']);continue;case'removeFormat':_0x76c728['push'](_0x45adc1['key']);continue;default:_0x2e3198['push'](_0x45adc1);}if(_0x1e6799['length']){const _0x23d03f=_0x1e6799['map'](_0x15e38b=>this['_attributeLabels']['has'](_0x15e38b)?this['_attributeLabels']['get'](_0x15e38b):_0x15e38b)['join'](',\x20');_0x2e3198['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x23d03f)});}if(_0x76c728['length']){const _0xdd3780=_0x76c728['map'](_0x143807=>this['_attributeLabels']['has'](_0x143807)?this['_attributeLabels']['get'](_0x143807):_0x143807)['join'](',\x20');_0x2e3198['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xdd3780)});}return _0x2e3198;}['_handleCustomCallbackDescription'](_0x52c856){for(const _0x3adb42 of this['_customCallbacks']){const _0x265ac8=_0x3adb42(_0x52c856);if(_0x265ac8&&'type'in _0x265ac8)return _0x265ac8;}}['_handleAttributeSuggestionDescription'](_0x548ab5,_0x3a8072){const _0x1e50e6=_0x3a8072['data'],_0x4a37ab=void 0x0===_0x1e50e6['newValue']?'removeFormat':'addFormat';_0x548ab5['push']({'type':_0x4a37ab,'key':_0x1e50e6['key']});}['_handleRenameSuggestionDescription'](_0x23d942,_0x5c0f5e){_0x23d942['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5c0f5e['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x57dcd8,_0x58020c,_0x1fda90){if(this['_addDescriptionItems'](_0x57dcd8,_0x58020c),_0x1fda90&&_0x1fda90['getFirstRange']()&&!_0x58020c['getFirstRange']()['end']['isEqual'](_0x1fda90['getFirstRange']()['start'])){const _0x5c4f2a=_0x57dcd8[_0x57dcd8['length']-0x1],_0x4f1ca5='insertion'==_0x58020c['type']?'add':'remove';_0x5c4f2a&&'text'==_0x5c4f2a['type']&&(_0x5c4f2a[_0x4f1ca5]+='\x0a');}}}class O extends _0x559983{['afterInit'](){const _0x5a5561=this['editor'],_0x21a249=_0x5a5561['plugins']['get']('TrackChangesEditing');_0x5a5561['commands']['get']('showAIAssistant')&&_0x21a249['enableCommand']('showAIAssistant');}}class E extends _0x559983{['afterInit'](){const _0x11eda3=this['editor'],_0x41becf=_0x11eda3['locale'];if(!_0x11eda3['plugins']['has']('AlignmentEditing'))return;const _0x26a6aa=_0x11eda3['plugins']['get']('TrackChangesEditing');_0x26a6aa['enableDefaultAttributesIntegration']('alignment'),_0x26a6aa['registerBlockAttribute']('alignment'),_0x26a6aa['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x41becf,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e58bd=this['editor'],_0x118933=_0x5e58bd['locale'];_0x5e58bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x204e45=>{if('formatBlock'!=_0x204e45['type'])return;const {data:_0x2d15f0}=_0x204e45;if(_0x2d15f0&&'alignment'==_0x2d15f0['commandName']){const _0x254ac1=_0x2d15f0['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x118933,'*Format:*\x20%0',function(_0x2b3046){switch(_0x2b3046){case'left':return o(_0x118933,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x118933,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x118933,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x118933,'FORMAT_JUSTIFY_TEXT');}}(_0x254ac1))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x559983{['afterInit'](){const _0x1ca13d=this['editor'],_0x3795c1=_0x1ca13d['plugins']['get']('TrackChangesEditing'),_0x198c6b=_0x1ca13d['locale'];for(const _0x42a65a of ti){if(!_0x1ca13d['plugins']['has'](_0x42a65a))continue;const _0x7fa956=_0x42a65a['slice'](0x0,-0x7)['toLowerCase'](),_0x13e2f3='FORMAT_'+_0x7fa956['toUpperCase']();_0x3795c1['enableDefaultAttributesIntegration'](_0x7fa956),_0x3795c1['registerInlineAttribute'](_0x7fa956),_0x3795c1['descriptionFactory']['registerAttributeLabel'](_0x7fa956,o(_0x198c6b,_0x13e2f3));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c32e7=this['editor'],_0x39ebb5=_0x4c32e7['locale'],_0x134742=_0x4c32e7['plugins']['get']('TrackChangesEditing');function _0x4069de(_0x284a76,_0x4b4645){_0x134742['descriptionFactory']['registerDescriptionCallback'](_0x4a2fa8=>{if('formatInline'!=_0x4a2fa8['type'])return;const {data:_0x2e5dbc}=_0x4a2fa8;return _0x2e5dbc&&_0x2e5dbc['commandName']===_0x284a76?_0x2e5dbc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x39ebb5,'*Format:*\x20%0',_0x4b4645)}:{'type':'format','content':o(_0x39ebb5,'*Remove\x20format:*\x20%0',_0x4b4645)}:void 0x0;});}_0x4069de('bold',o(_0x39ebb5,'FORMAT_BOLD')),_0x4069de('italic',o(_0x39ebb5,'FORMAT_ITALIC')),_0x4069de('underline',o(_0x39ebb5,'FORMAT_UNDERLINE')),_0x4069de('code',o(_0x39ebb5,'FORMAT_CODE')),_0x4069de('strikethrough',o(_0x39ebb5,'FORMAT_STRIKETHROUGH')),_0x4069de('subscript',o(_0x39ebb5,'FORMAT_SUBSCRIPT')),_0x4069de('superscript',o(_0x39ebb5,'FORMAT_SUPERSCRIPT'));}}class U extends _0x559983{['afterInit'](){const _0x281da8=this['editor'],_0x5237d9=_0x281da8['locale'];if(!_0x281da8['plugins']['has']('BlockQuoteEditing'))return;const _0xc56995=_0x281da8['plugins']['get']('TrackChangesEditing'),_0x14bb6c=this['editor']['commands']['get']('blockQuote');_0xc56995['enableCommand']('blockQuote',(_0x484e5e,_0x4092ad={})=>{const _0x301489=this['editor']['model']['document']['selection'],_0x5b8563=_0x4092ad&&void 0x0!==_0x4092ad['forceValue']?_0x4092ad['forceValue']:!_0x14bb6c['value'];let _0x4ce808=[];if(_0x5b8563){const _0x1530d5=Array['from'](_0x301489['getSelectedBlocks']())['filter'](_0x1c5299=>oo(_0x1c5299)||function(_0x420812,_0x14f26b){const _0x4ad019=_0x14f26b['checkChild'](_0x420812['parent'],'blockQuote'),_0x21a8e5=_0x14f26b['checkChild'](['$root','blockQuote'],_0x420812);return _0x4ad019&&_0x21a8e5;}(_0x1c5299,this['editor']['model']['schema']));_0x4ce808=to(_0x1530d5,_0x281da8['model']);}else{const _0x55984a=Array['from'](_0x301489['getSelectedBlocks']())['filter'](_0x24c4b2=>oo(_0x24c4b2));_0x4ce808=to(_0x55984a,_0x281da8['model']);}_0x281da8['model']['change'](()=>{for(const _0x1d7bcf of _0x4ce808)_0xc56995['markBlockFormat'](_0x1d7bcf,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5b8563}]});});}),_0xc56995['descriptionFactory']['registerDescriptionCallback'](_0x2bf013=>{const {data:_0x2f932d}=_0x2bf013;if(_0x2f932d&&'blockQuote'==_0x2f932d['commandName']){const _0x31ea07=o(_0x5237d9,'ELEMENT_BLOCK_QUOTE');return _0x2f932d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5237d9,'*Set\x20format:*\x20%0',_0x31ea07)}:{'type':'format','content':o(_0x5237d9,'*Remove\x20format:*\x20%0',_0x31ea07)};}});}}function oo(_0x3dc317){return'blockQuote'==_0x3dc317['parent']['name'];}class V extends _0x559983{['afterInit'](){const _0x2fc883=this['editor'],_0x48726c=_0x2fc883['locale'],_0x5a82da=_0x2fc883['plugins']['get']('TrackChangesEditing');_0x2fc883['plugins']['has']('BookmarkEditing')&&(_0x5a82da['enableCommand']('insertBookmark'),_0x5a82da['enableDefaultAttributesIntegration']('updateBookmark'),_0x5a82da['registerBlockAttribute']('bookmarkId'),_0x5a82da['descriptionFactory']['registerDescriptionCallback'](_0x53eb59=>{if('insertion'!=_0x53eb59['type']&&'deletion'!=_0x53eb59['type']&&'attribute'!=_0x53eb59['type'])return;const _0x469b7c=_0x53eb59['getContainedElement']();if(null==_0x469b7c)return;if(!_0x469b7c['is']('element','bookmark'))return;const _0x4e65d8=_0x469b7c['getAttribute']('bookmarkId');if('insertion'==_0x53eb59['type'])return{'type':'insertion','content':o(_0x48726c,'*Insert:*\x20%0','\x22'+_0x4e65d8+'\x22\x20'+o(_0x48726c,'ELEMENT_BOOKMARK'))};if('deletion'==_0x53eb59['type'])return{'type':'deletion','content':o(_0x48726c,'*Remove:*\x20%0','\x22'+_0x4e65d8+'\x22\x20'+o(_0x48726c,'ELEMENT_BOOKMARK'))};const {data:_0x5ae6d8}=_0x53eb59;if(!_0x5ae6d8||'bookmarkId'!=_0x5ae6d8['key'])return;return{'type':'format','content':o(_0x48726c,'*Set\x20bookmark:*\x20%0','\x22'+_0x5ae6d8['newValue']+'\x22')};}));}}class F extends _0x559983{['afterInit'](){const _0x42614a=this['editor'];_0x42614a['plugins']['has']('CaseChange')&&(_0x42614a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x42614a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x42614a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x559983{['afterInit'](){const _0x1a0956=this['editor'];_0x1a0956['commands']['get']('ckbox')&&_0x1a0956['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x559983{['afterInit'](){const _0x3dc6be=this['editor'];if(!_0x3dc6be['plugins']['has']('CodeBlock'))return;const _0x50a8e9=_0x3dc6be['plugins']['get']('TrackChangesEditing'),_0x1cb70d=_0x3dc6be['locale'],_0x2fb454=_0x3dc6be['config']['get']('codeBlock')['languages'],_0x1f7947=_0x3dc6be['commands']['get']('codeBlock');_0x50a8e9['enableCommand']('indentCodeBlock'),_0x50a8e9['enableCommand']('outdentCodeBlock'),_0x50a8e9['enableCommand']('codeBlock',(_0x593334,_0x55da66={})=>{const _0x4f5775=_0x3dc6be['model'],_0x32c53e=_0x3dc6be['model']['document']['selection'],_0x144bef=_0x55da66&&void 0x0!==_0x55da66['forceValue']?_0x55da66['forceValue']:!_0x1f7947['value'];let _0x1121f3;_0x55da66['language']||(_0x55da66['language']=_0x2fb454[0x0]['language']),_0x1121f3=_0x144bef?Array['from'](_0x32c53e['getSelectedBlocks']())['filter'](_0x13bbb1=>co(_0x13bbb1)||function(_0x3f3eed,_0x5af99e){if(_0x3f3eed['is']('rootElement')||_0x5af99e['isLimit'](_0x3f3eed))return!0x1;return _0x5af99e['checkChild'](_0x3f3eed['parent'],'codeBlock');}(_0x13bbb1,_0x4f5775['schema'])):Array['from'](_0x32c53e['getSelectedBlocks']())['filter'](_0x4b8f4f=>co(_0x4b8f4f));const _0x20ae54=to(_0x1121f3,_0x4f5775);_0x4f5775['change'](()=>{for(const _0x288e45 of _0x20ae54)_0x50a8e9['markBlockFormat'](_0x288e45,{'commandName':'codeBlock','commandParams':[{..._0x55da66,'forceValue':_0x144bef}],'formatGroupId':'blockName'});});}),(_0x50a8e9['descriptionFactory']['registerElementLabel']('codeBlock',_0x30da98=>o(_0x1cb70d,'ELEMENT_CODE_BLOCK',_0x30da98)),_0x50a8e9['descriptionFactory']['registerDescriptionCallback'](_0x29974e=>{if('formatBlock'!=_0x29974e['type'])return;const _0x324464=_0x1cb70d['t'],{data:_0x43875e}=_0x29974e;if(!_0x43875e||'codeBlock'!=_0x43875e['commandName'])return;const _0x1a28fb=_0x43875e['commandParams'][0x0]['language'],_0x55f382=_0x324464(_0x2fb454['find'](_0x4f1b8e=>_0x4f1b8e['language']===_0x1a28fb)['label'])['toLowerCase']();return _0x43875e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1cb70d,'*Set\x20format:*\x20%0',o(_0x1cb70d,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x55f382+')')}:{'type':'format','content':o(_0x1cb70d,'*Remove\x20format:*\x20%0',o(_0x1cb70d,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x3ff004){return'codeBlock'==_0x3ff004['name'];}class J extends _0x559983{['afterInit'](){const _0x4bf834=this['editor'];if(!_0x4bf834['plugins']['has']('CommentsEditing'))return;_0x4bf834['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xe89933,_0x337507,_0x5b437c){const _0x213d32=[];for(const _0x233f1d of _0x337507['getItems']())_0x233f1d['hasAttribute'](_0xe89933)&&_0x213d32['push'](_0x5b437c['createRangeOn'](_0x233f1d));return _0x213d32;}function De(_0x197120,_0x515e41,{showActiveMarker:_0x46c28e=!0x0}={}){const _0x448413=_0x197120['plugins']['get']('TrackChangesEditing');return(_0x1c9068,_0x48f092,_0x7eedac)=>{if(!_0x7eedac['consumable']['test'](_0x48f092['markerRange'],_0x1c9068['name']))return;const _0x4de17=_0x48f092['markerRange']['getWalker'](),_0x412a6a=_0x48f092['markerRange']['start'],_0x22b920=_0x197120['model']['schema'];let _0x303989=null,_0x3cc075=null,_0x4ace48=!0x1,_0x5b360e=!0x1;for(const _0x48234b of _0x4de17){const _0x26d627=_0x48234b['item'];_0x4ace48=_0x4ace48||_0x22b920['isContent'](_0x26d627);const _0x5f3cc2=_0x7eedac['mapper']['toViewElement'](_0x26d627);if(_0x5f3cc2&&_0x5f3cc2['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x48234b['type']&&(_0x22b920['isBlock'](_0x26d627)&&!_0x22b920['isLimit'](_0x26d627)&&(_0x26d627['nextSibling']||_0x412a6a['isAtEnd']?_0x303989&&_0x303989['parent']==_0x26d627||(_0x303989=_0x26d627,_0x37510d(_0x48234b['previousPosition']),_0x5b360e=!0x0):_0x3cc075=_0x3cc075||_0x48234b['previousPosition']));}function _0x37510d(_0x50dc68){const {id:_0x50e85c,authorId:_0x1252ce}=_0x448413['_splitMarkerName'](_0x48f092['markerName']),_0x4319b8=_0x7eedac['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x515e41,'data-suggestion':_0x50e85c,'data-author-id':_0x1252ce}),_0x5042ef=_0x7eedac['mapper']['toViewPosition'](_0x50dc68);_0x46c28e&&_0x448413['activeMarkers']['includes'](_0x48f092['markerName'])&&_0x7eedac['writer']['addClass']('ck-suggestion-marker--active',_0x4319b8),_0x7eedac['writer']['insert'](_0x5042ef,_0x4319b8),_0x7eedac['mapper']['bindElementToMarker'](_0x4319b8,_0x48f092['markerName']);}_0x4ace48||_0x5b360e||!_0x3cc075||_0x37510d(_0x3cc075);};}class K extends _0x559983{static get['requires'](){return[_0x35d7e9];}['init'](){const _0x349690=this['editor'],_0x3c679c=_0x349690['plugins']['get']('TrackChangesEditing');_0x3c679c['enableCommand']('delete');const _0x5d9a09=_0x349690['commands']['get']('deleteForward');_0x3c679c['enableCommand']('deleteForward',(_0x4890c0,_0x12adfd={})=>{const _0x546aae=_0x349690['model']['createSelection'](_0x349690['model']['document']['selection']);_0x546aae['isCollapsed']&&_0x349690['model']['modifySelection'](_0x546aae,{'direction':'forward','unit':_0x12adfd['unit']});const _0x350756=_0x546aae['getFirstRange'](),_0x37fea8=_0x334b1a['fromRange'](_0x350756);let _0x2c1767;_0x4890c0(_0x12adfd),_0x2c1767='$graveyard'==_0x37fea8['root']['rootName']?_0x349690['model']['createRange'](_0x350756['start']):_0x349690['model']['createRange'](_0x37fea8['start'],_0x37fea8['end']),_0x37fea8['detach'](),_0x349690['model']['enqueueChange'](_0x5d9a09['buffer']['batch'],_0x400b43=>{_0x5d9a09['buffer']['lock'](),_0x400b43['setSelection'](_0x400b43['createRange'](_0x2c1767['end'])),_0x5d9a09['buffer']['unlock']();});}),_0x349690['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x349690,'merge'),{'priority':'high'}),_0x349690['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x435610,_0x2fbe71,_0x28b743)=>{_0x28b743['options']['showSuggestionHighlights']&&De(_0x349690,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x435610,_0x2fbe71,_0x28b743);},{'priority':'high'}),_0x349690['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3de3f1,_0x4c1d45,_0x4f96f8)=>{const _0x1b9fd4=_0x4f96f8['mapper']['markerNameToElements'](_0x4c1d45['markerName']);if(_0x1b9fd4){for(const _0x60c0bf of _0x1b9fd4)_0x60c0bf['is']('uiElement')&&(_0x4f96f8['mapper']['unbindElementFromMarkerName'](_0x60c0bf,_0x4c1d45['markerName']),_0x4f96f8['writer']['remove'](_0x60c0bf));}},{'priority':'high'});}}class H extends _0x559983{['afterInit'](){const _0x21b8ef=this['editor'];if(!_0x21b8ef['plugins']['has']('ListEditing'))return;const _0x4b7368=_0x21b8ef['locale'],_0x1cf8b2=_0x21b8ef['plugins']['get']('TrackChangesEditing'),_0x77d31d=_0x21b8ef['plugins']['has']('TodoListEditing'),_0xb54a86=!!_0x21b8ef['config']['get']('list.multiBlock');function _0xf28a34(_0xf5c83e){return{'type':'format','content':''+o(_0x4b7368,'*Set\x20format:*\x20%0',_0xf5c83e)};}function _0x4c8cc3(_0x37303c){return{'type':'format','content':''+o(_0x4b7368,'*Remove\x20format:*\x20%0',_0x37303c)};}_0x1cf8b2['enableDefaultAttributesIntegration']('numberedList'),_0x1cf8b2['enableDefaultAttributesIntegration']('bulletedList'),_0x1cf8b2['enableDefaultAttributesIntegration']('customNumberedList'),_0x1cf8b2['enableDefaultAttributesIntegration']('customBulletedList'),_0x1cf8b2['enableDefaultAttributesIntegration']('indentList'),_0x1cf8b2['enableDefaultAttributesIntegration']('outdentList'),_0x1cf8b2['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1cf8b2['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1cf8b2['registerBlockAttribute']('listItemId'),_0x1cf8b2['registerBlockAttribute']('listType'),_0x1cf8b2['registerBlockAttribute']('listIndent'),_0xb54a86&&(_0x1cf8b2['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1cf8b2['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x77d31d&&(_0x1cf8b2['enableDefaultAttributesIntegration']('todoList'),_0x1cf8b2['enableDefaultAttributesIntegration']('checkTodoList'),_0x1cf8b2['registerBlockAttribute']('todoListChecked'),_0x1cf8b2['descriptionFactory']['registerDescriptionCallback'](_0x170688=>{const {data:_0x2c04ce}=_0x170688;if(_0x2c04ce&&'todoListChecked'==_0x2c04ce['key'])return{'type':'format','content':_0x2c04ce['newValue']?o(_0x4b7368,'*Check\x20item*'):o(_0x4b7368,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x532e64=>{if(_0x532e64['batch']['isUndo'])return!0x1;let _0x1ecc87=!0x1;const _0x51ab05=_0x1cf8b2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x12e8c6=>'todoListChecked'===_0x1cf8b2['_getAttributeKey'](_0x12e8c6));for(const _0x5ea20b of _0x51ab05){'todo'!=_0x5ea20b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1cf8b2['_findSuggestions'](_0x5ea20b['getFirstRange'](),'attribute')['find'](_0x160c32=>'listType'===_0x1cf8b2['_getAttributeKey'](_0x160c32['suggestion']))||(_0x532e64['removeMarker'](_0x5ea20b['getFirstMarker']()),_0x1ecc87=!0x0));}return _0x1ecc87;})),_0x1cf8b2['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4b7368,'FORMAT_INDENT'));const _0x4e6149={'type':'format','content':''};_0x1cf8b2['descriptionFactory']['registerDescriptionCallback'](_0x3d141b=>{const {data:_0x13f047}=_0x3d141b;if(!_0x13f047||'listType'!=_0x13f047['key'])return;let _0x334aad=_0x3d141b['head'];for(;_0x334aad;){if(_0x334aad['data']&&(('listStyle'==_0x334aad['data']['key']||'listMarkerStyle'==_0x334aad['data']['key'])&&(_0x334aad['data']['newValue']&&'default'!=_0x334aad['data']['newValue']||'default'!=_0x334aad['data']['oldValue']&&!_0x13f047['newValue'])||!_0xb54a86&&_0x334aad['data']['key']==m))return _0x4e6149;_0x334aad=_0x334aad['next'];}if(null==_0x13f047['newValue'])switch(_0x13f047['oldValue']){case'bulleted':return _0x4c8cc3(o(_0x4b7368,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4c8cc3(o(_0x4b7368,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4c8cc3(o(_0x4b7368,'ELEMENT_TODO_LIST'));}switch(_0x13f047['newValue']){case'bulleted':return _0xf28a34(o(_0x4b7368,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xf28a34(o(_0x4b7368,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xf28a34(o(_0x4b7368,'ELEMENT_TODO_LIST'));}}),_0x1cf8b2['descriptionFactory']['registerDescriptionCallback'](_0x1878fa=>{const {data:_0xab3a59}=_0x1878fa;if(_0xab3a59&&'listIndent'==_0xab3a59['key'])return null==_0xab3a59['newValue']||null==_0xab3a59['oldValue']&&0x0==_0xab3a59['newValue']?_0x4e6149:void 0x0;}),_0x1cf8b2['descriptionFactory']['registerDescriptionCallback'](_0x455524=>{if('attribute'!=_0x455524['type'])return;const {data:_0x3053b9}=_0x455524;if(!_0x3053b9||'listItemId'!=_0x3053b9['key'])return;const _0x35e222=Te(_0x455524);return'newValue'==_0x35e222?{'type':'format','content':o(_0x4b7368,'*Merge:*\x20list\x20item')}:'oldValue'==_0x35e222?{'type':'format','content':o(_0x4b7368,'*Split:*\x20list\x20item')}:_0x4e6149;}),_0x21b8ef['model']['document']['registerPostFixer'](_0xb758ce=>this['listItemIdFixer'](_0xb758ce)),_0x21b8ef['model']['document']['registerPostFixer'](_0x3af6e7=>this['noTrackChangesFixer'](_0x3af6e7)),_0x21b8ef['model']['document']['on']('change:data',(_0x4d03f8,_0xe0c753)=>{if(_0xe0c753['isUndo']||!_0xe0c753['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x23fe35){if(_0x23fe35['batch']['isUndo']||!_0x23fe35['batch']['isLocal'])return!0x1;let _0x55b32f=!0x1;const _0x187439=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x197f52=>_0x197f52['data']&&'listItemId'==_0x197f52['data']['key'])['filter'](_0x347092=>_0x347092['data']['newValue']&&_0x347092['data']['oldValue']);for(const _0x87f01c of _0x187439)Te(_0x87f01c)||(_0x23fe35['removeMarker'](_0x87f01c['getFirstMarker']()),_0x55b32f=!0x0);return _0x55b32f;}['noTrackChangesFixer'](_0x46be35){if(_0x46be35['batch']['isUndo']||!_0x46be35['batch']['isLocal'])return!0x1;const _0x54ef6d=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x54ef6d['trackChangesCommand']['value'])return!0x1;let _0x127f3b=!0x1;const _0x1e0441=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x26461b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x65ae42=>'attribute'==_0x65ae42['type'])['filter'](_0xcb5560=>_0x1e0441['includes'](_0xcb5560['attributeKey']));if(0x0==_0x26461b['length'])return _0x127f3b;for(const _0x2b5d9b of _0x26461b){const _0x51b73c=_0x54ef6d['_findSuggestions'](_0x2b5d9b['range'],'attribute')['filter'](_0x8da664=>!_0x8da664['meta']['isNextTo'])['map'](_0x54e400=>_0x54e400['suggestion'])['filter'](_0x3ac0da=>{const _0x2240e9=_0x54ef6d['_getAttributeKey'](_0x3ac0da);return _0x1e0441['includes'](_0x2240e9);});if(_0x51b73c['length']){for(const _0x12f219 of _0x51b73c)_0x46be35['removeMarker'](_0x12f219['getFirstMarker']());_0x127f3b=!0x0;}}return _0x127f3b;}['assureChains'](){const _0x2991d7=this['editor']['plugins']['get']('TrackChangesEditing'),_0xec907c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x26022e;const _0x22f5a0=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x26ad1e=>{if(_0x26ad1e['data']['oldRange']||!_0x26ad1e['data']['newRange'])return null;if(!_0x26ad1e['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4e834e}=_0x2991d7['_splitMarkerName'](_0x26ad1e['name']);if(!_0x2991d7['hasSuggestion'](_0x4e834e))return null;const _0x20da3d=_0x2991d7['getSuggestion'](_0x4e834e);return _0xec907c['includes'](_0x20da3d['data']['key']);})['map'](_0x5e1f76=>{const {id:_0x9f7e26}=_0x2991d7['_splitMarkerName'](_0x5e1f76['name']),_0x5ac37d=_0x2991d7['getSuggestion'](_0x9f7e26);return _0x26022e=_0x5ac37d['attributes']['groupId'],_0x5ac37d['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x22f5a0['size'])return;const _0x3208b7=_0x2991d7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x573a8f=>'attribute'==_0x573a8f['type']&&_0x573a8f['data']&&_0xec907c['includes'](_0x573a8f['data']['key'])&&_0x573a8f['attributes']['groupId']!=_0x26022e)['map'](_0x578315=>({'listItem':_0x578315['getFirstRange']()['start']['nodeAfter'],'groupId':_0x578315['attributes']['groupId']})),_0x3b3ba2=new Set();for(const {groupId:_0x447aa1,listItem:_0x37a1f4}of _0x3208b7)_0x22f5a0['has'](_0x37a1f4)&&_0x3b3ba2['add'](_0x447aa1);for(const _0x4c7e11 of _0x2991d7['getSuggestions']())_0x3b3ba2['has'](_0x4c7e11['attributes']['groupId'])&&_0x4c7e11['setAttribute']('groupId',_0x26022e);}['_supportLegacySuggestions'](){const _0x4bd490=this['editor'],_0x149901=_0x4bd490['locale'],_0x4cf1c1=_0x4bd490['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4cf1c1['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x49d7d9,_0x1dadce){const _0x551988=[];for(let _0x36c227 of _0x49d7d9)_0x36c227['start']['nodeAfter']===_0x36c227['end']['parent']&&(_0x36c227=_0x4bd490['model']['createRange'](_0x4bd490['model']['createPositionAt'](_0x36c227['start']['nodeAfter'],0x0))),_0x551988['push'](_0x36c227);_0x4bd490['model']['change'](_0x69413=>{const _0x564a0c=_0x4bd490['model']['document']['selection'],_0x1a7c8c=Array['from'](_0x564a0c['getRanges']())['map'](_0x846b4c=>_0x334b1a['fromRange'](_0x846b4c));_0x69413['setSelection'](_0x551988),_0x4bd490['commands']['get'](_0x1dadce['commandName'])['refresh'](),_0x1dadce['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4bd490['execute'](_0x1dadce['commandName'],..._0x1dadce['commandParams']),_0x69413['setSelection'](_0x1a7c8c);for(const _0x570870 of _0x1a7c8c)_0x570870['detach']();});}),_0x4cf1c1['descriptionFactory']['registerElementLabel'](function(_0x57e446){const _0x8ea621=!_0x4bd490['model']['schema']['isObject'](_0x57e446),_0xa1889c=_0x57e446['previousSibling'],_0x4791bb=_0x57e446['nextSibling'],_0x5b4997=_0x57e446['getAttribute']('listItemId'),_0x27408e=!_0xa1889c||_0xa1889c['getAttribute']('listItemId')!==_0x5b4997,_0x30217f=!_0x4791bb||_0x4791bb['getAttribute']('listItemId')!==_0x5b4997;return _0x8ea621&&Boolean(_0x5b4997)&&_0x27408e&&_0x30217f;},_0x2b5ec3=>o(_0x149901,'ELEMENT_LIST_ITEM',_0x2b5ec3));}['_registerLegacyDescription'](){const _0x275d8b=this['editor'],_0x1323bc=_0x275d8b['locale'];function _0xf7a411(_0xfe1c87){const _0x596b05=_0x275d8b['commands']['get']('bulletedList')['value'],_0x47bb47=_0x275d8b['commands']['get']('numberedList')['value'];return'numberedList'===_0xfe1c87?_0x596b05:_0x47bb47;}_0x275d8b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x10545c){if('formatBlock'!=_0x10545c['type'])return;const {data:_0x4128a9}=_0x10545c;if(!_0x4128a9)return;let _0x4cd94f,_0x2cb3f2,_0x50896f,_0x3c74c7;switch(_0x4128a9['commandName']){case'bulletedList':_0x50896f=_0x4128a9['commandParams'][0x0]['forceValue'],_0x3c74c7=_0xf7a411(_0x4128a9['commandName']),_0x4cd94f=_0x50896f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3c74c7&&_0x275d8b['config']['get']('list.multiBlock')||(_0x4cd94f='*Change\x20to:*\x20%0'),_0x2cb3f2={'type':'format','content':o(_0x1323bc,_0x4cd94f,o(_0x1323bc,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x50896f=_0x4128a9['commandParams'][0x0]['forceValue'],_0x3c74c7=_0xf7a411(_0x4128a9['commandName']),_0x4cd94f=_0x50896f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3c74c7&&_0x275d8b['config']['get']('list.multiBlock')||(_0x4cd94f='*Change\x20to:*\x20%0'),_0x2cb3f2={'type':'format','content':o(_0x1323bc,_0x4cd94f,o(_0x1323bc,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4cd94f='*Indent:*\x20%0',_0x2cb3f2={'type':'format','content':o(_0x1323bc,_0x4cd94f,o(_0x1323bc,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4cd94f=function(_0x4364f5){const _0x49b6a5=_0x4364f5['getFirstRange']();let _0x381100=_0x49b6a5['start']['nodeAfter'];for(;_0x381100&&_0x49b6a5['containsItem'](_0x381100);){if(_0x381100['getAttribute']('listIndent')>0x0)return!0x1;_0x381100=_0x381100['nextSibling'];}return!0x0;}(_0x10545c)?o(_0x1323bc,'*Format:*\x20remove\x20from\x20%0',o(_0x1323bc,function(_0x131007){return'ELEMENT_'+_0x131007['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x10545c))):o(_0x1323bc,'*Outdent:*\x20%0',o(_0x1323bc,'ELEMENT_LIST_ITEM')),_0x2cb3f2={'type':'format','content':_0x4cd94f};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4128a9['multipleBlocks']&&(_0x4cd94f='*Merge:*\x20%0',_0x2cb3f2={'type':'deletion','content':o(_0x1323bc,_0x4cd94f,o(_0x1323bc,'ELEMENT_LIST_ITEM'))});}return _0x2cb3f2;});}}function Te(_0x39add4){let _0xd05927=_0x39add4['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0xd05927;){const _0x1f1c9c=_0xd05927['getAttribute']('listItemId');if(!_0x1f1c9c)return!0x1;if(_0x1f1c9c==_0x39add4['data']['newValue'])return'newValue';if(_0x1f1c9c==_0x39add4['data']['oldValue'])return'oldValue';_0xd05927=_0xd05927['previousSibling'];}return!0x1;}class q extends _0x559983{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x133606=this['editor']['config']['get']('list.properties'),_0x175e71=this['editor']['plugins']['get']('TrackChangesEditing');_0x133606['styles']&&(_0x175e71['enableDefaultAttributesIntegration']('listStyle'),_0x175e71['registerBlockAttribute']('listStyle')),_0x133606['reversed']&&(_0x175e71['enableDefaultAttributesIntegration']('listReversed'),_0x175e71['registerBlockAttribute']('listReversed')),_0x133606['startIndex']&&(_0x175e71['enableDefaultAttributesIntegration']('listStart'),_0x175e71['registerBlockAttribute']('listStart'));const _0xf1cb7e={'type':'format','content':''};_0x175e71['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4b862b=this['editor']['locale'];_0x175e71['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4b862b,'FORMAT_LIST_REVERSED')),_0x175e71['descriptionFactory']['registerDescriptionCallback'](_0x4d7038=>{const {data:_0x148cc0}=_0x4d7038;if(_0x148cc0&&'listReversed'==_0x148cc0['key'])return null==_0x148cc0['newValue']||0x0==_0x148cc0['newValue']&&null==_0x148cc0['oldValue']?_0xf1cb7e:void 0x0;}),_0x175e71['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4b862b,'FORMAT_LIST_START')),_0x175e71['descriptionFactory']['registerDescriptionCallback'](_0x59a6aa=>{const {data:_0xbe76b9}=_0x59a6aa;if(_0xbe76b9&&'listStart'==_0xbe76b9['key'])return null==_0xbe76b9['newValue']||0x1==_0xbe76b9['newValue']&&null==_0xbe76b9['oldValue']?_0xf1cb7e:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1f517c=>{if(_0x1f517c['batch']['isUndo'])return!0x1;let _0x5934fe=!0x1;const _0x3ea7ce=_0x175e71['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3060bb=>{const _0xdfcb0c=_0x175e71['_getAttributeKey'](_0x3060bb);return'listStart'==_0xdfcb0c||'listReversed'==_0xdfcb0c;});for(const _0x409050 of _0x3ea7ce){const _0x42b91a=_0x409050['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x42b91a||'customNumbered'==_0x42b91a)continue;_0x175e71['_findSuggestions'](_0x409050['getFirstRange'](),'attribute')['find'](_0x4b1913=>'listType'==_0x175e71['_getAttributeKey'](_0x4b1913['suggestion']))||(_0x1f517c['removeMarker'](_0x409050['getFirstMarker']()),_0x5934fe=!0x0);}return _0x5934fe;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2c64c4){const _0x118336=this['editor']['locale'],{data:_0x6e5893}=_0x2c64c4,_0xd8b62c={'type':'format','content':''};if(!_0x6e5893||'listStyle'!=_0x6e5893['key'])return;if(!_0x6e5893['oldValue'])return'default'==_0x6e5893['newValue']?_0xd8b62c:{'type':'format','content':''+o(_0x118336,'*Set\x20format:*\x20%0',o(_0x118336,this['_getTranslationKeyForListStyle'](_0x6e5893['newValue'])))};if(!_0x6e5893['newValue']){if('default'==_0x6e5893['oldValue'])return _0xd8b62c;let _0x481fdf=_0x2c64c4['head'];for(;_0x481fdf;){if(_0x481fdf['data']&&'listType'==_0x481fdf['data']['key']&&_0x481fdf['data']['newValue'])return _0xd8b62c;_0x481fdf=_0x481fdf['next'];}return{'type':'format','content':''+o(_0x118336,'*Remove\x20format:*\x20%0',o(_0x118336,this['_getTranslationKeyForListStyle'](_0x6e5893['oldValue'])))};}if('default'!=_0x6e5893['newValue'])return{'type':'format','content':''+o(_0x118336,'*Set\x20format:*\x20%0',o(_0x118336,this['_getTranslationKeyForListStyle'](_0x6e5893['newValue'])))};let _0x59925b=_0x2c64c4['head'];for(;_0x59925b;){if(_0x59925b['data']&&'listType'==_0x59925b['data']['key']&&_0x59925b['data']['newValue']&&_0x59925b['data']['oldValue'])return _0xd8b62c;_0x59925b=_0x59925b['next'];}return{'type':'format','content':o(_0x118336,'*Set\x20format:*\x20%0',o(_0x118336,'ELEMENT_'+_0x2c64c4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x12c189=this['editor'],_0x1a8b40=_0x12c189['locale'];_0x12c189['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5efe88=>{if('formatBlock'!=_0x5efe88['type'])return;const {data:_0xf69680}=_0x5efe88;if(!_0xf69680)return;let _0xb38ab3,_0x398083;switch(_0xf69680['commandName']){case'listStyle':_0xb38ab3='*Change\x20to:*\x20%0',_0x398083={'type':'format','content':o(_0x1a8b40,_0xb38ab3,o(_0x1a8b40,this['_getTranslationKeyForListStyle'](_0xf69680['commandParams'][0x0]['type'])))};break;case'listReversed':_0xb38ab3=_0xf69680['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x398083={'type':'format','content':o(_0x1a8b40,_0xb38ab3)};break;case'listStart':_0xb38ab3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x398083={'type':'format','content':o(_0x1a8b40,_0xb38ab3,_0xf69680['commandParams'][0x0]['startIndex'])};}return _0x398083;});}['_getTranslationKeyForListStyle'](_0x1850ca){return'ELEMENT_'+function(_0x468565){if(Se['includes'](_0x468565))return'bulleted';if(_e['includes'](_0x468565))return'numbered';return null;}(_0x1850ca)['toUpperCase']()+'_LIST_'+_0x1850ca['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x559983{['afterInit'](){const _0x5ad632=this['editor'];_0x5ad632['commands']['get']('emoji')&&_0x5ad632['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x559983{static get['requires'](){return[_0x5bca97];}['init'](){const _0x586bb3=this['editor'],_0x457a86=_0x586bb3['plugins']['get']('TrackChangesEditing'),_0x46b67b=_0x586bb3['commands']['get']('enter');_0x457a86['enableCommand']('enter',()=>{_0x586bb3['model']['change'](_0x399a75=>{const _0x55ec53=_0x586bb3['model']['document']['selection'],_0x52ce4f=_0x55ec53['getFirstPosition'](),_0x11be70=_0x334b1a['fromRange'](_0x55ec53['getFirstRange']());if(_0x46b67b['enterBlock'](_0x399a75)){const _0x5189c9=_0x586bb3['model']['createPositionAt'](_0x52ce4f['parent']['nextSibling'],0x0),_0x5a27e7=_0x399a75['createRange'](_0x52ce4f,_0x5189c9);_0x457a86['markInsertion'](_0x5a27e7);}else _0x399a75['setSelection'](_0x399a75['createRange'](_0x11be70['end']));_0x11be70['detach'](),_0x46b67b['fire']('afterExecute',{'writer':_0x399a75});});}),_0x586bb3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x586bb3,'split'),{'priority':'high'}),_0x586bb3['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5cae34,_0x516796,_0x1c9944)=>{const _0x562f51=_0x1c9944['mapper']['markerNameToElements'](_0x516796['markerName']);if(_0x562f51){for(const _0x195e4e of _0x562f51)_0x195e4e['hasClass']('ck-suggestion-marker-split')&&(_0x1c9944['mapper']['unbindElementFromMarkerName'](_0x195e4e,_0x516796['markerName']),_0x1c9944['writer']['remove'](_0x195e4e));}},{'priority':'high'}),_0x586bb3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xf6637f,_0x40b022,_0x9f2980)=>{_0x9f2980['options']['showSuggestionHighlights']&&De(_0x586bb3,'split',{'showActiveMarker':!0x1})['bind'](this)(_0xf6637f,_0x40b022,_0x9f2980);},{'priority':'high'});}}class Q extends _0x559983{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x44255b=this['editor']['plugins']['get']('TrackChangesEditing');_0x44255b['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x44255b['enableCommand']('findNext'),_0x44255b['enableCommand']('findPrevious'),_0x44255b['enableCommand']('replace'),_0x44255b['enableCommand']('replaceAll');}['handleFindCommand'](_0x48d867,_0x2f0536,_0x1677bf={}){const _0x340362=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x48d867(_0x4e3926=>{let _0x155c95=('string'==typeof _0x2f0536?_0x340362['findByTextCallback'](_0x2f0536,_0x1677bf):_0x2f0536)(_0x4e3926);Array['isArray'](_0x155c95)&&(_0x155c95={'results':_0x155c95,'searchText':'string'==typeof _0x2f0536?_0x2f0536:''});const _0x12cf01=_0x155c95['results']['filter'](_0x1f5555=>!0x1===this['_isInDeletionRange'](_0x1f5555,_0x4e3926['item']));return{..._0x155c95,'results':_0x12cf01};},_0x1677bf);}['_isInDeletionRange'](_0x51796c,_0x4aa644){const _0x329da9=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4aa644,_0x51796c['start']),this['editor']['model']['createPositionAt'](_0x4aa644,_0x51796c['end']));for(const _0x2d6f9f of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x329da9['getIntersection'](_0x2d6f9f['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 _0x559983{['afterInit'](){const _0x4c7f5d=this['editor']['locale'],_0x49ec8d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x30d7d1,commandName:_0x526404}of eo)this['editor']['plugins']['has'](_0x30d7d1)&&(_0x49ec8d['enableDefaultAttributesIntegration'](_0x526404),_0x49ec8d['registerInlineAttribute'](_0x526404));_0x49ec8d['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4c7f5d,'FORMAT_FONT_SIZE')),_0x49ec8d['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4c7f5d,'FORMAT_FONT_FAMILY')),_0x49ec8d['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4c7f5d,'FORMAT_FONT_COLOR')),_0x49ec8d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4c7f5d,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21206a=this['editor'],_0x1a36aa=_0x21206a['locale'];_0x21206a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x404109=>{const _0x5b47ec=_0x1a36aa['t'];if('formatInline'!=_0x404109['type'])return;const {data:_0x281a6b}=_0x404109;if(null!=_0x281a6b){if('fontSize'==_0x281a6b['commandName']){const _0x11dde8=_0x281a6b['commandParams'][0x0]['value'];if(_0x11dde8){const _0x4d2d72=_0x5b47ec(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xdf8158=>_0xdf8158['model']==_0x11dde8)['title'])['toLowerCase']();return{'type':'format','content':o(_0x1a36aa,'*Set\x20font\x20size:*\x20%0',_0x4d2d72)};}return{'type':'format','content':o(_0x1a36aa,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x281a6b['commandName']){const _0x118fe5=_0x281a6b['commandParams'][0x0]['value'];return _0x118fe5?{'type':'format','content':o(_0x1a36aa,'*Set\x20font\x20family:*\x20%0',_0x118fe5)}:{'type':'format','content':o(_0x1a36aa,'*Reset\x20font\x20family*')};}if('fontColor'==_0x281a6b['commandName']){const _0x50f175=_0x281a6b['commandParams'][0x0]['value'];if(_0x50f175){const _0x9fe841=_0x542ec3(this['editor']['config']['get']('fontColor.colors'))['find'](_0x516e7a=>_0x516e7a['model']==_0x50f175);let _0x6ee6db=_0x50f175,_0x3d6a78='';return _0x9fe841&&(_0x6ee6db=_0x9fe841['label'],_0x3d6a78=_0x5b47ec(_0x6ee6db)['toLowerCase']()),{'type':'format','content':o(_0x1a36aa,'*Set\x20font\x20color:*\x20%0',_0x3d6a78)['trim'](),'color':{'value':_0x50f175,'title':_0x3d6a78||_0x6ee6db}};}return{'type':'format','content':o(_0x1a36aa,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x281a6b['commandName']){const _0x217e6f=_0x281a6b['commandParams'][0x0]['value'];if(_0x217e6f){const _0x3591b=_0x542ec3(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x47ee41=>_0x47ee41['model']==_0x217e6f);let _0x43adcc=_0x217e6f,_0x45b202='';return _0x3591b&&(_0x43adcc=_0x3591b['label'],_0x45b202=_0x5b47ec(_0x43adcc)['toLowerCase']()),{'type':'format','content':o(_0x1a36aa,'*Set\x20font\x20background\x20color:*\x20%0',_0x45b202)['trim'](),'color':{'value':_0x217e6f,'title':_0x45b202||_0x43adcc}};}return{'type':'format','content':o(_0x1a36aa,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x559983{['afterInit'](){const _0x5412cd=this['editor'],_0x2eb79a=_0x5412cd['plugins']['get']('TrackChangesEditing'),_0x4d6604=_0x5412cd['commands']['get']('copyFormat'),_0x303d30=_0x5412cd['commands']['get']('pasteFormat');_0x4d6604&&_0x303d30&&(_0x2eb79a['enableDefaultAttributesIntegration']('pasteFormat'),_0x2eb79a['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3dfe22=this['editor'],_0x482f67=_0x3dfe22['locale'];_0x3dfe22['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2944ac=>{if('formatBlock'!=_0x2944ac['type']&&'formatInline'!=_0x2944ac['type'])return;const {data:_0x16966b}=_0x2944ac;if(_0x16966b&&'pasteFormat'===_0x16966b['commandName']){const _0x3e88fd=[],_0x4165a8=_0x16966b['commandParams'][0x0];for(const [_0x151537,_0x36749d]of Object['entries'](_0x4165a8))_0x3e88fd['push'](ro(_0x3dfe22,_0x151537,_0x36749d));return _0x3e88fd['length']?{'type':'format','content':o(_0x482f67,'*Set\x20format\x20to:*\x20%0',_0x3e88fd['join'](',\x20'))}:{'type':'format','content':o(_0x482f67,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x2a015d,_0x5061db,_0x221795){const _0x11d8a2=_0x2a015d['locale']['t'],_0x31eda1=_0x5061db['split'](/(?=[A-Z])/)['join']('\x20'),_0x483611=_0x11d8a2(_0x31eda1['charAt'](0x0)['toUpperCase']()+_0x31eda1['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x221795)return _0x483611;if('fontColor'===_0x5061db||'fontBackgroundColor'===_0x5061db){const _0xc31f7f=_0x542ec3(_0x2a015d['config']['get']('fontColor.colors'))['find'](_0x6dec29=>_0x6dec29['model']==_0x221795);return _0x483611+'\x20('+(_0xc31f7f?_0x11d8a2(_0xc31f7f['label'])['toLowerCase']():_0x221795)+')';}if('fontSize'===_0x5061db&&isNaN(parseFloat(_0x221795))){const _0x18e974=_0x2a015d['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2a015d['config']['get']('fontSize.options'))['find'](_0x249cf6=>_0x249cf6['model']==_0x221795);return _0x483611+'\x20('+(_0x18e974?_0x11d8a2(_0x18e974['title'])['toLowerCase']():_0x221795)+')';}return _0x483611+'\x20('+_0x221795+')';}class Z extends _0x559983{['_headingOptions'];['afterInit'](){const _0x5bfe97=this['editor'];if(!_0x5bfe97['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5bfe97['config']['get']('heading.options');const _0x41bca0=_0x5bfe97['locale'],_0x37b564=_0x5bfe97['plugins']['get']('TrackChangesEditing');_0x37b564['enableDefaultAttributesIntegration']('heading');for(const _0x1607e6 of this['_headingOptions'])'paragraph'!=_0x1607e6['model']&&_0x37b564['descriptionFactory']['registerElementLabel'](_0x1607e6['model'],_0x3f16fe=>{const _0x452d87=this['_getHeadingLevel'](_0x1607e6['model']);return null!==_0x452d87?_0x1e2c2b(_0x3f16fe,_0x452d87):_0x454745(_0x3f16fe,_0x1607e6['title']);});function _0x1e2c2b(_0x254c70,_0x691e48){return o(_0x41bca0,'ELEMENT_HEADING',[_0x254c70,_0x691e48]);}function _0x454745(_0x5a7d5a,_0x119a2d){return o(_0x41bca0,'ELEMENT_HEADING_CUSTOM',[_0x5a7d5a,_0x119a2d]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1507d2=this['editor'],_0x57b68b=_0x1507d2['locale'];function _0x58dc85(_0x1b0581,_0x469aa3){return o(_0x57b68b,'ELEMENT_HEADING_CUSTOM',[_0x1b0581,_0x469aa3]);}_0x1507d2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b2382=>{if('formatBlock'!=_0x1b2382['type'])return;const {data:_0x206c15}=_0x1b2382;if(_0x206c15&&'heading'==_0x206c15['commandName']){const _0x43c318=_0x206c15['commandParams'][0x0]['value'],_0x399c10=this['_getHeadingLevel'](_0x43c318);if(null!==_0x399c10)return{'type':'format','content':o(_0x57b68b,'*Change\x20to:*\x20%0',(_0x39de28=0x1,_0x4c7f0a=_0x399c10,o(_0x57b68b,'ELEMENT_HEADING',[_0x39de28,_0x4c7f0a])))};const _0x2081a9=this['_headingOptions']['find'](_0x569e15=>_0x569e15['model']===_0x43c318)['title'];return{'type':'format','content':o(_0x57b68b,'*Change\x20to:*\x20%0',_0x58dc85(0x1,_0x2081a9))};}var _0x39de28,_0x4c7f0a;});}['_getHeadingLevel'](_0x2d75d6){const _0xdeef9f=_0x2d75d6['match'](/^heading(\d+)/);if(_0xdeef9f)return _0xdeef9f[0x1];const _0x14e42f=this['_headingOptions']?.['find'](_0x4ffa39=>_0x4ffa39['model']==_0x2d75d6);if(_0x14e42f&&_0x14e42f['view']){const _0x4cf6a5=_0x14e42f['view'],_0x174857=(_0x4cf6a5['name']??_0x4cf6a5)['match'](/^h(\d+)/);if(_0x174857)return _0x174857[0x1];}return null;}}class tt extends _0x559983{['afterInit'](){const _0x50a792=this['editor'];if(!_0x50a792['plugins']['has']('HighlightEditing'))return;const _0x4fbc0e=_0x50a792['plugins']['get']('TrackChangesEditing'),_0x4e1663=_0x50a792['locale'];_0x4fbc0e['enableDefaultAttributesIntegration']('highlight'),_0x4fbc0e['registerInlineAttribute']('highlight'),_0x4fbc0e['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4e1663,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c576c=this['editor'],_0x2fed5f=_0x3c576c['locale'];_0x3c576c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x274dc7=>{if('formatInline'!=_0x274dc7['type'])return;const {data:_0x216ba0}=_0x274dc7;if(_0x216ba0&&'highlight'==_0x216ba0['commandName']){const _0x17fb4c=_0x2fed5f['t'],_0x5540bd=_0x216ba0['commandParams'][0x0]['value'];if(_0x5540bd){const _0x17b41f=_0x3c576c['config']['get']('highlight.options')['find'](_0x70e6a5=>_0x70e6a5['model']==_0x5540bd),_0x479322=_0x17fb4c(_0x17b41f['title'])['toLowerCase']();return{'type':'format','content':o(_0x2fed5f,'*Set\x20highlight:*\x20%0',_0x479322),'color':{'value':_0x17b41f['color'],'title':_0x17b41f['title']}};}return{'type':'format','content':o(_0x2fed5f,'*Remove\x20highlight*',o(_0x2fed5f,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x559983{['afterInit'](){const _0x3d6da2=this['editor'];if(!_0x3d6da2['plugins']['has']('HorizontalLineEditing'))return;_0x3d6da2['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x406983=_0x3d6da2['plugins']['get']('TrackChangesEditing'),_0x4c9a14=_0x3d6da2['locale'];_0x406983['descriptionFactory']['registerElementLabel']('horizontalLine',_0x491ff0=>o(_0x4c9a14,'ELEMENT_HORIZONTAL_LINE',_0x491ff0)),_0x3d6da2['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5ec920,{writer:_0x44a883,options:_0x5bafb6})=>{if(!_0x5bafb6['showSuggestionHighlights'])return null;const _0x348e42=_0x44a883['createContainerElement']('div'),_0x560ecb=_0x44a883['createEmptyElement']('hr');return _0x44a883['addClass']('ck-horizontal-line',_0x348e42),_0x44a883['insert'](_0x44a883['createPositionAt'](_0x348e42,0x0),_0x560ecb),_0x348e42;},'converterPriority':'high'});}}class nt extends _0x559983{['afterInit'](){const _0x493135=this['editor'];if(!_0x493135['plugins']['has']('HtmlEmbed'))return;const _0x5326ac=_0x493135['plugins']['get']('TrackChangesEditing'),_0xf10b7f=_0x493135['locale'];_0x5326ac['descriptionFactory']['registerElementLabel']('rawHtml',_0xced4a8=>o(_0xf10b7f,'ELEMENT_HTML_EMBED',_0xced4a8)),_0x5326ac['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5326ac['registerBlockAttribute']('value'),_0x5326ac['descriptionFactory']['registerDescriptionCallback'](_0xb477a1=>{if('attribute'!=_0xb477a1['type'])return;const {data:_0x4ad33c}=_0xb477a1;if(_0x4ad33c&&'value'==_0x4ad33c['key']&&_0xb477a1['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x17fc18=o(_0xf10b7f,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xf10b7f,'*Change\x20%0\x20content*',_0x17fc18)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ccab9=this['editor'],_0x5bd46d=_0x4ccab9['locale'];_0x4ccab9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ada16=>{if('formatBlock'!=_0x5ada16['type'])return;const {data:_0x309805}=_0x5ada16;if(_0x309805&&'htmlEmbed'==_0x309805['commandName']){const _0x30e7fd=o(_0x5bd46d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5bd46d,'*Change\x20%0\x20content*',_0x30e7fd)};}});}}class et extends _0x559983{['afterInit'](){const _0x32d569=this['editor'];if(!_0x32d569['plugins']['has']('ImageEditing'))return;const _0x31b76c=_0x32d569['plugins']['get']('TrackChangesEditing'),_0x284fd2=_0x32d569['plugins']['get']('ImageUtils'),_0x4cab40=_0x32d569['locale'];_0x31b76c['enableCommand']('insertImage'),_0x31b76c['descriptionFactory']['registerElementLabel']('imageBlock',_0x1e3ad6=>o(_0x4cab40,'ELEMENT_IMAGE',_0x1e3ad6)),_0x31b76c['descriptionFactory']['registerElementLabel']('imageInline',_0x2edb7e=>o(_0x4cab40,'ELEMENT_INLINE_IMAGE',_0x2edb7e)),_0x31b76c['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4cab40,'ELEMENT_CAPTION')),_0x32d569['plugins']['has']('ImageUploadEditing')&&_0x31b76c['enableCommand']('uploadImage'),_0x32d569['plugins']['has']('ImageBlockEditing')&&_0x32d569['plugins']['has']('ImageInlineEditing')&&(_0x31b76c['enableCommand']('imageTypeInline',(_0x18a7a3,_0x5b0b5b)=>{const _0x24ac75=_0x284fd2['getClosestSelectedImageElement'](_0x32d569['model']['document']['selection']);_0x32d569['model']['change'](()=>{_0x31b76c['markBlockFormat'](_0x24ac75,{'commandName':'imageTypeInline','commandParams':[_0x5b0b5b]},[],'convertBlockImageToInline');});}),_0x31b76c['enableCommand']('imageTypeBlock',(_0x57d90c,_0x31ccb5)=>{_0x32d569['model']['change'](_0x23b5c9=>{let _0x1ae1fe=_0x284fd2['getClosestSelectedImageElement'](_0x32d569['model']['document']['selection']),_0x2a326d=_0x23b5c9['createRangeOn'](_0x1ae1fe);const _0x43c4e3=_0x333b95['fromPosition'](_0x2a326d['start'],'toPrevious'),_0xacf220=_0x333b95['fromPosition'](_0x2a326d['end'],'toNext');_0x31b76c['forceDefaultExecution'](()=>_0x57d90c(_0x31ccb5)),_0x1ae1fe=_0x284fd2['getClosestSelectedImageElement'](_0x32d569['model']['document']['selection']),_0x2a326d=_0x23b5c9['createRangeOn'](_0x1ae1fe);const _0x51cc58=_0x23b5c9['createRange'](_0x43c4e3,_0xacf220);_0x43c4e3['detach'](),_0xacf220['detach'](),_0x31b76c['markBlockFormat'](_0x1ae1fe,{'commandName':'imageTypeInline','commandParams':[_0x31ccb5]},[],'convertInlineImageToBlock'),_0x51cc58['start']['isBefore'](_0x2a326d['start'])&&_0x31b76c['markInsertion'](_0x23b5c9['createRange'](_0x51cc58['start'],_0x2a326d['start']),'convertInlineImageToBlock'),_0x2a326d['end']['isBefore'](_0x51cc58['end'])&&_0x31b76c['markInsertion'](_0x23b5c9['createRange'](_0x2a326d['end'],_0x51cc58['end']),'convertInlineImageToBlock');});}),_0x31b76c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x31b76c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x31b76c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x31b76c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x31b76c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x31b76c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xfa7d66])=>{const _0x3b3cc9=_0x31b76c['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xda88bd=_0xfa7d66['start'],_0x245333=_0xfa7d66['end'];const _0x7ca3f0=_0x32d569['model']['schema']['getNearestSelectionRange'](_0xda88bd,'backward'),_0x588bb1=_0x32d569['model']['schema']['getNearestSelectionRange'](_0x245333,'forward');_0x7ca3f0['isCollapsed']&&(_0xda88bd=_0x7ca3f0['start']),_0x588bb1['isCollapsed']&&(_0x245333=_0x588bb1['end']),_0x3b3cc9([_0x32d569['model']['createRange'](_0xda88bd,_0x245333)]);}),_0x31b76c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x18d5bf),_0x31b76c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x18d5bf)),_0x32d569['plugins']['has']('ImageCaptionEditing')&&(_0x31b76c['enableCommand']('toggleImageCaption',(_0x3d5fad,_0x18425d)=>{const _0xa5ca53=_0x32d569['plugins']['get']('ImageCaptionUtils');let _0x4e1715=_0x284fd2['getClosestSelectedImageElement'](_0x32d569['model']['document']['selection']),_0x4f3e30=_0xa5ca53['getCaptionFromImageModelElement'](_0x4e1715);_0x32d569['model']['change'](()=>{if(_0x4f3e30)return void _0x31b76c['markDeletion'](_0x32d569['model']['createRangeOn'](_0x4f3e30));const _0x250b2e=_0x284fd2['isBlockImage'](_0x4e1715);_0x3d5fad(_0x18425d),_0x4e1715=_0x284fd2['getClosestSelectedImageElement'](_0x32d569['model']['document']['selection']),_0x4f3e30=_0xa5ca53['getCaptionFromImageModelElement'](_0x4e1715),_0x31b76c['markInsertion'](_0x32d569['model']['createRangeOn'](_0x4f3e30),_0x250b2e?null:'imageCaption');});}),_0x31b76c['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x18d5bf));const _0x4dfb4f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x208dd8(_0x399d3c,_0xd32e71){const _0x1522c2=_0x4dfb4f['findIndex'](({type:_0x1b89a7,subType:_0x21f0f4})=>_0x399d3c['type']==_0x1b89a7&&_0x399d3c['subType']==_0x21f0f4),_0x14b4f0=_0x4dfb4f['findIndex'](({type:_0x25ff91,subType:_0x15856b})=>_0xd32e71['type']==_0x25ff91&&_0xd32e71['subType']==_0x15856b);if(_0x1522c2<0x0||_0x14b4f0<0x0)return!0x1;const _0x2cb6e3=_0x399d3c['getFirstRange'](),_0x20c656=_0xd32e71['getFirstRange']();if((0x0==_0x1522c2||0x1==_0x1522c2)&&0x2==_0x14b4f0&&_0x2cb6e3['isIntersecting'](_0x20c656))return!0x0;if(0x2==_0x1522c2&&0x3==_0x14b4f0){const _0x13ddc8=_0x31b76c['_findSuggestions'](_0x2cb6e3,'insertion')['filter'](({suggestion:_0x483396,meta:_0x44bfbc})=>_0x44bfbc['isOwn']&&'convertInlineImageToBlock'==_0x483396['subType']);if(_0x13ddc8['length']>0x1&&_0x20c656['end']['isEqual'](_0x2cb6e3['start']))return!0x0;if(0x1==_0x13ddc8['length']&&(_0x2cb6e3['start']['isEqual'](_0x20c656['end'])||_0x2cb6e3['end']['isEqual'](_0x20c656['start'])))return!0x0;}if(0x3==_0x1522c2&&0x3==_0x14b4f0&&_0x2cb6e3['start']['isBefore'](_0x20c656['start'])){const _0x493137=_0x2cb6e3['end']['nodeAfter'],_0x55c34c=_0x20c656['start']['nodeBefore'];return _0x284fd2['isBlockImage'](_0x493137)&&_0x493137===_0x55c34c;}return!0x1;}function _0x18d5bf(_0x3a5a75,_0x194dc8){return _0x208dd8(_0x3a5a75,_0x194dc8)?[_0x3a5a75,_0x194dc8]:_0x208dd8(_0x194dc8,_0x3a5a75)?[_0x194dc8,_0x3a5a75]:null;}_0x32d569['plugins']['has']('ImageResize')&&(_0x31b76c['enableDefaultAttributesIntegration']('resizeImage'),_0x31b76c['registerBlockAttribute']('resizedWidth'),_0x31b76c['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4cab40,'FORMAT_IMAGE_SIZE'))),_0x32d569['plugins']['has']('ImageTextAlternativeEditing')&&(_0x31b76c['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x31b76c['registerBlockAttribute']('alt')),_0x32d569['plugins']['has']('PictureEditing')&&(_0x31b76c['registerBlockAttribute']('sources'),_0x31b76c['descriptionFactory']['registerDescriptionCallback'](_0x1cb923=>{if('attribute'!=_0x1cb923['type'])return;const {data:_0x47c625}=_0x1cb923;return _0x47c625&&'sources'==_0x47c625['key']?{'type':'format','content':''}:void 0x0;})),_0x32d569['plugins']['has']('ImageSizeAttributes')&&(_0x31b76c['registerBlockAttribute']('width'),_0x31b76c['registerBlockAttribute']('height'),_0x31b76c['descriptionFactory']['registerDescriptionCallback'](_0x32d4d5=>{if('attribute'!=_0x32d4d5['type'])return;const {data:_0x886710}=_0x32d4d5;return!_0x886710||'width'!=_0x886710['key']&&'height'!=_0x886710['key']?void 0x0:{'type':'format','content':''};})),_0x31b76c['descriptionFactory']['registerDescriptionCallback'](_0x57f211=>{if(!!_0x4dfb4f['find'](({type:_0x374e02,subType:_0x578e22})=>_0x57f211['type']==_0x374e02&&_0x57f211['subType']==_0x578e22))return _0x57f211['previous']?{}:void 0x0;}),_0x31b76c['descriptionFactory']['registerDescriptionCallback'](_0x410473=>{if('insertion'==_0x410473['type']||'deletion'==_0x410473['type']){const _0x24a2a4=_0x410473['getContainedElement']();if(_0x24a2a4&&_0x24a2a4['is']('element','caption'))return{'type':'insertion'==_0x410473['type']?'addObject':'removeObject','element':_0x24a2a4,'quantity':0x1};}}),_0x31b76c['descriptionFactory']['registerDescriptionCallback'](_0x330054=>'formatBlock'==_0x330054['type']&&'convertInlineImageToBlock'==_0x330054['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x330054['type']&&'convertBlockImageToInline'==_0x330054['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x31b76c['descriptionFactory']['registerDescriptionCallback'](_0x49e103=>{if('attribute'!=_0x49e103['type'])return;const {data:_0x255b72}=_0x49e103;if(!_0x255b72||'alt'!=_0x255b72['key'])return;const _0x9596bc=_0x255b72['newValue'];return _0x9596bc?{'type':'format','content':o(_0x4cab40,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x9596bc+'\x22')}:{'type':'format','content':o(_0x4cab40,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x576560=this['editor'],_0x10268b=_0x576560['locale'];_0x576560['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x504461=>{if('formatBlock'!=_0x504461['type']&&'formatInline'!=_0x504461['type'])return;const {data:_0x1d83fe}=_0x504461;if(_0x1d83fe){if('imageTextAlternative'==_0x1d83fe['commandName']){const _0x4a93f7=_0x1d83fe['commandParams'][0x0]['newValue'];return _0x4a93f7?{'type':'format','content':o(_0x10268b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4a93f7+'\x22')}:{'type':'format','content':o(_0x10268b,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1d83fe['commandName']){const _0x2103d9=_0x1d83fe['commandParams'][0x0]['width'];return _0x2103d9?{'type':'format','content':o(_0x10268b,'*Set\x20image\x20width:*\x20%0',_0x2103d9)}:{'type':'format','content':o(_0x10268b,'*Reset\x20image\x20width*')};}}});}}class st extends _0x559983{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3a8128=this['editor']['locale'],_0x17f70c=this['editor']['plugins']['get']('TrackChangesEditing');_0x17f70c['enableDefaultAttributesIntegration']('replaceImageSource'),_0x17f70c['registerBlockAttribute']('src'),_0x17f70c['descriptionFactory']['registerDescriptionCallback'](_0x92e2b6=>{if('attribute'!=_0x92e2b6['type'])return;const {data:_0x1d1ab8}=_0x92e2b6;return _0x1d1ab8&&'src'==_0x1d1ab8['key']?_0x1d1ab8['newValue']&&_0x1d1ab8['oldValue']?{'type':'format','content':o(_0x3a8128,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x7d7765=this['editor']['plugins']['get']('TrackChangesEditing');_0x7d7765['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x7d7765['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x7d7765['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x7d7765['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x627f65=this['editor'],_0x3a5401=_0x627f65['locale'];_0x627f65['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c286b=>{if('formatBlock'!=_0x3c286b['type']&&'formatInline'!=_0x3c286b['type'])return;const {data:_0x338f17}=_0x3c286b;if(!_0x338f17||'replaceImageSource'!=_0x338f17['commandName'])return;return{'type':'format','content':o(_0x3a5401,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x559983{['afterInit'](){const _0x59bd74=this['editor'];if(!_0x59bd74['plugins']['has']('ImageStyleEditing'))return;const _0x48918e=_0x59bd74['plugins']['get']('TrackChangesEditing'),_0x216671=_0x59bd74['plugins']['get']('ImageUtils'),_0x599e5c={};_0x48918e['enableCommand']('imageStyle',(_0x5a48a5,_0x29b1cb)=>{const _0xf6e101=_0x59bd74['plugins']['get']('Users')['me'],_0x18c3fb=_0x59bd74['commands']['get']('imageStyle');let _0x284857=_0x216671['getClosestSelectedImageElement'](_0x59bd74['model']['document']['selection']),_0x3d15ba=_0x59bd74['model']['createRangeOn'](_0x284857),_0x55d718=_0x18c3fb['value'];if(_0x55d718==_0x29b1cb['value'])return;const _0xf0ab1b={'commandName':'imageStyle','commandParams':[_0x29b1cb],'formatGroupId':_0x20cf05()};_0x59bd74['model']['change'](()=>{if(_0x48918e['getSuggestions']()['filter'](_0x13f4dc=>_0x13f4dc['isInContent']&&_0xf6e101==_0x13f4dc['author']&&('formatBlock'==_0x13f4dc['type']||'formatInline'==_0x13f4dc['type'])&&('imageStylePreApply'==_0x13f4dc['subType']||'imageStylePostApply'==_0x13f4dc['subType'])&&_0x13f4dc['getFirstRange']()['isEqual'](_0x3d15ba))['forEach'](_0x147013=>_0x48918e['discardSuggestion'](_0x147013['head'])),_0x284857=_0x216671['getClosestSelectedImageElement'](_0x59bd74['model']['document']['selection']),_0x3d15ba=_0x59bd74['model']['createRangeOn'](_0x284857),_0x18c3fb['refresh'](),_0x59bd74['commands']['get']('imageTypeInline')['refresh'](),_0x59bd74['commands']['get']('imageTypeBlock')['refresh'](),_0x55d718=_0x18c3fb['value'],_0x55d718!=_0x29b1cb['value'])return _0x216671['isInlineImage'](_0x284857)&&_0x18c3fb['shouldConvertImageType'](_0x29b1cb['value'],_0x284857)?(_0x5a48a5({..._0x29b1cb,'setImageSizes':!0x1}),_0x284857=_0x216671['getClosestSelectedImageElement'](_0x59bd74['model']['document']['selection']),void _0x48918e['markBlockFormat'](_0x284857,{..._0xf0ab1b,'commandReversedParams':[{'value':_0x55d718||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x216671['isBlockImage'](_0x284857)?_0x48918e['markBlockFormat'](_0x284857,_0xf0ab1b,[],'imageStylePostApply'):_0x48918e['markInlineFormat'](_0x3d15ba,_0xf0ab1b,'imageStylePostApply'));});});for(const _0x2f5e76 of _0x59bd74['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x599e5c[_0x2f5e76['name']]=_0x2f5e76['title']['toLowerCase']();_0x48918e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x48918e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x48918e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x48918e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x20906d])=>{_0x216671['setImageNaturalSizeAttributes'](_0x20906d['getContainedElement']());}),_0x48918e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1611a8,_0x25e6a4)=>{_0x48918e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1611a8,{'commandName':_0x25e6a4['commandName'],'commandParams':_0x25e6a4['commandReversedParams']});}),_0x48918e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x21998c,_0x60bb42){if(_0xfa874e(_0x21998c,_0x60bb42))return[_0x21998c,_0x60bb42];if(_0xfa874e(_0x60bb42,_0x21998c))return[_0x60bb42,_0x21998c];return null;});const _0x321089=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xfa874e(_0x2014de,_0x263f3b){const _0xbb4bfe=_0x321089['findIndex'](({type:_0x4ecb59,subType:_0x22b121})=>_0x2014de['type']==_0x4ecb59&&_0x2014de['subType']==_0x22b121),_0x8fe3b1=_0x321089['findIndex'](({type:_0x1f48be,subType:_0x30e69c})=>_0x263f3b['type']==_0x1f48be&&_0x263f3b['subType']==_0x30e69c);if(_0xbb4bfe<0x0||_0x8fe3b1<0x0)return!0x1;const _0x1d755c=_0x2014de['getFirstRange'](),_0x221c94=_0x263f3b['getFirstRange']();if((0x0==_0xbb4bfe||0x1==_0xbb4bfe)&&0x2==_0x8fe3b1&&_0x1d755c['isIntersecting'](_0x221c94))return!0x0;if(0x2==_0xbb4bfe&&0x3==_0x8fe3b1){const _0xa18bb=_0x48918e['_findSuggestions'](_0x1d755c,'insertion')['filter'](({suggestion:_0x4ad890,meta:_0x120e20})=>_0x120e20['isOwn']&&'convertInlineImageToBlock'==_0x4ad890['subType']);if(_0xa18bb['length']>0x1&&_0x221c94['end']['isEqual'](_0x1d755c['start']))return!0x0;if(0x1==_0xa18bb['length']&&(_0x1d755c['start']['isEqual'](_0x221c94['end'])||_0x1d755c['end']['isEqual'](_0x221c94['start'])))return!0x0;}if(0x3==_0xbb4bfe&&0x3==_0x8fe3b1&&_0x1d755c['start']['isBefore'](_0x221c94['start'])){const _0x455869=_0x1d755c['end']['nodeAfter'],_0x33b733=_0x221c94['start']['nodeBefore'];return _0x216671['isBlockImage'](_0x455869)&&_0x455869===_0x33b733;}return!0x1;}_0x59bd74['model']['document']['registerPostFixer'](()=>{let _0x159f23=!0x1;const _0xbe37b3=Array['from'](_0x59bd74['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x448108,data:_0x3492d4}of _0xbe37b3){const {group:_0x3f2ec9,type:_0xbaaf74,subType:_0x31f0c2,id:_0x5bee91}=_0x48918e['_splitMarkerName'](_0x448108);if('suggestion'==_0x3f2ec9&&_0x48918e['hasSuggestion'](_0x5bee91)){if('formatBlock'==_0xbaaf74&&('imageStylePreApply'==_0x31f0c2||'imageStylePostApply'==_0x31f0c2)){const _0x2715e1=_0x48918e['getSuggestion'](_0x5bee91);if(_0x3492d4['newRange']){const _0x224dfc=_0x2715e1['getFirstRange']()['getContainedElement']();if(_0x216671['isBlockImage'](_0x224dfc))continue;_0x48918e['discardSuggestion'](_0x2715e1),_0x159f23=!0x0;}}if('insertion'==_0xbaaf74&&'imageCaption'==_0x31f0c2&&!_0x3492d4['newRange']){const _0x28e501=_0x48918e['getSuggestion'](_0x5bee91);_0x28e501['next']&&_0x28e501['next']['isInContent']&&(_0x48918e['discardSuggestion'](_0x28e501['next']),_0x159f23=!0x0);}}}return _0x159f23;}),this['_registerLegacyDescription'](_0x599e5c);}['_registerLegacyDescription'](_0x18ce48){const _0x13ec39=this['editor'],_0x54009e=_0x13ec39['locale'];_0x13ec39['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10d131=>{if('formatBlock'!=_0x10d131['type']&&'formatInline'!=_0x10d131['type'])return;const {data:_0x17ca4c}=_0x10d131;if(!_0x17ca4c||'imageStyle'!=_0x17ca4c['commandName'])return;const _0x448334=_0x17ca4c['commandParams'][0x0]['value'];return _0x2bf2bc('side'===_0x448334?o(_0x54009e,'FORMAT_SIDE_IMAGE'):_0x18ce48[_0x448334]||_0x448334);function _0x2bf2bc(_0x9a7a4a){return{'type':'format','content':o(_0x54009e,'*Format:*\x20%0',_0x9a7a4a)};}});}}class rt extends _0x559983{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5d933e){super(_0x5d933e),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4b9419=this['editor'],_0x234e55=_0x4b9419['commands']['get']('importWord'),_0x146b1a=_0x4b9419['commands']['get']('trackChanges');_0x234e55&&(_0x234e55['on']('execute',(_0x3e927b,[,_0x594d9c])=>{this['_trackChangesValueDuringImport']=_0x146b1a['value'],_0x594d9c['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x234e55,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x234e55,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x146b1a['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4b9419['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x552960,_0x425eb8){const {suggestions:_0x378efd}=_0x425eb8,_0x3fa348=this['editor']['commands']['get']('trackChanges'),_0x180f69=_0x3fa348['value'];this['_trackChangesValueDuringImport']!==_0x180f69&&(_0x3fa348['execute'](),this['_trackChangesExecuted']=!0x0),_0x378efd&&_0x378efd['forEach'](({id:_0xb2cd56,type:_0x33dedf,author:_0x4f2aba,created_at:_0x2bce55})=>{const _0x1c66f2={'id':_0xb2cd56,'type':_0x33dedf,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4f2aba,'createdAt':_0x2bce55?new Date(_0x2bce55):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1c66f2);});}}class at extends _0x559983{['afterInit'](){const _0xb95243=this['editor'],_0x1c2500=_0xb95243['plugins']['get']('TrackChangesEditing');if(_0xb95243['plugins']['has']('IndentEditing')&&(_0x1c2500['enableCommand']('indent'),_0x1c2500['enableCommand']('outdent')),_0xb95243['plugins']['has']('IndentBlock')){for(const _0x36285b of['indentBlock','outdentBlock'])_0x1c2500['enableDefaultAttributesIntegration'](_0x36285b);}const _0x450f78=_0xb95243['locale'];_0x1c2500['registerBlockAttribute']('blockIndent'),_0x1c2500['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x450f78,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ab84e=this['editor'],_0x455908=_0x4ab84e['locale'],_0x5857c9=_0x4ab84e['plugins']['get']('TrackChangesEditing');_0x5857c9['descriptionFactory']['registerDescriptionCallback'](_0xf82e15=>{if('formatBlock'!=_0xf82e15['type'])return;const {data:_0x429279}=_0xf82e15;if(!_0x429279)return;if('indentBlock'!=_0x429279['commandName']&&'outdentBlock'!=_0x429279['commandName'])return;const _0x46be02=_0xf82e15['getItems']()[0x0],_0x5bd58a=_0x5857c9['descriptionFactory']['getItemLabel'](_0x46be02);return'indentBlock'==_0x429279['commandName']?{'type':'format','content':o(_0x455908,'*Indent:*\x20%0',_0x5bd58a)}:'outdentBlock'==_0x429279['commandName']?{'type':'format','content':o(_0x455908,'*Outdent:*\x20%0',_0x5bd58a)}:void 0x0;});}}class ct extends _0x559983{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x559983{['afterInit'](){const _0x56ba5d=this['editor'];if(!_0x56ba5d['plugins']['has']('LinkEditing'))return;const _0x455de7=_0x56ba5d['plugins']['get']('TrackChangesEditing'),_0x11e40c=_0x56ba5d['commands']['get']('link');_0x455de7['enableDefaultAttributesIntegration']('link'),_0x455de7['enableDefaultAttributesIntegration']('unlink'),_0x455de7['registerInlineAttribute']('linkHref');for(const _0x309bc0 of _0x11e40c['manualDecorators'])_0x455de7['registerInlineAttribute'](_0x309bc0['id']),_0x455de7['descriptionFactory']['registerAttributeLabel'](_0x309bc0['id'],'link\x20('+_0x309bc0['label']['toLowerCase']()+')');_0x455de7['descriptionFactory']['registerDescriptionCallback'](_0x34f0a4=>{if('attribute'!=_0x34f0a4['type'])return;const {data:_0x267cd7}=_0x34f0a4;if(!_0x267cd7||'linkHref'!=_0x267cd7['key'])return;const _0x931d38=_0x267cd7['newValue'],_0x450060=_0x56ba5d['locale'];return{'type':'format','content':null==_0x931d38?o(_0x450060,'*Remove\x20link*'):o(_0x450060,'*Set\x20link:*\x20%0','\x22'+_0x931d38+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x485be0=this['editor'],_0x324eff=_0x485be0['locale'];_0x485be0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b01d6=>{if('formatInline'!=_0x3b01d6['type'])return;const {data:_0x49188b}=_0x3b01d6;if(_0x49188b){if('link'==_0x49188b['commandName']){const _0x4847a2=_0x49188b['commandParams'][0x0];return{'type':'format','content':o(_0x324eff,'*Set\x20link:*\x20%0','\x22'+_0x4847a2+'\x22')};}return'unlink'==_0x49188b['commandName']?{'type':'format','content':o(_0x324eff,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x559983{['afterInit'](){const _0x56fa0c=this['editor'],_0x5dcf85=_0x56fa0c['locale'];if(!_0x56fa0c['plugins']['has']('LegacyListEditing'))return;const _0x3001b0=_0x56fa0c['plugins']['get']('TrackChangesEditing'),_0x2209bd=_0x56fa0c['plugins']['has']('LegacyTodoListEditing');function _0x235c03(_0x164912){return()=>{const _0x40399c=_0x56fa0c['model']['document']['selection'],_0x15f023=_0x56fa0c['commands']['get'](_0x164912);if(_0x15f023['value'])return void _0x56fa0c['execute']('paragraph',{});const _0x29aa39=_0x164912['slice'](0x0,-0x4),_0x970162=function(_0x461742,_0x1e6d8a,_0x27b306){let _0x2c5896=Array['from'](_0x461742)['filter'](_0x1239fd=>function(_0x4fff23,_0x58d8c5){return _0x58d8c5['checkChild'](_0x4fff23['parent'],'listItem')&&!_0x58d8c5['isObject'](_0x4fff23);}(_0x1239fd,_0x27b306));_0x2c5896=_0x2c5896['filter'](_0x50cd51=>!_0x50cd51['is']('element','listItem')||_0x50cd51['getAttribute']('listType')!=_0x1e6d8a);const _0x44059a=new Set();for(const _0x59dd38 of _0x2c5896)_0x59dd38['is']('element','listItem')?_0x44059a['add'](Le(_0x59dd38)):_0x44059a['add'](_0x59dd38);return Array['from'](_0x44059a);}(_0x40399c['getSelectedBlocks'](),_0x29aa39,_0x56fa0c['model']['schema']);_0x56fa0c['model']['change'](()=>{for(const _0x337255 of _0x970162)_0x3001b0['markBlockFormat'](_0x337255,{'commandName':_0x164912,'commandParams':[{'forceValue':!_0x15f023['value']}],'formatGroupId':'blockName'},Ee(_0x337255));});};}function _0x5785e1(_0x12c935){return()=>{const _0x33cd06=function(_0x3651d6){let _0x32ab17=Array['from'](_0x3651d6);const _0xf0470=_0x32ab17['findIndex'](_0x366d85=>'listItem'!=_0x366d85['name']);return _0xf0470>-0x1&&(_0x32ab17=_0x32ab17['slice'](0x0,_0xf0470)),_0x32ab17;}(_0x56fa0c['model']['document']['selection']['getSelectedBlocks']()),_0x16be30=_0x56fa0c['model']['createRange'](_0x56fa0c['model']['createPositionAt'](_0x33cd06[0x0],'before'),_0x56fa0c['model']['createPositionAt'](_0x33cd06[_0x33cd06['length']-0x1],'end'));_0x56fa0c['model']['change'](()=>{_0x3001b0['markBlockFormat'](_0x16be30,{'commandName':_0x12c935,'commandParams':[],'formatGroupId':'listIndent'},function(_0x502a58){const _0x48482d=new Set();for(const _0x170032 of _0x502a58){let _0x14ef18=_0x170032['nextSibling'];for(;_0x14ef18&&_0x14ef18['getAttribute']('listIndent')>_0x170032['getAttribute']('listIndent');)_0x48482d['add'](_0x14ef18),_0x14ef18=_0x14ef18['nextSibling'];}return Array['from'](_0x48482d);}(_0x33cd06));});};}_0x3001b0['enableCommand']('numberedList',_0x235c03('numberedList')),_0x3001b0['enableCommand']('bulletedList',_0x235c03('bulletedList')),_0x2209bd&&_0x3001b0['enableCommand']('todoList',_0x235c03('todoList')),_0x3001b0['enableCommand']('indentList',_0x5785e1('indentList')),_0x3001b0['enableCommand']('outdentList',_0x5785e1('outdentList')),_0x2209bd&&_0x3001b0['enableCommand']('checkTodoList',()=>{const _0x316067=_0x56fa0c['commands']['get']('checkTodoList'),_0x4ea747=Array['from'](_0x316067['_selectedElements']);_0x4ea747['filter'](_0x2c187c=>_0x2c187c['getAttribute']('todoListChecked')!=_0x316067['value']),_0x56fa0c['model']['change'](()=>{for(const _0x32fe43 of _0x4ea747)_0x3001b0['markBlockFormat'](_0x32fe43,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x316067['value']}]});});}),_0x3001b0['descriptionFactory']['registerElementLabel']('listItem',_0x2dc31b=>o(_0x5dcf85,'ELEMENT_LIST_ITEM',_0x2dc31b)),_0x3001b0['descriptionFactory']['registerDescriptionCallback'](_0x4888cb=>{if('formatBlock'!=_0x4888cb['type']&&'formatInline'!=_0x4888cb['type'])return;const {data:_0x226935}=_0x4888cb;if(_0x226935){if('numberedList'==_0x226935['commandName']||'bulletedList'==_0x226935['commandName']||'todoList'==_0x226935['commandName'])switch(_0x226935['commandName']['replace']('List','')){case'bulleted':return _0x75bbd8(o(_0x5dcf85,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x75bbd8(o(_0x5dcf85,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x75bbd8(o(_0x5dcf85,'ELEMENT_TODO_LIST'));}if('indentList'==_0x226935['commandName'])return{'type':'format','content':o(_0x5dcf85,'*Indent:*\x20%0',o(_0x5dcf85,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x226935['commandName'])return{'type':'format','content':o(_0x5dcf85,'*Outdent:*\x20%0',o(_0x5dcf85,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x226935['commandName'])return _0x226935['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5dcf85,'*Check\x20item*')}:{'type':'format','content':o(_0x5dcf85,'*Uncheck\x20item*')};}function _0x75bbd8(_0x66acff){return{'type':'format','content':o(_0x5dcf85,'*Change\x20to:*\x20%0',_0x66acff)};}});}}function Le(_0x498e0f){const _0xd4888e=_0x498e0f['getAttribute']('listIndent');if(0x0==_0xd4888e)return _0x498e0f;let _0x39d32a=_0x498e0f;for(;_0x498e0f['previousSibling']&&_0x498e0f['previousSibling']['is']('element','listItem');){const _0x4abe34=_0x498e0f['previousSibling']['getAttribute']('listIndent');if(_0x4abe34==_0xd4888e)_0x39d32a=_0x498e0f['previousSibling'];else{if(_0x4abe34<_0xd4888e)break;}_0x498e0f=_0x498e0f['previousSibling'];}return _0x39d32a;}function Ee(_0xb6db7c){const _0x3861ca=[];if(_0xb6db7c['is']('element','listItem')&&_0xb6db7c['getAttribute']('listIndent')>0x0){let _0x40d0a9=_0xb6db7c['nextSibling'];for(;_0x40d0a9&&'listItem'==_0x40d0a9['name']&&_0x40d0a9['getAttribute']('listIndent')==_0xb6db7c['getAttribute']('listIndent');)_0x3861ca['push'](_0x40d0a9),_0x40d0a9=_0x40d0a9['nextSibling'];}return _0x3861ca;}class ht extends _0x559983{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x46f863=this['editor']['config']['get']('list.properties'),_0xa8603d=this['editor']['plugins']['get']('TrackChangesEditing');_0x46f863['styles']&&_0xa8603d['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x46f863['reversed']&&_0xa8603d['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x46f863['startIndex']&&_0xa8603d['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xa8603d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3bca6b,_0x4f0819={}){const _0x29a1bd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42519f=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x29a1bd['markMultiRangeBlockFormat'](_0x42519f,{'commandName':'listStyle','commandParams':[{'type':_0x4f0819['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x485c04,_0x2986a2={}){const _0x2291e8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47414d=this['_getSuggestionBlocks'](_0x2b8fc7=>_0x2b8fc7['is']('element','listItem')&&'numbered'===_0x2b8fc7['getAttribute']('listType'));if(_0x47414d['length']<0x1)return;const _0x11d1bf=_0x47414d['map'](_0x296c93=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x296c93,'before'),this['editor']['model']['createPositionAt'](_0x296c93,0x0)));this['editor']['model']['change'](()=>{_0x2291e8['markMultiRangeBlockFormat'](_0x11d1bf,{'commandName':'listReversed','commandParams':[{'reversed':_0x2986a2['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1dc0a4,_0x1992f8={}){const _0x21b50b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a4c06=this['_getSuggestionBlocks'](_0x10ce85=>_0x10ce85['is']('element','listItem')&&'numbered'===_0x10ce85['getAttribute']('listType'));if(_0x3a4c06['length']<0x1)return;const _0x28fbfe=_0x3a4c06['map'](_0xfdeb7b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xfdeb7b,'before'),this['editor']['model']['createPositionAt'](_0xfdeb7b,0x0)));this['editor']['model']['change'](()=>{_0x21b50b['markMultiRangeBlockFormat'](_0x28fbfe,{'commandName':'listStart','commandParams':[{'startIndex':_0x1992f8['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1540ff){if('formatBlock'!=_0x1540ff['type']&&'formatInline'!=_0x1540ff['type'])return;const _0x42f350=this['editor']['locale'],{data:_0x3c886d}=_0x1540ff;if(!_0x3c886d)return;let _0x4bdcaf,_0x154b87;switch(_0x3c886d['commandName']){case'listStyle':_0x4bdcaf='*Change\x20to:*\x20%0',_0x154b87={'type':'format','content':o(_0x42f350,_0x4bdcaf,o(_0x42f350,this['_getTranslationKeyForListStyle'](_0x3c886d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4bdcaf=_0x3c886d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x154b87={'type':'format','content':o(_0x42f350,_0x4bdcaf)};break;case'listStart':_0x4bdcaf='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x154b87={'type':'format','content':o(_0x42f350,_0x4bdcaf,_0x3c886d['commandParams'][0x0]['startIndex'])};}return _0x154b87;}['_getSuggestionBlocksForListStyle'](){const _0x4072fc=this['editor']['plugins']['get']('LegacyListUtils');let _0xa8057a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xa8057a[0x0]?.['is']('element','listItem')&&_0xa8057a['unshift'](..._0x4072fc['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xa8057a[_0xa8057a['length']-0x1]?.['is']('element','listItem')&&_0xa8057a['push'](..._0x4072fc['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xa8057a=[...new Set(_0xa8057a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xa8057a=_0xa8057a['filter'](_0x3e99b4=>_0x3e99b4['is']('element','listItem'))),_0xa8057a;}['_getSuggestionBlocks'](_0x467705){const _0x48fd5b=this['editor']['plugins']['get']('LegacyListUtils');let _0x8f9109=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x467705)['map'](_0x5dd6c5=>{const _0x52eb55=this['editor']['model']['createPositionAt'](_0x5dd6c5,0x0);return[..._0x48fd5b['getSiblingNodes'](_0x52eb55,'backward'),..._0x48fd5b['getSiblingNodes'](_0x52eb55,'forward')];})['flat']();return _0x8f9109=[...new Set(_0x8f9109)],_0x8f9109;}['_getTranslationKeyForListStyle'](_0x1f2132){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1f2132)||'default')['toUpperCase']()+'_LIST_'+_0x1f2132['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x559983{['afterInit'](){const _0xd8a30d=this['editor'];if(!_0xd8a30d['plugins']['has']('MediaEmbedEditing'))return;const _0x3e3e05=_0xd8a30d['plugins']['get']('TrackChangesEditing'),_0x1860dc=_0xd8a30d['locale'];_0x3e3e05['enableCommand']('mediaEmbed'),_0x3e3e05['descriptionFactory']['registerElementLabel']('media',_0x51eedc=>o(_0x1860dc,'ELEMENT_MEDIA',_0x51eedc)),_0xd8a30d['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3437fc,{writer:_0x13c1ed,options:_0x73f205})=>{if(_0x73f205['showSuggestionHighlights'])return _0x13c1ed['createEmptyElement']('div');},'converterPriority':'high'}),_0xd8a30d['data']['downcastDispatcher']['on']('attribute:url:media',(_0x597327,_0x3f8cf4,_0x597b13)=>{_0x597b13['options']['showSuggestionHighlights']&&_0x597327['stop']();},{'priority':'high'});}}class lt extends _0x559983{['afterInit'](){const _0x2dd547=this['editor'];_0x2dd547['plugins']['has']('MentionEditing')&&_0x2dd547['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x559983{['afterInit'](){const _0x3e5266=this['editor'];if(!_0x3e5266['plugins']['has']('MergeFieldsEditing'))return;const _0x325998=_0x3e5266['plugins']['get']('TrackChangesEditing'),_0x541ad8=_0x3e5266['locale'];_0x325998['enableCommand']('insertMergeField'),_0x325998['enableCommand']('insertMergeFieldBlock'),_0x325998['enableCommand']('insertMergeFieldImage'),_0x325998['descriptionFactory']['registerElementLabel']('mergeField',_0xf310bc=>o(_0x541ad8,'ELEMENT_MERGE_FIELD',_0xf310bc)),_0x325998['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2768b7=>o(_0x541ad8,'ELEMENT_MERGE_FIELD',_0x2768b7)),_0x325998['descriptionFactory']['registerDescriptionCallback'](_0x13def5=>{if('insertion'!=_0x13def5['type']&&'deletion'!=_0x13def5['type'])return;const _0x52a8c3=_0x13def5['getContainedElement']();if(null==_0x52a8c3)return;const _0x9db6=_0x3e5266['plugins']['get']('MergeFieldsEditing');let _0x10f74e;switch(_0x9db6['getMergeFieldType'](_0x52a8c3)){case null:return;case'image':{const _0x15be9c=_0x9db6['unwrapAffixes'](_0x52a8c3['getAttribute']('src'));_0x10f74e=_0x9db6['getLabel'](_0x15be9c)||_0x15be9c;break;}default:{const _0x37137a=_0x52a8c3['getAttribute']('id');_0x10f74e=_0x9db6['getLabel'](_0x37137a)||_0x37137a;break;}}return'insertion'==_0x13def5['type']?{'type':'insertion','content':o(_0x541ad8,'*Insert:*\x20%0','\x22'+_0x10f74e+'\x22\x20'+o(_0x541ad8,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x541ad8,'*Remove:*\x20%0','\x22'+_0x10f74e+'\x22\x20'+o(_0x541ad8,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x559983{['afterInit'](){const _0xbbcc26=this['editor'],_0x21d624=_0xbbcc26['plugins']['get']('TrackChangesEditing');_0xbbcc26['plugins']['has']('MultiLevelList')&&(_0x21d624['enableDefaultAttributesIntegration']('multiLevelList'),_0x21d624['registerBlockAttribute']('listMarkerStyle'),_0x21d624['descriptionFactory']['registerDescriptionCallback'](_0x1535ee=>this['handleDescriptions'](_0x1535ee)));}['handleDescriptions'](_0x3d4513){const _0x1b0a82=this['editor']['locale'],{data:_0x2d4dd1}=_0x3d4513,_0x5f4889={'type':'format','content':''};if(_0x2d4dd1&&'listMarkerStyle'==_0x2d4dd1['key']){if(!_0x2d4dd1['oldValue'])return{'type':'format','content':o(_0x1b0a82,'*Set\x20format:*\x20%0',o(_0x1b0a82,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2d4dd1['newValue']+')'};if(!_0x2d4dd1['newValue']){let _0x1d78a3=_0x3d4513['head'];for(;_0x1d78a3;){if(_0x1d78a3['data']&&'listType'==_0x1d78a3['data']['key']&&_0x1d78a3['data']['newValue'])return _0x5f4889;_0x1d78a3=_0x1d78a3['next'];}return{'type':'format','content':o(_0x1b0a82,'*Remove\x20format:*\x20%0',o(_0x1b0a82,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2d4dd1['oldValue']+')'};}}}}class pt extends _0x559983{['afterInit'](){const _0x5d27b1=this['editor'];if(!_0x5d27b1['plugins']['has']('PageBreakEditing'))return;_0x5d27b1['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x9672e=_0x5d27b1['plugins']['get']('TrackChangesEditing'),_0xd06b0d=_0x5d27b1['locale'];_0x9672e['descriptionFactory']['registerElementLabel']('pageBreak',_0x1fb6e9=>o(_0xd06b0d,'ELEMENT_PAGE_BREAK',_0x1fb6e9));}}class kt extends _0x559983{['afterInit'](){const _0x436ba3=this['editor'];if(!_0x436ba3['plugins']['has']('Paragraph'))return;const _0x41b51a=_0x436ba3['locale'],_0x46ba70=_0x436ba3['plugins']['get']('TrackChangesEditing');_0x46ba70['descriptionFactory']['registerElementLabel']('paragraph',_0x241a86=>o(_0x41b51a,'ELEMENT_PARAGRAPH',_0x241a86)),_0x46ba70['enableDefaultAttributesIntegration']('paragraph'),_0x46ba70['enableCommand']('insertParagraph'),_0x436ba3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x436ba3),{'priority':'highest'}),_0x436ba3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x52123,_0x49d470,_0x48feeb)=>{_0x48feeb['options']['showSuggestionHighlights']&&nr(_0x436ba3,{'showActiveMarker':!0x1})(_0x52123,_0x49d470,_0x48feeb);},{'priority':'highest'});const _0x10241c=_0x46ba70['descriptionFactory'];_0x10241c['registerDescriptionCallback'](_0x2e2560=>{if('insertion'!==_0x2e2560['type'])return;const {start:_0xbaba32,end:_0x2cca42}=_0x2e2560['getFirstRange']();if(!_0xbaba32['isTouching'](_0x2cca42)||!_0xbaba32['nodeAfter'])return;const _0x109c7e=_0x436ba3['model']['schema'],_0x26c20c=_0xbaba32['nodeAfter'];return _0x109c7e['isBlock'](_0x26c20c)&&!_0x109c7e['isLimit'](_0x26c20c)&&_0x109c7e['checkChild'](_0x26c20c,'$text')?{'type':'insertion','content':o(_0x41b51a,'*Insert:*\x20%0',_0x10241c['getItemLabel'](_0x26c20c,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x398fe3=this['editor'],_0xb2c0e0=_0x398fe3['locale'];_0x398fe3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x474ae4=>{if('formatBlock'!=_0x474ae4['type'])return;const {data:_0x756201}=_0x474ae4;return _0x756201&&'paragraph'==_0x756201['commandName']?{'type':'format','content':o(_0xb2c0e0,'*Change\x20to:*\x20%0',o(_0xb2c0e0,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xd54cb2,{showActiveMarker:_0x345280=!0x0}={}){return(_0x3064e7,_0x4ba056,_0x460c17)=>{const _0x1078b3=_0xd54cb2['plugins']['get']('TrackChangesEditing'),_0x16c0a3=_0x4ba056['markerRange']['start'],_0x10f4ea=_0x4ba056['markerRange']['end'],_0x47e0e1=_0xd54cb2['model']['schema'];if(!_0x16c0a3['isTouching'](_0x10f4ea)||!_0x16c0a3['nodeAfter'])return;const _0x36c0d1=_0x16c0a3['nodeAfter'];if(_0x47e0e1['isBlock'](_0x36c0d1)&&!_0x47e0e1['isLimit'](_0x36c0d1)&&_0x47e0e1['checkChild'](_0x36c0d1,'$text')){if(!_0x460c17['consumable']['consume'](_0x4ba056['markerRange'],_0x3064e7['name']))return;const {id:_0x43f2fb,authorId:_0x51f5f4}=_0x1078b3['_splitMarkerName'](_0x4ba056['markerName']),_0x12a739=_0x460c17['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x43f2fb,'data-author-id':_0x51f5f4}),_0x4f77b4=_0x460c17['mapper']['toViewPosition'](_0x10f4ea);_0x345280&&_0x1078b3['activeMarkers']['includes'](_0x4ba056['markerName'])&&_0x460c17['writer']['addClass']('ck-suggestion-marker--active',_0x12a739),_0x460c17['writer']['insert'](_0x4f77b4,_0x12a739),_0x460c17['mapper']['bindElementToMarker'](_0x12a739,_0x4ba056['markerName']);}};}class wt extends _0x559983{['afterInit'](){const _0x4e00e1=this['editor'];_0x4e00e1['commands']['get']('replaceSource')&&_0x4e00e1['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x559983{['afterInit'](){const _0xb46dbb=this['editor'];if(!_0xb46dbb['plugins']['has']('RemoveFormatEditing'))return;_0xb46dbb['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42e482=this['editor'];_0x42e482['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40b603=>{if('formatBlock'!=_0x40b603['type']&&'formatInline'!=_0x40b603['type'])return;const {data:_0x59e7e9}=_0x40b603;return _0x59e7e9&&'removeFormat'==_0x59e7e9['commandName']?{'type':'format','content':o(_0x42e482['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x559983{['afterInit'](){const _0x545b52=this['editor'];if(!_0x545b52['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x152458=_0x545b52['plugins']['get']('TrackChangesEditing');_0x152458['enableCommand']('goToPreviousRestrictedEditingException'),_0x152458['enableCommand']('goToNextRestrictedEditingException');const _0xef1e26=_0x545b52['plugins']['get']('RestrictedEditingModeEditing');_0xef1e26['enableCommand']('trackChanges'),_0xef1e26['enableCommand']('acceptSuggestion'),_0xef1e26['enableCommand']('discardSuggestion'),_0xef1e26['enableCommand']('acceptAllSuggestions'),_0xef1e26['enableCommand']('discardAllSuggestions'),_0xef1e26['enableCommand']('acceptSelectedSuggestions'),_0xef1e26['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x559983{['afterInit'](){const _0x4536a7=this['editor'];if(!_0x4536a7['plugins']['has']('ShiftEnter'))return;const _0x835daa=_0x4536a7['plugins']['get']('TrackChangesEditing');_0x835daa['enableCommand']('shiftEnter'),_0x4536a7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x4536a7),{'priority':'high'}),_0x4536a7['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x4536a7),{'priority':'high'}),_0x4536a7['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x373547,_0x176b3c,_0x478ea2)=>{_0x478ea2['options']['showSuggestionHighlights']&&je(_0x4536a7,{'showActiveMarker':!0x1})(_0x373547,_0x176b3c,_0x478ea2);}),_0x835daa['descriptionFactory']['registerElementLabel']('softBreak',_0x55b014=>o(_0x4536a7['locale'],'ELEMENT_LINE_BREAK',_0x55b014));}}function je(_0x42b0ed,{showActiveMarker:_0x5c44a7=!0x0}={}){return(_0xb558b0,_0x2910fa,_0x48f9ce)=>{const _0x7bea16=_0x42b0ed['plugins']['get']('TrackChangesEditing');if(!_0x48f9ce['consumable']['test'](_0x2910fa['markerRange'],_0xb558b0['name']))return;const _0x2e65dd=_0x42b0ed['model'];for(const _0x408761 of _0x2910fa['markerRange']['getItems']()){if(!_0x408761['is']('element','softBreak'))continue;const _0x4fae2c='deletion'==_0x2910fa['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x1ff91e,authorId:_0x102c44}=_0x7bea16['_splitMarkerName'](_0x2910fa['markerName']),_0x152fbf=_0x48f9ce['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4fae2c,'data-suggestion':_0x1ff91e,'data-author-id':_0x102c44}),_0xcd2b3c=_0x48f9ce['mapper']['toViewPosition'](_0x2e65dd['createPositionBefore'](_0x408761));_0x5c44a7&&_0x7bea16['activeMarkers']['includes'](_0x2910fa['markerName'])&&_0x48f9ce['writer']['addClass']('ck-suggestion-marker--active',_0x152fbf),_0x48f9ce['writer']['insert'](_0xcd2b3c,_0x152fbf),_0x48f9ce['mapper']['bindElementToMarker'](_0x152fbf,_0x2910fa['markerName']);}};}class St extends _0x559983{['afterInit'](){const _0x2505e5=this['editor'],_0x528fb4=_0x2505e5['model'],_0x40d3ab=_0x2505e5['locale'];if(!_0x2505e5['plugins']['has']('StandardEditingModeEditing'))return;const _0x4d705f=_0x2505e5['plugins']['get']('TrackChangesEditing'),_0x110c9b='restrictedEditingException',_0x576709=_0x2505e5['commands']['get'](_0x110c9b);_0x4d705f['enableCommand'](_0x110c9b,(_0x53bf72,_0x200121={})=>{const _0x4e6c1e=_0x528fb4['document']['selection'];if(_0x4e6c1e['isCollapsed'])return void _0x53bf72(_0x200121);const _0x751654=void 0x0!==_0x200121['forceValue']?_0x200121['forceValue']:!_0x576709['value'];_0x528fb4['change'](()=>{const _0x2777a2=Array['from'](_0x4e6c1e['getRanges']());for(const _0x690aa8 of _0x2777a2){const _0x5a0873=_0x751654?[_0x690aa8]:io(_0x110c9b,_0x690aa8,_0x528fb4);for(const _0x2f9c2e of _0x5a0873)_0x4d705f['markInlineFormat'](_0x2f9c2e,{'commandName':_0x110c9b,'commandParams':[{'forceValue':_0x751654}]});}});}),_0x4d705f['descriptionFactory']['registerDescriptionCallback'](_0x4b0cef=>{if('formatBlock'!=_0x4b0cef['type']&&'formatInline'!=_0x4b0cef['type'])return;const {data:_0x3c128a}=_0x4b0cef;return _0x3c128a&&_0x3c128a['commandName']==_0x110c9b?_0x3c128a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x40d3ab,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x40d3ab,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x559983{['afterInit'](){const _0x11a734=this['editor'];if(!_0x11a734['plugins']['has']('Style')||!_0x11a734['plugins']['has']('DataSchema'))return;const _0x4c7a9c=_0x11a734['plugins']['get']('TrackChangesEditing'),_0xb15dc0=_0x11a734['locale'],_0x3509da=_0x11a734['config']['get']('style')||{},_0x2772b0=_0x11a734['plugins']['get']('GeneralHtmlSupport'),_0x7e5b=_0x11a734['plugins']['get']('StyleUtils')['normalizeConfig'](_0x11a734['plugins']['get']('DataSchema'),_0x3509da['definitions']);_0x4c7a9c['enableDefaultAttributesIntegration']('style');const _0x381e1c=new Set();for(const _0x4a5f01 of _0x7e5b['block']){const _0x5ed6d8=_0x2772b0['getGhsAttributeNameForElement'](_0x4a5f01['element']);_0x381e1c['add'](_0x5ed6d8);}const _0x157b32=new Set();for(const _0x23d22e of _0x7e5b['inline']){const _0x46d0a5=_0x2772b0['getGhsAttributeNameForElement'](_0x23d22e['element']);_0x157b32['add'](_0x46d0a5);for(const _0x84ad1d of _0x23d22e['ghsAttributes'])_0x157b32['add'](_0x84ad1d);}for(const _0x71b3af of _0x381e1c)_0x4c7a9c['registerBlockAttribute'](_0x71b3af),_0x4c7a9c['descriptionFactory']['registerAttributeLabel'](_0x71b3af,o(_0xb15dc0,'FORMAT_STYLE'));for(const _0x3987e6 of _0x157b32)_0x4c7a9c['registerInlineAttribute'](_0x3987e6),_0x4c7a9c['descriptionFactory']['registerAttributeLabel'](_0x3987e6,o(_0xb15dc0,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f2f1c=this['editor'],_0x6be108=_0x1f2f1c['locale'];_0x1f2f1c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a5bfe=>{if('formatBlock'!=_0x4a5bfe['type']&&'formatInline'!=_0x4a5bfe['type'])return;const {data:_0xe4ad9f}=_0x4a5bfe;return _0xe4ad9f&&'style'===_0xe4ad9f['commandName']?_0xe4ad9f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x6be108,'*Set\x20format:*\x20%0',_0xe4ad9f['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x6be108,'*Remove\x20format:*\x20%0',_0xe4ad9f['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x559983{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3a8e5f){super(_0x3a8e5f),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x31f9ad=this['editor'],_0x1427a1=_0x31f9ad['model']['document']['selection'];if(!_0x31f9ad['plugins']['has']('TableEditing'))return;const _0x576601=_0x31f9ad['locale'],_0x4f7bfb=_0x31f9ad['plugins']['get']('TrackChangesEditing'),_0x3e5c5c=_0x31f9ad['plugins']['get']('TableUtils');_0x4f7bfb['descriptionFactory']['registerElementLabel']('table',_0xee0f5=>o(_0x576601,'ELEMENT_TABLE',_0xee0f5)),this['_setupColumnsRowsFixing'](),_0x4f7bfb['enableCommand']('insertTable'),_0x4f7bfb['enableCommand']('selectTableRow'),_0x4f7bfb['enableCommand']('selectTableColumn');for(const _0x2f89c4 of['insertTableRowAbove','insertTableRowBelow']){const _0x3d31d7=_0x31f9ad['commands']['get'](_0x2f89c4);_0x4f7bfb['enableCommand'](_0x2f89c4,_0x30d092=>{_0x31f9ad['model']['change'](_0x31b9ad=>{_0x30d092();const _0x846286='above'===_0x3d31d7['order'],_0x3be933=_0x3e5c5c['getSelectionAffectedTableCells'](_0x1427a1),_0x31fe8d=_0x3e5c5c['getRowIndexes'](_0x3be933),_0x1624ab=_0x846286?_0x31fe8d['first']-0x1:_0x31fe8d['last']+0x1,_0x3e0bd1=_0x3be933[0x0]['findAncestor']('table'),_0x43e0d3=_0x3e5c5c['createTableWalker'](_0x3e0bd1,{'startRow':_0x1624ab,'endRow':_0x1624ab}),_0x5794f4=Array['from'](_0x43e0d3)['map'](_0x55068b=>_0x31b9ad['createRangeOn'](_0x55068b['cell']));_0x4f7bfb['markMultiRangeInsertion'](_0x5794f4,'tableRow');});});}for(const _0x2aa8dc of['insertTableColumnLeft','insertTableColumnRight']){const _0x5e767e=_0x31f9ad['commands']['get'](_0x2aa8dc);_0x4f7bfb['enableCommand'](_0x2aa8dc,_0x591fe7=>{_0x31f9ad['model']['change'](_0x331273=>{_0x591fe7();const _0x42a605='left'===_0x5e767e['order'],_0x55bcc7=_0x3e5c5c['getSelectionAffectedTableCells'](_0x1427a1),_0x3ab19e=_0x3e5c5c['getColumnIndexes'](_0x55bcc7),_0x8b6592=_0x42a605?_0x3ab19e['first']-0x1:_0x3ab19e['last']+0x1,_0x3790db=_0x55bcc7[0x0]['findAncestor']('table'),_0x526ac0=_0x3e5c5c['createTableWalker'](_0x3790db,{'startRow':0x0,'column':_0x8b6592,'includeAllSlots':!0x1}),_0x39650f=Array['from'](_0x526ac0)['map'](_0x242878=>_0x331273['createRangeOn'](_0x242878['cell']));_0x4f7bfb['markMultiRangeInsertion'](_0x39650f,'tableColumn');});});}for(const _0x39f158 of['removeTableRow','removeTableColumn']){const _0x4ad6f0=_0x39f158['substr'](0xb),_0x32003c=_0x4ad6f0['toLowerCase'](),_0x1a44ed=_0x32003c['substr'](0x0,0x3)+'span',_0x2e0203='table'+_0x4ad6f0,_0x49e344='min'+_0x4ad6f0,_0x19534c='max'+_0x4ad6f0;_0x4f7bfb['enableCommand'](_0x39f158,()=>{_0x31f9ad['model']['change'](_0x3d1e75=>{const _0x391869=_0x3e5c5c['getSelectionAffectedTableCells'](_0x1427a1),_0xee3136=_0x391869[0x0]['findAncestor']('table');let _0x307eb9;if('removeTableRow'==_0x39f158){const _0x731ff=_0x3e5c5c['getRowIndexes'](_0x391869);_0x307eb9={'startRow':_0x731ff['first'],'endRow':_0x731ff['last'],'includeAllSlots':!0x0};}else{const _0x52472d=_0x3e5c5c['getColumnIndexes'](_0x391869);_0x307eb9={'startColumn':_0x52472d['first'],'endColumn':_0x52472d['last'],'includeAllSlots':!0x0};}const _0x138392=_0x3e5c5c['createTableWalker'](_0xee3136,_0x307eb9),_0x3bedd6=Array['from'](_0x138392)['map'](({cell:_0x59d1f9})=>_0x59d1f9),_0x572ec7=Ne(_0x3bedd6['filter'](_0x2b704e=>_0x2b704e['hasAttribute'](_0x1a44ed))),_0x509963=Ne(_0x3bedd6['filter'](_0x592370=>!_0x592370['hasAttribute'](_0x1a44ed)))['map'](_0x39131e=>_0x3d1e75['createRangeOn'](_0x39131e)),_0x4ba2ad=_0x4f7bfb['markMultiRangeDeletion'](_0x509963,_0x2e0203);if(_0x4ba2ad&&('tableRow'==_0x4ba2ad['subType']||'tableColumn'==_0x4ba2ad['subType'])){const _0x91462d=this['_getSuggestionCoords'](_0x4ba2ad);for(const _0x2157ce of _0x572ec7){const _0x15d920=_0x3d1e75['createRangeOn'](_0x2157ce),_0x49879c=_0x3e5c5c['getCellLocation'](_0x2157ce),_0x3eaeec=_0x2157ce['getAttribute'](_0x1a44ed)-0x1,_0xbc571e=_0x91462d[_0x49e344],_0x29ff47=_0x91462d[_0x19534c];_0xbc571e<=_0x49879c[_0x32003c]&&_0x49879c[_0x32003c]+_0x3eaeec<=_0x29ff47&&_0x4ba2ad['addRange'](_0x15d920);}}});});}function _0x45d895(_0x2d6d6f){const _0x479041=Array['from'](_0x1427a1['getRanges']())['map'](_0x3e521e=>_0x334b1a['fromRange'](_0x3e521e));_0x31f9ad['model']['change'](_0x4c91c9=>{const _0x4c73a0=_0x4c91c9['batch'];_0x2d6d6f=_0x2d6d6f['filter'](_0x6350b8=>'$graveyard'!=_0x6350b8['root']['rootName']),_0x4c91c9['setSelection'](_0x2d6d6f),_0x31f9ad['commands']['get']('removeTableRow')['refresh'](),_0x31f9ad['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x31f9ad['model']['enqueueChange'](()=>{_0x31f9ad['model']['enqueueChange'](_0x4c73a0,_0x18229c=>{const _0xc61e6b=_0x479041['filter'](_0x592556=>'$graveyard'!=_0x592556['root']['rootName']);_0xc61e6b['length']>0x0&&_0x18229c['setSelection'](_0xc61e6b);for(const _0xab535d of _0x479041)_0xab535d['detach']();});});});}function _0x6063d1(_0x282eb6){_0x31f9ad['model']['change'](_0x54ab5e=>{const _0x2ebab0=Array['from'](_0x1427a1['getRanges']())['map'](_0xfc7165=>_0x334b1a['fromRange'](_0xfc7165)),_0x1b19c6=[];for(const _0x423100 of _0x282eb6)for(const _0x38f4a4 of _0x423100['getItems']({'shallow':!0x0}))_0x1b19c6['push'](_0x38f4a4);for(const _0x28eda9 of _0x1b19c6)'$graveyard'!=_0x28eda9['root']['rootName']&&(_0x54ab5e['setSelection'](_0x54ab5e['createPositionAt'](_0x28eda9,0x0)),_0x31f9ad['commands']['get']('removeTableColumn')['refresh'](),_0x31f9ad['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x13d2c3=_0x2ebab0['filter'](_0x187140=>'$graveyard'!=_0x187140['root']['rootName']);_0x13d2c3['length']>0x0&&_0x54ab5e['setSelection'](_0x13d2c3);for(const _0x4b00b5 of _0x2ebab0)_0x4b00b5['detach']();});}function _0x4ad8a1(_0x45ec06,_0x1225ab){return _0x1225ab['every'](_0x5deeef=>_0x45ec06['some'](_0x44d345=>_0x44d345['end']['isEqual'](_0x5deeef['start'])||_0x5deeef['end']['isEqual'](_0x44d345['start'])));}function _0x2fadc6(_0x27d259,_0x50982c){return!_0x27d259['some'](_0x4437f8=>_0x50982c['some'](_0x40f178=>_0x4437f8['isIntersecting'](_0x40f178)))&&_0x27d259['some'](_0x30c235=>_0x50982c['some'](_0x568e7a=>_0x30c235['end']['isTouching'](_0x568e7a['start'])));}_0x31f9ad['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x948ef4,_0x1ffc56,_0x3cc1a4)=>{if(!_0x3cc1a4['options']['showSuggestionHighlights'])return;const _0xde9df1=_0x1ffc56['item'];if(!_0xde9df1||!_0xde9df1['is']('element','tableCell'))return;const _0x5e05d1=_0x3cc1a4['mapper']['toViewElement'](_0xde9df1);if(_0x5e05d1){const {id:_0x303f43,authorId:_0x199296}=_0x4f7bfb['_splitMarkerName'](_0x1ffc56['markerName']);_0x186ae4(_0x5e05d1,_0x3cc1a4['writer'],(_0x237548,_0x250050,_0x160d33)=>{_0x160d33['addClass'](_0x549793(_0x250050['classes']),_0x237548),_0x160d33['setAttribute']('data-suggestion-id',_0x303f43,_0x237548),_0x160d33['setAttribute']('data-author-id',_0x199296,_0x237548);},(_0x27903d,_0x56fcc9,_0x5a8cfa)=>{_0x5a8cfa['removeClass'](_0x549793(_0x56fcc9['classes']),_0x27903d),_0x5a8cfa['removeAttribute']('data-suggestion-id',_0x27903d),_0x5a8cfa['removeAttribute']('data-author-id',_0x27903d);});}},{'priority':'highest'}),_0x4f7bfb['descriptionFactory']['registerDescriptionCallback'](_0x3d65ac=>{if('insertion'!=_0x3d65ac['type']&&'deletion'!=_0x3d65ac['type'])return;const _0x515829=_0x3d65ac['getContainedElement']();if(null!=_0x515829&&_0x515829['is']('element','table')){if('insertion'==_0x3d65ac['type']){const _0x42f0f4=_0x3d65ac['getItems']()['filter'](_0x4cd210=>_0x4cd210['is']('$textProxy'))['map'](_0x2961f0=>_0x2961f0['data']);if(_0x42f0f4['length'])return{'type':'insertion','content':o(_0x576601,'*Insert:*\x20%0',o(_0x576601,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x42f0f4['join']('\x20')+'\x22'))};}if('deletion'==_0x3d65ac['type']){const _0x52b6f4=_0x3d65ac['getItems']()['filter'](_0x321591=>_0x321591['is']('$textProxy'))['map'](_0x7584d2=>_0x7584d2['data']);if(_0x52b6f4['length'])return{'type':'deletion','content':o(_0x576601,'*Remove:*\x20%0',o(_0x576601,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x52b6f4['join']('\x20')+'\x22'))};}}}),_0x4f7bfb['descriptionFactory']['registerDescriptionCallback'](_0x42bcc7=>{if('tableRow'==_0x42bcc7['subType']){const _0x3bbb79=_0x42bcc7['getItems']()['filter'](_0x3e2c1f=>_0x3e2c1f['is']('$textProxy'))['map'](_0x206f97=>_0x206f97['data']),_0x3c4491=this['_getSuggestionCoords'](_0x42bcc7),_0x2a14fd=_0x3c4491['maxRow']-_0x3c4491['minRow']+0x1;if('insertion'==_0x42bcc7['type'])return _0x3bbb79['length']?{'type':'insertion','content':o(_0x576601,'*Insert:*\x20%0',o(_0x576601,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2a14fd,'\x22'+_0x3bbb79['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x576601,'*Insert:*\x20%0',o(_0x576601,'ELEMENT_TABLE_ROW',_0x2a14fd))};if('deletion'==_0x42bcc7['type'])return _0x3bbb79['length']?{'type':'deletion','content':o(_0x576601,'*Remove:*\x20%0',o(_0x576601,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2a14fd,'\x22'+_0x3bbb79['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x576601,'*Remove:*\x20%0',o(_0x576601,'ELEMENT_TABLE_ROW',_0x2a14fd))};}if('tableColumn'==_0x42bcc7['subType']){const _0x52acd6=_0x42bcc7['getItems']()['filter'](_0xd3e460=>_0xd3e460['is']('$textProxy'))['map'](_0x176146=>_0x176146['data']),_0x187a5d=this['_getSuggestionCoords'](_0x42bcc7),_0x2c146d=_0x187a5d['maxColumn']-_0x187a5d['minColumn']+0x1;if('insertion'==_0x42bcc7['type'])return _0x52acd6['length']?{'type':'insertion','content':o(_0x576601,'*Insert:*\x20%0',o(_0x576601,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2c146d,'\x22'+_0x52acd6['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x576601,'*Insert:*\x20%0',o(_0x576601,'ELEMENT_TABLE_COLUMN',_0x2c146d))};if('deletion'==_0x42bcc7['type'])return _0x52acd6['length']?{'type':'deletion','content':o(_0x576601,'*Remove:*\x20%0',o(_0x576601,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2c146d,'\x22'+_0x52acd6['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x576601,'*Remove:*\x20%0',o(_0x576601,'ELEMENT_TABLE_COLUMN',_0x2c146d))};}}),_0x4f7bfb['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x45d895),_0x4f7bfb['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x45d895),_0x4f7bfb['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x6063d1),_0x4f7bfb['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x6063d1),_0x4f7bfb['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4ad8a1),_0x4f7bfb['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4ad8a1),_0x4f7bfb['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2fadc6),_0x4f7bfb['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2fadc6);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5e8547=this['editor'],_0x214364=_0x5e8547['model']['document']['selection'];return(_0x2805dd,_0xa1e9ed)=>{_0x5e8547['model']['change'](_0x343a04=>{const {commandName:_0x1c0c34,commandParams:_0x4688b3}=_0xa1e9ed;let _0x4dc1e9=_0x2805dd[0x0]['end']['nodeBefore'];_0x4688b3&&_0x4688b3[0x0]&&!0x1===_0x4688b3[0x0]['forceValue']&&(_0x4dc1e9=_0x2805dd[0x0]['start']['nodeAfter']);const _0x385c9f=_0x343a04['createRangeIn'](_0x4dc1e9);if('$graveyard'==_0x385c9f['root']['rootName'])return;const _0x7b0640=Array['from'](_0x214364['getRanges']())['map'](_0x533e91=>_0x334b1a['fromRange'](_0x533e91));_0x343a04['setSelection'](_0x385c9f),_0x5e8547['commands']['get'](_0x1c0c34)['refresh'](),_0x4688b3['push']({'forceDefaultExecution':!0x0}),_0x5e8547['execute'](_0x1c0c34,..._0x4688b3);const _0x50f6c6=_0x7b0640['filter'](_0x9c8f83=>'$graveyard'!=_0x9c8f83['root']['rootName']);_0x50f6c6['length']>0x0&&_0x343a04['setSelection'](_0x50f6c6);for(const _0x515f7b of _0x7b0640)_0x515f7b['detach']();});};}['_getCoordsForCells'](_0x40c1d0){const _0x43486b=this['editor']['plugins']['get']('TableUtils');let _0x281c0f=Number['MAX_SAFE_INTEGER'],_0xf2de73=Number['MIN_SAFE_INTEGER'],_0x231495=Number['MAX_SAFE_INTEGER'],_0x5c1849=Number['MIN_SAFE_INTEGER'];for(const _0x5be48c of _0x40c1d0){if('$graveyard'==_0x5be48c['root']['rootName'])continue;const {row:_0x3c668e,column:_0x38c018}=_0x43486b['getCellLocation'](_0x5be48c),_0x1cf6b7=_0x5be48c['hasAttribute']('rowspan')?_0x5be48c['getAttribute']('rowspan')-0x1:0x0,_0x22659f=_0x5be48c['hasAttribute']('colspan')?_0x5be48c['getAttribute']('colspan')-0x1:0x0;_0x281c0f=_0x3c668e<_0x281c0f?_0x3c668e:_0x281c0f,_0xf2de73=_0x3c668e+_0x1cf6b7>_0xf2de73?_0x3c668e+_0x1cf6b7:_0xf2de73,_0x231495=_0x38c018<_0x231495?_0x38c018:_0x231495,_0x5c1849=_0x38c018+_0x22659f>_0x5c1849?_0x38c018+_0x22659f:_0x5c1849;}return{'minRow':_0x281c0f,'maxRow':_0xf2de73,'minColumn':_0x231495,'maxColumn':_0x5c1849};}['_setupColumnsRowsFixing'](){const _0x453365=this['editor'],_0x2fdb66=_0x453365['plugins']['get']('TrackChangesEditing'),_0x34c1d4=_0x453365['plugins']['get']('TableUtils');_0x453365['model']['document']['on']('change:data',()=>{const _0x150b44=Array['from'](_0x453365['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3349fd,data:_0x30828e}of _0x150b44){const {group:_0x1ed4bd,id:_0x1f14eb,subType:_0x18e47c}=_0x2fdb66['_splitMarkerName'](_0x3349fd);if('suggestion'!=_0x1ed4bd)continue;if(null!=_0x30828e['oldRange'])continue;const _0x88fc23=_0x2fdb66['getSuggestion'](_0x1f14eb);this['_tablePostFixingSubtypes']['includes'](_0x18e47c)&&this['_tableSuggestions']['add'](_0x88fc23);}},{'priority':'low'});const _0x1376e3=(_0x501e86,_0x227127)=>{let _0x2665da=!0x1;const _0x475938=_0x227127['createRangeOn'](_0x501e86),_0x264a53=_0x501e86['findAncestor']('table'),_0x5b2ac6=_0x34c1d4['getCellLocation'](_0x501e86);for(const _0x1abd7a of this['_tableSuggestions']){const _0x182991=_0x1abd7a['subType'],_0x4ce38b=_0x182991['startsWith']('tablePaste'),_0x4200ed=_0x182991['substr'](_0x4ce38b?0xa:0x5),_0x14dd81=_0x4200ed['toLowerCase'](),_0x298ad0=_0x14dd81['substr'](0x0,0x3)+'span',_0x118ea8='min'+_0x4200ed,_0x83dadc='max'+_0x4200ed;if(!_0x1abd7a['isInContent'])continue;if(_0x264a53!=_0x1abd7a['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1abd7a['isIntersectingWithRange'](_0x475938))continue;const _0x2a0ad0=_0x501e86['hasAttribute'](_0x298ad0)?_0x501e86['getAttribute'](_0x298ad0)-0x1:0x0,_0x43dbd7=this['_getSuggestionCoords'](_0x1abd7a),_0x4c85fa=_0x43dbd7[_0x118ea8],_0x1860c9=_0x43dbd7[_0x83dadc];_0x4c85fa<=_0x5b2ac6[_0x14dd81]&&_0x5b2ac6[_0x14dd81]+_0x2a0ad0<=_0x1860c9&&(_0x1abd7a['addRange'](_0x475938),_0x2665da=!0x0);}return _0x2665da;};_0x453365['model']['document']['registerPostFixer'](_0x50ac70=>{let _0x3f0255=!0x1;for(const _0x7e6944 of _0x453365['model']['document']['differ']['getChanges']())if('insert'==_0x7e6944['type']){if('tableRow'==_0x7e6944['name']){for(const _0x4c651b of _0x7e6944['position']['nodeAfter']['getChildren']())_0x3f0255=_0x3f0255||_0x1376e3(_0x4c651b,_0x50ac70);}else'tableCell'==_0x7e6944['name']&&(_0x3f0255=_0x3f0255||_0x1376e3(_0x7e6944['position']['nodeAfter'],_0x50ac70));}return _0x3f0255;});}['_getSuggestionCoords'](_0x5cab69){return this['_getCoordsForCells'](_0x5cab69['getRanges']()['map'](_0x4a7e5e=>_0x4a7e5e['start']['nodeAfter']));}}function Ne(_0x2f2adb){return Array['from'](new Set(_0x2f2adb)['values']());}class _t extends _0x559983{static get['requires'](){return[At];}['afterInit'](){const _0x4d23e0=this['editor'],_0xacdd55=_0x4d23e0['model']['document']['selection'],_0x1f1d1b=_0x4d23e0['locale'];if(!_0x4d23e0['plugins']['has']('TableEditing'))return;const _0x177b32=_0x4d23e0['plugins']['get']('TrackChangesEditing'),_0x579241=_0x4d23e0['plugins']['get']('TableUtils'),_0xcb6b5a=_0x4d23e0['plugins']['get'](At);_0xcb6b5a['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x177b32['enableCommand']('mergeTableCells',()=>{const _0x766583=_0x579241['getSelectionAffectedTableCells'](_0x4d23e0['model']['document']['selection']);_0x4d23e0['model']['change'](()=>{_0x177b32['markMultiRangeBlockFormat'](_0x766583,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4d23e0['commands']['get']('mergeTableCells')['on']('execute',(_0x442ceb,_0x32a430)=>{_0x4d23e0['commands']['get']('trackChanges')['value']&&(_0x32a430['length']>0x0&&_0x32a430[_0x32a430['length']-0x1]&&_0x32a430[_0x32a430['length']-0x1]['forceDefaultExecution']||_0x177b32['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x442ceb['stop']());},{'priority':'highest'});for(const _0x4ef318 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x824f33=_0x4d23e0['commands']['get'](_0x4ef318);_0x177b32['enableCommand'](_0x4ef318,()=>{const _0x3969aa=_0x4d23e0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x133f31=>_0x133f31['is']('element','tableCell')),_0x2a858e=_0x824f33['value'];_0x4d23e0['model']['change'](()=>{_0x177b32['markMultiRangeBlockFormat']([_0x3969aa,_0x2a858e],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x37be7c of['splitTableCellVertically','splitTableCellHorizontally']){const _0x37ba43=_0x4d23e0['commands']['get'](_0x37be7c);_0x177b32['enableCommand'](_0x37be7c,()=>{const _0x3f4fc3=_0x579241['getSelectionAffectedTableCells'](_0x4d23e0['model']['document']['selection'])[0x0],_0x68561b=_0x3f4fc3['findAncestor']('table'),{column:_0x2a8466,row:_0x53786d}=_0x579241['getCellLocation'](_0x3f4fc3);let _0xe554b8=[];if('horizontally'==_0x37ba43['direction']){const _0x1e5961=_0x579241['createTableWalker'](_0x68561b,{'startRow':_0x53786d,'endRow':_0x53786d,'includeAllSlots':!0x0});_0xe554b8=Array['from'](_0x1e5961)['map'](_0x521bd4=>_0x521bd4['cell']);}else{const _0x30629e=_0x579241['createTableWalker'](_0x68561b,{'column':_0x2a8466,'includeAllSlots':!0x0});_0xe554b8=Array['from'](_0x30629e)['map'](_0x1cd2e3=>_0x1cd2e3['cell']);}_0x4d23e0['model']['change'](_0xfa2b6a=>{_0x177b32['markBlockFormat'](_0xfa2b6a['createRangeOn'](_0x3f4fc3),{'commandName':_0x37be7c,'commandParams':[]},_0xe554b8,_0x37be7c);});});}_0x177b32['descriptionFactory']['registerDescriptionCallback'](_0x4e9b1f=>{if('formatBlock'!=_0x4e9b1f['type']&&'formatInline'!=_0x4e9b1f['type'])return;const {data:_0x40d995}=_0x4e9b1f;return _0x40d995&&'mergeTableCells'==_0x40d995['commandName']?{'type':'format','content':o(_0x1f1d1b,'*Merge\x20cells*')}:void 0x0;}),_0x177b32['descriptionFactory']['registerDescriptionCallback'](_0x3a3f5f=>{if('formatBlock'!=_0x3a3f5f['type']&&'formatInline'!=_0x3a3f5f['type'])return;const {data:_0x3c5b8b}=_0x3a3f5f;return _0x3c5b8b?'splitTableCellVertically'==_0x3c5b8b['commandName']?{'type':'format','content':o(_0x1f1d1b,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3c5b8b['commandName']?{'type':'format','content':o(_0x1f1d1b,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x509888=_0xcb6b5a['_acceptFormatSuggestionCallbackFactory']();for(const _0x15fd36 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x177b32['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x15fd36,'accept',_0x509888);for(const _0x249d35 of['splitTableCellVertically','splitTableCellHorizontally'])_0x177b32['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x249d35,'accept',_0x509888);_0x177b32['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2afb2e=>{_0x4d23e0['model']['change'](_0x55db0c=>{const _0x4f85f7=Array['from'](_0xacdd55['getRanges']())['map'](_0x6d0d51=>_0x334b1a['fromRange'](_0x6d0d51));_0x55db0c['setSelection'](_0x2afb2e),_0x4d23e0['commands']['get']('mergeTableCells')['refresh'](),_0x4d23e0['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x234371=_0x4f85f7['filter'](_0x55c33e=>'$graveyard'!=_0x55c33e['root']['rootName']);_0x234371['length']>0x0&&_0x55db0c['setSelection'](_0x234371);for(const _0x4d15dd of _0x4f85f7)_0x4d15dd['detach']();});});for(const _0x416ee8 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x25b248=_0x4d23e0['commands']['get'](_0x416ee8);_0x25b248['on']('set:isEnabled',(_0x1d4fbd,_0x15a53f,_0x5bbcc6)=>{if(_0x5bbcc6){const _0x167d61=_0x4d23e0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x57038c=>_0x57038c['is']('element','tableCell'));this['_areMergableCells'](_0x25b248['value'],_0x167d61)||(_0x1d4fbd['return']=!0x1,_0x1d4fbd['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5563e2=this['editor']['commands']['get']('mergeTableCells'),_0x76bf74=this['editor']['plugins']['get']('TableUtils');if(!_0x5563e2['isEnabled'])return!0x1;const _0x15d747=_0x76bf74['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4893da of _0x15d747)for(const _0x5090b3 of _0x15d747)if(_0x4893da!=_0x5090b3&&!this['_areMergableCells'](_0x4893da,_0x5090b3))return!0x1;return!0x0;}['_areMergableCells'](_0x56398a,_0x1e1941){const _0x198147=this['editor']['plugins']['get']('TrackChangesEditing'),_0x366e03=this['editor']['model']['createRangeOn'](_0x56398a),_0x4b8182=this['editor']['model']['createRangeOn'](_0x1e1941),_0x1f5096=new Set(),_0x14090f=new Set();for(const _0x5d9647 of _0x198147['getSuggestions']())if(('insertion'==_0x5d9647['type']||'deletion'==_0x5d9647['type']||'mergeTableCells'==_0x5d9647['subType'])&&_0x5d9647['isInContent']){for(const _0x2f2159 of _0x5d9647['getRanges']())_0x2f2159['containsRange'](_0x366e03,!0x0)&&_0x1f5096['add'](_0x5d9647['type']+':'+_0x5d9647['author']['id']),_0x2f2159['containsRange'](_0x4b8182,!0x0)&&_0x14090f['add'](_0x5d9647['type']+':'+_0x5d9647['author']['id']);}if(_0x1f5096['size']!=_0x14090f['size'])return!0x1;for(const _0x43b290 of _0x1f5096)if(!_0x14090f['has'](_0x43b290))return!0x1;return!0x0;}}class Ct extends _0x559983{static get['requires'](){return[At];}['afterInit'](){const _0x41d2bd=this['editor'];if(!_0x41d2bd['plugins']['has']('TableEditing'))return;const _0xa516bf=_0x41d2bd['locale'],_0x517d6d=_0x41d2bd['plugins']['get']('TrackChangesEditing');_0x517d6d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x517d6d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x517d6d['registerBlockAttribute']('headingRows'),_0x517d6d['registerBlockAttribute']('headingColumns'),_0x517d6d['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0xa516bf,'FORMAT_HEADER_ROW')),_0x517d6d['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0xa516bf,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4219f2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f04f4=this['editor']['plugins']['get']('TableUtils'),_0x30f93c=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x2c8454({showActiveMarker:_0x3f7595=!0x0,setDataAttribute:_0x44ec8e=!0x0}={}){return(_0x44c853,_0x57105f,_0x53a227)=>{const {type:_0xe07dcf,id:_0x239b4b}=_0x4219f2['_splitMarkerName'](_0x57105f['markerName']),_0x3cf833=_0x4219f2['getSuggestion'](_0x239b4b),_0x4b165d=_0x3cf833['data'];if('formatBlock'!=_0x3cf833['type']||!_0x4b165d||'setTableColumnHeader'!=_0x4b165d['commandName'])return;if(_0x57105f['item'])return void _0x44c853['stop']();if(!_0x53a227['consumable']['consume'](_0x57105f['markerRange'],_0x44c853['name']))return;const _0x10c5b1=_0x57105f['markerRange']['start']['nodeAfter'],_0x15850c=_0x57105f['markerRange']['end']['nodeBefore'],_0x393338=_0x10c5b1['parent']['parent'],{column:_0x1f448b}=_0x1f04f4['getCellLocation'](_0x10c5b1),{column:_0x41a6e6}=_0x1f04f4['getCellLocation'](_0x15850c);for(let _0x53ebf6=_0x1f448b;_0x53ebf6<=_0x41a6e6;_0x53ebf6++){const _0x19c0d2=_0x1f04f4['createTableWalker'](_0x393338,{'column':_0x53ebf6,'includeAllSlots':!0x1});for(const _0x12380f of _0x19c0d2){const _0x1bd958=_0x12380f['cell'],_0x22eb24=_0x53a227['mapper']['toViewElement'](_0x1bd958);_0x53a227['writer']['addClass']('ck-suggestion-marker-'+_0xe07dcf,_0x22eb24),_0x44ec8e&&_0x53a227['writer']['setAttribute']('data-suggestion',_0x239b4b,_0x22eb24),_0x53a227['mapper']['bindElementToMarker'](_0x22eb24,_0x57105f['markerName']),_0x3f7595&&(_0x4219f2['activeMarkers']['includes'](_0x57105f['markerName'])?_0x53a227['writer']['addClass']('ck-suggestion-marker--active',_0x22eb24):_0x53a227['writer']['removeClass']('ck-suggestion-marker--active',_0x22eb24));}}};}_0x4219f2['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x30f93c),_0x4219f2['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x30f93c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2c8454(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xf298a2,_0x3d6c4f,_0x146195)=>{_0x146195['options']['showSuggestionHighlights']&&_0x2c8454({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xf298a2,_0x3d6c4f,_0x146195);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x266439,_0x1d8ba8,_0x81caf1)=>{const {type:_0xdf3783,id:_0x24602e}=_0x4219f2['_splitMarkerName'](_0x1d8ba8['markerName']),_0x12ff03=_0x4219f2['getSuggestion'](_0x24602e),_0x33cf9c=_0x12ff03['data'];if('formatBlock'!=_0x12ff03['type']||!_0x33cf9c||'setTableColumnHeader'!=_0x33cf9c['commandName'])return;const _0x4c9462=_0x81caf1['mapper']['markerNameToElements'](_0x1d8ba8['markerName']);if(_0x4c9462){for(const _0x316108 of _0x4c9462)_0x81caf1['writer']['removeClass']('ck-suggestion-marker-'+_0xdf3783,_0x316108),_0x81caf1['writer']['removeClass']('ck-suggestion-marker--active',_0x316108),_0x81caf1['writer']['removeAttribute']('data-suggestion',_0x316108),_0x81caf1['mapper']['unbindElementFromMarkerName'](_0x316108,_0x1d8ba8['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1528b7=this['editor'],_0x2615ad=_0x1528b7['locale'];function _0x260999(_0x267e12){return{'type':'format','content':o(_0x2615ad,'*Format:*\x20%0',_0x267e12)};}_0x1528b7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x212342=>{if('formatBlock'!=_0x212342['type'])return;const {data:_0x1ad803}=_0x212342;if(_0x1ad803){if('setTableRowHeader'==_0x1ad803['commandName']){const _0x1238f9=_0x1ad803['commandParams'][0x0]['forceValue'];return _0x260999(o(_0x2615ad,_0x1238f9?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1ad803['commandName']){const _0x35d242=_0x1ad803['commandParams'][0x0]['forceValue'];return _0x260999(o(_0x2615ad,_0x35d242?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x559983{['afterInit'](){const _0x4122cb=this['editor'],_0x2e6b0a=_0x4122cb['locale'],_0x175734=_0x4122cb['plugins']['get']('TrackChangesEditing');function _0x532b93(_0x278830){return{'type':'format','content':''+o(_0x2e6b0a,'*Set\x20table\x20type:*\x20%0',_0x278830)};}_0x4122cb['plugins']['has']('TableLayout')&&(_0x175734['enableCommand']('insertTableLayout'),_0x175734['enableDefaultAttributesIntegration']('tableType'),_0x175734['registerBlockAttribute']('tableType'),_0x175734['descriptionFactory']['registerElementLabel'](_0x1a0bd8=>_0x1a0bd8['is']('element','table')&&'layout'===_0x1a0bd8['getAttribute']('tableType'),_0x520501=>o(_0x2e6b0a,'ELEMENT_LAYOUT_TABLE',_0x520501)),_0x175734['descriptionFactory']['registerDescriptionCallback'](_0x353f3e=>{const {data:_0x47c894}=_0x353f3e;if(_0x47c894&&'tableType'==_0x47c894['key'])switch(_0x47c894['newValue']){case'layout':return _0x532b93(o(_0x2e6b0a,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x532b93(o(_0x2e6b0a,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Be['map'](_0x46e8e2=>[_0x46e8e2,null]));class Nt extends _0x559983{static get['requires'](){return[At];}['afterInit'](){const _0x2fd095=this['editor'];if(!_0x2fd095['plugins']['has']('TableClipboard'))return;const _0x136206=_0x2fd095['plugins']['get']('TrackChangesEditing'),_0x2e4b71=_0x2fd095['plugins']['get']('TableUtils'),_0x2579d0=_0x2fd095['plugins']['get'](At),_0xabbbb9=_0x2fd095['plugins']['get']('TableClipboard'),_0x365de2=_0x2fd095['plugins']['get']('TableSelection'),_0xc4156b=_0x2fd095['plugins']['get'](_0x9367c);_0x2579d0['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2fd095['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2fd095['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x46f3f4=null,_0x33f587=!0x1;_0xc4156b['on']('contentInsertion',(_0xbbbadd,_0x2ba014)=>{_0x33f587='paste'===_0x2ba014['method'];}),_0x2fd095['model']['on']('insertContent',(_0x37f7a8,_0x16456c)=>{if(!_0x33f587&&null===_0x365de2['getSelectedTableCells']())return;const [_0x4aad2d,_0x2a523b]=_0x16456c,_0x3655ae=_0x16456c[_0x16456c['length']-0x1];_0x3655ae&&_0x3655ae['forceDefaultExecution']||_0x136206['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2bd6ff,_0xd45e45,_0x13f739,_0x291b84,_0x2fed87){if(_0xd45e45&&!_0xd45e45['is']('documentSelection'))return!0x1;const _0x48a26d=_0x2fed87['getTableIfOnlyTableInContent'](_0x2bd6ff,_0x13f739);if(!_0x48a26d||!Ue(_0x48a26d,void 0x0,_0x291b84))return!0x1;const _0x5db761=_0x291b84['getSelectionAffectedTableCells'](_0x13f739['document']['selection']);if(!_0x5db761['length'])return!0x1;const _0x137a3f=_0x5db761[0x0]['findAncestor']('table'),_0x337a09=_0x291b84['getRowIndexes'](_0x5db761),_0x527912=_0x291b84['getColumnIndexes'](_0x5db761),_0x5102e1={'startRow':_0x337a09['first'],'endRow':_0x337a09['last'],'startColumn':_0x527912['first'],'endColumn':_0x527912['last']};return 0x1==_0x5db761['length']&&(_0x5102e1['endRow']+=_0x291b84['getRows'](_0x48a26d)-0x1,_0x5102e1['endColumn']+=_0x291b84['getColumns'](_0x48a26d)-0x1),Ue(_0x137a3f,_0x5102e1,_0x291b84);}(_0x4aad2d,_0x2a523b,_0x2fd095['model'],_0x2e4b71,_0xabbbb9)&&(_0x37f7a8['stop'](),_0x46f3f4={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2fd095['model']['change'](()=>{_0x2fd095['model']['insertContent'](_0x16456c[0x0],_0x16456c[0x1],_0x16456c[0x2],{'forceDefaultExecution':!0x0});const _0x580ddd=_0x20cf05(),{rowInsertionRanges:_0x34e858,columnInsertionRanges:_0x22aaf6,insertionRanges:_0x2b488b,deletionRanges:_0x306b2b,cells:_0x4b45a5}=_0x46f3f4;_0x34e858['length']&&_0x136206['markMultiRangeInsertion'](_0x34e858,'tablePasteRow',{'tablePasteChainId':_0x580ddd}),_0x22aaf6['length']&&_0x136206['markMultiRangeInsertion'](_0x22aaf6,'tablePasteColumn',{'tablePasteChainId':_0x580ddd}),_0x2b488b['length']&&(_0x136206['markMultiRangeInsertion'](_0x2b488b,'tablePaste',{'tablePasteChainId':_0x580ddd,'skipNestingCheck':!0x0}),_0x2b488b['forEach'](_0xd04a0c=>_0xd04a0c['detach']?.())),_0x306b2b['length']&&(_0x136206['markMultiRangeDeletion'](_0x306b2b,'tablePaste',{'tablePasteChainId':_0x580ddd,'skipNestingCheck':!0x0}),_0x306b2b['forEach'](_0x29f4ad=>_0x29f4ad['detach']?.()));const _0x4bf1f9=_0x136206['markMultiRangeBlockFormat'](_0x4b45a5['map'](({element:_0x466038})=>_0x466038),{'formatGroupId':_0x20cf05()},[],'tablePasteCell',{'tablePasteChainId':_0x580ddd});if(_0x4bf1f9){const _0x548b5b=_0x4bf1f9['getMarkers'](),_0x452c56=[];for(const {element:_0x52a98c,attributes:_0x248ffc}of _0x4b45a5){if(!_0x248ffc)continue;const _0x468370=_0x2fd095['model']['createRangeOn'](_0x52a98c),_0x52aca7=_0x548b5b['find'](_0x1e1a9c=>_0x1e1a9c['getRange']()['isEqual'](_0x468370));_0x52aca7&&_0x452c56['push']([_0x52aca7['name'],_0x248ffc]);}_0x452c56['length']&&_0x4bf1f9['setAttribute']('markerAttributes',Object['fromEntries'](_0x452c56));}_0x46f3f4=null;}));},{'priority':_0x3a0027['high']+0xa}),_0xc4156b['on']('contentInsertion',()=>{_0x33f587=!0x1;},{'priority':'lowest'}),_0x2fd095['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x44a354,_0x55a911)=>{const [_0x3dfa33,_0x72be0c,,_0x29b2fc]=_0x55a911;if(!_0x46f3f4)return;_0x44a354['stop']();const _0xbd090c=_0x3dfa33['cell'],_0x3cc856=_0x72be0c,_0x2d3e13=Oe(_0xbd090c),_0x2c9f21=Oe(_0x3cc856);_0x44a354['return']=_0xbd090c;let _0x436242=null,_0x23224c=null;if(_0x2c9f21||_0x2d3e13){if(_0x2d3e13&&!_0x2c9f21){_0x29b2fc['remove'](_0xbd090c['getChild'](0x0));for(const _0x128f75 of Array['from'](_0x3cc856['getChildren']()))_0x29b2fc['insert'](_0x128f75,_0xbd090c,'end');const _0x4333cc=_0x46f3f4['rowInsertionIndexes']['includes'](_0x3dfa33['row']),_0x14c64f=_0x46f3f4['columnInsertionIndexes']['includes'](_0x3dfa33['column']);_0x4333cc||_0x14c64f||(_0x436242=_0x334b1a['fromRange'](_0x29b2fc['createRangeIn'](_0xbd090c)));}else _0x2c9f21&&!_0x2d3e13&&(_0x23224c=_0x29b2fc['createRangeIn'](_0xbd090c));}else{const _0x2f166a=_0x29b2fc['createElement']('tableCellSuggestion'),_0x5cb6fb=_0x29b2fc['createElement']('tableCellSuggestion');_0x29b2fc['wrap'](_0x29b2fc['createRangeIn'](_0xbd090c),_0x5cb6fb),_0x29b2fc['insert'](_0x2f166a,_0xbd090c,0x0);for(const _0x20c617 of Array['from'](_0x3cc856['getChildren']()))_0x29b2fc['insert'](_0x20c617,_0x2f166a,'end');_0x436242=_0x334b1a['fromRange'](_0x29b2fc['createRangeOn'](_0x2f166a)),_0x23224c=_0x334b1a['fromRange'](_0x29b2fc['createRangeOn'](_0x5cb6fb));}const _0x38578=Array['from'](_0x3cc856['getAttributes']())['filter'](([_0x4da127])=>Be['includes'](_0x4da127));_0x46f3f4['cells']['push']({'element':_0xbd090c,'attributes':_0x38578['length']?Object['fromEntries'](_0x38578):null}),_0x436242&&_0x46f3f4['insertionRanges']['push'](_0x436242),_0x23224c&&_0x46f3f4['deletionRanges']['push'](_0x23224c);},{'priority':'high'}),_0x2e4b71['on']('insertColumns',(_0x2d6558,_0x43d45a)=>{const [_0x40af8f,_0x50cad3={}]=_0x43d45a;if(!_0x46f3f4)return;const _0x408bd2=_0x50cad3['at']||0x0,_0x2f08a2=_0x50cad3['columns']||0x1;_0x46f3f4['columnInsertionIndexes']=new Array(_0x2f08a2)['fill'](_0x408bd2)['map']((_0xcd6914,_0x3f7890)=>_0xcd6914+_0x3f7890);for(const {cell:_0xa7f81d}of _0x2e4b71['createTableWalker'](_0x40af8f,{'startColumn':_0x408bd2,'endColumn':_0x408bd2+_0x2f08a2-0x1}))_0x46f3f4['columnInsertionRanges']['push'](_0x2fd095['model']['createRangeOn'](_0xa7f81d));},{'priority':'low'}),_0x2e4b71['on']('insertRows',(_0x12d930,_0x51666d)=>{const [_0x547b3b,_0x1f3266={}]=_0x51666d;if(!_0x46f3f4)return;const _0x5bd135=_0x1f3266['at']||0x0,_0x5cbfce=_0x1f3266['rows']||0x1;_0x46f3f4['rowInsertionIndexes']=new Array(_0x5cbfce)['fill'](_0x5bd135)['map']((_0x54dccf,_0x3c1813)=>_0x54dccf+_0x3c1813);for(const {cell:_0x2c01a1}of _0x2e4b71['createTableWalker'](_0x547b3b,{'startRow':_0x5bd135,'endRow':_0x5bd135+_0x5cbfce-0x1}))_0x46f3f4['rowInsertionRanges']['push'](_0x2fd095['model']['createRangeOn'](_0x2c01a1));},{'priority':'low'}),_0x136206['descriptionFactory']['registerDescriptionCallback'](_0x20d28=>{if(_0x20d28['subType']&&_0x20d28['subType']['startsWith']('tablePaste'))return _0x20d28['previous']?{}:{'type':'insertion','content':o(_0x2fd095['locale'],'*Replace\x20table\x20cells*')};});const _0x576112=()=>!0x1;for(const _0xb97b60 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x136206['_suggestionFactory']['registerCustomCallback']('insertion',_0xb97b60,'join',_0x576112),_0x136206['_suggestionFactory']['registerCustomCallback']('deletion',_0xb97b60,'join',_0x576112),_0x136206['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xb97b60,'join',_0x576112);_0x136206['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x576112),_0x136206['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xd56cdc,_0x307754,_0x8ea4bc)=>{const _0x5054a8=_0xd56cdc['map'](_0x343faf=>_0x343faf['getContainedElement']())['filter'](_0x137530=>_0x137530),_0x4cc8ce=new Map(_0x5054a8['map'](_0x2856d2=>[_0x2856d2,null]));if(_0x46f3f4){for(const {element:_0x4edbfb,attributes:_0x1f424e}of _0x46f3f4['cells'])_0x1f424e&&_0x4cc8ce['set'](_0x4edbfb,_0x1f424e);}else{if(_0x8ea4bc&&_0x8ea4bc['markerAttributes'])for(const [_0x531073,_0x2e3e56]of Object['entries'](_0x8ea4bc['markerAttributes'])){const _0x39d44e=_0x2fd095['model']['markers']['get'](_0x531073),_0x91cbf=_0x39d44e?_0x39d44e['getRange']()['getContainedElement']():null;_0x91cbf&&_0x4cc8ce['set'](_0x91cbf,_0x2e3e56);}}_0x2fd095['model']['change'](_0x12e532=>{for(const [_0x4d6878,_0x694b04]of _0x4cc8ce)_0x12e532['setAttributes']({...xe,..._0x694b04},_0x4d6878);});});const _0x4516d8=(_0x3ca69d,_0x1a05ac)=>{_0x136206['_suggestionFactory']['registerCustomCallback'](_0x3ca69d,'tablePaste',_0x1a05ac,(_0x456ae6,_0x13a6fc,_0xfe318d)=>{_0x2fd095['model']['change'](_0x3a0c9b=>{const _0xc8bd93=[];for(const _0x19c8a7 of _0x456ae6){const _0xc7c95f=_0x19c8a7['start']['nodeAfter'];_0xc7c95f['is']('element','tableCellSuggestion')&&_0xc8bd93['push'](_0xc7c95f);}_0x136206['_suggestionFactory']['getSuggestionCallback'](_0x3ca69d,null,_0x1a05ac)(_0x456ae6,_0x13a6fc,_0xfe318d);for(const _0x470511 of _0xc8bd93)'$graveyard'!=_0x470511['root']['rootName']&&_0x3a0c9b['unwrap'](_0x470511);});});};_0x4516d8('insertion','accept'),_0x4516d8('insertion','discard'),_0x4516d8('deletion','accept'),_0x4516d8('deletion','discard'),_0x136206['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1c4872=>{const _0x16a4c5=_0x1c4872['map'](_0x127182=>_0x127182['getContainedElement']()),_0x4f86b1=_0x16a4c5[0x0]['findAncestor']('table'),{minRow:_0x80db34,maxRow:_0x59e938}=_0x2579d0['_getCoordsForCells'](_0x16a4c5);_0x2e4b71['removeRows'](_0x4f86b1,{'at':_0x80db34,'rows':_0x59e938-_0x80db34+0x1});}),_0x136206['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x17f49d=>{const _0x1145e7=_0x17f49d['map'](_0x419231=>_0x419231['getContainedElement']()),_0x50ef80=_0x1145e7[0x0]['findAncestor']('table'),{minColumn:_0x3c257b,maxColumn:_0x4098da}=_0x2579d0['_getCoordsForCells'](_0x1145e7);_0x2e4b71['removeColumns'](_0x50ef80,{'at':_0x3c257b,'columns':_0x4098da-_0x3c257b+0x1});});const _0xdefbca=(_0x10293a,_0xbb2d4b)=>{if(!_0xbb2d4b['subType']||!_0xbb2d4b['subType']['startsWith']('tablePaste'))return;const _0x3a9562=_0xbb2d4b['attributes']['tablePasteChainId'],_0x3e95ad=_0x136206['getSuggestions']()['filter'](_0x436a39=>_0x436a39['isInContent']&&_0x436a39['attributes']&&_0x436a39['attributes']['tablePasteChainId']==_0x3a9562);_0x3e95ad['length']&&_0xbb2d4b['getAllAdjacentSuggestions']()['length']!=_0x3e95ad['length']&&_0x3e95ad['reduce']((_0x49ba7a,_0xad23f4)=>(_0x49ba7a['next']=_0xad23f4,_0xad23f4['previous']=_0x49ba7a,_0xad23f4));};function _0x2408bb(_0x120e9f,_0x35ddef=!0x0){const {id:_0x57c808,authorId:_0x656252}=_0x136206['_splitMarkerName'](_0x120e9f['markerName']),_0x12b9cb=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4c44fd=_0x136206['activeMarkers']['includes'](_0x120e9f['markerName']);return _0x4c44fd&&_0x12b9cb['push']('ck-suggestion-marker--active'),{'classes':_0x12b9cb,'attributes':{'data-suggestion':_0x57c808,'data-author-id':_0x656252},'priority':_0x4c44fd&&_0x35ddef?0xbc2:0xbb8};}_0x136206['on']('suggestionLoaded',_0xdefbca,{'priority':'high'}),_0x136206['on']('suggestionUnloaded',_0xdefbca,{'priority':'high'}),_0x2fd095['model']['document']['registerPostFixer'](()=>{let _0x1b03c6=!0x1;const _0x1fb45b=Array['from'](_0x2fd095['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5cdd8d,data:_0x6336f5}of _0x1fb45b){const {group:_0x306072,type:_0x3a238b,id:_0x4b4a15}=_0x136206['_splitMarkerName'](_0x5cdd8d);if('suggestion'!=_0x306072||'deletion'!=_0x3a238b||_0x6336f5['oldRange'])continue;if(!_0x136206['hasSuggestion'](_0x4b4a15))continue;const _0x2a9e4c=_0x136206['getSuggestion'](_0x4b4a15)['getRanges'](),_0xd909f=_0x2fd095['plugins']['get']('Users')['me'];for(const _0x48200f of _0x136206['getSuggestions']()){if(!_0x48200f['isInContent']||_0x48200f['author']!=_0xd909f)continue;if('formatBlock'!=_0x48200f['type']||'tablePasteCell'!=_0x48200f['subType'])continue;if(_0x48200f['getRanges']()['every'](_0x18935b=>_0x2a9e4c['some'](_0xe9f921=>_0xe9f921['containsRange'](_0x18935b,!0x0)))){for(const _0xabdef9 of _0x48200f['getAllAdjacentSuggestions']())_0xabdef9['isInContent']&&(_0xabdef9['discard'](),_0x1b03c6=!0x0);}}}return _0x1b03c6;}),_0x2fd095['model']['document']['registerPostFixer'](_0x4d39ec=>{const _0x40f23f=_0x2fd095['commands']['get']('redo');if(!_0x40f23f||!_0x40f23f['_createdBatches']['has'](_0x4d39ec['batch']))return!0x1;let _0x17359f=!0x1;const _0x4c71ca=_0x2fd095['plugins']['get']('Users')['me'],_0x25f248=_0x2fd095['model']['document']['differ']['getChanges'](),_0x5245b5=Array['from'](_0x2fd095['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xbcb808,data:_0x473b75})=>{const {group:_0x4d70a1,subType:_0x3089c3,authorId:_0x2799e8}=_0x136206['_splitMarkerName'](_0xbcb808);return'suggestion'==_0x4d70a1&&'tablePaste'==_0x3089c3&&_0x2799e8==_0x4c71ca['id']&&!_0x473b75['oldRange'];});for(const _0x5a8110 of _0x25f248){if('insert'!=_0x5a8110['type']||'tableCellSuggestion'!=_0x5a8110['name']||0x1!=_0x5a8110['length'])continue;const _0x1b070c=_0x4d39ec['createRange'](_0x5a8110['position'],_0x5a8110['position']['getShiftedBy'](0x1));if(!_0x5245b5['find'](({data:_0xf92e0b})=>_0xf92e0b['newRange']['isEqual'](_0x1b070c))){for(const {name:_0x237510,data:_0xb3d601}of _0x5245b5)if(_0x1b070c['containsRange'](_0xb3d601['newRange'])){_0x4d39ec['updateMarker'](_0x237510,{'range':_0x1b070c}),_0x17359f=!0x0;break;}}}return _0x17359f;}),_0x2fd095['model']['document']['registerPostFixer'](_0x5dee4d=>{let _0x287a1f=!0x1;const _0x134f8d=_0x2fd095['plugins']['get']('Users')['me'],_0x4228b8=_0x136206['getSuggestions']()['filter'](_0x42bbb3=>_0x42bbb3['isInContent']&&_0x42bbb3['author']==_0x134f8d),_0x4ab2ca=new Set(),_0x5c726b=new Set();for(const _0x24c1e2 of _0x4228b8)if('tablePaste'==_0x24c1e2['subType'])for(const _0x31160b of _0x24c1e2['getMarkers']()){const _0x492950=_0x31160b['getRange']()['getContainedElement']();if(_0x492950){if(_0x492950['is']('element','tableCellSuggestion')&&Oe(_0x492950)){_0x24c1e2['removeMarker'](_0x31160b['name']),_0x4ab2ca['add'](_0x492950),_0x287a1f=!0x0;const _0x11a07f=_0x492950['nextSibling'],_0x2bc1e9=_0x492950['previousSibling'],_0x5a597c=_0x11a07f&&_0x11a07f['is']('element','tableCellSuggestion'),_0x327400=_0x2bc1e9&&_0x2bc1e9['is']('element','tableCellSuggestion');_0x5a597c&&!_0x4ab2ca['has'](_0x11a07f)&&_0x5c726b['add'](_0x11a07f),_0x327400&&!_0x4ab2ca['has'](_0x2bc1e9)&&_0x5c726b['add'](_0x2bc1e9);}else _0x492950['is']('element','paragraph')&&_0x492950['isEmpty']&&(_0x24c1e2['removeMarker'](_0x31160b['name']),_0x287a1f=!0x0);}}else{if('tablePasteCell'==_0x24c1e2['subType']){if(!_0x24c1e2['attributes']||!_0x24c1e2['attributes']['tablePasteChainId'])continue;const _0x5dd3ab=_0x24c1e2['attributes']['markerAttributes'];if(_0x5dd3ab&&Object['keys'](_0x5dd3ab)['length'])continue;const _0x4a7242=_0x24c1e2['attributes']['tablePasteChainId'];let _0x36d0b2=!0x0,_0x278efb=!0x0;for(const _0x133fcf of _0x4228b8)if(_0x133fcf['subType']&&_0x133fcf['subType']['startsWith']('tablePaste')){if(!_0x133fcf['attributes']['tablePasteChainId']){_0x278efb=!0x1;break;}if(_0x133fcf['id']!=_0x24c1e2['id']&&_0x133fcf['attributes']['tablePasteChainId']==_0x4a7242){_0x36d0b2=!0x1;break;}}_0x278efb&&_0x36d0b2&&(_0x24c1e2['removeMarkers'](),_0x287a1f=!0x0);}}for(const _0xaadaec of _0x4ab2ca)_0x5dee4d['remove'](_0xaadaec);for(const _0x4ceb99 of _0x5c726b)_0x5dee4d['unwrap'](_0x4ceb99);return _0x287a1f;}),_0x2fd095['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5e0cfe=>_0x2408bb(_0x5e0cfe),'converterPriority':'high'}),_0x2fd095['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2d0104,_0x46d9b8)=>_0x46d9b8['options']['showSuggestionHighlights']?_0x2408bb(_0x2d0104,!0x1):null,'converterPriority':'high'});const _0x2a1671=_0x2fd095['editing']['view'];this['listenTo'](_0x2a1671['document'],'clipboardOutput',(_0x1587ce,_0x5a0498)=>{const _0x105e47=[];for(const _0x541189 of _0x2a1671['createRangeIn'](_0x5a0498['content'])['getItems']())_0x541189['is']('element','suggestion-td')&&_0x105e47['push'](_0x541189);_0x2a1671['change'](_0x1cd808=>{for(const _0x37086a of _0x105e47)_0x1cd808['move'](_0x1cd808['createRangeIn'](_0x37086a),_0x1cd808['createPositionBefore'](_0x37086a)),_0x1cd808['remove'](_0x37086a);});});}}function Oe(_0x574ab9){if(_0x574ab9['isEmpty'])return!0x0;const _0x3a68c3=_0x574ab9['getChild'](0x0);return _0x3a68c3['is']('element','paragraph')&&_0x3a68c3['isEmpty'];}function Ue(_0x925738,_0x58783c={},_0x32117d){for(const {isAnchor:_0x4c7902,cellHeight:_0x304048,cellWidth:_0x2149ba}of _0x32117d['createTableWalker'](_0x925738,{'includeAllSlots':!0x0,..._0x58783c}))if(!_0x4c7902||0x1!=_0x304048||0x1!=_0x2149ba)return!0x1;return!0x0;}class Dt extends _0x559983{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x6c2116=this['editor']['plugins']['get']('TrackChangesEditing');_0x6c2116['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x6c2116['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x6c2116['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x6c2116['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x6c2116['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x6c2116['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x299a11,_0x4bdabe){const _0x1d46ee=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b9f23=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4cce2f=_0x4bdabe['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x216876=_0x2b9f23['getColumnGroupElement'](_0x4cce2f);let _0x4652d0=_0x216876?_0x2b9f23['getTableColumnsWidths'](_0x216876):null,_0x3867dd=_0x4cce2f['getAttribute']('tableWidth')||null;const _0x59b378=_0x4bdabe['tableWidth']||_0x3867dd,_0xd19d54=_0x4bdabe['columnWidths']||_0x4652d0,_0xa6d6fa=this['editor']['plugins']['get']('Users')['me'];for(const _0x358139 of _0x1d46ee['getSuggestions']()){const _0x490ce5=_0x358139['getContainedElement']();if('resizeTable'===_0x358139['subType']&&_0x490ce5===_0x4cce2f){_0x358139['author']!==_0xa6d6fa&&_0x358139['discard']();const _0x5bde8c=_0x358139['data']['commandParams'];_0x3867dd=_0x5bde8c[0x0]['tableWidth'],_0x4652d0=_0x5bde8c[0x0]['columnWidths'];break;}}_0x299a11({'table':_0x4cce2f,'tableWidth':_0x59b378,'columnWidths':_0xd19d54}),_0x1d46ee['markBlockFormat'](_0x4cce2f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3867dd,'columnWidths':_0x4652d0}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x6b7bda){if('formatBlock'!=_0x6b7bda['type']&&'formatInline'!=_0x6b7bda['type'])return;const {data:_0x2b0259}=_0x6b7bda;if(_0x2b0259&&'resizeTable'===_0x2b0259['formatGroupId']){const _0x49eee6='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x49eee6)};}}}class Mt extends _0x559983{['afterInit'](){const _0x433caf=this['editor'];_0x433caf['plugins']['has']('Template')&&_0x433caf['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x559983{['afterInit'](){const _0x374510=this['editor'];if(!_0x374510['commands']['get']('insertTableOfContents'))return;_0x374510['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x7bc32f=_0x374510['plugins']['get']('TrackChangesEditing'),_0x5cbf90=_0x374510['locale'];_0x7bc32f['descriptionFactory']['registerElementLabel']('tableOfContents',_0xfb58c2=>o(_0x5cbf90,'ELEMENT_TABLE_OF_CONTENTS',_0xfb58c2));}}class Bt extends _0x559983{['afterInit'](){const _0xe920c=this['editor'];if(!_0xe920c['plugins']['has']('Title'))return;const _0x419486=_0xe920c['plugins']['get']('TrackChangesEditing');_0x419486['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0xe920c['locale'],'ELEMENT_TITLE')),_0xe920c['model']['document']['registerPostFixer'](_0x4d77ac=>{let _0x4a20e8=!0x1;const _0x3e87b5=Array['from'](_0xe920c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3b6846,data:_0x1353af}of _0x3e87b5){const {group:_0x25d295}=_0x419486['_splitMarkerName'](_0x3b6846);if('suggestion'!==_0x25d295||!_0x1353af['newRange'])continue;const _0x150c8f=_0x1353af['newRange'],_0x323c1f=_0x150c8f['end']['nodeBefore'];if(!_0x323c1f||!_0x323c1f['is']('element','title-content'))continue;if(!_0x150c8f['start']['isTouching'](_0x150c8f['end']))continue;const _0x322c40=_0xe920c['model']['schema']['getNearestSelectionRange'](_0x150c8f['end'],'forward');if(_0x322c40&&_0x322c40['isCollapsed']){const _0x36f3a7=_0x4d77ac['createRange'](_0x150c8f['start'],_0x322c40['start']);_0x36f3a7['isEqual'](_0x150c8f)||(_0x4d77ac['updateMarker'](_0x3b6846,{'range':_0x36f3a7}),_0x4a20e8=!0x0);}_0x4a20e8||(_0x4d77ac['removeMarker'](_0x3b6846),_0x4a20e8=!0x0);}return _0x4a20e8;});}}class Tt extends _0x559983{['afterInit'](){const _0x3e5909=this['editor'],_0x23fac3=_0x3e5909['plugins']['get']('TrackChangesEditing');_0x3e5909['plugins']['has']('Uploadcare')&&(_0x23fac3['enableCommand']('uploadcare'),_0x3e5909['plugins']['has']('UploadcareImageEdit')&&(_0x23fac3['enableCommand']('uploadcareImageEdit'),_0x23fac3['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x23fac3['registerBlockAttribute']('uploadcareImageId'),_0x23fac3['descriptionFactory']['registerDescriptionCallback'](_0x275b86=>{if('attribute'!=_0x275b86['type'])return;const {data:_0x4bbd3e}=_0x275b86;return _0x4bbd3e&&'uploadcareImageId'==_0x4bbd3e['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x559983{['afterInit'](){const _0x1318d0=this['editor'],_0x2e4e9b=_0x1318d0['plugins']['get']('TrackChangesEditing');_0x1318d0['plugins']['has']('UndoEditing')&&(_0x2e4e9b['enableCommand']('undo'),_0x2e4e9b['enableCommand']('redo'));}}class Ot extends _0x559983{static get['requires'](){return[At];}['afterInit'](){const _0x2de04f=this['editor'];if(!_0x2de04f['plugins']['has']('TableCaptionEditing'))return;_0x2de04f['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x559983{['tableProperties'];['tableCellProperties'];constructor(_0x52d472){super(_0x52d472),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 _0x41f134=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xf3fce4 of this['tableProperties'])_0x41f134['enableCommand'](_0xf3fce4,(_0x44c4a0,_0x5a88b5)=>{const _0x462057=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xf3fce4,[_0x462057],this['tableProperties'],'tableProperties',_0x44c4a0,_0x5a88b5);});_0x41f134['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x41f134['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x41f134['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x44988b,_0x1aa11c)=>this['handleDiscardAction'](this['tableProperties'],_0x44988b,_0x1aa11c)),_0x41f134['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1f9fd9 of this['tableCellProperties'])_0x41f134['enableCommand'](_0x1f9fd9,(_0x5b842a,_0x407da2)=>{const _0x46d848=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1f9fd9,_0x46d848,this['tableCellProperties'],'tableCellProperties',_0x5b842a,_0x407da2);});_0x41f134['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x41f134['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x41f134['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5e02e0,_0x14f2f0)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5e02e0,_0x14f2f0)),_0x41f134['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x41f134['descriptionFactory']['registerDescriptionCallback'](_0x1ff34e=>this['handleSuggestionDescription'](_0x1ff34e)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x5b2e41,_0x4e4b49,_0x5ed8d7,_0xb6595f,_0x10bc50,_0x26d1e7){const _0x1e067b=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x26d1e7['batch'],()=>{for(const _0x5c102b of _0x4e4b49){if(this['_getSuggestion'](_0x5c102b,_0xb6595f))_0x10bc50(_0x26d1e7);else{const _0x2467e3={};for(const _0x14c385 of _0x5ed8d7){const _0x7cb274=_0x5c102b['getAttribute'](_0x14c385);void 0x0!==_0x7cb274&&(_0x2467e3[_0x14c385]=_0x7cb274);}_0x10bc50(_0x26d1e7),_0x1e067b['markBlockFormat'](_0x5c102b,{'commandParams':[_0x2467e3]},[],_0xb6595f);}}});}['handleDiscardAction'](_0x17ceab,_0x2b44d6,_0x14ad58){const _0x4c283d=_0x2b44d6[0x0]['start']['nodeAfter'],_0x15fea8=_0x14ad58['commandParams'][0x0];this['editor']['model']['change'](_0x708dd3=>{for(const _0x3f5e9c of _0x17ceab)void 0x0!==_0x15fea8[_0x3f5e9c]?_0x708dd3['setAttribute'](_0x3f5e9c,_0x15fea8[_0x3f5e9c],_0x4c283d):_0x708dd3['removeAttribute'](_0x3f5e9c,_0x4c283d);});}['handleSuggestionDescription'](_0x334bdb){if(_0x334bdb['data'])switch(_0x334bdb['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'](_0x10c081,_0x2ee6a5){const _0x243495=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x50516a of _0x243495['getSuggestions']({'skipNotAttached':!0x0})){const _0x489d1b=_0x50516a['getContainedElement']();if(_0x50516a['subType']===_0x2ee6a5&&_0x489d1b===_0x10c081)return _0x50516a;}return null;}['_registerTablePropertiesAttributes'](){const _0xab091a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x421d22=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x433b94 of _0x421d22){const _0x148ee3=_0x433b94['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0xab091a['registerBlockAttribute'](_0x433b94),_0xab091a['descriptionFactory']['registerAttributeLabel'](_0x433b94,o(this['editor']['locale'],'FORMAT_'+_0x148ee3));}}}class Rt extends _0x559983{['afterInit'](){const _0x157a82=this['editor'];if(!_0x157a82['plugins']['has']('LineHeight'))return;const _0x3a7db7=_0x157a82['plugins']['get']('TrackChangesEditing'),_0x52ef3c=_0x157a82['locale'];_0x3a7db7['enableDefaultAttributesIntegration']('lineHeight'),_0x3a7db7['registerBlockAttribute']('lineHeight'),_0x3a7db7['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x52ef3c,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x559983{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x597f1a,_0x5e448f,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,$t,Et,Mt,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4b062f){super(_0x4b062f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x300c5a,_0x2e449e,_0x2c44ef,_0x11ee52)=>{this['_model']['change'](()=>{for(const _0x4247a9 of[..._0x11ee52,..._0x2c44ef])this['_model']['markers']['has'](_0x4247a9)&&_0x4b062f['editing']['reconvertMarker'](_0x4247a9);});}),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']=_0x4b062f['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(),_0x4b062f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4b062f['config']['get']('trackChanges.trackFormatChanges'),_0x4b062f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4b062f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x4b062f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x23bca9=this['editor'],_0x56645c=(_0x4d7565,_0x114800)=>{if('attribute'!=_0x4d7565)return'ck-suggestion-marker-'+_0x4d7565;const _0xc82358=_0x114800['split']('|')[0x0];return this['_isBlockAttribute'](_0xc82358)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x23bca9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xf09776=>{const {id:_0x4b03eb,authorId:_0x734fae,type:_0x5a0539,subType:_0x4c8384}=this['_splitMarkerName'](_0xf09776['markerName']),_0x548817=['ck-suggestion-marker',_0x56645c(_0x5a0539,_0x4c8384)];let _0x7db6b5=0xbb8;return this['activeMarkers']['includes'](_0xf09776['markerName'])&&(_0x548817['push']('ck-suggestion-marker--active'),_0x7db6b5=0xbc2),'deletion'==_0x5a0539&&(_0x7db6b5+=0x5),{'classes':_0x548817,'attributes':{'data-suggestion':_0x4b03eb,'data-author-id':_0x734fae},'priority':_0x7db6b5};}}),_0x23bca9['conversion']['for']('dataDowncast')['add'](_0x4655c7=>{_0x4655c7['on']('addMarker:suggestion',(_0x47871c,_0x216b12,_0x1ece88)=>{if(!_0x1ece88['options']['showSuggestionHighlights'])return;const _0x33f679=_0x216b12['item'];if(!_0x33f679)return;const _0x3bb3da=_0x1ece88['mapper']['toViewElement'](_0x33f679);_0x23bca9['model']['schema']['isObject'](_0x33f679)&&_0x3bb3da&&!_0x3bb3da['getCustomProperty']('widget')&&_0x3bb3da['is']('containerElement')&&_0x1a071f(_0x3bb3da,_0x1ece88['writer']);},{'priority':'high'});}),_0x23bca9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x18c326,_0x182639)=>{if(!_0x182639['options']['showSuggestionHighlights'])return null;const {id:_0x2dee30,authorId:_0x59d738,type:_0xc22673,subType:_0x3e5245}=this['_splitMarkerName'](_0x18c326['markerName']);return{'classes':['ck-suggestion-marker',_0x56645c(_0xc22673,_0x3e5245)],'priority':0xbb8,'attributes':{'data-suggestion':_0x2dee30,'data-author-id':_0x59d738}};}});const _0x3b00ff=({showActiveMarkers:_0x3405bc=!0x0,isAttributeSuggestion:_0x5f44dc=!0x1}={})=>(_0x128766,_0x58a15c,_0x182d07)=>{if(!_0x58a15c['item'])return;const {id:_0x259d4d,authorId:_0x2e556c}=this['_splitMarkerName'](_0x58a15c['markerName']);if(_0x5f44dc){const _0xa88727=this['_suggestions']['get'](_0x259d4d),_0x12f7cb=this['_getAttributeKey'](_0xa88727);if(!this['_isBlockAttribute'](_0x12f7cb))return;}if(_0x58a15c['item']['is']('selection'))return void _0x182d07['consumable']['consume'](_0x58a15c['item'],_0x128766['name']);const _0x15e0bc=_0x182d07['mapper']['toViewElement'](_0x58a15c['item']);if(_0x58a15c['item']['is']('element')&&_0x23bca9['model']['schema']['isBlock'](_0x58a15c['item'])&&!_0x15e0bc['getCustomProperty']('addHighlight')){_0x182d07['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x15e0bc),_0x182d07['writer']['setAttribute']('data-suggestion',_0x259d4d,_0x15e0bc),_0x182d07['writer']['setAttribute']('data-author-id',_0x2e556c,_0x15e0bc),_0x182d07['mapper']['bindElementToMarker'](_0x15e0bc,_0x58a15c['markerName']),_0x3405bc&&(this['activeMarkers']['includes'](_0x58a15c['markerName'])?_0x182d07['writer']['addClass']('ck-suggestion-marker--active',_0x15e0bc):_0x182d07['writer']['removeClass']('ck-suggestion-marker--active',_0x15e0bc));for(const _0x513398 of _0x23bca9['model']['createRangeIn'](_0x58a15c['item'])['getItems']())_0x182d07['consumable']['consume'](_0x513398,_0x128766['name']);_0x182d07['consumable']['consume'](_0x58a15c['item'],_0x128766['name']);}};_0x23bca9['conversion']['for']('dataDowncast')['add'](_0x1fb4ec=>{_0x1fb4ec['on']('addMarker:suggestion:formatBlock',(_0x1ba42b,_0x23f210,_0x4220ac)=>{_0x4220ac['options']['showSuggestionHighlights']&&_0x3b00ff({'showActiveMarkers':!0x1})(_0x1ba42b,_0x23f210,_0x4220ac);},{'priority':'highest'});}),_0x23bca9['conversion']['for']('dataDowncast')['add'](_0x17be71=>{_0x17be71['on']('addMarker:suggestion:attribute',(_0x35f425,_0x5ed581,_0x343627)=>{_0x343627['options']['showSuggestionHighlights']&&_0x3b00ff({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x35f425,_0x5ed581,_0x343627);},{'priority':'highest'});}),_0x23bca9['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1e8250,_0x312fb6)=>{if(_0x312fb6['options']['showSuggestionHighlights']){const {id:_0x374d5f,authorId:_0x675006}=this['_splitMarkerName'](_0x1e8250);return _0x1e8250['includes'](':split')||_0x1e8250['includes'](':merge')?{'group':'suggestion','name':_0x1e8250['substr'](0xb),'attributes':{'data-suggestion':_0x374d5f,'data-author-id':_0x675006}}:null;}return{'group':'suggestion','name':_0x1e8250['substr'](0xb)};}}),_0x23bca9['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1ea570,{writer:_0x410278})=>{let _0xdf8d70='suggestion:'+_0x1ea570['getAttribute']('suggestion-type')+':'+_0x1ea570['getAttribute']('id');return _0x1ea570['getAttribute']('marker-count')&&(_0xdf8d70+=':'+_0x1ea570['getAttribute']('marker-count')),_0x410278['createElement']('$marker',{'data-name':_0xdf8d70});}}),_0x23bca9['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x23bca9['conversion']['for']('editingDowncast')['add'](_0x12daec=>{_0x12daec['on']('addMarker:suggestion:formatBlock',_0x3b00ff(),{'priority':'high'});}),_0x23bca9['conversion']['for']('editingDowncast')['add'](_0x4b5e53=>{_0x4b5e53['on']('addMarker:suggestion:attribute',_0x3b00ff({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x23bca9['conversion']['for']('editingDowncast')['add'](_0x4031a0=>{_0x4031a0['on']('removeMarker:suggestion:formatBlock',(_0x2d82ed,_0x34cfd5,_0x2eca93)=>{const _0x27b824=_0x2eca93['mapper']['markerNameToElements'](_0x34cfd5['markerName']);if(_0x27b824){for(const _0x3df03a of _0x27b824)_0x3df03a['getCustomProperty']('addHighlight')||(_0x2eca93['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3df03a),_0x2eca93['writer']['removeAttribute']('data-suggestion',_0x3df03a),_0x2eca93['writer']['removeAttribute']('data-author-id',_0x3df03a),_0x2eca93['mapper']['unbindElementFromMarkerName'](_0x3df03a,_0x34cfd5['markerName']));}},{'priority':'high'});}),_0x23bca9['conversion']['for']('editingDowncast')['add'](_0x26b909=>{_0x26b909['on']('removeMarker:suggestion:attribute',(_0x492e9d,_0x24e9a9,_0x8b826e)=>{const _0x55bcdd=_0x8b826e['mapper']['markerNameToElements'](_0x24e9a9['markerName']);if(!_0x55bcdd)return;const {id:_0x45d054}=this['_splitMarkerName'](_0x24e9a9['markerName']),_0x267cce=this['_suggestions']['get'](_0x45d054),_0x532881=this['_getAttributeKey'](_0x267cce);if(this['_isBlockAttribute'](_0x532881)){for(const _0x29ed9b of _0x55bcdd)_0x29ed9b['getCustomProperty']('addHighlight')||(_0x8b826e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x29ed9b),_0x8b826e['writer']['removeAttribute']('data-suggestion',_0x29ed9b),_0x8b826e['writer']['removeAttribute']('data-author-id',_0x29ed9b),_0x8b826e['mapper']['unbindElementFromMarkerName'](_0x29ed9b,_0x24e9a9['markerName']));}},{'priority':'high'});}),_0x23bca9['model']['document']['registerPostFixer'](_0x4ba6c0=>{let _0xd61779=!0x1;const _0x4fbcab=Array['from'](_0x23bca9['model']['document']['differ']['getChangedMarkers']()),_0x45faa4=new Set();for(const {name:_0x5ee20f,data:_0x303cc9}of _0x4fbcab){const {group:_0x43123c,type:_0x109ac6,subType:_0x4cf9ff,id:_0x55bb09}=this['_splitMarkerName'](_0x5ee20f);if('suggestion'!==_0x43123c)continue;const _0x53d43c=this['_suggestions']['get'](_0x55bb09);if(null!=_0x303cc9['newRange']){'formatInline'==_0x109ac6&&(_0xd61779=_0xd61779||Gt(_0x303cc9['newRange'],_0x5ee20f,_0x4ba6c0,_0x23bca9['model']['schema']));const _0x4a4692='attribute'==_0x109ac6&&this['_isBlockAttribute'](_0x4cf9ff['split']('|')[0x0]);if(_0x303cc9['newRange']['isCollapsed']||'$graveyard'==_0x303cc9['newRange']['root']['rootName']||'formatBlock'==_0x109ac6&&!Jt(_0x303cc9['newRange'])||_0x4a4692&&!Jt(_0x303cc9['newRange'])||'deletion'==_0x109ac6&&!Kt(_0x303cc9['newRange']))_0x4ba6c0['removeMarker'](_0x5ee20f),_0xd61779=!0x0;else{if(!_0x53d43c||!_0x53d43c['isInContent'])continue;if(_0x303cc9['newRange']&&_0x303cc9['oldRange']&&_0x303cc9['newRange']['isEqual'](_0x303cc9['oldRange']))continue;_0x45faa4['add'](_0x53d43c);}}}return _0x45faa4['size']>0x0&&(_0xd61779=!!this['_joinWithAdjacentSuggestions'](_0x45faa4)||_0xd61779),_0xd61779;}),_0x23bca9['model']['document']['registerPostFixer'](_0x101241=>{let _0x30b477=!0x1;for(const _0x77bfc8 of _0x23bca9['model']['document']['differ']['getChanges']())if('insert'==_0x77bfc8['type'])for(const _0x36dfe5 of this['_suggestions']['values']()){if(_0x36dfe5['isMultiRange']||!_0x36dfe5['isInContent'])continue;const _0x50f72b='formatBlock'==_0x36dfe5['type'],_0x4618b8=this['_getAttributeKey'](_0x36dfe5),_0x2f0c33=_0x4618b8&&this['_isBlockAttribute'](_0x4618b8);if(!_0x50f72b&&!_0x2f0c33)continue;const _0x124d1d=_0x36dfe5['getFirstRange']();if(_0x124d1d['start']['parent']!=_0x124d1d['end']['parent']&&!_0x124d1d['end']['isAtEnd']){const _0x4e1821=_0x23bca9['model']['createPositionAt'](_0x124d1d['start']['nodeAfter'],'end'),_0x2f90a9=_0x23bca9['model']['createRange'](_0x124d1d['start'],_0x4e1821);_0x101241['updateMarker'](_0x36dfe5['getFirstMarker'](),{'range':_0x2f90a9}),_0x30b477=!0x0;}}return _0x30b477;}),_0x23bca9['model']['document']['registerPostFixer'](_0x7f28d3=>this['_processAttributeChanges'](_0x7f28d3)),_0x23bca9['model']['document']['registerPostFixer'](_0x15fb5c=>!_0x15fb5c['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x15fb5c)),_0x23bca9['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x23bca9['model']['document']['on']('change:data',(_0x838a48,_0x474892)=>{if(!_0x474892['isLocal']||_0x474892['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x455f18=_0x23bca9['model']['document']['differ']['getChanges']();if(0x0==_0x455f18['length'])return;const _0x115431=[],_0x5292e2=_0x455f18['filter'](_0x30bf65=>'attribute'==_0x30bf65['type']),_0x5e7f2a=_0x455f18['filter'](_0x1002b2=>'insert'==_0x1002b2['type']&&'$text'!=_0x1002b2['name']);for(const _0x5996bc of _0x5292e2)this['_isRegisteredAttribute'](_0x5996bc['attributeKey'])&&_0x115431['push']({'key':_0x5996bc['attributeKey'],'newValue':_0x5996bc['attributeNewValue'],'oldValue':_0x5996bc['attributeOldValue'],'range':Ht(_0x5996bc['range'],_0x23bca9['model'])});for(const _0x15ec31 of _0x5e7f2a){if('rename'!=_0x15ec31['action']&&'refresh'!=_0x15ec31['action'])continue;const _0x2da076=qt(_0x15ec31['position']['nodeAfter'],_0x23bca9['model']),_0x4f6316=_0x15ec31['before'];'rename'==_0x15ec31['action']&&_0x115431['push']({'key':m,'newValue':_0x15ec31['name'],'oldValue':_0x4f6316['name'],'range':_0x2da076});for(const [_0x29d76b,_0xc451ef]of _0x4f6316['attributes']){if(!this['_isRegisteredAttribute'](_0x29d76b))continue;const _0x84277b=_0x15ec31['attributes']['get'](_0x29d76b);_0xc451ef!==_0x84277b&&_0x115431['push']({'key':_0x29d76b,'newValue':_0x84277b,'oldValue':_0xc451ef,'range':_0x2da076});}for(const [_0x4fb0b1,_0xc1111f]of _0x15ec31['attributes'])this['_isRegisteredAttribute'](_0x4fb0b1)&&(_0x4f6316['attributes']['has'](_0x4fb0b1)||_0x115431['push']({'key':_0x4fb0b1,'newValue':_0xc1111f,'oldValue':null,'range':_0x2da076}));}0x0!=_0x115431['length']&&_0x23bca9['model']['enqueueChange'](_0x474892,_0x16c7bd=>{const _0x339dd1=_0x20cf05();for(const {range:_0x4cd2b9,key:_0x33f81c,oldValue:_0x4b8d4f,newValue:_0x462c39}of _0x115431)this['markAttributeChange'](_0x4cd2b9,_0x33f81c,_0x4b8d4f,_0x462c39,{'groupId':_0x339dd1});this['_reduceExistingSuggestions'](_0x16c7bd,_0x115431);});},{'priority':'lowest'}),_0x23bca9['model']['markers']['on']('update:suggestion',(_0x3bb1d6,_0x446720,_0x4c7e46)=>{if(null==_0x4c7e46){const {id:_0x200c93}=this['_splitMarkerName'](_0x446720['name']),_0x27e5de=this['_suggestions']['get'](_0x200c93);_0x27e5de&&_0x27e5de['addMarkerName'](_0x446720['name']);}}),_0x23bca9['model']['document']['on']('change:data',()=>{const _0x51e784=Array['from'](_0x23bca9['model']['document']['differ']['getChangedMarkers']())['filter'](_0x46ec89=>'suggestion'===this['_splitMarkerName'](_0x46ec89['name'])['group']);if(0x0===_0x51e784['length'])return;_0x51e784['sort']((_0x1f845b,_0x2379a9)=>{const _0xb3271=_0x1f845b['data']['oldRange'],_0x1251dd=_0x2379a9['data']['oldRange'];return null===_0xb3271&&null===_0x1251dd?0x0:null===_0xb3271&&null!==_0x1251dd?-0x1:null!==_0xb3271&&null===_0x1251dd?0x1:_0xb3271['start']['isBefore'](_0x1251dd['start'])?-0x1:0x1;});const _0x14b2f8=new Set(),_0x560b69=new Set();for(const {name:_0x2993c4,data:_0x487dec}of _0x51e784){const {id:_0x3d09f8}=this['_splitMarkerName'](_0x2993c4);if(null===_0x487dec['oldRange']){const _0x69a6dd=this['_handleNewSuggestionMarker'](_0x2993c4);_0x560b69['add'](_0x69a6dd);}else{const _0x55db7e=this['_suggestions']['get'](_0x3d09f8);null!==_0x487dec['newRange']||_0x55db7e['isInContent']?(_0x14b2f8['add'](_0x55db7e['head']),_0x560b69['add'](_0x55db7e)):this['_removeSuggestion'](_0x55db7e);}}_0x560b69['size']>0x0&&this['_refreshSuggestionsChain'](_0x560b69);for(const _0x59587b of _0x14b2f8)this['fire']('suggestionChanged',_0x59587b);}),_0x23bca9['model']['on']('applyOperation',(_0x35a964,_0x56cb30)=>{const _0x38d2e2=_0x56cb30[0x0];if(!this['_suggestions']['size'])return;if(!_0x38d2e2['isDocumentOperation'])return;if(_0x38d2e2['batch']['isUndo']||!_0x38d2e2['batch']['isLocal'])return;let _0x490ad9,_0x4d06db;switch(_0x38d2e2['type']){case'insert':_0x490ad9=_0x23bca9['model']['createPositionAt'](_0x38d2e2['position']),_0x4d06db=_0x490ad9['getShiftedBy'](_0x38d2e2['howMany']);break;case'split':_0x490ad9=_0x23bca9['model']['createPositionAt'](_0x38d2e2['splitPosition']),_0x4d06db=_0x23bca9['model']['createPositionAt'](_0x38d2e2['moveTargetPosition']);break;case'move':_0x490ad9=_0x23bca9['model']['createPositionAt'](_0x38d2e2['targetPosition']),_0x4d06db=_0x490ad9['getShiftedBy'](_0x38d2e2['howMany']);break;default:return;}const _0x5e2848=_0x23bca9['model']['createRange'](_0x490ad9,_0x4d06db);_0x23bca9['model']['change'](()=>{for(const {suggestion:_0x19947f,meta:_0x17e615}of this['_findSuggestions'](_0x5e2848)){if(_0x19947f['isMultiRange'])continue;if('formatInline'==_0x19947f['type'])continue;const _0x3f34ff=this['_getAttributeKey'](_0x19947f);if(_0x3f34ff&&this['_isBlockAttribute'](_0x3f34ff)&&'split'!=_0x38d2e2['type'])continue;const _0x54aa49=_0x19947f['data']&&_0x19947f['data']['multipleBlocks'];('formatBlock'!=_0x19947f['type']||'split'==_0x38d2e2['type']&&!_0x54aa49)&&(_0x17e615['containsRangeInObject']||'insertion'==_0x19947f['type']&&_0x17e615['isOwn']||_0x19947f['getFirstRange']()['containsRange'](_0x5e2848)&&this['_breakSuggestionMarker'](_0x19947f,_0x490ad9,_0x4d06db));}});},{'priority':'lowest'}),_0x23bca9['model']['on']('deleteContent',(_0x58fc64,_0x492cf2)=>{const _0x3b4c3a=_0x492cf2[0x0],_0x29f5d6=_0x492cf2[0x1];if(_0x29f5d6&&_0x29f5d6['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3b4c3a['isCollapsed'])return;const _0x264b8b=_0x23bca9['model']['schema'],{start:_0x42ed71,end:_0x86923b}=_0x3b4c3a['getFirstRange'](),_0x24535e=_0x42ed71['nodeAfter']&&_0x264b8b['isLimit'](_0x42ed71['nodeAfter'])?null:_0x264b8b['getNearestSelectionRange'](_0x42ed71,'forward'),_0x912057=_0x86923b['nodeBefore']&&_0x264b8b['isLimit'](_0x86923b['nodeBefore'])?null:_0x264b8b['getNearestSelectionRange'](_0x86923b,'backward'),_0x1fb918=_0x23bca9['model']['createRange'](_0x24535e?_0x24535e['start']:_0x42ed71,_0x912057?_0x912057['end']:_0x86923b);_0x23bca9['model']['change'](_0x2d7843=>{this['markDeletion'](_0x1fb918);const _0x335305=_0x23bca9['model']['schema']['getNearestSelectionRange'](_0x1fb918['start']);_0x3b4c3a['is']('documentSelection')?_0x2d7843['setSelection'](_0x335305):_0x3b4c3a['setTo'](_0x335305);}),_0x58fc64['stop']();},{'priority':_0x3a0027['normal']+0xa}),_0x23bca9['model']['on']('insertContent',(_0x2f18c3,_0x4d1122)=>{const _0x59e4c6=_0x4d1122[_0x4d1122['length']-0x1];_0x59e4c6&&_0x59e4c6['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x23bca9['model']['change'](()=>{let _0xfda2b7=_0x23bca9['model']['insertContent'](_0x4d1122[0x0],_0x4d1122[0x1],_0x4d1122[0x2],{'forceDefaultExecution':!0x0});if(!_0xfda2b7)return;_0x2f18c3['return']=_0xfda2b7['clone']();const _0x35ad52=_0xfda2b7['end']['nodeBefore'],_0x46fef5=_0x23bca9['model']['schema'];_0x35ad52&&_0x46fef5['isBlock'](_0x35ad52)&&!_0x46fef5['isObject'](_0x35ad52)&&(_0xfda2b7=_0x23bca9['model']['createRange'](_0xfda2b7['start'],_0x23bca9['model']['createPositionAt'](_0x35ad52,'end'))),this['markInsertion'](_0xfda2b7);}),_0x2f18c3['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x14ced0=new D(_0x23bca9,this['_suggestions']);_0x23bca9['commands']['add']('acceptSuggestion',_0x14ced0),this['enableCommand']('acceptSuggestion');const _0x284cac=new M(_0x23bca9,this['_suggestions']);_0x23bca9['commands']['add']('discardSuggestion',_0x284cac),this['enableCommand']('discardSuggestion'),_0x23bca9['commands']['add']('acceptAllSuggestions',new $(_0x23bca9,_0x14ced0,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x23bca9['commands']['add']('discardAllSuggestions',new $(_0x23bca9,_0x284cac,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x23bca9['commands']['add']('acceptSelectedSuggestions',new B(_0x23bca9,_0x14ced0,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x23bca9['commands']['add']('discardSelectedSuggestions',new B(_0x23bca9,_0x284cac,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x320370=_0x23bca9['plugins']['get']('CommentsRepository');this['listenTo'](_0x320370,'addComment',(_0x118770,{threadId:_0x51bf3a})=>{const _0x49a7fc=this['_suggestions']['get'](_0x51bf3a);_0x49a7fc&&_0x49a7fc['commentThread']&&0x1===_0x49a7fc['commentThread']['length']&&this['_updateSuggestionData'](_0x51bf3a,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x320370,'removeComment',(_0x1a9bc4,{threadId:_0x4ae482})=>{const _0x4d806b=this['_suggestions']['get'](_0x4ae482);_0x4d806b&&_0x4d806b['commentThread']&&!_0x4d806b['commentThread']['length']&&this['_updateSuggestionData'](_0x4ae482,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1b9b0d){const _0x4f5590=_0x24c341([0x6c,0x79,0x4b,0x6b,0x32,0x58,0x75,0x74,0x78,0x55,0x61,0x53,0x33,0x6d,0x35,0x38,0x5a,0x41,0x64,0x4f,0x45,0x4a,0x50,0x36,0x69,0x65,0x6f,0x59,0x42,0x66,0x57,0x76,0x39,0x31,0x56,0x49,0x30,0x70,0x48,0x34,0x72,0x7a,0x6e,0x4d,0x68,0x52,0x77,0x67,0x62,0x6a,0x37,0x73,0x46,0x54,0x63,0x43,0x71,0x51,0x47,0x4c,0x4e,0x44]),_0x5dbf5b=0x59bb6ff8,_0x55432d=0x59bc0330^_0x5dbf5b,_0x58ce10=window[_0x24c341([0x44,0x61,0x74,0x65])][_0x24c341([0x6e,0x6f,0x77])](),_0x3b6ec9=_0x1b9b0d[_0x24c341([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x15aba8=new window[(_0x24c341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1527fe=>{_0x3b6ec9[_0x24c341([0x6f,0x6e,0x63,0x65])](_0x24c341([0x72,0x65,0x61,0x64,0x79]),_0x1527fe);}),_0x160b80={[_0x24c341([0x6b,0x74,0x79])]:_0x24c341([0x45,0x43]),[_0x24c341([0x75,0x73,0x65])]:_0x24c341([0x73,0x69,0x67]),[_0x24c341([0x63,0x72,0x76])]:_0x24c341([0x50,0x2d,0x32,0x35,0x36]),[_0x24c341([0x78])]:_0x24c341([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]),[_0x24c341([0x79])]:_0x24c341([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]),[_0x24c341([0x61,0x6c,0x67])]:_0x24c341([0x45,0x53,0x32,0x35,0x36])},_0x135718=_0x3b6ec9[_0x24c341([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x24c341([0x67,0x65,0x74])](_0x24c341([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3a2cad(){let _0x437eba,_0x3eef64=null,_0x111617=null;try{if(_0x135718==_0x24c341([0x47,0x50,0x4c]))return _0x24c341([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x437eba=_0x5d0ce2(),!_0x437eba)return _0x24c341([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x437eba[_0x24c341([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x111617=_0x197b1a(_0x437eba[_0x24c341([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x437eba[_0x24c341([0x6a,0x74,0x69])])),await _0x770d51()?_0x456959()?_0x574a8c()?_0x24c341([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xac9589()?(_0x437eba[_0x24c341([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x24c341([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3eef64=_0x34a973(_0x24c341([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x437eba[_0x24c341([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x24c341([0x74,0x72,0x69,0x61,0x6c])&&(_0x3eef64=_0x34a973(_0x24c341([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x304eec()):_0x24c341([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x24c341([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x24c341([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x24c341([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x574a8c(){const _0x5efd7a=[_0x24c341([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x24c341([0x74,0x72,0x69,0x61,0x6c])][_0x24c341([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x437eba[_0x24c341([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x58ce10/0x3e8:0xe10*_0x55432d;return _0x437eba[_0x24c341([0x65,0x78,0x70])]<_0x5efd7a;}function _0x456959(){const _0x29f04a=_0x437eba[_0x24c341([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x29f04a)return!0x1;if(_0x29f04a[_0x24c341([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24c341([0x2a])))return!0x0;if(_0x29f04a[_0x24c341([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24c341([0x54,0x43])))return!0x0;if(_0x29f04a[_0x24c341([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24c341([0x52,0x54,0x43]))){if(_0x39bb6f())return!0x0;if(_0x28fc5f()||_0x4420d4())return!0x0;}return!0x1;}function _0xac9589(){const _0x4abc13=_0x437eba[_0x24c341([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4abc13||0x0==_0x4abc13[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x399d7f}=new URL(window[_0x24c341([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4abc13[_0x24c341([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x399d7f))return!0x0;const _0x3d186a=_0x399d7f[_0x24c341([0x73,0x70,0x6c,0x69,0x74])](_0x24c341([0x2e]));return _0x4abc13[_0x24c341([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x26b84f=>_0x26b84f[_0x24c341([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24c341([0x2a])))[_0x24c341([0x6d,0x61,0x70])](_0x3f8220=>_0x3f8220[_0x24c341([0x73,0x70,0x6c,0x69,0x74])](_0x24c341([0x2e])))[_0x24c341([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e5b8d=>_0x1e5b8d[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3d186a[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x24c341([0x6d,0x61,0x70])](_0x59cff1=>Array(_0x3d186a[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x59cff1[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x24c341([0x66,0x69,0x6c,0x6c])](_0x59cff1[0x0]===_0x24c341([0x2a])?_0x24c341([0x2a]):'')[_0x24c341([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x59cff1))[_0x24c341([0x73,0x6f,0x6d,0x65])](_0x222a18=>_0x3d186a[_0x24c341([0x65,0x76,0x65,0x72,0x79])]((_0x188dac,_0x32310)=>_0x222a18[_0x32310]===_0x188dac||_0x222a18[_0x32310]===_0x24c341([0x2a])));}function _0x304eec(){return _0x3eef64&&_0x111617?new window[(_0x24c341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x428bd8,_0x440a5f)=>{_0x3eef64[_0x24c341([0x74,0x68,0x65,0x6e])](_0x428bd8,_0x440a5f),_0x111617[_0x24c341([0x74,0x68,0x65,0x6e])](_0x42f73f=>{_0x42f73f!=_0x24c341([0x56,0x61,0x6c,0x69,0x64])&&_0x428bd8(_0x42f73f);},_0x440a5f);}):_0x3eef64||_0x111617||_0x24c341([0x56,0x61,0x6c,0x69,0x64]);}}function _0x197b1a(_0x4d5242,_0x212910){return new window[(_0x24c341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2548e7=>{if(_0x385652())return _0x2548e7(_0x24c341([0x56,0x61,0x6c,0x69,0x64]));_0x4b2144(),_0x3b6ec9[_0x24c341([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x24c341([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x284aaa=!0x1;const _0x36f1b7=_0x20cf05();function _0x816ede(_0x3c64f0){return!!_0x3c64f0&&(typeof _0x3c64f0===_0x24c341([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3c64f0===_0x24c341([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3c64f0[_0x24c341([0x74,0x68,0x65,0x6e])]===_0x24c341([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3c64f0[_0x24c341([0x63,0x61,0x74,0x63,0x68])]===_0x24c341([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x57a2b1(_0x30a75e){_0x497ff5(_0x30a75e)[_0x24c341([0x74,0x68,0x65,0x6e])](_0x56f46c=>{if(!_0x56f46c||_0x56f46c[_0x24c341([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x24c341([0x6f,0x6b]))return _0x24c341([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x50cf3b(_0x4e569b(_0x36f1b7+_0x212910))!=_0x56f46c[_0x24c341([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x24c341([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x24c341([0x56,0x61,0x6c,0x69,0x64]);})[_0x24c341([0x74,0x68,0x65,0x6e])](_0x3c6bce=>(_0x1b0923(),_0x3c6bce),()=>{const _0x238a8c=_0x55dda7();return null==_0x238a8c?(_0x1b0923(),_0x24c341([0x56,0x61,0x6c,0x69,0x64])):_0x24c341(_0x58ce10-_0x238a8c>(0x7db7ebf8^_0x5dbf5b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x24c341([0x74,0x68,0x65,0x6e])](_0x2548e7)[_0x24c341([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2548e7(_0x24c341([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3949f2=0x598d8178^_0x5dbf5b;function _0x1b0923(){const _0x403bb0=_0x24c341([0x6c,0x6c,0x63,0x74,0x2d])+_0x50cf3b(_0x4e569b(_0x4d5242)),_0x1516e=_0x1e5e12(_0x50cf3b(window[_0x24c341([0x4d,0x61,0x74,0x68])][_0x24c341([0x63,0x65,0x69,0x6c])](_0x58ce10/_0x3949f2)));window[_0x24c341([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x24c341([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x403bb0,_0x1516e);}function _0x55dda7(){const _0x214e6e=_0x24c341([0x6c,0x6c,0x63,0x74,0x2d])+_0x50cf3b(_0x4e569b(_0x4d5242)),_0xe5eb1d=window[_0x24c341([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x24c341([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x214e6e);return _0xe5eb1d?window[_0x24c341([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e5e12(_0xe5eb1d),0x10)*_0x3949f2:null;}function _0x497ff5(_0x33cffd){return new window[(_0x24c341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x33c0ee,_0x220719)=>{_0x33cffd[_0x24c341([0x74,0x68,0x65,0x6e])](_0x33c0ee,_0x220719),window[_0x24c341([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x220719,0x59babb38^_0x5dbf5b);});}}_0x3b6ec9[_0x24c341([0x6f,0x6e])](_0x24c341([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x159182,_0x247d76)=>{if(_0x247d76[0x0]!=_0x4d5242)return _0x2548e7(_0x24c341([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x247d76[0x1]={..._0x247d76[0x1],[_0x24c341([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x36f1b7};},{[_0x24c341([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x24c341([0x68,0x69,0x67,0x68])}),_0x3b6ec9[_0x24c341([0x6f,0x6e])](_0x24c341([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x124ea6=>{_0x816ede(_0x124ea6[_0x24c341([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x284aaa=!0x0,_0x57a2b1(_0x124ea6[_0x24c341([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x24c341([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x24c341([0x6c,0x6f,0x77])}),_0x15aba8[_0x24c341([0x74,0x68,0x65,0x6e])](()=>{_0x284aaa||_0x2548e7(_0x24c341([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x385652(){return _0x3b6ec9[_0x24c341([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x24c341([0x76,0x69,0x65,0x77])][_0x24c341([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x24c341([0x61,0x75,0x74,0x6f]);}function _0x4b2144(){_0x3b6ec9[_0x24c341([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x24c341([0x76,0x69,0x65,0x77])][_0x24c341([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x24c341([0x61,0x75,0x74,0x6f]);}}function _0x34a973(_0x408ec9){const _0x583ec6=[new window[(_0x24c341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f5d71=>setTimeout(_0x2f5d71,0x59b25134^_0x5dbf5b)),_0x15aba8[_0x24c341([0x74,0x68,0x65,0x6e])](()=>new window[(_0x24c341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23ec0b=>{let _0x35c87f=0x0;_0x3b6ec9[_0x24c341([0x6d,0x6f,0x64,0x65,0x6c])][_0x24c341([0x6f,0x6e])](_0x24c341([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x119f98,_0x2d079f)=>{_0x2d079f[0x0][_0x24c341([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x35c87f++,_0x35c87f==(0x59bb6e00^_0x5dbf5b)&&(_0x23ec0b(),_0x119f98[_0x24c341([0x6f,0x66,0x66])]());});}))];return window[_0x24c341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x24c341([0x72,0x61,0x63,0x65])](_0x583ec6)[_0x24c341([0x74,0x68,0x65,0x6e])](()=>_0x408ec9);}async function _0x1a6564(){await _0x15aba8,_0x3b6ec9[_0x24c341([0x6d,0x6f,0x64,0x65,0x6c])][_0x24c341([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x378e18,_0x3b6ec9[_0x24c341([0x6d,0x6f,0x64,0x65,0x6c])][_0x24c341([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x378e18,_0x3b6ec9[_0x24c341([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x24c341([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x39bb6f(){return _0x5edec2(_0x24c341([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1090ef(_0x24c341([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x24c341([0x73,0x74,0x61,0x74,0x65])]==_0x24c341([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x28fc5f(){return _0x5edec2(_0x24c341([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 _0x4420d4(){return _0x5edec2(_0x24c341([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x51f8ff(_0xd7fb4b){const _0x227a73=_0x40ec2b();_0x3b6ec9[_0x227a73]=_0x24c341([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xd7fb4b,_0xd7fb4b!=_0x24c341([0x56,0x61,0x6c,0x69,0x64])&&_0x1a6564();}function _0x40ec2b(){const _0x1ccede=window[_0x24c341([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x24c341([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x24c341([0x6e,0x6f,0x77])]())[_0x24c341([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x24c341([0x2e]),'');let _0x1c8d76=_0x24c341([0x6c]);for(let _0x5e1575=0x0;_0x5e1575<_0x1ccede[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5e1575+=0x2){let _0x451738=window[_0x24c341([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ccede[_0x24c341([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e1575,_0x5e1575+0x2));_0x451738>=_0x4f5590[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x451738-=_0x4f5590[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1c8d76+=_0x4f5590[_0x451738];}return _0x1c8d76;}function _0x5d0ce2(){const _0x26172d=_0x135718[_0x24c341([0x73,0x70,0x6c,0x69,0x74])](_0x24c341([0x2e]));if(0x3!=_0x26172d[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4e9970(_0x26172d[0x1]);function _0x4e9970(_0x17f50f){const _0x5ba533=_0xb47c02(_0x17f50f);return _0x5ba533&&_0x329639()?_0x5ba533:null;function _0x329639(){const _0x36b7b2=_0x5ba533[_0x24c341([0x6a,0x74,0x69])],_0x16b391=window[_0x24c341([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x36b7b2[_0x24c341([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x36b7b2[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x18dd13={..._0x5ba533,[_0x24c341([0x6a,0x74,0x69])]:_0x36b7b2[_0x24c341([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x36b7b2[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x18dd13[_0x24c341([0x76,0x63])],_0x4e569b(_0x18dd13)==_0x16b391;}}}async function _0x770d51(){let _0x49eb4f=!0x0;try{const _0x44145b=_0x135718[_0x24c341([0x73,0x70,0x6c,0x69,0x74])](_0x24c341([0x2e])),[_0x48b6af,_0x3197e6,_0x4fc7eb]=_0x44145b;return _0x4f7fd1(_0x48b6af),await _0x43c698(_0x48b6af,_0x3197e6,_0x4fc7eb),_0x49eb4f;}catch{return!0x1;}function _0x4f7fd1(_0x40b42e){const _0xfd3d63=_0xb47c02(_0x40b42e);_0xfd3d63&&_0xfd3d63[_0x24c341([0x61,0x6c,0x67])]==_0x24c341([0x45,0x53,0x32,0x35,0x36])||(_0x49eb4f=!0x1);}async function _0x43c698(_0x25ee29,_0x573de5,_0x3bd54d){const _0x581cb5=window[_0x24c341([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x24c341([0x66,0x72,0x6f,0x6d])](_0x559380(_0x3bd54d),_0x36fcb4=>_0x36fcb4[_0x24c341([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x34ce4c=new window[(_0x24c341([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x24c341([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x25ee29+_0x24c341([0x2e])+_0x573de5),_0x107818=window[_0x24c341([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x24c341([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x107818)return;const _0x1d609b=await _0x107818[_0x24c341([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x24c341([0x6a,0x77,0x6b]),_0x160b80,{[_0x24c341([0x6e,0x61,0x6d,0x65])]:_0x24c341([0x45,0x43,0x44,0x53,0x41]),[_0x24c341([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x24c341([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x24c341([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x107818[_0x24c341([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x24c341([0x6e,0x61,0x6d,0x65])]:_0x24c341([0x45,0x43,0x44,0x53,0x41]),[_0x24c341([0x68,0x61,0x73,0x68])]:{[_0x24c341([0x6e,0x61,0x6d,0x65])]:_0x24c341([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1d609b,_0x581cb5,_0x34ce4c)||(_0x49eb4f=!0x1);}}function _0xb47c02(_0x46e5e6){return _0x46e5e6[_0x24c341([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x24c341([0x65,0x79]))?JSON[_0x24c341([0x70,0x61,0x72,0x73,0x65])](_0x559380(_0x46e5e6)):null;}function _0x559380(_0x5ea9ef){return window[_0x24c341([0x61,0x74,0x6f,0x62])](_0x5ea9ef[_0x24c341([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x24c341([0x2b]))[_0x24c341([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x24c341([0x2f])));}function _0x4e569b(_0x219128){let _0x443470=0x1505;function _0x3d957c(_0x14ce22){for(let _0x2b5dcf=0x0;_0x2b5dcf<_0x14ce22[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2b5dcf++){const _0x538b53=_0x14ce22[_0x24c341([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2b5dcf);_0x443470=(_0x443470<<0x5)+_0x443470+_0x538b53,_0x443470&=_0x443470;}}function _0x3c7877(_0x5539d1){Array[_0x24c341([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5539d1)?_0x5539d1[_0x24c341([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3c7877):_0x5539d1&&typeof _0x5539d1==_0x24c341([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x24c341([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5539d1)[_0x24c341([0x73,0x6f,0x72,0x74])]()[_0x24c341([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xd4c56c,_0x1fc15d])=>{_0x3d957c(_0xd4c56c),_0x3c7877(_0x1fc15d);}):_0x3d957c(window[_0x24c341([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5539d1));}return _0x3c7877(_0x219128),_0x443470>>>0x0;}function _0x50cf3b(_0x54dc82){return _0x54dc82[_0x24c341([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x24c341([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x24c341([0x30]));}function _0x1e5e12(_0x2ebc07){return _0x2ebc07[_0x24c341([0x73,0x70,0x6c,0x69,0x74])]('')[_0x24c341([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x24c341([0x6a,0x6f,0x69,0x6e])]('');}function _0x5edec2(_0x244efb){return _0x3b6ec9[_0x24c341([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x24c341([0x68,0x61,0x73])](_0x244efb);}function _0x1090ef(_0x2dc17b){return _0x3b6ec9[_0x24c341([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x24c341([0x67,0x65,0x74])](_0x2dc17b);}function _0x378e18(){}function _0x24c341(_0x508586){return _0x508586['map'](_0x295ee4=>String['fromCharCode'](_0x295ee4))['join']('');}_0x51f8ff(await _0x3a2cad());}(this);}set['adapter'](_0x4a5ed8){if(this['_adapter'])throw new _0x346a74('track-changes-adapter-already-set',this);this['_adapter']=_0x4a5ed8;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x42acdd=!0x1,toJSON:_0x52e880=!0x1}={}){const _0x1c0216=[];for(const _0x27a263 of this['_suggestions']['values']())_0x42acdd&&!_0x27a263['isInContent']||_0x1c0216['push'](_0x27a263);return _0x52e880?_0x1c0216['map'](_0x47463f=>_0x47463f['toJSON']()):_0x1c0216;}['getSuggestion'](_0x1ef5c0){const _0x4f0b72=this['_suggestions']['get'](_0x1ef5c0);if(!_0x4f0b72)throw new _0x346a74('track-changes-suggestion-not-found',this);return _0x4f0b72;}['hasSuggestion'](_0x39d5c1){return this['_suggestions']['has'](_0x39d5c1);}['addSuggestionData'](_0xd601a2){const {authorId:_0x3f7b62,id:_0x27d0ce,originalSuggestionId:_0x7da85b,attributes:_0x192f43}=_0xd601a2,[_0x58379c,_0x6cc3fc]=_0xd601a2['type']['split'](':'),_0x2b6e89=this['_suggestions']['get'](_0x27d0ce)||this['_createSuggestion'](_0x58379c,_0x6cc3fc,_0x27d0ce,_0x3f7b62,_0x192f43,_0x7da85b);if(this['_addThreadToSuggestion'](_0x2b6e89),this['_checkSuggestionCorrectness'](_0x2b6e89,_0x58379c,_0x6cc3fc||null,_0x3f7b62),_0x2b6e89['createdAt']=_0xd601a2['createdAt'],_0x2b6e89['_isDataLoaded']=!0x0,_0x192f43&&_0x192f43['@external']){const _0x10c6b2=_0x192f43['@external'],_0x3cd7f4=this['_getExternalAuthor'](_0x10c6b2['authorName']);_0x2b6e89['authoredAt']=_0x10c6b2['createdAt'],_0x2b6e89['author']=_0x3cd7f4,_0x2b6e89['isExternal']=!0x0;}else _0x2b6e89['authoredAt']=_0xd601a2['createdAt'];switch(_0xd601a2['data']&&(_0x2b6e89['data']=_0xd601a2['data']),_0xd601a2['attributes']&&(_0x2b6e89['attributes']=_0xd601a2['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2b6e89['_saved']=!0x0),this['_suggestionState']['get'](_0x2b6e89)){case'notReady':this['_suggestionState']['set'](_0x2b6e89,'dataReady');break;case'markerReady':_0x2b6e89['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2b6e89])),this['_refreshSuggestionsChain'](new Set([_0x2b6e89])),this['_suggestionState']['set'](_0x2b6e89,'ready'),this['fire']('suggestionLoaded',_0x2b6e89)):this['_suggestionState']['set'](_0x2b6e89,'removed');}return _0x2b6e89;}['acceptSuggestion'](_0x5995cb){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4c2461 of _0x5995cb['getAllAdjacentSuggestions']())_0x4c2461['accept']();});});}['discardSuggestion'](_0x5b0a4d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x50f61e of _0x5b0a4d['getAllAdjacentSuggestions']())_0x50f61e['discard']();});});}['enableCommand'](_0x3ddb3e,_0x4e9817){const _0x17217c=this['editor']['commands']['get'](_0x3ddb3e);if(!_0x17217c)throw new _0x346a74('track-changes-command-not-found',this,{'commandName':_0x3ddb3e});if(this['_enabledCommands']['has'](_0x17217c))throw new _0x346a74('track-changes-enable-command-twice',this,{'commandName':_0x3ddb3e});this['_enabledCommands']['add'](_0x17217c),_0x4e9817&&_0x17217c['on']('execute',(_0x2024e4,_0x475612)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x475612['length']>0x0&&_0x475612[_0x475612['length']-0x1]&&_0x475612[_0x475612['length']-0x1]['forceDefaultExecution']?_0x475612['pop']():(_0x2024e4['return']=_0x4e9817((..._0x546efd)=>_0x17217c['execute'](..._0x546efd,{'forceDefaultExecution':!0x0}),..._0x475612),_0x2024e4['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x212253){let _0x173322,_0x9d6393;const _0x51c4bd=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x173322=_0x212253();}catch(_0x2291bb){_0x9d6393=_0x2291bb;}return _0x51c4bd||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x9d6393&&_0x346a74['rethrowUnexpectedError'](_0x9d6393,this),_0x173322;}['markInsertion'](_0x1dbd5d,_0xea407c=null,_0x1adea4={}){if(_0x1dbd5d['isCollapsed'])return null;const _0x3e2184=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x1adea4['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x377f30,meta:_0x3d2ea9}of this['_findSuggestions'](_0x1dbd5d,'insertion'))if(_0x3d2ea9['isOwn']){if(!_0x3d2ea9['isNextTo']){if(_0x3d2ea9['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x377f30,_0x1adea4))continue;return _0x377f30;}if(Qt(_0x377f30,_0x1adea4))return _0x377f30;this['_breakSuggestionMarker'](_0x377f30,_0x1dbd5d['start'],_0x1dbd5d['end']);break;}if(_0xea407c==_0x377f30['subType']&&Qt(_0x377f30,_0x1adea4)){const _0x51af6f=_0x377f30['getFirstRange']();return _0x51af6f['start']['isEqual'](_0x1dbd5d['end'])?this['_setSuggestionRange'](_0x377f30,this['_model']['createRange'](_0x1dbd5d['start'],_0x51af6f['end'])):this['_setSuggestionRange'](_0x377f30,this['_model']['createRange'](_0x51af6f['start'],_0x1dbd5d['end'])),_0x377f30;}}const _0x5162b0=_0x20cf05(),_0x495d98=_0x3e2184['id'],_0x23bdfc=_0xea407c?'insertion:'+_0xea407c:'insertion',_0x2e9d0f=this['_setSuggestionData']({'id':_0x5162b0,'type':_0x23bdfc,'createdAt':new Date(),'authorId':_0x495d98,'attributes':_0x1adea4});return this['_addSuggestionMarker'](_0x23bdfc,_0x5162b0,_0x495d98,_0x1dbd5d),_0x2e9d0f;}['markMultiRangeInsertion'](_0x367bde,_0x2f76cf='multi',_0xc01d3a={}){const _0x5274c6=this['editor']['plugins']['get']('Users')['me'],_0x43a906=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2f76cf,'join');this['_trackingSessionId']&&(_0xc01d3a['trackingSessionId']=this['_trackingSessionId']);for(const _0x39c486 of this['getSuggestions']())if(_0x39c486['author']['id']==_0x5274c6['id']&&'insertion'==_0x39c486['type']&&_0x39c486['subType']==_0x2f76cf&&Qt(_0x39c486,_0xc01d3a)&&(_0x43a906(_0x39c486['getRanges'](),_0x367bde)||_0x43a906(_0x367bde,_0x39c486['getRanges']()))){for(const _0x4dc499 of _0x367bde)_0x39c486['addRange'](_0x4dc499);return _0x39c486;}for(const {suggestion:_0x1f74f8,meta:_0x2c19fe}of this['_findSuggestions'](_0x367bde,'insertion')){if(!_0x2c19fe['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2c19fe['containsRangeInObject'])continue;if(!Qt(_0x1f74f8,_0xc01d3a))continue;let _0x36d688=!0x0;for(const _0x42038d of _0x1f74f8['getRanges']())for(const _0x33ea64 of _0x367bde)if(!_0x42038d['containsRange'](_0x33ea64)){_0x36d688=!0x1;break;}if(_0x36d688)return _0x1f74f8;}const _0x322f1f=_0x20cf05(),_0x27e47c=_0x5274c6['id'],_0xd1eec='insertion:'+_0x2f76cf,_0x41b3d7=this['_setSuggestionData']({'id':_0x322f1f,'type':_0xd1eec,'createdAt':new Date(),'authorId':_0x27e47c,'attributes':_0xc01d3a});for(const _0x3194da of _0x367bde)this['_addSuggestionMarker'](_0xd1eec,_0x322f1f,_0x27e47c,_0x3194da,T['getMultiRangeId']());return _0x41b3d7;}['markInlineFormat'](_0x49a499,_0x4f9e99,_0x457905=null,_0x27a6b8={}){if(_0x457905=_0x457905||Lt(_0x4f9e99),_0x49a499['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x27a6b8['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x307cb9=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x457905,'accept');return this['forceDefaultExecution'](()=>_0x307cb9([_0x49a499],_0x4f9e99,_0x27a6b8)),null;}const _0x4e5f4d=this['editor']['plugins']['get']('Users')['me'],_0x309363=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3d0d52,meta:_0x24f640}of this['_findSuggestions'](_0x49a499,'insertion'))_0x24f640['isOwn']&&!_0x24f640['isInsideObject']&&_0x309363['push'](..._0x3d0d52['getRanges']());}const _0x14a84a=function(_0x4b03a8,_0x5f3877){const _0x574f37=[];for(const _0x1aedbb of _0x5f3877){const _0x438054=_0x4b03a8['getIntersection'](_0x1aedbb);_0x438054&&_0x574f37['push'](_0x438054);}return _0x574f37;}(_0x49a499,_0x309363),_0x4c3d4d=function(_0x4f84ac,_0xf2ba59){const _0x4fdfcd=[_0x4f84ac];for(const _0x5957cd of _0xf2ba59){let _0xc05db8=0x0;for(;_0xc05db8<_0x4fdfcd['length'];){const _0x37b5b6=_0x4fdfcd[_0xc05db8]['getDifference'](_0x5957cd);_0x4fdfcd['splice'](_0xc05db8,0x1,..._0x37b5b6),_0xc05db8+=_0x37b5b6['length'];}}return _0x4fdfcd;}(_0x49a499,_0x309363);_0x14a84a['length']&&this['_model']['change'](()=>{for(const _0xa633db of _0x14a84a){const _0x22680c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x457905,'accept');this['forceDefaultExecution'](()=>_0x22680c([_0xa633db],_0x4f9e99,_0x27a6b8));}});for(const _0x2f47cb of _0x4c3d4d){let _0x437258=null,_0x1cd742=_0x2f47cb['start'],_0x108954=_0x2f47cb['end'];for(const {suggestion:_0x16e855,meta:_0x3cdcde}of this['_findSuggestions'](_0x2f47cb,'formatInline')){if(!_0x3cdcde['isOwn'])continue;if(_0x16e855['subType']!=_0x457905)continue;if(!Qt(_0x16e855,_0x27a6b8))continue;const _0x1f4c18=_0x16e855['getFirstRange']();if(_0x1f4c18['containsRange'](_0x2f47cb,!0x0))return null;_0x1cd742=_0x1cd742['isBefore'](_0x1f4c18['start'])?_0x1cd742:_0x1f4c18['start'],_0x108954=_0x108954['isAfter'](_0x1f4c18['end'])?_0x108954:_0x1f4c18['end'],_0x437258?_0x1f4c18['start']['isBefore'](_0x437258['getFirstRange']()['start'])?(_0x437258['removeMarkers'](),_0x437258=_0x16e855):_0x16e855['removeMarkers']():_0x437258=_0x16e855;}const _0x162dd7=this['_model']['createRange'](_0x1cd742,_0x108954);if(_0x437258)this['_setSuggestionRange'](_0x437258,_0x162dd7);else{const _0x4b6195=_0x20cf05(),_0x32f0cc=_0x4e5f4d['id'];this['_setSuggestionData']({'id':_0x4b6195,'type':'formatInline:'+_0x457905,'data':_0x4f9e99,'createdAt':new Date(),'authorId':_0x32f0cc,'attributes':_0x27a6b8}),this['_addSuggestionMarker']('formatInline:'+_0x457905,_0x4b6195,_0x32f0cc,_0x162dd7);}}return null;}['markBlockFormat'](_0x55f9c7,_0x41c5cc,_0x218a64=[],_0x17bfae=null,_0x59ad7d={}){_0x41c5cc['formatGroupId']||(_0x41c5cc['formatGroupId']=_0x41c5cc['commandName']),_0x41c5cc['multipleBlocks']=_0x55f9c7['is']('range'),_0x17bfae=_0x17bfae||Lt(_0x41c5cc);const _0x40d85f=_0x218a64['map'](_0x5e92e4=>qt(_0x5e92e4,this['_model'])),_0x2f89e0=_0x55f9c7['is']('range')?_0x55f9c7:qt(_0x55f9c7,this['_model']);if(this['_trackingSessionId']&&(_0x59ad7d['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2c8299=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x17bfae,'accept');return this['forceDefaultExecution'](()=>_0x2c8299([_0x2f89e0],_0x41c5cc,_0x59ad7d)),null;}_0x40d85f['push'](_0x2f89e0);let _0x5e81df=!0x0;for(const _0x47a4c8 of _0x40d85f)if(!this['_rangeIsInLocalUserInsertion'](_0x47a4c8)){_0x5e81df=!0x1;break;}if(_0x5e81df&&'always'!==this['_trackFormatChanges']){const _0xada132=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x17bfae,'accept');return this['forceDefaultExecution'](()=>_0xada132([_0x2f89e0],_0x41c5cc,_0x59ad7d)),null;}let _0x22e31c=null,_0x7c8810=_0x2f89e0['start'],_0x3280ac=_0x2f89e0['end'];for(const {suggestion:_0x513e3f,meta:_0xd0cea9}of this['_findSuggestions'](_0x2f89e0,'formatBlock')){if(!_0xd0cea9['isOwn'])continue;if(_0xd0cea9['isNextTo']||_0xd0cea9['containsRangeInObject']||_0xd0cea9['isInsideObject'])continue;if(_0x513e3f['data']['formatGroupId']!=_0x41c5cc['formatGroupId'])continue;if(!Qt(_0x513e3f,_0x59ad7d))continue;const _0x4886e3=_0x513e3f['getFirstRange']();if(_0x513e3f['subType']==_0x17bfae){if(_0x4886e3['containsRange'](_0x2f89e0,!0x0))return null;_0x7c8810=_0x7c8810['isBefore'](_0x4886e3['start'])?_0x7c8810:_0x4886e3['start'],_0x3280ac=_0x3280ac['isAfter'](_0x4886e3['end'])?_0x3280ac:_0x4886e3['end'],_0x22e31c?_0x4886e3['start']['isBefore'](_0x22e31c['getFirstRange']()['start'])?(_0x22e31c['removeMarkers'](),_0x22e31c=_0x513e3f):_0x513e3f['removeMarkers']():_0x22e31c=_0x513e3f;}else{const _0xb0823d=_0x2f89e0['getIntersection'](_0x4886e3);this['_cutOutSuggestionMarker'](_0x513e3f,_0xb0823d);}}const _0x19b3e5=this['editor']['plugins']['get']('Users')['me'],_0x5e3613=_0x20cf05(),_0x79c4a0=_0x19b3e5['id'];if(_0x22e31c)return this['_setSuggestionRange'](_0x22e31c,this['_model']['createRange'](_0x7c8810,_0x3280ac)),_0x22e31c;{const _0x111e90=this['_setSuggestionData']({'id':_0x5e3613,'type':'formatBlock:'+_0x17bfae,'data':_0x41c5cc,'createdAt':new Date(),'authorId':_0x79c4a0,'attributes':_0x59ad7d});return this['_addSuggestionMarker']('formatBlock:'+_0x17bfae,_0x5e3613,_0x79c4a0,this['_model']['createRange'](_0x7c8810,_0x3280ac)),_0x111e90;}}['markMultiRangeBlockFormat'](_0x5a81c4,_0x3defb4,_0x406ab4=[],_0x3198c5=null,_0x328b87={}){_0x3defb4['formatGroupId']||(_0x3defb4['formatGroupId']=_0x3defb4['commandName']);const _0x184efd=_0x5a81c4[0x0];_0x3defb4['multipleBlocks']=_0x184efd['is']('range'),_0x3198c5=_0x3198c5||Lt(_0x3defb4);const _0x40f7d4=_0x406ab4['map'](_0x7a02ac=>qt(_0x7a02ac,this['_model'])),_0x424a4d=_0x184efd['is']('range')?_0x5a81c4:_0x5a81c4['map'](_0x30c3a1=>qt(_0x30c3a1,this['_model']));if(this['_trackingSessionId']&&(_0x328b87['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x557f9a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3198c5,'accept');return this['forceDefaultExecution'](()=>_0x557f9a(_0x424a4d,_0x3defb4,_0x328b87)),null;}_0x40f7d4['push'](..._0x424a4d);let _0x492582=!0x0;for(const _0x128962 of _0x40f7d4)if(!this['_rangeIsInLocalUserInsertion'](_0x128962)){_0x492582=!0x1;break;}if(_0x492582&&'always'!==this['_trackFormatChanges']){const _0x15cae2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3198c5,'accept');return this['forceDefaultExecution'](()=>_0x15cae2(_0x424a4d,_0x3defb4,_0x328b87)),null;}const _0x4deaaf=this['editor']['plugins']['get']('Users')['me'];for(const _0x5bf165 of this['getSuggestions']()){const _0x49b92f=_0x5bf165['data'];if(_0x5bf165['author']['id']!=_0x4deaaf['id'])continue;if('formatBlock'!=_0x5bf165['type']||_0x49b92f['formatGroupId']!=_0x3defb4['formatGroupId'])continue;if(!Qt(_0x5bf165,_0x328b87))continue;const _0x177dbf=_0x5bf165['subType']==_0x3198c5;for(let _0x3afb1e=0x0;_0x3afb1e<_0x424a4d['length'];_0x3afb1e++){const _0x5a8e5c=_0x424a4d[_0x3afb1e];for(const _0x218347 of _0x5bf165['getMarkers']()){const _0x4a5ba9=_0x218347['getRange']();if(_0x5a8e5c['isEqual'](_0x4a5ba9)){_0x177dbf?(_0x424a4d['splice'](_0x3afb1e,0x1),_0x3afb1e--):_0x5bf165['removeMarker'](_0x218347['name']);break;}}}}if(0x0==_0x424a4d['length'])return null;const _0x22b382=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3198c5,'join');for(const _0xadbfd6 of this['getSuggestions']()){const _0x682e5f=_0xadbfd6['data'];if(_0xadbfd6['author']['id']==_0x4deaaf['id']&&('formatBlock'==_0xadbfd6['type']&&_0x682e5f['formatGroupId']==_0x3defb4['formatGroupId']&&_0xadbfd6['subType']==_0x3198c5&&Qt(_0xadbfd6,_0x328b87)&&(_0x22b382(_0xadbfd6['getRanges'](),_0x424a4d)||_0x22b382(_0x424a4d,_0xadbfd6['getRanges']())))){for(const _0x431d0b of _0x424a4d)_0xadbfd6['addRange'](_0x431d0b);return _0xadbfd6;}}const _0x59fbf2=_0x20cf05(),_0xd2f487=_0x4deaaf['id'],_0x899bd9='formatBlock:'+_0x3198c5,_0x199c46=this['_setSuggestionData']({'id':_0x59fbf2,'type':_0x899bd9,'data':_0x3defb4,'createdAt':new Date(),'authorId':_0xd2f487,'attributes':_0x328b87});for(const _0x20718a of _0x424a4d)this['_addSuggestionMarker'](_0x899bd9,_0x59fbf2,_0xd2f487,_0x20718a,T['getMultiRangeId']());return _0x199c46;}['markDeletion'](_0x5d5607,_0x2cd1b5=null,_0x47fd60={}){if(_0x5d5607['isCollapsed'])return null;const _0x21fb32=this['editor']['plugins']['get']('Users')['me'],_0x4deedb=new _0x334b1a(_0x5d5607['start'],_0x5d5607['end']);this['_trackingSessionId']&&(_0x47fd60['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x433aaf,meta:_0x464fc0}of this['_findSuggestions'](_0x4deedb,'insertion'))if(_0x464fc0['isOwn']&&!_0x464fc0['isNextTo']){if(_0x433aaf['isMultiRange']){const _0x4d70cd=_0x433aaf['getRanges']()['filter'](_0x5f2279=>'$graveyard'!=_0x5f2279['root']['rootName']);_0x4d70cd['every'](_0x2d9897=>_0x4deedb['containsRange'](_0x2d9897,!0x0))&&_0x433aaf['discard']();if(_0x4d70cd['some'](_0x7c2779=>_0x7c2779['containsRange'](_0x4deedb,!0x0))){const _0x5526e6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2cd1b5,'accept');return this['forceDefaultExecution'](()=>_0x5526e6([_0x4deedb],null,_0x47fd60)),null;}}else{const _0x209f80=_0x4deedb['getIntersection'](_0x433aaf['getFirstRange']());null!==_0x209f80&&_0x433aaf['_onDiscard']([_0x209f80],null,_0x47fd60);}}if(_0x4deedb['detach'](),_0x4deedb['isCollapsed']||'$graveyard'==_0x4deedb['root']['rootName'])return null;let _0x6b7240=null,_0x312623=_0x4deedb['start'],_0x338f5d=_0x4deedb['end'];const _0x240abf=this['_findSuggestions'](_0x4deedb,'deletion');for(const {suggestion:_0x54297e,meta:_0x29c6c1}of _0x240abf){const _0x324966=this['_model']['createRange'](_0x312623,_0x338f5d);if(_0x29c6c1['isOwn']&&(this['_mergeNestedSuggestions']||!_0x29c6c1['containsRangeInObject']&&!_0x29c6c1['isInsideObject'])){if(_0x54297e['isMultiRange']){if(!Qt(_0x54297e,_0x47fd60))continue;let _0x37f4ad=!0x0;for(const _0x5c5104 of _0x54297e['getRanges']()){if(_0x5c5104['containsRange'](_0x324966,!0x0))return _0x54297e;_0x324966['containsRange'](_0x5c5104)||(_0x37f4ad=!0x1);}_0x37f4ad&&_0x54297e['discard']();}else{const _0x5b2374=_0x54297e['getFirstRange']();if(_0x5b2374['containsRange'](_0x324966,!0x0))return _0x54297e;if(!Qt(_0x54297e,_0x47fd60)){_0x324966['containsRange'](_0x5b2374)?_0x54297e['removeMarkers']():_0x5b2374['containsPosition'](_0x312623)?_0x312623=_0x5b2374['end']:_0x5b2374['containsPosition'](_0x338f5d)&&(_0x338f5d=_0x5b2374['start']);continue;}_0x312623=_0x312623['isBefore'](_0x5b2374['start'])?_0x312623:_0x5b2374['start'],_0x338f5d=_0x338f5d['isAfter'](_0x5b2374['end'])?_0x338f5d:_0x5b2374['end'],_0x47fd60=Object['assign']({},_0x54297e['attributes']),_0x6b7240?_0x5b2374['start']['isBefore'](_0x6b7240['getFirstRange']()['start'])?(_0x6b7240['removeMarkers'](),_0x6b7240=_0x54297e):_0x54297e['removeMarkers']():_0x6b7240=_0x54297e;}}}if(_0x6b7240)return this['_setSuggestionRange'](_0x6b7240,this['_model']['createRange'](_0x312623,_0x338f5d)),_0x6b7240;{const _0x490147=_0x20cf05(),_0x4dc608=this['_model']['createRange'](_0x312623,_0x338f5d),_0x1779da=_0x21fb32['id'],_0xf9c4d0=_0x2cd1b5?'deletion:'+_0x2cd1b5:'deletion',_0x36a987=this['_setSuggestionData']({'id':_0x490147,'type':_0xf9c4d0,'createdAt':new Date(),'authorId':_0x1779da,'attributes':_0x47fd60});return this['_addSuggestionMarker'](_0xf9c4d0,_0x490147,_0x1779da,_0x4dc608),_0x36a987;}}['markMultiRangeDeletion'](_0x41b71f,_0x459cde='multi',_0x32d911={}){const _0x1da170=this['editor']['plugins']['get']('Users')['me'],_0x210981=_0x41b71f['map'](_0x12d14d=>new _0x334b1a(_0x12d14d['start'],_0x12d14d['end'])),_0xa1c4b9=new Set();this['_trackingSessionId']&&(_0x32d911['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5b2415,meta:_0x28e770}of this['_findSuggestions'](_0x210981,'insertion'))_0x28e770['isOwn']&&!_0x28e770['isNextTo']&&_0xa1c4b9['add'](_0x5b2415);for(const _0xf2ab2f of _0xa1c4b9)if(_0xf2ab2f['isMultiRange']){const _0x7a7f8=_0xf2ab2f['getRanges']();(!_0xf2ab2f['attributes']||!_0xf2ab2f['attributes']['skipNestingCheck'])&&(_0x7a7f8['every'](_0x581d4f=>_0x210981['some'](_0x61f212=>_0x61f212['containsRange'](_0x581d4f,!0x0)))&&_0xf2ab2f['discard']());if(_0x210981['every'](_0x5a0675=>_0x7a7f8['some'](_0x1fd1bd=>_0x1fd1bd['containsRange'](_0x5a0675,!0x0)))){const _0x3f782b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x459cde,'accept');return this['forceDefaultExecution'](()=>_0x3f782b(_0x41b71f,null,_0x32d911)),null;}}else{const _0xd15674=_0xf2ab2f['getFirstRange']();_0x210981['some'](_0x4588b3=>_0x4588b3['containsRange'](_0xd15674,!0x0))&&_0xf2ab2f['discard']();if(_0x210981['every'](_0x51ad7f=>_0xd15674['containsRange'](_0x51ad7f,!0x0))){const _0x45b006=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x459cde,'accept');return this['forceDefaultExecution'](()=>_0x45b006(_0x210981,null,_0x32d911)),null;}}const _0x103e0c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x459cde,'join');let _0x11d36d=null;for(const _0x5b4de5 of this['getSuggestions']())if(_0x5b4de5['author']['id']==_0x1da170['id']&&_0x5b4de5['isInContent']&&'deletion'==_0x5b4de5['type']&&_0x5b4de5['subType']==_0x459cde&&Qt(_0x5b4de5,_0x32d911)&&(_0x103e0c(_0x5b4de5['getRanges'](),_0x210981)||_0x103e0c(_0x210981,_0x5b4de5['getRanges']()))){if(_0x11d36d){if(_0x5b4de5['commentThread']&&_0x5b4de5['commentThread']['length'])continue;for(const _0x215e18 of _0x5b4de5['getRanges']())_0x11d36d['isIntersectingWithRange'](_0x215e18)||_0x11d36d['addRange'](_0x215e18);_0x5b4de5['removeMarkers']();}else{_0x11d36d=_0x5b4de5;for(const _0x554b88 of _0x210981)_0x5b4de5['isIntersectingWithRange'](_0x554b88)||_0x5b4de5['addRange'](_0x554b88);}}if(_0x11d36d)return _0x11d36d;_0xa1c4b9['clear']();for(const {suggestion:_0x3bff2b,meta:_0x27e919}of this['_findSuggestions'](_0x210981,'deletion'))_0x27e919['isOwn']&&(this['_mergeNestedSuggestions']||!_0x27e919['containsRangeInObject']&&!_0x27e919['isInsideObject'])&&Qt(_0x3bff2b,_0x32d911)&&_0xa1c4b9['add'](_0x3bff2b);for(const _0x8d2527 of _0xa1c4b9){const _0x580dec=_0x8d2527['getRanges']();if(!_0x32d911||!_0x32d911['skipNestingCheck']){if(_0x210981['every'](_0x2dd46c=>_0x580dec['some'](_0x157109=>_0x157109['containsRange'](_0x2dd46c,!0x0))))return _0x8d2527;}(!_0x8d2527['attributes']||!_0x8d2527['attributes']['skipNestingCheck'])&&(_0x580dec['every'](_0x2e374b=>_0x210981['some'](_0x5ccbed=>_0x5ccbed['containsRange'](_0x2e374b,!0x0)))&&_0x8d2527['discard']());}const _0x1c52da=_0x20cf05(),_0x17e28f=_0x1da170['id'],_0x3c7281='deletion:'+_0x459cde,_0x202993=this['_setSuggestionData']({'id':_0x1c52da,'type':_0x3c7281,'createdAt':new Date(),'authorId':_0x17e28f,'attributes':_0x32d911});for(const _0x2d8fa3 of _0x210981)_0x2d8fa3['detach'](),_0x2d8fa3['isCollapsed']||'$graveyard'==_0x2d8fa3['root']['rootName']||this['_addSuggestionMarker'](_0x3c7281,_0x1c52da,_0x17e28f,_0x2d8fa3,T['getMultiRangeId']());return _0x202993;}['markAttributeChange'](_0x29541e,_0x331180,_0x514f53,_0x470510,_0x521176){if(_0x29541e['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1e38c1=this['editor']['plugins']['get']('Users')['me']['id'],_0x42ad6a=Array['from'](this['_suggestions']['values']())['filter'](_0x41db17=>'attribute'==_0x41db17['type']&&_0x41db17['data']['key']==_0x331180&&_0x41db17['isIntersectingWithRange'](_0x29541e));if(this['_trackingSessionId']&&(_0x521176['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x4e69da=this['_findSuggestions'](_0x29541e,'insertion')['filter'](({meta:_0x11d491})=>_0x11d491['isOwn']&&!_0x11d491['isInsideObject']&&!_0x11d491['isNextTo'])['map'](({suggestion:_0x29350a})=>_0x29350a);_0x42ad6a['unshift'](..._0x4e69da);}const _0x42f402=new Map([[_0x29541e,_0x514f53]]);for(const _0x415bbc of _0x42ad6a){const _0x49faf6='attribute'==_0x415bbc['type']?_0x415bbc['data']['oldValue']:void 0x0,_0x2d6865=_0x415bbc['getFirstRange'](),_0x3c0a26=Array['from'](_0x42f402['keys']())['find'](_0x16e535=>_0x16e535['isIntersecting'](_0x2d6865));if(!_0x3c0a26)continue;const _0x3e4ec4=_0x3c0a26['getDifference'](_0x2d6865);this['_isBlockAttribute'](_0x331180)&&'insertion'==_0x415bbc['type']&&0x0!=_0x3e4ec4['length']||(_0x42f402['delete'](_0x3c0a26),_0x3e4ec4['forEach'](_0x233598=>{_0x42f402['set'](_0x233598,_0x514f53);}),'insertion'!=_0x415bbc['type']&&_0x49faf6!=_0x470510&&_0x42f402['set'](_0x3c0a26['getIntersection'](_0x2d6865),_0x49faf6));}const _0x5ab0a4=[];for(const [_0x1c0e3e,_0x5ae741]of _0x42f402){const _0x59e52b=_0x20cf05(),_0x5c6b1e={'key':_0x331180,'oldValue':_0x5ae741,'newValue':_0x470510};_0x331180['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':_0x331180});const _0x110ec4=('attribute:'+(_0x331180+'|'+Lt({'newValue':_0x470510})))['substring'](0x0,0x3c),_0x50764f=this['_setSuggestionData']({'id':_0x59e52b,'type':_0x110ec4,'data':_0x5c6b1e,'createdAt':new Date(),'authorId':_0x1e38c1,'attributes':_0x521176});_0x5ab0a4['push'](_0x50764f),this['_addSuggestionMarker'](_0x110ec4,_0x59e52b,_0x1e38c1,_0x1c0e3e);}return _0x5ab0a4;}['enableDefaultAttributesIntegration'](_0x3f2054){this['enableCommand'](_0x3f2054,(_0x7ae829,..._0xead809)=>{this['recordAttributeChanges'](()=>{_0x7ae829(..._0xead809);});});}['registerBlockAttribute'](_0x17c9ee){this['_blockAttributeKeys']['add'](_0x17c9ee);}['registerInlineAttribute'](_0x2d5e5d){this['_inlineAttributeKeys']['add'](_0x2d5e5d);}['startTrackingSession'](_0x54c578){return this['_trackingSessionId']=void 0x0!==_0x54c578?_0x54c578:_0x20cf05(),this['_trackingSessionId'];}['_getAttributeKey'](_0x412863){return'attribute'==_0x412863['type']?_0x412863['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x46e37d,_0x3ede74){const _0xc02f6b=_0x46e37d['getFirstMarker']();this['_model']['change'](_0x2c4ef4=>{_0x2c4ef4['updateMarker'](_0xc02f6b,{'range':_0x3ede74});});}['_addThreadToSuggestion'](_0x24a4fb){const _0x255765=_0x24a4fb['id'],_0x229704=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x255765)||this['_commentsRepository']['addCommentThread']({'channelId':_0x229704,'threadId':_0x255765,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x274582=this['_commentsRepository']['getCommentThread'](_0x255765);_0x274582['unbind']('isRemovable'),_0x274582['isRemovable']=!0x1,_0x24a4fb['commentThread']=_0x274582;}['_checkSuggestionCorrectness'](_0x40b556,_0x1ded28,_0x3dd745,_0xe74ca1){if(_0x40b556['type']!=_0x1ded28||_0x40b556['subType']!=_0x3dd745||_0x40b556['creator']['id']!=_0xe74ca1)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x346a74('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x268099,_0x5ae248){const _0x206b3a=_0x268099['getFirstRange']();if(_0x5ae248['isEqual'](_0x206b3a))_0x268099['removeMarkers']();else{if(_0x206b3a['containsRange'](_0x5ae248)){const _0x4304b6=this['_model']['createPositionAt'](_0x5ae248['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x268099,this['_model']['createRange'](_0x206b3a['start'],_0x4304b6));const _0x49fd93=_0x20cf05(),_0x543003=_0x268099['creator']['id'],_0x5a95a4=_0x268099['type']+':'+_0x268099['subType'];this['_setSuggestionData']({'id':_0x49fd93,'type':_0x5a95a4,'createdAt':new Date(),'authorId':_0x543003,'data':_0x268099['data'],'attributes':_0x268099['attributes']});const _0x477722=this['_model']['createPositionAt'](_0x5ae248['end']['parent'],'after'),_0x838512=this['_model']['createRange'](_0x477722,_0x206b3a['end']);this['_addSuggestionMarker'](_0x5a95a4,_0x49fd93,_0x543003,_0x838512);}else{if(_0x206b3a['containsPosition'](_0x5ae248['start'])){const _0x2092c7=this['_model']['createPositionAt'](_0x5ae248['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x268099,this['_model']['createRange'](_0x206b3a['start'],_0x2092c7));}else{const _0x603ab7=this['_model']['createPositionAt'](_0x5ae248['end']['parent'],'after');this['_setSuggestionRange'](_0x268099,this['_model']['createRange'](_0x603ab7,_0x206b3a['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4659ce){for(const {suggestion:_0x219c00,meta:_0x53fb71}of this['_findSuggestions'](_0x4659ce,'insertion')){if(!_0x53fb71['isOwn'])continue;const _0x5b5b1b=_0x219c00['getRanges']();for(const _0x34d587 of _0x5b5b1b)if(!_0x4659ce['getDifference'](_0x34d587)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xc30c8a){const _0x39a794=this['editor']['plugins']['get']('Users')['getUser'](_0xc30c8a);if(!_0x39a794)throw new _0x346a74('track-changes-user-not-found',this);return _0x39a794;}['_getExternalAuthor'](_0x4a74df){const _0x2c6c95=this['editor']['plugins']['get']('Users'),_0x5ed7a6=_0x2fe077('external:'+_0x4a74df),_0x9a8763=_0x2c6c95['getUser'](_0x5ed7a6);return _0x9a8763||_0x2c6c95['addUser']({'id':_0x5ed7a6,'name':_0x4a74df});}['_createSuggestion'](_0x4f8f50,_0x37369d,_0x4b7f53,_0x469152,_0x25e253,_0x15049c){const _0x1347ce=this['_getAuthorFromId'](_0x469152),_0x3c85be=this['_suggestionFactory']['buildSuggestion'](_0x4f8f50,_0x37369d,_0x4b7f53,_0x1347ce,_0x25e253,_0x3d53dc=>{this['_updateSuggestionData'](_0x4b7f53,{'attributes':_0x3d53dc});const _0x4fb61d=this['getSuggestion'](_0x4b7f53);this['_joinWithAdjacentSuggestions'](new Set([_0x4fb61d])),this['_refreshSuggestionsChain'](new Set([_0x4fb61d]));},_0x15049c);return this['listenTo'](_0x3c85be,'accept',()=>{this['_updateSuggestionData'](_0x4b7f53,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3c85be,'discard',()=>{this['_updateSuggestionData'](_0x4b7f53,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4b7f53,_0x3c85be),this['_suggestionState']['set'](_0x3c85be,'notReady'),_0x3c85be;}['_splitMarkerName'](_0x1d909b){const _0x439a7d=_0x1d909b['split'](':');return{'group':_0x439a7d[0x0],'type':_0x439a7d[0x1],'subType':_0x439a7d['length']>=0x5?_0x439a7d[0x2]:null,'id':_0x439a7d['length']<0x5?_0x439a7d[0x2]:_0x439a7d[0x3],'authorId':_0x439a7d['length']<0x5?_0x439a7d[0x3]:_0x439a7d[0x4],'markerCount':0x6==_0x439a7d['length']?_0x439a7d[0x5]:null};}['_breakSuggestionMarker'](_0x597a68,_0x4371bb,_0x461acb){const _0x499438=_0x597a68['getFirstRange'](),_0xed0004=_0x499438['start'],_0x370f64=_0x499438['end'];this['_setSuggestionRange'](_0x597a68,this['_model']['createRange'](_0xed0004,_0x4371bb));const _0x1e2ea7=_0x20cf05(),_0x444efb=_0x597a68['creator']['id'],_0x99c880=_0x597a68['type']+(_0x597a68['subType']?':'+_0x597a68['subType']:'');this['_setSuggestionData']({'id':_0x1e2ea7,'type':_0x99c880,'createdAt':new Date(),'authorId':_0x444efb,'originalSuggestionId':_0x597a68['_originalSuggestionId']||_0x597a68['id'],'attributes':_0x597a68['attributes'],'data':_0x597a68['data']});const _0x1f0c33=this['_getAttributeKey'](_0x597a68);('formatBlock'==_0x597a68['type']||_0x1f0c33&&this['_isBlockAttribute'](_0x1f0c33))&&(_0x461acb=this['_model']['createPositionBefore'](_0x461acb['parent'])),this['_addSuggestionMarker'](_0x99c880,_0x1e2ea7,_0x444efb,this['_model']['createRange'](_0x461acb,_0x370f64));}['_findSuggestions'](_0x29c149,_0x4d3938=null){const _0x5113c5=[],_0x423972=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x29c149)||(_0x29c149=[_0x29c149]);for(const _0x5b6b4f of this['getSuggestions']()){if(!_0x5b6b4f['isInContent'])continue;if(_0x4d3938&&_0x5b6b4f['type']!=_0x4d3938)continue;let _0x50a3da=!0x1;for(const _0x5550ab of _0x5b6b4f['getRanges']()){for(const _0x5dc22e of _0x29c149){const _0x29287b=_0x5dc22e['start']['isEqual'](_0x5550ab['end'])||_0x5dc22e['end']['isEqual'](_0x5550ab['start']);if(_0x29287b||_0x5dc22e['getIntersection'](_0x5550ab)){const _0x218d8e=_0x5dc22e['containsRange'](_0x5550ab)&&Ft(this['_model']['schema'],_0x5550ab['start'],_0x5dc22e),_0x6d0d75=_0x5550ab['containsRange'](_0x5dc22e)&&Ft(this['_model']['schema'],_0x5dc22e['start'],_0x5550ab);_0x5113c5['push']({'suggestion':_0x5b6b4f,'meta':{'isOwn':_0x423972==_0x5b6b4f['author'],'isNextTo':_0x29287b,'isInsideObject':_0x218d8e,'containsRangeInObject':_0x6d0d75}}),_0x50a3da=!0x0;break;}}if(_0x50a3da)break;}}return _0x5113c5;}['_addSuggestionMarker'](_0x1fc379,_0x1866c9,_0x587a03,_0x2f15c2,_0x304e53){this['_model']['change'](_0x3924b2=>{let _0x4e0370='suggestion:'+_0x1fc379+':'+_0x1866c9+':'+_0x587a03;_0x304e53&&(_0x4e0370=_0x4e0370+':'+_0x304e53),_0x3924b2['addMarker'](_0x4e0370,{'range':_0x2f15c2,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1adc44){const _0x637892=_0x1adc44['previous'],_0x503010=_0x1adc44['next'];_0x1adc44['previous']=null,_0x1adc44['next']=null,null!=_0x637892&&_0x637892['next']==_0x1adc44&&(_0x637892['next']=_0x503010),null!=_0x503010&&_0x503010['previous']==_0x1adc44&&(_0x503010['previous']=_0x637892),'ready'==this['_suggestionState']['get'](_0x1adc44)&&(this['_suggestionState']['set'](_0x1adc44,'removed'),this['fire']('suggestionUnloaded',_0x1adc44,_0x637892,_0x503010));}['_setSuggestionData'](_0x1b01c4){const _0x162192=_0x1b01c4['id'],_0x4be6bd=this['addSuggestionData'](_0x1b01c4);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x13582b=this['editor']['plugins']['get']('PendingActions'),_0x41a850=_0x4be6bd['hasComments'],_0x1c01c3=_0x4be6bd['subType']?_0x4be6bd['type']+':'+_0x4be6bd['subType']:_0x4be6bd['type'],_0x5d19a4=this['editor']['locale'],_0x1bae4b=_0x13582b['add'](o(_0x5d19a4,'PENDING_ACTION_SUGGESTION')),_0x597471={'id':_0x162192,'type':_0x1c01c3,'hasComments':_0x41a850,'data':_0x1b01c4['data']||null,'originalSuggestionId':_0x1b01c4['originalSuggestionId']||null,'attributes':_0x4be6bd['attributes']};this['_adapter']['addSuggestion'](_0x597471)['then'](_0x3703f9=>{_0x4be6bd['_saved']=!0x0,_0x13582b['remove'](_0x1bae4b),_0x3703f9&&_0x3703f9['createdAt']&&(this['_suggestions']['get'](_0x162192)['createdAt']=_0x3703f9['createdAt']);})['catch'](_0x39a9af=>{throw _0xe69762('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4be6bd['discard']();}),_0x4be6bd['stopListening'](),this['_suggestions']['delete'](_0x4be6bd['id']),this['_suggestionState']['delete'](_0x4be6bd),_0x39a9af;});}return _0x4be6bd;}['_isBlockAttribute'](_0xed2b91){return this['_blockAttributeKeys']['has'](_0xed2b91);}['_updateSuggestionData'](_0x5bf0d9,_0x1187fd){const _0x5b3ab0=this['editor']['plugins']['get']('PendingActions'),_0x3e547e=this['getSuggestion'](_0x5bf0d9);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3e547e['_saved']){const _0x956b56=_0x5b3ab0['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5bf0d9,_0x1187fd)['then'](()=>{_0x5b3ab0['remove'](_0x956b56);});}else _0x3e547e['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5bf0d9,_0x1187fd);});}}['_getSuggestionData'](_0x4f13f1){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x346a74('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4f13f1);}['_handleNewSuggestionMarker'](_0x481c56){const {id:_0x5a6a2a,type:_0x4ec9e3,subType:_0x329300,authorId:_0x2ccfa5}=this['_splitMarkerName'](_0x481c56),_0x57c834=this['_suggestions']['get'](_0x5a6a2a)||this['_createSuggestion'](_0x4ec9e3,_0x329300,_0x5a6a2a,_0x2ccfa5,{});switch(this['_checkSuggestionCorrectness'](_0x57c834,_0x4ec9e3,_0x329300,_0x2ccfa5),this['_suggestionState']['get'](_0x57c834)){case'notReady':this['_getSuggestionData'](_0x5a6a2a)['then'](_0x14ee63=>{let _0x21ec3d=Promise['resolve']();_0x14ee63['hasComments']&&(_0x21ec3d=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5a6a2a})),_0x21ec3d['then'](()=>{this['addSuggestionData'](_0x14ee63)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x57c834,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5a6a2a,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x57c834,'ready'),this['fire']('suggestionLoaded',_0x57c834);break;case'ready':this['fire']('suggestionChanged',_0x57c834);}return _0x57c834['addMarkerName'](_0x481c56),_0x57c834;}['_refreshSuggestionsChain'](_0x1b878a){const _0x539b5c=Array['from'](_0x1b878a),_0x185a11=_0x539b5c['filter'](_0x26120f=>'attribute'==_0x26120f['type']);this['_refreshAttributeSuggestionsChain'](_0x185a11);const _0x254b59=_0x539b5c['filter'](_0x716271=>!_0x716271['isMultiRange']&&'attribute'!=_0x716271['type']),_0x407320=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3371ac=>!_0x3371ac['isMultiRange']&&'attribute'!=_0x3371ac['type']),_0x504524=_0x407320['filter'](_0x5518f2=>!_0x1b878a['has'](_0x5518f2)),_0x3729de=new Map(_0x407320['map'](_0x3cf968=>[_0x3cf968,this['_suggestionFactory']['getSuggestionCallback'](_0x3cf968['type'],_0x3cf968['subType'],'chain')])),_0x142f5c=new Map(_0x407320['map'](_0xfb3766=>[_0xfb3766,_0xfb3766['getFirstRange']()])),_0x1b11d9=new Set(),_0x118407=new Set();for(let _0x5cb609=0x0;_0x5cb609<_0x254b59['length'];_0x5cb609++)_0x9fef86(_0x254b59[_0x5cb609],_0x254b59,_0x5cb609+0x1);for(let _0x33aa5f=0x0;_0x33aa5f<_0x254b59['length'];_0x33aa5f++)_0x9fef86(_0x254b59[_0x33aa5f],_0x504524,0x0);const _0x4c6b4f=new Set();for(let _0x28f535=0x0;_0x28f535<_0x254b59['length'];_0x28f535++){const _0x2be495=_0x254b59[_0x28f535];!_0x118407['has'](_0x2be495)&&_0x2be495['previous']&&(_0x4c6b4f['add'](_0x2be495['previous']),_0x2be495['previous']['next']===_0x2be495&&(_0x2be495['previous']['next']=null),_0x2be495['previous']=null),!_0x1b11d9['has'](_0x2be495)&&_0x2be495['next']&&(_0x4c6b4f['add'](_0x2be495['next']),_0x2be495['next']['previous']===_0x2be495&&(_0x2be495['next']['previous']=null),_0x2be495['next']=null);}function _0x9fef86(_0x3d5ee2,_0x24b4b6,_0x53f3db){for(let _0x14b8d4=_0x53f3db;_0x14b8d4<_0x24b4b6['length'];_0x14b8d4++){const _0x5be58e=_0x5c2aab(_0x3d5ee2,_0x24b4b6[_0x14b8d4]);_0x5be58e&&(_0x5be58e[0x0]['next']=_0x5be58e[0x1],_0x5be58e[0x1]['previous']=_0x5be58e[0x0],_0x1b11d9['add'](_0x5be58e[0x0]),_0x118407['add'](_0x5be58e[0x1]));}}function _0x5c2aab(_0x1c42e3,_0x18aefa){if(_0x1c42e3['author']['id']!==_0x18aefa['author']['id'])return null;const _0x18bac2=_0x3729de['get'](_0x1c42e3)(_0x1c42e3,_0x18aefa,_0x142f5c['get'](_0x1c42e3),_0x142f5c['get'](_0x18aefa));if(!_0x18bac2)return null;return _0x3729de['get'](_0x18aefa)(_0x1c42e3,_0x18aefa,_0x142f5c['get'](_0x1c42e3),_0x142f5c['get'](_0x18aefa))?_0x18bac2[0x1]['commentThread']&&_0x18bac2[0x1]['commentThread']['length']?null:_0x18bac2:null;}_0x4c6b4f['size']&&this['_refreshSuggestionsChain'](_0x4c6b4f);}['_refreshAttributeSuggestionsChain'](_0x2142fd){if(0x0==_0x2142fd['length'])return;const _0x42252b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x18ff57=>'attribute'==_0x18ff57['type']&&_0x18ff57['_isDataLoaded']),_0x46b080=[],_0x5d0001=new Map();for(const _0x187f9e of _0x42252b){const _0x2173b8=_0x2fe077(_0x187f9e['attributes']);_0x5d0001['has'](_0x2173b8)||(_0x5d0001['set'](_0x2173b8,_0x46b080['length']),_0x46b080['push']([]));const _0x371f72=_0x5d0001['get'](_0x2173b8);_0x46b080[_0x371f72]['push'](_0x187f9e);}!(function(){_0x46b080['sort']((_0xc9542e,_0x367cef)=>{const _0x3d2676=_0xc9542e[0x0]['createdAt'],_0x218856=_0x367cef[0x0]['createdAt'];return _0x3d2676==_0x218856?_0xc9542e[0x0]['attributes']['groupId']<_0x367cef[0x0]['attributes']['groupId']?-0x1:0x1:_0x3d2676<_0x218856?-0x1:0x1;});for(const _0x1cc170 of _0x46b080)_0x1cc170['sort']((_0x3c0a4f,_0x1bfc00)=>_0x3c0a4f['id']<_0x1bfc00['id']?-0x1:0x1);}());for(let _0x2d5466=0x0;_0x2d5466<_0x46b080['length'];_0x2d5466++){if(0x0==_0x46b080[_0x2d5466]['length'])continue;const _0x590222=[];for(let _0x292b1b=_0x2d5466+0x1;_0x292b1b<_0x46b080['length'];_0x292b1b++)0x0!=_0x46b080[_0x292b1b]['length']&&_0x2bc0cb(_0x46b080[_0x2d5466],_0x46b080[_0x292b1b])&&_0x590222['push'](_0x292b1b);for(const _0x23d571 of _0x590222)_0x46b080[_0x2d5466]=_0x46b080[_0x2d5466]['concat'](_0x46b080[_0x23d571]),_0x46b080[_0x23d571]=[];}for(const _0x418d75 of _0x46b080)for(let _0x237d66=0x0;_0x237d66<_0x418d75['length'];_0x237d66++){const _0x587a2f=_0x418d75[_0x237d66+0x1]||null;_0x418d75[_0x237d66]['next']!==_0x587a2f&&(_0x418d75[_0x237d66]['next']=_0x587a2f);}for(const _0x16bddd of _0x46b080)for(let _0x1009a1=0x0;_0x1009a1<_0x16bddd['length'];_0x1009a1++){const _0xcb19cd=_0x16bddd[_0x1009a1-0x1]||null;_0x16bddd[_0x1009a1]['previous']!==_0xcb19cd&&(_0x16bddd[_0x1009a1]['previous']=_0xcb19cd);}function _0x2bc0cb(_0x3e9aa2,_0x461616){if(_0x3e9aa2[0x0]['attributes']['groupId']!==_0x461616[0x0]['attributes']['groupId']&&_0x3e9aa2[0x0]['author']!==_0x461616[0x0]['author'])return!0x1;if(!function(_0x2caa51,_0x12f35a){if(!_0x2caa51['hasComments']&&!_0x12f35a['hasComments'])return!0x0;if(_0x2caa51['hasComments']&&_0x12f35a['hasComments'])return!0x1;if(_0x2caa51['hasComments']&&_0x12f35a['createdAt']<_0x2caa51['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x12f35a['hasComments']&&_0x2caa51['createdAt']<_0x12f35a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3e9aa2[0x0],_0x461616[0x0]))return!0x1;const _0x1e4c0b=Ut(_0x3e9aa2[0x0]['attributes'],['groupId','trackingSessionId']),_0x44c4b4=Ut(_0x461616[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x17f578(_0x1e4c0b,_0x44c4b4))return!0x1;if(_0x3e9aa2[0x0]['attributes']['groupId']==_0x461616[0x0]['attributes']['groupId'])return!0x0;if(_0x3e9aa2[0x0]['attributes']['trackingSessionId']!==_0x461616[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x3e9aa2['every'](_0xc170ac=>_0x461616['some'](_0xf3f6b1=>_0xc170ac['getFirstRange']()['isEqual'](_0xf3f6b1['getFirstRange']())))&&_0x461616['every'](_0x30f228=>_0x3e9aa2['some'](_0x18ec58=>_0x30f228['getFirstRange']()['isEqual'](_0x18ec58['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x55dcd4){const _0x38a7de=Array['from'](_0x55dcd4),_0xccaf5e=this['getSuggestions']({'skipNotAttached':!0x0}),_0xc3e671=_0xccaf5e['filter'](_0x4cbed3=>!_0x55dcd4['has'](_0x4cbed3)),_0x4bb7fc=new Map(_0x38a7de['map'](_0x3f09f4=>[_0x3f09f4,this['_suggestionFactory']['getSuggestionCallback'](_0x3f09f4['type'],_0x3f09f4['subType'],'join')])),_0x729ff=new Map(_0xccaf5e['map'](_0x1a2dcf=>[_0x1a2dcf,_0x1a2dcf['getRanges']()]));for(let _0x4b23cd=0x0;_0x4b23cd<_0x38a7de['length'];_0x4b23cd++){if(_0x528d1c(this,_0x38a7de[_0x4b23cd],_0x38a7de,_0x4b23cd+0x1))return!0x0;}for(let _0x3cc86e=0x0;_0x3cc86e<_0x38a7de['length'];_0x3cc86e++){if(_0x528d1c(this,_0x38a7de[_0x3cc86e],_0xc3e671,0x0))return!0x0;}return!0x1;function _0x528d1c(_0x2b67c8,_0x52b7aa,_0x3d72c2,_0x2001d7){for(let _0x1f2e3b=_0x2001d7;_0x1f2e3b<_0x3d72c2['length'];_0x1f2e3b++){const _0x4cece6=_0x3d72c2[_0x1f2e3b];if(_0x4cece6['type']!==_0x52b7aa['type']||_0x4cece6['author']['id']!==_0x52b7aa['author']['id']||_0x4cece6['subType']!==_0x52b7aa['subType'])continue;if(!Wt(_0x52b7aa,_0x4cece6))continue;if('attribute'==_0x52b7aa['type']&&_0x52b7aa['data']['oldValue']!=_0x4cece6['data']['oldValue'])continue;if('attribute'==_0x52b7aa['type']&&_0x2b67c8['_isBlockAttribute'](_0x52b7aa['data']['key']))continue;if('formatBlock'==_0x52b7aa['type']){const _0x3dd0ce=_0x2b67c8['editor']['model'],_0x21b577=_0x52b7aa['getContainedElement']();if(_0x21b577&&(_0x3dd0ce['schema']['isObject'](_0x21b577)||_0x3dd0ce['schema']['isLimit'](_0x21b577)))continue;}const _0x5d6446=_0x4bb7fc['get'](_0x52b7aa),_0x4d9560=_0x729ff['get'](_0x52b7aa),_0x424471=_0x729ff['get'](_0x4cece6),_0x428aeb=_0x52b7aa['commentThread']&&_0x52b7aa['commentThread']['length'],_0x1ff173=_0x4cece6['commentThread']&&_0x4cece6['commentThread']['length'];if(!_0x428aeb&&_0x5d6446(_0x424471,_0x4d9560))return _0x2b67c8['_joinSuggestions'](_0x4cece6,_0x52b7aa),_0x729ff['delete'](_0x52b7aa),!0x0;if(!_0x1ff173&&_0x5d6446(_0x4d9560,_0x424471))return _0x2b67c8['_joinSuggestions'](_0x52b7aa,_0x4cece6),_0x729ff['delete'](_0x4cece6),!0x0;}return!0x1;}}['_joinSuggestions'](_0xa8b28b,_0x1993ed){if(_0xa8b28b['isMultiRange']){for(const _0x28bf75 of _0x1993ed['getRanges']())_0xa8b28b['addRange'](_0x28bf75);}else{const _0x151169=_0x1993ed['getFirstRange']()['end'];this['_setSuggestionRange'](_0xa8b28b,this['_model']['createRange'](_0xa8b28b['getFirstRange']()['start'],_0x151169));}_0x1993ed['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1925be,_0x2c9c60,_0x5d14e9){const _0x5959fc=_0x1925be['startsWith']('format')||_0x1925be['startsWith']('attribute')?'FORMATTING':_0x1925be['toUpperCase']();return o(this['editor']['locale'],_0x2c9c60+'_'+_0x5959fc+'_SUGGESTION_ANNOUNCEMENT',_0x5d14e9);}['_initAriaMarkerChangeAnnouncements'](){const _0x2fd82f=this['editor'];if(!_0x2fd82f['ui'])return;const {ariaLiveAnnouncer:_0x33bf36}=_0x2fd82f['ui'];_0x138bd3(this['_model'],({left:_0x533dd4,entered:_0xb9d3b9})=>{for(const _0x25afbe of _0x533dd4){const {group:_0x4335ec,type:_0x1220ff}=this['_splitMarkerName'](_0x25afbe['name']);if('suggestion'===_0x4335ec){_0x33bf36['announce'](this['_getMarkerAnnouncementText'](_0x1220ff,'LEAVE'));break;}}for(const _0x2e4a21 of _0xb9d3b9){const {group:_0x181ff1,type:_0xcbd3d7}=this['_splitMarkerName'](_0x2e4a21['name']);if('suggestion'===_0x181ff1){_0x33bf36['announce'](this['_getMarkerAnnouncementText'](_0xcbd3d7,'ENTER',_0x538503(_0x49096d)));break;}}});}['_processAttributeChanges'](_0x48eed6){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1e9bf1=this['editor'],_0x28db08=_0x1e9bf1['model']['document']['differ']['getChanges']();if(0x0==_0x28db08['length'])return!0x1;const _0x49a61c=[],_0x4b7b80=_0x28db08['filter'](_0x1d34fd=>'attribute'==_0x1d34fd['type']),_0x2c5f1a=_0x28db08['filter'](_0x4defc7=>'insert'==_0x4defc7['type']&&'$text'!=_0x4defc7['name']),_0x37e164=_0x28db08['filter'](_0xc93c91=>'remove'==_0xc93c91['type']&&'$text'!=_0xc93c91['name']);for(const _0x40f70d of _0x4b7b80)_0x49a61c['push']({'key':_0x40f70d['attributeKey'],'newValue':_0x40f70d['attributeNewValue'],'oldValue':_0x40f70d['attributeOldValue'],'range':Ht(_0x40f70d['range'],_0x1e9bf1['model'])});for(const _0x5b8dbb of _0x2c5f1a){const _0x4fd1a5=_0x37e164['find'](_0xfe3e01=>_0xfe3e01['position']['isEqual'](_0x5b8dbb['position']));_0x4fd1a5&&_0x49a61c['push']({'key':m,'newValue':_0x5b8dbb['name'],'oldValue':_0x4fd1a5['name'],'range':_0x1e9bf1['model']['createRangeOn'](_0x5b8dbb['position']['nodeAfter'])});}return 0x0!=_0x49a61c['length']&&this['_reduceExistingSuggestions'](_0x48eed6,_0x49a61c);}['_processAttributeSuggestions'](_0x3330a6){let _0x4fa1e4=!0x1;const _0x23b8b0=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3ea2e1=>_0x3ea2e1['data']['newRange']&&_0x3ea2e1['name']['startsWith']('suggestion:attribute:'));for(const _0x15a107 of _0x23b8b0){const {subType:_0x168b4d,id:_0x267c9b}=this['_splitMarkerName'](_0x15a107['name']),_0x588638=_0x168b4d['split']('|')[0x0];for(const _0x112f1b of this['getSuggestions']({'skipNotAttached':!0x0}))_0x112f1b['id']!=_0x267c9b&&'attribute'==_0x112f1b['type']&&_0x112f1b['data']&&_0x112f1b['data']['key']==_0x588638&&_0x112f1b['getFirstRange']()['isIntersecting'](_0x15a107['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x112f1b,_0x15a107['data']['newRange'],_0x3330a6),_0x4fa1e4=!0x0);}return _0x4fa1e4;}['recordAttributeChanges'](_0x55fd1f){this['_recordAttributeSuggestions']=!0x0,_0x55fd1f();}['_isRegisteredAttribute'](_0xbb2189){const _0x1d7802=this['_isBlockAttribute'](_0xbb2189),_0x38c83b=this['_inlineAttributeKeys']['has'](_0xbb2189);return _0x1d7802||_0x38c83b;}['_reduceExistingSuggestions'](_0xcddf79,_0x1e2311){if(0x0==_0x1e2311['length'])return!0x1;let _0x5489fc=!0x1;for(const _0x1fa094 of _0x1e2311){const _0x49063a=this['_findSuggestions'](_0x1fa094['range'],'attribute')['filter'](_0x3eaa69=>!_0x3eaa69['meta']['isNextTo'])['map'](_0x51ef30=>_0x51ef30['suggestion']),_0x537ccd=_0x2fe077({'newValue':_0x1fa094['newValue']});_0x49063a['filter'](_0x17e91a=>{const [_0xa53ea5,_0x4e23ed]=_0x17e91a['subType']['split']('|');return _0xa53ea5==_0x1fa094['key']&&_0x4e23ed!=_0x537ccd;})['forEach'](_0x431de9=>{this['_reduceSuggestionAttributeRange'](_0x431de9,_0x1fa094['range'],_0xcddf79),_0x5489fc=!0x0;});}return _0x5489fc;}['_reduceSuggestionAttributeRange'](_0x4ef69d,_0x2cf90b,_0x2801a6){const _0x190fbe=_0x4ef69d['getFirstRange']()['getDifference'](_0x2cf90b);0x0!==_0x190fbe['length']?0x1!==_0x190fbe['length']?this['_breakSuggestionMarker'](_0x4ef69d,_0x2cf90b['start'],_0x2cf90b['end']):this['_setSuggestionRange'](_0x4ef69d,_0x190fbe[0x0]):_0x2801a6['removeMarker'](_0x4ef69d['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xd69aeb){this['_editor']=_0xd69aeb,this['_model']=_0xd69aeb['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5b8b41,_0x35992d,_0x4ccd5b,_0x5bce8b,_0x24bb61,_0x4189f3,_0x5c542b){return new T(this['_model'],{'type':_0x5b8b41,'subType':_0x35992d,'id':_0x4ccd5b,'originalSuggestionId':_0x5c542b,'author':_0x5bce8b,'creator':_0x5bce8b,'attributes':_0x24bb61,'onAttributesChange':_0x4189f3,'onAccept':(..._0x44d4b4)=>this['getSuggestionCallback'](_0x5b8b41,_0x35992d,'accept')(..._0x44d4b4),'onDiscard':(..._0x307eff)=>this['getSuggestionCallback'](_0x5b8b41,_0x35992d,'discard')(..._0x307eff)});}['registerCustomCallback'](_0x3bf96f,_0x3e9390,_0x249de0,_0x225e6c){const _0x1498a4=_0x3bf96f+':'+_0x3e9390+':'+_0x249de0;this['_customCallbacks']['set'](_0x1498a4,_0x225e6c);}['getSuggestionCallback'](_0x4947c6,_0x3028fd,_0x4a5ff7){const _0x362f87=_0x4947c6+':'+_0x3028fd+':'+_0x4a5ff7;return this['_customCallbacks']['get'](_0x362f87)||this['_defaultCallbacks']['get'](_0x4947c6+':'+_0x4a5ff7);}['_registerDefaultCallbacks'](){const _0x455c4d=()=>!0x1,_0x4d071d=_0x187866=>{_0x187866['sort']((_0x1bce9b,_0x4f83d0)=>_0x1bce9b['start']['isBefore'](_0x4f83d0['start'])?0x1:-0x1),this['_model']['change'](_0x1b4c2c=>{for(const _0x215de of _0x187866){let _0x1bfc9a;_0x1bfc9a=_0x215de['end']['isAtEnd']&&_0x215de['end']['parent']==_0x215de['start']['nodeAfter']?_0x1b4c2c['createSelection'](_0x215de['start']['nodeAfter'],'on'):_0x1b4c2c['createSelection'](_0x215de),this['_model']['deleteContent'](_0x1bfc9a,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x2fddd8=(_0x552e47,_0x1d8f54)=>{_0x1d8f54&&this['_model']['change'](_0x1ab9b9=>{const {commandName:_0xa30b3b,commandParams:_0x4541de=[]}=_0x1d8f54,_0x2633a8=_0x552e47['map'](_0x36410d=>(Pt(_0x36410d)&&(_0x36410d=this['_model']['createRange'](_0x36410d['end'])),_0x36410d))['filter'](_0xe1a750=>'$graveyard'!==_0xe1a750['root']['rootName']);if(_0x2633a8['length']<0x1)return;const _0x524d37=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3013f6=>_0x334b1a['fromRange'](_0x3013f6));_0x1ab9b9['setSelection'](_0x2633a8);for(const _0x3de3f3 of this['_editor']['commands']['commands']())_0x3de3f3['refresh']();_0x4541de['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xa30b3b,..._0x4541de);const _0x1ea174=_0x524d37['filter'](_0x2cd14e=>'$graveyard'!=_0x2cd14e['root']['rootName']);_0x1ea174['length']>0x0&&_0x1ab9b9['setSelection'](_0x1ea174);for(const _0x296807 of _0x524d37)_0x296807['detach']();});},_0x237d15=(_0x598ff0,_0x457f0c)=>0x1==_0x598ff0['length']&&0x1==_0x457f0c['length']&&_0x598ff0[0x0]['end']['isEqual'](_0x457f0c[0x0]['start']),_0x1f7b49=(_0x48beb6,_0x102a05,_0x5cc86c,_0x11c972)=>zt(_0x48beb6,_0x102a05,_0x5cc86c,_0x11c972)?[_0x48beb6,_0x102a05]:zt(_0x102a05,_0x48beb6,_0x11c972,_0x5cc86c)?[_0x102a05,_0x48beb6]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x455c4d),this['_defaultCallbacks']['set']('insertion:discard',_0x4d071d),this['_defaultCallbacks']['set']('insertion:join',_0x237d15),this['_defaultCallbacks']['set']('insertion:chain',_0x1f7b49),this['_defaultCallbacks']['set']('deletion:accept',_0x4d071d),this['_defaultCallbacks']['set']('deletion:discard',_0x455c4d),this['_defaultCallbacks']['set']('deletion:join',_0x237d15),this['_defaultCallbacks']['set']('deletion:chain',_0x1f7b49),this['_defaultCallbacks']['set']('formatInline:accept',_0x2fddd8),this['_defaultCallbacks']['set']('formatInline:discard',_0x455c4d),this['_defaultCallbacks']['set']('formatInline:join',_0x237d15),this['_defaultCallbacks']['set']('formatInline:chain',_0x455c4d),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2fddd8),this['_defaultCallbacks']['set']('formatBlock:discard',_0x455c4d),this['_defaultCallbacks']['set']('formatBlock:join',_0x237d15),this['_defaultCallbacks']['set']('formatBlock:chain',_0x455c4d),this['_defaultCallbacks']['set']('attribute:accept',_0x455c4d),this['_defaultCallbacks']['set']('attribute:discard',(_0x2e1216,_0x201f0e)=>{if(!_0x201f0e)return;const _0x103cea=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x1d6a56=>{if(_0x201f0e['key']==m)for(const _0x45deac of _0x2e1216){const _0x6474e5=_0x45deac['start']['nodeAfter'],_0x539feb=_0x201f0e['oldValue'];_0x1d6a56['rename'](_0x6474e5,_0x539feb);}else{if(_0x103cea['_isBlockAttribute'](_0x201f0e['key'])){for(const _0x2a98bb of _0x2e1216)void 0x0!==_0x201f0e['oldValue']?_0x1d6a56['setAttribute'](_0x201f0e['key'],_0x201f0e['oldValue'],_0x2a98bb['start']['nodeAfter']):_0x1d6a56['removeAttribute'](_0x201f0e['key'],_0x2a98bb['start']['nodeAfter']);}else{for(const _0x32f530 of _0x2e1216)_0x201f0e['oldValue']?_0x1d6a56['setAttribute'](_0x201f0e['key'],_0x201f0e['oldValue'],_0x32f530):_0x1d6a56['removeAttribute'](_0x201f0e['key'],_0x32f530);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x237d15);}}function Ft(_0x4a9d80,_0xe81ce2,_0x1ff9b7){for(const _0x283584 of _0xe81ce2['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x283584['root']==_0x283584)return!0x1;if(!_0x1ff9b7['containsItem'](_0x283584))return!0x1;if(_0x4a9d80['isObject'](_0x283584)||_0x4a9d80['isLimit'](_0x283584))return!0x0;}return!0x1;}function Pt(_0x3d424b){return _0x3d424b['end']['parent']==_0x3d424b['start']['nodeAfter']&&_0x3d424b['end']['isAtStart'];}function Gt(_0x864747,_0x2cd35f,_0xfe925d,_0x5acfd8){const _0x9e2997=_0x50d7c8=>!_0x50d7c8['item']['is']('$textProxy')&&!_0x5acfd8['isObject'](_0x50d7c8['item']),_0x4029c5=_0x864747['start']['getLastMatchingPosition'](_0x9e2997),_0x95678b=_0x864747['end']['getLastMatchingPosition'](_0x9e2997,{'direction':'backward'});return(!_0x864747['start']['isEqual'](_0x4029c5)||!_0x864747['end']['isEqual'](_0x95678b))&&(_0x4029c5['isBefore'](_0x95678b)?_0xfe925d['updateMarker'](_0x2cd35f,{'range':_0xfe925d['createRange'](_0x4029c5,_0x95678b)}):_0xfe925d['removeMarker'](_0x2cd35f),!0x0);}function Lt(_0xa835ad){return _0x2fe077(_0xa835ad);}function Jt(_0x5b0f62){const _0x2b48d3=_0x5b0f62['start']['nodeAfter'];return _0x2b48d3&&_0x2b48d3['is']('element');}function Kt(_0x221709){return!Pt(_0x221709)&&!function(_0x533627){return _0x533627['start']['parent']==_0x533627['end']['nodeBefore']&&_0x533627['start']['isAtEnd'];}(_0x221709);}function Ht(_0x285217,_0x5dbde8){return null==_0x285217['end']['nodeBefore']&&_0x285217['end']['parent']==_0x285217['start']['nodeAfter']?qt(_0x285217['start']['nodeAfter'],_0x5dbde8):_0x285217;}function qt(_0x2202c7,_0x178e0d){const _0x1110f8=_0x178e0d['schema']['isObject'](_0x2202c7)||_0x178e0d['schema']['isSelectable'](_0x2202c7);return _0x178e0d['createRange'](_0x178e0d['createPositionAt'](_0x2202c7,'before'),_0x1110f8?_0x178e0d['createPositionAfter'](_0x2202c7):_0x178e0d['createPositionAt'](_0x2202c7,'end'));}function zt(_0x294583,_0xced17e,_0x226bce,_0x16b215){return!!Wt(_0x294583,_0xced17e)&&_0x226bce['end']['isEqual'](_0x16b215['start']);}function Wt(_0x267a96,_0x4ea59d){if(!_0x267a96['_isDataLoaded']||!_0x4ea59d['_isDataLoaded'])return!0x1;const _0x56c82f=new Set(Object['keys'](_0x267a96['attributes'])),_0x4e4313=new Set(Object['keys'](_0x4ea59d['attributes']));if(_0x56c82f['delete']('groupId'),_0x4e4313['delete']('groupId'),0x0==_0x56c82f['size']&&0x0==_0x4e4313['size'])return!0x0;if(_0x56c82f['size']!=_0x4e4313['size'])return!0x1;const _0x3854ad={..._0x267a96['attributes']},_0x2f81ad={..._0x4ea59d['attributes']};return delete _0x3854ad['groupId'],delete _0x2f81ad['groupId'],JSON['stringify'](_0x3854ad)==JSON['stringify'](_0x2f81ad);}function Qt(_0x459499,_0x3ba21f){const _0x1c2ca8=Xt(_0x459499['attributes']),_0xc10a30=Xt(_0x3ba21f);if(!_0x459499['_isDataLoaded'])return!0x1;for(const _0x4ddb19 of Object['keys'](_0xc10a30))if(!_0x17f578(_0x1c2ca8[_0x4ddb19],_0xc10a30[_0x4ddb19]))return!0x1;return!0x0;}function Xt(_0x51bec3){const _0x18bea4=Object['assign']({},_0x51bec3);return delete _0x18bea4['skipNestingCheck'],delete _0x18bea4['tablePasteChainId'],_0x18bea4;}class pe extends/* #__PURE__ -- @preserve */
26
- _0x4f27e0(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x29c21f,_0x365790,_0x446f2c,_0x48fd6e){super(),this['model']=_0x365790,this['view']=_0x446f2c,this['commentThreadController']=_0x48fd6e,this['_editor']=_0x29c21f,this['_acceptCommand']=_0x29c21f['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x29c21f['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x204be6,_0x4b41f8)=>_0x204be6||_0x4b41f8),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x323da6=>_0x323da6&&this['_editor']['model']['canEditAt'](_0x365790['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3f5c41=>_0x3f5c41&&this['_editor']['model']['canEditAt'](_0x365790['getRanges']())),this['_pendingAction']=null,_0x446f2c['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x446f2c,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x446f2c,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x446f2c,'change:isDirty',()=>{_0x446f2c['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 _0x38623d=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x38623d);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x59a488{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2d5ef3,_0x3eb8bc,_0x3d158b,_0x279cbe){super(_0x2d5ef3),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x395108(_0x2d5ef3,o(_0x2d5ef3,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3eb8bc['authoredAt']),this['bind']('authoredAt')['to'](_0x3eb8bc),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',_0x3eb8bc,'authoredAt',this,'descriptionParts',(_0x37b940,_0x53eb6b,_0x521e0a)=>{const _0x381c19=_0x521e0a['map'](_0x1dd608=>ls(_0x1dd608['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x37b940-0x1,_0x3eb8bc['author']['name'],_0x53eb6b?_0x279cbe['formatDateTime'](_0x53eb6b):'',new DOMParser()['parseFromString'](_0x381c19,'text/html')['body']['textContent']]);}),this['focusables']=new _0x56d81b(),this['focusTracker']=new _0x231eb3(),this['keystrokes']=new _0x1ffabe(),this['focusCycler']=new _0x3129c0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3931e7=>_0x3931e7['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3eb8bc,this['_localUser']=_0x3d158b,this['_config']=_0x279cbe,_0x279cbe['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x163ace(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4cd545}=this['_config'];this['commentsListView']=new _0x4cd545(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',_0x7cfbf6=>_0x7cfbf6+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3cf5ce,_0x4f92fb)=>_0x3cf5ce||!!_0x4f92fb);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4c7ae8}=this['_config'],_0x59e5f8=new _0x4c7ae8(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xfe4902=_0x59e5f8['commentInputView'];return _0x59e5f8['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xfe4902,'value',(_0x428201,_0x1bc52f,_0x2b593b)=>!!_0x2b593b||_0x428201&&!_0x1bc52f),_0xfe4902['on']('submit',(_0x16ab9c,_0x564b21)=>{this['fire']('addComment',_0x564b21),_0xfe4902['editor']['setData']('');}),_0xfe4902['on']('cancel',()=>this['focus']()),_0xfe4902['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x59e5f8;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x59b7e2,_0x4bd3f6,_0x4b688f,_0x2729ef){super(_0x59b7e2,_0x4bd3f6,_0x4b688f,_0x2729ef),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3b4135=>_0x3b4135&&_0x3b4135[0x0]?_0x3b4135[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2d88b8,_0x34823f)=>{let _0x25d26d='';for(const _0x27ecc3 of _0x2d88b8)_0x25d26d+='<p>'+ls(_0x27ecc3['content'],_0x27ecc3['color'])+'</p>';return _0x34823f?_0x25d26d:_0x347682(_0x25d26d,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2729ef['SuggestionView'](_0x59b7e2,_0x4bd3f6,{'formatDateTime':_0x2729ef['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 _0x3ac019=this['bindTemplate'],_0x4acc01=[this['suggestionView']];return this['commentsListView']&&_0x4acc01['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4acc01['push'](this['commentThreadInputView']),_0x4acc01['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3ac019['if']('isActive','ck-suggestion-wrapper--active'),_0x3ac019['to']('type',_0x4573c9=>'ck-suggestion-'+_0x4573c9),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':_0x3ac019['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4acc01};}['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 _0x59a488{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3a7235,_0x2ce77b,_0x254f25){super(_0x3a7235),this['_model']=_0x2ce77b,this['_config']=_0x254f25,this['set']('description',''),this['bind']('authoredAt')['to'](_0x2ce77b),this['acceptButton']=this['_createButton'](o(_0x3a7235,'Accept\x20suggestion'),_0x34b441,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x3a7235,'Discard\x20suggestion'),_0x40347d,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3b83ce(_0x3a7235,_0x2ce77b['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x56d81b([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x231eb3(),this['keystrokes']=new _0x1ffabe(),this['focusCycler']=new _0x3129c0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x8e28e7=>_0x8e28e7['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x321771=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x321771['innerHTML']=this['description'],this['on']('change:description',(_0x29921a,_0x140729,_0x3d69cd)=>{_0x321771['innerHTML']=_0x3d69cd;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x52a1e2=this['bindTemplate'],_0x5bb0ac=[{'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':_0x52a1e2['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x52a1e2['to']('authoredAt',_0x4fbb39=>this['_config']['formatDateTime'](_0x4fbb39))}]}]},{'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']&&_0x5bb0ac['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':_0x5bb0ac}]};}['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'](_0x2d3b9f,_0xf7f6d2,_0x26a969,_0x2a5cff,_0x4302bb){const _0x50f986=new _0x2ec40b(this['locale']);return _0x50f986['set']({'label':_0x2d3b9f,'icon':_0xf7f6d2,'tooltip':!0x0,'tooltipPosition':_0x4302bb}),_0x50f986['extendTemplate']({'attributes':{'class':_0x26a969}}),_0x50f986['on']('execute',()=>{this['fire'](_0x2a5cff,this['_model']['id']);}),_0x50f986;}['_setupKeyboardNavigation'](){const _0x577226=this['element'];this['keystrokes']['listenTo'](_0x577226);for(const _0x16028e of this['focusables'])this['focusTracker']['add'](_0x16028e['element']),this['keystrokes']['listenTo'](_0x16028e['element']);this['keystrokes']['set']('enter',(_0x41c443,_0x3d2def)=>{_0x577226===_0x41c443['target']&&(this['focusCycler']['focusFirst'](),_0x3d2def());}),this['keystrokes']['set']('esc',(_0x1855af,_0x5c54c3)=>{_0x577226!==_0x1855af['target']&&(this['focus'](),_0x5c54c3());});}}class u extends _0x559983{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x597f1a,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x568d6b){super(_0x568d6b),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x121840=this['editor']['config'];_0x121840['define']('trackChanges.SuggestionThreadView',fe),_0x121840['define']('trackChanges.SuggestionView',we),_0x121840['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x121840['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x445c7a,_0x4f9a22){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xf92fc4,_0x5b0842]of this['_handleControllerBuffer']){const _0x104f0c=this['_suggestionToController']['has'](_0xf92fc4);_0x104f0c||_0x5b0842?_0x104f0c&&_0x5b0842&&this['_destroyController'](_0xf92fc4):this['_initializeController'](_0xf92fc4);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x445c7a,_0x4f9a22);}['init'](){const _0x209af1=this['editor'],_0x1de06b=_0x209af1['plugins']['get']('TrackChangesEditing'),_0x5225da=_0x209af1['plugins']['get']('Annotations'),_0x16118f=_0x209af1['plugins']['get']('EditorAnnotations'),_0x1cb947=_0x209af1['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x16118f['addSourceCollector'](()=>{const _0x3a907b=[];for(const [_0x1b04a8,_0x2ffe4d]of Array['from'](this['_suggestionToController'])){const _0x2d581c=_0x1b04a8['getAllAdjacentSuggestions'](),_0x2a5a38=[];for(const _0xc7b089 of _0x2d581c){if(!_0xc7b089['isInContent'])continue;if(_0xc7b089['isMultiRange']){_0x2a5a38['push'](..._0xc7b089['getRanges']());continue;}const _0x3d229e=_0xc7b089['getFirstRange']();if(_0x2a5a38['length']>0x0){const _0x23b6cb=_0x2a5a38[0x0]['getJoined'](_0x3d229e);if(_0x23b6cb){_0x2a5a38[0x0]=_0x23b6cb;continue;}}_0x2a5a38['push'](_0x3d229e);}_0x3a907b['push']([_0x2ffe4d['view'],_0x2a5a38]);}return _0x3a907b;}),this['listenTo'](_0x1de06b,'suggestionLoaded',(_0xccd635,_0x1602bb)=>{this['listenTo'](_0x1602bb,'change:previous',(_0x55206a,_0x4be9c3,_0x1d2672,_0x1257c6)=>{_0x1602bb['isInContent']&&(null==_0x1d2672?(this['_updateController'](_0x1257c6['head']),this['_handleSuggestionControllerDelayed'](_0x1602bb,!0x1)):(this['_updateController'](_0x1d2672['head']),null==_0x1257c6&&this['_handleSuggestionControllerDelayed'](_0x1602bb,!0x0)));}),null!==_0x1602bb['previous']?this['_updateController'](_0x1602bb['head']):this['_handleSuggestionControllerDelayed'](_0x1602bb,!0x1);}),this['listenTo'](_0x1de06b,'suggestionUnloaded',(_0x3a9ae3,_0x3e1594,_0x7eb405)=>{this['stopListening'](_0x3e1594,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3e1594),this['_suggestionToController']['has'](_0x3e1594)&&this['_destroyController'](_0x3e1594),_0x7eb405&&this['_updateController'](_0x7eb405['head']);}),this['listenTo'](_0x1de06b,'suggestionChanged',(_0x282d1f,_0x381b4d)=>{this['_updateController'](_0x381b4d);}),this['listenTo'](_0x5225da,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1cb947,'addComment',(_0xc75cd0,{threadId:_0x3057c7,isFromAdapter:_0x3e3324})=>{if(_0x3e3324||!_0x1de06b['hasSuggestion'](_0x3057c7))return;const _0x2938ee=_0x1de06b['getSuggestion'](_0x3057c7);this['_suggestionToController']['get'](_0x2938ee)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xbb86a7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x7ffad4;for(const _0x286c37 in _0xbb86a7){const _0x38dae0=_0x286c37,_0x450e3f=_0xbb86a7[_0x38dae0];if('trackChangesLicenseKeyValid'==_0x450e3f||'trackChangesLicenseKeyInvalid'==_0x450e3f||'trackChangesLicenseKeyExpired'==_0x450e3f||'trackChangesLicenseKeyDomainLimit'==_0x450e3f||'trackChangesLicenseKeyNotAllowed'==_0x450e3f||'trackChangesLicenseKeyEvaluationLimit'==_0x450e3f||'trackChangesLicenseKeyTrialLimit'==_0x450e3f||'trackChangesLicenseKeyUsageLimit'==_0x450e3f){delete _0xbb86a7[_0x38dae0],_0x7ffad4=_0x450e3f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x7ffad4&&_0xbb86a7['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x7ffad4&&_0xbb86a7['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x7ffad4&&_0xbb86a7['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x7ffad4&&_0xbb86a7['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x7ffad4&&_0xbb86a7['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x7ffad4&&_0xbb86a7['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x7ffad4&&_0xbb86a7['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x2eedf6){const _0x35b0da=this['_suggestionToController']['get'](_0x2eedf6);if(!_0x35b0da)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x35b0da['view'])||null;}['getSuggestionForAnnotation'](_0x58a4e7){const _0xa4afff=this['_viewToController']['get'](_0x58a4e7['innerView']);return _0xa4afff?_0xa4afff['model']:null;}['_refreshActiveMarkers'](){const _0x12aefd=this['editor']['plugins']['get']('Annotations'),_0x207d2d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x444ac6=Array['from'](_0x12aefd['activeAnnotations'],_0x3eacbc=>_0x3eacbc['innerView'])['filter'](_0x7bd554=>this['_viewToController']['has'](_0x7bd554)),_0x3b32b2=[];for(const _0x3e8146 of _0x444ac6){const _0x391d51=this['_viewToController']['get'](_0x3e8146)['model']['getAllAdjacentSuggestions']();_0x3b32b2['push'](..._0x391d51['reduce']((_0x51a6ca,_0x4e9de9)=>[..._0x51a6ca,..._0x4e9de9['getMarkerNames']()],[]));}_0x207d2d['activeMarkers']=_0x3b32b2;}['_addUIComponentsToFactory'](){const _0x35fba4=this['editor'],_0x479166=_0x35fba4['locale'],_0x41c929=o(_0x479166,'Track\x20changes'),_0x1efd51=new _0x30f5d4([{'type':'switchbutton','model':new _0x4d3856({'withText':!0x0,'isToggleable':!0x0,'label':_0x41c929,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4d3856({'withText':!0x0,'label':o(_0x479166,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4d3856({'withText':!0x0,'label':o(_0x479166,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4d3856({'withText':!0x0,'label':o(_0x479166,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4d3856({'withText':!0x0,'label':o(_0x479166,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x35fba4['plugins']['has']('TrackChangesPreview')&&_0x1efd51['addMany']([{'type':'separator'},{'type':'button','model':new _0x4d3856({'withText':!0x0,'label':o(_0x479166,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3213ae of _0x1efd51)if(ke(_0x3213ae)){const _0x3a5a3e=_0x35fba4['commands']['get'](_0x3213ae['model']['commandName']);_0x3213ae['model']['bind']('isOn','isEnabled')['to'](_0x3a5a3e,'value','isEnabled');}_0x35fba4['ui']['componentFactory']['add']('trackChanges',_0x1f2da9=>this['_createToolbarButton'](_0x1f2da9,_0x1efd51,_0x41c929)),_0x35fba4['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3eeccb=>this['_createMenuBarMenu'](_0x3eeccb,_0x1efd51,_0x41c929));}['_createToolbarButton'](_0x34b562,_0x4bb64f,_0x394a58){const _0x4f3a81=_0x1e80c3(_0x34b562,_0x552a5f),_0x3c27d2=this['editor']['commands']['get']('trackChanges');_0x4f3a81['buttonView']['set']({'tooltip':_0x394a58,'label':_0x394a58,'icon':_0x2f5b1a}),_0x4f3a81['buttonView']['bind']('isOn')['to'](_0x3c27d2,'value'),_0x4f3a81['buttonView']['on']('execute',()=>{_0x3c27d2['execute'](),this['editor']['editing']['view']['focus']();}),_0x56cc45(_0x4f3a81,_0x4bb64f,{'role':'menu'});const _0x5be482=[];for(const _0xee336c of _0x4bb64f)ke(_0xee336c)&&_0x5be482['push'](this['editor']['commands']['get'](_0xee336c['model']['commandName']));const _0x5088a2=_0x4f3a81['buttonView'];return _0x5088a2['actionView']['unbind']('isEnabled'),_0x5088a2['arrowView']['unbind']('isEnabled'),_0x5088a2['actionView']['bind']('isEnabled')['to'](_0x3c27d2,'isEnabled'),_0x5088a2['arrowView']['bind']('isEnabled')['toMany'](_0x5be482,'isEnabled',(..._0x54f444)=>_0x54f444['some'](_0x29b87e=>_0x29b87e)),_0x4f3a81['on']('execute',_0x2639c4=>{this['editor']['execute'](_0x2639c4['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4f3a81;}['_createMenuBarMenu'](_0x1ecba6,_0x2870e8,_0x22684a){const _0x2dde9d=new _0x2f852e(_0x1ecba6),_0x506995=this['editor']['commands']['get']('trackChanges');_0x2dde9d['buttonView']['set']({'label':_0x22684a,'icon':_0x2f5b1a});const _0x3daf20=new _0xa85213(_0x1ecba6);for(const _0x403e03 of _0x2870e8){if('separator'==_0x403e03['type']){_0x3daf20['items']['add'](new _0x381151(_0x1ecba6));continue;}const _0x5c6c9b=new _0x32fd6e(_0x1ecba6,_0x2dde9d),_0x2f1751=new _0x5ce50d(_0x1ecba6),_0x15cfce=_0x403e03['model'];_0x2f1751['bind'](...Object['keys'](_0x15cfce))['to'](_0x15cfce),_0x2f1751['delegate']('execute')['to'](_0x2dde9d),_0x2f1751['on']('execute',()=>{this['editor']['execute'](_0x15cfce['commandName']),this['editor']['editing']['view']['focus']();}),_0x5c6c9b['children']['add'](_0x2f1751),_0x3daf20['items']['add'](_0x5c6c9b);}return _0x2dde9d['bind']('isEnabled')['to'](_0x506995,'isEnabled'),_0x2dde9d['panelView']['children']['add'](_0x3daf20),_0x2dde9d;}['_initializeController'](_0x9c0179){const _0x5a8483=this['editor'],_0x49bf04=_0x5a8483['config'],_0x24c815=_0x5a8483['plugins']['get']('Annotations'),_0x1519a7=_0x5a8483['plugins']['get']('CommentsRepository'),_0x175632=_0x5a8483['plugins']['get']('EditorAnnotations'),_0x317e0f=_0x5a8483['plugins']['get'](_0x597f1a)['me'],_0x54eb7c=_0x49bf04['get']('trackChanges')['SuggestionThreadView'],_0x3fa1da=_0x49bf04['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2b4fbe,CommentThreadInputView:_0x9575be}=_0x5a8483['plugins']['get']('CommentsUI');let _0x228758,_0xeb176,_0x1b282f;this['_annotationViews']['has'](_0x9c0179['id'])?(_0xeb176=this['_annotationViews']['get'](_0x9c0179['id']),_0x228758=_0xeb176['mainView']):(_0x228758=new _0x54eb7c(_0x5a8483['locale'],_0x9c0179,_0x317e0f,{'disableComments':this['_disableComments'],'editorConfig':{..._0x49bf04['get']('comments.editorConfig'),'licenseKey':_0x49bf04['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x49bf04['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x49bf04['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x49bf04['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4f5d71(_0x49bf04['get']('locale'),_0x5a8483['locale']),'CommentView':_0x49bf04['get']('comments')['CommentView'],'CommentsListView':_0x2b4fbe,'CommentThreadInputView':_0x9575be,'SuggestionView':_0x3fa1da}),_0x228758['suggestionView']['acceptButton']['on']('execute',()=>{_0x5a8483['editing']['view']['focus']();}),_0x228758['suggestionView']['discardButton']['on']('execute',()=>{_0x5a8483['editing']['view']['focus']();}),_0xeb176=_0x24c815['createAnnotationView'](this['editor']['locale'],_0x228758),_0xeb176['bind']('isDirty')['to'](_0x228758,'isDirty'),_0xeb176['bind']('length')['to'](_0x228758),_0xeb176['bind']('type')['to'](_0x228758,'type',_0x6c2355=>'suggestion-'+_0x6c2355),_0x228758['on']('escape',()=>{_0x1b282f['fire']('escape');}),this['_annotationViews']['set'](_0x9c0179['id'],_0xeb176));const _0x5c0715=_0x1519a7['createCommentThreadController'](_0x9c0179['commentThread'],_0x228758),_0x5b8f09=new pe(_0x5a8483,_0x9c0179,_0x228758,_0x5c0715),_0x3e40bd=_0x9c0179['getAllAdjacentSuggestions']()['filter'](_0x5502ba=>_0x5502ba['isInContent']);_0x228758['descriptionParts']=_0x5a8483['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x3e40bd),this['_suggestionToController']['set'](_0x9c0179,_0x5b8f09),this['_viewToController']['set'](_0x228758,_0x5b8f09),_0x1b282f=_0x24c815['createAnnotation']({'view':_0xeb176,'target':()=>{const _0x7327c=[],_0xd9abcb=_0x9c0179['getAllAdjacentSuggestions']()['filter'](_0x3074d9=>_0x3074d9['isInContent']);for(const _0x5beb6c of _0xd9abcb)_0x7327c['push'](..._0x5beb6c['getMarkers']());return _0x3a0d9a(_0x5a8483['editing'],_0x7327c);},'type':()=>'suggestion-'+_0x5b8f09['view']['type']}),_0x1519a7['_bindAnnotationToEditors'](_0x228758,_0x1b282f),_0x24c815['add'](_0x1b282f),_0x175632['registerAnnotation'](_0x1b282f);}['_destroyController'](_0x46730c){const _0xdf4d16=this['editor']['plugins']['get']('CommentsRepository'),_0x2ab652=this['editor']['plugins']['get']('Annotations'),_0x54bf61=this['_suggestionToController']['get'](_0x46730c),_0x182b0b=_0x54bf61['view'],_0x202094=_0x2ab652['getByInnerView'](_0x182b0b);_0xdf4d16['_unbindEditors'](_0x182b0b),_0x202094&&_0x2ab652['remove'](_0x202094),this['_suggestionToController']['delete'](_0x46730c),this['_viewToController']['delete'](_0x182b0b),_0x54bf61['destroy']();}['_updateController'](_0x107d65){if(!_0x107d65['isInContent']||!this['_suggestionToController']['has'](_0x107d65))return;const _0x2ce008=this['editor']['plugins']['get']('TrackChangesEditing'),_0x229463=this['_suggestionToController']['get'](_0x107d65),_0x2a37b7=_0x107d65['getAllAdjacentSuggestions']();_0x229463['view']['descriptionParts']=_0x2ce008['descriptionFactory']['getDescriptions'](_0x2a37b7);}['destroy'](){for(const _0x40bc4f of this['_suggestionToController']['keys']())this['_destroyController'](_0x40bc4f);for(const _0x3363d1 of this['_annotationViews']['values']())_0x3363d1['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x2e486b){return'model'in _0x2e486b;}class Fe extends _0x559983{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x4e470c){this['editor']['plugins']['get'](d)['adapter']=_0x4e470c;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x37f429){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x37f429);}['getSuggestions']({skipNotAttached:_0x51d968=!0x1,toJSON:_0x5c0160=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x51d968,'toJSON':_0x5c0160});}['getSuggestion'](_0x4ecf16){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x4ecf16);}}const p=['Pagination'];class re extends _0x559983{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2e3e59=this['editor'];if(_0x2e3e59['config']['define']('trackChangesData.editorCreator',_0x4f00e9=>{const _0x14344d=_0x2e3e59['model']['document']['getRootNames']()['reduce']((_0x10c1aa,_0x12e03c)=>(_0x10c1aa[_0x12e03c]='',_0x10c1aa),{});return _0x2e3e59['constructor']['create'](_0x14344d,_0x4f00e9);}),'function'!=typeof _0x2e3e59['config']['get']('trackChangesData')['editorCreator'])throw new _0x346a74('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x47bf8c){return P(this['editor'],!0x0,_0x47bf8c);}['getDataWithDiscardedSuggestions'](_0x20e1af){return P(this['editor'],!0x1,_0x20e1af);}}class Ge extends _0x559983{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1385dc){function _0x58fc20(_0x4b64d1){return _0x4b64d1['map'](_0x22f813=>String['fromCharCode'](_0x22f813))['join']('');}super(_0x1385dc),this['result']='end',_0x1385dc[_0x58fc20([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x58fc20([0x76,0x69,0x65,0x77])][_0x58fc20([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x58fc20([0x61,0x75,0x74,0x6f]),_0x1385dc[_0x58fc20([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x58fc20([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x58fc20([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x58fc20([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x58fc20([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(_0x1c90f4){return void 0x0!==_0x1c90f4['getRootsAttributes'];}async function P(_0xdf611,_0x7afc97,_0x4d2933){const _0x12148f=_0x17c6af(_0xdf611,p);_0x12148f['plugins']['push'](d,Ge),_0x12148f['rootsAttributes']=He(_0xdf611)?_0xdf611['getRootsAttributes']():void 0x0;const _0x3247e7=document['createDocumentFragment'](),_0x5a6204=_0xdf611['config']['get']('trackChangesData')['editorCreator'],_0x2c4d4c=await _0x5a6204(_0x12148f,()=>function(_0x5b552c){const _0x23480c=document['createElement']('div');return _0x5b552c['appendChild'](_0x23480c),_0x23480c;}(_0x3247e7));!function(_0x536be4,_0x3b8f27){const _0x33b580=_0x536be4['model']['document']['getRootNames']()['reduce']((_0x25ec2d,_0x5dbfb4)=>(_0x25ec2d[_0x5dbfb4]=_0x536be4['data']['get']({'rootName':_0x5dbfb4}),_0x25ec2d),{}),_0x27e1bd=_0x536be4['plugins']['get']('Users')['users']['map'](_0x25fb80=>({'id':_0x25fb80['id'],'name':_0x25fb80['name']})),_0x4f7bd2=_0x536be4['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x217edc=_0x536be4['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x191141=_0x3b8f27['plugins']['get']('Users'),_0x3236ca=_0x3b8f27['plugins']['get']('TrackChangesEditing'),_0x100ef8=_0x3b8f27['plugins']['get']('CommentsRepository');for(const _0xd85748 of _0x100ef8['getCommentThreads']())_0xd85748['remove']();for(const _0x26df00 of _0x27e1bd)_0x191141['getUser'](_0x26df00['id'])||_0x191141['addUser'](_0x26df00);_0x191141['me']||_0x191141['useAnonymousUser']();for(const _0x3cffc4 of _0x217edc)_0x100ef8['addCommentThread'](_0x3cffc4);for(const _0x26350f of _0x4f7bd2)_0x3236ca['addSuggestionData'](_0x26350f);_0x3b8f27['data']['set'](_0x33b580);}(_0xdf611,_0x2c4d4c),_0x2c4d4c['execute'](_0x7afc97?'acceptAllSuggestions':'discardAllSuggestions');const _0x3e4e70=He(_0x2c4d4c)?_0x2c4d4c['getFullData'](_0x4d2933):_0x2c4d4c['data']['get'](_0x4d2933);return await _0x2c4d4c['destroy'](),_0x3e4e70;}class Me extends _0x59a488{['options'];constructor(_0x32214f,_0x421226){super(_0x32214f),this['options']=_0x421226,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'](_0x223509,_0xb553f6){if(!this['element'])return;const _0x2029cf=[];for(const [_0x206b44,_0x2388f2]of _0x223509){const _0x1fbd00=document['createElement']('div');_0x1fbd00['setAttribute']('data-ck-root-name',_0x206b44),_0x1fbd00['className']=_0x2388f2['classes']+'\x20ck-track-changes-preview__root-container',_0x1fbd00['innerHTML']=_0x2388f2['content'],_0x2029cf['push'](_0x1fbd00);}_0xb553f6(this['element'],_0x2029cf),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x1ceda1{constructor(_0x53efba){super(_0x53efba),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x510332=this['editor'],_0x3a1494=_0x510332['locale'],_0x3b577e=_0x510332['plugins']['get']('Dialog');let _0x2ece02;const _0x560705=function(_0x337c2e){const _0x2baf30={};if('editables'in _0x337c2e['ui']['view']){for(const [_0x3c068f,_0x507ce0]of Object['entries'](_0x337c2e['ui']['view']['editables']))_0x2baf30[_0x3c068f]=_0x507ce0['element'];}else _0x2baf30[_0x337c2e['model']['document']['getRootNames']()[0x0]]=_0x337c2e['ui']['view']['editable']['element'];return _0x2baf30;}(_0x510332),_0x4625b0=function(_0x4e9299){let _0xfc975=0x0;for(const _0x3b4deb of Object['values'](_0x4e9299))_0xfc975=Math['max'](_0xfc975,_0x3b4deb['getBoundingClientRect']()['width']);let _0x499e78=0x0;for(const _0x21a907 of Object['values'](_0x4e9299))_0x499e78+=_0x21a907['getBoundingClientRect']()['height'];const _0xbadc94=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x441dbc=Math['min'](_0x499e78,_0xbadc94);return{'width':_0xfc975,'height':_0x441dbc};}(_0x560705);_0x3b577e['show']({'id':'finalContentPreview','title':o(_0x3a1494,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x3a1494,{'dialogRects':_0x4625b0}),'onHide':()=>{_0x2ece02['detachFromDom']();},'onShow':()=>{_0x510332['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4b1a1c=>{const _0x17639a=this['_standarizeRootsData'](_0x4b1a1c,_0x510332,_0x560705);_0x3b577e['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x17639a,_0x510332['config']['get']('trackChanges.preview.renderFunction'));}),_0x2ece02=new _0x107e82(_0x3a1494,[_0x3b577e['view']]),_0x2ece02['attachToDom'](),_0x2ece02['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x510332['once']('destroy',()=>{_0x2ece02['detachFromDom']();});const _0x2ad7ae=_0x3b577e['view']['headerView']['class'];_0x3b577e['view']['headerView']['class']=_0x2ad7ae?_0x2ad7ae+'\x20ck-reset_all':'ck-reset_all',_0x3b577e['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x3b577e['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x244881=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4298cf=_0x244881['previewMode'],_0x544a57={};if('$labels'===_0x4298cf){for(const _0x4c1b1a of _0x244881['getMergeFieldsIds']())_0x544a57[_0x4c1b1a]=_0x244881['getLabel'](_0x4c1b1a)||_0x4c1b1a;}else{const _0x478dc6='$defaultValues'===_0x4298cf?_0x244881['getDefaultValues']():_0x244881['getDataSetValues'](_0x4298cf,!0x0);for(const _0x460d7d of Object['entries'](_0x478dc6)){const [_0x272124,_0x40510b]=_0x460d7d;_0x544a57[_0x272124]=null!==_0x40510b?_0x40510b:_0x244881['getLabel'](_0x272124)||_0x272124;}}return{'mergeFieldsData':_0x544a57};}['_standarizeRootsData'](_0x4111aa,_0x59a31b,_0x6286ae){let _0x18c35f;if('string'==typeof _0x4111aa){const _0x46ebd1=_0x59a31b['model']['document']['getRootNames']()[0x0];_0x18c35f={[_0x46ebd1]:_0x4111aa};}else _0x18c35f=_0x4111aa;const _0x2767e7=this['_fixMediaEmbeds'](_0x18c35f,_0x59a31b),_0x153e36=function(_0x29ec41,_0x56a1dd){for(const [_0x390807,_0x5e0055]of _0x29ec41)_0x5e0055['classes']=_0x56a1dd[_0x390807]['classList']['value']['replace']('ck-focused','');return _0x29ec41;}(this['_sortRoots'](_0x59a31b)['reduce']((_0x21aa92,_0x2cbe6b)=>(_0x21aa92['push']([_0x2cbe6b,{'content':_0x2767e7[_0x2cbe6b],'classes':''}]),_0x21aa92),[]),_0x6286ae);return _0x153e36;}['_fixMediaEmbeds'](_0x49f20a,_0x5d96ca){if(!_0x5d96ca['plugins']['has']('MediaEmbedEditing'))return _0x49f20a;const _0x527574=_0x5d96ca['plugins']['get']('MediaEmbedEditing');for(const [_0x166e4c,_0x5bfc81]of Object['entries'](_0x49f20a)){const _0xae0037=document['createElement']('div');_0xae0037['innerHTML']=_0x5bfc81,(_0xae0037['querySelectorAll']('figure.media')['forEach'](_0x210422=>{const _0x9b35ab=_0x210422['querySelector']('oembed');if(_0x9b35ab){const _0x252f9b=_0x9b35ab['getAttribute']('url');if(_0x252f9b){const _0x272a12=_0x527574['registry']['getMediaViewElement'](new _0x3be5d0(_0x5d96ca['editing']['view']['document']),_0x252f9b,{'elementName':'','renderForEditingView':!0x0}),_0x450551=document['createElement']('div');_0x450551['classList']['add']('ck-media__wrapper'),_0x272a12['render'](_0x450551,_0x5d96ca['editing']['view']['domConverter']),_0x9b35ab['replaceWith'](_0x450551);}}}),_0x49f20a[_0x166e4c]=_0xae0037['innerHTML']);}return _0x49f20a;}['_sortRoots'](_0x408b5e){if(!function(_0x1a27b3){return void 0x0!==_0x1a27b3['getRootsAttributes'];}(_0x408b5e))return _0x408b5e['model']['document']['getRootNames']();const _0xf9c280=[],_0x154d48=new Map();for(const _0x336c90 of _0x408b5e['model']['document']['getRootNames']()){const _0x4a3218=_0x408b5e['editing']['view']['getDomRoot'](_0x336c90)['getClientRects']()['item'](0x0);_0xf9c280['push'](_0x336c90),_0x154d48['set'](_0x336c90,_0x4a3218);}return _0xf9c280['sort']((_0x2161d5,_0x22cb8a)=>{const _0x6f04b2=_0x154d48['get'](_0x2161d5),_0x524a10=_0x154d48['get'](_0x22cb8a);return _0x6f04b2['y']-_0x524a10['y']||_0x6f04b2['x']-_0x524a10['x'];}),_0xf9c280;}}class $e extends _0x559983{static get['requires'](){return[re,_0x401523];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b200f){super(_0x5b200f),_0x5b200f['commands']['add']('previewFinalContent',new te(this['editor'])),_0x5b200f['config']['define']('trackChanges.preview.renderFunction',(_0x57df4e,_0x3cfaf2)=>{for(const _0x34523e of _0x3cfaf2)_0x57df4e['appendChild'](_0x34523e);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,M as DiscardSuggestionCommand,$ 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,Me as _SuggestionsPreviewView,m as _TRACK_CHANGES_RENAME_ATTRIBUTE_KEY};
23
+ import{Command as _0x201f08,Plugin as _0x13e452,PendingActions as _0x377dde}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x19b862,ObservableMixin as _0x4af2b4,uid as _0x22223a,priorities as _0x17dc3a,insertToPriorityArray as _0x4770ea,toArray as _0x2e0ed6,logWarning as _0x5ac787,getEnvKeystrokeText as _0x4b4623,FocusTracker as _0x49dfd9,KeystrokeHandler as _0x47fd75,Collection as _0x5bf0cc}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x317a1a,IconCancel as _0x1efdbd,IconTrackChanges as _0x13883d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x1d2800,View as _0x2d8d59,ViewCollection as _0xc8541d,FocusCycler as _0x4ac438,UIModel as _0x518378,createDropdown as _0x366dc0,SplitButtonView as _0x2253af,addListToDropdown as _0x6d9994,MenuBarMenuView as _0x1f0be0,MenuBarMenuListView as _0x2849be,ListSeparatorView as _0x43929d,MenuBarMenuListItemView as _0x1fb5d9,MenuBarMenuListItemButtonView as _0x4d739d,BodyCollection as _0x3bc5c1,Dialog as _0x5cbeab}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x56d1a,hashObject as _0x51d884,surroundingMarkersDetector as _0x4124c9,FOCUS_ANNOTATION_KEYSTROKE as _0x50d6b0,AriaDescriptionView as _0x5e3ac9,setupThreadKeyboardNavigation as _0x32d9f5,trimHtml as _0x27347b,UserView as _0x241076,LateFocusButtonView as _0x55ec27,getDateTimeFormatter as _0x45f341,getAllMarkersDomElementsSorted as _0x1dfa67,sanitizeEditorConfig as _0x79006e}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x7e4058,ModelLiveRange as _0x158d49,ModelLivePosition as _0x488dc6,ViewDowncastWriter as _0x242596}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x5b6e86,toWidget as _0xb90220}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0xc94e0f,set as _0x1b70ab,isEqual as _0x1ced7c,unset as _0x1250ae,omit as Ut}from'es-toolkit/compat';import{Delete as _0xc472a0,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x3e1d1a}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x283213}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x201f08{['_enabledCommands'];constructor(_0x3609b8,_0x5f24f6){super(_0x3609b8),this['_enabledCommands']=_0x5f24f6,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 _0x2620bf of this['editor']['commands']['commands']())_0x2620bf['affectsData']&&!this['_enabledCommands']['has'](_0x2620bf)&&_0x2620bf['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xe75ebd of this['editor']['commands']['commands']())_0xe75ebd['affectsData']&&!this['_enabledCommands']['has'](_0xe75ebd)&&_0xe75ebd['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x201f08{['_suggestions'];constructor(_0xd1d9e1,_0x48c075){super(_0xd1d9e1),this['_suggestions']=_0x48c075,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1bf26f){const _0x6e5b8e=this['_suggestions']['get'](_0x1bf26f);if(!_0x6e5b8e)throw new _0x19b862('track-changes-accept-suggestion-not-found',this);const _0x2a434b=_0x6e5b8e['getRanges']();this['editor']['model']['canEditAt'](_0x2a434b)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x6e5b8e);}}class M extends _0x201f08{['_suggestions'];constructor(_0xab34c0,_0x1050ed){super(_0xab34c0),this['_suggestions']=_0x1050ed,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x24dc22){const _0x2659fa=this['_suggestions']['get'](_0x24dc22);if(!_0x2659fa)throw new _0x19b862('track-changes-discard-suggestion-not-found',this);const _0x1ef323=_0x2659fa['getRanges']();this['editor']['model']['canEditAt'](_0x1ef323)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2659fa);}}function ls(_0x51ad80,_0x58f9bc){let _0x584cb8='';return _0x584cb8+=_0x51ad80['split']('*')['map']((_0x412f6a,_0x590c3e)=>_0x590c3e%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Yt(_0x412f6a)+'</span>':Yt(_0x412f6a))['join'](''),_0x58f9bc&&(_0x584cb8+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x58f9bc['value']+'\x22\x20title=\x22'+_0x58f9bc['title']+'\x22></span>'),_0x584cb8;}function Yt(_0x1c9f1f){const _0x1c105c=document['createElement']('span');return _0x1c105c['innerText']=_0x1c9f1f,_0x1c105c['innerHTML'];}function ts(_0x759029){return _0x759029['sort']((_0x218a77,_0x3a27d0)=>'attribute'===_0x218a77['type']&&'attribute'!==_0x3a27d0['type']?-0x1:'attribute'!==_0x218a77['type']&&'attribute'===_0x3a27d0['type']?0x1:'deletion'==_0x218a77['type']&&'deletion'!=_0x3a27d0['type']?-0x1:'deletion'!=_0x218a77['type']&&'deletion'==_0x3a27d0['type']?0x1:0x0);}function to(_0xa15c9a,_0x2c082c){let _0x6a99cf,_0x41ac06=0x0;const _0x4e1919=[],_0xe65e84=_0x2c082c['schema'];for(;_0x41ac06<_0xa15c9a['length'];){const _0x40a07c=_0xa15c9a[_0x41ac06],_0x3d9e6f=_0xa15c9a[_0x41ac06+0x1];_0x6a99cf||(_0x6a99cf=_0x2c082c['createPositionBefore'](_0x40a07c)),Zt(_0x2c082c,_0x40a07c,_0x3d9e6f)||(_0x4e1919['push'](_0x2c082c['createRange'](_0x6a99cf,_0xe65e84['isObject'](_0x40a07c)?_0x2c082c['createPositionAfter'](_0x40a07c):_0x2c082c['createPositionAt'](_0x40a07c,'end'))),_0x6a99cf=null),_0x41ac06++;}return _0x4e1919;}function Zt(_0x4dc841,_0x2a5fde,_0x4b8bf0){if(!_0x4b8bf0)return!0x1;const _0x1f3cab=_0x4dc841['createPositionAfter'](_0x2a5fde),_0x3f75d9=_0x4dc841['createPositionBefore'](_0x4b8bf0);return _0x1f3cab['isTouching'](_0x3f75d9);}function rs(_0x113fb8,_0x2b01d0,_0x41d132){for(;_0x41d132['length'];){const _0x28d26e=_0x41d132['splice'](0x0,0x64);_0x113fb8['change'](()=>{for(const _0x296a3c of _0x28d26e)_0x296a3c['isInContent']&&_0x2b01d0['execute'](_0x296a3c['id']);});}}class $ extends _0x201f08{['_command'];['_suggestions'];constructor(_0x49a2f0,_0x5ed29b,_0x1e5604){super(_0x49a2f0),this['_command']=_0x5ed29b,this['_suggestions']=_0x1e5604,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x28e90d=Array['from'](this['_suggestions']['values']())['some'](_0x3e1d3f=>_0x3e1d3f['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x28e90d;}['execute'](){const _0x1516a2=ts(Array['from'](this['_suggestions']['values']()));for(const _0x499e4b of _0x1516a2){const _0x1c3651=_0x499e4b['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1c3651))return;}rs(this['editor']['model'],this['_command'],_0x1516a2);}}class B extends _0x201f08{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x184842,_0x40d481,_0x3e09ec){super(_0x184842),this['_command']=_0x40d481,this['_suggestions']=_0x3e09ec,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2a98e2=this['editor']['model']['document']['selection'],_0x2cd1c0=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x196b54,_0xf59fce){const _0xb19696=Array['from'](_0x196b54['getRanges']()),_0x27d7c6=new Set();for(const _0x38bca6 of _0xf59fce)if(_0x38bca6['isInContent']){for(const _0x1a0256 of _0xb19696)for(const _0x146382 of _0x38bca6['getRanges']())(_0x1a0256['isIntersecting'](_0x146382)||_0x196b54['isCollapsed']&&!_0x38bca6['isMultiRange']&&_0x38bca6['next']&&_0x146382['end']['isTouching'](_0x1a0256['start']))&&_0x27d7c6['add'](_0x38bca6);}return _0x27d7c6;}(_0x2a98e2,_0x2cd1c0),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4f7127=ts(Array['from'](this['_selectedSuggestions']));for(const _0xaf8ba7 of _0x4f7127){const _0x5c29d2=_0xaf8ba7['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5c29d2))return;}rs(this['editor']['model'],this['_command'],_0x4f7127);}}class T extends/* #__PURE__ -- @preserve */
24
+ _0x4af2b4(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x421a31,_0x575572){super(),this['id']=_0x575572['id'],this['type']=_0x575572['type'],this['subType']=_0x575572['subType']||null,this['author']=_0x575572['author'],this['creator']=_0x575572['creator']||_0x575572['author'],this['isExternal']=Boolean(_0x575572['attributes']&&_0x575572['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x575572['originalSuggestionId']||null,this['_model']=_0x421a31,this['_onAccept']=_0x575572['onAccept'],this['_onDiscard']=_0x575572['onDiscard'],this['_onAttributesChange']=_0x575572['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x575572['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 _0x24986a=this;for(;_0x24986a['previous'];)_0x24986a=_0x24986a['previous'];return _0x24986a;}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'](_0x58f270){this['_markerNames']['add'](_0x58f270);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x31f157=>this['_model']['markers']['get'](_0x31f157))['filter'](_0xb16336=>_0xb16336);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3ae3fd=>{for(const _0x5545f0 of this['getMarkers']())_0x3ae3fd['removeMarker'](_0x5545f0);}),this['_markerNames']['clear']();}['removeMarker'](_0x4acbce){this['_model']['change'](_0x107454=>{_0x107454['removeMarker'](_0x4acbce);}),this['_markerNames']['delete'](_0x4acbce);}['addRange'](_0x454bb8){const _0x1eb543='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x1eb543),this['_model']['change'](_0x8414af=>{_0x8414af['addMarker'](_0x1eb543,{'range':_0x454bb8,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1c6fdd){for(const _0x15c007 of this['getRanges']())if(_0x15c007['isIntersecting'](_0x1c6fdd))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5b7d06=>_0x5b7d06['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3063ca,_0x4007a7)=>[..._0x3063ca,..._0x4007a7['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x52b5d6=this['getRanges']();if(0x1!=_0x52b5d6['length'])return null;const _0x43b343=_0x52b5d6[0x0],_0x114dd2=_0x43b343['start']['nodeAfter'],_0xe8343a=_0x43b343['end']['nodeBefore'];return _0x114dd2 instanceof _0x7e4058?_0x114dd2!=_0xe8343a?null:_0x114dd2: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 _0x39c087=[];let _0x10f8f5=this['head'];for(;_0x10f8f5;)_0x39c087['push'](_0x10f8f5),_0x10f8f5=_0x10f8f5['next'];return _0x39c087;}['setAttribute'](_0x1fadfa,_0x191b71){const _0x387a71=_0xc94e0f(this['attributes']);_0x1b70ab(_0x387a71,_0x1fadfa,_0x191b71),_0x1ced7c(_0x387a71,this['attributes'])||(this['attributes']=_0x387a71,this['_onAttributesChange'](_0x387a71));}['removeAttribute'](_0x529220){const _0x51673c=_0xc94e0f(this['attributes']);_0x1250ae(_0x51673c,_0x529220),_0x1ced7c(_0x51673c,this['attributes'])||(this['attributes']=_0x51673c,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 _0x22223a()['substr'](0x1,0x5);}}function o(_0x295321,_0x3d24f1,_0x4b8d49){const _0x63fa84=_0x295321['t'],t=_0x295321['t'];switch(_0x3d24f1){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',_0x4b8d49);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4b8d49);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4b8d49);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4b8d49);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4b8d49);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',_0x4b8d49);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4b8d49);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',_0x4b8d49);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4b8d49);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4b8d49);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4b8d49);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4b8d49);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4b8d49);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4b8d49);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4b8d49);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4b8d49);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4b8d49);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4b8d49);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4b8d49);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4b8d49);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4b8d49);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4b8d49);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4b8d49);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4b8d49);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x4b8d49);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'},_0x4b8d49);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x4b8d49);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x4b8d49);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4b8d49);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4b8d49);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4b8d49);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4b8d49);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4b8d49);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'},_0x4b8d49);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4b8d49);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4b8d49);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4b8d49);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4b8d49);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'},_0x4b8d49);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4b8d49);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'},_0x4b8d49);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'},_0x4b8d49);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4b8d49);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'},_0x4b8d49);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4b8d49);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'},_0x4b8d49);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4b8d49);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4b8d49);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'},_0x4b8d49);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4b8d49);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 _0x63fa84({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4b8d49);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x63fa84({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4b8d49);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4b8d49);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'},_0x4b8d49);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'},_0x4b8d49);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'},_0x4b8d49);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3d24f1;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x234bab,_0x6dd382){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x234bab,this['_locale']=_0x6dd382;}['getDescriptions'](_0x199588){const _0x41a156=[],_0x5bf7e1=new Set(),_0x24cf3d=new Set();for(let _0x50a904=0x0;_0x50a904<_0x199588['length'];_0x50a904++){const _0x5ecc55=_0x199588[_0x50a904];if(!_0x5ecc55['isInContent'])continue;const _0x346872=this['_handleCustomCallbackDescription'](_0x5ecc55);if(_0x346872){if(null!=_0x5ecc55['subType']){if(_0x5bf7e1['has'](_0x5ecc55['subType']))continue;_0x5bf7e1['add'](_0x5ecc55['subType']);}_0x41a156['push'](_0x346872);}else{if('attribute'==_0x5ecc55['type']){const _0x54b6ef=_0x5ecc55['data']['key'];if(_0x24cf3d['has'](_0x54b6ef))continue;_0x24cf3d['add'](_0x5ecc55['data']['key']),_0x54b6ef==m?this['_handleRenameSuggestionDescription'](_0x41a156,_0x5ecc55):this['_handleAttributeSuggestionDescription'](_0x41a156,_0x5ecc55);continue;}'insertion'!=_0x5ecc55['type']&&'deletion'!=_0x5ecc55['type']||this['_handleInsertRemoveSuggestionDescription'](_0x41a156,_0x5ecc55,_0x199588[_0x50a904+0x1]);}}return this['_resolveDescriptionItems'](_0x41a156);}['registerDescriptionCallback'](_0x586b66){this['_customCallbacks']['push'](_0x586b66);}['registerElementLabel'](_0x49d0fd,_0x22228e,_0x467382=_0x17dc3a['normal']){'function'==typeof _0x49d0fd?_0x4770ea(this['_itemLabelsCallbacks'],{'matchingCallback':_0x49d0fd,'label':_0x22228e,'priority':_0x467382}):this['_itemLabels']['set'](_0x49d0fd,_0x22228e);}['registerAttributeLabel'](_0x56b479,_0x5013d1){this['_attributeLabels']['set'](_0x56b479,_0x5013d1);}['getItemLabel'](_0x5b24bf,_0x110894=0x1){let _0x66c12;for(const _0x469b21 of this['_itemLabelsCallbacks'])if(_0x469b21['matchingCallback'](_0x5b24bf)){_0x66c12=_0x469b21['label'];break;}return _0x66c12||(_0x66c12=this['_itemLabels']['get'](_0x5b24bf['name'])),_0x66c12?_0x66c12(_0x110894):0x1!==_0x110894?_0x110894+'\x20'+_0x5b24bf['name']+'s':''+_0x5b24bf['name'];}['_addDescriptionItems'](_0x44d5d8,_0x310ed9){const _0x3db904=_0x310ed9['getFirstRange']()['getWalker'](),_0x567f36='insertion'==_0x310ed9['type']?'add':'remove';for(const _0x291f5a of _0x3db904){const _0xfed165=_0x291f5a['item'],_0x4b8707=_0x44d5d8[_0x44d5d8['length']-0x1];if(_0xfed165['is']('$textProxy'))_0x4b8707&&_0x4b8707['type']['indexOf']('Container')>-0x1&&_0x44d5d8['pop'](),_0x4b8707&&'text'==_0x4b8707['type']?_0x4b8707[_0x567f36]+=_0xfed165['data']:_0x44d5d8['push']({'type':'text','add':'add'==_0x567f36?_0xfed165['data']:'','remove':'remove'==_0x567f36?_0xfed165['data']:''});else{if(this['_schema']['isObject'](_0xfed165)){const _0x37fab5=_0xfed165;if(_0x4b8707&&_0x4b8707['type']['indexOf']('Container')>-0x1&&_0x44d5d8['pop'](),'elementEnd'==_0x291f5a['type'])continue;_0x4b8707&&_0x4b8707['type']==_0x567f36+'Object'&&_0x4b8707['element']['name']==_0x37fab5['name']?_0x4b8707['quantity']++:_0x44d5d8['push']({'type':_0x567f36+'Object','element':_0x37fab5,'quantity':0x1}),_0x3db904['skip'](_0x4a3b01=>!('elementEnd'==_0x4a3b01['type']&&_0x4a3b01['item']==_0xfed165));}else{if(this['_schema']['checkChild'](_0xfed165,'$text')||_0xfed165['is']('element','softBreak')){const _0x4d57a3=_0xfed165;if('add'==_0x567f36&&'elementStart'==_0x291f5a['type']||'remove'==_0x567f36&&'elementEnd'==_0x291f5a['type'])continue;if(_0x4b8707&&-0x1==_0x4b8707['type']['indexOf']('Container')){'text'==_0x4b8707['type']&&(_0x4b8707[_0x567f36]+='\x0a');continue;}let _0x396f3a;if(_0x396f3a='add'==_0x567f36?_0x4d57a3['nextSibling']&&!this['_schema']['isObject'](_0x4d57a3['nextSibling'])?_0x4d57a3['nextSibling']:null:_0x4d57a3['previousSibling']&&!this['_schema']['isObject'](_0x4d57a3['previousSibling'])?_0x4d57a3['previousSibling']:null,_0x4d57a3['isEmpty']||_0x396f3a&&_0x396f3a['isEmpty']){const _0x20372f=_0x396f3a&&_0x396f3a['isEmpty']?_0x396f3a:_0x4d57a3;_0x4b8707&&_0x4b8707['type']==_0x567f36+'EmptyContainer'&&_0x4b8707['element']['name']==_0x20372f['name']?_0x4b8707['quantity']++:_0x44d5d8['push']({'type':_0x567f36+'EmptyContainer','element':_0x20372f,'quantity':0x1});}else _0x44d5d8['push']({'type':_0x567f36+'Container','element':_0x4d57a3});}}}}}['_resolveDescriptionItems'](_0x103020){const _0x277012=this['_locale'],_0x1df3fc=[],_0x5db9cf=[],_0x53f054=[];for(const _0x18025c of _0x103020)switch(_0x18025c['type']){case'text':if(_0x18025c['add']=_0x18025c['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x18025c['remove']=_0x18025c['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x18025c['add']&&''!=_0x18025c['remove']){_0x1df3fc['push']({'type':'replace','content':o(_0x277012,'REPLACE_TEXT',['\x22'+_0x18025c['remove']+'\x22','\x22'+_0x18025c['add']+'\x22'])});continue;}if(null!=_0x18025c['add']['match'](/^ +$/)){_0x1df3fc['push']({'type':'insertion','content':o(_0x277012,'*Insert:*\x20%0',o(_0x277012,'ELEMENT_SPACE',_0x18025c['add']['length']))});continue;}if(null!=_0x18025c['remove']['match'](/^ +$/)){_0x1df3fc['push']({'type':'deletion','content':o(_0x277012,'*Remove:*\x20%0',o(_0x277012,'ELEMENT_SPACE',_0x18025c['remove']['length']))});continue;}if(''!=_0x18025c['add']){_0x1df3fc['push']({'type':'insertion','content':o(_0x277012,'*Insert:*\x20%0','\x22'+_0x18025c['add']+'\x22')});continue;}_0x1df3fc['push']({'type':'deletion','content':o(_0x277012,'*Remove:*\x20%0','\x22'+_0x18025c['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1df3fc['push']({'type':'insertion','content':o(_0x277012,'*Insert:*\x20%0',this['getItemLabel'](_0x18025c['element'],_0x18025c['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1df3fc['push']({'type':'deletion','content':o(_0x277012,'*Remove:*\x20%0',this['getItemLabel'](_0x18025c['element'],_0x18025c['quantity']))});continue;case'addContainer':_0x1df3fc['push']({'type':'insertion','content':o(_0x277012,'*Split:*\x20%0',this['getItemLabel'](_0x18025c['element'],_0x18025c['quantity']))});continue;case'removeContainer':_0x1df3fc['push']({'type':'deletion','content':o(_0x277012,'*Merge:*\x20%0',this['getItemLabel'](_0x18025c['element'],_0x18025c['quantity']))});continue;case'addFormat':_0x5db9cf['push'](_0x18025c['key']);continue;case'removeFormat':_0x53f054['push'](_0x18025c['key']);continue;default:_0x1df3fc['push'](_0x18025c);}if(_0x5db9cf['length']){const _0x464444=_0x5db9cf['map'](_0x2a38a0=>this['_attributeLabels']['has'](_0x2a38a0)?this['_attributeLabels']['get'](_0x2a38a0):_0x2a38a0)['join'](',\x20');_0x1df3fc['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x464444)});}if(_0x53f054['length']){const _0x4a62da=_0x53f054['map'](_0x1aabff=>this['_attributeLabels']['has'](_0x1aabff)?this['_attributeLabels']['get'](_0x1aabff):_0x1aabff)['join'](',\x20');_0x1df3fc['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4a62da)});}return _0x1df3fc;}['_handleCustomCallbackDescription'](_0xdea11f){for(const _0x560707 of this['_customCallbacks']){const _0x48fc37=_0x560707(_0xdea11f);if(_0x48fc37&&'type'in _0x48fc37)return _0x48fc37;}}['_handleAttributeSuggestionDescription'](_0x124387,_0x38ac42){const _0x4d9b09=_0x38ac42['data'],_0x46d822=void 0x0===_0x4d9b09['newValue']?'removeFormat':'addFormat';_0x124387['push']({'type':_0x46d822,'key':_0x4d9b09['key']});}['_handleRenameSuggestionDescription'](_0x5034e7,_0x52644c){_0x5034e7['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x52644c['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5a6142,_0x1c911d,_0x27b620){if(this['_addDescriptionItems'](_0x5a6142,_0x1c911d),_0x27b620&&_0x27b620['getFirstRange']()&&!_0x1c911d['getFirstRange']()['end']['isEqual'](_0x27b620['getFirstRange']()['start'])){const _0x5bb732=_0x5a6142[_0x5a6142['length']-0x1],_0x166ae7='insertion'==_0x1c911d['type']?'add':'remove';_0x5bb732&&'text'==_0x5bb732['type']&&(_0x5bb732[_0x166ae7]+='\x0a');}}}class O extends _0x13e452{['afterInit'](){const _0x36f91d=this['editor'],_0x27747c=_0x36f91d['plugins']['get']('TrackChangesEditing');_0x36f91d['commands']['get']('showAIAssistant')&&_0x27747c['enableCommand']('showAIAssistant');}}class E extends _0x13e452{['afterInit'](){const _0x16ee13=this['editor'],_0x70cd1b=_0x16ee13['locale'];if(!_0x16ee13['plugins']['has']('AlignmentEditing'))return;const _0x2373da=_0x16ee13['plugins']['get']('TrackChangesEditing');_0x2373da['enableDefaultAttributesIntegration']('alignment'),_0x2373da['registerBlockAttribute']('alignment'),_0x2373da['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x70cd1b,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49bb92=this['editor'],_0xfbc58b=_0x49bb92['locale'];_0x49bb92['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1893df=>{if('formatBlock'!=_0x1893df['type'])return;const {data:_0x246644}=_0x1893df;if(_0x246644&&'alignment'==_0x246644['commandName']){const _0x40d4f2=_0x246644['commandParams'][0x0]['value'];return{'type':'format','content':o(_0xfbc58b,'*Format:*\x20%0',function(_0x539ffe){switch(_0x539ffe){case'left':return o(_0xfbc58b,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0xfbc58b,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0xfbc58b,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0xfbc58b,'FORMAT_JUSTIFY_TEXT');}}(_0x40d4f2))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x13e452{['afterInit'](){const _0x1547e0=this['editor'],_0x59493c=_0x1547e0['plugins']['get']('TrackChangesEditing'),_0x1ccd0d=_0x1547e0['locale'];for(const _0x323a1c of ti){if(!_0x1547e0['plugins']['has'](_0x323a1c))continue;const _0x10fa46=_0x323a1c['slice'](0x0,-0x7)['toLowerCase'](),_0x4e6af0='FORMAT_'+_0x10fa46['toUpperCase']();_0x59493c['enableDefaultAttributesIntegration'](_0x10fa46),_0x59493c['registerInlineAttribute'](_0x10fa46),_0x59493c['descriptionFactory']['registerAttributeLabel'](_0x10fa46,o(_0x1ccd0d,_0x4e6af0));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4df4c6=this['editor'],_0x15eba7=_0x4df4c6['locale'],_0x82934a=_0x4df4c6['plugins']['get']('TrackChangesEditing');function _0xbd042f(_0x149ebc,_0x370c15){_0x82934a['descriptionFactory']['registerDescriptionCallback'](_0xbe1492=>{if('formatInline'!=_0xbe1492['type'])return;const {data:_0x115e97}=_0xbe1492;return _0x115e97&&_0x115e97['commandName']===_0x149ebc?_0x115e97['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x15eba7,'*Format:*\x20%0',_0x370c15)}:{'type':'format','content':o(_0x15eba7,'*Remove\x20format:*\x20%0',_0x370c15)}:void 0x0;});}_0xbd042f('bold',o(_0x15eba7,'FORMAT_BOLD')),_0xbd042f('italic',o(_0x15eba7,'FORMAT_ITALIC')),_0xbd042f('underline',o(_0x15eba7,'FORMAT_UNDERLINE')),_0xbd042f('code',o(_0x15eba7,'FORMAT_CODE')),_0xbd042f('strikethrough',o(_0x15eba7,'FORMAT_STRIKETHROUGH')),_0xbd042f('subscript',o(_0x15eba7,'FORMAT_SUBSCRIPT')),_0xbd042f('superscript',o(_0x15eba7,'FORMAT_SUPERSCRIPT'));}}class U extends _0x13e452{['afterInit'](){const _0x434135=this['editor'],_0x492dbc=_0x434135['locale'];if(!_0x434135['plugins']['has']('BlockQuoteEditing'))return;const _0x458f1d=_0x434135['plugins']['get']('TrackChangesEditing'),_0xbb785a=this['editor']['commands']['get']('blockQuote');_0x458f1d['enableCommand']('blockQuote',(_0x865f01,_0x24879c={})=>{const _0x182d13=this['editor']['model']['document']['selection'],_0x5c7657=_0x24879c&&void 0x0!==_0x24879c['forceValue']?_0x24879c['forceValue']:!_0xbb785a['value'];let _0x6995f=[];if(_0x5c7657){const _0x830a39=Array['from'](_0x182d13['getSelectedBlocks']())['filter'](_0x3534f7=>oo(_0x3534f7)||function(_0x5d32da,_0x54ac73){const _0x471c14=_0x54ac73['checkChild'](_0x5d32da['parent'],'blockQuote'),_0x3ed61a=_0x54ac73['checkChild'](['$root','blockQuote'],_0x5d32da);return _0x471c14&&_0x3ed61a;}(_0x3534f7,this['editor']['model']['schema']));_0x6995f=to(_0x830a39,_0x434135['model']);}else{const _0x47f408=Array['from'](_0x182d13['getSelectedBlocks']())['filter'](_0x2a33cf=>oo(_0x2a33cf));_0x6995f=to(_0x47f408,_0x434135['model']);}_0x434135['model']['change'](()=>{for(const _0x34053b of _0x6995f)_0x458f1d['markBlockFormat'](_0x34053b,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5c7657}]});});}),_0x458f1d['descriptionFactory']['registerDescriptionCallback'](_0xfbd97d=>{const {data:_0x39030a}=_0xfbd97d;if(_0x39030a&&'blockQuote'==_0x39030a['commandName']){const _0x58b241=o(_0x492dbc,'ELEMENT_BLOCK_QUOTE');return _0x39030a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x492dbc,'*Set\x20format:*\x20%0',_0x58b241)}:{'type':'format','content':o(_0x492dbc,'*Remove\x20format:*\x20%0',_0x58b241)};}});}}function oo(_0x1bc125){return'blockQuote'==_0x1bc125['parent']['name'];}class V extends _0x13e452{['afterInit'](){const _0x46113c=this['editor'],_0x55b887=_0x46113c['locale'],_0x1838a0=_0x46113c['plugins']['get']('TrackChangesEditing');_0x46113c['plugins']['has']('BookmarkEditing')&&(_0x1838a0['enableCommand']('insertBookmark'),_0x1838a0['enableDefaultAttributesIntegration']('updateBookmark'),_0x1838a0['registerBlockAttribute']('bookmarkId'),_0x1838a0['descriptionFactory']['registerDescriptionCallback'](_0x460b49=>{if('insertion'!=_0x460b49['type']&&'deletion'!=_0x460b49['type']&&'attribute'!=_0x460b49['type'])return;const _0x508f76=_0x460b49['getContainedElement']();if(null==_0x508f76)return;if(!_0x508f76['is']('element','bookmark'))return;const _0x2b8d7a=_0x508f76['getAttribute']('bookmarkId');if('insertion'==_0x460b49['type'])return{'type':'insertion','content':o(_0x55b887,'*Insert:*\x20%0','\x22'+_0x2b8d7a+'\x22\x20'+o(_0x55b887,'ELEMENT_BOOKMARK'))};if('deletion'==_0x460b49['type'])return{'type':'deletion','content':o(_0x55b887,'*Remove:*\x20%0','\x22'+_0x2b8d7a+'\x22\x20'+o(_0x55b887,'ELEMENT_BOOKMARK'))};const {data:_0x4c9a46}=_0x460b49;if(!_0x4c9a46||'bookmarkId'!=_0x4c9a46['key'])return;return{'type':'format','content':o(_0x55b887,'*Set\x20bookmark:*\x20%0','\x22'+_0x4c9a46['newValue']+'\x22')};}));}}class F extends _0x13e452{['afterInit'](){const _0x36fd7c=this['editor'];_0x36fd7c['plugins']['has']('CaseChange')&&(_0x36fd7c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x36fd7c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x36fd7c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x13e452{['afterInit'](){const _0x45fe04=this['editor'];_0x45fe04['commands']['get']('ckbox')&&_0x45fe04['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x13e452{['afterInit'](){const _0x5533d1=this['editor'];if(!_0x5533d1['plugins']['has']('CodeBlock'))return;const _0xe2d473=_0x5533d1['plugins']['get']('TrackChangesEditing'),_0x5e074e=_0x5533d1['locale'],_0x2a16bd=_0x5533d1['config']['get']('codeBlock')['languages'],_0x26405f=_0x5533d1['commands']['get']('codeBlock');_0xe2d473['enableCommand']('indentCodeBlock'),_0xe2d473['enableCommand']('outdentCodeBlock'),_0xe2d473['enableCommand']('codeBlock',(_0x5b3889,_0x23d744={})=>{const _0x4090a4=_0x5533d1['model'],_0x48b344=_0x5533d1['model']['document']['selection'],_0x2d8622=_0x23d744&&void 0x0!==_0x23d744['forceValue']?_0x23d744['forceValue']:!_0x26405f['value'];let _0x278012;_0x23d744['language']||(_0x23d744['language']=_0x2a16bd[0x0]['language']),_0x278012=_0x2d8622?Array['from'](_0x48b344['getSelectedBlocks']())['filter'](_0x340586=>co(_0x340586)||function(_0x5f050d,_0x23902c){if(_0x5f050d['is']('rootElement')||_0x23902c['isLimit'](_0x5f050d))return!0x1;return _0x23902c['checkChild'](_0x5f050d['parent'],'codeBlock');}(_0x340586,_0x4090a4['schema'])):Array['from'](_0x48b344['getSelectedBlocks']())['filter'](_0x4221f3=>co(_0x4221f3));const _0x7f0e39=to(_0x278012,_0x4090a4);_0x4090a4['change'](()=>{for(const _0xbb6f0b of _0x7f0e39)_0xe2d473['markBlockFormat'](_0xbb6f0b,{'commandName':'codeBlock','commandParams':[{..._0x23d744,'forceValue':_0x2d8622}],'formatGroupId':'blockName'});});}),(_0xe2d473['descriptionFactory']['registerElementLabel']('codeBlock',_0x51aaf7=>o(_0x5e074e,'ELEMENT_CODE_BLOCK',_0x51aaf7)),_0xe2d473['descriptionFactory']['registerDescriptionCallback'](_0x118e7a=>{if('formatBlock'!=_0x118e7a['type'])return;const _0x5d7dfb=_0x5e074e['t'],{data:_0x48b5c8}=_0x118e7a;if(!_0x48b5c8||'codeBlock'!=_0x48b5c8['commandName'])return;const _0x13498c=_0x48b5c8['commandParams'][0x0]['language'],_0x304c75=_0x5d7dfb(_0x2a16bd['find'](_0x232003=>_0x232003['language']===_0x13498c)['label'])['toLowerCase']();return _0x48b5c8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5e074e,'*Set\x20format:*\x20%0',o(_0x5e074e,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x304c75+')')}:{'type':'format','content':o(_0x5e074e,'*Remove\x20format:*\x20%0',o(_0x5e074e,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x444e31){return'codeBlock'==_0x444e31['name'];}class J extends _0x13e452{['afterInit'](){const _0x2f049c=this['editor'];if(!_0x2f049c['plugins']['has']('CommentsEditing'))return;_0x2f049c['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x29e7ba,_0x47747c,_0xfdb34){const _0x13a0a1=[];for(const _0x3dabf8 of _0x47747c['getItems']())_0x3dabf8['hasAttribute'](_0x29e7ba)&&_0x13a0a1['push'](_0xfdb34['createRangeOn'](_0x3dabf8));return _0x13a0a1;}function De(_0x34eae3,_0xff288e,{showActiveMarker:_0x2095c6=!0x0}={}){const _0x41e3bf=_0x34eae3['plugins']['get']('TrackChangesEditing');return(_0x5c38da,_0x2d2ff2,_0x5241ed)=>{if(!_0x5241ed['consumable']['test'](_0x2d2ff2['markerRange'],_0x5c38da['name']))return;const _0x3ea53f=_0x2d2ff2['markerRange']['getWalker'](),_0x3ed0f8=_0x2d2ff2['markerRange']['start'],_0x2ed189=_0x34eae3['model']['schema'];let _0x3572f6=null,_0x8f119a=null,_0x11accb=!0x1,_0x319f8c=!0x1;for(const _0x532e2d of _0x3ea53f){const _0x4a4fff=_0x532e2d['item'];_0x11accb=_0x11accb||_0x2ed189['isContent'](_0x4a4fff);const _0x578da1=_0x5241ed['mapper']['toViewElement'](_0x4a4fff);if(_0x578da1&&_0x578da1['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x532e2d['type']&&(_0x2ed189['isBlock'](_0x4a4fff)&&!_0x2ed189['isLimit'](_0x4a4fff)&&(_0x4a4fff['nextSibling']||_0x3ed0f8['isAtEnd']?_0x3572f6&&_0x3572f6['parent']==_0x4a4fff||(_0x3572f6=_0x4a4fff,_0x1825df(_0x532e2d['previousPosition']),_0x319f8c=!0x0):_0x8f119a=_0x8f119a||_0x532e2d['previousPosition']));}function _0x1825df(_0x8a2ea){const {id:_0x861cd8,authorId:_0x37a5cd}=_0x41e3bf['_splitMarkerName'](_0x2d2ff2['markerName']),_0x4fa3e4=_0x5241ed['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xff288e,'data-suggestion':_0x861cd8,'data-author-id':_0x37a5cd}),_0x405354=_0x5241ed['mapper']['toViewPosition'](_0x8a2ea);_0x2095c6&&_0x41e3bf['activeMarkers']['includes'](_0x2d2ff2['markerName'])&&_0x5241ed['writer']['addClass']('ck-suggestion-marker--active',_0x4fa3e4),_0x5241ed['writer']['insert'](_0x405354,_0x4fa3e4),_0x5241ed['mapper']['bindElementToMarker'](_0x4fa3e4,_0x2d2ff2['markerName']);}_0x11accb||_0x319f8c||!_0x8f119a||_0x1825df(_0x8f119a);};}class K extends _0x13e452{static get['requires'](){return[_0xc472a0];}['init'](){const _0x29d743=this['editor'],_0x29e195=_0x29d743['plugins']['get']('TrackChangesEditing');_0x29e195['enableCommand']('delete');const _0x433757=_0x29d743['commands']['get']('deleteForward');_0x29e195['enableCommand']('deleteForward',(_0x326543,_0x4c5b6a={})=>{const _0x516d6f=_0x29d743['model']['createSelection'](_0x29d743['model']['document']['selection']);_0x516d6f['isCollapsed']&&_0x29d743['model']['modifySelection'](_0x516d6f,{'direction':'forward','unit':_0x4c5b6a['unit']});const _0x490a01=_0x516d6f['getFirstRange'](),_0x17656b=_0x158d49['fromRange'](_0x490a01);let _0x1aaa2a;_0x326543(_0x4c5b6a),_0x1aaa2a='$graveyard'==_0x17656b['root']['rootName']?_0x29d743['model']['createRange'](_0x490a01['start']):_0x29d743['model']['createRange'](_0x17656b['start'],_0x17656b['end']),_0x17656b['detach'](),_0x29d743['model']['enqueueChange'](_0x433757['buffer']['batch'],_0x3fc159=>{_0x433757['buffer']['lock'](),_0x3fc159['setSelection'](_0x3fc159['createRange'](_0x1aaa2a['end'])),_0x433757['buffer']['unlock']();});}),_0x29d743['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x29d743,'merge'),{'priority':'high'}),_0x29d743['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x242949,_0xa47e01,_0x49c939)=>{_0x49c939['options']['showSuggestionHighlights']&&De(_0x29d743,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x242949,_0xa47e01,_0x49c939);},{'priority':'high'}),_0x29d743['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3e97b9,_0x1e06f6,_0x2e9046)=>{const _0x4bc8a8=_0x2e9046['mapper']['markerNameToElements'](_0x1e06f6['markerName']);if(_0x4bc8a8){for(const _0x419deb of _0x4bc8a8)_0x419deb['is']('uiElement')&&(_0x2e9046['mapper']['unbindElementFromMarkerName'](_0x419deb,_0x1e06f6['markerName']),_0x2e9046['writer']['remove'](_0x419deb));}},{'priority':'high'});}}class H extends _0x13e452{['afterInit'](){const _0x5e6de9=this['editor'];if(!_0x5e6de9['plugins']['has']('ListEditing'))return;const _0x963106=_0x5e6de9['locale'],_0xcee423=_0x5e6de9['plugins']['get']('TrackChangesEditing'),_0x15b21c=_0x5e6de9['plugins']['has']('TodoListEditing'),_0x2cbbd2=!!_0x5e6de9['config']['get']('list.multiBlock');function _0x3e7a56(_0x35f64e){return{'type':'format','content':''+o(_0x963106,'*Set\x20format:*\x20%0',_0x35f64e)};}function _0x368336(_0x4126ce){return{'type':'format','content':''+o(_0x963106,'*Remove\x20format:*\x20%0',_0x4126ce)};}_0xcee423['enableDefaultAttributesIntegration']('numberedList'),_0xcee423['enableDefaultAttributesIntegration']('bulletedList'),_0xcee423['enableDefaultAttributesIntegration']('customNumberedList'),_0xcee423['enableDefaultAttributesIntegration']('customBulletedList'),_0xcee423['enableDefaultAttributesIntegration']('indentList'),_0xcee423['enableDefaultAttributesIntegration']('outdentList'),_0xcee423['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xcee423['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xcee423['registerBlockAttribute']('listItemId'),_0xcee423['registerBlockAttribute']('listType'),_0xcee423['registerBlockAttribute']('listIndent'),_0x2cbbd2&&(_0xcee423['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xcee423['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x15b21c&&(_0xcee423['enableDefaultAttributesIntegration']('todoList'),_0xcee423['enableDefaultAttributesIntegration']('checkTodoList'),_0xcee423['registerBlockAttribute']('todoListChecked'),_0xcee423['descriptionFactory']['registerDescriptionCallback'](_0x5174df=>{const {data:_0x4ea2d6}=_0x5174df;if(_0x4ea2d6&&'todoListChecked'==_0x4ea2d6['key'])return{'type':'format','content':_0x4ea2d6['newValue']?o(_0x963106,'*Check\x20item*'):o(_0x963106,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3dc6b1=>{if(_0x3dc6b1['batch']['isUndo'])return!0x1;let _0x3a8f38=!0x1;const _0x15a49d=_0xcee423['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4b5b1b=>'todoListChecked'===_0xcee423['_getAttributeKey'](_0x4b5b1b));for(const _0x31ba61 of _0x15a49d){'todo'!=_0x31ba61['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xcee423['_findSuggestions'](_0x31ba61['getFirstRange'](),'attribute')['find'](_0x17b5ce=>'listType'===_0xcee423['_getAttributeKey'](_0x17b5ce['suggestion']))||(_0x3dc6b1['removeMarker'](_0x31ba61['getFirstMarker']()),_0x3a8f38=!0x0));}return _0x3a8f38;})),_0xcee423['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x963106,'FORMAT_INDENT'));const _0x1275dc={'type':'format','content':''};_0xcee423['descriptionFactory']['registerDescriptionCallback'](_0x34865a=>{const {data:_0x5eed91}=_0x34865a;if(!_0x5eed91||'listType'!=_0x5eed91['key'])return;let _0x1121bc=_0x34865a['head'];for(;_0x1121bc;){if(_0x1121bc['data']&&(('listStyle'==_0x1121bc['data']['key']||'listMarkerStyle'==_0x1121bc['data']['key'])&&(_0x1121bc['data']['newValue']&&'default'!=_0x1121bc['data']['newValue']||'default'!=_0x1121bc['data']['oldValue']&&!_0x5eed91['newValue'])||!_0x2cbbd2&&_0x1121bc['data']['key']==m))return _0x1275dc;_0x1121bc=_0x1121bc['next'];}if(null==_0x5eed91['newValue'])switch(_0x5eed91['oldValue']){case'bulleted':return _0x368336(o(_0x963106,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x368336(o(_0x963106,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x368336(o(_0x963106,'ELEMENT_TODO_LIST'));}switch(_0x5eed91['newValue']){case'bulleted':return _0x3e7a56(o(_0x963106,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3e7a56(o(_0x963106,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3e7a56(o(_0x963106,'ELEMENT_TODO_LIST'));}}),_0xcee423['descriptionFactory']['registerDescriptionCallback'](_0x21f4cb=>{const {data:_0x2b863f}=_0x21f4cb;if(_0x2b863f&&'listIndent'==_0x2b863f['key'])return null==_0x2b863f['newValue']||null==_0x2b863f['oldValue']&&0x0==_0x2b863f['newValue']?_0x1275dc:void 0x0;}),_0xcee423['descriptionFactory']['registerDescriptionCallback'](_0x4a6406=>{if('attribute'!=_0x4a6406['type'])return;const {data:_0x119e80}=_0x4a6406;if(!_0x119e80||'listItemId'!=_0x119e80['key'])return;const _0x392364=Te(_0x4a6406);return'newValue'==_0x392364?{'type':'format','content':o(_0x963106,'*Merge:*\x20list\x20item')}:'oldValue'==_0x392364?{'type':'format','content':o(_0x963106,'*Split:*\x20list\x20item')}:_0x1275dc;}),_0x5e6de9['model']['document']['registerPostFixer'](_0x47da25=>this['listItemIdFixer'](_0x47da25)),_0x5e6de9['model']['document']['registerPostFixer'](_0x53eb8f=>this['noTrackChangesFixer'](_0x53eb8f)),_0x5e6de9['model']['document']['on']('change:data',(_0x126233,_0x310ed0)=>{if(_0x310ed0['isUndo']||!_0x310ed0['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x15115a){if(_0x15115a['batch']['isUndo']||!_0x15115a['batch']['isLocal'])return!0x1;let _0x258613=!0x1;const _0x3f1bf8=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x190bd6=>_0x190bd6['data']&&'listItemId'==_0x190bd6['data']['key'])['filter'](_0x41317d=>_0x41317d['data']['newValue']&&_0x41317d['data']['oldValue']);for(const _0x1e8415 of _0x3f1bf8)Te(_0x1e8415)||(_0x15115a['removeMarker'](_0x1e8415['getFirstMarker']()),_0x258613=!0x0);return _0x258613;}['noTrackChangesFixer'](_0x131178){if(_0x131178['batch']['isUndo']||!_0x131178['batch']['isLocal'])return!0x1;const _0x100bfd=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x100bfd['trackChangesCommand']['value'])return!0x1;let _0x2d17ab=!0x1;const _0x5bcd85=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x454867=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x561b29=>'attribute'==_0x561b29['type'])['filter'](_0x280b16=>_0x5bcd85['includes'](_0x280b16['attributeKey']));if(0x0==_0x454867['length'])return _0x2d17ab;for(const _0x41c445 of _0x454867){const _0x1ed3e9=_0x100bfd['_findSuggestions'](_0x41c445['range'],'attribute')['filter'](_0x4a934d=>!_0x4a934d['meta']['isNextTo'])['map'](_0x84ff67=>_0x84ff67['suggestion'])['filter'](_0x1e9ad7=>{const _0x53f57d=_0x100bfd['_getAttributeKey'](_0x1e9ad7);return _0x5bcd85['includes'](_0x53f57d);});if(_0x1ed3e9['length']){for(const _0x231138 of _0x1ed3e9)_0x131178['removeMarker'](_0x231138['getFirstMarker']());_0x2d17ab=!0x0;}}return _0x2d17ab;}['assureChains'](){const _0x476313=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c7807=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xdab00c;const _0x58f344=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x6500be=>{if(_0x6500be['data']['oldRange']||!_0x6500be['data']['newRange'])return null;if(!_0x6500be['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x3e84c6}=_0x476313['_splitMarkerName'](_0x6500be['name']);if(!_0x476313['hasSuggestion'](_0x3e84c6))return null;const _0x1760d6=_0x476313['getSuggestion'](_0x3e84c6);return _0x5c7807['includes'](_0x1760d6['data']['key']);})['map'](_0x62e8a9=>{const {id:_0xd8f4b5}=_0x476313['_splitMarkerName'](_0x62e8a9['name']),_0x22cb10=_0x476313['getSuggestion'](_0xd8f4b5);return _0xdab00c=_0x22cb10['attributes']['groupId'],_0x22cb10['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x58f344['size'])return;const _0x20a4ab=_0x476313['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4edfcb=>'attribute'==_0x4edfcb['type']&&_0x4edfcb['data']&&_0x5c7807['includes'](_0x4edfcb['data']['key'])&&_0x4edfcb['attributes']['groupId']!=_0xdab00c)['map'](_0x51c587=>({'listItem':_0x51c587['getFirstRange']()['start']['nodeAfter'],'groupId':_0x51c587['attributes']['groupId']})),_0x5be331=new Set();for(const {groupId:_0x22aad0,listItem:_0x1315cc}of _0x20a4ab)_0x58f344['has'](_0x1315cc)&&_0x5be331['add'](_0x22aad0);for(const _0x552acb of _0x476313['getSuggestions']())_0x5be331['has'](_0x552acb['attributes']['groupId'])&&_0x552acb['setAttribute']('groupId',_0xdab00c);}['_supportLegacySuggestions'](){const _0x5d1ca4=this['editor'],_0x22fee3=_0x5d1ca4['locale'],_0x168c57=_0x5d1ca4['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x168c57['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2ac8b2,_0x468cbe){const _0x5795ac=[];for(let _0x5da0ea of _0x2ac8b2)_0x5da0ea['start']['nodeAfter']===_0x5da0ea['end']['parent']&&(_0x5da0ea=_0x5d1ca4['model']['createRange'](_0x5d1ca4['model']['createPositionAt'](_0x5da0ea['start']['nodeAfter'],0x0))),_0x5795ac['push'](_0x5da0ea);_0x5d1ca4['model']['change'](_0x1dfed8=>{const _0x515eed=_0x5d1ca4['model']['document']['selection'],_0x3abc92=Array['from'](_0x515eed['getRanges']())['map'](_0x573abb=>_0x158d49['fromRange'](_0x573abb));_0x1dfed8['setSelection'](_0x5795ac),_0x5d1ca4['commands']['get'](_0x468cbe['commandName'])['refresh'](),_0x468cbe['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5d1ca4['execute'](_0x468cbe['commandName'],..._0x468cbe['commandParams']),_0x1dfed8['setSelection'](_0x3abc92);for(const _0x4578c1 of _0x3abc92)_0x4578c1['detach']();});}),_0x168c57['descriptionFactory']['registerElementLabel'](function(_0x41e198){const _0x61092a=!_0x5d1ca4['model']['schema']['isObject'](_0x41e198),_0x54dbf4=_0x41e198['previousSibling'],_0x24944f=_0x41e198['nextSibling'],_0x383771=_0x41e198['getAttribute']('listItemId'),_0x3c0a40=!_0x54dbf4||_0x54dbf4['getAttribute']('listItemId')!==_0x383771,_0x2bfc11=!_0x24944f||_0x24944f['getAttribute']('listItemId')!==_0x383771;return _0x61092a&&Boolean(_0x383771)&&_0x3c0a40&&_0x2bfc11;},_0x713c24=>o(_0x22fee3,'ELEMENT_LIST_ITEM',_0x713c24));}['_registerLegacyDescription'](){const _0x336e35=this['editor'],_0x24aa9d=_0x336e35['locale'];function _0x48767f(_0x2d6c12){const _0x5832f9=_0x336e35['commands']['get']('bulletedList')['value'],_0x5ee708=_0x336e35['commands']['get']('numberedList')['value'];return'numberedList'===_0x2d6c12?_0x5832f9:_0x5ee708;}_0x336e35['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x42aef0){if('formatBlock'!=_0x42aef0['type'])return;const {data:_0x58fdb1}=_0x42aef0;if(!_0x58fdb1)return;let _0x4c3c4d,_0x39fe1b,_0xd74c94,_0x3af6a4;switch(_0x58fdb1['commandName']){case'bulletedList':_0xd74c94=_0x58fdb1['commandParams'][0x0]['forceValue'],_0x3af6a4=_0x48767f(_0x58fdb1['commandName']),_0x4c3c4d=_0xd74c94?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3af6a4&&_0x336e35['config']['get']('list.multiBlock')||(_0x4c3c4d='*Change\x20to:*\x20%0'),_0x39fe1b={'type':'format','content':o(_0x24aa9d,_0x4c3c4d,o(_0x24aa9d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xd74c94=_0x58fdb1['commandParams'][0x0]['forceValue'],_0x3af6a4=_0x48767f(_0x58fdb1['commandName']),_0x4c3c4d=_0xd74c94?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3af6a4&&_0x336e35['config']['get']('list.multiBlock')||(_0x4c3c4d='*Change\x20to:*\x20%0'),_0x39fe1b={'type':'format','content':o(_0x24aa9d,_0x4c3c4d,o(_0x24aa9d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4c3c4d='*Indent:*\x20%0',_0x39fe1b={'type':'format','content':o(_0x24aa9d,_0x4c3c4d,o(_0x24aa9d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4c3c4d=function(_0x4cac16){const _0x441dcb=_0x4cac16['getFirstRange']();let _0x3cbec3=_0x441dcb['start']['nodeAfter'];for(;_0x3cbec3&&_0x441dcb['containsItem'](_0x3cbec3);){if(_0x3cbec3['getAttribute']('listIndent')>0x0)return!0x1;_0x3cbec3=_0x3cbec3['nextSibling'];}return!0x0;}(_0x42aef0)?o(_0x24aa9d,'*Format:*\x20remove\x20from\x20%0',o(_0x24aa9d,function(_0x327bf1){return'ELEMENT_'+_0x327bf1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x42aef0))):o(_0x24aa9d,'*Outdent:*\x20%0',o(_0x24aa9d,'ELEMENT_LIST_ITEM')),_0x39fe1b={'type':'format','content':_0x4c3c4d};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x58fdb1['multipleBlocks']&&(_0x4c3c4d='*Merge:*\x20%0',_0x39fe1b={'type':'deletion','content':o(_0x24aa9d,_0x4c3c4d,o(_0x24aa9d,'ELEMENT_LIST_ITEM'))});}return _0x39fe1b;});}}function Te(_0x505bbf){let _0x53f007=_0x505bbf['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x53f007;){const _0xe8cc31=_0x53f007['getAttribute']('listItemId');if(!_0xe8cc31)return!0x1;if(_0xe8cc31==_0x505bbf['data']['newValue'])return'newValue';if(_0xe8cc31==_0x505bbf['data']['oldValue'])return'oldValue';_0x53f007=_0x53f007['previousSibling'];}return!0x1;}class q extends _0x13e452{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5241e5=this['editor']['config']['get']('list.properties'),_0x2a98fe=this['editor']['plugins']['get']('TrackChangesEditing');_0x5241e5['styles']&&(_0x2a98fe['enableDefaultAttributesIntegration']('listStyle'),_0x2a98fe['registerBlockAttribute']('listStyle')),_0x5241e5['reversed']&&(_0x2a98fe['enableDefaultAttributesIntegration']('listReversed'),_0x2a98fe['registerBlockAttribute']('listReversed')),_0x5241e5['startIndex']&&(_0x2a98fe['enableDefaultAttributesIntegration']('listStart'),_0x2a98fe['registerBlockAttribute']('listStart'));const _0x44558c={'type':'format','content':''};_0x2a98fe['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3b8dae=this['editor']['locale'];_0x2a98fe['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3b8dae,'FORMAT_LIST_REVERSED')),_0x2a98fe['descriptionFactory']['registerDescriptionCallback'](_0x39f9b9=>{const {data:_0x2cb8ed}=_0x39f9b9;if(_0x2cb8ed&&'listReversed'==_0x2cb8ed['key'])return null==_0x2cb8ed['newValue']||0x0==_0x2cb8ed['newValue']&&null==_0x2cb8ed['oldValue']?_0x44558c:void 0x0;}),_0x2a98fe['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3b8dae,'FORMAT_LIST_START')),_0x2a98fe['descriptionFactory']['registerDescriptionCallback'](_0x455268=>{const {data:_0x4cdfce}=_0x455268;if(_0x4cdfce&&'listStart'==_0x4cdfce['key'])return null==_0x4cdfce['newValue']||0x1==_0x4cdfce['newValue']&&null==_0x4cdfce['oldValue']?_0x44558c:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3019b5=>{if(_0x3019b5['batch']['isUndo'])return!0x1;let _0x102360=!0x1;const _0x405d5b=_0x2a98fe['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x50ba73=>{const _0x5cbd20=_0x2a98fe['_getAttributeKey'](_0x50ba73);return'listStart'==_0x5cbd20||'listReversed'==_0x5cbd20;});for(const _0x2933a1 of _0x405d5b){const _0x8e4ff0=_0x2933a1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x8e4ff0||'customNumbered'==_0x8e4ff0)continue;_0x2a98fe['_findSuggestions'](_0x2933a1['getFirstRange'](),'attribute')['find'](_0x1528fe=>'listType'==_0x2a98fe['_getAttributeKey'](_0x1528fe['suggestion']))||(_0x3019b5['removeMarker'](_0x2933a1['getFirstMarker']()),_0x102360=!0x0);}return _0x102360;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1aa33f){const _0x46b82b=this['editor']['locale'],{data:_0x58a582}=_0x1aa33f,_0x443b41={'type':'format','content':''};if(!_0x58a582||'listStyle'!=_0x58a582['key'])return;if(!_0x58a582['oldValue'])return'default'==_0x58a582['newValue']?_0x443b41:{'type':'format','content':''+o(_0x46b82b,'*Set\x20format:*\x20%0',o(_0x46b82b,this['_getTranslationKeyForListStyle'](_0x58a582['newValue'])))};if(!_0x58a582['newValue']){if('default'==_0x58a582['oldValue'])return _0x443b41;let _0x28f799=_0x1aa33f['head'];for(;_0x28f799;){if(_0x28f799['data']&&'listType'==_0x28f799['data']['key']&&_0x28f799['data']['newValue'])return _0x443b41;_0x28f799=_0x28f799['next'];}return{'type':'format','content':''+o(_0x46b82b,'*Remove\x20format:*\x20%0',o(_0x46b82b,this['_getTranslationKeyForListStyle'](_0x58a582['oldValue'])))};}if('default'!=_0x58a582['newValue'])return{'type':'format','content':''+o(_0x46b82b,'*Set\x20format:*\x20%0',o(_0x46b82b,this['_getTranslationKeyForListStyle'](_0x58a582['newValue'])))};let _0x287bbb=_0x1aa33f['head'];for(;_0x287bbb;){if(_0x287bbb['data']&&'listType'==_0x287bbb['data']['key']&&_0x287bbb['data']['newValue']&&_0x287bbb['data']['oldValue'])return _0x443b41;_0x287bbb=_0x287bbb['next'];}return{'type':'format','content':o(_0x46b82b,'*Set\x20format:*\x20%0',o(_0x46b82b,'ELEMENT_'+_0x1aa33f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x25df69=this['editor'],_0x403187=_0x25df69['locale'];_0x25df69['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27f39b=>{if('formatBlock'!=_0x27f39b['type'])return;const {data:_0x459af8}=_0x27f39b;if(!_0x459af8)return;let _0x47bf6f,_0x286b0f;switch(_0x459af8['commandName']){case'listStyle':_0x47bf6f='*Change\x20to:*\x20%0',_0x286b0f={'type':'format','content':o(_0x403187,_0x47bf6f,o(_0x403187,this['_getTranslationKeyForListStyle'](_0x459af8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x47bf6f=_0x459af8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x286b0f={'type':'format','content':o(_0x403187,_0x47bf6f)};break;case'listStart':_0x47bf6f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x286b0f={'type':'format','content':o(_0x403187,_0x47bf6f,_0x459af8['commandParams'][0x0]['startIndex'])};}return _0x286b0f;});}['_getTranslationKeyForListStyle'](_0x2073cd){return'ELEMENT_'+function(_0x15ec7f){if(Se['includes'](_0x15ec7f))return'bulleted';if(_e['includes'](_0x15ec7f))return'numbered';return null;}(_0x2073cd)['toUpperCase']()+'_LIST_'+_0x2073cd['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x13e452{['afterInit'](){const _0x4c4c86=this['editor'];_0x4c4c86['commands']['get']('emoji')&&_0x4c4c86['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x13e452{static get['requires'](){return[_0x3e1d1a];}['init'](){const _0x32a208=this['editor'],_0x53a669=_0x32a208['plugins']['get']('TrackChangesEditing'),_0x31bda4=_0x32a208['commands']['get']('enter');_0x53a669['enableCommand']('enter',()=>{_0x32a208['model']['change'](_0x28b041=>{const _0x15e70d=_0x32a208['model']['document']['selection'],_0xf4020a=_0x15e70d['getFirstPosition'](),_0x5445bf=_0x158d49['fromRange'](_0x15e70d['getFirstRange']());if(_0x31bda4['enterBlock'](_0x28b041)){const _0x5da2bd=_0x32a208['model']['createPositionAt'](_0xf4020a['parent']['nextSibling'],0x0),_0x22e931=_0x28b041['createRange'](_0xf4020a,_0x5da2bd);_0x53a669['markInsertion'](_0x22e931);}else _0x28b041['setSelection'](_0x28b041['createRange'](_0x5445bf['end']));_0x5445bf['detach'](),_0x31bda4['fire']('afterExecute',{'writer':_0x28b041});});}),_0x32a208['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x32a208,'split'),{'priority':'high'}),_0x32a208['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0xe4ffe0,_0x14ce75,_0x37174f)=>{const _0x1eff62=_0x37174f['mapper']['markerNameToElements'](_0x14ce75['markerName']);if(_0x1eff62){for(const _0x144379 of _0x1eff62)_0x144379['hasClass']('ck-suggestion-marker-split')&&(_0x37174f['mapper']['unbindElementFromMarkerName'](_0x144379,_0x14ce75['markerName']),_0x37174f['writer']['remove'](_0x144379));}},{'priority':'high'}),_0x32a208['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x42113b,_0x177f2c,_0x17052e)=>{_0x17052e['options']['showSuggestionHighlights']&&De(_0x32a208,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x42113b,_0x177f2c,_0x17052e);},{'priority':'high'});}}class Q extends _0x13e452{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x532ee8=this['editor']['plugins']['get']('TrackChangesEditing');_0x532ee8['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x532ee8['enableCommand']('findNext'),_0x532ee8['enableCommand']('findPrevious'),_0x532ee8['enableCommand']('replace'),_0x532ee8['enableCommand']('replaceAll');}['handleFindCommand'](_0x4af7ff,_0x3d78f,_0x206453={}){const _0x202c2b=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4af7ff(_0x5f1d44=>{let _0x4a1c88=('string'==typeof _0x3d78f?_0x202c2b['findByTextCallback'](_0x3d78f,_0x206453):_0x3d78f)(_0x5f1d44);Array['isArray'](_0x4a1c88)&&(_0x4a1c88={'results':_0x4a1c88,'searchText':'string'==typeof _0x3d78f?_0x3d78f:''});const _0x4f93c=_0x4a1c88['results']['filter'](_0x4c4695=>!0x1===this['_isInDeletionRange'](_0x4c4695,_0x5f1d44['item']));return{..._0x4a1c88,'results':_0x4f93c};},_0x206453);}['_isInDeletionRange'](_0x5ae141,_0x451fb3){const _0x54a201=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x451fb3,_0x5ae141['start']),this['editor']['model']['createPositionAt'](_0x451fb3,_0x5ae141['end']));for(const _0x384168 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x54a201['getIntersection'](_0x384168['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 _0x13e452{['afterInit'](){const _0x13037f=this['editor']['locale'],_0x172228=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xf6c9ef,commandName:_0x50b778}of eo)this['editor']['plugins']['has'](_0xf6c9ef)&&(_0x172228['enableDefaultAttributesIntegration'](_0x50b778),_0x172228['registerInlineAttribute'](_0x50b778));_0x172228['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x13037f,'FORMAT_FONT_SIZE')),_0x172228['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x13037f,'FORMAT_FONT_FAMILY')),_0x172228['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x13037f,'FORMAT_FONT_COLOR')),_0x172228['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x13037f,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b002b=this['editor'],_0x39b5c0=_0x4b002b['locale'];_0x4b002b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40dda3=>{const _0x3d933c=_0x39b5c0['t'];if('formatInline'!=_0x40dda3['type'])return;const {data:_0x1ec455}=_0x40dda3;if(null!=_0x1ec455){if('fontSize'==_0x1ec455['commandName']){const _0xaeea1a=_0x1ec455['commandParams'][0x0]['value'];if(_0xaeea1a){const _0xc98009=_0x3d933c(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x58f12c=>_0x58f12c['model']==_0xaeea1a)['title'])['toLowerCase']();return{'type':'format','content':o(_0x39b5c0,'*Set\x20font\x20size:*\x20%0',_0xc98009)};}return{'type':'format','content':o(_0x39b5c0,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1ec455['commandName']){const _0x5937db=_0x1ec455['commandParams'][0x0]['value'];return _0x5937db?{'type':'format','content':o(_0x39b5c0,'*Set\x20font\x20family:*\x20%0',_0x5937db)}:{'type':'format','content':o(_0x39b5c0,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1ec455['commandName']){const _0x58b2e0=_0x1ec455['commandParams'][0x0]['value'];if(_0x58b2e0){const _0xd4ba8=_0x1d2800(this['editor']['config']['get']('fontColor.colors'))['find'](_0x34a154=>_0x34a154['model']==_0x58b2e0);let _0x3ce7e4=_0x58b2e0,_0x1868b7='';return _0xd4ba8&&(_0x3ce7e4=_0xd4ba8['label'],_0x1868b7=_0x3d933c(_0x3ce7e4)['toLowerCase']()),{'type':'format','content':o(_0x39b5c0,'*Set\x20font\x20color:*\x20%0',_0x1868b7)['trim'](),'color':{'value':_0x58b2e0,'title':_0x1868b7||_0x3ce7e4}};}return{'type':'format','content':o(_0x39b5c0,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1ec455['commandName']){const _0x219279=_0x1ec455['commandParams'][0x0]['value'];if(_0x219279){const _0x22134f=_0x1d2800(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4f5209=>_0x4f5209['model']==_0x219279);let _0x506463=_0x219279,_0x49d8de='';return _0x22134f&&(_0x506463=_0x22134f['label'],_0x49d8de=_0x3d933c(_0x506463)['toLowerCase']()),{'type':'format','content':o(_0x39b5c0,'*Set\x20font\x20background\x20color:*\x20%0',_0x49d8de)['trim'](),'color':{'value':_0x219279,'title':_0x49d8de||_0x506463}};}return{'type':'format','content':o(_0x39b5c0,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x13e452{['afterInit'](){const _0x2a3870=this['editor'],_0x3dc58e=_0x2a3870['plugins']['get']('TrackChangesEditing'),_0x4b3172=_0x2a3870['commands']['get']('copyFormat'),_0x2f5d03=_0x2a3870['commands']['get']('pasteFormat');_0x4b3172&&_0x2f5d03&&(_0x3dc58e['enableDefaultAttributesIntegration']('pasteFormat'),_0x3dc58e['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x76eac2=this['editor'],_0x597da3=_0x76eac2['locale'];_0x76eac2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf99766=>{if('formatBlock'!=_0xf99766['type']&&'formatInline'!=_0xf99766['type'])return;const {data:_0x440bf8}=_0xf99766;if(_0x440bf8&&'pasteFormat'===_0x440bf8['commandName']){const _0x156eb4=[],_0x33637f=_0x440bf8['commandParams'][0x0];for(const [_0x39a877,_0x4706a2]of Object['entries'](_0x33637f))_0x156eb4['push'](ro(_0x76eac2,_0x39a877,_0x4706a2));return _0x156eb4['length']?{'type':'format','content':o(_0x597da3,'*Set\x20format\x20to:*\x20%0',_0x156eb4['join'](',\x20'))}:{'type':'format','content':o(_0x597da3,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x407cc0,_0x3cd10a,_0x1eba09){const _0x4f369b=_0x407cc0['locale']['t'],_0x177d58=_0x3cd10a['split'](/(?=[A-Z])/)['join']('\x20'),_0x4ee4e9=_0x4f369b(_0x177d58['charAt'](0x0)['toUpperCase']()+_0x177d58['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1eba09)return _0x4ee4e9;if('fontColor'===_0x3cd10a||'fontBackgroundColor'===_0x3cd10a){const _0x1b2e38=_0x1d2800(_0x407cc0['config']['get']('fontColor.colors'))['find'](_0x3a6505=>_0x3a6505['model']==_0x1eba09);return _0x4ee4e9+'\x20('+(_0x1b2e38?_0x4f369b(_0x1b2e38['label'])['toLowerCase']():_0x1eba09)+')';}if('fontSize'===_0x3cd10a&&isNaN(parseFloat(_0x1eba09))){const _0x448cc6=_0x407cc0['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x407cc0['config']['get']('fontSize.options'))['find'](_0x5d3647=>_0x5d3647['model']==_0x1eba09);return _0x4ee4e9+'\x20('+(_0x448cc6?_0x4f369b(_0x448cc6['title'])['toLowerCase']():_0x1eba09)+')';}return _0x4ee4e9+'\x20('+_0x1eba09+')';}class Z extends _0x13e452{['_headingOptions'];['afterInit'](){const _0x3c7245=this['editor'];if(!_0x3c7245['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3c7245['config']['get']('heading.options');const _0x1d7b3f=_0x3c7245['locale'],_0x3b5433=_0x3c7245['plugins']['get']('TrackChangesEditing');_0x3b5433['enableDefaultAttributesIntegration']('heading');for(const _0x11e6ce of this['_headingOptions'])'paragraph'!=_0x11e6ce['model']&&_0x3b5433['descriptionFactory']['registerElementLabel'](_0x11e6ce['model'],_0x13cb3d=>{const _0x340d5e=this['_getHeadingLevel'](_0x11e6ce['model']);return null!==_0x340d5e?_0x3c3cfa(_0x13cb3d,_0x340d5e):_0x887661(_0x13cb3d,_0x11e6ce['title']);});function _0x3c3cfa(_0x488d0e,_0x568623){return o(_0x1d7b3f,'ELEMENT_HEADING',[_0x488d0e,_0x568623]);}function _0x887661(_0x3b2caf,_0x59158d){return o(_0x1d7b3f,'ELEMENT_HEADING_CUSTOM',[_0x3b2caf,_0x59158d]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12f505=this['editor'],_0xd3c34a=_0x12f505['locale'];function _0x3bfb99(_0x1696e6,_0x29c9fb){return o(_0xd3c34a,'ELEMENT_HEADING_CUSTOM',[_0x1696e6,_0x29c9fb]);}_0x12f505['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24fe7f=>{if('formatBlock'!=_0x24fe7f['type'])return;const {data:_0xca69e9}=_0x24fe7f;if(_0xca69e9&&'heading'==_0xca69e9['commandName']){const _0x35392d=_0xca69e9['commandParams'][0x0]['value'],_0x5b1701=this['_getHeadingLevel'](_0x35392d);if(null!==_0x5b1701)return{'type':'format','content':o(_0xd3c34a,'*Change\x20to:*\x20%0',(_0x1b858b=0x1,_0x542686=_0x5b1701,o(_0xd3c34a,'ELEMENT_HEADING',[_0x1b858b,_0x542686])))};const _0x5b2f78=this['_headingOptions']['find'](_0x52d312=>_0x52d312['model']===_0x35392d)['title'];return{'type':'format','content':o(_0xd3c34a,'*Change\x20to:*\x20%0',_0x3bfb99(0x1,_0x5b2f78))};}var _0x1b858b,_0x542686;});}['_getHeadingLevel'](_0x33642d){const _0x1fb4cc=_0x33642d['match'](/^heading(\d+)/);if(_0x1fb4cc)return _0x1fb4cc[0x1];const _0x22a315=this['_headingOptions']?.['find'](_0x29e123=>_0x29e123['model']==_0x33642d);if(_0x22a315&&_0x22a315['view']){const _0x6213c8=_0x22a315['view'],_0x15fb5f=(_0x6213c8['name']??_0x6213c8)['match'](/^h(\d+)/);if(_0x15fb5f)return _0x15fb5f[0x1];}return null;}}class tt extends _0x13e452{['afterInit'](){const _0x11c000=this['editor'];if(!_0x11c000['plugins']['has']('HighlightEditing'))return;const _0x286ea5=_0x11c000['plugins']['get']('TrackChangesEditing'),_0xe07e3b=_0x11c000['locale'];_0x286ea5['enableDefaultAttributesIntegration']('highlight'),_0x286ea5['registerInlineAttribute']('highlight'),_0x286ea5['descriptionFactory']['registerAttributeLabel']('highlight',o(_0xe07e3b,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x409b5c=this['editor'],_0x2557e1=_0x409b5c['locale'];_0x409b5c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52e383=>{if('formatInline'!=_0x52e383['type'])return;const {data:_0xf01b70}=_0x52e383;if(_0xf01b70&&'highlight'==_0xf01b70['commandName']){const _0xf198be=_0x2557e1['t'],_0x426855=_0xf01b70['commandParams'][0x0]['value'];if(_0x426855){const _0x50f423=_0x409b5c['config']['get']('highlight.options')['find'](_0x28e47d=>_0x28e47d['model']==_0x426855),_0x5a3749=_0xf198be(_0x50f423['title'])['toLowerCase']();return{'type':'format','content':o(_0x2557e1,'*Set\x20highlight:*\x20%0',_0x5a3749),'color':{'value':_0x50f423['color'],'title':_0x50f423['title']}};}return{'type':'format','content':o(_0x2557e1,'*Remove\x20highlight*',o(_0x2557e1,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x13e452{['afterInit'](){const _0x41414d=this['editor'];if(!_0x41414d['plugins']['has']('HorizontalLineEditing'))return;_0x41414d['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x357029=_0x41414d['plugins']['get']('TrackChangesEditing'),_0x2c9584=_0x41414d['locale'];_0x357029['descriptionFactory']['registerElementLabel']('horizontalLine',_0x553237=>o(_0x2c9584,'ELEMENT_HORIZONTAL_LINE',_0x553237)),_0x41414d['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1b6b57,{writer:_0xe50b02,options:_0x457553})=>{if(!_0x457553['showSuggestionHighlights'])return null;const _0x1764d7=_0xe50b02['createContainerElement']('div'),_0x149c12=_0xe50b02['createEmptyElement']('hr');return _0xe50b02['addClass']('ck-horizontal-line',_0x1764d7),_0xe50b02['insert'](_0xe50b02['createPositionAt'](_0x1764d7,0x0),_0x149c12),_0x1764d7;},'converterPriority':'high'});}}class nt extends _0x13e452{['afterInit'](){const _0x19bd75=this['editor'];if(!_0x19bd75['plugins']['has']('HtmlEmbed'))return;const _0x58f932=_0x19bd75['plugins']['get']('TrackChangesEditing'),_0x123dda=_0x19bd75['locale'];_0x58f932['descriptionFactory']['registerElementLabel']('rawHtml',_0x53ecc5=>o(_0x123dda,'ELEMENT_HTML_EMBED',_0x53ecc5)),_0x58f932['enableDefaultAttributesIntegration']('htmlEmbed'),_0x58f932['registerBlockAttribute']('value'),_0x58f932['descriptionFactory']['registerDescriptionCallback'](_0x440867=>{if('attribute'!=_0x440867['type'])return;const {data:_0x350a06}=_0x440867;if(_0x350a06&&'value'==_0x350a06['key']&&_0x440867['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x37fb4f=o(_0x123dda,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x123dda,'*Change\x20%0\x20content*',_0x37fb4f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51f18c=this['editor'],_0x5557a3=_0x51f18c['locale'];_0x51f18c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x401adb=>{if('formatBlock'!=_0x401adb['type'])return;const {data:_0x41a4ea}=_0x401adb;if(_0x41a4ea&&'htmlEmbed'==_0x41a4ea['commandName']){const _0x5257a2=o(_0x5557a3,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5557a3,'*Change\x20%0\x20content*',_0x5257a2)};}});}}class et extends _0x13e452{['afterInit'](){const _0x11381b=this['editor'];if(!_0x11381b['plugins']['has']('ImageEditing'))return;const _0x1c69f3=_0x11381b['plugins']['get']('TrackChangesEditing'),_0x11f7e3=_0x11381b['plugins']['get']('ImageUtils'),_0x46dced=_0x11381b['locale'];_0x1c69f3['enableCommand']('insertImage'),_0x1c69f3['descriptionFactory']['registerElementLabel']('imageBlock',_0x52037d=>o(_0x46dced,'ELEMENT_IMAGE',_0x52037d)),_0x1c69f3['descriptionFactory']['registerElementLabel']('imageInline',_0x466ab2=>o(_0x46dced,'ELEMENT_INLINE_IMAGE',_0x466ab2)),_0x1c69f3['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x46dced,'ELEMENT_CAPTION')),_0x11381b['plugins']['has']('ImageUploadEditing')&&_0x1c69f3['enableCommand']('uploadImage'),_0x11381b['plugins']['has']('ImageBlockEditing')&&_0x11381b['plugins']['has']('ImageInlineEditing')&&(_0x1c69f3['enableCommand']('imageTypeInline',(_0x41a1f4,_0x169da7)=>{const _0x159e23=_0x11f7e3['getClosestSelectedImageElement'](_0x11381b['model']['document']['selection']);_0x11381b['model']['change'](()=>{_0x1c69f3['markBlockFormat'](_0x159e23,{'commandName':'imageTypeInline','commandParams':[_0x169da7]},[],'convertBlockImageToInline');});}),_0x1c69f3['enableCommand']('imageTypeBlock',(_0x94e5f3,_0x4cb06f)=>{_0x11381b['model']['change'](_0x571121=>{let _0x5e6668=_0x11f7e3['getClosestSelectedImageElement'](_0x11381b['model']['document']['selection']),_0x4e1bad=_0x571121['createRangeOn'](_0x5e6668);const _0x3889b9=_0x488dc6['fromPosition'](_0x4e1bad['start'],'toPrevious'),_0x3bafa8=_0x488dc6['fromPosition'](_0x4e1bad['end'],'toNext');_0x1c69f3['forceDefaultExecution'](()=>_0x94e5f3(_0x4cb06f)),_0x5e6668=_0x11f7e3['getClosestSelectedImageElement'](_0x11381b['model']['document']['selection']),_0x4e1bad=_0x571121['createRangeOn'](_0x5e6668);const _0x40139c=_0x571121['createRange'](_0x3889b9,_0x3bafa8);_0x3889b9['detach'](),_0x3bafa8['detach'](),_0x1c69f3['markBlockFormat'](_0x5e6668,{'commandName':'imageTypeInline','commandParams':[_0x4cb06f]},[],'convertInlineImageToBlock'),_0x40139c['start']['isBefore'](_0x4e1bad['start'])&&_0x1c69f3['markInsertion'](_0x571121['createRange'](_0x40139c['start'],_0x4e1bad['start']),'convertInlineImageToBlock'),_0x4e1bad['end']['isBefore'](_0x40139c['end'])&&_0x1c69f3['markInsertion'](_0x571121['createRange'](_0x4e1bad['end'],_0x40139c['end']),'convertInlineImageToBlock');});}),_0x1c69f3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1c69f3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1c69f3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1c69f3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1c69f3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1c69f3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x348dc6])=>{const _0x1feae5=_0x1c69f3['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1b0baf=_0x348dc6['start'],_0x4e7692=_0x348dc6['end'];const _0x5b781b=_0x11381b['model']['schema']['getNearestSelectionRange'](_0x1b0baf,'backward'),_0xe35259=_0x11381b['model']['schema']['getNearestSelectionRange'](_0x4e7692,'forward');_0x5b781b['isCollapsed']&&(_0x1b0baf=_0x5b781b['start']),_0xe35259['isCollapsed']&&(_0x4e7692=_0xe35259['end']),_0x1feae5([_0x11381b['model']['createRange'](_0x1b0baf,_0x4e7692)]);}),_0x1c69f3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xa81911),_0x1c69f3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xa81911)),_0x11381b['plugins']['has']('ImageCaptionEditing')&&(_0x1c69f3['enableCommand']('toggleImageCaption',(_0x1ec58c,_0xd82105)=>{const _0x5289e9=_0x11381b['plugins']['get']('ImageCaptionUtils');let _0x55115a=_0x11f7e3['getClosestSelectedImageElement'](_0x11381b['model']['document']['selection']),_0x2b5479=_0x5289e9['getCaptionFromImageModelElement'](_0x55115a);_0x11381b['model']['change'](()=>{if(_0x2b5479)return void _0x1c69f3['markDeletion'](_0x11381b['model']['createRangeOn'](_0x2b5479));const _0x1ff2f7=_0x11f7e3['isBlockImage'](_0x55115a);_0x1ec58c(_0xd82105),_0x55115a=_0x11f7e3['getClosestSelectedImageElement'](_0x11381b['model']['document']['selection']),_0x2b5479=_0x5289e9['getCaptionFromImageModelElement'](_0x55115a),_0x1c69f3['markInsertion'](_0x11381b['model']['createRangeOn'](_0x2b5479),_0x1ff2f7?null:'imageCaption');});}),_0x1c69f3['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xa81911));const _0x540e37=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x10b9b2(_0x404e58,_0x496f7f){const _0x20b971=_0x540e37['findIndex'](({type:_0x2973bf,subType:_0x30fe96})=>_0x404e58['type']==_0x2973bf&&_0x404e58['subType']==_0x30fe96),_0x5e551f=_0x540e37['findIndex'](({type:_0x260f4e,subType:_0x3896c4})=>_0x496f7f['type']==_0x260f4e&&_0x496f7f['subType']==_0x3896c4);if(_0x20b971<0x0||_0x5e551f<0x0)return!0x1;const _0x11ef4d=_0x404e58['getFirstRange'](),_0x56ffdb=_0x496f7f['getFirstRange']();if((0x0==_0x20b971||0x1==_0x20b971)&&0x2==_0x5e551f&&_0x11ef4d['isIntersecting'](_0x56ffdb))return!0x0;if(0x2==_0x20b971&&0x3==_0x5e551f){const _0x5a32ed=_0x1c69f3['_findSuggestions'](_0x11ef4d,'insertion')['filter'](({suggestion:_0x3dc81d,meta:_0x25566e})=>_0x25566e['isOwn']&&'convertInlineImageToBlock'==_0x3dc81d['subType']);if(_0x5a32ed['length']>0x1&&_0x56ffdb['end']['isEqual'](_0x11ef4d['start']))return!0x0;if(0x1==_0x5a32ed['length']&&(_0x11ef4d['start']['isEqual'](_0x56ffdb['end'])||_0x11ef4d['end']['isEqual'](_0x56ffdb['start'])))return!0x0;}if(0x3==_0x20b971&&0x3==_0x5e551f&&_0x11ef4d['start']['isBefore'](_0x56ffdb['start'])){const _0x36b7d6=_0x11ef4d['end']['nodeAfter'],_0x57437e=_0x56ffdb['start']['nodeBefore'];return _0x11f7e3['isBlockImage'](_0x36b7d6)&&_0x36b7d6===_0x57437e;}return!0x1;}function _0xa81911(_0x294d9d,_0x23e8bb){return _0x10b9b2(_0x294d9d,_0x23e8bb)?[_0x294d9d,_0x23e8bb]:_0x10b9b2(_0x23e8bb,_0x294d9d)?[_0x23e8bb,_0x294d9d]:null;}_0x11381b['plugins']['has']('ImageResize')&&(_0x1c69f3['enableDefaultAttributesIntegration']('resizeImage'),_0x1c69f3['registerBlockAttribute']('resizedWidth'),_0x1c69f3['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x46dced,'FORMAT_IMAGE_SIZE'))),_0x11381b['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1c69f3['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1c69f3['registerBlockAttribute']('alt')),_0x11381b['plugins']['has']('PictureEditing')&&(_0x1c69f3['registerBlockAttribute']('sources'),_0x1c69f3['descriptionFactory']['registerDescriptionCallback'](_0xe40826=>{if('attribute'!=_0xe40826['type'])return;const {data:_0x1b9171}=_0xe40826;return _0x1b9171&&'sources'==_0x1b9171['key']?{'type':'format','content':''}:void 0x0;})),_0x11381b['plugins']['has']('ImageSizeAttributes')&&(_0x1c69f3['registerBlockAttribute']('width'),_0x1c69f3['registerBlockAttribute']('height'),_0x1c69f3['descriptionFactory']['registerDescriptionCallback'](_0x14db52=>{if('attribute'!=_0x14db52['type'])return;const {data:_0x496969}=_0x14db52;return!_0x496969||'width'!=_0x496969['key']&&'height'!=_0x496969['key']?void 0x0:{'type':'format','content':''};})),_0x1c69f3['descriptionFactory']['registerDescriptionCallback'](_0x2b8645=>{if(!!_0x540e37['find'](({type:_0x1b45a3,subType:_0x5b4f41})=>_0x2b8645['type']==_0x1b45a3&&_0x2b8645['subType']==_0x5b4f41))return _0x2b8645['previous']?{}:void 0x0;}),_0x1c69f3['descriptionFactory']['registerDescriptionCallback'](_0x37de6f=>{if('insertion'==_0x37de6f['type']||'deletion'==_0x37de6f['type']){const _0x5783ba=_0x37de6f['getContainedElement']();if(_0x5783ba&&_0x5783ba['is']('element','caption'))return{'type':'insertion'==_0x37de6f['type']?'addObject':'removeObject','element':_0x5783ba,'quantity':0x1};}}),_0x1c69f3['descriptionFactory']['registerDescriptionCallback'](_0x22d1d7=>'formatBlock'==_0x22d1d7['type']&&'convertInlineImageToBlock'==_0x22d1d7['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x22d1d7['type']&&'convertBlockImageToInline'==_0x22d1d7['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1c69f3['descriptionFactory']['registerDescriptionCallback'](_0x19a150=>{if('attribute'!=_0x19a150['type'])return;const {data:_0x28190f}=_0x19a150;if(!_0x28190f||'alt'!=_0x28190f['key'])return;const _0x5a5fd8=_0x28190f['newValue'];return _0x5a5fd8?{'type':'format','content':o(_0x46dced,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5a5fd8+'\x22')}:{'type':'format','content':o(_0x46dced,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13ace4=this['editor'],_0x16ce4e=_0x13ace4['locale'];_0x13ace4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3db944=>{if('formatBlock'!=_0x3db944['type']&&'formatInline'!=_0x3db944['type'])return;const {data:_0x2441a5}=_0x3db944;if(_0x2441a5){if('imageTextAlternative'==_0x2441a5['commandName']){const _0x293e7d=_0x2441a5['commandParams'][0x0]['newValue'];return _0x293e7d?{'type':'format','content':o(_0x16ce4e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x293e7d+'\x22')}:{'type':'format','content':o(_0x16ce4e,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2441a5['commandName']){const _0x5c665f=_0x2441a5['commandParams'][0x0]['width'];return _0x5c665f?{'type':'format','content':o(_0x16ce4e,'*Set\x20image\x20width:*\x20%0',_0x5c665f)}:{'type':'format','content':o(_0x16ce4e,'*Reset\x20image\x20width*')};}}});}}class st extends _0x13e452{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1d7787=this['editor']['locale'],_0x109690=this['editor']['plugins']['get']('TrackChangesEditing');_0x109690['enableDefaultAttributesIntegration']('replaceImageSource'),_0x109690['registerBlockAttribute']('src'),_0x109690['descriptionFactory']['registerDescriptionCallback'](_0x3ce29c=>{if('attribute'!=_0x3ce29c['type'])return;const {data:_0x3f33ba}=_0x3ce29c;return _0x3f33ba&&'src'==_0x3f33ba['key']?_0x3f33ba['newValue']&&_0x3f33ba['oldValue']?{'type':'format','content':o(_0x1d7787,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4fc2bf=this['editor']['plugins']['get']('TrackChangesEditing');_0x4fc2bf['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4fc2bf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4fc2bf['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4fc2bf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x381b72=this['editor'],_0x10a242=_0x381b72['locale'];_0x381b72['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x517c7d=>{if('formatBlock'!=_0x517c7d['type']&&'formatInline'!=_0x517c7d['type'])return;const {data:_0x5ea905}=_0x517c7d;if(!_0x5ea905||'replaceImageSource'!=_0x5ea905['commandName'])return;return{'type':'format','content':o(_0x10a242,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x13e452{['afterInit'](){const _0x392ef9=this['editor'];if(!_0x392ef9['plugins']['has']('ImageStyleEditing'))return;const _0x1658b3=_0x392ef9['plugins']['get']('TrackChangesEditing'),_0x3ce559=_0x392ef9['plugins']['get']('ImageUtils'),_0x479f87={};_0x1658b3['enableCommand']('imageStyle',(_0x38c206,_0x33f0db)=>{const _0x1ac35d=_0x392ef9['plugins']['get']('Users')['me'],_0x363d42=_0x392ef9['commands']['get']('imageStyle');let _0x3d6506=_0x3ce559['getClosestSelectedImageElement'](_0x392ef9['model']['document']['selection']),_0x22f2be=_0x392ef9['model']['createRangeOn'](_0x3d6506),_0x48d7c3=_0x363d42['value'];if(_0x48d7c3==_0x33f0db['value'])return;const _0x395fb0={'commandName':'imageStyle','commandParams':[_0x33f0db],'formatGroupId':_0x22223a()};_0x392ef9['model']['change'](()=>{if(_0x1658b3['getSuggestions']()['filter'](_0x561c76=>_0x561c76['isInContent']&&_0x1ac35d==_0x561c76['author']&&('formatBlock'==_0x561c76['type']||'formatInline'==_0x561c76['type'])&&('imageStylePreApply'==_0x561c76['subType']||'imageStylePostApply'==_0x561c76['subType'])&&_0x561c76['getFirstRange']()['isEqual'](_0x22f2be))['forEach'](_0x345ea3=>_0x1658b3['discardSuggestion'](_0x345ea3['head'])),_0x3d6506=_0x3ce559['getClosestSelectedImageElement'](_0x392ef9['model']['document']['selection']),_0x22f2be=_0x392ef9['model']['createRangeOn'](_0x3d6506),_0x363d42['refresh'](),_0x392ef9['commands']['get']('imageTypeInline')['refresh'](),_0x392ef9['commands']['get']('imageTypeBlock')['refresh'](),_0x48d7c3=_0x363d42['value'],_0x48d7c3!=_0x33f0db['value'])return _0x3ce559['isInlineImage'](_0x3d6506)&&_0x363d42['shouldConvertImageType'](_0x33f0db['value'],_0x3d6506)?(_0x38c206({..._0x33f0db,'setImageSizes':!0x1}),_0x3d6506=_0x3ce559['getClosestSelectedImageElement'](_0x392ef9['model']['document']['selection']),void _0x1658b3['markBlockFormat'](_0x3d6506,{..._0x395fb0,'commandReversedParams':[{'value':_0x48d7c3||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3ce559['isBlockImage'](_0x3d6506)?_0x1658b3['markBlockFormat'](_0x3d6506,_0x395fb0,[],'imageStylePostApply'):_0x1658b3['markInlineFormat'](_0x22f2be,_0x395fb0,'imageStylePostApply'));});});for(const _0x6cf4bd of _0x392ef9['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x479f87[_0x6cf4bd['name']]=_0x6cf4bd['title']['toLowerCase']();_0x1658b3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1658b3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1658b3['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1658b3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x487dde])=>{_0x3ce559['setImageNaturalSizeAttributes'](_0x487dde['getContainedElement']());}),_0x1658b3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2a455a,_0x40f6c6)=>{_0x1658b3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2a455a,{'commandName':_0x40f6c6['commandName'],'commandParams':_0x40f6c6['commandReversedParams']});}),_0x1658b3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x339406,_0x22e4fe){if(_0x49ac77(_0x339406,_0x22e4fe))return[_0x339406,_0x22e4fe];if(_0x49ac77(_0x22e4fe,_0x339406))return[_0x22e4fe,_0x339406];return null;});const _0x3af73e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x49ac77(_0x3e59d2,_0xf9d85c){const _0x1fe4dc=_0x3af73e['findIndex'](({type:_0x2a610f,subType:_0x1a6cf1})=>_0x3e59d2['type']==_0x2a610f&&_0x3e59d2['subType']==_0x1a6cf1),_0x3602f3=_0x3af73e['findIndex'](({type:_0x35054d,subType:_0x40df29})=>_0xf9d85c['type']==_0x35054d&&_0xf9d85c['subType']==_0x40df29);if(_0x1fe4dc<0x0||_0x3602f3<0x0)return!0x1;const _0xf99737=_0x3e59d2['getFirstRange'](),_0x2dab70=_0xf9d85c['getFirstRange']();if((0x0==_0x1fe4dc||0x1==_0x1fe4dc)&&0x2==_0x3602f3&&_0xf99737['isIntersecting'](_0x2dab70))return!0x0;if(0x2==_0x1fe4dc&&0x3==_0x3602f3){const _0x5c2663=_0x1658b3['_findSuggestions'](_0xf99737,'insertion')['filter'](({suggestion:_0x4d0123,meta:_0x2ad9a1})=>_0x2ad9a1['isOwn']&&'convertInlineImageToBlock'==_0x4d0123['subType']);if(_0x5c2663['length']>0x1&&_0x2dab70['end']['isEqual'](_0xf99737['start']))return!0x0;if(0x1==_0x5c2663['length']&&(_0xf99737['start']['isEqual'](_0x2dab70['end'])||_0xf99737['end']['isEqual'](_0x2dab70['start'])))return!0x0;}if(0x3==_0x1fe4dc&&0x3==_0x3602f3&&_0xf99737['start']['isBefore'](_0x2dab70['start'])){const _0x880434=_0xf99737['end']['nodeAfter'],_0x4e768d=_0x2dab70['start']['nodeBefore'];return _0x3ce559['isBlockImage'](_0x880434)&&_0x880434===_0x4e768d;}return!0x1;}_0x392ef9['model']['document']['registerPostFixer'](()=>{let _0x10c7ed=!0x1;const _0x93446=Array['from'](_0x392ef9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1bd5b1,data:_0x987769}of _0x93446){const {group:_0x231893,type:_0x1001ea,subType:_0x45110c,id:_0x122fd2}=_0x1658b3['_splitMarkerName'](_0x1bd5b1);if('suggestion'==_0x231893&&_0x1658b3['hasSuggestion'](_0x122fd2)){if('formatBlock'==_0x1001ea&&('imageStylePreApply'==_0x45110c||'imageStylePostApply'==_0x45110c)){const _0x36d2ee=_0x1658b3['getSuggestion'](_0x122fd2);if(_0x987769['newRange']){const _0xdfa59f=_0x36d2ee['getFirstRange']()['getContainedElement']();if(_0x3ce559['isBlockImage'](_0xdfa59f))continue;_0x1658b3['discardSuggestion'](_0x36d2ee),_0x10c7ed=!0x0;}}if('insertion'==_0x1001ea&&'imageCaption'==_0x45110c&&!_0x987769['newRange']){const _0x1ea1d2=_0x1658b3['getSuggestion'](_0x122fd2);_0x1ea1d2['next']&&_0x1ea1d2['next']['isInContent']&&(_0x1658b3['discardSuggestion'](_0x1ea1d2['next']),_0x10c7ed=!0x0);}}}return _0x10c7ed;}),this['_registerLegacyDescription'](_0x479f87);}['_registerLegacyDescription'](_0x326ab0){const _0xc7ad5f=this['editor'],_0x3bc7c0=_0xc7ad5f['locale'];_0xc7ad5f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36d835=>{if('formatBlock'!=_0x36d835['type']&&'formatInline'!=_0x36d835['type'])return;const {data:_0x44ef45}=_0x36d835;if(!_0x44ef45||'imageStyle'!=_0x44ef45['commandName'])return;const _0x207b0b=_0x44ef45['commandParams'][0x0]['value'];return _0x31d1da('side'===_0x207b0b?o(_0x3bc7c0,'FORMAT_SIDE_IMAGE'):_0x326ab0[_0x207b0b]||_0x207b0b);function _0x31d1da(_0x287aff){return{'type':'format','content':o(_0x3bc7c0,'*Format:*\x20%0',_0x287aff)};}});}}class rt extends _0x13e452{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x48b062){super(_0x48b062),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2eca17=this['editor'],_0x44bd77=_0x2eca17['commands']['get']('importWord'),_0x4e8c80=_0x2eca17['commands']['get']('trackChanges');_0x44bd77&&(_0x44bd77['on']('execute',(_0x57c54b,[,_0xb11b53])=>{this['_trackChangesValueDuringImport']=_0x4e8c80['value'],_0xb11b53['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x44bd77,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x44bd77,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4e8c80['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2eca17['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x15c5e8,_0x39250f){const {suggestions:_0x378962}=_0x39250f,_0x57a4bb=this['editor']['commands']['get']('trackChanges'),_0x36bc45=_0x57a4bb['value'];this['_trackChangesValueDuringImport']!==_0x36bc45&&(_0x57a4bb['execute'](),this['_trackChangesExecuted']=!0x0),_0x378962&&_0x378962['forEach'](({id:_0x2f5cf1,type:_0x1f047c,author:_0x56e05d,created_at:_0x1ab9e8})=>{const _0x358fa3={'id':_0x2f5cf1,'type':_0x1f047c,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x56e05d,'createdAt':_0x1ab9e8?new Date(_0x1ab9e8):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x358fa3);});}}class at extends _0x13e452{['afterInit'](){const _0x835b6a=this['editor'],_0x47845e=_0x835b6a['plugins']['get']('TrackChangesEditing');if(_0x835b6a['plugins']['has']('IndentEditing')&&(_0x47845e['enableCommand']('indent'),_0x47845e['enableCommand']('outdent')),_0x835b6a['plugins']['has']('IndentBlock')){for(const _0x55636f of['indentBlock','outdentBlock'])_0x47845e['enableDefaultAttributesIntegration'](_0x55636f);}const _0x55fe50=_0x835b6a['locale'];_0x47845e['registerBlockAttribute']('blockIndent'),_0x47845e['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x55fe50,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8f4550=this['editor'],_0x405e0f=_0x8f4550['locale'],_0x3a5554=_0x8f4550['plugins']['get']('TrackChangesEditing');_0x3a5554['descriptionFactory']['registerDescriptionCallback'](_0x15261c=>{if('formatBlock'!=_0x15261c['type'])return;const {data:_0x110553}=_0x15261c;if(!_0x110553)return;if('indentBlock'!=_0x110553['commandName']&&'outdentBlock'!=_0x110553['commandName'])return;const _0x2aba2e=_0x15261c['getItems']()[0x0],_0x2dc276=_0x3a5554['descriptionFactory']['getItemLabel'](_0x2aba2e);return'indentBlock'==_0x110553['commandName']?{'type':'format','content':o(_0x405e0f,'*Indent:*\x20%0',_0x2dc276)}:'outdentBlock'==_0x110553['commandName']?{'type':'format','content':o(_0x405e0f,'*Outdent:*\x20%0',_0x2dc276)}:void 0x0;});}}class ct extends _0x13e452{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x13e452{['afterInit'](){const _0x19be13=this['editor'];if(!_0x19be13['plugins']['has']('LinkEditing'))return;const _0x482c8f=_0x19be13['plugins']['get']('TrackChangesEditing'),_0x35a92c=_0x19be13['commands']['get']('link');_0x482c8f['enableDefaultAttributesIntegration']('link'),_0x482c8f['enableDefaultAttributesIntegration']('unlink'),_0x482c8f['registerInlineAttribute']('linkHref');for(const _0x1b308c of _0x35a92c['manualDecorators'])_0x482c8f['registerInlineAttribute'](_0x1b308c['id']),_0x482c8f['descriptionFactory']['registerAttributeLabel'](_0x1b308c['id'],'link\x20('+_0x1b308c['label']['toLowerCase']()+')');_0x482c8f['descriptionFactory']['registerDescriptionCallback'](_0x4732bd=>{if('attribute'!=_0x4732bd['type'])return;const {data:_0x5d956a}=_0x4732bd;if(!_0x5d956a||'linkHref'!=_0x5d956a['key'])return;const _0x42735b=_0x5d956a['newValue'],_0x483a02=_0x19be13['locale'];return{'type':'format','content':null==_0x42735b?o(_0x483a02,'*Remove\x20link*'):o(_0x483a02,'*Set\x20link:*\x20%0','\x22'+_0x42735b+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b9b7b=this['editor'],_0x55b41b=_0x4b9b7b['locale'];_0x4b9b7b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x111388=>{if('formatInline'!=_0x111388['type'])return;const {data:_0x5dbc84}=_0x111388;if(_0x5dbc84){if('link'==_0x5dbc84['commandName']){const _0x5f37ed=_0x5dbc84['commandParams'][0x0];return{'type':'format','content':o(_0x55b41b,'*Set\x20link:*\x20%0','\x22'+_0x5f37ed+'\x22')};}return'unlink'==_0x5dbc84['commandName']?{'type':'format','content':o(_0x55b41b,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x13e452{['afterInit'](){const _0x4fa5d4=this['editor'],_0x278321=_0x4fa5d4['locale'];if(!_0x4fa5d4['plugins']['has']('LegacyListEditing'))return;const _0x19618f=_0x4fa5d4['plugins']['get']('TrackChangesEditing'),_0x5ab760=_0x4fa5d4['plugins']['has']('LegacyTodoListEditing');function _0x225094(_0x2cb9b5){return()=>{const _0x39dcea=_0x4fa5d4['model']['document']['selection'],_0x3d7a9e=_0x4fa5d4['commands']['get'](_0x2cb9b5);if(_0x3d7a9e['value'])return void _0x4fa5d4['execute']('paragraph',{});const _0x323548=_0x2cb9b5['slice'](0x0,-0x4),_0x1a34f5=function(_0xb0a981,_0x7d7d2c,_0x583d32){let _0x2b4c4f=Array['from'](_0xb0a981)['filter'](_0x4dc543=>function(_0x4ccc6d,_0x2c25f3){return _0x2c25f3['checkChild'](_0x4ccc6d['parent'],'listItem')&&!_0x2c25f3['isObject'](_0x4ccc6d);}(_0x4dc543,_0x583d32));_0x2b4c4f=_0x2b4c4f['filter'](_0x3c8eb9=>!_0x3c8eb9['is']('element','listItem')||_0x3c8eb9['getAttribute']('listType')!=_0x7d7d2c);const _0x19ad39=new Set();for(const _0x55ed0f of _0x2b4c4f)_0x55ed0f['is']('element','listItem')?_0x19ad39['add'](Le(_0x55ed0f)):_0x19ad39['add'](_0x55ed0f);return Array['from'](_0x19ad39);}(_0x39dcea['getSelectedBlocks'](),_0x323548,_0x4fa5d4['model']['schema']);_0x4fa5d4['model']['change'](()=>{for(const _0x450b5b of _0x1a34f5)_0x19618f['markBlockFormat'](_0x450b5b,{'commandName':_0x2cb9b5,'commandParams':[{'forceValue':!_0x3d7a9e['value']}],'formatGroupId':'blockName'},Ee(_0x450b5b));});};}function _0x12688a(_0x46599e){return()=>{const _0x4dd34e=function(_0x4c459d){let _0x108fad=Array['from'](_0x4c459d);const _0x15a854=_0x108fad['findIndex'](_0x106a92=>'listItem'!=_0x106a92['name']);return _0x15a854>-0x1&&(_0x108fad=_0x108fad['slice'](0x0,_0x15a854)),_0x108fad;}(_0x4fa5d4['model']['document']['selection']['getSelectedBlocks']()),_0x68dd61=_0x4fa5d4['model']['createRange'](_0x4fa5d4['model']['createPositionAt'](_0x4dd34e[0x0],'before'),_0x4fa5d4['model']['createPositionAt'](_0x4dd34e[_0x4dd34e['length']-0x1],'end'));_0x4fa5d4['model']['change'](()=>{_0x19618f['markBlockFormat'](_0x68dd61,{'commandName':_0x46599e,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1b6e74){const _0x5dbf6d=new Set();for(const _0x1b467e of _0x1b6e74){let _0x12daec=_0x1b467e['nextSibling'];for(;_0x12daec&&_0x12daec['getAttribute']('listIndent')>_0x1b467e['getAttribute']('listIndent');)_0x5dbf6d['add'](_0x12daec),_0x12daec=_0x12daec['nextSibling'];}return Array['from'](_0x5dbf6d);}(_0x4dd34e));});};}_0x19618f['enableCommand']('numberedList',_0x225094('numberedList')),_0x19618f['enableCommand']('bulletedList',_0x225094('bulletedList')),_0x5ab760&&_0x19618f['enableCommand']('todoList',_0x225094('todoList')),_0x19618f['enableCommand']('indentList',_0x12688a('indentList')),_0x19618f['enableCommand']('outdentList',_0x12688a('outdentList')),_0x5ab760&&_0x19618f['enableCommand']('checkTodoList',()=>{const _0xe0c69d=_0x4fa5d4['commands']['get']('checkTodoList'),_0x9c9d5b=Array['from'](_0xe0c69d['_selectedElements']);_0x9c9d5b['filter'](_0xccbc1b=>_0xccbc1b['getAttribute']('todoListChecked')!=_0xe0c69d['value']),_0x4fa5d4['model']['change'](()=>{for(const _0x2bc691 of _0x9c9d5b)_0x19618f['markBlockFormat'](_0x2bc691,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xe0c69d['value']}]});});}),_0x19618f['descriptionFactory']['registerElementLabel']('listItem',_0x509706=>o(_0x278321,'ELEMENT_LIST_ITEM',_0x509706)),_0x19618f['descriptionFactory']['registerDescriptionCallback'](_0x82fb8f=>{if('formatBlock'!=_0x82fb8f['type']&&'formatInline'!=_0x82fb8f['type'])return;const {data:_0x30b252}=_0x82fb8f;if(_0x30b252){if('numberedList'==_0x30b252['commandName']||'bulletedList'==_0x30b252['commandName']||'todoList'==_0x30b252['commandName'])switch(_0x30b252['commandName']['replace']('List','')){case'bulleted':return _0x58da99(o(_0x278321,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x58da99(o(_0x278321,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x58da99(o(_0x278321,'ELEMENT_TODO_LIST'));}if('indentList'==_0x30b252['commandName'])return{'type':'format','content':o(_0x278321,'*Indent:*\x20%0',o(_0x278321,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x30b252['commandName'])return{'type':'format','content':o(_0x278321,'*Outdent:*\x20%0',o(_0x278321,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x30b252['commandName'])return _0x30b252['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x278321,'*Check\x20item*')}:{'type':'format','content':o(_0x278321,'*Uncheck\x20item*')};}function _0x58da99(_0x4caa1e){return{'type':'format','content':o(_0x278321,'*Change\x20to:*\x20%0',_0x4caa1e)};}});}}function Le(_0x405239){const _0x4f1b69=_0x405239['getAttribute']('listIndent');if(0x0==_0x4f1b69)return _0x405239;let _0x54b84b=_0x405239;for(;_0x405239['previousSibling']&&_0x405239['previousSibling']['is']('element','listItem');){const _0x10791a=_0x405239['previousSibling']['getAttribute']('listIndent');if(_0x10791a==_0x4f1b69)_0x54b84b=_0x405239['previousSibling'];else{if(_0x10791a<_0x4f1b69)break;}_0x405239=_0x405239['previousSibling'];}return _0x54b84b;}function Ee(_0x4381f2){const _0x5ddce0=[];if(_0x4381f2['is']('element','listItem')&&_0x4381f2['getAttribute']('listIndent')>0x0){let _0x139110=_0x4381f2['nextSibling'];for(;_0x139110&&'listItem'==_0x139110['name']&&_0x139110['getAttribute']('listIndent')==_0x4381f2['getAttribute']('listIndent');)_0x5ddce0['push'](_0x139110),_0x139110=_0x139110['nextSibling'];}return _0x5ddce0;}class ht extends _0x13e452{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x7dc726=this['editor']['config']['get']('list.properties'),_0x5152e3=this['editor']['plugins']['get']('TrackChangesEditing');_0x7dc726['styles']&&_0x5152e3['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x7dc726['reversed']&&_0x5152e3['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x7dc726['startIndex']&&_0x5152e3['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5152e3['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x382ddd,_0x4a4854={}){const _0x2bf6c8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x45f3b1=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2bf6c8['markMultiRangeBlockFormat'](_0x45f3b1,{'commandName':'listStyle','commandParams':[{'type':_0x4a4854['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5c1efb,_0x270e5e={}){const _0x3e648c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x553cdc=this['_getSuggestionBlocks'](_0xf1f494=>_0xf1f494['is']('element','listItem')&&'numbered'===_0xf1f494['getAttribute']('listType'));if(_0x553cdc['length']<0x1)return;const _0x514984=_0x553cdc['map'](_0xd1d3f2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xd1d3f2,'before'),this['editor']['model']['createPositionAt'](_0xd1d3f2,0x0)));this['editor']['model']['change'](()=>{_0x3e648c['markMultiRangeBlockFormat'](_0x514984,{'commandName':'listReversed','commandParams':[{'reversed':_0x270e5e['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xcb3b7c,_0x276f65={}){const _0x29e734=this['editor']['plugins']['get']('TrackChangesEditing'),_0x269016=this['_getSuggestionBlocks'](_0x2e3da8=>_0x2e3da8['is']('element','listItem')&&'numbered'===_0x2e3da8['getAttribute']('listType'));if(_0x269016['length']<0x1)return;const _0x69d716=_0x269016['map'](_0x32a595=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x32a595,'before'),this['editor']['model']['createPositionAt'](_0x32a595,0x0)));this['editor']['model']['change'](()=>{_0x29e734['markMultiRangeBlockFormat'](_0x69d716,{'commandName':'listStart','commandParams':[{'startIndex':_0x276f65['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x59f48c){if('formatBlock'!=_0x59f48c['type']&&'formatInline'!=_0x59f48c['type'])return;const _0x1b1447=this['editor']['locale'],{data:_0xaf94d0}=_0x59f48c;if(!_0xaf94d0)return;let _0x1c1aed,_0x56108;switch(_0xaf94d0['commandName']){case'listStyle':_0x1c1aed='*Change\x20to:*\x20%0',_0x56108={'type':'format','content':o(_0x1b1447,_0x1c1aed,o(_0x1b1447,this['_getTranslationKeyForListStyle'](_0xaf94d0['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1c1aed=_0xaf94d0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x56108={'type':'format','content':o(_0x1b1447,_0x1c1aed)};break;case'listStart':_0x1c1aed='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x56108={'type':'format','content':o(_0x1b1447,_0x1c1aed,_0xaf94d0['commandParams'][0x0]['startIndex'])};}return _0x56108;}['_getSuggestionBlocksForListStyle'](){const _0xfae71f=this['editor']['plugins']['get']('LegacyListUtils');let _0x3bc004=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3bc004[0x0]?.['is']('element','listItem')&&_0x3bc004['unshift'](..._0xfae71f['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3bc004[_0x3bc004['length']-0x1]?.['is']('element','listItem')&&_0x3bc004['push'](..._0xfae71f['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3bc004=[...new Set(_0x3bc004)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3bc004=_0x3bc004['filter'](_0x2fd4b8=>_0x2fd4b8['is']('element','listItem'))),_0x3bc004;}['_getSuggestionBlocks'](_0x18ede8){const _0x1dd945=this['editor']['plugins']['get']('LegacyListUtils');let _0x54b4e1=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x18ede8)['map'](_0x3b8cae=>{const _0x4b4ada=this['editor']['model']['createPositionAt'](_0x3b8cae,0x0);return[..._0x1dd945['getSiblingNodes'](_0x4b4ada,'backward'),..._0x1dd945['getSiblingNodes'](_0x4b4ada,'forward')];})['flat']();return _0x54b4e1=[...new Set(_0x54b4e1)],_0x54b4e1;}['_getTranslationKeyForListStyle'](_0x27773b){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x27773b)||'default')['toUpperCase']()+'_LIST_'+_0x27773b['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x13e452{['afterInit'](){const _0xca1d5b=this['editor'];if(!_0xca1d5b['plugins']['has']('MediaEmbedEditing'))return;const _0x595b3a=_0xca1d5b['plugins']['get']('TrackChangesEditing'),_0x6817a0=_0xca1d5b['locale'];_0x595b3a['enableCommand']('mediaEmbed'),_0x595b3a['descriptionFactory']['registerElementLabel']('media',_0x2380dd=>o(_0x6817a0,'ELEMENT_MEDIA',_0x2380dd)),_0xca1d5b['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2671f9,{writer:_0x49f69c,options:_0x5774e5})=>{if(_0x5774e5['showSuggestionHighlights'])return _0x49f69c['createEmptyElement']('div');},'converterPriority':'high'}),_0xca1d5b['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1b2ad9,_0x54d9e0,_0x1e539b)=>{_0x1e539b['options']['showSuggestionHighlights']&&_0x1b2ad9['stop']();},{'priority':'high'});}}class lt extends _0x13e452{['afterInit'](){const _0x23967d=this['editor'];_0x23967d['plugins']['has']('MentionEditing')&&_0x23967d['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x13e452{['afterInit'](){const _0x56b972=this['editor'];if(!_0x56b972['plugins']['has']('MergeFieldsEditing'))return;const _0x3f3286=_0x56b972['plugins']['get']('TrackChangesEditing'),_0x577af6=_0x56b972['locale'];_0x3f3286['enableCommand']('insertMergeField'),_0x3f3286['enableCommand']('insertMergeFieldBlock'),_0x3f3286['enableCommand']('insertMergeFieldImage'),_0x3f3286['descriptionFactory']['registerElementLabel']('mergeField',_0x27b878=>o(_0x577af6,'ELEMENT_MERGE_FIELD',_0x27b878)),_0x3f3286['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x11cbc7=>o(_0x577af6,'ELEMENT_MERGE_FIELD',_0x11cbc7)),_0x3f3286['descriptionFactory']['registerDescriptionCallback'](_0x1eade2=>{if('insertion'!=_0x1eade2['type']&&'deletion'!=_0x1eade2['type'])return;const _0x315524=_0x1eade2['getContainedElement']();if(null==_0x315524)return;const _0x9e29f8=_0x56b972['plugins']['get']('MergeFieldsEditing');let _0x1ffef5;switch(_0x9e29f8['getMergeFieldType'](_0x315524)){case null:return;case'image':{const _0x3b3eaf=_0x9e29f8['unwrapAffixes'](_0x315524['getAttribute']('src'));_0x1ffef5=_0x9e29f8['getLabel'](_0x3b3eaf)||_0x3b3eaf;break;}default:{const _0x4dd003=_0x315524['getAttribute']('id');_0x1ffef5=_0x9e29f8['getLabel'](_0x4dd003)||_0x4dd003;break;}}return'insertion'==_0x1eade2['type']?{'type':'insertion','content':o(_0x577af6,'*Insert:*\x20%0','\x22'+_0x1ffef5+'\x22\x20'+o(_0x577af6,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x577af6,'*Remove:*\x20%0','\x22'+_0x1ffef5+'\x22\x20'+o(_0x577af6,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x13e452{['afterInit'](){const _0xd7c830=this['editor'],_0x2e159f=_0xd7c830['plugins']['get']('TrackChangesEditing');_0xd7c830['plugins']['has']('MultiLevelList')&&(_0x2e159f['enableDefaultAttributesIntegration']('multiLevelList'),_0x2e159f['registerBlockAttribute']('listMarkerStyle'),_0x2e159f['descriptionFactory']['registerDescriptionCallback'](_0x215f2a=>this['handleDescriptions'](_0x215f2a)));}['handleDescriptions'](_0x4e3a62){const _0x28a67e=this['editor']['locale'],{data:_0x4e1a81}=_0x4e3a62,_0x37148b={'type':'format','content':''};if(_0x4e1a81&&'listMarkerStyle'==_0x4e1a81['key']){if(!_0x4e1a81['oldValue'])return{'type':'format','content':o(_0x28a67e,'*Set\x20format:*\x20%0',o(_0x28a67e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4e1a81['newValue']+')'};if(!_0x4e1a81['newValue']){let _0x289aa8=_0x4e3a62['head'];for(;_0x289aa8;){if(_0x289aa8['data']&&'listType'==_0x289aa8['data']['key']&&_0x289aa8['data']['newValue'])return _0x37148b;_0x289aa8=_0x289aa8['next'];}return{'type':'format','content':o(_0x28a67e,'*Remove\x20format:*\x20%0',o(_0x28a67e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4e1a81['oldValue']+')'};}}}}class pt extends _0x13e452{['afterInit'](){const _0x5f42e8=this['editor'];if(!_0x5f42e8['plugins']['has']('PageBreakEditing'))return;_0x5f42e8['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xddc39=_0x5f42e8['plugins']['get']('TrackChangesEditing'),_0x181c2d=_0x5f42e8['locale'];_0xddc39['descriptionFactory']['registerElementLabel']('pageBreak',_0x48d951=>o(_0x181c2d,'ELEMENT_PAGE_BREAK',_0x48d951));}}class kt extends _0x13e452{['afterInit'](){const _0x1c2676=this['editor'];if(!_0x1c2676['plugins']['has']('Paragraph'))return;const _0x7fd735=_0x1c2676['locale'],_0x54c2c8=_0x1c2676['plugins']['get']('TrackChangesEditing');_0x54c2c8['descriptionFactory']['registerElementLabel']('paragraph',_0x5cb78c=>o(_0x7fd735,'ELEMENT_PARAGRAPH',_0x5cb78c)),_0x54c2c8['enableDefaultAttributesIntegration']('paragraph'),_0x54c2c8['enableCommand']('insertParagraph'),_0x1c2676['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1c2676),{'priority':'highest'}),_0x1c2676['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4b41ee,_0x34da63,_0x2be256)=>{_0x2be256['options']['showSuggestionHighlights']&&nr(_0x1c2676,{'showActiveMarker':!0x1})(_0x4b41ee,_0x34da63,_0x2be256);},{'priority':'highest'});const _0x4e6403=_0x54c2c8['descriptionFactory'];_0x4e6403['registerDescriptionCallback'](_0x280413=>{if('insertion'!==_0x280413['type'])return;const {start:_0x2b1131,end:_0x3c594a}=_0x280413['getFirstRange']();if(!_0x2b1131['isTouching'](_0x3c594a)||!_0x2b1131['nodeAfter'])return;const _0xe1193c=_0x1c2676['model']['schema'],_0x5a6e22=_0x2b1131['nodeAfter'];return _0xe1193c['isBlock'](_0x5a6e22)&&!_0xe1193c['isLimit'](_0x5a6e22)&&_0xe1193c['checkChild'](_0x5a6e22,'$text')?{'type':'insertion','content':o(_0x7fd735,'*Insert:*\x20%0',_0x4e6403['getItemLabel'](_0x5a6e22,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29dd2f=this['editor'],_0x28efbc=_0x29dd2f['locale'];_0x29dd2f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xba20a=>{if('formatBlock'!=_0xba20a['type'])return;const {data:_0x314667}=_0xba20a;return _0x314667&&'paragraph'==_0x314667['commandName']?{'type':'format','content':o(_0x28efbc,'*Change\x20to:*\x20%0',o(_0x28efbc,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x530f34,{showActiveMarker:_0x3095d1=!0x0}={}){return(_0x18189d,_0x22a0ad,_0x2a35f8)=>{const _0x1f3b14=_0x530f34['plugins']['get']('TrackChangesEditing'),_0x3feb33=_0x22a0ad['markerRange']['start'],_0x316fd5=_0x22a0ad['markerRange']['end'],_0x1d93c5=_0x530f34['model']['schema'];if(!_0x3feb33['isTouching'](_0x316fd5)||!_0x3feb33['nodeAfter'])return;const _0x5bc58c=_0x3feb33['nodeAfter'];if(_0x1d93c5['isBlock'](_0x5bc58c)&&!_0x1d93c5['isLimit'](_0x5bc58c)&&_0x1d93c5['checkChild'](_0x5bc58c,'$text')){if(!_0x2a35f8['consumable']['consume'](_0x22a0ad['markerRange'],_0x18189d['name']))return;const {id:_0x4234f2,authorId:_0xbb1ed4}=_0x1f3b14['_splitMarkerName'](_0x22a0ad['markerName']),_0xd7e933=_0x2a35f8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x4234f2,'data-author-id':_0xbb1ed4}),_0x532486=_0x2a35f8['mapper']['toViewPosition'](_0x316fd5);_0x3095d1&&_0x1f3b14['activeMarkers']['includes'](_0x22a0ad['markerName'])&&_0x2a35f8['writer']['addClass']('ck-suggestion-marker--active',_0xd7e933),_0x2a35f8['writer']['insert'](_0x532486,_0xd7e933),_0x2a35f8['mapper']['bindElementToMarker'](_0xd7e933,_0x22a0ad['markerName']);}};}class wt extends _0x13e452{['afterInit'](){const _0x5c03fe=this['editor'];_0x5c03fe['commands']['get']('replaceSource')&&_0x5c03fe['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x13e452{['afterInit'](){const _0x13756a=this['editor'];if(!_0x13756a['plugins']['has']('RemoveFormatEditing'))return;_0x13756a['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1dce21=this['editor'];_0x1dce21['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c2f10=>{if('formatBlock'!=_0x4c2f10['type']&&'formatInline'!=_0x4c2f10['type'])return;const {data:_0x2a8fbb}=_0x4c2f10;return _0x2a8fbb&&'removeFormat'==_0x2a8fbb['commandName']?{'type':'format','content':o(_0x1dce21['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x13e452{['afterInit'](){const _0x12570b=this['editor'];if(!_0x12570b['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x56da9e=_0x12570b['plugins']['get']('TrackChangesEditing');_0x56da9e['enableCommand']('goToPreviousRestrictedEditingException'),_0x56da9e['enableCommand']('goToNextRestrictedEditingException');const _0x2805c5=_0x12570b['plugins']['get']('RestrictedEditingModeEditing');_0x2805c5['enableCommand']('trackChanges'),_0x2805c5['enableCommand']('acceptSuggestion'),_0x2805c5['enableCommand']('discardSuggestion'),_0x2805c5['enableCommand']('acceptAllSuggestions'),_0x2805c5['enableCommand']('discardAllSuggestions'),_0x2805c5['enableCommand']('acceptSelectedSuggestions'),_0x2805c5['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x13e452{['afterInit'](){const _0x2f8990=this['editor'];if(!_0x2f8990['plugins']['has']('ShiftEnter'))return;const _0x253788=_0x2f8990['plugins']['get']('TrackChangesEditing');_0x253788['enableCommand']('shiftEnter'),_0x2f8990['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x2f8990),{'priority':'high'}),_0x2f8990['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x2f8990),{'priority':'high'}),_0x2f8990['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5a36e3,_0x1c819c,_0x129d34)=>{_0x129d34['options']['showSuggestionHighlights']&&je(_0x2f8990,{'showActiveMarker':!0x1})(_0x5a36e3,_0x1c819c,_0x129d34);}),_0x253788['descriptionFactory']['registerElementLabel']('softBreak',_0x534ad1=>o(_0x2f8990['locale'],'ELEMENT_LINE_BREAK',_0x534ad1));}}function je(_0x31df68,{showActiveMarker:_0x26c53d=!0x0}={}){return(_0x5222df,_0x50437a,_0x106882)=>{const _0x5d3191=_0x31df68['plugins']['get']('TrackChangesEditing');if(!_0x106882['consumable']['test'](_0x50437a['markerRange'],_0x5222df['name']))return;const _0x23feeb=_0x31df68['model'];for(const _0xe4dcd6 of _0x50437a['markerRange']['getItems']()){if(!_0xe4dcd6['is']('element','softBreak'))continue;const _0x388235='deletion'==_0x50437a['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x35e3ee,authorId:_0x5ba624}=_0x5d3191['_splitMarkerName'](_0x50437a['markerName']),_0x2b62a4=_0x106882['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x388235,'data-suggestion':_0x35e3ee,'data-author-id':_0x5ba624}),_0x24422b=_0x106882['mapper']['toViewPosition'](_0x23feeb['createPositionBefore'](_0xe4dcd6));_0x26c53d&&_0x5d3191['activeMarkers']['includes'](_0x50437a['markerName'])&&_0x106882['writer']['addClass']('ck-suggestion-marker--active',_0x2b62a4),_0x106882['writer']['insert'](_0x24422b,_0x2b62a4),_0x106882['mapper']['bindElementToMarker'](_0x2b62a4,_0x50437a['markerName']);}};}class St extends _0x13e452{['afterInit'](){const _0x501163=this['editor'],_0x38ab3c=_0x501163['model'],_0x2213cc=_0x501163['locale'];if(!_0x501163['plugins']['has']('StandardEditingModeEditing'))return;const _0x175537=_0x501163['plugins']['get']('TrackChangesEditing'),_0x121227='restrictedEditingException',_0x35aacd=_0x501163['commands']['get'](_0x121227);_0x175537['enableCommand'](_0x121227,(_0x504432,_0x437ddf={})=>{const _0x1cb527=_0x38ab3c['document']['selection'];if(_0x1cb527['isCollapsed'])return void _0x504432(_0x437ddf);const _0x535c85=void 0x0!==_0x437ddf['forceValue']?_0x437ddf['forceValue']:!_0x35aacd['value'];_0x38ab3c['change'](()=>{const _0x898ace=Array['from'](_0x1cb527['getRanges']());for(const _0x179f38 of _0x898ace){const _0xf3f68c=_0x535c85?[_0x179f38]:io(_0x121227,_0x179f38,_0x38ab3c);for(const _0x411353 of _0xf3f68c)_0x175537['markInlineFormat'](_0x411353,{'commandName':_0x121227,'commandParams':[{'forceValue':_0x535c85}]});}});}),_0x175537['descriptionFactory']['registerDescriptionCallback'](_0x54eee9=>{if('formatBlock'!=_0x54eee9['type']&&'formatInline'!=_0x54eee9['type'])return;const {data:_0x139658}=_0x54eee9;return _0x139658&&_0x139658['commandName']==_0x121227?_0x139658['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2213cc,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2213cc,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x13e452{['afterInit'](){const _0x324b3a=this['editor'];if(!_0x324b3a['plugins']['has']('Style')||!_0x324b3a['plugins']['has']('DataSchema'))return;const _0x538a8b=_0x324b3a['plugins']['get']('TrackChangesEditing'),_0x4001df=_0x324b3a['locale'],_0x3a4cff=_0x324b3a['config']['get']('style')||{},_0x5b6d17=_0x324b3a['plugins']['get']('GeneralHtmlSupport'),_0x59ba46=_0x324b3a['plugins']['get']('StyleUtils')['normalizeConfig'](_0x324b3a['plugins']['get']('DataSchema'),_0x3a4cff['definitions']);_0x538a8b['enableDefaultAttributesIntegration']('style');const _0x16f6bf=new Set();for(const _0x131c6d of _0x59ba46['block']){const _0x26c3b5=_0x5b6d17['getGhsAttributeNameForElement'](_0x131c6d['element']);_0x16f6bf['add'](_0x26c3b5);}const _0x254228=new Set();for(const _0x3b1fff of _0x59ba46['inline']){const _0x7ba5a8=_0x5b6d17['getGhsAttributeNameForElement'](_0x3b1fff['element']);_0x254228['add'](_0x7ba5a8);for(const _0xef2b3d of _0x3b1fff['ghsAttributes'])_0x254228['add'](_0xef2b3d);}for(const _0x472cc6 of _0x16f6bf)_0x538a8b['registerBlockAttribute'](_0x472cc6),_0x538a8b['descriptionFactory']['registerAttributeLabel'](_0x472cc6,o(_0x4001df,'FORMAT_STYLE'));for(const _0x1b81d9 of _0x254228)_0x538a8b['registerInlineAttribute'](_0x1b81d9),_0x538a8b['descriptionFactory']['registerAttributeLabel'](_0x1b81d9,o(_0x4001df,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c2ba9=this['editor'],_0x51eda5=_0x2c2ba9['locale'];_0x2c2ba9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f9321=>{if('formatBlock'!=_0x4f9321['type']&&'formatInline'!=_0x4f9321['type'])return;const {data:_0x477f3c}=_0x4f9321;return _0x477f3c&&'style'===_0x477f3c['commandName']?_0x477f3c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x51eda5,'*Set\x20format:*\x20%0',_0x477f3c['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x51eda5,'*Remove\x20format:*\x20%0',_0x477f3c['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x13e452{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x54ab7e){super(_0x54ab7e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x37d68c=this['editor'],_0x5d392e=_0x37d68c['model']['document']['selection'];if(!_0x37d68c['plugins']['has']('TableEditing'))return;const _0x24a1c4=_0x37d68c['locale'],_0x3d6df4=_0x37d68c['plugins']['get']('TrackChangesEditing'),_0x48ba31=_0x37d68c['plugins']['get']('TableUtils');_0x3d6df4['descriptionFactory']['registerElementLabel']('table',_0x5a5fdb=>o(_0x24a1c4,'ELEMENT_TABLE',_0x5a5fdb)),this['_setupColumnsRowsFixing'](),_0x3d6df4['enableCommand']('insertTable'),_0x3d6df4['enableCommand']('selectTableRow'),_0x3d6df4['enableCommand']('selectTableColumn');for(const _0x222591 of['insertTableRowAbove','insertTableRowBelow']){const _0x316d19=_0x37d68c['commands']['get'](_0x222591);_0x3d6df4['enableCommand'](_0x222591,_0x31d2be=>{_0x37d68c['model']['change'](_0x2975bc=>{_0x31d2be();const _0x56524c='above'===_0x316d19['order'],_0x58fe30=_0x48ba31['getSelectionAffectedTableCells'](_0x5d392e),_0x1627cf=_0x48ba31['getRowIndexes'](_0x58fe30),_0x5a0045=_0x56524c?_0x1627cf['first']-0x1:_0x1627cf['last']+0x1,_0x2b6ff9=_0x58fe30[0x0]['findAncestor']('table'),_0x442356=_0x48ba31['createTableWalker'](_0x2b6ff9,{'startRow':_0x5a0045,'endRow':_0x5a0045}),_0x5e98a0=Array['from'](_0x442356)['map'](_0x52d8f7=>_0x2975bc['createRangeOn'](_0x52d8f7['cell']));_0x3d6df4['markMultiRangeInsertion'](_0x5e98a0,'tableRow');});});}for(const _0x1c178b of['insertTableColumnLeft','insertTableColumnRight']){const _0x5f5c3c=_0x37d68c['commands']['get'](_0x1c178b);_0x3d6df4['enableCommand'](_0x1c178b,_0x4a29cc=>{_0x37d68c['model']['change'](_0x441fb1=>{_0x4a29cc();const _0x280be0='left'===_0x5f5c3c['order'],_0x4ed390=_0x48ba31['getSelectionAffectedTableCells'](_0x5d392e),_0x53fb2c=_0x48ba31['getColumnIndexes'](_0x4ed390),_0x335bc0=_0x280be0?_0x53fb2c['first']-0x1:_0x53fb2c['last']+0x1,_0x25de65=_0x4ed390[0x0]['findAncestor']('table'),_0x50b1b6=_0x48ba31['createTableWalker'](_0x25de65,{'startRow':0x0,'column':_0x335bc0,'includeAllSlots':!0x1}),_0x21562b=Array['from'](_0x50b1b6)['map'](_0xf4980=>_0x441fb1['createRangeOn'](_0xf4980['cell']));_0x3d6df4['markMultiRangeInsertion'](_0x21562b,'tableColumn');});});}for(const _0x1bae36 of['removeTableRow','removeTableColumn']){const _0x66dfcf=_0x1bae36['substr'](0xb),_0x1e7c2f=_0x66dfcf['toLowerCase'](),_0x28967b=_0x1e7c2f['substr'](0x0,0x3)+'span',_0x2fec81='table'+_0x66dfcf,_0x311097='min'+_0x66dfcf,_0x1128c2='max'+_0x66dfcf;_0x3d6df4['enableCommand'](_0x1bae36,()=>{_0x37d68c['model']['change'](_0x565477=>{const _0x1b5c2f=_0x48ba31['getSelectionAffectedTableCells'](_0x5d392e),_0x2e56f5=_0x1b5c2f[0x0]['findAncestor']('table');let _0x75442d;if('removeTableRow'==_0x1bae36){const _0x10609b=_0x48ba31['getRowIndexes'](_0x1b5c2f);_0x75442d={'startRow':_0x10609b['first'],'endRow':_0x10609b['last'],'includeAllSlots':!0x0};}else{const _0x4143d2=_0x48ba31['getColumnIndexes'](_0x1b5c2f);_0x75442d={'startColumn':_0x4143d2['first'],'endColumn':_0x4143d2['last'],'includeAllSlots':!0x0};}const _0x2c4526=_0x48ba31['createTableWalker'](_0x2e56f5,_0x75442d),_0x1a2976=Array['from'](_0x2c4526)['map'](({cell:_0x1d4f8c})=>_0x1d4f8c),_0x549ef5=Ne(_0x1a2976['filter'](_0x4855ab=>_0x4855ab['hasAttribute'](_0x28967b))),_0x34f7fe=Ne(_0x1a2976['filter'](_0x915fe2=>!_0x915fe2['hasAttribute'](_0x28967b)))['map'](_0x431fbb=>_0x565477['createRangeOn'](_0x431fbb)),_0x48ecf5=_0x3d6df4['markMultiRangeDeletion'](_0x34f7fe,_0x2fec81);if(_0x48ecf5&&('tableRow'==_0x48ecf5['subType']||'tableColumn'==_0x48ecf5['subType'])){const _0x5a3c18=this['_getSuggestionCoords'](_0x48ecf5);for(const _0x1524d0 of _0x549ef5){const _0x49276e=_0x565477['createRangeOn'](_0x1524d0),_0x57f9cc=_0x48ba31['getCellLocation'](_0x1524d0),_0x339db0=_0x1524d0['getAttribute'](_0x28967b)-0x1,_0x389514=_0x5a3c18[_0x311097],_0x28b214=_0x5a3c18[_0x1128c2];_0x389514<=_0x57f9cc[_0x1e7c2f]&&_0x57f9cc[_0x1e7c2f]+_0x339db0<=_0x28b214&&_0x48ecf5['addRange'](_0x49276e);}}});});}function _0xb564af(_0x6906bc){const _0x1d3785=Array['from'](_0x5d392e['getRanges']())['map'](_0x497932=>_0x158d49['fromRange'](_0x497932));_0x37d68c['model']['change'](_0x5278f7=>{const _0x53bcfb=_0x5278f7['batch'];_0x6906bc=_0x6906bc['filter'](_0x35821d=>'$graveyard'!=_0x35821d['root']['rootName']),_0x5278f7['setSelection'](_0x6906bc),_0x37d68c['commands']['get']('removeTableRow')['refresh'](),_0x37d68c['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x37d68c['model']['enqueueChange'](()=>{_0x37d68c['model']['enqueueChange'](_0x53bcfb,_0x1b75d6=>{const _0x313eea=_0x1d3785['filter'](_0x44f787=>'$graveyard'!=_0x44f787['root']['rootName']);_0x313eea['length']>0x0&&_0x1b75d6['setSelection'](_0x313eea);for(const _0x4e0ee9 of _0x1d3785)_0x4e0ee9['detach']();});});});}function _0x42706b(_0x4c030a){_0x37d68c['model']['change'](_0x2328c2=>{const _0xc521f8=Array['from'](_0x5d392e['getRanges']())['map'](_0x3bc61e=>_0x158d49['fromRange'](_0x3bc61e)),_0x2d0e4c=[];for(const _0x2d5da2 of _0x4c030a)for(const _0x321bb6 of _0x2d5da2['getItems']({'shallow':!0x0}))_0x2d0e4c['push'](_0x321bb6);for(const _0x275838 of _0x2d0e4c)'$graveyard'!=_0x275838['root']['rootName']&&(_0x2328c2['setSelection'](_0x2328c2['createPositionAt'](_0x275838,0x0)),_0x37d68c['commands']['get']('removeTableColumn')['refresh'](),_0x37d68c['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1e14d0=_0xc521f8['filter'](_0x11a0b7=>'$graveyard'!=_0x11a0b7['root']['rootName']);_0x1e14d0['length']>0x0&&_0x2328c2['setSelection'](_0x1e14d0);for(const _0x3e7b33 of _0xc521f8)_0x3e7b33['detach']();});}function _0x5d139e(_0x3d67e7,_0x394950){return _0x394950['every'](_0x1eeb7c=>_0x3d67e7['some'](_0x229144=>_0x229144['end']['isEqual'](_0x1eeb7c['start'])||_0x1eeb7c['end']['isEqual'](_0x229144['start'])));}function _0x45e203(_0x1aabe2,_0x274504){return!_0x1aabe2['some'](_0x5d0272=>_0x274504['some'](_0x3c0f50=>_0x5d0272['isIntersecting'](_0x3c0f50)))&&_0x1aabe2['some'](_0x6a7035=>_0x274504['some'](_0x4b94b3=>_0x6a7035['end']['isTouching'](_0x4b94b3['start'])));}_0x37d68c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x113e37,_0x2b5dbc,_0x34c31a)=>{if(!_0x34c31a['options']['showSuggestionHighlights'])return;const _0x2f560c=_0x2b5dbc['item'];if(!_0x2f560c||!_0x2f560c['is']('element','tableCell'))return;const _0x29ac3b=_0x34c31a['mapper']['toViewElement'](_0x2f560c);if(_0x29ac3b){const {id:_0x35afca,authorId:_0x42e453}=_0x3d6df4['_splitMarkerName'](_0x2b5dbc['markerName']);_0x5b6e86(_0x29ac3b,_0x34c31a['writer'],(_0x43da26,_0x106c12,_0x1c2d18)=>{_0x1c2d18['addClass'](_0x2e0ed6(_0x106c12['classes']),_0x43da26),_0x1c2d18['setAttribute']('data-suggestion-id',_0x35afca,_0x43da26),_0x1c2d18['setAttribute']('data-author-id',_0x42e453,_0x43da26);},(_0x18dac0,_0x5e679a,_0x13185a)=>{_0x13185a['removeClass'](_0x2e0ed6(_0x5e679a['classes']),_0x18dac0),_0x13185a['removeAttribute']('data-suggestion-id',_0x18dac0),_0x13185a['removeAttribute']('data-author-id',_0x18dac0);});}},{'priority':'highest'}),_0x3d6df4['descriptionFactory']['registerDescriptionCallback'](_0x4fef25=>{if('insertion'!=_0x4fef25['type']&&'deletion'!=_0x4fef25['type'])return;const _0x317a1c=_0x4fef25['getContainedElement']();if(null!=_0x317a1c&&_0x317a1c['is']('element','table')){if('insertion'==_0x4fef25['type']){const _0x30df61=_0x4fef25['getItems']()['filter'](_0x3cc64f=>_0x3cc64f['is']('$textProxy'))['map'](_0x1f917e=>_0x1f917e['data']);if(_0x30df61['length'])return{'type':'insertion','content':o(_0x24a1c4,'*Insert:*\x20%0',o(_0x24a1c4,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x30df61['join']('\x20')+'\x22'))};}if('deletion'==_0x4fef25['type']){const _0xdd6635=_0x4fef25['getItems']()['filter'](_0x130817=>_0x130817['is']('$textProxy'))['map'](_0x9def4e=>_0x9def4e['data']);if(_0xdd6635['length'])return{'type':'deletion','content':o(_0x24a1c4,'*Remove:*\x20%0',o(_0x24a1c4,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xdd6635['join']('\x20')+'\x22'))};}}}),_0x3d6df4['descriptionFactory']['registerDescriptionCallback'](_0x13dc09=>{if('tableRow'==_0x13dc09['subType']){const _0x525a1f=_0x13dc09['getItems']()['filter'](_0x307b41=>_0x307b41['is']('$textProxy'))['map'](_0x9f48ce=>_0x9f48ce['data']),_0x288e18=this['_getSuggestionCoords'](_0x13dc09),_0x1f8439=_0x288e18['maxRow']-_0x288e18['minRow']+0x1;if('insertion'==_0x13dc09['type'])return _0x525a1f['length']?{'type':'insertion','content':o(_0x24a1c4,'*Insert:*\x20%0',o(_0x24a1c4,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1f8439,'\x22'+_0x525a1f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x24a1c4,'*Insert:*\x20%0',o(_0x24a1c4,'ELEMENT_TABLE_ROW',_0x1f8439))};if('deletion'==_0x13dc09['type'])return _0x525a1f['length']?{'type':'deletion','content':o(_0x24a1c4,'*Remove:*\x20%0',o(_0x24a1c4,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1f8439,'\x22'+_0x525a1f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x24a1c4,'*Remove:*\x20%0',o(_0x24a1c4,'ELEMENT_TABLE_ROW',_0x1f8439))};}if('tableColumn'==_0x13dc09['subType']){const _0x34c836=_0x13dc09['getItems']()['filter'](_0x201af4=>_0x201af4['is']('$textProxy'))['map'](_0x1f1424=>_0x1f1424['data']),_0x56898f=this['_getSuggestionCoords'](_0x13dc09),_0x3b9d5d=_0x56898f['maxColumn']-_0x56898f['minColumn']+0x1;if('insertion'==_0x13dc09['type'])return _0x34c836['length']?{'type':'insertion','content':o(_0x24a1c4,'*Insert:*\x20%0',o(_0x24a1c4,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3b9d5d,'\x22'+_0x34c836['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x24a1c4,'*Insert:*\x20%0',o(_0x24a1c4,'ELEMENT_TABLE_COLUMN',_0x3b9d5d))};if('deletion'==_0x13dc09['type'])return _0x34c836['length']?{'type':'deletion','content':o(_0x24a1c4,'*Remove:*\x20%0',o(_0x24a1c4,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3b9d5d,'\x22'+_0x34c836['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x24a1c4,'*Remove:*\x20%0',o(_0x24a1c4,'ELEMENT_TABLE_COLUMN',_0x3b9d5d))};}}),_0x3d6df4['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xb564af),_0x3d6df4['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xb564af),_0x3d6df4['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x42706b),_0x3d6df4['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x42706b),_0x3d6df4['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5d139e),_0x3d6df4['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5d139e),_0x3d6df4['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x45e203),_0x3d6df4['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x45e203);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4ce729=this['editor'],_0x3dbc1c=_0x4ce729['model']['document']['selection'];return(_0x4bfdc0,_0x54993c)=>{_0x4ce729['model']['change'](_0x3927b3=>{const {commandName:_0x35e457,commandParams:_0x4dac5a}=_0x54993c;let _0x3e31ff=_0x4bfdc0[0x0]['end']['nodeBefore'];_0x4dac5a&&_0x4dac5a[0x0]&&!0x1===_0x4dac5a[0x0]['forceValue']&&(_0x3e31ff=_0x4bfdc0[0x0]['start']['nodeAfter']);const _0x5c0542=_0x3927b3['createRangeIn'](_0x3e31ff);if('$graveyard'==_0x5c0542['root']['rootName'])return;const _0x6b1f61=Array['from'](_0x3dbc1c['getRanges']())['map'](_0x5b3661=>_0x158d49['fromRange'](_0x5b3661));_0x3927b3['setSelection'](_0x5c0542),_0x4ce729['commands']['get'](_0x35e457)['refresh'](),_0x4dac5a['push']({'forceDefaultExecution':!0x0}),_0x4ce729['execute'](_0x35e457,..._0x4dac5a);const _0x5d48e4=_0x6b1f61['filter'](_0x1ec0f1=>'$graveyard'!=_0x1ec0f1['root']['rootName']);_0x5d48e4['length']>0x0&&_0x3927b3['setSelection'](_0x5d48e4);for(const _0xd70d6f of _0x6b1f61)_0xd70d6f['detach']();});};}['_getCoordsForCells'](_0x246ce7){const _0x412c26=this['editor']['plugins']['get']('TableUtils');let _0x1a31df=Number['MAX_SAFE_INTEGER'],_0x4c83c6=Number['MIN_SAFE_INTEGER'],_0xb4f1ec=Number['MAX_SAFE_INTEGER'],_0x211434=Number['MIN_SAFE_INTEGER'];for(const _0x4692ae of _0x246ce7){if('$graveyard'==_0x4692ae['root']['rootName'])continue;const {row:_0x46eaf2,column:_0x263fba}=_0x412c26['getCellLocation'](_0x4692ae),_0x5c399c=_0x4692ae['hasAttribute']('rowspan')?_0x4692ae['getAttribute']('rowspan')-0x1:0x0,_0x456e7a=_0x4692ae['hasAttribute']('colspan')?_0x4692ae['getAttribute']('colspan')-0x1:0x0;_0x1a31df=_0x46eaf2<_0x1a31df?_0x46eaf2:_0x1a31df,_0x4c83c6=_0x46eaf2+_0x5c399c>_0x4c83c6?_0x46eaf2+_0x5c399c:_0x4c83c6,_0xb4f1ec=_0x263fba<_0xb4f1ec?_0x263fba:_0xb4f1ec,_0x211434=_0x263fba+_0x456e7a>_0x211434?_0x263fba+_0x456e7a:_0x211434;}return{'minRow':_0x1a31df,'maxRow':_0x4c83c6,'minColumn':_0xb4f1ec,'maxColumn':_0x211434};}['_setupColumnsRowsFixing'](){const _0x368158=this['editor'],_0x281a4d=_0x368158['plugins']['get']('TrackChangesEditing'),_0x59076e=_0x368158['plugins']['get']('TableUtils');_0x368158['model']['document']['on']('change:data',()=>{const _0x375ea8=Array['from'](_0x368158['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x133693,data:_0x295c6d}of _0x375ea8){const {group:_0x1397ce,id:_0x1907a3,subType:_0x47162d}=_0x281a4d['_splitMarkerName'](_0x133693);if('suggestion'!=_0x1397ce)continue;if(null!=_0x295c6d['oldRange'])continue;const _0x24dd72=_0x281a4d['getSuggestion'](_0x1907a3);this['_tablePostFixingSubtypes']['includes'](_0x47162d)&&this['_tableSuggestions']['add'](_0x24dd72);}},{'priority':'low'});const _0x35d515=(_0x14fe2b,_0x3756b3)=>{let _0x6bf67e=!0x1;const _0x4a1df5=_0x3756b3['createRangeOn'](_0x14fe2b),_0x4f2bae=_0x14fe2b['findAncestor']('table'),_0x183ed8=_0x59076e['getCellLocation'](_0x14fe2b);for(const _0x1914bb of this['_tableSuggestions']){const _0x53c9e8=_0x1914bb['subType'],_0x3a8e7f=_0x53c9e8['startsWith']('tablePaste'),_0x4dc630=_0x53c9e8['substr'](_0x3a8e7f?0xa:0x5),_0x37f494=_0x4dc630['toLowerCase'](),_0xcef3f0=_0x37f494['substr'](0x0,0x3)+'span',_0x533cb='min'+_0x4dc630,_0x578278='max'+_0x4dc630;if(!_0x1914bb['isInContent'])continue;if(_0x4f2bae!=_0x1914bb['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1914bb['isIntersectingWithRange'](_0x4a1df5))continue;const _0xf56858=_0x14fe2b['hasAttribute'](_0xcef3f0)?_0x14fe2b['getAttribute'](_0xcef3f0)-0x1:0x0,_0x3339d9=this['_getSuggestionCoords'](_0x1914bb),_0x507b97=_0x3339d9[_0x533cb],_0x2bb44f=_0x3339d9[_0x578278];_0x507b97<=_0x183ed8[_0x37f494]&&_0x183ed8[_0x37f494]+_0xf56858<=_0x2bb44f&&(_0x1914bb['addRange'](_0x4a1df5),_0x6bf67e=!0x0);}return _0x6bf67e;};_0x368158['model']['document']['registerPostFixer'](_0x307900=>{let _0x10df92=!0x1;for(const _0x566ff4 of _0x368158['model']['document']['differ']['getChanges']())if('insert'==_0x566ff4['type']){if('tableRow'==_0x566ff4['name']){for(const _0x2c592e of _0x566ff4['position']['nodeAfter']['getChildren']())_0x10df92=_0x10df92||_0x35d515(_0x2c592e,_0x307900);}else'tableCell'==_0x566ff4['name']&&(_0x10df92=_0x10df92||_0x35d515(_0x566ff4['position']['nodeAfter'],_0x307900));}return _0x10df92;});}['_getSuggestionCoords'](_0x5d8829){return this['_getCoordsForCells'](_0x5d8829['getRanges']()['map'](_0x4dd1d0=>_0x4dd1d0['start']['nodeAfter']));}}function Ne(_0x5759a6){return Array['from'](new Set(_0x5759a6)['values']());}class _t extends _0x13e452{static get['requires'](){return[At];}['afterInit'](){const _0x5a7cde=this['editor'],_0x436220=_0x5a7cde['model']['document']['selection'],_0x23a718=_0x5a7cde['locale'];if(!_0x5a7cde['plugins']['has']('TableEditing'))return;const _0x4efef1=_0x5a7cde['plugins']['get']('TrackChangesEditing'),_0x18e462=_0x5a7cde['plugins']['get']('TableUtils'),_0x233aa3=_0x5a7cde['plugins']['get'](At);_0x233aa3['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4efef1['enableCommand']('mergeTableCells',()=>{const _0xe21e06=_0x18e462['getSelectionAffectedTableCells'](_0x5a7cde['model']['document']['selection']);_0x5a7cde['model']['change'](()=>{_0x4efef1['markMultiRangeBlockFormat'](_0xe21e06,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5a7cde['commands']['get']('mergeTableCells')['on']('execute',(_0x4dd288,_0x31157f)=>{_0x5a7cde['commands']['get']('trackChanges')['value']&&(_0x31157f['length']>0x0&&_0x31157f[_0x31157f['length']-0x1]&&_0x31157f[_0x31157f['length']-0x1]['forceDefaultExecution']||_0x4efef1['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4dd288['stop']());},{'priority':'highest'});for(const _0x52d49d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xf1b0ca=_0x5a7cde['commands']['get'](_0x52d49d);_0x4efef1['enableCommand'](_0x52d49d,()=>{const _0x393a2c=_0x5a7cde['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x40bd2a=>_0x40bd2a['is']('element','tableCell')),_0x535a25=_0xf1b0ca['value'];_0x5a7cde['model']['change'](()=>{_0x4efef1['markMultiRangeBlockFormat']([_0x393a2c,_0x535a25],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4ef742 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3318cd=_0x5a7cde['commands']['get'](_0x4ef742);_0x4efef1['enableCommand'](_0x4ef742,()=>{const _0x46b6d8=_0x18e462['getSelectionAffectedTableCells'](_0x5a7cde['model']['document']['selection'])[0x0],_0x4ab7f7=_0x46b6d8['findAncestor']('table'),{column:_0x20d427,row:_0x3ce5fe}=_0x18e462['getCellLocation'](_0x46b6d8);let _0x3a6157=[];if('horizontally'==_0x3318cd['direction']){const _0x7526b1=_0x18e462['createTableWalker'](_0x4ab7f7,{'startRow':_0x3ce5fe,'endRow':_0x3ce5fe,'includeAllSlots':!0x0});_0x3a6157=Array['from'](_0x7526b1)['map'](_0x578728=>_0x578728['cell']);}else{const _0x389fbe=_0x18e462['createTableWalker'](_0x4ab7f7,{'column':_0x20d427,'includeAllSlots':!0x0});_0x3a6157=Array['from'](_0x389fbe)['map'](_0x3de2d0=>_0x3de2d0['cell']);}_0x5a7cde['model']['change'](_0x8a0ed1=>{_0x4efef1['markBlockFormat'](_0x8a0ed1['createRangeOn'](_0x46b6d8),{'commandName':_0x4ef742,'commandParams':[]},_0x3a6157,_0x4ef742);});});}_0x4efef1['descriptionFactory']['registerDescriptionCallback'](_0xe9fd04=>{if('formatBlock'!=_0xe9fd04['type']&&'formatInline'!=_0xe9fd04['type'])return;const {data:_0x2e07bd}=_0xe9fd04;return _0x2e07bd&&'mergeTableCells'==_0x2e07bd['commandName']?{'type':'format','content':o(_0x23a718,'*Merge\x20cells*')}:void 0x0;}),_0x4efef1['descriptionFactory']['registerDescriptionCallback'](_0x40f912=>{if('formatBlock'!=_0x40f912['type']&&'formatInline'!=_0x40f912['type'])return;const {data:_0x2b09ac}=_0x40f912;return _0x2b09ac?'splitTableCellVertically'==_0x2b09ac['commandName']?{'type':'format','content':o(_0x23a718,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2b09ac['commandName']?{'type':'format','content':o(_0x23a718,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x59172f=_0x233aa3['_acceptFormatSuggestionCallbackFactory']();for(const _0x246f13 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4efef1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x246f13,'accept',_0x59172f);for(const _0x562504 of['splitTableCellVertically','splitTableCellHorizontally'])_0x4efef1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x562504,'accept',_0x59172f);_0x4efef1['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3dac1d=>{_0x5a7cde['model']['change'](_0x4b56f0=>{const _0xdd6387=Array['from'](_0x436220['getRanges']())['map'](_0x548ea5=>_0x158d49['fromRange'](_0x548ea5));_0x4b56f0['setSelection'](_0x3dac1d),_0x5a7cde['commands']['get']('mergeTableCells')['refresh'](),_0x5a7cde['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x12bb63=_0xdd6387['filter'](_0x5d7f4e=>'$graveyard'!=_0x5d7f4e['root']['rootName']);_0x12bb63['length']>0x0&&_0x4b56f0['setSelection'](_0x12bb63);for(const _0x1a817a of _0xdd6387)_0x1a817a['detach']();});});for(const _0x37c22d of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x231a69=_0x5a7cde['commands']['get'](_0x37c22d);_0x231a69['on']('set:isEnabled',(_0x59dd80,_0x40a04a,_0x5d9315)=>{if(_0x5d9315){const _0x18458e=_0x5a7cde['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1580fd=>_0x1580fd['is']('element','tableCell'));this['_areMergableCells'](_0x231a69['value'],_0x18458e)||(_0x59dd80['return']=!0x1,_0x59dd80['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x33d88c=this['editor']['commands']['get']('mergeTableCells'),_0x24b0d2=this['editor']['plugins']['get']('TableUtils');if(!_0x33d88c['isEnabled'])return!0x1;const _0x4254e0=_0x24b0d2['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x58958b of _0x4254e0)for(const _0x512921 of _0x4254e0)if(_0x58958b!=_0x512921&&!this['_areMergableCells'](_0x58958b,_0x512921))return!0x1;return!0x0;}['_areMergableCells'](_0x4e34ae,_0x12b827){const _0x43d691=this['editor']['plugins']['get']('TrackChangesEditing'),_0x107f38=this['editor']['model']['createRangeOn'](_0x4e34ae),_0x20c32b=this['editor']['model']['createRangeOn'](_0x12b827),_0x382156=new Set(),_0x38acf1=new Set();for(const _0x2d6ffb of _0x43d691['getSuggestions']())if(('insertion'==_0x2d6ffb['type']||'deletion'==_0x2d6ffb['type']||'mergeTableCells'==_0x2d6ffb['subType'])&&_0x2d6ffb['isInContent']){for(const _0x41c254 of _0x2d6ffb['getRanges']())_0x41c254['containsRange'](_0x107f38,!0x0)&&_0x382156['add'](_0x2d6ffb['type']+':'+_0x2d6ffb['author']['id']),_0x41c254['containsRange'](_0x20c32b,!0x0)&&_0x38acf1['add'](_0x2d6ffb['type']+':'+_0x2d6ffb['author']['id']);}if(_0x382156['size']!=_0x38acf1['size'])return!0x1;for(const _0x5dee68 of _0x382156)if(!_0x38acf1['has'](_0x5dee68))return!0x1;return!0x0;}}class Ct extends _0x13e452{static get['requires'](){return[At];}['afterInit'](){const _0x16148a=this['editor'];if(!_0x16148a['plugins']['has']('TableEditing'))return;const _0x338ad2=_0x16148a['locale'],_0x181ea7=_0x16148a['plugins']['get']('TrackChangesEditing');_0x181ea7['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x181ea7['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x181ea7['registerBlockAttribute']('headingRows'),_0x181ea7['registerBlockAttribute']('headingColumns'),_0x181ea7['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x338ad2,'FORMAT_HEADER_ROW')),_0x181ea7['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x338ad2,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2f78c6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20b205=this['editor']['plugins']['get']('TableUtils'),_0x33fa0e=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x58dd97({showActiveMarker:_0xcf01a1=!0x0,setDataAttribute:_0x2ff413=!0x0}={}){return(_0x581983,_0x3a8de3,_0x4ecb8e)=>{const {type:_0x50abd1,id:_0x5b19a8}=_0x2f78c6['_splitMarkerName'](_0x3a8de3['markerName']),_0x2f8477=_0x2f78c6['getSuggestion'](_0x5b19a8),_0x4ff5da=_0x2f8477['data'];if('formatBlock'!=_0x2f8477['type']||!_0x4ff5da||'setTableColumnHeader'!=_0x4ff5da['commandName'])return;if(_0x3a8de3['item'])return void _0x581983['stop']();if(!_0x4ecb8e['consumable']['consume'](_0x3a8de3['markerRange'],_0x581983['name']))return;const _0x10f784=_0x3a8de3['markerRange']['start']['nodeAfter'],_0x297f29=_0x3a8de3['markerRange']['end']['nodeBefore'],_0x33fa75=_0x10f784['parent']['parent'],{column:_0x23902f}=_0x20b205['getCellLocation'](_0x10f784),{column:_0x45e8db}=_0x20b205['getCellLocation'](_0x297f29);for(let _0x2fcc4f=_0x23902f;_0x2fcc4f<=_0x45e8db;_0x2fcc4f++){const _0x7b7ee3=_0x20b205['createTableWalker'](_0x33fa75,{'column':_0x2fcc4f,'includeAllSlots':!0x1});for(const _0x409712 of _0x7b7ee3){const _0x45c01d=_0x409712['cell'],_0x42a2f9=_0x4ecb8e['mapper']['toViewElement'](_0x45c01d);_0x4ecb8e['writer']['addClass']('ck-suggestion-marker-'+_0x50abd1,_0x42a2f9),_0x2ff413&&_0x4ecb8e['writer']['setAttribute']('data-suggestion',_0x5b19a8,_0x42a2f9),_0x4ecb8e['mapper']['bindElementToMarker'](_0x42a2f9,_0x3a8de3['markerName']),_0xcf01a1&&(_0x2f78c6['activeMarkers']['includes'](_0x3a8de3['markerName'])?_0x4ecb8e['writer']['addClass']('ck-suggestion-marker--active',_0x42a2f9):_0x4ecb8e['writer']['removeClass']('ck-suggestion-marker--active',_0x42a2f9));}}};}_0x2f78c6['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x33fa0e),_0x2f78c6['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x33fa0e),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x58dd97(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5bb99e,_0x376a90,_0x374ef8)=>{_0x374ef8['options']['showSuggestionHighlights']&&_0x58dd97({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5bb99e,_0x376a90,_0x374ef8);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x372817,_0x2fdde3,_0x4bdd12)=>{const {type:_0x913c8d,id:_0x496037}=_0x2f78c6['_splitMarkerName'](_0x2fdde3['markerName']),_0x747276=_0x2f78c6['getSuggestion'](_0x496037),_0x4af9fe=_0x747276['data'];if('formatBlock'!=_0x747276['type']||!_0x4af9fe||'setTableColumnHeader'!=_0x4af9fe['commandName'])return;const _0x1c8ad9=_0x4bdd12['mapper']['markerNameToElements'](_0x2fdde3['markerName']);if(_0x1c8ad9){for(const _0x3a11fd of _0x1c8ad9)_0x4bdd12['writer']['removeClass']('ck-suggestion-marker-'+_0x913c8d,_0x3a11fd),_0x4bdd12['writer']['removeClass']('ck-suggestion-marker--active',_0x3a11fd),_0x4bdd12['writer']['removeAttribute']('data-suggestion',_0x3a11fd),_0x4bdd12['mapper']['unbindElementFromMarkerName'](_0x3a11fd,_0x2fdde3['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13a7d4=this['editor'],_0x4270be=_0x13a7d4['locale'];function _0xdece43(_0x1d3756){return{'type':'format','content':o(_0x4270be,'*Format:*\x20%0',_0x1d3756)};}_0x13a7d4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d52e8=>{if('formatBlock'!=_0x1d52e8['type'])return;const {data:_0x5ac6f0}=_0x1d52e8;if(_0x5ac6f0){if('setTableRowHeader'==_0x5ac6f0['commandName']){const _0x55aae3=_0x5ac6f0['commandParams'][0x0]['forceValue'];return _0xdece43(o(_0x4270be,_0x55aae3?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5ac6f0['commandName']){const _0xccd4fd=_0x5ac6f0['commandParams'][0x0]['forceValue'];return _0xdece43(o(_0x4270be,_0xccd4fd?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x13e452{['afterInit'](){const _0x111dfb=this['editor'],_0x588811=_0x111dfb['locale'],_0x2fde60=_0x111dfb['plugins']['get']('TrackChangesEditing');function _0x50d6da(_0x29e203){return{'type':'format','content':''+o(_0x588811,'*Set\x20table\x20type:*\x20%0',_0x29e203)};}_0x111dfb['plugins']['has']('TableLayout')&&(_0x2fde60['enableCommand']('insertTableLayout'),_0x2fde60['enableDefaultAttributesIntegration']('tableType'),_0x2fde60['registerBlockAttribute']('tableType'),_0x2fde60['descriptionFactory']['registerElementLabel'](_0x1ed74f=>_0x1ed74f['is']('element','table')&&'layout'===_0x1ed74f['getAttribute']('tableType'),_0x51e0fc=>o(_0x588811,'ELEMENT_LAYOUT_TABLE',_0x51e0fc)),_0x2fde60['descriptionFactory']['registerDescriptionCallback'](_0x4dc2ab=>{const {data:_0xc6305d}=_0x4dc2ab;if(_0xc6305d&&'tableType'==_0xc6305d['key'])switch(_0xc6305d['newValue']){case'layout':return _0x50d6da(o(_0x588811,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x50d6da(o(_0x588811,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Be['map'](_0x17b1b7=>[_0x17b1b7,null]));class Nt extends _0x13e452{static get['requires'](){return[At];}['afterInit'](){const _0x58017c=this['editor'];if(!_0x58017c['plugins']['has']('TableClipboard'))return;const _0x447e07=_0x58017c['plugins']['get']('TrackChangesEditing'),_0x59bb2a=_0x58017c['plugins']['get']('TableUtils'),_0x168536=_0x58017c['plugins']['get'](At),_0x2defda=_0x58017c['plugins']['get']('TableClipboard'),_0x58535d=_0x58017c['plugins']['get']('TableSelection'),_0x3e32f2=_0x58017c['plugins']['get'](_0x283213);_0x168536['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x58017c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x58017c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x496c2b=null,_0x39b665=!0x1;_0x3e32f2['on']('contentInsertion',(_0x5cbc90,_0x38e0b3)=>{_0x39b665='paste'===_0x38e0b3['method'];}),_0x58017c['model']['on']('insertContent',(_0x3c2efb,_0x5b1c46)=>{if(!_0x39b665&&null===_0x58535d['getSelectedTableCells']())return;const [_0x5eb20d,_0x5011b0]=_0x5b1c46,_0x378945=_0x5b1c46[_0x5b1c46['length']-0x1];_0x378945&&_0x378945['forceDefaultExecution']||_0x447e07['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x6048ba,_0x1d3e1b,_0x4378b2,_0x5b9de9,_0x52be0e){if(_0x1d3e1b&&!_0x1d3e1b['is']('documentSelection'))return!0x1;const _0x4d3630=_0x52be0e['getTableIfOnlyTableInContent'](_0x6048ba,_0x4378b2);if(!_0x4d3630||!Ue(_0x4d3630,void 0x0,_0x5b9de9))return!0x1;const _0x4c37d3=_0x5b9de9['getSelectionAffectedTableCells'](_0x4378b2['document']['selection']);if(!_0x4c37d3['length'])return!0x1;const _0x3c5270=_0x4c37d3[0x0]['findAncestor']('table'),_0x2f68ca=_0x5b9de9['getRowIndexes'](_0x4c37d3),_0x2b4f52=_0x5b9de9['getColumnIndexes'](_0x4c37d3),_0x3617b1={'startRow':_0x2f68ca['first'],'endRow':_0x2f68ca['last'],'startColumn':_0x2b4f52['first'],'endColumn':_0x2b4f52['last']};return 0x1==_0x4c37d3['length']&&(_0x3617b1['endRow']+=_0x5b9de9['getRows'](_0x4d3630)-0x1,_0x3617b1['endColumn']+=_0x5b9de9['getColumns'](_0x4d3630)-0x1),Ue(_0x3c5270,_0x3617b1,_0x5b9de9);}(_0x5eb20d,_0x5011b0,_0x58017c['model'],_0x59bb2a,_0x2defda)&&(_0x3c2efb['stop'](),_0x496c2b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x58017c['model']['change'](()=>{_0x58017c['model']['insertContent'](_0x5b1c46[0x0],_0x5b1c46[0x1],_0x5b1c46[0x2],{'forceDefaultExecution':!0x0});const _0x2c7162=_0x22223a(),{rowInsertionRanges:_0x18c432,columnInsertionRanges:_0x131f36,insertionRanges:_0x1f2662,deletionRanges:_0x2f70ed,cells:_0x12f8f3}=_0x496c2b;_0x18c432['length']&&_0x447e07['markMultiRangeInsertion'](_0x18c432,'tablePasteRow',{'tablePasteChainId':_0x2c7162}),_0x131f36['length']&&_0x447e07['markMultiRangeInsertion'](_0x131f36,'tablePasteColumn',{'tablePasteChainId':_0x2c7162}),_0x1f2662['length']&&(_0x447e07['markMultiRangeInsertion'](_0x1f2662,'tablePaste',{'tablePasteChainId':_0x2c7162,'skipNestingCheck':!0x0}),_0x1f2662['forEach'](_0xcec987=>_0xcec987['detach']?.())),_0x2f70ed['length']&&(_0x447e07['markMultiRangeDeletion'](_0x2f70ed,'tablePaste',{'tablePasteChainId':_0x2c7162,'skipNestingCheck':!0x0}),_0x2f70ed['forEach'](_0x3d26e0=>_0x3d26e0['detach']?.()));const _0x780e60=_0x447e07['markMultiRangeBlockFormat'](_0x12f8f3['map'](({element:_0x2b655b})=>_0x2b655b),{'formatGroupId':_0x22223a()},[],'tablePasteCell',{'tablePasteChainId':_0x2c7162});if(_0x780e60){const _0x52d285=_0x780e60['getMarkers'](),_0x44ad02=[];for(const {element:_0x53e7b2,attributes:_0x1737d2}of _0x12f8f3){if(!_0x1737d2)continue;const _0x2410a7=_0x58017c['model']['createRangeOn'](_0x53e7b2),_0x53fed6=_0x52d285['find'](_0x47c358=>_0x47c358['getRange']()['isEqual'](_0x2410a7));_0x53fed6&&_0x44ad02['push']([_0x53fed6['name'],_0x1737d2]);}_0x44ad02['length']&&_0x780e60['setAttribute']('markerAttributes',Object['fromEntries'](_0x44ad02));}_0x496c2b=null;}));},{'priority':_0x17dc3a['high']+0xa}),_0x3e32f2['on']('contentInsertion',()=>{_0x39b665=!0x1;},{'priority':'lowest'}),_0x58017c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5a24fe,_0x3bd29e)=>{const [_0x1d0ca6,_0x5a8f4c,,_0x346045]=_0x3bd29e;if(!_0x496c2b)return;_0x5a24fe['stop']();const _0x4d5763=_0x1d0ca6['cell'],_0x3b761a=_0x5a8f4c,_0x54b95d=Oe(_0x4d5763),_0x2a49b2=Oe(_0x3b761a);_0x5a24fe['return']=_0x4d5763;let _0x536345=null,_0x27e0fc=null;if(_0x2a49b2||_0x54b95d){if(_0x54b95d&&!_0x2a49b2){_0x346045['remove'](_0x4d5763['getChild'](0x0));for(const _0xb8c4e1 of Array['from'](_0x3b761a['getChildren']()))_0x346045['insert'](_0xb8c4e1,_0x4d5763,'end');const _0x5a36e1=_0x496c2b['rowInsertionIndexes']['includes'](_0x1d0ca6['row']),_0x2ef6ad=_0x496c2b['columnInsertionIndexes']['includes'](_0x1d0ca6['column']);_0x5a36e1||_0x2ef6ad||(_0x536345=_0x158d49['fromRange'](_0x346045['createRangeIn'](_0x4d5763)));}else _0x2a49b2&&!_0x54b95d&&(_0x27e0fc=_0x346045['createRangeIn'](_0x4d5763));}else{const _0x574d77=_0x346045['createElement']('tableCellSuggestion'),_0x59bc29=_0x346045['createElement']('tableCellSuggestion');_0x346045['wrap'](_0x346045['createRangeIn'](_0x4d5763),_0x59bc29),_0x346045['insert'](_0x574d77,_0x4d5763,0x0);for(const _0x59a6e1 of Array['from'](_0x3b761a['getChildren']()))_0x346045['insert'](_0x59a6e1,_0x574d77,'end');_0x536345=_0x158d49['fromRange'](_0x346045['createRangeOn'](_0x574d77)),_0x27e0fc=_0x158d49['fromRange'](_0x346045['createRangeOn'](_0x59bc29));}const _0x304c0e=Array['from'](_0x3b761a['getAttributes']())['filter'](([_0x51793b])=>Be['includes'](_0x51793b));_0x496c2b['cells']['push']({'element':_0x4d5763,'attributes':_0x304c0e['length']?Object['fromEntries'](_0x304c0e):null}),_0x536345&&_0x496c2b['insertionRanges']['push'](_0x536345),_0x27e0fc&&_0x496c2b['deletionRanges']['push'](_0x27e0fc);},{'priority':'high'}),_0x59bb2a['on']('insertColumns',(_0x237ddb,_0x491366)=>{const [_0x20dfbf,_0x3dede3={}]=_0x491366;if(!_0x496c2b)return;const _0x30cd9f=_0x3dede3['at']||0x0,_0x53a19a=_0x3dede3['columns']||0x1;_0x496c2b['columnInsertionIndexes']=new Array(_0x53a19a)['fill'](_0x30cd9f)['map']((_0x260e81,_0x5cc34a)=>_0x260e81+_0x5cc34a);for(const {cell:_0x1f1d4b}of _0x59bb2a['createTableWalker'](_0x20dfbf,{'startColumn':_0x30cd9f,'endColumn':_0x30cd9f+_0x53a19a-0x1}))_0x496c2b['columnInsertionRanges']['push'](_0x58017c['model']['createRangeOn'](_0x1f1d4b));},{'priority':'low'}),_0x59bb2a['on']('insertRows',(_0x472996,_0xb6c10a)=>{const [_0x693c2d,_0x344db5={}]=_0xb6c10a;if(!_0x496c2b)return;const _0x420a65=_0x344db5['at']||0x0,_0x4d05d5=_0x344db5['rows']||0x1;_0x496c2b['rowInsertionIndexes']=new Array(_0x4d05d5)['fill'](_0x420a65)['map']((_0x27ebbc,_0x26b793)=>_0x27ebbc+_0x26b793);for(const {cell:_0x2fb197}of _0x59bb2a['createTableWalker'](_0x693c2d,{'startRow':_0x420a65,'endRow':_0x420a65+_0x4d05d5-0x1}))_0x496c2b['rowInsertionRanges']['push'](_0x58017c['model']['createRangeOn'](_0x2fb197));},{'priority':'low'}),_0x447e07['descriptionFactory']['registerDescriptionCallback'](_0x416ca2=>{if(_0x416ca2['subType']&&_0x416ca2['subType']['startsWith']('tablePaste'))return _0x416ca2['previous']?{}:{'type':'insertion','content':o(_0x58017c['locale'],'*Replace\x20table\x20cells*')};});const _0x563dff=()=>!0x1;for(const _0x3b08d9 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x447e07['_suggestionFactory']['registerCustomCallback']('insertion',_0x3b08d9,'join',_0x563dff),_0x447e07['_suggestionFactory']['registerCustomCallback']('deletion',_0x3b08d9,'join',_0x563dff),_0x447e07['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3b08d9,'join',_0x563dff);_0x447e07['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x563dff),_0x447e07['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x438356,_0x971b23,_0x576cce)=>{const _0x1b41a5=_0x438356['map'](_0x30a14d=>_0x30a14d['getContainedElement']())['filter'](_0x399249=>_0x399249),_0x124a5b=new Map(_0x1b41a5['map'](_0x2e1571=>[_0x2e1571,null]));if(_0x496c2b){for(const {element:_0x4b4a81,attributes:_0x3e0e52}of _0x496c2b['cells'])_0x3e0e52&&_0x124a5b['set'](_0x4b4a81,_0x3e0e52);}else{if(_0x576cce&&_0x576cce['markerAttributes'])for(const [_0x8ce41f,_0x4ac3ea]of Object['entries'](_0x576cce['markerAttributes'])){const _0x4a3b26=_0x58017c['model']['markers']['get'](_0x8ce41f),_0x4454d7=_0x4a3b26?_0x4a3b26['getRange']()['getContainedElement']():null;_0x4454d7&&_0x124a5b['set'](_0x4454d7,_0x4ac3ea);}}_0x58017c['model']['change'](_0x5cd129=>{for(const [_0x319f12,_0x31c275]of _0x124a5b)_0x5cd129['setAttributes']({...xe,..._0x31c275},_0x319f12);});});const _0x29e944=(_0x522687,_0x9c6b07)=>{_0x447e07['_suggestionFactory']['registerCustomCallback'](_0x522687,'tablePaste',_0x9c6b07,(_0x226372,_0x2ee454,_0x17ec8a)=>{_0x58017c['model']['change'](_0x158ed0=>{const _0x363a5d=[];for(const _0x229cba of _0x226372){const _0x49e265=_0x229cba['start']['nodeAfter'];_0x49e265['is']('element','tableCellSuggestion')&&_0x363a5d['push'](_0x49e265);}_0x447e07['_suggestionFactory']['getSuggestionCallback'](_0x522687,null,_0x9c6b07)(_0x226372,_0x2ee454,_0x17ec8a);for(const _0x111b1c of _0x363a5d)'$graveyard'!=_0x111b1c['root']['rootName']&&_0x158ed0['unwrap'](_0x111b1c);});});};_0x29e944('insertion','accept'),_0x29e944('insertion','discard'),_0x29e944('deletion','accept'),_0x29e944('deletion','discard'),_0x447e07['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x22d11c=>{const _0x5e8113=_0x22d11c['map'](_0x1b2ac3=>_0x1b2ac3['getContainedElement']()),_0x2eca03=_0x5e8113[0x0]['findAncestor']('table'),{minRow:_0x3fa74d,maxRow:_0x127cff}=_0x168536['_getCoordsForCells'](_0x5e8113);_0x59bb2a['removeRows'](_0x2eca03,{'at':_0x3fa74d,'rows':_0x127cff-_0x3fa74d+0x1});}),_0x447e07['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x581607=>{const _0x563c99=_0x581607['map'](_0x38eb34=>_0x38eb34['getContainedElement']()),_0x3d1d98=_0x563c99[0x0]['findAncestor']('table'),{minColumn:_0x583299,maxColumn:_0x4a4dcb}=_0x168536['_getCoordsForCells'](_0x563c99);_0x59bb2a['removeColumns'](_0x3d1d98,{'at':_0x583299,'columns':_0x4a4dcb-_0x583299+0x1});});const _0x8d8bc7=(_0x4cfb23,_0x5c4129)=>{if(!_0x5c4129['subType']||!_0x5c4129['subType']['startsWith']('tablePaste'))return;const _0x1061f1=_0x5c4129['attributes']['tablePasteChainId'],_0x180f1a=_0x447e07['getSuggestions']()['filter'](_0x34e01b=>_0x34e01b['isInContent']&&_0x34e01b['attributes']&&_0x34e01b['attributes']['tablePasteChainId']==_0x1061f1);_0x180f1a['length']&&_0x5c4129['getAllAdjacentSuggestions']()['length']!=_0x180f1a['length']&&_0x180f1a['reduce']((_0x190d62,_0x401242)=>(_0x190d62['next']=_0x401242,_0x401242['previous']=_0x190d62,_0x401242));};function _0x5e23b8(_0xd99bc4,_0x57a4b7=!0x0){const {id:_0x4cd0cf,authorId:_0x19dbf8}=_0x447e07['_splitMarkerName'](_0xd99bc4['markerName']),_0x5b6523=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1838a6=_0x447e07['activeMarkers']['includes'](_0xd99bc4['markerName']);return _0x1838a6&&_0x5b6523['push']('ck-suggestion-marker--active'),{'classes':_0x5b6523,'attributes':{'data-suggestion':_0x4cd0cf,'data-author-id':_0x19dbf8},'priority':_0x1838a6&&_0x57a4b7?0xbc2:0xbb8};}_0x447e07['on']('suggestionLoaded',_0x8d8bc7,{'priority':'high'}),_0x447e07['on']('suggestionUnloaded',_0x8d8bc7,{'priority':'high'}),_0x58017c['model']['document']['registerPostFixer'](()=>{let _0x46de6b=!0x1;const _0x44a3cf=Array['from'](_0x58017c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x597b1b,data:_0x37b3d2}of _0x44a3cf){const {group:_0x4d8ce6,type:_0x19f898,id:_0x18a1cb}=_0x447e07['_splitMarkerName'](_0x597b1b);if('suggestion'!=_0x4d8ce6||'deletion'!=_0x19f898||_0x37b3d2['oldRange'])continue;if(!_0x447e07['hasSuggestion'](_0x18a1cb))continue;const _0x4639bc=_0x447e07['getSuggestion'](_0x18a1cb)['getRanges'](),_0x393c38=_0x58017c['plugins']['get']('Users')['me'];for(const _0x1c3f6 of _0x447e07['getSuggestions']()){if(!_0x1c3f6['isInContent']||_0x1c3f6['author']!=_0x393c38)continue;if('formatBlock'!=_0x1c3f6['type']||'tablePasteCell'!=_0x1c3f6['subType'])continue;if(_0x1c3f6['getRanges']()['every'](_0x3b64cc=>_0x4639bc['some'](_0x208f56=>_0x208f56['containsRange'](_0x3b64cc,!0x0)))){for(const _0x452bb0 of _0x1c3f6['getAllAdjacentSuggestions']())_0x452bb0['isInContent']&&(_0x452bb0['discard'](),_0x46de6b=!0x0);}}}return _0x46de6b;}),_0x58017c['model']['document']['registerPostFixer'](_0x3e7e8e=>{const _0x1521a6=_0x58017c['commands']['get']('redo');if(!_0x1521a6||!_0x1521a6['_createdBatches']['has'](_0x3e7e8e['batch']))return!0x1;let _0x2d051f=!0x1;const _0x5ced5f=_0x58017c['plugins']['get']('Users')['me'],_0x4ce15f=_0x58017c['model']['document']['differ']['getChanges'](),_0x224872=Array['from'](_0x58017c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x38efdc,data:_0x405e90})=>{const {group:_0x1e0e2b,subType:_0x27e420,authorId:_0xd2f231}=_0x447e07['_splitMarkerName'](_0x38efdc);return'suggestion'==_0x1e0e2b&&'tablePaste'==_0x27e420&&_0xd2f231==_0x5ced5f['id']&&!_0x405e90['oldRange'];});for(const _0x15f8d2 of _0x4ce15f){if('insert'!=_0x15f8d2['type']||'tableCellSuggestion'!=_0x15f8d2['name']||0x1!=_0x15f8d2['length'])continue;const _0x2571e8=_0x3e7e8e['createRange'](_0x15f8d2['position'],_0x15f8d2['position']['getShiftedBy'](0x1));if(!_0x224872['find'](({data:_0x4c7adb})=>_0x4c7adb['newRange']['isEqual'](_0x2571e8))){for(const {name:_0x2709cc,data:_0x56e3ed}of _0x224872)if(_0x2571e8['containsRange'](_0x56e3ed['newRange'])){_0x3e7e8e['updateMarker'](_0x2709cc,{'range':_0x2571e8}),_0x2d051f=!0x0;break;}}}return _0x2d051f;}),_0x58017c['model']['document']['registerPostFixer'](_0x37983f=>{let _0x4b69cb=!0x1;const _0x387f8b=_0x58017c['plugins']['get']('Users')['me'],_0x2f03f4=_0x447e07['getSuggestions']()['filter'](_0x2f2abd=>_0x2f2abd['isInContent']&&_0x2f2abd['author']==_0x387f8b),_0x15970f=new Set(),_0x2b7478=new Set();for(const _0x241739 of _0x2f03f4)if('tablePaste'==_0x241739['subType'])for(const _0x445079 of _0x241739['getMarkers']()){const _0x194a0b=_0x445079['getRange']()['getContainedElement']();if(_0x194a0b){if(_0x194a0b['is']('element','tableCellSuggestion')&&Oe(_0x194a0b)){_0x241739['removeMarker'](_0x445079['name']),_0x15970f['add'](_0x194a0b),_0x4b69cb=!0x0;const _0x45ef20=_0x194a0b['nextSibling'],_0x190313=_0x194a0b['previousSibling'],_0x27cf19=_0x45ef20&&_0x45ef20['is']('element','tableCellSuggestion'),_0x28e1f0=_0x190313&&_0x190313['is']('element','tableCellSuggestion');_0x27cf19&&!_0x15970f['has'](_0x45ef20)&&_0x2b7478['add'](_0x45ef20),_0x28e1f0&&!_0x15970f['has'](_0x190313)&&_0x2b7478['add'](_0x190313);}else _0x194a0b['is']('element','paragraph')&&_0x194a0b['isEmpty']&&(_0x241739['removeMarker'](_0x445079['name']),_0x4b69cb=!0x0);}}else{if('tablePasteCell'==_0x241739['subType']){if(!_0x241739['attributes']||!_0x241739['attributes']['tablePasteChainId'])continue;const _0x10a908=_0x241739['attributes']['markerAttributes'];if(_0x10a908&&Object['keys'](_0x10a908)['length'])continue;const _0x12566b=_0x241739['attributes']['tablePasteChainId'];let _0x110c06=!0x0,_0x579d6a=!0x0;for(const _0x20b49b of _0x2f03f4)if(_0x20b49b['subType']&&_0x20b49b['subType']['startsWith']('tablePaste')){if(!_0x20b49b['attributes']['tablePasteChainId']){_0x579d6a=!0x1;break;}if(_0x20b49b['id']!=_0x241739['id']&&_0x20b49b['attributes']['tablePasteChainId']==_0x12566b){_0x110c06=!0x1;break;}}_0x579d6a&&_0x110c06&&(_0x241739['removeMarkers'](),_0x4b69cb=!0x0);}}for(const _0x443f19 of _0x15970f)_0x37983f['remove'](_0x443f19);for(const _0x3e5c8c of _0x2b7478)_0x37983f['unwrap'](_0x3e5c8c);return _0x4b69cb;}),_0x58017c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x33d5a5=>_0x5e23b8(_0x33d5a5),'converterPriority':'high'}),_0x58017c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x331874,_0x4717e9)=>_0x4717e9['options']['showSuggestionHighlights']?_0x5e23b8(_0x331874,!0x1):null,'converterPriority':'high'});const _0x2b2c1b=_0x58017c['editing']['view'];this['listenTo'](_0x2b2c1b['document'],'clipboardOutput',(_0x38e7a5,_0x431b9a)=>{const _0x235aaa=[];for(const _0x24a30d of _0x2b2c1b['createRangeIn'](_0x431b9a['content'])['getItems']())_0x24a30d['is']('element','suggestion-td')&&_0x235aaa['push'](_0x24a30d);_0x2b2c1b['change'](_0x3f6533=>{for(const _0x244638 of _0x235aaa)_0x3f6533['move'](_0x3f6533['createRangeIn'](_0x244638),_0x3f6533['createPositionBefore'](_0x244638)),_0x3f6533['remove'](_0x244638);});});}}function Oe(_0xf42be9){if(_0xf42be9['isEmpty'])return!0x0;const _0x225e7a=_0xf42be9['getChild'](0x0);return _0x225e7a['is']('element','paragraph')&&_0x225e7a['isEmpty'];}function Ue(_0x5aa429,_0x43da73={},_0x520aab){for(const {isAnchor:_0x5df827,cellHeight:_0x4f2e69,cellWidth:_0x1b0cf3}of _0x520aab['createTableWalker'](_0x5aa429,{'includeAllSlots':!0x0,..._0x43da73}))if(!_0x5df827||0x1!=_0x4f2e69||0x1!=_0x1b0cf3)return!0x1;return!0x0;}class Dt extends _0x13e452{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1a655c=this['editor']['plugins']['get']('TrackChangesEditing');_0x1a655c['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1a655c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1a655c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1a655c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1a655c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1a655c['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x292b75,_0x3d65d0){const _0x53601b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3217e6=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x57c9f1=_0x3d65d0['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2a1b29=_0x3217e6['getColumnGroupElement'](_0x57c9f1);let _0x5d8cdb=_0x2a1b29?_0x3217e6['getTableColumnsWidths'](_0x2a1b29):null,_0x554627=_0x57c9f1['getAttribute']('tableWidth')||null;const _0x426653=_0x3d65d0['tableWidth']||_0x554627,_0x3103b3=_0x3d65d0['columnWidths']||_0x5d8cdb,_0x52a9dd=this['editor']['plugins']['get']('Users')['me'];for(const _0x146708 of _0x53601b['getSuggestions']()){const _0x48838d=_0x146708['getContainedElement']();if('resizeTable'===_0x146708['subType']&&_0x48838d===_0x57c9f1){_0x146708['author']!==_0x52a9dd&&_0x146708['discard']();const _0x45ea0a=_0x146708['data']['commandParams'];_0x554627=_0x45ea0a[0x0]['tableWidth'],_0x5d8cdb=_0x45ea0a[0x0]['columnWidths'];break;}}_0x292b75({'table':_0x57c9f1,'tableWidth':_0x426653,'columnWidths':_0x3103b3}),_0x53601b['markBlockFormat'](_0x57c9f1,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x554627,'columnWidths':_0x5d8cdb}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x110a92){if('formatBlock'!=_0x110a92['type']&&'formatInline'!=_0x110a92['type'])return;const {data:_0x28a662}=_0x110a92;if(_0x28a662&&'resizeTable'===_0x28a662['formatGroupId']){const _0x6cc2b6='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x6cc2b6)};}}}class Mt extends _0x13e452{['afterInit'](){const _0x61a05a=this['editor'];_0x61a05a['plugins']['has']('Template')&&_0x61a05a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x13e452{['afterInit'](){const _0x5ce780=this['editor'];if(!_0x5ce780['commands']['get']('insertTableOfContents'))return;_0x5ce780['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4cbad3=_0x5ce780['plugins']['get']('TrackChangesEditing'),_0x3f20b5=_0x5ce780['locale'];_0x4cbad3['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4fd963=>o(_0x3f20b5,'ELEMENT_TABLE_OF_CONTENTS',_0x4fd963));}}class Bt extends _0x13e452{['afterInit'](){const _0x2ac982=this['editor'];if(!_0x2ac982['plugins']['has']('Title'))return;const _0x2d3cb0=_0x2ac982['plugins']['get']('TrackChangesEditing');_0x2d3cb0['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2ac982['locale'],'ELEMENT_TITLE')),_0x2ac982['model']['document']['registerPostFixer'](_0x56939c=>{let _0x25ecd9=!0x1;const _0x5cd7fa=Array['from'](_0x2ac982['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x24d118,data:_0x31b688}of _0x5cd7fa){const {group:_0x196b02}=_0x2d3cb0['_splitMarkerName'](_0x24d118);if('suggestion'!==_0x196b02||!_0x31b688['newRange'])continue;const _0x218f73=_0x31b688['newRange'],_0x35a498=_0x218f73['end']['nodeBefore'];if(!_0x35a498||!_0x35a498['is']('element','title-content'))continue;if(!_0x218f73['start']['isTouching'](_0x218f73['end']))continue;const _0x30833f=_0x2ac982['model']['schema']['getNearestSelectionRange'](_0x218f73['end'],'forward');if(_0x30833f&&_0x30833f['isCollapsed']){const _0x3f7340=_0x56939c['createRange'](_0x218f73['start'],_0x30833f['start']);_0x3f7340['isEqual'](_0x218f73)||(_0x56939c['updateMarker'](_0x24d118,{'range':_0x3f7340}),_0x25ecd9=!0x0);}_0x25ecd9||(_0x56939c['removeMarker'](_0x24d118),_0x25ecd9=!0x0);}return _0x25ecd9;});}}class Tt extends _0x13e452{['afterInit'](){const _0x4b800f=this['editor'],_0x5dc800=_0x4b800f['plugins']['get']('TrackChangesEditing');_0x4b800f['plugins']['has']('Uploadcare')&&(_0x5dc800['enableCommand']('uploadcare'),_0x4b800f['plugins']['has']('UploadcareImageEdit')&&(_0x5dc800['enableCommand']('uploadcareImageEdit'),_0x5dc800['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5dc800['registerBlockAttribute']('uploadcareImageId'),_0x5dc800['descriptionFactory']['registerDescriptionCallback'](_0x4f3b91=>{if('attribute'!=_0x4f3b91['type'])return;const {data:_0x1de1e9}=_0x4f3b91;return _0x1de1e9&&'uploadcareImageId'==_0x1de1e9['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x13e452{['afterInit'](){const _0x512102=this['editor'],_0x2322ef=_0x512102['plugins']['get']('TrackChangesEditing');_0x512102['plugins']['has']('UndoEditing')&&(_0x2322ef['enableCommand']('undo'),_0x2322ef['enableCommand']('redo'));}}class Ot extends _0x13e452{static get['requires'](){return[At];}['afterInit'](){const _0x1b6b92=this['editor'];if(!_0x1b6b92['plugins']['has']('TableCaptionEditing'))return;_0x1b6b92['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x13e452{['tableProperties'];['tableCellProperties'];constructor(_0x7c4ef4){super(_0x7c4ef4),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 _0x142df1=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1d8d23 of this['tableProperties'])_0x142df1['enableCommand'](_0x1d8d23,(_0x1015ec,_0x3da41a)=>{const _0x534772=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1d8d23,[_0x534772],this['tableProperties'],'tableProperties',_0x1015ec,_0x3da41a);});_0x142df1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x142df1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x142df1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2fddf0,_0xe285d)=>this['handleDiscardAction'](this['tableProperties'],_0x2fddf0,_0xe285d)),_0x142df1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5081da of this['tableCellProperties'])_0x142df1['enableCommand'](_0x5081da,(_0x14d38c,_0x5958ef)=>{const _0x23da8d=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5081da,_0x23da8d,this['tableCellProperties'],'tableCellProperties',_0x14d38c,_0x5958ef);});_0x142df1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x142df1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x142df1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x21e084,_0x424651)=>this['handleDiscardAction'](this['tableCellProperties'],_0x21e084,_0x424651)),_0x142df1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x142df1['descriptionFactory']['registerDescriptionCallback'](_0x11b4eb=>this['handleSuggestionDescription'](_0x11b4eb)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x1ae053,_0x3b7b6d,_0x1f7474,_0x390e2e,_0x59e3dc,_0x3b5097){const _0x5b495c=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3b5097['batch'],()=>{for(const _0x403c34 of _0x3b7b6d){if(this['_getSuggestion'](_0x403c34,_0x390e2e))_0x59e3dc(_0x3b5097);else{const _0x12b4e9={};for(const _0x56a2cf of _0x1f7474){const _0x290693=_0x403c34['getAttribute'](_0x56a2cf);void 0x0!==_0x290693&&(_0x12b4e9[_0x56a2cf]=_0x290693);}_0x59e3dc(_0x3b5097),_0x5b495c['markBlockFormat'](_0x403c34,{'commandParams':[_0x12b4e9]},[],_0x390e2e);}}});}['handleDiscardAction'](_0x56052a,_0x6c3c9f,_0x5849fa){const _0x3e6735=_0x6c3c9f[0x0]['start']['nodeAfter'],_0x141bb4=_0x5849fa['commandParams'][0x0];this['editor']['model']['change'](_0x3f582d=>{for(const _0x1c3961 of _0x56052a)void 0x0!==_0x141bb4[_0x1c3961]?_0x3f582d['setAttribute'](_0x1c3961,_0x141bb4[_0x1c3961],_0x3e6735):_0x3f582d['removeAttribute'](_0x1c3961,_0x3e6735);});}['handleSuggestionDescription'](_0x1e810f){if(_0x1e810f['data'])switch(_0x1e810f['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'](_0x316fd8,_0xf0a357){const _0x4c007f=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x97133e of _0x4c007f['getSuggestions']({'skipNotAttached':!0x0})){const _0x591002=_0x97133e['getContainedElement']();if(_0x97133e['subType']===_0xf0a357&&_0x591002===_0x316fd8)return _0x97133e;}return null;}['_registerTablePropertiesAttributes'](){const _0x184332=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f749b=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x5e5a84 of _0x1f749b){const _0x197c7e=_0x5e5a84['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x184332['registerBlockAttribute'](_0x5e5a84),_0x184332['descriptionFactory']['registerAttributeLabel'](_0x5e5a84,o(this['editor']['locale'],'FORMAT_'+_0x197c7e));}}}class Rt extends _0x13e452{['afterInit'](){const _0x229c07=this['editor'];if(!_0x229c07['plugins']['has']('LineHeight'))return;const _0x5e282a=_0x229c07['plugins']['get']('TrackChangesEditing'),_0x1b7e21=_0x229c07['locale'];_0x5e282a['enableDefaultAttributesIntegration']('lineHeight'),_0x5e282a['registerBlockAttribute']('lineHeight'),_0x5e282a['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x1b7e21,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x13e452{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x56d1a,_0x377dde,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,$t,Et,Mt,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1da6b5){super(_0x1da6b5),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5897f3,_0x241e6f,_0x95e2ae,_0x79dd1b)=>{this['_model']['change'](()=>{for(const _0x5c1000 of[..._0x79dd1b,..._0x95e2ae])this['_model']['markers']['has'](_0x5c1000)&&_0x1da6b5['editing']['reconvertMarker'](_0x5c1000);});}),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']=_0x1da6b5['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(),_0x1da6b5['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1da6b5['config']['get']('trackChanges.trackFormatChanges'),_0x1da6b5['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1da6b5['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x1da6b5,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1f2920=this['editor'],_0x20246f=(_0x30a732,_0x2170dc)=>{if('attribute'!=_0x30a732)return'ck-suggestion-marker-'+_0x30a732;const _0x10acb0=_0x2170dc['split']('|')[0x0];return this['_isBlockAttribute'](_0x10acb0)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1f2920['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x768154=>{const {id:_0xcc34cf,authorId:_0x4dac25,type:_0x5d58fb,subType:_0x2f2407}=this['_splitMarkerName'](_0x768154['markerName']),_0x35e0c1=['ck-suggestion-marker',_0x20246f(_0x5d58fb,_0x2f2407)];let _0x55860b=0xbb8;return this['activeMarkers']['includes'](_0x768154['markerName'])&&(_0x35e0c1['push']('ck-suggestion-marker--active'),_0x55860b=0xbc2),'deletion'==_0x5d58fb&&(_0x55860b+=0x5),{'classes':_0x35e0c1,'attributes':{'data-suggestion':_0xcc34cf,'data-author-id':_0x4dac25},'priority':_0x55860b};}}),_0x1f2920['conversion']['for']('dataDowncast')['add'](_0x220349=>{_0x220349['on']('addMarker:suggestion',(_0x34e930,_0x3c4fe4,_0x508661)=>{if(!_0x508661['options']['showSuggestionHighlights'])return;const _0x271165=_0x3c4fe4['item'];if(!_0x271165)return;const _0x4725e0=_0x508661['mapper']['toViewElement'](_0x271165);_0x1f2920['model']['schema']['isObject'](_0x271165)&&_0x4725e0&&!_0x4725e0['getCustomProperty']('widget')&&_0x4725e0['is']('containerElement')&&_0xb90220(_0x4725e0,_0x508661['writer']);},{'priority':'high'});}),_0x1f2920['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x555965,_0x43db29)=>{if(!_0x43db29['options']['showSuggestionHighlights'])return null;const {id:_0x4bac54,authorId:_0x5c6db3,type:_0xe9371c,subType:_0x2fb173}=this['_splitMarkerName'](_0x555965['markerName']);return{'classes':['ck-suggestion-marker',_0x20246f(_0xe9371c,_0x2fb173)],'priority':0xbb8,'attributes':{'data-suggestion':_0x4bac54,'data-author-id':_0x5c6db3}};}});const _0x2bbe45=({showActiveMarkers:_0x58e107=!0x0,isAttributeSuggestion:_0x49d997=!0x1}={})=>(_0x238819,_0x1873c0,_0x4f49d0)=>{if(!_0x1873c0['item'])return;const {id:_0xbe5102,authorId:_0x3fa2d3}=this['_splitMarkerName'](_0x1873c0['markerName']);if(_0x49d997){const _0xbf810e=this['_suggestions']['get'](_0xbe5102),_0x5cd3f2=this['_getAttributeKey'](_0xbf810e);if(!this['_isBlockAttribute'](_0x5cd3f2))return;}if(_0x1873c0['item']['is']('selection'))return void _0x4f49d0['consumable']['consume'](_0x1873c0['item'],_0x238819['name']);const _0x59b732=_0x4f49d0['mapper']['toViewElement'](_0x1873c0['item']);if(_0x1873c0['item']['is']('element')&&_0x1f2920['model']['schema']['isBlock'](_0x1873c0['item'])&&!_0x59b732['getCustomProperty']('addHighlight')){_0x4f49d0['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x59b732),_0x4f49d0['writer']['setAttribute']('data-suggestion',_0xbe5102,_0x59b732),_0x4f49d0['writer']['setAttribute']('data-author-id',_0x3fa2d3,_0x59b732),_0x4f49d0['mapper']['bindElementToMarker'](_0x59b732,_0x1873c0['markerName']),_0x58e107&&(this['activeMarkers']['includes'](_0x1873c0['markerName'])?_0x4f49d0['writer']['addClass']('ck-suggestion-marker--active',_0x59b732):_0x4f49d0['writer']['removeClass']('ck-suggestion-marker--active',_0x59b732));for(const _0xae9572 of _0x1f2920['model']['createRangeIn'](_0x1873c0['item'])['getItems']())_0x4f49d0['consumable']['consume'](_0xae9572,_0x238819['name']);_0x4f49d0['consumable']['consume'](_0x1873c0['item'],_0x238819['name']);}};_0x1f2920['conversion']['for']('dataDowncast')['add'](_0x128443=>{_0x128443['on']('addMarker:suggestion:formatBlock',(_0x3e5d82,_0x396e1d,_0x404d98)=>{_0x404d98['options']['showSuggestionHighlights']&&_0x2bbe45({'showActiveMarkers':!0x1})(_0x3e5d82,_0x396e1d,_0x404d98);},{'priority':'highest'});}),_0x1f2920['conversion']['for']('dataDowncast')['add'](_0x2bb098=>{_0x2bb098['on']('addMarker:suggestion:attribute',(_0x3d0902,_0x31511f,_0x5f38d6)=>{_0x5f38d6['options']['showSuggestionHighlights']&&_0x2bbe45({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3d0902,_0x31511f,_0x5f38d6);},{'priority':'highest'});}),_0x1f2920['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x508604,_0x5ac2ee)=>{if(_0x5ac2ee['options']['showSuggestionHighlights']){const {id:_0x4ded8b,authorId:_0x6440af}=this['_splitMarkerName'](_0x508604);return _0x508604['includes'](':split')||_0x508604['includes'](':merge')?{'group':'suggestion','name':_0x508604['substr'](0xb),'attributes':{'data-suggestion':_0x4ded8b,'data-author-id':_0x6440af}}:null;}return{'group':'suggestion','name':_0x508604['substr'](0xb)};}}),_0x1f2920['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2f092e,{writer:_0x18d9b1})=>{let _0x59d80c='suggestion:'+_0x2f092e['getAttribute']('suggestion-type')+':'+_0x2f092e['getAttribute']('id');return _0x2f092e['getAttribute']('marker-count')&&(_0x59d80c+=':'+_0x2f092e['getAttribute']('marker-count')),_0x18d9b1['createElement']('$marker',{'data-name':_0x59d80c});}}),_0x1f2920['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1f2920['conversion']['for']('editingDowncast')['add'](_0x4cf59a=>{_0x4cf59a['on']('addMarker:suggestion:formatBlock',_0x2bbe45(),{'priority':'high'});}),_0x1f2920['conversion']['for']('editingDowncast')['add'](_0x3c566a=>{_0x3c566a['on']('addMarker:suggestion:attribute',_0x2bbe45({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1f2920['conversion']['for']('editingDowncast')['add'](_0x50ae8e=>{_0x50ae8e['on']('removeMarker:suggestion:formatBlock',(_0x2c7408,_0xb956cd,_0x36de69)=>{const _0xf85911=_0x36de69['mapper']['markerNameToElements'](_0xb956cd['markerName']);if(_0xf85911){for(const _0x54c7e5 of _0xf85911)_0x54c7e5['getCustomProperty']('addHighlight')||(_0x36de69['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x54c7e5),_0x36de69['writer']['removeAttribute']('data-suggestion',_0x54c7e5),_0x36de69['writer']['removeAttribute']('data-author-id',_0x54c7e5),_0x36de69['mapper']['unbindElementFromMarkerName'](_0x54c7e5,_0xb956cd['markerName']));}},{'priority':'high'});}),_0x1f2920['conversion']['for']('editingDowncast')['add'](_0x3d7da7=>{_0x3d7da7['on']('removeMarker:suggestion:attribute',(_0xffc550,_0x3bcc26,_0x45391f)=>{const _0x120981=_0x45391f['mapper']['markerNameToElements'](_0x3bcc26['markerName']);if(!_0x120981)return;const {id:_0x5ec6db}=this['_splitMarkerName'](_0x3bcc26['markerName']),_0x1ab85e=this['_suggestions']['get'](_0x5ec6db),_0x5c7400=this['_getAttributeKey'](_0x1ab85e);if(this['_isBlockAttribute'](_0x5c7400)){for(const _0x239ba1 of _0x120981)_0x239ba1['getCustomProperty']('addHighlight')||(_0x45391f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x239ba1),_0x45391f['writer']['removeAttribute']('data-suggestion',_0x239ba1),_0x45391f['writer']['removeAttribute']('data-author-id',_0x239ba1),_0x45391f['mapper']['unbindElementFromMarkerName'](_0x239ba1,_0x3bcc26['markerName']));}},{'priority':'high'});}),_0x1f2920['model']['document']['registerPostFixer'](_0x1d64ba=>{let _0x5cfa88=!0x1;const _0x56d0fb=Array['from'](_0x1f2920['model']['document']['differ']['getChangedMarkers']()),_0x31147f=new Set();for(const {name:_0x32393c,data:_0x49c6e1}of _0x56d0fb){const {group:_0x5052a6,type:_0x2a934b,subType:_0x1eade9,id:_0x4ca70d}=this['_splitMarkerName'](_0x32393c);if('suggestion'!==_0x5052a6)continue;const _0x5a3c15=this['_suggestions']['get'](_0x4ca70d);if(null!=_0x49c6e1['newRange']){'formatInline'==_0x2a934b&&(_0x5cfa88=_0x5cfa88||Gt(_0x49c6e1['newRange'],_0x32393c,_0x1d64ba,_0x1f2920['model']['schema']));const _0x4a38fc='attribute'==_0x2a934b&&this['_isBlockAttribute'](_0x1eade9['split']('|')[0x0]);if(_0x49c6e1['newRange']['isCollapsed']||'$graveyard'==_0x49c6e1['newRange']['root']['rootName']||'formatBlock'==_0x2a934b&&!Jt(_0x49c6e1['newRange'])||_0x4a38fc&&!Jt(_0x49c6e1['newRange'])||'deletion'==_0x2a934b&&!Kt(_0x49c6e1['newRange']))_0x1d64ba['removeMarker'](_0x32393c),_0x5cfa88=!0x0;else{if(!_0x5a3c15||!_0x5a3c15['isInContent'])continue;if(_0x49c6e1['newRange']&&_0x49c6e1['oldRange']&&_0x49c6e1['newRange']['isEqual'](_0x49c6e1['oldRange']))continue;_0x31147f['add'](_0x5a3c15);}}}return _0x31147f['size']>0x0&&(_0x5cfa88=!!this['_joinWithAdjacentSuggestions'](_0x31147f)||_0x5cfa88),_0x5cfa88;}),_0x1f2920['model']['document']['registerPostFixer'](_0x4f56c2=>{let _0x556e89=!0x1;for(const _0xf5a6dc of _0x1f2920['model']['document']['differ']['getChanges']())if('insert'==_0xf5a6dc['type'])for(const _0x1dcca4 of this['_suggestions']['values']()){if(_0x1dcca4['isMultiRange']||!_0x1dcca4['isInContent'])continue;const _0x41581e='formatBlock'==_0x1dcca4['type'],_0x5d3af2=this['_getAttributeKey'](_0x1dcca4),_0x1c81d1=_0x5d3af2&&this['_isBlockAttribute'](_0x5d3af2);if(!_0x41581e&&!_0x1c81d1)continue;const _0x2c6958=_0x1dcca4['getFirstRange']();if(_0x2c6958['start']['parent']!=_0x2c6958['end']['parent']&&!_0x2c6958['end']['isAtEnd']){const _0x276663=_0x1f2920['model']['createPositionAt'](_0x2c6958['start']['nodeAfter'],'end'),_0x37969a=_0x1f2920['model']['createRange'](_0x2c6958['start'],_0x276663);_0x4f56c2['updateMarker'](_0x1dcca4['getFirstMarker'](),{'range':_0x37969a}),_0x556e89=!0x0;}}return _0x556e89;}),_0x1f2920['model']['document']['registerPostFixer'](_0x242dd9=>this['_processAttributeChanges'](_0x242dd9)),_0x1f2920['model']['document']['registerPostFixer'](_0x3dd0ff=>!_0x3dd0ff['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3dd0ff)),_0x1f2920['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1f2920['model']['document']['on']('change:data',(_0x2df026,_0x396974)=>{if(!_0x396974['isLocal']||_0x396974['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x289679=_0x1f2920['model']['document']['differ']['getChanges']();if(0x0==_0x289679['length'])return;const _0x41ee81=[],_0x5a7613=_0x289679['filter'](_0x7b184f=>'attribute'==_0x7b184f['type']),_0x421290=_0x289679['filter'](_0x40e399=>'insert'==_0x40e399['type']&&'$text'!=_0x40e399['name']);for(const _0x3de79d of _0x5a7613)this['_isRegisteredAttribute'](_0x3de79d['attributeKey'])&&_0x41ee81['push']({'key':_0x3de79d['attributeKey'],'newValue':_0x3de79d['attributeNewValue'],'oldValue':_0x3de79d['attributeOldValue'],'range':Ht(_0x3de79d['range'],_0x1f2920['model'])});for(const _0x1198a8 of _0x421290){if('rename'!=_0x1198a8['action']&&'refresh'!=_0x1198a8['action'])continue;const _0x544c60=qt(_0x1198a8['position']['nodeAfter'],_0x1f2920['model']),_0x3b0436=_0x1198a8['before'];'rename'==_0x1198a8['action']&&_0x41ee81['push']({'key':m,'newValue':_0x1198a8['name'],'oldValue':_0x3b0436['name'],'range':_0x544c60});for(const [_0x40e52f,_0x329098]of _0x3b0436['attributes']){if(!this['_isRegisteredAttribute'](_0x40e52f))continue;const _0x45bc89=_0x1198a8['attributes']['get'](_0x40e52f);_0x329098!==_0x45bc89&&_0x41ee81['push']({'key':_0x40e52f,'newValue':_0x45bc89,'oldValue':_0x329098,'range':_0x544c60});}for(const [_0x3bb02b,_0x1e5017]of _0x1198a8['attributes'])this['_isRegisteredAttribute'](_0x3bb02b)&&(_0x3b0436['attributes']['has'](_0x3bb02b)||_0x41ee81['push']({'key':_0x3bb02b,'newValue':_0x1e5017,'oldValue':null,'range':_0x544c60}));}0x0!=_0x41ee81['length']&&_0x1f2920['model']['enqueueChange'](_0x396974,_0x2818d3=>{const _0x140ac6=_0x22223a();for(const {range:_0x4326b0,key:_0x3245cb,oldValue:_0x40aadf,newValue:_0x3d4785}of _0x41ee81)this['markAttributeChange'](_0x4326b0,_0x3245cb,_0x40aadf,_0x3d4785,{'groupId':_0x140ac6});this['_reduceExistingSuggestions'](_0x2818d3,_0x41ee81);});},{'priority':'lowest'}),_0x1f2920['model']['markers']['on']('update:suggestion',(_0x2ec6f8,_0x350fd9,_0x261396)=>{if(null==_0x261396){const {id:_0x16f02e}=this['_splitMarkerName'](_0x350fd9['name']),_0x48e4a0=this['_suggestions']['get'](_0x16f02e);_0x48e4a0&&_0x48e4a0['addMarkerName'](_0x350fd9['name']);}}),_0x1f2920['model']['document']['on']('change:data',()=>{const _0x355a62=Array['from'](_0x1f2920['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5234d4=>'suggestion'===this['_splitMarkerName'](_0x5234d4['name'])['group']);if(0x0===_0x355a62['length'])return;_0x355a62['sort']((_0x422261,_0xf50d2c)=>{const _0x15fade=_0x422261['data']['oldRange'],_0x3447f1=_0xf50d2c['data']['oldRange'];return null===_0x15fade&&null===_0x3447f1?0x0:null===_0x15fade&&null!==_0x3447f1?-0x1:null!==_0x15fade&&null===_0x3447f1?0x1:_0x15fade['start']['isBefore'](_0x3447f1['start'])?-0x1:0x1;});const _0x2adf2a=new Set(),_0x488c6f=new Set();for(const {name:_0x416349,data:_0x47023c}of _0x355a62){const {id:_0x3141c3}=this['_splitMarkerName'](_0x416349);if(null===_0x47023c['oldRange']){const _0x937a79=this['_handleNewSuggestionMarker'](_0x416349);_0x488c6f['add'](_0x937a79);}else{const _0x1703b6=this['_suggestions']['get'](_0x3141c3);null!==_0x47023c['newRange']||_0x1703b6['isInContent']?(_0x2adf2a['add'](_0x1703b6['head']),_0x488c6f['add'](_0x1703b6)):this['_removeSuggestion'](_0x1703b6);}}_0x488c6f['size']>0x0&&this['_refreshSuggestionsChain'](_0x488c6f);for(const _0x3e345a of _0x2adf2a)this['fire']('suggestionChanged',_0x3e345a);}),_0x1f2920['model']['on']('applyOperation',(_0x147daa,_0x4636be)=>{const _0xa5d0ee=_0x4636be[0x0];if(!this['_suggestions']['size'])return;if(!_0xa5d0ee['isDocumentOperation'])return;if(_0xa5d0ee['batch']['isUndo']||!_0xa5d0ee['batch']['isLocal'])return;let _0x3d227d,_0x102ca2;switch(_0xa5d0ee['type']){case'insert':_0x3d227d=_0x1f2920['model']['createPositionAt'](_0xa5d0ee['position']),_0x102ca2=_0x3d227d['getShiftedBy'](_0xa5d0ee['howMany']);break;case'split':_0x3d227d=_0x1f2920['model']['createPositionAt'](_0xa5d0ee['splitPosition']),_0x102ca2=_0x1f2920['model']['createPositionAt'](_0xa5d0ee['moveTargetPosition']);break;case'move':_0x3d227d=_0x1f2920['model']['createPositionAt'](_0xa5d0ee['targetPosition']),_0x102ca2=_0x3d227d['getShiftedBy'](_0xa5d0ee['howMany']);break;default:return;}const _0x18a124=_0x1f2920['model']['createRange'](_0x3d227d,_0x102ca2);_0x1f2920['model']['change'](()=>{for(const {suggestion:_0x45d710,meta:_0x133412}of this['_findSuggestions'](_0x18a124)){if(_0x45d710['isMultiRange'])continue;if('formatInline'==_0x45d710['type'])continue;const _0x5d9576=this['_getAttributeKey'](_0x45d710);if(_0x5d9576&&this['_isBlockAttribute'](_0x5d9576)&&'split'!=_0xa5d0ee['type'])continue;const _0x54febb=_0x45d710['data']&&_0x45d710['data']['multipleBlocks'];('formatBlock'!=_0x45d710['type']||'split'==_0xa5d0ee['type']&&!_0x54febb)&&(_0x133412['containsRangeInObject']||'insertion'==_0x45d710['type']&&_0x133412['isOwn']||_0x45d710['getFirstRange']()['containsRange'](_0x18a124)&&this['_breakSuggestionMarker'](_0x45d710,_0x3d227d,_0x102ca2));}});},{'priority':'lowest'}),_0x1f2920['model']['on']('deleteContent',(_0x22b78b,_0x3b2847)=>{const _0x43fee1=_0x3b2847[0x0],_0x352700=_0x3b2847[0x1];if(_0x352700&&_0x352700['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x43fee1['isCollapsed'])return;const _0x2d82a9=_0x1f2920['model']['schema'],{start:_0xc2f621,end:_0x281afe}=_0x43fee1['getFirstRange'](),_0x57ae48=_0xc2f621['nodeAfter']&&_0x2d82a9['isLimit'](_0xc2f621['nodeAfter'])?null:_0x2d82a9['getNearestSelectionRange'](_0xc2f621,'forward'),_0x2111ba=_0x281afe['nodeBefore']&&_0x2d82a9['isLimit'](_0x281afe['nodeBefore'])?null:_0x2d82a9['getNearestSelectionRange'](_0x281afe,'backward'),_0x3a0ad6=_0x1f2920['model']['createRange'](_0x57ae48?_0x57ae48['start']:_0xc2f621,_0x2111ba?_0x2111ba['end']:_0x281afe);_0x1f2920['model']['change'](_0x81cdf6=>{this['markDeletion'](_0x3a0ad6);const _0xb042fe=_0x1f2920['model']['schema']['getNearestSelectionRange'](_0x3a0ad6['start']);_0x43fee1['is']('documentSelection')?_0x81cdf6['setSelection'](_0xb042fe):_0x43fee1['setTo'](_0xb042fe);}),_0x22b78b['stop']();},{'priority':_0x17dc3a['normal']+0xa}),_0x1f2920['model']['on']('insertContent',(_0x288623,_0x35edbd)=>{const _0x5a31e2=_0x35edbd[_0x35edbd['length']-0x1];_0x5a31e2&&_0x5a31e2['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1f2920['model']['change'](()=>{let _0x2e2911=_0x1f2920['model']['insertContent'](_0x35edbd[0x0],_0x35edbd[0x1],_0x35edbd[0x2],{'forceDefaultExecution':!0x0});if(!_0x2e2911)return;_0x288623['return']=_0x2e2911['clone']();const _0x5898a9=_0x2e2911['end']['nodeBefore'],_0x13a2f8=_0x1f2920['model']['schema'];_0x5898a9&&_0x13a2f8['isBlock'](_0x5898a9)&&!_0x13a2f8['isObject'](_0x5898a9)&&(_0x2e2911=_0x1f2920['model']['createRange'](_0x2e2911['start'],_0x1f2920['model']['createPositionAt'](_0x5898a9,'end'))),this['markInsertion'](_0x2e2911);}),_0x288623['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x468213=new D(_0x1f2920,this['_suggestions']);_0x1f2920['commands']['add']('acceptSuggestion',_0x468213),this['enableCommand']('acceptSuggestion');const _0x36fcf3=new M(_0x1f2920,this['_suggestions']);_0x1f2920['commands']['add']('discardSuggestion',_0x36fcf3),this['enableCommand']('discardSuggestion'),_0x1f2920['commands']['add']('acceptAllSuggestions',new $(_0x1f2920,_0x468213,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1f2920['commands']['add']('discardAllSuggestions',new $(_0x1f2920,_0x36fcf3,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1f2920['commands']['add']('acceptSelectedSuggestions',new B(_0x1f2920,_0x468213,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1f2920['commands']['add']('discardSelectedSuggestions',new B(_0x1f2920,_0x36fcf3,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x20218f=_0x1f2920['plugins']['get']('CommentsRepository');this['listenTo'](_0x20218f,'addComment',(_0x4a16da,{threadId:_0x3cf63c})=>{const _0x413533=this['_suggestions']['get'](_0x3cf63c);_0x413533&&_0x413533['commentThread']&&0x1===_0x413533['commentThread']['length']&&this['_updateSuggestionData'](_0x3cf63c,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x20218f,'removeComment',(_0x5b586a,{threadId:_0x571bb6})=>{const _0x359896=this['_suggestions']['get'](_0x571bb6);_0x359896&&_0x359896['commentThread']&&!_0x359896['commentThread']['length']&&this['_updateSuggestionData'](_0x571bb6,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2d2310){const _0x2f95d9=_0x62bec7([0x39,0x54,0x6d,0x42,0x4c,0x38,0x73,0x79,0x67,0x44,0x4e,0x52,0x63,0x6a,0x65,0x64,0x62,0x36,0x51,0x72,0x69,0x66,0x32,0x35,0x70,0x41,0x6e,0x78,0x4a,0x6f,0x49,0x4f,0x48,0x71,0x61,0x75,0x31,0x30,0x5a,0x57,0x4b,0x50,0x33,0x46,0x7a,0x47,0x43,0x37,0x55,0x34,0x45,0x76,0x4d,0x58,0x59,0x74,0x68,0x77,0x53,0x56,0x6c,0x6b]),_0x4089d2=0x15677498,_0x22c734=0x15601878^_0x4089d2,_0x1b4b9d=window[_0x62bec7([0x44,0x61,0x74,0x65])][_0x62bec7([0x6e,0x6f,0x77])](),_0x136328=_0x2d2310[_0x62bec7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4cb36b=new window[(_0x62bec7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f984f=>{_0x136328[_0x62bec7([0x6f,0x6e,0x63,0x65])](_0x62bec7([0x72,0x65,0x61,0x64,0x79]),_0x2f984f);}),_0x381966={[_0x62bec7([0x6b,0x74,0x79])]:_0x62bec7([0x45,0x43]),[_0x62bec7([0x75,0x73,0x65])]:_0x62bec7([0x73,0x69,0x67]),[_0x62bec7([0x63,0x72,0x76])]:_0x62bec7([0x50,0x2d,0x32,0x35,0x36]),[_0x62bec7([0x78])]:_0x62bec7([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]),[_0x62bec7([0x79])]:_0x62bec7([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]),[_0x62bec7([0x61,0x6c,0x67])]:_0x62bec7([0x45,0x53,0x32,0x35,0x36])},_0x37bacb=_0x136328[_0x62bec7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x62bec7([0x67,0x65,0x74])](_0x62bec7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4bd1eb(){let _0x1e37cb,_0x5e8b43=null,_0x2e459d=null;try{if(_0x37bacb==_0x62bec7([0x47,0x50,0x4c]))return _0x62bec7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1e37cb=_0x5c290e(),!_0x1e37cb)return _0x62bec7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1e37cb[_0x62bec7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2e459d=_0x50fbc6(_0x1e37cb[_0x62bec7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1e37cb[_0x62bec7([0x6a,0x74,0x69])])),await _0x279bb2()?_0x2c8a51()?_0x1d1283()?_0x62bec7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x574467()?(_0x1e37cb[_0x62bec7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x62bec7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e8b43=_0x16af09(_0x62bec7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1e37cb[_0x62bec7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x62bec7([0x74,0x72,0x69,0x61,0x6c])&&(_0x5e8b43=_0x16af09(_0x62bec7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5a307c()):_0x62bec7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x62bec7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x62bec7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x62bec7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1d1283(){const _0x4926fc=[_0x62bec7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x62bec7([0x74,0x72,0x69,0x61,0x6c])][_0x62bec7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e37cb[_0x62bec7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1b4b9d/0x3e8:0xe10*_0x22c734;return _0x1e37cb[_0x62bec7([0x65,0x78,0x70])]<_0x4926fc;}function _0x2c8a51(){const _0x3c05bc=_0x1e37cb[_0x62bec7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3c05bc)return!0x1;if(_0x3c05bc[_0x62bec7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x62bec7([0x2a])))return!0x0;if(_0x3c05bc[_0x62bec7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x62bec7([0x54,0x43])))return!0x0;if(_0x3c05bc[_0x62bec7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x62bec7([0x52,0x54,0x43]))){if(_0x32f6cf())return!0x0;if(_0xcc9aab()||_0x2b22c5())return!0x0;}return!0x1;}function _0x574467(){const _0x479955=_0x1e37cb[_0x62bec7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x479955||0x0==_0x479955[_0x62bec7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x512190}=new URL(window[_0x62bec7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x479955[_0x62bec7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x512190))return!0x0;const _0x1ef08b=_0x512190[_0x62bec7([0x73,0x70,0x6c,0x69,0x74])](_0x62bec7([0x2e]));return _0x479955[_0x62bec7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xe22266=>_0xe22266[_0x62bec7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x62bec7([0x2a])))[_0x62bec7([0x6d,0x61,0x70])](_0x1a8a1e=>_0x1a8a1e[_0x62bec7([0x73,0x70,0x6c,0x69,0x74])](_0x62bec7([0x2e])))[_0x62bec7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2ce3f0=>_0x2ce3f0[_0x62bec7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1ef08b[_0x62bec7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x62bec7([0x6d,0x61,0x70])](_0x56638d=>Array(_0x1ef08b[_0x62bec7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x56638d[_0x62bec7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x62bec7([0x66,0x69,0x6c,0x6c])](_0x56638d[0x0]===_0x62bec7([0x2a])?_0x62bec7([0x2a]):'')[_0x62bec7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x56638d))[_0x62bec7([0x73,0x6f,0x6d,0x65])](_0x19aacd=>_0x1ef08b[_0x62bec7([0x65,0x76,0x65,0x72,0x79])]((_0x423c78,_0x375550)=>_0x19aacd[_0x375550]===_0x423c78||_0x19aacd[_0x375550]===_0x62bec7([0x2a])));}function _0x5a307c(){return _0x5e8b43&&_0x2e459d?new window[(_0x62bec7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5db650,_0x2e9561)=>{_0x5e8b43[_0x62bec7([0x74,0x68,0x65,0x6e])](_0x5db650,_0x2e9561),_0x2e459d[_0x62bec7([0x74,0x68,0x65,0x6e])](_0x3a5c10=>{_0x3a5c10!=_0x62bec7([0x56,0x61,0x6c,0x69,0x64])&&_0x5db650(_0x3a5c10);},_0x2e9561);}):_0x5e8b43||_0x2e459d||_0x62bec7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x50fbc6(_0x1b33cc,_0xe96407){return new window[(_0x62bec7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b2efb=>{if(_0x55ed5c())return _0x2b2efb(_0x62bec7([0x56,0x61,0x6c,0x69,0x64]));_0x2b1456(),_0x136328[_0x62bec7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x62bec7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2fceb0=!0x1;const _0x281ebf=_0x22223a();function _0x2f27ac(_0x3f6c28){return!!_0x3f6c28&&(typeof _0x3f6c28===_0x62bec7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3f6c28===_0x62bec7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3f6c28[_0x62bec7([0x74,0x68,0x65,0x6e])]===_0x62bec7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3f6c28[_0x62bec7([0x63,0x61,0x74,0x63,0x68])]===_0x62bec7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3182c6(_0x31568c){_0x350c20(_0x31568c)[_0x62bec7([0x74,0x68,0x65,0x6e])](_0xe53e20=>{if(!_0xe53e20||_0xe53e20[_0x62bec7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x62bec7([0x6f,0x6b]))return _0x62bec7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x19c94c(_0x3f1627(_0x281ebf+_0xe96407))!=_0xe53e20[_0x62bec7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x62bec7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x62bec7([0x56,0x61,0x6c,0x69,0x64]);})[_0x62bec7([0x74,0x68,0x65,0x6e])](_0x1482c3=>(_0x412c1d(),_0x1482c3),()=>{const _0x8f2f63=_0x276d0f();return null==_0x8f2f63?(_0x412c1d(),_0x62bec7([0x56,0x61,0x6c,0x69,0x64])):_0x62bec7(_0x1b4b9d-_0x8f2f63>(0x316bf098^_0x4089d2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x62bec7([0x74,0x68,0x65,0x6e])](_0x2b2efb)[_0x62bec7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2b2efb(_0x62bec7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3a21ae=0x15519a18^_0x4089d2;function _0x412c1d(){const _0x549e99=_0x62bec7([0x6c,0x6c,0x63,0x74,0x2d])+_0x19c94c(_0x3f1627(_0x1b33cc)),_0x285524=_0x58ffd5(_0x19c94c(window[_0x62bec7([0x4d,0x61,0x74,0x68])][_0x62bec7([0x63,0x65,0x69,0x6c])](_0x1b4b9d/_0x3a21ae)));window[_0x62bec7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x62bec7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x549e99,_0x285524);}function _0x276d0f(){const _0x14a42e=_0x62bec7([0x6c,0x6c,0x63,0x74,0x2d])+_0x19c94c(_0x3f1627(_0x1b33cc)),_0xd75b0c=window[_0x62bec7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x62bec7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x14a42e);return _0xd75b0c?window[_0x62bec7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58ffd5(_0xd75b0c),0x10)*_0x3a21ae:null;}function _0x350c20(_0x5ed61f){return new window[(_0x62bec7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x183662,_0x2ae7f5)=>{_0x5ed61f[_0x62bec7([0x74,0x68,0x65,0x6e])](_0x183662,_0x2ae7f5),window[_0x62bec7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2ae7f5,0x1566a058^_0x4089d2);});}}_0x136328[_0x62bec7([0x6f,0x6e])](_0x62bec7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4d890b,_0x2a12f1)=>{if(_0x2a12f1[0x0]!=_0x1b33cc)return _0x2b2efb(_0x62bec7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2a12f1[0x1]={..._0x2a12f1[0x1],[_0x62bec7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x281ebf};},{[_0x62bec7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x62bec7([0x68,0x69,0x67,0x68])}),_0x136328[_0x62bec7([0x6f,0x6e])](_0x62bec7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x49b1e0=>{_0x2f27ac(_0x49b1e0[_0x62bec7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2fceb0=!0x0,_0x3182c6(_0x49b1e0[_0x62bec7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x62bec7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x62bec7([0x6c,0x6f,0x77])}),_0x4cb36b[_0x62bec7([0x74,0x68,0x65,0x6e])](()=>{_0x2fceb0||_0x2b2efb(_0x62bec7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x55ed5c(){return _0x136328[_0x62bec7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x62bec7([0x76,0x69,0x65,0x77])][_0x62bec7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x62bec7([0x61,0x75,0x74,0x6f]);}function _0x2b1456(){_0x136328[_0x62bec7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x62bec7([0x76,0x69,0x65,0x77])][_0x62bec7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x62bec7([0x61,0x75,0x74,0x6f]);}}function _0x16af09(_0x41882e){const _0x9cf153=[new window[(_0x62bec7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1022fc=>setTimeout(_0x1022fc,0x156e4a54^_0x4089d2)),_0x4cb36b[_0x62bec7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x62bec7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5527cc=>{let _0x5dca71=0x0;_0x136328[_0x62bec7([0x6d,0x6f,0x64,0x65,0x6c])][_0x62bec7([0x6f,0x6e])](_0x62bec7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5d8c63,_0x211d2a)=>{_0x211d2a[0x0][_0x62bec7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5dca71++,_0x5dca71==(0x15677560^_0x4089d2)&&(_0x5527cc(),_0x5d8c63[_0x62bec7([0x6f,0x66,0x66])]());});}))];return window[_0x62bec7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x62bec7([0x72,0x61,0x63,0x65])](_0x9cf153)[_0x62bec7([0x74,0x68,0x65,0x6e])](()=>_0x41882e);}async function _0x8416ee(){await _0x4cb36b,_0x136328[_0x62bec7([0x6d,0x6f,0x64,0x65,0x6c])][_0x62bec7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4526ed,_0x136328[_0x62bec7([0x6d,0x6f,0x64,0x65,0x6c])][_0x62bec7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4526ed,_0x136328[_0x62bec7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x62bec7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x32f6cf(){return _0x2ef7ad(_0x62bec7([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x449fb6(_0x62bec7([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x62bec7([0x73,0x74,0x61,0x74,0x65])]==_0x62bec7([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xcc9aab(){return _0x2ef7ad(_0x62bec7([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 _0x2b22c5(){return _0x2ef7ad(_0x62bec7([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4329d2(_0x243fdb){const _0x3f102b=_0x5be9ab();_0x136328[_0x3f102b]=_0x62bec7([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x243fdb,_0x243fdb!=_0x62bec7([0x56,0x61,0x6c,0x69,0x64])&&_0x8416ee();}function _0x5be9ab(){const _0x1086d3=window[_0x62bec7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x62bec7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x62bec7([0x6e,0x6f,0x77])]())[_0x62bec7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x62bec7([0x2e]),'');let _0x2e1ba2=_0x62bec7([0x54]);for(let _0x349982=0x0;_0x349982<_0x1086d3[_0x62bec7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x349982+=0x2){let _0x374b1b=window[_0x62bec7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1086d3[_0x62bec7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x349982,_0x349982+0x2));_0x374b1b>=_0x2f95d9[_0x62bec7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x374b1b-=_0x2f95d9[_0x62bec7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2e1ba2+=_0x2f95d9[_0x374b1b];}return _0x2e1ba2;}function _0x5c290e(){const _0x15570a=_0x37bacb[_0x62bec7([0x73,0x70,0x6c,0x69,0x74])](_0x62bec7([0x2e]));if(0x3!=_0x15570a[_0x62bec7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x47887c(_0x15570a[0x1]);function _0x47887c(_0x44ddd7){const _0x326079=_0x151629(_0x44ddd7);return _0x326079&&_0x1c0771()?_0x326079:null;function _0x1c0771(){const _0x53c41e=_0x326079[_0x62bec7([0x6a,0x74,0x69])],_0x1cd9f9=window[_0x62bec7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53c41e[_0x62bec7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x53c41e[_0x62bec7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x171faa={..._0x326079,[_0x62bec7([0x6a,0x74,0x69])]:_0x53c41e[_0x62bec7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x53c41e[_0x62bec7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x171faa[_0x62bec7([0x76,0x63])],_0x3f1627(_0x171faa)==_0x1cd9f9;}}}async function _0x279bb2(){let _0x22aa74=!0x0;try{const _0x166a17=_0x37bacb[_0x62bec7([0x73,0x70,0x6c,0x69,0x74])](_0x62bec7([0x2e])),[_0x175e34,_0x4c0f3d,_0x540172]=_0x166a17;return _0x1eaf74(_0x175e34),await _0x386caa(_0x175e34,_0x4c0f3d,_0x540172),_0x22aa74;}catch{return!0x1;}function _0x1eaf74(_0x26d044){const _0x41d95b=_0x151629(_0x26d044);_0x41d95b&&_0x41d95b[_0x62bec7([0x61,0x6c,0x67])]==_0x62bec7([0x45,0x53,0x32,0x35,0x36])||(_0x22aa74=!0x1);}async function _0x386caa(_0x4ccf51,_0x24d5ea,_0x4f1538){const _0x2db231=window[_0x62bec7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x62bec7([0x66,0x72,0x6f,0x6d])](_0x2c76f1(_0x4f1538),_0x3747b7=>_0x3747b7[_0x62bec7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1e902e=new window[(_0x62bec7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x62bec7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4ccf51+_0x62bec7([0x2e])+_0x24d5ea),_0xe24c59=window[_0x62bec7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x62bec7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xe24c59)return;const _0x106b37=await _0xe24c59[_0x62bec7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x62bec7([0x6a,0x77,0x6b]),_0x381966,{[_0x62bec7([0x6e,0x61,0x6d,0x65])]:_0x62bec7([0x45,0x43,0x44,0x53,0x41]),[_0x62bec7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x62bec7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x62bec7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xe24c59[_0x62bec7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x62bec7([0x6e,0x61,0x6d,0x65])]:_0x62bec7([0x45,0x43,0x44,0x53,0x41]),[_0x62bec7([0x68,0x61,0x73,0x68])]:{[_0x62bec7([0x6e,0x61,0x6d,0x65])]:_0x62bec7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x106b37,_0x2db231,_0x1e902e)||(_0x22aa74=!0x1);}}function _0x151629(_0x99686a){return _0x99686a[_0x62bec7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x62bec7([0x65,0x79]))?JSON[_0x62bec7([0x70,0x61,0x72,0x73,0x65])](_0x2c76f1(_0x99686a)):null;}function _0x2c76f1(_0x2e0173){return window[_0x62bec7([0x61,0x74,0x6f,0x62])](_0x2e0173[_0x62bec7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x62bec7([0x2b]))[_0x62bec7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x62bec7([0x2f])));}function _0x3f1627(_0x8a3214){let _0x4d1d0b=0x1505;function _0x1678f(_0x3729f2){for(let _0x3bc7b1=0x0;_0x3bc7b1<_0x3729f2[_0x62bec7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3bc7b1++){const _0x30878a=_0x3729f2[_0x62bec7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3bc7b1);_0x4d1d0b=(_0x4d1d0b<<0x5)+_0x4d1d0b+_0x30878a,_0x4d1d0b&=_0x4d1d0b;}}function _0x195e4d(_0x464d66){Array[_0x62bec7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x464d66)?_0x464d66[_0x62bec7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x195e4d):_0x464d66&&typeof _0x464d66==_0x62bec7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x62bec7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x464d66)[_0x62bec7([0x73,0x6f,0x72,0x74])]()[_0x62bec7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1dcbec,_0x379f6e])=>{_0x1678f(_0x1dcbec),_0x195e4d(_0x379f6e);}):_0x1678f(window[_0x62bec7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x464d66));}return _0x195e4d(_0x8a3214),_0x4d1d0b>>>0x0;}function _0x19c94c(_0x272010){return _0x272010[_0x62bec7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x62bec7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x62bec7([0x30]));}function _0x58ffd5(_0x578567){return _0x578567[_0x62bec7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x62bec7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x62bec7([0x6a,0x6f,0x69,0x6e])]('');}function _0x2ef7ad(_0x2158a5){return _0x136328[_0x62bec7([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x62bec7([0x68,0x61,0x73])](_0x2158a5);}function _0x449fb6(_0xcc19f8){return _0x136328[_0x62bec7([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x62bec7([0x67,0x65,0x74])](_0xcc19f8);}function _0x4526ed(){}function _0x62bec7(_0xd84807){return _0xd84807['map'](_0x3f94a4=>String['fromCharCode'](_0x3f94a4))['join']('');}_0x4329d2(await _0x4bd1eb());}(this);}set['adapter'](_0x5ab25d){if(this['_adapter'])throw new _0x19b862('track-changes-adapter-already-set',this);this['_adapter']=_0x5ab25d;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1d6c0d=!0x1,toJSON:_0x2769ff=!0x1}={}){const _0x4521d2=[];for(const _0x4658d0 of this['_suggestions']['values']())_0x1d6c0d&&!_0x4658d0['isInContent']||_0x4521d2['push'](_0x4658d0);return _0x2769ff?_0x4521d2['map'](_0x1df457=>_0x1df457['toJSON']()):_0x4521d2;}['getSuggestion'](_0x580b96){const _0x56b4fc=this['_suggestions']['get'](_0x580b96);if(!_0x56b4fc)throw new _0x19b862('track-changes-suggestion-not-found',this);return _0x56b4fc;}['hasSuggestion'](_0x2b16e2){return this['_suggestions']['has'](_0x2b16e2);}['addSuggestionData'](_0xf203cd){const {authorId:_0x1e2ce8,id:_0x31e0cf,originalSuggestionId:_0x387220,attributes:_0x4ecc08}=_0xf203cd,[_0x3b7cad,_0x450da3]=_0xf203cd['type']['split'](':'),_0x1708cf=this['_suggestions']['get'](_0x31e0cf)||this['_createSuggestion'](_0x3b7cad,_0x450da3,_0x31e0cf,_0x1e2ce8,_0x4ecc08,_0x387220);if(this['_addThreadToSuggestion'](_0x1708cf),this['_checkSuggestionCorrectness'](_0x1708cf,_0x3b7cad,_0x450da3||null,_0x1e2ce8),_0x1708cf['createdAt']=_0xf203cd['createdAt'],_0x1708cf['_isDataLoaded']=!0x0,_0x4ecc08&&_0x4ecc08['@external']){const _0x2ab77b=_0x4ecc08['@external'],_0x21dc2f=this['_getExternalAuthor'](_0x2ab77b['authorName']);_0x1708cf['authoredAt']=_0x2ab77b['createdAt'],_0x1708cf['author']=_0x21dc2f,_0x1708cf['isExternal']=!0x0;}else _0x1708cf['authoredAt']=_0xf203cd['createdAt'];switch(_0xf203cd['data']&&(_0x1708cf['data']=_0xf203cd['data']),_0xf203cd['attributes']&&(_0x1708cf['attributes']=_0xf203cd['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1708cf['_saved']=!0x0),this['_suggestionState']['get'](_0x1708cf)){case'notReady':this['_suggestionState']['set'](_0x1708cf,'dataReady');break;case'markerReady':_0x1708cf['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1708cf])),this['_refreshSuggestionsChain'](new Set([_0x1708cf])),this['_suggestionState']['set'](_0x1708cf,'ready'),this['fire']('suggestionLoaded',_0x1708cf)):this['_suggestionState']['set'](_0x1708cf,'removed');}return _0x1708cf;}['acceptSuggestion'](_0x50b1af){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xa36654 of _0x50b1af['getAllAdjacentSuggestions']())_0xa36654['accept']();});});}['discardSuggestion'](_0x3da144){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4563ff of _0x3da144['getAllAdjacentSuggestions']())_0x4563ff['discard']();});});}['enableCommand'](_0x37ff6c,_0x21659d){const _0x178b72=this['editor']['commands']['get'](_0x37ff6c);if(!_0x178b72)throw new _0x19b862('track-changes-command-not-found',this,{'commandName':_0x37ff6c});if(this['_enabledCommands']['has'](_0x178b72))throw new _0x19b862('track-changes-enable-command-twice',this,{'commandName':_0x37ff6c});this['_enabledCommands']['add'](_0x178b72),_0x21659d&&_0x178b72['on']('execute',(_0x55f61e,_0x4f6488)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4f6488['length']>0x0&&_0x4f6488[_0x4f6488['length']-0x1]&&_0x4f6488[_0x4f6488['length']-0x1]['forceDefaultExecution']?_0x4f6488['pop']():(_0x55f61e['return']=_0x21659d((..._0xc48383)=>_0x178b72['execute'](..._0xc48383,{'forceDefaultExecution':!0x0}),..._0x4f6488),_0x55f61e['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x13919f){let _0xc3dc1e,_0x1389c4;const _0x20ba4b=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xc3dc1e=_0x13919f();}catch(_0x269ccd){_0x1389c4=_0x269ccd;}return _0x20ba4b||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1389c4&&_0x19b862['rethrowUnexpectedError'](_0x1389c4,this),_0xc3dc1e;}['markInsertion'](_0x60251c,_0x104b94=null,_0x1b60cb={}){if(_0x60251c['isCollapsed'])return null;const _0x522880=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x1b60cb['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x401992,meta:_0x2d50ef}of this['_findSuggestions'](_0x60251c,'insertion'))if(_0x2d50ef['isOwn']){if(!_0x2d50ef['isNextTo']){if(_0x2d50ef['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x401992,_0x1b60cb))continue;return _0x401992;}if(Qt(_0x401992,_0x1b60cb))return _0x401992;this['_breakSuggestionMarker'](_0x401992,_0x60251c['start'],_0x60251c['end']);break;}if(_0x104b94==_0x401992['subType']&&Qt(_0x401992,_0x1b60cb)){const _0x5e5fce=_0x401992['getFirstRange']();return _0x5e5fce['start']['isEqual'](_0x60251c['end'])?this['_setSuggestionRange'](_0x401992,this['_model']['createRange'](_0x60251c['start'],_0x5e5fce['end'])):this['_setSuggestionRange'](_0x401992,this['_model']['createRange'](_0x5e5fce['start'],_0x60251c['end'])),_0x401992;}}const _0x306331=_0x22223a(),_0x16b9f1=_0x522880['id'],_0x33b252=_0x104b94?'insertion:'+_0x104b94:'insertion',_0x4eb071=this['_setSuggestionData']({'id':_0x306331,'type':_0x33b252,'createdAt':new Date(),'authorId':_0x16b9f1,'attributes':_0x1b60cb});return this['_addSuggestionMarker'](_0x33b252,_0x306331,_0x16b9f1,_0x60251c),_0x4eb071;}['markMultiRangeInsertion'](_0x333d6c,_0x3a8717='multi',_0x382000={}){const _0x559223=this['editor']['plugins']['get']('Users')['me'],_0x5bd0ca=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3a8717,'join');this['_trackingSessionId']&&(_0x382000['trackingSessionId']=this['_trackingSessionId']);for(const _0x567c33 of this['getSuggestions']())if(_0x567c33['author']['id']==_0x559223['id']&&'insertion'==_0x567c33['type']&&_0x567c33['subType']==_0x3a8717&&Qt(_0x567c33,_0x382000)&&(_0x5bd0ca(_0x567c33['getRanges'](),_0x333d6c)||_0x5bd0ca(_0x333d6c,_0x567c33['getRanges']()))){for(const _0xfb9f31 of _0x333d6c)_0x567c33['addRange'](_0xfb9f31);return _0x567c33;}for(const {suggestion:_0x441392,meta:_0x4938c0}of this['_findSuggestions'](_0x333d6c,'insertion')){if(!_0x4938c0['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4938c0['containsRangeInObject'])continue;if(!Qt(_0x441392,_0x382000))continue;let _0xe082c3=!0x0;for(const _0x5165d8 of _0x441392['getRanges']())for(const _0x5b71b9 of _0x333d6c)if(!_0x5165d8['containsRange'](_0x5b71b9)){_0xe082c3=!0x1;break;}if(_0xe082c3)return _0x441392;}const _0x53c88b=_0x22223a(),_0x1a23f4=_0x559223['id'],_0x51bc05='insertion:'+_0x3a8717,_0x4b13fa=this['_setSuggestionData']({'id':_0x53c88b,'type':_0x51bc05,'createdAt':new Date(),'authorId':_0x1a23f4,'attributes':_0x382000});for(const _0x13934a of _0x333d6c)this['_addSuggestionMarker'](_0x51bc05,_0x53c88b,_0x1a23f4,_0x13934a,T['getMultiRangeId']());return _0x4b13fa;}['markInlineFormat'](_0x512e65,_0xf192d1,_0x19f5de=null,_0x58ba16={}){if(_0x19f5de=_0x19f5de||Lt(_0xf192d1),_0x512e65['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x58ba16['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5965b9=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x19f5de,'accept');return this['forceDefaultExecution'](()=>_0x5965b9([_0x512e65],_0xf192d1,_0x58ba16)),null;}const _0x4f3b88=this['editor']['plugins']['get']('Users')['me'],_0x41800a=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2239b4,meta:_0x3321e3}of this['_findSuggestions'](_0x512e65,'insertion'))_0x3321e3['isOwn']&&!_0x3321e3['isInsideObject']&&_0x41800a['push'](..._0x2239b4['getRanges']());}const _0x13c6ca=function(_0x3d3626,_0x165af6){const _0x1dc12e=[];for(const _0x483109 of _0x165af6){const _0x4dc43d=_0x3d3626['getIntersection'](_0x483109);_0x4dc43d&&_0x1dc12e['push'](_0x4dc43d);}return _0x1dc12e;}(_0x512e65,_0x41800a),_0x4d9ffe=function(_0x25b0d3,_0x3b9988){const _0x191c37=[_0x25b0d3];for(const _0xa6ee1c of _0x3b9988){let _0xe9a36e=0x0;for(;_0xe9a36e<_0x191c37['length'];){const _0x5d4367=_0x191c37[_0xe9a36e]['getDifference'](_0xa6ee1c);_0x191c37['splice'](_0xe9a36e,0x1,..._0x5d4367),_0xe9a36e+=_0x5d4367['length'];}}return _0x191c37;}(_0x512e65,_0x41800a);_0x13c6ca['length']&&this['_model']['change'](()=>{for(const _0x1d1718 of _0x13c6ca){const _0x265981=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x19f5de,'accept');this['forceDefaultExecution'](()=>_0x265981([_0x1d1718],_0xf192d1,_0x58ba16));}});for(const _0x2ecae8 of _0x4d9ffe){let _0x3b5c94=null,_0x39d501=_0x2ecae8['start'],_0x367ec5=_0x2ecae8['end'];for(const {suggestion:_0x5d9802,meta:_0x228329}of this['_findSuggestions'](_0x2ecae8,'formatInline')){if(!_0x228329['isOwn'])continue;if(_0x5d9802['subType']!=_0x19f5de)continue;if(!Qt(_0x5d9802,_0x58ba16))continue;const _0x20d0b9=_0x5d9802['getFirstRange']();if(_0x20d0b9['containsRange'](_0x2ecae8,!0x0))return null;_0x39d501=_0x39d501['isBefore'](_0x20d0b9['start'])?_0x39d501:_0x20d0b9['start'],_0x367ec5=_0x367ec5['isAfter'](_0x20d0b9['end'])?_0x367ec5:_0x20d0b9['end'],_0x3b5c94?_0x20d0b9['start']['isBefore'](_0x3b5c94['getFirstRange']()['start'])?(_0x3b5c94['removeMarkers'](),_0x3b5c94=_0x5d9802):_0x5d9802['removeMarkers']():_0x3b5c94=_0x5d9802;}const _0x2ebe63=this['_model']['createRange'](_0x39d501,_0x367ec5);if(_0x3b5c94)this['_setSuggestionRange'](_0x3b5c94,_0x2ebe63);else{const _0x240db1=_0x22223a(),_0x232557=_0x4f3b88['id'];this['_setSuggestionData']({'id':_0x240db1,'type':'formatInline:'+_0x19f5de,'data':_0xf192d1,'createdAt':new Date(),'authorId':_0x232557,'attributes':_0x58ba16}),this['_addSuggestionMarker']('formatInline:'+_0x19f5de,_0x240db1,_0x232557,_0x2ebe63);}}return null;}['markBlockFormat'](_0x57127b,_0x165c2d,_0x10c78d=[],_0x12edaf=null,_0x1aeb51={}){_0x165c2d['formatGroupId']||(_0x165c2d['formatGroupId']=_0x165c2d['commandName']),_0x165c2d['multipleBlocks']=_0x57127b['is']('range'),_0x12edaf=_0x12edaf||Lt(_0x165c2d);const _0x52a60d=_0x10c78d['map'](_0x5a0db0=>qt(_0x5a0db0,this['_model'])),_0x5f27d3=_0x57127b['is']('range')?_0x57127b:qt(_0x57127b,this['_model']);if(this['_trackingSessionId']&&(_0x1aeb51['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x492e1b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x12edaf,'accept');return this['forceDefaultExecution'](()=>_0x492e1b([_0x5f27d3],_0x165c2d,_0x1aeb51)),null;}_0x52a60d['push'](_0x5f27d3);let _0x449218=!0x0;for(const _0x475e99 of _0x52a60d)if(!this['_rangeIsInLocalUserInsertion'](_0x475e99)){_0x449218=!0x1;break;}if(_0x449218&&'always'!==this['_trackFormatChanges']){const _0x4eab47=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x12edaf,'accept');return this['forceDefaultExecution'](()=>_0x4eab47([_0x5f27d3],_0x165c2d,_0x1aeb51)),null;}let _0x1e5470=null,_0x5e7509=_0x5f27d3['start'],_0x6b28a3=_0x5f27d3['end'];for(const {suggestion:_0x501498,meta:_0x44b539}of this['_findSuggestions'](_0x5f27d3,'formatBlock')){if(!_0x44b539['isOwn'])continue;if(_0x44b539['isNextTo']||_0x44b539['containsRangeInObject']||_0x44b539['isInsideObject'])continue;if(_0x501498['data']['formatGroupId']!=_0x165c2d['formatGroupId'])continue;if(!Qt(_0x501498,_0x1aeb51))continue;const _0x49df76=_0x501498['getFirstRange']();if(_0x501498['subType']==_0x12edaf){if(_0x49df76['containsRange'](_0x5f27d3,!0x0))return null;_0x5e7509=_0x5e7509['isBefore'](_0x49df76['start'])?_0x5e7509:_0x49df76['start'],_0x6b28a3=_0x6b28a3['isAfter'](_0x49df76['end'])?_0x6b28a3:_0x49df76['end'],_0x1e5470?_0x49df76['start']['isBefore'](_0x1e5470['getFirstRange']()['start'])?(_0x1e5470['removeMarkers'](),_0x1e5470=_0x501498):_0x501498['removeMarkers']():_0x1e5470=_0x501498;}else{const _0x310939=_0x5f27d3['getIntersection'](_0x49df76);this['_cutOutSuggestionMarker'](_0x501498,_0x310939);}}const _0x2b841e=this['editor']['plugins']['get']('Users')['me'],_0x4a6902=_0x22223a(),_0x4fc3b3=_0x2b841e['id'];if(_0x1e5470)return this['_setSuggestionRange'](_0x1e5470,this['_model']['createRange'](_0x5e7509,_0x6b28a3)),_0x1e5470;{const _0x3f5111=this['_setSuggestionData']({'id':_0x4a6902,'type':'formatBlock:'+_0x12edaf,'data':_0x165c2d,'createdAt':new Date(),'authorId':_0x4fc3b3,'attributes':_0x1aeb51});return this['_addSuggestionMarker']('formatBlock:'+_0x12edaf,_0x4a6902,_0x4fc3b3,this['_model']['createRange'](_0x5e7509,_0x6b28a3)),_0x3f5111;}}['markMultiRangeBlockFormat'](_0x19c25b,_0x2c4a18,_0x3a618b=[],_0x4f69e6=null,_0x38be7f={}){_0x2c4a18['formatGroupId']||(_0x2c4a18['formatGroupId']=_0x2c4a18['commandName']);const _0x465c22=_0x19c25b[0x0];_0x2c4a18['multipleBlocks']=_0x465c22['is']('range'),_0x4f69e6=_0x4f69e6||Lt(_0x2c4a18);const _0x1c8aaa=_0x3a618b['map'](_0x54b152=>qt(_0x54b152,this['_model'])),_0x39fd73=_0x465c22['is']('range')?_0x19c25b:_0x19c25b['map'](_0x384a0a=>qt(_0x384a0a,this['_model']));if(this['_trackingSessionId']&&(_0x38be7f['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5bef1d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4f69e6,'accept');return this['forceDefaultExecution'](()=>_0x5bef1d(_0x39fd73,_0x2c4a18,_0x38be7f)),null;}_0x1c8aaa['push'](..._0x39fd73);let _0x272b93=!0x0;for(const _0xddae36 of _0x1c8aaa)if(!this['_rangeIsInLocalUserInsertion'](_0xddae36)){_0x272b93=!0x1;break;}if(_0x272b93&&'always'!==this['_trackFormatChanges']){const _0x940355=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4f69e6,'accept');return this['forceDefaultExecution'](()=>_0x940355(_0x39fd73,_0x2c4a18,_0x38be7f)),null;}const _0x32509a=this['editor']['plugins']['get']('Users')['me'];for(const _0x28427e of this['getSuggestions']()){const _0x609b0d=_0x28427e['data'];if(_0x28427e['author']['id']!=_0x32509a['id'])continue;if('formatBlock'!=_0x28427e['type']||_0x609b0d['formatGroupId']!=_0x2c4a18['formatGroupId'])continue;if(!Qt(_0x28427e,_0x38be7f))continue;const _0x25361d=_0x28427e['subType']==_0x4f69e6;for(let _0x2c3c91=0x0;_0x2c3c91<_0x39fd73['length'];_0x2c3c91++){const _0x1ce26b=_0x39fd73[_0x2c3c91];for(const _0x51462c of _0x28427e['getMarkers']()){const _0x4a5d51=_0x51462c['getRange']();if(_0x1ce26b['isEqual'](_0x4a5d51)){_0x25361d?(_0x39fd73['splice'](_0x2c3c91,0x1),_0x2c3c91--):_0x28427e['removeMarker'](_0x51462c['name']);break;}}}}if(0x0==_0x39fd73['length'])return null;const _0x4b8a2d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4f69e6,'join');for(const _0x353f29 of this['getSuggestions']()){const _0x2b2ef1=_0x353f29['data'];if(_0x353f29['author']['id']==_0x32509a['id']&&('formatBlock'==_0x353f29['type']&&_0x2b2ef1['formatGroupId']==_0x2c4a18['formatGroupId']&&_0x353f29['subType']==_0x4f69e6&&Qt(_0x353f29,_0x38be7f)&&(_0x4b8a2d(_0x353f29['getRanges'](),_0x39fd73)||_0x4b8a2d(_0x39fd73,_0x353f29['getRanges']())))){for(const _0x54b131 of _0x39fd73)_0x353f29['addRange'](_0x54b131);return _0x353f29;}}const _0x3f9988=_0x22223a(),_0x45abb1=_0x32509a['id'],_0x489214='formatBlock:'+_0x4f69e6,_0x1fe8c8=this['_setSuggestionData']({'id':_0x3f9988,'type':_0x489214,'data':_0x2c4a18,'createdAt':new Date(),'authorId':_0x45abb1,'attributes':_0x38be7f});for(const _0x26c26c of _0x39fd73)this['_addSuggestionMarker'](_0x489214,_0x3f9988,_0x45abb1,_0x26c26c,T['getMultiRangeId']());return _0x1fe8c8;}['markDeletion'](_0x5d1184,_0x3f1c0d=null,_0x461032={}){if(_0x5d1184['isCollapsed'])return null;const _0x146359=this['editor']['plugins']['get']('Users')['me'],_0x4e6203=new _0x158d49(_0x5d1184['start'],_0x5d1184['end']);this['_trackingSessionId']&&(_0x461032['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2ecc3f,meta:_0x16ccf0}of this['_findSuggestions'](_0x4e6203,'insertion'))if(_0x16ccf0['isOwn']&&!_0x16ccf0['isNextTo']){if(_0x2ecc3f['isMultiRange']){const _0x27e08b=_0x2ecc3f['getRanges']()['filter'](_0xd27b5=>'$graveyard'!=_0xd27b5['root']['rootName']);_0x27e08b['every'](_0x48dc34=>_0x4e6203['containsRange'](_0x48dc34,!0x0))&&_0x2ecc3f['discard']();if(_0x27e08b['some'](_0x220756=>_0x220756['containsRange'](_0x4e6203,!0x0))){const _0x302d15=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3f1c0d,'accept');return this['forceDefaultExecution'](()=>_0x302d15([_0x4e6203],null,_0x461032)),null;}}else{const _0x25c9e8=_0x4e6203['getIntersection'](_0x2ecc3f['getFirstRange']());null!==_0x25c9e8&&_0x2ecc3f['_onDiscard']([_0x25c9e8],null,_0x461032);}}if(_0x4e6203['detach'](),_0x4e6203['isCollapsed']||'$graveyard'==_0x4e6203['root']['rootName'])return null;let _0xc70d7e=null,_0x503a16=_0x4e6203['start'],_0x92d540=_0x4e6203['end'];const _0x452391=this['_findSuggestions'](_0x4e6203,'deletion');for(const {suggestion:_0x44eddc,meta:_0x5c1862}of _0x452391){const _0x412234=this['_model']['createRange'](_0x503a16,_0x92d540);if(_0x5c1862['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5c1862['containsRangeInObject']&&!_0x5c1862['isInsideObject'])){if(_0x44eddc['isMultiRange']){if(!Qt(_0x44eddc,_0x461032))continue;let _0x3b3d91=!0x0;for(const _0x109654 of _0x44eddc['getRanges']()){if(_0x109654['containsRange'](_0x412234,!0x0))return _0x44eddc;_0x412234['containsRange'](_0x109654)||(_0x3b3d91=!0x1);}_0x3b3d91&&_0x44eddc['discard']();}else{const _0x38c105=_0x44eddc['getFirstRange']();if(_0x38c105['containsRange'](_0x412234,!0x0))return _0x44eddc;if(!Qt(_0x44eddc,_0x461032)){_0x412234['containsRange'](_0x38c105)?_0x44eddc['removeMarkers']():_0x38c105['containsPosition'](_0x503a16)?_0x503a16=_0x38c105['end']:_0x38c105['containsPosition'](_0x92d540)&&(_0x92d540=_0x38c105['start']);continue;}_0x503a16=_0x503a16['isBefore'](_0x38c105['start'])?_0x503a16:_0x38c105['start'],_0x92d540=_0x92d540['isAfter'](_0x38c105['end'])?_0x92d540:_0x38c105['end'],_0x461032=Object['assign']({},_0x44eddc['attributes']),_0xc70d7e?_0x38c105['start']['isBefore'](_0xc70d7e['getFirstRange']()['start'])?(_0xc70d7e['removeMarkers'](),_0xc70d7e=_0x44eddc):_0x44eddc['removeMarkers']():_0xc70d7e=_0x44eddc;}}}if(_0xc70d7e)return this['_setSuggestionRange'](_0xc70d7e,this['_model']['createRange'](_0x503a16,_0x92d540)),_0xc70d7e;{const _0x441491=_0x22223a(),_0x17feb8=this['_model']['createRange'](_0x503a16,_0x92d540),_0x1dc1ba=_0x146359['id'],_0x3894d7=_0x3f1c0d?'deletion:'+_0x3f1c0d:'deletion',_0x8c2e12=this['_setSuggestionData']({'id':_0x441491,'type':_0x3894d7,'createdAt':new Date(),'authorId':_0x1dc1ba,'attributes':_0x461032});return this['_addSuggestionMarker'](_0x3894d7,_0x441491,_0x1dc1ba,_0x17feb8),_0x8c2e12;}}['markMultiRangeDeletion'](_0x2a85a7,_0x48d45b='multi',_0x388c82={}){const _0x2cd83c=this['editor']['plugins']['get']('Users')['me'],_0x2813b3=_0x2a85a7['map'](_0x5b837f=>new _0x158d49(_0x5b837f['start'],_0x5b837f['end'])),_0x42f999=new Set();this['_trackingSessionId']&&(_0x388c82['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3a816b,meta:_0x167704}of this['_findSuggestions'](_0x2813b3,'insertion'))_0x167704['isOwn']&&!_0x167704['isNextTo']&&_0x42f999['add'](_0x3a816b);for(const _0x5dd36e of _0x42f999)if(_0x5dd36e['isMultiRange']){const _0x30a7cf=_0x5dd36e['getRanges']();(!_0x5dd36e['attributes']||!_0x5dd36e['attributes']['skipNestingCheck'])&&(_0x30a7cf['every'](_0x3c0c88=>_0x2813b3['some'](_0x19490f=>_0x19490f['containsRange'](_0x3c0c88,!0x0)))&&_0x5dd36e['discard']());if(_0x2813b3['every'](_0x2fffe0=>_0x30a7cf['some'](_0x2fed93=>_0x2fed93['containsRange'](_0x2fffe0,!0x0)))){const _0x477e6f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x48d45b,'accept');return this['forceDefaultExecution'](()=>_0x477e6f(_0x2a85a7,null,_0x388c82)),null;}}else{const _0x33e5d6=_0x5dd36e['getFirstRange']();_0x2813b3['some'](_0x4cb4db=>_0x4cb4db['containsRange'](_0x33e5d6,!0x0))&&_0x5dd36e['discard']();if(_0x2813b3['every'](_0x168d2f=>_0x33e5d6['containsRange'](_0x168d2f,!0x0))){const _0x570527=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x48d45b,'accept');return this['forceDefaultExecution'](()=>_0x570527(_0x2813b3,null,_0x388c82)),null;}}const _0x43ad55=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x48d45b,'join');let _0x34be98=null;for(const _0x5be2b4 of this['getSuggestions']())if(_0x5be2b4['author']['id']==_0x2cd83c['id']&&_0x5be2b4['isInContent']&&'deletion'==_0x5be2b4['type']&&_0x5be2b4['subType']==_0x48d45b&&Qt(_0x5be2b4,_0x388c82)&&(_0x43ad55(_0x5be2b4['getRanges'](),_0x2813b3)||_0x43ad55(_0x2813b3,_0x5be2b4['getRanges']()))){if(_0x34be98){if(_0x5be2b4['commentThread']&&_0x5be2b4['commentThread']['length'])continue;for(const _0x15413f of _0x5be2b4['getRanges']())_0x34be98['isIntersectingWithRange'](_0x15413f)||_0x34be98['addRange'](_0x15413f);_0x5be2b4['removeMarkers']();}else{_0x34be98=_0x5be2b4;for(const _0x2e0f28 of _0x2813b3)_0x5be2b4['isIntersectingWithRange'](_0x2e0f28)||_0x5be2b4['addRange'](_0x2e0f28);}}if(_0x34be98)return _0x34be98;_0x42f999['clear']();for(const {suggestion:_0x2d0065,meta:_0x3684a6}of this['_findSuggestions'](_0x2813b3,'deletion'))_0x3684a6['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3684a6['containsRangeInObject']&&!_0x3684a6['isInsideObject'])&&Qt(_0x2d0065,_0x388c82)&&_0x42f999['add'](_0x2d0065);for(const _0xda51bc of _0x42f999){const _0x54433e=_0xda51bc['getRanges']();if(!_0x388c82||!_0x388c82['skipNestingCheck']){if(_0x2813b3['every'](_0xc32b41=>_0x54433e['some'](_0x1c9954=>_0x1c9954['containsRange'](_0xc32b41,!0x0))))return _0xda51bc;}(!_0xda51bc['attributes']||!_0xda51bc['attributes']['skipNestingCheck'])&&(_0x54433e['every'](_0x50bda8=>_0x2813b3['some'](_0x529db0=>_0x529db0['containsRange'](_0x50bda8,!0x0)))&&_0xda51bc['discard']());}const _0x33375b=_0x22223a(),_0x212af1=_0x2cd83c['id'],_0x46cbf0='deletion:'+_0x48d45b,_0x598b60=this['_setSuggestionData']({'id':_0x33375b,'type':_0x46cbf0,'createdAt':new Date(),'authorId':_0x212af1,'attributes':_0x388c82});for(const _0xc10fcc of _0x2813b3)_0xc10fcc['detach'](),_0xc10fcc['isCollapsed']||'$graveyard'==_0xc10fcc['root']['rootName']||this['_addSuggestionMarker'](_0x46cbf0,_0x33375b,_0x212af1,_0xc10fcc,T['getMultiRangeId']());return _0x598b60;}['markAttributeChange'](_0x19fd08,_0x1a650c,_0x2be3b3,_0x4ff378,_0x24dc35){if(_0x19fd08['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xde8c5c=this['editor']['plugins']['get']('Users')['me']['id'],_0x53279a=Array['from'](this['_suggestions']['values']())['filter'](_0x365b05=>'attribute'==_0x365b05['type']&&_0x365b05['data']['key']==_0x1a650c&&_0x365b05['isIntersectingWithRange'](_0x19fd08));if(this['_trackingSessionId']&&(_0x24dc35['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x1ad8ec=this['_findSuggestions'](_0x19fd08,'insertion')['filter'](({meta:_0x15b006})=>_0x15b006['isOwn']&&!_0x15b006['isInsideObject']&&!_0x15b006['isNextTo'])['map'](({suggestion:_0x3732cf})=>_0x3732cf);_0x53279a['unshift'](..._0x1ad8ec);}const _0x12b229=new Map([[_0x19fd08,_0x2be3b3]]);for(const _0x469152 of _0x53279a){const _0x7e9cb6='attribute'==_0x469152['type']?_0x469152['data']['oldValue']:void 0x0,_0x4d0997=_0x469152['getFirstRange'](),_0x55e126=Array['from'](_0x12b229['keys']())['find'](_0x1a3b84=>_0x1a3b84['isIntersecting'](_0x4d0997));if(!_0x55e126)continue;const _0x228dd4=_0x55e126['getDifference'](_0x4d0997);this['_isBlockAttribute'](_0x1a650c)&&'insertion'==_0x469152['type']&&0x0!=_0x228dd4['length']||(_0x12b229['delete'](_0x55e126),_0x228dd4['forEach'](_0x85f3f4=>{_0x12b229['set'](_0x85f3f4,_0x2be3b3);}),'insertion'!=_0x469152['type']&&_0x7e9cb6!=_0x4ff378&&_0x12b229['set'](_0x55e126['getIntersection'](_0x4d0997),_0x7e9cb6));}const _0x4f8ffb=[];for(const [_0x5b2997,_0x1ea200]of _0x12b229){const _0x59d139=_0x22223a(),_0x24e0d2={'key':_0x1a650c,'oldValue':_0x1ea200,'newValue':_0x4ff378};_0x1a650c['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':_0x1a650c});const _0x5bf73e=('attribute:'+(_0x1a650c+'|'+Lt({'newValue':_0x4ff378})))['substring'](0x0,0x3c),_0x2e4014=this['_setSuggestionData']({'id':_0x59d139,'type':_0x5bf73e,'data':_0x24e0d2,'createdAt':new Date(),'authorId':_0xde8c5c,'attributes':_0x24dc35});_0x4f8ffb['push'](_0x2e4014),this['_addSuggestionMarker'](_0x5bf73e,_0x59d139,_0xde8c5c,_0x5b2997);}return _0x4f8ffb;}['enableDefaultAttributesIntegration'](_0x1bb1ba){this['enableCommand'](_0x1bb1ba,(_0x3ee12e,..._0x3bbda2)=>{this['recordAttributeChanges'](()=>{_0x3ee12e(..._0x3bbda2);});});}['registerBlockAttribute'](_0x27181e){this['_blockAttributeKeys']['add'](_0x27181e);}['registerInlineAttribute'](_0x48943d){this['_inlineAttributeKeys']['add'](_0x48943d);}['startTrackingSession'](_0x4db8fe){return this['_trackingSessionId']=void 0x0!==_0x4db8fe?_0x4db8fe:_0x22223a(),this['_trackingSessionId'];}['_getAttributeKey'](_0x480646){return'attribute'==_0x480646['type']?_0x480646['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x552be2,_0x3bb23f){const _0x2529b3=_0x552be2['getFirstMarker']();this['_model']['change'](_0x174a93=>{_0x174a93['updateMarker'](_0x2529b3,{'range':_0x3bb23f});});}['_addThreadToSuggestion'](_0x49df7a){const _0xc66bfb=_0x49df7a['id'],_0x2c8e9f=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0xc66bfb)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2c8e9f,'threadId':_0xc66bfb,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x15b506=this['_commentsRepository']['getCommentThread'](_0xc66bfb);_0x15b506['unbind']('isRemovable'),_0x15b506['isRemovable']=!0x1,_0x49df7a['commentThread']=_0x15b506;}['_checkSuggestionCorrectness'](_0x15c441,_0x5d9407,_0x40636e,_0x43e34c){if(_0x15c441['type']!=_0x5d9407||_0x15c441['subType']!=_0x40636e||_0x15c441['creator']['id']!=_0x43e34c)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x19b862('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1766e9,_0x215a85){const _0x2239c6=_0x1766e9['getFirstRange']();if(_0x215a85['isEqual'](_0x2239c6))_0x1766e9['removeMarkers']();else{if(_0x2239c6['containsRange'](_0x215a85)){const _0x5a6061=this['_model']['createPositionAt'](_0x215a85['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1766e9,this['_model']['createRange'](_0x2239c6['start'],_0x5a6061));const _0x96819e=_0x22223a(),_0x2fbf00=_0x1766e9['creator']['id'],_0x52c49e=_0x1766e9['type']+':'+_0x1766e9['subType'];this['_setSuggestionData']({'id':_0x96819e,'type':_0x52c49e,'createdAt':new Date(),'authorId':_0x2fbf00,'data':_0x1766e9['data'],'attributes':_0x1766e9['attributes']});const _0x48be62=this['_model']['createPositionAt'](_0x215a85['end']['parent'],'after'),_0x46d1d2=this['_model']['createRange'](_0x48be62,_0x2239c6['end']);this['_addSuggestionMarker'](_0x52c49e,_0x96819e,_0x2fbf00,_0x46d1d2);}else{if(_0x2239c6['containsPosition'](_0x215a85['start'])){const _0x286136=this['_model']['createPositionAt'](_0x215a85['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1766e9,this['_model']['createRange'](_0x2239c6['start'],_0x286136));}else{const _0xc45702=this['_model']['createPositionAt'](_0x215a85['end']['parent'],'after');this['_setSuggestionRange'](_0x1766e9,this['_model']['createRange'](_0xc45702,_0x2239c6['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x11a0bd){for(const {suggestion:_0x294585,meta:_0x1c199e}of this['_findSuggestions'](_0x11a0bd,'insertion')){if(!_0x1c199e['isOwn'])continue;const _0x514fdd=_0x294585['getRanges']();for(const _0x586923 of _0x514fdd)if(!_0x11a0bd['getDifference'](_0x586923)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x53bfac){const _0x4fba67=this['editor']['plugins']['get']('Users')['getUser'](_0x53bfac);if(!_0x4fba67)throw new _0x19b862('track-changes-user-not-found',this);return _0x4fba67;}['_getExternalAuthor'](_0x323bcc){const _0x50df3b=this['editor']['plugins']['get']('Users'),_0x28a675=_0x51d884('external:'+_0x323bcc),_0x1cfe91=_0x50df3b['getUser'](_0x28a675);return _0x1cfe91||_0x50df3b['addUser']({'id':_0x28a675,'name':_0x323bcc});}['_createSuggestion'](_0x33fcf8,_0x12b5a1,_0x2565c1,_0x4c9ffa,_0x44d12a,_0x4bfba4){const _0x12ee0b=this['_getAuthorFromId'](_0x4c9ffa),_0x4b822a=this['_suggestionFactory']['buildSuggestion'](_0x33fcf8,_0x12b5a1,_0x2565c1,_0x12ee0b,_0x44d12a,_0x52c0b2=>{this['_updateSuggestionData'](_0x2565c1,{'attributes':_0x52c0b2});const _0x1e255f=this['getSuggestion'](_0x2565c1);this['_joinWithAdjacentSuggestions'](new Set([_0x1e255f])),this['_refreshSuggestionsChain'](new Set([_0x1e255f]));},_0x4bfba4);return this['listenTo'](_0x4b822a,'accept',()=>{this['_updateSuggestionData'](_0x2565c1,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4b822a,'discard',()=>{this['_updateSuggestionData'](_0x2565c1,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2565c1,_0x4b822a),this['_suggestionState']['set'](_0x4b822a,'notReady'),_0x4b822a;}['_splitMarkerName'](_0x3a2820){const _0x109dda=_0x3a2820['split'](':');return{'group':_0x109dda[0x0],'type':_0x109dda[0x1],'subType':_0x109dda['length']>=0x5?_0x109dda[0x2]:null,'id':_0x109dda['length']<0x5?_0x109dda[0x2]:_0x109dda[0x3],'authorId':_0x109dda['length']<0x5?_0x109dda[0x3]:_0x109dda[0x4],'markerCount':0x6==_0x109dda['length']?_0x109dda[0x5]:null};}['_breakSuggestionMarker'](_0x527620,_0x2ece5e,_0x9b090){const _0x2c3849=_0x527620['getFirstRange'](),_0x5209ad=_0x2c3849['start'],_0x1a21de=_0x2c3849['end'];this['_setSuggestionRange'](_0x527620,this['_model']['createRange'](_0x5209ad,_0x2ece5e));const _0x2aa624=_0x22223a(),_0x589f30=_0x527620['creator']['id'],_0x1316f7=_0x527620['type']+(_0x527620['subType']?':'+_0x527620['subType']:'');this['_setSuggestionData']({'id':_0x2aa624,'type':_0x1316f7,'createdAt':new Date(),'authorId':_0x589f30,'originalSuggestionId':_0x527620['_originalSuggestionId']||_0x527620['id'],'attributes':_0x527620['attributes'],'data':_0x527620['data']});const _0x47051e=this['_getAttributeKey'](_0x527620);('formatBlock'==_0x527620['type']||_0x47051e&&this['_isBlockAttribute'](_0x47051e))&&(_0x9b090=this['_model']['createPositionBefore'](_0x9b090['parent'])),this['_addSuggestionMarker'](_0x1316f7,_0x2aa624,_0x589f30,this['_model']['createRange'](_0x9b090,_0x1a21de));}['_findSuggestions'](_0x405575,_0x25a5bd=null){const _0x35a875=[],_0x426111=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x405575)||(_0x405575=[_0x405575]);for(const _0x139619 of this['getSuggestions']()){if(!_0x139619['isInContent'])continue;if(_0x25a5bd&&_0x139619['type']!=_0x25a5bd)continue;let _0x4a4388=!0x1;for(const _0x3f3289 of _0x139619['getRanges']()){for(const _0x3ed87c of _0x405575){const _0x3d293d=_0x3ed87c['start']['isEqual'](_0x3f3289['end'])||_0x3ed87c['end']['isEqual'](_0x3f3289['start']);if(_0x3d293d||_0x3ed87c['getIntersection'](_0x3f3289)){const _0x1b2db8=_0x3ed87c['containsRange'](_0x3f3289)&&Ft(this['_model']['schema'],_0x3f3289['start'],_0x3ed87c),_0x65cca=_0x3f3289['containsRange'](_0x3ed87c)&&Ft(this['_model']['schema'],_0x3ed87c['start'],_0x3f3289);_0x35a875['push']({'suggestion':_0x139619,'meta':{'isOwn':_0x426111==_0x139619['author'],'isNextTo':_0x3d293d,'isInsideObject':_0x1b2db8,'containsRangeInObject':_0x65cca}}),_0x4a4388=!0x0;break;}}if(_0x4a4388)break;}}return _0x35a875;}['_addSuggestionMarker'](_0x27c56d,_0x2aab2d,_0xe4f818,_0x46d97d,_0x38d1d2){this['_model']['change'](_0x2e0f0d=>{let _0x5c139a='suggestion:'+_0x27c56d+':'+_0x2aab2d+':'+_0xe4f818;_0x38d1d2&&(_0x5c139a=_0x5c139a+':'+_0x38d1d2),_0x2e0f0d['addMarker'](_0x5c139a,{'range':_0x46d97d,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x5be381){const _0x5504f1=_0x5be381['previous'],_0x2df175=_0x5be381['next'];_0x5be381['previous']=null,_0x5be381['next']=null,null!=_0x5504f1&&_0x5504f1['next']==_0x5be381&&(_0x5504f1['next']=_0x2df175),null!=_0x2df175&&_0x2df175['previous']==_0x5be381&&(_0x2df175['previous']=_0x5504f1),'ready'==this['_suggestionState']['get'](_0x5be381)&&(this['_suggestionState']['set'](_0x5be381,'removed'),this['fire']('suggestionUnloaded',_0x5be381,_0x5504f1,_0x2df175));}['_setSuggestionData'](_0x180006){const _0x4a847c=_0x180006['id'],_0x100352=this['addSuggestionData'](_0x180006);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2139ac=this['editor']['plugins']['get']('PendingActions'),_0x484b1e=_0x100352['hasComments'],_0x4139fd=_0x100352['subType']?_0x100352['type']+':'+_0x100352['subType']:_0x100352['type'],_0x23a253=this['editor']['locale'],_0xcbb2ee=_0x2139ac['add'](o(_0x23a253,'PENDING_ACTION_SUGGESTION')),_0x5731ca={'id':_0x4a847c,'type':_0x4139fd,'hasComments':_0x484b1e,'data':_0x180006['data']||null,'originalSuggestionId':_0x180006['originalSuggestionId']||null,'attributes':_0x100352['attributes']};this['_adapter']['addSuggestion'](_0x5731ca)['then'](_0x53b422=>{_0x100352['_saved']=!0x0,_0x2139ac['remove'](_0xcbb2ee),_0x53b422&&_0x53b422['createdAt']&&(this['_suggestions']['get'](_0x4a847c)['createdAt']=_0x53b422['createdAt']);})['catch'](_0x3d2010=>{throw _0x5ac787('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x100352['discard']();}),_0x100352['stopListening'](),this['_suggestions']['delete'](_0x100352['id']),this['_suggestionState']['delete'](_0x100352),_0x3d2010;});}return _0x100352;}['_isBlockAttribute'](_0x140793){return this['_blockAttributeKeys']['has'](_0x140793);}['_updateSuggestionData'](_0x37541f,_0x46f673){const _0x31bc1f=this['editor']['plugins']['get']('PendingActions'),_0x479fbe=this['getSuggestion'](_0x37541f);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x479fbe['_saved']){const _0x48d560=_0x31bc1f['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x37541f,_0x46f673)['then'](()=>{_0x31bc1f['remove'](_0x48d560);});}else _0x479fbe['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x37541f,_0x46f673);});}}['_getSuggestionData'](_0x241213){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x19b862('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x241213);}['_handleNewSuggestionMarker'](_0x2e8faa){const {id:_0x3fefbd,type:_0x437388,subType:_0xdbc7b8,authorId:_0xfcbf7b}=this['_splitMarkerName'](_0x2e8faa),_0x4a3d1f=this['_suggestions']['get'](_0x3fefbd)||this['_createSuggestion'](_0x437388,_0xdbc7b8,_0x3fefbd,_0xfcbf7b,{});switch(this['_checkSuggestionCorrectness'](_0x4a3d1f,_0x437388,_0xdbc7b8,_0xfcbf7b),this['_suggestionState']['get'](_0x4a3d1f)){case'notReady':this['_getSuggestionData'](_0x3fefbd)['then'](_0x3d98db=>{let _0x585f06=Promise['resolve']();_0x3d98db['hasComments']&&(_0x585f06=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3fefbd})),_0x585f06['then'](()=>{this['addSuggestionData'](_0x3d98db)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4a3d1f,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3fefbd,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4a3d1f,'ready'),this['fire']('suggestionLoaded',_0x4a3d1f);break;case'ready':this['fire']('suggestionChanged',_0x4a3d1f);}return _0x4a3d1f['addMarkerName'](_0x2e8faa),_0x4a3d1f;}['_refreshSuggestionsChain'](_0x27bc59){const _0x3f4f68=Array['from'](_0x27bc59),_0x305e72=_0x3f4f68['filter'](_0x3e7ed1=>'attribute'==_0x3e7ed1['type']);this['_refreshAttributeSuggestionsChain'](_0x305e72);const _0x3c01b8=_0x3f4f68['filter'](_0x5f5027=>!_0x5f5027['isMultiRange']&&'attribute'!=_0x5f5027['type']),_0x148c5a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3494bb=>!_0x3494bb['isMultiRange']&&'attribute'!=_0x3494bb['type']),_0x5cbc41=_0x148c5a['filter'](_0x22a884=>!_0x27bc59['has'](_0x22a884)),_0x396b8a=new Map(_0x148c5a['map'](_0xa513ca=>[_0xa513ca,this['_suggestionFactory']['getSuggestionCallback'](_0xa513ca['type'],_0xa513ca['subType'],'chain')])),_0x34a0bc=new Map(_0x148c5a['map'](_0x154752=>[_0x154752,_0x154752['getFirstRange']()])),_0x12731a=new Set(),_0x1f4297=new Set();for(let _0x1e833e=0x0;_0x1e833e<_0x3c01b8['length'];_0x1e833e++)_0x5b71d5(_0x3c01b8[_0x1e833e],_0x3c01b8,_0x1e833e+0x1);for(let _0x3a307d=0x0;_0x3a307d<_0x3c01b8['length'];_0x3a307d++)_0x5b71d5(_0x3c01b8[_0x3a307d],_0x5cbc41,0x0);const _0x139e1d=new Set();for(let _0xda5da2=0x0;_0xda5da2<_0x3c01b8['length'];_0xda5da2++){const _0x4c9f7d=_0x3c01b8[_0xda5da2];!_0x1f4297['has'](_0x4c9f7d)&&_0x4c9f7d['previous']&&(_0x139e1d['add'](_0x4c9f7d['previous']),_0x4c9f7d['previous']['next']===_0x4c9f7d&&(_0x4c9f7d['previous']['next']=null),_0x4c9f7d['previous']=null),!_0x12731a['has'](_0x4c9f7d)&&_0x4c9f7d['next']&&(_0x139e1d['add'](_0x4c9f7d['next']),_0x4c9f7d['next']['previous']===_0x4c9f7d&&(_0x4c9f7d['next']['previous']=null),_0x4c9f7d['next']=null);}function _0x5b71d5(_0x53cd06,_0x1ab56b,_0x21fa94){for(let _0x5af0f7=_0x21fa94;_0x5af0f7<_0x1ab56b['length'];_0x5af0f7++){const _0xfe2f0a=_0x24f1bc(_0x53cd06,_0x1ab56b[_0x5af0f7]);_0xfe2f0a&&(_0xfe2f0a[0x0]['next']=_0xfe2f0a[0x1],_0xfe2f0a[0x1]['previous']=_0xfe2f0a[0x0],_0x12731a['add'](_0xfe2f0a[0x0]),_0x1f4297['add'](_0xfe2f0a[0x1]));}}function _0x24f1bc(_0x54e41c,_0x5d631f){if(_0x54e41c['author']['id']!==_0x5d631f['author']['id'])return null;const _0x42bdd4=_0x396b8a['get'](_0x54e41c)(_0x54e41c,_0x5d631f,_0x34a0bc['get'](_0x54e41c),_0x34a0bc['get'](_0x5d631f));if(!_0x42bdd4)return null;return _0x396b8a['get'](_0x5d631f)(_0x54e41c,_0x5d631f,_0x34a0bc['get'](_0x54e41c),_0x34a0bc['get'](_0x5d631f))?_0x42bdd4[0x1]['commentThread']&&_0x42bdd4[0x1]['commentThread']['length']?null:_0x42bdd4:null;}_0x139e1d['size']&&this['_refreshSuggestionsChain'](_0x139e1d);}['_refreshAttributeSuggestionsChain'](_0x2b98c2){if(0x0==_0x2b98c2['length'])return;const _0x156a37=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1bd372=>'attribute'==_0x1bd372['type']&&_0x1bd372['_isDataLoaded']),_0x1bf377=[],_0x58cbed=new Map();for(const _0x3f3881 of _0x156a37){const _0x1485c1=_0x51d884(_0x3f3881['attributes']);_0x58cbed['has'](_0x1485c1)||(_0x58cbed['set'](_0x1485c1,_0x1bf377['length']),_0x1bf377['push']([]));const _0x374648=_0x58cbed['get'](_0x1485c1);_0x1bf377[_0x374648]['push'](_0x3f3881);}!(function(){_0x1bf377['sort']((_0x29d8fd,_0x154b8e)=>{const _0x33ea5e=_0x29d8fd[0x0]['createdAt'],_0x35eb54=_0x154b8e[0x0]['createdAt'];return _0x33ea5e==_0x35eb54?_0x29d8fd[0x0]['attributes']['groupId']<_0x154b8e[0x0]['attributes']['groupId']?-0x1:0x1:_0x33ea5e<_0x35eb54?-0x1:0x1;});for(const _0xf430e9 of _0x1bf377)_0xf430e9['sort']((_0x53c134,_0x2af6cf)=>_0x53c134['id']<_0x2af6cf['id']?-0x1:0x1);}());for(let _0x582014=0x0;_0x582014<_0x1bf377['length'];_0x582014++){if(0x0==_0x1bf377[_0x582014]['length'])continue;const _0x37860e=[];for(let _0x2439d5=_0x582014+0x1;_0x2439d5<_0x1bf377['length'];_0x2439d5++)0x0!=_0x1bf377[_0x2439d5]['length']&&_0xfc41fa(_0x1bf377[_0x582014],_0x1bf377[_0x2439d5])&&_0x37860e['push'](_0x2439d5);for(const _0xe1898d of _0x37860e)_0x1bf377[_0x582014]=_0x1bf377[_0x582014]['concat'](_0x1bf377[_0xe1898d]),_0x1bf377[_0xe1898d]=[];}for(const _0x7cd762 of _0x1bf377)for(let _0x108388=0x0;_0x108388<_0x7cd762['length'];_0x108388++){const _0xa6cde4=_0x7cd762[_0x108388+0x1]||null;_0x7cd762[_0x108388]['next']!==_0xa6cde4&&(_0x7cd762[_0x108388]['next']=_0xa6cde4);}for(const _0x308cdd of _0x1bf377)for(let _0x9dffab=0x0;_0x9dffab<_0x308cdd['length'];_0x9dffab++){const _0x119ad0=_0x308cdd[_0x9dffab-0x1]||null;_0x308cdd[_0x9dffab]['previous']!==_0x119ad0&&(_0x308cdd[_0x9dffab]['previous']=_0x119ad0);}function _0xfc41fa(_0x1fd315,_0x11df7e){if(_0x1fd315[0x0]['attributes']['groupId']!==_0x11df7e[0x0]['attributes']['groupId']&&_0x1fd315[0x0]['author']!==_0x11df7e[0x0]['author'])return!0x1;if(!function(_0x230ec0,_0xac32bd){if(!_0x230ec0['hasComments']&&!_0xac32bd['hasComments'])return!0x0;if(_0x230ec0['hasComments']&&_0xac32bd['hasComments'])return!0x1;if(_0x230ec0['hasComments']&&_0xac32bd['createdAt']<_0x230ec0['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xac32bd['hasComments']&&_0x230ec0['createdAt']<_0xac32bd['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1fd315[0x0],_0x11df7e[0x0]))return!0x1;const _0x1ea7c6=Ut(_0x1fd315[0x0]['attributes'],['groupId','trackingSessionId']),_0x37ddbf=Ut(_0x11df7e[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x1ced7c(_0x1ea7c6,_0x37ddbf))return!0x1;if(_0x1fd315[0x0]['attributes']['groupId']==_0x11df7e[0x0]['attributes']['groupId'])return!0x0;if(_0x1fd315[0x0]['attributes']['trackingSessionId']!==_0x11df7e[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x1fd315['every'](_0x16cc10=>_0x11df7e['some'](_0x4faecf=>_0x16cc10['getFirstRange']()['isEqual'](_0x4faecf['getFirstRange']())))&&_0x11df7e['every'](_0x28b3d1=>_0x1fd315['some'](_0x18045f=>_0x28b3d1['getFirstRange']()['isEqual'](_0x18045f['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5b706f){const _0x2ecf9f=Array['from'](_0x5b706f),_0x2ef2d2=this['getSuggestions']({'skipNotAttached':!0x0}),_0x38d657=_0x2ef2d2['filter'](_0xda3ab2=>!_0x5b706f['has'](_0xda3ab2)),_0x499e62=new Map(_0x2ecf9f['map'](_0x474087=>[_0x474087,this['_suggestionFactory']['getSuggestionCallback'](_0x474087['type'],_0x474087['subType'],'join')])),_0x146a5c=new Map(_0x2ef2d2['map'](_0x17a5ed=>[_0x17a5ed,_0x17a5ed['getRanges']()]));for(let _0x258105=0x0;_0x258105<_0x2ecf9f['length'];_0x258105++){if(_0x28f583(this,_0x2ecf9f[_0x258105],_0x2ecf9f,_0x258105+0x1))return!0x0;}for(let _0x737a0d=0x0;_0x737a0d<_0x2ecf9f['length'];_0x737a0d++){if(_0x28f583(this,_0x2ecf9f[_0x737a0d],_0x38d657,0x0))return!0x0;}return!0x1;function _0x28f583(_0x37352d,_0x145e3f,_0x255bb6,_0x1305a3){for(let _0x20e443=_0x1305a3;_0x20e443<_0x255bb6['length'];_0x20e443++){const _0xdb49f2=_0x255bb6[_0x20e443];if(_0xdb49f2['type']!==_0x145e3f['type']||_0xdb49f2['author']['id']!==_0x145e3f['author']['id']||_0xdb49f2['subType']!==_0x145e3f['subType'])continue;if(!Wt(_0x145e3f,_0xdb49f2))continue;if('attribute'==_0x145e3f['type']&&_0x145e3f['data']['oldValue']!=_0xdb49f2['data']['oldValue'])continue;if('attribute'==_0x145e3f['type']&&_0x37352d['_isBlockAttribute'](_0x145e3f['data']['key']))continue;if('formatBlock'==_0x145e3f['type']){const _0x2068d5=_0x37352d['editor']['model'],_0x62cd0d=_0x145e3f['getContainedElement']();if(_0x62cd0d&&(_0x2068d5['schema']['isObject'](_0x62cd0d)||_0x2068d5['schema']['isLimit'](_0x62cd0d)))continue;}const _0x45627f=_0x499e62['get'](_0x145e3f),_0x353de2=_0x146a5c['get'](_0x145e3f),_0x5e2c47=_0x146a5c['get'](_0xdb49f2),_0x5052bf=_0x145e3f['commentThread']&&_0x145e3f['commentThread']['length'],_0x45e767=_0xdb49f2['commentThread']&&_0xdb49f2['commentThread']['length'];if(!_0x5052bf&&_0x45627f(_0x5e2c47,_0x353de2))return _0x37352d['_joinSuggestions'](_0xdb49f2,_0x145e3f),_0x146a5c['delete'](_0x145e3f),!0x0;if(!_0x45e767&&_0x45627f(_0x353de2,_0x5e2c47))return _0x37352d['_joinSuggestions'](_0x145e3f,_0xdb49f2),_0x146a5c['delete'](_0xdb49f2),!0x0;}return!0x1;}}['_joinSuggestions'](_0x511d30,_0x3c7a6b){if(_0x511d30['isMultiRange']){for(const _0x1b5b8f of _0x3c7a6b['getRanges']())_0x511d30['addRange'](_0x1b5b8f);}else{const _0x2e0ca7=_0x3c7a6b['getFirstRange']()['end'];this['_setSuggestionRange'](_0x511d30,this['_model']['createRange'](_0x511d30['getFirstRange']()['start'],_0x2e0ca7));}_0x3c7a6b['removeMarkers']();}['_getMarkerAnnouncementText'](_0x35a073,_0x3445c4,_0xe89e1d){const _0x36b551=_0x35a073['startsWith']('format')||_0x35a073['startsWith']('attribute')?'FORMATTING':_0x35a073['toUpperCase']();return o(this['editor']['locale'],_0x3445c4+'_'+_0x36b551+'_SUGGESTION_ANNOUNCEMENT',_0xe89e1d);}['_initAriaMarkerChangeAnnouncements'](){const _0x20755f=this['editor'];if(!_0x20755f['ui'])return;const {ariaLiveAnnouncer:_0x597011}=_0x20755f['ui'];_0x4124c9(this['_model'],({left:_0x38be8a,entered:_0x2be4f5})=>{for(const _0x50a49c of _0x38be8a){const {group:_0x4a3424,type:_0x28bf08}=this['_splitMarkerName'](_0x50a49c['name']);if('suggestion'===_0x4a3424){_0x597011['announce'](this['_getMarkerAnnouncementText'](_0x28bf08,'LEAVE'));break;}}for(const _0x58a556 of _0x2be4f5){const {group:_0xecd8f9,type:_0x42e2cc}=this['_splitMarkerName'](_0x58a556['name']);if('suggestion'===_0xecd8f9){_0x597011['announce'](this['_getMarkerAnnouncementText'](_0x42e2cc,'ENTER',_0x4b4623(_0x50d6b0)));break;}}});}['_processAttributeChanges'](_0x51eeb5){if(this['_recordAttributeSuggestions'])return!0x1;const _0x53d241=this['editor'],_0x43d778=_0x53d241['model']['document']['differ']['getChanges']();if(0x0==_0x43d778['length'])return!0x1;const _0x156792=[],_0x2c3c1f=_0x43d778['filter'](_0x399286=>'attribute'==_0x399286['type']),_0x163a66=_0x43d778['filter'](_0x535e20=>'insert'==_0x535e20['type']&&'$text'!=_0x535e20['name']),_0x2fcfc4=_0x43d778['filter'](_0x33401e=>'remove'==_0x33401e['type']&&'$text'!=_0x33401e['name']);for(const _0x5a12c8 of _0x2c3c1f)_0x156792['push']({'key':_0x5a12c8['attributeKey'],'newValue':_0x5a12c8['attributeNewValue'],'oldValue':_0x5a12c8['attributeOldValue'],'range':Ht(_0x5a12c8['range'],_0x53d241['model'])});for(const _0x107f0b of _0x163a66){const _0x13b64a=_0x2fcfc4['find'](_0x3e843d=>_0x3e843d['position']['isEqual'](_0x107f0b['position']));_0x13b64a&&_0x156792['push']({'key':m,'newValue':_0x107f0b['name'],'oldValue':_0x13b64a['name'],'range':_0x53d241['model']['createRangeOn'](_0x107f0b['position']['nodeAfter'])});}return 0x0!=_0x156792['length']&&this['_reduceExistingSuggestions'](_0x51eeb5,_0x156792);}['_processAttributeSuggestions'](_0x2a7700){let _0x53b11a=!0x1;const _0x187d6d=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x579e9=>_0x579e9['data']['newRange']&&_0x579e9['name']['startsWith']('suggestion:attribute:'));for(const _0x47b700 of _0x187d6d){const {subType:_0x37ff5c,id:_0x3f5b57}=this['_splitMarkerName'](_0x47b700['name']),_0x505ba7=_0x37ff5c['split']('|')[0x0];for(const _0x932eaa of this['getSuggestions']({'skipNotAttached':!0x0}))_0x932eaa['id']!=_0x3f5b57&&'attribute'==_0x932eaa['type']&&_0x932eaa['data']&&_0x932eaa['data']['key']==_0x505ba7&&_0x932eaa['getFirstRange']()['isIntersecting'](_0x47b700['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x932eaa,_0x47b700['data']['newRange'],_0x2a7700),_0x53b11a=!0x0);}return _0x53b11a;}['recordAttributeChanges'](_0x22276a){this['_recordAttributeSuggestions']=!0x0,_0x22276a();}['_isRegisteredAttribute'](_0x3410a4){const _0x1e028a=this['_isBlockAttribute'](_0x3410a4),_0x1e5a23=this['_inlineAttributeKeys']['has'](_0x3410a4);return _0x1e028a||_0x1e5a23;}['_reduceExistingSuggestions'](_0x20fb62,_0x4cfd14){if(0x0==_0x4cfd14['length'])return!0x1;let _0x455f78=!0x1;for(const _0x4da4f4 of _0x4cfd14){const _0x17203a=this['_findSuggestions'](_0x4da4f4['range'],'attribute')['filter'](_0x4484ff=>!_0x4484ff['meta']['isNextTo'])['map'](_0x5180e7=>_0x5180e7['suggestion']),_0xbee554=_0x51d884({'newValue':_0x4da4f4['newValue']});_0x17203a['filter'](_0x5a9a00=>{const [_0x185371,_0x2016c6]=_0x5a9a00['subType']['split']('|');return _0x185371==_0x4da4f4['key']&&_0x2016c6!=_0xbee554;})['forEach'](_0x10d01c=>{this['_reduceSuggestionAttributeRange'](_0x10d01c,_0x4da4f4['range'],_0x20fb62),_0x455f78=!0x0;});}return _0x455f78;}['_reduceSuggestionAttributeRange'](_0xc998dd,_0x5b6aa4,_0x27f99d){const _0x4b0d27=_0xc998dd['getFirstRange']()['getDifference'](_0x5b6aa4);0x0!==_0x4b0d27['length']?0x1!==_0x4b0d27['length']?this['_breakSuggestionMarker'](_0xc998dd,_0x5b6aa4['start'],_0x5b6aa4['end']):this['_setSuggestionRange'](_0xc998dd,_0x4b0d27[0x0]):_0x27f99d['removeMarker'](_0xc998dd['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3d9371){this['_editor']=_0x3d9371,this['_model']=_0x3d9371['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x35ee34,_0x3af73d,_0x525305,_0x38a0a,_0x359d00,_0x1b84eb,_0xb9cd55){return new T(this['_model'],{'type':_0x35ee34,'subType':_0x3af73d,'id':_0x525305,'originalSuggestionId':_0xb9cd55,'author':_0x38a0a,'creator':_0x38a0a,'attributes':_0x359d00,'onAttributesChange':_0x1b84eb,'onAccept':(..._0x4f3758)=>this['getSuggestionCallback'](_0x35ee34,_0x3af73d,'accept')(..._0x4f3758),'onDiscard':(..._0x4f8e37)=>this['getSuggestionCallback'](_0x35ee34,_0x3af73d,'discard')(..._0x4f8e37)});}['registerCustomCallback'](_0x391845,_0x52a3ce,_0x6f2d7b,_0x46613f){const _0x44df12=_0x391845+':'+_0x52a3ce+':'+_0x6f2d7b;this['_customCallbacks']['set'](_0x44df12,_0x46613f);}['getSuggestionCallback'](_0x26addd,_0x3fb5d1,_0x5b9541){const _0x2d1515=_0x26addd+':'+_0x3fb5d1+':'+_0x5b9541;return this['_customCallbacks']['get'](_0x2d1515)||this['_defaultCallbacks']['get'](_0x26addd+':'+_0x5b9541);}['_registerDefaultCallbacks'](){const _0xf2b55b=()=>!0x1,_0x46ef54=_0x180ad7=>{_0x180ad7['sort']((_0x49955d,_0x2979dc)=>_0x49955d['start']['isBefore'](_0x2979dc['start'])?0x1:-0x1),this['_model']['change'](_0x1bbca9=>{for(const _0x191b1f of _0x180ad7){let _0x1c5026;_0x1c5026=_0x191b1f['end']['isAtEnd']&&_0x191b1f['end']['parent']==_0x191b1f['start']['nodeAfter']?_0x1bbca9['createSelection'](_0x191b1f['start']['nodeAfter'],'on'):_0x1bbca9['createSelection'](_0x191b1f),this['_model']['deleteContent'](_0x1c5026,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x3aec4b=(_0x53c6cb,_0x7be6b6)=>{_0x7be6b6&&this['_model']['change'](_0x2bb92c=>{const {commandName:_0x1658d2,commandParams:_0x5c2c05=[]}=_0x7be6b6,_0x40247e=_0x53c6cb['map'](_0x365c3a=>(Pt(_0x365c3a)&&(_0x365c3a=this['_model']['createRange'](_0x365c3a['end'])),_0x365c3a))['filter'](_0x5f45c2=>'$graveyard'!==_0x5f45c2['root']['rootName']);if(_0x40247e['length']<0x1)return;const _0x293730=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x278bc4=>_0x158d49['fromRange'](_0x278bc4));_0x2bb92c['setSelection'](_0x40247e);for(const _0x57a422 of this['_editor']['commands']['commands']())_0x57a422['refresh']();_0x5c2c05['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1658d2,..._0x5c2c05);const _0x31038e=_0x293730['filter'](_0x464327=>'$graveyard'!=_0x464327['root']['rootName']);_0x31038e['length']>0x0&&_0x2bb92c['setSelection'](_0x31038e);for(const _0x2586d6 of _0x293730)_0x2586d6['detach']();});},_0x110294=(_0x3b3e92,_0x3a81d7)=>0x1==_0x3b3e92['length']&&0x1==_0x3a81d7['length']&&_0x3b3e92[0x0]['end']['isEqual'](_0x3a81d7[0x0]['start']),_0x1ce9a1=(_0x37338a,_0x4280de,_0x48ab3b,_0x4e0fa8)=>zt(_0x37338a,_0x4280de,_0x48ab3b,_0x4e0fa8)?[_0x37338a,_0x4280de]:zt(_0x4280de,_0x37338a,_0x4e0fa8,_0x48ab3b)?[_0x4280de,_0x37338a]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xf2b55b),this['_defaultCallbacks']['set']('insertion:discard',_0x46ef54),this['_defaultCallbacks']['set']('insertion:join',_0x110294),this['_defaultCallbacks']['set']('insertion:chain',_0x1ce9a1),this['_defaultCallbacks']['set']('deletion:accept',_0x46ef54),this['_defaultCallbacks']['set']('deletion:discard',_0xf2b55b),this['_defaultCallbacks']['set']('deletion:join',_0x110294),this['_defaultCallbacks']['set']('deletion:chain',_0x1ce9a1),this['_defaultCallbacks']['set']('formatInline:accept',_0x3aec4b),this['_defaultCallbacks']['set']('formatInline:discard',_0xf2b55b),this['_defaultCallbacks']['set']('formatInline:join',_0x110294),this['_defaultCallbacks']['set']('formatInline:chain',_0xf2b55b),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3aec4b),this['_defaultCallbacks']['set']('formatBlock:discard',_0xf2b55b),this['_defaultCallbacks']['set']('formatBlock:join',_0x110294),this['_defaultCallbacks']['set']('formatBlock:chain',_0xf2b55b),this['_defaultCallbacks']['set']('attribute:accept',_0xf2b55b),this['_defaultCallbacks']['set']('attribute:discard',(_0x52ac6a,_0x478267)=>{if(!_0x478267)return;const _0x2ab868=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x120fbd=>{if(_0x478267['key']==m)for(const _0x147c04 of _0x52ac6a){const _0x4105b6=_0x147c04['start']['nodeAfter'],_0x13e926=_0x478267['oldValue'];_0x120fbd['rename'](_0x4105b6,_0x13e926);}else{if(_0x2ab868['_isBlockAttribute'](_0x478267['key'])){for(const _0x5f5190 of _0x52ac6a)void 0x0!==_0x478267['oldValue']?_0x120fbd['setAttribute'](_0x478267['key'],_0x478267['oldValue'],_0x5f5190['start']['nodeAfter']):_0x120fbd['removeAttribute'](_0x478267['key'],_0x5f5190['start']['nodeAfter']);}else{for(const _0x1f97d1 of _0x52ac6a)_0x478267['oldValue']?_0x120fbd['setAttribute'](_0x478267['key'],_0x478267['oldValue'],_0x1f97d1):_0x120fbd['removeAttribute'](_0x478267['key'],_0x1f97d1);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x110294);}}function Ft(_0x18b09b,_0x477859,_0x46c8be){for(const _0x2f64e1 of _0x477859['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2f64e1['root']==_0x2f64e1)return!0x1;if(!_0x46c8be['containsItem'](_0x2f64e1))return!0x1;if(_0x18b09b['isObject'](_0x2f64e1)||_0x18b09b['isLimit'](_0x2f64e1))return!0x0;}return!0x1;}function Pt(_0x4df9aa){return _0x4df9aa['end']['parent']==_0x4df9aa['start']['nodeAfter']&&_0x4df9aa['end']['isAtStart'];}function Gt(_0x42f0ff,_0x216820,_0x24a38d,_0x3559cc){const _0x26fd33=_0x45914b=>!_0x45914b['item']['is']('$textProxy')&&!_0x3559cc['isObject'](_0x45914b['item']),_0x5d2100=_0x42f0ff['start']['getLastMatchingPosition'](_0x26fd33),_0x38a07c=_0x42f0ff['end']['getLastMatchingPosition'](_0x26fd33,{'direction':'backward'});return(!_0x42f0ff['start']['isEqual'](_0x5d2100)||!_0x42f0ff['end']['isEqual'](_0x38a07c))&&(_0x5d2100['isBefore'](_0x38a07c)?_0x24a38d['updateMarker'](_0x216820,{'range':_0x24a38d['createRange'](_0x5d2100,_0x38a07c)}):_0x24a38d['removeMarker'](_0x216820),!0x0);}function Lt(_0x336ad3){return _0x51d884(_0x336ad3);}function Jt(_0x1d0cf2){const _0xb3f5d1=_0x1d0cf2['start']['nodeAfter'];return _0xb3f5d1&&_0xb3f5d1['is']('element');}function Kt(_0xb8dcb5){return!Pt(_0xb8dcb5)&&!function(_0x220691){return _0x220691['start']['parent']==_0x220691['end']['nodeBefore']&&_0x220691['start']['isAtEnd'];}(_0xb8dcb5);}function Ht(_0x1f857b,_0x5dc1ac){return null==_0x1f857b['end']['nodeBefore']&&_0x1f857b['end']['parent']==_0x1f857b['start']['nodeAfter']?qt(_0x1f857b['start']['nodeAfter'],_0x5dc1ac):_0x1f857b;}function qt(_0x3484e4,_0x293f1f){const _0x37fd4e=_0x293f1f['schema']['isObject'](_0x3484e4)||_0x293f1f['schema']['isSelectable'](_0x3484e4);return _0x293f1f['createRange'](_0x293f1f['createPositionAt'](_0x3484e4,'before'),_0x37fd4e?_0x293f1f['createPositionAfter'](_0x3484e4):_0x293f1f['createPositionAt'](_0x3484e4,'end'));}function zt(_0x40b8a3,_0x4dbb80,_0x428bd1,_0x10488f){return!!Wt(_0x40b8a3,_0x4dbb80)&&_0x428bd1['end']['isEqual'](_0x10488f['start']);}function Wt(_0x38df53,_0x5dfcff){if(!_0x38df53['_isDataLoaded']||!_0x5dfcff['_isDataLoaded'])return!0x1;const _0x490d03=new Set(Object['keys'](_0x38df53['attributes'])),_0x6588a9=new Set(Object['keys'](_0x5dfcff['attributes']));if(_0x490d03['delete']('groupId'),_0x6588a9['delete']('groupId'),0x0==_0x490d03['size']&&0x0==_0x6588a9['size'])return!0x0;if(_0x490d03['size']!=_0x6588a9['size'])return!0x1;const _0x1de8c4={..._0x38df53['attributes']},_0x407d28={..._0x5dfcff['attributes']};return delete _0x1de8c4['groupId'],delete _0x407d28['groupId'],JSON['stringify'](_0x1de8c4)==JSON['stringify'](_0x407d28);}function Qt(_0x60b7f4,_0x5576f5){const _0x4805b3=Xt(_0x60b7f4['attributes']),_0x127e68=Xt(_0x5576f5);if(!_0x60b7f4['_isDataLoaded'])return!0x1;for(const _0x1277f5 of Object['keys'](_0x127e68))if(!_0x1ced7c(_0x4805b3[_0x1277f5],_0x127e68[_0x1277f5]))return!0x1;return!0x0;}function Xt(_0x4fe096){const _0x248309=Object['assign']({},_0x4fe096);return delete _0x248309['skipNestingCheck'],delete _0x248309['tablePasteChainId'],_0x248309;}class pe extends/* #__PURE__ -- @preserve */
26
+ _0x4af2b4(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4b1c30,_0x1e83ef,_0x1a0522,_0x6af54e){super(),this['model']=_0x1e83ef,this['view']=_0x1a0522,this['commentThreadController']=_0x6af54e,this['_editor']=_0x4b1c30,this['_acceptCommand']=_0x4b1c30['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4b1c30['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3a5fc3,_0x4cb505)=>_0x3a5fc3||_0x4cb505),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1c19c3=>_0x1c19c3&&this['_editor']['model']['canEditAt'](_0x1e83ef['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x269443=>_0x269443&&this['_editor']['model']['canEditAt'](_0x1e83ef['getRanges']())),this['_pendingAction']=null,_0x1a0522['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1a0522,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1a0522,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1a0522,'change:isDirty',()=>{_0x1a0522['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 _0x488308=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x488308);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x2d8d59{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x9087ff,_0x5d9c7,_0x30bcaa,_0x154890){super(_0x9087ff),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5e3ac9(_0x9087ff,o(_0x9087ff,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5d9c7['authoredAt']),this['bind']('authoredAt')['to'](_0x5d9c7),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',_0x5d9c7,'authoredAt',this,'descriptionParts',(_0x2856c4,_0x68c236,_0x4a565f)=>{const _0x39cb0f=_0x4a565f['map'](_0x2f38ee=>ls(_0x2f38ee['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2856c4-0x1,_0x5d9c7['author']['name'],_0x68c236?_0x154890['formatDateTime'](_0x68c236):'',new DOMParser()['parseFromString'](_0x39cb0f,'text/html')['body']['textContent']]);}),this['focusables']=new _0xc8541d(),this['focusTracker']=new _0x49dfd9(),this['keystrokes']=new _0x47fd75(),this['focusCycler']=new _0x4ac438({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3ec4e5=>_0x3ec4e5['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5d9c7,this['_localUser']=_0x30bcaa,this['_config']=_0x154890,_0x154890['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x32d9f5(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x8349c4}=this['_config'];this['commentsListView']=new _0x8349c4(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',_0x44fa72=>_0x44fa72+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3f1913,_0x5c5617)=>_0x3f1913||!!_0x5c5617);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x533341}=this['_config'],_0x537fc0=new _0x533341(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x41df03=_0x537fc0['commentInputView'];return _0x537fc0['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x41df03,'value',(_0x26cb98,_0x2908e7,_0x3d754b)=>!!_0x3d754b||_0x26cb98&&!_0x2908e7),_0x41df03['on']('submit',(_0x211104,_0xc737b0)=>{this['fire']('addComment',_0xc737b0),_0x41df03['editor']['setData']('');}),_0x41df03['on']('cancel',()=>this['focus']()),_0x41df03['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x537fc0;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x38b5f9,_0x1c71d5,_0x336ddd,_0x1961c2){super(_0x38b5f9,_0x1c71d5,_0x336ddd,_0x1961c2),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xa6580a=>_0xa6580a&&_0xa6580a[0x0]?_0xa6580a[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x524d5c,_0x14149d)=>{let _0x2901cb='';for(const _0x1bf9f9 of _0x524d5c)_0x2901cb+='<p>'+ls(_0x1bf9f9['content'],_0x1bf9f9['color'])+'</p>';return _0x14149d?_0x2901cb:_0x27347b(_0x2901cb,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1961c2['SuggestionView'](_0x38b5f9,_0x1c71d5,{'formatDateTime':_0x1961c2['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 _0x5c2dc0=this['bindTemplate'],_0x20c57f=[this['suggestionView']];return this['commentsListView']&&_0x20c57f['push'](this['commentsListView']),this['commentThreadInputView']&&_0x20c57f['push'](this['commentThreadInputView']),_0x20c57f['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5c2dc0['if']('isActive','ck-suggestion-wrapper--active'),_0x5c2dc0['to']('type',_0x289147=>'ck-suggestion-'+_0x289147),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':_0x5c2dc0['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x20c57f};}['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 _0x2d8d59{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3e375b,_0x167fb4,_0x4a0fe7){super(_0x3e375b),this['_model']=_0x167fb4,this['_config']=_0x4a0fe7,this['set']('description',''),this['bind']('authoredAt')['to'](_0x167fb4),this['acceptButton']=this['_createButton'](o(_0x3e375b,'Accept\x20suggestion'),_0x317a1a,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x3e375b,'Discard\x20suggestion'),_0x1efdbd,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x241076(_0x3e375b,_0x167fb4['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xc8541d([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x49dfd9(),this['keystrokes']=new _0x47fd75(),this['focusCycler']=new _0x4ac438({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x46341b=>_0x46341b['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x44d1e4=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x44d1e4['innerHTML']=this['description'],this['on']('change:description',(_0x1c24e7,_0x52d8ca,_0xfbe7fb)=>{_0x44d1e4['innerHTML']=_0xfbe7fb;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5bed82=this['bindTemplate'],_0x2a9fbd=[{'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':_0x5bed82['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5bed82['to']('authoredAt',_0x375f79=>this['_config']['formatDateTime'](_0x375f79))}]}]},{'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']&&_0x2a9fbd['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':_0x2a9fbd}]};}['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'](_0x1f8bcd,_0x3f00a9,_0x2e5985,_0x3a1c4b,_0x1d2400){const _0x2cf10b=new _0x55ec27(this['locale']);return _0x2cf10b['set']({'label':_0x1f8bcd,'icon':_0x3f00a9,'tooltip':!0x0,'tooltipPosition':_0x1d2400}),_0x2cf10b['extendTemplate']({'attributes':{'class':_0x2e5985}}),_0x2cf10b['on']('execute',()=>{this['fire'](_0x3a1c4b,this['_model']['id']);}),_0x2cf10b;}['_setupKeyboardNavigation'](){const _0x2c09bd=this['element'];this['keystrokes']['listenTo'](_0x2c09bd);for(const _0x4cbeda of this['focusables'])this['focusTracker']['add'](_0x4cbeda['element']),this['keystrokes']['listenTo'](_0x4cbeda['element']);this['keystrokes']['set']('enter',(_0x1422f2,_0x10f308)=>{_0x2c09bd===_0x1422f2['target']&&(this['focusCycler']['focusFirst'](),_0x10f308());}),this['keystrokes']['set']('esc',(_0x2a856d,_0x114e81)=>{_0x2c09bd!==_0x2a856d['target']&&(this['focus'](),_0x114e81());});}}class u extends _0x13e452{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x56d1a,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x31c125){super(_0x31c125),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x40c70d=this['editor']['config'];_0x40c70d['define']('trackChanges.SuggestionThreadView',fe),_0x40c70d['define']('trackChanges.SuggestionView',we),_0x40c70d['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x40c70d['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x56302a,_0xc6baef){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4379f6,_0x443273]of this['_handleControllerBuffer']){const _0x282309=this['_suggestionToController']['has'](_0x4379f6);_0x282309||_0x443273?_0x282309&&_0x443273&&this['_destroyController'](_0x4379f6):this['_initializeController'](_0x4379f6);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x56302a,_0xc6baef);}['init'](){const _0x24d26d=this['editor'],_0x399454=_0x24d26d['plugins']['get']('TrackChangesEditing'),_0x2d5180=_0x24d26d['plugins']['get']('Annotations'),_0x52105e=_0x24d26d['plugins']['get']('EditorAnnotations'),_0x4bea3c=_0x24d26d['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x52105e['addSourceCollector'](()=>{const _0x31db03=[];for(const [_0x547d4c,_0x10edfc]of Array['from'](this['_suggestionToController'])){const _0x446a8e=_0x547d4c['getAllAdjacentSuggestions'](),_0x1aaeec=[];for(const _0x324cf2 of _0x446a8e){if(!_0x324cf2['isInContent'])continue;if(_0x324cf2['isMultiRange']){_0x1aaeec['push'](..._0x324cf2['getRanges']());continue;}const _0x55125e=_0x324cf2['getFirstRange']();if(_0x1aaeec['length']>0x0){const _0x1fc97e=_0x1aaeec[0x0]['getJoined'](_0x55125e);if(_0x1fc97e){_0x1aaeec[0x0]=_0x1fc97e;continue;}}_0x1aaeec['push'](_0x55125e);}_0x31db03['push']([_0x10edfc['view'],_0x1aaeec]);}return _0x31db03;}),this['listenTo'](_0x399454,'suggestionLoaded',(_0x22056c,_0x3c1927)=>{this['listenTo'](_0x3c1927,'change:previous',(_0x44a560,_0x26cb00,_0x35d692,_0x1fb5ce)=>{_0x3c1927['isInContent']&&(null==_0x35d692?(this['_updateController'](_0x1fb5ce['head']),this['_handleSuggestionControllerDelayed'](_0x3c1927,!0x1)):(this['_updateController'](_0x35d692['head']),null==_0x1fb5ce&&this['_handleSuggestionControllerDelayed'](_0x3c1927,!0x0)));}),null!==_0x3c1927['previous']?this['_updateController'](_0x3c1927['head']):this['_handleSuggestionControllerDelayed'](_0x3c1927,!0x1);}),this['listenTo'](_0x399454,'suggestionUnloaded',(_0x4ee85d,_0x576a97,_0x13c1dc)=>{this['stopListening'](_0x576a97,'change:previous'),this['_handleControllerBuffer']['delete'](_0x576a97),this['_suggestionToController']['has'](_0x576a97)&&this['_destroyController'](_0x576a97),_0x13c1dc&&this['_updateController'](_0x13c1dc['head']);}),this['listenTo'](_0x399454,'suggestionChanged',(_0x453c1f,_0x3ccada)=>{this['_updateController'](_0x3ccada);}),this['listenTo'](_0x2d5180,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4bea3c,'addComment',(_0x1c9b8a,{threadId:_0xc2493a,isFromAdapter:_0x5cd984})=>{if(_0x5cd984||!_0x399454['hasSuggestion'](_0xc2493a))return;const _0x4ed353=_0x399454['getSuggestion'](_0xc2493a);this['_suggestionToController']['get'](_0x4ed353)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xcfc080=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3b3f30;for(const _0x253947 in _0xcfc080){const _0x3ceec1=_0x253947,_0xc5a869=_0xcfc080[_0x3ceec1];if('trackChangesLicenseKeyValid'==_0xc5a869||'trackChangesLicenseKeyInvalid'==_0xc5a869||'trackChangesLicenseKeyExpired'==_0xc5a869||'trackChangesLicenseKeyDomainLimit'==_0xc5a869||'trackChangesLicenseKeyNotAllowed'==_0xc5a869||'trackChangesLicenseKeyEvaluationLimit'==_0xc5a869||'trackChangesLicenseKeyTrialLimit'==_0xc5a869||'trackChangesLicenseKeyUsageLimit'==_0xc5a869){delete _0xcfc080[_0x3ceec1],_0x3b3f30=_0xc5a869,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x3b3f30&&_0xcfc080['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x3b3f30&&_0xcfc080['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x3b3f30&&_0xcfc080['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x3b3f30&&_0xcfc080['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x3b3f30&&_0xcfc080['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x3b3f30&&_0xcfc080['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x3b3f30&&_0xcfc080['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x14303c){const _0x477cd4=this['_suggestionToController']['get'](_0x14303c);if(!_0x477cd4)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x477cd4['view'])||null;}['getSuggestionForAnnotation'](_0x5cb68e){const _0xc2dda3=this['_viewToController']['get'](_0x5cb68e['innerView']);return _0xc2dda3?_0xc2dda3['model']:null;}['_refreshActiveMarkers'](){const _0x2ab3b3=this['editor']['plugins']['get']('Annotations'),_0x506e59=this['editor']['plugins']['get']('TrackChangesEditing'),_0x31a180=Array['from'](_0x2ab3b3['activeAnnotations'],_0xb23b7f=>_0xb23b7f['innerView'])['filter'](_0x52ef81=>this['_viewToController']['has'](_0x52ef81)),_0x24e990=[];for(const _0x2df2e7 of _0x31a180){const _0x3c45bf=this['_viewToController']['get'](_0x2df2e7)['model']['getAllAdjacentSuggestions']();_0x24e990['push'](..._0x3c45bf['reduce']((_0x116372,_0x377a3f)=>[..._0x116372,..._0x377a3f['getMarkerNames']()],[]));}_0x506e59['activeMarkers']=_0x24e990;}['_addUIComponentsToFactory'](){const _0xfcf04=this['editor'],_0x1839b9=_0xfcf04['locale'],_0x5af520=o(_0x1839b9,'Track\x20changes'),_0x1589b1=new _0x5bf0cc([{'type':'switchbutton','model':new _0x518378({'withText':!0x0,'isToggleable':!0x0,'label':_0x5af520,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x518378({'withText':!0x0,'label':o(_0x1839b9,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x518378({'withText':!0x0,'label':o(_0x1839b9,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x518378({'withText':!0x0,'label':o(_0x1839b9,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x518378({'withText':!0x0,'label':o(_0x1839b9,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0xfcf04['plugins']['has']('TrackChangesPreview')&&_0x1589b1['addMany']([{'type':'separator'},{'type':'button','model':new _0x518378({'withText':!0x0,'label':o(_0x1839b9,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0xb4d785 of _0x1589b1)if(ke(_0xb4d785)){const _0x368e8b=_0xfcf04['commands']['get'](_0xb4d785['model']['commandName']);_0xb4d785['model']['bind']('isOn','isEnabled')['to'](_0x368e8b,'value','isEnabled');}_0xfcf04['ui']['componentFactory']['add']('trackChanges',_0x3c4922=>this['_createToolbarButton'](_0x3c4922,_0x1589b1,_0x5af520)),_0xfcf04['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5b5258=>this['_createMenuBarMenu'](_0x5b5258,_0x1589b1,_0x5af520));}['_createToolbarButton'](_0x327c0c,_0x5c1fa4,_0x5d2d93){const _0x5869c5=_0x366dc0(_0x327c0c,_0x2253af),_0x1c7e1b=this['editor']['commands']['get']('trackChanges');_0x5869c5['buttonView']['set']({'tooltip':_0x5d2d93,'label':_0x5d2d93,'icon':_0x13883d}),_0x5869c5['buttonView']['bind']('isOn')['to'](_0x1c7e1b,'value'),_0x5869c5['buttonView']['on']('execute',()=>{_0x1c7e1b['execute'](),this['editor']['editing']['view']['focus']();}),_0x6d9994(_0x5869c5,_0x5c1fa4,{'role':'menu'});const _0x4ff3b0=[];for(const _0x1a2e8c of _0x5c1fa4)ke(_0x1a2e8c)&&_0x4ff3b0['push'](this['editor']['commands']['get'](_0x1a2e8c['model']['commandName']));const _0x12703a=_0x5869c5['buttonView'];return _0x12703a['actionView']['unbind']('isEnabled'),_0x12703a['arrowView']['unbind']('isEnabled'),_0x12703a['actionView']['bind']('isEnabled')['to'](_0x1c7e1b,'isEnabled'),_0x12703a['arrowView']['bind']('isEnabled')['toMany'](_0x4ff3b0,'isEnabled',(..._0x13d95f)=>_0x13d95f['some'](_0xe996e6=>_0xe996e6)),_0x5869c5['on']('execute',_0x2d29c7=>{this['editor']['execute'](_0x2d29c7['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5869c5;}['_createMenuBarMenu'](_0x4475cb,_0x1ca724,_0x17fa5e){const _0x191686=new _0x1f0be0(_0x4475cb),_0x2a89b2=this['editor']['commands']['get']('trackChanges');_0x191686['buttonView']['set']({'label':_0x17fa5e,'icon':_0x13883d});const _0x3f90fc=new _0x2849be(_0x4475cb);for(const _0x5f3690 of _0x1ca724){if('separator'==_0x5f3690['type']){_0x3f90fc['items']['add'](new _0x43929d(_0x4475cb));continue;}const _0x2279a9=new _0x1fb5d9(_0x4475cb,_0x191686),_0x5a47e0=new _0x4d739d(_0x4475cb),_0x4964a6=_0x5f3690['model'];_0x5a47e0['bind'](...Object['keys'](_0x4964a6))['to'](_0x4964a6),_0x5a47e0['delegate']('execute')['to'](_0x191686),_0x5a47e0['on']('execute',()=>{this['editor']['execute'](_0x4964a6['commandName']),this['editor']['editing']['view']['focus']();}),_0x2279a9['children']['add'](_0x5a47e0),_0x3f90fc['items']['add'](_0x2279a9);}return _0x191686['bind']('isEnabled')['to'](_0x2a89b2,'isEnabled'),_0x191686['panelView']['children']['add'](_0x3f90fc),_0x191686;}['_initializeController'](_0x58b2b4){const _0x534736=this['editor'],_0x500333=_0x534736['config'],_0x1bc4f5=_0x534736['plugins']['get']('Annotations'),_0x1f0a70=_0x534736['plugins']['get']('CommentsRepository'),_0x37bc21=_0x534736['plugins']['get']('EditorAnnotations'),_0x177507=_0x534736['plugins']['get'](_0x56d1a)['me'],_0x24b90f=_0x500333['get']('trackChanges')['SuggestionThreadView'],_0x45b015=_0x500333['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4eb930,CommentThreadInputView:_0x325c19}=_0x534736['plugins']['get']('CommentsUI');let _0x12aa3c,_0x52edf3,_0x380bdb;this['_annotationViews']['has'](_0x58b2b4['id'])?(_0x52edf3=this['_annotationViews']['get'](_0x58b2b4['id']),_0x12aa3c=_0x52edf3['mainView']):(_0x12aa3c=new _0x24b90f(_0x534736['locale'],_0x58b2b4,_0x177507,{'disableComments':this['_disableComments'],'editorConfig':{..._0x500333['get']('comments.editorConfig'),'licenseKey':_0x500333['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x500333['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x500333['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x500333['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x45f341(_0x500333['get']('locale'),_0x534736['locale']),'CommentView':_0x500333['get']('comments')['CommentView'],'CommentsListView':_0x4eb930,'CommentThreadInputView':_0x325c19,'SuggestionView':_0x45b015}),_0x12aa3c['suggestionView']['acceptButton']['on']('execute',()=>{_0x534736['editing']['view']['focus']();}),_0x12aa3c['suggestionView']['discardButton']['on']('execute',()=>{_0x534736['editing']['view']['focus']();}),_0x52edf3=_0x1bc4f5['createAnnotationView'](this['editor']['locale'],_0x12aa3c),_0x52edf3['bind']('isDirty')['to'](_0x12aa3c,'isDirty'),_0x52edf3['bind']('length')['to'](_0x12aa3c),_0x52edf3['bind']('type')['to'](_0x12aa3c,'type',_0x4d3e7b=>'suggestion-'+_0x4d3e7b),_0x12aa3c['on']('escape',()=>{_0x380bdb['fire']('escape');}),this['_annotationViews']['set'](_0x58b2b4['id'],_0x52edf3));const _0x5d47ba=_0x1f0a70['createCommentThreadController'](_0x58b2b4['commentThread'],_0x12aa3c),_0x23106b=new pe(_0x534736,_0x58b2b4,_0x12aa3c,_0x5d47ba),_0x5b7abf=_0x58b2b4['getAllAdjacentSuggestions']()['filter'](_0x3bcb44=>_0x3bcb44['isInContent']);_0x12aa3c['descriptionParts']=_0x534736['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5b7abf),this['_suggestionToController']['set'](_0x58b2b4,_0x23106b),this['_viewToController']['set'](_0x12aa3c,_0x23106b),_0x380bdb=_0x1bc4f5['createAnnotation']({'view':_0x52edf3,'target':()=>{const _0x3c65d2=[],_0x70bedd=_0x58b2b4['getAllAdjacentSuggestions']()['filter'](_0x5a91dc=>_0x5a91dc['isInContent']);for(const _0x32a929 of _0x70bedd)_0x3c65d2['push'](..._0x32a929['getMarkers']());return _0x1dfa67(_0x534736['editing'],_0x3c65d2);},'type':()=>'suggestion-'+_0x23106b['view']['type']}),_0x1f0a70['_bindAnnotationToEditors'](_0x12aa3c,_0x380bdb),_0x1bc4f5['add'](_0x380bdb),_0x37bc21['registerAnnotation'](_0x380bdb);}['_destroyController'](_0x1bdb21){const _0x195917=this['editor']['plugins']['get']('CommentsRepository'),_0x17cd3a=this['editor']['plugins']['get']('Annotations'),_0x2cb2fa=this['_suggestionToController']['get'](_0x1bdb21),_0x4a754f=_0x2cb2fa['view'],_0x5dfb0d=_0x17cd3a['getByInnerView'](_0x4a754f);_0x195917['_unbindEditors'](_0x4a754f),_0x5dfb0d&&_0x17cd3a['remove'](_0x5dfb0d),this['_suggestionToController']['delete'](_0x1bdb21),this['_viewToController']['delete'](_0x4a754f),_0x2cb2fa['destroy']();}['_updateController'](_0x8c4f77){if(!_0x8c4f77['isInContent']||!this['_suggestionToController']['has'](_0x8c4f77))return;const _0x286913=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a30c1=this['_suggestionToController']['get'](_0x8c4f77),_0x33cd43=_0x8c4f77['getAllAdjacentSuggestions']();_0x4a30c1['view']['descriptionParts']=_0x286913['descriptionFactory']['getDescriptions'](_0x33cd43);}['destroy'](){for(const _0x1e802e of this['_suggestionToController']['keys']())this['_destroyController'](_0x1e802e);for(const _0x4ebf10 of this['_annotationViews']['values']())_0x4ebf10['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0xbb3fdf){return'model'in _0xbb3fdf;}class Fe extends _0x13e452{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x9050d4){this['editor']['plugins']['get'](d)['adapter']=_0x9050d4;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x291b52){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x291b52);}['getSuggestions']({skipNotAttached:_0x4876e4=!0x1,toJSON:_0x2f01bd=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x4876e4,'toJSON':_0x2f01bd});}['getSuggestion'](_0x521e2c){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x521e2c);}}const p=['Pagination'];class re extends _0x13e452{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x38a8c8=this['editor'];if(_0x38a8c8['config']['define']('trackChangesData.editorCreator',_0x70c7f1=>{const _0x4f8302=_0x38a8c8['model']['document']['getRootNames']()['reduce']((_0x4644cc,_0x42aad3)=>(_0x4644cc[_0x42aad3]='',_0x4644cc),{});return _0x38a8c8['constructor']['create'](_0x4f8302,_0x70c7f1);}),'function'!=typeof _0x38a8c8['config']['get']('trackChangesData')['editorCreator'])throw new _0x19b862('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x257381){return P(this['editor'],!0x0,_0x257381);}['getDataWithDiscardedSuggestions'](_0x400240){return P(this['editor'],!0x1,_0x400240);}}class Ge extends _0x13e452{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x194316){function _0x515448(_0x1771a4){return _0x1771a4['map'](_0x369b52=>String['fromCharCode'](_0x369b52))['join']('');}super(_0x194316),this['result']='end',_0x194316[_0x515448([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x515448([0x76,0x69,0x65,0x77])][_0x515448([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x515448([0x61,0x75,0x74,0x6f]),_0x194316[_0x515448([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x515448([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x515448([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x515448([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x515448([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(_0x57848e){return void 0x0!==_0x57848e['getRootsAttributes'];}async function P(_0x25b448,_0xa9b32e,_0x169c36){const _0x3bbd79=_0x79006e(_0x25b448,p);_0x3bbd79['plugins']['push'](d,Ge),_0x3bbd79['rootsAttributes']=He(_0x25b448)?_0x25b448['getRootsAttributes']():void 0x0;const _0x1c7792=document['createDocumentFragment'](),_0x51251b=_0x25b448['config']['get']('trackChangesData')['editorCreator'],_0x3aceeb=await _0x51251b(_0x3bbd79,()=>function(_0x223209){const _0x131556=document['createElement']('div');return _0x223209['appendChild'](_0x131556),_0x131556;}(_0x1c7792));!function(_0x4da0cf,_0x24cdae){const _0x3b06d6=_0x4da0cf['model']['document']['getRootNames']()['reduce']((_0x2b53e8,_0x454d47)=>(_0x2b53e8[_0x454d47]=_0x4da0cf['data']['get']({'rootName':_0x454d47}),_0x2b53e8),{}),_0xa64a12=_0x4da0cf['plugins']['get']('Users')['users']['map'](_0x30ce6a=>({'id':_0x30ce6a['id'],'name':_0x30ce6a['name']})),_0xe48436=_0x4da0cf['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2dc25d=_0x4da0cf['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x32cd6f=_0x24cdae['plugins']['get']('Users'),_0x4fb9b7=_0x24cdae['plugins']['get']('TrackChangesEditing'),_0x187b3d=_0x24cdae['plugins']['get']('CommentsRepository');for(const _0x3738fb of _0x187b3d['getCommentThreads']())_0x3738fb['remove']();for(const _0x553262 of _0xa64a12)_0x32cd6f['getUser'](_0x553262['id'])||_0x32cd6f['addUser'](_0x553262);_0x32cd6f['me']||_0x32cd6f['useAnonymousUser']();for(const _0x1fbf70 of _0x2dc25d)_0x187b3d['addCommentThread'](_0x1fbf70);for(const _0x896229 of _0xe48436)_0x4fb9b7['addSuggestionData'](_0x896229);_0x24cdae['data']['set'](_0x3b06d6);}(_0x25b448,_0x3aceeb),_0x3aceeb['execute'](_0xa9b32e?'acceptAllSuggestions':'discardAllSuggestions');const _0x4b7c2a=He(_0x3aceeb)?_0x3aceeb['getFullData'](_0x169c36):_0x3aceeb['data']['get'](_0x169c36);return await _0x3aceeb['destroy'](),_0x4b7c2a;}class Me extends _0x2d8d59{['options'];constructor(_0xfd5739,_0x2092cb){super(_0xfd5739),this['options']=_0x2092cb,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'](_0x5cfe59,_0x7865f8){if(!this['element'])return;const _0xb567dd=[];for(const [_0x2f5100,_0x55bbed]of _0x5cfe59){const _0x47aea2=document['createElement']('div');_0x47aea2['setAttribute']('data-ck-root-name',_0x2f5100),_0x47aea2['className']=_0x55bbed['classes']+'\x20ck-track-changes-preview__root-container',_0x47aea2['innerHTML']=_0x55bbed['content'],_0xb567dd['push'](_0x47aea2);}_0x7865f8(this['element'],_0xb567dd),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x201f08{constructor(_0x397d0d){super(_0x397d0d),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x539092=this['editor'],_0x5397fb=_0x539092['locale'],_0x529a82=_0x539092['plugins']['get']('Dialog');let _0x428845;const _0x8d6657=function(_0x47eba9){const _0x1e2691={};if('editables'in _0x47eba9['ui']['view']){for(const [_0x248edb,_0x37ba8b]of Object['entries'](_0x47eba9['ui']['view']['editables']))_0x1e2691[_0x248edb]=_0x37ba8b['element'];}else _0x1e2691[_0x47eba9['model']['document']['getRootNames']()[0x0]]=_0x47eba9['ui']['view']['editable']['element'];return _0x1e2691;}(_0x539092),_0x21dfe9=function(_0x155c08){let _0x1a91ba=0x0;for(const _0x277fa8 of Object['values'](_0x155c08))_0x1a91ba=Math['max'](_0x1a91ba,_0x277fa8['getBoundingClientRect']()['width']);let _0xef1f65=0x0;for(const _0x2da4b0 of Object['values'](_0x155c08))_0xef1f65+=_0x2da4b0['getBoundingClientRect']()['height'];const _0x50d788=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x245d9a=Math['min'](_0xef1f65,_0x50d788);return{'width':_0x1a91ba,'height':_0x245d9a};}(_0x8d6657);_0x529a82['show']({'id':'finalContentPreview','title':o(_0x5397fb,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x5397fb,{'dialogRects':_0x21dfe9}),'onHide':()=>{_0x428845['detachFromDom']();},'onShow':()=>{_0x539092['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4d25d9=>{const _0x179828=this['_standarizeRootsData'](_0x4d25d9,_0x539092,_0x8d6657);_0x529a82['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x179828,_0x539092['config']['get']('trackChanges.preview.renderFunction'));}),_0x428845=new _0x3bc5c1(_0x5397fb,[_0x529a82['view']]),_0x428845['attachToDom'](),_0x428845['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x539092['once']('destroy',()=>{_0x428845['detachFromDom']();});const _0xc9c1d6=_0x529a82['view']['headerView']['class'];_0x529a82['view']['headerView']['class']=_0xc9c1d6?_0xc9c1d6+'\x20ck-reset_all':'ck-reset_all',_0x529a82['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x529a82['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x5bf704=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4dbbd5=_0x5bf704['previewMode'],_0x268917={};if('$labels'===_0x4dbbd5){for(const _0x24178a of _0x5bf704['getMergeFieldsIds']())_0x268917[_0x24178a]=_0x5bf704['getLabel'](_0x24178a)||_0x24178a;}else{const _0x224ee9='$defaultValues'===_0x4dbbd5?_0x5bf704['getDefaultValues']():_0x5bf704['getDataSetValues'](_0x4dbbd5,!0x0);for(const _0x19c3ff of Object['entries'](_0x224ee9)){const [_0x36a0e3,_0x1aadb3]=_0x19c3ff;_0x268917[_0x36a0e3]=null!==_0x1aadb3?_0x1aadb3:_0x5bf704['getLabel'](_0x36a0e3)||_0x36a0e3;}}return{'mergeFieldsData':_0x268917};}['_standarizeRootsData'](_0x4c4410,_0x3ae130,_0x1354f1){let _0x2689a1;if('string'==typeof _0x4c4410){const _0x3f9542=_0x3ae130['model']['document']['getRootNames']()[0x0];_0x2689a1={[_0x3f9542]:_0x4c4410};}else _0x2689a1=_0x4c4410;const _0x20b4ca=this['_fixMediaEmbeds'](_0x2689a1,_0x3ae130),_0x40246a=function(_0x31c826,_0x4ceff9){for(const [_0x2c88cc,_0x50bb6f]of _0x31c826)_0x50bb6f['classes']=_0x4ceff9[_0x2c88cc]['classList']['value']['replace']('ck-focused','');return _0x31c826;}(this['_sortRoots'](_0x3ae130)['reduce']((_0x35e9c5,_0x11ae9c)=>(_0x35e9c5['push']([_0x11ae9c,{'content':_0x20b4ca[_0x11ae9c],'classes':''}]),_0x35e9c5),[]),_0x1354f1);return _0x40246a;}['_fixMediaEmbeds'](_0x414457,_0x23f85a){if(!_0x23f85a['plugins']['has']('MediaEmbedEditing'))return _0x414457;const _0x3986fd=_0x23f85a['plugins']['get']('MediaEmbedEditing');for(const [_0x1bc9a2,_0x3b06ef]of Object['entries'](_0x414457)){const _0x49b14c=document['createElement']('div');_0x49b14c['innerHTML']=_0x3b06ef,(_0x49b14c['querySelectorAll']('figure.media')['forEach'](_0x35237a=>{const _0x28db04=_0x35237a['querySelector']('oembed');if(_0x28db04){const _0x2d7639=_0x28db04['getAttribute']('url');if(_0x2d7639){const _0x34cf8c=_0x3986fd['registry']['getMediaViewElement'](new _0x242596(_0x23f85a['editing']['view']['document']),_0x2d7639,{'elementName':'','renderForEditingView':!0x0}),_0x3f1b35=document['createElement']('div');_0x3f1b35['classList']['add']('ck-media__wrapper'),_0x34cf8c['render'](_0x3f1b35,_0x23f85a['editing']['view']['domConverter']),_0x28db04['replaceWith'](_0x3f1b35);}}}),_0x414457[_0x1bc9a2]=_0x49b14c['innerHTML']);}return _0x414457;}['_sortRoots'](_0x16efd1){if(!function(_0x3eda31){return void 0x0!==_0x3eda31['getRootsAttributes'];}(_0x16efd1))return _0x16efd1['model']['document']['getRootNames']();const _0x3fc5d0=[],_0x4377eb=new Map();for(const _0x3d5135 of _0x16efd1['model']['document']['getRootNames']()){const _0x37b107=_0x16efd1['editing']['view']['getDomRoot'](_0x3d5135)['getClientRects']()['item'](0x0);_0x3fc5d0['push'](_0x3d5135),_0x4377eb['set'](_0x3d5135,_0x37b107);}return _0x3fc5d0['sort']((_0x4de6b0,_0x4de905)=>{const _0x2bdb2d=_0x4377eb['get'](_0x4de6b0),_0x130593=_0x4377eb['get'](_0x4de905);return _0x2bdb2d['y']-_0x130593['y']||_0x2bdb2d['x']-_0x130593['x'];}),_0x3fc5d0;}}class $e extends _0x13e452{static get['requires'](){return[re,_0x5cbeab];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5e2007){super(_0x5e2007),_0x5e2007['commands']['add']('previewFinalContent',new te(this['editor'])),_0x5e2007['config']['define']('trackChanges.preview.renderFunction',(_0xc08d35,_0x4b8b5e)=>{for(const _0x4ae6c9 of _0x4b8b5e)_0xc08d35['appendChild'](_0x4ae6c9);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,M as DiscardSuggestionCommand,$ 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,Me as _SuggestionsPreviewView,m as _TRACK_CHANGES_RENAME_ATTRIBUTE_KEY};