@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250419.0 → 0.0.0-nightly-20250421.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x58c3ef,Plugin as _0x41653b,PendingActions as _0x33c81f}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x26cd03,ObservableMixin as _0x1b8b91,uid as _0x2c3492,priorities as _0x14842f,insertToPriorityArray as _0x51081e,logWarning as _0x5c58ef,getEnvKeystrokeText as _0x5a4a24,FocusTracker as _0x5287f3,KeystrokeHandler as _0x2e386b,Collection as _0x12d430}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x2125da,IconCancel as _0x1da1fd,IconTrackChanges as _0x598182}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x3eb3a7,View as _0x2794d0,ViewCollection as _0x5a384c,FocusCycler as _0x54f78f,ViewModel as _0x3532d8,createDropdown as _0x439f47,SplitButtonView as _0x4bf031,addListToDropdown as _0x27c46b,MenuBarMenuView as _0x52f8a9,MenuBarMenuListView as _0x360814,ListSeparatorView as _0x201d95,MenuBarMenuListItemView as _0x528795,MenuBarMenuListItemButtonView as _0x5423cf,BodyCollection as _0x47fdad,Dialog as _0x115414}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x497cb6,hashObject as _0x4fd68b,surroundingMarkersDetector as _0x38d3b7,FOCUS_ANNOTATION_KEYSTROKE as _0x3f5cd9,AriaDescriptionView as _0x5f19ef,setupThreadKeyboardNavigation as _0x411d30,trimHtml as ti,UserView as _0x5791b3,LateFocusButtonView as _0x11ae91,getDateTimeFormatter as _0xb8f67,getAllMarkersDomElementsSorted as _0xf9b91,sanitizeEditorConfig as _0x303e21}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x483243,LiveRange as _0x1b3826,LivePosition as _0x3682c7,DowncastWriter as _0x344b18}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x22abf2,toWidget as _0x233169}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x269696,set as _0x25feb9,isEqual as _0x5d8968,unset as _0x5e8535,omit as Ft}from'es-toolkit/compat';import{Delete as _0x2a2f9b,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x8da160}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x590d6f}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x58c3ef{['_enabledCommands'];constructor(_0x5eff92,_0x2daef1){super(_0x5eff92),this['_enabledCommands']=_0x2daef1,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 _0x2d2936 of this['editor']['commands']['commands']())_0x2d2936['affectsData']&&!this['_enabledCommands']['has'](_0x2d2936)&&_0x2d2936['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x45b130 of this['editor']['commands']['commands']())_0x45b130['affectsData']&&!this['_enabledCommands']['has'](_0x45b130)&&_0x45b130['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x58c3ef{['_suggestions'];constructor(_0xf52026,_0x5c58fd){super(_0xf52026),this['_suggestions']=_0x5c58fd,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xa322dd){const _0x345980=this['_suggestions']['get'](_0xa322dd);if(!_0x345980)throw new _0x26cd03('track-changes-accept-suggestion-not-found',this);const _0x2d75bc=_0x345980['getRanges']();this['editor']['model']['canEditAt'](_0x2d75bc)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x345980);}}class R extends _0x58c3ef{['_suggestions'];constructor(_0x3a5ef0,_0x5d6f0c){super(_0x3a5ef0),this['_suggestions']=_0x5d6f0c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x18dd42){const _0x48108e=this['_suggestions']['get'](_0x18dd42);if(!_0x48108e)throw new _0x26cd03('track-changes-discard-suggestion-not-found',this);const _0x5da2d2=_0x48108e['getRanges']();this['editor']['model']['canEditAt'](_0x5da2d2)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x48108e);}}function ls(_0x10dbfa,_0x2beeda){let _0x21d155='';return _0x21d155+=_0x10dbfa['split']('*')['map']((_0x3b6ecb,_0x341764)=>_0x341764%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x3b6ecb)+'</span>':nn(_0x3b6ecb))['join'](''),_0x2beeda&&(_0x21d155+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2beeda['value']+'\x22\x20title=\x22'+_0x2beeda['title']+'\x22></span>'),_0x21d155;}function nn(_0x586e09){const _0x408109=document['createElement']('span');return _0x408109['innerText']=_0x586e09,_0x408109['innerHTML'];}function ts(_0x4c9f06){return _0x4c9f06['sort']((_0x599bb3,_0x18c1d1)=>'deletion'==_0x599bb3['type']&&'deletion'!=_0x18c1d1['type']?-0x1:'deletion'!=_0x599bb3['type']&&'deletion'==_0x18c1d1['type']?0x1:0x0);}function to(_0x541258,_0x3dd3bf){let _0x4fac45,_0x41a79c=0x0;const _0x29914a=[],_0x187dc2=_0x3dd3bf['schema'];for(;_0x41a79c<_0x541258['length'];){const _0x5749e8=_0x541258[_0x41a79c],_0x1832d1=_0x541258[_0x41a79c+0x1];_0x4fac45||(_0x4fac45=_0x3dd3bf['createPositionBefore'](_0x5749e8)),on(_0x3dd3bf,_0x5749e8,_0x1832d1)||(_0x29914a['push'](_0x3dd3bf['createRange'](_0x4fac45,_0x187dc2['isObject'](_0x5749e8)?_0x3dd3bf['createPositionAfter'](_0x5749e8):_0x3dd3bf['createPositionAt'](_0x5749e8,'end'))),_0x4fac45=null),_0x41a79c++;}return _0x29914a;}function on(_0x4df70f,_0x4403e6,_0x5c8c49){if(!_0x5c8c49)return!0x1;const _0x4f1c88=_0x4df70f['createPositionAfter'](_0x4403e6),_0x13ec86=_0x4df70f['createPositionBefore'](_0x5c8c49);return _0x4f1c88['isTouching'](_0x13ec86);}function rs(_0x346d14,_0x162e1e,_0x1263ba){for(;_0x1263ba['length'];){const _0x479183=_0x1263ba['splice'](0x0,0x64);_0x346d14['change'](()=>{for(const _0x2b7d85 of _0x479183)_0x2b7d85['isInContent']&&_0x162e1e['execute'](_0x2b7d85['id']);});}}class x extends _0x58c3ef{['_command'];['_suggestions'];constructor(_0x3b5050,_0x337195,_0x4f8c12){super(_0x3b5050),this['_command']=_0x337195,this['_suggestions']=_0x4f8c12,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x265fac=Array['from'](this['_suggestions']['values']())['some'](_0x509b3c=>_0x509b3c['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x265fac;}['execute'](){const _0x122b4d=ts(Array['from'](this['_suggestions']['values']()));for(const _0x348dff of _0x122b4d){const _0x3bd47e=_0x348dff['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3bd47e))return;}rs(this['editor']['model'],this['_command'],_0x122b4d);}}class E extends _0x58c3ef{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xf7591,_0x5bc734,_0xaa831b){super(_0xf7591),this['_command']=_0x5bc734,this['_suggestions']=_0xaa831b,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xf80e7d=this['editor']['model']['document']['selection'],_0x5aff03=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x11a7a6,_0x56bcb3){const _0x5e3f01=Array['from'](_0x11a7a6['getRanges']()),_0x5bf4c3=new Set();for(const _0x15ca37 of _0x56bcb3)if(_0x15ca37['isInContent']){for(const _0x51fb42 of _0x5e3f01)for(const _0x2af2b0 of _0x15ca37['getRanges']())(_0x51fb42['isIntersecting'](_0x2af2b0)||_0x11a7a6['isCollapsed']&&!_0x15ca37['isMultiRange']&&_0x15ca37['next']&&_0x2af2b0['end']['isTouching'](_0x51fb42['start']))&&_0x5bf4c3['add'](_0x15ca37);}return _0x5bf4c3;}(_0xf80e7d,_0x5aff03),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x3ed53a=ts(Array['from'](this['_selectedSuggestions']));for(const _0xbec56f of _0x3ed53a){const _0x24ad5b=_0xbec56f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x24ad5b))return;}rs(this['editor']['model'],this['_command'],_0x3ed53a);}}class o extends/* #__PURE__ -- @preserve */
24
- _0x1b8b91(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x14b927,_0x5a2ac1){super(),this['id']=_0x5a2ac1['id'],this['type']=_0x5a2ac1['type'],this['subType']=_0x5a2ac1['subType']||null,this['author']=_0x5a2ac1['author'],this['creator']=_0x5a2ac1['creator']||_0x5a2ac1['author'],this['isExternal']=Boolean(_0x5a2ac1['attributes']&&_0x5a2ac1['attributes']['@external']),this['data']=null,this['_model']=_0x14b927,this['_onAccept']=_0x5a2ac1['onAccept'],this['_onDiscard']=_0x5a2ac1['onDiscard'],this['_onAttributesChange']=_0x5a2ac1['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5a2ac1['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 _0x45a2e4=this;for(;_0x45a2e4['previous'];)_0x45a2e4=_0x45a2e4['previous'];return _0x45a2e4;}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'](_0x4f1fe7){this['_markerNames']['add'](_0x4f1fe7);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x47b514=>this['_model']['markers']['get'](_0x47b514))['filter'](_0x5a4bdd=>_0x5a4bdd);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x416cd1=>{for(const _0x2f67f9 of this['getMarkers']())_0x416cd1['removeMarker'](_0x2f67f9);}),this['_markerNames']['clear']();}['removeMarker'](_0x1b0d14){this['_model']['change'](_0x2cb70b=>{_0x2cb70b['removeMarker'](_0x1b0d14);}),this['_markerNames']['delete'](_0x1b0d14);}['addRange'](_0x4b2a19){const _0x566d29='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x566d29),this['_model']['change'](_0x552348=>{_0x552348['addMarker'](_0x566d29,{'range':_0x4b2a19,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5539b0){for(const _0x2c3501 of this['getRanges']())if(_0x2c3501['isIntersecting'](_0x5539b0))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x496941=>_0x496941['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4728f5,_0x85f12a)=>[..._0x4728f5,..._0x85f12a['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xa76afc=this['getRanges']();if(0x1!=_0xa76afc['length'])return null;const _0x306cc6=_0xa76afc[0x0],_0x36c087=_0x306cc6['start']['nodeAfter'],_0x464862=_0x306cc6['end']['nodeBefore'];return _0x36c087 instanceof _0x483243?_0x36c087!=_0x464862?null:_0x36c087: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 _0x568392=[];let _0x5dcba8=this['head'];for(;_0x5dcba8;)_0x568392['push'](_0x5dcba8),_0x5dcba8=_0x5dcba8['next'];return _0x568392;}['setAttribute'](_0x4f2b16,_0x22964d){const _0x36a8b1=_0x269696(this['attributes']);_0x25feb9(_0x36a8b1,_0x4f2b16,_0x22964d),_0x5d8968(_0x36a8b1,this['attributes'])||(this['attributes']=_0x36a8b1,this['_onAttributesChange'](_0x36a8b1));}['removeAttribute'](_0x39bf35){const _0x14c36f=_0x269696(this['attributes']);_0x5e8535(_0x14c36f,_0x39bf35),_0x5d8968(_0x14c36f,this['attributes'])||(this['attributes']=_0x14c36f,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 _0x2c3492()['substr'](0x1,0x5);}}function c(_0x2e4b3f,_0x2c07a7,_0x5f1290){const _0x1d1528=_0x2e4b3f['t'],t=_0x2e4b3f['t'];switch(_0x2c07a7){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',_0x5f1290);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5f1290);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5f1290);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5f1290);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5f1290);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',_0x5f1290);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5f1290);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',_0x5f1290);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5f1290);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5f1290);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5f1290);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5f1290);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5f1290);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5f1290);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5f1290);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5f1290);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5f1290);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5f1290);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5f1290);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5f1290);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5f1290);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5f1290);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5f1290);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5f1290);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x5f1290);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'},_0x5f1290);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x5f1290);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x5f1290);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5f1290);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5f1290);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5f1290);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5f1290);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5f1290);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'},_0x5f1290);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5f1290);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5f1290);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5f1290);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5f1290);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'},_0x5f1290);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5f1290);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'},_0x5f1290);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x5f1290);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5f1290);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'},_0x5f1290);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5f1290);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'},_0x5f1290);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5f1290);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5f1290);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'},_0x5f1290);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5f1290);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 _0x1d1528({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5f1290);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1d1528({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5f1290);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5f1290);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'},_0x5f1290);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'},_0x5f1290);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'},_0x5f1290);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2c07a7;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4f5441,_0x5ef7dd){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4f5441,this['_locale']=_0x5ef7dd;}['getDescriptions'](_0x3dee85){const _0x5851d1=[],_0x4cd806=new Set(),_0x4dfbfa=new Set();for(let _0x24a614=0x0;_0x24a614<_0x3dee85['length'];_0x24a614++){const _0xcb335=_0x3dee85[_0x24a614];if(!_0xcb335['isInContent'])continue;const _0x51b57d=this['_handleCustomCallbackDescription'](_0xcb335);if(_0x51b57d){if(null!=_0xcb335['subType']){if(_0x4cd806['has'](_0xcb335['subType']))continue;_0x4cd806['add'](_0xcb335['subType']);}_0x5851d1['push'](_0x51b57d);}else{if('attribute'!=_0xcb335['type'])'insertion'!=_0xcb335['type']&&'deletion'!=_0xcb335['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5851d1,_0xcb335,_0x3dee85[_0x24a614+0x1]);else{const _0x568a78=_0xcb335['data']['key'];if(_0x4dfbfa['has'](_0x568a78))continue;_0x4dfbfa['add'](_0xcb335['data']['key']),_0x568a78==u?this['_handleRenameSuggestionDescription'](_0x5851d1,_0xcb335):this['_handleAttributeSuggestionDescription'](_0x5851d1,_0xcb335);}}}return this['_resolveDescriptionItems'](_0x5851d1);}['registerDescriptionCallback'](_0x271aff){this['_customCallbacks']['push'](_0x271aff);}['registerElementLabel'](_0x5bbf6f,_0x10d1a8,_0xf81cb1=_0x14842f['normal']){'function'==typeof _0x5bbf6f?_0x51081e(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5bbf6f,'label':_0x10d1a8,'priority':_0xf81cb1}):this['_itemLabels']['set'](_0x5bbf6f,_0x10d1a8);}['registerAttributeLabel'](_0x3754e9,_0x44f45e){this['_attributeLabels']['set'](_0x3754e9,_0x44f45e);}['getItemLabel'](_0x4be897,_0x320847=0x1){let _0x20f10e;for(const _0x5d40ea of this['_itemLabelsCallbacks'])if(_0x5d40ea['matchingCallback'](_0x4be897)){_0x20f10e=_0x5d40ea['label'];break;}return _0x20f10e||(_0x20f10e=this['_itemLabels']['get'](_0x4be897['name'])),_0x20f10e?_0x20f10e(_0x320847):0x1!==_0x320847?_0x320847+'\x20'+_0x4be897['name']+'s':''+_0x4be897['name'];}['_addDescriptionItems'](_0x583027,_0x5b1eae){const _0x7d6742=_0x5b1eae['getFirstRange']()['getWalker'](),_0x5d14ba='insertion'==_0x5b1eae['type']?'add':'remove';for(const _0x20b9b2 of _0x7d6742){const _0x2af3de=_0x20b9b2['item'],_0x421b57=_0x583027[_0x583027['length']-0x1];if(_0x2af3de['is']('$textProxy'))_0x421b57&&_0x421b57['type']['indexOf']('Container')>-0x1&&_0x583027['pop'](),_0x421b57&&'text'==_0x421b57['type']?_0x421b57[_0x5d14ba]+=_0x2af3de['data']:_0x583027['push']({'type':'text','add':'add'==_0x5d14ba?_0x2af3de['data']:'','remove':'remove'==_0x5d14ba?_0x2af3de['data']:''});else{if(this['_schema']['isObject'](_0x2af3de)){const _0xf75bd0=_0x2af3de;if(_0x421b57&&_0x421b57['type']['indexOf']('Container')>-0x1&&_0x583027['pop'](),'elementEnd'==_0x20b9b2['type'])continue;_0x421b57&&_0x421b57['type']==_0x5d14ba+'Object'&&_0x421b57['element']['name']==_0xf75bd0['name']?_0x421b57['quantity']++:_0x583027['push']({'type':_0x5d14ba+'Object','element':_0xf75bd0,'quantity':0x1}),_0x7d6742['skip'](_0x567fb9=>!('elementEnd'==_0x567fb9['type']&&_0x567fb9['item']==_0x2af3de));}else{if(this['_schema']['checkChild'](_0x2af3de,'$text')||_0x2af3de['is']('element','softBreak')){const _0x2355fe=_0x2af3de;if('add'==_0x5d14ba&&'elementStart'==_0x20b9b2['type']||'remove'==_0x5d14ba&&'elementEnd'==_0x20b9b2['type'])continue;if(_0x421b57&&-0x1==_0x421b57['type']['indexOf']('Container')){'text'==_0x421b57['type']&&(_0x421b57[_0x5d14ba]+='\x0a');continue;}let _0x3f2543;if(_0x3f2543='add'==_0x5d14ba?_0x2355fe['nextSibling']&&!this['_schema']['isObject'](_0x2355fe['nextSibling'])?_0x2355fe['nextSibling']:null:_0x2355fe['previousSibling']&&!this['_schema']['isObject'](_0x2355fe['previousSibling'])?_0x2355fe['previousSibling']:null,_0x2355fe['isEmpty']||_0x3f2543&&_0x3f2543['isEmpty']){const _0x29af3a=_0x3f2543&&_0x3f2543['isEmpty']?_0x3f2543:_0x2355fe;_0x421b57&&_0x421b57['type']==_0x5d14ba+'EmptyContainer'&&_0x421b57['element']['name']==_0x29af3a['name']?_0x421b57['quantity']++:_0x583027['push']({'type':_0x5d14ba+'EmptyContainer','element':_0x29af3a,'quantity':0x1});}else _0x583027['push']({'type':_0x5d14ba+'Container','element':_0x2355fe});}}}}}['_resolveDescriptionItems'](_0x2ef21f){const _0x1be595=this['_locale'],_0x291067=[],_0x55fdfd=[],_0x177111=[];for(const _0xc75c5b of _0x2ef21f)switch(_0xc75c5b['type']){case'text':if(_0xc75c5b['add']=_0xc75c5b['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0xc75c5b['remove']=_0xc75c5b['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0xc75c5b['add']&&''!=_0xc75c5b['remove']){_0x291067['push']({'type':'replace','content':c(_0x1be595,'REPLACE_TEXT',['\x22'+_0xc75c5b['remove']+'\x22','\x22'+_0xc75c5b['add']+'\x22'])});continue;}if(null!=_0xc75c5b['add']['match'](/^ +$/)){_0x291067['push']({'type':'insertion','content':c(_0x1be595,'*Insert:*\x20%0',c(_0x1be595,'ELEMENT_SPACE',_0xc75c5b['add']['length']))});continue;}if(null!=_0xc75c5b['remove']['match'](/^ +$/)){_0x291067['push']({'type':'deletion','content':c(_0x1be595,'*Remove:*\x20%0',c(_0x1be595,'ELEMENT_SPACE',_0xc75c5b['remove']['length']))});continue;}if(''!=_0xc75c5b['add']){_0x291067['push']({'type':'insertion','content':c(_0x1be595,'*Insert:*\x20%0','\x22'+_0xc75c5b['add']+'\x22')});continue;}_0x291067['push']({'type':'deletion','content':c(_0x1be595,'*Remove:*\x20%0','\x22'+_0xc75c5b['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x291067['push']({'type':'insertion','content':c(_0x1be595,'*Insert:*\x20%0',this['getItemLabel'](_0xc75c5b['element'],_0xc75c5b['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x291067['push']({'type':'deletion','content':c(_0x1be595,'*Remove:*\x20%0',this['getItemLabel'](_0xc75c5b['element'],_0xc75c5b['quantity']))});continue;case'addContainer':_0x291067['push']({'type':'insertion','content':c(_0x1be595,'*Split:*\x20%0',this['getItemLabel'](_0xc75c5b['element'],_0xc75c5b['quantity']))});continue;case'removeContainer':_0x291067['push']({'type':'deletion','content':c(_0x1be595,'*Merge:*\x20%0',this['getItemLabel'](_0xc75c5b['element'],_0xc75c5b['quantity']))});continue;case'addFormat':_0x55fdfd['push'](_0xc75c5b['key']);continue;case'removeFormat':_0x177111['push'](_0xc75c5b['key']);continue;default:_0x291067['push'](_0xc75c5b);}if(_0x55fdfd['length']){const _0x274b5c=_0x55fdfd['map'](_0x43eacf=>this['_attributeLabels']['has'](_0x43eacf)?this['_attributeLabels']['get'](_0x43eacf):_0x43eacf)['join'](',\x20');_0x291067['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x274b5c)});}if(_0x177111['length']){const _0x1bda2b=_0x177111['map'](_0x4db23f=>this['_attributeLabels']['has'](_0x4db23f)?this['_attributeLabels']['get'](_0x4db23f):_0x4db23f)['join'](',\x20');_0x291067['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x1bda2b)});}return _0x291067;}['_handleCustomCallbackDescription'](_0x247805){for(const _0x4efb4c of this['_customCallbacks']){const _0x39f915=_0x4efb4c(_0x247805);if(_0x39f915&&'type'in _0x39f915)return _0x39f915;}}['_handleAttributeSuggestionDescription'](_0x3153b4,_0x3edeb0){const _0x118cdd=_0x3edeb0['data'],_0x466585=void 0x0===_0x118cdd['newValue']?'removeFormat':'addFormat';_0x3153b4['push']({'type':_0x466585,'key':_0x118cdd['key']});}['_handleRenameSuggestionDescription'](_0x68475c,_0x1e14e4){_0x68475c['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1e14e4['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xa7bf5e,_0x1e3de0,_0x1f664c){if(this['_addDescriptionItems'](_0xa7bf5e,_0x1e3de0),_0x1f664c&&_0x1f664c['getFirstRange']()&&!_0x1e3de0['getFirstRange']()['end']['isEqual'](_0x1f664c['getFirstRange']()['start'])){const _0x55d2c9=_0xa7bf5e[_0xa7bf5e['length']-0x1],_0x49b092='insertion'==_0x1e3de0['type']?'add':'remove';_0x55d2c9&&'text'==_0x55d2c9['type']&&(_0x55d2c9[_0x49b092]+='\x0a');}}}class U extends _0x41653b{['afterInit'](){const _0x24c87e=this['editor'],_0x430b5a=_0x24c87e['plugins']['get']('TrackChangesEditing');_0x24c87e['commands']['get']('showAIAssistant')&&_0x430b5a['enableCommand']('showAIAssistant');}}class V extends _0x41653b{['afterInit'](){const _0x5a5f15=this['editor'],_0x4dc14b=_0x5a5f15['locale'];if(!_0x5a5f15['plugins']['has']('AlignmentEditing'))return;const _0x145bc3=_0x5a5f15['plugins']['get']('TrackChangesEditing');_0x145bc3['enableDefaultAttributesIntegration']('alignment'),_0x145bc3['registerBlockAttribute']('alignment'),_0x145bc3['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x4dc14b,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d2986=this['editor'],_0x1529c4=_0x5d2986['locale'];_0x5d2986['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2cbbc6=>{if('formatBlock'!=_0x2cbbc6['type'])return;const {data:_0x3c8307}=_0x2cbbc6;if(_0x3c8307&&'alignment'==_0x3c8307['commandName']){const _0x5e4198=_0x3c8307['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x1529c4,'*Format:*\x20%0',function(_0x12cf7a){switch(_0x12cf7a){case'left':return c(_0x1529c4,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x1529c4,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x1529c4,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x1529c4,'FORMAT_JUSTIFY_TEXT');}}(_0x5e4198))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x41653b{['afterInit'](){const _0x4a2664=this['editor'],_0x5ae396=_0x4a2664['plugins']['get']('TrackChangesEditing'),_0x307e8e=_0x4a2664['locale'];for(const _0x2c1e2b of Zt){if(!_0x4a2664['plugins']['has'](_0x2c1e2b))continue;const _0x503de1=_0x2c1e2b['slice'](0x0,-0x7)['toLowerCase'](),_0x17493a='FORMAT_'+_0x503de1['toUpperCase']();_0x5ae396['enableDefaultAttributesIntegration'](_0x503de1),_0x5ae396['registerInlineAttribute'](_0x503de1),_0x5ae396['descriptionFactory']['registerAttributeLabel'](_0x503de1,c(_0x307e8e,_0x17493a));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x14d057=this['editor'],_0x3693e8=_0x14d057['locale'],_0x9be9d3=_0x14d057['plugins']['get']('TrackChangesEditing');function _0x3bc697(_0x3c9e15,_0x5d1fe8){_0x9be9d3['descriptionFactory']['registerDescriptionCallback'](_0x3a850b=>{if('formatInline'!=_0x3a850b['type'])return;const {data:_0x5e0611}=_0x3a850b;return _0x5e0611&&_0x5e0611['commandName']===_0x3c9e15?_0x5e0611['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3693e8,'*Format:*\x20%0',_0x5d1fe8)}:{'type':'format','content':c(_0x3693e8,'*Remove\x20format:*\x20%0',_0x5d1fe8)}:void 0x0;});}_0x3bc697('bold',c(_0x3693e8,'FORMAT_BOLD')),_0x3bc697('italic',c(_0x3693e8,'FORMAT_ITALIC')),_0x3bc697('underline',c(_0x3693e8,'FORMAT_UNDERLINE')),_0x3bc697('code',c(_0x3693e8,'FORMAT_CODE')),_0x3bc697('strikethrough',c(_0x3693e8,'FORMAT_STRIKETHROUGH')),_0x3bc697('subscript',c(_0x3693e8,'FORMAT_SUBSCRIPT')),_0x3bc697('superscript',c(_0x3693e8,'FORMAT_SUPERSCRIPT'));}}class G extends _0x41653b{['afterInit'](){const _0x4f23d5=this['editor'],_0x26d0c8=_0x4f23d5['locale'];if(!_0x4f23d5['plugins']['has']('BlockQuoteEditing'))return;const _0x5c7fa5=_0x4f23d5['plugins']['get']('TrackChangesEditing'),_0x264ab9=this['editor']['commands']['get']('blockQuote');_0x5c7fa5['enableCommand']('blockQuote',(_0x3745e2,_0x27f507={})=>{const _0x335004=this['editor']['model']['document']['selection'],_0x273ac8=_0x27f507&&void 0x0!==_0x27f507['forceValue']?_0x27f507['forceValue']:!_0x264ab9['value'];let _0x46b9bf=[];if(_0x273ac8){const _0x1a74b2=Array['from'](_0x335004['getSelectedBlocks']())['filter'](_0x38c141=>oo(_0x38c141)||function(_0x2fd1d6,_0x3a7933){const _0x388723=_0x3a7933['checkChild'](_0x2fd1d6['parent'],'blockQuote'),_0x493f20=_0x3a7933['checkChild'](['$root','blockQuote'],_0x2fd1d6);return _0x388723&&_0x493f20;}(_0x38c141,this['editor']['model']['schema']));_0x46b9bf=to(_0x1a74b2,_0x4f23d5['model']);}else{const _0x2d2553=Array['from'](_0x335004['getSelectedBlocks']())['filter'](_0x3309a7=>oo(_0x3309a7));_0x46b9bf=to(_0x2d2553,_0x4f23d5['model']);}_0x4f23d5['model']['change'](()=>{for(const _0x12089d of _0x46b9bf)_0x5c7fa5['markBlockFormat'](_0x12089d,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x273ac8}]});});}),_0x5c7fa5['descriptionFactory']['registerDescriptionCallback'](_0x46c1f9=>{const {data:_0x3ad55f}=_0x46c1f9;if(_0x3ad55f&&'blockQuote'==_0x3ad55f['commandName']){const _0x43b512=c(_0x26d0c8,'ELEMENT_BLOCK_QUOTE');return _0x3ad55f['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x26d0c8,'*Set\x20format:*\x20%0',_0x43b512)}:{'type':'format','content':c(_0x26d0c8,'*Remove\x20format:*\x20%0',_0x43b512)};}});}}function oo(_0x3b8ee4){return'blockQuote'==_0x3b8ee4['parent']['name'];}class L extends _0x41653b{['afterInit'](){const _0x4a544a=this['editor'],_0x5a2f50=_0x4a544a['locale'],_0x25f798=_0x4a544a['plugins']['get']('TrackChangesEditing');_0x4a544a['plugins']['has']('BookmarkEditing')&&(_0x25f798['enableCommand']('insertBookmark'),_0x25f798['enableDefaultAttributesIntegration']('updateBookmark'),_0x25f798['registerBlockAttribute']('bookmarkId'),_0x25f798['descriptionFactory']['registerDescriptionCallback'](_0x458ba3=>{if('insertion'!=_0x458ba3['type']&&'deletion'!=_0x458ba3['type']&&'attribute'!=_0x458ba3['type'])return;const _0x279053=_0x458ba3['getContainedElement']();if(null==_0x279053)return;if(!_0x279053['is']('element','bookmark'))return;const _0x1c68ad=_0x279053['getAttribute']('bookmarkId');if('insertion'==_0x458ba3['type'])return{'type':'insertion','content':c(_0x5a2f50,'*Insert:*\x20%0','\x22'+_0x1c68ad+'\x22\x20'+c(_0x5a2f50,'ELEMENT_BOOKMARK'))};if('deletion'==_0x458ba3['type'])return{'type':'deletion','content':c(_0x5a2f50,'*Remove:*\x20%0','\x22'+_0x1c68ad+'\x22\x20'+c(_0x5a2f50,'ELEMENT_BOOKMARK'))};const {data:_0x2610fb}=_0x458ba3;if(!_0x2610fb||'bookmarkId'!=_0x2610fb['key'])return;return{'type':'format','content':c(_0x5a2f50,'*Set\x20bookmark:*\x20%0','\x22'+_0x2610fb['newValue']+'\x22')};}));}}class J extends _0x41653b{['afterInit'](){const _0x32bb8c=this['editor'];_0x32bb8c['plugins']['has']('CaseChange')&&(_0x32bb8c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x32bb8c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x32bb8c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x41653b{['afterInit'](){const _0x17834e=this['editor'];_0x17834e['commands']['get']('ckbox')&&_0x17834e['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x41653b{['afterInit'](){const _0x3be364=this['editor'];if(!_0x3be364['plugins']['has']('CodeBlock'))return;const _0x509d57=_0x3be364['plugins']['get']('TrackChangesEditing'),_0x750d65=_0x3be364['locale'],_0x4b877c=_0x3be364['config']['get']('codeBlock')['languages'],_0x5296a7=_0x3be364['commands']['get']('codeBlock');_0x509d57['enableCommand']('indentCodeBlock'),_0x509d57['enableCommand']('outdentCodeBlock'),_0x509d57['enableCommand']('codeBlock',(_0x524f10,_0x9e7da1={})=>{const _0x4a4301=_0x3be364['model'],_0x3f4504=_0x3be364['model']['document']['selection'],_0x1615b5=_0x9e7da1&&void 0x0!==_0x9e7da1['forceValue']?_0x9e7da1['forceValue']:!_0x5296a7['value'];let _0x5bb6f2;_0x9e7da1['language']||(_0x9e7da1['language']=_0x4b877c[0x0]['language']),_0x5bb6f2=_0x1615b5?Array['from'](_0x3f4504['getSelectedBlocks']())['filter'](_0x4c143a=>eo(_0x4c143a)||function(_0x1dd749,_0x3e8cd2){if(_0x1dd749['is']('rootElement')||_0x3e8cd2['isLimit'](_0x1dd749))return!0x1;return _0x3e8cd2['checkChild'](_0x1dd749['parent'],'codeBlock');}(_0x4c143a,_0x4a4301['schema'])):Array['from'](_0x3f4504['getSelectedBlocks']())['filter'](_0x5806a7=>eo(_0x5806a7));const _0x43f749=to(_0x5bb6f2,_0x4a4301);_0x4a4301['change'](()=>{for(const _0x2594f4 of _0x43f749)_0x509d57['markBlockFormat'](_0x2594f4,{'commandName':'codeBlock','commandParams':[{..._0x9e7da1,'forceValue':_0x1615b5}],'formatGroupId':'blockName'});});}),(_0x509d57['descriptionFactory']['registerElementLabel']('codeBlock',_0x580b24=>c(_0x750d65,'ELEMENT_CODE_BLOCK',_0x580b24)),_0x509d57['descriptionFactory']['registerDescriptionCallback'](_0xf74dff=>{if('formatBlock'!=_0xf74dff['type'])return;const _0x54a8cf=_0x750d65['t'],{data:_0x3ee497}=_0xf74dff;if(!_0x3ee497||'codeBlock'!=_0x3ee497['commandName'])return;const _0x44aa6e=_0x3ee497['commandParams'][0x0]['language'],_0x268d7a=_0x54a8cf(_0x4b877c['find'](_0x53053e=>_0x53053e['language']===_0x44aa6e)['label'])['toLowerCase']();return _0x3ee497['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x750d65,'*Set\x20format:*\x20%0',c(_0x750d65,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x268d7a+')')}:{'type':'format','content':c(_0x750d65,'*Remove\x20format:*\x20%0',c(_0x750d65,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3acff3){return'codeBlock'==_0x3acff3['name'];}class q extends _0x41653b{['afterInit'](){const _0x50dac1=this['editor'];if(!_0x50dac1['plugins']['has']('CommentsEditing'))return;_0x50dac1['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x5d106a,_0xa7587d,_0x52ece4){const _0x46b759=[];for(const _0x2ace21 of _0xa7587d['getItems']())_0x2ace21['hasAttribute'](_0x5d106a)&&_0x46b759['push'](_0x52ece4['createRangeOn'](_0x2ace21));return _0x46b759;}function Fe(_0x412c9c,_0x355a60,{showActiveMarker:_0xc960e=!0x0}={}){const _0x474fe9=_0x412c9c['plugins']['get']('TrackChangesEditing');return(_0x4eecf2,_0x5c8d6e,_0x1f4376)=>{if(!_0x1f4376['consumable']['test'](_0x5c8d6e['markerRange'],_0x4eecf2['name']))return;const _0x5354c6=_0x5c8d6e['markerRange']['getWalker'](),_0xa83186=_0x5c8d6e['markerRange']['start'],_0x4f2a71=_0x412c9c['model']['schema'];let _0x5ae5b7=null,_0x2dc2c7=null,_0x3f5d78=!0x1,_0x4bc870=!0x1;for(const _0x2c5d1c of _0x5354c6){const _0x1fee2f=_0x2c5d1c['item'];_0x3f5d78=_0x3f5d78||_0x4f2a71['isContent'](_0x1fee2f);const _0x24625f=_0x1f4376['mapper']['toViewElement'](_0x1fee2f);if(_0x24625f&&_0x24625f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2c5d1c['type']&&(_0x4f2a71['isBlock'](_0x1fee2f)&&!_0x4f2a71['isLimit'](_0x1fee2f)&&(_0x1fee2f['nextSibling']||_0xa83186['isAtEnd']?_0x5ae5b7&&_0x5ae5b7['parent']==_0x1fee2f||(_0x5ae5b7=_0x1fee2f,_0x168342(_0x2c5d1c['previousPosition']),_0x4bc870=!0x0):_0x2dc2c7=_0x2dc2c7||_0x2c5d1c['previousPosition']));}function _0x168342(_0x3d3299){const {authorId:_0x5b2d21}=_0x474fe9['_splitMarkerName'](_0x5c8d6e['markerName']),_0x4ab8b4=_0x1f4376['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x355a60,'data-author-id':_0x5b2d21}),_0x36b6bc=_0x1f4376['mapper']['toViewPosition'](_0x3d3299);_0xc960e&&_0x474fe9['activeMarkers']['includes'](_0x5c8d6e['markerName'])&&_0x1f4376['writer']['addClass']('ck-suggestion-marker--active',_0x4ab8b4),_0x1f4376['writer']['insert'](_0x36b6bc,_0x4ab8b4),_0x1f4376['mapper']['bindElementToMarker'](_0x4ab8b4,_0x5c8d6e['markerName']);}_0x3f5d78||_0x4bc870||!_0x2dc2c7||_0x168342(_0x2dc2c7);};}class z extends _0x41653b{static get['requires'](){return[_0x2a2f9b];}['init'](){const _0x5ee039=this['editor'],_0x3d8fd6=_0x5ee039['plugins']['get']('TrackChangesEditing');_0x3d8fd6['enableCommand']('delete');const _0x48d323=_0x5ee039['commands']['get']('deleteForward');_0x3d8fd6['enableCommand']('deleteForward',(_0xc24cfa,_0xa57736={})=>{const _0x2496ea=_0x5ee039['model']['createSelection'](_0x5ee039['model']['document']['selection']);_0x2496ea['isCollapsed']&&_0x5ee039['model']['modifySelection'](_0x2496ea,{'direction':'forward','unit':_0xa57736['unit']});const _0x51e22c=_0x2496ea['getFirstRange'](),_0x476e1b=_0x1b3826['fromRange'](_0x51e22c);let _0x1011d5;_0xc24cfa(_0xa57736),_0x1011d5='$graveyard'==_0x476e1b['root']['rootName']?_0x5ee039['model']['createRange'](_0x51e22c['start']):_0x5ee039['model']['createRange'](_0x476e1b['start'],_0x476e1b['end']),_0x476e1b['detach'](),_0x5ee039['model']['enqueueChange'](_0x48d323['buffer']['batch'],_0x274f69=>{_0x48d323['buffer']['lock'](),_0x274f69['setSelection'](_0x274f69['createRange'](_0x1011d5['end'])),_0x48d323['buffer']['unlock']();});}),_0x5ee039['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x5ee039,'merge'),{'priority':'high'}),_0x5ee039['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x448a63,_0x481011,_0x42b197)=>{_0x42b197['options']['showSuggestionHighlights']&&Fe(_0x5ee039,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x448a63,_0x481011,_0x42b197);},{'priority':'high'}),_0x5ee039['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x262908,_0x20042b,_0x2948c7)=>{const _0x2432fc=_0x2948c7['mapper']['markerNameToElements'](_0x20042b['markerName']);if(_0x2432fc){for(const _0x385cb5 of _0x2432fc)_0x385cb5['is']('uiElement')&&(_0x2948c7['mapper']['unbindElementFromMarkerName'](_0x385cb5,_0x20042b['markerName']),_0x2948c7['writer']['remove'](_0x385cb5));}},{'priority':'high'});}}class W extends _0x41653b{['afterInit'](){const _0xf2859a=this['editor'];if(!_0xf2859a['plugins']['has']('ListEditing'))return;const _0x4d9151=_0xf2859a['locale'],_0x212969=_0xf2859a['plugins']['get']('TrackChangesEditing'),_0x5e35b9=_0xf2859a['plugins']['has']('TodoListEditing'),_0xac3585=!!_0xf2859a['config']['get']('list.multiBlock');function _0x127b9c(_0x6b0864){return{'type':'format','content':''+c(_0x4d9151,'*Set\x20format:*\x20%0',_0x6b0864)};}function _0x3592de(_0x1204e4){return{'type':'format','content':''+c(_0x4d9151,'*Remove\x20format:*\x20%0',_0x1204e4)};}_0x212969['enableDefaultAttributesIntegration']('numberedList'),_0x212969['enableDefaultAttributesIntegration']('bulletedList'),_0x212969['enableDefaultAttributesIntegration']('customNumberedList'),_0x212969['enableDefaultAttributesIntegration']('customBulletedList'),_0x212969['enableDefaultAttributesIntegration']('indentList'),_0x212969['enableDefaultAttributesIntegration']('outdentList'),_0x212969['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x212969['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x212969['registerBlockAttribute']('listItemId'),_0x212969['registerBlockAttribute']('listType'),_0x212969['registerBlockAttribute']('listIndent'),_0xac3585&&(_0x212969['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x212969['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5e35b9&&(_0x212969['enableDefaultAttributesIntegration']('todoList'),_0x212969['enableDefaultAttributesIntegration']('checkTodoList'),_0x212969['registerBlockAttribute']('todoListChecked'),_0x212969['descriptionFactory']['registerDescriptionCallback'](_0x6a08ef=>{const {data:_0x8bdde1}=_0x6a08ef;if(_0x8bdde1&&'todoListChecked'==_0x8bdde1['key'])return{'type':'format','content':_0x8bdde1['newValue']?c(_0x4d9151,'*Check\x20item*'):c(_0x4d9151,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1fe847=>{if(_0x1fe847['batch']['isUndo'])return!0x1;let _0xe6a75a=!0x1;const _0x212339=_0x212969['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x452ca6=>'todoListChecked'===_0x212969['_getAttributeKey'](_0x452ca6));for(const _0x32e639 of _0x212339){'todo'!=_0x32e639['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x212969['_findSuggestions'](_0x32e639['getFirstRange'](),'attribute')['find'](_0x430d43=>'listType'===_0x212969['_getAttributeKey'](_0x430d43['suggestion']))||(_0x1fe847['removeMarker'](_0x32e639['getFirstMarker']()),_0xe6a75a=!0x0));}return _0xe6a75a;})),_0x212969['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x4d9151,'FORMAT_INDENT'));const _0x53d10c={'type':'format','content':''};_0x212969['descriptionFactory']['registerDescriptionCallback'](_0x5f2343=>{const {data:_0x1cd4f6}=_0x5f2343;if(!_0x1cd4f6||'listType'!=_0x1cd4f6['key'])return;let _0x5e9a2d=_0x5f2343['head'];for(;_0x5e9a2d;){if(_0x5e9a2d['data']&&(('listStyle'==_0x5e9a2d['data']['key']||'listMarkerStyle'==_0x5e9a2d['data']['key'])&&(_0x5e9a2d['data']['newValue']&&'default'!=_0x5e9a2d['data']['newValue']||'default'!=_0x5e9a2d['data']['oldValue']&&!_0x1cd4f6['newValue'])||!_0xac3585&&_0x5e9a2d['data']['key']==u))return _0x53d10c;_0x5e9a2d=_0x5e9a2d['next'];}if(null==_0x1cd4f6['newValue'])switch(_0x1cd4f6['oldValue']){case'bulleted':return _0x3592de(c(_0x4d9151,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3592de(c(_0x4d9151,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3592de(c(_0x4d9151,'ELEMENT_TODO_LIST'));}switch(_0x1cd4f6['newValue']){case'bulleted':return _0x127b9c(c(_0x4d9151,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x127b9c(c(_0x4d9151,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x127b9c(c(_0x4d9151,'ELEMENT_TODO_LIST'));}}),_0x212969['descriptionFactory']['registerDescriptionCallback'](_0x36bcdc=>{const {data:_0x319640}=_0x36bcdc;if(_0x319640&&'listIndent'==_0x319640['key'])return null==_0x319640['newValue']||null==_0x319640['oldValue']&&0x0==_0x319640['newValue']?_0x53d10c:void 0x0;}),_0x212969['descriptionFactory']['registerDescriptionCallback'](_0x88c247=>{if('attribute'!=_0x88c247['type'])return;const {data:_0x44c668}=_0x88c247;if(!_0x44c668||'listItemId'!=_0x44c668['key'])return;const _0x44fed5=Te(_0x88c247);return'newValue'==_0x44fed5?{'type':'format','content':c(_0x4d9151,'*Merge:*\x20list\x20item')}:'oldValue'==_0x44fed5?{'type':'format','content':c(_0x4d9151,'*Split:*\x20list\x20item')}:_0x53d10c;}),_0xf2859a['model']['document']['registerPostFixer'](_0x85836a=>this['listItemIdFixer'](_0x85836a)),_0xf2859a['model']['document']['registerPostFixer'](_0x4d97f6=>this['noTrackChangesFixer'](_0x4d97f6)),_0xf2859a['model']['document']['on']('change:data',(_0x288c07,_0x32f430)=>{if(_0x32f430['isUndo']||!_0x32f430['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x25ab9f){if(_0x25ab9f['batch']['isUndo']||!_0x25ab9f['batch']['isLocal'])return!0x1;let _0x1843d6=!0x1;const _0x4279f0=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x53af65=>_0x53af65['data']&&'listItemId'==_0x53af65['data']['key'])['filter'](_0x1b5dec=>_0x1b5dec['data']['newValue']&&_0x1b5dec['data']['oldValue']);for(const _0x5a74bf of _0x4279f0)Te(_0x5a74bf)||(_0x25ab9f['removeMarker'](_0x5a74bf['getFirstMarker']()),_0x1843d6=!0x0);return _0x1843d6;}['noTrackChangesFixer'](_0x791b54){if(_0x791b54['batch']['isUndo']||!_0x791b54['batch']['isLocal'])return!0x1;const _0x454942=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x454942['trackChangesCommand']['value'])return!0x1;let _0x45c12b=!0x1;const _0x577fd5=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1d1b1f=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x555533=>'attribute'==_0x555533['type'])['filter'](_0x285ded=>_0x577fd5['includes'](_0x285ded['attributeKey']));if(0x0==_0x1d1b1f['length'])return _0x45c12b;for(const _0x1a1c9b of _0x1d1b1f){const _0x5ef6e3=_0x454942['_findSuggestions'](_0x1a1c9b['range'],'attribute')['filter'](_0x3f3277=>!_0x3f3277['meta']['isNextTo'])['map'](_0xbb4c9b=>_0xbb4c9b['suggestion'])['filter'](_0xf12eef=>{const _0x112465=_0x454942['_getAttributeKey'](_0xf12eef);return _0x577fd5['includes'](_0x112465);});if(_0x5ef6e3['length']){for(const _0x418f33 of _0x5ef6e3)_0x791b54['removeMarker'](_0x418f33['getFirstMarker']());_0x45c12b=!0x0;}}return _0x45c12b;}['assureChains'](){const _0x244899=this['editor']['plugins']['get']('TrackChangesEditing'),_0x432dc3=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1668a9;const _0x120b98=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x16ca58=>{if(_0x16ca58['data']['oldRange']||!_0x16ca58['data']['newRange'])return null;if(!_0x16ca58['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5da03f}=_0x244899['_splitMarkerName'](_0x16ca58['name']);if(!_0x244899['hasSuggestion'](_0x5da03f))return null;const _0xadf73a=_0x244899['getSuggestion'](_0x5da03f);return _0x432dc3['includes'](_0xadf73a['data']['key']);})['map'](_0x395b1d=>{const {id:_0x5e3a80}=_0x244899['_splitMarkerName'](_0x395b1d['name']),_0x2c97c0=_0x244899['getSuggestion'](_0x5e3a80);return _0x1668a9=_0x2c97c0['attributes']['groupId'],_0x2c97c0['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x120b98['size'])return;const _0x2ed2f0=_0x244899['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x87df60=>'attribute'==_0x87df60['type']&&_0x87df60['data']&&_0x432dc3['includes'](_0x87df60['data']['key'])&&_0x87df60['attributes']['groupId']!=_0x1668a9)['map'](_0xe7fa7a=>({'listItem':_0xe7fa7a['getFirstRange']()['start']['nodeAfter'],'groupId':_0xe7fa7a['attributes']['groupId']})),_0x500b70=new Set();for(const {groupId:_0x222e7d,listItem:_0x117a30}of _0x2ed2f0)_0x120b98['has'](_0x117a30)&&_0x500b70['add'](_0x222e7d);for(const _0xde41c3 of _0x244899['getSuggestions']())_0x500b70['has'](_0xde41c3['attributes']['groupId'])&&_0xde41c3['setAttribute']('groupId',_0x1668a9);}['_supportLegacySuggestions'](){const _0x4f445a=this['editor'],_0x30fbdc=_0x4f445a['locale'],_0x56ed7a=_0x4f445a['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x56ed7a['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x278785,_0x488e6d){const _0x5afb42=[];for(let _0x500932 of _0x278785)_0x500932['start']['nodeAfter']===_0x500932['end']['parent']&&(_0x500932=_0x4f445a['model']['createRange'](_0x4f445a['model']['createPositionAt'](_0x500932['start']['nodeAfter'],0x0))),_0x5afb42['push'](_0x500932);_0x4f445a['model']['change'](_0x184320=>{const _0x5994a5=_0x4f445a['model']['document']['selection'],_0x558c6b=Array['from'](_0x5994a5['getRanges']())['map'](_0x1332c9=>_0x1b3826['fromRange'](_0x1332c9));_0x184320['setSelection'](_0x5afb42),_0x4f445a['commands']['get'](_0x488e6d['commandName'])['refresh'](),_0x488e6d['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4f445a['execute'](_0x488e6d['commandName'],..._0x488e6d['commandParams']),_0x184320['setSelection'](_0x558c6b);for(const _0x41d468 of _0x558c6b)_0x41d468['detach']();});}),_0x56ed7a['descriptionFactory']['registerElementLabel'](function(_0x8d5dfd){const _0xd9054d=!_0x4f445a['model']['schema']['isObject'](_0x8d5dfd),_0x4a8cee=_0x8d5dfd['previousSibling'],_0x59144e=_0x8d5dfd['nextSibling'],_0x3572fc=_0x8d5dfd['getAttribute']('listItemId'),_0x1346ce=!_0x4a8cee||_0x4a8cee['getAttribute']('listItemId')!==_0x3572fc,_0x3a5963=!_0x59144e||_0x59144e['getAttribute']('listItemId')!==_0x3572fc;return _0xd9054d&&Boolean(_0x3572fc)&&_0x1346ce&&_0x3a5963;},_0x2bd034=>c(_0x30fbdc,'ELEMENT_LIST_ITEM',_0x2bd034));}['_registerLegacyDescription'](){const _0x359a6b=this['editor'],_0x2a9407=_0x359a6b['locale'];function _0x2b085d(_0x548867){const _0x4835fe=_0x359a6b['commands']['get']('bulletedList')['value'],_0x21f100=_0x359a6b['commands']['get']('numberedList')['value'];return'numberedList'===_0x548867?_0x4835fe:_0x21f100;}_0x359a6b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3e532b){if('formatBlock'!=_0x3e532b['type'])return;const {data:_0x1c2de5}=_0x3e532b;if(!_0x1c2de5)return;let _0x1aa0f8,_0x4a34ee,_0x42f6c4,_0x598a95;switch(_0x1c2de5['commandName']){case'bulletedList':_0x42f6c4=_0x1c2de5['commandParams'][0x0]['forceValue'],_0x598a95=_0x2b085d(_0x1c2de5['commandName']),_0x1aa0f8=_0x42f6c4?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x598a95&&_0x359a6b['config']['get']('list.multiBlock')||(_0x1aa0f8='*Change\x20to:*\x20%0'),_0x4a34ee={'type':'format','content':c(_0x2a9407,_0x1aa0f8,c(_0x2a9407,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x42f6c4=_0x1c2de5['commandParams'][0x0]['forceValue'],_0x598a95=_0x2b085d(_0x1c2de5['commandName']),_0x1aa0f8=_0x42f6c4?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x598a95&&_0x359a6b['config']['get']('list.multiBlock')||(_0x1aa0f8='*Change\x20to:*\x20%0'),_0x4a34ee={'type':'format','content':c(_0x2a9407,_0x1aa0f8,c(_0x2a9407,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1aa0f8='*Indent:*\x20%0',_0x4a34ee={'type':'format','content':c(_0x2a9407,_0x1aa0f8,c(_0x2a9407,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1aa0f8=function(_0x58bd67){const _0x59248b=_0x58bd67['getFirstRange']();let _0x489c59=_0x59248b['start']['nodeAfter'];for(;_0x489c59&&_0x59248b['containsItem'](_0x489c59);){if(_0x489c59['getAttribute']('listIndent')>0x0)return!0x1;_0x489c59=_0x489c59['nextSibling'];}return!0x0;}(_0x3e532b)?c(_0x2a9407,'*Format:*\x20remove\x20from\x20%0',c(_0x2a9407,function(_0x5a9a49){return'ELEMENT_'+_0x5a9a49['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3e532b))):c(_0x2a9407,'*Outdent:*\x20%0',c(_0x2a9407,'ELEMENT_LIST_ITEM')),_0x4a34ee={'type':'format','content':_0x1aa0f8};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1c2de5['multipleBlocks']&&(_0x1aa0f8='*Merge:*\x20%0',_0x4a34ee={'type':'deletion','content':c(_0x2a9407,_0x1aa0f8,c(_0x2a9407,'ELEMENT_LIST_ITEM'))});}return _0x4a34ee;});}}function Te(_0x1bb8d0){let _0x2d51bc=_0x1bb8d0['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2d51bc;){const _0x3fd9d9=_0x2d51bc['getAttribute']('listItemId');if(!_0x3fd9d9)return!0x1;if(_0x3fd9d9==_0x1bb8d0['data']['newValue'])return'newValue';if(_0x3fd9d9==_0x1bb8d0['data']['oldValue'])return'oldValue';_0x2d51bc=_0x2d51bc['previousSibling'];}return!0x1;}class Se extends _0x41653b{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4eabca=this['editor']['config']['get']('list.properties'),_0x16fd28=this['editor']['plugins']['get']('TrackChangesEditing');_0x4eabca['styles']&&(_0x16fd28['enableDefaultAttributesIntegration']('listStyle'),_0x16fd28['registerBlockAttribute']('listStyle')),_0x4eabca['reversed']&&(_0x16fd28['enableDefaultAttributesIntegration']('listReversed'),_0x16fd28['registerBlockAttribute']('listReversed')),_0x4eabca['startIndex']&&(_0x16fd28['enableDefaultAttributesIntegration']('listStart'),_0x16fd28['registerBlockAttribute']('listStart'));const _0x376f22={'type':'format','content':''};_0x16fd28['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x31ff0d=this['editor']['locale'];_0x16fd28['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x31ff0d,'FORMAT_LIST_REVERSED')),_0x16fd28['descriptionFactory']['registerDescriptionCallback'](_0xb85ebc=>{const {data:_0x57c9b3}=_0xb85ebc;if(_0x57c9b3&&'listReversed'==_0x57c9b3['key'])return null==_0x57c9b3['newValue']||0x0==_0x57c9b3['newValue']&&null==_0x57c9b3['oldValue']?_0x376f22:void 0x0;}),_0x16fd28['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x31ff0d,'FORMAT_LIST_START')),_0x16fd28['descriptionFactory']['registerDescriptionCallback'](_0x3825ba=>{const {data:_0x39c212}=_0x3825ba;if(_0x39c212&&'listStart'==_0x39c212['key'])return null==_0x39c212['newValue']||0x1==_0x39c212['newValue']&&null==_0x39c212['oldValue']?_0x376f22:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4d7890=>{if(_0x4d7890['batch']['isUndo'])return!0x1;let _0x233669=!0x1;const _0x3193ba=_0x16fd28['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x7ee10b=>{const _0x33a26b=_0x16fd28['_getAttributeKey'](_0x7ee10b);return'listStart'==_0x33a26b||'listReversed'==_0x33a26b;});for(const _0x4dfe8e of _0x3193ba){const _0x34fc03=_0x4dfe8e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x34fc03||'customNumbered'==_0x34fc03)continue;_0x16fd28['_findSuggestions'](_0x4dfe8e['getFirstRange'](),'attribute')['find'](_0x24c34a=>'listType'==_0x16fd28['_getAttributeKey'](_0x24c34a['suggestion']))||(_0x4d7890['removeMarker'](_0x4dfe8e['getFirstMarker']()),_0x233669=!0x0);}return _0x233669;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x19fb34){const _0x1f2694=this['editor']['locale'],{data:_0x56d71d}=_0x19fb34,_0x173962={'type':'format','content':''};if(!_0x56d71d||'listStyle'!=_0x56d71d['key'])return;if(!_0x56d71d['oldValue'])return'default'==_0x56d71d['newValue']?_0x173962:{'type':'format','content':''+c(_0x1f2694,'*Set\x20format:*\x20%0',c(_0x1f2694,this['_getTranslationKeyForListStyle'](_0x56d71d['newValue'])))};if(!_0x56d71d['newValue']){if('default'==_0x56d71d['oldValue'])return _0x173962;let _0x2f7d5a=_0x19fb34['head'];for(;_0x2f7d5a;){if(_0x2f7d5a['data']&&'listType'==_0x2f7d5a['data']['key']&&_0x2f7d5a['data']['newValue'])return _0x173962;_0x2f7d5a=_0x2f7d5a['next'];}return{'type':'format','content':''+c(_0x1f2694,'*Remove\x20format:*\x20%0',c(_0x1f2694,this['_getTranslationKeyForListStyle'](_0x56d71d['oldValue'])))};}if('default'!=_0x56d71d['newValue'])return{'type':'format','content':''+c(_0x1f2694,'*Set\x20format:*\x20%0',c(_0x1f2694,this['_getTranslationKeyForListStyle'](_0x56d71d['newValue'])))};let _0x52cfda=_0x19fb34['head'];for(;_0x52cfda;){if(_0x52cfda['data']&&'listType'==_0x52cfda['data']['key']&&_0x52cfda['data']['newValue']&&_0x52cfda['data']['oldValue'])return _0x173962;_0x52cfda=_0x52cfda['next'];}return{'type':'format','content':c(_0x1f2694,'*Set\x20format:*\x20%0',c(_0x1f2694,'ELEMENT_'+_0x19fb34['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xd4124f=this['editor'],_0x1b953d=_0xd4124f['locale'];_0xd4124f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42ae9e=>{if('formatBlock'!=_0x42ae9e['type'])return;const {data:_0x1848a0}=_0x42ae9e;if(!_0x1848a0)return;let _0x210276,_0x1705c1;switch(_0x1848a0['commandName']){case'listStyle':_0x210276='*Change\x20to:*\x20%0',_0x1705c1={'type':'format','content':c(_0x1b953d,_0x210276,c(_0x1b953d,this['_getTranslationKeyForListStyle'](_0x1848a0['commandParams'][0x0]['type'])))};break;case'listReversed':_0x210276=_0x1848a0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1705c1={'type':'format','content':c(_0x1b953d,_0x210276)};break;case'listStart':_0x210276='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1705c1={'type':'format','content':c(_0x1b953d,_0x210276,_0x1848a0['commandParams'][0x0]['startIndex'])};}return _0x1705c1;});}['_getTranslationKeyForListStyle'](_0x4962c5){return'ELEMENT_'+function(_0x15a1ee){if(_e['includes'](_0x15a1ee))return'bulleted';if(Re['includes'](_0x15a1ee))return'numbered';return null;}(_0x4962c5)['toUpperCase']()+'_LIST_'+_0x4962c5['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x41653b{['afterInit'](){const _0x18d5d0=this['editor'];_0x18d5d0['commands']['get']('emoji')&&_0x18d5d0['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x41653b{static get['requires'](){return[_0x8da160];}['init'](){const _0x14eac3=this['editor'],_0x5a996b=_0x14eac3['plugins']['get']('TrackChangesEditing'),_0x5a9113=_0x14eac3['commands']['get']('enter');_0x5a996b['enableCommand']('enter',()=>{_0x14eac3['model']['change'](_0x46aabd=>{const _0x3f6161=_0x14eac3['model']['document']['selection'],_0x28e103=_0x3f6161['getFirstPosition'](),_0x23bb9d=_0x1b3826['fromRange'](_0x3f6161['getFirstRange']());if(_0x5a9113['enterBlock'](_0x46aabd)){const _0x52ff94=_0x14eac3['model']['createPositionAt'](_0x28e103['parent']['nextSibling'],0x0),_0x2c0fd3=_0x46aabd['createRange'](_0x28e103,_0x52ff94);_0x5a996b['markInsertion'](_0x2c0fd3);}else _0x46aabd['setSelection'](_0x46aabd['createRange'](_0x23bb9d['end']));_0x23bb9d['detach'](),_0x5a9113['fire']('afterExecute',{'writer':_0x46aabd});});}),_0x14eac3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x14eac3,'split'),{'priority':'high'}),_0x14eac3['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1dc83e,_0x277c69,_0x1ede9f)=>{const _0x1f8477=_0x1ede9f['mapper']['markerNameToElements'](_0x277c69['markerName']);if(_0x1f8477){for(const _0x2b498a of _0x1f8477)_0x2b498a['hasClass']('ck-suggestion-marker-split')&&(_0x1ede9f['mapper']['unbindElementFromMarkerName'](_0x2b498a,_0x277c69['markerName']),_0x1ede9f['writer']['remove'](_0x2b498a));}},{'priority':'high'}),_0x14eac3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x46ef3f,_0x51157b,_0x1a4cf4)=>{_0x1a4cf4['options']['showSuggestionHighlights']&&Fe(_0x14eac3,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x46ef3f,_0x51157b,_0x1a4cf4);},{'priority':'high'});}}class Z extends _0x41653b{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0xa69ddf=this['editor']['plugins']['get']('TrackChangesEditing');_0xa69ddf['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0xa69ddf['enableCommand']('findNext'),_0xa69ddf['enableCommand']('findPrevious'),_0xa69ddf['enableCommand']('replace'),_0xa69ddf['enableCommand']('replaceAll');}['handleFindCommand'](_0x1b1411,_0x473469,_0x1ed4f8={}){const _0x3b48b0=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1b1411(_0x36977d=>{let _0x575eaf=('string'==typeof _0x473469?_0x3b48b0['findByTextCallback'](_0x473469,_0x1ed4f8):_0x473469)(_0x36977d);Array['isArray'](_0x575eaf)&&(_0x575eaf={'results':_0x575eaf,'searchText':'string'==typeof _0x473469?_0x473469:''});const _0xeccba0=_0x575eaf['results']['filter'](_0x383a3e=>!0x1===this['_isInDeletionRange'](_0x383a3e,_0x36977d['item']));return{..._0x575eaf,'results':_0xeccba0};},_0x1ed4f8);}['_isInDeletionRange'](_0x5141e8,_0x3467cb){const _0x2106aa=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3467cb,_0x5141e8['start']),this['editor']['model']['createPositionAt'](_0x3467cb,_0x5141e8['end']));for(const _0x5a5c03 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2106aa['getIntersection'](_0x5a5c03['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x41653b{['afterInit'](){const _0x26fd6f=this['editor']['locale'],_0xd32b2c=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3d8146,commandName:_0x4e90fe}of ro)this['editor']['plugins']['has'](_0x3d8146)&&(_0xd32b2c['enableDefaultAttributesIntegration'](_0x4e90fe),_0xd32b2c['registerInlineAttribute'](_0x4e90fe));_0xd32b2c['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x26fd6f,'FORMAT_FONT_SIZE')),_0xd32b2c['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x26fd6f,'FORMAT_FONT_FAMILY')),_0xd32b2c['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x26fd6f,'FORMAT_FONT_COLOR')),_0xd32b2c['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x26fd6f,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55a497=this['editor'],_0x5d461e=_0x55a497['locale'];_0x55a497['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f4047=>{const _0xca6f30=_0x5d461e['t'];if('formatInline'!=_0x3f4047['type'])return;const {data:_0x5c3caa}=_0x3f4047;if(null!=_0x5c3caa){if('fontSize'==_0x5c3caa['commandName']){const _0xfca79b=_0x5c3caa['commandParams'][0x0]['value'];if(_0xfca79b){const _0xb0b7fd=_0xca6f30(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4e5669=>_0x4e5669['model']==_0xfca79b)['title'])['toLowerCase']();return{'type':'format','content':c(_0x5d461e,'*Set\x20font\x20size:*\x20%0',_0xb0b7fd)};}return{'type':'format','content':c(_0x5d461e,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5c3caa['commandName']){const _0x4c8f9a=_0x5c3caa['commandParams'][0x0]['value'];return _0x4c8f9a?{'type':'format','content':c(_0x5d461e,'*Set\x20font\x20family:*\x20%0',_0x4c8f9a)}:{'type':'format','content':c(_0x5d461e,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5c3caa['commandName']){const _0x1eb71c=_0x5c3caa['commandParams'][0x0]['value'];if(_0x1eb71c){const _0x5c0afe=_0x3eb3a7(this['editor']['config']['get']('fontColor.colors'))['find'](_0xadacac=>_0xadacac['model']==_0x1eb71c);let _0x3fc9b1=_0x1eb71c,_0x3e3209='';return _0x5c0afe&&(_0x3fc9b1=_0x5c0afe['label'],_0x3e3209=_0xca6f30(_0x3fc9b1)['toLowerCase']()),{'type':'format','content':c(_0x5d461e,'*Set\x20font\x20color:*\x20%0',_0x3e3209)['trim'](),'color':{'value':_0x1eb71c,'title':_0x3e3209||_0x3fc9b1}};}return{'type':'format','content':c(_0x5d461e,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5c3caa['commandName']){const _0x350fd8=_0x5c3caa['commandParams'][0x0]['value'];if(_0x350fd8){const _0x4d0dc2=_0x3eb3a7(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x79f33=>_0x79f33['model']==_0x350fd8);let _0x5ec0b7=_0x350fd8,_0x2fa01b='';return _0x4d0dc2&&(_0x5ec0b7=_0x4d0dc2['label'],_0x2fa01b=_0xca6f30(_0x5ec0b7)['toLowerCase']()),{'type':'format','content':c(_0x5d461e,'*Set\x20font\x20background\x20color:*\x20%0',_0x2fa01b)['trim'](),'color':{'value':_0x350fd8,'title':_0x2fa01b||_0x5ec0b7}};}return{'type':'format','content':c(_0x5d461e,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x41653b{['afterInit'](){const _0x361caa=this['editor'],_0x5c7ce1=_0x361caa['plugins']['get']('TrackChangesEditing'),_0x24a227=_0x361caa['commands']['get']('copyFormat'),_0x25fbcc=_0x361caa['commands']['get']('pasteFormat');_0x24a227&&_0x25fbcc&&(_0x5c7ce1['enableDefaultAttributesIntegration']('pasteFormat'),_0x5c7ce1['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3427f5=this['editor'],_0x2bb23d=_0x3427f5['locale'];_0x3427f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19341a=>{if('formatBlock'!=_0x19341a['type']&&'formatInline'!=_0x19341a['type'])return;const {data:_0x4824a7}=_0x19341a;if(_0x4824a7&&'pasteFormat'===_0x4824a7['commandName']){const _0x33ee1e=[],_0x55dd55=_0x4824a7['commandParams'][0x0];for(const [_0x1d97c3,_0x6058b5]of Object['entries'](_0x55dd55))_0x33ee1e['push'](so(_0x3427f5,_0x1d97c3,_0x6058b5));return _0x33ee1e['length']?{'type':'format','content':c(_0x2bb23d,'*Set\x20format\x20to:*\x20%0',_0x33ee1e['join'](',\x20'))}:{'type':'format','content':c(_0x2bb23d,'*Remove\x20all\x20formatting*')};}});}}function so(_0x2f9159,_0x5593eb,_0x36c0de){const _0xa839f2=_0x2f9159['locale']['t'],_0x11013d=_0x5593eb['split'](/(?=[A-Z])/)['join']('\x20'),_0x2f1dab=_0xa839f2(_0x11013d['charAt'](0x0)['toUpperCase']()+_0x11013d['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x36c0de)return _0x2f1dab;if('fontColor'===_0x5593eb||'fontBackgroundColor'===_0x5593eb){const _0x4f7956=_0x3eb3a7(_0x2f9159['config']['get']('fontColor.colors'))['find'](_0xfdded=>_0xfdded['model']==_0x36c0de);return _0x2f1dab+'\x20('+(_0x4f7956?_0xa839f2(_0x4f7956['label'])['toLowerCase']():_0x36c0de)+')';}if('fontSize'===_0x5593eb&&isNaN(parseFloat(_0x36c0de))){const _0xef1874=_0x2f9159['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2f9159['config']['get']('fontSize.options'))['find'](_0x2c14b4=>_0x2c14b4['model']==_0x36c0de);return _0x2f1dab+'\x20('+(_0xef1874?_0xa839f2(_0xef1874['title'])['toLowerCase']():_0x36c0de)+')';}return _0x2f1dab+'\x20('+_0x36c0de+')';}class nt extends _0x41653b{['_headingOptions'];['afterInit'](){const _0x4741f0=this['editor'];if(!_0x4741f0['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4741f0['config']['get']('heading.options');const _0x38fd51=_0x4741f0['locale'],_0x4cd662=_0x4741f0['plugins']['get']('TrackChangesEditing');_0x4cd662['enableDefaultAttributesIntegration']('heading');for(const _0xf271c0 of this['_headingOptions'])'paragraph'!=_0xf271c0['model']&&_0x4cd662['descriptionFactory']['registerElementLabel'](_0xf271c0['model'],_0xda0e12=>{const _0x118453=this['_getHeadingLevel'](_0xf271c0['model']);return null!==_0x118453?_0x46f9d7(_0xda0e12,_0x118453):_0x347f92(_0xda0e12,_0xf271c0['title']);});function _0x46f9d7(_0x385e1a,_0x1610d0){return c(_0x38fd51,'ELEMENT_HEADING',[_0x385e1a,_0x1610d0]);}function _0x347f92(_0x2d30b0,_0x419100){return c(_0x38fd51,'ELEMENT_HEADING_CUSTOM',[_0x2d30b0,_0x419100]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19dc68=this['editor'],_0x47c8b1=_0x19dc68['locale'];function _0x1388df(_0x549eff,_0x391891){return c(_0x47c8b1,'ELEMENT_HEADING_CUSTOM',[_0x549eff,_0x391891]);}_0x19dc68['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41fd3e=>{if('formatBlock'!=_0x41fd3e['type'])return;const {data:_0x2dfd76}=_0x41fd3e;if(_0x2dfd76&&'heading'==_0x2dfd76['commandName']){const _0x3406b4=_0x2dfd76['commandParams'][0x0]['value'],_0x529f71=this['_getHeadingLevel'](_0x3406b4);if(null!==_0x529f71)return{'type':'format','content':c(_0x47c8b1,'*Change\x20to:*\x20%0',(_0x2d39c9=0x1,_0x13f03a=_0x529f71,c(_0x47c8b1,'ELEMENT_HEADING',[_0x2d39c9,_0x13f03a])))};const _0x33be05=this['_headingOptions']['find'](_0x43d991=>_0x43d991['model']===_0x3406b4)['title'];return{'type':'format','content':c(_0x47c8b1,'*Change\x20to:*\x20%0',_0x1388df(0x1,_0x33be05))};}var _0x2d39c9,_0x13f03a;});}['_getHeadingLevel'](_0x5847d1){const _0x555e2b=_0x5847d1['match'](/^heading(\d+)/);if(_0x555e2b)return _0x555e2b[0x1];const _0x35b648=this['_headingOptions']?.['find'](_0x18956d=>_0x18956d['model']==_0x5847d1);if(_0x35b648&&_0x35b648['view']){const _0x4d3dd8=_0x35b648['view'],_0x172862=(_0x4d3dd8['name']??_0x4d3dd8)['match'](/^h(\d+)/);if(_0x172862)return _0x172862[0x1];}return null;}}class it extends _0x41653b{['afterInit'](){const _0xaa468a=this['editor'];if(!_0xaa468a['plugins']['has']('HighlightEditing'))return;const _0x37b48c=_0xaa468a['plugins']['get']('TrackChangesEditing'),_0x3ba9c6=_0xaa468a['locale'];_0x37b48c['enableDefaultAttributesIntegration']('highlight'),_0x37b48c['registerInlineAttribute']('highlight'),_0x37b48c['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x3ba9c6,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x473b20=this['editor'],_0x4ca7d0=_0x473b20['locale'];_0x473b20['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x368eb1=>{if('formatInline'!=_0x368eb1['type'])return;const {data:_0x57f7f8}=_0x368eb1;if(_0x57f7f8&&'highlight'==_0x57f7f8['commandName']){const _0x71ac30=_0x4ca7d0['t'],_0x4024d2=_0x57f7f8['commandParams'][0x0]['value'];if(_0x4024d2){const _0x5a8393=_0x473b20['config']['get']('highlight.options')['find'](_0x502eec=>_0x502eec['model']==_0x4024d2),_0x240d2c=_0x71ac30(_0x5a8393['title'])['toLowerCase']();return{'type':'format','content':c(_0x4ca7d0,'*Set\x20highlight:*\x20%0',_0x240d2c),'color':{'value':_0x5a8393['color'],'title':_0x5a8393['title']}};}return{'type':'format','content':c(_0x4ca7d0,'*Remove\x20highlight*',c(_0x4ca7d0,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x41653b{['afterInit'](){const _0x16d9ae=this['editor'];if(!_0x16d9ae['plugins']['has']('HorizontalLineEditing'))return;_0x16d9ae['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x523794=_0x16d9ae['plugins']['get']('TrackChangesEditing'),_0x274d2f=_0x16d9ae['locale'];_0x523794['descriptionFactory']['registerElementLabel']('horizontalLine',_0x161d92=>c(_0x274d2f,'ELEMENT_HORIZONTAL_LINE',_0x161d92)),_0x16d9ae['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x587bbc,{writer:_0x149ba8,options:_0x3bc703})=>{if(!_0x3bc703['showSuggestionHighlights'])return null;const _0x27c883=_0x149ba8['createContainerElement']('div'),_0x34213c=_0x149ba8['createEmptyElement']('hr');return _0x149ba8['addClass']('ck-horizontal-line',_0x27c883),_0x149ba8['insert'](_0x149ba8['createPositionAt'](_0x27c883,0x0),_0x34213c),_0x27c883;},'converterPriority':'high'});}}class ot extends _0x41653b{['afterInit'](){const _0x5444b6=this['editor'];if(!_0x5444b6['plugins']['has']('HtmlEmbed'))return;const _0x8caf8e=_0x5444b6['plugins']['get']('TrackChangesEditing'),_0x3655bf=_0x5444b6['locale'];_0x8caf8e['descriptionFactory']['registerElementLabel']('rawHtml',_0x30b522=>c(_0x3655bf,'ELEMENT_HTML_EMBED',_0x30b522)),_0x8caf8e['enableDefaultAttributesIntegration']('htmlEmbed'),_0x8caf8e['registerBlockAttribute']('value'),_0x8caf8e['descriptionFactory']['registerDescriptionCallback'](_0x12f510=>{if('attribute'!=_0x12f510['type'])return;const {data:_0xfb1542}=_0x12f510;if(_0xfb1542&&'value'==_0xfb1542['key']&&_0x12f510['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x477a30=c(_0x3655bf,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x3655bf,'*Change\x20%0\x20content*',_0x477a30)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c4561=this['editor'],_0xc4f6a2=_0x5c4561['locale'];_0x5c4561['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fdd75=>{if('formatBlock'!=_0x4fdd75['type'])return;const {data:_0x184cb3}=_0x4fdd75;if(_0x184cb3&&'htmlEmbed'==_0x184cb3['commandName']){const _0x20f4ac=c(_0xc4f6a2,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0xc4f6a2,'*Change\x20%0\x20content*',_0x20f4ac)};}});}}class rt extends _0x41653b{['afterInit'](){const _0x2f24dd=this['editor'];if(!_0x2f24dd['plugins']['has']('ImageEditing'))return;const _0x14882a=_0x2f24dd['plugins']['get']('TrackChangesEditing'),_0x2e3053=_0x2f24dd['plugins']['get']('ImageUtils'),_0x472c6a=_0x2f24dd['locale'];_0x14882a['enableCommand']('insertImage'),_0x14882a['descriptionFactory']['registerElementLabel']('imageBlock',_0x2083a7=>c(_0x472c6a,'ELEMENT_IMAGE',_0x2083a7)),_0x14882a['descriptionFactory']['registerElementLabel']('imageInline',_0x2a06f0=>c(_0x472c6a,'ELEMENT_INLINE_IMAGE',_0x2a06f0)),_0x14882a['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x472c6a,'ELEMENT_CAPTION')),_0x2f24dd['plugins']['has']('ImageUploadEditing')&&_0x14882a['enableCommand']('uploadImage'),_0x2f24dd['plugins']['has']('ImageBlockEditing')&&_0x2f24dd['plugins']['has']('ImageInlineEditing')&&(_0x14882a['enableCommand']('imageTypeInline',(_0x27ef90,_0x29686b)=>{const _0x5c9bc7=_0x2e3053['getClosestSelectedImageElement'](_0x2f24dd['model']['document']['selection']);_0x2f24dd['model']['change'](()=>{_0x14882a['markBlockFormat'](_0x5c9bc7,{'commandName':'imageTypeInline','commandParams':[_0x29686b]},[],'convertBlockImageToInline');});}),_0x14882a['enableCommand']('imageTypeBlock',(_0x412f9c,_0x5088bb)=>{_0x2f24dd['model']['change'](_0x3441e1=>{let _0x409c57=_0x2e3053['getClosestSelectedImageElement'](_0x2f24dd['model']['document']['selection']),_0x418e80=_0x3441e1['createRangeOn'](_0x409c57);const _0x1f10a5=_0x3682c7['fromPosition'](_0x418e80['start'],'toPrevious'),_0x3b9523=_0x3682c7['fromPosition'](_0x418e80['end'],'toNext');_0x14882a['forceDefaultExecution'](()=>_0x412f9c(_0x5088bb)),_0x409c57=_0x2e3053['getClosestSelectedImageElement'](_0x2f24dd['model']['document']['selection']),_0x418e80=_0x3441e1['createRangeOn'](_0x409c57);const _0x395008=_0x3441e1['createRange'](_0x1f10a5,_0x3b9523);_0x1f10a5['detach'](),_0x3b9523['detach'](),_0x14882a['markBlockFormat'](_0x409c57,{'commandName':'imageTypeInline','commandParams':[_0x5088bb]},[],'convertInlineImageToBlock'),_0x395008['start']['isBefore'](_0x418e80['start'])&&_0x14882a['markInsertion'](_0x3441e1['createRange'](_0x395008['start'],_0x418e80['start']),'convertInlineImageToBlock'),_0x418e80['end']['isBefore'](_0x395008['end'])&&_0x14882a['markInsertion'](_0x3441e1['createRange'](_0x418e80['end'],_0x395008['end']),'convertInlineImageToBlock');});}),_0x14882a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x14882a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x14882a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x14882a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x14882a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x14882a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xb09c07])=>{const _0x2fceaf=_0x14882a['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x377cae=_0xb09c07['start'],_0x1e29d7=_0xb09c07['end'];const _0x59be4b=_0x2f24dd['model']['schema']['getNearestSelectionRange'](_0x377cae,'backward'),_0x4f6e7c=_0x2f24dd['model']['schema']['getNearestSelectionRange'](_0x1e29d7,'forward');_0x59be4b['isCollapsed']&&(_0x377cae=_0x59be4b['start']),_0x4f6e7c['isCollapsed']&&(_0x1e29d7=_0x4f6e7c['end']),_0x2fceaf([_0x2f24dd['model']['createRange'](_0x377cae,_0x1e29d7)]);}),_0x14882a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x28153b),_0x14882a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x28153b)),_0x2f24dd['plugins']['has']('ImageCaptionEditing')&&(_0x14882a['enableCommand']('toggleImageCaption',(_0x20d3e2,_0x256108)=>{const _0x3c9227=_0x2f24dd['plugins']['get']('ImageCaptionUtils');let _0x25d15a=_0x2e3053['getClosestSelectedImageElement'](_0x2f24dd['model']['document']['selection']),_0x1cb09a=_0x3c9227['getCaptionFromImageModelElement'](_0x25d15a);_0x2f24dd['model']['change'](()=>{if(_0x1cb09a)return void _0x14882a['markDeletion'](_0x2f24dd['model']['createRangeOn'](_0x1cb09a));const _0x3e5adc=_0x2e3053['isBlockImage'](_0x25d15a);_0x20d3e2(_0x256108),_0x25d15a=_0x2e3053['getClosestSelectedImageElement'](_0x2f24dd['model']['document']['selection']),_0x1cb09a=_0x3c9227['getCaptionFromImageModelElement'](_0x25d15a),_0x14882a['markInsertion'](_0x2f24dd['model']['createRangeOn'](_0x1cb09a),_0x3e5adc?null:'imageCaption');});}),_0x14882a['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x28153b));const _0xa99a86=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1a6bcd(_0x166bd8,_0x32b28b){const _0x52bfe8=_0xa99a86['findIndex'](({type:_0x12662b,subType:_0x22b251})=>_0x166bd8['type']==_0x12662b&&_0x166bd8['subType']==_0x22b251),_0x25ac05=_0xa99a86['findIndex'](({type:_0x226f7a,subType:_0x103247})=>_0x32b28b['type']==_0x226f7a&&_0x32b28b['subType']==_0x103247);if(_0x52bfe8<0x0||_0x25ac05<0x0)return!0x1;const _0x3fe1a2=_0x166bd8['getFirstRange'](),_0xbfa7da=_0x32b28b['getFirstRange']();if((0x0==_0x52bfe8||0x1==_0x52bfe8)&&0x2==_0x25ac05&&_0x3fe1a2['isIntersecting'](_0xbfa7da))return!0x0;if(0x2==_0x52bfe8&&0x3==_0x25ac05){const _0x11f338=_0x14882a['_findSuggestions'](_0x3fe1a2,'insertion')['filter'](({suggestion:_0x5b7af6,meta:_0x553cc0})=>_0x553cc0['isOwn']&&'convertInlineImageToBlock'==_0x5b7af6['subType']);if(_0x11f338['length']>0x1&&_0xbfa7da['end']['isEqual'](_0x3fe1a2['start']))return!0x0;if(0x1==_0x11f338['length']&&(_0x3fe1a2['start']['isEqual'](_0xbfa7da['end'])||_0x3fe1a2['end']['isEqual'](_0xbfa7da['start'])))return!0x0;}if(0x3==_0x52bfe8&&0x3==_0x25ac05&&_0x3fe1a2['start']['isBefore'](_0xbfa7da['start'])){const _0x2639d1=_0x3fe1a2['end']['nodeAfter'],_0x575073=_0xbfa7da['start']['nodeBefore'];return _0x2e3053['isBlockImage'](_0x2639d1)&&_0x2639d1===_0x575073;}return!0x1;}function _0x28153b(_0x302385,_0x13aca6){return _0x1a6bcd(_0x302385,_0x13aca6)?[_0x302385,_0x13aca6]:_0x1a6bcd(_0x13aca6,_0x302385)?[_0x13aca6,_0x302385]:null;}_0x2f24dd['plugins']['has']('ImageResize')&&(_0x14882a['enableDefaultAttributesIntegration']('resizeImage'),_0x14882a['registerBlockAttribute']('resizedWidth'),_0x14882a['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x472c6a,'FORMAT_IMAGE_SIZE'))),_0x2f24dd['plugins']['has']('ImageTextAlternativeEditing')&&(_0x14882a['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x14882a['registerBlockAttribute']('alt')),_0x2f24dd['plugins']['has']('PictureEditing')&&(_0x14882a['registerBlockAttribute']('sources'),_0x14882a['descriptionFactory']['registerDescriptionCallback'](_0x3a8d96=>{if('attribute'!=_0x3a8d96['type'])return;const {data:_0x33a25b}=_0x3a8d96;return _0x33a25b&&'sources'==_0x33a25b['key']?{'type':'format','content':''}:void 0x0;})),_0x2f24dd['plugins']['has']('ImageSizeAttributes')&&(_0x14882a['registerBlockAttribute']('width'),_0x14882a['registerBlockAttribute']('height'),_0x14882a['descriptionFactory']['registerDescriptionCallback'](_0xb851d0=>{if('attribute'!=_0xb851d0['type'])return;const {data:_0xec3c55}=_0xb851d0;return!_0xec3c55||'width'!=_0xec3c55['key']&&'height'!=_0xec3c55['key']?void 0x0:{'type':'format','content':''};})),_0x14882a['descriptionFactory']['registerDescriptionCallback'](_0x3fa02f=>{if(!!_0xa99a86['find'](({type:_0x478047,subType:_0x23a267})=>_0x3fa02f['type']==_0x478047&&_0x3fa02f['subType']==_0x23a267))return _0x3fa02f['previous']?{}:void 0x0;}),_0x14882a['descriptionFactory']['registerDescriptionCallback'](_0x3b3e8e=>{if('insertion'==_0x3b3e8e['type']||'deletion'==_0x3b3e8e['type']){const _0x30ab3f=_0x3b3e8e['getContainedElement']();if(_0x30ab3f&&_0x30ab3f['is']('element','caption'))return{'type':'insertion'==_0x3b3e8e['type']?'addObject':'removeObject','element':_0x30ab3f,'quantity':0x1};}}),_0x14882a['descriptionFactory']['registerDescriptionCallback'](_0x2acac6=>'formatBlock'==_0x2acac6['type']&&'convertInlineImageToBlock'==_0x2acac6['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2acac6['type']&&'convertBlockImageToInline'==_0x2acac6['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x14882a['descriptionFactory']['registerDescriptionCallback'](_0x4e90b0=>{if('attribute'!=_0x4e90b0['type'])return;const {data:_0x1b28b3}=_0x4e90b0;if(!_0x1b28b3||'alt'!=_0x1b28b3['key'])return;const _0x47d133=_0x1b28b3['newValue'];return _0x47d133?{'type':'format','content':c(_0x472c6a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x47d133+'\x22')}:{'type':'format','content':c(_0x472c6a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32b11c=this['editor'],_0x228db4=_0x32b11c['locale'];_0x32b11c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54cdf5=>{if('formatBlock'!=_0x54cdf5['type']&&'formatInline'!=_0x54cdf5['type'])return;const {data:_0xc26595}=_0x54cdf5;if(_0xc26595){if('imageTextAlternative'==_0xc26595['commandName']){const _0x29b2f5=_0xc26595['commandParams'][0x0]['newValue'];return _0x29b2f5?{'type':'format','content':c(_0x228db4,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x29b2f5+'\x22')}:{'type':'format','content':c(_0x228db4,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xc26595['commandName']){const _0x4990d0=_0xc26595['commandParams'][0x0]['width'];return _0x4990d0?{'type':'format','content':c(_0x228db4,'*Set\x20image\x20width:*\x20%0',_0x4990d0)}:{'type':'format','content':c(_0x228db4,'*Reset\x20image\x20width*')};}}});}}class at extends _0x41653b{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x383351=this['editor']['locale'],_0x22034c=this['editor']['plugins']['get']('TrackChangesEditing');_0x22034c['enableDefaultAttributesIntegration']('replaceImageSource'),_0x22034c['registerBlockAttribute']('src'),_0x22034c['descriptionFactory']['registerDescriptionCallback'](_0x1fd94a=>{if('attribute'!=_0x1fd94a['type'])return;const {data:_0x33aae3}=_0x1fd94a;return _0x33aae3&&'src'==_0x33aae3['key']?_0x33aae3['newValue']&&_0x33aae3['oldValue']?{'type':'format','content':c(_0x383351,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x285276=this['editor']['plugins']['get']('TrackChangesEditing');_0x285276['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x285276['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x285276['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x285276['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31106f=this['editor'],_0x401d8b=_0x31106f['locale'];_0x31106f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3720a0=>{if('formatBlock'!=_0x3720a0['type']&&'formatInline'!=_0x3720a0['type'])return;const {data:_0x3f0b76}=_0x3720a0;if(!_0x3f0b76||'replaceImageSource'!=_0x3f0b76['commandName'])return;return{'type':'format','content':c(_0x401d8b,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x41653b{['afterInit'](){const _0x5a1b43=this['editor'];if(!_0x5a1b43['plugins']['has']('ImageStyleEditing'))return;const _0x1c444f=_0x5a1b43['plugins']['get']('TrackChangesEditing'),_0x1ed891=_0x5a1b43['plugins']['get']('ImageUtils'),_0x5c7b09={};_0x1c444f['enableCommand']('imageStyle',(_0x5e82c4,_0x356862)=>{const _0x55ab29=_0x5a1b43['plugins']['get']('Users')['me'],_0x4d1d57=_0x5a1b43['commands']['get']('imageStyle');let _0x3730ab=_0x1ed891['getClosestSelectedImageElement'](_0x5a1b43['model']['document']['selection']),_0x31faf8=_0x5a1b43['model']['createRangeOn'](_0x3730ab),_0xadf28f=_0x4d1d57['value'];if(_0xadf28f==_0x356862['value'])return;const _0x3c2b5f={'commandName':'imageStyle','commandParams':[_0x356862],'formatGroupId':_0x2c3492()};_0x5a1b43['model']['change'](()=>{if(_0x1c444f['getSuggestions']()['filter'](_0x2cce6e=>_0x2cce6e['isInContent']&&_0x55ab29==_0x2cce6e['author']&&('formatBlock'==_0x2cce6e['type']||'formatInline'==_0x2cce6e['type'])&&('imageStylePreApply'==_0x2cce6e['subType']||'imageStylePostApply'==_0x2cce6e['subType'])&&_0x2cce6e['getFirstRange']()['isEqual'](_0x31faf8))['forEach'](_0x14fc0d=>_0x1c444f['discardSuggestion'](_0x14fc0d['head'])),_0x3730ab=_0x1ed891['getClosestSelectedImageElement'](_0x5a1b43['model']['document']['selection']),_0x31faf8=_0x5a1b43['model']['createRangeOn'](_0x3730ab),_0x4d1d57['refresh'](),_0x5a1b43['commands']['get']('imageTypeInline')['refresh'](),_0x5a1b43['commands']['get']('imageTypeBlock')['refresh'](),_0xadf28f=_0x4d1d57['value'],_0xadf28f!=_0x356862['value'])return _0x1ed891['isInlineImage'](_0x3730ab)&&_0x4d1d57['shouldConvertImageType'](_0x356862['value'],_0x3730ab)?(_0x5e82c4({..._0x356862,'setImageSizes':!0x1}),_0x3730ab=_0x1ed891['getClosestSelectedImageElement'](_0x5a1b43['model']['document']['selection']),void _0x1c444f['markBlockFormat'](_0x3730ab,{..._0x3c2b5f,'commandReversedParams':[{'value':_0xadf28f||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1ed891['isBlockImage'](_0x3730ab)?_0x1c444f['markBlockFormat'](_0x3730ab,_0x3c2b5f,[],'imageStylePostApply'):_0x1c444f['markInlineFormat'](_0x31faf8,_0x3c2b5f,'imageStylePostApply'));});});for(const _0x4edbc6 of _0x5a1b43['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5c7b09[_0x4edbc6['name']]=_0x4edbc6['title']['toLowerCase']();_0x1c444f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1c444f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1c444f['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1c444f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x19f0c5])=>{_0x1ed891['setImageNaturalSizeAttributes'](_0x19f0c5['getContainedElement']());}),_0x1c444f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x179d1d,_0x263941)=>{_0x1c444f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x179d1d,{'commandName':_0x263941['commandName'],'commandParams':_0x263941['commandReversedParams']});}),_0x1c444f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x461ae5,_0x5bebd2){if(_0x32fea9(_0x461ae5,_0x5bebd2))return[_0x461ae5,_0x5bebd2];if(_0x32fea9(_0x5bebd2,_0x461ae5))return[_0x5bebd2,_0x461ae5];return null;});const _0x5b5b75=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x32fea9(_0x1b010d,_0x1a83e7){const _0x463116=_0x5b5b75['findIndex'](({type:_0x527ae7,subType:_0x1ee217})=>_0x1b010d['type']==_0x527ae7&&_0x1b010d['subType']==_0x1ee217),_0x48fef2=_0x5b5b75['findIndex'](({type:_0x435d86,subType:_0x407329})=>_0x1a83e7['type']==_0x435d86&&_0x1a83e7['subType']==_0x407329);if(_0x463116<0x0||_0x48fef2<0x0)return!0x1;const _0x2c6c4b=_0x1b010d['getFirstRange'](),_0x3beae8=_0x1a83e7['getFirstRange']();if((0x0==_0x463116||0x1==_0x463116)&&0x2==_0x48fef2&&_0x2c6c4b['isIntersecting'](_0x3beae8))return!0x0;if(0x2==_0x463116&&0x3==_0x48fef2){const _0x2940f3=_0x1c444f['_findSuggestions'](_0x2c6c4b,'insertion')['filter'](({suggestion:_0x1a0478,meta:_0x2fb84d})=>_0x2fb84d['isOwn']&&'convertInlineImageToBlock'==_0x1a0478['subType']);if(_0x2940f3['length']>0x1&&_0x3beae8['end']['isEqual'](_0x2c6c4b['start']))return!0x0;if(0x1==_0x2940f3['length']&&(_0x2c6c4b['start']['isEqual'](_0x3beae8['end'])||_0x2c6c4b['end']['isEqual'](_0x3beae8['start'])))return!0x0;}if(0x3==_0x463116&&0x3==_0x48fef2&&_0x2c6c4b['start']['isBefore'](_0x3beae8['start'])){const _0x5ecd42=_0x2c6c4b['end']['nodeAfter'],_0x43d6fd=_0x3beae8['start']['nodeBefore'];return _0x1ed891['isBlockImage'](_0x5ecd42)&&_0x5ecd42===_0x43d6fd;}return!0x1;}_0x5a1b43['model']['document']['registerPostFixer'](()=>{let _0x4f1404=!0x1;const _0x45b66a=Array['from'](_0x5a1b43['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5083ac,data:_0x36c5ef}of _0x45b66a){const {group:_0x14270b,type:_0x3e189b,subType:_0x3585bc,id:_0xa1fbdf}=_0x1c444f['_splitMarkerName'](_0x5083ac);if('suggestion'==_0x14270b&&_0x1c444f['hasSuggestion'](_0xa1fbdf)){if('formatBlock'==_0x3e189b&&('imageStylePreApply'==_0x3585bc||'imageStylePostApply'==_0x3585bc)){const _0x3eb657=_0x1c444f['getSuggestion'](_0xa1fbdf);if(_0x36c5ef['newRange']){const _0x2b8896=_0x3eb657['getFirstRange']()['getContainedElement']();if(_0x1ed891['isBlockImage'](_0x2b8896))continue;_0x1c444f['discardSuggestion'](_0x3eb657),_0x4f1404=!0x0;}}if('insertion'==_0x3e189b&&'imageCaption'==_0x3585bc&&!_0x36c5ef['newRange']){const _0x3c7784=_0x1c444f['getSuggestion'](_0xa1fbdf);_0x3c7784['next']&&_0x3c7784['next']['isInContent']&&(_0x1c444f['discardSuggestion'](_0x3c7784['next']),_0x4f1404=!0x0);}}}return _0x4f1404;}),this['_registerLegacyDescription'](_0x5c7b09);}['_registerLegacyDescription'](_0x5870a8){const _0x2dd5d9=this['editor'],_0x587e74=_0x2dd5d9['locale'];_0x2dd5d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x459d77=>{if('formatBlock'!=_0x459d77['type']&&'formatInline'!=_0x459d77['type'])return;const {data:_0x51fdd6}=_0x459d77;if(!_0x51fdd6||'imageStyle'!=_0x51fdd6['commandName'])return;const _0x11e7d7=_0x51fdd6['commandParams'][0x0]['value'];return _0x1a4fdd('side'===_0x11e7d7?c(_0x587e74,'FORMAT_SIDE_IMAGE'):_0x5870a8[_0x11e7d7]||_0x11e7d7);function _0x1a4fdd(_0x324885){return{'type':'format','content':c(_0x587e74,'*Format:*\x20%0',_0x324885)};}});}}class ut extends _0x41653b{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3b33d1){super(_0x3b33d1),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2465d9=this['editor'],_0x2a9c0e=_0x2465d9['commands']['get']('importWord'),_0x30119d=_0x2465d9['commands']['get']('trackChanges');_0x2a9c0e&&(_0x2a9c0e['on']('execute',(_0x11f113,[,_0x4950b3])=>{this['_trackChangesValueDuringImport']=_0x30119d['value'],_0x4950b3['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2a9c0e,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2a9c0e,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x30119d['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2465d9['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x309fba,_0x1276ea){const {suggestions:_0x5d7351}=_0x1276ea,_0x5ef84d=this['editor']['commands']['get']('trackChanges'),_0x1cb9c7=_0x5ef84d['value'];this['_trackChangesValueDuringImport']!==_0x1cb9c7&&(_0x5ef84d['execute'](),this['_trackChangesExecuted']=!0x0),_0x5d7351&&_0x5d7351['forEach'](({id:_0x3b2ffa,type:_0x298df8,author:_0x2bcea4,created_at:_0x5403ec})=>{const _0x4a49a5={'id':_0x3b2ffa,'type':_0x298df8,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2bcea4,'createdAt':_0x5403ec?new Date(_0x5403ec):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4a49a5);});}}class ft extends _0x41653b{['afterInit'](){const _0x554415=this['editor'],_0x103892=_0x554415['plugins']['get']('TrackChangesEditing');if(_0x554415['plugins']['has']('IndentEditing')&&(_0x103892['enableCommand']('indent'),_0x103892['enableCommand']('outdent')),_0x554415['plugins']['has']('IndentBlock')){for(const _0x2b97e2 of['indentBlock','outdentBlock'])_0x103892['enableDefaultAttributesIntegration'](_0x2b97e2);}const _0x4af7d8=_0x554415['locale'];_0x103892['registerBlockAttribute']('blockIndent'),_0x103892['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x4af7d8,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c0b7a=this['editor'],_0x23e766=_0x2c0b7a['locale'],_0x1065b5=_0x2c0b7a['plugins']['get']('TrackChangesEditing');_0x1065b5['descriptionFactory']['registerDescriptionCallback'](_0x1379b2=>{if('formatBlock'!=_0x1379b2['type'])return;const {data:_0x4d720a}=_0x1379b2;if(!_0x4d720a)return;if('indentBlock'!=_0x4d720a['commandName']&&'outdentBlock'!=_0x4d720a['commandName'])return;const _0x4a1443=_0x1379b2['getItems']()[0x0],_0x4141a8=_0x1065b5['descriptionFactory']['getItemLabel'](_0x4a1443);return'indentBlock'==_0x4d720a['commandName']?{'type':'format','content':c(_0x23e766,'*Indent:*\x20%0',_0x4141a8)}:'outdentBlock'==_0x4d720a['commandName']?{'type':'format','content':c(_0x23e766,'*Outdent:*\x20%0',_0x4141a8)}:void 0x0;});}}class ht extends _0x41653b{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x41653b{['afterInit'](){const _0x5926a5=this['editor'];if(!_0x5926a5['plugins']['has']('LinkEditing'))return;const _0x2d9a9b=_0x5926a5['plugins']['get']('TrackChangesEditing'),_0x412804=_0x5926a5['commands']['get']('link');_0x2d9a9b['enableDefaultAttributesIntegration']('link'),_0x2d9a9b['enableDefaultAttributesIntegration']('unlink'),_0x2d9a9b['registerInlineAttribute']('linkHref');for(const _0x37df20 of _0x412804['manualDecorators'])_0x2d9a9b['registerInlineAttribute'](_0x37df20['id']),_0x2d9a9b['descriptionFactory']['registerAttributeLabel'](_0x37df20['id'],'link\x20('+_0x37df20['label']['toLowerCase']()+')');_0x2d9a9b['descriptionFactory']['registerDescriptionCallback'](_0x6dce3b=>{if('attribute'!=_0x6dce3b['type'])return;const {data:_0x2d637b}=_0x6dce3b;if(!_0x2d637b||'linkHref'!=_0x2d637b['key'])return;const _0x949496=_0x2d637b['newValue'],_0x52fa78=_0x5926a5['locale'];return{'type':'format','content':null==_0x949496?c(_0x52fa78,'*Remove\x20link*'):c(_0x52fa78,'*Set\x20link:*\x20%0','\x22'+_0x949496+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x450b55=this['editor'],_0x5d4d88=_0x450b55['locale'];_0x450b55['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e6ea3=>{if('formatInline'!=_0x2e6ea3['type'])return;const {data:_0x20ba1c}=_0x2e6ea3;if(_0x20ba1c){if('link'==_0x20ba1c['commandName']){const _0x1c84f8=_0x20ba1c['commandParams'][0x0];return{'type':'format','content':c(_0x5d4d88,'*Set\x20link:*\x20%0','\x22'+_0x1c84f8+'\x22')};}return'unlink'==_0x20ba1c['commandName']?{'type':'format','content':c(_0x5d4d88,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x41653b{['afterInit'](){const _0xa3215=this['editor'],_0x40232b=_0xa3215['locale'];if(!_0xa3215['plugins']['has']('LegacyListEditing'))return;const _0x440c9c=_0xa3215['plugins']['get']('TrackChangesEditing'),_0x76ad1e=_0xa3215['plugins']['has']('LegacyTodoListEditing');function _0x5ce333(_0x1ad270){return()=>{const _0x1cc67a=_0xa3215['model']['document']['selection'],_0x462620=_0xa3215['commands']['get'](_0x1ad270);if(_0x462620['value'])return void _0xa3215['execute']('paragraph',{});const _0x5e2ca2=_0x1ad270['slice'](0x0,-0x4),_0x1f8482=function(_0xeb528,_0x3fa5ec,_0x2e95af){let _0x41ed70=Array['from'](_0xeb528)['filter'](_0xdf5e98=>function(_0xf10d0d,_0x478ce4){return _0x478ce4['checkChild'](_0xf10d0d['parent'],'listItem')&&!_0x478ce4['isObject'](_0xf10d0d);}(_0xdf5e98,_0x2e95af));_0x41ed70=_0x41ed70['filter'](_0x2ba23c=>!_0x2ba23c['is']('element','listItem')||_0x2ba23c['getAttribute']('listType')!=_0x3fa5ec);const _0x38d4f8=new Set();for(const _0x214011 of _0x41ed70)_0x214011['is']('element','listItem')?_0x38d4f8['add'](Le(_0x214011)):_0x38d4f8['add'](_0x214011);return Array['from'](_0x38d4f8);}(_0x1cc67a['getSelectedBlocks'](),_0x5e2ca2,_0xa3215['model']['schema']);_0xa3215['model']['change'](()=>{for(const _0x44f38c of _0x1f8482)_0x440c9c['markBlockFormat'](_0x44f38c,{'commandName':_0x1ad270,'commandParams':[{'forceValue':!_0x462620['value']}],'formatGroupId':'blockName'},Ee(_0x44f38c));});};}function _0x2ad576(_0x228862){return()=>{const _0x3ce46d=function(_0x1c69ee){let _0x271ed3=Array['from'](_0x1c69ee);const _0x2e4454=_0x271ed3['findIndex'](_0x4b19bb=>'listItem'!=_0x4b19bb['name']);return _0x2e4454>-0x1&&(_0x271ed3=_0x271ed3['slice'](0x0,_0x2e4454)),_0x271ed3;}(_0xa3215['model']['document']['selection']['getSelectedBlocks']()),_0x2e03d2=_0xa3215['model']['createRange'](_0xa3215['model']['createPositionAt'](_0x3ce46d[0x0],'before'),_0xa3215['model']['createPositionAt'](_0x3ce46d[_0x3ce46d['length']-0x1],'end'));_0xa3215['model']['change'](()=>{_0x440c9c['markBlockFormat'](_0x2e03d2,{'commandName':_0x228862,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2d829d){const _0x1a8070=new Set();for(const _0x3434bf of _0x2d829d){let _0x1fb91c=_0x3434bf['nextSibling'];for(;_0x1fb91c&&_0x1fb91c['getAttribute']('listIndent')>_0x3434bf['getAttribute']('listIndent');)_0x1a8070['add'](_0x1fb91c),_0x1fb91c=_0x1fb91c['nextSibling'];}return Array['from'](_0x1a8070);}(_0x3ce46d));});};}_0x440c9c['enableCommand']('numberedList',_0x5ce333('numberedList')),_0x440c9c['enableCommand']('bulletedList',_0x5ce333('bulletedList')),_0x76ad1e&&_0x440c9c['enableCommand']('todoList',_0x5ce333('todoList')),_0x440c9c['enableCommand']('indentList',_0x2ad576('indentList')),_0x440c9c['enableCommand']('outdentList',_0x2ad576('outdentList')),_0x76ad1e&&_0x440c9c['enableCommand']('checkTodoList',()=>{const _0x48da85=_0xa3215['commands']['get']('checkTodoList'),_0x2b3eb6=Array['from'](_0x48da85['_selectedElements']);_0x2b3eb6['filter'](_0x11256c=>_0x11256c['getAttribute']('todoListChecked')!=_0x48da85['value']),_0xa3215['model']['change'](()=>{for(const _0x4b6203 of _0x2b3eb6)_0x440c9c['markBlockFormat'](_0x4b6203,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x48da85['value']}]});});}),_0x440c9c['descriptionFactory']['registerElementLabel']('listItem',_0x67ae82=>c(_0x40232b,'ELEMENT_LIST_ITEM',_0x67ae82)),_0x440c9c['descriptionFactory']['registerDescriptionCallback'](_0x578450=>{if('formatBlock'!=_0x578450['type']&&'formatInline'!=_0x578450['type'])return;const {data:_0x2253e4}=_0x578450;if(_0x2253e4){if('numberedList'==_0x2253e4['commandName']||'bulletedList'==_0x2253e4['commandName']||'todoList'==_0x2253e4['commandName'])switch(_0x2253e4['commandName']['replace']('List','')){case'bulleted':return _0x54aa52(c(_0x40232b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x54aa52(c(_0x40232b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x54aa52(c(_0x40232b,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2253e4['commandName'])return{'type':'format','content':c(_0x40232b,'*Indent:*\x20%0',c(_0x40232b,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2253e4['commandName'])return{'type':'format','content':c(_0x40232b,'*Outdent:*\x20%0',c(_0x40232b,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2253e4['commandName'])return _0x2253e4['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x40232b,'*Check\x20item*')}:{'type':'format','content':c(_0x40232b,'*Uncheck\x20item*')};}function _0x54aa52(_0x4cc1b9){return{'type':'format','content':c(_0x40232b,'*Change\x20to:*\x20%0',_0x4cc1b9)};}});}}function Le(_0x3ba43e){const _0x28b692=_0x3ba43e['getAttribute']('listIndent');if(0x0==_0x28b692)return _0x3ba43e;let _0x4d7b05=_0x3ba43e;for(;_0x3ba43e['previousSibling']&&_0x3ba43e['previousSibling']['is']('element','listItem');){const _0x945162=_0x3ba43e['previousSibling']['getAttribute']('listIndent');if(_0x945162==_0x28b692)_0x4d7b05=_0x3ba43e['previousSibling'];else{if(_0x945162<_0x28b692)break;}_0x3ba43e=_0x3ba43e['previousSibling'];}return _0x4d7b05;}function Ee(_0x42f7da){const _0x3037bf=[];if(_0x42f7da['is']('element','listItem')&&_0x42f7da['getAttribute']('listIndent')>0x0){let _0x4d03ff=_0x42f7da['nextSibling'];for(;_0x4d03ff&&'listItem'==_0x4d03ff['name']&&_0x4d03ff['getAttribute']('listIndent')==_0x42f7da['getAttribute']('listIndent');)_0x3037bf['push'](_0x4d03ff),_0x4d03ff=_0x4d03ff['nextSibling'];}return _0x3037bf;}class Q extends _0x41653b{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2d893b=this['editor']['config']['get']('list.properties'),_0x3524bd=this['editor']['plugins']['get']('TrackChangesEditing');_0x2d893b['styles']&&_0x3524bd['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2d893b['reversed']&&_0x3524bd['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2d893b['startIndex']&&_0x3524bd['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3524bd['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5acbcc,_0x1af8fe={}){const _0x12d4e8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3c6e0d=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x12d4e8['markMultiRangeBlockFormat'](_0x3c6e0d,{'commandName':'listStyle','commandParams':[{'type':_0x1af8fe['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3122e5,_0x44c340={}){const _0x3f4da0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44b58b=this['_getSuggestionBlocks'](_0xb434b0=>_0xb434b0['is']('element','listItem')&&'numbered'===_0xb434b0['getAttribute']('listType'));if(_0x44b58b['length']<0x1)return;const _0x4c7379=_0x44b58b['map'](_0x891fb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x891fb,'before'),this['editor']['model']['createPositionAt'](_0x891fb,0x0)));this['editor']['model']['change'](()=>{_0x3f4da0['markMultiRangeBlockFormat'](_0x4c7379,{'commandName':'listReversed','commandParams':[{'reversed':_0x44c340['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3149c7,_0x27fa90={}){const _0x5377b9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x49ddb5=this['_getSuggestionBlocks'](_0x362d0b=>_0x362d0b['is']('element','listItem')&&'numbered'===_0x362d0b['getAttribute']('listType'));if(_0x49ddb5['length']<0x1)return;const _0x3d1844=_0x49ddb5['map'](_0x34452f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x34452f,'before'),this['editor']['model']['createPositionAt'](_0x34452f,0x0)));this['editor']['model']['change'](()=>{_0x5377b9['markMultiRangeBlockFormat'](_0x3d1844,{'commandName':'listStart','commandParams':[{'startIndex':_0x27fa90['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x169828){if('formatBlock'!=_0x169828['type']&&'formatInline'!=_0x169828['type'])return;const _0x15c6aa=this['editor']['locale'],{data:_0x3556d0}=_0x169828;if(!_0x3556d0)return;let _0x30a6ea,_0xac9771;switch(_0x3556d0['commandName']){case'listStyle':_0x30a6ea='*Change\x20to:*\x20%0',_0xac9771={'type':'format','content':c(_0x15c6aa,_0x30a6ea,c(_0x15c6aa,this['_getTranslationKeyForListStyle'](_0x3556d0['commandParams'][0x0]['type'])))};break;case'listReversed':_0x30a6ea=_0x3556d0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xac9771={'type':'format','content':c(_0x15c6aa,_0x30a6ea)};break;case'listStart':_0x30a6ea='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xac9771={'type':'format','content':c(_0x15c6aa,_0x30a6ea,_0x3556d0['commandParams'][0x0]['startIndex'])};}return _0xac9771;}['_getSuggestionBlocksForListStyle'](){const _0x4f3349=this['editor']['plugins']['get']('LegacyListUtils');let _0x109626=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x109626[0x0]?.['is']('element','listItem')&&_0x109626['unshift'](..._0x4f3349['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x109626[_0x109626['length']-0x1]?.['is']('element','listItem')&&_0x109626['push'](..._0x4f3349['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x109626=[...new Set(_0x109626)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x109626=_0x109626['filter'](_0x253a3b=>_0x253a3b['is']('element','listItem'))),_0x109626;}['_getSuggestionBlocks'](_0x555f91){const _0x44db18=this['editor']['plugins']['get']('LegacyListUtils');let _0x1bf64d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x555f91)['map'](_0x17ac1f=>{const _0x19c02d=this['editor']['model']['createPositionAt'](_0x17ac1f,0x0);return[..._0x44db18['getSiblingNodes'](_0x19c02d,'backward'),..._0x44db18['getSiblingNodes'](_0x19c02d,'forward')];})['flat']();return _0x1bf64d=[...new Set(_0x1bf64d)],_0x1bf64d;}['_getTranslationKeyForListStyle'](_0x2c1e37){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2c1e37)||'default')['toUpperCase']()+'_LIST_'+_0x2c1e37['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x41653b{['afterInit'](){const _0x2bf67f=this['editor'];if(!_0x2bf67f['plugins']['has']('MediaEmbedEditing'))return;const _0x15f0e3=_0x2bf67f['plugins']['get']('TrackChangesEditing'),_0x234eca=_0x2bf67f['locale'];_0x15f0e3['enableCommand']('mediaEmbed'),_0x15f0e3['descriptionFactory']['registerElementLabel']('media',_0x5cd893=>c(_0x234eca,'ELEMENT_MEDIA',_0x5cd893)),_0x2bf67f['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xd17a87,{writer:_0x1ddcb3,options:_0x2c3e16})=>{if(_0x2c3e16['showSuggestionHighlights'])return _0x1ddcb3['createEmptyElement']('div');},'converterPriority':'high'}),_0x2bf67f['data']['downcastDispatcher']['on']('attribute:url:media',(_0x49ebd8,_0x469817,_0xe83c48)=>{_0xe83c48['options']['showSuggestionHighlights']&&_0x49ebd8['stop']();},{'priority':'high'});}}class pt extends _0x41653b{['afterInit'](){const _0x4d543d=this['editor'];_0x4d543d['plugins']['has']('MentionEditing')&&_0x4d543d['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x41653b{['afterInit'](){const _0x38e6a9=this['editor'];if(!_0x38e6a9['plugins']['has']('MergeFieldsEditing'))return;const _0x18c22f=_0x38e6a9['plugins']['get']('TrackChangesEditing'),_0x3a5b05=_0x38e6a9['locale'];_0x18c22f['enableCommand']('insertMergeField'),_0x18c22f['enableCommand']('insertMergeFieldBlock'),_0x18c22f['enableCommand']('insertMergeFieldImage'),_0x18c22f['descriptionFactory']['registerElementLabel']('mergeField',_0x2eccc2=>c(_0x3a5b05,'ELEMENT_MERGE_FIELD',_0x2eccc2)),_0x18c22f['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x353bbb=>c(_0x3a5b05,'ELEMENT_MERGE_FIELD',_0x353bbb)),_0x18c22f['descriptionFactory']['registerDescriptionCallback'](_0x5798d9=>{if('insertion'!=_0x5798d9['type']&&'deletion'!=_0x5798d9['type'])return;const _0x3c3448=_0x5798d9['getContainedElement']();if(null==_0x3c3448)return;const _0x1a8bbc=_0x38e6a9['plugins']['get']('MergeFieldsEditing');let _0xf51315;switch(_0x1a8bbc['getMergeFieldType'](_0x3c3448)){case null:return;case'image':{const _0x55343c=_0x1a8bbc['unwrapAffixes'](_0x3c3448['getAttribute']('src'));_0xf51315=_0x1a8bbc['getLabel'](_0x55343c)||_0x55343c;break;}default:{const _0x403e20=_0x3c3448['getAttribute']('id');_0xf51315=_0x1a8bbc['getLabel'](_0x403e20)||_0x403e20;break;}}return'insertion'==_0x5798d9['type']?{'type':'insertion','content':c(_0x3a5b05,'*Insert:*\x20%0','\x22'+_0xf51315+'\x22\x20'+c(_0x3a5b05,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x3a5b05,'*Remove:*\x20%0','\x22'+_0xf51315+'\x22\x20'+c(_0x3a5b05,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x41653b{['afterInit'](){const _0x5ca0a4=this['editor'],_0x3bc722=_0x5ca0a4['plugins']['get']('TrackChangesEditing');_0x5ca0a4['plugins']['has']('MultiLevelList')&&(_0x3bc722['enableDefaultAttributesIntegration']('multiLevelList'),_0x3bc722['registerBlockAttribute']('listMarkerStyle'),_0x3bc722['descriptionFactory']['registerDescriptionCallback'](_0x245179=>this['handleDescriptions'](_0x245179)));}['handleDescriptions'](_0x431cf2){const _0x14f40e=this['editor']['locale'],{data:_0xb106be}=_0x431cf2,_0x5883a6={'type':'format','content':''};if(_0xb106be&&'listMarkerStyle'==_0xb106be['key']){if(!_0xb106be['oldValue'])return{'type':'format','content':c(_0x14f40e,'*Set\x20format:*\x20%0',c(_0x14f40e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xb106be['newValue']+')'};if(!_0xb106be['newValue']){let _0x302e7c=_0x431cf2['head'];for(;_0x302e7c;){if(_0x302e7c['data']&&'listType'==_0x302e7c['data']['key']&&_0x302e7c['data']['newValue'])return _0x5883a6;_0x302e7c=_0x302e7c['next'];}return{'type':'format','content':c(_0x14f40e,'*Remove\x20format:*\x20%0',c(_0x14f40e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xb106be['oldValue']+')'};}}}}class bt extends _0x41653b{['afterInit'](){const _0x5f16a0=this['editor'];if(!_0x5f16a0['plugins']['has']('PageBreakEditing'))return;_0x5f16a0['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x56040a=_0x5f16a0['plugins']['get']('TrackChangesEditing'),_0x916e58=_0x5f16a0['locale'];_0x56040a['descriptionFactory']['registerElementLabel']('pageBreak',_0x2b55a3=>c(_0x916e58,'ELEMENT_PAGE_BREAK',_0x2b55a3));}}class yt extends _0x41653b{['afterInit'](){const _0x50bc2f=this['editor'];if(!_0x50bc2f['plugins']['has']('Paragraph'))return;const _0x333e4c=_0x50bc2f['locale'],_0x2559a2=_0x50bc2f['plugins']['get']('TrackChangesEditing');_0x2559a2['descriptionFactory']['registerElementLabel']('paragraph',_0x491a8d=>c(_0x333e4c,'ELEMENT_PARAGRAPH',_0x491a8d)),_0x2559a2['enableDefaultAttributesIntegration']('paragraph'),_0x2559a2['enableCommand']('insertParagraph'),_0x50bc2f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x50bc2f),{'priority':'highest'}),_0x50bc2f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2de4de,_0x798f17,_0x1733de)=>{_0x1733de['options']['showSuggestionHighlights']&&nr(_0x50bc2f,{'showActiveMarker':!0x1})(_0x2de4de,_0x798f17,_0x1733de);},{'priority':'highest'});const _0x2f3f3b=_0x2559a2['descriptionFactory'];_0x2f3f3b['registerDescriptionCallback'](_0x1e0f0c=>{if('insertion'!==_0x1e0f0c['type'])return;const {start:_0x46d25a,end:_0x17b6a7}=_0x1e0f0c['getFirstRange']();if(!_0x46d25a['isTouching'](_0x17b6a7)||!_0x46d25a['nodeAfter'])return;const _0xa30c13=_0x50bc2f['model']['schema'],_0x8915f5=_0x46d25a['nodeAfter'];return _0xa30c13['isBlock'](_0x8915f5)&&!_0xa30c13['isLimit'](_0x8915f5)&&_0xa30c13['checkChild'](_0x8915f5,'$text')?{'type':'insertion','content':c(_0x333e4c,'*Insert:*\x20%0',_0x2f3f3b['getItemLabel'](_0x8915f5,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xaa6126=this['editor'],_0x5330db=_0xaa6126['locale'];_0xaa6126['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc416d9=>{if('formatBlock'!=_0xc416d9['type'])return;const {data:_0x473482}=_0xc416d9;return _0x473482&&'paragraph'==_0x473482['commandName']?{'type':'format','content':c(_0x5330db,'*Change\x20to:*\x20%0',c(_0x5330db,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3fd2e8,{showActiveMarker:_0x145b83=!0x0}={}){return(_0x569f4b,_0x36841b,_0x18d0f9)=>{const _0x5eb262=_0x3fd2e8['plugins']['get']('TrackChangesEditing'),_0x5538c8=_0x36841b['markerRange']['start'],_0x1b8b56=_0x36841b['markerRange']['end'],_0x3936fd=_0x3fd2e8['model']['schema'];if(!_0x5538c8['isTouching'](_0x1b8b56)||!_0x5538c8['nodeAfter'])return;const _0x39e773=_0x5538c8['nodeAfter'];if(_0x3936fd['isBlock'](_0x39e773)&&!_0x3936fd['isLimit'](_0x39e773)&&_0x3936fd['checkChild'](_0x39e773,'$text')){if(!_0x18d0f9['consumable']['consume'](_0x36841b['markerRange'],_0x569f4b['name']))return;const {authorId:_0x1bfd0d}=_0x5eb262['_splitMarkerName'](_0x36841b['markerName']),_0x171389=_0x18d0f9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x1bfd0d}),_0x4f9206=_0x18d0f9['mapper']['toViewPosition'](_0x1b8b56);_0x145b83&&_0x5eb262['activeMarkers']['includes'](_0x36841b['markerName'])&&_0x18d0f9['writer']['addClass']('ck-suggestion-marker--active',_0x171389),_0x18d0f9['writer']['insert'](_0x4f9206,_0x171389),_0x18d0f9['mapper']['bindElementToMarker'](_0x171389,_0x36841b['markerName']);}};}class jt extends _0x41653b{['afterInit'](){const _0x5e846b=this['editor'];_0x5e846b['commands']['get']('replaceSource')&&_0x5e846b['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x41653b{['afterInit'](){const _0x16ca40=this['editor'];if(!_0x16ca40['plugins']['has']('RemoveFormatEditing'))return;_0x16ca40['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f1154=this['editor'];_0x3f1154['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6c2ae6=>{if('formatBlock'!=_0x6c2ae6['type']&&'formatInline'!=_0x6c2ae6['type'])return;const {data:_0x292511}=_0x6c2ae6;return _0x292511&&'removeFormat'==_0x292511['commandName']?{'type':'format','content':c(_0x3f1154['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x41653b{['afterInit'](){const _0x5940b4=this['editor'];if(!_0x5940b4['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x412cbb=_0x5940b4['plugins']['get']('TrackChangesEditing');_0x412cbb['enableCommand']('goToPreviousRestrictedEditingException'),_0x412cbb['enableCommand']('goToNextRestrictedEditingException');const _0x5d48e9=_0x5940b4['plugins']['get']('RestrictedEditingModeEditing');_0x5d48e9['enableCommand']('trackChanges'),_0x5d48e9['enableCommand']('acceptSuggestion'),_0x5d48e9['enableCommand']('discardSuggestion'),_0x5d48e9['enableCommand']('acceptAllSuggestions'),_0x5d48e9['enableCommand']('discardAllSuggestions'),_0x5d48e9['enableCommand']('acceptSelectedSuggestions'),_0x5d48e9['enableCommand']('discardSelectedSuggestions');}}class It extends _0x41653b{['afterInit'](){const _0x417b7d=this['editor'];if(!_0x417b7d['plugins']['has']('ShiftEnter'))return;const _0x369472=_0x417b7d['plugins']['get']('TrackChangesEditing');_0x369472['enableCommand']('shiftEnter'),_0x417b7d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x417b7d),{'priority':'high'}),_0x417b7d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x417b7d),{'priority':'high'}),_0x417b7d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2f0108,_0x3352d0,_0xb0992)=>{_0xb0992['options']['showSuggestionHighlights']&&je(_0x417b7d,{'showActiveMarker':!0x1})(_0x2f0108,_0x3352d0,_0xb0992);}),_0x369472['descriptionFactory']['registerElementLabel']('softBreak',_0x51abdf=>c(_0x417b7d['locale'],'ELEMENT_LINE_BREAK',_0x51abdf));}}function je(_0xbed3a1,{showActiveMarker:_0x3d9efd=!0x0}={}){return(_0x570dbd,_0x5afc74,_0xa5a1dd)=>{const _0x58bd6f=_0xbed3a1['plugins']['get']('TrackChangesEditing');if(!_0xa5a1dd['consumable']['test'](_0x5afc74['markerRange'],_0x570dbd['name']))return;const _0x4de9e1=_0xbed3a1['model'];for(const _0x4a7fbc of _0x5afc74['markerRange']['getItems']()){if(!_0x4a7fbc['is']('element','softBreak'))continue;const _0x4e73c6='deletion'==_0x5afc74['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x1e2e95}=_0x58bd6f['_splitMarkerName'](_0x5afc74['markerName']),_0x295e11=_0xa5a1dd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4e73c6,'data-author-id':_0x1e2e95}),_0x1db24e=_0xa5a1dd['mapper']['toViewPosition'](_0x4de9e1['createPositionBefore'](_0x4a7fbc));_0x3d9efd&&_0x58bd6f['activeMarkers']['includes'](_0x5afc74['markerName'])&&_0xa5a1dd['writer']['addClass']('ck-suggestion-marker--active',_0x295e11),_0xa5a1dd['writer']['insert'](_0x1db24e,_0x295e11),_0xa5a1dd['mapper']['bindElementToMarker'](_0x295e11,_0x5afc74['markerName']);}};}class _t extends _0x41653b{['afterInit'](){const _0x5d2177=this['editor'],_0x1b25aa=_0x5d2177['model'],_0x343abf=_0x5d2177['locale'];if(!_0x5d2177['plugins']['has']('StandardEditingModeEditing'))return;const _0x39d480=_0x5d2177['plugins']['get']('TrackChangesEditing'),_0x467be9='restrictedEditingException',_0x10e472=_0x5d2177['commands']['get'](_0x467be9);_0x39d480['enableCommand'](_0x467be9,(_0x458bde,_0x25b7d4={})=>{const _0x1155e7=_0x1b25aa['document']['selection'];if(_0x1155e7['isCollapsed'])return void _0x458bde(_0x25b7d4);const _0x172f00=void 0x0!==_0x25b7d4['forceValue']?_0x25b7d4['forceValue']:!_0x10e472['value'];_0x1b25aa['change'](()=>{const _0x206b39=Array['from'](_0x1155e7['getRanges']());for(const _0x48c8e4 of _0x206b39){const _0x2121b3=_0x172f00?[_0x48c8e4]:io(_0x467be9,_0x48c8e4,_0x1b25aa);for(const _0x2da984 of _0x2121b3)_0x39d480['markInlineFormat'](_0x2da984,{'commandName':_0x467be9,'commandParams':[{'forceValue':_0x172f00}]});}});}),_0x39d480['descriptionFactory']['registerDescriptionCallback'](_0x860ef9=>{if('formatBlock'!=_0x860ef9['type']&&'formatInline'!=_0x860ef9['type'])return;const {data:_0x59f1fd}=_0x860ef9;return _0x59f1fd&&_0x59f1fd['commandName']==_0x467be9?_0x59f1fd['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x343abf,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x343abf,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x41653b{['afterInit'](){const _0xb3fef7=this['editor'];if(!_0xb3fef7['plugins']['has']('Style')||!_0xb3fef7['plugins']['has']('DataSchema'))return;const _0x26bd3c=_0xb3fef7['plugins']['get']('TrackChangesEditing'),_0x522c64=_0xb3fef7['locale'],_0x4b9cc4=_0xb3fef7['config']['get']('style')||{},_0x2ddc9a=_0xb3fef7['plugins']['get']('GeneralHtmlSupport'),_0x315e49=_0xb3fef7['plugins']['get']('StyleUtils')['normalizeConfig'](_0xb3fef7['plugins']['get']('DataSchema'),_0x4b9cc4['definitions']);_0x26bd3c['enableDefaultAttributesIntegration']('style');const _0x4e5ba6=new Set();for(const _0x30e2c4 of _0x315e49['block']){const _0x1deae2=_0x2ddc9a['getGhsAttributeNameForElement'](_0x30e2c4['element']);_0x4e5ba6['add'](_0x1deae2);}const _0x524797=new Set();for(const _0x49af0d of _0x315e49['inline']){const _0x2cb216=_0x2ddc9a['getGhsAttributeNameForElement'](_0x49af0d['element']);_0x524797['add'](_0x2cb216);for(const _0x1fc110 of _0x49af0d['ghsAttributes'])_0x524797['add'](_0x1fc110);}for(const _0x3f4213 of _0x4e5ba6)_0x26bd3c['registerBlockAttribute'](_0x3f4213),_0x26bd3c['descriptionFactory']['registerAttributeLabel'](_0x3f4213,c(_0x522c64,'FORMAT_STYLE'));for(const _0x106bcf of _0x524797)_0x26bd3c['registerInlineAttribute'](_0x106bcf),_0x26bd3c['descriptionFactory']['registerAttributeLabel'](_0x106bcf,c(_0x522c64,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x33cac9=this['editor'],_0x13883e=_0x33cac9['locale'];_0x33cac9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xaa0156=>{if('formatBlock'!=_0xaa0156['type']&&'formatInline'!=_0xaa0156['type'])return;const {data:_0x25ffe7}=_0xaa0156;return _0x25ffe7&&'style'===_0x25ffe7['commandName']?_0x25ffe7['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x13883e,'*Set\x20format:*\x20%0',_0x25ffe7['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x13883e,'*Remove\x20format:*\x20%0',_0x25ffe7['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x41653b{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xbdde08){super(_0xbdde08),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5cfb63=this['editor'],_0x56932e=_0x5cfb63['model']['document']['selection'];if(!_0x5cfb63['plugins']['has']('TableEditing'))return;const _0x45e0d1=_0x5cfb63['locale'],_0x5ddfec=_0x5cfb63['plugins']['get']('TrackChangesEditing'),_0x1bb9de=_0x5cfb63['plugins']['get']('TableUtils');_0x5ddfec['descriptionFactory']['registerElementLabel']('table',_0x1ec714=>c(_0x45e0d1,'ELEMENT_TABLE',_0x1ec714)),this['_setupColumnsRowsFixing'](),_0x5ddfec['enableCommand']('insertTable'),_0x5ddfec['enableCommand']('selectTableRow'),_0x5ddfec['enableCommand']('selectTableColumn');for(const _0x37efd6 of['insertTableRowAbove','insertTableRowBelow']){const _0x3fb6f2=_0x5cfb63['commands']['get'](_0x37efd6);_0x5ddfec['enableCommand'](_0x37efd6,_0x886a0c=>{_0x5cfb63['model']['change'](_0x396409=>{_0x886a0c();const _0x5b9da6='above'===_0x3fb6f2['order'],_0x575d9d=_0x1bb9de['getSelectionAffectedTableCells'](_0x56932e),_0xc2cdaf=_0x1bb9de['getRowIndexes'](_0x575d9d),_0x59d2bb=_0x5b9da6?_0xc2cdaf['first']-0x1:_0xc2cdaf['last']+0x1,_0x36e119=_0x575d9d[0x0]['findAncestor']('table'),_0x229261=_0x1bb9de['createTableWalker'](_0x36e119,{'startRow':_0x59d2bb,'endRow':_0x59d2bb}),_0x3d37cf=Array['from'](_0x229261)['map'](_0x201e80=>_0x396409['createRangeOn'](_0x201e80['cell']));_0x5ddfec['markMultiRangeInsertion'](_0x3d37cf,'tableRow');});});}for(const _0x34a3d7 of['insertTableColumnLeft','insertTableColumnRight']){const _0x686ec8=_0x5cfb63['commands']['get'](_0x34a3d7);_0x5ddfec['enableCommand'](_0x34a3d7,_0xb8e1b9=>{_0x5cfb63['model']['change'](_0x264f09=>{_0xb8e1b9();const _0x2a4b32='left'===_0x686ec8['order'],_0x2558ba=_0x1bb9de['getSelectionAffectedTableCells'](_0x56932e),_0x206a1c=_0x1bb9de['getColumnIndexes'](_0x2558ba),_0xc073d6=_0x2a4b32?_0x206a1c['first']-0x1:_0x206a1c['last']+0x1,_0x597e37=_0x2558ba[0x0]['findAncestor']('table'),_0x250522=_0x1bb9de['createTableWalker'](_0x597e37,{'startRow':0x0,'column':_0xc073d6,'includeAllSlots':!0x1}),_0x2f1b58=Array['from'](_0x250522)['map'](_0x25c334=>_0x264f09['createRangeOn'](_0x25c334['cell']));_0x5ddfec['markMultiRangeInsertion'](_0x2f1b58,'tableColumn');});});}for(const _0x57c36c of['removeTableRow','removeTableColumn']){const _0x35a772=_0x57c36c['substr'](0xb),_0x109138=_0x35a772['toLowerCase'](),_0x3d48c4=_0x109138['substr'](0x0,0x3)+'span',_0x493737='table'+_0x35a772,_0x20e76b='min'+_0x35a772,_0x9f1d15='max'+_0x35a772;_0x5ddfec['enableCommand'](_0x57c36c,()=>{_0x5cfb63['model']['change'](_0x57094e=>{const _0xff981a=_0x1bb9de['getSelectionAffectedTableCells'](_0x56932e),_0x50c292=_0xff981a[0x0]['findAncestor']('table');let _0x4db65f;if('removeTableRow'==_0x57c36c){const _0x8ff4e2=_0x1bb9de['getRowIndexes'](_0xff981a);_0x4db65f={'startRow':_0x8ff4e2['first'],'endRow':_0x8ff4e2['last'],'includeAllSlots':!0x0};}else{const _0x4b98e1=_0x1bb9de['getColumnIndexes'](_0xff981a);_0x4db65f={'startColumn':_0x4b98e1['first'],'endColumn':_0x4b98e1['last'],'includeAllSlots':!0x0};}const _0x53fbb7=_0x1bb9de['createTableWalker'](_0x50c292,_0x4db65f),_0x14911a=Array['from'](_0x53fbb7)['map'](({cell:_0x5f2c75})=>_0x5f2c75),_0x31bc1c=Ne(_0x14911a['filter'](_0x2d45e2=>_0x2d45e2['hasAttribute'](_0x3d48c4))),_0x234e0b=Ne(_0x14911a['filter'](_0x282120=>!_0x282120['hasAttribute'](_0x3d48c4)))['map'](_0xe8f647=>_0x57094e['createRangeOn'](_0xe8f647)),_0x4288dc=_0x5ddfec['markMultiRangeDeletion'](_0x234e0b,_0x493737);if(_0x4288dc&&('tableRow'==_0x4288dc['subType']||'tableColumn'==_0x4288dc['subType'])){const _0x35a154=this['_getSuggestionCoords'](_0x4288dc);for(const _0x1a60ad of _0x31bc1c){const _0x233d49=_0x57094e['createRangeOn'](_0x1a60ad),_0x432d44=_0x1bb9de['getCellLocation'](_0x1a60ad),_0x48ccb4=_0x1a60ad['getAttribute'](_0x3d48c4)-0x1,_0x513bc1=_0x35a154[_0x20e76b],_0x3ef7f3=_0x35a154[_0x9f1d15];_0x513bc1<=_0x432d44[_0x109138]&&_0x432d44[_0x109138]+_0x48ccb4<=_0x3ef7f3&&_0x4288dc['addRange'](_0x233d49);}}});});}function _0x2a455b(_0x508632){const _0x1ac461=Array['from'](_0x56932e['getRanges']())['map'](_0x295079=>_0x1b3826['fromRange'](_0x295079));_0x5cfb63['model']['change'](_0x14944a=>{const _0x3f5c9a=_0x14944a['batch'];_0x508632=_0x508632['filter'](_0x523229=>'$graveyard'!=_0x523229['root']['rootName']),_0x14944a['setSelection'](_0x508632),_0x5cfb63['commands']['get']('removeTableRow')['refresh'](),_0x5cfb63['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5cfb63['model']['enqueueChange'](()=>{_0x5cfb63['model']['enqueueChange'](_0x3f5c9a,_0x4157e3=>{const _0x36d473=_0x1ac461['filter'](_0x269a49=>'$graveyard'!=_0x269a49['root']['rootName']);_0x36d473['length']>0x0&&_0x4157e3['setSelection'](_0x36d473);for(const _0x2cb885 of _0x1ac461)_0x2cb885['detach']();});});});}function _0x4aba38(_0x3fd326){_0x5cfb63['model']['change'](_0xcd33c4=>{const _0x429931=Array['from'](_0x56932e['getRanges']())['map'](_0x1317a1=>_0x1b3826['fromRange'](_0x1317a1)),_0x365ca7=[];for(const _0x5932bc of _0x3fd326)for(const _0x5c8435 of _0x5932bc['getItems']({'shallow':!0x0}))_0x365ca7['push'](_0x5c8435);for(const _0x576391 of _0x365ca7)'$graveyard'!=_0x576391['root']['rootName']&&(_0xcd33c4['setSelection'](_0xcd33c4['createPositionAt'](_0x576391,0x0)),_0x5cfb63['commands']['get']('removeTableColumn')['refresh'](),_0x5cfb63['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3b7e3d=_0x429931['filter'](_0x4ab7d3=>'$graveyard'!=_0x4ab7d3['root']['rootName']);_0x3b7e3d['length']>0x0&&_0xcd33c4['setSelection'](_0x3b7e3d);for(const _0x344e5f of _0x429931)_0x344e5f['detach']();});}function _0x5701d8(_0x1fe966,_0x1572c1){return _0x1572c1['every'](_0x28b972=>_0x1fe966['some'](_0x1f57c2=>_0x1f57c2['end']['isEqual'](_0x28b972['start'])||_0x28b972['end']['isEqual'](_0x1f57c2['start'])));}function _0x5afbe7(_0x10bbbb,_0x53df47){return!_0x10bbbb['some'](_0x3bd7e8=>_0x53df47['some'](_0x4e0181=>_0x3bd7e8['isIntersecting'](_0x4e0181)))&&_0x10bbbb['some'](_0x56133c=>_0x53df47['some'](_0x2e6316=>_0x56133c['end']['isTouching'](_0x2e6316['start'])));}_0x5cfb63['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x8a404,_0x7ed842,_0x2415d4)=>{if(!_0x2415d4['options']['showSuggestionHighlights'])return;const _0x4f312b=_0x7ed842['item'];if(!_0x4f312b)return;const _0x4d9add=_0x2415d4['mapper']['toViewElement'](_0x4f312b);function _0x2d02ea(_0x2e5f43){return Array['isArray'](_0x2e5f43)?_0x2e5f43:[_0x2e5f43];}_0x4d9add&&'tableCell'===_0x4f312b['name']&&_0x22abf2(_0x4d9add,_0x2415d4['writer'],(_0x33b8e5,_0xa7a861,_0x7f63c0)=>_0x7f63c0['addClass'](_0x2d02ea(_0xa7a861['classes']),_0x33b8e5),(_0x132cb,_0x4ff67e,_0x412715)=>_0x412715['removeClass'](_0x2d02ea(_0x4ff67e['classes']),_0x132cb));},{'priority':'highest'}),_0x5ddfec['descriptionFactory']['registerDescriptionCallback'](_0x44e1c6=>{if('insertion'!=_0x44e1c6['type']&&'deletion'!=_0x44e1c6['type'])return;const _0x53b238=_0x44e1c6['getContainedElement']();if(null!=_0x53b238&&_0x53b238['is']('element','table')){if('insertion'==_0x44e1c6['type']){const _0x22a0a7=_0x44e1c6['getItems']()['filter'](_0x1e3a08=>_0x1e3a08['is']('$textProxy'))['map'](_0x446a3a=>_0x446a3a['data']);if(_0x22a0a7['length'])return{'type':'insertion','content':c(_0x45e0d1,'*Insert:*\x20%0',c(_0x45e0d1,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x22a0a7['join']('\x20')+'\x22'))};}if('deletion'==_0x44e1c6['type']){const _0x4607e5=_0x44e1c6['getItems']()['filter'](_0xfd0506=>_0xfd0506['is']('$textProxy'))['map'](_0x4eed94=>_0x4eed94['data']);if(_0x4607e5['length'])return{'type':'deletion','content':c(_0x45e0d1,'*Remove:*\x20%0',c(_0x45e0d1,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4607e5['join']('\x20')+'\x22'))};}}}),_0x5ddfec['descriptionFactory']['registerDescriptionCallback'](_0x3a1e73=>{if('tableRow'==_0x3a1e73['subType']){const _0x56bad1=_0x3a1e73['getItems']()['filter'](_0x1672ac=>_0x1672ac['is']('$textProxy'))['map'](_0x532241=>_0x532241['data']),_0x2edabb=this['_getSuggestionCoords'](_0x3a1e73),_0x50b30d=_0x2edabb['maxRow']-_0x2edabb['minRow']+0x1;if('insertion'==_0x3a1e73['type'])return _0x56bad1['length']?{'type':'insertion','content':c(_0x45e0d1,'*Insert:*\x20%0',c(_0x45e0d1,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x50b30d,'\x22'+_0x56bad1['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x45e0d1,'*Insert:*\x20%0',c(_0x45e0d1,'ELEMENT_TABLE_ROW',_0x50b30d))};if('deletion'==_0x3a1e73['type'])return _0x56bad1['length']?{'type':'deletion','content':c(_0x45e0d1,'*Remove:*\x20%0',c(_0x45e0d1,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x50b30d,'\x22'+_0x56bad1['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x45e0d1,'*Remove:*\x20%0',c(_0x45e0d1,'ELEMENT_TABLE_ROW',_0x50b30d))};}if('tableColumn'==_0x3a1e73['subType']){const _0x25e3ab=_0x3a1e73['getItems']()['filter'](_0x4f7173=>_0x4f7173['is']('$textProxy'))['map'](_0x396fdc=>_0x396fdc['data']),_0x19c160=this['_getSuggestionCoords'](_0x3a1e73),_0x5bcfdd=_0x19c160['maxColumn']-_0x19c160['minColumn']+0x1;if('insertion'==_0x3a1e73['type'])return _0x25e3ab['length']?{'type':'insertion','content':c(_0x45e0d1,'*Insert:*\x20%0',c(_0x45e0d1,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5bcfdd,'\x22'+_0x25e3ab['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x45e0d1,'*Insert:*\x20%0',c(_0x45e0d1,'ELEMENT_TABLE_COLUMN',_0x5bcfdd))};if('deletion'==_0x3a1e73['type'])return _0x25e3ab['length']?{'type':'deletion','content':c(_0x45e0d1,'*Remove:*\x20%0',c(_0x45e0d1,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5bcfdd,'\x22'+_0x25e3ab['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x45e0d1,'*Remove:*\x20%0',c(_0x45e0d1,'ELEMENT_TABLE_COLUMN',_0x5bcfdd))};}}),_0x5ddfec['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2a455b),_0x5ddfec['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2a455b),_0x5ddfec['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4aba38),_0x5ddfec['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4aba38),_0x5ddfec['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5701d8),_0x5ddfec['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5701d8),_0x5ddfec['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5afbe7),_0x5ddfec['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5afbe7);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3e6e28=this['editor'],_0x56bdee=_0x3e6e28['model']['document']['selection'];return(_0xf9bc1,_0x3961d7)=>{_0x3e6e28['model']['change'](_0xdd9f73=>{const {commandName:_0x3af56b,commandParams:_0x4bb7c2}=_0x3961d7;let _0x55fdd2=_0xf9bc1[0x0]['end']['nodeBefore'];_0x4bb7c2&&_0x4bb7c2[0x0]&&!0x1===_0x4bb7c2[0x0]['forceValue']&&(_0x55fdd2=_0xf9bc1[0x0]['start']['nodeAfter']);const _0x3c2730=_0xdd9f73['createRangeIn'](_0x55fdd2);if('$graveyard'==_0x3c2730['root']['rootName'])return;const _0x1fe024=Array['from'](_0x56bdee['getRanges']())['map'](_0x477399=>_0x1b3826['fromRange'](_0x477399));_0xdd9f73['setSelection'](_0x3c2730),_0x3e6e28['commands']['get'](_0x3af56b)['refresh'](),_0x4bb7c2['push']({'forceDefaultExecution':!0x0}),_0x3e6e28['execute'](_0x3af56b,..._0x4bb7c2);const _0x277065=_0x1fe024['filter'](_0x14d12e=>'$graveyard'!=_0x14d12e['root']['rootName']);_0x277065['length']>0x0&&_0xdd9f73['setSelection'](_0x277065);for(const _0x2086f6 of _0x1fe024)_0x2086f6['detach']();});};}['_getCoordsForCells'](_0x4951a0){const _0x243e5e=this['editor']['plugins']['get']('TableUtils');let _0x344ad7=Number['MAX_SAFE_INTEGER'],_0x33c692=Number['MIN_SAFE_INTEGER'],_0x5b08a0=Number['MAX_SAFE_INTEGER'],_0x34c38f=Number['MIN_SAFE_INTEGER'];for(const _0x13a8ee of _0x4951a0){if('$graveyard'==_0x13a8ee['root']['rootName'])continue;const {row:_0x3b7504,column:_0xe07dc2}=_0x243e5e['getCellLocation'](_0x13a8ee),_0x2029e4=_0x13a8ee['hasAttribute']('rowspan')?_0x13a8ee['getAttribute']('rowspan')-0x1:0x0,_0x46f73b=_0x13a8ee['hasAttribute']('colspan')?_0x13a8ee['getAttribute']('colspan')-0x1:0x0;_0x344ad7=_0x3b7504<_0x344ad7?_0x3b7504:_0x344ad7,_0x33c692=_0x3b7504+_0x2029e4>_0x33c692?_0x3b7504+_0x2029e4:_0x33c692,_0x5b08a0=_0xe07dc2<_0x5b08a0?_0xe07dc2:_0x5b08a0,_0x34c38f=_0xe07dc2+_0x46f73b>_0x34c38f?_0xe07dc2+_0x46f73b:_0x34c38f;}return{'minRow':_0x344ad7,'maxRow':_0x33c692,'minColumn':_0x5b08a0,'maxColumn':_0x34c38f};}['_setupColumnsRowsFixing'](){const _0x17cf55=this['editor'],_0xcb87e8=_0x17cf55['plugins']['get']('TrackChangesEditing'),_0x3f001f=_0x17cf55['plugins']['get']('TableUtils');_0x17cf55['model']['document']['on']('change:data',()=>{const _0xaf8e04=Array['from'](_0x17cf55['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x35047b,data:_0x5e9519}of _0xaf8e04){const {group:_0x169131,id:_0x33d880,subType:_0x51fefd}=_0xcb87e8['_splitMarkerName'](_0x35047b);if('suggestion'!=_0x169131)continue;if(null!=_0x5e9519['oldRange'])continue;const _0x2be650=_0xcb87e8['getSuggestion'](_0x33d880);this['_tablePostFixingSubtypes']['includes'](_0x51fefd)&&this['_tableSuggestions']['add'](_0x2be650);}},{'priority':'low'});const _0x3928a9=(_0x510247,_0x2887b3)=>{let _0x497696=!0x1;const _0x4e4f4f=_0x2887b3['createRangeOn'](_0x510247),_0x47d891=_0x510247['findAncestor']('table'),_0x422c24=_0x3f001f['getCellLocation'](_0x510247);for(const _0x53001e of this['_tableSuggestions']){const _0x2c1769=_0x53001e['subType'],_0x42ccf1=_0x2c1769['startsWith']('tablePaste'),_0x266d2a=_0x2c1769['substr'](_0x42ccf1?0xa:0x5),_0x4a9745=_0x266d2a['toLowerCase'](),_0x4f32f3=_0x4a9745['substr'](0x0,0x3)+'span',_0x54c980='min'+_0x266d2a,_0x4fd5ec='max'+_0x266d2a;if(!_0x53001e['isInContent'])continue;if(_0x47d891!=_0x53001e['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x53001e['isIntersectingWithRange'](_0x4e4f4f))continue;const _0x2b1628=_0x510247['hasAttribute'](_0x4f32f3)?_0x510247['getAttribute'](_0x4f32f3)-0x1:0x0,_0x3d36bc=this['_getSuggestionCoords'](_0x53001e),_0x56de0e=_0x3d36bc[_0x54c980],_0x5be9b8=_0x3d36bc[_0x4fd5ec];_0x56de0e<=_0x422c24[_0x4a9745]&&_0x422c24[_0x4a9745]+_0x2b1628<=_0x5be9b8&&(_0x53001e['addRange'](_0x4e4f4f),_0x497696=!0x0);}return _0x497696;};_0x17cf55['model']['document']['registerPostFixer'](_0x56404c=>{let _0x1017ab=!0x1;for(const _0x5f92f7 of _0x17cf55['model']['document']['differ']['getChanges']())if('insert'==_0x5f92f7['type']){if('tableRow'==_0x5f92f7['name']){for(const _0x3d9000 of _0x5f92f7['position']['nodeAfter']['getChildren']())_0x1017ab=_0x1017ab||_0x3928a9(_0x3d9000,_0x56404c);}else'tableCell'==_0x5f92f7['name']&&(_0x1017ab=_0x1017ab||_0x3928a9(_0x5f92f7['position']['nodeAfter'],_0x56404c));}return _0x1017ab;});}['_getSuggestionCoords'](_0x89db91){return this['_getCoordsForCells'](_0x89db91['getRanges']()['map'](_0xa290bd=>_0xa290bd['start']['nodeAfter']));}}function Ne(_0x36f767){return Array['from'](new Set(_0x36f767)['values']());}class Nt extends _0x41653b{static get['requires'](){return[Ct];}['afterInit'](){const _0x1f9831=this['editor'],_0x475dc6=_0x1f9831['model']['document']['selection'],_0x298769=_0x1f9831['locale'];if(!_0x1f9831['plugins']['has']('TableEditing'))return;const _0x5baadc=_0x1f9831['plugins']['get']('TrackChangesEditing'),_0x38ba13=_0x1f9831['plugins']['get']('TableUtils'),_0x226611=_0x1f9831['plugins']['get'](Ct);_0x226611['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5baadc['enableCommand']('mergeTableCells',()=>{const _0x164128=_0x38ba13['getSelectionAffectedTableCells'](_0x1f9831['model']['document']['selection']);_0x1f9831['model']['change'](()=>{_0x5baadc['markMultiRangeBlockFormat'](_0x164128,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1f9831['commands']['get']('mergeTableCells')['on']('execute',(_0x13d7ed,_0xde8e17)=>{_0x1f9831['commands']['get']('trackChanges')['value']&&(_0xde8e17['length']>0x0&&_0xde8e17[_0xde8e17['length']-0x1]&&_0xde8e17[_0xde8e17['length']-0x1]['forceDefaultExecution']||_0x5baadc['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x13d7ed['stop']());},{'priority':'highest'});for(const _0x4be375 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x37aa97=_0x1f9831['commands']['get'](_0x4be375);_0x5baadc['enableCommand'](_0x4be375,()=>{const _0x37ea1b=_0x1f9831['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xbb39c0=>_0xbb39c0['is']('element','tableCell')),_0x529c0c=_0x37aa97['value'];_0x1f9831['model']['change'](()=>{_0x5baadc['markMultiRangeBlockFormat']([_0x37ea1b,_0x529c0c],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x458682 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1ac8de=_0x1f9831['commands']['get'](_0x458682);_0x5baadc['enableCommand'](_0x458682,()=>{const _0x2dd647=_0x38ba13['getSelectionAffectedTableCells'](_0x1f9831['model']['document']['selection'])[0x0],_0x2fc4e2=_0x2dd647['findAncestor']('table'),{column:_0x5593fc,row:_0x131af5}=_0x38ba13['getCellLocation'](_0x2dd647);let _0x4f27f8=[];if('horizontally'==_0x1ac8de['direction']){const _0x1edec9=_0x38ba13['createTableWalker'](_0x2fc4e2,{'startRow':_0x131af5,'endRow':_0x131af5,'includeAllSlots':!0x0});_0x4f27f8=Array['from'](_0x1edec9)['map'](_0x40fb02=>_0x40fb02['cell']);}else{const _0x484b83=_0x38ba13['createTableWalker'](_0x2fc4e2,{'column':_0x5593fc,'includeAllSlots':!0x0});_0x4f27f8=Array['from'](_0x484b83)['map'](_0x2dcdc3=>_0x2dcdc3['cell']);}_0x1f9831['model']['change'](_0x375903=>{_0x5baadc['markBlockFormat'](_0x375903['createRangeOn'](_0x2dd647),{'commandName':_0x458682,'commandParams':[]},_0x4f27f8,_0x458682);});});}_0x5baadc['descriptionFactory']['registerDescriptionCallback'](_0x51e7f1=>{if('formatBlock'!=_0x51e7f1['type']&&'formatInline'!=_0x51e7f1['type'])return;const {data:_0x4ac56f}=_0x51e7f1;return _0x4ac56f&&'mergeTableCells'==_0x4ac56f['commandName']?{'type':'format','content':c(_0x298769,'*Merge\x20cells*')}:void 0x0;}),_0x5baadc['descriptionFactory']['registerDescriptionCallback'](_0x584744=>{if('formatBlock'!=_0x584744['type']&&'formatInline'!=_0x584744['type'])return;const {data:_0xe72e91}=_0x584744;return _0xe72e91?'splitTableCellVertically'==_0xe72e91['commandName']?{'type':'format','content':c(_0x298769,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xe72e91['commandName']?{'type':'format','content':c(_0x298769,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2753f5=_0x226611['_acceptFormatSuggestionCallbackFactory']();for(const _0x3aad2a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5baadc['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3aad2a,'accept',_0x2753f5);for(const _0x1778fa of['splitTableCellVertically','splitTableCellHorizontally'])_0x5baadc['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1778fa,'accept',_0x2753f5);_0x5baadc['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x183e3c=>{_0x1f9831['model']['change'](_0x1e53de=>{const _0x28d2dd=Array['from'](_0x475dc6['getRanges']())['map'](_0x5cfda9=>_0x1b3826['fromRange'](_0x5cfda9));_0x1e53de['setSelection'](_0x183e3c),_0x1f9831['commands']['get']('mergeTableCells')['refresh'](),_0x1f9831['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x36df1c=_0x28d2dd['filter'](_0x70df04=>'$graveyard'!=_0x70df04['root']['rootName']);_0x36df1c['length']>0x0&&_0x1e53de['setSelection'](_0x36df1c);for(const _0x25c369 of _0x28d2dd)_0x25c369['detach']();});});for(const _0x44dad9 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5ace3e=_0x1f9831['commands']['get'](_0x44dad9);_0x5ace3e['on']('set:isEnabled',(_0x13fe00,_0x5a43ce,_0x511e9d)=>{if(_0x511e9d){const _0x2721be=_0x1f9831['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x51b834=>_0x51b834['is']('element','tableCell'));this['_areMergableCells'](_0x5ace3e['value'],_0x2721be)||(_0x13fe00['return']=!0x1,_0x13fe00['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x325040=this['editor']['commands']['get']('mergeTableCells'),_0xcc8a8f=this['editor']['plugins']['get']('TableUtils');if(!_0x325040['isEnabled'])return!0x1;const _0x5cc858=_0xcc8a8f['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1e0872 of _0x5cc858)for(const _0x495acc of _0x5cc858)if(_0x1e0872!=_0x495acc&&!this['_areMergableCells'](_0x1e0872,_0x495acc))return!0x1;return!0x0;}['_areMergableCells'](_0x555569,_0x4d5864){const _0x413ae8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5926a6=this['editor']['model']['createRangeOn'](_0x555569),_0x232419=this['editor']['model']['createRangeOn'](_0x4d5864),_0x488ac3=new Set(),_0x4e5a2f=new Set();for(const _0x22fb72 of _0x413ae8['getSuggestions']())if(('insertion'==_0x22fb72['type']||'deletion'==_0x22fb72['type']||'mergeTableCells'==_0x22fb72['subType'])&&_0x22fb72['isInContent']){for(const _0x3754a9 of _0x22fb72['getRanges']())_0x3754a9['containsRange'](_0x5926a6,!0x0)&&_0x488ac3['add'](_0x22fb72['type']+':'+_0x22fb72['author']['id']),_0x3754a9['containsRange'](_0x232419,!0x0)&&_0x4e5a2f['add'](_0x22fb72['type']+':'+_0x22fb72['author']['id']);}if(_0x488ac3['size']!=_0x4e5a2f['size'])return!0x1;for(const _0x17d614 of _0x488ac3)if(!_0x4e5a2f['has'](_0x17d614))return!0x1;return!0x0;}}class Dt extends _0x41653b{static get['requires'](){return[Ct];}['afterInit'](){const _0x3496c1=this['editor'];if(!_0x3496c1['plugins']['has']('TableEditing'))return;const _0x3d8abc=_0x3496c1['locale'],_0x5acaf9=_0x3496c1['plugins']['get']('TrackChangesEditing');_0x5acaf9['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5acaf9['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5acaf9['registerBlockAttribute']('headingRows'),_0x5acaf9['registerBlockAttribute']('headingColumns'),_0x5acaf9['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x3d8abc,'FORMAT_HEADER_ROW')),_0x5acaf9['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x3d8abc,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1ab063=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1468b8=this['editor']['plugins']['get']('TableUtils'),_0x36580a=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x1a64c4({showActiveMarker:_0x247602=!0x0,setDataAttribute:_0x2e7c08=!0x0}={}){return(_0x7189bb,_0x4fc3a0,_0x40627a)=>{const {type:_0x16283f,id:_0x43612b}=_0x1ab063['_splitMarkerName'](_0x4fc3a0['markerName']),_0x386343=_0x1ab063['getSuggestion'](_0x43612b),_0x37c03d=_0x386343['data'];if('formatBlock'!=_0x386343['type']||!_0x37c03d||'setTableColumnHeader'!=_0x37c03d['commandName'])return;if(_0x4fc3a0['item'])return void _0x7189bb['stop']();if(!_0x40627a['consumable']['consume'](_0x4fc3a0['markerRange'],_0x7189bb['name']))return;const _0x3e8221=_0x4fc3a0['markerRange']['start']['nodeAfter'],_0x31d9b4=_0x4fc3a0['markerRange']['end']['nodeBefore'],_0x499970=_0x3e8221['parent']['parent'],{column:_0x28498e}=_0x1468b8['getCellLocation'](_0x3e8221),{column:_0x2c96c9}=_0x1468b8['getCellLocation'](_0x31d9b4);for(let _0x5e914b=_0x28498e;_0x5e914b<=_0x2c96c9;_0x5e914b++){const _0x2e37ba=_0x1468b8['createTableWalker'](_0x499970,{'column':_0x5e914b,'includeAllSlots':!0x1});for(const _0x124ca2 of _0x2e37ba){const _0x5d9bab=_0x124ca2['cell'],_0x4764fe=_0x40627a['mapper']['toViewElement'](_0x5d9bab);_0x40627a['writer']['addClass']('ck-suggestion-marker-'+_0x16283f,_0x4764fe),_0x2e7c08&&_0x40627a['writer']['setAttribute']('data-suggestion',_0x43612b,_0x4764fe),_0x40627a['mapper']['bindElementToMarker'](_0x4764fe,_0x4fc3a0['markerName']),_0x247602&&(_0x1ab063['activeMarkers']['includes'](_0x4fc3a0['markerName'])?_0x40627a['writer']['addClass']('ck-suggestion-marker--active',_0x4764fe):_0x40627a['writer']['removeClass']('ck-suggestion-marker--active',_0x4764fe));}}};}_0x1ab063['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x36580a),_0x1ab063['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x36580a),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1a64c4(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x482e30,_0x5e6848,_0x4a88c6)=>{_0x4a88c6['options']['showSuggestionHighlights']&&_0x1a64c4({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x482e30,_0x5e6848,_0x4a88c6);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5098d0,_0x498550,_0x3acc02)=>{const {type:_0xc680ca,id:_0x2fe2fc}=_0x1ab063['_splitMarkerName'](_0x498550['markerName']),_0xab113c=_0x1ab063['getSuggestion'](_0x2fe2fc),_0x106ad9=_0xab113c['data'];if('formatBlock'!=_0xab113c['type']||!_0x106ad9||'setTableColumnHeader'!=_0x106ad9['commandName'])return;const _0x372c6f=_0x3acc02['mapper']['markerNameToElements'](_0x498550['markerName']);if(_0x372c6f){for(const _0x50730a of _0x372c6f)_0x3acc02['writer']['removeClass']('ck-suggestion-marker-'+_0xc680ca,_0x50730a),_0x3acc02['writer']['removeClass']('ck-suggestion-marker--active',_0x50730a),_0x3acc02['writer']['removeAttribute']('data-suggestion',_0x50730a),_0x3acc02['mapper']['unbindElementFromMarkerName'](_0x50730a,_0x498550['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5af905=this['editor'],_0x49b082=_0x5af905['locale'];function _0x49e2f4(_0x5dcbe7){return{'type':'format','content':c(_0x49b082,'*Format:*\x20%0',_0x5dcbe7)};}_0x5af905['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x629a85=>{if('formatBlock'!=_0x629a85['type'])return;const {data:_0x5beeda}=_0x629a85;if(_0x5beeda){if('setTableRowHeader'==_0x5beeda['commandName']){const _0x10908d=_0x5beeda['commandParams'][0x0]['forceValue'];return _0x49e2f4(c(_0x49b082,_0x10908d?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5beeda['commandName']){const _0x285da8=_0x5beeda['commandParams'][0x0]['forceValue'];return _0x49e2f4(c(_0x49b082,_0x285da8?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x41653b{['afterInit'](){const _0x2151ad=this['editor'],_0xdcb729=_0x2151ad['locale'],_0x28e43a=_0x2151ad['plugins']['get']('TrackChangesEditing');function _0x5ddb99(_0x43ca65){return{'type':'format','content':''+c(_0xdcb729,'*Set\x20table\x20type:*\x20%0',_0x43ca65)};}_0x2151ad['plugins']['has']('TableLayout')&&(_0x28e43a['enableCommand']('insertTableLayout'),_0x28e43a['enableDefaultAttributesIntegration']('tableType'),_0x28e43a['registerBlockAttribute']('tableType'),_0x28e43a['descriptionFactory']['registerElementLabel'](_0x391c81=>_0x391c81['is']('element','table')&&'layout'===_0x391c81['getAttribute']('tableType'),_0x50090a=>c(_0xdcb729,'ELEMENT_LAYOUT_TABLE',_0x50090a)),_0x28e43a['descriptionFactory']['registerDescriptionCallback'](_0x458d80=>{const {data:_0x3a0513}=_0x458d80;if(_0x3a0513&&'tableType'==_0x3a0513['key'])switch(_0x3a0513['newValue']){case'layout':return _0x5ddb99(c(_0xdcb729,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x5ddb99(c(_0xdcb729,'ELEMENT_CONTENT_TABLE'));}}));}}const xe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Oe=Object['fromEntries'](xe['map'](_0x369ec4=>[_0x369ec4,null]));class $t extends _0x41653b{static get['requires'](){return[Ct];}['afterInit'](){const _0x341929=this['editor'];if(!_0x341929['plugins']['has']('TableClipboard'))return;const _0x827e8d=_0x341929['plugins']['get']('TrackChangesEditing'),_0x14887a=_0x341929['plugins']['get']('TableUtils'),_0x307e19=_0x341929['plugins']['get'](Ct),_0x47b3b3=_0x341929['plugins']['get']('TableClipboard'),_0x39c4dc=_0x341929['plugins']['get']('TableSelection'),_0x237971=_0x341929['plugins']['get'](_0x590d6f);_0x307e19['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x341929['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x341929['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1ad866=null,_0x295fbb=!0x1;_0x237971['on']('contentInsertion',(_0x2c0127,_0x376cc0)=>{_0x295fbb='paste'===_0x376cc0['method'];}),_0x341929['model']['on']('insertContent',(_0x2142d3,_0x1c1b73)=>{if(!_0x295fbb&&null===_0x39c4dc['getSelectedTableCells']())return;const [_0x27dda2,_0x39e857]=_0x1c1b73,_0x4a9b5c=_0x1c1b73[_0x1c1b73['length']-0x1];_0x4a9b5c&&_0x4a9b5c['forceDefaultExecution']||_0x827e8d['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x43579a,_0x326f32,_0x55c39a,_0x2c803d,_0x12f5a3){if(_0x326f32&&!_0x326f32['is']('documentSelection'))return!0x1;const _0x1939c3=_0x12f5a3['getTableIfOnlyTableInContent'](_0x43579a,_0x55c39a);if(!_0x1939c3||!De(_0x1939c3,void 0x0,_0x2c803d))return!0x1;const _0x4a95bb=_0x2c803d['getSelectionAffectedTableCells'](_0x55c39a['document']['selection']);if(!_0x4a95bb['length'])return!0x1;const _0x2d1bcd=_0x4a95bb[0x0]['findAncestor']('table'),_0x52f9b9=_0x2c803d['getRowIndexes'](_0x4a95bb),_0x369c21=_0x2c803d['getColumnIndexes'](_0x4a95bb),_0x319e9d={'startRow':_0x52f9b9['first'],'endRow':_0x52f9b9['last'],'startColumn':_0x369c21['first'],'endColumn':_0x369c21['last']};return 0x1==_0x4a95bb['length']&&(_0x319e9d['endRow']+=_0x2c803d['getRows'](_0x1939c3)-0x1,_0x319e9d['endColumn']+=_0x2c803d['getColumns'](_0x1939c3)-0x1),De(_0x2d1bcd,_0x319e9d,_0x2c803d);}(_0x27dda2,_0x39e857,_0x341929['model'],_0x14887a,_0x47b3b3)&&(_0x2142d3['stop'](),_0x1ad866={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x341929['model']['change'](()=>{_0x341929['model']['insertContent'](_0x1c1b73[0x0],_0x1c1b73[0x1],_0x1c1b73[0x2],{'forceDefaultExecution':!0x0});const _0x3f8447=_0x2c3492(),{rowInsertionRanges:_0x9b0599,columnInsertionRanges:_0xba1738,insertionRanges:_0x1551ed,deletionRanges:_0xd6e490,cells:_0xe5180a}=_0x1ad866;_0x9b0599['length']&&_0x827e8d['markMultiRangeInsertion'](_0x9b0599,'tablePasteRow',{'tablePasteChainId':_0x3f8447}),_0xba1738['length']&&_0x827e8d['markMultiRangeInsertion'](_0xba1738,'tablePasteColumn',{'tablePasteChainId':_0x3f8447}),_0x1551ed['length']&&(_0x827e8d['markMultiRangeInsertion'](_0x1551ed,'tablePaste',{'tablePasteChainId':_0x3f8447,'skipNestingCheck':!0x0}),_0x1551ed['forEach'](_0x14880d=>_0x14880d['detach']?.())),_0xd6e490['length']&&(_0x827e8d['markMultiRangeDeletion'](_0xd6e490,'tablePaste',{'tablePasteChainId':_0x3f8447,'skipNestingCheck':!0x0}),_0xd6e490['forEach'](_0x53f8cd=>_0x53f8cd['detach']?.()));const _0x53d232=_0x827e8d['markMultiRangeBlockFormat'](_0xe5180a['map'](({element:_0x3b726c})=>_0x3b726c),{'formatGroupId':_0x2c3492()},[],'tablePasteCell',{'tablePasteChainId':_0x3f8447});if(_0x53d232){const _0x5e2e3d=_0x53d232['getMarkers'](),_0x592421=[];for(const {element:_0x4998a7,attributes:_0x52e751}of _0xe5180a){if(!_0x52e751)continue;const _0x39ffc0=_0x341929['model']['createRangeOn'](_0x4998a7),_0x57dad2=_0x5e2e3d['find'](_0x3fb192=>_0x3fb192['getRange']()['isEqual'](_0x39ffc0));_0x57dad2&&_0x592421['push']([_0x57dad2['name'],_0x52e751]);}_0x592421['length']&&_0x53d232['setAttribute']('markerAttributes',Object['fromEntries'](_0x592421));}_0x1ad866=null;}));},{'priority':_0x14842f['high']+0xa}),_0x237971['on']('contentInsertion',()=>{_0x295fbb=!0x1;},{'priority':'lowest'}),_0x341929['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x14de61,_0x19810e)=>{const [_0x1c6028,_0x5987c9,,_0x3ffacf]=_0x19810e;if(!_0x1ad866)return;_0x14de61['stop']();const _0x271ce0=_0x1c6028['cell'],_0x17b50a=_0x5987c9,_0xef625=Ue(_0x271ce0),_0x24127b=Ue(_0x17b50a);_0x14de61['return']=_0x271ce0;let _0x16b785=null,_0x21d7d3=null;if(_0x24127b||_0xef625){if(_0xef625&&!_0x24127b){_0x3ffacf['remove'](_0x271ce0['getChild'](0x0));for(const _0x5a4bc4 of Array['from'](_0x17b50a['getChildren']()))_0x3ffacf['insert'](_0x5a4bc4,_0x271ce0,'end');const _0x233201=_0x1ad866['rowInsertionIndexes']['includes'](_0x1c6028['row']),_0x4de471=_0x1ad866['columnInsertionIndexes']['includes'](_0x1c6028['column']);_0x233201||_0x4de471||(_0x16b785=_0x1b3826['fromRange'](_0x3ffacf['createRangeIn'](_0x271ce0)));}else _0x24127b&&!_0xef625&&(_0x21d7d3=_0x3ffacf['createRangeIn'](_0x271ce0));}else{const _0x151438=_0x3ffacf['createElement']('tableCellSuggestion'),_0xe55e9=_0x3ffacf['createElement']('tableCellSuggestion');_0x3ffacf['wrap'](_0x3ffacf['createRangeIn'](_0x271ce0),_0xe55e9),_0x3ffacf['insert'](_0x151438,_0x271ce0,0x0);for(const _0x5b35dc of Array['from'](_0x17b50a['getChildren']()))_0x3ffacf['insert'](_0x5b35dc,_0x151438,'end');_0x16b785=_0x1b3826['fromRange'](_0x3ffacf['createRangeOn'](_0x151438)),_0x21d7d3=_0x1b3826['fromRange'](_0x3ffacf['createRangeOn'](_0xe55e9));}const _0x52e72c=Array['from'](_0x17b50a['getAttributes']())['filter'](([_0x498c5f])=>xe['includes'](_0x498c5f));_0x1ad866['cells']['push']({'element':_0x271ce0,'attributes':_0x52e72c['length']?Object['fromEntries'](_0x52e72c):null}),_0x16b785&&_0x1ad866['insertionRanges']['push'](_0x16b785),_0x21d7d3&&_0x1ad866['deletionRanges']['push'](_0x21d7d3);},{'priority':'high'}),_0x14887a['on']('insertColumns',(_0x253feb,_0x319066)=>{const [_0x204377,_0xac8c39={}]=_0x319066;if(!_0x1ad866)return;const _0x188d04=_0xac8c39['at']||0x0,_0x30d444=_0xac8c39['columns']||0x1;_0x1ad866['columnInsertionIndexes']=new Array(_0x30d444)['fill'](_0x188d04)['map']((_0x436c6a,_0xfdd812)=>_0x436c6a+_0xfdd812);for(const {cell:_0x2297a5}of _0x14887a['createTableWalker'](_0x204377,{'startColumn':_0x188d04,'endColumn':_0x188d04+_0x30d444-0x1}))_0x1ad866['columnInsertionRanges']['push'](_0x341929['model']['createRangeOn'](_0x2297a5));},{'priority':'low'}),_0x14887a['on']('insertRows',(_0x36cd96,_0x4bf158)=>{const [_0x59607f,_0x110b0b={}]=_0x4bf158;if(!_0x1ad866)return;const _0x31241c=_0x110b0b['at']||0x0,_0x271c1b=_0x110b0b['rows']||0x1;_0x1ad866['rowInsertionIndexes']=new Array(_0x271c1b)['fill'](_0x31241c)['map']((_0x1cc4fc,_0x2bc913)=>_0x1cc4fc+_0x2bc913);for(const {cell:_0x21a618}of _0x14887a['createTableWalker'](_0x59607f,{'startRow':_0x31241c,'endRow':_0x31241c+_0x271c1b-0x1}))_0x1ad866['rowInsertionRanges']['push'](_0x341929['model']['createRangeOn'](_0x21a618));},{'priority':'low'}),_0x827e8d['descriptionFactory']['registerDescriptionCallback'](_0x241e6f=>{if(_0x241e6f['subType']&&_0x241e6f['subType']['startsWith']('tablePaste'))return _0x241e6f['previous']?{}:{'type':'insertion','content':c(_0x341929['locale'],'*Replace\x20table\x20cells*')};});const _0x3b79a8=()=>!0x1;for(const _0x3a6cb1 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x827e8d['_suggestionFactory']['registerCustomCallback']('insertion',_0x3a6cb1,'join',_0x3b79a8),_0x827e8d['_suggestionFactory']['registerCustomCallback']('deletion',_0x3a6cb1,'join',_0x3b79a8),_0x827e8d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3a6cb1,'join',_0x3b79a8);_0x827e8d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3b79a8),_0x827e8d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x53293d,_0x5d709e,_0x1c673f)=>{const _0x1540b3=_0x53293d['map'](_0xb88b81=>_0xb88b81['getContainedElement']())['filter'](_0x2eda20=>_0x2eda20),_0x4b9398=new Map(_0x1540b3['map'](_0x2ae8d9=>[_0x2ae8d9,null]));if(_0x1ad866){for(const {element:_0x710d70,attributes:_0x548b83}of _0x1ad866['cells'])_0x548b83&&_0x4b9398['set'](_0x710d70,_0x548b83);}else{if(_0x1c673f&&_0x1c673f['markerAttributes'])for(const [_0x36b2d0,_0x2c8e59]of Object['entries'](_0x1c673f['markerAttributes'])){const _0x15774c=_0x341929['model']['markers']['get'](_0x36b2d0),_0x2ee9d4=_0x15774c?_0x15774c['getRange']()['getContainedElement']():null;_0x2ee9d4&&_0x4b9398['set'](_0x2ee9d4,_0x2c8e59);}}_0x341929['model']['change'](_0x5c9706=>{for(const [_0x33ea2b,_0x2bd8fe]of _0x4b9398)_0x5c9706['setAttributes']({...Oe,..._0x2bd8fe},_0x33ea2b);});});const _0x27c12d=(_0x11b79c,_0x19ee2e)=>{_0x827e8d['_suggestionFactory']['registerCustomCallback'](_0x11b79c,'tablePaste',_0x19ee2e,(_0x4b6f71,_0x471414,_0x36c649)=>{_0x341929['model']['change'](_0x38ad9d=>{const _0x18b51f=[];for(const _0x332f46 of _0x4b6f71){const _0x34128e=_0x332f46['start']['nodeAfter'];_0x34128e['is']('element','tableCellSuggestion')&&_0x18b51f['push'](_0x34128e);}_0x827e8d['_suggestionFactory']['getSuggestionCallback'](_0x11b79c,null,_0x19ee2e)(_0x4b6f71,_0x471414,_0x36c649);for(const _0x13d0d6 of _0x18b51f)'$graveyard'!=_0x13d0d6['root']['rootName']&&_0x38ad9d['unwrap'](_0x13d0d6);});});};_0x27c12d('insertion','accept'),_0x27c12d('insertion','discard'),_0x27c12d('deletion','accept'),_0x27c12d('deletion','discard'),_0x827e8d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xafcf03=>{const _0x2911a2=_0xafcf03['map'](_0x41c634=>_0x41c634['getContainedElement']()),_0x307e0a=_0x2911a2[0x0]['findAncestor']('table'),{minRow:_0x895f72,maxRow:_0x10cd5a}=_0x307e19['_getCoordsForCells'](_0x2911a2);_0x14887a['removeRows'](_0x307e0a,{'at':_0x895f72,'rows':_0x10cd5a-_0x895f72+0x1});}),_0x827e8d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x38cfd2=>{const _0x24e42a=_0x38cfd2['map'](_0x2596ef=>_0x2596ef['getContainedElement']()),_0x38784a=_0x24e42a[0x0]['findAncestor']('table'),{minColumn:_0x2cf623,maxColumn:_0x2f2454}=_0x307e19['_getCoordsForCells'](_0x24e42a);_0x14887a['removeColumns'](_0x38784a,{'at':_0x2cf623,'columns':_0x2f2454-_0x2cf623+0x1});});const _0x335769=(_0x18c172,_0x57052d)=>{if(!_0x57052d['subType']||!_0x57052d['subType']['startsWith']('tablePaste'))return;const _0x2b2af5=_0x57052d['attributes']['tablePasteChainId'],_0x41789a=_0x827e8d['getSuggestions']()['filter'](_0x26a337=>_0x26a337['isInContent']&&_0x26a337['attributes']&&_0x26a337['attributes']['tablePasteChainId']==_0x2b2af5);_0x41789a['length']&&_0x57052d['getAllAdjacentSuggestions']()['length']!=_0x41789a['length']&&_0x41789a['reduce']((_0x3dee4a,_0x35b600)=>(_0x3dee4a['next']=_0x35b600,_0x35b600['previous']=_0x3dee4a,_0x35b600));};function _0x2e0105(_0x4b1125,_0x4cd077=!0x0){const {id:_0xee69dc,authorId:_0x107c82}=_0x827e8d['_splitMarkerName'](_0x4b1125['markerName']),_0x38e9e4=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x35ed2c=_0x827e8d['activeMarkers']['includes'](_0x4b1125['markerName']);return _0x35ed2c&&_0x38e9e4['push']('ck-suggestion-marker--active'),{'classes':_0x38e9e4,'attributes':{'data-suggestion':_0xee69dc,'data-author-id':_0x107c82},'priority':_0x35ed2c&&_0x4cd077?0xbc2:0xbb8};}_0x827e8d['on']('suggestionLoaded',_0x335769,{'priority':'high'}),_0x827e8d['on']('suggestionUnloaded',_0x335769,{'priority':'high'}),_0x341929['model']['document']['registerPostFixer'](()=>{let _0x59936f=!0x1;const _0xfb54b=Array['from'](_0x341929['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4701c9,data:_0x505211}of _0xfb54b){const {group:_0x3218d9,type:_0x809130,id:_0x5ee969}=_0x827e8d['_splitMarkerName'](_0x4701c9);if('suggestion'!=_0x3218d9||'deletion'!=_0x809130||_0x505211['oldRange'])continue;if(!_0x827e8d['hasSuggestion'](_0x5ee969))continue;const _0x29322e=_0x827e8d['getSuggestion'](_0x5ee969)['getRanges'](),_0xec18fa=_0x341929['plugins']['get']('Users')['me'];for(const _0x2f37b1 of _0x827e8d['getSuggestions']()){if(!_0x2f37b1['isInContent']||_0x2f37b1['author']!=_0xec18fa)continue;if('formatBlock'!=_0x2f37b1['type']||'tablePasteCell'!=_0x2f37b1['subType'])continue;if(_0x2f37b1['getRanges']()['every'](_0x57f08f=>_0x29322e['some'](_0x47305e=>_0x47305e['containsRange'](_0x57f08f,!0x0)))){for(const _0x3fbb76 of _0x2f37b1['getAllAdjacentSuggestions']())_0x3fbb76['isInContent']&&(_0x3fbb76['discard'](),_0x59936f=!0x0);}}}return _0x59936f;}),_0x341929['model']['document']['registerPostFixer'](_0x4872d0=>{const _0x1af72b=_0x341929['commands']['get']('redo');if(!_0x1af72b||!_0x1af72b['_createdBatches']['has'](_0x4872d0['batch']))return!0x1;let _0x4bf496=!0x1;const _0x574eaf=_0x341929['plugins']['get']('Users')['me'],_0x30c915=_0x341929['model']['document']['differ']['getChanges'](),_0x571ac2=Array['from'](_0x341929['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x52c8d2,data:_0x4aebc3})=>{const {group:_0xddaf6b,subType:_0x2e549d,authorId:_0x1c469e}=_0x827e8d['_splitMarkerName'](_0x52c8d2);return'suggestion'==_0xddaf6b&&'tablePaste'==_0x2e549d&&_0x1c469e==_0x574eaf['id']&&!_0x4aebc3['oldRange'];});for(const _0x4bbe0c of _0x30c915){if('insert'!=_0x4bbe0c['type']||'tableCellSuggestion'!=_0x4bbe0c['name']||0x1!=_0x4bbe0c['length'])continue;const _0x2ca565=_0x4872d0['createRange'](_0x4bbe0c['position'],_0x4bbe0c['position']['getShiftedBy'](0x1));if(!_0x571ac2['find'](({data:_0x392d43})=>_0x392d43['newRange']['isEqual'](_0x2ca565))){for(const {name:_0x16f14d,data:_0x5b1f6b}of _0x571ac2)if(_0x2ca565['containsRange'](_0x5b1f6b['newRange'])){_0x4872d0['updateMarker'](_0x16f14d,{'range':_0x2ca565}),_0x4bf496=!0x0;break;}}}return _0x4bf496;}),_0x341929['model']['document']['registerPostFixer'](_0x7733c3=>{let _0x3fe271=!0x1;const _0x499e39=_0x341929['plugins']['get']('Users')['me'],_0x14097d=_0x827e8d['getSuggestions']()['filter'](_0xc23046=>_0xc23046['isInContent']&&_0xc23046['author']==_0x499e39),_0x5c0d3b=new Set(),_0x5c1ad1=new Set();for(const _0x34a9eb of _0x14097d)if('tablePaste'==_0x34a9eb['subType'])for(const _0x123b59 of _0x34a9eb['getMarkers']()){const _0x3532e2=_0x123b59['getRange']()['getContainedElement']();if(_0x3532e2){if(_0x3532e2['is']('element','tableCellSuggestion')&&Ue(_0x3532e2)){_0x34a9eb['removeMarker'](_0x123b59['name']),_0x5c0d3b['add'](_0x3532e2),_0x3fe271=!0x0;const _0x2cb577=_0x3532e2['nextSibling'],_0x16ea05=_0x3532e2['previousSibling'],_0x168abc=_0x2cb577&&_0x2cb577['is']('element','tableCellSuggestion'),_0x17f464=_0x16ea05&&_0x16ea05['is']('element','tableCellSuggestion');_0x168abc&&!_0x5c0d3b['has'](_0x2cb577)&&_0x5c1ad1['add'](_0x2cb577),_0x17f464&&!_0x5c0d3b['has'](_0x16ea05)&&_0x5c1ad1['add'](_0x16ea05);}else _0x3532e2['is']('element','paragraph')&&_0x3532e2['isEmpty']&&(_0x34a9eb['removeMarker'](_0x123b59['name']),_0x3fe271=!0x0);}}else{if('tablePasteCell'==_0x34a9eb['subType']){if(!_0x34a9eb['attributes']||!_0x34a9eb['attributes']['tablePasteChainId'])continue;const _0x2329e4=_0x34a9eb['attributes']['markerAttributes'];if(_0x2329e4&&Object['keys'](_0x2329e4)['length'])continue;const _0x165bbb=_0x34a9eb['attributes']['tablePasteChainId'];let _0x4a549b=!0x0,_0x1c04a6=!0x0;for(const _0x172cd7 of _0x14097d)if(_0x172cd7['subType']&&_0x172cd7['subType']['startsWith']('tablePaste')){if(!_0x172cd7['attributes']['tablePasteChainId']){_0x1c04a6=!0x1;break;}if(_0x172cd7['id']!=_0x34a9eb['id']&&_0x172cd7['attributes']['tablePasteChainId']==_0x165bbb){_0x4a549b=!0x1;break;}}_0x1c04a6&&_0x4a549b&&(_0x34a9eb['removeMarkers'](),_0x3fe271=!0x0);}}for(const _0xadc8e of _0x5c0d3b)_0x7733c3['remove'](_0xadc8e);for(const _0x103572 of _0x5c1ad1)_0x7733c3['unwrap'](_0x103572);return _0x3fe271;}),_0x341929['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x48ba86=>_0x2e0105(_0x48ba86),'converterPriority':'high'}),_0x341929['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x32597c,_0x4630a0)=>_0x4630a0['options']['showSuggestionHighlights']?_0x2e0105(_0x32597c,!0x1):null,'converterPriority':'high'});const _0x25b8e6=_0x341929['editing']['view'];this['listenTo'](_0x25b8e6['document'],'clipboardOutput',(_0x5f53bc,_0x11fa32)=>{const _0x3c4cf7=[];for(const _0xdfaba3 of _0x25b8e6['createRangeIn'](_0x11fa32['content'])['getItems']())_0xdfaba3['is']('element','suggestion-td')&&_0x3c4cf7['push'](_0xdfaba3);_0x25b8e6['change'](_0x146e62=>{for(const _0x3ec1c9 of _0x3c4cf7)_0x146e62['move'](_0x146e62['createRangeIn'](_0x3ec1c9),_0x146e62['createPositionBefore'](_0x3ec1c9)),_0x146e62['remove'](_0x3ec1c9);});});}}function Ue(_0x4e048c){if(_0x4e048c['isEmpty'])return!0x0;const _0x238b0d=_0x4e048c['getChild'](0x0);return _0x238b0d['is']('element','paragraph')&&_0x238b0d['isEmpty'];}function De(_0xe601cd,_0xfab04c={},_0x56e6d1){for(const {isAnchor:_0x43e7bc,cellHeight:_0x121a69,cellWidth:_0x3ae2ce}of _0x56e6d1['createTableWalker'](_0xe601cd,{'includeAllSlots':!0x0,..._0xfab04c}))if(!_0x43e7bc||0x1!=_0x121a69||0x1!=_0x3ae2ce)return!0x1;return!0x0;}class Bt extends _0x41653b{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x102302=this['editor']['plugins']['get']('TrackChangesEditing');_0x102302['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x102302['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x102302['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x102302['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x102302['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x102302['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x5aefdc,_0x32a8da){const _0x3106ee=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d9d6f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3063e9=_0x32a8da['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4b8a3f=_0x3d9d6f['getColumnGroupElement'](_0x3063e9);let _0x19311b=_0x4b8a3f?_0x3d9d6f['getTableColumnsWidths'](_0x4b8a3f):null,_0x16608b=_0x3063e9['getAttribute']('tableWidth')||null;const _0x4247dc=_0x32a8da['tableWidth']||_0x16608b,_0x5258e9=_0x32a8da['columnWidths']||_0x19311b,_0x5f1c13=this['editor']['plugins']['get']('Users')['me'];for(const _0x412313 of _0x3106ee['getSuggestions']()){const _0x209c42=_0x412313['getContainedElement']();if('resizeTable'===_0x412313['subType']&&_0x209c42===_0x3063e9){_0x412313['author']!==_0x5f1c13&&_0x412313['discard']();const _0x33b896=_0x412313['data']['commandParams'];_0x16608b=_0x33b896[0x0]['tableWidth'],_0x19311b=_0x33b896[0x0]['columnWidths'];break;}}_0x5aefdc({'table':_0x3063e9,'tableWidth':_0x4247dc,'columnWidths':_0x5258e9}),_0x3106ee['markBlockFormat'](_0x3063e9,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x16608b,'columnWidths':_0x19311b}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x20063f){if('formatBlock'!=_0x20063f['type']&&'formatInline'!=_0x20063f['type'])return;const {data:_0x2b34ce}=_0x20063f;if(_0x2b34ce&&'resizeTable'===_0x2b34ce['formatGroupId']){const _0x3a6dfa='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x3a6dfa)};}}}class Ot extends _0x41653b{['afterInit'](){const _0x2c0862=this['editor'];_0x2c0862['plugins']['has']('Template')&&_0x2c0862['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0x41653b{['afterInit'](){const _0x265c65=this['editor'];if(!_0x265c65['commands']['get']('insertTableOfContents'))return;_0x265c65['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5757b2=_0x265c65['plugins']['get']('TrackChangesEditing'),_0x50e6f7=_0x265c65['locale'];_0x5757b2['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2c9254=>c(_0x50e6f7,'ELEMENT_TABLE_OF_CONTENTS',_0x2c9254));}}class xt extends _0x41653b{['afterInit'](){const _0x586360=this['editor'];if(!_0x586360['plugins']['has']('Title'))return;const _0xdfe35f=_0x586360['plugins']['get']('TrackChangesEditing');_0xdfe35f['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x586360['locale'],'ELEMENT_TITLE')),_0x586360['model']['document']['registerPostFixer'](_0x4f665b=>{let _0x5cf489=!0x1;const _0x24b5bd=Array['from'](_0x586360['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x45acf6,data:_0x5e126e}of _0x24b5bd){const {group:_0x4c4a47}=_0xdfe35f['_splitMarkerName'](_0x45acf6);if('suggestion'!==_0x4c4a47||!_0x5e126e['newRange'])continue;const _0x36cd52=_0x5e126e['newRange'],_0x349cdb=_0x36cd52['end']['nodeBefore'];if(!_0x349cdb||!_0x349cdb['is']('element','title-content'))continue;if(!_0x36cd52['start']['isTouching'](_0x36cd52['end']))continue;const _0x4261c5=_0x586360['model']['schema']['getNearestSelectionRange'](_0x36cd52['end'],'forward');if(_0x4261c5&&_0x4261c5['isCollapsed']){const _0xd59b92=_0x4f665b['createRange'](_0x36cd52['start'],_0x4261c5['start']);_0xd59b92['isEqual'](_0x36cd52)||(_0x4f665b['updateMarker'](_0x45acf6,{'range':_0xd59b92}),_0x5cf489=!0x0);}_0x5cf489||(_0x4f665b['removeMarker'](_0x45acf6),_0x5cf489=!0x0);}return _0x5cf489;});}}class Tt extends _0x41653b{['afterInit'](){const _0x15a871=this['editor'],_0x37acb8=_0x15a871['plugins']['get']('TrackChangesEditing');_0x15a871['plugins']['has']('Uploadcare')&&(_0x37acb8['enableCommand']('uploadcare'),_0x15a871['plugins']['has']('UploadcareImageEdit')&&(_0x37acb8['enableCommand']('uploadcareImageEdit'),_0x37acb8['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x37acb8['registerBlockAttribute']('uploadcareImageId'),_0x37acb8['descriptionFactory']['registerDescriptionCallback'](_0x277243=>{if('attribute'!=_0x277243['type'])return;const {data:_0x1fc342}=_0x277243;return _0x1fc342&&'uploadcareImageId'==_0x1fc342['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x41653b{['afterInit'](){const _0x657f11=this['editor'],_0x16c81d=_0x657f11['plugins']['get']('TrackChangesEditing');_0x657f11['plugins']['has']('UndoEditing')&&(_0x16c81d['enableCommand']('undo'),_0x16c81d['enableCommand']('redo'));}}class Ut extends _0x41653b{static get['requires'](){return[Ct];}['afterInit'](){const _0x53da5c=this['editor'];if(!_0x53da5c['plugins']['has']('TableCaptionEditing'))return;_0x53da5c['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x41653b{['tableProperties'];['tableCellProperties'];constructor(_0xf5a115){super(_0xf5a115),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 _0x27c4af=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xfb11a1 of this['tableProperties'])_0x27c4af['enableCommand'](_0xfb11a1,(_0x3b7bb8,_0x485896)=>{const _0x48f7c2=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xfb11a1,[_0x48f7c2],this['tableProperties'],'tableProperties',_0x3b7bb8,_0x485896);});_0x27c4af['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x27c4af['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x27c4af['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0xb5a32c,_0x19dffa)=>this['handleDiscardAction'](this['tableProperties'],_0xb5a32c,_0x19dffa)),_0x27c4af['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x35d53f of this['tableCellProperties'])_0x27c4af['enableCommand'](_0x35d53f,(_0x12cb5f,_0x44e2a6)=>{const _0x7f34da=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x35d53f,_0x7f34da,this['tableCellProperties'],'tableCellProperties',_0x12cb5f,_0x44e2a6);});_0x27c4af['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x27c4af['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x27c4af['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x53a0a0,_0x508a29)=>this['handleDiscardAction'](this['tableCellProperties'],_0x53a0a0,_0x508a29)),_0x27c4af['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x27c4af['descriptionFactory']['registerDescriptionCallback'](_0x3c59d1=>this['handleSuggestionDescription'](_0x3c59d1));}['_handlePropertyChange'](_0x4e82ce,_0x1f9837,_0x4f5a72,_0x2450f3,_0x2bde48,_0x1c545c){const _0x43f73b=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1c545c['batch'],()=>{for(const _0x374653 of _0x1f9837){if(this['_getSuggestion'](_0x374653,_0x2450f3))_0x2bde48(_0x1c545c);else{const _0x5129e7={};for(const _0x1ac84c of _0x4f5a72){const _0xcb27b4=_0x374653['getAttribute'](_0x1ac84c);void 0x0!==_0xcb27b4&&(_0x5129e7[_0x1ac84c]=_0xcb27b4);}_0x2bde48(_0x1c545c),_0x43f73b['markBlockFormat'](_0x374653,{'commandParams':[_0x5129e7]},[],_0x2450f3);}}});}['handleDiscardAction'](_0x2f4f0f,_0x4a5e26,_0x51e940){const _0x5b1a1f=_0x4a5e26[0x0]['start']['nodeAfter'],_0x335abb=_0x51e940['commandParams'][0x0];this['editor']['model']['change'](_0xcd4f87=>{for(const _0x505245 of _0x2f4f0f)void 0x0!==_0x335abb[_0x505245]?_0xcd4f87['setAttribute'](_0x505245,_0x335abb[_0x505245],_0x5b1a1f):_0xcd4f87['removeAttribute'](_0x505245,_0x5b1a1f);});}['handleSuggestionDescription'](_0x403d00){if(_0x403d00['data'])switch(_0x403d00['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x4552bf,_0xd929b2){const _0x227ff1=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x308c23 of _0x227ff1['getSuggestions']({'skipNotAttached':!0x0})){const _0x123e5f=_0x308c23['getContainedElement']();if(_0x308c23['subType']===_0xd929b2&&_0x123e5f===_0x4552bf)return _0x308c23;}return null;}}const u='$elementName';class p extends _0x41653b{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x497cb6,_0x33c81f,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Rt,Vt,Ot,xt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x58412b){super(_0x58412b),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4b1035,_0x3aba03,_0x3cdfd7,_0x241531)=>{this['_model']['change'](()=>{for(const _0x48208a of[..._0x241531,..._0x3cdfd7])this['_model']['markers']['has'](_0x48208a)&&_0x58412b['editing']['reconvertMarker'](_0x48208a);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x58412b['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x58412b['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x58412b['config']['get']('trackChanges.trackFormatChanges'),_0x58412b['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x58412b['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x58412b,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x38492c=this['editor'],_0x2d5749=(_0x4cc98a,_0x237aec)=>{if('attribute'!=_0x4cc98a)return'ck-suggestion-marker-'+_0x4cc98a;const _0x22964f=_0x237aec['split']('|')[0x0];return this['_isBlockAttribute'](_0x22964f)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x38492c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x40f0dd=>{const {id:_0x68217b,authorId:_0x2088e8,type:_0x1cee73,subType:_0x54dea2}=this['_splitMarkerName'](_0x40f0dd['markerName']),_0x58904b=['ck-suggestion-marker',_0x2d5749(_0x1cee73,_0x54dea2)];let _0x4d180a=0xbb8;return this['activeMarkers']['includes'](_0x40f0dd['markerName'])&&(_0x58904b['push']('ck-suggestion-marker--active'),_0x4d180a=0xbc2),'deletion'==_0x1cee73&&(_0x4d180a+=0x5),{'classes':_0x58904b,'attributes':{'data-suggestion':_0x68217b,'data-author-id':_0x2088e8},'priority':_0x4d180a};}}),_0x38492c['conversion']['for']('dataDowncast')['add'](_0x223383=>{_0x223383['on']('addMarker:suggestion',(_0x23bd7e,_0x563b5a,_0x3f3b42)=>{if(!_0x3f3b42['options']['showSuggestionHighlights'])return;const _0x56a1b7=_0x563b5a['item'];if(!_0x56a1b7)return;const _0x1cde41=_0x3f3b42['mapper']['toViewElement'](_0x56a1b7);_0x38492c['model']['schema']['isObject'](_0x56a1b7)&&_0x1cde41&&!_0x1cde41['getCustomProperty']('widget')&&_0x1cde41['is']('containerElement')&&_0x233169(_0x1cde41,_0x3f3b42['writer']);},{'priority':'high'});}),_0x38492c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5c1117,_0x2890e3)=>{if(!_0x2890e3['options']['showSuggestionHighlights'])return null;const {type:_0x22f5fb,subType:_0x27c345}=this['_splitMarkerName'](_0x5c1117['markerName']);return{'classes':['ck-suggestion-marker',_0x2d5749(_0x22f5fb,_0x27c345)],'priority':0xbb8};}});const _0x3c8d32=({showActiveMarkers:_0x308dd8=!0x0,isAttributeSuggestion:_0x402036=!0x1}={})=>(_0x153bfe,_0x5725b7,_0x47900d)=>{if(!_0x5725b7['item'])return;const {id:_0x8e2f44,authorId:_0x569cc2}=this['_splitMarkerName'](_0x5725b7['markerName']);if(_0x402036){const _0x180302=this['_suggestions']['get'](_0x8e2f44),_0x4d89eb=this['_getAttributeKey'](_0x180302);if(!this['_isBlockAttribute'](_0x4d89eb))return;}if(_0x5725b7['item']['is']('selection'))return void _0x47900d['consumable']['consume'](_0x5725b7['item'],_0x153bfe['name']);const _0x22d31b=_0x47900d['mapper']['toViewElement'](_0x5725b7['item']);if(_0x5725b7['item']['is']('element')&&_0x38492c['model']['schema']['isBlock'](_0x5725b7['item'])&&!_0x22d31b['getCustomProperty']('addHighlight')){_0x47900d['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x22d31b),_0x47900d['writer']['setAttribute']('data-suggestion',_0x8e2f44,_0x22d31b),_0x47900d['writer']['setAttribute']('data-author-id',_0x569cc2,_0x22d31b),_0x47900d['mapper']['bindElementToMarker'](_0x22d31b,_0x5725b7['markerName']),_0x308dd8&&(this['activeMarkers']['includes'](_0x5725b7['markerName'])?_0x47900d['writer']['addClass']('ck-suggestion-marker--active',_0x22d31b):_0x47900d['writer']['removeClass']('ck-suggestion-marker--active',_0x22d31b));for(const _0x4fa686 of _0x38492c['model']['createRangeIn'](_0x5725b7['item'])['getItems']())_0x47900d['consumable']['consume'](_0x4fa686,_0x153bfe['name']);_0x47900d['consumable']['consume'](_0x5725b7['item'],_0x153bfe['name']);}};_0x38492c['conversion']['for']('dataDowncast')['add'](_0x257d92=>{_0x257d92['on']('addMarker:suggestion:formatBlock',(_0x27a6b9,_0x317a8f,_0x17a812)=>{_0x17a812['options']['showSuggestionHighlights']&&_0x3c8d32({'showActiveMarkers':!0x1})(_0x27a6b9,_0x317a8f,_0x17a812);},{'priority':'highest'});}),_0x38492c['conversion']['for']('dataDowncast')['add'](_0x1346ac=>{_0x1346ac['on']('addMarker:suggestion:attribute',(_0x59f1cd,_0x52ced8,_0x2027c8)=>{_0x2027c8['options']['showSuggestionHighlights']&&_0x3c8d32({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x59f1cd,_0x52ced8,_0x2027c8);},{'priority':'highest'});}),_0x38492c['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2979f9,_0x222a15)=>_0x222a15['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x2979f9['substr'](0xb)}}),_0x38492c['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3080ba,{writer:_0x204d44})=>{let _0x35ed6e='suggestion:'+_0x3080ba['getAttribute']('suggestion-type')+':'+_0x3080ba['getAttribute']('id');return _0x3080ba['getAttribute']('marker-count')&&(_0x35ed6e+=':'+_0x3080ba['getAttribute']('marker-count')),_0x204d44['createElement']('$marker',{'data-name':_0x35ed6e});}}),_0x38492c['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x38492c['conversion']['for']('editingDowncast')['add'](_0x374c92=>{_0x374c92['on']('addMarker:suggestion:formatBlock',_0x3c8d32(),{'priority':'high'});}),_0x38492c['conversion']['for']('editingDowncast')['add'](_0x794ab5=>{_0x794ab5['on']('addMarker:suggestion:attribute',_0x3c8d32({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x38492c['conversion']['for']('editingDowncast')['add'](_0x508480=>{_0x508480['on']('removeMarker:suggestion:formatBlock',(_0x28c62e,_0x344f85,_0x5307c1)=>{const _0x13476c=_0x5307c1['mapper']['markerNameToElements'](_0x344f85['markerName']);if(_0x13476c){for(const _0x2d2767 of _0x13476c)_0x2d2767['getCustomProperty']('addHighlight')||(_0x5307c1['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2d2767),_0x5307c1['writer']['removeAttribute']('data-suggestion',_0x2d2767),_0x5307c1['writer']['removeAttribute']('data-author-id',_0x2d2767),_0x5307c1['mapper']['unbindElementFromMarkerName'](_0x2d2767,_0x344f85['markerName']));}},{'priority':'high'});}),_0x38492c['conversion']['for']('editingDowncast')['add'](_0x2bddc6=>{_0x2bddc6['on']('removeMarker:suggestion:attribute',(_0x4abb20,_0x319436,_0x47f5bc)=>{const _0x10907f=_0x47f5bc['mapper']['markerNameToElements'](_0x319436['markerName']);if(!_0x10907f)return;const {id:_0x374e2a}=this['_splitMarkerName'](_0x319436['markerName']),_0x5b0bd7=this['_suggestions']['get'](_0x374e2a),_0x2f5be0=this['_getAttributeKey'](_0x5b0bd7);if(this['_isBlockAttribute'](_0x2f5be0)){for(const _0x251b7d of _0x10907f)_0x251b7d['getCustomProperty']('addHighlight')||(_0x47f5bc['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x251b7d),_0x47f5bc['writer']['removeAttribute']('data-suggestion',_0x251b7d),_0x47f5bc['writer']['removeAttribute']('data-author-id',_0x251b7d),_0x47f5bc['mapper']['unbindElementFromMarkerName'](_0x251b7d,_0x319436['markerName']));}},{'priority':'high'});}),_0x38492c['model']['document']['registerPostFixer'](_0x93320c=>{let _0x5be078=!0x1;const _0x44fb02=Array['from'](_0x38492c['model']['document']['differ']['getChangedMarkers']()),_0x23e0da=new Set();for(const {name:_0x1c6949,data:_0x260b90}of _0x44fb02){const {group:_0x56bf82,type:_0x9a4c7,subType:_0x20d0d1,id:_0x451e59}=this['_splitMarkerName'](_0x1c6949);if('suggestion'!==_0x56bf82)continue;const _0x227c5e=this['_suggestions']['get'](_0x451e59);if(null!=_0x260b90['newRange']){'formatInline'==_0x9a4c7&&(_0x5be078=_0x5be078||Jt(_0x260b90['newRange'],_0x1c6949,_0x93320c,_0x38492c['model']['schema']));const _0x42e603='attribute'==_0x9a4c7&&this['_isBlockAttribute'](_0x20d0d1['split']('|')[0x0]);if(_0x260b90['newRange']['isCollapsed']||'$graveyard'==_0x260b90['newRange']['root']['rootName']||'formatBlock'==_0x9a4c7&&!Ht(_0x260b90['newRange'])||_0x42e603&&!Ht(_0x260b90['newRange'])||'deletion'==_0x9a4c7&&!(!Lt(_0x5ceb96=_0x260b90['newRange'])&&!function(_0x39ee21){return _0x39ee21['start']['parent']==_0x39ee21['end']['nodeBefore']&&_0x39ee21['start']['isAtEnd'];}(_0x5ceb96)))_0x93320c['removeMarker'](_0x1c6949),_0x5be078=!0x0;else{if(!_0x227c5e||!_0x227c5e['isInContent'])continue;if(_0x260b90['newRange']&&_0x260b90['oldRange']&&_0x260b90['newRange']['isEqual'](_0x260b90['oldRange']))continue;_0x23e0da['add'](_0x227c5e);}}}var _0x5ceb96;return _0x23e0da['size']>0x0&&(_0x5be078=!!this['_joinWithAdjacentSuggestions'](_0x23e0da)||_0x5be078),_0x5be078;}),_0x38492c['model']['document']['registerPostFixer'](_0x204d8f=>{let _0x5a6b49=!0x1;for(const _0x537477 of _0x38492c['model']['document']['differ']['getChanges']())if('insert'==_0x537477['type'])for(const _0x5dc874 of this['_suggestions']['values']()){if(_0x5dc874['isMultiRange']||!_0x5dc874['isInContent'])continue;const _0x3fc7e1='formatBlock'==_0x5dc874['type'],_0x35638c=this['_getAttributeKey'](_0x5dc874),_0x22a91d=_0x35638c&&this['_isBlockAttribute'](_0x35638c);if(!_0x3fc7e1&&!_0x22a91d)continue;const _0x3e7b99=_0x5dc874['getFirstRange']();if(_0x3e7b99['start']['parent']!=_0x3e7b99['end']['parent']&&!_0x3e7b99['end']['isAtEnd']){const _0x3f4265=_0x38492c['model']['createPositionAt'](_0x3e7b99['start']['nodeAfter'],'end'),_0x8a50a3=_0x38492c['model']['createRange'](_0x3e7b99['start'],_0x3f4265);_0x204d8f['updateMarker'](_0x5dc874['getFirstMarker'](),{'range':_0x8a50a3}),_0x5a6b49=!0x0;}}return _0x5a6b49;}),_0x38492c['model']['document']['registerPostFixer'](_0x29a205=>this['_processAttributeChanges'](_0x29a205)),_0x38492c['model']['document']['registerPostFixer'](_0x68fa58=>!_0x68fa58['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x68fa58)),_0x38492c['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x38492c['model']['document']['on']('change:data',(_0x30c7b6,_0x33082e)=>{if(!_0x33082e['isLocal']||_0x33082e['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2df3f1=_0x38492c['model']['document']['differ']['getChanges']();if(0x0==_0x2df3f1['length'])return;const _0x52e0d8=[],_0x312858=_0x2df3f1['filter'](_0x220153=>'attribute'==_0x220153['type']),_0x4d9858=_0x2df3f1['filter'](_0x101be7=>'insert'==_0x101be7['type']&&'$text'!=_0x101be7['name']);for(const _0x3c4892 of _0x312858)this['_isRegisteredAttribute'](_0x3c4892['attributeKey'])&&_0x52e0d8['push']({'key':_0x3c4892['attributeKey'],'newValue':_0x3c4892['attributeNewValue'],'oldValue':_0x3c4892['attributeOldValue'],'range':qt(_0x3c4892['range'],_0x38492c['model'])});for(const _0x42745e of _0x4d9858){if('rename'!=_0x42745e['action']&&'refresh'!=_0x42745e['action'])continue;const _0x3fa595=zt(_0x42745e['position']['nodeAfter'],_0x38492c['model']),_0x1c7b4b=_0x42745e['before'];'rename'==_0x42745e['action']&&_0x52e0d8['push']({'key':u,'newValue':_0x42745e['name'],'oldValue':_0x1c7b4b['name'],'range':_0x3fa595});for(const [_0x2f23e8,_0x1cefa4]of _0x1c7b4b['attributes']){if(!this['_isRegisteredAttribute'](_0x2f23e8))continue;const _0x34d1e1=_0x42745e['attributes']['get'](_0x2f23e8);_0x1cefa4!==_0x34d1e1&&_0x52e0d8['push']({'key':_0x2f23e8,'newValue':_0x34d1e1,'oldValue':_0x1cefa4,'range':_0x3fa595});}for(const [_0x50b1ad,_0x26aeb9]of _0x42745e['attributes'])this['_isRegisteredAttribute'](_0x50b1ad)&&(_0x1c7b4b['attributes']['has'](_0x50b1ad)||_0x52e0d8['push']({'key':_0x50b1ad,'newValue':_0x26aeb9,'oldValue':null,'range':_0x3fa595}));}0x0!=_0x52e0d8['length']&&_0x38492c['model']['enqueueChange'](_0x33082e,_0x511838=>{const _0x574761=_0x2c3492();for(const {range:_0x2367e3,key:_0x406bbc,oldValue:_0x33c670,newValue:_0x577e65}of _0x52e0d8)this['markAttributeChange'](_0x2367e3,_0x406bbc,_0x33c670,_0x577e65,{'groupId':_0x574761});this['_reduceExistingSuggestions'](_0x511838,_0x52e0d8);});},{'priority':'lowest'}),_0x38492c['model']['markers']['on']('update:suggestion',(_0xf65a9b,_0x129855,_0x538d9)=>{if(null==_0x538d9){const {id:_0x34ebcc}=this['_splitMarkerName'](_0x129855['name']),_0x19935d=this['_suggestions']['get'](_0x34ebcc);_0x19935d&&_0x19935d['addMarkerName'](_0x129855['name']);}}),_0x38492c['model']['document']['on']('change:data',()=>{const _0x1cc81b=Array['from'](_0x38492c['model']['document']['differ']['getChangedMarkers']())['filter'](_0x542db8=>'suggestion'===this['_splitMarkerName'](_0x542db8['name'])['group']);if(0x0===_0x1cc81b['length'])return;_0x1cc81b['sort']((_0x5a87ac,_0x5c3648)=>{const _0x297e6f=_0x5a87ac['data']['oldRange'],_0x48b144=_0x5c3648['data']['oldRange'];return null===_0x297e6f&&null===_0x48b144?0x0:null===_0x297e6f&&null!==_0x48b144?-0x1:null!==_0x297e6f&&null===_0x48b144?0x1:_0x297e6f['start']['isBefore'](_0x48b144['start'])?-0x1:0x1;});const _0x5bef4c=new Set(),_0xe3120a=new Set();for(const {name:_0x519293,data:_0x57553b}of _0x1cc81b){const {id:_0x698126}=this['_splitMarkerName'](_0x519293);if(null===_0x57553b['oldRange']){const _0xa01812=this['_handleNewSuggestionMarker'](_0x519293);_0xe3120a['add'](_0xa01812);}else{const _0x3d19b7=this['_suggestions']['get'](_0x698126);null!==_0x57553b['newRange']||_0x3d19b7['isInContent']?(_0x5bef4c['add'](_0x3d19b7['head']),_0xe3120a['add'](_0x3d19b7)):this['_removeSuggestion'](_0x3d19b7);}}_0xe3120a['size']>0x0&&this['_refreshSuggestionsChain'](_0xe3120a);for(const _0x37363a of _0x5bef4c)this['fire']('suggestionChanged',_0x37363a);}),_0x38492c['model']['on']('applyOperation',(_0x9bc43f,_0x59aa3e)=>{const _0x5c6d40=_0x59aa3e[0x0];if(!this['_suggestions']['size'])return;if(!_0x5c6d40['isDocumentOperation'])return;if(_0x5c6d40['batch']['isUndo']||!_0x5c6d40['batch']['isLocal'])return;let _0x26cf8f,_0x2ea34a;switch(_0x5c6d40['type']){case'insert':_0x26cf8f=_0x38492c['model']['createPositionAt'](_0x5c6d40['position']),_0x2ea34a=_0x26cf8f['getShiftedBy'](_0x5c6d40['howMany']);break;case'split':_0x26cf8f=_0x38492c['model']['createPositionAt'](_0x5c6d40['splitPosition']),_0x2ea34a=_0x38492c['model']['createPositionAt'](_0x5c6d40['moveTargetPosition']);break;case'move':_0x26cf8f=_0x38492c['model']['createPositionAt'](_0x5c6d40['targetPosition']),_0x2ea34a=_0x26cf8f['getShiftedBy'](_0x5c6d40['howMany']);break;default:return;}const _0x48c9b5=_0x38492c['model']['createRange'](_0x26cf8f,_0x2ea34a);_0x38492c['model']['change'](()=>{for(const {suggestion:_0x1a96e5,meta:_0x3c41ea}of this['_findSuggestions'](_0x48c9b5)){if(_0x1a96e5['isMultiRange'])continue;if('formatInline'==_0x1a96e5['type'])continue;const _0x18998b=this['_getAttributeKey'](_0x1a96e5);if(_0x18998b&&this['_isBlockAttribute'](_0x18998b)&&'split'!=_0x5c6d40['type'])continue;const _0xed9fec=_0x1a96e5['data']&&_0x1a96e5['data']['multipleBlocks'];('formatBlock'!=_0x1a96e5['type']||'split'==_0x5c6d40['type']&&!_0xed9fec)&&(_0x3c41ea['containsRangeInObject']||'insertion'==_0x1a96e5['type']&&_0x3c41ea['isOwn']||_0x1a96e5['getFirstRange']()['containsRange'](_0x48c9b5)&&this['_breakSuggestionMarker'](_0x1a96e5,_0x26cf8f,_0x2ea34a));}});},{'priority':'lowest'}),_0x38492c['model']['on']('deleteContent',(_0x3ac4d4,_0xff6ebc)=>{const _0x1c0490=_0xff6ebc[0x0],_0x2512b8=_0xff6ebc[0x1];if(_0x2512b8&&_0x2512b8['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1c0490['isCollapsed'])return;const _0x4b58bd=_0x38492c['model']['schema'],{start:_0x4c98e7,end:_0x5b6c12}=_0x1c0490['getFirstRange'](),_0x10be0a=_0x4c98e7['nodeAfter']&&_0x4b58bd['isLimit'](_0x4c98e7['nodeAfter'])?null:_0x4b58bd['getNearestSelectionRange'](_0x4c98e7,'forward'),_0x35beaa=_0x5b6c12['nodeBefore']&&_0x4b58bd['isLimit'](_0x5b6c12['nodeBefore'])?null:_0x4b58bd['getNearestSelectionRange'](_0x5b6c12,'backward'),_0x2068cf=_0x38492c['model']['createRange'](_0x10be0a?_0x10be0a['start']:_0x4c98e7,_0x35beaa?_0x35beaa['end']:_0x5b6c12);_0x38492c['model']['change'](_0x2fee3c=>{this['markDeletion'](_0x2068cf);const _0x34ef6b=_0x38492c['model']['schema']['getNearestSelectionRange'](_0x2068cf['start']);_0x1c0490['is']('documentSelection')?_0x2fee3c['setSelection'](_0x34ef6b):_0x1c0490['setTo'](_0x34ef6b);}),_0x3ac4d4['stop']();},{'priority':_0x14842f['normal']+0xa}),_0x38492c['model']['on']('insertContent',(_0x16e045,_0x2f22be)=>{const _0x7a1046=_0x2f22be[_0x2f22be['length']-0x1];_0x7a1046&&_0x7a1046['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x38492c['model']['change'](()=>{let _0xc5b9ab=_0x38492c['model']['insertContent'](_0x2f22be[0x0],_0x2f22be[0x1],_0x2f22be[0x2],{'forceDefaultExecution':!0x0});if(!_0xc5b9ab)return;_0x16e045['return']=_0xc5b9ab['clone']();const _0x248575=_0xc5b9ab['end']['nodeBefore'],_0x42d5c8=_0x38492c['model']['schema'];_0x248575&&_0x42d5c8['isBlock'](_0x248575)&&!_0x42d5c8['isObject'](_0x248575)&&(_0xc5b9ab=_0x38492c['model']['createRange'](_0xc5b9ab['start'],_0x38492c['model']['createPositionAt'](_0x248575,'end'))),this['markInsertion'](_0xc5b9ab);}),_0x16e045['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x230081=new O(_0x38492c,this['_suggestions']);_0x38492c['commands']['add']('acceptSuggestion',_0x230081),this['enableCommand']('acceptSuggestion');const _0x1eafa9=new R(_0x38492c,this['_suggestions']);_0x38492c['commands']['add']('discardSuggestion',_0x1eafa9),this['enableCommand']('discardSuggestion'),_0x38492c['commands']['add']('acceptAllSuggestions',new x(_0x38492c,_0x230081,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x38492c['commands']['add']('discardAllSuggestions',new x(_0x38492c,_0x1eafa9,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x38492c['commands']['add']('acceptSelectedSuggestions',new E(_0x38492c,_0x230081,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x38492c['commands']['add']('discardSelectedSuggestions',new E(_0x38492c,_0x1eafa9,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x57575d=_0x38492c['plugins']['get']('CommentsRepository');this['listenTo'](_0x57575d,'addComment',(_0x26afb3,{threadId:_0x23c95e})=>{const _0x17dc7a=this['_suggestions']['get'](_0x23c95e);_0x17dc7a&&_0x17dc7a['commentThread']&&0x1===_0x17dc7a['commentThread']['length']&&this['_updateSuggestionData'](_0x23c95e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x57575d,'removeComment',(_0x40b7ee,{threadId:_0x46e11d})=>{const _0x177cb6=this['_suggestions']['get'](_0x46e11d);_0x177cb6&&_0x177cb6['commentThread']&&!_0x177cb6['commentThread']['length']&&this['_updateSuggestionData'](_0x46e11d,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x5ca239){const _0x52ff07=_0x4bfbc([0x68,0x78,0x59,0x4d,0x41,0x45,0x6d,0x69,0x36,0x49,0x37,0x5a,0x70,0x76,0x55,0x33,0x53,0x43,0x73,0x54,0x51,0x64,0x4c,0x57,0x35,0x58,0x65,0x77,0x44,0x61,0x74,0x6a,0x7a,0x32,0x56,0x66,0x47,0x34,0x4b,0x46,0x38,0x30,0x62,0x71,0x42,0x6c,0x31,0x52,0x6b,0x72,0x48,0x4f,0x6e,0x67,0x6f,0x4e,0x75,0x50,0x4a,0x79,0x39,0x63]),_0x5ef012=0x2115d607,_0x4a9324=0x2112b37f^_0x5ef012,_0x29f1af=window[_0x4bfbc([0x44,0x61,0x74,0x65])][_0x4bfbc([0x6e,0x6f,0x77])](),_0x2f105d=_0x5ca239[_0x4bfbc([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x32c0db=new window[(_0x4bfbc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c5847=>{_0x2f105d[_0x4bfbc([0x6f,0x6e,0x63,0x65])](_0x4bfbc([0x72,0x65,0x61,0x64,0x79]),_0x2c5847);}),_0x344a61={[_0x4bfbc([0x6b,0x74,0x79])]:_0x4bfbc([0x45,0x43]),[_0x4bfbc([0x75,0x73,0x65])]:_0x4bfbc([0x73,0x69,0x67]),[_0x4bfbc([0x63,0x72,0x76])]:_0x4bfbc([0x50,0x2d,0x32,0x35,0x36]),[_0x4bfbc([0x78])]:_0x4bfbc([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]),[_0x4bfbc([0x79])]:_0x4bfbc([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]),[_0x4bfbc([0x61,0x6c,0x67])]:_0x4bfbc([0x45,0x53,0x32,0x35,0x36])},_0x2e8feb=_0x2f105d[_0x4bfbc([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4bfbc([0x67,0x65,0x74])](_0x4bfbc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3f787b(){let _0x375800,_0x594534=null,_0x29af35=null;try{if(_0x2e8feb==_0x4bfbc([0x47,0x50,0x4c]))return _0x4bfbc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x375800=_0x3aa12e(),!_0x375800)return _0x4bfbc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x375800[_0x4bfbc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x29af35=_0x4e7e80(_0x375800[_0x4bfbc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x375800[_0x4bfbc([0x6a,0x74,0x69])])),await _0x59ba37()?_0x52272e()?_0x113814()?_0x4bfbc([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3d4573()?(_0x375800[_0x4bfbc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4bfbc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x594534=_0x362b91(_0x4bfbc([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x375800[_0x4bfbc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4bfbc([0x74,0x72,0x69,0x61,0x6c])&&(_0x594534=_0x362b91(_0x4bfbc([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x23e6eb()):_0x4bfbc([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4bfbc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4bfbc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x26cb46){return _0x4bfbc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x113814(){const _0x363e4b=[_0x4bfbc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4bfbc([0x74,0x72,0x69,0x61,0x6c])][_0x4bfbc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x375800[_0x4bfbc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x29f1af/0x3e8:0xe10*_0x4a9324;return _0x375800[_0x4bfbc([0x65,0x78,0x70])]<_0x363e4b;}function _0x52272e(){const _0x12c312=_0x375800[_0x4bfbc([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x12c312)return!0x1;if(_0x12c312[_0x4bfbc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4bfbc([0x2a])))return!0x0;if(_0x12c312[_0x4bfbc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4bfbc([0x54,0x43])))return!0x0;if(_0x12c312[_0x4bfbc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4bfbc([0x52,0x54,0x43]))){if(_0x1545ab())return!0x0;if(_0x26b175()||_0x2fa3d0())return!0x0;}return!0x1;}function _0x3d4573(){const _0x4e8019=_0x375800[_0x4bfbc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4e8019||0x0==_0x4e8019[_0x4bfbc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5ee3d6}=new URL(window[_0x4bfbc([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4e8019[_0x4bfbc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ee3d6))return!0x0;const _0x2e2f6e=_0x5ee3d6[_0x4bfbc([0x73,0x70,0x6c,0x69,0x74])](_0x4bfbc([0x2e]));return _0x4e8019[_0x4bfbc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x29346b=>_0x29346b[_0x4bfbc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4bfbc([0x2a])))[_0x4bfbc([0x6d,0x61,0x70])](_0x54f4ff=>_0x54f4ff[_0x4bfbc([0x73,0x70,0x6c,0x69,0x74])](_0x4bfbc([0x2e])))[_0x4bfbc([0x73,0x6f,0x6d,0x65])](_0x1580d5=>_0x2e2f6e[_0x4bfbc([0x65,0x76,0x65,0x72,0x79])]((_0xf3ec1a,_0x55211c)=>_0x1580d5[_0x55211c]===_0xf3ec1a||_0x1580d5[_0x55211c]===_0x4bfbc([0x2a])));}function _0x23e6eb(){return _0x594534&&_0x29af35?new window[(_0x4bfbc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x39f246,_0x3b04c0)=>{_0x594534[_0x4bfbc([0x74,0x68,0x65,0x6e])](_0x39f246,_0x3b04c0),_0x29af35[_0x4bfbc([0x74,0x68,0x65,0x6e])](_0x17d07d=>{_0x17d07d!=_0x4bfbc([0x56,0x61,0x6c,0x69,0x64])&&_0x39f246(_0x17d07d);},_0x3b04c0);}):_0x594534||_0x29af35||_0x4bfbc([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4e7e80(_0x352277,_0x190abf){return new window[(_0x4bfbc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ec125=>{if(_0x4a3718())return _0x5ec125(_0x4bfbc([0x56,0x61,0x6c,0x69,0x64]));_0x4b5599(),_0x2f105d[_0x4bfbc([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4bfbc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xee69af=!0x1;const _0x580c2a=_0x2c3492();function _0x3cdf51(_0x19a072){return!!_0x19a072&&(typeof _0x19a072===_0x4bfbc([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x19a072===_0x4bfbc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x19a072[_0x4bfbc([0x74,0x68,0x65,0x6e])]===_0x4bfbc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x19a072[_0x4bfbc([0x63,0x61,0x74,0x63,0x68])]===_0x4bfbc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2d8db1(_0x3c122d){_0x2db92c(_0x3c122d)[_0x4bfbc([0x74,0x68,0x65,0x6e])](_0x4f01cc=>{if(!_0x4f01cc||_0x4f01cc[_0x4bfbc([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4bfbc([0x6f,0x6b]))return _0x4bfbc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2be123(_0x15e4b9(_0x580c2a+_0x190abf))!=_0x4f01cc[_0x4bfbc([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4bfbc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4bfbc([0x56,0x61,0x6c,0x69,0x64]);})[_0x4bfbc([0x74,0x68,0x65,0x6e])](_0x363509=>(_0x379ccf(),_0x363509),()=>{const _0x5e5a9d=_0x2f5c23();return null==_0x5e5a9d?(_0x379ccf(),_0x4bfbc([0x56,0x61,0x6c,0x69,0x64])):_0x4bfbc(_0x29f1af-_0x5e5a9d>(0x5195207^_0x5ef012)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4bfbc([0x74,0x68,0x65,0x6e])](_0x5ec125)[_0x4bfbc([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5ec125(_0x4bfbc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3698b0=0x21233887^_0x5ef012;function _0x379ccf(){const _0x56e015=_0x4bfbc([0x6c,0x6c,0x63,0x74,0x2d])+_0x2be123(_0x15e4b9(_0x352277)),_0x1f5f9a=_0x7569c1(_0x2be123(window[_0x4bfbc([0x4d,0x61,0x74,0x68])][_0x4bfbc([0x63,0x65,0x69,0x6c])](_0x29f1af/_0x3698b0)));window[_0x4bfbc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4bfbc([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x56e015,_0x1f5f9a);}function _0x2f5c23(){const _0x178514=_0x4bfbc([0x6c,0x6c,0x63,0x74,0x2d])+_0x2be123(_0x15e4b9(_0x352277)),_0x3802bb=window[_0x4bfbc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4bfbc([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x178514);return _0x3802bb?window[_0x4bfbc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x7569c1(_0x3802bb),0x10)*_0x3698b0:null;}function _0x2db92c(_0x17d0bb){return new window[(_0x4bfbc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2962b0,_0xff092d)=>{_0x17d0bb[_0x4bfbc([0x74,0x68,0x65,0x6e])](_0x2962b0,_0xff092d),window[_0x4bfbc([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xff092d,0x211402c7^_0x5ef012);});}}_0x2f105d[_0x4bfbc([0x6f,0x6e])](_0x4bfbc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xd1e860,_0x11e689)=>{if(_0x11e689[0x0]!=_0x352277)return _0x5ec125(_0x4bfbc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x11e689[0x1]={..._0x11e689[0x1],[_0x4bfbc([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x580c2a};},{[_0x4bfbc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4bfbc([0x68,0x69,0x67,0x68])}),_0x2f105d[_0x4bfbc([0x6f,0x6e])](_0x4bfbc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3c29b4=>{_0x3cdf51(_0x3c29b4[_0x4bfbc([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xee69af=!0x0,_0x2d8db1(_0x3c29b4[_0x4bfbc([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4bfbc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4bfbc([0x6c,0x6f,0x77])}),_0x32c0db[_0x4bfbc([0x74,0x68,0x65,0x6e])](()=>{_0xee69af||_0x5ec125(_0x4bfbc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4a3718(){return _0x2f105d[_0x4bfbc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4bfbc([0x76,0x69,0x65,0x77])][_0x4bfbc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4bfbc([0x61,0x75,0x74,0x6f]);}function _0x4b5599(){_0x2f105d[_0x4bfbc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4bfbc([0x76,0x69,0x65,0x77])][_0x4bfbc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4bfbc([0x61,0x75,0x74,0x6f]);}}function _0x362b91(_0x552771){const _0x4d2a46=[new window[(_0x4bfbc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45075e=>setTimeout(_0x45075e,0x211ce8cb^_0x5ef012)),_0x32c0db[_0x4bfbc([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4bfbc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c677e=>{let _0x54c5d2=0x0;_0x2f105d[_0x4bfbc([0x6d,0x6f,0x64,0x65,0x6c])][_0x4bfbc([0x6f,0x6e])](_0x4bfbc([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x192d38,_0x5c8873)=>{_0x5c8873[0x0][_0x4bfbc([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x54c5d2++,_0x54c5d2==(0x2115d7ff^_0x5ef012)&&(_0x2c677e(),_0x192d38[_0x4bfbc([0x6f,0x66,0x66])]());});}))];return window[_0x4bfbc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4bfbc([0x72,0x61,0x63,0x65])](_0x4d2a46)[_0x4bfbc([0x74,0x68,0x65,0x6e])](()=>_0x552771);}async function _0x163d5e(){await _0x32c0db,_0x2f105d[_0x4bfbc([0x6d,0x6f,0x64,0x65,0x6c])][_0x4bfbc([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x135263,_0x2f105d[_0x4bfbc([0x6d,0x6f,0x64,0x65,0x6c])][_0x4bfbc([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x135263,_0x2f105d[_0x4bfbc([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4bfbc([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1545ab(){return _0x516c72(_0x4bfbc([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x18a1e3(_0x4bfbc([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4bfbc([0x73,0x74,0x61,0x74,0x65])]==_0x4bfbc([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x26b175(){return _0x516c72(_0x4bfbc([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 _0x2fa3d0(){return _0x516c72(_0x4bfbc([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4a9055(_0x2c3635){const _0x4ad651=_0x24973b();_0x2f105d[_0x4ad651]=_0x4bfbc([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2c3635,_0x2c3635!=_0x4bfbc([0x56,0x61,0x6c,0x69,0x64])&&_0x163d5e();}function _0x24973b(){const _0x3ddd93=window[_0x4bfbc([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4bfbc([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4bfbc([0x6e,0x6f,0x77])]())[_0x4bfbc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4bfbc([0x2e]),'');let _0x415cc8=_0x4bfbc([0x68]);for(let _0x409173=0x0;_0x409173<_0x3ddd93[_0x4bfbc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x409173+=0x2){let _0xe4b2e8=window[_0x4bfbc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ddd93[_0x4bfbc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x409173,_0x409173+0x2));_0xe4b2e8>=_0x52ff07[_0x4bfbc([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xe4b2e8-=_0x52ff07[_0x4bfbc([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x415cc8+=_0x52ff07[_0xe4b2e8];}return _0x415cc8;}function _0x3aa12e(){const _0xbefed3=_0x2e8feb[_0x4bfbc([0x73,0x70,0x6c,0x69,0x74])](_0x4bfbc([0x2e]));if(0x3!=_0xbefed3[_0x4bfbc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xc4a88c(_0xbefed3[0x1]);function _0xc4a88c(_0x17311e){const _0x42bae8=_0x180e96(_0x17311e);return _0x42bae8&&_0x66729f()?_0x42bae8:null;function _0x66729f(){const _0x299587=_0x42bae8[_0x4bfbc([0x6a,0x74,0x69])],_0x11a8f7=window[_0x4bfbc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x299587[_0x4bfbc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x299587[_0x4bfbc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x56fc55={..._0x42bae8,[_0x4bfbc([0x6a,0x74,0x69])]:_0x299587[_0x4bfbc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x299587[_0x4bfbc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x56fc55[_0x4bfbc([0x76,0x63])],_0x15e4b9(_0x56fc55)==_0x11a8f7;}}}async function _0x59ba37(){let _0x2269d7=!0x0;try{const _0xda3742=_0x2e8feb[_0x4bfbc([0x73,0x70,0x6c,0x69,0x74])](_0x4bfbc([0x2e])),[_0x3c248f,_0x50501a,_0x540970]=_0xda3742;return _0x5bf4be(_0x3c248f),await _0x134484(_0x3c248f,_0x50501a,_0x540970),_0x2269d7;}catch(_0x27ef24){return!0x1;}function _0x5bf4be(_0x3b64e8){const _0x5d6718=_0x180e96(_0x3b64e8);_0x5d6718&&_0x5d6718[_0x4bfbc([0x61,0x6c,0x67])]==_0x4bfbc([0x45,0x53,0x32,0x35,0x36])||(_0x2269d7=!0x1);}async function _0x134484(_0xb5063a,_0x44f45a,_0x130d32){const _0x13ceed=window[_0x4bfbc([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4bfbc([0x66,0x72,0x6f,0x6d])](_0x4ff0e7(_0x130d32),_0x3db7a0=>_0x3db7a0[_0x4bfbc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x465465=new window[(_0x4bfbc([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4bfbc([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xb5063a+_0x4bfbc([0x2e])+_0x44f45a),_0x2cd25f=window[_0x4bfbc([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4bfbc([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2cd25f)return;const _0x1d134f=await _0x2cd25f[_0x4bfbc([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4bfbc([0x6a,0x77,0x6b]),_0x344a61,{[_0x4bfbc([0x6e,0x61,0x6d,0x65])]:_0x4bfbc([0x45,0x43,0x44,0x53,0x41]),[_0x4bfbc([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4bfbc([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4bfbc([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2cd25f[_0x4bfbc([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4bfbc([0x6e,0x61,0x6d,0x65])]:_0x4bfbc([0x45,0x43,0x44,0x53,0x41]),[_0x4bfbc([0x68,0x61,0x73,0x68])]:{[_0x4bfbc([0x6e,0x61,0x6d,0x65])]:_0x4bfbc([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1d134f,_0x13ceed,_0x465465)||(_0x2269d7=!0x1);}}function _0x180e96(_0x3a28b4){return _0x3a28b4[_0x4bfbc([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4bfbc([0x65,0x79]))?JSON[_0x4bfbc([0x70,0x61,0x72,0x73,0x65])](_0x4ff0e7(_0x3a28b4)):null;}function _0x4ff0e7(_0x1b3a36){return window[_0x4bfbc([0x61,0x74,0x6f,0x62])](_0x1b3a36[_0x4bfbc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4bfbc([0x2b]))[_0x4bfbc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4bfbc([0x2f])));}function _0x15e4b9(_0x4a4cff){let _0x32c0fa=0x1505;function _0x18ea84(_0x3d4780){for(let _0x24b9f2=0x0;_0x24b9f2<_0x3d4780[_0x4bfbc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x24b9f2++){const _0x42fb68=_0x3d4780[_0x4bfbc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x24b9f2);_0x32c0fa=(_0x32c0fa<<0x5)+_0x32c0fa+_0x42fb68,_0x32c0fa&=_0x32c0fa;}}function _0x379c0b(_0x52a714){Array[_0x4bfbc([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x52a714)?_0x52a714[_0x4bfbc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x379c0b):_0x52a714&&typeof _0x52a714==_0x4bfbc([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4bfbc([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x52a714)[_0x4bfbc([0x73,0x6f,0x72,0x74])]()[_0x4bfbc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1fb298,_0x2d1613])=>{_0x18ea84(_0x1fb298),_0x379c0b(_0x2d1613);}):_0x18ea84(window[_0x4bfbc([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x52a714));}return _0x379c0b(_0x4a4cff),_0x32c0fa>>>0x0;}function _0x2be123(_0x40bc83){return _0x40bc83[_0x4bfbc([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4bfbc([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4bfbc([0x30]));}function _0x7569c1(_0x348fd1){return _0x348fd1[_0x4bfbc([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4bfbc([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4bfbc([0x6a,0x6f,0x69,0x6e])]('');}function _0x516c72(_0x3565f9){return _0x2f105d[_0x4bfbc([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4bfbc([0x68,0x61,0x73])](_0x3565f9);}function _0x18a1e3(_0x5acd7b){return _0x2f105d[_0x4bfbc([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4bfbc([0x67,0x65,0x74])](_0x5acd7b);}function _0x135263(){}function _0x4bfbc(_0x47932c){return _0x47932c['map'](_0x5a456e=>String['fromCharCode'](_0x5a456e))['join']('');}_0x4a9055(await _0x3f787b());}(this);}set['adapter'](_0x56df3d){if(this['_adapter'])throw new _0x26cd03('track-changes-adapter-already-set',this);this['_adapter']=_0x56df3d;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5d38a2=!0x1,toJSON:_0x17c91=!0x1}={}){const _0x2bd53d=[];for(const _0x298e45 of this['_suggestions']['values']())_0x5d38a2&&!_0x298e45['isInContent']||_0x2bd53d['push'](_0x298e45);return _0x17c91?_0x2bd53d['map'](_0xe36c8c=>_0xe36c8c['toJSON']()):_0x2bd53d;}['getSuggestion'](_0x3ede48){const _0x4af6ee=this['_suggestions']['get'](_0x3ede48);if(!_0x4af6ee)throw new _0x26cd03('track-changes-suggestion-not-found',this);return _0x4af6ee;}['hasSuggestion'](_0x1014cd){return this['_suggestions']['has'](_0x1014cd);}['addSuggestionData'](_0x187993){const {authorId:_0x4eb1c1,id:_0x1689af,attributes:_0xe68b52}=_0x187993,[_0x5072f8,_0xece62b]=_0x187993['type']['split'](':'),_0x1fb9ec=this['_suggestions']['get'](_0x1689af)||this['_createSuggestion'](_0x5072f8,_0xece62b,_0x1689af,_0x4eb1c1,_0xe68b52);if(this['_addThreadToSuggestion'](_0x1fb9ec),this['_checkSuggestionCorrectness'](_0x1fb9ec,_0x5072f8,_0xece62b||null,_0x4eb1c1),_0x1fb9ec['createdAt']=_0x187993['createdAt'],_0x1fb9ec['_isDataLoaded']=!0x0,_0xe68b52&&_0xe68b52['@external']){const _0x5e9e49=_0xe68b52['@external'],_0x26326c=this['_getExternalAuthor'](_0x5e9e49['authorName']);_0x1fb9ec['authoredAt']=_0x5e9e49['createdAt'],_0x1fb9ec['author']=_0x26326c,_0x1fb9ec['isExternal']=!0x0;}else _0x1fb9ec['authoredAt']=_0x187993['createdAt'];switch(_0x187993['data']&&(_0x1fb9ec['data']=_0x187993['data']),_0x187993['attributes']&&(_0x1fb9ec['attributes']=_0x187993['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1fb9ec['_saved']=!0x0),this['_suggestionState']['get'](_0x1fb9ec)){case'notReady':this['_suggestionState']['set'](_0x1fb9ec,'dataReady');break;case'markerReady':_0x1fb9ec['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1fb9ec])),this['_refreshSuggestionsChain'](new Set([_0x1fb9ec])),this['_suggestionState']['set'](_0x1fb9ec,'ready'),this['fire']('suggestionLoaded',_0x1fb9ec)):this['_suggestionState']['set'](_0x1fb9ec,'removed');}return _0x1fb9ec;}['acceptSuggestion'](_0x120b88){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x126b6b of _0x120b88['getAllAdjacentSuggestions']())_0x126b6b['accept']();});});}['discardSuggestion'](_0x225e7d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4e649e of _0x225e7d['getAllAdjacentSuggestions']())_0x4e649e['discard']();});});}['enableCommand'](_0xcdf7b3,_0x1d8940){const _0x351ea4=this['editor']['commands']['get'](_0xcdf7b3);if(!_0x351ea4)throw new _0x26cd03('track-changes-command-not-found',this,{'commandName':_0xcdf7b3});if(this['_enabledCommands']['has'](_0x351ea4))throw new _0x26cd03('track-changes-enable-command-twice',this,{'commandName':_0xcdf7b3});this['_enabledCommands']['add'](_0x351ea4),_0x1d8940&&_0x351ea4['on']('execute',(_0x2917e9,_0x3cc5e3)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3cc5e3['length']>0x0&&_0x3cc5e3[_0x3cc5e3['length']-0x1]&&_0x3cc5e3[_0x3cc5e3['length']-0x1]['forceDefaultExecution']?_0x3cc5e3['pop']():(_0x2917e9['return']=_0x1d8940((..._0x115e6b)=>_0x351ea4['execute'](..._0x115e6b,{'forceDefaultExecution':!0x0}),..._0x3cc5e3),_0x2917e9['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x52fe66){let _0x4e9701,_0x3bb704;const _0x209d0e=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4e9701=_0x52fe66();}catch(_0x2106ab){_0x3bb704=_0x2106ab;}return _0x209d0e||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3bb704&&_0x26cd03['rethrowUnexpectedError'](_0x3bb704,this),_0x4e9701;}['markInsertion'](_0x277f7e,_0x276218=null,_0x1297e7={}){if(_0x277f7e['isCollapsed'])return null;const _0x1b4c46=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x425401,meta:_0x55801e}of this['_findSuggestions'](_0x277f7e,'insertion'))if(_0x55801e['isOwn']){if(!_0x55801e['isNextTo']){if(_0x55801e['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x425401,_0x1297e7))continue;return _0x425401;}if(Xt(_0x425401,_0x1297e7))return _0x425401;this['_breakSuggestionMarker'](_0x425401,_0x277f7e['start'],_0x277f7e['end']);break;}if(_0x276218==_0x425401['subType']&&Xt(_0x425401,_0x1297e7)){const _0x2f8ca9=_0x425401['getFirstRange']();return _0x2f8ca9['start']['isEqual'](_0x277f7e['end'])?this['_setSuggestionRange'](_0x425401,this['_model']['createRange'](_0x277f7e['start'],_0x2f8ca9['end'])):this['_setSuggestionRange'](_0x425401,this['_model']['createRange'](_0x2f8ca9['start'],_0x277f7e['end'])),_0x425401;}}const _0xe3cb30=_0x2c3492(),_0x303eaa=_0x1b4c46['id'],_0x3cebd0=_0x276218?'insertion:'+_0x276218:'insertion',_0x136bb3=this['_setSuggestionData']({'id':_0xe3cb30,'type':_0x3cebd0,'createdAt':new Date(),'authorId':_0x303eaa,'attributes':_0x1297e7});return this['_addSuggestionMarker'](_0x3cebd0,_0xe3cb30,_0x303eaa,_0x277f7e),_0x136bb3;}['markMultiRangeInsertion'](_0x5bb2b6,_0x464e25='multi',_0xd4cb1f={}){const _0x5624ee=this['editor']['plugins']['get']('Users')['me'],_0x2ad78e=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x464e25,'join');for(const _0x2bf9fd of this['getSuggestions']())if(_0x2bf9fd['author']['id']==_0x5624ee['id']&&'insertion'==_0x2bf9fd['type']&&_0x2bf9fd['subType']==_0x464e25&&Xt(_0x2bf9fd,_0xd4cb1f)&&(_0x2ad78e(_0x2bf9fd['getRanges'](),_0x5bb2b6)||_0x2ad78e(_0x5bb2b6,_0x2bf9fd['getRanges']()))){for(const _0x1acbc9 of _0x5bb2b6)_0x2bf9fd['addRange'](_0x1acbc9);return _0x2bf9fd;}for(const {suggestion:_0xec9590,meta:_0x57dd41}of this['_findSuggestions'](_0x5bb2b6,'insertion')){if(!_0x57dd41['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x57dd41['containsRangeInObject'])continue;if(!Xt(_0xec9590,_0xd4cb1f))continue;let _0x54ff44=!0x0;for(const _0x236c3f of _0xec9590['getRanges']())for(const _0x58796f of _0x5bb2b6)if(!_0x236c3f['containsRange'](_0x58796f)){_0x54ff44=!0x1;break;}if(_0x54ff44)return _0xec9590;}const _0x563b84=_0x2c3492(),_0x2fe31e=_0x5624ee['id'],_0x5952bb='insertion:'+_0x464e25,_0x13e5b0=this['_setSuggestionData']({'id':_0x563b84,'type':_0x5952bb,'createdAt':new Date(),'authorId':_0x2fe31e,'attributes':_0xd4cb1f});for(const _0x2d90b2 of _0x5bb2b6)this['_addSuggestionMarker'](_0x5952bb,_0x563b84,_0x2fe31e,_0x2d90b2,o['getMultiRangeId']());return _0x13e5b0;}['markInlineFormat'](_0x4d9600,_0x459446,_0x28d3ae=null,_0x3f0957={}){if(_0x28d3ae=_0x28d3ae||Kt(_0x459446),_0x4d9600['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x433fad=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x28d3ae,'accept');return this['forceDefaultExecution'](()=>_0x433fad([_0x4d9600],_0x459446,_0x3f0957)),null;}const _0x771448=this['editor']['plugins']['get']('Users')['me'],_0x28ea53=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x25d99a,meta:_0x225a4e}of this['_findSuggestions'](_0x4d9600,'insertion'))_0x225a4e['isOwn']&&!_0x225a4e['isInsideObject']&&_0x28ea53['push'](..._0x25d99a['getRanges']());}const _0x3ea2f9=function(_0x32e579,_0xe67d45){const _0x13059d=[];for(const _0x1bb2e1 of _0xe67d45){const _0xbd378e=_0x32e579['getIntersection'](_0x1bb2e1);_0xbd378e&&_0x13059d['push'](_0xbd378e);}return _0x13059d;}(_0x4d9600,_0x28ea53),_0x4c381b=function(_0x5a8287,_0x4be35b){const _0x152a59=[_0x5a8287];for(const _0x15eb0e of _0x4be35b){let _0x57c80a=0x0;for(;_0x57c80a<_0x152a59['length'];){const _0x1e6511=_0x152a59[_0x57c80a]['getDifference'](_0x15eb0e);_0x152a59['splice'](_0x57c80a,0x1,..._0x1e6511),_0x57c80a+=_0x1e6511['length'];}}return _0x152a59;}(_0x4d9600,_0x28ea53);_0x3ea2f9['length']&&this['_model']['change'](()=>{for(const _0x426cdc of _0x3ea2f9){const _0x25f202=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x28d3ae,'accept');this['forceDefaultExecution'](()=>_0x25f202([_0x426cdc],_0x459446,_0x3f0957));}});for(const _0x4d0bfe of _0x4c381b){let _0x474fbc=null,_0x147e70=_0x4d0bfe['start'],_0x21ff0a=_0x4d0bfe['end'];for(const {suggestion:_0x440ba5,meta:_0x48dc4a}of this['_findSuggestions'](_0x4d0bfe,'formatInline')){if(!_0x48dc4a['isOwn'])continue;if(_0x440ba5['subType']!=_0x28d3ae)continue;if(!Xt(_0x440ba5,_0x3f0957))continue;const _0x561795=_0x440ba5['getFirstRange']();if(_0x561795['containsRange'](_0x4d0bfe,!0x0))return null;_0x147e70=_0x147e70['isBefore'](_0x561795['start'])?_0x147e70:_0x561795['start'],_0x21ff0a=_0x21ff0a['isAfter'](_0x561795['end'])?_0x21ff0a:_0x561795['end'],_0x474fbc?_0x561795['start']['isBefore'](_0x474fbc['getFirstRange']()['start'])?(_0x474fbc['removeMarkers'](),_0x474fbc=_0x440ba5):_0x440ba5['removeMarkers']():_0x474fbc=_0x440ba5;}const _0x54dcbf=this['_model']['createRange'](_0x147e70,_0x21ff0a);if(_0x474fbc)this['_setSuggestionRange'](_0x474fbc,_0x54dcbf);else{const _0x7f75a3=_0x2c3492(),_0x59b2a1=_0x771448['id'];this['_setSuggestionData']({'id':_0x7f75a3,'type':'formatInline:'+_0x28d3ae,'data':_0x459446,'createdAt':new Date(),'authorId':_0x59b2a1,'attributes':_0x3f0957}),this['_addSuggestionMarker']('formatInline:'+_0x28d3ae,_0x7f75a3,_0x59b2a1,_0x54dcbf);}}return null;}['markBlockFormat'](_0x1743a9,_0x26dabb,_0x15da18=[],_0xd09c4e=null,_0x5dac1a={}){_0x26dabb['formatGroupId']||(_0x26dabb['formatGroupId']=_0x26dabb['commandName']),_0x26dabb['multipleBlocks']=_0x1743a9['is']('range'),_0xd09c4e=_0xd09c4e||Kt(_0x26dabb);const _0x373324=_0x15da18['map'](_0x5cfb23=>zt(_0x5cfb23,this['_model'])),_0x34d54f=_0x1743a9['is']('range')?_0x1743a9:zt(_0x1743a9,this['_model']);if('never'===this['_trackFormatChanges']){const _0x26c3db=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xd09c4e,'accept');return this['forceDefaultExecution'](()=>_0x26c3db([_0x34d54f],_0x26dabb,_0x5dac1a)),null;}_0x373324['push'](_0x34d54f);let _0x1edb63=!0x0;for(const _0x4b14d9 of _0x373324)if(!this['_rangeIsInLocalUserInsertion'](_0x4b14d9)){_0x1edb63=!0x1;break;}if(_0x1edb63&&'always'!==this['_trackFormatChanges']){const _0x58a7e5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xd09c4e,'accept');return this['forceDefaultExecution'](()=>_0x58a7e5([_0x34d54f],_0x26dabb,_0x5dac1a)),null;}let _0x5d0ca7=null,_0x304cc7=_0x34d54f['start'],_0x1e42f1=_0x34d54f['end'];for(const {suggestion:_0x27a26c,meta:_0x2a943f}of this['_findSuggestions'](_0x34d54f,'formatBlock')){if(!_0x2a943f['isOwn'])continue;if(_0x2a943f['isNextTo']||_0x2a943f['containsRangeInObject']||_0x2a943f['isInsideObject'])continue;if(_0x27a26c['data']['formatGroupId']!=_0x26dabb['formatGroupId'])continue;if(!Xt(_0x27a26c,_0x5dac1a))continue;const _0x4f3717=_0x27a26c['getFirstRange']();if(_0x27a26c['subType']==_0xd09c4e){if(_0x4f3717['containsRange'](_0x34d54f,!0x0))return null;_0x304cc7=_0x304cc7['isBefore'](_0x4f3717['start'])?_0x304cc7:_0x4f3717['start'],_0x1e42f1=_0x1e42f1['isAfter'](_0x4f3717['end'])?_0x1e42f1:_0x4f3717['end'],_0x5d0ca7?_0x4f3717['start']['isBefore'](_0x5d0ca7['getFirstRange']()['start'])?(_0x5d0ca7['removeMarkers'](),_0x5d0ca7=_0x27a26c):_0x27a26c['removeMarkers']():_0x5d0ca7=_0x27a26c;}else{const _0x15781e=_0x34d54f['getIntersection'](_0x4f3717);this['_cutOutSuggestionMarker'](_0x27a26c,_0x15781e);}}const _0x141e44=this['editor']['plugins']['get']('Users')['me'],_0x4372c1=_0x2c3492(),_0x2d3993=_0x141e44['id'];if(_0x5d0ca7)return this['_setSuggestionRange'](_0x5d0ca7,this['_model']['createRange'](_0x304cc7,_0x1e42f1)),_0x5d0ca7;{const _0x2af43e=this['_setSuggestionData']({'id':_0x4372c1,'type':'formatBlock:'+_0xd09c4e,'data':_0x26dabb,'createdAt':new Date(),'authorId':_0x2d3993,'attributes':_0x5dac1a});return this['_addSuggestionMarker']('formatBlock:'+_0xd09c4e,_0x4372c1,_0x2d3993,this['_model']['createRange'](_0x304cc7,_0x1e42f1)),_0x2af43e;}}['markMultiRangeBlockFormat'](_0x2df935,_0x31fce9,_0xb58235=[],_0x2e5b22=null,_0x26a8ad={}){_0x31fce9['formatGroupId']||(_0x31fce9['formatGroupId']=_0x31fce9['commandName']);const _0x13bafb=_0x2df935[0x0];_0x31fce9['multipleBlocks']=_0x13bafb['is']('range'),_0x2e5b22=_0x2e5b22||Kt(_0x31fce9);const _0x4edde0=_0xb58235['map'](_0x4cf5e3=>zt(_0x4cf5e3,this['_model'])),_0x299705=_0x13bafb['is']('range')?_0x2df935:_0x2df935['map'](_0x3822fa=>zt(_0x3822fa,this['_model']));if('never'===this['_trackFormatChanges']){const _0x548298=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2e5b22,'accept');return this['forceDefaultExecution'](()=>_0x548298(_0x299705,_0x31fce9,_0x26a8ad)),null;}_0x4edde0['push'](..._0x299705);let _0x5f2728=!0x0;for(const _0x25b440 of _0x4edde0)if(!this['_rangeIsInLocalUserInsertion'](_0x25b440)){_0x5f2728=!0x1;break;}if(_0x5f2728&&'always'!==this['_trackFormatChanges']){const _0x389aad=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2e5b22,'accept');return this['forceDefaultExecution'](()=>_0x389aad(_0x299705,_0x31fce9,_0x26a8ad)),null;}const _0x112ec1=this['editor']['plugins']['get']('Users')['me'];for(const _0x1e368a of this['getSuggestions']()){if(_0x1e368a['author']['id']!=_0x112ec1['id'])continue;if('formatBlock'!=_0x1e368a['type']||_0x1e368a['data']['formatGroupId']!=_0x31fce9['formatGroupId'])continue;if(!Xt(_0x1e368a,_0x26a8ad))continue;const _0x55762d=_0x1e368a['subType']==_0x2e5b22;for(let _0x3d6266=0x0;_0x3d6266<_0x299705['length'];_0x3d6266++){const _0x5e51b3=_0x299705[_0x3d6266];for(const _0x5d8863 of _0x1e368a['getMarkers']()){const _0x54e10f=_0x5d8863['getRange']();if(_0x5e51b3['isEqual'](_0x54e10f)){_0x55762d?(_0x299705['splice'](_0x3d6266,0x1),_0x3d6266--):_0x1e368a['removeMarker'](_0x5d8863['name']);break;}}}}if(0x0==_0x299705['length'])return null;const _0xf568e0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2e5b22,'join');for(const _0x2cf860 of this['getSuggestions']())if(_0x2cf860['author']['id']==_0x112ec1['id']&&'formatBlock'==_0x2cf860['type']&&_0x2cf860['data']['formatGroupId']==_0x31fce9['formatGroupId']&&_0x2cf860['subType']==_0x2e5b22&&Xt(_0x2cf860,_0x26a8ad)&&(_0xf568e0(_0x2cf860['getRanges'](),_0x299705)||_0xf568e0(_0x299705,_0x2cf860['getRanges']()))){for(const _0x2ca288 of _0x299705)_0x2cf860['addRange'](_0x2ca288);return _0x2cf860;}const _0x457f29=_0x2c3492(),_0x4d2106=_0x112ec1['id'],_0x47a4ca='formatBlock:'+_0x2e5b22,_0x4edb3f=this['_setSuggestionData']({'id':_0x457f29,'type':_0x47a4ca,'data':_0x31fce9,'createdAt':new Date(),'authorId':_0x4d2106,'attributes':_0x26a8ad});for(const _0x58db84 of _0x299705)this['_addSuggestionMarker'](_0x47a4ca,_0x457f29,_0x4d2106,_0x58db84,o['getMultiRangeId']());return _0x4edb3f;}['markDeletion'](_0x49ba23,_0x3ecbfb=null,_0x1d22ef={}){if(_0x49ba23['isCollapsed'])return null;const _0x5cf4a4=this['editor']['plugins']['get']('Users')['me'],_0x19f8af=new _0x1b3826(_0x49ba23['start'],_0x49ba23['end']);for(const {suggestion:_0x29b2da,meta:_0xaddfaf}of this['_findSuggestions'](_0x19f8af,'insertion'))if(_0xaddfaf['isOwn']&&!_0xaddfaf['isNextTo']){if(_0x29b2da['isMultiRange']){const _0x1035c8=_0x29b2da['getRanges']()['filter'](_0x2df591=>'$graveyard'!=_0x2df591['root']['rootName']);_0x1035c8['every'](_0x2a135b=>_0x19f8af['containsRange'](_0x2a135b,!0x0))&&_0x29b2da['discard']();if(_0x1035c8['some'](_0xcf3bcc=>_0xcf3bcc['containsRange'](_0x19f8af,!0x0))){const _0x2e98cc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3ecbfb,'accept');return this['forceDefaultExecution'](()=>_0x2e98cc([_0x19f8af],null,_0x1d22ef)),null;}}else{const _0x12ebe4=_0x19f8af['getIntersection'](_0x29b2da['getFirstRange']());null!==_0x12ebe4&&_0x29b2da['_onDiscard']([_0x12ebe4],null,_0x1d22ef);}}if(_0x19f8af['detach'](),_0x19f8af['isCollapsed']||'$graveyard'==_0x19f8af['root']['rootName'])return null;let _0x3602ca=null,_0x86f83d=_0x19f8af['start'],_0x2f5d63=_0x19f8af['end'];const _0x4a9441=this['_findSuggestions'](_0x19f8af,'deletion');for(const {suggestion:_0xb803dc,meta:_0x52411c}of _0x4a9441){const _0x4d724a=this['_model']['createRange'](_0x86f83d,_0x2f5d63);if(_0x52411c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x52411c['containsRangeInObject']&&!_0x52411c['isInsideObject'])){if(_0xb803dc['isMultiRange']){if(!Xt(_0xb803dc,_0x1d22ef))continue;let _0x533209=!0x0;for(const _0x129f79 of _0xb803dc['getRanges']()){if(_0x129f79['containsRange'](_0x4d724a,!0x0))return _0xb803dc;_0x4d724a['containsRange'](_0x129f79)||(_0x533209=!0x1);}_0x533209&&_0xb803dc['discard']();}else{const _0xed8e2c=_0xb803dc['getFirstRange']();if(_0xed8e2c['containsRange'](_0x4d724a,!0x0))return _0xb803dc;if(!Xt(_0xb803dc,_0x1d22ef)){_0x4d724a['containsRange'](_0xed8e2c)?_0xb803dc['removeMarkers']():_0xed8e2c['containsPosition'](_0x86f83d)?_0x86f83d=_0xed8e2c['end']:_0xed8e2c['containsPosition'](_0x2f5d63)&&(_0x2f5d63=_0xed8e2c['start']);continue;}_0x86f83d=_0x86f83d['isBefore'](_0xed8e2c['start'])?_0x86f83d:_0xed8e2c['start'],_0x2f5d63=_0x2f5d63['isAfter'](_0xed8e2c['end'])?_0x2f5d63:_0xed8e2c['end'],_0x1d22ef=Object['assign']({},_0xb803dc['attributes']),_0x3602ca?_0xed8e2c['start']['isBefore'](_0x3602ca['getFirstRange']()['start'])?(_0x3602ca['removeMarkers'](),_0x3602ca=_0xb803dc):_0xb803dc['removeMarkers']():_0x3602ca=_0xb803dc;}}}if(_0x3602ca)return this['_setSuggestionRange'](_0x3602ca,this['_model']['createRange'](_0x86f83d,_0x2f5d63)),_0x3602ca;{const _0x12e036=_0x2c3492(),_0x4406c0=this['_model']['createRange'](_0x86f83d,_0x2f5d63),_0x4632c3=_0x5cf4a4['id'],_0xe4392d=_0x3ecbfb?'deletion:'+_0x3ecbfb:'deletion',_0x32e0fd=this['_setSuggestionData']({'id':_0x12e036,'type':_0xe4392d,'createdAt':new Date(),'authorId':_0x4632c3,'attributes':_0x1d22ef});return this['_addSuggestionMarker'](_0xe4392d,_0x12e036,_0x4632c3,_0x4406c0),_0x32e0fd;}}['markMultiRangeDeletion'](_0x49dc61,_0x49c608='multi',_0x3cd38c={}){const _0x446390=this['editor']['plugins']['get']('Users')['me'],_0x139703=_0x49dc61['map'](_0x30f0e8=>new _0x1b3826(_0x30f0e8['start'],_0x30f0e8['end'])),_0x230850=new Set();for(const {suggestion:_0xdf4509,meta:_0x2930cf}of this['_findSuggestions'](_0x139703,'insertion'))_0x2930cf['isOwn']&&!_0x2930cf['isNextTo']&&_0x230850['add'](_0xdf4509);for(const _0x38cbb1 of _0x230850)if(_0x38cbb1['isMultiRange']){const _0x346018=_0x38cbb1['getRanges']();(!_0x38cbb1['attributes']||!_0x38cbb1['attributes']['skipNestingCheck'])&&(_0x346018['every'](_0x3e9209=>_0x139703['some'](_0x3f8ccd=>_0x3f8ccd['containsRange'](_0x3e9209,!0x0)))&&_0x38cbb1['discard']());if(_0x139703['every'](_0x34e1f2=>_0x346018['some'](_0x4cade0=>_0x4cade0['containsRange'](_0x34e1f2,!0x0)))){const _0x59b9ae=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x49c608,'accept');return this['forceDefaultExecution'](()=>_0x59b9ae(_0x49dc61,null,_0x3cd38c)),null;}}else{const _0x480d03=_0x38cbb1['getFirstRange']();_0x139703['some'](_0x3ff172=>_0x3ff172['containsRange'](_0x480d03,!0x0))&&_0x38cbb1['discard']();if(_0x139703['every'](_0x44e2ab=>_0x480d03['containsRange'](_0x44e2ab,!0x0))){const _0x2ca67f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x49c608,'accept');return this['forceDefaultExecution'](()=>_0x2ca67f(_0x139703,null,_0x3cd38c)),null;}}const _0x3b079b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x49c608,'join');let _0x30ef76=null;for(const _0x4699ba of this['getSuggestions']())if(_0x4699ba['author']['id']==_0x446390['id']&&_0x4699ba['isInContent']&&'deletion'==_0x4699ba['type']&&_0x4699ba['subType']==_0x49c608&&Xt(_0x4699ba,_0x3cd38c)&&(_0x3b079b(_0x4699ba['getRanges'](),_0x139703)||_0x3b079b(_0x139703,_0x4699ba['getRanges']()))){if(_0x30ef76){if(_0x4699ba['commentThread']&&_0x4699ba['commentThread']['length'])continue;for(const _0x550ed0 of _0x4699ba['getRanges']())_0x30ef76['isIntersectingWithRange'](_0x550ed0)||_0x30ef76['addRange'](_0x550ed0);_0x4699ba['removeMarkers']();}else{_0x30ef76=_0x4699ba;for(const _0x3c72e8 of _0x139703)_0x4699ba['isIntersectingWithRange'](_0x3c72e8)||_0x4699ba['addRange'](_0x3c72e8);}}if(_0x30ef76)return _0x30ef76;_0x230850['clear']();for(const {suggestion:_0x315ab5,meta:_0x14ae25}of this['_findSuggestions'](_0x139703,'deletion'))_0x14ae25['isOwn']&&(this['_mergeNestedSuggestions']||!_0x14ae25['containsRangeInObject']&&!_0x14ae25['isInsideObject'])&&Xt(_0x315ab5,_0x3cd38c)&&_0x230850['add'](_0x315ab5);for(const _0x3288e1 of _0x230850){const _0x3f72af=_0x3288e1['getRanges']();if(!_0x3cd38c||!_0x3cd38c['skipNestingCheck']){if(_0x139703['every'](_0x17d316=>_0x3f72af['some'](_0x4bf0e9=>_0x4bf0e9['containsRange'](_0x17d316,!0x0))))return _0x3288e1;}(!_0x3288e1['attributes']||!_0x3288e1['attributes']['skipNestingCheck'])&&(_0x3f72af['every'](_0x16835f=>_0x139703['some'](_0x2f01ec=>_0x2f01ec['containsRange'](_0x16835f,!0x0)))&&_0x3288e1['discard']());}const _0x47aae0=_0x2c3492(),_0x261b43=_0x446390['id'],_0x570e71='deletion:'+_0x49c608,_0x3790a5=this['_setSuggestionData']({'id':_0x47aae0,'type':_0x570e71,'createdAt':new Date(),'authorId':_0x261b43,'attributes':_0x3cd38c});for(const _0x35186b of _0x139703)_0x35186b['detach'](),_0x35186b['isCollapsed']||'$graveyard'==_0x35186b['root']['rootName']||this['_addSuggestionMarker'](_0x570e71,_0x47aae0,_0x261b43,_0x35186b,o['getMultiRangeId']());return _0x3790a5;}['markAttributeChange'](_0x5dbda2,_0x37ca5f,_0x556d05,_0xe73d7d,_0x55bbad){if(_0x5dbda2['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4af9bd=this['editor']['plugins']['get']('Users')['me']['id'],_0x10002c=Array['from'](this['_suggestions']['values']())['filter'](_0x2b7685=>'attribute'==_0x2b7685['type']&&_0x2b7685['data']['key']==_0x37ca5f&&_0x2b7685['isIntersectingWithRange'](_0x5dbda2));if('default'===this['_trackFormatChanges']){const _0x395d73=this['_findSuggestions'](_0x5dbda2,'insertion')['filter'](({meta:_0x21db08})=>_0x21db08['isOwn']&&!_0x21db08['isInsideObject']&&!_0x21db08['isNextTo'])['map'](({suggestion:_0x5f340a})=>_0x5f340a);_0x10002c['unshift'](..._0x395d73);}const _0x2f5bd5=new Map([[_0x5dbda2,_0x556d05]]);for(const _0x278ca8 of _0x10002c){const _0x16bf82='attribute'==_0x278ca8['type']?_0x278ca8['data']['oldValue']:void 0x0,_0x3f8ffe=_0x278ca8['getFirstRange'](),_0x161e24=Array['from'](_0x2f5bd5['keys']())['find'](_0x512d01=>_0x512d01['isIntersecting'](_0x3f8ffe));if(!_0x161e24)continue;const _0x1d2808=_0x161e24['getDifference'](_0x3f8ffe);this['_isBlockAttribute'](_0x37ca5f)&&'insertion'==_0x278ca8['type']&&0x0!=_0x1d2808['length']||(_0x2f5bd5['delete'](_0x161e24),_0x1d2808['forEach'](_0x177107=>{_0x2f5bd5['set'](_0x177107,_0x556d05);}),'insertion'!=_0x278ca8['type']&&_0x16bf82!=_0xe73d7d&&_0x2f5bd5['set'](_0x161e24['getIntersection'](_0x3f8ffe),_0x16bf82));}const _0x5efb7f=[];for(const [_0x1d0989,_0x17190d]of _0x2f5bd5){const _0x5b9a66=_0x2c3492(),_0x410993={'key':_0x37ca5f,'oldValue':_0x17190d,'newValue':_0xe73d7d};_0x37ca5f['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':_0x37ca5f});const _0x5981e2=('attribute:'+(_0x37ca5f+'|'+Kt({'newValue':_0xe73d7d})))['substring'](0x0,0x3c),_0x2f0532=this['_setSuggestionData']({'id':_0x5b9a66,'type':_0x5981e2,'data':_0x410993,'createdAt':new Date(),'authorId':_0x4af9bd,'attributes':_0x55bbad});_0x5efb7f['push'](_0x2f0532),this['_addSuggestionMarker'](_0x5981e2,_0x5b9a66,_0x4af9bd,_0x1d0989);}return _0x5efb7f;}['enableDefaultAttributesIntegration'](_0x2fb85f){this['enableCommand'](_0x2fb85f,(_0x141ded,..._0x14d6de)=>{this['_recordAttributeChanges'](()=>{_0x141ded(..._0x14d6de);});});}['registerBlockAttribute'](_0x1a458c){this['_blockAttributeKeys']['add'](_0x1a458c);}['registerInlineAttribute'](_0x13e53e){this['_inlineAttributeKeys']['add'](_0x13e53e);}['_getAttributeKey'](_0xd98db0){return'attribute'==_0xd98db0['type']?_0xd98db0['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x29f240,_0x258a85){const _0x502a80=_0x29f240['getFirstMarker']();this['_model']['change'](_0x3172b6=>{_0x3172b6['updateMarker'](_0x502a80,{'range':_0x258a85});});}['_addThreadToSuggestion'](_0x37d501){const _0xd8c970=_0x37d501['id'],_0x42e4bf=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0xd8c970)||this['_commentsRepository']['addCommentThread']({'channelId':_0x42e4bf,'threadId':_0xd8c970,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2bf2e3=this['_commentsRepository']['getCommentThread'](_0xd8c970);_0x2bf2e3['unbind']('isRemovable'),_0x2bf2e3['isRemovable']=!0x1,_0x37d501['commentThread']=_0x2bf2e3;}['_checkSuggestionCorrectness'](_0x3e6da2,_0x380199,_0x4eaa80,_0x2b4134){if(_0x3e6da2['type']!=_0x380199||_0x3e6da2['subType']!=_0x4eaa80||_0x3e6da2['creator']['id']!=_0x2b4134)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x26cd03('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x34d1a4,_0x45dd20){const _0x328d1f=_0x34d1a4['getFirstRange']();if(_0x45dd20['isEqual'](_0x328d1f))_0x34d1a4['removeMarkers']();else{if(_0x328d1f['containsRange'](_0x45dd20)){const _0x35683a=this['_model']['createPositionAt'](_0x45dd20['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x34d1a4,this['_model']['createRange'](_0x328d1f['start'],_0x35683a));const _0x59dc61=_0x2c3492(),_0x2098b5=_0x34d1a4['creator']['id'],_0x491d25=_0x34d1a4['type']+':'+_0x34d1a4['subType'];this['_setSuggestionData']({'id':_0x59dc61,'type':_0x491d25,'createdAt':new Date(),'authorId':_0x2098b5,'data':_0x34d1a4['data'],'attributes':_0x34d1a4['attributes']});const _0x441672=this['_model']['createPositionAt'](_0x45dd20['end']['parent'],'after'),_0x58835=this['_model']['createRange'](_0x441672,_0x328d1f['end']);this['_addSuggestionMarker'](_0x491d25,_0x59dc61,_0x2098b5,_0x58835);}else{if(_0x328d1f['containsPosition'](_0x45dd20['start'])){const _0x52b5c4=this['_model']['createPositionAt'](_0x45dd20['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x34d1a4,this['_model']['createRange'](_0x328d1f['start'],_0x52b5c4));}else{const _0x4144e2=this['_model']['createPositionAt'](_0x45dd20['end']['parent'],'after');this['_setSuggestionRange'](_0x34d1a4,this['_model']['createRange'](_0x4144e2,_0x328d1f['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1a01dc){for(const {suggestion:_0x545fb0,meta:_0x2e45be}of this['_findSuggestions'](_0x1a01dc,'insertion')){if(!_0x2e45be['isOwn'])continue;const _0x19ad7a=_0x545fb0['getRanges']();for(const _0x58faba of _0x19ad7a)if(!_0x1a01dc['getDifference'](_0x58faba)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x13cdc6){const _0x842309=this['editor']['plugins']['get']('Users')['getUser'](_0x13cdc6);if(!_0x842309)throw new _0x26cd03('track-changes-user-not-found',this);return _0x842309;}['_getExternalAuthor'](_0x4fa4d0){const _0x2506f4=this['editor']['plugins']['get']('Users'),_0x197308=_0x4fd68b('external:'+_0x4fa4d0),_0x1d5b54=_0x2506f4['getUser'](_0x197308);return _0x1d5b54||_0x2506f4['addUser']({'id':_0x197308,'name':_0x4fa4d0});}['_createSuggestion'](_0x5f26fb,_0x25787e,_0xf75ae,_0x407519,_0x56bb55){const _0x477b68=this['_getAuthorFromId'](_0x407519),_0x28204a=this['_suggestionFactory']['buildSuggestion'](_0x5f26fb,_0x25787e,_0xf75ae,_0x477b68,_0x56bb55,_0x4e5311=>{this['_updateSuggestionData'](_0xf75ae,{'attributes':_0x4e5311});const _0x3e817b=this['getSuggestion'](_0xf75ae);this['_joinWithAdjacentSuggestions'](new Set([_0x3e817b])),this['_refreshSuggestionsChain'](new Set([_0x3e817b]));});return this['listenTo'](_0x28204a,'accept',()=>{this['_updateSuggestionData'](_0xf75ae,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x28204a,'discard',()=>{this['_updateSuggestionData'](_0xf75ae,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xf75ae,_0x28204a),this['_suggestionState']['set'](_0x28204a,'notReady'),_0x28204a;}['_splitMarkerName'](_0x8dc2d0){const _0x89f9a7=_0x8dc2d0['split'](':');return{'group':_0x89f9a7[0x0],'type':_0x89f9a7[0x1],'subType':_0x89f9a7['length']>=0x5?_0x89f9a7[0x2]:null,'id':_0x89f9a7['length']<0x5?_0x89f9a7[0x2]:_0x89f9a7[0x3],'authorId':_0x89f9a7['length']<0x5?_0x89f9a7[0x3]:_0x89f9a7[0x4],'markerCount':0x6==_0x89f9a7['length']?_0x89f9a7[0x5]:null};}['_breakSuggestionMarker'](_0x458ffc,_0x1508ef,_0x296dfc){const _0x250e65=_0x458ffc['getFirstRange'](),_0x2fe3a1=_0x250e65['start'],_0x14969b=_0x250e65['end'];this['_setSuggestionRange'](_0x458ffc,this['_model']['createRange'](_0x2fe3a1,_0x1508ef));const _0x36610e=_0x2c3492(),_0x1f6237=_0x458ffc['creator']['id'],_0x24de24=_0x458ffc['type']+(_0x458ffc['subType']?':'+_0x458ffc['subType']:'');this['_setSuggestionData']({'id':_0x36610e,'type':_0x24de24,'createdAt':new Date(),'authorId':_0x1f6237,'originalSuggestionId':_0x458ffc['id'],'attributes':_0x458ffc['attributes'],'data':_0x458ffc['data']});const _0x39c033=this['_getAttributeKey'](_0x458ffc);('formatBlock'==_0x458ffc['type']||_0x39c033&&this['_isBlockAttribute'](_0x39c033))&&(_0x296dfc=this['_model']['createPositionBefore'](_0x296dfc['parent'])),this['_addSuggestionMarker'](_0x24de24,_0x36610e,_0x1f6237,this['_model']['createRange'](_0x296dfc,_0x14969b));}['_findSuggestions'](_0x5e2509,_0x3cf011=null){const _0x16359a=[],_0x18f3ea=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5e2509)||(_0x5e2509=[_0x5e2509]);for(const _0x5e945b of this['getSuggestions']()){if(!_0x5e945b['isInContent'])continue;if(_0x3cf011&&_0x5e945b['type']!=_0x3cf011)continue;let _0x49726a=!0x1;for(const _0x5d3938 of _0x5e945b['getRanges']()){for(const _0x184e93 of _0x5e2509){const _0x57c8eb=_0x184e93['start']['isEqual'](_0x5d3938['end'])||_0x184e93['end']['isEqual'](_0x5d3938['start']);if(_0x57c8eb||_0x184e93['getIntersection'](_0x5d3938)){const _0x4dd148=_0x184e93['containsRange'](_0x5d3938)&&Gt(this['_model']['schema'],_0x5d3938['start'],_0x184e93),_0x2141d4=_0x5d3938['containsRange'](_0x184e93)&&Gt(this['_model']['schema'],_0x184e93['start'],_0x5d3938);_0x16359a['push']({'suggestion':_0x5e945b,'meta':{'isOwn':_0x18f3ea==_0x5e945b['author'],'isNextTo':_0x57c8eb,'isInsideObject':_0x4dd148,'containsRangeInObject':_0x2141d4}}),_0x49726a=!0x0;break;}}if(_0x49726a)break;}}return _0x16359a;}['_addSuggestionMarker'](_0x516bb0,_0x4c228f,_0x5378fa,_0x5acb00,_0x37c5ff){this['_model']['change'](_0x17eb98=>{let _0x37dee0='suggestion:'+_0x516bb0+':'+_0x4c228f+':'+_0x5378fa;_0x37c5ff&&(_0x37dee0=_0x37dee0+':'+_0x37c5ff),_0x17eb98['addMarker'](_0x37dee0,{'range':_0x5acb00,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x65f976){const _0x35886f=_0x65f976['previous'],_0x22ed4c=_0x65f976['next'];_0x65f976['previous']=null,_0x65f976['next']=null,null!=_0x35886f&&_0x35886f['next']==_0x65f976&&(_0x35886f['next']=_0x22ed4c),null!=_0x22ed4c&&_0x22ed4c['previous']==_0x65f976&&(_0x22ed4c['previous']=_0x35886f),'ready'==this['_suggestionState']['get'](_0x65f976)&&(this['_suggestionState']['set'](_0x65f976,'removed'),this['fire']('suggestionUnloaded',_0x65f976,_0x35886f,_0x22ed4c));}['_setSuggestionData'](_0x3273eb){const _0x3f3e95=_0x3273eb['id'],_0x10e927=this['addSuggestionData'](_0x3273eb);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x52b2fa=this['editor']['plugins']['get']('PendingActions'),_0x31cf5f=_0x10e927['hasComments'],_0x272f55=_0x10e927['subType']?_0x10e927['type']+':'+_0x10e927['subType']:_0x10e927['type'],_0x115cfb=this['editor']['locale'],_0x2059d0=_0x52b2fa['add'](c(_0x115cfb,'PENDING_ACTION_SUGGESTION')),_0x12779e={'id':_0x3f3e95,'type':_0x272f55,'hasComments':_0x31cf5f,'data':_0x3273eb['data']||null,'originalSuggestionId':_0x3273eb['originalSuggestionId']||null,'attributes':_0x10e927['attributes']};this['_adapter']['addSuggestion'](_0x12779e)['then'](_0x4f1c1a=>{_0x10e927['_saved']=!0x0,_0x52b2fa['remove'](_0x2059d0),_0x4f1c1a&&_0x4f1c1a['createdAt']&&(this['_suggestions']['get'](_0x3f3e95)['createdAt']=_0x4f1c1a['createdAt']);})['catch'](_0x236c84=>{throw _0x5c58ef('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x10e927['discard']();}),_0x10e927['stopListening'](),this['_suggestions']['delete'](_0x10e927['id']),this['_suggestionState']['delete'](_0x10e927),_0x236c84;});}return _0x10e927;}['_isBlockAttribute'](_0x2bcfa2){return this['_blockAttributeKeys']['has'](_0x2bcfa2);}['_updateSuggestionData'](_0xea64ad,_0xc552ab){const _0x299cfc=this['editor']['plugins']['get']('PendingActions'),_0x317db9=this['getSuggestion'](_0xea64ad);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x317db9['_saved']){const _0x2247ce=_0x299cfc['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xea64ad,_0xc552ab)['then'](()=>{_0x299cfc['remove'](_0x2247ce);});}else _0x317db9['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xea64ad,_0xc552ab);});}}['_getSuggestionData'](_0x3a8269){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x26cd03('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3a8269);}['_handleNewSuggestionMarker'](_0xdb28e6){const {id:_0x145baf,type:_0x225467,subType:_0x463dd1,authorId:_0x272fb1}=this['_splitMarkerName'](_0xdb28e6),_0x1a6cbd=this['_suggestions']['get'](_0x145baf)||this['_createSuggestion'](_0x225467,_0x463dd1,_0x145baf,_0x272fb1,{});switch(this['_checkSuggestionCorrectness'](_0x1a6cbd,_0x225467,_0x463dd1,_0x272fb1),this['_suggestionState']['get'](_0x1a6cbd)){case'notReady':this['_getSuggestionData'](_0x145baf)['then'](_0x84faee=>{let _0x4244d9=Promise['resolve']();_0x84faee['hasComments']&&(_0x4244d9=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x145baf})),_0x4244d9['then'](()=>{this['addSuggestionData'](_0x84faee)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1a6cbd,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x145baf,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1a6cbd,'ready'),this['fire']('suggestionLoaded',_0x1a6cbd);break;case'ready':this['fire']('suggestionChanged',_0x1a6cbd);}return _0x1a6cbd['addMarkerName'](_0xdb28e6),_0x1a6cbd;}['_refreshSuggestionsChain'](_0x5378cc){const _0x14734d=Array['from'](_0x5378cc),_0x5b5596=_0x14734d['filter'](_0x280a70=>'attribute'==_0x280a70['type']);this['_refreshAttributeSuggestionsChain'](_0x5b5596);const _0x3f0af6=_0x14734d['filter'](_0x1b901f=>!_0x1b901f['isMultiRange']&&'attribute'!=_0x1b901f['type']),_0x569a0a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3196a3=>!_0x3196a3['isMultiRange']&&'attribute'!=_0x3196a3['type']),_0x2f2f9d=_0x569a0a['filter'](_0x389def=>!_0x5378cc['has'](_0x389def)),_0x286c51=new Map(_0x569a0a['map'](_0x5270a9=>[_0x5270a9,this['_suggestionFactory']['getSuggestionCallback'](_0x5270a9['type'],_0x5270a9['subType'],'chain')])),_0x4811d2=new Map(_0x569a0a['map'](_0x305a90=>[_0x305a90,_0x305a90['getFirstRange']()])),_0x44d9c7=new Set(),_0x30feaa=new Set();for(let _0x4b1f3e=0x0;_0x4b1f3e<_0x3f0af6['length'];_0x4b1f3e++)_0x517028(_0x3f0af6[_0x4b1f3e],_0x3f0af6,_0x4b1f3e+0x1);for(let _0x3e18a3=0x0;_0x3e18a3<_0x3f0af6['length'];_0x3e18a3++)_0x517028(_0x3f0af6[_0x3e18a3],_0x2f2f9d,0x0);const _0x5b31a4=new Set();for(let _0x2a87ee=0x0;_0x2a87ee<_0x3f0af6['length'];_0x2a87ee++){const _0x5dd7ee=_0x3f0af6[_0x2a87ee];!_0x30feaa['has'](_0x5dd7ee)&&_0x5dd7ee['previous']&&(_0x5b31a4['add'](_0x5dd7ee['previous']),_0x5dd7ee['previous']['next']===_0x5dd7ee&&(_0x5dd7ee['previous']['next']=null),_0x5dd7ee['previous']=null),!_0x44d9c7['has'](_0x5dd7ee)&&_0x5dd7ee['next']&&(_0x5b31a4['add'](_0x5dd7ee['next']),_0x5dd7ee['next']['previous']===_0x5dd7ee&&(_0x5dd7ee['next']['previous']=null),_0x5dd7ee['next']=null);}function _0x517028(_0x23cdf6,_0x2ad1f6,_0xf1d481){for(let _0x22253d=_0xf1d481;_0x22253d<_0x2ad1f6['length'];_0x22253d++){const _0x10955d=_0x4e3700(_0x23cdf6,_0x2ad1f6[_0x22253d]);_0x10955d&&(_0x10955d[0x0]['next']=_0x10955d[0x1],_0x10955d[0x1]['previous']=_0x10955d[0x0],_0x44d9c7['add'](_0x10955d[0x0]),_0x30feaa['add'](_0x10955d[0x1]));}}function _0x4e3700(_0x28f2f0,_0x5813ce){if(_0x28f2f0['author']['id']!==_0x5813ce['author']['id'])return null;const _0x4d07e6=_0x286c51['get'](_0x28f2f0)(_0x28f2f0,_0x5813ce,_0x4811d2['get'](_0x28f2f0),_0x4811d2['get'](_0x5813ce));if(!_0x4d07e6)return null;return _0x286c51['get'](_0x5813ce)(_0x28f2f0,_0x5813ce,_0x4811d2['get'](_0x28f2f0),_0x4811d2['get'](_0x5813ce))?_0x4d07e6[0x1]['commentThread']&&_0x4d07e6[0x1]['commentThread']['length']?null:_0x4d07e6:null;}_0x5b31a4['size']&&this['_refreshSuggestionsChain'](_0x5b31a4);}['_refreshAttributeSuggestionsChain'](_0x3ebc7a){if(0x0==_0x3ebc7a['length'])return;const _0x2b5fee=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x87ba38=>'attribute'==_0x87ba38['type']&&_0x87ba38['_isDataLoaded']),_0x42619f=[],_0x123b27=new Map();for(const _0xb3560f of _0x2b5fee){const _0x1ef21c=_0x4fd68b(_0xb3560f['attributes']);_0x123b27['has'](_0x1ef21c)||(_0x123b27['set'](_0x1ef21c,_0x42619f['length']),_0x42619f['push']([]));const _0x2f1801=_0x123b27['get'](_0x1ef21c);_0x42619f[_0x2f1801]['push'](_0xb3560f);}!(function(){_0x42619f['sort']((_0x470ba3,_0x48cdfd)=>{const _0x37b4cc=_0x470ba3[0x0]['createdAt'],_0x2a48b0=_0x48cdfd[0x0]['createdAt'];return _0x37b4cc==_0x2a48b0?_0x470ba3[0x0]['attributes']['groupId']<_0x48cdfd[0x0]['attributes']['groupId']?-0x1:0x1:_0x37b4cc<_0x2a48b0?-0x1:0x1;});for(const _0x209a85 of _0x42619f)_0x209a85['sort']((_0x1641c3,_0x41f021)=>_0x1641c3['id']<_0x41f021['id']?-0x1:0x1);}());for(let _0x527690=0x0;_0x527690<_0x42619f['length'];_0x527690++){if(0x0==_0x42619f[_0x527690]['length'])continue;const _0x48201a=[];for(let _0x42f6ec=_0x527690+0x1;_0x42f6ec<_0x42619f['length'];_0x42f6ec++)0x0!=_0x42619f[_0x42f6ec]['length']&&_0x30f5d0(_0x42619f[_0x527690],_0x42619f[_0x42f6ec])&&_0x48201a['push'](_0x42f6ec);for(const _0x2ff96a of _0x48201a)_0x42619f[_0x527690]=_0x42619f[_0x527690]['concat'](_0x42619f[_0x2ff96a]),_0x42619f[_0x2ff96a]=[];}for(const _0x4d1fae of _0x42619f)for(let _0x583289=0x0;_0x583289<_0x4d1fae['length'];_0x583289++){const _0x3244b6=_0x4d1fae[_0x583289+0x1]||null;_0x4d1fae[_0x583289]['next']!==_0x3244b6&&(_0x4d1fae[_0x583289]['next']=_0x3244b6);}for(const _0x578407 of _0x42619f)for(let _0x487309=0x0;_0x487309<_0x578407['length'];_0x487309++){const _0x5107e9=_0x578407[_0x487309-0x1]||null;_0x578407[_0x487309]['previous']!==_0x5107e9&&(_0x578407[_0x487309]['previous']=_0x5107e9);}function _0x30f5d0(_0xbbece0,_0x1a4c14){if(_0xbbece0[0x0]['attributes']['groupId']!==_0x1a4c14[0x0]['attributes']['groupId']&&_0xbbece0[0x0]['author']!==_0x1a4c14[0x0]['author'])return!0x1;if(!function(_0x3d6bcb,_0x11eec7){if(!_0x3d6bcb['hasComments']&&!_0x11eec7['hasComments'])return!0x0;if(_0x3d6bcb['hasComments']&&_0x11eec7['hasComments'])return!0x1;if(_0x3d6bcb['hasComments']&&_0x11eec7['createdAt']<_0x3d6bcb['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x11eec7['hasComments']&&_0x3d6bcb['createdAt']<_0x11eec7['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xbbece0[0x0],_0x1a4c14[0x0]))return!0x1;const _0x4feb19=Ft(_0xbbece0[0x0]['attributes'],'groupId'),_0x58aa43=Ft(_0x1a4c14[0x0]['attributes'],'groupId');if(!_0x5d8968(_0x4feb19,_0x58aa43))return!0x1;return!!_0xbbece0['every'](_0x18a57d=>_0x1a4c14['some'](_0x4208fc=>_0x18a57d['getFirstRange']()['isEqual'](_0x4208fc['getFirstRange']())))&&_0x1a4c14['every'](_0x4bc26c=>_0xbbece0['some'](_0x1f8bd7=>_0x4bc26c['getFirstRange']()['isEqual'](_0x1f8bd7['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x21d353){const _0x388807=Array['from'](_0x21d353),_0x2b6173=this['getSuggestions']({'skipNotAttached':!0x0}),_0x266c34=_0x2b6173['filter'](_0x2db883=>!_0x21d353['has'](_0x2db883)),_0x5962a7=new Map(_0x388807['map'](_0x1ada25=>[_0x1ada25,this['_suggestionFactory']['getSuggestionCallback'](_0x1ada25['type'],_0x1ada25['subType'],'join')])),_0x4d9073=new Map(_0x2b6173['map'](_0x409469=>[_0x409469,_0x409469['getRanges']()]));for(let _0x4a9b2e=0x0;_0x4a9b2e<_0x388807['length'];_0x4a9b2e++){if(_0x15eb43(this,_0x388807[_0x4a9b2e],_0x388807,_0x4a9b2e+0x1))return!0x0;}for(let _0x3a72e7=0x0;_0x3a72e7<_0x388807['length'];_0x3a72e7++){if(_0x15eb43(this,_0x388807[_0x3a72e7],_0x266c34,0x0))return!0x0;}return!0x1;function _0x15eb43(_0x33f29c,_0x187b1e,_0x5043bf,_0x1571a6){for(let _0x319a69=_0x1571a6;_0x319a69<_0x5043bf['length'];_0x319a69++){const _0x375119=_0x5043bf[_0x319a69];if(_0x375119['type']!==_0x187b1e['type']||_0x375119['author']['id']!==_0x187b1e['author']['id']||_0x375119['subType']!==_0x187b1e['subType'])continue;if(!Qt(_0x187b1e,_0x375119))continue;if('attribute'==_0x187b1e['type']&&_0x187b1e['data']['oldValue']!=_0x375119['data']['oldValue'])continue;if('attribute'==_0x187b1e['type']&&_0x33f29c['_isBlockAttribute'](_0x187b1e['data']['key']))continue;if('formatBlock'==_0x187b1e['type']){const _0x28e3c8=_0x33f29c['editor']['model'],_0x8032ea=_0x187b1e['getContainedElement']();if(_0x8032ea&&(_0x28e3c8['schema']['isObject'](_0x8032ea)||_0x28e3c8['schema']['isLimit'](_0x8032ea)))continue;}const _0x2670da=_0x5962a7['get'](_0x187b1e),_0x348c3c=_0x4d9073['get'](_0x187b1e),_0x28e02f=_0x4d9073['get'](_0x375119),_0x150f29=_0x187b1e['commentThread']&&_0x187b1e['commentThread']['length'],_0xfdd95c=_0x375119['commentThread']&&_0x375119['commentThread']['length'];if(!_0x150f29&&_0x2670da(_0x28e02f,_0x348c3c))return _0x33f29c['_joinSuggestions'](_0x375119,_0x187b1e),_0x4d9073['delete'](_0x187b1e),!0x0;if(!_0xfdd95c&&_0x2670da(_0x348c3c,_0x28e02f))return _0x33f29c['_joinSuggestions'](_0x187b1e,_0x375119),_0x4d9073['delete'](_0x375119),!0x0;}return!0x1;}}['_joinSuggestions'](_0x84da90,_0xadf60b){if(_0x84da90['isMultiRange']){for(const _0x59f56f of _0xadf60b['getRanges']())_0x84da90['addRange'](_0x59f56f);}else{const _0x4a3d58=_0xadf60b['getFirstRange']()['end'];this['_setSuggestionRange'](_0x84da90,this['_model']['createRange'](_0x84da90['getFirstRange']()['start'],_0x4a3d58));}_0xadf60b['removeMarkers']();}['_getMarkerAnnouncementText'](_0x471c2e,_0x591f6f,_0x2d28eb){const _0x457123=_0x471c2e['startsWith']('format')||_0x471c2e['startsWith']('attribute')?'FORMATTING':_0x471c2e['toUpperCase']();return c(this['editor']['locale'],_0x591f6f+'_'+_0x457123+'_SUGGESTION_ANNOUNCEMENT',_0x2d28eb);}['_initAriaMarkerChangeAnnouncements'](){const _0x2bb645=this['editor'];if(!_0x2bb645['ui'])return;const {ariaLiveAnnouncer:_0x535abd}=_0x2bb645['ui'];_0x38d3b7(this['_model'],({left:_0x4ef970,entered:_0x49e251})=>{for(const _0x120e1a of _0x4ef970){const {group:_0x11762c,type:_0x3ee5e8}=this['_splitMarkerName'](_0x120e1a['name']);if('suggestion'===_0x11762c){_0x535abd['announce'](this['_getMarkerAnnouncementText'](_0x3ee5e8,'LEAVE'));break;}}for(const _0x4c9aab of _0x49e251){const {group:_0x4ff327,type:_0xb053b0}=this['_splitMarkerName'](_0x4c9aab['name']);if('suggestion'===_0x4ff327){_0x535abd['announce'](this['_getMarkerAnnouncementText'](_0xb053b0,'ENTER',_0x5a4a24(_0x3f5cd9)));break;}}});}['_processAttributeChanges'](_0x1362e2){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4907a0=this['editor'],_0x33e461=_0x4907a0['model']['document']['differ']['getChanges']();if(0x0==_0x33e461['length'])return!0x1;const _0x4a126e=[],_0x41ccfb=_0x33e461['filter'](_0x2fa484=>'attribute'==_0x2fa484['type']),_0x5a5a8f=_0x33e461['filter'](_0x4bcfed=>'insert'==_0x4bcfed['type']&&'$text'!=_0x4bcfed['name']),_0x357865=_0x33e461['filter'](_0x56f9b1=>'remove'==_0x56f9b1['type']&&'$text'!=_0x56f9b1['name']);for(const _0x4d8f5a of _0x41ccfb)_0x4a126e['push']({'key':_0x4d8f5a['attributeKey'],'newValue':_0x4d8f5a['attributeNewValue'],'oldValue':_0x4d8f5a['attributeOldValue'],'range':qt(_0x4d8f5a['range'],_0x4907a0['model'])});for(const _0x2928b4 of _0x5a5a8f){const _0x51a638=_0x357865['find'](_0x5789af=>_0x5789af['position']['isEqual'](_0x2928b4['position']));_0x51a638&&_0x4a126e['push']({'key':u,'newValue':_0x2928b4['name'],'oldValue':_0x51a638['name'],'range':_0x4907a0['model']['createRangeOn'](_0x2928b4['position']['nodeAfter'])});}return 0x0!=_0x4a126e['length']&&this['_reduceExistingSuggestions'](_0x1362e2,_0x4a126e);}['_processAttributeSuggestions'](_0x39e06f){let _0x2338a0=!0x1;const _0x6715e3=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1d2aeb=>_0x1d2aeb['data']['newRange']&&_0x1d2aeb['name']['startsWith']('suggestion:attribute:'));for(const _0xc0c1f9 of _0x6715e3){const {subType:_0x77eef8,id:_0x593149}=this['_splitMarkerName'](_0xc0c1f9['name']),_0x28b5d1=_0x77eef8['split']('|')[0x0];for(const _0x7fd1a0 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x7fd1a0['id']!=_0x593149&&'attribute'==_0x7fd1a0['type']&&_0x7fd1a0['data']&&_0x7fd1a0['data']['key']==_0x28b5d1&&_0x7fd1a0['getFirstRange']()['isIntersecting'](_0xc0c1f9['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x7fd1a0,_0xc0c1f9['data']['newRange'],_0x39e06f),_0x2338a0=!0x0);}return _0x2338a0;}['_recordAttributeChanges'](_0x3076a0){this['_recordAttributeSuggestions']=!0x0,_0x3076a0();}['_isRegisteredAttribute'](_0x11b3bb){const _0x34a494=this['_isBlockAttribute'](_0x11b3bb),_0x343176=this['_inlineAttributeKeys']['has'](_0x11b3bb);return _0x34a494||_0x343176;}['_reduceExistingSuggestions'](_0x40c4f9,_0x4d64e0){if(0x0==_0x4d64e0['length'])return!0x1;let _0x295a4c=!0x1;for(const _0x47b604 of _0x4d64e0){const _0x4c4a3d=this['_findSuggestions'](_0x47b604['range'],'attribute')['filter'](_0x31e54f=>!_0x31e54f['meta']['isNextTo'])['map'](_0x2af97a=>_0x2af97a['suggestion']),_0x282021=_0x4fd68b({'newValue':_0x47b604['newValue']});_0x4c4a3d['filter'](_0x46db36=>{const [_0x37e161,_0x5f1126]=_0x46db36['subType']['split']('|');return _0x37e161==_0x47b604['key']&&_0x5f1126!=_0x282021;})['forEach'](_0x351189=>{this['_reduceSuggestionAttributeRange'](_0x351189,_0x47b604['range'],_0x40c4f9),_0x295a4c=!0x0;});}return _0x295a4c;}['_reduceSuggestionAttributeRange'](_0x4d8470,_0x306a88,_0x41f3ee){const _0x5a0b1a=_0x4d8470['getFirstRange']()['getDifference'](_0x306a88);0x0!==_0x5a0b1a['length']?0x1!==_0x5a0b1a['length']?this['_breakSuggestionMarker'](_0x4d8470,_0x306a88['start'],_0x306a88['end']):this['_setSuggestionRange'](_0x4d8470,_0x5a0b1a[0x0]):_0x41f3ee['removeMarker'](_0x4d8470['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x496341){this['_editor']=_0x496341,this['_model']=_0x496341['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5288e9,_0x2c8e3e,_0x511bfc,_0x2b2eac,_0x3a0e2c,_0x5eb329){return new o(this['_model'],{'type':_0x5288e9,'subType':_0x2c8e3e,'id':_0x511bfc,'author':_0x2b2eac,'creator':_0x2b2eac,'attributes':_0x3a0e2c,'onAttributesChange':_0x5eb329,'onAccept':(..._0x28230d)=>this['getSuggestionCallback'](_0x5288e9,_0x2c8e3e,'accept')(..._0x28230d),'onDiscard':(..._0x9f351e)=>this['getSuggestionCallback'](_0x5288e9,_0x2c8e3e,'discard')(..._0x9f351e)});}['registerCustomCallback'](_0x51ecb4,_0x1b47fb,_0x1da5de,_0x17e204){const _0x40edba=_0x51ecb4+':'+_0x1b47fb+':'+_0x1da5de;this['_customCallbacks']['set'](_0x40edba,_0x17e204);}['getSuggestionCallback'](_0x3eb055,_0x1be187,_0x42a42c){const _0x5d3fb8=_0x3eb055+':'+_0x1be187+':'+_0x42a42c;return this['_customCallbacks']['get'](_0x5d3fb8)||this['_defaultCallbacks']['get'](_0x3eb055+':'+_0x42a42c);}['_registerDefaultCallbacks'](){const _0x4d4eb3=()=>!0x1,_0x5732c6=_0x2782d5=>{_0x2782d5['sort']((_0x1db59f,_0x2d1147)=>_0x1db59f['start']['isBefore'](_0x2d1147['start'])?0x1:-0x1),this['_model']['change'](_0x29ab3c=>{for(const _0x1629ad of _0x2782d5){let _0xa0ebda;_0xa0ebda=_0x1629ad['end']['isAtEnd']&&_0x1629ad['end']['parent']==_0x1629ad['start']['nodeAfter']?_0x29ab3c['createSelection'](_0x1629ad['start']['nodeAfter'],'on'):_0x29ab3c['createSelection'](_0x1629ad),this['_model']['deleteContent'](_0xa0ebda,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3b2d7d=(_0xe5156f,_0x5ec333)=>{_0x5ec333&&this['_model']['change'](_0x1dbd35=>{const {commandName:_0x50a807,commandParams:_0xd0be70=[]}=_0x5ec333,_0x5148f2=_0xe5156f['map'](_0x4d4d81=>(Lt(_0x4d4d81)&&(_0x4d4d81=this['_model']['createRange'](_0x4d4d81['end'])),_0x4d4d81))['filter'](_0x468c0b=>'$graveyard'!==_0x468c0b['root']['rootName']);if(_0x5148f2['length']<0x1)return;const _0x5c8292=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x571044=>_0x1b3826['fromRange'](_0x571044));_0x1dbd35['setSelection'](_0x5148f2);for(const _0x3aa186 of this['_editor']['commands']['commands']())_0x3aa186['refresh']();_0xd0be70['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x50a807,..._0xd0be70);const _0x45bd31=_0x5c8292['filter'](_0x5e45e3=>'$graveyard'!=_0x5e45e3['root']['rootName']);_0x45bd31['length']>0x0&&_0x1dbd35['setSelection'](_0x45bd31);for(const _0x492165 of _0x5c8292)_0x492165['detach']();});},_0x207fb1=(_0x28384c,_0x157260)=>0x1==_0x28384c['length']&&0x1==_0x157260['length']&&_0x28384c[0x0]['end']['isEqual'](_0x157260[0x0]['start']),_0x57cbc3=(_0x24d491,_0x4032a5,_0x4919f7,_0x49c13a)=>Wt(_0x24d491,_0x4032a5,_0x4919f7,_0x49c13a)?[_0x24d491,_0x4032a5]:Wt(_0x4032a5,_0x24d491,_0x49c13a,_0x4919f7)?[_0x4032a5,_0x24d491]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4d4eb3),this['_defaultCallbacks']['set']('insertion:discard',_0x5732c6),this['_defaultCallbacks']['set']('insertion:join',_0x207fb1),this['_defaultCallbacks']['set']('insertion:chain',_0x57cbc3),this['_defaultCallbacks']['set']('deletion:accept',_0x5732c6),this['_defaultCallbacks']['set']('deletion:discard',_0x4d4eb3),this['_defaultCallbacks']['set']('deletion:join',_0x207fb1),this['_defaultCallbacks']['set']('deletion:chain',_0x57cbc3),this['_defaultCallbacks']['set']('formatInline:accept',_0x3b2d7d),this['_defaultCallbacks']['set']('formatInline:discard',_0x4d4eb3),this['_defaultCallbacks']['set']('formatInline:join',_0x207fb1),this['_defaultCallbacks']['set']('formatInline:chain',_0x4d4eb3),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3b2d7d),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4d4eb3),this['_defaultCallbacks']['set']('formatBlock:join',_0x207fb1),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4d4eb3),this['_defaultCallbacks']['set']('attribute:accept',_0x4d4eb3),this['_defaultCallbacks']['set']('attribute:discard',(_0x1cc433,_0xb30dfc)=>{if(!_0xb30dfc)return;const _0x5e500a=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x31cfa6=>{if(_0xb30dfc['key']==u)for(const _0x30205b of _0x1cc433){const _0x7ad42f=_0x30205b['start']['nodeAfter'],_0x5a3a65=_0xb30dfc['oldValue'];_0x31cfa6['rename'](_0x7ad42f,_0x5a3a65);}else{if(_0x5e500a['_isBlockAttribute'](_0xb30dfc['key'])){for(const _0x2e6869 of _0x1cc433)void 0x0!==_0xb30dfc['oldValue']?_0x31cfa6['setAttribute'](_0xb30dfc['key'],_0xb30dfc['oldValue'],_0x2e6869['start']['nodeAfter']):_0x31cfa6['removeAttribute'](_0xb30dfc['key'],_0x2e6869['start']['nodeAfter']);}else{for(const _0x3bd518 of _0x1cc433)_0xb30dfc['oldValue']?_0x31cfa6['setAttribute'](_0xb30dfc['key'],_0xb30dfc['oldValue'],_0x3bd518):_0x31cfa6['removeAttribute'](_0xb30dfc['key'],_0x3bd518);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x207fb1);}}function Gt(_0x499a5d,_0x108570,_0x5e6562){for(const _0x2c7add of _0x108570['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2c7add['root']==_0x2c7add)return!0x1;if(!_0x5e6562['containsItem'](_0x2c7add))return!0x1;if(_0x499a5d['isObject'](_0x2c7add)||_0x499a5d['isLimit'](_0x2c7add))return!0x0;}return!0x1;}function Lt(_0x50b650){return _0x50b650['end']['parent']==_0x50b650['start']['nodeAfter']&&_0x50b650['end']['isAtStart'];}function Jt(_0x2bf055,_0x36659a,_0x3e0f5b,_0x30335c){const _0x3f268c=_0x3ad9b9=>!_0x3ad9b9['item']['is']('$textProxy')&&!_0x30335c['isObject'](_0x3ad9b9['item']),_0x5c7489=_0x2bf055['start']['getLastMatchingPosition'](_0x3f268c),_0x2ac059=_0x2bf055['end']['getLastMatchingPosition'](_0x3f268c,{'direction':'backward'});return(!_0x2bf055['start']['isEqual'](_0x5c7489)||!_0x2bf055['end']['isEqual'](_0x2ac059))&&(_0x5c7489['isBefore'](_0x2ac059)?_0x3e0f5b['updateMarker'](_0x36659a,{'range':_0x3e0f5b['createRange'](_0x5c7489,_0x2ac059)}):_0x3e0f5b['removeMarker'](_0x36659a),!0x0);}function Kt(_0x336d51){return _0x4fd68b(_0x336d51);}function Ht(_0x3f5249){const _0x439fd9=_0x3f5249['start']['nodeAfter'];return _0x439fd9&&_0x439fd9['is']('element');}function qt(_0x59f660,_0x3bdec7){return null==_0x59f660['end']['nodeBefore']&&_0x59f660['end']['parent']==_0x59f660['start']['nodeAfter']?zt(_0x59f660['start']['nodeAfter'],_0x3bdec7):_0x59f660;}function zt(_0xda7f3d,_0x21a966){const _0x5e78b3=_0x21a966['schema']['isObject'](_0xda7f3d)||_0x21a966['schema']['isSelectable'](_0xda7f3d);return _0x21a966['createRange'](_0x21a966['createPositionAt'](_0xda7f3d,'before'),_0x5e78b3?_0x21a966['createPositionAfter'](_0xda7f3d):_0x21a966['createPositionAt'](_0xda7f3d,'end'));}function Wt(_0x4104a9,_0x51775e,_0x253397,_0x13155a){return!!Qt(_0x4104a9,_0x51775e)&&_0x253397['end']['isEqual'](_0x13155a['start']);}function Qt(_0x112f1f,_0x37241d){if(!_0x112f1f['_isDataLoaded']||!_0x37241d['_isDataLoaded'])return!0x1;const _0xae634a=new Set(Object['keys'](_0x112f1f['attributes'])),_0x1b47e6=new Set(Object['keys'](_0x37241d['attributes']));if(_0xae634a['delete']('groupId'),_0x1b47e6['delete']('groupId'),0x0==_0xae634a['size']&&0x0==_0x1b47e6['size'])return!0x0;if(_0xae634a['size']!=_0x1b47e6['size'])return!0x1;const _0x3b8e35={..._0x112f1f['attributes']},_0xbe32d5={..._0x37241d['attributes']};return delete _0x3b8e35['groupId'],delete _0xbe32d5['groupId'],JSON['stringify'](_0x3b8e35)==JSON['stringify'](_0xbe32d5);}function Xt(_0x5d51dc,_0x3f509f){const _0x756ec3=Yt(_0x5d51dc['attributes']),_0x1a46bd=Yt(_0x3f509f);if(!_0x5d51dc['_isDataLoaded'])return!0x1;for(const _0x14ce17 of Object['keys'](_0x1a46bd))if(!_0x5d8968(_0x756ec3[_0x14ce17],_0x1a46bd[_0x14ce17]))return!0x1;return!0x0;}function Yt(_0x3debb7){const _0x343b89=Object['assign']({},_0x3debb7);return delete _0x343b89['skipNestingCheck'],delete _0x343b89['tablePasteChainId'],_0x343b89;}class pe extends/* #__PURE__ -- @preserve */
25
- _0x1b8b91(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x21ac65,_0x3d5cc9,_0x4eafee,_0x40c872){super(),this['model']=_0x3d5cc9,this['view']=_0x4eafee,this['commentThreadController']=_0x40c872,this['_editor']=_0x21ac65,this['_acceptCommand']=_0x21ac65['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x21ac65['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3ff123,_0x24aca1)=>_0x3ff123||_0x24aca1),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x35164a=>_0x35164a&&this['_editor']['model']['canEditAt'](_0x3d5cc9['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x46edac=>_0x46edac&&this['_editor']['model']['canEditAt'](_0x3d5cc9['getRanges']())),this['_pendingAction']=null,_0x4eafee['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4eafee,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4eafee,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4eafee,'change:isDirty',()=>{_0x4eafee['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 _0x266238=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x266238);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x2794d0{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x458844,_0x3e62ef,_0x3fdbee,_0xeb89b1){super(_0x458844),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5f19ef(_0x458844,c(_0x458844,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3e62ef['authoredAt']),this['bind']('authoredAt')['to'](_0x3e62ef),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',_0x3e62ef,'authoredAt',this,'descriptionParts',(_0x56b3e4,_0x438a43,_0x1e3264)=>{const _0x4f0562=_0x1e3264['map'](_0x329d80=>ls(_0x329d80['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x56b3e4-0x1,_0x3e62ef['author']['name'],_0x438a43?_0xeb89b1['formatDateTime'](_0x438a43):'',new DOMParser()['parseFromString'](_0x4f0562,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5a384c(),this['focusTracker']=new _0x5287f3(),this['keystrokes']=new _0x2e386b(),this['focusCycler']=new _0x54f78f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3d3030=>_0x3d3030['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3e62ef,this['_localUser']=_0x3fdbee,this['_config']=_0xeb89b1,_0xeb89b1['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x411d30(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x470576}=this['_config'];this['commentsListView']=new _0x470576(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',_0x187d90=>_0x187d90+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x539a77,_0x29d8d4)=>_0x539a77||!!_0x29d8d4);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2c4568}=this['_config'],_0x29cd5e=new _0x2c4568(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x510ed3=_0x29cd5e['commentInputView'];return _0x29cd5e['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x510ed3,'value',(_0x58f26e,_0x176bc0,_0x2fb575)=>!!_0x2fb575||_0x58f26e&&!_0x176bc0),_0x510ed3['on']('submit',(_0x306069,_0x17cb9f)=>{this['fire']('addComment',_0x17cb9f),_0x510ed3['editor']['setData']('');}),_0x510ed3['on']('cancel',()=>this['focus']()),_0x510ed3['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x29cd5e;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x37d5bd,_0x42791b,_0xbffa36,_0x353a08){super(_0x37d5bd,_0x42791b,_0xbffa36,_0x353a08),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x514d34=>_0x514d34&&_0x514d34[0x0]?_0x514d34[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xb50117,_0x55e6c0)=>{let _0xf46edc='';for(const _0x42d47c of _0xb50117)_0xf46edc+='<p>'+ls(_0x42d47c['content'],_0x42d47c['color'])+'</p>';return _0x55e6c0?_0xf46edc:ti(_0xf46edc,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x353a08['SuggestionView'](_0x37d5bd,_0x42791b,{'formatDateTime':_0x353a08['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 _0x2bd4a0=this['bindTemplate'],_0x3da0e4=[this['suggestionView']];return this['commentsListView']&&_0x3da0e4['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3da0e4['push'](this['commentThreadInputView']),_0x3da0e4['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2bd4a0['if']('isActive','ck-suggestion-wrapper--active'),_0x2bd4a0['to']('type',_0x1bdddc=>'ck-suggestion-'+_0x1bdddc),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':_0x2bd4a0['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3da0e4};}['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 _0x2794d0{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x592197,_0xadd79a,_0x2ccb3c){super(_0x592197),this['_model']=_0xadd79a,this['_config']=_0x2ccb3c,this['set']('description',''),this['bind']('authoredAt')['to'](_0xadd79a),this['acceptButton']=this['_createButton'](c(_0x592197,'Accept\x20suggestion'),_0x2125da,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x592197,'Discard\x20suggestion'),_0x1da1fd,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5791b3(_0x592197,_0xadd79a['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5a384c([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5287f3(),this['keystrokes']=new _0x2e386b(),this['focusCycler']=new _0x54f78f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x188d7e=>_0x188d7e['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xee8cfa=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xee8cfa['innerHTML']=this['description'],this['on']('change:description',(_0x3b4159,_0x4e006f,_0x2680ce)=>{_0xee8cfa['innerHTML']=_0x2680ce;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x378394=this['bindTemplate'],_0x2aacff=[{'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':_0x378394['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x378394['to']('authoredAt',_0x9102d2=>this['_config']['formatDateTime'](_0x9102d2))}]}]},{'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']&&_0x2aacff['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':_0x2aacff}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x366f3c,_0x451ad1,_0x260c30,_0x660b56,_0x128992){const _0x5ca8c7=new _0x11ae91(this['locale']);return _0x5ca8c7['set']({'label':_0x366f3c,'icon':_0x451ad1,'tooltip':!0x0,'tooltipPosition':_0x128992}),_0x5ca8c7['extendTemplate']({'attributes':{'class':_0x260c30}}),_0x5ca8c7['on']('execute',()=>{this['fire'](_0x660b56,this['_model']['id']);}),_0x5ca8c7;}['_setupKeyboardNavigation'](){const _0x2e2880=this['element'];this['keystrokes']['listenTo'](_0x2e2880);for(const _0x38b922 of this['focusables'])this['focusTracker']['add'](_0x38b922['element']),this['keystrokes']['listenTo'](_0x38b922['element']);this['keystrokes']['set']('enter',(_0x103b96,_0x3c5ad1)=>{_0x2e2880===_0x103b96['target']&&(this['focusCycler']['focusFirst'](),_0x3c5ad1());}),this['keystrokes']['set']('esc',(_0x4a9b11,_0x48768c)=>{_0x2e2880!==_0x4a9b11['target']&&(this['focus'](),_0x48768c());});}}class d extends _0x41653b{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x497cb6,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x928a44){super(_0x928a44),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3d63a4=this['editor']['config'];_0x3d63a4['define']('trackChanges.SuggestionThreadView',fe),_0x3d63a4['define']('trackChanges.SuggestionView',we),_0x3d63a4['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3d63a4['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1ae2bc,_0x1f29af){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x12f217,_0x5ed24d]of this['_handleControllerBuffer']){const _0xbaac91=this['_suggestionToController']['has'](_0x12f217);_0xbaac91||_0x5ed24d?_0xbaac91&&_0x5ed24d&&this['_destroyController'](_0x12f217):this['_initializeController'](_0x12f217);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1ae2bc,_0x1f29af);}['init'](){const _0x5cf155=this['editor'],_0x4e8efe=_0x5cf155['plugins']['get']('TrackChangesEditing'),_0x57dfce=_0x5cf155['plugins']['get']('Annotations'),_0x331446=_0x5cf155['plugins']['get']('EditorAnnotations'),_0x5506d7=_0x5cf155['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x331446['addSourceCollector'](()=>{const _0x1d41b2=[];for(const [_0x26b892,_0x3d1cab]of Array['from'](this['_suggestionToController'])){const _0x4881e0=_0x26b892['getAllAdjacentSuggestions'](),_0x33df9a=[];for(const _0x33028a of _0x4881e0){if(!_0x33028a['isInContent'])continue;if(_0x33028a['isMultiRange']){_0x33df9a['push'](..._0x33028a['getRanges']());continue;}const _0x42ae93=_0x33028a['getFirstRange']();if(_0x33df9a['length']>0x0){const _0x5628e8=_0x33df9a[0x0]['getJoined'](_0x42ae93);if(_0x5628e8){_0x33df9a[0x0]=_0x5628e8;continue;}}_0x33df9a['push'](_0x42ae93);}_0x1d41b2['push']([_0x3d1cab['view'],_0x33df9a]);}return _0x1d41b2;}),this['listenTo'](_0x4e8efe,'suggestionLoaded',(_0x2b3329,_0x3262cd)=>{this['listenTo'](_0x3262cd,'change:previous',(_0x1bee18,_0x12f78c,_0x70da93,_0x5dad8e)=>{_0x3262cd['isInContent']&&(null==_0x70da93?(this['_updateController'](_0x5dad8e['head']),this['_handleSuggestionControllerDelayed'](_0x3262cd,!0x1)):(this['_updateController'](_0x70da93['head']),null==_0x5dad8e&&this['_handleSuggestionControllerDelayed'](_0x3262cd,!0x0)));}),null!==_0x3262cd['previous']?this['_updateController'](_0x3262cd['head']):this['_handleSuggestionControllerDelayed'](_0x3262cd,!0x1);}),this['listenTo'](_0x4e8efe,'suggestionUnloaded',(_0x4e506c,_0x52205b,_0x46876b)=>{this['stopListening'](_0x52205b,'change:previous'),this['_handleControllerBuffer']['delete'](_0x52205b),this['_suggestionToController']['has'](_0x52205b)&&this['_destroyController'](_0x52205b),_0x46876b&&this['_updateController'](_0x46876b['head']);}),this['listenTo'](_0x4e8efe,'suggestionChanged',(_0x35a954,_0x36c21a)=>{this['_updateController'](_0x36c21a);}),this['listenTo'](_0x57dfce,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5506d7,'addComment',(_0x5057e6,{threadId:_0x20d970,isFromAdapter:_0x2a2199})=>{if(_0x2a2199||!_0x4e8efe['hasSuggestion'](_0x20d970))return;const _0x11675b=_0x4e8efe['getSuggestion'](_0x20d970);this['_suggestionToController']['get'](_0x11675b)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2e2442=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x115a65;for(const _0x458fe9 in _0x2e2442){const _0x253478=_0x458fe9,_0x91f56d=_0x2e2442[_0x253478];if('trackChangesLicenseKeyValid'==_0x91f56d||'trackChangesLicenseKeyInvalid'==_0x91f56d||'trackChangesLicenseKeyExpired'==_0x91f56d||'trackChangesLicenseKeyDomainLimit'==_0x91f56d||'trackChangesLicenseKeyNotAllowed'==_0x91f56d||'trackChangesLicenseKeyEvaluationLimit'==_0x91f56d||'trackChangesLicenseKeyTrialLimit'==_0x91f56d||'trackChangesLicenseKeyUsageLimit'==_0x91f56d){delete _0x2e2442[_0x253478],_0x115a65=_0x91f56d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x115a65&&_0x2e2442['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x115a65&&_0x2e2442['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x115a65&&_0x2e2442['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x115a65&&_0x2e2442['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x115a65&&_0x2e2442['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x115a65&&_0x2e2442['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x115a65&&_0x2e2442['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x264d98=this['editor']['plugins']['get']('Annotations'),_0x42ea17=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d1f3d=Array['from'](_0x264d98['activeAnnotations'],_0x17136b=>_0x17136b['innerView'])['filter'](_0x415660=>this['_viewToController']['has'](_0x415660)),_0x778f2=[];for(const _0x399c16 of _0x5d1f3d){const _0x14e9ab=this['_viewToController']['get'](_0x399c16)['model']['getAllAdjacentSuggestions']();_0x778f2['push'](..._0x14e9ab['reduce']((_0x3cbb4e,_0x54013e)=>[..._0x3cbb4e,..._0x54013e['getMarkerNames']()],[]));}_0x42ea17['activeMarkers']=_0x778f2;}['_addUIComponentsToFactory'](){const _0x78b8c6=this['editor'],_0x35c586=_0x78b8c6['locale'],_0xa17f66=c(_0x35c586,'Track\x20changes'),_0x50a301=new _0x12d430([{'type':'switchbutton','model':new _0x3532d8({'withText':!0x0,'isToggleable':!0x0,'label':_0xa17f66,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3532d8({'withText':!0x0,'label':c(_0x35c586,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3532d8({'withText':!0x0,'label':c(_0x35c586,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3532d8({'withText':!0x0,'label':c(_0x35c586,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3532d8({'withText':!0x0,'label':c(_0x35c586,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x78b8c6['plugins']['has']('TrackChangesPreview')&&_0x50a301['addMany']([{'type':'separator'},{'type':'button','model':new _0x3532d8({'withText':!0x0,'label':c(_0x35c586,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x24ca84 of _0x50a301)if(ke(_0x24ca84)){const _0x282dbb=_0x78b8c6['commands']['get'](_0x24ca84['model']['commandName']);_0x24ca84['model']['bind']('isOn','isEnabled')['to'](_0x282dbb,'value','isEnabled');}_0x78b8c6['ui']['componentFactory']['add']('trackChanges',_0x264bf2=>this['_createToolbarButton'](_0x264bf2,_0x50a301,_0xa17f66)),_0x78b8c6['ui']['componentFactory']['add']('menuBar:trackChanges',_0x81e919=>this['_createMenuBarMenu'](_0x81e919,_0x50a301,_0xa17f66));}['_createToolbarButton'](_0x48af85,_0x133967,_0x5a9204){const _0xcd85e6=_0x439f47(_0x48af85,_0x4bf031),_0x255f59=this['editor']['commands']['get']('trackChanges');_0xcd85e6['buttonView']['set']({'tooltip':_0x5a9204,'label':_0x5a9204,'icon':_0x598182}),_0xcd85e6['buttonView']['bind']('isOn')['to'](_0x255f59,'value'),_0xcd85e6['buttonView']['on']('execute',()=>{_0x255f59['execute'](),this['editor']['editing']['view']['focus']();}),_0x27c46b(_0xcd85e6,_0x133967,{'role':'menu'});const _0x5bb074=[];for(const _0x3f453c of _0x133967)ke(_0x3f453c)&&_0x5bb074['push'](this['editor']['commands']['get'](_0x3f453c['model']['commandName']));const _0x5394fd=_0xcd85e6['buttonView'];return _0x5394fd['actionView']['unbind']('isEnabled'),_0x5394fd['arrowView']['unbind']('isEnabled'),_0x5394fd['actionView']['bind']('isEnabled')['to'](_0x255f59,'isEnabled'),_0x5394fd['arrowView']['bind']('isEnabled')['toMany'](_0x5bb074,'isEnabled',(..._0x59637e)=>_0x59637e['some'](_0x45ad9e=>_0x45ad9e)),_0xcd85e6['on']('execute',_0x336716=>{this['editor']['execute'](_0x336716['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xcd85e6;}['_createMenuBarMenu'](_0x1bceb2,_0x250f6d,_0x56f70a){const _0x14eeca=new _0x52f8a9(_0x1bceb2),_0x23bb0f=this['editor']['commands']['get']('trackChanges');_0x14eeca['buttonView']['set']({'label':_0x56f70a,'icon':_0x598182});const _0x48e33f=new _0x360814(_0x1bceb2);for(const _0x4b3312 of _0x250f6d){if('separator'==_0x4b3312['type']){_0x48e33f['items']['add'](new _0x201d95(_0x1bceb2));continue;}const _0xf3c2f9=new _0x528795(_0x1bceb2,_0x14eeca),_0x2ddb84=new _0x5423cf(_0x1bceb2),_0x27307c=_0x4b3312['model'];_0x2ddb84['bind'](...Object['keys'](_0x27307c))['to'](_0x27307c),_0x2ddb84['delegate']('execute')['to'](_0x14eeca),_0x2ddb84['on']('execute',()=>{this['editor']['execute'](_0x27307c['commandName']),this['editor']['editing']['view']['focus']();}),_0xf3c2f9['children']['add'](_0x2ddb84),_0x48e33f['items']['add'](_0xf3c2f9);}return _0x14eeca['bind']('isEnabled')['to'](_0x23bb0f,'isEnabled'),_0x14eeca['panelView']['children']['add'](_0x48e33f),_0x14eeca;}['_initializeController'](_0x3fd953){const _0xc1015a=this['editor'],_0x4509ce=_0xc1015a['config'],_0x308f77=_0xc1015a['plugins']['get']('Annotations'),_0x2fbda1=_0xc1015a['plugins']['get']('CommentsRepository'),_0x3383ad=_0xc1015a['plugins']['get']('EditorAnnotations'),_0x3ba8ec=_0xc1015a['plugins']['get'](_0x497cb6)['me'],_0x46852b=_0x4509ce['get']('trackChanges')['SuggestionThreadView'],_0xa8c72e=_0x4509ce['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x229b13,CommentThreadInputView:_0x5c42aa}=_0xc1015a['plugins']['get']('CommentsUI');let _0x167210,_0x5353c4,_0x2f650d;this['_annotationViews']['has'](_0x3fd953['id'])?(_0x5353c4=this['_annotationViews']['get'](_0x3fd953['id']),_0x167210=_0x5353c4['mainView']):(_0x167210=new _0x46852b(_0xc1015a['locale'],_0x3fd953,_0x3ba8ec,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4509ce['get']('comments.editorConfig'),'licenseKey':_0x4509ce['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4509ce['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4509ce['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4509ce['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xb8f67(_0x4509ce['get']('locale'),_0xc1015a['locale']),'CommentView':_0x4509ce['get']('comments')['CommentView'],'CommentsListView':_0x229b13,'CommentThreadInputView':_0x5c42aa,'SuggestionView':_0xa8c72e}),_0x167210['suggestionView']['acceptButton']['on']('execute',()=>{_0xc1015a['editing']['view']['focus']();}),_0x167210['suggestionView']['discardButton']['on']('execute',()=>{_0xc1015a['editing']['view']['focus']();}),_0x5353c4=_0x308f77['createAnnotationView'](this['editor']['locale'],_0x167210),_0x5353c4['bind']('isDirty')['to'](_0x167210,'isDirty'),_0x5353c4['bind']('length')['to'](_0x167210),_0x5353c4['bind']('type')['to'](_0x167210,'type',_0x3a7fa0=>'suggestion-'+_0x3a7fa0),_0x167210['on']('escape',()=>{_0x2f650d['fire']('escape');}),this['_annotationViews']['set'](_0x3fd953['id'],_0x5353c4));const _0x46c654=_0x2fbda1['createCommentThreadController'](_0x3fd953['commentThread'],_0x167210),_0xec59e4=new pe(_0xc1015a,_0x3fd953,_0x167210,_0x46c654),_0x1a20fb=_0x3fd953['getAllAdjacentSuggestions']()['filter'](_0x33e0cd=>_0x33e0cd['isInContent']);_0x167210['descriptionParts']=_0xc1015a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1a20fb),this['_suggestionToController']['set'](_0x3fd953,_0xec59e4),this['_viewToController']['set'](_0x167210,_0xec59e4),_0x2f650d=_0x308f77['createAnnotation']({'view':_0x5353c4,'target':()=>{const _0x4f365d=[],_0x1a60cb=_0x3fd953['getAllAdjacentSuggestions']()['filter'](_0x370a1c=>_0x370a1c['isInContent']);for(const _0x32a9b4 of _0x1a60cb)_0x4f365d['push'](..._0x32a9b4['getMarkers']());return _0xf9b91(_0xc1015a['editing'],_0x4f365d);},'type':()=>'suggestion-'+_0xec59e4['view']['type']}),_0x2fbda1['_bindAnnotationToEditors'](_0x167210,_0x2f650d),_0x308f77['add'](_0x2f650d),_0x3383ad['registerAnnotation'](_0x2f650d);}['_destroyController'](_0x2073ce){const _0xc31eb1=this['editor']['plugins']['get']('CommentsRepository'),_0x3d2b12=this['editor']['plugins']['get']('Annotations'),_0x5d4d32=this['_suggestionToController']['get'](_0x2073ce),_0x6aa52b=_0x5d4d32['view'],_0x440a58=_0x3d2b12['getByInnerView'](_0x6aa52b);_0xc31eb1['_unbindEditors'](_0x6aa52b),_0x440a58&&_0x3d2b12['remove'](_0x440a58),this['_suggestionToController']['delete'](_0x2073ce),this['_viewToController']['delete'](_0x6aa52b),_0x5d4d32['destroy']();}['_updateController'](_0x55a221){if(!_0x55a221['isInContent']||!this['_suggestionToController']['has'](_0x55a221))return;const _0x158d7d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x551702=this['_suggestionToController']['get'](_0x55a221),_0x6f1a80=_0x55a221['getAllAdjacentSuggestions']();_0x551702['view']['descriptionParts']=_0x158d7d['descriptionFactory']['getDescriptions'](_0x6f1a80);}['destroy'](){for(const _0x51c247 of this['_suggestionToController']['keys']())this['_destroyController'](_0x51c247);for(const _0x46ed5a of this['_annotationViews']['values']())_0x46ed5a['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x3d1301){return'model'in _0x3d1301;}class k extends _0x41653b{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x105b69){this['editor']['plugins']['get'](p)['adapter']=_0x105b69;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x50e867){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x50e867);}['getSuggestions']({skipNotAttached:_0x30924c=!0x1,toJSON:_0x4d8452=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x30924c,'toJSON':_0x4d8452});}['getSuggestion'](_0x17d903){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x17d903);}}const w=['Pagination'];class T extends _0x41653b{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5bf7da=this['editor'];if(_0x5bf7da['config']['define']('trackChangesData.editorCreator',_0x1ef4ea=>{const _0x6585cb=_0x5bf7da['model']['document']['getRootNames']()['reduce']((_0x57fd1b,_0x10a51d)=>(_0x57fd1b[_0x10a51d]='',_0x57fd1b),{});return _0x5bf7da['constructor']['create'](_0x6585cb,_0x1ef4ea);}),'function'!=typeof _0x5bf7da['config']['get']('trackChangesData')['editorCreator'])throw new _0x26cd03('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5114b0){return N(this['editor'],!0x0,_0x5114b0);}['getDataWithDiscardedSuggestions'](_0x36e5c3){return N(this['editor'],!0x1,_0x36e5c3);}}class D extends _0x41653b{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x318ca3){function _0x2c20ea(_0x1ca9b0){return _0x1ca9b0['map'](_0x34a373=>String['fromCharCode'](_0x34a373))['join']('');}super(_0x318ca3),this['result']='end',_0x318ca3[_0x2c20ea([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c20ea([0x76,0x69,0x65,0x77])][_0x2c20ea([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2c20ea([0x61,0x75,0x74,0x6f]),_0x318ca3[_0x2c20ea([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2c20ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2c20ea([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2c20ea([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2c20ea([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 Ge(_0x3db457){return void 0x0!==_0x3db457['getRootsAttributes'];}async function N(_0x24529e,_0x12ed0d,_0x4fbb5d){const _0x46438b=_0x303e21(_0x24529e,w);_0x46438b['plugins']['push'](p,D),_0x46438b['rootsAttributes']=Ge(_0x24529e)?_0x24529e['getRootsAttributes']():void 0x0;const _0x2e1d2d=document['createDocumentFragment'](),_0x20efb3=_0x24529e['config']['get']('trackChangesData')['editorCreator'],_0x407d9b=await _0x20efb3(_0x46438b,()=>function(_0x309823){const _0x527881=document['createElement']('div');return _0x309823['appendChild'](_0x527881),_0x527881;}(_0x2e1d2d));!function(_0x45b295,_0x1e138a){const _0x26cd3a=_0x45b295['model']['document']['getRootNames']()['reduce']((_0x1cb6d1,_0x1eb88d)=>(_0x1cb6d1[_0x1eb88d]=_0x45b295['data']['get']({'rootName':_0x1eb88d}),_0x1cb6d1),{}),_0x5bb12f=_0x45b295['plugins']['get']('Users')['users']['map'](_0x10bd30=>({'id':_0x10bd30['id'],'name':_0x10bd30['name']})),_0x2efa67=_0x45b295['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xd766ed=_0x45b295['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x16b73b=_0x1e138a['plugins']['get']('Users'),_0x548ab5=_0x1e138a['plugins']['get']('TrackChangesEditing'),_0x581360=_0x1e138a['plugins']['get']('CommentsRepository');for(const _0x34d3aa of _0x581360['getCommentThreads']())_0x34d3aa['remove']();for(const _0x2e203e of _0x5bb12f)_0x16b73b['getUser'](_0x2e203e['id'])||_0x16b73b['addUser'](_0x2e203e);_0x16b73b['me']||_0x16b73b['useAnonymousUser']();for(const _0x56f601 of _0xd766ed)_0x581360['addCommentThread'](_0x56f601);for(const _0x326d75 of _0x2efa67)_0x548ab5['addSuggestionData'](_0x326d75);_0x1e138a['data']['set'](_0x26cd3a);}(_0x24529e,_0x407d9b),_0x407d9b['execute'](_0x12ed0d?'acceptAllSuggestions':'discardAllSuggestions');const _0x31d48b=Ge(_0x407d9b)?_0x407d9b['getFullData'](_0x4fbb5d):_0x407d9b['data']['get'](_0x4fbb5d);return await _0x407d9b['destroy'](),_0x31d48b;}class Me extends _0x2794d0{['options'];constructor(_0x2ddd0b,_0x5a6da6){super(_0x2ddd0b),this['options']=_0x5a6da6,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'](_0x3ce3dd,_0x38636d){if(!this['element'])return;const _0x4bfb2d=[];for(const [_0x13650a,_0xafdc1d]of _0x3ce3dd){const _0x5906d2=document['createElement']('div');_0x5906d2['setAttribute']('data-ck-root-name',_0x13650a),_0x5906d2['className']=_0xafdc1d['classes']+'\x20ck-track-changes-preview__root-container',_0x5906d2['innerHTML']=_0xafdc1d['content'],_0x4bfb2d['push'](_0x5906d2);}_0x38636d(this['element'],_0x4bfb2d),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x58c3ef{constructor(_0x3b875e){super(_0x3b875e),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x5084c6=this['editor'],_0x2de328=_0x5084c6['locale'],_0x19defb=_0x5084c6['plugins']['get']('Dialog');let _0x4e5021;const _0x55b3da=function(_0x39ec99){const _0x2eea44={};if('editables'in _0x39ec99['ui']['view']){for(const [_0x1db03e,_0x31c172]of Object['entries'](_0x39ec99['ui']['view']['editables']))_0x2eea44[_0x1db03e]=_0x31c172['element'];}else _0x2eea44[_0x39ec99['model']['document']['getRootNames']()[0x0]]=_0x39ec99['ui']['view']['editable']['element'];return _0x2eea44;}(_0x5084c6),_0x8e56c8=function(_0x49fc2f){let _0x1f1639=0x0;for(const _0x2a86d5 of Object['values'](_0x49fc2f))_0x1f1639=Math['max'](_0x1f1639,_0x2a86d5['getBoundingClientRect']()['width']);let _0x49dab4=0x0;for(const _0x1b422b of Object['values'](_0x49fc2f))_0x49dab4+=_0x1b422b['getBoundingClientRect']()['height'];const _0x40a448=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3a170e=Math['min'](_0x49dab4,_0x40a448);return{'width':_0x1f1639,'height':_0x3a170e};}(_0x55b3da);_0x19defb['show']({'id':'finalContentPreview','title':c(_0x2de328,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x2de328,{'dialogRects':_0x8e56c8}),'onHide':()=>{_0x4e5021['detachFromDom']();},'onShow':()=>{_0x5084c6['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x54eabf=>{const _0x296812=this['_standarizeRootsData'](_0x54eabf,_0x5084c6,_0x55b3da);_0x19defb['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x296812,_0x5084c6['config']['get']('trackChanges.preview.renderFunction'));}),_0x4e5021=new _0x47fdad(_0x2de328,[_0x19defb['view']]),_0x4e5021['attachToDom'](),_0x4e5021['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x5084c6['once']('destroy',()=>{_0x4e5021['detachFromDom']();});const _0x111624=_0x19defb['view']['headerView']['class'];_0x19defb['view']['headerView']['class']=_0x111624?_0x111624+'\x20ck-reset_all':'ck-reset_all',_0x19defb['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x19defb['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x533fc3=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x194e49=_0x533fc3['previewMode'],_0x1a5a0e={};if('$labels'===_0x194e49){for(const _0x5661c1 of _0x533fc3['getMergeFieldsIds']())_0x1a5a0e[_0x5661c1]=_0x533fc3['getLabel'](_0x5661c1)||_0x5661c1;}else{const _0x3a53b0='$defaultValues'===_0x194e49?_0x533fc3['getDefaultValues']():_0x533fc3['getDataSetValues'](_0x194e49,!0x0);for(const _0x1afbfe of Object['entries'](_0x3a53b0)){const [_0x3c3a07,_0x113236]=_0x1afbfe;_0x1a5a0e[_0x3c3a07]=null!==_0x113236?_0x113236:_0x533fc3['getLabel'](_0x3c3a07)||_0x3c3a07;}}return{'mergeFieldsData':_0x1a5a0e};}['_standarizeRootsData'](_0x8c31c7,_0x18b194,_0x1fe700){let _0x44abeb;if('string'==typeof _0x8c31c7){const _0x2bc07b=_0x18b194['model']['document']['getRootNames']()[0x0];_0x44abeb={[_0x2bc07b]:_0x8c31c7};}else _0x44abeb=_0x8c31c7;const _0x259248=this['_fixMediaEmbeds'](_0x44abeb,_0x18b194),_0x564e44=function(_0x49ec38,_0x4588af){for(const [_0x4d5005,_0x70198a]of _0x49ec38)_0x70198a['classes']=_0x4588af[_0x4d5005]['classList']['value']['replace']('ck-focused','');return _0x49ec38;}(this['_sortRoots'](_0x18b194)['reduce']((_0x48c67a,_0x51b9e3)=>(_0x48c67a['push']([_0x51b9e3,{'content':_0x259248[_0x51b9e3],'classes':''}]),_0x48c67a),[]),_0x1fe700);return _0x564e44;}['_fixMediaEmbeds'](_0x394b9c,_0x2f9aae){if(!_0x2f9aae['plugins']['has']('MediaEmbedEditing'))return _0x394b9c;const _0x3af585=_0x2f9aae['plugins']['get']('MediaEmbedEditing');for(const [_0x44b8f3,_0x1765c1]of Object['entries'](_0x394b9c)){const _0xe47387=document['createElement']('div');_0xe47387['innerHTML']=_0x1765c1,(_0xe47387['querySelectorAll']('figure.media')['forEach'](_0x237545=>{const _0x2139d0=_0x237545['querySelector']('oembed');if(_0x2139d0){const _0x4c5c4b=_0x2139d0['getAttribute']('url');if(_0x4c5c4b){const _0x41ed50=_0x3af585['registry']['getMediaViewElement'](new _0x344b18(_0x2f9aae['editing']['view']['document']),_0x4c5c4b,{'elementName':'','renderForEditingView':!0x0}),_0x40da6e=document['createElement']('div');_0x40da6e['classList']['add']('ck-media__wrapper'),_0x41ed50['render'](_0x40da6e,_0x2f9aae['editing']['view']['domConverter']),_0x2139d0['replaceWith'](_0x40da6e);}}}),_0x394b9c[_0x44b8f3]=_0xe47387['innerHTML']);}return _0x394b9c;}['_sortRoots'](_0x459d5a){if(!function(_0x5f583a){return void 0x0!==_0x5f583a['getRootsAttributes'];}(_0x459d5a))return _0x459d5a['model']['document']['getRootNames']();const _0x1c0be6=[],_0x776388=new Map();for(const _0x236626 of _0x459d5a['model']['document']['getRootNames']()){const _0x1cf495=_0x459d5a['editing']['view']['getDomRoot'](_0x236626)['getClientRects']()['item'](0x0);_0x1c0be6['push'](_0x236626),_0x776388['set'](_0x236626,_0x1cf495);}return _0x1c0be6['sort']((_0x501031,_0x1008d9)=>{const _0x17a5ec=_0x776388['get'](_0x501031),_0x4e58f6=_0x776388['get'](_0x1008d9);return _0x17a5ec['y']-_0x4e58f6['y']||_0x17a5ec['x']-_0x4e58f6['x'];}),_0x1c0be6;}}class te extends _0x41653b{static get['requires'](){return[T,_0x115414];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2b4a7b){super(_0x2b4a7b),_0x2b4a7b['commands']['add']('previewFinalContent',new re(this['editor'])),_0x2b4a7b['config']['define']('trackChanges.preview.renderFunction',(_0x3ecc0a,_0x3422ac)=>{for(const _0x273e0b of _0x3422ac)_0x3ecc0a['appendChild'](_0x273e0b);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
23
+ import{Command as _0x2a2adc,Plugin as _0x4a3f61,PendingActions as _0x19a3c1}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3ddcc7,ObservableMixin as _0x28df7b,uid as _0x5ae980,priorities as _0x3ea4f5,insertToPriorityArray as _0x4765d1,logWarning as _0x1579ff,getEnvKeystrokeText as _0x278238,FocusTracker as _0x2e65ef,KeystrokeHandler as _0x984ca4,Collection as _0x4e2aa6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x3dc774,IconCancel as _0x292a4f,IconTrackChanges as _0x3a5fc6}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x3035b8,View as _0x2363de,ViewCollection as _0x4c9bf3,FocusCycler as _0x4356e1,ViewModel as _0x12ac24,createDropdown as _0x354971,SplitButtonView as _0x392e30,addListToDropdown as _0x14e197,MenuBarMenuView as _0x25eb95,MenuBarMenuListView as _0x5372de,ListSeparatorView as _0x137561,MenuBarMenuListItemView as _0x4b6659,MenuBarMenuListItemButtonView as _0x451c87,BodyCollection as _0x23b5c4,Dialog as _0x3f407f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x10352c,hashObject as _0x167b69,surroundingMarkersDetector as _0x39d16b,FOCUS_ANNOTATION_KEYSTROKE as _0x53f47c,AriaDescriptionView as _0x2acbd4,setupThreadKeyboardNavigation as _0xe4b060,trimHtml as ti,UserView as _0x24ebfe,LateFocusButtonView as _0x509438,getDateTimeFormatter as _0x39d880,getAllMarkersDomElementsSorted as _0x191051,sanitizeEditorConfig as _0x4ddee9}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x1853b0,LiveRange as _0x36f06e,LivePosition as _0x60ba45,DowncastWriter as _0x1bb2d9}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0xd3142e,toWidget as _0x61d478}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x176173,set as _0x5b5ab5,isEqual as _0x5a9b14,unset as _0x5e6fab,omit as Ft}from'es-toolkit/compat';import{Delete as _0x595526,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0xc211d1}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x363c90}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x2a2adc{['_enabledCommands'];constructor(_0x26f401,_0x20ff87){super(_0x26f401),this['_enabledCommands']=_0x20ff87,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 _0x246e79 of this['editor']['commands']['commands']())_0x246e79['affectsData']&&!this['_enabledCommands']['has'](_0x246e79)&&_0x246e79['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1dd4f3 of this['editor']['commands']['commands']())_0x1dd4f3['affectsData']&&!this['_enabledCommands']['has'](_0x1dd4f3)&&_0x1dd4f3['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x2a2adc{['_suggestions'];constructor(_0x74d056,_0x100cb8){super(_0x74d056),this['_suggestions']=_0x100cb8,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x77f7b2){const _0x2500fb=this['_suggestions']['get'](_0x77f7b2);if(!_0x2500fb)throw new _0x3ddcc7('track-changes-accept-suggestion-not-found',this);const _0x566936=_0x2500fb['getRanges']();this['editor']['model']['canEditAt'](_0x566936)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2500fb);}}class R extends _0x2a2adc{['_suggestions'];constructor(_0xdcf284,_0x4ffe27){super(_0xdcf284),this['_suggestions']=_0x4ffe27,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2ff250){const _0x77db0b=this['_suggestions']['get'](_0x2ff250);if(!_0x77db0b)throw new _0x3ddcc7('track-changes-discard-suggestion-not-found',this);const _0x203aae=_0x77db0b['getRanges']();this['editor']['model']['canEditAt'](_0x203aae)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x77db0b);}}function ls(_0x19cad0,_0xa3faa2){let _0x134859='';return _0x134859+=_0x19cad0['split']('*')['map']((_0x253c8e,_0x12e481)=>_0x12e481%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x253c8e)+'</span>':nn(_0x253c8e))['join'](''),_0xa3faa2&&(_0x134859+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xa3faa2['value']+'\x22\x20title=\x22'+_0xa3faa2['title']+'\x22></span>'),_0x134859;}function nn(_0x5b1ce2){const _0x1b4b41=document['createElement']('span');return _0x1b4b41['innerText']=_0x5b1ce2,_0x1b4b41['innerHTML'];}function ts(_0xea5d28){return _0xea5d28['sort']((_0x1765e0,_0x4770fb)=>'deletion'==_0x1765e0['type']&&'deletion'!=_0x4770fb['type']?-0x1:'deletion'!=_0x1765e0['type']&&'deletion'==_0x4770fb['type']?0x1:0x0);}function to(_0x5ae080,_0x125c1d){let _0x24bce3,_0xcf530d=0x0;const _0x295b81=[],_0x387583=_0x125c1d['schema'];for(;_0xcf530d<_0x5ae080['length'];){const _0x4ad9b6=_0x5ae080[_0xcf530d],_0x5a3c04=_0x5ae080[_0xcf530d+0x1];_0x24bce3||(_0x24bce3=_0x125c1d['createPositionBefore'](_0x4ad9b6)),on(_0x125c1d,_0x4ad9b6,_0x5a3c04)||(_0x295b81['push'](_0x125c1d['createRange'](_0x24bce3,_0x387583['isObject'](_0x4ad9b6)?_0x125c1d['createPositionAfter'](_0x4ad9b6):_0x125c1d['createPositionAt'](_0x4ad9b6,'end'))),_0x24bce3=null),_0xcf530d++;}return _0x295b81;}function on(_0x1b59db,_0xcd31ec,_0x2ffa7b){if(!_0x2ffa7b)return!0x1;const _0x3c77fd=_0x1b59db['createPositionAfter'](_0xcd31ec),_0x4d5ce6=_0x1b59db['createPositionBefore'](_0x2ffa7b);return _0x3c77fd['isTouching'](_0x4d5ce6);}function rs(_0x416999,_0x456aa0,_0x312747){for(;_0x312747['length'];){const _0x29dde6=_0x312747['splice'](0x0,0x64);_0x416999['change'](()=>{for(const _0x408ce9 of _0x29dde6)_0x408ce9['isInContent']&&_0x456aa0['execute'](_0x408ce9['id']);});}}class x extends _0x2a2adc{['_command'];['_suggestions'];constructor(_0x519488,_0x2d186b,_0x107a27){super(_0x519488),this['_command']=_0x2d186b,this['_suggestions']=_0x107a27,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x21fe09=Array['from'](this['_suggestions']['values']())['some'](_0xa69b8f=>_0xa69b8f['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x21fe09;}['execute'](){const _0x25552f=ts(Array['from'](this['_suggestions']['values']()));for(const _0x299264 of _0x25552f){const _0xe858e5=_0x299264['getRanges']();if(!this['editor']['model']['canEditAt'](_0xe858e5))return;}rs(this['editor']['model'],this['_command'],_0x25552f);}}class E extends _0x2a2adc{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x559eb1,_0x1ec9f6,_0x409e68){super(_0x559eb1),this['_command']=_0x1ec9f6,this['_suggestions']=_0x409e68,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x461475=this['editor']['model']['document']['selection'],_0x33fe91=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4d8a69,_0x5812c6){const _0x59b947=Array['from'](_0x4d8a69['getRanges']()),_0x983717=new Set();for(const _0x4839ad of _0x5812c6)if(_0x4839ad['isInContent']){for(const _0x257b7d of _0x59b947)for(const _0x5edd62 of _0x4839ad['getRanges']())(_0x257b7d['isIntersecting'](_0x5edd62)||_0x4d8a69['isCollapsed']&&!_0x4839ad['isMultiRange']&&_0x4839ad['next']&&_0x5edd62['end']['isTouching'](_0x257b7d['start']))&&_0x983717['add'](_0x4839ad);}return _0x983717;}(_0x461475,_0x33fe91),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4ac71b=ts(Array['from'](this['_selectedSuggestions']));for(const _0x255a63 of _0x4ac71b){const _0x5237a3=_0x255a63['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5237a3))return;}rs(this['editor']['model'],this['_command'],_0x4ac71b);}}class o extends/* #__PURE__ -- @preserve */
24
+ _0x28df7b(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x50dd47,_0x421d42){super(),this['id']=_0x421d42['id'],this['type']=_0x421d42['type'],this['subType']=_0x421d42['subType']||null,this['author']=_0x421d42['author'],this['creator']=_0x421d42['creator']||_0x421d42['author'],this['isExternal']=Boolean(_0x421d42['attributes']&&_0x421d42['attributes']['@external']),this['data']=null,this['_model']=_0x50dd47,this['_onAccept']=_0x421d42['onAccept'],this['_onDiscard']=_0x421d42['onDiscard'],this['_onAttributesChange']=_0x421d42['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x421d42['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 _0x2ff199=this;for(;_0x2ff199['previous'];)_0x2ff199=_0x2ff199['previous'];return _0x2ff199;}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'](_0x42e362){this['_markerNames']['add'](_0x42e362);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x83ffbb=>this['_model']['markers']['get'](_0x83ffbb))['filter'](_0x17df13=>_0x17df13);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3d8335=>{for(const _0x453671 of this['getMarkers']())_0x3d8335['removeMarker'](_0x453671);}),this['_markerNames']['clear']();}['removeMarker'](_0x2f4de7){this['_model']['change'](_0x27f8b8=>{_0x27f8b8['removeMarker'](_0x2f4de7);}),this['_markerNames']['delete'](_0x2f4de7);}['addRange'](_0x179a57){const _0x5c8274='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x5c8274),this['_model']['change'](_0x324463=>{_0x324463['addMarker'](_0x5c8274,{'range':_0x179a57,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x18e536){for(const _0x4c0922 of this['getRanges']())if(_0x4c0922['isIntersecting'](_0x18e536))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3b50f1=>_0x3b50f1['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0xb415d8,_0x4077b0)=>[..._0xb415d8,..._0x4077b0['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5ce860=this['getRanges']();if(0x1!=_0x5ce860['length'])return null;const _0x53f6c0=_0x5ce860[0x0],_0x48cd4a=_0x53f6c0['start']['nodeAfter'],_0x7c80cd=_0x53f6c0['end']['nodeBefore'];return _0x48cd4a instanceof _0x1853b0?_0x48cd4a!=_0x7c80cd?null:_0x48cd4a: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 _0x535219=[];let _0x37e7cf=this['head'];for(;_0x37e7cf;)_0x535219['push'](_0x37e7cf),_0x37e7cf=_0x37e7cf['next'];return _0x535219;}['setAttribute'](_0x51a826,_0x5144a7){const _0x4c023d=_0x176173(this['attributes']);_0x5b5ab5(_0x4c023d,_0x51a826,_0x5144a7),_0x5a9b14(_0x4c023d,this['attributes'])||(this['attributes']=_0x4c023d,this['_onAttributesChange'](_0x4c023d));}['removeAttribute'](_0x4221fe){const _0x2be407=_0x176173(this['attributes']);_0x5e6fab(_0x2be407,_0x4221fe),_0x5a9b14(_0x2be407,this['attributes'])||(this['attributes']=_0x2be407,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 _0x5ae980()['substr'](0x1,0x5);}}function c(_0x278916,_0x2eafa0,_0x1c0d13){const _0x195757=_0x278916['t'],t=_0x278916['t'];switch(_0x2eafa0){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',_0x1c0d13);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1c0d13);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1c0d13);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1c0d13);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1c0d13);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',_0x1c0d13);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1c0d13);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',_0x1c0d13);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1c0d13);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1c0d13);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1c0d13);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1c0d13);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1c0d13);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x1c0d13);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1c0d13);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1c0d13);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1c0d13);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1c0d13);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1c0d13);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1c0d13);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1c0d13);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1c0d13);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1c0d13);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1c0d13);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x1c0d13);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'},_0x1c0d13);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x1c0d13);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x1c0d13);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1c0d13);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1c0d13);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1c0d13);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1c0d13);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1c0d13);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'},_0x1c0d13);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1c0d13);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1c0d13);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1c0d13);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1c0d13);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'},_0x1c0d13);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1c0d13);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'},_0x1c0d13);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x1c0d13);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1c0d13);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'},_0x1c0d13);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1c0d13);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'},_0x1c0d13);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1c0d13);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1c0d13);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'},_0x1c0d13);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x1c0d13);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 _0x195757({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1c0d13);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x195757({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1c0d13);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1c0d13);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'},_0x1c0d13);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'},_0x1c0d13);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'},_0x1c0d13);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2eafa0;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x38c4e6,_0x55c7d5){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x38c4e6,this['_locale']=_0x55c7d5;}['getDescriptions'](_0x4a1446){const _0xed77fc=[],_0x4260f8=new Set(),_0xc42c1e=new Set();for(let _0x5048dc=0x0;_0x5048dc<_0x4a1446['length'];_0x5048dc++){const _0x3986dd=_0x4a1446[_0x5048dc];if(!_0x3986dd['isInContent'])continue;const _0x34a06f=this['_handleCustomCallbackDescription'](_0x3986dd);if(_0x34a06f){if(null!=_0x3986dd['subType']){if(_0x4260f8['has'](_0x3986dd['subType']))continue;_0x4260f8['add'](_0x3986dd['subType']);}_0xed77fc['push'](_0x34a06f);}else{if('attribute'!=_0x3986dd['type'])'insertion'!=_0x3986dd['type']&&'deletion'!=_0x3986dd['type']||this['_handleInsertRemoveSuggestionDescription'](_0xed77fc,_0x3986dd,_0x4a1446[_0x5048dc+0x1]);else{const _0x237b6e=_0x3986dd['data']['key'];if(_0xc42c1e['has'](_0x237b6e))continue;_0xc42c1e['add'](_0x3986dd['data']['key']),_0x237b6e==u?this['_handleRenameSuggestionDescription'](_0xed77fc,_0x3986dd):this['_handleAttributeSuggestionDescription'](_0xed77fc,_0x3986dd);}}}return this['_resolveDescriptionItems'](_0xed77fc);}['registerDescriptionCallback'](_0x24f96a){this['_customCallbacks']['push'](_0x24f96a);}['registerElementLabel'](_0xa8070d,_0x3730b1,_0x5868d8=_0x3ea4f5['normal']){'function'==typeof _0xa8070d?_0x4765d1(this['_itemLabelsCallbacks'],{'matchingCallback':_0xa8070d,'label':_0x3730b1,'priority':_0x5868d8}):this['_itemLabels']['set'](_0xa8070d,_0x3730b1);}['registerAttributeLabel'](_0xa78c96,_0x34ca11){this['_attributeLabels']['set'](_0xa78c96,_0x34ca11);}['getItemLabel'](_0x7d3a5f,_0x1e4402=0x1){let _0x102a7b;for(const _0x241f12 of this['_itemLabelsCallbacks'])if(_0x241f12['matchingCallback'](_0x7d3a5f)){_0x102a7b=_0x241f12['label'];break;}return _0x102a7b||(_0x102a7b=this['_itemLabels']['get'](_0x7d3a5f['name'])),_0x102a7b?_0x102a7b(_0x1e4402):0x1!==_0x1e4402?_0x1e4402+'\x20'+_0x7d3a5f['name']+'s':''+_0x7d3a5f['name'];}['_addDescriptionItems'](_0x37d83e,_0x1af988){const _0x18b488=_0x1af988['getFirstRange']()['getWalker'](),_0x4d18f5='insertion'==_0x1af988['type']?'add':'remove';for(const _0x256123 of _0x18b488){const _0x22da1f=_0x256123['item'],_0x47bf33=_0x37d83e[_0x37d83e['length']-0x1];if(_0x22da1f['is']('$textProxy'))_0x47bf33&&_0x47bf33['type']['indexOf']('Container')>-0x1&&_0x37d83e['pop'](),_0x47bf33&&'text'==_0x47bf33['type']?_0x47bf33[_0x4d18f5]+=_0x22da1f['data']:_0x37d83e['push']({'type':'text','add':'add'==_0x4d18f5?_0x22da1f['data']:'','remove':'remove'==_0x4d18f5?_0x22da1f['data']:''});else{if(this['_schema']['isObject'](_0x22da1f)){const _0x1e7699=_0x22da1f;if(_0x47bf33&&_0x47bf33['type']['indexOf']('Container')>-0x1&&_0x37d83e['pop'](),'elementEnd'==_0x256123['type'])continue;_0x47bf33&&_0x47bf33['type']==_0x4d18f5+'Object'&&_0x47bf33['element']['name']==_0x1e7699['name']?_0x47bf33['quantity']++:_0x37d83e['push']({'type':_0x4d18f5+'Object','element':_0x1e7699,'quantity':0x1}),_0x18b488['skip'](_0x211599=>!('elementEnd'==_0x211599['type']&&_0x211599['item']==_0x22da1f));}else{if(this['_schema']['checkChild'](_0x22da1f,'$text')||_0x22da1f['is']('element','softBreak')){const _0x24ca04=_0x22da1f;if('add'==_0x4d18f5&&'elementStart'==_0x256123['type']||'remove'==_0x4d18f5&&'elementEnd'==_0x256123['type'])continue;if(_0x47bf33&&-0x1==_0x47bf33['type']['indexOf']('Container')){'text'==_0x47bf33['type']&&(_0x47bf33[_0x4d18f5]+='\x0a');continue;}let _0x1e8f4b;if(_0x1e8f4b='add'==_0x4d18f5?_0x24ca04['nextSibling']&&!this['_schema']['isObject'](_0x24ca04['nextSibling'])?_0x24ca04['nextSibling']:null:_0x24ca04['previousSibling']&&!this['_schema']['isObject'](_0x24ca04['previousSibling'])?_0x24ca04['previousSibling']:null,_0x24ca04['isEmpty']||_0x1e8f4b&&_0x1e8f4b['isEmpty']){const _0x5a6973=_0x1e8f4b&&_0x1e8f4b['isEmpty']?_0x1e8f4b:_0x24ca04;_0x47bf33&&_0x47bf33['type']==_0x4d18f5+'EmptyContainer'&&_0x47bf33['element']['name']==_0x5a6973['name']?_0x47bf33['quantity']++:_0x37d83e['push']({'type':_0x4d18f5+'EmptyContainer','element':_0x5a6973,'quantity':0x1});}else _0x37d83e['push']({'type':_0x4d18f5+'Container','element':_0x24ca04});}}}}}['_resolveDescriptionItems'](_0x3658f1){const _0x584652=this['_locale'],_0x3ca2a6=[],_0x43ad23=[],_0x559d6a=[];for(const _0x4f6307 of _0x3658f1)switch(_0x4f6307['type']){case'text':if(_0x4f6307['add']=_0x4f6307['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4f6307['remove']=_0x4f6307['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4f6307['add']&&''!=_0x4f6307['remove']){_0x3ca2a6['push']({'type':'replace','content':c(_0x584652,'REPLACE_TEXT',['\x22'+_0x4f6307['remove']+'\x22','\x22'+_0x4f6307['add']+'\x22'])});continue;}if(null!=_0x4f6307['add']['match'](/^ +$/)){_0x3ca2a6['push']({'type':'insertion','content':c(_0x584652,'*Insert:*\x20%0',c(_0x584652,'ELEMENT_SPACE',_0x4f6307['add']['length']))});continue;}if(null!=_0x4f6307['remove']['match'](/^ +$/)){_0x3ca2a6['push']({'type':'deletion','content':c(_0x584652,'*Remove:*\x20%0',c(_0x584652,'ELEMENT_SPACE',_0x4f6307['remove']['length']))});continue;}if(''!=_0x4f6307['add']){_0x3ca2a6['push']({'type':'insertion','content':c(_0x584652,'*Insert:*\x20%0','\x22'+_0x4f6307['add']+'\x22')});continue;}_0x3ca2a6['push']({'type':'deletion','content':c(_0x584652,'*Remove:*\x20%0','\x22'+_0x4f6307['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3ca2a6['push']({'type':'insertion','content':c(_0x584652,'*Insert:*\x20%0',this['getItemLabel'](_0x4f6307['element'],_0x4f6307['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3ca2a6['push']({'type':'deletion','content':c(_0x584652,'*Remove:*\x20%0',this['getItemLabel'](_0x4f6307['element'],_0x4f6307['quantity']))});continue;case'addContainer':_0x3ca2a6['push']({'type':'insertion','content':c(_0x584652,'*Split:*\x20%0',this['getItemLabel'](_0x4f6307['element'],_0x4f6307['quantity']))});continue;case'removeContainer':_0x3ca2a6['push']({'type':'deletion','content':c(_0x584652,'*Merge:*\x20%0',this['getItemLabel'](_0x4f6307['element'],_0x4f6307['quantity']))});continue;case'addFormat':_0x43ad23['push'](_0x4f6307['key']);continue;case'removeFormat':_0x559d6a['push'](_0x4f6307['key']);continue;default:_0x3ca2a6['push'](_0x4f6307);}if(_0x43ad23['length']){const _0x424cc1=_0x43ad23['map'](_0x34c62d=>this['_attributeLabels']['has'](_0x34c62d)?this['_attributeLabels']['get'](_0x34c62d):_0x34c62d)['join'](',\x20');_0x3ca2a6['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x424cc1)});}if(_0x559d6a['length']){const _0x44abeb=_0x559d6a['map'](_0x4986b6=>this['_attributeLabels']['has'](_0x4986b6)?this['_attributeLabels']['get'](_0x4986b6):_0x4986b6)['join'](',\x20');_0x3ca2a6['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x44abeb)});}return _0x3ca2a6;}['_handleCustomCallbackDescription'](_0x24caae){for(const _0x5c9a14 of this['_customCallbacks']){const _0x75407d=_0x5c9a14(_0x24caae);if(_0x75407d&&'type'in _0x75407d)return _0x75407d;}}['_handleAttributeSuggestionDescription'](_0x98b15b,_0x3c54f2){const _0x420624=_0x3c54f2['data'],_0x4a25f1=void 0x0===_0x420624['newValue']?'removeFormat':'addFormat';_0x98b15b['push']({'type':_0x4a25f1,'key':_0x420624['key']});}['_handleRenameSuggestionDescription'](_0x1fc8ff,_0x3a8545){_0x1fc8ff['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3a8545['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2107f,_0x582519,_0x498c8e){if(this['_addDescriptionItems'](_0x2107f,_0x582519),_0x498c8e&&_0x498c8e['getFirstRange']()&&!_0x582519['getFirstRange']()['end']['isEqual'](_0x498c8e['getFirstRange']()['start'])){const _0x12b160=_0x2107f[_0x2107f['length']-0x1],_0x418aa8='insertion'==_0x582519['type']?'add':'remove';_0x12b160&&'text'==_0x12b160['type']&&(_0x12b160[_0x418aa8]+='\x0a');}}}class U extends _0x4a3f61{['afterInit'](){const _0x3366cf=this['editor'],_0x5d5553=_0x3366cf['plugins']['get']('TrackChangesEditing');_0x3366cf['commands']['get']('showAIAssistant')&&_0x5d5553['enableCommand']('showAIAssistant');}}class V extends _0x4a3f61{['afterInit'](){const _0x2c0da6=this['editor'],_0x32f0b7=_0x2c0da6['locale'];if(!_0x2c0da6['plugins']['has']('AlignmentEditing'))return;const _0x5623f3=_0x2c0da6['plugins']['get']('TrackChangesEditing');_0x5623f3['enableDefaultAttributesIntegration']('alignment'),_0x5623f3['registerBlockAttribute']('alignment'),_0x5623f3['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x32f0b7,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x48d593=this['editor'],_0x3af11a=_0x48d593['locale'];_0x48d593['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f8dbc=>{if('formatBlock'!=_0x4f8dbc['type'])return;const {data:_0x1d3599}=_0x4f8dbc;if(_0x1d3599&&'alignment'==_0x1d3599['commandName']){const _0x5ee982=_0x1d3599['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x3af11a,'*Format:*\x20%0',function(_0x430857){switch(_0x430857){case'left':return c(_0x3af11a,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x3af11a,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x3af11a,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x3af11a,'FORMAT_JUSTIFY_TEXT');}}(_0x5ee982))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x4a3f61{['afterInit'](){const _0x1cd510=this['editor'],_0x55da25=_0x1cd510['plugins']['get']('TrackChangesEditing'),_0x21155d=_0x1cd510['locale'];for(const _0x58bb54 of Zt){if(!_0x1cd510['plugins']['has'](_0x58bb54))continue;const _0x3e2ad4=_0x58bb54['slice'](0x0,-0x7)['toLowerCase'](),_0xf5b0d0='FORMAT_'+_0x3e2ad4['toUpperCase']();_0x55da25['enableDefaultAttributesIntegration'](_0x3e2ad4),_0x55da25['registerInlineAttribute'](_0x3e2ad4),_0x55da25['descriptionFactory']['registerAttributeLabel'](_0x3e2ad4,c(_0x21155d,_0xf5b0d0));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x76ac5f=this['editor'],_0x1379b7=_0x76ac5f['locale'],_0x4f956d=_0x76ac5f['plugins']['get']('TrackChangesEditing');function _0x4552f4(_0x51b503,_0x396e7b){_0x4f956d['descriptionFactory']['registerDescriptionCallback'](_0xf69b3b=>{if('formatInline'!=_0xf69b3b['type'])return;const {data:_0x5c365c}=_0xf69b3b;return _0x5c365c&&_0x5c365c['commandName']===_0x51b503?_0x5c365c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1379b7,'*Format:*\x20%0',_0x396e7b)}:{'type':'format','content':c(_0x1379b7,'*Remove\x20format:*\x20%0',_0x396e7b)}:void 0x0;});}_0x4552f4('bold',c(_0x1379b7,'FORMAT_BOLD')),_0x4552f4('italic',c(_0x1379b7,'FORMAT_ITALIC')),_0x4552f4('underline',c(_0x1379b7,'FORMAT_UNDERLINE')),_0x4552f4('code',c(_0x1379b7,'FORMAT_CODE')),_0x4552f4('strikethrough',c(_0x1379b7,'FORMAT_STRIKETHROUGH')),_0x4552f4('subscript',c(_0x1379b7,'FORMAT_SUBSCRIPT')),_0x4552f4('superscript',c(_0x1379b7,'FORMAT_SUPERSCRIPT'));}}class G extends _0x4a3f61{['afterInit'](){const _0xa829a4=this['editor'],_0x3e6aa9=_0xa829a4['locale'];if(!_0xa829a4['plugins']['has']('BlockQuoteEditing'))return;const _0x2de4a6=_0xa829a4['plugins']['get']('TrackChangesEditing'),_0x4a14b1=this['editor']['commands']['get']('blockQuote');_0x2de4a6['enableCommand']('blockQuote',(_0x3b5eda,_0x21a2f8={})=>{const _0xd9561f=this['editor']['model']['document']['selection'],_0x3b14ed=_0x21a2f8&&void 0x0!==_0x21a2f8['forceValue']?_0x21a2f8['forceValue']:!_0x4a14b1['value'];let _0x10d284=[];if(_0x3b14ed){const _0x28ee1d=Array['from'](_0xd9561f['getSelectedBlocks']())['filter'](_0xcf2811=>oo(_0xcf2811)||function(_0x28b0f2,_0x2f9899){const _0x4d13c0=_0x2f9899['checkChild'](_0x28b0f2['parent'],'blockQuote'),_0x397f7d=_0x2f9899['checkChild'](['$root','blockQuote'],_0x28b0f2);return _0x4d13c0&&_0x397f7d;}(_0xcf2811,this['editor']['model']['schema']));_0x10d284=to(_0x28ee1d,_0xa829a4['model']);}else{const _0x40b538=Array['from'](_0xd9561f['getSelectedBlocks']())['filter'](_0x1d2514=>oo(_0x1d2514));_0x10d284=to(_0x40b538,_0xa829a4['model']);}_0xa829a4['model']['change'](()=>{for(const _0x4388bd of _0x10d284)_0x2de4a6['markBlockFormat'](_0x4388bd,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3b14ed}]});});}),_0x2de4a6['descriptionFactory']['registerDescriptionCallback'](_0x2565be=>{const {data:_0x2f4e03}=_0x2565be;if(_0x2f4e03&&'blockQuote'==_0x2f4e03['commandName']){const _0x345e2d=c(_0x3e6aa9,'ELEMENT_BLOCK_QUOTE');return _0x2f4e03['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3e6aa9,'*Set\x20format:*\x20%0',_0x345e2d)}:{'type':'format','content':c(_0x3e6aa9,'*Remove\x20format:*\x20%0',_0x345e2d)};}});}}function oo(_0x2d026c){return'blockQuote'==_0x2d026c['parent']['name'];}class L extends _0x4a3f61{['afterInit'](){const _0x53f6a0=this['editor'],_0x39c9c5=_0x53f6a0['locale'],_0x43e965=_0x53f6a0['plugins']['get']('TrackChangesEditing');_0x53f6a0['plugins']['has']('BookmarkEditing')&&(_0x43e965['enableCommand']('insertBookmark'),_0x43e965['enableDefaultAttributesIntegration']('updateBookmark'),_0x43e965['registerBlockAttribute']('bookmarkId'),_0x43e965['descriptionFactory']['registerDescriptionCallback'](_0x1109a9=>{if('insertion'!=_0x1109a9['type']&&'deletion'!=_0x1109a9['type']&&'attribute'!=_0x1109a9['type'])return;const _0x3cbc00=_0x1109a9['getContainedElement']();if(null==_0x3cbc00)return;if(!_0x3cbc00['is']('element','bookmark'))return;const _0x382810=_0x3cbc00['getAttribute']('bookmarkId');if('insertion'==_0x1109a9['type'])return{'type':'insertion','content':c(_0x39c9c5,'*Insert:*\x20%0','\x22'+_0x382810+'\x22\x20'+c(_0x39c9c5,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1109a9['type'])return{'type':'deletion','content':c(_0x39c9c5,'*Remove:*\x20%0','\x22'+_0x382810+'\x22\x20'+c(_0x39c9c5,'ELEMENT_BOOKMARK'))};const {data:_0x326ee7}=_0x1109a9;if(!_0x326ee7||'bookmarkId'!=_0x326ee7['key'])return;return{'type':'format','content':c(_0x39c9c5,'*Set\x20bookmark:*\x20%0','\x22'+_0x326ee7['newValue']+'\x22')};}));}}class J extends _0x4a3f61{['afterInit'](){const _0x32ddc9=this['editor'];_0x32ddc9['plugins']['has']('CaseChange')&&(_0x32ddc9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x32ddc9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x32ddc9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x4a3f61{['afterInit'](){const _0x4c26af=this['editor'];_0x4c26af['commands']['get']('ckbox')&&_0x4c26af['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x4a3f61{['afterInit'](){const _0x15cf71=this['editor'];if(!_0x15cf71['plugins']['has']('CodeBlock'))return;const _0x141321=_0x15cf71['plugins']['get']('TrackChangesEditing'),_0x521045=_0x15cf71['locale'],_0x415eb2=_0x15cf71['config']['get']('codeBlock')['languages'],_0xfbdfdd=_0x15cf71['commands']['get']('codeBlock');_0x141321['enableCommand']('indentCodeBlock'),_0x141321['enableCommand']('outdentCodeBlock'),_0x141321['enableCommand']('codeBlock',(_0x3bb35c,_0x52165f={})=>{const _0x54c359=_0x15cf71['model'],_0x15e76a=_0x15cf71['model']['document']['selection'],_0x3e0bb9=_0x52165f&&void 0x0!==_0x52165f['forceValue']?_0x52165f['forceValue']:!_0xfbdfdd['value'];let _0x1ea64c;_0x52165f['language']||(_0x52165f['language']=_0x415eb2[0x0]['language']),_0x1ea64c=_0x3e0bb9?Array['from'](_0x15e76a['getSelectedBlocks']())['filter'](_0x4d0078=>eo(_0x4d0078)||function(_0x202ae9,_0x58bc09){if(_0x202ae9['is']('rootElement')||_0x58bc09['isLimit'](_0x202ae9))return!0x1;return _0x58bc09['checkChild'](_0x202ae9['parent'],'codeBlock');}(_0x4d0078,_0x54c359['schema'])):Array['from'](_0x15e76a['getSelectedBlocks']())['filter'](_0x597dbc=>eo(_0x597dbc));const _0x284e83=to(_0x1ea64c,_0x54c359);_0x54c359['change'](()=>{for(const _0x2fc117 of _0x284e83)_0x141321['markBlockFormat'](_0x2fc117,{'commandName':'codeBlock','commandParams':[{..._0x52165f,'forceValue':_0x3e0bb9}],'formatGroupId':'blockName'});});}),(_0x141321['descriptionFactory']['registerElementLabel']('codeBlock',_0x46e247=>c(_0x521045,'ELEMENT_CODE_BLOCK',_0x46e247)),_0x141321['descriptionFactory']['registerDescriptionCallback'](_0x356546=>{if('formatBlock'!=_0x356546['type'])return;const _0x553ccd=_0x521045['t'],{data:_0xfe16b6}=_0x356546;if(!_0xfe16b6||'codeBlock'!=_0xfe16b6['commandName'])return;const _0x22aa29=_0xfe16b6['commandParams'][0x0]['language'],_0x251787=_0x553ccd(_0x415eb2['find'](_0x356a27=>_0x356a27['language']===_0x22aa29)['label'])['toLowerCase']();return _0xfe16b6['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x521045,'*Set\x20format:*\x20%0',c(_0x521045,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x251787+')')}:{'type':'format','content':c(_0x521045,'*Remove\x20format:*\x20%0',c(_0x521045,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x296b67){return'codeBlock'==_0x296b67['name'];}class q extends _0x4a3f61{['afterInit'](){const _0x448a7c=this['editor'];if(!_0x448a7c['plugins']['has']('CommentsEditing'))return;_0x448a7c['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4b4482,_0x52c32e,_0x1f2d42){const _0x1c9f9a=[];for(const _0x14c5e8 of _0x52c32e['getItems']())_0x14c5e8['hasAttribute'](_0x4b4482)&&_0x1c9f9a['push'](_0x1f2d42['createRangeOn'](_0x14c5e8));return _0x1c9f9a;}function Fe(_0x2c2a4f,_0x444172,{showActiveMarker:_0x528ca5=!0x0}={}){const _0x10820a=_0x2c2a4f['plugins']['get']('TrackChangesEditing');return(_0x137ac4,_0x37c014,_0x59b64a)=>{if(!_0x59b64a['consumable']['test'](_0x37c014['markerRange'],_0x137ac4['name']))return;const _0xdf2e0d=_0x37c014['markerRange']['getWalker'](),_0x2601c9=_0x37c014['markerRange']['start'],_0x4dd344=_0x2c2a4f['model']['schema'];let _0x17bcb1=null,_0x10031b=null,_0x3345c2=!0x1,_0x350cd9=!0x1;for(const _0x493f70 of _0xdf2e0d){const _0x319201=_0x493f70['item'];_0x3345c2=_0x3345c2||_0x4dd344['isContent'](_0x319201);const _0x30d7e1=_0x59b64a['mapper']['toViewElement'](_0x319201);if(_0x30d7e1&&_0x30d7e1['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x493f70['type']&&(_0x4dd344['isBlock'](_0x319201)&&!_0x4dd344['isLimit'](_0x319201)&&(_0x319201['nextSibling']||_0x2601c9['isAtEnd']?_0x17bcb1&&_0x17bcb1['parent']==_0x319201||(_0x17bcb1=_0x319201,_0x4c086b(_0x493f70['previousPosition']),_0x350cd9=!0x0):_0x10031b=_0x10031b||_0x493f70['previousPosition']));}function _0x4c086b(_0x43bb2c){const {authorId:_0x2a7d52}=_0x10820a['_splitMarkerName'](_0x37c014['markerName']),_0x5bbcf6=_0x59b64a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x444172,'data-author-id':_0x2a7d52}),_0x471dc9=_0x59b64a['mapper']['toViewPosition'](_0x43bb2c);_0x528ca5&&_0x10820a['activeMarkers']['includes'](_0x37c014['markerName'])&&_0x59b64a['writer']['addClass']('ck-suggestion-marker--active',_0x5bbcf6),_0x59b64a['writer']['insert'](_0x471dc9,_0x5bbcf6),_0x59b64a['mapper']['bindElementToMarker'](_0x5bbcf6,_0x37c014['markerName']);}_0x3345c2||_0x350cd9||!_0x10031b||_0x4c086b(_0x10031b);};}class z extends _0x4a3f61{static get['requires'](){return[_0x595526];}['init'](){const _0x56b6d3=this['editor'],_0x20f5c9=_0x56b6d3['plugins']['get']('TrackChangesEditing');_0x20f5c9['enableCommand']('delete');const _0x235046=_0x56b6d3['commands']['get']('deleteForward');_0x20f5c9['enableCommand']('deleteForward',(_0x2a49ce,_0x9fbe9e={})=>{const _0x47770b=_0x56b6d3['model']['createSelection'](_0x56b6d3['model']['document']['selection']);_0x47770b['isCollapsed']&&_0x56b6d3['model']['modifySelection'](_0x47770b,{'direction':'forward','unit':_0x9fbe9e['unit']});const _0x50b51f=_0x47770b['getFirstRange'](),_0x277d49=_0x36f06e['fromRange'](_0x50b51f);let _0x5d695e;_0x2a49ce(_0x9fbe9e),_0x5d695e='$graveyard'==_0x277d49['root']['rootName']?_0x56b6d3['model']['createRange'](_0x50b51f['start']):_0x56b6d3['model']['createRange'](_0x277d49['start'],_0x277d49['end']),_0x277d49['detach'](),_0x56b6d3['model']['enqueueChange'](_0x235046['buffer']['batch'],_0x1bfc40=>{_0x235046['buffer']['lock'](),_0x1bfc40['setSelection'](_0x1bfc40['createRange'](_0x5d695e['end'])),_0x235046['buffer']['unlock']();});}),_0x56b6d3['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x56b6d3,'merge'),{'priority':'high'}),_0x56b6d3['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0xd49690,_0x1ed421,_0x5a35d9)=>{_0x5a35d9['options']['showSuggestionHighlights']&&Fe(_0x56b6d3,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0xd49690,_0x1ed421,_0x5a35d9);},{'priority':'high'}),_0x56b6d3['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1adfc5,_0x46cfef,_0x840ee9)=>{const _0x1e555=_0x840ee9['mapper']['markerNameToElements'](_0x46cfef['markerName']);if(_0x1e555){for(const _0x5ad2ec of _0x1e555)_0x5ad2ec['is']('uiElement')&&(_0x840ee9['mapper']['unbindElementFromMarkerName'](_0x5ad2ec,_0x46cfef['markerName']),_0x840ee9['writer']['remove'](_0x5ad2ec));}},{'priority':'high'});}}class W extends _0x4a3f61{['afterInit'](){const _0x44e07d=this['editor'];if(!_0x44e07d['plugins']['has']('ListEditing'))return;const _0x3545ab=_0x44e07d['locale'],_0x18994e=_0x44e07d['plugins']['get']('TrackChangesEditing'),_0xb662bc=_0x44e07d['plugins']['has']('TodoListEditing'),_0x2b6587=!!_0x44e07d['config']['get']('list.multiBlock');function _0x5c473a(_0x3d81c3){return{'type':'format','content':''+c(_0x3545ab,'*Set\x20format:*\x20%0',_0x3d81c3)};}function _0x31e0fd(_0x3eb633){return{'type':'format','content':''+c(_0x3545ab,'*Remove\x20format:*\x20%0',_0x3eb633)};}_0x18994e['enableDefaultAttributesIntegration']('numberedList'),_0x18994e['enableDefaultAttributesIntegration']('bulletedList'),_0x18994e['enableDefaultAttributesIntegration']('customNumberedList'),_0x18994e['enableDefaultAttributesIntegration']('customBulletedList'),_0x18994e['enableDefaultAttributesIntegration']('indentList'),_0x18994e['enableDefaultAttributesIntegration']('outdentList'),_0x18994e['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x18994e['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x18994e['registerBlockAttribute']('listItemId'),_0x18994e['registerBlockAttribute']('listType'),_0x18994e['registerBlockAttribute']('listIndent'),_0x2b6587&&(_0x18994e['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x18994e['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xb662bc&&(_0x18994e['enableDefaultAttributesIntegration']('todoList'),_0x18994e['enableDefaultAttributesIntegration']('checkTodoList'),_0x18994e['registerBlockAttribute']('todoListChecked'),_0x18994e['descriptionFactory']['registerDescriptionCallback'](_0x1ea0bb=>{const {data:_0x1dd037}=_0x1ea0bb;if(_0x1dd037&&'todoListChecked'==_0x1dd037['key'])return{'type':'format','content':_0x1dd037['newValue']?c(_0x3545ab,'*Check\x20item*'):c(_0x3545ab,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2aa1ce=>{if(_0x2aa1ce['batch']['isUndo'])return!0x1;let _0x4455ba=!0x1;const _0x4889ac=_0x18994e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1d149a=>'todoListChecked'===_0x18994e['_getAttributeKey'](_0x1d149a));for(const _0x53b422 of _0x4889ac){'todo'!=_0x53b422['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x18994e['_findSuggestions'](_0x53b422['getFirstRange'](),'attribute')['find'](_0x6509b7=>'listType'===_0x18994e['_getAttributeKey'](_0x6509b7['suggestion']))||(_0x2aa1ce['removeMarker'](_0x53b422['getFirstMarker']()),_0x4455ba=!0x0));}return _0x4455ba;})),_0x18994e['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x3545ab,'FORMAT_INDENT'));const _0x5d238f={'type':'format','content':''};_0x18994e['descriptionFactory']['registerDescriptionCallback'](_0x59a606=>{const {data:_0x4b29b5}=_0x59a606;if(!_0x4b29b5||'listType'!=_0x4b29b5['key'])return;let _0x195cdd=_0x59a606['head'];for(;_0x195cdd;){if(_0x195cdd['data']&&(('listStyle'==_0x195cdd['data']['key']||'listMarkerStyle'==_0x195cdd['data']['key'])&&(_0x195cdd['data']['newValue']&&'default'!=_0x195cdd['data']['newValue']||'default'!=_0x195cdd['data']['oldValue']&&!_0x4b29b5['newValue'])||!_0x2b6587&&_0x195cdd['data']['key']==u))return _0x5d238f;_0x195cdd=_0x195cdd['next'];}if(null==_0x4b29b5['newValue'])switch(_0x4b29b5['oldValue']){case'bulleted':return _0x31e0fd(c(_0x3545ab,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x31e0fd(c(_0x3545ab,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x31e0fd(c(_0x3545ab,'ELEMENT_TODO_LIST'));}switch(_0x4b29b5['newValue']){case'bulleted':return _0x5c473a(c(_0x3545ab,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5c473a(c(_0x3545ab,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5c473a(c(_0x3545ab,'ELEMENT_TODO_LIST'));}}),_0x18994e['descriptionFactory']['registerDescriptionCallback'](_0x23bf01=>{const {data:_0x1f20ca}=_0x23bf01;if(_0x1f20ca&&'listIndent'==_0x1f20ca['key'])return null==_0x1f20ca['newValue']||null==_0x1f20ca['oldValue']&&0x0==_0x1f20ca['newValue']?_0x5d238f:void 0x0;}),_0x18994e['descriptionFactory']['registerDescriptionCallback'](_0x374c4a=>{if('attribute'!=_0x374c4a['type'])return;const {data:_0x203632}=_0x374c4a;if(!_0x203632||'listItemId'!=_0x203632['key'])return;const _0x5752b2=Te(_0x374c4a);return'newValue'==_0x5752b2?{'type':'format','content':c(_0x3545ab,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5752b2?{'type':'format','content':c(_0x3545ab,'*Split:*\x20list\x20item')}:_0x5d238f;}),_0x44e07d['model']['document']['registerPostFixer'](_0x4373ee=>this['listItemIdFixer'](_0x4373ee)),_0x44e07d['model']['document']['registerPostFixer'](_0xf3dab6=>this['noTrackChangesFixer'](_0xf3dab6)),_0x44e07d['model']['document']['on']('change:data',(_0x21e5d7,_0x1f1f80)=>{if(_0x1f1f80['isUndo']||!_0x1f1f80['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x612c3b){if(_0x612c3b['batch']['isUndo']||!_0x612c3b['batch']['isLocal'])return!0x1;let _0x2ad494=!0x1;const _0x539c59=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5d8895=>_0x5d8895['data']&&'listItemId'==_0x5d8895['data']['key'])['filter'](_0x2bb171=>_0x2bb171['data']['newValue']&&_0x2bb171['data']['oldValue']);for(const _0x593d34 of _0x539c59)Te(_0x593d34)||(_0x612c3b['removeMarker'](_0x593d34['getFirstMarker']()),_0x2ad494=!0x0);return _0x2ad494;}['noTrackChangesFixer'](_0x5d43c9){if(_0x5d43c9['batch']['isUndo']||!_0x5d43c9['batch']['isLocal'])return!0x1;const _0x5cb714=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5cb714['trackChangesCommand']['value'])return!0x1;let _0x5ca91c=!0x1;const _0x41e353=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xc592b8=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x31d297=>'attribute'==_0x31d297['type'])['filter'](_0x3a1915=>_0x41e353['includes'](_0x3a1915['attributeKey']));if(0x0==_0xc592b8['length'])return _0x5ca91c;for(const _0x5319fa of _0xc592b8){const _0x27b240=_0x5cb714['_findSuggestions'](_0x5319fa['range'],'attribute')['filter'](_0x2f697d=>!_0x2f697d['meta']['isNextTo'])['map'](_0x14bf48=>_0x14bf48['suggestion'])['filter'](_0x1c7167=>{const _0x39336d=_0x5cb714['_getAttributeKey'](_0x1c7167);return _0x41e353['includes'](_0x39336d);});if(_0x27b240['length']){for(const _0x1b4ff1 of _0x27b240)_0x5d43c9['removeMarker'](_0x1b4ff1['getFirstMarker']());_0x5ca91c=!0x0;}}return _0x5ca91c;}['assureChains'](){const _0x1a4681=this['editor']['plugins']['get']('TrackChangesEditing'),_0x122f61=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x28b428;const _0x2420cd=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x30bd4a=>{if(_0x30bd4a['data']['oldRange']||!_0x30bd4a['data']['newRange'])return null;if(!_0x30bd4a['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x13bbab}=_0x1a4681['_splitMarkerName'](_0x30bd4a['name']);if(!_0x1a4681['hasSuggestion'](_0x13bbab))return null;const _0x42d401=_0x1a4681['getSuggestion'](_0x13bbab);return _0x122f61['includes'](_0x42d401['data']['key']);})['map'](_0x40288c=>{const {id:_0x31cb85}=_0x1a4681['_splitMarkerName'](_0x40288c['name']),_0x113921=_0x1a4681['getSuggestion'](_0x31cb85);return _0x28b428=_0x113921['attributes']['groupId'],_0x113921['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2420cd['size'])return;const _0x223cc5=_0x1a4681['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x264d0e=>'attribute'==_0x264d0e['type']&&_0x264d0e['data']&&_0x122f61['includes'](_0x264d0e['data']['key'])&&_0x264d0e['attributes']['groupId']!=_0x28b428)['map'](_0x44c66=>({'listItem':_0x44c66['getFirstRange']()['start']['nodeAfter'],'groupId':_0x44c66['attributes']['groupId']})),_0x3415e0=new Set();for(const {groupId:_0x2c2f92,listItem:_0x2623e6}of _0x223cc5)_0x2420cd['has'](_0x2623e6)&&_0x3415e0['add'](_0x2c2f92);for(const _0xc28131 of _0x1a4681['getSuggestions']())_0x3415e0['has'](_0xc28131['attributes']['groupId'])&&_0xc28131['setAttribute']('groupId',_0x28b428);}['_supportLegacySuggestions'](){const _0x44f920=this['editor'],_0xc87981=_0x44f920['locale'],_0x424333=_0x44f920['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x424333['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x6464ae,_0x327fe5){const _0x366557=[];for(let _0x3e2bbc of _0x6464ae)_0x3e2bbc['start']['nodeAfter']===_0x3e2bbc['end']['parent']&&(_0x3e2bbc=_0x44f920['model']['createRange'](_0x44f920['model']['createPositionAt'](_0x3e2bbc['start']['nodeAfter'],0x0))),_0x366557['push'](_0x3e2bbc);_0x44f920['model']['change'](_0x39c28c=>{const _0x1bec0b=_0x44f920['model']['document']['selection'],_0x261f09=Array['from'](_0x1bec0b['getRanges']())['map'](_0x2ecb6f=>_0x36f06e['fromRange'](_0x2ecb6f));_0x39c28c['setSelection'](_0x366557),_0x44f920['commands']['get'](_0x327fe5['commandName'])['refresh'](),_0x327fe5['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x44f920['execute'](_0x327fe5['commandName'],..._0x327fe5['commandParams']),_0x39c28c['setSelection'](_0x261f09);for(const _0x115f90 of _0x261f09)_0x115f90['detach']();});}),_0x424333['descriptionFactory']['registerElementLabel'](function(_0x2a3f39){const _0x28ec55=!_0x44f920['model']['schema']['isObject'](_0x2a3f39),_0x1556b0=_0x2a3f39['previousSibling'],_0x1db590=_0x2a3f39['nextSibling'],_0x5d321b=_0x2a3f39['getAttribute']('listItemId'),_0x2947f3=!_0x1556b0||_0x1556b0['getAttribute']('listItemId')!==_0x5d321b,_0x5591e7=!_0x1db590||_0x1db590['getAttribute']('listItemId')!==_0x5d321b;return _0x28ec55&&Boolean(_0x5d321b)&&_0x2947f3&&_0x5591e7;},_0x3a6b8c=>c(_0xc87981,'ELEMENT_LIST_ITEM',_0x3a6b8c));}['_registerLegacyDescription'](){const _0xfa3e94=this['editor'],_0x577f50=_0xfa3e94['locale'];function _0x45246e(_0x2fd4d8){const _0x37c741=_0xfa3e94['commands']['get']('bulletedList')['value'],_0x2d2cfc=_0xfa3e94['commands']['get']('numberedList')['value'];return'numberedList'===_0x2fd4d8?_0x37c741:_0x2d2cfc;}_0xfa3e94['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x516bfc){if('formatBlock'!=_0x516bfc['type'])return;const {data:_0x1cd4ec}=_0x516bfc;if(!_0x1cd4ec)return;let _0x10f62c,_0x3d4a5,_0x23548b,_0x453376;switch(_0x1cd4ec['commandName']){case'bulletedList':_0x23548b=_0x1cd4ec['commandParams'][0x0]['forceValue'],_0x453376=_0x45246e(_0x1cd4ec['commandName']),_0x10f62c=_0x23548b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x453376&&_0xfa3e94['config']['get']('list.multiBlock')||(_0x10f62c='*Change\x20to:*\x20%0'),_0x3d4a5={'type':'format','content':c(_0x577f50,_0x10f62c,c(_0x577f50,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x23548b=_0x1cd4ec['commandParams'][0x0]['forceValue'],_0x453376=_0x45246e(_0x1cd4ec['commandName']),_0x10f62c=_0x23548b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x453376&&_0xfa3e94['config']['get']('list.multiBlock')||(_0x10f62c='*Change\x20to:*\x20%0'),_0x3d4a5={'type':'format','content':c(_0x577f50,_0x10f62c,c(_0x577f50,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x10f62c='*Indent:*\x20%0',_0x3d4a5={'type':'format','content':c(_0x577f50,_0x10f62c,c(_0x577f50,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x10f62c=function(_0x2b6632){const _0x41982b=_0x2b6632['getFirstRange']();let _0x1e8601=_0x41982b['start']['nodeAfter'];for(;_0x1e8601&&_0x41982b['containsItem'](_0x1e8601);){if(_0x1e8601['getAttribute']('listIndent')>0x0)return!0x1;_0x1e8601=_0x1e8601['nextSibling'];}return!0x0;}(_0x516bfc)?c(_0x577f50,'*Format:*\x20remove\x20from\x20%0',c(_0x577f50,function(_0x457a29){return'ELEMENT_'+_0x457a29['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x516bfc))):c(_0x577f50,'*Outdent:*\x20%0',c(_0x577f50,'ELEMENT_LIST_ITEM')),_0x3d4a5={'type':'format','content':_0x10f62c};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1cd4ec['multipleBlocks']&&(_0x10f62c='*Merge:*\x20%0',_0x3d4a5={'type':'deletion','content':c(_0x577f50,_0x10f62c,c(_0x577f50,'ELEMENT_LIST_ITEM'))});}return _0x3d4a5;});}}function Te(_0x4bb58f){let _0x5620f2=_0x4bb58f['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5620f2;){const _0x22e6ca=_0x5620f2['getAttribute']('listItemId');if(!_0x22e6ca)return!0x1;if(_0x22e6ca==_0x4bb58f['data']['newValue'])return'newValue';if(_0x22e6ca==_0x4bb58f['data']['oldValue'])return'oldValue';_0x5620f2=_0x5620f2['previousSibling'];}return!0x1;}class Se extends _0x4a3f61{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x39ef36=this['editor']['config']['get']('list.properties'),_0x391068=this['editor']['plugins']['get']('TrackChangesEditing');_0x39ef36['styles']&&(_0x391068['enableDefaultAttributesIntegration']('listStyle'),_0x391068['registerBlockAttribute']('listStyle')),_0x39ef36['reversed']&&(_0x391068['enableDefaultAttributesIntegration']('listReversed'),_0x391068['registerBlockAttribute']('listReversed')),_0x39ef36['startIndex']&&(_0x391068['enableDefaultAttributesIntegration']('listStart'),_0x391068['registerBlockAttribute']('listStart'));const _0x2ae8a4={'type':'format','content':''};_0x391068['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xe9634d=this['editor']['locale'];_0x391068['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0xe9634d,'FORMAT_LIST_REVERSED')),_0x391068['descriptionFactory']['registerDescriptionCallback'](_0x35b075=>{const {data:_0x12db94}=_0x35b075;if(_0x12db94&&'listReversed'==_0x12db94['key'])return null==_0x12db94['newValue']||0x0==_0x12db94['newValue']&&null==_0x12db94['oldValue']?_0x2ae8a4:void 0x0;}),_0x391068['descriptionFactory']['registerAttributeLabel']('listStart',c(_0xe9634d,'FORMAT_LIST_START')),_0x391068['descriptionFactory']['registerDescriptionCallback'](_0x5973d8=>{const {data:_0x49d408}=_0x5973d8;if(_0x49d408&&'listStart'==_0x49d408['key'])return null==_0x49d408['newValue']||0x1==_0x49d408['newValue']&&null==_0x49d408['oldValue']?_0x2ae8a4:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2d2479=>{if(_0x2d2479['batch']['isUndo'])return!0x1;let _0x56ad6b=!0x1;const _0x4fe203=_0x391068['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3fcdf7=>{const _0x4330ff=_0x391068['_getAttributeKey'](_0x3fcdf7);return'listStart'==_0x4330ff||'listReversed'==_0x4330ff;});for(const _0x4bf64b of _0x4fe203){const _0x52e9ba=_0x4bf64b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x52e9ba||'customNumbered'==_0x52e9ba)continue;_0x391068['_findSuggestions'](_0x4bf64b['getFirstRange'](),'attribute')['find'](_0x1af6e5=>'listType'==_0x391068['_getAttributeKey'](_0x1af6e5['suggestion']))||(_0x2d2479['removeMarker'](_0x4bf64b['getFirstMarker']()),_0x56ad6b=!0x0);}return _0x56ad6b;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x293bb3){const _0x27071d=this['editor']['locale'],{data:_0xbd1c32}=_0x293bb3,_0x2fe616={'type':'format','content':''};if(!_0xbd1c32||'listStyle'!=_0xbd1c32['key'])return;if(!_0xbd1c32['oldValue'])return'default'==_0xbd1c32['newValue']?_0x2fe616:{'type':'format','content':''+c(_0x27071d,'*Set\x20format:*\x20%0',c(_0x27071d,this['_getTranslationKeyForListStyle'](_0xbd1c32['newValue'])))};if(!_0xbd1c32['newValue']){if('default'==_0xbd1c32['oldValue'])return _0x2fe616;let _0x5a776c=_0x293bb3['head'];for(;_0x5a776c;){if(_0x5a776c['data']&&'listType'==_0x5a776c['data']['key']&&_0x5a776c['data']['newValue'])return _0x2fe616;_0x5a776c=_0x5a776c['next'];}return{'type':'format','content':''+c(_0x27071d,'*Remove\x20format:*\x20%0',c(_0x27071d,this['_getTranslationKeyForListStyle'](_0xbd1c32['oldValue'])))};}if('default'!=_0xbd1c32['newValue'])return{'type':'format','content':''+c(_0x27071d,'*Set\x20format:*\x20%0',c(_0x27071d,this['_getTranslationKeyForListStyle'](_0xbd1c32['newValue'])))};let _0x9cc0b6=_0x293bb3['head'];for(;_0x9cc0b6;){if(_0x9cc0b6['data']&&'listType'==_0x9cc0b6['data']['key']&&_0x9cc0b6['data']['newValue']&&_0x9cc0b6['data']['oldValue'])return _0x2fe616;_0x9cc0b6=_0x9cc0b6['next'];}return{'type':'format','content':c(_0x27071d,'*Set\x20format:*\x20%0',c(_0x27071d,'ELEMENT_'+_0x293bb3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2e1ebe=this['editor'],_0xd760b4=_0x2e1ebe['locale'];_0x2e1ebe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8fcc2f=>{if('formatBlock'!=_0x8fcc2f['type'])return;const {data:_0x3321bf}=_0x8fcc2f;if(!_0x3321bf)return;let _0x483e67,_0x5efdb6;switch(_0x3321bf['commandName']){case'listStyle':_0x483e67='*Change\x20to:*\x20%0',_0x5efdb6={'type':'format','content':c(_0xd760b4,_0x483e67,c(_0xd760b4,this['_getTranslationKeyForListStyle'](_0x3321bf['commandParams'][0x0]['type'])))};break;case'listReversed':_0x483e67=_0x3321bf['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5efdb6={'type':'format','content':c(_0xd760b4,_0x483e67)};break;case'listStart':_0x483e67='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5efdb6={'type':'format','content':c(_0xd760b4,_0x483e67,_0x3321bf['commandParams'][0x0]['startIndex'])};}return _0x5efdb6;});}['_getTranslationKeyForListStyle'](_0x3f618e){return'ELEMENT_'+function(_0x42bba3){if(_e['includes'](_0x42bba3))return'bulleted';if(Re['includes'](_0x42bba3))return'numbered';return null;}(_0x3f618e)['toUpperCase']()+'_LIST_'+_0x3f618e['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x4a3f61{['afterInit'](){const _0x4955c7=this['editor'];_0x4955c7['commands']['get']('emoji')&&_0x4955c7['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x4a3f61{static get['requires'](){return[_0xc211d1];}['init'](){const _0x361393=this['editor'],_0x2653e2=_0x361393['plugins']['get']('TrackChangesEditing'),_0x3a5821=_0x361393['commands']['get']('enter');_0x2653e2['enableCommand']('enter',()=>{_0x361393['model']['change'](_0x1e0517=>{const _0x5a9d1c=_0x361393['model']['document']['selection'],_0x2a5f29=_0x5a9d1c['getFirstPosition'](),_0x183341=_0x36f06e['fromRange'](_0x5a9d1c['getFirstRange']());if(_0x3a5821['enterBlock'](_0x1e0517)){const _0x56cc9a=_0x361393['model']['createPositionAt'](_0x2a5f29['parent']['nextSibling'],0x0),_0x2dadc2=_0x1e0517['createRange'](_0x2a5f29,_0x56cc9a);_0x2653e2['markInsertion'](_0x2dadc2);}else _0x1e0517['setSelection'](_0x1e0517['createRange'](_0x183341['end']));_0x183341['detach'](),_0x3a5821['fire']('afterExecute',{'writer':_0x1e0517});});}),_0x361393['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x361393,'split'),{'priority':'high'}),_0x361393['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x25612b,_0x1e2ad7,_0x21ac61)=>{const _0x580792=_0x21ac61['mapper']['markerNameToElements'](_0x1e2ad7['markerName']);if(_0x580792){for(const _0x2754a9 of _0x580792)_0x2754a9['hasClass']('ck-suggestion-marker-split')&&(_0x21ac61['mapper']['unbindElementFromMarkerName'](_0x2754a9,_0x1e2ad7['markerName']),_0x21ac61['writer']['remove'](_0x2754a9));}},{'priority':'high'}),_0x361393['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x150058,_0x226897,_0x4b357c)=>{_0x4b357c['options']['showSuggestionHighlights']&&Fe(_0x361393,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x150058,_0x226897,_0x4b357c);},{'priority':'high'});}}class Z extends _0x4a3f61{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x4f3344=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f3344['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x4f3344['enableCommand']('findNext'),_0x4f3344['enableCommand']('findPrevious'),_0x4f3344['enableCommand']('replace'),_0x4f3344['enableCommand']('replaceAll');}['handleFindCommand'](_0x2b4268,_0x9a717b,_0xb3a13={}){const _0x2c0401=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2b4268(_0x2cb26b=>{let _0x3e04ec=('string'==typeof _0x9a717b?_0x2c0401['findByTextCallback'](_0x9a717b,_0xb3a13):_0x9a717b)(_0x2cb26b);Array['isArray'](_0x3e04ec)&&(_0x3e04ec={'results':_0x3e04ec,'searchText':'string'==typeof _0x9a717b?_0x9a717b:''});const _0x3dea65=_0x3e04ec['results']['filter'](_0x138bef=>!0x1===this['_isInDeletionRange'](_0x138bef,_0x2cb26b['item']));return{..._0x3e04ec,'results':_0x3dea65};},_0xb3a13);}['_isInDeletionRange'](_0x18feb1,_0x3c3c09){const _0x3e1709=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3c3c09,_0x18feb1['start']),this['editor']['model']['createPositionAt'](_0x3c3c09,_0x18feb1['end']));for(const _0x2b554f of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3e1709['getIntersection'](_0x2b554f['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x4a3f61{['afterInit'](){const _0x371433=this['editor']['locale'],_0x49ce1e=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xc89c01,commandName:_0x33ca81}of ro)this['editor']['plugins']['has'](_0xc89c01)&&(_0x49ce1e['enableDefaultAttributesIntegration'](_0x33ca81),_0x49ce1e['registerInlineAttribute'](_0x33ca81));_0x49ce1e['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x371433,'FORMAT_FONT_SIZE')),_0x49ce1e['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x371433,'FORMAT_FONT_FAMILY')),_0x49ce1e['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x371433,'FORMAT_FONT_COLOR')),_0x49ce1e['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x371433,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ce8fe=this['editor'],_0x2d0fca=_0x3ce8fe['locale'];_0x3ce8fe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34532f=>{const _0x58e8dc=_0x2d0fca['t'];if('formatInline'!=_0x34532f['type'])return;const {data:_0x502d63}=_0x34532f;if(null!=_0x502d63){if('fontSize'==_0x502d63['commandName']){const _0x2f8052=_0x502d63['commandParams'][0x0]['value'];if(_0x2f8052){const _0x5a66a7=_0x58e8dc(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1392ca=>_0x1392ca['model']==_0x2f8052)['title'])['toLowerCase']();return{'type':'format','content':c(_0x2d0fca,'*Set\x20font\x20size:*\x20%0',_0x5a66a7)};}return{'type':'format','content':c(_0x2d0fca,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x502d63['commandName']){const _0x2c2399=_0x502d63['commandParams'][0x0]['value'];return _0x2c2399?{'type':'format','content':c(_0x2d0fca,'*Set\x20font\x20family:*\x20%0',_0x2c2399)}:{'type':'format','content':c(_0x2d0fca,'*Reset\x20font\x20family*')};}if('fontColor'==_0x502d63['commandName']){const _0x52f7b9=_0x502d63['commandParams'][0x0]['value'];if(_0x52f7b9){const _0x5e4068=_0x3035b8(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1f2e0e=>_0x1f2e0e['model']==_0x52f7b9);let _0x440d1c=_0x52f7b9,_0xd96c56='';return _0x5e4068&&(_0x440d1c=_0x5e4068['label'],_0xd96c56=_0x58e8dc(_0x440d1c)['toLowerCase']()),{'type':'format','content':c(_0x2d0fca,'*Set\x20font\x20color:*\x20%0',_0xd96c56)['trim'](),'color':{'value':_0x52f7b9,'title':_0xd96c56||_0x440d1c}};}return{'type':'format','content':c(_0x2d0fca,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x502d63['commandName']){const _0x58c23a=_0x502d63['commandParams'][0x0]['value'];if(_0x58c23a){const _0x17a25a=_0x3035b8(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x39134e=>_0x39134e['model']==_0x58c23a);let _0x353e71=_0x58c23a,_0xccf3a4='';return _0x17a25a&&(_0x353e71=_0x17a25a['label'],_0xccf3a4=_0x58e8dc(_0x353e71)['toLowerCase']()),{'type':'format','content':c(_0x2d0fca,'*Set\x20font\x20background\x20color:*\x20%0',_0xccf3a4)['trim'](),'color':{'value':_0x58c23a,'title':_0xccf3a4||_0x353e71}};}return{'type':'format','content':c(_0x2d0fca,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x4a3f61{['afterInit'](){const _0x5a1030=this['editor'],_0x8f5b07=_0x5a1030['plugins']['get']('TrackChangesEditing'),_0x654d14=_0x5a1030['commands']['get']('copyFormat'),_0x2b71da=_0x5a1030['commands']['get']('pasteFormat');_0x654d14&&_0x2b71da&&(_0x8f5b07['enableDefaultAttributesIntegration']('pasteFormat'),_0x8f5b07['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5948ba=this['editor'],_0x4a5bae=_0x5948ba['locale'];_0x5948ba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a85a3=>{if('formatBlock'!=_0x3a85a3['type']&&'formatInline'!=_0x3a85a3['type'])return;const {data:_0x2eed25}=_0x3a85a3;if(_0x2eed25&&'pasteFormat'===_0x2eed25['commandName']){const _0x276b69=[],_0x422455=_0x2eed25['commandParams'][0x0];for(const [_0x576272,_0x5f206e]of Object['entries'](_0x422455))_0x276b69['push'](so(_0x5948ba,_0x576272,_0x5f206e));return _0x276b69['length']?{'type':'format','content':c(_0x4a5bae,'*Set\x20format\x20to:*\x20%0',_0x276b69['join'](',\x20'))}:{'type':'format','content':c(_0x4a5bae,'*Remove\x20all\x20formatting*')};}});}}function so(_0x4c3066,_0x518ed8,_0x5ad2a4){const _0x43a5c1=_0x4c3066['locale']['t'],_0x3ecce1=_0x518ed8['split'](/(?=[A-Z])/)['join']('\x20'),_0x2ea01c=_0x43a5c1(_0x3ecce1['charAt'](0x0)['toUpperCase']()+_0x3ecce1['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5ad2a4)return _0x2ea01c;if('fontColor'===_0x518ed8||'fontBackgroundColor'===_0x518ed8){const _0x5e3471=_0x3035b8(_0x4c3066['config']['get']('fontColor.colors'))['find'](_0x42b661=>_0x42b661['model']==_0x5ad2a4);return _0x2ea01c+'\x20('+(_0x5e3471?_0x43a5c1(_0x5e3471['label'])['toLowerCase']():_0x5ad2a4)+')';}if('fontSize'===_0x518ed8&&isNaN(parseFloat(_0x5ad2a4))){const _0x304ee8=_0x4c3066['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4c3066['config']['get']('fontSize.options'))['find'](_0x4b81d7=>_0x4b81d7['model']==_0x5ad2a4);return _0x2ea01c+'\x20('+(_0x304ee8?_0x43a5c1(_0x304ee8['title'])['toLowerCase']():_0x5ad2a4)+')';}return _0x2ea01c+'\x20('+_0x5ad2a4+')';}class nt extends _0x4a3f61{['_headingOptions'];['afterInit'](){const _0xd55175=this['editor'];if(!_0xd55175['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xd55175['config']['get']('heading.options');const _0xbcb788=_0xd55175['locale'],_0x1dcd9f=_0xd55175['plugins']['get']('TrackChangesEditing');_0x1dcd9f['enableDefaultAttributesIntegration']('heading');for(const _0x4a7e18 of this['_headingOptions'])'paragraph'!=_0x4a7e18['model']&&_0x1dcd9f['descriptionFactory']['registerElementLabel'](_0x4a7e18['model'],_0x4e645a=>{const _0x2d39fe=this['_getHeadingLevel'](_0x4a7e18['model']);return null!==_0x2d39fe?_0x2ff852(_0x4e645a,_0x2d39fe):_0xefb9cc(_0x4e645a,_0x4a7e18['title']);});function _0x2ff852(_0x32e2ad,_0x14dc47){return c(_0xbcb788,'ELEMENT_HEADING',[_0x32e2ad,_0x14dc47]);}function _0xefb9cc(_0x544435,_0x20c394){return c(_0xbcb788,'ELEMENT_HEADING_CUSTOM',[_0x544435,_0x20c394]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a88d5=this['editor'],_0x5e45a8=_0x4a88d5['locale'];function _0x329839(_0xed8d44,_0x4af000){return c(_0x5e45a8,'ELEMENT_HEADING_CUSTOM',[_0xed8d44,_0x4af000]);}_0x4a88d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a3a38=>{if('formatBlock'!=_0x5a3a38['type'])return;const {data:_0x1d4fbd}=_0x5a3a38;if(_0x1d4fbd&&'heading'==_0x1d4fbd['commandName']){const _0x1e45e1=_0x1d4fbd['commandParams'][0x0]['value'],_0x27ab2a=this['_getHeadingLevel'](_0x1e45e1);if(null!==_0x27ab2a)return{'type':'format','content':c(_0x5e45a8,'*Change\x20to:*\x20%0',(_0x3bce7b=0x1,_0x2eaa71=_0x27ab2a,c(_0x5e45a8,'ELEMENT_HEADING',[_0x3bce7b,_0x2eaa71])))};const _0x2f0f49=this['_headingOptions']['find'](_0x45d877=>_0x45d877['model']===_0x1e45e1)['title'];return{'type':'format','content':c(_0x5e45a8,'*Change\x20to:*\x20%0',_0x329839(0x1,_0x2f0f49))};}var _0x3bce7b,_0x2eaa71;});}['_getHeadingLevel'](_0x99da59){const _0x49b2d0=_0x99da59['match'](/^heading(\d+)/);if(_0x49b2d0)return _0x49b2d0[0x1];const _0x89b49b=this['_headingOptions']?.['find'](_0x5ee916=>_0x5ee916['model']==_0x99da59);if(_0x89b49b&&_0x89b49b['view']){const _0xbef581=_0x89b49b['view'],_0x37fb15=(_0xbef581['name']??_0xbef581)['match'](/^h(\d+)/);if(_0x37fb15)return _0x37fb15[0x1];}return null;}}class it extends _0x4a3f61{['afterInit'](){const _0x4e3ec5=this['editor'];if(!_0x4e3ec5['plugins']['has']('HighlightEditing'))return;const _0x4e7538=_0x4e3ec5['plugins']['get']('TrackChangesEditing'),_0x3cc3d7=_0x4e3ec5['locale'];_0x4e7538['enableDefaultAttributesIntegration']('highlight'),_0x4e7538['registerInlineAttribute']('highlight'),_0x4e7538['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x3cc3d7,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36d022=this['editor'],_0x149ad6=_0x36d022['locale'];_0x36d022['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e81a9=>{if('formatInline'!=_0x1e81a9['type'])return;const {data:_0xf2a647}=_0x1e81a9;if(_0xf2a647&&'highlight'==_0xf2a647['commandName']){const _0xbe4f6b=_0x149ad6['t'],_0xa05cdd=_0xf2a647['commandParams'][0x0]['value'];if(_0xa05cdd){const _0x1f18a1=_0x36d022['config']['get']('highlight.options')['find'](_0x33313a=>_0x33313a['model']==_0xa05cdd),_0x4674fb=_0xbe4f6b(_0x1f18a1['title'])['toLowerCase']();return{'type':'format','content':c(_0x149ad6,'*Set\x20highlight:*\x20%0',_0x4674fb),'color':{'value':_0x1f18a1['color'],'title':_0x1f18a1['title']}};}return{'type':'format','content':c(_0x149ad6,'*Remove\x20highlight*',c(_0x149ad6,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x4a3f61{['afterInit'](){const _0x586e04=this['editor'];if(!_0x586e04['plugins']['has']('HorizontalLineEditing'))return;_0x586e04['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xac8797=_0x586e04['plugins']['get']('TrackChangesEditing'),_0x5ac856=_0x586e04['locale'];_0xac8797['descriptionFactory']['registerElementLabel']('horizontalLine',_0x282abd=>c(_0x5ac856,'ELEMENT_HORIZONTAL_LINE',_0x282abd)),_0x586e04['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x50697d,{writer:_0x37427e,options:_0x13116})=>{if(!_0x13116['showSuggestionHighlights'])return null;const _0x332630=_0x37427e['createContainerElement']('div'),_0x154461=_0x37427e['createEmptyElement']('hr');return _0x37427e['addClass']('ck-horizontal-line',_0x332630),_0x37427e['insert'](_0x37427e['createPositionAt'](_0x332630,0x0),_0x154461),_0x332630;},'converterPriority':'high'});}}class ot extends _0x4a3f61{['afterInit'](){const _0x14c1d2=this['editor'];if(!_0x14c1d2['plugins']['has']('HtmlEmbed'))return;const _0x39bc35=_0x14c1d2['plugins']['get']('TrackChangesEditing'),_0x252228=_0x14c1d2['locale'];_0x39bc35['descriptionFactory']['registerElementLabel']('rawHtml',_0x234ce5=>c(_0x252228,'ELEMENT_HTML_EMBED',_0x234ce5)),_0x39bc35['enableDefaultAttributesIntegration']('htmlEmbed'),_0x39bc35['registerBlockAttribute']('value'),_0x39bc35['descriptionFactory']['registerDescriptionCallback'](_0x47a9fc=>{if('attribute'!=_0x47a9fc['type'])return;const {data:_0x5d6c43}=_0x47a9fc;if(_0x5d6c43&&'value'==_0x5d6c43['key']&&_0x47a9fc['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5ae917=c(_0x252228,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x252228,'*Change\x20%0\x20content*',_0x5ae917)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23b558=this['editor'],_0x566891=_0x23b558['locale'];_0x23b558['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ce18f=>{if('formatBlock'!=_0x4ce18f['type'])return;const {data:_0x2f5b55}=_0x4ce18f;if(_0x2f5b55&&'htmlEmbed'==_0x2f5b55['commandName']){const _0x5504bf=c(_0x566891,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x566891,'*Change\x20%0\x20content*',_0x5504bf)};}});}}class rt extends _0x4a3f61{['afterInit'](){const _0x56e418=this['editor'];if(!_0x56e418['plugins']['has']('ImageEditing'))return;const _0x31b3ce=_0x56e418['plugins']['get']('TrackChangesEditing'),_0x179d12=_0x56e418['plugins']['get']('ImageUtils'),_0x4950ff=_0x56e418['locale'];_0x31b3ce['enableCommand']('insertImage'),_0x31b3ce['descriptionFactory']['registerElementLabel']('imageBlock',_0x24c34f=>c(_0x4950ff,'ELEMENT_IMAGE',_0x24c34f)),_0x31b3ce['descriptionFactory']['registerElementLabel']('imageInline',_0x2b9d92=>c(_0x4950ff,'ELEMENT_INLINE_IMAGE',_0x2b9d92)),_0x31b3ce['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x4950ff,'ELEMENT_CAPTION')),_0x56e418['plugins']['has']('ImageUploadEditing')&&_0x31b3ce['enableCommand']('uploadImage'),_0x56e418['plugins']['has']('ImageBlockEditing')&&_0x56e418['plugins']['has']('ImageInlineEditing')&&(_0x31b3ce['enableCommand']('imageTypeInline',(_0x1c66f2,_0x9a7931)=>{const _0x5a1cfa=_0x179d12['getClosestSelectedImageElement'](_0x56e418['model']['document']['selection']);_0x56e418['model']['change'](()=>{_0x31b3ce['markBlockFormat'](_0x5a1cfa,{'commandName':'imageTypeInline','commandParams':[_0x9a7931]},[],'convertBlockImageToInline');});}),_0x31b3ce['enableCommand']('imageTypeBlock',(_0x4e66eb,_0x3b9605)=>{_0x56e418['model']['change'](_0x33944c=>{let _0x5a2ab4=_0x179d12['getClosestSelectedImageElement'](_0x56e418['model']['document']['selection']),_0x450f79=_0x33944c['createRangeOn'](_0x5a2ab4);const _0x58a694=_0x60ba45['fromPosition'](_0x450f79['start'],'toPrevious'),_0x4054b4=_0x60ba45['fromPosition'](_0x450f79['end'],'toNext');_0x31b3ce['forceDefaultExecution'](()=>_0x4e66eb(_0x3b9605)),_0x5a2ab4=_0x179d12['getClosestSelectedImageElement'](_0x56e418['model']['document']['selection']),_0x450f79=_0x33944c['createRangeOn'](_0x5a2ab4);const _0x2deb0f=_0x33944c['createRange'](_0x58a694,_0x4054b4);_0x58a694['detach'](),_0x4054b4['detach'](),_0x31b3ce['markBlockFormat'](_0x5a2ab4,{'commandName':'imageTypeInline','commandParams':[_0x3b9605]},[],'convertInlineImageToBlock'),_0x2deb0f['start']['isBefore'](_0x450f79['start'])&&_0x31b3ce['markInsertion'](_0x33944c['createRange'](_0x2deb0f['start'],_0x450f79['start']),'convertInlineImageToBlock'),_0x450f79['end']['isBefore'](_0x2deb0f['end'])&&_0x31b3ce['markInsertion'](_0x33944c['createRange'](_0x450f79['end'],_0x2deb0f['end']),'convertInlineImageToBlock');});}),_0x31b3ce['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x31b3ce['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x31b3ce['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x31b3ce['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x31b3ce['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x31b3ce['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xff5335])=>{const _0x5a6d7f=_0x31b3ce['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x420340=_0xff5335['start'],_0xe35770=_0xff5335['end'];const _0x350c24=_0x56e418['model']['schema']['getNearestSelectionRange'](_0x420340,'backward'),_0x496920=_0x56e418['model']['schema']['getNearestSelectionRange'](_0xe35770,'forward');_0x350c24['isCollapsed']&&(_0x420340=_0x350c24['start']),_0x496920['isCollapsed']&&(_0xe35770=_0x496920['end']),_0x5a6d7f([_0x56e418['model']['createRange'](_0x420340,_0xe35770)]);}),_0x31b3ce['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x414200),_0x31b3ce['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x414200)),_0x56e418['plugins']['has']('ImageCaptionEditing')&&(_0x31b3ce['enableCommand']('toggleImageCaption',(_0x2592d6,_0xd91a02)=>{const _0x3e9d0f=_0x56e418['plugins']['get']('ImageCaptionUtils');let _0x1d8a51=_0x179d12['getClosestSelectedImageElement'](_0x56e418['model']['document']['selection']),_0x57dfcf=_0x3e9d0f['getCaptionFromImageModelElement'](_0x1d8a51);_0x56e418['model']['change'](()=>{if(_0x57dfcf)return void _0x31b3ce['markDeletion'](_0x56e418['model']['createRangeOn'](_0x57dfcf));const _0x467c94=_0x179d12['isBlockImage'](_0x1d8a51);_0x2592d6(_0xd91a02),_0x1d8a51=_0x179d12['getClosestSelectedImageElement'](_0x56e418['model']['document']['selection']),_0x57dfcf=_0x3e9d0f['getCaptionFromImageModelElement'](_0x1d8a51),_0x31b3ce['markInsertion'](_0x56e418['model']['createRangeOn'](_0x57dfcf),_0x467c94?null:'imageCaption');});}),_0x31b3ce['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x414200));const _0xb7435e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3cc74d(_0x25a51e,_0x225fdb){const _0x46fb0b=_0xb7435e['findIndex'](({type:_0x5f353c,subType:_0x2bc73f})=>_0x25a51e['type']==_0x5f353c&&_0x25a51e['subType']==_0x2bc73f),_0x5ebcba=_0xb7435e['findIndex'](({type:_0x4c92c9,subType:_0x22013a})=>_0x225fdb['type']==_0x4c92c9&&_0x225fdb['subType']==_0x22013a);if(_0x46fb0b<0x0||_0x5ebcba<0x0)return!0x1;const _0x4bf85a=_0x25a51e['getFirstRange'](),_0x1ae152=_0x225fdb['getFirstRange']();if((0x0==_0x46fb0b||0x1==_0x46fb0b)&&0x2==_0x5ebcba&&_0x4bf85a['isIntersecting'](_0x1ae152))return!0x0;if(0x2==_0x46fb0b&&0x3==_0x5ebcba){const _0x1066ce=_0x31b3ce['_findSuggestions'](_0x4bf85a,'insertion')['filter'](({suggestion:_0x2571b3,meta:_0x1b3585})=>_0x1b3585['isOwn']&&'convertInlineImageToBlock'==_0x2571b3['subType']);if(_0x1066ce['length']>0x1&&_0x1ae152['end']['isEqual'](_0x4bf85a['start']))return!0x0;if(0x1==_0x1066ce['length']&&(_0x4bf85a['start']['isEqual'](_0x1ae152['end'])||_0x4bf85a['end']['isEqual'](_0x1ae152['start'])))return!0x0;}if(0x3==_0x46fb0b&&0x3==_0x5ebcba&&_0x4bf85a['start']['isBefore'](_0x1ae152['start'])){const _0x5a3c79=_0x4bf85a['end']['nodeAfter'],_0x180250=_0x1ae152['start']['nodeBefore'];return _0x179d12['isBlockImage'](_0x5a3c79)&&_0x5a3c79===_0x180250;}return!0x1;}function _0x414200(_0xbca537,_0x34d463){return _0x3cc74d(_0xbca537,_0x34d463)?[_0xbca537,_0x34d463]:_0x3cc74d(_0x34d463,_0xbca537)?[_0x34d463,_0xbca537]:null;}_0x56e418['plugins']['has']('ImageResize')&&(_0x31b3ce['enableDefaultAttributesIntegration']('resizeImage'),_0x31b3ce['registerBlockAttribute']('resizedWidth'),_0x31b3ce['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x4950ff,'FORMAT_IMAGE_SIZE'))),_0x56e418['plugins']['has']('ImageTextAlternativeEditing')&&(_0x31b3ce['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x31b3ce['registerBlockAttribute']('alt')),_0x56e418['plugins']['has']('PictureEditing')&&(_0x31b3ce['registerBlockAttribute']('sources'),_0x31b3ce['descriptionFactory']['registerDescriptionCallback'](_0x15fe16=>{if('attribute'!=_0x15fe16['type'])return;const {data:_0x176600}=_0x15fe16;return _0x176600&&'sources'==_0x176600['key']?{'type':'format','content':''}:void 0x0;})),_0x56e418['plugins']['has']('ImageSizeAttributes')&&(_0x31b3ce['registerBlockAttribute']('width'),_0x31b3ce['registerBlockAttribute']('height'),_0x31b3ce['descriptionFactory']['registerDescriptionCallback'](_0x63d62e=>{if('attribute'!=_0x63d62e['type'])return;const {data:_0x5443a3}=_0x63d62e;return!_0x5443a3||'width'!=_0x5443a3['key']&&'height'!=_0x5443a3['key']?void 0x0:{'type':'format','content':''};})),_0x31b3ce['descriptionFactory']['registerDescriptionCallback'](_0x3d966f=>{if(!!_0xb7435e['find'](({type:_0xda49fc,subType:_0x1083c8})=>_0x3d966f['type']==_0xda49fc&&_0x3d966f['subType']==_0x1083c8))return _0x3d966f['previous']?{}:void 0x0;}),_0x31b3ce['descriptionFactory']['registerDescriptionCallback'](_0x5848dd=>{if('insertion'==_0x5848dd['type']||'deletion'==_0x5848dd['type']){const _0x116396=_0x5848dd['getContainedElement']();if(_0x116396&&_0x116396['is']('element','caption'))return{'type':'insertion'==_0x5848dd['type']?'addObject':'removeObject','element':_0x116396,'quantity':0x1};}}),_0x31b3ce['descriptionFactory']['registerDescriptionCallback'](_0x18094d=>'formatBlock'==_0x18094d['type']&&'convertInlineImageToBlock'==_0x18094d['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x18094d['type']&&'convertBlockImageToInline'==_0x18094d['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x31b3ce['descriptionFactory']['registerDescriptionCallback'](_0x246a35=>{if('attribute'!=_0x246a35['type'])return;const {data:_0x29dc86}=_0x246a35;if(!_0x29dc86||'alt'!=_0x29dc86['key'])return;const _0x1be380=_0x29dc86['newValue'];return _0x1be380?{'type':'format','content':c(_0x4950ff,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1be380+'\x22')}:{'type':'format','content':c(_0x4950ff,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x408e22=this['editor'],_0x4c42db=_0x408e22['locale'];_0x408e22['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2eb2bf=>{if('formatBlock'!=_0x2eb2bf['type']&&'formatInline'!=_0x2eb2bf['type'])return;const {data:_0x48ff2f}=_0x2eb2bf;if(_0x48ff2f){if('imageTextAlternative'==_0x48ff2f['commandName']){const _0x4866d5=_0x48ff2f['commandParams'][0x0]['newValue'];return _0x4866d5?{'type':'format','content':c(_0x4c42db,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4866d5+'\x22')}:{'type':'format','content':c(_0x4c42db,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x48ff2f['commandName']){const _0x24d5c9=_0x48ff2f['commandParams'][0x0]['width'];return _0x24d5c9?{'type':'format','content':c(_0x4c42db,'*Set\x20image\x20width:*\x20%0',_0x24d5c9)}:{'type':'format','content':c(_0x4c42db,'*Reset\x20image\x20width*')};}}});}}class at extends _0x4a3f61{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x50e8a8=this['editor']['locale'],_0x3fa91d=this['editor']['plugins']['get']('TrackChangesEditing');_0x3fa91d['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3fa91d['registerBlockAttribute']('src'),_0x3fa91d['descriptionFactory']['registerDescriptionCallback'](_0xaa2aa1=>{if('attribute'!=_0xaa2aa1['type'])return;const {data:_0x2d52f9}=_0xaa2aa1;return _0x2d52f9&&'src'==_0x2d52f9['key']?_0x2d52f9['newValue']&&_0x2d52f9['oldValue']?{'type':'format','content':c(_0x50e8a8,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3ff92d=this['editor']['plugins']['get']('TrackChangesEditing');_0x3ff92d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3ff92d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3ff92d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3ff92d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19b5e6=this['editor'],_0x41623c=_0x19b5e6['locale'];_0x19b5e6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b3afa=>{if('formatBlock'!=_0x2b3afa['type']&&'formatInline'!=_0x2b3afa['type'])return;const {data:_0x32c86a}=_0x2b3afa;if(!_0x32c86a||'replaceImageSource'!=_0x32c86a['commandName'])return;return{'type':'format','content':c(_0x41623c,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x4a3f61{['afterInit'](){const _0xd167eb=this['editor'];if(!_0xd167eb['plugins']['has']('ImageStyleEditing'))return;const _0x327c56=_0xd167eb['plugins']['get']('TrackChangesEditing'),_0x24bf3d=_0xd167eb['plugins']['get']('ImageUtils'),_0x58db73={};_0x327c56['enableCommand']('imageStyle',(_0x1db2a2,_0x131f8f)=>{const _0x3f647c=_0xd167eb['plugins']['get']('Users')['me'],_0x57fdf1=_0xd167eb['commands']['get']('imageStyle');let _0x2058de=_0x24bf3d['getClosestSelectedImageElement'](_0xd167eb['model']['document']['selection']),_0x1cb3d8=_0xd167eb['model']['createRangeOn'](_0x2058de),_0x5c7316=_0x57fdf1['value'];if(_0x5c7316==_0x131f8f['value'])return;const _0x1851fe={'commandName':'imageStyle','commandParams':[_0x131f8f],'formatGroupId':_0x5ae980()};_0xd167eb['model']['change'](()=>{if(_0x327c56['getSuggestions']()['filter'](_0x161433=>_0x161433['isInContent']&&_0x3f647c==_0x161433['author']&&('formatBlock'==_0x161433['type']||'formatInline'==_0x161433['type'])&&('imageStylePreApply'==_0x161433['subType']||'imageStylePostApply'==_0x161433['subType'])&&_0x161433['getFirstRange']()['isEqual'](_0x1cb3d8))['forEach'](_0x2df915=>_0x327c56['discardSuggestion'](_0x2df915['head'])),_0x2058de=_0x24bf3d['getClosestSelectedImageElement'](_0xd167eb['model']['document']['selection']),_0x1cb3d8=_0xd167eb['model']['createRangeOn'](_0x2058de),_0x57fdf1['refresh'](),_0xd167eb['commands']['get']('imageTypeInline')['refresh'](),_0xd167eb['commands']['get']('imageTypeBlock')['refresh'](),_0x5c7316=_0x57fdf1['value'],_0x5c7316!=_0x131f8f['value'])return _0x24bf3d['isInlineImage'](_0x2058de)&&_0x57fdf1['shouldConvertImageType'](_0x131f8f['value'],_0x2058de)?(_0x1db2a2({..._0x131f8f,'setImageSizes':!0x1}),_0x2058de=_0x24bf3d['getClosestSelectedImageElement'](_0xd167eb['model']['document']['selection']),void _0x327c56['markBlockFormat'](_0x2058de,{..._0x1851fe,'commandReversedParams':[{'value':_0x5c7316||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x24bf3d['isBlockImage'](_0x2058de)?_0x327c56['markBlockFormat'](_0x2058de,_0x1851fe,[],'imageStylePostApply'):_0x327c56['markInlineFormat'](_0x1cb3d8,_0x1851fe,'imageStylePostApply'));});});for(const _0x46d378 of _0xd167eb['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x58db73[_0x46d378['name']]=_0x46d378['title']['toLowerCase']();_0x327c56['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x327c56['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x327c56['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x327c56['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2e7b59])=>{_0x24bf3d['setImageNaturalSizeAttributes'](_0x2e7b59['getContainedElement']());}),_0x327c56['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x153583,_0x921c45)=>{_0x327c56['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x153583,{'commandName':_0x921c45['commandName'],'commandParams':_0x921c45['commandReversedParams']});}),_0x327c56['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x116a1f,_0x296033){if(_0x38c739(_0x116a1f,_0x296033))return[_0x116a1f,_0x296033];if(_0x38c739(_0x296033,_0x116a1f))return[_0x296033,_0x116a1f];return null;});const _0x3b4e8f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x38c739(_0x43f95a,_0x55b8dc){const _0x4cd841=_0x3b4e8f['findIndex'](({type:_0x3dd235,subType:_0x5aa76a})=>_0x43f95a['type']==_0x3dd235&&_0x43f95a['subType']==_0x5aa76a),_0x2748a4=_0x3b4e8f['findIndex'](({type:_0xa646ac,subType:_0x1681a6})=>_0x55b8dc['type']==_0xa646ac&&_0x55b8dc['subType']==_0x1681a6);if(_0x4cd841<0x0||_0x2748a4<0x0)return!0x1;const _0x3a9996=_0x43f95a['getFirstRange'](),_0x5e73be=_0x55b8dc['getFirstRange']();if((0x0==_0x4cd841||0x1==_0x4cd841)&&0x2==_0x2748a4&&_0x3a9996['isIntersecting'](_0x5e73be))return!0x0;if(0x2==_0x4cd841&&0x3==_0x2748a4){const _0x4bc11b=_0x327c56['_findSuggestions'](_0x3a9996,'insertion')['filter'](({suggestion:_0x2b318c,meta:_0x2dd3cf})=>_0x2dd3cf['isOwn']&&'convertInlineImageToBlock'==_0x2b318c['subType']);if(_0x4bc11b['length']>0x1&&_0x5e73be['end']['isEqual'](_0x3a9996['start']))return!0x0;if(0x1==_0x4bc11b['length']&&(_0x3a9996['start']['isEqual'](_0x5e73be['end'])||_0x3a9996['end']['isEqual'](_0x5e73be['start'])))return!0x0;}if(0x3==_0x4cd841&&0x3==_0x2748a4&&_0x3a9996['start']['isBefore'](_0x5e73be['start'])){const _0x235766=_0x3a9996['end']['nodeAfter'],_0x4849f5=_0x5e73be['start']['nodeBefore'];return _0x24bf3d['isBlockImage'](_0x235766)&&_0x235766===_0x4849f5;}return!0x1;}_0xd167eb['model']['document']['registerPostFixer'](()=>{let _0x171a13=!0x1;const _0x5c150f=Array['from'](_0xd167eb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x9a3bd8,data:_0x2f9b4d}of _0x5c150f){const {group:_0x47ebdb,type:_0x1474f0,subType:_0x1e8dd4,id:_0x2e2c8d}=_0x327c56['_splitMarkerName'](_0x9a3bd8);if('suggestion'==_0x47ebdb&&_0x327c56['hasSuggestion'](_0x2e2c8d)){if('formatBlock'==_0x1474f0&&('imageStylePreApply'==_0x1e8dd4||'imageStylePostApply'==_0x1e8dd4)){const _0x3b5a78=_0x327c56['getSuggestion'](_0x2e2c8d);if(_0x2f9b4d['newRange']){const _0x30aa36=_0x3b5a78['getFirstRange']()['getContainedElement']();if(_0x24bf3d['isBlockImage'](_0x30aa36))continue;_0x327c56['discardSuggestion'](_0x3b5a78),_0x171a13=!0x0;}}if('insertion'==_0x1474f0&&'imageCaption'==_0x1e8dd4&&!_0x2f9b4d['newRange']){const _0x4e153c=_0x327c56['getSuggestion'](_0x2e2c8d);_0x4e153c['next']&&_0x4e153c['next']['isInContent']&&(_0x327c56['discardSuggestion'](_0x4e153c['next']),_0x171a13=!0x0);}}}return _0x171a13;}),this['_registerLegacyDescription'](_0x58db73);}['_registerLegacyDescription'](_0xa889d9){const _0x1f8368=this['editor'],_0x17e93f=_0x1f8368['locale'];_0x1f8368['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c7db6=>{if('formatBlock'!=_0x4c7db6['type']&&'formatInline'!=_0x4c7db6['type'])return;const {data:_0xac90fd}=_0x4c7db6;if(!_0xac90fd||'imageStyle'!=_0xac90fd['commandName'])return;const _0x34dcb3=_0xac90fd['commandParams'][0x0]['value'];return _0x366d46('side'===_0x34dcb3?c(_0x17e93f,'FORMAT_SIDE_IMAGE'):_0xa889d9[_0x34dcb3]||_0x34dcb3);function _0x366d46(_0x8eb54f){return{'type':'format','content':c(_0x17e93f,'*Format:*\x20%0',_0x8eb54f)};}});}}class ut extends _0x4a3f61{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5527c7){super(_0x5527c7),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x115f96=this['editor'],_0x55e713=_0x115f96['commands']['get']('importWord'),_0x139a54=_0x115f96['commands']['get']('trackChanges');_0x55e713&&(_0x55e713['on']('execute',(_0x17df48,[,_0x3c1583])=>{this['_trackChangesValueDuringImport']=_0x139a54['value'],_0x3c1583['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x55e713,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x55e713,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x139a54['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x115f96['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x368a96,_0x549abd){const {suggestions:_0x185fcc}=_0x549abd,_0xd578da=this['editor']['commands']['get']('trackChanges'),_0x3ccda7=_0xd578da['value'];this['_trackChangesValueDuringImport']!==_0x3ccda7&&(_0xd578da['execute'](),this['_trackChangesExecuted']=!0x0),_0x185fcc&&_0x185fcc['forEach'](({id:_0x35598a,type:_0x126ae2,author:_0x510088,created_at:_0x559e54})=>{const _0x11a9a7={'id':_0x35598a,'type':_0x126ae2,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x510088,'createdAt':_0x559e54?new Date(_0x559e54):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x11a9a7);});}}class ft extends _0x4a3f61{['afterInit'](){const _0x11c460=this['editor'],_0x52628e=_0x11c460['plugins']['get']('TrackChangesEditing');if(_0x11c460['plugins']['has']('IndentEditing')&&(_0x52628e['enableCommand']('indent'),_0x52628e['enableCommand']('outdent')),_0x11c460['plugins']['has']('IndentBlock')){for(const _0x154efb of['indentBlock','outdentBlock'])_0x52628e['enableDefaultAttributesIntegration'](_0x154efb);}const _0x341849=_0x11c460['locale'];_0x52628e['registerBlockAttribute']('blockIndent'),_0x52628e['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x341849,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x531212=this['editor'],_0x137fd0=_0x531212['locale'],_0x19efc7=_0x531212['plugins']['get']('TrackChangesEditing');_0x19efc7['descriptionFactory']['registerDescriptionCallback'](_0x2ddc81=>{if('formatBlock'!=_0x2ddc81['type'])return;const {data:_0x2c3c89}=_0x2ddc81;if(!_0x2c3c89)return;if('indentBlock'!=_0x2c3c89['commandName']&&'outdentBlock'!=_0x2c3c89['commandName'])return;const _0x3e3fb9=_0x2ddc81['getItems']()[0x0],_0x409e48=_0x19efc7['descriptionFactory']['getItemLabel'](_0x3e3fb9);return'indentBlock'==_0x2c3c89['commandName']?{'type':'format','content':c(_0x137fd0,'*Indent:*\x20%0',_0x409e48)}:'outdentBlock'==_0x2c3c89['commandName']?{'type':'format','content':c(_0x137fd0,'*Outdent:*\x20%0',_0x409e48)}:void 0x0;});}}class ht extends _0x4a3f61{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x4a3f61{['afterInit'](){const _0x439c37=this['editor'];if(!_0x439c37['plugins']['has']('LinkEditing'))return;const _0x14e468=_0x439c37['plugins']['get']('TrackChangesEditing'),_0x2e0242=_0x439c37['commands']['get']('link');_0x14e468['enableDefaultAttributesIntegration']('link'),_0x14e468['enableDefaultAttributesIntegration']('unlink'),_0x14e468['registerInlineAttribute']('linkHref');for(const _0x48aadd of _0x2e0242['manualDecorators'])_0x14e468['registerInlineAttribute'](_0x48aadd['id']),_0x14e468['descriptionFactory']['registerAttributeLabel'](_0x48aadd['id'],'link\x20('+_0x48aadd['label']['toLowerCase']()+')');_0x14e468['descriptionFactory']['registerDescriptionCallback'](_0xf355db=>{if('attribute'!=_0xf355db['type'])return;const {data:_0x2e2bc8}=_0xf355db;if(!_0x2e2bc8||'linkHref'!=_0x2e2bc8['key'])return;const _0x11e1b8=_0x2e2bc8['newValue'],_0x5cae8a=_0x439c37['locale'];return{'type':'format','content':null==_0x11e1b8?c(_0x5cae8a,'*Remove\x20link*'):c(_0x5cae8a,'*Set\x20link:*\x20%0','\x22'+_0x11e1b8+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c4872=this['editor'],_0x2be2e3=_0x4c4872['locale'];_0x4c4872['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x512040=>{if('formatInline'!=_0x512040['type'])return;const {data:_0x11c7f5}=_0x512040;if(_0x11c7f5){if('link'==_0x11c7f5['commandName']){const _0x575ce2=_0x11c7f5['commandParams'][0x0];return{'type':'format','content':c(_0x2be2e3,'*Set\x20link:*\x20%0','\x22'+_0x575ce2+'\x22')};}return'unlink'==_0x11c7f5['commandName']?{'type':'format','content':c(_0x2be2e3,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x4a3f61{['afterInit'](){const _0x155da8=this['editor'],_0x2b0ccd=_0x155da8['locale'];if(!_0x155da8['plugins']['has']('LegacyListEditing'))return;const _0xf5ab63=_0x155da8['plugins']['get']('TrackChangesEditing'),_0x51753e=_0x155da8['plugins']['has']('LegacyTodoListEditing');function _0x5cb134(_0x202c09){return()=>{const _0x515569=_0x155da8['model']['document']['selection'],_0x37804e=_0x155da8['commands']['get'](_0x202c09);if(_0x37804e['value'])return void _0x155da8['execute']('paragraph',{});const _0x40d71b=_0x202c09['slice'](0x0,-0x4),_0x3c0513=function(_0xe89124,_0x4dff4e,_0x2010f5){let _0x1d2927=Array['from'](_0xe89124)['filter'](_0x594e91=>function(_0x44e0a2,_0x114d41){return _0x114d41['checkChild'](_0x44e0a2['parent'],'listItem')&&!_0x114d41['isObject'](_0x44e0a2);}(_0x594e91,_0x2010f5));_0x1d2927=_0x1d2927['filter'](_0x523c7d=>!_0x523c7d['is']('element','listItem')||_0x523c7d['getAttribute']('listType')!=_0x4dff4e);const _0x117a2c=new Set();for(const _0x3a6062 of _0x1d2927)_0x3a6062['is']('element','listItem')?_0x117a2c['add'](Le(_0x3a6062)):_0x117a2c['add'](_0x3a6062);return Array['from'](_0x117a2c);}(_0x515569['getSelectedBlocks'](),_0x40d71b,_0x155da8['model']['schema']);_0x155da8['model']['change'](()=>{for(const _0x41f9f7 of _0x3c0513)_0xf5ab63['markBlockFormat'](_0x41f9f7,{'commandName':_0x202c09,'commandParams':[{'forceValue':!_0x37804e['value']}],'formatGroupId':'blockName'},Ee(_0x41f9f7));});};}function _0x5ddf03(_0x391b5d){return()=>{const _0x16c8e0=function(_0x3e39a6){let _0x300eb7=Array['from'](_0x3e39a6);const _0x4e3e77=_0x300eb7['findIndex'](_0x18f197=>'listItem'!=_0x18f197['name']);return _0x4e3e77>-0x1&&(_0x300eb7=_0x300eb7['slice'](0x0,_0x4e3e77)),_0x300eb7;}(_0x155da8['model']['document']['selection']['getSelectedBlocks']()),_0x1ea0a1=_0x155da8['model']['createRange'](_0x155da8['model']['createPositionAt'](_0x16c8e0[0x0],'before'),_0x155da8['model']['createPositionAt'](_0x16c8e0[_0x16c8e0['length']-0x1],'end'));_0x155da8['model']['change'](()=>{_0xf5ab63['markBlockFormat'](_0x1ea0a1,{'commandName':_0x391b5d,'commandParams':[],'formatGroupId':'listIndent'},function(_0x27dee6){const _0x545245=new Set();for(const _0x1f3ee1 of _0x27dee6){let _0x9938b0=_0x1f3ee1['nextSibling'];for(;_0x9938b0&&_0x9938b0['getAttribute']('listIndent')>_0x1f3ee1['getAttribute']('listIndent');)_0x545245['add'](_0x9938b0),_0x9938b0=_0x9938b0['nextSibling'];}return Array['from'](_0x545245);}(_0x16c8e0));});};}_0xf5ab63['enableCommand']('numberedList',_0x5cb134('numberedList')),_0xf5ab63['enableCommand']('bulletedList',_0x5cb134('bulletedList')),_0x51753e&&_0xf5ab63['enableCommand']('todoList',_0x5cb134('todoList')),_0xf5ab63['enableCommand']('indentList',_0x5ddf03('indentList')),_0xf5ab63['enableCommand']('outdentList',_0x5ddf03('outdentList')),_0x51753e&&_0xf5ab63['enableCommand']('checkTodoList',()=>{const _0x36ec36=_0x155da8['commands']['get']('checkTodoList'),_0x4651bd=Array['from'](_0x36ec36['_selectedElements']);_0x4651bd['filter'](_0x1dfe85=>_0x1dfe85['getAttribute']('todoListChecked')!=_0x36ec36['value']),_0x155da8['model']['change'](()=>{for(const _0x5e7193 of _0x4651bd)_0xf5ab63['markBlockFormat'](_0x5e7193,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x36ec36['value']}]});});}),_0xf5ab63['descriptionFactory']['registerElementLabel']('listItem',_0x4609e7=>c(_0x2b0ccd,'ELEMENT_LIST_ITEM',_0x4609e7)),_0xf5ab63['descriptionFactory']['registerDescriptionCallback'](_0x185353=>{if('formatBlock'!=_0x185353['type']&&'formatInline'!=_0x185353['type'])return;const {data:_0x595f51}=_0x185353;if(_0x595f51){if('numberedList'==_0x595f51['commandName']||'bulletedList'==_0x595f51['commandName']||'todoList'==_0x595f51['commandName'])switch(_0x595f51['commandName']['replace']('List','')){case'bulleted':return _0x122fef(c(_0x2b0ccd,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x122fef(c(_0x2b0ccd,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x122fef(c(_0x2b0ccd,'ELEMENT_TODO_LIST'));}if('indentList'==_0x595f51['commandName'])return{'type':'format','content':c(_0x2b0ccd,'*Indent:*\x20%0',c(_0x2b0ccd,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x595f51['commandName'])return{'type':'format','content':c(_0x2b0ccd,'*Outdent:*\x20%0',c(_0x2b0ccd,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x595f51['commandName'])return _0x595f51['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2b0ccd,'*Check\x20item*')}:{'type':'format','content':c(_0x2b0ccd,'*Uncheck\x20item*')};}function _0x122fef(_0x350374){return{'type':'format','content':c(_0x2b0ccd,'*Change\x20to:*\x20%0',_0x350374)};}});}}function Le(_0x1bb252){const _0x2e47bb=_0x1bb252['getAttribute']('listIndent');if(0x0==_0x2e47bb)return _0x1bb252;let _0x40a694=_0x1bb252;for(;_0x1bb252['previousSibling']&&_0x1bb252['previousSibling']['is']('element','listItem');){const _0x1a46b2=_0x1bb252['previousSibling']['getAttribute']('listIndent');if(_0x1a46b2==_0x2e47bb)_0x40a694=_0x1bb252['previousSibling'];else{if(_0x1a46b2<_0x2e47bb)break;}_0x1bb252=_0x1bb252['previousSibling'];}return _0x40a694;}function Ee(_0x417869){const _0x4ab3b2=[];if(_0x417869['is']('element','listItem')&&_0x417869['getAttribute']('listIndent')>0x0){let _0x38dc84=_0x417869['nextSibling'];for(;_0x38dc84&&'listItem'==_0x38dc84['name']&&_0x38dc84['getAttribute']('listIndent')==_0x417869['getAttribute']('listIndent');)_0x4ab3b2['push'](_0x38dc84),_0x38dc84=_0x38dc84['nextSibling'];}return _0x4ab3b2;}class Q extends _0x4a3f61{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x336500=this['editor']['config']['get']('list.properties'),_0x1b5809=this['editor']['plugins']['get']('TrackChangesEditing');_0x336500['styles']&&_0x1b5809['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x336500['reversed']&&_0x1b5809['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x336500['startIndex']&&_0x1b5809['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1b5809['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x168d66,_0x2bdc44={}){const _0x5aab5a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x549dac=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5aab5a['markMultiRangeBlockFormat'](_0x549dac,{'commandName':'listStyle','commandParams':[{'type':_0x2bdc44['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x395e02,_0x15b0fa={}){const _0x50e040=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4904c1=this['_getSuggestionBlocks'](_0x215cfb=>_0x215cfb['is']('element','listItem')&&'numbered'===_0x215cfb['getAttribute']('listType'));if(_0x4904c1['length']<0x1)return;const _0x5d07b6=_0x4904c1['map'](_0x30bd37=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x30bd37,'before'),this['editor']['model']['createPositionAt'](_0x30bd37,0x0)));this['editor']['model']['change'](()=>{_0x50e040['markMultiRangeBlockFormat'](_0x5d07b6,{'commandName':'listReversed','commandParams':[{'reversed':_0x15b0fa['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3dab5f,_0x2ebb3a={}){const _0x309754=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1fe7e6=this['_getSuggestionBlocks'](_0x3c7233=>_0x3c7233['is']('element','listItem')&&'numbered'===_0x3c7233['getAttribute']('listType'));if(_0x1fe7e6['length']<0x1)return;const _0x489b93=_0x1fe7e6['map'](_0x2c2d2f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2c2d2f,'before'),this['editor']['model']['createPositionAt'](_0x2c2d2f,0x0)));this['editor']['model']['change'](()=>{_0x309754['markMultiRangeBlockFormat'](_0x489b93,{'commandName':'listStart','commandParams':[{'startIndex':_0x2ebb3a['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x37c87c){if('formatBlock'!=_0x37c87c['type']&&'formatInline'!=_0x37c87c['type'])return;const _0x3d52c6=this['editor']['locale'],{data:_0x33a99a}=_0x37c87c;if(!_0x33a99a)return;let _0x577d02,_0x258f43;switch(_0x33a99a['commandName']){case'listStyle':_0x577d02='*Change\x20to:*\x20%0',_0x258f43={'type':'format','content':c(_0x3d52c6,_0x577d02,c(_0x3d52c6,this['_getTranslationKeyForListStyle'](_0x33a99a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x577d02=_0x33a99a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x258f43={'type':'format','content':c(_0x3d52c6,_0x577d02)};break;case'listStart':_0x577d02='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x258f43={'type':'format','content':c(_0x3d52c6,_0x577d02,_0x33a99a['commandParams'][0x0]['startIndex'])};}return _0x258f43;}['_getSuggestionBlocksForListStyle'](){const _0x59fdb0=this['editor']['plugins']['get']('LegacyListUtils');let _0x34d301=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x34d301[0x0]?.['is']('element','listItem')&&_0x34d301['unshift'](..._0x59fdb0['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x34d301[_0x34d301['length']-0x1]?.['is']('element','listItem')&&_0x34d301['push'](..._0x59fdb0['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x34d301=[...new Set(_0x34d301)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x34d301=_0x34d301['filter'](_0x4325b7=>_0x4325b7['is']('element','listItem'))),_0x34d301;}['_getSuggestionBlocks'](_0x569031){const _0x35b788=this['editor']['plugins']['get']('LegacyListUtils');let _0x507692=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x569031)['map'](_0x5b6c7d=>{const _0x2e218b=this['editor']['model']['createPositionAt'](_0x5b6c7d,0x0);return[..._0x35b788['getSiblingNodes'](_0x2e218b,'backward'),..._0x35b788['getSiblingNodes'](_0x2e218b,'forward')];})['flat']();return _0x507692=[...new Set(_0x507692)],_0x507692;}['_getTranslationKeyForListStyle'](_0x3b7ef2){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3b7ef2)||'default')['toUpperCase']()+'_LIST_'+_0x3b7ef2['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x4a3f61{['afterInit'](){const _0x390e67=this['editor'];if(!_0x390e67['plugins']['has']('MediaEmbedEditing'))return;const _0x3496fb=_0x390e67['plugins']['get']('TrackChangesEditing'),_0xca3c55=_0x390e67['locale'];_0x3496fb['enableCommand']('mediaEmbed'),_0x3496fb['descriptionFactory']['registerElementLabel']('media',_0x26911b=>c(_0xca3c55,'ELEMENT_MEDIA',_0x26911b)),_0x390e67['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x131fe4,{writer:_0x50a5f0,options:_0x3ed450})=>{if(_0x3ed450['showSuggestionHighlights'])return _0x50a5f0['createEmptyElement']('div');},'converterPriority':'high'}),_0x390e67['data']['downcastDispatcher']['on']('attribute:url:media',(_0x51f219,_0x492a61,_0x24f618)=>{_0x24f618['options']['showSuggestionHighlights']&&_0x51f219['stop']();},{'priority':'high'});}}class pt extends _0x4a3f61{['afterInit'](){const _0x542a52=this['editor'];_0x542a52['plugins']['has']('MentionEditing')&&_0x542a52['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x4a3f61{['afterInit'](){const _0x499f7b=this['editor'];if(!_0x499f7b['plugins']['has']('MergeFieldsEditing'))return;const _0x26dd04=_0x499f7b['plugins']['get']('TrackChangesEditing'),_0x3c3168=_0x499f7b['locale'];_0x26dd04['enableCommand']('insertMergeField'),_0x26dd04['enableCommand']('insertMergeFieldBlock'),_0x26dd04['enableCommand']('insertMergeFieldImage'),_0x26dd04['descriptionFactory']['registerElementLabel']('mergeField',_0x23e59c=>c(_0x3c3168,'ELEMENT_MERGE_FIELD',_0x23e59c)),_0x26dd04['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x35500a=>c(_0x3c3168,'ELEMENT_MERGE_FIELD',_0x35500a)),_0x26dd04['descriptionFactory']['registerDescriptionCallback'](_0x214c8b=>{if('insertion'!=_0x214c8b['type']&&'deletion'!=_0x214c8b['type'])return;const _0x3f9c74=_0x214c8b['getContainedElement']();if(null==_0x3f9c74)return;const _0x364cb2=_0x499f7b['plugins']['get']('MergeFieldsEditing');let _0x43261a;switch(_0x364cb2['getMergeFieldType'](_0x3f9c74)){case null:return;case'image':{const _0x1a5d09=_0x364cb2['unwrapAffixes'](_0x3f9c74['getAttribute']('src'));_0x43261a=_0x364cb2['getLabel'](_0x1a5d09)||_0x1a5d09;break;}default:{const _0x3954d2=_0x3f9c74['getAttribute']('id');_0x43261a=_0x364cb2['getLabel'](_0x3954d2)||_0x3954d2;break;}}return'insertion'==_0x214c8b['type']?{'type':'insertion','content':c(_0x3c3168,'*Insert:*\x20%0','\x22'+_0x43261a+'\x22\x20'+c(_0x3c3168,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x3c3168,'*Remove:*\x20%0','\x22'+_0x43261a+'\x22\x20'+c(_0x3c3168,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x4a3f61{['afterInit'](){const _0x50a609=this['editor'],_0x4c3e0e=_0x50a609['plugins']['get']('TrackChangesEditing');_0x50a609['plugins']['has']('MultiLevelList')&&(_0x4c3e0e['enableDefaultAttributesIntegration']('multiLevelList'),_0x4c3e0e['registerBlockAttribute']('listMarkerStyle'),_0x4c3e0e['descriptionFactory']['registerDescriptionCallback'](_0x5f0c42=>this['handleDescriptions'](_0x5f0c42)));}['handleDescriptions'](_0x3c4006){const _0x4d20d1=this['editor']['locale'],{data:_0x36968b}=_0x3c4006,_0x3ab357={'type':'format','content':''};if(_0x36968b&&'listMarkerStyle'==_0x36968b['key']){if(!_0x36968b['oldValue'])return{'type':'format','content':c(_0x4d20d1,'*Set\x20format:*\x20%0',c(_0x4d20d1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x36968b['newValue']+')'};if(!_0x36968b['newValue']){let _0x11310d=_0x3c4006['head'];for(;_0x11310d;){if(_0x11310d['data']&&'listType'==_0x11310d['data']['key']&&_0x11310d['data']['newValue'])return _0x3ab357;_0x11310d=_0x11310d['next'];}return{'type':'format','content':c(_0x4d20d1,'*Remove\x20format:*\x20%0',c(_0x4d20d1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x36968b['oldValue']+')'};}}}}class bt extends _0x4a3f61{['afterInit'](){const _0x31ec8c=this['editor'];if(!_0x31ec8c['plugins']['has']('PageBreakEditing'))return;_0x31ec8c['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x149931=_0x31ec8c['plugins']['get']('TrackChangesEditing'),_0x2a0382=_0x31ec8c['locale'];_0x149931['descriptionFactory']['registerElementLabel']('pageBreak',_0x3e9373=>c(_0x2a0382,'ELEMENT_PAGE_BREAK',_0x3e9373));}}class yt extends _0x4a3f61{['afterInit'](){const _0x3b6524=this['editor'];if(!_0x3b6524['plugins']['has']('Paragraph'))return;const _0x163c48=_0x3b6524['locale'],_0x1dacb9=_0x3b6524['plugins']['get']('TrackChangesEditing');_0x1dacb9['descriptionFactory']['registerElementLabel']('paragraph',_0x5a95db=>c(_0x163c48,'ELEMENT_PARAGRAPH',_0x5a95db)),_0x1dacb9['enableDefaultAttributesIntegration']('paragraph'),_0x1dacb9['enableCommand']('insertParagraph'),_0x3b6524['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3b6524),{'priority':'highest'}),_0x3b6524['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x538c87,_0xc608f1,_0x485c40)=>{_0x485c40['options']['showSuggestionHighlights']&&nr(_0x3b6524,{'showActiveMarker':!0x1})(_0x538c87,_0xc608f1,_0x485c40);},{'priority':'highest'});const _0x3a463f=_0x1dacb9['descriptionFactory'];_0x3a463f['registerDescriptionCallback'](_0xe0223e=>{if('insertion'!==_0xe0223e['type'])return;const {start:_0xdf652b,end:_0x325717}=_0xe0223e['getFirstRange']();if(!_0xdf652b['isTouching'](_0x325717)||!_0xdf652b['nodeAfter'])return;const _0x574a22=_0x3b6524['model']['schema'],_0x25df2a=_0xdf652b['nodeAfter'];return _0x574a22['isBlock'](_0x25df2a)&&!_0x574a22['isLimit'](_0x25df2a)&&_0x574a22['checkChild'](_0x25df2a,'$text')?{'type':'insertion','content':c(_0x163c48,'*Insert:*\x20%0',_0x3a463f['getItemLabel'](_0x25df2a,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50c355=this['editor'],_0x297d41=_0x50c355['locale'];_0x50c355['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x239342=>{if('formatBlock'!=_0x239342['type'])return;const {data:_0x20e795}=_0x239342;return _0x20e795&&'paragraph'==_0x20e795['commandName']?{'type':'format','content':c(_0x297d41,'*Change\x20to:*\x20%0',c(_0x297d41,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1f22d9,{showActiveMarker:_0x3bd3d0=!0x0}={}){return(_0x49f879,_0x35d9d9,_0x2337ca)=>{const _0x575c79=_0x1f22d9['plugins']['get']('TrackChangesEditing'),_0x4f6217=_0x35d9d9['markerRange']['start'],_0x360802=_0x35d9d9['markerRange']['end'],_0x4c4a9b=_0x1f22d9['model']['schema'];if(!_0x4f6217['isTouching'](_0x360802)||!_0x4f6217['nodeAfter'])return;const _0x25d91c=_0x4f6217['nodeAfter'];if(_0x4c4a9b['isBlock'](_0x25d91c)&&!_0x4c4a9b['isLimit'](_0x25d91c)&&_0x4c4a9b['checkChild'](_0x25d91c,'$text')){if(!_0x2337ca['consumable']['consume'](_0x35d9d9['markerRange'],_0x49f879['name']))return;const {authorId:_0x1fa16c}=_0x575c79['_splitMarkerName'](_0x35d9d9['markerName']),_0x2463aa=_0x2337ca['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x1fa16c}),_0x49c404=_0x2337ca['mapper']['toViewPosition'](_0x360802);_0x3bd3d0&&_0x575c79['activeMarkers']['includes'](_0x35d9d9['markerName'])&&_0x2337ca['writer']['addClass']('ck-suggestion-marker--active',_0x2463aa),_0x2337ca['writer']['insert'](_0x49c404,_0x2463aa),_0x2337ca['mapper']['bindElementToMarker'](_0x2463aa,_0x35d9d9['markerName']);}};}class jt extends _0x4a3f61{['afterInit'](){const _0x3badea=this['editor'];_0x3badea['commands']['get']('replaceSource')&&_0x3badea['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x4a3f61{['afterInit'](){const _0x29cb03=this['editor'];if(!_0x29cb03['plugins']['has']('RemoveFormatEditing'))return;_0x29cb03['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e8f85=this['editor'];_0x4e8f85['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37314a=>{if('formatBlock'!=_0x37314a['type']&&'formatInline'!=_0x37314a['type'])return;const {data:_0x58b41c}=_0x37314a;return _0x58b41c&&'removeFormat'==_0x58b41c['commandName']?{'type':'format','content':c(_0x4e8f85['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x4a3f61{['afterInit'](){const _0x457396=this['editor'];if(!_0x457396['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x55125f=_0x457396['plugins']['get']('TrackChangesEditing');_0x55125f['enableCommand']('goToPreviousRestrictedEditingException'),_0x55125f['enableCommand']('goToNextRestrictedEditingException');const _0x274166=_0x457396['plugins']['get']('RestrictedEditingModeEditing');_0x274166['enableCommand']('trackChanges'),_0x274166['enableCommand']('acceptSuggestion'),_0x274166['enableCommand']('discardSuggestion'),_0x274166['enableCommand']('acceptAllSuggestions'),_0x274166['enableCommand']('discardAllSuggestions'),_0x274166['enableCommand']('acceptSelectedSuggestions'),_0x274166['enableCommand']('discardSelectedSuggestions');}}class It extends _0x4a3f61{['afterInit'](){const _0x4505af=this['editor'];if(!_0x4505af['plugins']['has']('ShiftEnter'))return;const _0x38c546=_0x4505af['plugins']['get']('TrackChangesEditing');_0x38c546['enableCommand']('shiftEnter'),_0x4505af['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x4505af),{'priority':'high'}),_0x4505af['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x4505af),{'priority':'high'}),_0x4505af['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2f07db,_0x8982ab,_0x534edd)=>{_0x534edd['options']['showSuggestionHighlights']&&je(_0x4505af,{'showActiveMarker':!0x1})(_0x2f07db,_0x8982ab,_0x534edd);}),_0x38c546['descriptionFactory']['registerElementLabel']('softBreak',_0x32cbd9=>c(_0x4505af['locale'],'ELEMENT_LINE_BREAK',_0x32cbd9));}}function je(_0x6cf063,{showActiveMarker:_0x5ed3d4=!0x0}={}){return(_0x5976b7,_0x1d47b8,_0x3a3f4a)=>{const _0x59f2a4=_0x6cf063['plugins']['get']('TrackChangesEditing');if(!_0x3a3f4a['consumable']['test'](_0x1d47b8['markerRange'],_0x5976b7['name']))return;const _0x5aaaba=_0x6cf063['model'];for(const _0x49deab of _0x1d47b8['markerRange']['getItems']()){if(!_0x49deab['is']('element','softBreak'))continue;const _0x4a50ed='deletion'==_0x1d47b8['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x1487e2}=_0x59f2a4['_splitMarkerName'](_0x1d47b8['markerName']),_0x1c5a33=_0x3a3f4a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4a50ed,'data-author-id':_0x1487e2}),_0x3621e4=_0x3a3f4a['mapper']['toViewPosition'](_0x5aaaba['createPositionBefore'](_0x49deab));_0x5ed3d4&&_0x59f2a4['activeMarkers']['includes'](_0x1d47b8['markerName'])&&_0x3a3f4a['writer']['addClass']('ck-suggestion-marker--active',_0x1c5a33),_0x3a3f4a['writer']['insert'](_0x3621e4,_0x1c5a33),_0x3a3f4a['mapper']['bindElementToMarker'](_0x1c5a33,_0x1d47b8['markerName']);}};}class _t extends _0x4a3f61{['afterInit'](){const _0x3f1377=this['editor'],_0x4ea4ce=_0x3f1377['model'],_0xe24521=_0x3f1377['locale'];if(!_0x3f1377['plugins']['has']('StandardEditingModeEditing'))return;const _0x33f802=_0x3f1377['plugins']['get']('TrackChangesEditing'),_0x51d968='restrictedEditingException',_0x13b8c7=_0x3f1377['commands']['get'](_0x51d968);_0x33f802['enableCommand'](_0x51d968,(_0x2454d1,_0x594d2b={})=>{const _0x24bb75=_0x4ea4ce['document']['selection'];if(_0x24bb75['isCollapsed'])return void _0x2454d1(_0x594d2b);const _0x37390d=void 0x0!==_0x594d2b['forceValue']?_0x594d2b['forceValue']:!_0x13b8c7['value'];_0x4ea4ce['change'](()=>{const _0x3d55d1=Array['from'](_0x24bb75['getRanges']());for(const _0x2f94d7 of _0x3d55d1){const _0x55a5f2=_0x37390d?[_0x2f94d7]:io(_0x51d968,_0x2f94d7,_0x4ea4ce);for(const _0x433637 of _0x55a5f2)_0x33f802['markInlineFormat'](_0x433637,{'commandName':_0x51d968,'commandParams':[{'forceValue':_0x37390d}]});}});}),_0x33f802['descriptionFactory']['registerDescriptionCallback'](_0x976304=>{if('formatBlock'!=_0x976304['type']&&'formatInline'!=_0x976304['type'])return;const {data:_0x687476}=_0x976304;return _0x687476&&_0x687476['commandName']==_0x51d968?_0x687476['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xe24521,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0xe24521,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x4a3f61{['afterInit'](){const _0x5d0324=this['editor'];if(!_0x5d0324['plugins']['has']('Style')||!_0x5d0324['plugins']['has']('DataSchema'))return;const _0x11c9e0=_0x5d0324['plugins']['get']('TrackChangesEditing'),_0x56dc8e=_0x5d0324['locale'],_0x11e164=_0x5d0324['config']['get']('style')||{},_0x4069dc=_0x5d0324['plugins']['get']('GeneralHtmlSupport'),_0x38f776=_0x5d0324['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5d0324['plugins']['get']('DataSchema'),_0x11e164['definitions']);_0x11c9e0['enableDefaultAttributesIntegration']('style');const _0x404ec7=new Set();for(const _0x10214e of _0x38f776['block']){const _0x24a7f7=_0x4069dc['getGhsAttributeNameForElement'](_0x10214e['element']);_0x404ec7['add'](_0x24a7f7);}const _0x26a1d2=new Set();for(const _0x45ebe8 of _0x38f776['inline']){const _0x4e60be=_0x4069dc['getGhsAttributeNameForElement'](_0x45ebe8['element']);_0x26a1d2['add'](_0x4e60be);for(const _0x521618 of _0x45ebe8['ghsAttributes'])_0x26a1d2['add'](_0x521618);}for(const _0x5b7b88 of _0x404ec7)_0x11c9e0['registerBlockAttribute'](_0x5b7b88),_0x11c9e0['descriptionFactory']['registerAttributeLabel'](_0x5b7b88,c(_0x56dc8e,'FORMAT_STYLE'));for(const _0x310b50 of _0x26a1d2)_0x11c9e0['registerInlineAttribute'](_0x310b50),_0x11c9e0['descriptionFactory']['registerAttributeLabel'](_0x310b50,c(_0x56dc8e,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5db23f=this['editor'],_0x7d677=_0x5db23f['locale'];_0x5db23f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fe031=>{if('formatBlock'!=_0x2fe031['type']&&'formatInline'!=_0x2fe031['type'])return;const {data:_0xf93c4f}=_0x2fe031;return _0xf93c4f&&'style'===_0xf93c4f['commandName']?_0xf93c4f['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x7d677,'*Set\x20format:*\x20%0',_0xf93c4f['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x7d677,'*Remove\x20format:*\x20%0',_0xf93c4f['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x4a3f61{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2f08ee){super(_0x2f08ee),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x396285=this['editor'],_0x2fdaee=_0x396285['model']['document']['selection'];if(!_0x396285['plugins']['has']('TableEditing'))return;const _0x418dd4=_0x396285['locale'],_0x5e5fd3=_0x396285['plugins']['get']('TrackChangesEditing'),_0x2570f0=_0x396285['plugins']['get']('TableUtils');_0x5e5fd3['descriptionFactory']['registerElementLabel']('table',_0xec6cac=>c(_0x418dd4,'ELEMENT_TABLE',_0xec6cac)),this['_setupColumnsRowsFixing'](),_0x5e5fd3['enableCommand']('insertTable'),_0x5e5fd3['enableCommand']('selectTableRow'),_0x5e5fd3['enableCommand']('selectTableColumn');for(const _0x59dc2d of['insertTableRowAbove','insertTableRowBelow']){const _0x2836dc=_0x396285['commands']['get'](_0x59dc2d);_0x5e5fd3['enableCommand'](_0x59dc2d,_0x27c623=>{_0x396285['model']['change'](_0x4168d0=>{_0x27c623();const _0x4bc963='above'===_0x2836dc['order'],_0x3c3a66=_0x2570f0['getSelectionAffectedTableCells'](_0x2fdaee),_0x873434=_0x2570f0['getRowIndexes'](_0x3c3a66),_0x58e940=_0x4bc963?_0x873434['first']-0x1:_0x873434['last']+0x1,_0x5a7bb8=_0x3c3a66[0x0]['findAncestor']('table'),_0x2b3363=_0x2570f0['createTableWalker'](_0x5a7bb8,{'startRow':_0x58e940,'endRow':_0x58e940}),_0x4b9b61=Array['from'](_0x2b3363)['map'](_0x3ceed3=>_0x4168d0['createRangeOn'](_0x3ceed3['cell']));_0x5e5fd3['markMultiRangeInsertion'](_0x4b9b61,'tableRow');});});}for(const _0x22299a of['insertTableColumnLeft','insertTableColumnRight']){const _0x513bc4=_0x396285['commands']['get'](_0x22299a);_0x5e5fd3['enableCommand'](_0x22299a,_0x420c14=>{_0x396285['model']['change'](_0x9e0f75=>{_0x420c14();const _0xe0e4ef='left'===_0x513bc4['order'],_0x4a418b=_0x2570f0['getSelectionAffectedTableCells'](_0x2fdaee),_0x16b068=_0x2570f0['getColumnIndexes'](_0x4a418b),_0x1cc751=_0xe0e4ef?_0x16b068['first']-0x1:_0x16b068['last']+0x1,_0x40c6f4=_0x4a418b[0x0]['findAncestor']('table'),_0x2104c5=_0x2570f0['createTableWalker'](_0x40c6f4,{'startRow':0x0,'column':_0x1cc751,'includeAllSlots':!0x1}),_0x5325e2=Array['from'](_0x2104c5)['map'](_0x58d6f5=>_0x9e0f75['createRangeOn'](_0x58d6f5['cell']));_0x5e5fd3['markMultiRangeInsertion'](_0x5325e2,'tableColumn');});});}for(const _0xcf6c62 of['removeTableRow','removeTableColumn']){const _0x3d54fd=_0xcf6c62['substr'](0xb),_0x484937=_0x3d54fd['toLowerCase'](),_0x2a8ae0=_0x484937['substr'](0x0,0x3)+'span',_0x50c1d7='table'+_0x3d54fd,_0x4abf24='min'+_0x3d54fd,_0x148573='max'+_0x3d54fd;_0x5e5fd3['enableCommand'](_0xcf6c62,()=>{_0x396285['model']['change'](_0x470ee3=>{const _0x2e2713=_0x2570f0['getSelectionAffectedTableCells'](_0x2fdaee),_0x4636df=_0x2e2713[0x0]['findAncestor']('table');let _0x2e81d8;if('removeTableRow'==_0xcf6c62){const _0x738a41=_0x2570f0['getRowIndexes'](_0x2e2713);_0x2e81d8={'startRow':_0x738a41['first'],'endRow':_0x738a41['last'],'includeAllSlots':!0x0};}else{const _0x50fc51=_0x2570f0['getColumnIndexes'](_0x2e2713);_0x2e81d8={'startColumn':_0x50fc51['first'],'endColumn':_0x50fc51['last'],'includeAllSlots':!0x0};}const _0x115d91=_0x2570f0['createTableWalker'](_0x4636df,_0x2e81d8),_0x37bc93=Array['from'](_0x115d91)['map'](({cell:_0x4ec306})=>_0x4ec306),_0x2b5b9e=Ne(_0x37bc93['filter'](_0x25e1f3=>_0x25e1f3['hasAttribute'](_0x2a8ae0))),_0x564221=Ne(_0x37bc93['filter'](_0x3164cc=>!_0x3164cc['hasAttribute'](_0x2a8ae0)))['map'](_0x5b7f0b=>_0x470ee3['createRangeOn'](_0x5b7f0b)),_0xb1ed80=_0x5e5fd3['markMultiRangeDeletion'](_0x564221,_0x50c1d7);if(_0xb1ed80&&('tableRow'==_0xb1ed80['subType']||'tableColumn'==_0xb1ed80['subType'])){const _0x1fe4df=this['_getSuggestionCoords'](_0xb1ed80);for(const _0xc2c521 of _0x2b5b9e){const _0x14a886=_0x470ee3['createRangeOn'](_0xc2c521),_0x23814e=_0x2570f0['getCellLocation'](_0xc2c521),_0x2b4d52=_0xc2c521['getAttribute'](_0x2a8ae0)-0x1,_0x2e4566=_0x1fe4df[_0x4abf24],_0x257bae=_0x1fe4df[_0x148573];_0x2e4566<=_0x23814e[_0x484937]&&_0x23814e[_0x484937]+_0x2b4d52<=_0x257bae&&_0xb1ed80['addRange'](_0x14a886);}}});});}function _0x2909dc(_0x20cd6b){const _0x4055d2=Array['from'](_0x2fdaee['getRanges']())['map'](_0x331aff=>_0x36f06e['fromRange'](_0x331aff));_0x396285['model']['change'](_0x143f24=>{const _0x441ed4=_0x143f24['batch'];_0x20cd6b=_0x20cd6b['filter'](_0x2fe956=>'$graveyard'!=_0x2fe956['root']['rootName']),_0x143f24['setSelection'](_0x20cd6b),_0x396285['commands']['get']('removeTableRow')['refresh'](),_0x396285['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x396285['model']['enqueueChange'](()=>{_0x396285['model']['enqueueChange'](_0x441ed4,_0x542abd=>{const _0x30895a=_0x4055d2['filter'](_0x22d134=>'$graveyard'!=_0x22d134['root']['rootName']);_0x30895a['length']>0x0&&_0x542abd['setSelection'](_0x30895a);for(const _0xe91abf of _0x4055d2)_0xe91abf['detach']();});});});}function _0x51d3e5(_0x2140a8){_0x396285['model']['change'](_0x34dc09=>{const _0x55064e=Array['from'](_0x2fdaee['getRanges']())['map'](_0x2e7930=>_0x36f06e['fromRange'](_0x2e7930)),_0x168df9=[];for(const _0x57ee7f of _0x2140a8)for(const _0x254a1f of _0x57ee7f['getItems']({'shallow':!0x0}))_0x168df9['push'](_0x254a1f);for(const _0xa5015c of _0x168df9)'$graveyard'!=_0xa5015c['root']['rootName']&&(_0x34dc09['setSelection'](_0x34dc09['createPositionAt'](_0xa5015c,0x0)),_0x396285['commands']['get']('removeTableColumn')['refresh'](),_0x396285['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3c84c7=_0x55064e['filter'](_0x226bc5=>'$graveyard'!=_0x226bc5['root']['rootName']);_0x3c84c7['length']>0x0&&_0x34dc09['setSelection'](_0x3c84c7);for(const _0x56e898 of _0x55064e)_0x56e898['detach']();});}function _0x4a7ce7(_0x15b51c,_0x453acd){return _0x453acd['every'](_0x23ccb5=>_0x15b51c['some'](_0x210053=>_0x210053['end']['isEqual'](_0x23ccb5['start'])||_0x23ccb5['end']['isEqual'](_0x210053['start'])));}function _0x21f94f(_0x1a2245,_0x22f5f7){return!_0x1a2245['some'](_0xf85124=>_0x22f5f7['some'](_0x3ceb51=>_0xf85124['isIntersecting'](_0x3ceb51)))&&_0x1a2245['some'](_0x387706=>_0x22f5f7['some'](_0x5439e7=>_0x387706['end']['isTouching'](_0x5439e7['start'])));}_0x396285['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x521794,_0xef4e6e,_0x1b5cb9)=>{if(!_0x1b5cb9['options']['showSuggestionHighlights'])return;const _0x13939e=_0xef4e6e['item'];if(!_0x13939e)return;const _0x1b4bd7=_0x1b5cb9['mapper']['toViewElement'](_0x13939e);function _0x23a381(_0x5bddf9){return Array['isArray'](_0x5bddf9)?_0x5bddf9:[_0x5bddf9];}_0x1b4bd7&&'tableCell'===_0x13939e['name']&&_0xd3142e(_0x1b4bd7,_0x1b5cb9['writer'],(_0xad570d,_0x5a2be6,_0x2afc29)=>_0x2afc29['addClass'](_0x23a381(_0x5a2be6['classes']),_0xad570d),(_0x1b4864,_0x384aab,_0x5ec438)=>_0x5ec438['removeClass'](_0x23a381(_0x384aab['classes']),_0x1b4864));},{'priority':'highest'}),_0x5e5fd3['descriptionFactory']['registerDescriptionCallback'](_0x4b1de8=>{if('insertion'!=_0x4b1de8['type']&&'deletion'!=_0x4b1de8['type'])return;const _0x5ed1b5=_0x4b1de8['getContainedElement']();if(null!=_0x5ed1b5&&_0x5ed1b5['is']('element','table')){if('insertion'==_0x4b1de8['type']){const _0x57c770=_0x4b1de8['getItems']()['filter'](_0x58e45d=>_0x58e45d['is']('$textProxy'))['map'](_0x5349af=>_0x5349af['data']);if(_0x57c770['length'])return{'type':'insertion','content':c(_0x418dd4,'*Insert:*\x20%0',c(_0x418dd4,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x57c770['join']('\x20')+'\x22'))};}if('deletion'==_0x4b1de8['type']){const _0x38fc1c=_0x4b1de8['getItems']()['filter'](_0x37e04e=>_0x37e04e['is']('$textProxy'))['map'](_0x28a222=>_0x28a222['data']);if(_0x38fc1c['length'])return{'type':'deletion','content':c(_0x418dd4,'*Remove:*\x20%0',c(_0x418dd4,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x38fc1c['join']('\x20')+'\x22'))};}}}),_0x5e5fd3['descriptionFactory']['registerDescriptionCallback'](_0x4a2646=>{if('tableRow'==_0x4a2646['subType']){const _0x476b5f=_0x4a2646['getItems']()['filter'](_0x4830ea=>_0x4830ea['is']('$textProxy'))['map'](_0x4c8a31=>_0x4c8a31['data']),_0x5affe6=this['_getSuggestionCoords'](_0x4a2646),_0x3b7a36=_0x5affe6['maxRow']-_0x5affe6['minRow']+0x1;if('insertion'==_0x4a2646['type'])return _0x476b5f['length']?{'type':'insertion','content':c(_0x418dd4,'*Insert:*\x20%0',c(_0x418dd4,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3b7a36,'\x22'+_0x476b5f['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x418dd4,'*Insert:*\x20%0',c(_0x418dd4,'ELEMENT_TABLE_ROW',_0x3b7a36))};if('deletion'==_0x4a2646['type'])return _0x476b5f['length']?{'type':'deletion','content':c(_0x418dd4,'*Remove:*\x20%0',c(_0x418dd4,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3b7a36,'\x22'+_0x476b5f['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x418dd4,'*Remove:*\x20%0',c(_0x418dd4,'ELEMENT_TABLE_ROW',_0x3b7a36))};}if('tableColumn'==_0x4a2646['subType']){const _0x59b68d=_0x4a2646['getItems']()['filter'](_0x3cf7cd=>_0x3cf7cd['is']('$textProxy'))['map'](_0x511a8b=>_0x511a8b['data']),_0x28db9d=this['_getSuggestionCoords'](_0x4a2646),_0x4f49a0=_0x28db9d['maxColumn']-_0x28db9d['minColumn']+0x1;if('insertion'==_0x4a2646['type'])return _0x59b68d['length']?{'type':'insertion','content':c(_0x418dd4,'*Insert:*\x20%0',c(_0x418dd4,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4f49a0,'\x22'+_0x59b68d['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x418dd4,'*Insert:*\x20%0',c(_0x418dd4,'ELEMENT_TABLE_COLUMN',_0x4f49a0))};if('deletion'==_0x4a2646['type'])return _0x59b68d['length']?{'type':'deletion','content':c(_0x418dd4,'*Remove:*\x20%0',c(_0x418dd4,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4f49a0,'\x22'+_0x59b68d['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x418dd4,'*Remove:*\x20%0',c(_0x418dd4,'ELEMENT_TABLE_COLUMN',_0x4f49a0))};}}),_0x5e5fd3['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2909dc),_0x5e5fd3['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2909dc),_0x5e5fd3['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x51d3e5),_0x5e5fd3['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x51d3e5),_0x5e5fd3['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4a7ce7),_0x5e5fd3['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4a7ce7),_0x5e5fd3['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x21f94f),_0x5e5fd3['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x21f94f);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1c040c=this['editor'],_0x2104f1=_0x1c040c['model']['document']['selection'];return(_0x1fc937,_0x33110f)=>{_0x1c040c['model']['change'](_0x14a001=>{const {commandName:_0x41ffeb,commandParams:_0x201024}=_0x33110f;let _0x316ae3=_0x1fc937[0x0]['end']['nodeBefore'];_0x201024&&_0x201024[0x0]&&!0x1===_0x201024[0x0]['forceValue']&&(_0x316ae3=_0x1fc937[0x0]['start']['nodeAfter']);const _0x4da8a3=_0x14a001['createRangeIn'](_0x316ae3);if('$graveyard'==_0x4da8a3['root']['rootName'])return;const _0x4144be=Array['from'](_0x2104f1['getRanges']())['map'](_0x720fbd=>_0x36f06e['fromRange'](_0x720fbd));_0x14a001['setSelection'](_0x4da8a3),_0x1c040c['commands']['get'](_0x41ffeb)['refresh'](),_0x201024['push']({'forceDefaultExecution':!0x0}),_0x1c040c['execute'](_0x41ffeb,..._0x201024);const _0x26a14d=_0x4144be['filter'](_0xd69878=>'$graveyard'!=_0xd69878['root']['rootName']);_0x26a14d['length']>0x0&&_0x14a001['setSelection'](_0x26a14d);for(const _0x32e2a7 of _0x4144be)_0x32e2a7['detach']();});};}['_getCoordsForCells'](_0x296b7f){const _0xa30322=this['editor']['plugins']['get']('TableUtils');let _0x38b8ea=Number['MAX_SAFE_INTEGER'],_0x150154=Number['MIN_SAFE_INTEGER'],_0x1c1f1b=Number['MAX_SAFE_INTEGER'],_0x18e832=Number['MIN_SAFE_INTEGER'];for(const _0x3bf4f5 of _0x296b7f){if('$graveyard'==_0x3bf4f5['root']['rootName'])continue;const {row:_0x3cdadd,column:_0xe0f22a}=_0xa30322['getCellLocation'](_0x3bf4f5),_0x54bdab=_0x3bf4f5['hasAttribute']('rowspan')?_0x3bf4f5['getAttribute']('rowspan')-0x1:0x0,_0x5d5258=_0x3bf4f5['hasAttribute']('colspan')?_0x3bf4f5['getAttribute']('colspan')-0x1:0x0;_0x38b8ea=_0x3cdadd<_0x38b8ea?_0x3cdadd:_0x38b8ea,_0x150154=_0x3cdadd+_0x54bdab>_0x150154?_0x3cdadd+_0x54bdab:_0x150154,_0x1c1f1b=_0xe0f22a<_0x1c1f1b?_0xe0f22a:_0x1c1f1b,_0x18e832=_0xe0f22a+_0x5d5258>_0x18e832?_0xe0f22a+_0x5d5258:_0x18e832;}return{'minRow':_0x38b8ea,'maxRow':_0x150154,'minColumn':_0x1c1f1b,'maxColumn':_0x18e832};}['_setupColumnsRowsFixing'](){const _0x5cfbe5=this['editor'],_0x41e834=_0x5cfbe5['plugins']['get']('TrackChangesEditing'),_0x25644d=_0x5cfbe5['plugins']['get']('TableUtils');_0x5cfbe5['model']['document']['on']('change:data',()=>{const _0x265f93=Array['from'](_0x5cfbe5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x474278,data:_0xe6d052}of _0x265f93){const {group:_0x49bb45,id:_0x2c7e86,subType:_0x5205f1}=_0x41e834['_splitMarkerName'](_0x474278);if('suggestion'!=_0x49bb45)continue;if(null!=_0xe6d052['oldRange'])continue;const _0x3d0c7c=_0x41e834['getSuggestion'](_0x2c7e86);this['_tablePostFixingSubtypes']['includes'](_0x5205f1)&&this['_tableSuggestions']['add'](_0x3d0c7c);}},{'priority':'low'});const _0x2e42df=(_0x130920,_0x497fd2)=>{let _0x4778b2=!0x1;const _0x2ee1c1=_0x497fd2['createRangeOn'](_0x130920),_0x8e217b=_0x130920['findAncestor']('table'),_0x7b13be=_0x25644d['getCellLocation'](_0x130920);for(const _0xb51512 of this['_tableSuggestions']){const _0x404a13=_0xb51512['subType'],_0x2ee02d=_0x404a13['startsWith']('tablePaste'),_0x317668=_0x404a13['substr'](_0x2ee02d?0xa:0x5),_0x404748=_0x317668['toLowerCase'](),_0x20b085=_0x404748['substr'](0x0,0x3)+'span',_0x590e62='min'+_0x317668,_0x148012='max'+_0x317668;if(!_0xb51512['isInContent'])continue;if(_0x8e217b!=_0xb51512['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xb51512['isIntersectingWithRange'](_0x2ee1c1))continue;const _0x435c85=_0x130920['hasAttribute'](_0x20b085)?_0x130920['getAttribute'](_0x20b085)-0x1:0x0,_0x2b4826=this['_getSuggestionCoords'](_0xb51512),_0x426a61=_0x2b4826[_0x590e62],_0xe933cf=_0x2b4826[_0x148012];_0x426a61<=_0x7b13be[_0x404748]&&_0x7b13be[_0x404748]+_0x435c85<=_0xe933cf&&(_0xb51512['addRange'](_0x2ee1c1),_0x4778b2=!0x0);}return _0x4778b2;};_0x5cfbe5['model']['document']['registerPostFixer'](_0x5bea47=>{let _0x1345d0=!0x1;for(const _0x518d95 of _0x5cfbe5['model']['document']['differ']['getChanges']())if('insert'==_0x518d95['type']){if('tableRow'==_0x518d95['name']){for(const _0x268187 of _0x518d95['position']['nodeAfter']['getChildren']())_0x1345d0=_0x1345d0||_0x2e42df(_0x268187,_0x5bea47);}else'tableCell'==_0x518d95['name']&&(_0x1345d0=_0x1345d0||_0x2e42df(_0x518d95['position']['nodeAfter'],_0x5bea47));}return _0x1345d0;});}['_getSuggestionCoords'](_0x119148){return this['_getCoordsForCells'](_0x119148['getRanges']()['map'](_0x534082=>_0x534082['start']['nodeAfter']));}}function Ne(_0x4672d3){return Array['from'](new Set(_0x4672d3)['values']());}class Nt extends _0x4a3f61{static get['requires'](){return[Ct];}['afterInit'](){const _0x18946b=this['editor'],_0x468b2f=_0x18946b['model']['document']['selection'],_0x48ea58=_0x18946b['locale'];if(!_0x18946b['plugins']['has']('TableEditing'))return;const _0x28dcca=_0x18946b['plugins']['get']('TrackChangesEditing'),_0x4a2a1e=_0x18946b['plugins']['get']('TableUtils'),_0x935079=_0x18946b['plugins']['get'](Ct);_0x935079['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x28dcca['enableCommand']('mergeTableCells',()=>{const _0x100770=_0x4a2a1e['getSelectionAffectedTableCells'](_0x18946b['model']['document']['selection']);_0x18946b['model']['change'](()=>{_0x28dcca['markMultiRangeBlockFormat'](_0x100770,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x18946b['commands']['get']('mergeTableCells')['on']('execute',(_0x168872,_0x275d46)=>{_0x18946b['commands']['get']('trackChanges')['value']&&(_0x275d46['length']>0x0&&_0x275d46[_0x275d46['length']-0x1]&&_0x275d46[_0x275d46['length']-0x1]['forceDefaultExecution']||_0x28dcca['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x168872['stop']());},{'priority':'highest'});for(const _0x47937b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x439abf=_0x18946b['commands']['get'](_0x47937b);_0x28dcca['enableCommand'](_0x47937b,()=>{const _0x554ab6=_0x18946b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x721fa=>_0x721fa['is']('element','tableCell')),_0x12bb28=_0x439abf['value'];_0x18946b['model']['change'](()=>{_0x28dcca['markMultiRangeBlockFormat']([_0x554ab6,_0x12bb28],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0xff8725 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x11d1b8=_0x18946b['commands']['get'](_0xff8725);_0x28dcca['enableCommand'](_0xff8725,()=>{const _0x27c272=_0x4a2a1e['getSelectionAffectedTableCells'](_0x18946b['model']['document']['selection'])[0x0],_0x3c9574=_0x27c272['findAncestor']('table'),{column:_0x32c6f6,row:_0x219dc6}=_0x4a2a1e['getCellLocation'](_0x27c272);let _0x95116a=[];if('horizontally'==_0x11d1b8['direction']){const _0x28e698=_0x4a2a1e['createTableWalker'](_0x3c9574,{'startRow':_0x219dc6,'endRow':_0x219dc6,'includeAllSlots':!0x0});_0x95116a=Array['from'](_0x28e698)['map'](_0x2c3403=>_0x2c3403['cell']);}else{const _0x20354f=_0x4a2a1e['createTableWalker'](_0x3c9574,{'column':_0x32c6f6,'includeAllSlots':!0x0});_0x95116a=Array['from'](_0x20354f)['map'](_0x325e06=>_0x325e06['cell']);}_0x18946b['model']['change'](_0x5e0d90=>{_0x28dcca['markBlockFormat'](_0x5e0d90['createRangeOn'](_0x27c272),{'commandName':_0xff8725,'commandParams':[]},_0x95116a,_0xff8725);});});}_0x28dcca['descriptionFactory']['registerDescriptionCallback'](_0x212d1c=>{if('formatBlock'!=_0x212d1c['type']&&'formatInline'!=_0x212d1c['type'])return;const {data:_0x59cb6e}=_0x212d1c;return _0x59cb6e&&'mergeTableCells'==_0x59cb6e['commandName']?{'type':'format','content':c(_0x48ea58,'*Merge\x20cells*')}:void 0x0;}),_0x28dcca['descriptionFactory']['registerDescriptionCallback'](_0x2037a8=>{if('formatBlock'!=_0x2037a8['type']&&'formatInline'!=_0x2037a8['type'])return;const {data:_0x553f1e}=_0x2037a8;return _0x553f1e?'splitTableCellVertically'==_0x553f1e['commandName']?{'type':'format','content':c(_0x48ea58,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x553f1e['commandName']?{'type':'format','content':c(_0x48ea58,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x271277=_0x935079['_acceptFormatSuggestionCallbackFactory']();for(const _0x2507c0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x28dcca['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2507c0,'accept',_0x271277);for(const _0x46d7f7 of['splitTableCellVertically','splitTableCellHorizontally'])_0x28dcca['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x46d7f7,'accept',_0x271277);_0x28dcca['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5c4a77=>{_0x18946b['model']['change'](_0x1725f9=>{const _0x18b298=Array['from'](_0x468b2f['getRanges']())['map'](_0x17d124=>_0x36f06e['fromRange'](_0x17d124));_0x1725f9['setSelection'](_0x5c4a77),_0x18946b['commands']['get']('mergeTableCells')['refresh'](),_0x18946b['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x17cd57=_0x18b298['filter'](_0x4c8707=>'$graveyard'!=_0x4c8707['root']['rootName']);_0x17cd57['length']>0x0&&_0x1725f9['setSelection'](_0x17cd57);for(const _0x3fdd85 of _0x18b298)_0x3fdd85['detach']();});});for(const _0x4a0629 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x183408=_0x18946b['commands']['get'](_0x4a0629);_0x183408['on']('set:isEnabled',(_0x2a31d6,_0x1fd81d,_0x95d62)=>{if(_0x95d62){const _0x4b59b3=_0x18946b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1f2dd5=>_0x1f2dd5['is']('element','tableCell'));this['_areMergableCells'](_0x183408['value'],_0x4b59b3)||(_0x2a31d6['return']=!0x1,_0x2a31d6['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x91004c=this['editor']['commands']['get']('mergeTableCells'),_0x1525d4=this['editor']['plugins']['get']('TableUtils');if(!_0x91004c['isEnabled'])return!0x1;const _0x38e6b4=_0x1525d4['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5b055d of _0x38e6b4)for(const _0x481ef0 of _0x38e6b4)if(_0x5b055d!=_0x481ef0&&!this['_areMergableCells'](_0x5b055d,_0x481ef0))return!0x1;return!0x0;}['_areMergableCells'](_0x331f95,_0x2d4aac){const _0x46eaa1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x527838=this['editor']['model']['createRangeOn'](_0x331f95),_0x1e5917=this['editor']['model']['createRangeOn'](_0x2d4aac),_0x4ff050=new Set(),_0x1bf3d2=new Set();for(const _0x58a467 of _0x46eaa1['getSuggestions']())if(('insertion'==_0x58a467['type']||'deletion'==_0x58a467['type']||'mergeTableCells'==_0x58a467['subType'])&&_0x58a467['isInContent']){for(const _0x114b8f of _0x58a467['getRanges']())_0x114b8f['containsRange'](_0x527838,!0x0)&&_0x4ff050['add'](_0x58a467['type']+':'+_0x58a467['author']['id']),_0x114b8f['containsRange'](_0x1e5917,!0x0)&&_0x1bf3d2['add'](_0x58a467['type']+':'+_0x58a467['author']['id']);}if(_0x4ff050['size']!=_0x1bf3d2['size'])return!0x1;for(const _0x467e37 of _0x4ff050)if(!_0x1bf3d2['has'](_0x467e37))return!0x1;return!0x0;}}class Dt extends _0x4a3f61{static get['requires'](){return[Ct];}['afterInit'](){const _0xc7600f=this['editor'];if(!_0xc7600f['plugins']['has']('TableEditing'))return;const _0x3dc77e=_0xc7600f['locale'],_0x3473f3=_0xc7600f['plugins']['get']('TrackChangesEditing');_0x3473f3['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3473f3['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3473f3['registerBlockAttribute']('headingRows'),_0x3473f3['registerBlockAttribute']('headingColumns'),_0x3473f3['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x3dc77e,'FORMAT_HEADER_ROW')),_0x3473f3['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x3dc77e,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x37ae80=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5aee7e=this['editor']['plugins']['get']('TableUtils'),_0x4d59bd=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0xd480be({showActiveMarker:_0x14c9e4=!0x0,setDataAttribute:_0x494132=!0x0}={}){return(_0x290a82,_0x16273d,_0x5d7d84)=>{const {type:_0x833a95,id:_0x1656cc}=_0x37ae80['_splitMarkerName'](_0x16273d['markerName']),_0x16570e=_0x37ae80['getSuggestion'](_0x1656cc),_0x91935=_0x16570e['data'];if('formatBlock'!=_0x16570e['type']||!_0x91935||'setTableColumnHeader'!=_0x91935['commandName'])return;if(_0x16273d['item'])return void _0x290a82['stop']();if(!_0x5d7d84['consumable']['consume'](_0x16273d['markerRange'],_0x290a82['name']))return;const _0xba74b5=_0x16273d['markerRange']['start']['nodeAfter'],_0x1967cb=_0x16273d['markerRange']['end']['nodeBefore'],_0x2db026=_0xba74b5['parent']['parent'],{column:_0x2b9265}=_0x5aee7e['getCellLocation'](_0xba74b5),{column:_0x3d46b6}=_0x5aee7e['getCellLocation'](_0x1967cb);for(let _0x1a737f=_0x2b9265;_0x1a737f<=_0x3d46b6;_0x1a737f++){const _0x5bfc25=_0x5aee7e['createTableWalker'](_0x2db026,{'column':_0x1a737f,'includeAllSlots':!0x1});for(const _0x590de8 of _0x5bfc25){const _0x4683bb=_0x590de8['cell'],_0x2039eb=_0x5d7d84['mapper']['toViewElement'](_0x4683bb);_0x5d7d84['writer']['addClass']('ck-suggestion-marker-'+_0x833a95,_0x2039eb),_0x494132&&_0x5d7d84['writer']['setAttribute']('data-suggestion',_0x1656cc,_0x2039eb),_0x5d7d84['mapper']['bindElementToMarker'](_0x2039eb,_0x16273d['markerName']),_0x14c9e4&&(_0x37ae80['activeMarkers']['includes'](_0x16273d['markerName'])?_0x5d7d84['writer']['addClass']('ck-suggestion-marker--active',_0x2039eb):_0x5d7d84['writer']['removeClass']('ck-suggestion-marker--active',_0x2039eb));}}};}_0x37ae80['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4d59bd),_0x37ae80['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4d59bd),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xd480be(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x294a54,_0xcacb6b,_0xcead71)=>{_0xcead71['options']['showSuggestionHighlights']&&_0xd480be({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x294a54,_0xcacb6b,_0xcead71);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1f48cd,_0x359df0,_0x5a1f5b)=>{const {type:_0x5166a1,id:_0x301d7a}=_0x37ae80['_splitMarkerName'](_0x359df0['markerName']),_0x125610=_0x37ae80['getSuggestion'](_0x301d7a),_0x5ada32=_0x125610['data'];if('formatBlock'!=_0x125610['type']||!_0x5ada32||'setTableColumnHeader'!=_0x5ada32['commandName'])return;const _0x165881=_0x5a1f5b['mapper']['markerNameToElements'](_0x359df0['markerName']);if(_0x165881){for(const _0x220303 of _0x165881)_0x5a1f5b['writer']['removeClass']('ck-suggestion-marker-'+_0x5166a1,_0x220303),_0x5a1f5b['writer']['removeClass']('ck-suggestion-marker--active',_0x220303),_0x5a1f5b['writer']['removeAttribute']('data-suggestion',_0x220303),_0x5a1f5b['mapper']['unbindElementFromMarkerName'](_0x220303,_0x359df0['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x254d63=this['editor'],_0xaf64d3=_0x254d63['locale'];function _0x4efb2c(_0x13a241){return{'type':'format','content':c(_0xaf64d3,'*Format:*\x20%0',_0x13a241)};}_0x254d63['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e5dda=>{if('formatBlock'!=_0x2e5dda['type'])return;const {data:_0x448d01}=_0x2e5dda;if(_0x448d01){if('setTableRowHeader'==_0x448d01['commandName']){const _0x50c490=_0x448d01['commandParams'][0x0]['forceValue'];return _0x4efb2c(c(_0xaf64d3,_0x50c490?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x448d01['commandName']){const _0x3550a0=_0x448d01['commandParams'][0x0]['forceValue'];return _0x4efb2c(c(_0xaf64d3,_0x3550a0?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x4a3f61{['afterInit'](){const _0x1648f5=this['editor'],_0x49d631=_0x1648f5['locale'],_0x4b4d4a=_0x1648f5['plugins']['get']('TrackChangesEditing');function _0x4c7b8d(_0x324e42){return{'type':'format','content':''+c(_0x49d631,'*Set\x20table\x20type:*\x20%0',_0x324e42)};}_0x1648f5['plugins']['has']('TableLayout')&&(_0x4b4d4a['enableCommand']('insertTableLayout'),_0x4b4d4a['enableDefaultAttributesIntegration']('tableType'),_0x4b4d4a['registerBlockAttribute']('tableType'),_0x4b4d4a['descriptionFactory']['registerElementLabel'](_0x2f2655=>_0x2f2655['is']('element','table')&&'layout'===_0x2f2655['getAttribute']('tableType'),_0x5b2af6=>c(_0x49d631,'ELEMENT_LAYOUT_TABLE',_0x5b2af6)),_0x4b4d4a['descriptionFactory']['registerDescriptionCallback'](_0x3090cc=>{const {data:_0x2593a0}=_0x3090cc;if(_0x2593a0&&'tableType'==_0x2593a0['key'])switch(_0x2593a0['newValue']){case'layout':return _0x4c7b8d(c(_0x49d631,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x4c7b8d(c(_0x49d631,'ELEMENT_CONTENT_TABLE'));}}));}}const xe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Oe=Object['fromEntries'](xe['map'](_0xe1d098=>[_0xe1d098,null]));class $t extends _0x4a3f61{static get['requires'](){return[Ct];}['afterInit'](){const _0x309545=this['editor'];if(!_0x309545['plugins']['has']('TableClipboard'))return;const _0x3b2726=_0x309545['plugins']['get']('TrackChangesEditing'),_0x58d1a7=_0x309545['plugins']['get']('TableUtils'),_0x3fa9a6=_0x309545['plugins']['get'](Ct),_0x49a939=_0x309545['plugins']['get']('TableClipboard'),_0x17e803=_0x309545['plugins']['get']('TableSelection'),_0x168778=_0x309545['plugins']['get'](_0x363c90);_0x3fa9a6['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x309545['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x309545['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3821cc=null,_0x46c90a=!0x1;_0x168778['on']('contentInsertion',(_0x161728,_0x56e52b)=>{_0x46c90a='paste'===_0x56e52b['method'];}),_0x309545['model']['on']('insertContent',(_0x19fbe8,_0x1f21ea)=>{if(!_0x46c90a&&null===_0x17e803['getSelectedTableCells']())return;const [_0x5430ca,_0x5d1fd3]=_0x1f21ea,_0x597d1d=_0x1f21ea[_0x1f21ea['length']-0x1];_0x597d1d&&_0x597d1d['forceDefaultExecution']||_0x3b2726['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xf4027c,_0xcea150,_0x1e616a,_0x1e766b,_0x2b0eb5){if(_0xcea150&&!_0xcea150['is']('documentSelection'))return!0x1;const _0x19e59c=_0x2b0eb5['getTableIfOnlyTableInContent'](_0xf4027c,_0x1e616a);if(!_0x19e59c||!De(_0x19e59c,void 0x0,_0x1e766b))return!0x1;const _0x4c36db=_0x1e766b['getSelectionAffectedTableCells'](_0x1e616a['document']['selection']);if(!_0x4c36db['length'])return!0x1;const _0x5c176d=_0x4c36db[0x0]['findAncestor']('table'),_0x496864=_0x1e766b['getRowIndexes'](_0x4c36db),_0x2dc887=_0x1e766b['getColumnIndexes'](_0x4c36db),_0x40ba26={'startRow':_0x496864['first'],'endRow':_0x496864['last'],'startColumn':_0x2dc887['first'],'endColumn':_0x2dc887['last']};return 0x1==_0x4c36db['length']&&(_0x40ba26['endRow']+=_0x1e766b['getRows'](_0x19e59c)-0x1,_0x40ba26['endColumn']+=_0x1e766b['getColumns'](_0x19e59c)-0x1),De(_0x5c176d,_0x40ba26,_0x1e766b);}(_0x5430ca,_0x5d1fd3,_0x309545['model'],_0x58d1a7,_0x49a939)&&(_0x19fbe8['stop'](),_0x3821cc={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x309545['model']['change'](()=>{_0x309545['model']['insertContent'](_0x1f21ea[0x0],_0x1f21ea[0x1],_0x1f21ea[0x2],{'forceDefaultExecution':!0x0});const _0x504630=_0x5ae980(),{rowInsertionRanges:_0x4c4100,columnInsertionRanges:_0x21d15f,insertionRanges:_0x2c1366,deletionRanges:_0x295446,cells:_0x403a05}=_0x3821cc;_0x4c4100['length']&&_0x3b2726['markMultiRangeInsertion'](_0x4c4100,'tablePasteRow',{'tablePasteChainId':_0x504630}),_0x21d15f['length']&&_0x3b2726['markMultiRangeInsertion'](_0x21d15f,'tablePasteColumn',{'tablePasteChainId':_0x504630}),_0x2c1366['length']&&(_0x3b2726['markMultiRangeInsertion'](_0x2c1366,'tablePaste',{'tablePasteChainId':_0x504630,'skipNestingCheck':!0x0}),_0x2c1366['forEach'](_0x3f88ba=>_0x3f88ba['detach']?.())),_0x295446['length']&&(_0x3b2726['markMultiRangeDeletion'](_0x295446,'tablePaste',{'tablePasteChainId':_0x504630,'skipNestingCheck':!0x0}),_0x295446['forEach'](_0x33e3e1=>_0x33e3e1['detach']?.()));const _0x3c210a=_0x3b2726['markMultiRangeBlockFormat'](_0x403a05['map'](({element:_0x3d4435})=>_0x3d4435),{'formatGroupId':_0x5ae980()},[],'tablePasteCell',{'tablePasteChainId':_0x504630});if(_0x3c210a){const _0x8689f7=_0x3c210a['getMarkers'](),_0x2a8328=[];for(const {element:_0xd2a609,attributes:_0x46b342}of _0x403a05){if(!_0x46b342)continue;const _0x14e9ab=_0x309545['model']['createRangeOn'](_0xd2a609),_0x87a8ff=_0x8689f7['find'](_0x35cf66=>_0x35cf66['getRange']()['isEqual'](_0x14e9ab));_0x87a8ff&&_0x2a8328['push']([_0x87a8ff['name'],_0x46b342]);}_0x2a8328['length']&&_0x3c210a['setAttribute']('markerAttributes',Object['fromEntries'](_0x2a8328));}_0x3821cc=null;}));},{'priority':_0x3ea4f5['high']+0xa}),_0x168778['on']('contentInsertion',()=>{_0x46c90a=!0x1;},{'priority':'lowest'}),_0x309545['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x58f995,_0x441239)=>{const [_0x3eed43,_0x5f38bf,,_0x1776e6]=_0x441239;if(!_0x3821cc)return;_0x58f995['stop']();const _0x1b290e=_0x3eed43['cell'],_0x367c65=_0x5f38bf,_0x5e13a5=Ue(_0x1b290e),_0x5a558f=Ue(_0x367c65);_0x58f995['return']=_0x1b290e;let _0x5c6c36=null,_0x14a854=null;if(_0x5a558f||_0x5e13a5){if(_0x5e13a5&&!_0x5a558f){_0x1776e6['remove'](_0x1b290e['getChild'](0x0));for(const _0x329421 of Array['from'](_0x367c65['getChildren']()))_0x1776e6['insert'](_0x329421,_0x1b290e,'end');const _0x26d3ff=_0x3821cc['rowInsertionIndexes']['includes'](_0x3eed43['row']),_0xdb2499=_0x3821cc['columnInsertionIndexes']['includes'](_0x3eed43['column']);_0x26d3ff||_0xdb2499||(_0x5c6c36=_0x36f06e['fromRange'](_0x1776e6['createRangeIn'](_0x1b290e)));}else _0x5a558f&&!_0x5e13a5&&(_0x14a854=_0x1776e6['createRangeIn'](_0x1b290e));}else{const _0x17baf2=_0x1776e6['createElement']('tableCellSuggestion'),_0x1b0f43=_0x1776e6['createElement']('tableCellSuggestion');_0x1776e6['wrap'](_0x1776e6['createRangeIn'](_0x1b290e),_0x1b0f43),_0x1776e6['insert'](_0x17baf2,_0x1b290e,0x0);for(const _0x537d51 of Array['from'](_0x367c65['getChildren']()))_0x1776e6['insert'](_0x537d51,_0x17baf2,'end');_0x5c6c36=_0x36f06e['fromRange'](_0x1776e6['createRangeOn'](_0x17baf2)),_0x14a854=_0x36f06e['fromRange'](_0x1776e6['createRangeOn'](_0x1b0f43));}const _0x12419f=Array['from'](_0x367c65['getAttributes']())['filter'](([_0xf873e3])=>xe['includes'](_0xf873e3));_0x3821cc['cells']['push']({'element':_0x1b290e,'attributes':_0x12419f['length']?Object['fromEntries'](_0x12419f):null}),_0x5c6c36&&_0x3821cc['insertionRanges']['push'](_0x5c6c36),_0x14a854&&_0x3821cc['deletionRanges']['push'](_0x14a854);},{'priority':'high'}),_0x58d1a7['on']('insertColumns',(_0x425ad4,_0x4b0c31)=>{const [_0x2edfa8,_0x19e768={}]=_0x4b0c31;if(!_0x3821cc)return;const _0x2fbd01=_0x19e768['at']||0x0,_0x3215bf=_0x19e768['columns']||0x1;_0x3821cc['columnInsertionIndexes']=new Array(_0x3215bf)['fill'](_0x2fbd01)['map']((_0x42e257,_0x8aff9c)=>_0x42e257+_0x8aff9c);for(const {cell:_0xa8a787}of _0x58d1a7['createTableWalker'](_0x2edfa8,{'startColumn':_0x2fbd01,'endColumn':_0x2fbd01+_0x3215bf-0x1}))_0x3821cc['columnInsertionRanges']['push'](_0x309545['model']['createRangeOn'](_0xa8a787));},{'priority':'low'}),_0x58d1a7['on']('insertRows',(_0x20be5d,_0xca4283)=>{const [_0x1a07e6,_0x3dfa0d={}]=_0xca4283;if(!_0x3821cc)return;const _0x39087f=_0x3dfa0d['at']||0x0,_0x11fa9d=_0x3dfa0d['rows']||0x1;_0x3821cc['rowInsertionIndexes']=new Array(_0x11fa9d)['fill'](_0x39087f)['map']((_0x3a8acd,_0x12dc04)=>_0x3a8acd+_0x12dc04);for(const {cell:_0x4207f2}of _0x58d1a7['createTableWalker'](_0x1a07e6,{'startRow':_0x39087f,'endRow':_0x39087f+_0x11fa9d-0x1}))_0x3821cc['rowInsertionRanges']['push'](_0x309545['model']['createRangeOn'](_0x4207f2));},{'priority':'low'}),_0x3b2726['descriptionFactory']['registerDescriptionCallback'](_0x5926a8=>{if(_0x5926a8['subType']&&_0x5926a8['subType']['startsWith']('tablePaste'))return _0x5926a8['previous']?{}:{'type':'insertion','content':c(_0x309545['locale'],'*Replace\x20table\x20cells*')};});const _0x5c9256=()=>!0x1;for(const _0x353d6d of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3b2726['_suggestionFactory']['registerCustomCallback']('insertion',_0x353d6d,'join',_0x5c9256),_0x3b2726['_suggestionFactory']['registerCustomCallback']('deletion',_0x353d6d,'join',_0x5c9256),_0x3b2726['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x353d6d,'join',_0x5c9256);_0x3b2726['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5c9256),_0x3b2726['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1d861b,_0x51f47b,_0x3368a9)=>{const _0x13e4c0=_0x1d861b['map'](_0x3c1e69=>_0x3c1e69['getContainedElement']())['filter'](_0x132b8a=>_0x132b8a),_0x1931d3=new Map(_0x13e4c0['map'](_0x9ecbe8=>[_0x9ecbe8,null]));if(_0x3821cc){for(const {element:_0x17b032,attributes:_0x5cde0d}of _0x3821cc['cells'])_0x5cde0d&&_0x1931d3['set'](_0x17b032,_0x5cde0d);}else{if(_0x3368a9&&_0x3368a9['markerAttributes'])for(const [_0x4ed8d1,_0x24a720]of Object['entries'](_0x3368a9['markerAttributes'])){const _0x5932e3=_0x309545['model']['markers']['get'](_0x4ed8d1),_0xa40d2=_0x5932e3?_0x5932e3['getRange']()['getContainedElement']():null;_0xa40d2&&_0x1931d3['set'](_0xa40d2,_0x24a720);}}_0x309545['model']['change'](_0x2b857a=>{for(const [_0x2f76b9,_0x576d33]of _0x1931d3)_0x2b857a['setAttributes']({...Oe,..._0x576d33},_0x2f76b9);});});const _0x5305c6=(_0xa4d091,_0x523d10)=>{_0x3b2726['_suggestionFactory']['registerCustomCallback'](_0xa4d091,'tablePaste',_0x523d10,(_0x436545,_0x3e3a67,_0x655b0f)=>{_0x309545['model']['change'](_0x4e57ef=>{const _0x51605d=[];for(const _0x3608cb of _0x436545){const _0x4ba9b2=_0x3608cb['start']['nodeAfter'];_0x4ba9b2['is']('element','tableCellSuggestion')&&_0x51605d['push'](_0x4ba9b2);}_0x3b2726['_suggestionFactory']['getSuggestionCallback'](_0xa4d091,null,_0x523d10)(_0x436545,_0x3e3a67,_0x655b0f);for(const _0x4235a8 of _0x51605d)'$graveyard'!=_0x4235a8['root']['rootName']&&_0x4e57ef['unwrap'](_0x4235a8);});});};_0x5305c6('insertion','accept'),_0x5305c6('insertion','discard'),_0x5305c6('deletion','accept'),_0x5305c6('deletion','discard'),_0x3b2726['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x129c6a=>{const _0x16590f=_0x129c6a['map'](_0x2902c1=>_0x2902c1['getContainedElement']()),_0x364434=_0x16590f[0x0]['findAncestor']('table'),{minRow:_0x2803b2,maxRow:_0x33e6bb}=_0x3fa9a6['_getCoordsForCells'](_0x16590f);_0x58d1a7['removeRows'](_0x364434,{'at':_0x2803b2,'rows':_0x33e6bb-_0x2803b2+0x1});}),_0x3b2726['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x52892a=>{const _0x1f862b=_0x52892a['map'](_0x3dc1ee=>_0x3dc1ee['getContainedElement']()),_0x23c170=_0x1f862b[0x0]['findAncestor']('table'),{minColumn:_0x51a573,maxColumn:_0x16e5de}=_0x3fa9a6['_getCoordsForCells'](_0x1f862b);_0x58d1a7['removeColumns'](_0x23c170,{'at':_0x51a573,'columns':_0x16e5de-_0x51a573+0x1});});const _0x238415=(_0xe84416,_0x3013ea)=>{if(!_0x3013ea['subType']||!_0x3013ea['subType']['startsWith']('tablePaste'))return;const _0x3d4929=_0x3013ea['attributes']['tablePasteChainId'],_0x406a7c=_0x3b2726['getSuggestions']()['filter'](_0x51e744=>_0x51e744['isInContent']&&_0x51e744['attributes']&&_0x51e744['attributes']['tablePasteChainId']==_0x3d4929);_0x406a7c['length']&&_0x3013ea['getAllAdjacentSuggestions']()['length']!=_0x406a7c['length']&&_0x406a7c['reduce']((_0x485e57,_0x2a6380)=>(_0x485e57['next']=_0x2a6380,_0x2a6380['previous']=_0x485e57,_0x2a6380));};function _0x59edfd(_0x395d52,_0x4ce37a=!0x0){const {id:_0x17b76d,authorId:_0x120bf7}=_0x3b2726['_splitMarkerName'](_0x395d52['markerName']),_0x3ea325=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x341672=_0x3b2726['activeMarkers']['includes'](_0x395d52['markerName']);return _0x341672&&_0x3ea325['push']('ck-suggestion-marker--active'),{'classes':_0x3ea325,'attributes':{'data-suggestion':_0x17b76d,'data-author-id':_0x120bf7},'priority':_0x341672&&_0x4ce37a?0xbc2:0xbb8};}_0x3b2726['on']('suggestionLoaded',_0x238415,{'priority':'high'}),_0x3b2726['on']('suggestionUnloaded',_0x238415,{'priority':'high'}),_0x309545['model']['document']['registerPostFixer'](()=>{let _0x1a92eb=!0x1;const _0x3b72c3=Array['from'](_0x309545['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x26949a,data:_0x4aaae5}of _0x3b72c3){const {group:_0x4a0706,type:_0x47dfce,id:_0x1f8fc2}=_0x3b2726['_splitMarkerName'](_0x26949a);if('suggestion'!=_0x4a0706||'deletion'!=_0x47dfce||_0x4aaae5['oldRange'])continue;if(!_0x3b2726['hasSuggestion'](_0x1f8fc2))continue;const _0x1cf442=_0x3b2726['getSuggestion'](_0x1f8fc2)['getRanges'](),_0x33f99b=_0x309545['plugins']['get']('Users')['me'];for(const _0x16168e of _0x3b2726['getSuggestions']()){if(!_0x16168e['isInContent']||_0x16168e['author']!=_0x33f99b)continue;if('formatBlock'!=_0x16168e['type']||'tablePasteCell'!=_0x16168e['subType'])continue;if(_0x16168e['getRanges']()['every'](_0x4030d9=>_0x1cf442['some'](_0x336fe7=>_0x336fe7['containsRange'](_0x4030d9,!0x0)))){for(const _0x274c6c of _0x16168e['getAllAdjacentSuggestions']())_0x274c6c['isInContent']&&(_0x274c6c['discard'](),_0x1a92eb=!0x0);}}}return _0x1a92eb;}),_0x309545['model']['document']['registerPostFixer'](_0x24cae7=>{const _0x3ff669=_0x309545['commands']['get']('redo');if(!_0x3ff669||!_0x3ff669['_createdBatches']['has'](_0x24cae7['batch']))return!0x1;let _0x5a8f8b=!0x1;const _0x38eb2f=_0x309545['plugins']['get']('Users')['me'],_0x47962f=_0x309545['model']['document']['differ']['getChanges'](),_0x5e3788=Array['from'](_0x309545['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x10be45,data:_0x48fa2b})=>{const {group:_0xa8e17b,subType:_0x2ddc3e,authorId:_0xe31111}=_0x3b2726['_splitMarkerName'](_0x10be45);return'suggestion'==_0xa8e17b&&'tablePaste'==_0x2ddc3e&&_0xe31111==_0x38eb2f['id']&&!_0x48fa2b['oldRange'];});for(const _0x205edd of _0x47962f){if('insert'!=_0x205edd['type']||'tableCellSuggestion'!=_0x205edd['name']||0x1!=_0x205edd['length'])continue;const _0xb0f695=_0x24cae7['createRange'](_0x205edd['position'],_0x205edd['position']['getShiftedBy'](0x1));if(!_0x5e3788['find'](({data:_0xc26b1})=>_0xc26b1['newRange']['isEqual'](_0xb0f695))){for(const {name:_0x39dce0,data:_0x3968d0}of _0x5e3788)if(_0xb0f695['containsRange'](_0x3968d0['newRange'])){_0x24cae7['updateMarker'](_0x39dce0,{'range':_0xb0f695}),_0x5a8f8b=!0x0;break;}}}return _0x5a8f8b;}),_0x309545['model']['document']['registerPostFixer'](_0x267c0e=>{let _0x2ee5dd=!0x1;const _0x1a7fa6=_0x309545['plugins']['get']('Users')['me'],_0x499f95=_0x3b2726['getSuggestions']()['filter'](_0x5b1259=>_0x5b1259['isInContent']&&_0x5b1259['author']==_0x1a7fa6),_0x502683=new Set(),_0x37e888=new Set();for(const _0x599846 of _0x499f95)if('tablePaste'==_0x599846['subType'])for(const _0x6c1da1 of _0x599846['getMarkers']()){const _0x30723f=_0x6c1da1['getRange']()['getContainedElement']();if(_0x30723f){if(_0x30723f['is']('element','tableCellSuggestion')&&Ue(_0x30723f)){_0x599846['removeMarker'](_0x6c1da1['name']),_0x502683['add'](_0x30723f),_0x2ee5dd=!0x0;const _0x3c6aaf=_0x30723f['nextSibling'],_0x32c3a8=_0x30723f['previousSibling'],_0x35746e=_0x3c6aaf&&_0x3c6aaf['is']('element','tableCellSuggestion'),_0x29de3b=_0x32c3a8&&_0x32c3a8['is']('element','tableCellSuggestion');_0x35746e&&!_0x502683['has'](_0x3c6aaf)&&_0x37e888['add'](_0x3c6aaf),_0x29de3b&&!_0x502683['has'](_0x32c3a8)&&_0x37e888['add'](_0x32c3a8);}else _0x30723f['is']('element','paragraph')&&_0x30723f['isEmpty']&&(_0x599846['removeMarker'](_0x6c1da1['name']),_0x2ee5dd=!0x0);}}else{if('tablePasteCell'==_0x599846['subType']){if(!_0x599846['attributes']||!_0x599846['attributes']['tablePasteChainId'])continue;const _0x134449=_0x599846['attributes']['markerAttributes'];if(_0x134449&&Object['keys'](_0x134449)['length'])continue;const _0xb96a73=_0x599846['attributes']['tablePasteChainId'];let _0x343cdb=!0x0,_0x308790=!0x0;for(const _0x315d90 of _0x499f95)if(_0x315d90['subType']&&_0x315d90['subType']['startsWith']('tablePaste')){if(!_0x315d90['attributes']['tablePasteChainId']){_0x308790=!0x1;break;}if(_0x315d90['id']!=_0x599846['id']&&_0x315d90['attributes']['tablePasteChainId']==_0xb96a73){_0x343cdb=!0x1;break;}}_0x308790&&_0x343cdb&&(_0x599846['removeMarkers'](),_0x2ee5dd=!0x0);}}for(const _0x356235 of _0x502683)_0x267c0e['remove'](_0x356235);for(const _0xc64c5 of _0x37e888)_0x267c0e['unwrap'](_0xc64c5);return _0x2ee5dd;}),_0x309545['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x17aa58=>_0x59edfd(_0x17aa58),'converterPriority':'high'}),_0x309545['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x47b96b,_0x25fb4e)=>_0x25fb4e['options']['showSuggestionHighlights']?_0x59edfd(_0x47b96b,!0x1):null,'converterPriority':'high'});const _0xe8340e=_0x309545['editing']['view'];this['listenTo'](_0xe8340e['document'],'clipboardOutput',(_0x1e73f2,_0x35e271)=>{const _0x16318c=[];for(const _0x4baaaa of _0xe8340e['createRangeIn'](_0x35e271['content'])['getItems']())_0x4baaaa['is']('element','suggestion-td')&&_0x16318c['push'](_0x4baaaa);_0xe8340e['change'](_0x9519af=>{for(const _0x1479f7 of _0x16318c)_0x9519af['move'](_0x9519af['createRangeIn'](_0x1479f7),_0x9519af['createPositionBefore'](_0x1479f7)),_0x9519af['remove'](_0x1479f7);});});}}function Ue(_0x40abe1){if(_0x40abe1['isEmpty'])return!0x0;const _0x3bf0e2=_0x40abe1['getChild'](0x0);return _0x3bf0e2['is']('element','paragraph')&&_0x3bf0e2['isEmpty'];}function De(_0x29a22c,_0x19e56e={},_0x2779c3){for(const {isAnchor:_0x1da388,cellHeight:_0x2e0973,cellWidth:_0x4a8581}of _0x2779c3['createTableWalker'](_0x29a22c,{'includeAllSlots':!0x0,..._0x19e56e}))if(!_0x1da388||0x1!=_0x2e0973||0x1!=_0x4a8581)return!0x1;return!0x0;}class Bt extends _0x4a3f61{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x83f201=this['editor']['plugins']['get']('TrackChangesEditing');_0x83f201['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x83f201['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x83f201['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x83f201['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x83f201['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x83f201['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3e1c96,_0x383186){const _0x1d637a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3faa69=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x59c8c3=_0x383186['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4298a1=_0x3faa69['getColumnGroupElement'](_0x59c8c3);let _0x55d26b=_0x4298a1?_0x3faa69['getTableColumnsWidths'](_0x4298a1):null,_0x217981=_0x59c8c3['getAttribute']('tableWidth')||null;const _0x1416d1=_0x383186['tableWidth']||_0x217981,_0x20d018=_0x383186['columnWidths']||_0x55d26b,_0x62c2ed=this['editor']['plugins']['get']('Users')['me'];for(const _0x57a2a4 of _0x1d637a['getSuggestions']()){const _0x10534a=_0x57a2a4['getContainedElement']();if('resizeTable'===_0x57a2a4['subType']&&_0x10534a===_0x59c8c3){_0x57a2a4['author']!==_0x62c2ed&&_0x57a2a4['discard']();const _0x277bd8=_0x57a2a4['data']['commandParams'];_0x217981=_0x277bd8[0x0]['tableWidth'],_0x55d26b=_0x277bd8[0x0]['columnWidths'];break;}}_0x3e1c96({'table':_0x59c8c3,'tableWidth':_0x1416d1,'columnWidths':_0x20d018}),_0x1d637a['markBlockFormat'](_0x59c8c3,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x217981,'columnWidths':_0x55d26b}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xf20757){if('formatBlock'!=_0xf20757['type']&&'formatInline'!=_0xf20757['type'])return;const {data:_0x4b9068}=_0xf20757;if(_0x4b9068&&'resizeTable'===_0x4b9068['formatGroupId']){const _0x1ffd9f='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x1ffd9f)};}}}class Ot extends _0x4a3f61{['afterInit'](){const _0x15418a=this['editor'];_0x15418a['plugins']['has']('Template')&&_0x15418a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0x4a3f61{['afterInit'](){const _0xbd1a07=this['editor'];if(!_0xbd1a07['commands']['get']('insertTableOfContents'))return;_0xbd1a07['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x352747=_0xbd1a07['plugins']['get']('TrackChangesEditing'),_0x5c199d=_0xbd1a07['locale'];_0x352747['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1a8731=>c(_0x5c199d,'ELEMENT_TABLE_OF_CONTENTS',_0x1a8731));}}class xt extends _0x4a3f61{['afterInit'](){const _0x992ecf=this['editor'];if(!_0x992ecf['plugins']['has']('Title'))return;const _0x49d00a=_0x992ecf['plugins']['get']('TrackChangesEditing');_0x49d00a['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x992ecf['locale'],'ELEMENT_TITLE')),_0x992ecf['model']['document']['registerPostFixer'](_0x10844f=>{let _0x28fd32=!0x1;const _0xc2119d=Array['from'](_0x992ecf['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3d6b15,data:_0x2012a8}of _0xc2119d){const {group:_0x4c3d2e}=_0x49d00a['_splitMarkerName'](_0x3d6b15);if('suggestion'!==_0x4c3d2e||!_0x2012a8['newRange'])continue;const _0x2ae7ab=_0x2012a8['newRange'],_0x196c78=_0x2ae7ab['end']['nodeBefore'];if(!_0x196c78||!_0x196c78['is']('element','title-content'))continue;if(!_0x2ae7ab['start']['isTouching'](_0x2ae7ab['end']))continue;const _0x4eccab=_0x992ecf['model']['schema']['getNearestSelectionRange'](_0x2ae7ab['end'],'forward');if(_0x4eccab&&_0x4eccab['isCollapsed']){const _0x2568d2=_0x10844f['createRange'](_0x2ae7ab['start'],_0x4eccab['start']);_0x2568d2['isEqual'](_0x2ae7ab)||(_0x10844f['updateMarker'](_0x3d6b15,{'range':_0x2568d2}),_0x28fd32=!0x0);}_0x28fd32||(_0x10844f['removeMarker'](_0x3d6b15),_0x28fd32=!0x0);}return _0x28fd32;});}}class Tt extends _0x4a3f61{['afterInit'](){const _0x59ed7d=this['editor'],_0x511412=_0x59ed7d['plugins']['get']('TrackChangesEditing');_0x59ed7d['plugins']['has']('Uploadcare')&&(_0x511412['enableCommand']('uploadcare'),_0x59ed7d['plugins']['has']('UploadcareImageEdit')&&(_0x511412['enableCommand']('uploadcareImageEdit'),_0x511412['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x511412['registerBlockAttribute']('uploadcareImageId'),_0x511412['descriptionFactory']['registerDescriptionCallback'](_0x1d3ac2=>{if('attribute'!=_0x1d3ac2['type'])return;const {data:_0x2cdbf5}=_0x1d3ac2;return _0x2cdbf5&&'uploadcareImageId'==_0x2cdbf5['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x4a3f61{['afterInit'](){const _0x5d2654=this['editor'],_0x481a99=_0x5d2654['plugins']['get']('TrackChangesEditing');_0x5d2654['plugins']['has']('UndoEditing')&&(_0x481a99['enableCommand']('undo'),_0x481a99['enableCommand']('redo'));}}class Ut extends _0x4a3f61{static get['requires'](){return[Ct];}['afterInit'](){const _0xd742a2=this['editor'];if(!_0xd742a2['plugins']['has']('TableCaptionEditing'))return;_0xd742a2['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x4a3f61{['tableProperties'];['tableCellProperties'];constructor(_0x282fc5){super(_0x282fc5),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 _0x5c7667=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x46d6f9 of this['tableProperties'])_0x5c7667['enableCommand'](_0x46d6f9,(_0x847406,_0x3692a4)=>{const _0x3397ce=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x46d6f9,[_0x3397ce],this['tableProperties'],'tableProperties',_0x847406,_0x3692a4);});_0x5c7667['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5c7667['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5c7667['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3e977f,_0x25d014)=>this['handleDiscardAction'](this['tableProperties'],_0x3e977f,_0x25d014)),_0x5c7667['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x24f4d9 of this['tableCellProperties'])_0x5c7667['enableCommand'](_0x24f4d9,(_0x81b2ef,_0x5d7f4e)=>{const _0x385064=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x24f4d9,_0x385064,this['tableCellProperties'],'tableCellProperties',_0x81b2ef,_0x5d7f4e);});_0x5c7667['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5c7667['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5c7667['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1def6c,_0x2e6c18)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1def6c,_0x2e6c18)),_0x5c7667['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5c7667['descriptionFactory']['registerDescriptionCallback'](_0x1356c3=>this['handleSuggestionDescription'](_0x1356c3));}['_handlePropertyChange'](_0x5a8188,_0x55cf68,_0x2b8ed0,_0x356e84,_0x225884,_0xc20a78){const _0x2a123e=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xc20a78['batch'],()=>{for(const _0x53fc40 of _0x55cf68){if(this['_getSuggestion'](_0x53fc40,_0x356e84))_0x225884(_0xc20a78);else{const _0x230dff={};for(const _0x41a4e0 of _0x2b8ed0){const _0x374b6d=_0x53fc40['getAttribute'](_0x41a4e0);void 0x0!==_0x374b6d&&(_0x230dff[_0x41a4e0]=_0x374b6d);}_0x225884(_0xc20a78),_0x2a123e['markBlockFormat'](_0x53fc40,{'commandParams':[_0x230dff]},[],_0x356e84);}}});}['handleDiscardAction'](_0x52e030,_0x2a3f83,_0x9009ff){const _0x5bb1ab=_0x2a3f83[0x0]['start']['nodeAfter'],_0x49a0d7=_0x9009ff['commandParams'][0x0];this['editor']['model']['change'](_0xf47082=>{for(const _0x53d36f of _0x52e030)void 0x0!==_0x49a0d7[_0x53d36f]?_0xf47082['setAttribute'](_0x53d36f,_0x49a0d7[_0x53d36f],_0x5bb1ab):_0xf47082['removeAttribute'](_0x53d36f,_0x5bb1ab);});}['handleSuggestionDescription'](_0x43a7e1){if(_0x43a7e1['data'])switch(_0x43a7e1['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x58239d,_0x256604){const _0x177991=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x150e56 of _0x177991['getSuggestions']({'skipNotAttached':!0x0})){const _0x542a48=_0x150e56['getContainedElement']();if(_0x150e56['subType']===_0x256604&&_0x542a48===_0x58239d)return _0x150e56;}return null;}}const u='$elementName';class p extends _0x4a3f61{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x10352c,_0x19a3c1,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Rt,Vt,Ot,xt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5dd764){super(_0x5dd764),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4552cf,_0x20e52f,_0x4feca8,_0x24f5c5)=>{this['_model']['change'](()=>{for(const _0x27c1d8 of[..._0x24f5c5,..._0x4feca8])this['_model']['markers']['has'](_0x27c1d8)&&_0x5dd764['editing']['reconvertMarker'](_0x27c1d8);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5dd764['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x5dd764['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5dd764['config']['get']('trackChanges.trackFormatChanges'),_0x5dd764['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5dd764['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x5dd764,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x71cb82=this['editor'],_0x29802e=(_0x4f8216,_0x443333)=>{if('attribute'!=_0x4f8216)return'ck-suggestion-marker-'+_0x4f8216;const _0x72886d=_0x443333['split']('|')[0x0];return this['_isBlockAttribute'](_0x72886d)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x71cb82['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x203640=>{const {id:_0x13b2be,authorId:_0x3c493f,type:_0x2dcc90,subType:_0x24b6d4}=this['_splitMarkerName'](_0x203640['markerName']),_0x1506b0=['ck-suggestion-marker',_0x29802e(_0x2dcc90,_0x24b6d4)];let _0x33ece5=0xbb8;return this['activeMarkers']['includes'](_0x203640['markerName'])&&(_0x1506b0['push']('ck-suggestion-marker--active'),_0x33ece5=0xbc2),'deletion'==_0x2dcc90&&(_0x33ece5+=0x5),{'classes':_0x1506b0,'attributes':{'data-suggestion':_0x13b2be,'data-author-id':_0x3c493f},'priority':_0x33ece5};}}),_0x71cb82['conversion']['for']('dataDowncast')['add'](_0x1018ce=>{_0x1018ce['on']('addMarker:suggestion',(_0x33fda5,_0x2d96b5,_0x211c1b)=>{if(!_0x211c1b['options']['showSuggestionHighlights'])return;const _0xf40bcf=_0x2d96b5['item'];if(!_0xf40bcf)return;const _0xfc5a8f=_0x211c1b['mapper']['toViewElement'](_0xf40bcf);_0x71cb82['model']['schema']['isObject'](_0xf40bcf)&&_0xfc5a8f&&!_0xfc5a8f['getCustomProperty']('widget')&&_0xfc5a8f['is']('containerElement')&&_0x61d478(_0xfc5a8f,_0x211c1b['writer']);},{'priority':'high'});}),_0x71cb82['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x3ab2c1,_0x240962)=>{if(!_0x240962['options']['showSuggestionHighlights'])return null;const {type:_0x501efa,subType:_0x53c27c}=this['_splitMarkerName'](_0x3ab2c1['markerName']);return{'classes':['ck-suggestion-marker',_0x29802e(_0x501efa,_0x53c27c)],'priority':0xbb8};}});const _0x3e77e5=({showActiveMarkers:_0x246636=!0x0,isAttributeSuggestion:_0x32660c=!0x1}={})=>(_0x39d3c7,_0x253711,_0x4f5e29)=>{if(!_0x253711['item'])return;const {id:_0xc6cbff,authorId:_0x50dec7}=this['_splitMarkerName'](_0x253711['markerName']);if(_0x32660c){const _0x3a60e5=this['_suggestions']['get'](_0xc6cbff),_0x5dbc0b=this['_getAttributeKey'](_0x3a60e5);if(!this['_isBlockAttribute'](_0x5dbc0b))return;}if(_0x253711['item']['is']('selection'))return void _0x4f5e29['consumable']['consume'](_0x253711['item'],_0x39d3c7['name']);const _0x5a7010=_0x4f5e29['mapper']['toViewElement'](_0x253711['item']);if(_0x253711['item']['is']('element')&&_0x71cb82['model']['schema']['isBlock'](_0x253711['item'])&&!_0x5a7010['getCustomProperty']('addHighlight')){_0x4f5e29['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5a7010),_0x4f5e29['writer']['setAttribute']('data-suggestion',_0xc6cbff,_0x5a7010),_0x4f5e29['writer']['setAttribute']('data-author-id',_0x50dec7,_0x5a7010),_0x4f5e29['mapper']['bindElementToMarker'](_0x5a7010,_0x253711['markerName']),_0x246636&&(this['activeMarkers']['includes'](_0x253711['markerName'])?_0x4f5e29['writer']['addClass']('ck-suggestion-marker--active',_0x5a7010):_0x4f5e29['writer']['removeClass']('ck-suggestion-marker--active',_0x5a7010));for(const _0x33c6aa of _0x71cb82['model']['createRangeIn'](_0x253711['item'])['getItems']())_0x4f5e29['consumable']['consume'](_0x33c6aa,_0x39d3c7['name']);_0x4f5e29['consumable']['consume'](_0x253711['item'],_0x39d3c7['name']);}};_0x71cb82['conversion']['for']('dataDowncast')['add'](_0x4d6836=>{_0x4d6836['on']('addMarker:suggestion:formatBlock',(_0x16bdf0,_0x1e4186,_0x251919)=>{_0x251919['options']['showSuggestionHighlights']&&_0x3e77e5({'showActiveMarkers':!0x1})(_0x16bdf0,_0x1e4186,_0x251919);},{'priority':'highest'});}),_0x71cb82['conversion']['for']('dataDowncast')['add'](_0xd69bb8=>{_0xd69bb8['on']('addMarker:suggestion:attribute',(_0x61fef2,_0x3d3da2,_0xe4af18)=>{_0xe4af18['options']['showSuggestionHighlights']&&_0x3e77e5({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x61fef2,_0x3d3da2,_0xe4af18);},{'priority':'highest'});}),_0x71cb82['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2abe6d,_0x4f4f71)=>_0x4f4f71['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x2abe6d['substr'](0xb)}}),_0x71cb82['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x299906,{writer:_0x2f80f3})=>{let _0x118564='suggestion:'+_0x299906['getAttribute']('suggestion-type')+':'+_0x299906['getAttribute']('id');return _0x299906['getAttribute']('marker-count')&&(_0x118564+=':'+_0x299906['getAttribute']('marker-count')),_0x2f80f3['createElement']('$marker',{'data-name':_0x118564});}}),_0x71cb82['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x71cb82['conversion']['for']('editingDowncast')['add'](_0x7c6436=>{_0x7c6436['on']('addMarker:suggestion:formatBlock',_0x3e77e5(),{'priority':'high'});}),_0x71cb82['conversion']['for']('editingDowncast')['add'](_0xfd6b82=>{_0xfd6b82['on']('addMarker:suggestion:attribute',_0x3e77e5({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x71cb82['conversion']['for']('editingDowncast')['add'](_0x31337d=>{_0x31337d['on']('removeMarker:suggestion:formatBlock',(_0x700ef8,_0x161f45,_0x43da7d)=>{const _0x409bc1=_0x43da7d['mapper']['markerNameToElements'](_0x161f45['markerName']);if(_0x409bc1){for(const _0x203745 of _0x409bc1)_0x203745['getCustomProperty']('addHighlight')||(_0x43da7d['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x203745),_0x43da7d['writer']['removeAttribute']('data-suggestion',_0x203745),_0x43da7d['writer']['removeAttribute']('data-author-id',_0x203745),_0x43da7d['mapper']['unbindElementFromMarkerName'](_0x203745,_0x161f45['markerName']));}},{'priority':'high'});}),_0x71cb82['conversion']['for']('editingDowncast')['add'](_0x21b202=>{_0x21b202['on']('removeMarker:suggestion:attribute',(_0xb72a36,_0x42a0a2,_0x59865f)=>{const _0x625223=_0x59865f['mapper']['markerNameToElements'](_0x42a0a2['markerName']);if(!_0x625223)return;const {id:_0x9c85e4}=this['_splitMarkerName'](_0x42a0a2['markerName']),_0x2f3c6a=this['_suggestions']['get'](_0x9c85e4),_0x5e4409=this['_getAttributeKey'](_0x2f3c6a);if(this['_isBlockAttribute'](_0x5e4409)){for(const _0x3c6c44 of _0x625223)_0x3c6c44['getCustomProperty']('addHighlight')||(_0x59865f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3c6c44),_0x59865f['writer']['removeAttribute']('data-suggestion',_0x3c6c44),_0x59865f['writer']['removeAttribute']('data-author-id',_0x3c6c44),_0x59865f['mapper']['unbindElementFromMarkerName'](_0x3c6c44,_0x42a0a2['markerName']));}},{'priority':'high'});}),_0x71cb82['model']['document']['registerPostFixer'](_0x2a9f1c=>{let _0xa96306=!0x1;const _0x540fbb=Array['from'](_0x71cb82['model']['document']['differ']['getChangedMarkers']()),_0x295d4f=new Set();for(const {name:_0x3feef3,data:_0x169a0b}of _0x540fbb){const {group:_0x3064c1,type:_0x818423,subType:_0x1d2b3e,id:_0x691d0d}=this['_splitMarkerName'](_0x3feef3);if('suggestion'!==_0x3064c1)continue;const _0x15a716=this['_suggestions']['get'](_0x691d0d);if(null!=_0x169a0b['newRange']){'formatInline'==_0x818423&&(_0xa96306=_0xa96306||Jt(_0x169a0b['newRange'],_0x3feef3,_0x2a9f1c,_0x71cb82['model']['schema']));const _0xa4fdaf='attribute'==_0x818423&&this['_isBlockAttribute'](_0x1d2b3e['split']('|')[0x0]);if(_0x169a0b['newRange']['isCollapsed']||'$graveyard'==_0x169a0b['newRange']['root']['rootName']||'formatBlock'==_0x818423&&!Ht(_0x169a0b['newRange'])||_0xa4fdaf&&!Ht(_0x169a0b['newRange'])||'deletion'==_0x818423&&!(!Lt(_0xc58028=_0x169a0b['newRange'])&&!function(_0x3f047a){return _0x3f047a['start']['parent']==_0x3f047a['end']['nodeBefore']&&_0x3f047a['start']['isAtEnd'];}(_0xc58028)))_0x2a9f1c['removeMarker'](_0x3feef3),_0xa96306=!0x0;else{if(!_0x15a716||!_0x15a716['isInContent'])continue;if(_0x169a0b['newRange']&&_0x169a0b['oldRange']&&_0x169a0b['newRange']['isEqual'](_0x169a0b['oldRange']))continue;_0x295d4f['add'](_0x15a716);}}}var _0xc58028;return _0x295d4f['size']>0x0&&(_0xa96306=!!this['_joinWithAdjacentSuggestions'](_0x295d4f)||_0xa96306),_0xa96306;}),_0x71cb82['model']['document']['registerPostFixer'](_0x1197bf=>{let _0x1e66f0=!0x1;for(const _0x307734 of _0x71cb82['model']['document']['differ']['getChanges']())if('insert'==_0x307734['type'])for(const _0x5b9557 of this['_suggestions']['values']()){if(_0x5b9557['isMultiRange']||!_0x5b9557['isInContent'])continue;const _0x15ab82='formatBlock'==_0x5b9557['type'],_0x5cb3d5=this['_getAttributeKey'](_0x5b9557),_0x4c8da6=_0x5cb3d5&&this['_isBlockAttribute'](_0x5cb3d5);if(!_0x15ab82&&!_0x4c8da6)continue;const _0x53e4e2=_0x5b9557['getFirstRange']();if(_0x53e4e2['start']['parent']!=_0x53e4e2['end']['parent']&&!_0x53e4e2['end']['isAtEnd']){const _0x5d5c2c=_0x71cb82['model']['createPositionAt'](_0x53e4e2['start']['nodeAfter'],'end'),_0x21b39f=_0x71cb82['model']['createRange'](_0x53e4e2['start'],_0x5d5c2c);_0x1197bf['updateMarker'](_0x5b9557['getFirstMarker'](),{'range':_0x21b39f}),_0x1e66f0=!0x0;}}return _0x1e66f0;}),_0x71cb82['model']['document']['registerPostFixer'](_0x1c91e9=>this['_processAttributeChanges'](_0x1c91e9)),_0x71cb82['model']['document']['registerPostFixer'](_0x25dc00=>!_0x25dc00['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x25dc00)),_0x71cb82['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x71cb82['model']['document']['on']('change:data',(_0x281e34,_0x24e58c)=>{if(!_0x24e58c['isLocal']||_0x24e58c['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x14bd1e=_0x71cb82['model']['document']['differ']['getChanges']();if(0x0==_0x14bd1e['length'])return;const _0x872f06=[],_0x5f4802=_0x14bd1e['filter'](_0x132f25=>'attribute'==_0x132f25['type']),_0x4a22d5=_0x14bd1e['filter'](_0x1b753f=>'insert'==_0x1b753f['type']&&'$text'!=_0x1b753f['name']);for(const _0x182ac0 of _0x5f4802)this['_isRegisteredAttribute'](_0x182ac0['attributeKey'])&&_0x872f06['push']({'key':_0x182ac0['attributeKey'],'newValue':_0x182ac0['attributeNewValue'],'oldValue':_0x182ac0['attributeOldValue'],'range':qt(_0x182ac0['range'],_0x71cb82['model'])});for(const _0x11ad1f of _0x4a22d5){if('rename'!=_0x11ad1f['action']&&'refresh'!=_0x11ad1f['action'])continue;const _0x2c3963=zt(_0x11ad1f['position']['nodeAfter'],_0x71cb82['model']),_0x3284a0=_0x11ad1f['before'];'rename'==_0x11ad1f['action']&&_0x872f06['push']({'key':u,'newValue':_0x11ad1f['name'],'oldValue':_0x3284a0['name'],'range':_0x2c3963});for(const [_0x4f0550,_0x23c289]of _0x3284a0['attributes']){if(!this['_isRegisteredAttribute'](_0x4f0550))continue;const _0xdd6c4f=_0x11ad1f['attributes']['get'](_0x4f0550);_0x23c289!==_0xdd6c4f&&_0x872f06['push']({'key':_0x4f0550,'newValue':_0xdd6c4f,'oldValue':_0x23c289,'range':_0x2c3963});}for(const [_0x1263f3,_0x518d01]of _0x11ad1f['attributes'])this['_isRegisteredAttribute'](_0x1263f3)&&(_0x3284a0['attributes']['has'](_0x1263f3)||_0x872f06['push']({'key':_0x1263f3,'newValue':_0x518d01,'oldValue':null,'range':_0x2c3963}));}0x0!=_0x872f06['length']&&_0x71cb82['model']['enqueueChange'](_0x24e58c,_0x277d62=>{const _0x3f0793=_0x5ae980();for(const {range:_0x4a372d,key:_0x1d6474,oldValue:_0x44f51a,newValue:_0x139d8b}of _0x872f06)this['markAttributeChange'](_0x4a372d,_0x1d6474,_0x44f51a,_0x139d8b,{'groupId':_0x3f0793});this['_reduceExistingSuggestions'](_0x277d62,_0x872f06);});},{'priority':'lowest'}),_0x71cb82['model']['markers']['on']('update:suggestion',(_0x425dd0,_0x472bdd,_0x578fe1)=>{if(null==_0x578fe1){const {id:_0x2ee1b5}=this['_splitMarkerName'](_0x472bdd['name']),_0x1b9552=this['_suggestions']['get'](_0x2ee1b5);_0x1b9552&&_0x1b9552['addMarkerName'](_0x472bdd['name']);}}),_0x71cb82['model']['document']['on']('change:data',()=>{const _0x17f2c8=Array['from'](_0x71cb82['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1899bd=>'suggestion'===this['_splitMarkerName'](_0x1899bd['name'])['group']);if(0x0===_0x17f2c8['length'])return;_0x17f2c8['sort']((_0x9e9a35,_0x128eac)=>{const _0x2ffc71=_0x9e9a35['data']['oldRange'],_0x138dbc=_0x128eac['data']['oldRange'];return null===_0x2ffc71&&null===_0x138dbc?0x0:null===_0x2ffc71&&null!==_0x138dbc?-0x1:null!==_0x2ffc71&&null===_0x138dbc?0x1:_0x2ffc71['start']['isBefore'](_0x138dbc['start'])?-0x1:0x1;});const _0x190de7=new Set(),_0x2458a7=new Set();for(const {name:_0x58e915,data:_0x2cba19}of _0x17f2c8){const {id:_0x5d52b7}=this['_splitMarkerName'](_0x58e915);if(null===_0x2cba19['oldRange']){const _0x871fe8=this['_handleNewSuggestionMarker'](_0x58e915);_0x2458a7['add'](_0x871fe8);}else{const _0x19f713=this['_suggestions']['get'](_0x5d52b7);null!==_0x2cba19['newRange']||_0x19f713['isInContent']?(_0x190de7['add'](_0x19f713['head']),_0x2458a7['add'](_0x19f713)):this['_removeSuggestion'](_0x19f713);}}_0x2458a7['size']>0x0&&this['_refreshSuggestionsChain'](_0x2458a7);for(const _0xd64b3c of _0x190de7)this['fire']('suggestionChanged',_0xd64b3c);}),_0x71cb82['model']['on']('applyOperation',(_0x721b1f,_0x121b2b)=>{const _0x51b758=_0x121b2b[0x0];if(!this['_suggestions']['size'])return;if(!_0x51b758['isDocumentOperation'])return;if(_0x51b758['batch']['isUndo']||!_0x51b758['batch']['isLocal'])return;let _0x4c06e5,_0x59249f;switch(_0x51b758['type']){case'insert':_0x4c06e5=_0x71cb82['model']['createPositionAt'](_0x51b758['position']),_0x59249f=_0x4c06e5['getShiftedBy'](_0x51b758['howMany']);break;case'split':_0x4c06e5=_0x71cb82['model']['createPositionAt'](_0x51b758['splitPosition']),_0x59249f=_0x71cb82['model']['createPositionAt'](_0x51b758['moveTargetPosition']);break;case'move':_0x4c06e5=_0x71cb82['model']['createPositionAt'](_0x51b758['targetPosition']),_0x59249f=_0x4c06e5['getShiftedBy'](_0x51b758['howMany']);break;default:return;}const _0x26bf47=_0x71cb82['model']['createRange'](_0x4c06e5,_0x59249f);_0x71cb82['model']['change'](()=>{for(const {suggestion:_0x37b12b,meta:_0xf9fc06}of this['_findSuggestions'](_0x26bf47)){if(_0x37b12b['isMultiRange'])continue;if('formatInline'==_0x37b12b['type'])continue;const _0xc0a93=this['_getAttributeKey'](_0x37b12b);if(_0xc0a93&&this['_isBlockAttribute'](_0xc0a93)&&'split'!=_0x51b758['type'])continue;const _0x72d9d1=_0x37b12b['data']&&_0x37b12b['data']['multipleBlocks'];('formatBlock'!=_0x37b12b['type']||'split'==_0x51b758['type']&&!_0x72d9d1)&&(_0xf9fc06['containsRangeInObject']||'insertion'==_0x37b12b['type']&&_0xf9fc06['isOwn']||_0x37b12b['getFirstRange']()['containsRange'](_0x26bf47)&&this['_breakSuggestionMarker'](_0x37b12b,_0x4c06e5,_0x59249f));}});},{'priority':'lowest'}),_0x71cb82['model']['on']('deleteContent',(_0x4fe955,_0x192a08)=>{const _0xdd02be=_0x192a08[0x0],_0x965f2d=_0x192a08[0x1];if(_0x965f2d&&_0x965f2d['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xdd02be['isCollapsed'])return;const _0x51e27a=_0x71cb82['model']['schema'],{start:_0xe2b444,end:_0x6e9ae5}=_0xdd02be['getFirstRange'](),_0x2f2dc3=_0xe2b444['nodeAfter']&&_0x51e27a['isLimit'](_0xe2b444['nodeAfter'])?null:_0x51e27a['getNearestSelectionRange'](_0xe2b444,'forward'),_0x539b15=_0x6e9ae5['nodeBefore']&&_0x51e27a['isLimit'](_0x6e9ae5['nodeBefore'])?null:_0x51e27a['getNearestSelectionRange'](_0x6e9ae5,'backward'),_0x298b15=_0x71cb82['model']['createRange'](_0x2f2dc3?_0x2f2dc3['start']:_0xe2b444,_0x539b15?_0x539b15['end']:_0x6e9ae5);_0x71cb82['model']['change'](_0x2488ab=>{this['markDeletion'](_0x298b15);const _0x8543ee=_0x71cb82['model']['schema']['getNearestSelectionRange'](_0x298b15['start']);_0xdd02be['is']('documentSelection')?_0x2488ab['setSelection'](_0x8543ee):_0xdd02be['setTo'](_0x8543ee);}),_0x4fe955['stop']();},{'priority':_0x3ea4f5['normal']+0xa}),_0x71cb82['model']['on']('insertContent',(_0x30e439,_0x50af37)=>{const _0x2a094e=_0x50af37[_0x50af37['length']-0x1];_0x2a094e&&_0x2a094e['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x71cb82['model']['change'](()=>{let _0x414291=_0x71cb82['model']['insertContent'](_0x50af37[0x0],_0x50af37[0x1],_0x50af37[0x2],{'forceDefaultExecution':!0x0});if(!_0x414291)return;_0x30e439['return']=_0x414291['clone']();const _0x501e4e=_0x414291['end']['nodeBefore'],_0xc6bb7e=_0x71cb82['model']['schema'];_0x501e4e&&_0xc6bb7e['isBlock'](_0x501e4e)&&!_0xc6bb7e['isObject'](_0x501e4e)&&(_0x414291=_0x71cb82['model']['createRange'](_0x414291['start'],_0x71cb82['model']['createPositionAt'](_0x501e4e,'end'))),this['markInsertion'](_0x414291);}),_0x30e439['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4e5e07=new O(_0x71cb82,this['_suggestions']);_0x71cb82['commands']['add']('acceptSuggestion',_0x4e5e07),this['enableCommand']('acceptSuggestion');const _0x5669df=new R(_0x71cb82,this['_suggestions']);_0x71cb82['commands']['add']('discardSuggestion',_0x5669df),this['enableCommand']('discardSuggestion'),_0x71cb82['commands']['add']('acceptAllSuggestions',new x(_0x71cb82,_0x4e5e07,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x71cb82['commands']['add']('discardAllSuggestions',new x(_0x71cb82,_0x5669df,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x71cb82['commands']['add']('acceptSelectedSuggestions',new E(_0x71cb82,_0x4e5e07,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x71cb82['commands']['add']('discardSelectedSuggestions',new E(_0x71cb82,_0x5669df,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x26c816=_0x71cb82['plugins']['get']('CommentsRepository');this['listenTo'](_0x26c816,'addComment',(_0x5ddddf,{threadId:_0x23a409})=>{const _0x33b4f2=this['_suggestions']['get'](_0x23a409);_0x33b4f2&&_0x33b4f2['commentThread']&&0x1===_0x33b4f2['commentThread']['length']&&this['_updateSuggestionData'](_0x23a409,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x26c816,'removeComment',(_0xd9a8fe,{threadId:_0x3e60ef})=>{const _0x1941c4=this['_suggestions']['get'](_0x3e60ef);_0x1941c4&&_0x1941c4['commentThread']&&!_0x1941c4['commentThread']['length']&&this['_updateSuggestionData'](_0x3e60ef,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x5c112e){const _0x14fbfa=_0x4f00eb([0x67,0x71,0x69,0x47,0x6d,0x6a,0x32,0x64,0x74,0x43,0x54,0x49,0x6e,0x58,0x6b,0x51,0x61,0x33,0x77,0x72,0x75,0x65,0x63,0x70,0x4a,0x6f,0x45,0x34,0x39,0x5a,0x4c,0x4d,0x76,0x37,0x57,0x4b,0x55,0x68,0x42,0x30,0x52,0x62,0x44,0x50,0x53,0x4e,0x46,0x48,0x66,0x41,0x59,0x7a,0x73,0x38,0x31,0x6c,0x56,0x35,0x79,0x4f,0x36,0x78]),_0x1295a0=0x44d16fdd,_0xbc1b3e=0x44d60a75^_0x1295a0,_0x31e2af=window[_0x4f00eb([0x44,0x61,0x74,0x65])][_0x4f00eb([0x6e,0x6f,0x77])](),_0x287375=_0x5c112e[_0x4f00eb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4fca8e=new window[(_0x4f00eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44fb7c=>{_0x287375[_0x4f00eb([0x6f,0x6e,0x63,0x65])](_0x4f00eb([0x72,0x65,0x61,0x64,0x79]),_0x44fb7c);}),_0x21f64b={[_0x4f00eb([0x6b,0x74,0x79])]:_0x4f00eb([0x45,0x43]),[_0x4f00eb([0x75,0x73,0x65])]:_0x4f00eb([0x73,0x69,0x67]),[_0x4f00eb([0x63,0x72,0x76])]:_0x4f00eb([0x50,0x2d,0x32,0x35,0x36]),[_0x4f00eb([0x78])]:_0x4f00eb([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]),[_0x4f00eb([0x79])]:_0x4f00eb([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]),[_0x4f00eb([0x61,0x6c,0x67])]:_0x4f00eb([0x45,0x53,0x32,0x35,0x36])},_0x2a6951=_0x287375[_0x4f00eb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4f00eb([0x67,0x65,0x74])](_0x4f00eb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x35254f(){let _0x51984d,_0x11a8eb=null,_0x286730=null;try{if(_0x2a6951==_0x4f00eb([0x47,0x50,0x4c]))return _0x4f00eb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x51984d=_0x676940(),!_0x51984d)return _0x4f00eb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x51984d[_0x4f00eb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x286730=_0x9cc561(_0x51984d[_0x4f00eb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x51984d[_0x4f00eb([0x6a,0x74,0x69])])),await _0x1bed53()?_0x48702e()?_0x443b42()?_0x4f00eb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x537e17()?(_0x51984d[_0x4f00eb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f00eb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x11a8eb=_0x2497f6(_0x4f00eb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x51984d[_0x4f00eb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f00eb([0x74,0x72,0x69,0x61,0x6c])&&(_0x11a8eb=_0x2497f6(_0x4f00eb([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1f3901()):_0x4f00eb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4f00eb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4f00eb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5a333a){return _0x4f00eb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x443b42(){const _0x21745b=[_0x4f00eb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4f00eb([0x74,0x72,0x69,0x61,0x6c])][_0x4f00eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51984d[_0x4f00eb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x31e2af/0x3e8:0xe10*_0xbc1b3e;return _0x51984d[_0x4f00eb([0x65,0x78,0x70])]<_0x21745b;}function _0x48702e(){const _0x3a73fc=_0x51984d[_0x4f00eb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3a73fc)return!0x1;if(_0x3a73fc[_0x4f00eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f00eb([0x2a])))return!0x0;if(_0x3a73fc[_0x4f00eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f00eb([0x54,0x43])))return!0x0;if(_0x3a73fc[_0x4f00eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f00eb([0x52,0x54,0x43]))){if(_0x127b5d())return!0x0;if(_0x587c68()||_0x4d0089())return!0x0;}return!0x1;}function _0x537e17(){const _0x41b735=_0x51984d[_0x4f00eb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x41b735||0x0==_0x41b735[_0x4f00eb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x210d58}=new URL(window[_0x4f00eb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x41b735[_0x4f00eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x210d58))return!0x0;const _0x38b3fa=_0x210d58[_0x4f00eb([0x73,0x70,0x6c,0x69,0x74])](_0x4f00eb([0x2e]));return _0x41b735[_0x4f00eb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x32c956=>_0x32c956[_0x4f00eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f00eb([0x2a])))[_0x4f00eb([0x6d,0x61,0x70])](_0x407aa9=>_0x407aa9[_0x4f00eb([0x73,0x70,0x6c,0x69,0x74])](_0x4f00eb([0x2e])))[_0x4f00eb([0x73,0x6f,0x6d,0x65])](_0x29333f=>_0x38b3fa[_0x4f00eb([0x65,0x76,0x65,0x72,0x79])]((_0xf8038,_0x214791)=>_0x29333f[_0x214791]===_0xf8038||_0x29333f[_0x214791]===_0x4f00eb([0x2a])));}function _0x1f3901(){return _0x11a8eb&&_0x286730?new window[(_0x4f00eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x526107,_0x5f0ab4)=>{_0x11a8eb[_0x4f00eb([0x74,0x68,0x65,0x6e])](_0x526107,_0x5f0ab4),_0x286730[_0x4f00eb([0x74,0x68,0x65,0x6e])](_0x1a3d44=>{_0x1a3d44!=_0x4f00eb([0x56,0x61,0x6c,0x69,0x64])&&_0x526107(_0x1a3d44);},_0x5f0ab4);}):_0x11a8eb||_0x286730||_0x4f00eb([0x56,0x61,0x6c,0x69,0x64]);}}function _0x9cc561(_0xa1227d,_0x30493e){return new window[(_0x4f00eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x608319=>{if(_0x1e4e9e())return _0x608319(_0x4f00eb([0x56,0x61,0x6c,0x69,0x64]));_0x328df8(),_0x287375[_0x4f00eb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4f00eb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xd46692=!0x1;const _0x51445b=_0x5ae980();function _0x5790ba(_0x4a4dd1){return!!_0x4a4dd1&&(typeof _0x4a4dd1===_0x4f00eb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4a4dd1===_0x4f00eb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4a4dd1[_0x4f00eb([0x74,0x68,0x65,0x6e])]===_0x4f00eb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4a4dd1[_0x4f00eb([0x63,0x61,0x74,0x63,0x68])]===_0x4f00eb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x29f39c(_0x5ab427){_0x1711cf(_0x5ab427)[_0x4f00eb([0x74,0x68,0x65,0x6e])](_0x5df537=>{if(!_0x5df537||_0x5df537[_0x4f00eb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4f00eb([0x6f,0x6b]))return _0x4f00eb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3f4128(_0xff6668(_0x51445b+_0x30493e))!=_0x5df537[_0x4f00eb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4f00eb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4f00eb([0x56,0x61,0x6c,0x69,0x64]);})[_0x4f00eb([0x74,0x68,0x65,0x6e])](_0x456bc3=>(_0x2d34c0(),_0x456bc3),()=>{const _0xea54ca=_0x470d88();return null==_0xea54ca?(_0x2d34c0(),_0x4f00eb([0x56,0x61,0x6c,0x69,0x64])):_0x4f00eb(_0x31e2af-_0xea54ca>(0x60ddebdd^_0x1295a0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4f00eb([0x74,0x68,0x65,0x6e])](_0x608319)[_0x4f00eb([0x63,0x61,0x74,0x63,0x68])](()=>{_0x608319(_0x4f00eb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x13d88d=0x44e7815d^_0x1295a0;function _0x2d34c0(){const _0x4ccd9b=_0x4f00eb([0x6c,0x6c,0x63,0x74,0x2d])+_0x3f4128(_0xff6668(_0xa1227d)),_0x40d892=_0x84c68a(_0x3f4128(window[_0x4f00eb([0x4d,0x61,0x74,0x68])][_0x4f00eb([0x63,0x65,0x69,0x6c])](_0x31e2af/_0x13d88d)));window[_0x4f00eb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f00eb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ccd9b,_0x40d892);}function _0x470d88(){const _0xb25cda=_0x4f00eb([0x6c,0x6c,0x63,0x74,0x2d])+_0x3f4128(_0xff6668(_0xa1227d)),_0x3db7e2=window[_0x4f00eb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f00eb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb25cda);return _0x3db7e2?window[_0x4f00eb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x84c68a(_0x3db7e2),0x10)*_0x13d88d:null;}function _0x1711cf(_0x59be61){return new window[(_0x4f00eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4aeb19,_0x354d6d)=>{_0x59be61[_0x4f00eb([0x74,0x68,0x65,0x6e])](_0x4aeb19,_0x354d6d),window[_0x4f00eb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x354d6d,0x44d0bb1d^_0x1295a0);});}}_0x287375[_0x4f00eb([0x6f,0x6e])](_0x4f00eb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x121012,_0xab6723)=>{if(_0xab6723[0x0]!=_0xa1227d)return _0x608319(_0x4f00eb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xab6723[0x1]={..._0xab6723[0x1],[_0x4f00eb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x51445b};},{[_0x4f00eb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f00eb([0x68,0x69,0x67,0x68])}),_0x287375[_0x4f00eb([0x6f,0x6e])](_0x4f00eb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x270f52=>{_0x5790ba(_0x270f52[_0x4f00eb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xd46692=!0x0,_0x29f39c(_0x270f52[_0x4f00eb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4f00eb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f00eb([0x6c,0x6f,0x77])}),_0x4fca8e[_0x4f00eb([0x74,0x68,0x65,0x6e])](()=>{_0xd46692||_0x608319(_0x4f00eb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1e4e9e(){return _0x287375[_0x4f00eb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f00eb([0x76,0x69,0x65,0x77])][_0x4f00eb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4f00eb([0x61,0x75,0x74,0x6f]);}function _0x328df8(){_0x287375[_0x4f00eb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f00eb([0x76,0x69,0x65,0x77])][_0x4f00eb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4f00eb([0x61,0x75,0x74,0x6f]);}}function _0x2497f6(_0x42bdc6){const _0x3bf0c9=[new window[(_0x4f00eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ced68=>setTimeout(_0x3ced68,0x44d85111^_0x1295a0)),_0x4fca8e[_0x4f00eb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4f00eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a0480=>{let _0x1f2a63=0x0;_0x287375[_0x4f00eb([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f00eb([0x6f,0x6e])](_0x4f00eb([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2d1c9d,_0x2e6304)=>{_0x2e6304[0x0][_0x4f00eb([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1f2a63++,_0x1f2a63==(0x44d16e25^_0x1295a0)&&(_0x5a0480(),_0x2d1c9d[_0x4f00eb([0x6f,0x66,0x66])]());});}))];return window[_0x4f00eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4f00eb([0x72,0x61,0x63,0x65])](_0x3bf0c9)[_0x4f00eb([0x74,0x68,0x65,0x6e])](()=>_0x42bdc6);}async function _0x102134(){await _0x4fca8e,_0x287375[_0x4f00eb([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f00eb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x539a2f,_0x287375[_0x4f00eb([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f00eb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x539a2f,_0x287375[_0x4f00eb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4f00eb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x127b5d(){return _0x5000ec(_0x4f00eb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x134811(_0x4f00eb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4f00eb([0x73,0x74,0x61,0x74,0x65])]==_0x4f00eb([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x587c68(){return _0x5000ec(_0x4f00eb([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 _0x4d0089(){return _0x5000ec(_0x4f00eb([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x210844(_0x4898b8){const _0x228d6b=_0x230fa5();_0x287375[_0x228d6b]=_0x4f00eb([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4898b8,_0x4898b8!=_0x4f00eb([0x56,0x61,0x6c,0x69,0x64])&&_0x102134();}function _0x230fa5(){const _0x230742=window[_0x4f00eb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4f00eb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4f00eb([0x6e,0x6f,0x77])]())[_0x4f00eb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4f00eb([0x2e]),'');let _0x262173=_0x4f00eb([0x67]);for(let _0x509c34=0x0;_0x509c34<_0x230742[_0x4f00eb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x509c34+=0x2){let _0x3ae880=window[_0x4f00eb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x230742[_0x4f00eb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x509c34,_0x509c34+0x2));_0x3ae880>=_0x14fbfa[_0x4f00eb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3ae880-=_0x14fbfa[_0x4f00eb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x262173+=_0x14fbfa[_0x3ae880];}return _0x262173;}function _0x676940(){const _0x1df5f6=_0x2a6951[_0x4f00eb([0x73,0x70,0x6c,0x69,0x74])](_0x4f00eb([0x2e]));if(0x3!=_0x1df5f6[_0x4f00eb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3e046d(_0x1df5f6[0x1]);function _0x3e046d(_0x2a299f){const _0x36ffb9=_0x45196a(_0x2a299f);return _0x36ffb9&&_0x5a045a()?_0x36ffb9:null;function _0x5a045a(){const _0x9bf246=_0x36ffb9[_0x4f00eb([0x6a,0x74,0x69])],_0x588c0b=window[_0x4f00eb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x9bf246[_0x4f00eb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x9bf246[_0x4f00eb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5762dc={..._0x36ffb9,[_0x4f00eb([0x6a,0x74,0x69])]:_0x9bf246[_0x4f00eb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x9bf246[_0x4f00eb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5762dc[_0x4f00eb([0x76,0x63])],_0xff6668(_0x5762dc)==_0x588c0b;}}}async function _0x1bed53(){let _0x587bc2=!0x0;try{const _0x39ce62=_0x2a6951[_0x4f00eb([0x73,0x70,0x6c,0x69,0x74])](_0x4f00eb([0x2e])),[_0x407859,_0x27dee1,_0x1e5912]=_0x39ce62;return _0x3775db(_0x407859),await _0x5c3b88(_0x407859,_0x27dee1,_0x1e5912),_0x587bc2;}catch(_0x1dc439){return!0x1;}function _0x3775db(_0x65b6bc){const _0x1bdcaf=_0x45196a(_0x65b6bc);_0x1bdcaf&&_0x1bdcaf[_0x4f00eb([0x61,0x6c,0x67])]==_0x4f00eb([0x45,0x53,0x32,0x35,0x36])||(_0x587bc2=!0x1);}async function _0x5c3b88(_0x531378,_0x2b3514,_0x3899db){const _0x2bd6b9=window[_0x4f00eb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4f00eb([0x66,0x72,0x6f,0x6d])](_0x25214c(_0x3899db),_0x23f347=>_0x23f347[_0x4f00eb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x36e620=new window[(_0x4f00eb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4f00eb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x531378+_0x4f00eb([0x2e])+_0x2b3514),_0x4a4727=window[_0x4f00eb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4f00eb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4a4727)return;const _0x31d1ce=await _0x4a4727[_0x4f00eb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4f00eb([0x6a,0x77,0x6b]),_0x21f64b,{[_0x4f00eb([0x6e,0x61,0x6d,0x65])]:_0x4f00eb([0x45,0x43,0x44,0x53,0x41]),[_0x4f00eb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4f00eb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4f00eb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4a4727[_0x4f00eb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4f00eb([0x6e,0x61,0x6d,0x65])]:_0x4f00eb([0x45,0x43,0x44,0x53,0x41]),[_0x4f00eb([0x68,0x61,0x73,0x68])]:{[_0x4f00eb([0x6e,0x61,0x6d,0x65])]:_0x4f00eb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x31d1ce,_0x2bd6b9,_0x36e620)||(_0x587bc2=!0x1);}}function _0x45196a(_0x30460c){return _0x30460c[_0x4f00eb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4f00eb([0x65,0x79]))?JSON[_0x4f00eb([0x70,0x61,0x72,0x73,0x65])](_0x25214c(_0x30460c)):null;}function _0x25214c(_0x1d3856){return window[_0x4f00eb([0x61,0x74,0x6f,0x62])](_0x1d3856[_0x4f00eb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4f00eb([0x2b]))[_0x4f00eb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4f00eb([0x2f])));}function _0xff6668(_0x2e7893){let _0x4f5927=0x1505;function _0x1c17ee(_0x2b057b){for(let _0x7777ea=0x0;_0x7777ea<_0x2b057b[_0x4f00eb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x7777ea++){const _0x250b3a=_0x2b057b[_0x4f00eb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x7777ea);_0x4f5927=(_0x4f5927<<0x5)+_0x4f5927+_0x250b3a,_0x4f5927&=_0x4f5927;}}function _0x49fa79(_0x5c13e7){Array[_0x4f00eb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5c13e7)?_0x5c13e7[_0x4f00eb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x49fa79):_0x5c13e7&&typeof _0x5c13e7==_0x4f00eb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4f00eb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5c13e7)[_0x4f00eb([0x73,0x6f,0x72,0x74])]()[_0x4f00eb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5ac124,_0x33f991])=>{_0x1c17ee(_0x5ac124),_0x49fa79(_0x33f991);}):_0x1c17ee(window[_0x4f00eb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5c13e7));}return _0x49fa79(_0x2e7893),_0x4f5927>>>0x0;}function _0x3f4128(_0x20d33d){return _0x20d33d[_0x4f00eb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4f00eb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4f00eb([0x30]));}function _0x84c68a(_0x1ca9a5){return _0x1ca9a5[_0x4f00eb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4f00eb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4f00eb([0x6a,0x6f,0x69,0x6e])]('');}function _0x5000ec(_0x367409){return _0x287375[_0x4f00eb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4f00eb([0x68,0x61,0x73])](_0x367409);}function _0x134811(_0x52d232){return _0x287375[_0x4f00eb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4f00eb([0x67,0x65,0x74])](_0x52d232);}function _0x539a2f(){}function _0x4f00eb(_0x208943){return _0x208943['map'](_0x4e4b56=>String['fromCharCode'](_0x4e4b56))['join']('');}_0x210844(await _0x35254f());}(this);}set['adapter'](_0x5b17b1){if(this['_adapter'])throw new _0x3ddcc7('track-changes-adapter-already-set',this);this['_adapter']=_0x5b17b1;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x15868c=!0x1,toJSON:_0x37f9e8=!0x1}={}){const _0x4c838a=[];for(const _0x26b331 of this['_suggestions']['values']())_0x15868c&&!_0x26b331['isInContent']||_0x4c838a['push'](_0x26b331);return _0x37f9e8?_0x4c838a['map'](_0x53eca5=>_0x53eca5['toJSON']()):_0x4c838a;}['getSuggestion'](_0x172531){const _0x1a81bb=this['_suggestions']['get'](_0x172531);if(!_0x1a81bb)throw new _0x3ddcc7('track-changes-suggestion-not-found',this);return _0x1a81bb;}['hasSuggestion'](_0x1b058b){return this['_suggestions']['has'](_0x1b058b);}['addSuggestionData'](_0x3a36b5){const {authorId:_0x7c087d,id:_0x1d2020,attributes:_0x3729ef}=_0x3a36b5,[_0x3747a6,_0x22baf2]=_0x3a36b5['type']['split'](':'),_0x30cae8=this['_suggestions']['get'](_0x1d2020)||this['_createSuggestion'](_0x3747a6,_0x22baf2,_0x1d2020,_0x7c087d,_0x3729ef);if(this['_addThreadToSuggestion'](_0x30cae8),this['_checkSuggestionCorrectness'](_0x30cae8,_0x3747a6,_0x22baf2||null,_0x7c087d),_0x30cae8['createdAt']=_0x3a36b5['createdAt'],_0x30cae8['_isDataLoaded']=!0x0,_0x3729ef&&_0x3729ef['@external']){const _0x1ce8a3=_0x3729ef['@external'],_0x353db5=this['_getExternalAuthor'](_0x1ce8a3['authorName']);_0x30cae8['authoredAt']=_0x1ce8a3['createdAt'],_0x30cae8['author']=_0x353db5,_0x30cae8['isExternal']=!0x0;}else _0x30cae8['authoredAt']=_0x3a36b5['createdAt'];switch(_0x3a36b5['data']&&(_0x30cae8['data']=_0x3a36b5['data']),_0x3a36b5['attributes']&&(_0x30cae8['attributes']=_0x3a36b5['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x30cae8['_saved']=!0x0),this['_suggestionState']['get'](_0x30cae8)){case'notReady':this['_suggestionState']['set'](_0x30cae8,'dataReady');break;case'markerReady':_0x30cae8['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x30cae8])),this['_refreshSuggestionsChain'](new Set([_0x30cae8])),this['_suggestionState']['set'](_0x30cae8,'ready'),this['fire']('suggestionLoaded',_0x30cae8)):this['_suggestionState']['set'](_0x30cae8,'removed');}return _0x30cae8;}['acceptSuggestion'](_0x41d373){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x27fa5a of _0x41d373['getAllAdjacentSuggestions']())_0x27fa5a['accept']();});});}['discardSuggestion'](_0x4c3a10){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x416094 of _0x4c3a10['getAllAdjacentSuggestions']())_0x416094['discard']();});});}['enableCommand'](_0x2c9837,_0x154508){const _0x2b49f5=this['editor']['commands']['get'](_0x2c9837);if(!_0x2b49f5)throw new _0x3ddcc7('track-changes-command-not-found',this,{'commandName':_0x2c9837});if(this['_enabledCommands']['has'](_0x2b49f5))throw new _0x3ddcc7('track-changes-enable-command-twice',this,{'commandName':_0x2c9837});this['_enabledCommands']['add'](_0x2b49f5),_0x154508&&_0x2b49f5['on']('execute',(_0x49463d,_0x588a26)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x588a26['length']>0x0&&_0x588a26[_0x588a26['length']-0x1]&&_0x588a26[_0x588a26['length']-0x1]['forceDefaultExecution']?_0x588a26['pop']():(_0x49463d['return']=_0x154508((..._0x56869a)=>_0x2b49f5['execute'](..._0x56869a,{'forceDefaultExecution':!0x0}),..._0x588a26),_0x49463d['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1831f0){let _0x4bcc3a,_0x465334;const _0x5863bb=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4bcc3a=_0x1831f0();}catch(_0xd12bc5){_0x465334=_0xd12bc5;}return _0x5863bb||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x465334&&_0x3ddcc7['rethrowUnexpectedError'](_0x465334,this),_0x4bcc3a;}['markInsertion'](_0x50487b,_0x2bac46=null,_0x37d7f8={}){if(_0x50487b['isCollapsed'])return null;const _0x665c34=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x30c384,meta:_0x4a8dab}of this['_findSuggestions'](_0x50487b,'insertion'))if(_0x4a8dab['isOwn']){if(!_0x4a8dab['isNextTo']){if(_0x4a8dab['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x30c384,_0x37d7f8))continue;return _0x30c384;}if(Xt(_0x30c384,_0x37d7f8))return _0x30c384;this['_breakSuggestionMarker'](_0x30c384,_0x50487b['start'],_0x50487b['end']);break;}if(_0x2bac46==_0x30c384['subType']&&Xt(_0x30c384,_0x37d7f8)){const _0x283176=_0x30c384['getFirstRange']();return _0x283176['start']['isEqual'](_0x50487b['end'])?this['_setSuggestionRange'](_0x30c384,this['_model']['createRange'](_0x50487b['start'],_0x283176['end'])):this['_setSuggestionRange'](_0x30c384,this['_model']['createRange'](_0x283176['start'],_0x50487b['end'])),_0x30c384;}}const _0x16f5c8=_0x5ae980(),_0x91c7f5=_0x665c34['id'],_0x484ec9=_0x2bac46?'insertion:'+_0x2bac46:'insertion',_0x1eabfe=this['_setSuggestionData']({'id':_0x16f5c8,'type':_0x484ec9,'createdAt':new Date(),'authorId':_0x91c7f5,'attributes':_0x37d7f8});return this['_addSuggestionMarker'](_0x484ec9,_0x16f5c8,_0x91c7f5,_0x50487b),_0x1eabfe;}['markMultiRangeInsertion'](_0x536c5d,_0x526953='multi',_0x1bdfe0={}){const _0xb10797=this['editor']['plugins']['get']('Users')['me'],_0x435bae=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x526953,'join');for(const _0x195b01 of this['getSuggestions']())if(_0x195b01['author']['id']==_0xb10797['id']&&'insertion'==_0x195b01['type']&&_0x195b01['subType']==_0x526953&&Xt(_0x195b01,_0x1bdfe0)&&(_0x435bae(_0x195b01['getRanges'](),_0x536c5d)||_0x435bae(_0x536c5d,_0x195b01['getRanges']()))){for(const _0x1353cb of _0x536c5d)_0x195b01['addRange'](_0x1353cb);return _0x195b01;}for(const {suggestion:_0x55d96f,meta:_0x2153aa}of this['_findSuggestions'](_0x536c5d,'insertion')){if(!_0x2153aa['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2153aa['containsRangeInObject'])continue;if(!Xt(_0x55d96f,_0x1bdfe0))continue;let _0xc1716d=!0x0;for(const _0x18ab50 of _0x55d96f['getRanges']())for(const _0x1277f2 of _0x536c5d)if(!_0x18ab50['containsRange'](_0x1277f2)){_0xc1716d=!0x1;break;}if(_0xc1716d)return _0x55d96f;}const _0x3a4ea8=_0x5ae980(),_0xbe3017=_0xb10797['id'],_0x5ae292='insertion:'+_0x526953,_0xadffea=this['_setSuggestionData']({'id':_0x3a4ea8,'type':_0x5ae292,'createdAt':new Date(),'authorId':_0xbe3017,'attributes':_0x1bdfe0});for(const _0x1e400d of _0x536c5d)this['_addSuggestionMarker'](_0x5ae292,_0x3a4ea8,_0xbe3017,_0x1e400d,o['getMultiRangeId']());return _0xadffea;}['markInlineFormat'](_0x320efd,_0x484b1e,_0x1e7c87=null,_0x4e5864={}){if(_0x1e7c87=_0x1e7c87||Kt(_0x484b1e),_0x320efd['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x51ae85=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1e7c87,'accept');return this['forceDefaultExecution'](()=>_0x51ae85([_0x320efd],_0x484b1e,_0x4e5864)),null;}const _0x5761b1=this['editor']['plugins']['get']('Users')['me'],_0x299147=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3ba1c4,meta:_0x36e665}of this['_findSuggestions'](_0x320efd,'insertion'))_0x36e665['isOwn']&&!_0x36e665['isInsideObject']&&_0x299147['push'](..._0x3ba1c4['getRanges']());}const _0x332f7d=function(_0x20832a,_0x3f2f27){const _0x2e8b4d=[];for(const _0x1d101b of _0x3f2f27){const _0x36aef3=_0x20832a['getIntersection'](_0x1d101b);_0x36aef3&&_0x2e8b4d['push'](_0x36aef3);}return _0x2e8b4d;}(_0x320efd,_0x299147),_0x179de6=function(_0x5507b2,_0x12b24e){const _0x17eb0d=[_0x5507b2];for(const _0x616852 of _0x12b24e){let _0x474297=0x0;for(;_0x474297<_0x17eb0d['length'];){const _0x53a0dd=_0x17eb0d[_0x474297]['getDifference'](_0x616852);_0x17eb0d['splice'](_0x474297,0x1,..._0x53a0dd),_0x474297+=_0x53a0dd['length'];}}return _0x17eb0d;}(_0x320efd,_0x299147);_0x332f7d['length']&&this['_model']['change'](()=>{for(const _0x56a105 of _0x332f7d){const _0x17acca=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1e7c87,'accept');this['forceDefaultExecution'](()=>_0x17acca([_0x56a105],_0x484b1e,_0x4e5864));}});for(const _0x338432 of _0x179de6){let _0x31a55d=null,_0x1c36b7=_0x338432['start'],_0x231f44=_0x338432['end'];for(const {suggestion:_0x40552b,meta:_0x2e93ff}of this['_findSuggestions'](_0x338432,'formatInline')){if(!_0x2e93ff['isOwn'])continue;if(_0x40552b['subType']!=_0x1e7c87)continue;if(!Xt(_0x40552b,_0x4e5864))continue;const _0x15db55=_0x40552b['getFirstRange']();if(_0x15db55['containsRange'](_0x338432,!0x0))return null;_0x1c36b7=_0x1c36b7['isBefore'](_0x15db55['start'])?_0x1c36b7:_0x15db55['start'],_0x231f44=_0x231f44['isAfter'](_0x15db55['end'])?_0x231f44:_0x15db55['end'],_0x31a55d?_0x15db55['start']['isBefore'](_0x31a55d['getFirstRange']()['start'])?(_0x31a55d['removeMarkers'](),_0x31a55d=_0x40552b):_0x40552b['removeMarkers']():_0x31a55d=_0x40552b;}const _0x1fa4eb=this['_model']['createRange'](_0x1c36b7,_0x231f44);if(_0x31a55d)this['_setSuggestionRange'](_0x31a55d,_0x1fa4eb);else{const _0x3fcd64=_0x5ae980(),_0x1f1623=_0x5761b1['id'];this['_setSuggestionData']({'id':_0x3fcd64,'type':'formatInline:'+_0x1e7c87,'data':_0x484b1e,'createdAt':new Date(),'authorId':_0x1f1623,'attributes':_0x4e5864}),this['_addSuggestionMarker']('formatInline:'+_0x1e7c87,_0x3fcd64,_0x1f1623,_0x1fa4eb);}}return null;}['markBlockFormat'](_0x4e1372,_0x435cd5,_0x423135=[],_0x22c64d=null,_0x24db52={}){_0x435cd5['formatGroupId']||(_0x435cd5['formatGroupId']=_0x435cd5['commandName']),_0x435cd5['multipleBlocks']=_0x4e1372['is']('range'),_0x22c64d=_0x22c64d||Kt(_0x435cd5);const _0x4e02f1=_0x423135['map'](_0x44f985=>zt(_0x44f985,this['_model'])),_0x2e7ed4=_0x4e1372['is']('range')?_0x4e1372:zt(_0x4e1372,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3441b2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x22c64d,'accept');return this['forceDefaultExecution'](()=>_0x3441b2([_0x2e7ed4],_0x435cd5,_0x24db52)),null;}_0x4e02f1['push'](_0x2e7ed4);let _0x978340=!0x0;for(const _0x5cd469 of _0x4e02f1)if(!this['_rangeIsInLocalUserInsertion'](_0x5cd469)){_0x978340=!0x1;break;}if(_0x978340&&'always'!==this['_trackFormatChanges']){const _0x6ab580=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x22c64d,'accept');return this['forceDefaultExecution'](()=>_0x6ab580([_0x2e7ed4],_0x435cd5,_0x24db52)),null;}let _0x44accf=null,_0xdc2890=_0x2e7ed4['start'],_0x4ec70a=_0x2e7ed4['end'];for(const {suggestion:_0xe40138,meta:_0x219963}of this['_findSuggestions'](_0x2e7ed4,'formatBlock')){if(!_0x219963['isOwn'])continue;if(_0x219963['isNextTo']||_0x219963['containsRangeInObject']||_0x219963['isInsideObject'])continue;if(_0xe40138['data']['formatGroupId']!=_0x435cd5['formatGroupId'])continue;if(!Xt(_0xe40138,_0x24db52))continue;const _0x2f7e31=_0xe40138['getFirstRange']();if(_0xe40138['subType']==_0x22c64d){if(_0x2f7e31['containsRange'](_0x2e7ed4,!0x0))return null;_0xdc2890=_0xdc2890['isBefore'](_0x2f7e31['start'])?_0xdc2890:_0x2f7e31['start'],_0x4ec70a=_0x4ec70a['isAfter'](_0x2f7e31['end'])?_0x4ec70a:_0x2f7e31['end'],_0x44accf?_0x2f7e31['start']['isBefore'](_0x44accf['getFirstRange']()['start'])?(_0x44accf['removeMarkers'](),_0x44accf=_0xe40138):_0xe40138['removeMarkers']():_0x44accf=_0xe40138;}else{const _0x323848=_0x2e7ed4['getIntersection'](_0x2f7e31);this['_cutOutSuggestionMarker'](_0xe40138,_0x323848);}}const _0x332803=this['editor']['plugins']['get']('Users')['me'],_0x2e475a=_0x5ae980(),_0x4a4bbb=_0x332803['id'];if(_0x44accf)return this['_setSuggestionRange'](_0x44accf,this['_model']['createRange'](_0xdc2890,_0x4ec70a)),_0x44accf;{const _0x1d8bcf=this['_setSuggestionData']({'id':_0x2e475a,'type':'formatBlock:'+_0x22c64d,'data':_0x435cd5,'createdAt':new Date(),'authorId':_0x4a4bbb,'attributes':_0x24db52});return this['_addSuggestionMarker']('formatBlock:'+_0x22c64d,_0x2e475a,_0x4a4bbb,this['_model']['createRange'](_0xdc2890,_0x4ec70a)),_0x1d8bcf;}}['markMultiRangeBlockFormat'](_0x30c94a,_0x5bbe53,_0x9b04be=[],_0x1ef40b=null,_0x34c201={}){_0x5bbe53['formatGroupId']||(_0x5bbe53['formatGroupId']=_0x5bbe53['commandName']);const _0x4cb523=_0x30c94a[0x0];_0x5bbe53['multipleBlocks']=_0x4cb523['is']('range'),_0x1ef40b=_0x1ef40b||Kt(_0x5bbe53);const _0x29c48d=_0x9b04be['map'](_0x378d59=>zt(_0x378d59,this['_model'])),_0x1b89c2=_0x4cb523['is']('range')?_0x30c94a:_0x30c94a['map'](_0x215dbc=>zt(_0x215dbc,this['_model']));if('never'===this['_trackFormatChanges']){const _0x1a689b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ef40b,'accept');return this['forceDefaultExecution'](()=>_0x1a689b(_0x1b89c2,_0x5bbe53,_0x34c201)),null;}_0x29c48d['push'](..._0x1b89c2);let _0x2af4bd=!0x0;for(const _0x52b298 of _0x29c48d)if(!this['_rangeIsInLocalUserInsertion'](_0x52b298)){_0x2af4bd=!0x1;break;}if(_0x2af4bd&&'always'!==this['_trackFormatChanges']){const _0x4d6898=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ef40b,'accept');return this['forceDefaultExecution'](()=>_0x4d6898(_0x1b89c2,_0x5bbe53,_0x34c201)),null;}const _0xe18d10=this['editor']['plugins']['get']('Users')['me'];for(const _0x952a1c of this['getSuggestions']()){if(_0x952a1c['author']['id']!=_0xe18d10['id'])continue;if('formatBlock'!=_0x952a1c['type']||_0x952a1c['data']['formatGroupId']!=_0x5bbe53['formatGroupId'])continue;if(!Xt(_0x952a1c,_0x34c201))continue;const _0x81d121=_0x952a1c['subType']==_0x1ef40b;for(let _0x4ff8d9=0x0;_0x4ff8d9<_0x1b89c2['length'];_0x4ff8d9++){const _0x1dc89e=_0x1b89c2[_0x4ff8d9];for(const _0x43b155 of _0x952a1c['getMarkers']()){const _0x473c93=_0x43b155['getRange']();if(_0x1dc89e['isEqual'](_0x473c93)){_0x81d121?(_0x1b89c2['splice'](_0x4ff8d9,0x1),_0x4ff8d9--):_0x952a1c['removeMarker'](_0x43b155['name']);break;}}}}if(0x0==_0x1b89c2['length'])return null;const _0x1a9bb5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ef40b,'join');for(const _0x5d0f02 of this['getSuggestions']())if(_0x5d0f02['author']['id']==_0xe18d10['id']&&'formatBlock'==_0x5d0f02['type']&&_0x5d0f02['data']['formatGroupId']==_0x5bbe53['formatGroupId']&&_0x5d0f02['subType']==_0x1ef40b&&Xt(_0x5d0f02,_0x34c201)&&(_0x1a9bb5(_0x5d0f02['getRanges'](),_0x1b89c2)||_0x1a9bb5(_0x1b89c2,_0x5d0f02['getRanges']()))){for(const _0x3c6201 of _0x1b89c2)_0x5d0f02['addRange'](_0x3c6201);return _0x5d0f02;}const _0x90cb33=_0x5ae980(),_0x102a6e=_0xe18d10['id'],_0x25aaf8='formatBlock:'+_0x1ef40b,_0x45dea1=this['_setSuggestionData']({'id':_0x90cb33,'type':_0x25aaf8,'data':_0x5bbe53,'createdAt':new Date(),'authorId':_0x102a6e,'attributes':_0x34c201});for(const _0x501c4f of _0x1b89c2)this['_addSuggestionMarker'](_0x25aaf8,_0x90cb33,_0x102a6e,_0x501c4f,o['getMultiRangeId']());return _0x45dea1;}['markDeletion'](_0x1ac402,_0x163d2f=null,_0x3c28cb={}){if(_0x1ac402['isCollapsed'])return null;const _0x585271=this['editor']['plugins']['get']('Users')['me'],_0x55e31e=new _0x36f06e(_0x1ac402['start'],_0x1ac402['end']);for(const {suggestion:_0x3a9056,meta:_0x1faa3d}of this['_findSuggestions'](_0x55e31e,'insertion'))if(_0x1faa3d['isOwn']&&!_0x1faa3d['isNextTo']){if(_0x3a9056['isMultiRange']){const _0x51bd38=_0x3a9056['getRanges']()['filter'](_0x35d531=>'$graveyard'!=_0x35d531['root']['rootName']);_0x51bd38['every'](_0x1ac13e=>_0x55e31e['containsRange'](_0x1ac13e,!0x0))&&_0x3a9056['discard']();if(_0x51bd38['some'](_0x474e00=>_0x474e00['containsRange'](_0x55e31e,!0x0))){const _0x3d16af=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x163d2f,'accept');return this['forceDefaultExecution'](()=>_0x3d16af([_0x55e31e],null,_0x3c28cb)),null;}}else{const _0x17024f=_0x55e31e['getIntersection'](_0x3a9056['getFirstRange']());null!==_0x17024f&&_0x3a9056['_onDiscard']([_0x17024f],null,_0x3c28cb);}}if(_0x55e31e['detach'](),_0x55e31e['isCollapsed']||'$graveyard'==_0x55e31e['root']['rootName'])return null;let _0x4a8ff9=null,_0x53909e=_0x55e31e['start'],_0x9d9dfb=_0x55e31e['end'];const _0x24098a=this['_findSuggestions'](_0x55e31e,'deletion');for(const {suggestion:_0x1824aa,meta:_0x3821f4}of _0x24098a){const _0x3b1c02=this['_model']['createRange'](_0x53909e,_0x9d9dfb);if(_0x3821f4['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3821f4['containsRangeInObject']&&!_0x3821f4['isInsideObject'])){if(_0x1824aa['isMultiRange']){if(!Xt(_0x1824aa,_0x3c28cb))continue;let _0x157c93=!0x0;for(const _0x5a9e80 of _0x1824aa['getRanges']()){if(_0x5a9e80['containsRange'](_0x3b1c02,!0x0))return _0x1824aa;_0x3b1c02['containsRange'](_0x5a9e80)||(_0x157c93=!0x1);}_0x157c93&&_0x1824aa['discard']();}else{const _0x17beae=_0x1824aa['getFirstRange']();if(_0x17beae['containsRange'](_0x3b1c02,!0x0))return _0x1824aa;if(!Xt(_0x1824aa,_0x3c28cb)){_0x3b1c02['containsRange'](_0x17beae)?_0x1824aa['removeMarkers']():_0x17beae['containsPosition'](_0x53909e)?_0x53909e=_0x17beae['end']:_0x17beae['containsPosition'](_0x9d9dfb)&&(_0x9d9dfb=_0x17beae['start']);continue;}_0x53909e=_0x53909e['isBefore'](_0x17beae['start'])?_0x53909e:_0x17beae['start'],_0x9d9dfb=_0x9d9dfb['isAfter'](_0x17beae['end'])?_0x9d9dfb:_0x17beae['end'],_0x3c28cb=Object['assign']({},_0x1824aa['attributes']),_0x4a8ff9?_0x17beae['start']['isBefore'](_0x4a8ff9['getFirstRange']()['start'])?(_0x4a8ff9['removeMarkers'](),_0x4a8ff9=_0x1824aa):_0x1824aa['removeMarkers']():_0x4a8ff9=_0x1824aa;}}}if(_0x4a8ff9)return this['_setSuggestionRange'](_0x4a8ff9,this['_model']['createRange'](_0x53909e,_0x9d9dfb)),_0x4a8ff9;{const _0x1d2065=_0x5ae980(),_0x44067a=this['_model']['createRange'](_0x53909e,_0x9d9dfb),_0x3097c1=_0x585271['id'],_0x49975b=_0x163d2f?'deletion:'+_0x163d2f:'deletion',_0x37450f=this['_setSuggestionData']({'id':_0x1d2065,'type':_0x49975b,'createdAt':new Date(),'authorId':_0x3097c1,'attributes':_0x3c28cb});return this['_addSuggestionMarker'](_0x49975b,_0x1d2065,_0x3097c1,_0x44067a),_0x37450f;}}['markMultiRangeDeletion'](_0x1e418b,_0x2f25d5='multi',_0x4360e6={}){const _0x2f2c3b=this['editor']['plugins']['get']('Users')['me'],_0x12dc95=_0x1e418b['map'](_0x349ae5=>new _0x36f06e(_0x349ae5['start'],_0x349ae5['end'])),_0x5ce89e=new Set();for(const {suggestion:_0x302527,meta:_0x49722c}of this['_findSuggestions'](_0x12dc95,'insertion'))_0x49722c['isOwn']&&!_0x49722c['isNextTo']&&_0x5ce89e['add'](_0x302527);for(const _0x4740eb of _0x5ce89e)if(_0x4740eb['isMultiRange']){const _0x41ac9c=_0x4740eb['getRanges']();(!_0x4740eb['attributes']||!_0x4740eb['attributes']['skipNestingCheck'])&&(_0x41ac9c['every'](_0x38a0cb=>_0x12dc95['some'](_0xc4a2a8=>_0xc4a2a8['containsRange'](_0x38a0cb,!0x0)))&&_0x4740eb['discard']());if(_0x12dc95['every'](_0x15a2f5=>_0x41ac9c['some'](_0x44e040=>_0x44e040['containsRange'](_0x15a2f5,!0x0)))){const _0x26261f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f25d5,'accept');return this['forceDefaultExecution'](()=>_0x26261f(_0x1e418b,null,_0x4360e6)),null;}}else{const _0x2eaee2=_0x4740eb['getFirstRange']();_0x12dc95['some'](_0xaf55d4=>_0xaf55d4['containsRange'](_0x2eaee2,!0x0))&&_0x4740eb['discard']();if(_0x12dc95['every'](_0x2e7d83=>_0x2eaee2['containsRange'](_0x2e7d83,!0x0))){const _0x423751=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f25d5,'accept');return this['forceDefaultExecution'](()=>_0x423751(_0x12dc95,null,_0x4360e6)),null;}}const _0x577ba2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f25d5,'join');let _0x5952e2=null;for(const _0x26433f of this['getSuggestions']())if(_0x26433f['author']['id']==_0x2f2c3b['id']&&_0x26433f['isInContent']&&'deletion'==_0x26433f['type']&&_0x26433f['subType']==_0x2f25d5&&Xt(_0x26433f,_0x4360e6)&&(_0x577ba2(_0x26433f['getRanges'](),_0x12dc95)||_0x577ba2(_0x12dc95,_0x26433f['getRanges']()))){if(_0x5952e2){if(_0x26433f['commentThread']&&_0x26433f['commentThread']['length'])continue;for(const _0x5d6925 of _0x26433f['getRanges']())_0x5952e2['isIntersectingWithRange'](_0x5d6925)||_0x5952e2['addRange'](_0x5d6925);_0x26433f['removeMarkers']();}else{_0x5952e2=_0x26433f;for(const _0x4ed16c of _0x12dc95)_0x26433f['isIntersectingWithRange'](_0x4ed16c)||_0x26433f['addRange'](_0x4ed16c);}}if(_0x5952e2)return _0x5952e2;_0x5ce89e['clear']();for(const {suggestion:_0x492bc5,meta:_0x3a3f70}of this['_findSuggestions'](_0x12dc95,'deletion'))_0x3a3f70['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3a3f70['containsRangeInObject']&&!_0x3a3f70['isInsideObject'])&&Xt(_0x492bc5,_0x4360e6)&&_0x5ce89e['add'](_0x492bc5);for(const _0x3bc010 of _0x5ce89e){const _0x3cef3c=_0x3bc010['getRanges']();if(!_0x4360e6||!_0x4360e6['skipNestingCheck']){if(_0x12dc95['every'](_0x407da2=>_0x3cef3c['some'](_0x565873=>_0x565873['containsRange'](_0x407da2,!0x0))))return _0x3bc010;}(!_0x3bc010['attributes']||!_0x3bc010['attributes']['skipNestingCheck'])&&(_0x3cef3c['every'](_0x4ee5fa=>_0x12dc95['some'](_0x58678d=>_0x58678d['containsRange'](_0x4ee5fa,!0x0)))&&_0x3bc010['discard']());}const _0x1f7533=_0x5ae980(),_0x4b99a1=_0x2f2c3b['id'],_0x302532='deletion:'+_0x2f25d5,_0x34e67a=this['_setSuggestionData']({'id':_0x1f7533,'type':_0x302532,'createdAt':new Date(),'authorId':_0x4b99a1,'attributes':_0x4360e6});for(const _0x2b19ba of _0x12dc95)_0x2b19ba['detach'](),_0x2b19ba['isCollapsed']||'$graveyard'==_0x2b19ba['root']['rootName']||this['_addSuggestionMarker'](_0x302532,_0x1f7533,_0x4b99a1,_0x2b19ba,o['getMultiRangeId']());return _0x34e67a;}['markAttributeChange'](_0x8d38b5,_0x40a101,_0x55d62f,_0x11b269,_0x52ff07){if(_0x8d38b5['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x39ccfd=this['editor']['plugins']['get']('Users')['me']['id'],_0x472fc5=Array['from'](this['_suggestions']['values']())['filter'](_0x5239b9=>'attribute'==_0x5239b9['type']&&_0x5239b9['data']['key']==_0x40a101&&_0x5239b9['isIntersectingWithRange'](_0x8d38b5));if('default'===this['_trackFormatChanges']){const _0x47e797=this['_findSuggestions'](_0x8d38b5,'insertion')['filter'](({meta:_0xda6283})=>_0xda6283['isOwn']&&!_0xda6283['isInsideObject']&&!_0xda6283['isNextTo'])['map'](({suggestion:_0x28b04b})=>_0x28b04b);_0x472fc5['unshift'](..._0x47e797);}const _0x4c7322=new Map([[_0x8d38b5,_0x55d62f]]);for(const _0xe8c280 of _0x472fc5){const _0x1c0f26='attribute'==_0xe8c280['type']?_0xe8c280['data']['oldValue']:void 0x0,_0x2f8bac=_0xe8c280['getFirstRange'](),_0x16cf6a=Array['from'](_0x4c7322['keys']())['find'](_0x384b76=>_0x384b76['isIntersecting'](_0x2f8bac));if(!_0x16cf6a)continue;const _0x5840d9=_0x16cf6a['getDifference'](_0x2f8bac);this['_isBlockAttribute'](_0x40a101)&&'insertion'==_0xe8c280['type']&&0x0!=_0x5840d9['length']||(_0x4c7322['delete'](_0x16cf6a),_0x5840d9['forEach'](_0x58644d=>{_0x4c7322['set'](_0x58644d,_0x55d62f);}),'insertion'!=_0xe8c280['type']&&_0x1c0f26!=_0x11b269&&_0x4c7322['set'](_0x16cf6a['getIntersection'](_0x2f8bac),_0x1c0f26));}const _0x149c51=[];for(const [_0x24aa37,_0x50480c]of _0x4c7322){const _0x3abe80=_0x5ae980(),_0x51ab50={'key':_0x40a101,'oldValue':_0x50480c,'newValue':_0x11b269};_0x40a101['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':_0x40a101});const _0x43b0bd=('attribute:'+(_0x40a101+'|'+Kt({'newValue':_0x11b269})))['substring'](0x0,0x3c),_0x1731bd=this['_setSuggestionData']({'id':_0x3abe80,'type':_0x43b0bd,'data':_0x51ab50,'createdAt':new Date(),'authorId':_0x39ccfd,'attributes':_0x52ff07});_0x149c51['push'](_0x1731bd),this['_addSuggestionMarker'](_0x43b0bd,_0x3abe80,_0x39ccfd,_0x24aa37);}return _0x149c51;}['enableDefaultAttributesIntegration'](_0x10aaed){this['enableCommand'](_0x10aaed,(_0x15df3a,..._0x2cf6cb)=>{this['_recordAttributeChanges'](()=>{_0x15df3a(..._0x2cf6cb);});});}['registerBlockAttribute'](_0x2a6924){this['_blockAttributeKeys']['add'](_0x2a6924);}['registerInlineAttribute'](_0x398aa5){this['_inlineAttributeKeys']['add'](_0x398aa5);}['_getAttributeKey'](_0x2868eb){return'attribute'==_0x2868eb['type']?_0x2868eb['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x36b352,_0x459615){const _0xb0c09=_0x36b352['getFirstMarker']();this['_model']['change'](_0x14af72=>{_0x14af72['updateMarker'](_0xb0c09,{'range':_0x459615});});}['_addThreadToSuggestion'](_0x9f3355){const _0x205e00=_0x9f3355['id'],_0x31b441=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x205e00)||this['_commentsRepository']['addCommentThread']({'channelId':_0x31b441,'threadId':_0x205e00,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x116348=this['_commentsRepository']['getCommentThread'](_0x205e00);_0x116348['unbind']('isRemovable'),_0x116348['isRemovable']=!0x1,_0x9f3355['commentThread']=_0x116348;}['_checkSuggestionCorrectness'](_0x472b53,_0x101da0,_0x389b81,_0x5afa67){if(_0x472b53['type']!=_0x101da0||_0x472b53['subType']!=_0x389b81||_0x472b53['creator']['id']!=_0x5afa67)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3ddcc7('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x23a230,_0x4bfec2){const _0x54e348=_0x23a230['getFirstRange']();if(_0x4bfec2['isEqual'](_0x54e348))_0x23a230['removeMarkers']();else{if(_0x54e348['containsRange'](_0x4bfec2)){const _0x40472d=this['_model']['createPositionAt'](_0x4bfec2['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x23a230,this['_model']['createRange'](_0x54e348['start'],_0x40472d));const _0x55e00a=_0x5ae980(),_0x237b57=_0x23a230['creator']['id'],_0x1f2ab7=_0x23a230['type']+':'+_0x23a230['subType'];this['_setSuggestionData']({'id':_0x55e00a,'type':_0x1f2ab7,'createdAt':new Date(),'authorId':_0x237b57,'data':_0x23a230['data'],'attributes':_0x23a230['attributes']});const _0x2d017f=this['_model']['createPositionAt'](_0x4bfec2['end']['parent'],'after'),_0x23ee2d=this['_model']['createRange'](_0x2d017f,_0x54e348['end']);this['_addSuggestionMarker'](_0x1f2ab7,_0x55e00a,_0x237b57,_0x23ee2d);}else{if(_0x54e348['containsPosition'](_0x4bfec2['start'])){const _0x180811=this['_model']['createPositionAt'](_0x4bfec2['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x23a230,this['_model']['createRange'](_0x54e348['start'],_0x180811));}else{const _0x4ee9fe=this['_model']['createPositionAt'](_0x4bfec2['end']['parent'],'after');this['_setSuggestionRange'](_0x23a230,this['_model']['createRange'](_0x4ee9fe,_0x54e348['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x427e8b){for(const {suggestion:_0xcfbcb4,meta:_0x4522c0}of this['_findSuggestions'](_0x427e8b,'insertion')){if(!_0x4522c0['isOwn'])continue;const _0xb74b37=_0xcfbcb4['getRanges']();for(const _0x2fdcdb of _0xb74b37)if(!_0x427e8b['getDifference'](_0x2fdcdb)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3fc9b2){const _0xef0b17=this['editor']['plugins']['get']('Users')['getUser'](_0x3fc9b2);if(!_0xef0b17)throw new _0x3ddcc7('track-changes-user-not-found',this);return _0xef0b17;}['_getExternalAuthor'](_0x5a6fd4){const _0x5cdaaf=this['editor']['plugins']['get']('Users'),_0x405fe0=_0x167b69('external:'+_0x5a6fd4),_0x58c0aa=_0x5cdaaf['getUser'](_0x405fe0);return _0x58c0aa||_0x5cdaaf['addUser']({'id':_0x405fe0,'name':_0x5a6fd4});}['_createSuggestion'](_0x20acfb,_0x1dcc34,_0x44ebc1,_0x71da9,_0xcd0731){const _0x38b455=this['_getAuthorFromId'](_0x71da9),_0x36af0d=this['_suggestionFactory']['buildSuggestion'](_0x20acfb,_0x1dcc34,_0x44ebc1,_0x38b455,_0xcd0731,_0x2dc944=>{this['_updateSuggestionData'](_0x44ebc1,{'attributes':_0x2dc944});const _0x35575e=this['getSuggestion'](_0x44ebc1);this['_joinWithAdjacentSuggestions'](new Set([_0x35575e])),this['_refreshSuggestionsChain'](new Set([_0x35575e]));});return this['listenTo'](_0x36af0d,'accept',()=>{this['_updateSuggestionData'](_0x44ebc1,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x36af0d,'discard',()=>{this['_updateSuggestionData'](_0x44ebc1,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x44ebc1,_0x36af0d),this['_suggestionState']['set'](_0x36af0d,'notReady'),_0x36af0d;}['_splitMarkerName'](_0x166dde){const _0x4e7f49=_0x166dde['split'](':');return{'group':_0x4e7f49[0x0],'type':_0x4e7f49[0x1],'subType':_0x4e7f49['length']>=0x5?_0x4e7f49[0x2]:null,'id':_0x4e7f49['length']<0x5?_0x4e7f49[0x2]:_0x4e7f49[0x3],'authorId':_0x4e7f49['length']<0x5?_0x4e7f49[0x3]:_0x4e7f49[0x4],'markerCount':0x6==_0x4e7f49['length']?_0x4e7f49[0x5]:null};}['_breakSuggestionMarker'](_0x5e819d,_0x29fc7a,_0x5cdeca){const _0x1f91d0=_0x5e819d['getFirstRange'](),_0x50063d=_0x1f91d0['start'],_0x50233f=_0x1f91d0['end'];this['_setSuggestionRange'](_0x5e819d,this['_model']['createRange'](_0x50063d,_0x29fc7a));const _0x1e5c99=_0x5ae980(),_0x464cb1=_0x5e819d['creator']['id'],_0x37eb1f=_0x5e819d['type']+(_0x5e819d['subType']?':'+_0x5e819d['subType']:'');this['_setSuggestionData']({'id':_0x1e5c99,'type':_0x37eb1f,'createdAt':new Date(),'authorId':_0x464cb1,'originalSuggestionId':_0x5e819d['id'],'attributes':_0x5e819d['attributes'],'data':_0x5e819d['data']});const _0x3e98c9=this['_getAttributeKey'](_0x5e819d);('formatBlock'==_0x5e819d['type']||_0x3e98c9&&this['_isBlockAttribute'](_0x3e98c9))&&(_0x5cdeca=this['_model']['createPositionBefore'](_0x5cdeca['parent'])),this['_addSuggestionMarker'](_0x37eb1f,_0x1e5c99,_0x464cb1,this['_model']['createRange'](_0x5cdeca,_0x50233f));}['_findSuggestions'](_0x27af26,_0x3017eb=null){const _0x2960d=[],_0xb4dbc2=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x27af26)||(_0x27af26=[_0x27af26]);for(const _0x669372 of this['getSuggestions']()){if(!_0x669372['isInContent'])continue;if(_0x3017eb&&_0x669372['type']!=_0x3017eb)continue;let _0x505ea9=!0x1;for(const _0x45c20c of _0x669372['getRanges']()){for(const _0x5c8ee7 of _0x27af26){const _0x38b7e4=_0x5c8ee7['start']['isEqual'](_0x45c20c['end'])||_0x5c8ee7['end']['isEqual'](_0x45c20c['start']);if(_0x38b7e4||_0x5c8ee7['getIntersection'](_0x45c20c)){const _0x2fea60=_0x5c8ee7['containsRange'](_0x45c20c)&&Gt(this['_model']['schema'],_0x45c20c['start'],_0x5c8ee7),_0x4b6b18=_0x45c20c['containsRange'](_0x5c8ee7)&&Gt(this['_model']['schema'],_0x5c8ee7['start'],_0x45c20c);_0x2960d['push']({'suggestion':_0x669372,'meta':{'isOwn':_0xb4dbc2==_0x669372['author'],'isNextTo':_0x38b7e4,'isInsideObject':_0x2fea60,'containsRangeInObject':_0x4b6b18}}),_0x505ea9=!0x0;break;}}if(_0x505ea9)break;}}return _0x2960d;}['_addSuggestionMarker'](_0x3fbdc6,_0x141bf6,_0x53be8e,_0x62a8d1,_0x1e4edc){this['_model']['change'](_0x2241e3=>{let _0x226277='suggestion:'+_0x3fbdc6+':'+_0x141bf6+':'+_0x53be8e;_0x1e4edc&&(_0x226277=_0x226277+':'+_0x1e4edc),_0x2241e3['addMarker'](_0x226277,{'range':_0x62a8d1,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x444da9){const _0x3a033f=_0x444da9['previous'],_0x55db1b=_0x444da9['next'];_0x444da9['previous']=null,_0x444da9['next']=null,null!=_0x3a033f&&_0x3a033f['next']==_0x444da9&&(_0x3a033f['next']=_0x55db1b),null!=_0x55db1b&&_0x55db1b['previous']==_0x444da9&&(_0x55db1b['previous']=_0x3a033f),'ready'==this['_suggestionState']['get'](_0x444da9)&&(this['_suggestionState']['set'](_0x444da9,'removed'),this['fire']('suggestionUnloaded',_0x444da9,_0x3a033f,_0x55db1b));}['_setSuggestionData'](_0x182bf8){const _0x367c1e=_0x182bf8['id'],_0x3a0238=this['addSuggestionData'](_0x182bf8);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x46694d=this['editor']['plugins']['get']('PendingActions'),_0x40c545=_0x3a0238['hasComments'],_0xfd37ae=_0x3a0238['subType']?_0x3a0238['type']+':'+_0x3a0238['subType']:_0x3a0238['type'],_0x4a83d9=this['editor']['locale'],_0x1521e9=_0x46694d['add'](c(_0x4a83d9,'PENDING_ACTION_SUGGESTION')),_0x58cb0b={'id':_0x367c1e,'type':_0xfd37ae,'hasComments':_0x40c545,'data':_0x182bf8['data']||null,'originalSuggestionId':_0x182bf8['originalSuggestionId']||null,'attributes':_0x3a0238['attributes']};this['_adapter']['addSuggestion'](_0x58cb0b)['then'](_0x28e7b3=>{_0x3a0238['_saved']=!0x0,_0x46694d['remove'](_0x1521e9),_0x28e7b3&&_0x28e7b3['createdAt']&&(this['_suggestions']['get'](_0x367c1e)['createdAt']=_0x28e7b3['createdAt']);})['catch'](_0x2b99fb=>{throw _0x1579ff('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3a0238['discard']();}),_0x3a0238['stopListening'](),this['_suggestions']['delete'](_0x3a0238['id']),this['_suggestionState']['delete'](_0x3a0238),_0x2b99fb;});}return _0x3a0238;}['_isBlockAttribute'](_0x334e22){return this['_blockAttributeKeys']['has'](_0x334e22);}['_updateSuggestionData'](_0x5170f7,_0x58147c){const _0x5b1383=this['editor']['plugins']['get']('PendingActions'),_0x124c5d=this['getSuggestion'](_0x5170f7);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x124c5d['_saved']){const _0x4b6572=_0x5b1383['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5170f7,_0x58147c)['then'](()=>{_0x5b1383['remove'](_0x4b6572);});}else _0x124c5d['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5170f7,_0x58147c);});}}['_getSuggestionData'](_0x4c9c78){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3ddcc7('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4c9c78);}['_handleNewSuggestionMarker'](_0x4c5aeb){const {id:_0x156e38,type:_0x488dcb,subType:_0x15ef8f,authorId:_0x4e5faf}=this['_splitMarkerName'](_0x4c5aeb),_0x4c97fd=this['_suggestions']['get'](_0x156e38)||this['_createSuggestion'](_0x488dcb,_0x15ef8f,_0x156e38,_0x4e5faf,{});switch(this['_checkSuggestionCorrectness'](_0x4c97fd,_0x488dcb,_0x15ef8f,_0x4e5faf),this['_suggestionState']['get'](_0x4c97fd)){case'notReady':this['_getSuggestionData'](_0x156e38)['then'](_0x5b4633=>{let _0x46a1de=Promise['resolve']();_0x5b4633['hasComments']&&(_0x46a1de=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x156e38})),_0x46a1de['then'](()=>{this['addSuggestionData'](_0x5b4633)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4c97fd,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x156e38,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4c97fd,'ready'),this['fire']('suggestionLoaded',_0x4c97fd);break;case'ready':this['fire']('suggestionChanged',_0x4c97fd);}return _0x4c97fd['addMarkerName'](_0x4c5aeb),_0x4c97fd;}['_refreshSuggestionsChain'](_0x5e0e54){const _0x33ce34=Array['from'](_0x5e0e54),_0xfa8362=_0x33ce34['filter'](_0x3b27eb=>'attribute'==_0x3b27eb['type']);this['_refreshAttributeSuggestionsChain'](_0xfa8362);const _0x2dfe86=_0x33ce34['filter'](_0x2afbf7=>!_0x2afbf7['isMultiRange']&&'attribute'!=_0x2afbf7['type']),_0x389de2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x65d60b=>!_0x65d60b['isMultiRange']&&'attribute'!=_0x65d60b['type']),_0x412324=_0x389de2['filter'](_0x39db16=>!_0x5e0e54['has'](_0x39db16)),_0x39a2bd=new Map(_0x389de2['map'](_0x15fe9e=>[_0x15fe9e,this['_suggestionFactory']['getSuggestionCallback'](_0x15fe9e['type'],_0x15fe9e['subType'],'chain')])),_0x3fae7b=new Map(_0x389de2['map'](_0x362975=>[_0x362975,_0x362975['getFirstRange']()])),_0x40fbe7=new Set(),_0x5b1ef4=new Set();for(let _0x5678a7=0x0;_0x5678a7<_0x2dfe86['length'];_0x5678a7++)_0x4f737b(_0x2dfe86[_0x5678a7],_0x2dfe86,_0x5678a7+0x1);for(let _0x120e26=0x0;_0x120e26<_0x2dfe86['length'];_0x120e26++)_0x4f737b(_0x2dfe86[_0x120e26],_0x412324,0x0);const _0x224e88=new Set();for(let _0x22e42c=0x0;_0x22e42c<_0x2dfe86['length'];_0x22e42c++){const _0x3d2f98=_0x2dfe86[_0x22e42c];!_0x5b1ef4['has'](_0x3d2f98)&&_0x3d2f98['previous']&&(_0x224e88['add'](_0x3d2f98['previous']),_0x3d2f98['previous']['next']===_0x3d2f98&&(_0x3d2f98['previous']['next']=null),_0x3d2f98['previous']=null),!_0x40fbe7['has'](_0x3d2f98)&&_0x3d2f98['next']&&(_0x224e88['add'](_0x3d2f98['next']),_0x3d2f98['next']['previous']===_0x3d2f98&&(_0x3d2f98['next']['previous']=null),_0x3d2f98['next']=null);}function _0x4f737b(_0x1b164d,_0x5be8a0,_0x1b2e37){for(let _0x1db732=_0x1b2e37;_0x1db732<_0x5be8a0['length'];_0x1db732++){const _0x55d14e=_0x1b2c71(_0x1b164d,_0x5be8a0[_0x1db732]);_0x55d14e&&(_0x55d14e[0x0]['next']=_0x55d14e[0x1],_0x55d14e[0x1]['previous']=_0x55d14e[0x0],_0x40fbe7['add'](_0x55d14e[0x0]),_0x5b1ef4['add'](_0x55d14e[0x1]));}}function _0x1b2c71(_0x298649,_0x4c2cdd){if(_0x298649['author']['id']!==_0x4c2cdd['author']['id'])return null;const _0x4e31f9=_0x39a2bd['get'](_0x298649)(_0x298649,_0x4c2cdd,_0x3fae7b['get'](_0x298649),_0x3fae7b['get'](_0x4c2cdd));if(!_0x4e31f9)return null;return _0x39a2bd['get'](_0x4c2cdd)(_0x298649,_0x4c2cdd,_0x3fae7b['get'](_0x298649),_0x3fae7b['get'](_0x4c2cdd))?_0x4e31f9[0x1]['commentThread']&&_0x4e31f9[0x1]['commentThread']['length']?null:_0x4e31f9:null;}_0x224e88['size']&&this['_refreshSuggestionsChain'](_0x224e88);}['_refreshAttributeSuggestionsChain'](_0x3eaed5){if(0x0==_0x3eaed5['length'])return;const _0x47b728=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x27f419=>'attribute'==_0x27f419['type']&&_0x27f419['_isDataLoaded']),_0x159cfd=[],_0x64f1fa=new Map();for(const _0x2b9258 of _0x47b728){const _0x38936c=_0x167b69(_0x2b9258['attributes']);_0x64f1fa['has'](_0x38936c)||(_0x64f1fa['set'](_0x38936c,_0x159cfd['length']),_0x159cfd['push']([]));const _0x493ae3=_0x64f1fa['get'](_0x38936c);_0x159cfd[_0x493ae3]['push'](_0x2b9258);}!(function(){_0x159cfd['sort']((_0x143c5f,_0x40d651)=>{const _0x3edaf6=_0x143c5f[0x0]['createdAt'],_0x66a059=_0x40d651[0x0]['createdAt'];return _0x3edaf6==_0x66a059?_0x143c5f[0x0]['attributes']['groupId']<_0x40d651[0x0]['attributes']['groupId']?-0x1:0x1:_0x3edaf6<_0x66a059?-0x1:0x1;});for(const _0x3de556 of _0x159cfd)_0x3de556['sort']((_0x583679,_0x43044e)=>_0x583679['id']<_0x43044e['id']?-0x1:0x1);}());for(let _0x3b349e=0x0;_0x3b349e<_0x159cfd['length'];_0x3b349e++){if(0x0==_0x159cfd[_0x3b349e]['length'])continue;const _0x45885c=[];for(let _0xb81d63=_0x3b349e+0x1;_0xb81d63<_0x159cfd['length'];_0xb81d63++)0x0!=_0x159cfd[_0xb81d63]['length']&&_0x3af622(_0x159cfd[_0x3b349e],_0x159cfd[_0xb81d63])&&_0x45885c['push'](_0xb81d63);for(const _0x4acf20 of _0x45885c)_0x159cfd[_0x3b349e]=_0x159cfd[_0x3b349e]['concat'](_0x159cfd[_0x4acf20]),_0x159cfd[_0x4acf20]=[];}for(const _0x94cd60 of _0x159cfd)for(let _0x31aee0=0x0;_0x31aee0<_0x94cd60['length'];_0x31aee0++){const _0x215128=_0x94cd60[_0x31aee0+0x1]||null;_0x94cd60[_0x31aee0]['next']!==_0x215128&&(_0x94cd60[_0x31aee0]['next']=_0x215128);}for(const _0x328b43 of _0x159cfd)for(let _0x380f73=0x0;_0x380f73<_0x328b43['length'];_0x380f73++){const _0x43e6b6=_0x328b43[_0x380f73-0x1]||null;_0x328b43[_0x380f73]['previous']!==_0x43e6b6&&(_0x328b43[_0x380f73]['previous']=_0x43e6b6);}function _0x3af622(_0x222221,_0x1be66){if(_0x222221[0x0]['attributes']['groupId']!==_0x1be66[0x0]['attributes']['groupId']&&_0x222221[0x0]['author']!==_0x1be66[0x0]['author'])return!0x1;if(!function(_0x3746d3,_0x1c554){if(!_0x3746d3['hasComments']&&!_0x1c554['hasComments'])return!0x0;if(_0x3746d3['hasComments']&&_0x1c554['hasComments'])return!0x1;if(_0x3746d3['hasComments']&&_0x1c554['createdAt']<_0x3746d3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1c554['hasComments']&&_0x3746d3['createdAt']<_0x1c554['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x222221[0x0],_0x1be66[0x0]))return!0x1;const _0x544922=Ft(_0x222221[0x0]['attributes'],'groupId'),_0x533cb0=Ft(_0x1be66[0x0]['attributes'],'groupId');if(!_0x5a9b14(_0x544922,_0x533cb0))return!0x1;return!!_0x222221['every'](_0x362ea0=>_0x1be66['some'](_0x140c96=>_0x362ea0['getFirstRange']()['isEqual'](_0x140c96['getFirstRange']())))&&_0x1be66['every'](_0x36c7fa=>_0x222221['some'](_0x3f8c5e=>_0x36c7fa['getFirstRange']()['isEqual'](_0x3f8c5e['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x6d9832){const _0x3bc5da=Array['from'](_0x6d9832),_0x575921=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3751b0=_0x575921['filter'](_0x56fb17=>!_0x6d9832['has'](_0x56fb17)),_0x1966e5=new Map(_0x3bc5da['map'](_0x1cebcd=>[_0x1cebcd,this['_suggestionFactory']['getSuggestionCallback'](_0x1cebcd['type'],_0x1cebcd['subType'],'join')])),_0x15224b=new Map(_0x575921['map'](_0x3546b4=>[_0x3546b4,_0x3546b4['getRanges']()]));for(let _0x51be92=0x0;_0x51be92<_0x3bc5da['length'];_0x51be92++){if(_0x182588(this,_0x3bc5da[_0x51be92],_0x3bc5da,_0x51be92+0x1))return!0x0;}for(let _0x15fc02=0x0;_0x15fc02<_0x3bc5da['length'];_0x15fc02++){if(_0x182588(this,_0x3bc5da[_0x15fc02],_0x3751b0,0x0))return!0x0;}return!0x1;function _0x182588(_0x405ef7,_0x3b9e2e,_0xb16f38,_0x27b086){for(let _0x1f164d=_0x27b086;_0x1f164d<_0xb16f38['length'];_0x1f164d++){const _0x58d588=_0xb16f38[_0x1f164d];if(_0x58d588['type']!==_0x3b9e2e['type']||_0x58d588['author']['id']!==_0x3b9e2e['author']['id']||_0x58d588['subType']!==_0x3b9e2e['subType'])continue;if(!Qt(_0x3b9e2e,_0x58d588))continue;if('attribute'==_0x3b9e2e['type']&&_0x3b9e2e['data']['oldValue']!=_0x58d588['data']['oldValue'])continue;if('attribute'==_0x3b9e2e['type']&&_0x405ef7['_isBlockAttribute'](_0x3b9e2e['data']['key']))continue;if('formatBlock'==_0x3b9e2e['type']){const _0x54c123=_0x405ef7['editor']['model'],_0x2a07ef=_0x3b9e2e['getContainedElement']();if(_0x2a07ef&&(_0x54c123['schema']['isObject'](_0x2a07ef)||_0x54c123['schema']['isLimit'](_0x2a07ef)))continue;}const _0x73accc=_0x1966e5['get'](_0x3b9e2e),_0x6e0b3a=_0x15224b['get'](_0x3b9e2e),_0x44e5aa=_0x15224b['get'](_0x58d588),_0x437131=_0x3b9e2e['commentThread']&&_0x3b9e2e['commentThread']['length'],_0x548358=_0x58d588['commentThread']&&_0x58d588['commentThread']['length'];if(!_0x437131&&_0x73accc(_0x44e5aa,_0x6e0b3a))return _0x405ef7['_joinSuggestions'](_0x58d588,_0x3b9e2e),_0x15224b['delete'](_0x3b9e2e),!0x0;if(!_0x548358&&_0x73accc(_0x6e0b3a,_0x44e5aa))return _0x405ef7['_joinSuggestions'](_0x3b9e2e,_0x58d588),_0x15224b['delete'](_0x58d588),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5d4c12,_0x361c80){if(_0x5d4c12['isMultiRange']){for(const _0x581cb6 of _0x361c80['getRanges']())_0x5d4c12['addRange'](_0x581cb6);}else{const _0x386aa9=_0x361c80['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5d4c12,this['_model']['createRange'](_0x5d4c12['getFirstRange']()['start'],_0x386aa9));}_0x361c80['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5b8e22,_0x1c868a,_0x3fdd87){const _0x1e127b=_0x5b8e22['startsWith']('format')||_0x5b8e22['startsWith']('attribute')?'FORMATTING':_0x5b8e22['toUpperCase']();return c(this['editor']['locale'],_0x1c868a+'_'+_0x1e127b+'_SUGGESTION_ANNOUNCEMENT',_0x3fdd87);}['_initAriaMarkerChangeAnnouncements'](){const _0x38106e=this['editor'];if(!_0x38106e['ui'])return;const {ariaLiveAnnouncer:_0x3861f8}=_0x38106e['ui'];_0x39d16b(this['_model'],({left:_0x18e136,entered:_0x1f41c5})=>{for(const _0x5475bc of _0x18e136){const {group:_0x17c47a,type:_0x4d4d03}=this['_splitMarkerName'](_0x5475bc['name']);if('suggestion'===_0x17c47a){_0x3861f8['announce'](this['_getMarkerAnnouncementText'](_0x4d4d03,'LEAVE'));break;}}for(const _0x4c98a8 of _0x1f41c5){const {group:_0x51e0a3,type:_0x8fa490}=this['_splitMarkerName'](_0x4c98a8['name']);if('suggestion'===_0x51e0a3){_0x3861f8['announce'](this['_getMarkerAnnouncementText'](_0x8fa490,'ENTER',_0x278238(_0x53f47c)));break;}}});}['_processAttributeChanges'](_0x417e67){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1dc6f9=this['editor'],_0x5e89f8=_0x1dc6f9['model']['document']['differ']['getChanges']();if(0x0==_0x5e89f8['length'])return!0x1;const _0x78d7bf=[],_0x3e68dd=_0x5e89f8['filter'](_0x1cfd1a=>'attribute'==_0x1cfd1a['type']),_0x512450=_0x5e89f8['filter'](_0x49c023=>'insert'==_0x49c023['type']&&'$text'!=_0x49c023['name']),_0x3d4927=_0x5e89f8['filter'](_0x43df0d=>'remove'==_0x43df0d['type']&&'$text'!=_0x43df0d['name']);for(const _0x37ee9e of _0x3e68dd)_0x78d7bf['push']({'key':_0x37ee9e['attributeKey'],'newValue':_0x37ee9e['attributeNewValue'],'oldValue':_0x37ee9e['attributeOldValue'],'range':qt(_0x37ee9e['range'],_0x1dc6f9['model'])});for(const _0x305a47 of _0x512450){const _0x54a48a=_0x3d4927['find'](_0x9c6ad1=>_0x9c6ad1['position']['isEqual'](_0x305a47['position']));_0x54a48a&&_0x78d7bf['push']({'key':u,'newValue':_0x305a47['name'],'oldValue':_0x54a48a['name'],'range':_0x1dc6f9['model']['createRangeOn'](_0x305a47['position']['nodeAfter'])});}return 0x0!=_0x78d7bf['length']&&this['_reduceExistingSuggestions'](_0x417e67,_0x78d7bf);}['_processAttributeSuggestions'](_0x4894fa){let _0x1530f3=!0x1;const _0x47bbc6=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2e6cb3=>_0x2e6cb3['data']['newRange']&&_0x2e6cb3['name']['startsWith']('suggestion:attribute:'));for(const _0x21050e of _0x47bbc6){const {subType:_0xff18fa,id:_0x1f2ecd}=this['_splitMarkerName'](_0x21050e['name']),_0x335064=_0xff18fa['split']('|')[0x0];for(const _0x369a9a of this['getSuggestions']({'skipNotAttached':!0x0}))_0x369a9a['id']!=_0x1f2ecd&&'attribute'==_0x369a9a['type']&&_0x369a9a['data']&&_0x369a9a['data']['key']==_0x335064&&_0x369a9a['getFirstRange']()['isIntersecting'](_0x21050e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x369a9a,_0x21050e['data']['newRange'],_0x4894fa),_0x1530f3=!0x0);}return _0x1530f3;}['_recordAttributeChanges'](_0x4d98f1){this['_recordAttributeSuggestions']=!0x0,_0x4d98f1();}['_isRegisteredAttribute'](_0x4e810f){const _0x58b267=this['_isBlockAttribute'](_0x4e810f),_0x5935f1=this['_inlineAttributeKeys']['has'](_0x4e810f);return _0x58b267||_0x5935f1;}['_reduceExistingSuggestions'](_0x1e38f9,_0x3bd9d4){if(0x0==_0x3bd9d4['length'])return!0x1;let _0x2ce75a=!0x1;for(const _0x10d025 of _0x3bd9d4){const _0x404cc0=this['_findSuggestions'](_0x10d025['range'],'attribute')['filter'](_0x278fb7=>!_0x278fb7['meta']['isNextTo'])['map'](_0x32463f=>_0x32463f['suggestion']),_0x3d7bd8=_0x167b69({'newValue':_0x10d025['newValue']});_0x404cc0['filter'](_0x67bf2c=>{const [_0x3af005,_0x543fb2]=_0x67bf2c['subType']['split']('|');return _0x3af005==_0x10d025['key']&&_0x543fb2!=_0x3d7bd8;})['forEach'](_0x5e3570=>{this['_reduceSuggestionAttributeRange'](_0x5e3570,_0x10d025['range'],_0x1e38f9),_0x2ce75a=!0x0;});}return _0x2ce75a;}['_reduceSuggestionAttributeRange'](_0x366730,_0x40f58a,_0x2448fe){const _0x433ab3=_0x366730['getFirstRange']()['getDifference'](_0x40f58a);0x0!==_0x433ab3['length']?0x1!==_0x433ab3['length']?this['_breakSuggestionMarker'](_0x366730,_0x40f58a['start'],_0x40f58a['end']):this['_setSuggestionRange'](_0x366730,_0x433ab3[0x0]):_0x2448fe['removeMarker'](_0x366730['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x52d118){this['_editor']=_0x52d118,this['_model']=_0x52d118['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x15d32b,_0x4a916c,_0x145f82,_0x47606d,_0x451d81,_0x450d2f){return new o(this['_model'],{'type':_0x15d32b,'subType':_0x4a916c,'id':_0x145f82,'author':_0x47606d,'creator':_0x47606d,'attributes':_0x451d81,'onAttributesChange':_0x450d2f,'onAccept':(..._0x3e41ff)=>this['getSuggestionCallback'](_0x15d32b,_0x4a916c,'accept')(..._0x3e41ff),'onDiscard':(..._0x3330d5)=>this['getSuggestionCallback'](_0x15d32b,_0x4a916c,'discard')(..._0x3330d5)});}['registerCustomCallback'](_0x12256f,_0x44f1b8,_0x4fb52e,_0x4581c9){const _0x2e8e58=_0x12256f+':'+_0x44f1b8+':'+_0x4fb52e;this['_customCallbacks']['set'](_0x2e8e58,_0x4581c9);}['getSuggestionCallback'](_0x2cf153,_0x21a662,_0x2b1d3a){const _0x1f13cd=_0x2cf153+':'+_0x21a662+':'+_0x2b1d3a;return this['_customCallbacks']['get'](_0x1f13cd)||this['_defaultCallbacks']['get'](_0x2cf153+':'+_0x2b1d3a);}['_registerDefaultCallbacks'](){const _0x5cc3e4=()=>!0x1,_0x58a683=_0x10794e=>{_0x10794e['sort']((_0x13a2e4,_0x43721c)=>_0x13a2e4['start']['isBefore'](_0x43721c['start'])?0x1:-0x1),this['_model']['change'](_0x29c5dc=>{for(const _0x214c87 of _0x10794e){let _0x219c82;_0x219c82=_0x214c87['end']['isAtEnd']&&_0x214c87['end']['parent']==_0x214c87['start']['nodeAfter']?_0x29c5dc['createSelection'](_0x214c87['start']['nodeAfter'],'on'):_0x29c5dc['createSelection'](_0x214c87),this['_model']['deleteContent'](_0x219c82,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1bc541=(_0x59cd3e,_0x15d944)=>{_0x15d944&&this['_model']['change'](_0x5caf5f=>{const {commandName:_0x2babf3,commandParams:_0xeca382=[]}=_0x15d944,_0x3d5cbf=_0x59cd3e['map'](_0x19b870=>(Lt(_0x19b870)&&(_0x19b870=this['_model']['createRange'](_0x19b870['end'])),_0x19b870))['filter'](_0xa5e4a8=>'$graveyard'!==_0xa5e4a8['root']['rootName']);if(_0x3d5cbf['length']<0x1)return;const _0x520be0=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1cef8a=>_0x36f06e['fromRange'](_0x1cef8a));_0x5caf5f['setSelection'](_0x3d5cbf);for(const _0x3de0db of this['_editor']['commands']['commands']())_0x3de0db['refresh']();_0xeca382['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2babf3,..._0xeca382);const _0x36c5ac=_0x520be0['filter'](_0x20cf65=>'$graveyard'!=_0x20cf65['root']['rootName']);_0x36c5ac['length']>0x0&&_0x5caf5f['setSelection'](_0x36c5ac);for(const _0x51de58 of _0x520be0)_0x51de58['detach']();});},_0x50cca8=(_0x1d4bd2,_0x421b99)=>0x1==_0x1d4bd2['length']&&0x1==_0x421b99['length']&&_0x1d4bd2[0x0]['end']['isEqual'](_0x421b99[0x0]['start']),_0x38a99d=(_0x4dd35a,_0x1aea42,_0x533165,_0x25bd33)=>Wt(_0x4dd35a,_0x1aea42,_0x533165,_0x25bd33)?[_0x4dd35a,_0x1aea42]:Wt(_0x1aea42,_0x4dd35a,_0x25bd33,_0x533165)?[_0x1aea42,_0x4dd35a]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5cc3e4),this['_defaultCallbacks']['set']('insertion:discard',_0x58a683),this['_defaultCallbacks']['set']('insertion:join',_0x50cca8),this['_defaultCallbacks']['set']('insertion:chain',_0x38a99d),this['_defaultCallbacks']['set']('deletion:accept',_0x58a683),this['_defaultCallbacks']['set']('deletion:discard',_0x5cc3e4),this['_defaultCallbacks']['set']('deletion:join',_0x50cca8),this['_defaultCallbacks']['set']('deletion:chain',_0x38a99d),this['_defaultCallbacks']['set']('formatInline:accept',_0x1bc541),this['_defaultCallbacks']['set']('formatInline:discard',_0x5cc3e4),this['_defaultCallbacks']['set']('formatInline:join',_0x50cca8),this['_defaultCallbacks']['set']('formatInline:chain',_0x5cc3e4),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1bc541),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5cc3e4),this['_defaultCallbacks']['set']('formatBlock:join',_0x50cca8),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5cc3e4),this['_defaultCallbacks']['set']('attribute:accept',_0x5cc3e4),this['_defaultCallbacks']['set']('attribute:discard',(_0x57c7d7,_0x24f77a)=>{if(!_0x24f77a)return;const _0x579c04=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2fcfbc=>{if(_0x24f77a['key']==u)for(const _0x1eb490 of _0x57c7d7){const _0xc8cb70=_0x1eb490['start']['nodeAfter'],_0x1026cf=_0x24f77a['oldValue'];_0x2fcfbc['rename'](_0xc8cb70,_0x1026cf);}else{if(_0x579c04['_isBlockAttribute'](_0x24f77a['key'])){for(const _0x50006b of _0x57c7d7)void 0x0!==_0x24f77a['oldValue']?_0x2fcfbc['setAttribute'](_0x24f77a['key'],_0x24f77a['oldValue'],_0x50006b['start']['nodeAfter']):_0x2fcfbc['removeAttribute'](_0x24f77a['key'],_0x50006b['start']['nodeAfter']);}else{for(const _0x5889b3 of _0x57c7d7)_0x24f77a['oldValue']?_0x2fcfbc['setAttribute'](_0x24f77a['key'],_0x24f77a['oldValue'],_0x5889b3):_0x2fcfbc['removeAttribute'](_0x24f77a['key'],_0x5889b3);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x50cca8);}}function Gt(_0x574e6f,_0x24eb1d,_0x4ec454){for(const _0x948753 of _0x24eb1d['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x948753['root']==_0x948753)return!0x1;if(!_0x4ec454['containsItem'](_0x948753))return!0x1;if(_0x574e6f['isObject'](_0x948753)||_0x574e6f['isLimit'](_0x948753))return!0x0;}return!0x1;}function Lt(_0x52b961){return _0x52b961['end']['parent']==_0x52b961['start']['nodeAfter']&&_0x52b961['end']['isAtStart'];}function Jt(_0x277a7c,_0x27e0fb,_0x358983,_0x138e4d){const _0x539389=_0x152e23=>!_0x152e23['item']['is']('$textProxy')&&!_0x138e4d['isObject'](_0x152e23['item']),_0x5d1d4e=_0x277a7c['start']['getLastMatchingPosition'](_0x539389),_0x4f4dfd=_0x277a7c['end']['getLastMatchingPosition'](_0x539389,{'direction':'backward'});return(!_0x277a7c['start']['isEqual'](_0x5d1d4e)||!_0x277a7c['end']['isEqual'](_0x4f4dfd))&&(_0x5d1d4e['isBefore'](_0x4f4dfd)?_0x358983['updateMarker'](_0x27e0fb,{'range':_0x358983['createRange'](_0x5d1d4e,_0x4f4dfd)}):_0x358983['removeMarker'](_0x27e0fb),!0x0);}function Kt(_0x40e5b7){return _0x167b69(_0x40e5b7);}function Ht(_0x2e8a3c){const _0x31f159=_0x2e8a3c['start']['nodeAfter'];return _0x31f159&&_0x31f159['is']('element');}function qt(_0xd837a1,_0x69b959){return null==_0xd837a1['end']['nodeBefore']&&_0xd837a1['end']['parent']==_0xd837a1['start']['nodeAfter']?zt(_0xd837a1['start']['nodeAfter'],_0x69b959):_0xd837a1;}function zt(_0x5699fd,_0x361583){const _0xff4c4e=_0x361583['schema']['isObject'](_0x5699fd)||_0x361583['schema']['isSelectable'](_0x5699fd);return _0x361583['createRange'](_0x361583['createPositionAt'](_0x5699fd,'before'),_0xff4c4e?_0x361583['createPositionAfter'](_0x5699fd):_0x361583['createPositionAt'](_0x5699fd,'end'));}function Wt(_0x4357bf,_0x3a9263,_0x2c233c,_0x14f0bc){return!!Qt(_0x4357bf,_0x3a9263)&&_0x2c233c['end']['isEqual'](_0x14f0bc['start']);}function Qt(_0x319eb8,_0x585515){if(!_0x319eb8['_isDataLoaded']||!_0x585515['_isDataLoaded'])return!0x1;const _0x36d768=new Set(Object['keys'](_0x319eb8['attributes'])),_0x459763=new Set(Object['keys'](_0x585515['attributes']));if(_0x36d768['delete']('groupId'),_0x459763['delete']('groupId'),0x0==_0x36d768['size']&&0x0==_0x459763['size'])return!0x0;if(_0x36d768['size']!=_0x459763['size'])return!0x1;const _0xfc265c={..._0x319eb8['attributes']},_0x4cbb16={..._0x585515['attributes']};return delete _0xfc265c['groupId'],delete _0x4cbb16['groupId'],JSON['stringify'](_0xfc265c)==JSON['stringify'](_0x4cbb16);}function Xt(_0x4119ac,_0x5cc56a){const _0x5ceaa1=Yt(_0x4119ac['attributes']),_0x1d83eb=Yt(_0x5cc56a);if(!_0x4119ac['_isDataLoaded'])return!0x1;for(const _0x5319ab of Object['keys'](_0x1d83eb))if(!_0x5a9b14(_0x5ceaa1[_0x5319ab],_0x1d83eb[_0x5319ab]))return!0x1;return!0x0;}function Yt(_0x50252d){const _0xb5ccc9=Object['assign']({},_0x50252d);return delete _0xb5ccc9['skipNestingCheck'],delete _0xb5ccc9['tablePasteChainId'],_0xb5ccc9;}class pe extends/* #__PURE__ -- @preserve */
25
+ _0x28df7b(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5c8ba3,_0x2c0b9f,_0x5732bf,_0x39a50b){super(),this['model']=_0x2c0b9f,this['view']=_0x5732bf,this['commentThreadController']=_0x39a50b,this['_editor']=_0x5c8ba3,this['_acceptCommand']=_0x5c8ba3['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5c8ba3['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1febce,_0x35fb1a)=>_0x1febce||_0x35fb1a),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5eeeca=>_0x5eeeca&&this['_editor']['model']['canEditAt'](_0x2c0b9f['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x1b48cc=>_0x1b48cc&&this['_editor']['model']['canEditAt'](_0x2c0b9f['getRanges']())),this['_pendingAction']=null,_0x5732bf['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5732bf,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5732bf,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5732bf,'change:isDirty',()=>{_0x5732bf['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 _0x44b446=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x44b446);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x2363de{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2859d0,_0x35ea04,_0x1566b0,_0x2ad812){super(_0x2859d0),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2acbd4(_0x2859d0,c(_0x2859d0,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x35ea04['authoredAt']),this['bind']('authoredAt')['to'](_0x35ea04),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',_0x35ea04,'authoredAt',this,'descriptionParts',(_0x1185a1,_0x29673e,_0x4200bb)=>{const _0x28de04=_0x4200bb['map'](_0x4ac4ba=>ls(_0x4ac4ba['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1185a1-0x1,_0x35ea04['author']['name'],_0x29673e?_0x2ad812['formatDateTime'](_0x29673e):'',new DOMParser()['parseFromString'](_0x28de04,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4c9bf3(),this['focusTracker']=new _0x2e65ef(),this['keystrokes']=new _0x984ca4(),this['focusCycler']=new _0x4356e1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x282525=>_0x282525['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x35ea04,this['_localUser']=_0x1566b0,this['_config']=_0x2ad812,_0x2ad812['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xe4b060(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5461d6}=this['_config'];this['commentsListView']=new _0x5461d6(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',_0x5d25cc=>_0x5d25cc+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x387795,_0x5f0f4f)=>_0x387795||!!_0x5f0f4f);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x424c85}=this['_config'],_0x2a2cce=new _0x424c85(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5c6756=_0x2a2cce['commentInputView'];return _0x2a2cce['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5c6756,'value',(_0x34c867,_0x91f41f,_0x20d704)=>!!_0x20d704||_0x34c867&&!_0x91f41f),_0x5c6756['on']('submit',(_0x4aa5b7,_0x2d1682)=>{this['fire']('addComment',_0x2d1682),_0x5c6756['editor']['setData']('');}),_0x5c6756['on']('cancel',()=>this['focus']()),_0x5c6756['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2a2cce;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x3fb88b,_0x506b00,_0x5ab00b,_0x1ede7e){super(_0x3fb88b,_0x506b00,_0x5ab00b,_0x1ede7e),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3f2840=>_0x3f2840&&_0x3f2840[0x0]?_0x3f2840[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x177e68,_0xa6edc6)=>{let _0x4a17f8='';for(const _0x23b802 of _0x177e68)_0x4a17f8+='<p>'+ls(_0x23b802['content'],_0x23b802['color'])+'</p>';return _0xa6edc6?_0x4a17f8:ti(_0x4a17f8,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1ede7e['SuggestionView'](_0x3fb88b,_0x506b00,{'formatDateTime':_0x1ede7e['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 _0x38bcc9=this['bindTemplate'],_0x1aeb8a=[this['suggestionView']];return this['commentsListView']&&_0x1aeb8a['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1aeb8a['push'](this['commentThreadInputView']),_0x1aeb8a['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x38bcc9['if']('isActive','ck-suggestion-wrapper--active'),_0x38bcc9['to']('type',_0x1ff259=>'ck-suggestion-'+_0x1ff259),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':_0x38bcc9['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1aeb8a};}['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 _0x2363de{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x30e01c,_0x299ef5,_0x4b3e57){super(_0x30e01c),this['_model']=_0x299ef5,this['_config']=_0x4b3e57,this['set']('description',''),this['bind']('authoredAt')['to'](_0x299ef5),this['acceptButton']=this['_createButton'](c(_0x30e01c,'Accept\x20suggestion'),_0x3dc774,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x30e01c,'Discard\x20suggestion'),_0x292a4f,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x24ebfe(_0x30e01c,_0x299ef5['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4c9bf3([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2e65ef(),this['keystrokes']=new _0x984ca4(),this['focusCycler']=new _0x4356e1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x206c00=>_0x206c00['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4e8a08=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4e8a08['innerHTML']=this['description'],this['on']('change:description',(_0x43807f,_0x43e153,_0x4a6d1b)=>{_0x4e8a08['innerHTML']=_0x4a6d1b;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x75c30e=this['bindTemplate'],_0x5ab1b9=[{'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':_0x75c30e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x75c30e['to']('authoredAt',_0x46cf07=>this['_config']['formatDateTime'](_0x46cf07))}]}]},{'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']&&_0x5ab1b9['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':_0x5ab1b9}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x268a0e,_0x106375,_0x320a44,_0x5082f0,_0x17ee9f){const _0x49a83f=new _0x509438(this['locale']);return _0x49a83f['set']({'label':_0x268a0e,'icon':_0x106375,'tooltip':!0x0,'tooltipPosition':_0x17ee9f}),_0x49a83f['extendTemplate']({'attributes':{'class':_0x320a44}}),_0x49a83f['on']('execute',()=>{this['fire'](_0x5082f0,this['_model']['id']);}),_0x49a83f;}['_setupKeyboardNavigation'](){const _0x84b1a9=this['element'];this['keystrokes']['listenTo'](_0x84b1a9);for(const _0x4953f1 of this['focusables'])this['focusTracker']['add'](_0x4953f1['element']),this['keystrokes']['listenTo'](_0x4953f1['element']);this['keystrokes']['set']('enter',(_0x55382f,_0x33e1d3)=>{_0x84b1a9===_0x55382f['target']&&(this['focusCycler']['focusFirst'](),_0x33e1d3());}),this['keystrokes']['set']('esc',(_0x5cd3c3,_0x192e6e)=>{_0x84b1a9!==_0x5cd3c3['target']&&(this['focus'](),_0x192e6e());});}}class d extends _0x4a3f61{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x10352c,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xa81161){super(_0xa81161),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xc7d496=this['editor']['config'];_0xc7d496['define']('trackChanges.SuggestionThreadView',fe),_0xc7d496['define']('trackChanges.SuggestionView',we),_0xc7d496['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xc7d496['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x763352,_0x291e23){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x267e54,_0x473993]of this['_handleControllerBuffer']){const _0x1072b1=this['_suggestionToController']['has'](_0x267e54);_0x1072b1||_0x473993?_0x1072b1&&_0x473993&&this['_destroyController'](_0x267e54):this['_initializeController'](_0x267e54);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x763352,_0x291e23);}['init'](){const _0x41bbfd=this['editor'],_0x9dd712=_0x41bbfd['plugins']['get']('TrackChangesEditing'),_0x535c08=_0x41bbfd['plugins']['get']('Annotations'),_0x3f43fd=_0x41bbfd['plugins']['get']('EditorAnnotations'),_0x485414=_0x41bbfd['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3f43fd['addSourceCollector'](()=>{const _0x58644c=[];for(const [_0x2ff83b,_0x682fe6]of Array['from'](this['_suggestionToController'])){const _0x16bf0e=_0x2ff83b['getAllAdjacentSuggestions'](),_0xefb890=[];for(const _0x599be2 of _0x16bf0e){if(!_0x599be2['isInContent'])continue;if(_0x599be2['isMultiRange']){_0xefb890['push'](..._0x599be2['getRanges']());continue;}const _0x182c35=_0x599be2['getFirstRange']();if(_0xefb890['length']>0x0){const _0x5a6c39=_0xefb890[0x0]['getJoined'](_0x182c35);if(_0x5a6c39){_0xefb890[0x0]=_0x5a6c39;continue;}}_0xefb890['push'](_0x182c35);}_0x58644c['push']([_0x682fe6['view'],_0xefb890]);}return _0x58644c;}),this['listenTo'](_0x9dd712,'suggestionLoaded',(_0x1067a3,_0x167f52)=>{this['listenTo'](_0x167f52,'change:previous',(_0x5351a9,_0x305121,_0x4174d6,_0x56b4b8)=>{_0x167f52['isInContent']&&(null==_0x4174d6?(this['_updateController'](_0x56b4b8['head']),this['_handleSuggestionControllerDelayed'](_0x167f52,!0x1)):(this['_updateController'](_0x4174d6['head']),null==_0x56b4b8&&this['_handleSuggestionControllerDelayed'](_0x167f52,!0x0)));}),null!==_0x167f52['previous']?this['_updateController'](_0x167f52['head']):this['_handleSuggestionControllerDelayed'](_0x167f52,!0x1);}),this['listenTo'](_0x9dd712,'suggestionUnloaded',(_0x5ef58b,_0x2e4bf0,_0x53b176)=>{this['stopListening'](_0x2e4bf0,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2e4bf0),this['_suggestionToController']['has'](_0x2e4bf0)&&this['_destroyController'](_0x2e4bf0),_0x53b176&&this['_updateController'](_0x53b176['head']);}),this['listenTo'](_0x9dd712,'suggestionChanged',(_0x1d5b82,_0xeed888)=>{this['_updateController'](_0xeed888);}),this['listenTo'](_0x535c08,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x485414,'addComment',(_0x2f1100,{threadId:_0x5cea91,isFromAdapter:_0xd03fc4})=>{if(_0xd03fc4||!_0x9dd712['hasSuggestion'](_0x5cea91))return;const _0x4982b9=_0x9dd712['getSuggestion'](_0x5cea91);this['_suggestionToController']['get'](_0x4982b9)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x247b14=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x558c6f;for(const _0x50fa2d in _0x247b14){const _0x30e861=_0x50fa2d,_0x246ea9=_0x247b14[_0x30e861];if('trackChangesLicenseKeyValid'==_0x246ea9||'trackChangesLicenseKeyInvalid'==_0x246ea9||'trackChangesLicenseKeyExpired'==_0x246ea9||'trackChangesLicenseKeyDomainLimit'==_0x246ea9||'trackChangesLicenseKeyNotAllowed'==_0x246ea9||'trackChangesLicenseKeyEvaluationLimit'==_0x246ea9||'trackChangesLicenseKeyTrialLimit'==_0x246ea9||'trackChangesLicenseKeyUsageLimit'==_0x246ea9){delete _0x247b14[_0x30e861],_0x558c6f=_0x246ea9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x558c6f&&_0x247b14['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x558c6f&&_0x247b14['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x558c6f&&_0x247b14['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x558c6f&&_0x247b14['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x558c6f&&_0x247b14['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x558c6f&&_0x247b14['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x558c6f&&_0x247b14['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0xafa4cf=this['editor']['plugins']['get']('Annotations'),_0xfa322a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d1b8b=Array['from'](_0xafa4cf['activeAnnotations'],_0x178263=>_0x178263['innerView'])['filter'](_0x138a40=>this['_viewToController']['has'](_0x138a40)),_0x12fc58=[];for(const _0x361b7e of _0x4d1b8b){const _0x30d25e=this['_viewToController']['get'](_0x361b7e)['model']['getAllAdjacentSuggestions']();_0x12fc58['push'](..._0x30d25e['reduce']((_0x146fb4,_0x3a63ec)=>[..._0x146fb4,..._0x3a63ec['getMarkerNames']()],[]));}_0xfa322a['activeMarkers']=_0x12fc58;}['_addUIComponentsToFactory'](){const _0x1306cf=this['editor'],_0x401dcd=_0x1306cf['locale'],_0x5734bc=c(_0x401dcd,'Track\x20changes'),_0x4cabe9=new _0x4e2aa6([{'type':'switchbutton','model':new _0x12ac24({'withText':!0x0,'isToggleable':!0x0,'label':_0x5734bc,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x12ac24({'withText':!0x0,'label':c(_0x401dcd,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x12ac24({'withText':!0x0,'label':c(_0x401dcd,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x12ac24({'withText':!0x0,'label':c(_0x401dcd,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x12ac24({'withText':!0x0,'label':c(_0x401dcd,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1306cf['plugins']['has']('TrackChangesPreview')&&_0x4cabe9['addMany']([{'type':'separator'},{'type':'button','model':new _0x12ac24({'withText':!0x0,'label':c(_0x401dcd,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x484a7a of _0x4cabe9)if(ke(_0x484a7a)){const _0x190d99=_0x1306cf['commands']['get'](_0x484a7a['model']['commandName']);_0x484a7a['model']['bind']('isOn','isEnabled')['to'](_0x190d99,'value','isEnabled');}_0x1306cf['ui']['componentFactory']['add']('trackChanges',_0x29761a=>this['_createToolbarButton'](_0x29761a,_0x4cabe9,_0x5734bc)),_0x1306cf['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4b9f55=>this['_createMenuBarMenu'](_0x4b9f55,_0x4cabe9,_0x5734bc));}['_createToolbarButton'](_0x3526ae,_0x4fc753,_0x984b32){const _0x75aa42=_0x354971(_0x3526ae,_0x392e30),_0x18cb86=this['editor']['commands']['get']('trackChanges');_0x75aa42['buttonView']['set']({'tooltip':_0x984b32,'label':_0x984b32,'icon':_0x3a5fc6}),_0x75aa42['buttonView']['bind']('isOn')['to'](_0x18cb86,'value'),_0x75aa42['buttonView']['on']('execute',()=>{_0x18cb86['execute'](),this['editor']['editing']['view']['focus']();}),_0x14e197(_0x75aa42,_0x4fc753,{'role':'menu'});const _0x3901a2=[];for(const _0x15b9b9 of _0x4fc753)ke(_0x15b9b9)&&_0x3901a2['push'](this['editor']['commands']['get'](_0x15b9b9['model']['commandName']));const _0x4d9fd7=_0x75aa42['buttonView'];return _0x4d9fd7['actionView']['unbind']('isEnabled'),_0x4d9fd7['arrowView']['unbind']('isEnabled'),_0x4d9fd7['actionView']['bind']('isEnabled')['to'](_0x18cb86,'isEnabled'),_0x4d9fd7['arrowView']['bind']('isEnabled')['toMany'](_0x3901a2,'isEnabled',(..._0x45a986)=>_0x45a986['some'](_0x3c9e3f=>_0x3c9e3f)),_0x75aa42['on']('execute',_0x46c9de=>{this['editor']['execute'](_0x46c9de['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x75aa42;}['_createMenuBarMenu'](_0x145c49,_0x18bb1f,_0x48b18a){const _0x72586e=new _0x25eb95(_0x145c49),_0x1d2d59=this['editor']['commands']['get']('trackChanges');_0x72586e['buttonView']['set']({'label':_0x48b18a,'icon':_0x3a5fc6});const _0x569b60=new _0x5372de(_0x145c49);for(const _0x42a689 of _0x18bb1f){if('separator'==_0x42a689['type']){_0x569b60['items']['add'](new _0x137561(_0x145c49));continue;}const _0x19fba6=new _0x4b6659(_0x145c49,_0x72586e),_0x748fb9=new _0x451c87(_0x145c49),_0x39b295=_0x42a689['model'];_0x748fb9['bind'](...Object['keys'](_0x39b295))['to'](_0x39b295),_0x748fb9['delegate']('execute')['to'](_0x72586e),_0x748fb9['on']('execute',()=>{this['editor']['execute'](_0x39b295['commandName']),this['editor']['editing']['view']['focus']();}),_0x19fba6['children']['add'](_0x748fb9),_0x569b60['items']['add'](_0x19fba6);}return _0x72586e['bind']('isEnabled')['to'](_0x1d2d59,'isEnabled'),_0x72586e['panelView']['children']['add'](_0x569b60),_0x72586e;}['_initializeController'](_0x5b616d){const _0x343b37=this['editor'],_0xde8e1=_0x343b37['config'],_0x5368a7=_0x343b37['plugins']['get']('Annotations'),_0x4c3081=_0x343b37['plugins']['get']('CommentsRepository'),_0x188c45=_0x343b37['plugins']['get']('EditorAnnotations'),_0x2cd5f5=_0x343b37['plugins']['get'](_0x10352c)['me'],_0x3938dd=_0xde8e1['get']('trackChanges')['SuggestionThreadView'],_0x5035e4=_0xde8e1['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x70f7f9,CommentThreadInputView:_0x53438c}=_0x343b37['plugins']['get']('CommentsUI');let _0x4a3a43,_0x3c0fc5,_0xf23fdf;this['_annotationViews']['has'](_0x5b616d['id'])?(_0x3c0fc5=this['_annotationViews']['get'](_0x5b616d['id']),_0x4a3a43=_0x3c0fc5['mainView']):(_0x4a3a43=new _0x3938dd(_0x343b37['locale'],_0x5b616d,_0x2cd5f5,{'disableComments':this['_disableComments'],'editorConfig':{..._0xde8e1['get']('comments.editorConfig'),'licenseKey':_0xde8e1['get']('licenseKey')},'maxCommentsWhenCollapsed':_0xde8e1['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xde8e1['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xde8e1['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x39d880(_0xde8e1['get']('locale'),_0x343b37['locale']),'CommentView':_0xde8e1['get']('comments')['CommentView'],'CommentsListView':_0x70f7f9,'CommentThreadInputView':_0x53438c,'SuggestionView':_0x5035e4}),_0x4a3a43['suggestionView']['acceptButton']['on']('execute',()=>{_0x343b37['editing']['view']['focus']();}),_0x4a3a43['suggestionView']['discardButton']['on']('execute',()=>{_0x343b37['editing']['view']['focus']();}),_0x3c0fc5=_0x5368a7['createAnnotationView'](this['editor']['locale'],_0x4a3a43),_0x3c0fc5['bind']('isDirty')['to'](_0x4a3a43,'isDirty'),_0x3c0fc5['bind']('length')['to'](_0x4a3a43),_0x3c0fc5['bind']('type')['to'](_0x4a3a43,'type',_0x34ff04=>'suggestion-'+_0x34ff04),_0x4a3a43['on']('escape',()=>{_0xf23fdf['fire']('escape');}),this['_annotationViews']['set'](_0x5b616d['id'],_0x3c0fc5));const _0xeb05ca=_0x4c3081['createCommentThreadController'](_0x5b616d['commentThread'],_0x4a3a43),_0x4f3a48=new pe(_0x343b37,_0x5b616d,_0x4a3a43,_0xeb05ca),_0x1f5cf0=_0x5b616d['getAllAdjacentSuggestions']()['filter'](_0x5549f9=>_0x5549f9['isInContent']);_0x4a3a43['descriptionParts']=_0x343b37['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1f5cf0),this['_suggestionToController']['set'](_0x5b616d,_0x4f3a48),this['_viewToController']['set'](_0x4a3a43,_0x4f3a48),_0xf23fdf=_0x5368a7['createAnnotation']({'view':_0x3c0fc5,'target':()=>{const _0x45bcb3=[],_0x43bcff=_0x5b616d['getAllAdjacentSuggestions']()['filter'](_0x13b3e0=>_0x13b3e0['isInContent']);for(const _0x7176af of _0x43bcff)_0x45bcb3['push'](..._0x7176af['getMarkers']());return _0x191051(_0x343b37['editing'],_0x45bcb3);},'type':()=>'suggestion-'+_0x4f3a48['view']['type']}),_0x4c3081['_bindAnnotationToEditors'](_0x4a3a43,_0xf23fdf),_0x5368a7['add'](_0xf23fdf),_0x188c45['registerAnnotation'](_0xf23fdf);}['_destroyController'](_0x3a285a){const _0xdc7a58=this['editor']['plugins']['get']('CommentsRepository'),_0xdf4b91=this['editor']['plugins']['get']('Annotations'),_0xbbf936=this['_suggestionToController']['get'](_0x3a285a),_0x2dd9b6=_0xbbf936['view'],_0x2d1661=_0xdf4b91['getByInnerView'](_0x2dd9b6);_0xdc7a58['_unbindEditors'](_0x2dd9b6),_0x2d1661&&_0xdf4b91['remove'](_0x2d1661),this['_suggestionToController']['delete'](_0x3a285a),this['_viewToController']['delete'](_0x2dd9b6),_0xbbf936['destroy']();}['_updateController'](_0xe5a9f9){if(!_0xe5a9f9['isInContent']||!this['_suggestionToController']['has'](_0xe5a9f9))return;const _0x5ac9ae=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1fbc05=this['_suggestionToController']['get'](_0xe5a9f9),_0xd35d25=_0xe5a9f9['getAllAdjacentSuggestions']();_0x1fbc05['view']['descriptionParts']=_0x5ac9ae['descriptionFactory']['getDescriptions'](_0xd35d25);}['destroy'](){for(const _0x3bacac of this['_suggestionToController']['keys']())this['_destroyController'](_0x3bacac);for(const _0x405f56 of this['_annotationViews']['values']())_0x405f56['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x4c6a02){return'model'in _0x4c6a02;}class k extends _0x4a3f61{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x932466){this['editor']['plugins']['get'](p)['adapter']=_0x932466;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x1953e6){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x1953e6);}['getSuggestions']({skipNotAttached:_0x5f245e=!0x1,toJSON:_0x23751d=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x5f245e,'toJSON':_0x23751d});}['getSuggestion'](_0x166c13){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x166c13);}}const w=['Pagination'];class T extends _0x4a3f61{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2e784b=this['editor'];if(_0x2e784b['config']['define']('trackChangesData.editorCreator',_0xac5e80=>{const _0x12d683=_0x2e784b['model']['document']['getRootNames']()['reduce']((_0x285a42,_0x19dc9f)=>(_0x285a42[_0x19dc9f]='',_0x285a42),{});return _0x2e784b['constructor']['create'](_0x12d683,_0xac5e80);}),'function'!=typeof _0x2e784b['config']['get']('trackChangesData')['editorCreator'])throw new _0x3ddcc7('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4c512c){return N(this['editor'],!0x0,_0x4c512c);}['getDataWithDiscardedSuggestions'](_0x360c65){return N(this['editor'],!0x1,_0x360c65);}}class D extends _0x4a3f61{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2abcb){function _0x22f0fc(_0x447039){return _0x447039['map'](_0x32be58=>String['fromCharCode'](_0x32be58))['join']('');}super(_0x2abcb),this['result']='end',_0x2abcb[_0x22f0fc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x22f0fc([0x76,0x69,0x65,0x77])][_0x22f0fc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x22f0fc([0x61,0x75,0x74,0x6f]),_0x2abcb[_0x22f0fc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x22f0fc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x22f0fc([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x22f0fc([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x22f0fc([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 Ge(_0x6bc3bc){return void 0x0!==_0x6bc3bc['getRootsAttributes'];}async function N(_0x2c7975,_0x57939b,_0x397cb7){const _0x31af94=_0x4ddee9(_0x2c7975,w);_0x31af94['plugins']['push'](p,D),_0x31af94['rootsAttributes']=Ge(_0x2c7975)?_0x2c7975['getRootsAttributes']():void 0x0;const _0x136ecb=document['createDocumentFragment'](),_0x4d52a6=_0x2c7975['config']['get']('trackChangesData')['editorCreator'],_0x3bd666=await _0x4d52a6(_0x31af94,()=>function(_0x1eefd6){const _0xe49a5d=document['createElement']('div');return _0x1eefd6['appendChild'](_0xe49a5d),_0xe49a5d;}(_0x136ecb));!function(_0x42d39b,_0x49d357){const _0x1e735b=_0x42d39b['model']['document']['getRootNames']()['reduce']((_0x440496,_0xa1615f)=>(_0x440496[_0xa1615f]=_0x42d39b['data']['get']({'rootName':_0xa1615f}),_0x440496),{}),_0x52ee91=_0x42d39b['plugins']['get']('Users')['users']['map'](_0x35e0ee=>({'id':_0x35e0ee['id'],'name':_0x35e0ee['name']})),_0x3ccf6c=_0x42d39b['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1aff46=_0x42d39b['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x345252=_0x49d357['plugins']['get']('Users'),_0x358100=_0x49d357['plugins']['get']('TrackChangesEditing'),_0x2fb55e=_0x49d357['plugins']['get']('CommentsRepository');for(const _0x3332af of _0x2fb55e['getCommentThreads']())_0x3332af['remove']();for(const _0x665aa9 of _0x52ee91)_0x345252['getUser'](_0x665aa9['id'])||_0x345252['addUser'](_0x665aa9);_0x345252['me']||_0x345252['useAnonymousUser']();for(const _0x56c534 of _0x1aff46)_0x2fb55e['addCommentThread'](_0x56c534);for(const _0x485534 of _0x3ccf6c)_0x358100['addSuggestionData'](_0x485534);_0x49d357['data']['set'](_0x1e735b);}(_0x2c7975,_0x3bd666),_0x3bd666['execute'](_0x57939b?'acceptAllSuggestions':'discardAllSuggestions');const _0x5b1299=Ge(_0x3bd666)?_0x3bd666['getFullData'](_0x397cb7):_0x3bd666['data']['get'](_0x397cb7);return await _0x3bd666['destroy'](),_0x5b1299;}class Me extends _0x2363de{['options'];constructor(_0x50be1b,_0x3a3b28){super(_0x50be1b),this['options']=_0x3a3b28,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'](_0x4700ed,_0x2cd902){if(!this['element'])return;const _0x5e9a86=[];for(const [_0x295321,_0xbf735d]of _0x4700ed){const _0x2a6fed=document['createElement']('div');_0x2a6fed['setAttribute']('data-ck-root-name',_0x295321),_0x2a6fed['className']=_0xbf735d['classes']+'\x20ck-track-changes-preview__root-container',_0x2a6fed['innerHTML']=_0xbf735d['content'],_0x5e9a86['push'](_0x2a6fed);}_0x2cd902(this['element'],_0x5e9a86),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x2a2adc{constructor(_0x15a076){super(_0x15a076),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x320b0c=this['editor'],_0x385a2f=_0x320b0c['locale'],_0x14bf37=_0x320b0c['plugins']['get']('Dialog');let _0x4cfb04;const _0xf21a17=function(_0x189a14){const _0x147a78={};if('editables'in _0x189a14['ui']['view']){for(const [_0x1dba2b,_0x4e7f4b]of Object['entries'](_0x189a14['ui']['view']['editables']))_0x147a78[_0x1dba2b]=_0x4e7f4b['element'];}else _0x147a78[_0x189a14['model']['document']['getRootNames']()[0x0]]=_0x189a14['ui']['view']['editable']['element'];return _0x147a78;}(_0x320b0c),_0x36f7a3=function(_0x5d0882){let _0x38dd75=0x0;for(const _0x3609c3 of Object['values'](_0x5d0882))_0x38dd75=Math['max'](_0x38dd75,_0x3609c3['getBoundingClientRect']()['width']);let _0x252e11=0x0;for(const _0x1e9083 of Object['values'](_0x5d0882))_0x252e11+=_0x1e9083['getBoundingClientRect']()['height'];const _0x1f79e7=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2dafab=Math['min'](_0x252e11,_0x1f79e7);return{'width':_0x38dd75,'height':_0x2dafab};}(_0xf21a17);_0x14bf37['show']({'id':'finalContentPreview','title':c(_0x385a2f,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x385a2f,{'dialogRects':_0x36f7a3}),'onHide':()=>{_0x4cfb04['detachFromDom']();},'onShow':()=>{_0x320b0c['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x130076=>{const _0x4b49c1=this['_standarizeRootsData'](_0x130076,_0x320b0c,_0xf21a17);_0x14bf37['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4b49c1,_0x320b0c['config']['get']('trackChanges.preview.renderFunction'));}),_0x4cfb04=new _0x23b5c4(_0x385a2f,[_0x14bf37['view']]),_0x4cfb04['attachToDom'](),_0x4cfb04['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x320b0c['once']('destroy',()=>{_0x4cfb04['detachFromDom']();});const _0x482f39=_0x14bf37['view']['headerView']['class'];_0x14bf37['view']['headerView']['class']=_0x482f39?_0x482f39+'\x20ck-reset_all':'ck-reset_all',_0x14bf37['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x14bf37['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x526494=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x52fe29=_0x526494['previewMode'],_0x4828a9={};if('$labels'===_0x52fe29){for(const _0xe79736 of _0x526494['getMergeFieldsIds']())_0x4828a9[_0xe79736]=_0x526494['getLabel'](_0xe79736)||_0xe79736;}else{const _0x450fcd='$defaultValues'===_0x52fe29?_0x526494['getDefaultValues']():_0x526494['getDataSetValues'](_0x52fe29,!0x0);for(const _0x15c156 of Object['entries'](_0x450fcd)){const [_0x39f29b,_0x275e76]=_0x15c156;_0x4828a9[_0x39f29b]=null!==_0x275e76?_0x275e76:_0x526494['getLabel'](_0x39f29b)||_0x39f29b;}}return{'mergeFieldsData':_0x4828a9};}['_standarizeRootsData'](_0x5a9312,_0x12879a,_0x49d561){let _0xfd678e;if('string'==typeof _0x5a9312){const _0x25b3d7=_0x12879a['model']['document']['getRootNames']()[0x0];_0xfd678e={[_0x25b3d7]:_0x5a9312};}else _0xfd678e=_0x5a9312;const _0x3eb645=this['_fixMediaEmbeds'](_0xfd678e,_0x12879a),_0x361225=function(_0x3a0751,_0x4cf4bd){for(const [_0xeb554a,_0x3d5e95]of _0x3a0751)_0x3d5e95['classes']=_0x4cf4bd[_0xeb554a]['classList']['value']['replace']('ck-focused','');return _0x3a0751;}(this['_sortRoots'](_0x12879a)['reduce']((_0x35fbd9,_0x4144ce)=>(_0x35fbd9['push']([_0x4144ce,{'content':_0x3eb645[_0x4144ce],'classes':''}]),_0x35fbd9),[]),_0x49d561);return _0x361225;}['_fixMediaEmbeds'](_0x5d1127,_0x5f1afa){if(!_0x5f1afa['plugins']['has']('MediaEmbedEditing'))return _0x5d1127;const _0x12cd59=_0x5f1afa['plugins']['get']('MediaEmbedEditing');for(const [_0x263e84,_0x29f7e2]of Object['entries'](_0x5d1127)){const _0x345196=document['createElement']('div');_0x345196['innerHTML']=_0x29f7e2,(_0x345196['querySelectorAll']('figure.media')['forEach'](_0xabf2fa=>{const _0xc06c9=_0xabf2fa['querySelector']('oembed');if(_0xc06c9){const _0xf0625a=_0xc06c9['getAttribute']('url');if(_0xf0625a){const _0xb8fd56=_0x12cd59['registry']['getMediaViewElement'](new _0x1bb2d9(_0x5f1afa['editing']['view']['document']),_0xf0625a,{'elementName':'','renderForEditingView':!0x0}),_0x12fa46=document['createElement']('div');_0x12fa46['classList']['add']('ck-media__wrapper'),_0xb8fd56['render'](_0x12fa46,_0x5f1afa['editing']['view']['domConverter']),_0xc06c9['replaceWith'](_0x12fa46);}}}),_0x5d1127[_0x263e84]=_0x345196['innerHTML']);}return _0x5d1127;}['_sortRoots'](_0x2a5f02){if(!function(_0x22c160){return void 0x0!==_0x22c160['getRootsAttributes'];}(_0x2a5f02))return _0x2a5f02['model']['document']['getRootNames']();const _0x56b76f=[],_0x43847d=new Map();for(const _0xf7d42 of _0x2a5f02['model']['document']['getRootNames']()){const _0x4265d4=_0x2a5f02['editing']['view']['getDomRoot'](_0xf7d42)['getClientRects']()['item'](0x0);_0x56b76f['push'](_0xf7d42),_0x43847d['set'](_0xf7d42,_0x4265d4);}return _0x56b76f['sort']((_0x500728,_0x42ccef)=>{const _0x367faf=_0x43847d['get'](_0x500728),_0x50ff9e=_0x43847d['get'](_0x42ccef);return _0x367faf['y']-_0x50ff9e['y']||_0x367faf['x']-_0x50ff9e['x'];}),_0x56b76f;}}class te extends _0x4a3f61{static get['requires'](){return[T,_0x3f407f];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x178d5f){super(_0x178d5f),_0x178d5f['commands']['add']('previewFinalContent',new re(this['editor'])),_0x178d5f['config']['define']('trackChanges.preview.renderFunction',(_0x5a3c68,_0x296745)=>{for(const _0x5615a8 of _0x296745)_0x5a3c68['appendChild'](_0x5615a8);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};