@ckeditor/ckeditor5-track-changes 48.8.1-alpha.2 → 48.8.1-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +4 -4
  2. package/package.json +25 -25
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x4a3a6c,Plugin as _0x1b042a,PendingActions as _0x5989c4}from'@ckeditor/ckeditor5-core/dist/index.js';import{CommentsRepository as _0x2e3e9f,Annotations as _0x134463,EditorAnnotations as _0x2b0d1d,Comments as _0x522814}from'@ckeditor/ckeditor5-comments/dist/index.js';import{CKEditorError as _0x2992e4,ObservableMixin as _0x3c23d7,uid as _0x2375fd,priorities as _0x196bca,insertToPriorityArray as _0x5423cd,logWarning as _0x50b7b8,getEnvKeystrokeText as _0x21d050,FocusTracker as _0x5d0c26,KeystrokeHandler as _0x506df3,Collection as _0x743895}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x333ecc,IconCancel as _0x57c6bd,IconTrackChanges as _0x3fc479}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x252336,View as _0x45ba2b,ViewCollection as _0xe861d7,FocusCycler as _0x3d145f,UIModel as _0x4d5172,createDropdown as _0x565160,SplitButtonView as _0x57ec08,addListToDropdown as _0x2824d6,MenuBarMenuView as _0x155a74,MenuBarMenuListView as _0x352c61,ListSeparatorView as _0x1d7000,MenuBarMenuListItemView as _0x4f4607,MenuBarMenuListItemButtonView as _0x50967b,BodyCollection as _0x1aebc,Dialog as _0x4042ab}from'@ckeditor/ckeditor5-ui/dist/index.js';import{splitSuggestionMarkerName as _0x11d9f0,SuggestionsConversion as _0x45f6b6,Users as _0x97b95d,DocumentCompare as _0x56c137,fixElementSuggestionRange as _0x5dc878,hashObject as _0x54b6ec,surroundingMarkersDetector as _0x273667,FOCUS_ANNOTATION_KEYSTROKE as _0x1b2bd3,AriaDescriptionView as _0x4a4323,setupThreadKeyboardNavigation as _0x1972d2,trimHtml as _0x23312a,UserView as _0xe23deb,LateFocusButtonView as _0x14b3e,getDateTimeFormatter as _0x324fb2,getAllMarkersDomElementsSorted as _0x2a695a,sanitizeEditorConfig as _0x2291ec}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{ModelElement as _0x50074d,ModelLiveRange as _0x4099e3,ModelLivePosition as tt,ViewDowncastWriter as et}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as nt,set as it,isEqual as st,unset as rt,omit as ot}from'es-toolkit/compat';import{Delete as at,Input as ct}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as lt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as ut}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class TrackChangesCommand extends _0x4a3a6c{['_enabledCommands'];constructor(_0x5d97e0,_0x40af2b){super(_0x5d97e0),this['_enabledCommands']=_0x40af2b,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 _0x39002e of this['editor']['commands']['commands']())_0x39002e['affectsData']&&!this['_enabledCommands']['has'](_0x39002e)&&_0x39002e['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x360e17 of this['editor']['commands']['commands']())_0x360e17['affectsData']&&!this['_enabledCommands']['has'](_0x360e17)&&_0x360e17['clearForceDisabled']('TrackChangesCommand');}}class AcceptSuggestionCommand extends _0x4a3a6c{['_suggestions'];constructor(_0x46566a,_0xa36025){super(_0x46566a),this['_suggestions']=_0xa36025,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5c3ae2){const _0x1465a1=this['_suggestions']['get'](_0x5c3ae2);if(!_0x1465a1)throw new _0x2992e4('track-changes-accept-suggestion-not-found',this);const _0x4f9606=_0x1465a1['getRanges']();this['editor']['model']['canEditAt'](_0x4f9606)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1465a1);}}class DiscardSuggestionCommand extends _0x4a3a6c{['_suggestions'];constructor(_0x53a051,_0x225aff){super(_0x53a051),this['_suggestions']=_0x225aff,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5db6fc){const _0xff308=this['_suggestions']['get'](_0x5db6fc);if(!_0xff308)throw new _0x2992e4('track-changes-discard-suggestion-not-found',this);const _0x2a4fe7=_0xff308['getRanges']();this['editor']['model']['canEditAt'](_0x2a4fe7)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0xff308);}}function ht(_0x44b346,_0x559eb1){let _0x2bacc8='';return _0x2bacc8+=_0x44b346['split']('*')['map']((_0x12e39b,_0x3a73f9)=>_0x3a73f9%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+gt(_0x12e39b)+'</span>':gt(_0x12e39b))['join'](''),_0x559eb1&&(_0x2bacc8+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x559eb1['value']+'\x22\x20title=\x22'+_0x559eb1['title']+'\x22></span>'),_0x2bacc8;}function gt(_0x48b334){const _0x58384c=document['createElement']('span');return _0x58384c['innerText']=_0x48b334,_0x58384c['innerHTML'];}function dt(_0x5ed8e8){return _0x5ed8e8['sort']((_0xa39544,_0x4beb30)=>'attribute'===_0xa39544['type']&&'attribute'!==_0x4beb30['type']?-0x1:'attribute'!==_0xa39544['type']&&'attribute'===_0x4beb30['type']?0x1:'deletion'==_0xa39544['type']&&'deletion'!=_0x4beb30['type']?-0x1:'deletion'!=_0xa39544['type']&&'deletion'==_0x4beb30['type']?0x1:0x0);}function ft(_0x556bfb,_0x408dea){let _0x53109a,_0xf9e312=0x0;const _0x210f62=[],_0x3a6462=_0x408dea['schema'];for(;_0xf9e312<_0x556bfb['length'];){const _0x32d017=_0x556bfb[_0xf9e312],_0x563d9a=_0x556bfb[_0xf9e312+0x1];_0x53109a||(_0x53109a=_0x408dea['createPositionBefore'](_0x32d017)),mt(_0x408dea,_0x32d017,_0x563d9a)||(_0x210f62['push'](_0x408dea['createRange'](_0x53109a,_0x3a6462['isObject'](_0x32d017)?_0x408dea['createPositionAfter'](_0x32d017):_0x408dea['createPositionAt'](_0x32d017,'end'))),_0x53109a=null),_0xf9e312++;}return _0x210f62;}function mt(_0x22459f,_0x17b8ee,_0x378206){if(!_0x378206)return!0x1;const _0x4ce98c=_0x22459f['createPositionAfter'](_0x17b8ee),_0x5b1b65=_0x22459f['createPositionBefore'](_0x378206);return _0x4ce98c['isTouching'](_0x5b1b65);}function Et(_0xb1757e,_0xf20d7,_0x304989){for(;_0x304989['length'];){const _0x585e8f=_0x304989['splice'](0x0,0x64);_0xb1757e['change'](()=>{for(const _0x3ee0fc of _0x585e8f)_0x3ee0fc['isInContent']&&_0xf20d7['execute'](_0x3ee0fc['id']);});}}class ExecuteOnAllSuggestionsCommand extends _0x4a3a6c{['_command'];['_suggestions'];constructor(_0x12802f,_0x30e700,_0x7bd65d){super(_0x12802f),this['_command']=_0x30e700,this['_suggestions']=_0x7bd65d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4bf3ec=Array['from'](this['_suggestions']['values']())['some'](_0x5ba104=>_0x5ba104['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4bf3ec;}['execute'](){const _0x26cb9c=dt(Array['from'](this['_suggestions']['values']()));for(const _0xe66add of _0x26cb9c){const _0x167796=_0xe66add['getRanges']();if(!this['editor']['model']['canEditAt'](_0x167796))return;}Et(this['editor']['model'],this['_command'],_0x26cb9c);}}class ExecuteOnSelectedSuggestionsCommand extends _0x4a3a6c{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1e8bb4,_0x3fe407,_0x264ec0){super(_0x1e8bb4),this['_command']=_0x3fe407,this['_suggestions']=_0x264ec0,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x26ba29=this['editor']['model']['document']['selection'],_0x34158b=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x35ac61,_0x45fba4){const _0x4afcbb=Array['from'](_0x35ac61['getRanges']()),_0x53375a=new Set();for(const _0x47bfcb of _0x45fba4)if(_0x47bfcb['isInContent']){for(const _0x52896c of _0x4afcbb)for(const _0x340166 of _0x47bfcb['getRanges']())(_0x52896c['isIntersecting'](_0x340166)||_0x35ac61['isCollapsed']&&!_0x47bfcb['isMultiRange']&&_0x47bfcb['next']&&_0x340166['end']['isTouching'](_0x52896c['start']))&&_0x53375a['add'](_0x47bfcb);}return _0x53375a;}(_0x26ba29,_0x34158b),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x188ad8=dt(Array['from'](this['_selectedSuggestions']));for(const _0x5e34d3 of _0x188ad8){const _0x4ab995=_0x5e34d3['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4ab995))return;}Et(this['editor']['model'],this['_command'],_0x188ad8);}}class Suggestion extends/* #__PURE__ -- @preserve */
24
- _0x3c23d7(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xc31e28,_0x23463e){super(),this['id']=_0x23463e['id'],this['type']=_0x23463e['type'],this['subType']=_0x23463e['subType']||null,this['author']=_0x23463e['author'],this['creator']=_0x23463e['creator']||_0x23463e['author'],this['isExternal']=Boolean(_0x23463e['attributes']&&_0x23463e['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x23463e['originalSuggestionId']||null,this['_model']=_0xc31e28,this['_onAccept']=_0x23463e['onAccept'],this['_onDiscard']=_0x23463e['onDiscard'],this['_onAttributesChange']=_0x23463e['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x23463e['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 _0x1dcf16=this;for(;_0x1dcf16['previous'];)_0x1dcf16=_0x1dcf16['previous'];return _0x1dcf16;}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'](_0x4345f7){this['_markerNames']['add'](_0x4345f7);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x294ca8=>this['_model']['markers']['get'](_0x294ca8))['filter'](_0x5393f0=>_0x5393f0);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2b9651=>{for(const _0xda41a1 of this['getMarkers']())_0x2b9651['removeMarker'](_0xda41a1);}),this['_markerNames']['clear']();}['removeMarker'](_0x26c4c9){this['_model']['change'](_0x2c2999=>{_0x2c2999['removeMarker'](_0x26c4c9);}),this['_markerNames']['delete'](_0x26c4c9);}['addRange'](_0x2f0802){const _0x4f7846='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x4f7846),this['_model']['change'](_0x55a8b6=>{_0x55a8b6['addMarker'](_0x4f7846,{'range':_0x2f0802,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x53ed46){for(const _0x3e081b of this['getRanges']())if(_0x3e081b['isIntersecting'](_0x53ed46))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4252b2=>_0x4252b2['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x335b3b,_0x2faac4)=>[..._0x335b3b,..._0x2faac4['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5b9a49=this['getRanges']();if(0x1!=_0x5b9a49['length'])return null;const _0x5ae73f=_0x5b9a49[0x0],_0x16218a=_0x5ae73f['start']['nodeAfter'],_0x2ade72=_0x5ae73f['end']['nodeBefore'];return _0x16218a instanceof _0x50074d?_0x16218a!=_0x2ade72?null:_0x16218a: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 _0x5c6585=[];let _0x54cd56=this['head'];for(;_0x54cd56;)_0x5c6585['push'](_0x54cd56),_0x54cd56=_0x54cd56['next'];return _0x5c6585;}['setAttribute'](_0xfce612,_0x20716e){const _0x2396b2=nt(this['attributes']);it(_0x2396b2,_0xfce612,_0x20716e),st(_0x2396b2,this['attributes'])||(this['attributes']=_0x2396b2,this['_onAttributesChange'](_0x2396b2));}['removeAttribute'](_0x4adf57){const _0x55e21=nt(this['attributes']);rt(_0x55e21,_0x4adf57),st(_0x55e21,this['attributes'])||(this['attributes']=_0x55e21,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 _0x2375fd()['substr'](0x1,0x5);}}function Tt(_0x3cf94a,_0x1894da,_0x3b6fbb){const _0x251e13=_0x3cf94a['t'],t=_0x3cf94a['t'];switch(_0x1894da){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',_0x3b6fbb);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3b6fbb);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3b6fbb);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3b6fbb);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3b6fbb);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',_0x3b6fbb);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3b6fbb);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',_0x3b6fbb);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3b6fbb);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3b6fbb);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3b6fbb);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3b6fbb);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3b6fbb);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3b6fbb);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3b6fbb);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3b6fbb);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3b6fbb);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3b6fbb);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3b6fbb);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3b6fbb);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3b6fbb);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3b6fbb);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3b6fbb);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3b6fbb);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x3b6fbb);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'},_0x3b6fbb);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x3b6fbb);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x3b6fbb);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3b6fbb);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3b6fbb);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3b6fbb);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3b6fbb);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3b6fbb);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'},_0x3b6fbb);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3b6fbb);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3b6fbb);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3b6fbb);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3b6fbb);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x3b6fbb);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3b6fbb);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'},_0x3b6fbb);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x3b6fbb);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3b6fbb);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'},_0x3b6fbb);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3b6fbb);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'},_0x3b6fbb);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3b6fbb);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x3b6fbb);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x3b6fbb);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x3b6fbb);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3b6fbb);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'},_0x3b6fbb);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3b6fbb);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 _0x251e13({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3b6fbb);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x251e13({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3b6fbb);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3b6fbb);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'},_0x3b6fbb);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'},_0x3b6fbb);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'},_0x3b6fbb);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1894da;}}class SuggestionDescriptionFactory{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3b3db9,_0x54f240){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3b3db9,this['_locale']=_0x54f240;}['getDescriptions'](_0x9e506e){const _0x52c13e=[],_0x736656=new Set(),_0x4d9887=new Set();for(let _0x55d98e=0x0;_0x55d98e<_0x9e506e['length'];_0x55d98e++){const _0x518e0c=_0x9e506e[_0x55d98e];if(!_0x518e0c['isInContent'])continue;const _0x53c0c1=this['_handleCustomCallbackDescription'](_0x518e0c);if(_0x53c0c1){if(null!=_0x518e0c['subType']){if(_0x736656['has'](_0x518e0c['subType']))continue;_0x736656['add'](_0x518e0c['subType']);}_0x52c13e['push'](_0x53c0c1);}else{if('attribute'==_0x518e0c['type']){const _0x413efb=_0x518e0c['data']['key'];if(_0x4d9887['has'](_0x413efb))continue;_0x4d9887['add'](_0x518e0c['data']['key']),_0x413efb==Ft?this['_handleRenameSuggestionDescription'](_0x52c13e,_0x518e0c):this['_handleAttributeSuggestionDescription'](_0x52c13e,_0x518e0c);continue;}'insertion'!=_0x518e0c['type']&&'deletion'!=_0x518e0c['type']||this['_handleInsertRemoveSuggestionDescription'](_0x52c13e,_0x518e0c,_0x9e506e[_0x55d98e+0x1]);}}return this['_resolveDescriptionItems'](_0x52c13e);}['registerDescriptionCallback'](_0x37220d){this['_customCallbacks']['push'](_0x37220d);}['registerElementLabel'](_0x473f78,_0x30dc32,_0x1781c2=_0x196bca['normal']){'function'==typeof _0x473f78?_0x5423cd(this['_itemLabelsCallbacks'],{'matchingCallback':_0x473f78,'label':_0x30dc32,'priority':_0x1781c2}):this['_itemLabels']['set'](_0x473f78,_0x30dc32);}['registerAttributeLabel'](_0x1525e8,_0x36b48a){this['_attributeLabels']['set'](_0x1525e8,_0x36b48a);}['getItemLabel'](_0x516fb1,_0x30817f=0x1){let _0x4826c4;for(const _0x55862d of this['_itemLabelsCallbacks'])if(_0x55862d['matchingCallback'](_0x516fb1)){_0x4826c4=_0x55862d['label'];break;}return _0x4826c4||(_0x4826c4=this['_itemLabels']['get'](_0x516fb1['name'])),_0x4826c4?_0x4826c4(_0x30817f):0x1!==_0x30817f?_0x30817f+'\x20'+_0x516fb1['name']+'s':''+_0x516fb1['name'];}['_addDescriptionItems'](_0x29ecee,_0x5999b7){const _0x51493a=_0x5999b7['getFirstRange']()['getWalker'](),_0x451a88='insertion'==_0x5999b7['type']?'add':'remove';for(const _0x951c33 of _0x51493a){const _0x820b03=_0x951c33['item'],_0x1ccf22=_0x29ecee[_0x29ecee['length']-0x1];if(_0x820b03['is']('$textProxy'))_0x1ccf22&&_0x1ccf22['type']['indexOf']('Container')>-0x1&&_0x29ecee['pop'](),_0x1ccf22&&'text'==_0x1ccf22['type']?_0x1ccf22[_0x451a88]+=_0x820b03['data']:_0x29ecee['push']({'type':'text','add':'add'==_0x451a88?_0x820b03['data']:'','remove':'remove'==_0x451a88?_0x820b03['data']:''});else{if(this['_schema']['isObject'](_0x820b03)){const _0x1086b6=_0x820b03;if(_0x1ccf22&&_0x1ccf22['type']['indexOf']('Container')>-0x1&&_0x29ecee['pop'](),'elementEnd'==_0x951c33['type'])continue;_0x1ccf22&&_0x1ccf22['type']==_0x451a88+'Object'&&_0x1ccf22['element']['name']==_0x1086b6['name']?_0x1ccf22['quantity']++:_0x29ecee['push']({'type':_0x451a88+'Object','element':_0x1086b6,'quantity':0x1}),_0x51493a['skip'](_0x40a2d4=>!('elementEnd'==_0x40a2d4['type']&&_0x40a2d4['item']==_0x820b03));}else{if(this['_schema']['checkChild'](_0x820b03,'$text')||_0x820b03['is']('element','softBreak')){const _0x250d2d=_0x820b03;if('add'==_0x451a88&&'elementStart'==_0x951c33['type']||'remove'==_0x451a88&&'elementEnd'==_0x951c33['type'])continue;if(_0x1ccf22&&-0x1==_0x1ccf22['type']['indexOf']('Container')){'text'==_0x1ccf22['type']&&(_0x1ccf22[_0x451a88]+='\x0a');continue;}let _0x22e374;if(_0x22e374='add'==_0x451a88?_0x250d2d['nextSibling']&&!this['_schema']['isObject'](_0x250d2d['nextSibling'])?_0x250d2d['nextSibling']:null:_0x250d2d['previousSibling']&&!this['_schema']['isObject'](_0x250d2d['previousSibling'])?_0x250d2d['previousSibling']:null,_0x250d2d['isEmpty']||_0x22e374&&_0x22e374['isEmpty']){const _0x37390f=_0x22e374&&_0x22e374['isEmpty']?_0x22e374:_0x250d2d;_0x1ccf22&&_0x1ccf22['type']==_0x451a88+'EmptyContainer'&&_0x1ccf22['element']['name']==_0x37390f['name']?_0x1ccf22['quantity']++:_0x29ecee['push']({'type':_0x451a88+'EmptyContainer','element':_0x37390f,'quantity':0x1});}else _0x29ecee['push']({'type':_0x451a88+'Container','element':_0x250d2d});}}}}}['_resolveDescriptionItems'](_0x511d0e){const _0x150f66=this['_locale'],_0x4c5b86=[],_0x3e0e66=[],_0x4f9c82=[];for(const _0x180a5f of _0x511d0e)switch(_0x180a5f['type']){case'text':if(_0x180a5f['add']=_0x180a5f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x180a5f['remove']=_0x180a5f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x180a5f['add']&&''!=_0x180a5f['remove']){_0x4c5b86['push']({'type':'replace','content':Tt(_0x150f66,'REPLACE_TEXT',['\x22'+_0x180a5f['remove']+'\x22','\x22'+_0x180a5f['add']+'\x22'])});continue;}if(null!=_0x180a5f['add']['match'](/^ +$/)){_0x4c5b86['push']({'type':'insertion','content':Tt(_0x150f66,'*Insert:*\x20%0',Tt(_0x150f66,'ELEMENT_SPACE',_0x180a5f['add']['length']))});continue;}if(null!=_0x180a5f['remove']['match'](/^ +$/)){_0x4c5b86['push']({'type':'deletion','content':Tt(_0x150f66,'*Remove:*\x20%0',Tt(_0x150f66,'ELEMENT_SPACE',_0x180a5f['remove']['length']))});continue;}if(''!=_0x180a5f['add']){_0x4c5b86['push']({'type':'insertion','content':Tt(_0x150f66,'*Insert:*\x20%0','\x22'+_0x180a5f['add']+'\x22')});continue;}_0x4c5b86['push']({'type':'deletion','content':Tt(_0x150f66,'*Remove:*\x20%0','\x22'+_0x180a5f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4c5b86['push']({'type':'insertion','content':Tt(_0x150f66,'*Insert:*\x20%0',this['getItemLabel'](_0x180a5f['element'],_0x180a5f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4c5b86['push']({'type':'deletion','content':Tt(_0x150f66,'*Remove:*\x20%0',this['getItemLabel'](_0x180a5f['element'],_0x180a5f['quantity']))});continue;case'addContainer':_0x4c5b86['push']({'type':'insertion','content':Tt(_0x150f66,'*Split:*\x20%0',this['getItemLabel'](_0x180a5f['element'],_0x180a5f['quantity']))});continue;case'removeContainer':_0x4c5b86['push']({'type':'deletion','content':Tt(_0x150f66,'*Merge:*\x20%0',this['getItemLabel'](_0x180a5f['element'],_0x180a5f['quantity']))});continue;case'addFormat':_0x3e0e66['push'](_0x180a5f['key']);continue;case'removeFormat':_0x4f9c82['push'](_0x180a5f['key']);continue;default:_0x4c5b86['push'](_0x180a5f);}if(_0x3e0e66['length']){const _0x58f860=_0x3e0e66['map'](_0x36f68b=>this['_attributeLabels']['has'](_0x36f68b)?this['_attributeLabels']['get'](_0x36f68b):_0x36f68b)['join'](',\x20');_0x4c5b86['push']({'type':'format','content':Tt(this['_locale'],'*Set\x20format:*\x20%0',_0x58f860)});}if(_0x4f9c82['length']){const _0xfd8748=_0x4f9c82['map'](_0x429899=>this['_attributeLabels']['has'](_0x429899)?this['_attributeLabels']['get'](_0x429899):_0x429899)['join'](',\x20');_0x4c5b86['push']({'type':'format','content':Tt(this['_locale'],'*Remove\x20format:*\x20%0',_0xfd8748)});}return _0x4c5b86;}['_handleCustomCallbackDescription'](_0x5d968b){for(const _0x57a791 of this['_customCallbacks']){const _0x395073=_0x57a791(_0x5d968b);if(_0x395073&&'type'in _0x395073)return _0x395073;}}['_handleAttributeSuggestionDescription'](_0x1e65ca,_0x3fdc8c){const _0x2d88b4=_0x3fdc8c['data'],_0x2afaca=void 0x0===_0x2d88b4['newValue']?'removeFormat':'addFormat';_0x1e65ca['push']({'type':_0x2afaca,'key':_0x2d88b4['key']});}['_handleRenameSuggestionDescription'](_0x3d98f5,_0x41ab8e){_0x3d98f5['push']({'type':'format','content':Tt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x41ab8e['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1bb1c6,_0x1d383e,_0x1d892b){if(this['_addDescriptionItems'](_0x1bb1c6,_0x1d383e),_0x1d892b&&_0x1d892b['getFirstRange']()&&!_0x1d383e['getFirstRange']()['end']['isEqual'](_0x1d892b['getFirstRange']()['start'])){const _0xcde0b0=_0x1bb1c6[_0x1bb1c6['length']-0x1],_0x319633='insertion'==_0x1d383e['type']?'add':'remove';_0xcde0b0&&'text'==_0xcde0b0['type']&&(_0xcde0b0[_0x319633]+='\x0a');}}}class TrackChangesAIAssistant extends _0x1b042a{['afterInit'](){const _0x311c8b=this['editor'],_0x2595e7=_0x311c8b['plugins']['get']('TrackChangesEditing');_0x311c8b['commands']['get']('showAIAssistant')&&_0x2595e7['enableCommand']('showAIAssistant');}}class TrackChangesAI extends _0x1b042a{['afterInit'](){const _0x4d47ae=this['editor'],_0x4f7f78=_0x4d47ae['plugins']['get']('TrackChangesEditing');_0x4d47ae['commands']['get']('toggleAi')&&_0x4f7f78['enableCommand']('toggleAi');}}class TrackChangesAIQuickActions extends _0x1b042a{['afterInit'](){const _0x3319ae=this['editor'],_0x6d31b8=_0x3319ae['plugins']['get']('TrackChangesEditing');_0x3319ae['commands']['get']('aiQuickAction')&&_0x6d31b8['enableCommand']('aiQuickAction');}}class TrackChangesAlignment extends _0x1b042a{['afterInit'](){const _0x1d54cf=this['editor'],_0xd61b49=_0x1d54cf['locale'];if(!_0x1d54cf['plugins']['has']('AlignmentEditing'))return;const _0x2eb196=_0x1d54cf['plugins']['get']('TrackChangesEditing');_0x2eb196['enableDefaultAttributesIntegration']('alignment'),_0x2eb196['descriptionFactory']['registerAttributeLabel']('alignment',Tt(_0xd61b49,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x406534=this['editor'],_0x1b5523=_0x406534['locale'];_0x406534['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x87fc3=>{if('formatBlock'!=_0x87fc3['type'])return;const {data:_0x2bea09}=_0x87fc3;if(_0x2bea09&&'alignment'==_0x2bea09['commandName']){const _0x280aa9=_0x2bea09['commandParams'][0x0]['value'];return{'type':'format','content':Tt(_0x1b5523,'*Format:*\x20%0',function(_0x34a0e9){switch(_0x34a0e9){case'left':return Tt(_0x1b5523,'FORMAT_ALIGN_TO_LEFT');case'right':return Tt(_0x1b5523,'FORMAT_ALIGN_TO_RIGHT');case'center':return Tt(_0x1b5523,'FORMAT_ALIGN_TO_CENTER');case'justify':return Tt(_0x1b5523,'FORMAT_JUSTIFY_TEXT');}}(_0x280aa9))};}});}}const _t=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class TrackChangesBasicStyles extends _0x1b042a{['afterInit'](){const _0x102637=this['editor'],_0x18ba28=_0x102637['plugins']['get']('TrackChangesEditing'),_0x2c3dfe=_0x102637['locale'];for(const _0x25fda4 of _t){if(!_0x102637['plugins']['has'](_0x25fda4))continue;const _0x21c2c0=_0x25fda4['slice'](0x0,-0x7)['toLowerCase'](),_0x24b5ce='FORMAT_'+_0x21c2c0['toUpperCase']();_0x18ba28['enableDefaultAttributesIntegration'](_0x21c2c0),_0x18ba28['descriptionFactory']['registerAttributeLabel'](_0x21c2c0,Tt(_0x2c3dfe,_0x24b5ce));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1cbe9c=this['editor'],_0x3f6246=_0x1cbe9c['locale'],_0x440776=_0x1cbe9c['plugins']['get']('TrackChangesEditing');function _0xf81e33(_0x6d02d4,_0x1d743e){_0x440776['descriptionFactory']['registerDescriptionCallback'](_0x3dc802=>{if('formatInline'!=_0x3dc802['type'])return;const {data:_0x6527b9}=_0x3dc802;return _0x6527b9&&_0x6527b9['commandName']===_0x6d02d4?_0x6527b9['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x3f6246,'*Format:*\x20%0',_0x1d743e)}:{'type':'format','content':Tt(_0x3f6246,'*Remove\x20format:*\x20%0',_0x1d743e)}:void 0x0;});}_0xf81e33('bold',Tt(_0x3f6246,'FORMAT_BOLD')),_0xf81e33('italic',Tt(_0x3f6246,'FORMAT_ITALIC')),_0xf81e33('underline',Tt(_0x3f6246,'FORMAT_UNDERLINE')),_0xf81e33('code',Tt(_0x3f6246,'FORMAT_CODE')),_0xf81e33('strikethrough',Tt(_0x3f6246,'FORMAT_STRIKETHROUGH')),_0xf81e33('subscript',Tt(_0x3f6246,'FORMAT_SUBSCRIPT')),_0xf81e33('superscript',Tt(_0x3f6246,'FORMAT_SUPERSCRIPT'));}}class TrackChangesBlockQuote extends _0x1b042a{['afterInit'](){const _0x571735=this['editor'],_0x4843e5=_0x571735['locale'];if(!_0x571735['plugins']['has']('BlockQuoteEditing'))return;const _0x19e9da=_0x571735['plugins']['get']('TrackChangesEditing'),_0x5c5264=this['editor']['commands']['get']('blockQuote');_0x19e9da['enableCommand']('blockQuote',(_0x11a2ca,_0xf24f87={})=>{const _0x4fd9b0=this['editor']['model']['document']['selection'],_0x2c3948=_0xf24f87&&void 0x0!==_0xf24f87['forceValue']?_0xf24f87['forceValue']:!_0x5c5264['value'];let _0x1995ae=[];if(_0x2c3948){const _0x5f2cec=Array['from'](_0x4fd9b0['getSelectedBlocks']())['filter'](_0x3f8265=>pt(_0x3f8265)||function(_0x961c21,_0x37462c){const _0x74ac64=_0x37462c['checkChild'](_0x961c21['parent'],'blockQuote'),_0x27714c=_0x37462c['checkChild'](['$root','blockQuote'],_0x961c21);return _0x74ac64&&_0x27714c;}(_0x3f8265,this['editor']['model']['schema']));_0x1995ae=ft(_0x5f2cec,_0x571735['model']);}else{const _0x49d7f0=Array['from'](_0x4fd9b0['getSelectedBlocks']())['filter'](_0x4bf125=>pt(_0x4bf125));_0x1995ae=ft(_0x49d7f0,_0x571735['model']);}_0x571735['model']['change'](()=>{for(const _0x2fcfeb of _0x1995ae)_0x19e9da['markBlockFormat'](_0x2fcfeb,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2c3948}]});});}),_0x19e9da['descriptionFactory']['registerDescriptionCallback'](_0x445621=>{const {data:_0x26a5ff}=_0x445621;if(_0x26a5ff&&'blockQuote'==_0x26a5ff['commandName']){const _0x554c06=Tt(_0x4843e5,'ELEMENT_BLOCK_QUOTE');return _0x26a5ff['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x4843e5,'*Set\x20format:*\x20%0',_0x554c06)}:{'type':'format','content':Tt(_0x4843e5,'*Remove\x20format:*\x20%0',_0x554c06)};}});}}function pt(_0x1a9038){return'blockQuote'==_0x1a9038['parent']['name'];}class TrackChangesBookmark extends _0x1b042a{['afterInit'](){const _0x32e696=this['editor'],_0x30d660=_0x32e696['locale'],_0x43ae34=_0x32e696['plugins']['get']('TrackChangesEditing');_0x32e696['plugins']['has']('BookmarkEditing')&&(_0x43ae34['enableCommand']('insertBookmark'),_0x43ae34['enableDefaultAttributesIntegration']('updateBookmark'),_0x43ae34['descriptionFactory']['registerDescriptionCallback'](_0x37bfaf=>{if('insertion'!=_0x37bfaf['type']&&'deletion'!=_0x37bfaf['type']&&'attribute'!=_0x37bfaf['type'])return;const _0x1f8b28=_0x37bfaf['getContainedElement']();if(null==_0x1f8b28)return;if(!_0x1f8b28['is']('element','bookmark'))return;const _0x1752d8=_0x1f8b28['getAttribute']('bookmarkId');if('insertion'==_0x37bfaf['type'])return{'type':'insertion','content':Tt(_0x30d660,'*Insert:*\x20%0','\x22'+_0x1752d8+'\x22\x20'+Tt(_0x30d660,'ELEMENT_BOOKMARK'))};if('deletion'==_0x37bfaf['type'])return{'type':'deletion','content':Tt(_0x30d660,'*Remove:*\x20%0','\x22'+_0x1752d8+'\x22\x20'+Tt(_0x30d660,'ELEMENT_BOOKMARK'))};const {data:_0x2de330}=_0x37bfaf;if(!_0x2de330||'bookmarkId'!=_0x2de330['key'])return;return{'type':'format','content':Tt(_0x30d660,'*Set\x20bookmark:*\x20%0','\x22'+_0x2de330['newValue']+'\x22')};}));}}class TrackChangesCaseChange extends _0x1b042a{['afterInit'](){const _0x4f02fe=this['editor'];_0x4f02fe['plugins']['has']('CaseChange')&&(_0x4f02fe['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4f02fe['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4f02fe['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class TrackChangesCKBox extends _0x1b042a{['afterInit'](){const _0x345784=this['editor'];_0x345784['commands']['get']('ckbox')&&_0x345784['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class TrackChangesCodeBlock extends _0x1b042a{['afterInit'](){const _0x31cc2f=this['editor'];if(!_0x31cc2f['plugins']['has']('CodeBlock'))return;const _0x172971=_0x31cc2f['plugins']['get']('TrackChangesEditing'),_0x4a1e22=_0x31cc2f['locale'],_0x49fb06=_0x31cc2f['config']['get']('codeBlock')['languages'],_0xfe2aa5=_0x31cc2f['commands']['get']('codeBlock');_0x172971['enableCommand']('indentCodeBlock'),_0x172971['enableCommand']('outdentCodeBlock'),_0x172971['enableCommand']('codeBlock',(_0x54fe67,_0x41afd9={})=>{const _0x42dc99=_0x31cc2f['model'],_0xddda13=_0x31cc2f['model']['document']['selection'],_0x362645=_0x41afd9&&void 0x0!==_0x41afd9['forceValue']?_0x41afd9['forceValue']:!_0xfe2aa5['value'];let _0x440747;_0x41afd9['language']||(_0x41afd9['language']=_0x49fb06[0x0]['language']),_0x440747=_0x362645?Array['from'](_0xddda13['getSelectedBlocks']())['filter'](_0x3069d0=>Ct(_0x3069d0)||function(_0x4df722,_0x10f68b){if(_0x4df722['is']('rootElement')||_0x10f68b['isLimit'](_0x4df722))return!0x1;return _0x10f68b['checkChild'](_0x4df722['parent'],'codeBlock');}(_0x3069d0,_0x42dc99['schema'])):Array['from'](_0xddda13['getSelectedBlocks']())['filter'](_0x2dd67b=>Ct(_0x2dd67b));const _0x5dce0f=ft(_0x440747,_0x42dc99);_0x42dc99['change'](()=>{for(const _0x1aefb3 of _0x5dce0f)_0x172971['markBlockFormat'](_0x1aefb3,{'commandName':'codeBlock','commandParams':[{..._0x41afd9,'forceValue':_0x362645}],'formatGroupId':'blockName'});});}),(_0x172971['descriptionFactory']['registerElementLabel']('codeBlock',_0xd4c6b0=>Tt(_0x4a1e22,'ELEMENT_CODE_BLOCK',_0xd4c6b0)),_0x172971['descriptionFactory']['registerDescriptionCallback'](_0x2a9a43=>{if('formatBlock'!=_0x2a9a43['type'])return;const _0x1cc92c=_0x4a1e22['t'],{data:_0x337347}=_0x2a9a43;if(!_0x337347||'codeBlock'!=_0x337347['commandName'])return;const _0x5616f0=_0x337347['commandParams'][0x0]['language'],_0x5e0a60=_0x1cc92c(_0x49fb06['find'](_0x188cc3=>_0x188cc3['language']===_0x5616f0)['label'])['toLowerCase']();return _0x337347['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x4a1e22,'*Set\x20format:*\x20%0',Tt(_0x4a1e22,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5e0a60+')')}:{'type':'format','content':Tt(_0x4a1e22,'*Remove\x20format:*\x20%0',Tt(_0x4a1e22,'ELEMENT_CODE_BLOCK',0x1))};}));}}function Ct(_0x4e55ea){return'codeBlock'==_0x4e55ea['name'];}class TrackChangesComments extends _0x1b042a{['afterInit'](){const _0x42504c=this['editor'];if(!_0x42504c['plugins']['has']('CommentsEditing'))return;_0x42504c['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class TrackChangesDeleteCommand extends _0x1b042a{static get['requires'](){return[at];}['init'](){const _0x4ec59e=this['editor'],_0x450dc3=_0x4ec59e['plugins']['get']('TrackChangesEditing');_0x450dc3['enableCommand']('delete');const _0x45d449=_0x4ec59e['commands']['get']('deleteForward');_0x450dc3['enableCommand']('deleteForward',(_0x35d4f5,_0x4b7b12={})=>{const _0x2b6736=_0x4ec59e['model']['createSelection'](_0x4ec59e['model']['document']['selection']);_0x2b6736['isCollapsed']&&_0x4ec59e['model']['modifySelection'](_0x2b6736,{'direction':'forward','unit':_0x4b7b12['unit']});const _0x3f29b7=_0x2b6736['getFirstRange'](),_0x21729a=_0x4099e3['fromRange'](_0x3f29b7);let _0x3b45e7;_0x35d4f5(_0x4b7b12),_0x3b45e7='$graveyard'==_0x21729a['root']['rootName']?_0x4ec59e['model']['createRange'](_0x3f29b7['start']):_0x4ec59e['model']['createRange'](_0x21729a['start'],_0x21729a['end']),_0x21729a['detach'](),_0x4ec59e['model']['enqueueChange'](_0x45d449['buffer']['batch'],_0x38aa61=>{_0x45d449['buffer']['lock'](),_0x38aa61['setSelection'](_0x38aa61['createRange'](_0x3b45e7['end'])),_0x45d449['buffer']['unlock']();});});}}class TrackChangesList extends _0x1b042a{['afterInit'](){const _0x4d72f2=this['editor'];if(!_0x4d72f2['plugins']['has']('ListEditing'))return;const _0x56b6e5=_0x4d72f2['locale'],_0x422a8e=_0x4d72f2['plugins']['get']('TrackChangesEditing'),_0x5cf4a7=_0x4d72f2['plugins']['has']('TodoListEditing'),_0x400fbb=!!_0x4d72f2['config']['get']('list.multiBlock');function _0x3c50b6(_0x20f785){return{'type':'format','content':''+Tt(_0x56b6e5,'*Set\x20format:*\x20%0',_0x20f785)};}function _0x1d50a3(_0x14bc3a){return{'type':'format','content':''+Tt(_0x56b6e5,'*Remove\x20format:*\x20%0',_0x14bc3a)};}_0x422a8e['enableDefaultAttributesIntegration']('numberedList'),_0x422a8e['enableDefaultAttributesIntegration']('bulletedList'),_0x422a8e['enableDefaultAttributesIntegration']('customNumberedList'),_0x422a8e['enableDefaultAttributesIntegration']('customBulletedList'),_0x422a8e['enableDefaultAttributesIntegration']('indentList'),_0x422a8e['enableDefaultAttributesIntegration']('outdentList'),_0x422a8e['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x422a8e['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x400fbb&&(_0x422a8e['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x422a8e['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5cf4a7&&(_0x422a8e['enableDefaultAttributesIntegration']('todoList'),_0x422a8e['enableDefaultAttributesIntegration']('checkTodoList'),_0x422a8e['descriptionFactory']['registerDescriptionCallback'](_0xac43c3=>{const {data:_0x1c1066}=_0xac43c3;if(_0x1c1066&&'todoListChecked'==_0x1c1066['key'])return{'type':'format','content':_0x1c1066['newValue']?Tt(_0x56b6e5,'*Check\x20item*'):Tt(_0x56b6e5,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x345fc6=>{if(_0x345fc6['batch']['isUndo'])return!0x1;let _0x8669f5=!0x1;const _0x4f986d=_0x422a8e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x58cb51=>'todoListChecked'===_0x422a8e['_getAttributeKey'](_0x58cb51));for(const _0x598359 of _0x4f986d){'todo'!=_0x598359['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x422a8e['_findSuggestions'](_0x598359['getFirstRange'](),'attribute')['find'](_0x273623=>'listType'===_0x422a8e['_getAttributeKey'](_0x273623['suggestion']))||(_0x345fc6['removeMarker'](_0x598359['getFirstMarker']()),_0x8669f5=!0x0));}return _0x8669f5;})),_0x422a8e['descriptionFactory']['registerAttributeLabel']('listIndent',Tt(_0x56b6e5,'FORMAT_INDENT'));const _0x33a12d={'type':'format','content':''};_0x422a8e['descriptionFactory']['registerDescriptionCallback'](_0x554c12=>{const {data:_0x5a1a62}=_0x554c12;if(!_0x5a1a62||'listType'!=_0x5a1a62['key'])return;let _0x4cd6b=_0x554c12['head'];for(;_0x4cd6b;){if(_0x4cd6b['data']&&(('listStyle'==_0x4cd6b['data']['key']||'listMarkerStyle'==_0x4cd6b['data']['key'])&&(_0x4cd6b['data']['newValue']&&'default'!=_0x4cd6b['data']['newValue']||'default'!=_0x4cd6b['data']['oldValue']&&!_0x5a1a62['newValue'])||!_0x400fbb&&_0x4cd6b['data']['key']==Ft))return _0x33a12d;_0x4cd6b=_0x4cd6b['next'];}if(null==_0x5a1a62['newValue'])switch(_0x5a1a62['oldValue']){case'bulleted':return _0x1d50a3(Tt(_0x56b6e5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1d50a3(Tt(_0x56b6e5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1d50a3(Tt(_0x56b6e5,'ELEMENT_TODO_LIST'));}switch(_0x5a1a62['newValue']){case'bulleted':return _0x3c50b6(Tt(_0x56b6e5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3c50b6(Tt(_0x56b6e5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3c50b6(Tt(_0x56b6e5,'ELEMENT_TODO_LIST'));}}),_0x422a8e['descriptionFactory']['registerDescriptionCallback'](_0x376359=>{const {data:_0x3f25c4}=_0x376359;if(_0x3f25c4&&'listIndent'==_0x3f25c4['key'])return null==_0x3f25c4['newValue']||null==_0x3f25c4['oldValue']&&0x0==_0x3f25c4['newValue']?_0x33a12d:void 0x0;}),_0x422a8e['descriptionFactory']['registerDescriptionCallback'](_0x342c60=>{if('attribute'!=_0x342c60['type'])return;const {data:_0x539341}=_0x342c60;if(!_0x539341||'listItemId'!=_0x539341['key'])return;const _0x5dff1c=kt(_0x342c60);return'newValue'==_0x5dff1c?{'type':'format','content':Tt(_0x56b6e5,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5dff1c?{'type':'format','content':Tt(_0x56b6e5,'*Split:*\x20list\x20item')}:_0x33a12d;}),_0x4d72f2['model']['document']['registerPostFixer'](_0x154f3e=>this['listItemIdFixer'](_0x154f3e)),_0x4d72f2['model']['document']['registerPostFixer'](_0x2cf0b1=>this['noTrackChangesFixer'](_0x2cf0b1)),_0x4d72f2['model']['document']['on']('change:data',(_0x2b7571,_0x548c16)=>{if(_0x548c16['isUndo']||!_0x548c16['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3279f6){if(_0x3279f6['batch']['isUndo']||!_0x3279f6['batch']['isLocal'])return!0x1;let _0x418b4f=!0x1;const _0x301bc8=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x59dd14=>_0x59dd14['data']&&'listItemId'==_0x59dd14['data']['key'])['filter'](_0x5aee5d=>_0x5aee5d['data']['newValue']&&_0x5aee5d['data']['oldValue']);for(const _0x434bf6 of _0x301bc8)kt(_0x434bf6)||(_0x3279f6['removeMarker'](_0x434bf6['getFirstMarker']()),_0x418b4f=!0x0);return _0x418b4f;}['noTrackChangesFixer'](_0x294976){if(_0x294976['batch']['isUndo']||!_0x294976['batch']['isLocal'])return!0x1;const _0x117e26=this['editor']['model']['document']['differ'],_0x1aaaa1=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1aaaa1['trackChangesCommand']['value'])return!0x1;let _0x1eea75=!0x1;const _0x358f53=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle']),_0x495de9=_0x117e26['getChanges']()['filter'](_0x555854=>'attribute'==_0x555854['type'])['filter'](_0x478a98=>_0x358f53['has'](_0x478a98['attributeKey']));if(0x0==_0x495de9['length'])return _0x1eea75;const _0x3951b4=new Set(_0x117e26['getMarkersToAdd']()['filter'](_0x3a81f2=>{if(!_0x3a81f2['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x29a3ca=_0x11d9f0(_0x3a81f2['name'])['subType']['split']('|')[0x0];return _0x358f53['has'](_0x29a3ca);})['map'](_0x483fdd=>_0x11d9f0(_0x483fdd['name'])['id']));for(const _0x3db656 of _0x495de9){const _0x4d7d66=_0x1aaaa1['_findSuggestions'](_0x3db656['range'],'attribute')['filter'](_0x3d9bc9=>{if(_0x3d9bc9['meta']['isNextTo'])return!0x1;if(_0x3951b4['has'](_0x3d9bc9['suggestion']['id']))return!0x1;const _0x36db16=_0x1aaaa1['_getAttributeKey'](_0x3d9bc9['suggestion']);return _0x358f53['has'](_0x36db16);})['map'](_0x3a52b8=>_0x3a52b8['suggestion']);if(_0x4d7d66['length']){for(const _0xdc0219 of _0x4d7d66)_0x294976['removeMarker'](_0xdc0219['getFirstMarker']());_0x1eea75=!0x0;}}return _0x1eea75;}['assureChains'](){const _0x4dcbbf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x302521=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xbf4674;const _0x3c7bc8=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1ae51a=>{if(_0x1ae51a['data']['oldRange']||!_0x1ae51a['data']['newRange'])return null;if(!_0x1ae51a['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4c6d25}=_0x11d9f0(_0x1ae51a['name']);if(!_0x4dcbbf['hasSuggestion'](_0x4c6d25))return null;const _0x4a79ee=_0x4dcbbf['getSuggestion'](_0x4c6d25);return _0x302521['includes'](_0x4a79ee['data']['key']);})['map'](_0x5ad4e9=>{const {id:_0x7bc6d9}=_0x11d9f0(_0x5ad4e9['name']),_0x4d820=_0x4dcbbf['getSuggestion'](_0x7bc6d9);return _0xbf4674=_0x4d820['attributes']['groupId'],_0x4d820['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3c7bc8['size'])return;const _0x54bc00=_0x4dcbbf['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x461f31=>'attribute'==_0x461f31['type']&&_0x461f31['data']&&_0x302521['includes'](_0x461f31['data']['key'])&&_0x461f31['attributes']['groupId']!=_0xbf4674)['map'](_0x3e02c2=>({'listItem':_0x3e02c2['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3e02c2['attributes']['groupId']})),_0x4bfb70=new Set();for(const {groupId:_0x5231ac,listItem:_0x46dc9d}of _0x54bc00)_0x3c7bc8['has'](_0x46dc9d)&&_0x4bfb70['add'](_0x5231ac);for(const _0x10c23a of _0x4dcbbf['getSuggestions']())_0x4bfb70['has'](_0x10c23a['attributes']['groupId'])&&_0x10c23a['setAttribute']('groupId',_0xbf4674);}['_supportLegacySuggestions'](){const _0x20ae27=this['editor'],_0x47ac9e=_0x20ae27['locale'],_0x2240de=_0x20ae27['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2240de['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2818ee,_0x4b744c){const _0x44a176=[];for(let _0x1136a7 of _0x2818ee)_0x1136a7['start']['nodeAfter']===_0x1136a7['end']['parent']&&(_0x1136a7=_0x20ae27['model']['createRange'](_0x20ae27['model']['createPositionAt'](_0x1136a7['start']['nodeAfter'],0x0))),_0x44a176['push'](_0x1136a7);_0x20ae27['model']['change'](_0x3b5837=>{const _0x2b936a=_0x20ae27['model']['document']['selection'],_0x280ecb=Array['from'](_0x2b936a['getRanges']())['map'](_0x4687f1=>_0x4099e3['fromRange'](_0x4687f1));_0x3b5837['setSelection'](_0x44a176),_0x20ae27['commands']['get'](_0x4b744c['commandName'])['refresh'](),_0x4b744c['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x20ae27['execute'](_0x4b744c['commandName'],..._0x4b744c['commandParams']),_0x3b5837['setSelection'](_0x280ecb);for(const _0x374fbb of _0x280ecb)_0x374fbb['detach']();});}),_0x2240de['descriptionFactory']['registerElementLabel'](function(_0x5543ad){const _0x1aa3ac=!_0x20ae27['model']['schema']['isObject'](_0x5543ad),_0x786dc8=_0x5543ad['previousSibling'],_0x98331b=_0x5543ad['nextSibling'],_0x4faff2=_0x5543ad['getAttribute']('listItemId'),_0x53ad37=!_0x786dc8||_0x786dc8['getAttribute']('listItemId')!==_0x4faff2,_0x323db1=!_0x98331b||_0x98331b['getAttribute']('listItemId')!==_0x4faff2;return _0x1aa3ac&&Boolean(_0x4faff2)&&_0x53ad37&&_0x323db1;},_0xbdd83e=>Tt(_0x47ac9e,'ELEMENT_LIST_ITEM',_0xbdd83e));}['_registerLegacyDescription'](){const _0x3e15aa=this['editor'],_0xac7a9c=_0x3e15aa['locale'];function _0x2137f9(_0x5e1587){const _0x1f9d4c=_0x3e15aa['commands']['get']('bulletedList')['value'],_0x3a3d90=_0x3e15aa['commands']['get']('numberedList')['value'];return'numberedList'===_0x5e1587?_0x1f9d4c:_0x3a3d90;}_0x3e15aa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x461d0f){if('formatBlock'!=_0x461d0f['type'])return;const {data:_0x4151cd}=_0x461d0f;if(!_0x4151cd)return;let _0x3c9499,_0x3d6526,_0x5c68a3,_0x574d56;switch(_0x4151cd['commandName']){case'bulletedList':_0x5c68a3=_0x4151cd['commandParams'][0x0]['forceValue'],_0x574d56=_0x2137f9(_0x4151cd['commandName']),_0x3c9499=_0x5c68a3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x574d56&&_0x3e15aa['config']['get']('list.multiBlock')||(_0x3c9499='*Change\x20to:*\x20%0'),_0x3d6526={'type':'format','content':Tt(_0xac7a9c,_0x3c9499,Tt(_0xac7a9c,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5c68a3=_0x4151cd['commandParams'][0x0]['forceValue'],_0x574d56=_0x2137f9(_0x4151cd['commandName']),_0x3c9499=_0x5c68a3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x574d56&&_0x3e15aa['config']['get']('list.multiBlock')||(_0x3c9499='*Change\x20to:*\x20%0'),_0x3d6526={'type':'format','content':Tt(_0xac7a9c,_0x3c9499,Tt(_0xac7a9c,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3c9499='*Indent:*\x20%0',_0x3d6526={'type':'format','content':Tt(_0xac7a9c,_0x3c9499,Tt(_0xac7a9c,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3c9499=function(_0x5b5adf){const _0x116f2b=_0x5b5adf['getFirstRange']();let _0x2e3969=_0x116f2b['start']['nodeAfter'];for(;_0x2e3969&&_0x116f2b['containsItem'](_0x2e3969);){if(_0x2e3969['getAttribute']('listIndent')>0x0)return!0x1;_0x2e3969=_0x2e3969['nextSibling'];}return!0x0;}(_0x461d0f)?Tt(_0xac7a9c,'*Format:*\x20remove\x20from\x20%0',Tt(_0xac7a9c,function(_0x5bca6b){return'ELEMENT_'+_0x5bca6b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x461d0f))):Tt(_0xac7a9c,'*Outdent:*\x20%0',Tt(_0xac7a9c,'ELEMENT_LIST_ITEM')),_0x3d6526={'type':'format','content':_0x3c9499};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4151cd['multipleBlocks']&&(_0x3c9499='*Merge:*\x20%0',_0x3d6526={'type':'deletion','content':Tt(_0xac7a9c,_0x3c9499,Tt(_0xac7a9c,'ELEMENT_LIST_ITEM'))});}return _0x3d6526;});}}function kt(_0x486c26){let _0xfb7c9d=_0x486c26['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0xfb7c9d;){const _0x519b06=_0xfb7c9d['getAttribute']('listItemId');if(!_0x519b06)return!0x1;if(_0x519b06==_0x486c26['data']['newValue'])return'newValue';if(_0x519b06==_0x486c26['data']['oldValue'])return'oldValue';_0xfb7c9d=_0xfb7c9d['previousSibling'];}return!0x1;}class TrackChangesDocumentListProperties extends _0x1b042a{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x54c496=this['editor']['config']['get']('list.properties'),_0x427d7d=this['editor']['plugins']['get']('TrackChangesEditing');_0x54c496['styles']&&_0x427d7d['enableDefaultAttributesIntegration']('listStyle'),_0x54c496['reversed']&&_0x427d7d['enableDefaultAttributesIntegration']('listReversed'),_0x54c496['startIndex']&&_0x427d7d['enableDefaultAttributesIntegration']('listStart');const _0x265ce6={'type':'format','content':''};_0x427d7d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x147ea4=this['editor']['locale'];_0x427d7d['descriptionFactory']['registerAttributeLabel']('listReversed',Tt(_0x147ea4,'FORMAT_LIST_REVERSED')),_0x427d7d['descriptionFactory']['registerDescriptionCallback'](_0x5bfcea=>{const {data:_0x5ce72e}=_0x5bfcea;if(_0x5ce72e&&'listReversed'==_0x5ce72e['key'])return null==_0x5ce72e['newValue']||0x0==_0x5ce72e['newValue']&&null==_0x5ce72e['oldValue']?_0x265ce6:void 0x0;}),_0x427d7d['descriptionFactory']['registerAttributeLabel']('listStart',Tt(_0x147ea4,'FORMAT_LIST_START')),_0x427d7d['descriptionFactory']['registerDescriptionCallback'](_0x35a547=>{const {data:_0x3c9a63}=_0x35a547;if(_0x3c9a63&&'listStart'==_0x3c9a63['key'])return null==_0x3c9a63['newValue']||0x1==_0x3c9a63['newValue']&&null==_0x3c9a63['oldValue']?_0x265ce6:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3c20d9=>{if(_0x3c20d9['batch']['isUndo'])return!0x1;let _0x150361=!0x1;const _0x15a8ae=_0x427d7d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f55d3=>{const _0x2bcd7b=_0x427d7d['_getAttributeKey'](_0x4f55d3);return'listStart'==_0x2bcd7b||'listReversed'==_0x2bcd7b;});for(const _0xd43173 of _0x15a8ae){const _0x17910f=_0xd43173['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x17910f||'customNumbered'==_0x17910f)continue;_0x427d7d['_findSuggestions'](_0xd43173['getFirstRange'](),'attribute')['find'](_0x327dd2=>'listType'==_0x427d7d['_getAttributeKey'](_0x327dd2['suggestion']))||(_0x3c20d9['removeMarker'](_0xd43173['getFirstMarker']()),_0x150361=!0x0);}return _0x150361;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4c0e1a){const _0x381f54=this['editor']['locale'],{data:_0x3326e1}=_0x4c0e1a,_0x6cbb81={'type':'format','content':''};if(!_0x3326e1||'listStyle'!=_0x3326e1['key'])return;if(!_0x3326e1['oldValue'])return'default'==_0x3326e1['newValue']?_0x6cbb81:{'type':'format','content':''+Tt(_0x381f54,'*Set\x20format:*\x20%0',Tt(_0x381f54,this['_getTranslationKeyForListStyle'](_0x3326e1['newValue'])))};if(!_0x3326e1['newValue']){if('default'==_0x3326e1['oldValue'])return _0x6cbb81;let _0x451f8a=_0x4c0e1a['head'];for(;_0x451f8a;){if(_0x451f8a['data']&&'listType'==_0x451f8a['data']['key']&&_0x451f8a['data']['newValue'])return _0x6cbb81;_0x451f8a=_0x451f8a['next'];}return{'type':'format','content':''+Tt(_0x381f54,'*Remove\x20format:*\x20%0',Tt(_0x381f54,this['_getTranslationKeyForListStyle'](_0x3326e1['oldValue'])))};}if('default'!=_0x3326e1['newValue'])return{'type':'format','content':''+Tt(_0x381f54,'*Set\x20format:*\x20%0',Tt(_0x381f54,this['_getTranslationKeyForListStyle'](_0x3326e1['newValue'])))};let _0x2c85f4=_0x4c0e1a['head'];for(;_0x2c85f4;){if(_0x2c85f4['data']&&'listType'==_0x2c85f4['data']['key']&&_0x2c85f4['data']['newValue']&&_0x2c85f4['data']['oldValue'])return _0x6cbb81;_0x2c85f4=_0x2c85f4['next'];}return{'type':'format','content':Tt(_0x381f54,'*Set\x20format:*\x20%0',Tt(_0x381f54,'ELEMENT_'+_0x4c0e1a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x391c5d=this['editor'],_0x208085=_0x391c5d['locale'];_0x391c5d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x186a33=>{if('formatBlock'!=_0x186a33['type'])return;const {data:_0x423919}=_0x186a33;if(!_0x423919)return;let _0x1b3c17,_0x115d2b;switch(_0x423919['commandName']){case'listStyle':_0x1b3c17='*Change\x20to:*\x20%0',_0x115d2b={'type':'format','content':Tt(_0x208085,_0x1b3c17,Tt(_0x208085,this['_getTranslationKeyForListStyle'](_0x423919['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1b3c17=_0x423919['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x115d2b={'type':'format','content':Tt(_0x208085,_0x1b3c17)};break;case'listStart':_0x1b3c17='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x115d2b={'type':'format','content':Tt(_0x208085,_0x1b3c17,_0x423919['commandParams'][0x0]['startIndex'])};}return _0x115d2b;});}['_getTranslationKeyForListStyle'](_0x561ad5){return'ELEMENT_'+function(_0x1b7aad){if(Lt['includes'](_0x1b7aad))return'bulleted';if(It['includes'](_0x1b7aad))return'numbered';return null;}(_0x561ad5)['toUpperCase']()+'_LIST_'+_0x561ad5['toUpperCase']()['replace'](/-/g,'_');}}const Lt=['disc','circle','square'],It=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class TrackChangesEmoji extends _0x1b042a{['afterInit'](){const _0x5efca0=this['editor'];_0x5efca0['commands']['get']('emoji')&&_0x5efca0['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class TrackChangesEnterCommand extends _0x1b042a{static get['requires'](){return[lt];}['init'](){const _0x57516e=this['editor'],_0x5dd592=_0x57516e['plugins']['get']('TrackChangesEditing'),_0x2d1f77=_0x57516e['commands']['get']('enter');_0x5dd592['enableCommand']('enter',()=>{_0x57516e['model']['change'](_0x4ad0c6=>{const _0x2f0c1d=_0x57516e['model']['document']['selection'],_0x2343cf=_0x2f0c1d['getFirstPosition'](),_0x584230=_0x4099e3['fromRange'](_0x2f0c1d['getFirstRange']());if(_0x2d1f77['enterBlock'](_0x4ad0c6)){const _0x405b88=_0x57516e['model']['createPositionAt'](_0x2343cf['parent']['nextSibling'],0x0),_0x52d7ef=_0x4ad0c6['createRange'](_0x2343cf,_0x405b88);_0x5dd592['markInsertion'](_0x52d7ef);}else _0x4ad0c6['setSelection'](_0x4ad0c6['createRange'](_0x584230['end']));_0x584230['detach'](),_0x2d1f77['fire']('afterExecute',{'writer':_0x4ad0c6});});});}}class TrackChangesFindAndReplace extends _0x1b042a{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x53c14e=this['editor']['plugins']['get']('TrackChangesEditing');_0x53c14e['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x53c14e['enableCommand']('findNext'),_0x53c14e['enableCommand']('findPrevious'),_0x53c14e['enableCommand']('replace'),_0x53c14e['enableCommand']('replaceAll');}['handleFindCommand'](_0x3de635,_0x7ae2eb,_0x2e9b3d={}){const _0x2f0d2c=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3de635(_0x211f24=>{let _0xae3f=('string'==typeof _0x7ae2eb?_0x2f0d2c['findByTextCallback'](_0x7ae2eb,_0x2e9b3d):_0x7ae2eb)(_0x211f24);Array['isArray'](_0xae3f)&&(_0xae3f={'results':_0xae3f,'searchText':'string'==typeof _0x7ae2eb?_0x7ae2eb:''});const _0x3b7ee3=_0xae3f['results']['filter'](_0x1eccfc=>!0x1===this['_isInDeletionRange'](_0x1eccfc,_0x211f24['item']));return{..._0xae3f,'results':_0x3b7ee3};},_0x2e9b3d);}['_isInDeletionRange'](_0x1dccff,_0x1a801b){const _0xf01f90=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1a801b,_0x1dccff['start']),this['editor']['model']['createPositionAt'](_0x1a801b,_0x1dccff['end']));for(const _0x8a86e1 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xf01f90['getIntersection'](_0x8a86e1['getRange']()))return!0x0;return!0x1;}}const bt=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class TrackChangesFont extends _0x1b042a{['afterInit'](){const _0x426b57=this['editor']['locale'],_0x412b04=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2b3ed3,commandName:_0x4245b5}of bt)this['editor']['plugins']['has'](_0x2b3ed3)&&_0x412b04['enableDefaultAttributesIntegration'](_0x4245b5);_0x412b04['descriptionFactory']['registerAttributeLabel']('fontSize',Tt(_0x426b57,'FORMAT_FONT_SIZE')),_0x412b04['descriptionFactory']['registerAttributeLabel']('fontFamily',Tt(_0x426b57,'FORMAT_FONT_FAMILY')),_0x412b04['descriptionFactory']['registerAttributeLabel']('fontColor',Tt(_0x426b57,'FORMAT_FONT_COLOR')),_0x412b04['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Tt(_0x426b57,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13af1a=this['editor'],_0x2f1f2f=_0x13af1a['locale'];_0x13af1a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29dc2d=>{const _0x4f446a=_0x2f1f2f['t'];if('formatInline'!=_0x29dc2d['type'])return;const {data:_0x195418}=_0x29dc2d;if(null!=_0x195418){if('fontSize'==_0x195418['commandName']){const _0x46e268=_0x195418['commandParams'][0x0]['value'];if(_0x46e268){const _0x269e45=_0x4f446a(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x201757=>_0x201757['model']==_0x46e268)['title'])['toLowerCase']();return{'type':'format','content':Tt(_0x2f1f2f,'*Set\x20font\x20size:*\x20%0',_0x269e45)};}return{'type':'format','content':Tt(_0x2f1f2f,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x195418['commandName']){const _0x330d89=_0x195418['commandParams'][0x0]['value'];return _0x330d89?{'type':'format','content':Tt(_0x2f1f2f,'*Set\x20font\x20family:*\x20%0',_0x330d89)}:{'type':'format','content':Tt(_0x2f1f2f,'*Reset\x20font\x20family*')};}if('fontColor'==_0x195418['commandName']){const _0xb96245=_0x195418['commandParams'][0x0]['value'];if(_0xb96245){const _0x18a15e=_0x252336(this['editor']['config']['get']('fontColor.colors'))['find'](_0x16c245=>_0x16c245['model']==_0xb96245);let _0x1229ca=_0xb96245,_0x49822d='';return _0x18a15e&&(_0x1229ca=_0x18a15e['label'],_0x49822d=_0x4f446a(_0x1229ca)['toLowerCase']()),{'type':'format','content':Tt(_0x2f1f2f,'*Set\x20font\x20color:*\x20%0',_0x49822d)['trim'](),'color':{'value':_0xb96245,'title':_0x49822d||_0x1229ca}};}return{'type':'format','content':Tt(_0x2f1f2f,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x195418['commandName']){const _0x332b35=_0x195418['commandParams'][0x0]['value'];if(_0x332b35){const _0xd09402=_0x252336(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xaefcd1=>_0xaefcd1['model']==_0x332b35);let _0x7f3fb8=_0x332b35,_0xdb575b='';return _0xd09402&&(_0x7f3fb8=_0xd09402['label'],_0xdb575b=_0x4f446a(_0x7f3fb8)['toLowerCase']()),{'type':'format','content':Tt(_0x2f1f2f,'*Set\x20font\x20background\x20color:*\x20%0',_0xdb575b)['trim'](),'color':{'value':_0x332b35,'title':_0xdb575b||_0x7f3fb8}};}return{'type':'format','content':Tt(_0x2f1f2f,'*Reset\x20font\x20background\x20color*')};}}});}}class TrackChangesFootnotes extends _0x1b042a{['afterInit'](){const {plugins:_0x749ac1}=this['editor'];_0x749ac1['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x749ac1['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x1cc4c9,plugins:_0x410a19,commands:_0x55bf5d}=this['editor'],_0x5e88dd=_0x410a19['get']('TrackChangesEditing');_0x55bf5d['get']('footnotesStyle')&&_0x5e88dd['enableDefaultAttributesIntegration']('footnotesStyle'),_0x55bf5d['get']('footnotesStart')&&_0x5e88dd['enableDefaultAttributesIntegration']('footnotesStart'),_0x5e88dd['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Tt(_0x1cc4c9,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x5e88dd['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Tt(_0x1cc4c9,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x5171f6=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x225136,commands:_0x5f1b06}=this['editor'];_0x5f1b06['get']('insertFootnote')&&_0x5171f6['enableCommand']('insertFootnote'),_0x5171f6['descriptionFactory']['registerElementLabel']('footnoteRef',_0x2095f2=>Tt(_0x225136,'ELEMENT_FOOTNOTE_REF',_0x2095f2)),_0x5171f6['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x43aa4f=>Tt(_0x225136,'ELEMENT_FOOTNOTE_DEFINITION',_0x43aa4f)),_0x5171f6['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x34bc07=>Tt(_0x225136,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x34bc07));}}class TrackChangesFormatPainter extends _0x1b042a{['afterInit'](){const _0x4ae424=this['editor'],_0x13af8f=_0x4ae424['plugins']['get']('TrackChangesEditing'),_0x1e513b=_0x4ae424['commands']['get']('copyFormat'),_0x4612b1=_0x4ae424['commands']['get']('pasteFormat');_0x1e513b&&_0x4612b1&&(_0x13af8f['enableDefaultAttributesIntegration']('pasteFormat'),_0x13af8f['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x47fa30=this['editor'],_0x11392f=_0x47fa30['locale'];_0x47fa30['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b8e90=>{if('formatBlock'!=_0x3b8e90['type']&&'formatInline'!=_0x3b8e90['type'])return;const {data:_0x53a459}=_0x3b8e90;if(_0x53a459&&'pasteFormat'===_0x53a459['commandName']){const _0x274d2d=[],_0x75e6e6=_0x53a459['commandParams'][0x0];for(const [_0x264114,_0x17d99b]of Object['entries'](_0x75e6e6))_0x274d2d['push'](At(_0x47fa30,_0x264114,_0x17d99b));return _0x274d2d['length']?{'type':'format','content':Tt(_0x11392f,'*Set\x20format\x20to:*\x20%0',_0x274d2d['join'](',\x20'))}:{'type':'format','content':Tt(_0x11392f,'*Remove\x20all\x20formatting*')};}});}}function At(_0x42adf4,_0x28dc8f,_0x227cb1){const _0x4651b8=_0x42adf4['locale']['t'],_0x4f4ab8=_0x28dc8f['split'](/(?=[A-Z])/)['join']('\x20'),_0x2800fc=_0x4651b8(_0x4f4ab8['charAt'](0x0)['toUpperCase']()+_0x4f4ab8['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x227cb1)return _0x2800fc;if('fontColor'===_0x28dc8f||'fontBackgroundColor'===_0x28dc8f){const _0x12b0cb=_0x252336(_0x42adf4['config']['get']('fontColor.colors'))['find'](_0x318aa3=>_0x318aa3['model']==_0x227cb1);return _0x2800fc+'\x20('+(_0x12b0cb?_0x4651b8(_0x12b0cb['label'])['toLowerCase']():_0x227cb1)+')';}if('fontSize'===_0x28dc8f&&isNaN(parseFloat(_0x227cb1))){const _0x248148=_0x42adf4['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x42adf4['config']['get']('fontSize.options'))['find'](_0x15e608=>_0x15e608['model']==_0x227cb1);return _0x2800fc+'\x20('+(_0x248148?_0x4651b8(_0x248148['title'])['toLowerCase']():_0x227cb1)+')';}return _0x2800fc+'\x20('+_0x227cb1+')';}class TrackChangesHeading extends _0x1b042a{['_headingOptions'];['afterInit'](){const _0x13dcd9=this['editor'];if(!_0x13dcd9['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x13dcd9['config']['get']('heading.options');const _0x3a04b7=_0x13dcd9['locale'],_0x464878=_0x13dcd9['plugins']['get']('TrackChangesEditing');_0x464878['enableDefaultAttributesIntegration']('heading');for(const _0x31a0a1 of this['_headingOptions'])'paragraph'!=_0x31a0a1['model']&&_0x464878['descriptionFactory']['registerElementLabel'](_0x31a0a1['model'],_0x13dc03=>{const _0x4fbfd3=this['_getHeadingLevel'](_0x31a0a1['model']);return null!==_0x4fbfd3?_0x20144e(_0x13dc03,_0x4fbfd3):_0x3da08d(_0x13dc03,_0x31a0a1['title']);});function _0x20144e(_0x5dcf52,_0x66fedc){return Tt(_0x3a04b7,'ELEMENT_HEADING',[_0x5dcf52,_0x66fedc]);}function _0x3da08d(_0x376ce5,_0x5594cf){return Tt(_0x3a04b7,'ELEMENT_HEADING_CUSTOM',[_0x376ce5,_0x5594cf]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13eebc=this['editor'],_0x49d46d=_0x13eebc['locale'];function _0x3c36fd(_0x2e35e3,_0x48ffb2){return Tt(_0x49d46d,'ELEMENT_HEADING_CUSTOM',[_0x2e35e3,_0x48ffb2]);}_0x13eebc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x61d376=>{if('formatBlock'!=_0x61d376['type'])return;const {data:_0x2ba2d4}=_0x61d376;if(_0x2ba2d4&&'heading'==_0x2ba2d4['commandName']){const _0x5de634=_0x2ba2d4['commandParams'][0x0]['value'],_0x412cf2=this['_getHeadingLevel'](_0x5de634);if(null!==_0x412cf2)return{'type':'format','content':Tt(_0x49d46d,'*Change\x20to:*\x20%0',(_0x284863=0x1,_0x4b5e9c=_0x412cf2,Tt(_0x49d46d,'ELEMENT_HEADING',[_0x284863,_0x4b5e9c])))};const _0xbd7acf=this['_headingOptions']['find'](_0x5162f3=>_0x5162f3['model']===_0x5de634)['title'];return{'type':'format','content':Tt(_0x49d46d,'*Change\x20to:*\x20%0',_0x3c36fd(0x1,_0xbd7acf))};}var _0x284863,_0x4b5e9c;});}['_getHeadingLevel'](_0x52926d){const _0x3a973b=_0x52926d['match'](/^heading(\d+)/);if(_0x3a973b)return _0x3a973b[0x1];const _0x313194=this['_headingOptions']?.['find'](_0x54e765=>_0x54e765['model']==_0x52926d);if(_0x313194&&_0x313194['view']){const _0x44f5d4=_0x313194['view'],_0x4ce7cb=(_0x44f5d4['name']??_0x44f5d4)['match'](/^h(\d+)/);if(_0x4ce7cb)return _0x4ce7cb[0x1];}return null;}}class TrackChangesHighlight extends _0x1b042a{['afterInit'](){const _0x2b67ad=this['editor'];if(!_0x2b67ad['plugins']['has']('HighlightEditing'))return;const _0x1620a2=_0x2b67ad['plugins']['get']('TrackChangesEditing'),_0x2be853=_0x2b67ad['locale'];_0x1620a2['enableDefaultAttributesIntegration']('highlight'),_0x1620a2['descriptionFactory']['registerAttributeLabel']('highlight',Tt(_0x2be853,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32dc2e=this['editor'],_0x45a0cf=_0x32dc2e['locale'];_0x32dc2e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x428fec=>{if('formatInline'!=_0x428fec['type'])return;const {data:_0x52abee}=_0x428fec;if(_0x52abee&&'highlight'==_0x52abee['commandName']){const _0x5d5888=_0x45a0cf['t'],_0x329ef8=_0x52abee['commandParams'][0x0]['value'];if(_0x329ef8){const _0x28b54b=_0x32dc2e['config']['get']('highlight.options')['find'](_0x56e01d=>_0x56e01d['model']==_0x329ef8),_0x2f12d5=_0x5d5888(_0x28b54b['title'])['toLowerCase']();return{'type':'format','content':Tt(_0x45a0cf,'*Set\x20highlight:*\x20%0',_0x2f12d5),'color':{'value':_0x28b54b['color'],'title':_0x28b54b['title']}};}return{'type':'format','content':Tt(_0x45a0cf,'*Remove\x20highlight*',Tt(_0x45a0cf,'FORMAT_HIGHLIGHT'))};}});}}class TrackChangesHorizontalLine extends _0x1b042a{['afterInit'](){const _0x3d78e1=this['editor'];if(!_0x3d78e1['plugins']['has']('HorizontalLineEditing'))return;_0x3d78e1['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3be4b1=_0x3d78e1['plugins']['get']('TrackChangesEditing'),_0x3a33e9=_0x3d78e1['locale'];_0x3be4b1['descriptionFactory']['registerElementLabel']('horizontalLine',_0x521007=>Tt(_0x3a33e9,'ELEMENT_HORIZONTAL_LINE',_0x521007));}}class TrackChangesHtmlEmbed extends _0x1b042a{['afterInit'](){const _0x4a5ad4=this['editor'];if(!_0x4a5ad4['plugins']['has']('HtmlEmbed'))return;const _0x5e5279=_0x4a5ad4['plugins']['get']('TrackChangesEditing'),_0x33253b=_0x4a5ad4['locale'];_0x5e5279['descriptionFactory']['registerElementLabel']('rawHtml',_0x3003fa=>Tt(_0x33253b,'ELEMENT_HTML_EMBED',_0x3003fa)),_0x5e5279['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5e5279['descriptionFactory']['registerDescriptionCallback'](_0x527273=>{if('attribute'!=_0x527273['type'])return;const {data:_0xe562b7}=_0x527273;if(_0xe562b7&&'value'==_0xe562b7['key']&&_0x527273['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x20a86d=Tt(_0x33253b,'ELEMENT_HTML_EMBED');return{'type':'format','content':Tt(_0x33253b,'*Change\x20%0\x20content*',_0x20a86d)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x108c9c=this['editor'],_0x17cfb7=_0x108c9c['locale'];_0x108c9c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20c61c=>{if('formatBlock'!=_0x20c61c['type'])return;const {data:_0x63eef8}=_0x20c61c;if(_0x63eef8&&'htmlEmbed'==_0x63eef8['commandName']){const _0x512bb1=Tt(_0x17cfb7,'ELEMENT_HTML_EMBED');return{'type':'format','content':Tt(_0x17cfb7,'*Change\x20%0\x20content*',_0x512bb1)};}});}}class TrackChangesImage extends _0x1b042a{['afterInit'](){const _0x412e8e=this['editor'];if(!_0x412e8e['plugins']['has']('ImageEditing'))return;const _0x3283e0=_0x412e8e['plugins']['get']('TrackChangesEditing'),_0x57ee57=_0x412e8e['plugins']['get']('ImageUtils'),_0x46e8cb=_0x412e8e['locale'];_0x3283e0['enableCommand']('insertImage'),_0x3283e0['descriptionFactory']['registerElementLabel']('imageBlock',_0x45f189=>Tt(_0x46e8cb,'ELEMENT_IMAGE',_0x45f189)),_0x3283e0['descriptionFactory']['registerElementLabel']('imageInline',_0x21ab33=>Tt(_0x46e8cb,'ELEMENT_INLINE_IMAGE',_0x21ab33)),_0x3283e0['descriptionFactory']['registerElementLabel']('caption',()=>Tt(_0x46e8cb,'ELEMENT_CAPTION')),_0x412e8e['plugins']['has']('ImageUploadEditing')&&_0x3283e0['enableCommand']('uploadImage'),_0x412e8e['plugins']['has']('ImageBlockEditing')&&_0x412e8e['plugins']['has']('ImageInlineEditing')&&(_0x3283e0['enableCommand']('imageTypeInline',(_0x101307,_0x49b9be)=>{const _0xa5b2c4=_0x57ee57['getClosestSelectedImageElement'](_0x412e8e['model']['document']['selection']);_0x412e8e['model']['change'](()=>{_0x3283e0['markBlockFormat'](_0xa5b2c4,{'commandName':'imageTypeInline','commandParams':[_0x49b9be]},[],'convertBlockImageToInline');});}),_0x3283e0['enableCommand']('imageTypeBlock',(_0x3f3e2a,_0x725e95)=>{_0x412e8e['model']['change'](_0x458297=>{let _0x949df9=_0x57ee57['getClosestSelectedImageElement'](_0x412e8e['model']['document']['selection']),_0x3c9472=_0x458297['createRangeOn'](_0x949df9);const _0x43985f=tt['fromPosition'](_0x3c9472['start'],'toPrevious'),_0x10e056=tt['fromPosition'](_0x3c9472['end'],'toNext');_0x3283e0['forceDefaultExecution'](()=>_0x3f3e2a(_0x725e95)),_0x949df9=_0x57ee57['getClosestSelectedImageElement'](_0x412e8e['model']['document']['selection']),_0x3c9472=_0x458297['createRangeOn'](_0x949df9);const _0x6a5258=_0x458297['createRange'](_0x43985f,_0x10e056);_0x43985f['detach'](),_0x10e056['detach'](),_0x3283e0['markBlockFormat'](_0x949df9,{'commandName':'imageTypeInline','commandParams':[_0x725e95]},[],'convertInlineImageToBlock'),_0x6a5258['start']['isBefore'](_0x3c9472['start'])&&_0x3283e0['markInsertion'](_0x458297['createRange'](_0x6a5258['start'],_0x3c9472['start']),'convertInlineImageToBlock'),_0x3c9472['end']['isBefore'](_0x6a5258['end'])&&_0x3283e0['markInsertion'](_0x458297['createRange'](_0x3c9472['end'],_0x6a5258['end']),'convertInlineImageToBlock');});}),_0x3283e0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3283e0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3283e0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3283e0['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3283e0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3283e0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xdf4658])=>{const _0x3413c8=_0x3283e0['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x25d415=_0xdf4658['start'],_0xc1ea70=_0xdf4658['end'];const _0x2f56e3=_0x412e8e['model']['schema']['getNearestSelectionRange'](_0x25d415,'backward'),_0x586bea=_0x412e8e['model']['schema']['getNearestSelectionRange'](_0xc1ea70,'forward');_0x2f56e3['isCollapsed']&&(_0x25d415=_0x2f56e3['start']),_0x586bea['isCollapsed']&&(_0xc1ea70=_0x586bea['end']),_0x3413c8([_0x412e8e['model']['createRange'](_0x25d415,_0xc1ea70)]);}),_0x3283e0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x18976b),_0x3283e0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x18976b)),_0x412e8e['plugins']['has']('ImageCaptionEditing')&&(_0x3283e0['enableCommand']('toggleImageCaption',(_0x2f32d7,_0x536c89)=>{const _0x4efb00=_0x412e8e['plugins']['get']('ImageCaptionUtils');let _0xecb760=_0x57ee57['getClosestSelectedImageElement'](_0x412e8e['model']['document']['selection']),_0x37c75d=_0x4efb00['getCaptionFromImageModelElement'](_0xecb760);_0x412e8e['model']['change'](()=>{if(_0x37c75d)return void _0x3283e0['markDeletion'](_0x412e8e['model']['createRangeOn'](_0x37c75d));const _0x4b0a1=_0x57ee57['isBlockImage'](_0xecb760);_0x2f32d7(_0x536c89),_0xecb760=_0x57ee57['getClosestSelectedImageElement'](_0x412e8e['model']['document']['selection']),_0x37c75d=_0x4efb00['getCaptionFromImageModelElement'](_0xecb760),_0x3283e0['markInsertion'](_0x412e8e['model']['createRangeOn'](_0x37c75d),_0x4b0a1?null:'imageCaption');});}),_0x3283e0['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x18976b));const _0x296a82=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x47ff40(_0x3fa751,_0x52b6a2){const _0x5b417a=_0x296a82['findIndex'](({type:_0x14e6b8,subType:_0x102990})=>_0x3fa751['type']==_0x14e6b8&&_0x3fa751['subType']==_0x102990),_0x407fb2=_0x296a82['findIndex'](({type:_0x31fd36,subType:_0x1eae60})=>_0x52b6a2['type']==_0x31fd36&&_0x52b6a2['subType']==_0x1eae60);if(_0x5b417a<0x0||_0x407fb2<0x0)return!0x1;const _0x2aded1=_0x3fa751['getFirstRange'](),_0x5a1d3d=_0x52b6a2['getFirstRange']();if((0x0==_0x5b417a||0x1==_0x5b417a)&&0x2==_0x407fb2&&_0x2aded1['isIntersecting'](_0x5a1d3d))return!0x0;if(0x2==_0x5b417a&&0x3==_0x407fb2){const _0x213dbc=_0x3283e0['_findSuggestions'](_0x2aded1,'insertion')['filter'](({suggestion:_0x654a56,meta:_0x1861ac})=>_0x1861ac['isOwn']&&'convertInlineImageToBlock'==_0x654a56['subType']);if(_0x213dbc['length']>0x1&&_0x5a1d3d['end']['isEqual'](_0x2aded1['start']))return!0x0;if(0x1==_0x213dbc['length']&&(_0x2aded1['start']['isEqual'](_0x5a1d3d['end'])||_0x2aded1['end']['isEqual'](_0x5a1d3d['start'])))return!0x0;}if(0x3==_0x5b417a&&0x3==_0x407fb2&&_0x2aded1['start']['isBefore'](_0x5a1d3d['start'])){const _0x55ae51=_0x2aded1['end']['nodeAfter'],_0x24d03d=_0x5a1d3d['start']['nodeBefore'];return _0x57ee57['isBlockImage'](_0x55ae51)&&_0x55ae51===_0x24d03d;}return!0x1;}function _0x18976b(_0x1ace0b,_0x3effd6){return _0x47ff40(_0x1ace0b,_0x3effd6)?[_0x1ace0b,_0x3effd6]:_0x47ff40(_0x3effd6,_0x1ace0b)?[_0x3effd6,_0x1ace0b]:null;}_0x412e8e['plugins']['has']('ImageResize')&&(_0x3283e0['enableDefaultAttributesIntegration']('resizeImage'),_0x3283e0['descriptionFactory']['registerAttributeLabel']('resizedWidth',Tt(_0x46e8cb,'FORMAT_IMAGE_SIZE'))),_0x412e8e['plugins']['has']('ImageTextAlternativeEditing')&&_0x3283e0['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x412e8e['plugins']['has']('PictureEditing')&&_0x3283e0['descriptionFactory']['registerDescriptionCallback'](_0x1ca537=>{if('attribute'!=_0x1ca537['type'])return;const {data:_0x5363d4}=_0x1ca537;return _0x5363d4&&'sources'==_0x5363d4['key']?{'type':'format','content':''}:void 0x0;}),_0x412e8e['plugins']['has']('ImageSizeAttributes')&&_0x3283e0['descriptionFactory']['registerDescriptionCallback'](_0x40b114=>{if('attribute'!=_0x40b114['type'])return;const {data:_0x252bc0}=_0x40b114;return!_0x252bc0||'width'!=_0x252bc0['key']&&'height'!=_0x252bc0['key']?void 0x0:{'type':'format','content':''};}),_0x3283e0['descriptionFactory']['registerDescriptionCallback'](_0x505443=>{if(!!_0x296a82['find'](({type:_0x450ca5,subType:_0x5cc51e})=>_0x505443['type']==_0x450ca5&&_0x505443['subType']==_0x5cc51e))return _0x505443['previous']?{}:void 0x0;}),_0x3283e0['descriptionFactory']['registerDescriptionCallback'](_0x5c72b9=>{if('insertion'==_0x5c72b9['type']||'deletion'==_0x5c72b9['type']){const _0x5a5b3f=_0x5c72b9['getContainedElement']();if(_0x5a5b3f&&_0x5a5b3f['is']('element','caption'))return{'type':'insertion'==_0x5c72b9['type']?'addObject':'removeObject','element':_0x5a5b3f,'quantity':0x1};}}),_0x3283e0['descriptionFactory']['registerDescriptionCallback'](_0x5942df=>'formatBlock'==_0x5942df['type']&&'convertInlineImageToBlock'==_0x5942df['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5942df['type']&&'convertBlockImageToInline'==_0x5942df['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3283e0['descriptionFactory']['registerDescriptionCallback'](_0x5090b4=>{if('attribute'!=_0x5090b4['type'])return;const {data:_0x2369e6}=_0x5090b4;if(!_0x2369e6||'alt'!=_0x2369e6['key'])return;const _0x2a6afc=_0x2369e6['newValue'];return _0x2a6afc?{'type':'format','content':Tt(_0x46e8cb,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2a6afc+'\x22')}:{'type':'format','content':Tt(_0x46e8cb,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34a00a=this['editor'],_0x44ed21=_0x34a00a['locale'];_0x34a00a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe2fce9=>{if('formatBlock'!=_0xe2fce9['type']&&'formatInline'!=_0xe2fce9['type'])return;const {data:_0x2470e2}=_0xe2fce9;if(_0x2470e2){if('imageTextAlternative'==_0x2470e2['commandName']){const _0x5af494=_0x2470e2['commandParams'][0x0]['newValue'];return _0x5af494?{'type':'format','content':Tt(_0x44ed21,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5af494+'\x22')}:{'type':'format','content':Tt(_0x44ed21,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2470e2['commandName']){const _0x106c14=_0x2470e2['commandParams'][0x0]['width'];return _0x106c14?{'type':'format','content':Tt(_0x44ed21,'*Set\x20image\x20width:*\x20%0',_0x106c14)}:{'type':'format','content':Tt(_0x44ed21,'*Reset\x20image\x20width*')};}}});}}class TrackChangesImageReplace extends _0x1b042a{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1edd02=this['editor']['locale'],_0x1c6acd=this['editor']['plugins']['get']('TrackChangesEditing');_0x1c6acd['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1c6acd['descriptionFactory']['registerDescriptionCallback'](_0x82e191=>{if('attribute'!=_0x82e191['type'])return;const {data:_0x5de026}=_0x82e191;return _0x5de026&&'src'==_0x5de026['key']?_0x5de026['newValue']&&_0x5de026['oldValue']?{'type':'format','content':Tt(_0x1edd02,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3d1bb9=this['editor']['plugins']['get']('TrackChangesEditing');_0x3d1bb9['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3d1bb9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3d1bb9['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3d1bb9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x391327=this['editor'],_0x19ed8c=_0x391327['locale'];_0x391327['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29991f=>{if('formatBlock'!=_0x29991f['type']&&'formatInline'!=_0x29991f['type'])return;const {data:_0x20d47d}=_0x29991f;if(!_0x20d47d||'replaceImageSource'!=_0x20d47d['commandName'])return;return{'type':'format','content':Tt(_0x19ed8c,'*Format:*\x20replace\x20image\x20URL')};});}}class TrackChangesImageStyle extends _0x1b042a{['afterInit'](){const _0xe4a27d=this['editor'];if(!_0xe4a27d['plugins']['has']('ImageStyleEditing'))return;const _0x599976=_0xe4a27d['plugins']['get']('TrackChangesEditing'),_0x485893=_0xe4a27d['plugins']['get']('ImageUtils'),_0x37e378={};_0x599976['enableCommand']('imageStyle',(_0x368d6c,_0x424c88)=>{const _0x18f7d5=_0xe4a27d['plugins']['get']('Users')['me'],_0x17b6d0=_0xe4a27d['commands']['get']('imageStyle');let _0x3f452b=_0x485893['getClosestSelectedImageElement'](_0xe4a27d['model']['document']['selection']),_0x4f0755=_0xe4a27d['model']['createRangeOn'](_0x3f452b),_0x1c6214=_0x17b6d0['value'];if(_0x1c6214==_0x424c88['value'])return;const _0x52414e={'commandName':'imageStyle','commandParams':[_0x424c88],'formatGroupId':_0x2375fd()};_0xe4a27d['model']['change'](()=>{if(_0x599976['getSuggestions']()['filter'](_0x532d91=>_0x532d91['isInContent']&&_0x18f7d5==_0x532d91['author']&&('formatBlock'==_0x532d91['type']||'formatInline'==_0x532d91['type'])&&('imageStylePreApply'==_0x532d91['subType']||'imageStylePostApply'==_0x532d91['subType'])&&_0x532d91['getFirstRange']()['isEqual'](_0x4f0755))['forEach'](_0x361dde=>_0x599976['discardSuggestion'](_0x361dde['head'])),_0x3f452b=_0x485893['getClosestSelectedImageElement'](_0xe4a27d['model']['document']['selection']),_0x4f0755=_0xe4a27d['model']['createRangeOn'](_0x3f452b),_0x17b6d0['refresh'](),_0xe4a27d['commands']['get']('imageTypeInline')['refresh'](),_0xe4a27d['commands']['get']('imageTypeBlock')['refresh'](),_0x1c6214=_0x17b6d0['value'],_0x1c6214!=_0x424c88['value'])return _0x485893['isInlineImage'](_0x3f452b)&&_0x17b6d0['shouldConvertImageType'](_0x424c88['value'],_0x3f452b)?(_0x368d6c({..._0x424c88,'setImageSizes':!0x1}),_0x3f452b=_0x485893['getClosestSelectedImageElement'](_0xe4a27d['model']['document']['selection']),void _0x599976['markBlockFormat'](_0x3f452b,{..._0x52414e,'commandReversedParams':[{'value':_0x1c6214||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x485893['isBlockImage'](_0x3f452b)?_0x599976['markBlockFormat'](_0x3f452b,_0x52414e,[],'imageStylePostApply'):_0x599976['markInlineFormat'](_0x4f0755,_0x52414e,'imageStylePostApply'));});});for(const _0x2b0a10 of _0xe4a27d['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x37e378[_0x2b0a10['name']]=_0x2b0a10['title']['toLowerCase']();_0x599976['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x599976['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x599976['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x599976['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x271fe5])=>{_0x485893['setImageNaturalSizeAttributes'](_0x271fe5['getContainedElement']());}),_0x599976['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x55adcf,_0x14f6b6)=>{_0x599976['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x55adcf,{'commandName':_0x14f6b6['commandName'],'commandParams':_0x14f6b6['commandReversedParams']});}),_0x599976['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5a7511,_0x211f15){if(_0xdd2b7b(_0x5a7511,_0x211f15))return[_0x5a7511,_0x211f15];if(_0xdd2b7b(_0x211f15,_0x5a7511))return[_0x211f15,_0x5a7511];return null;});const _0x1b297e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xdd2b7b(_0x4a8519,_0x2ac985){const _0x35f8d4=_0x1b297e['findIndex'](({type:_0x4469d6,subType:_0x3c465b})=>_0x4a8519['type']==_0x4469d6&&_0x4a8519['subType']==_0x3c465b),_0x5b8e63=_0x1b297e['findIndex'](({type:_0x6d205f,subType:_0x25a1e2})=>_0x2ac985['type']==_0x6d205f&&_0x2ac985['subType']==_0x25a1e2);if(_0x35f8d4<0x0||_0x5b8e63<0x0)return!0x1;const _0x571dff=_0x4a8519['getFirstRange'](),_0x86bd9c=_0x2ac985['getFirstRange']();if((0x0==_0x35f8d4||0x1==_0x35f8d4)&&0x2==_0x5b8e63&&_0x571dff['isIntersecting'](_0x86bd9c))return!0x0;if(0x2==_0x35f8d4&&0x3==_0x5b8e63){const _0x34786c=_0x599976['_findSuggestions'](_0x571dff,'insertion')['filter'](({suggestion:_0x75e1b0,meta:_0x2d713c})=>_0x2d713c['isOwn']&&'convertInlineImageToBlock'==_0x75e1b0['subType']);if(_0x34786c['length']>0x1&&_0x86bd9c['end']['isEqual'](_0x571dff['start']))return!0x0;if(0x1==_0x34786c['length']&&(_0x571dff['start']['isEqual'](_0x86bd9c['end'])||_0x571dff['end']['isEqual'](_0x86bd9c['start'])))return!0x0;}if(0x3==_0x35f8d4&&0x3==_0x5b8e63&&_0x571dff['start']['isBefore'](_0x86bd9c['start'])){const _0x323fc6=_0x571dff['end']['nodeAfter'],_0x27aead=_0x86bd9c['start']['nodeBefore'];return _0x485893['isBlockImage'](_0x323fc6)&&_0x323fc6===_0x27aead;}return!0x1;}_0xe4a27d['model']['document']['registerPostFixer'](()=>{let _0x3ad620=!0x1;const _0x16433f=Array['from'](_0xe4a27d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xad2647,data:_0x319605}of _0x16433f){const {group:_0x19917a,type:_0xe7cc3a,subType:_0x35692e,id:_0x40fe2d}=_0x11d9f0(_0xad2647);if('suggestion'==_0x19917a&&_0x599976['hasSuggestion'](_0x40fe2d)){if('formatBlock'==_0xe7cc3a&&('imageStylePreApply'==_0x35692e||'imageStylePostApply'==_0x35692e)){const _0xc18237=_0x599976['getSuggestion'](_0x40fe2d);if(_0x319605['newRange']){const _0x4f207c=_0xc18237['getFirstRange']()['getContainedElement']();if(_0x485893['isBlockImage'](_0x4f207c))continue;_0x599976['discardSuggestion'](_0xc18237),_0x3ad620=!0x0;}}if('insertion'==_0xe7cc3a&&'imageCaption'==_0x35692e&&!_0x319605['newRange']){const _0x508590=_0x599976['getSuggestion'](_0x40fe2d);_0x508590['next']&&_0x508590['next']['isInContent']&&(_0x599976['discardSuggestion'](_0x508590['next']),_0x3ad620=!0x0);}}}return _0x3ad620;}),this['_registerLegacyDescription'](_0x37e378);}['_registerLegacyDescription'](_0x532c01){const _0x1dc4d9=this['editor'],_0x462eaa=_0x1dc4d9['locale'];_0x1dc4d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d550e=>{if('formatBlock'!=_0x1d550e['type']&&'formatInline'!=_0x1d550e['type'])return;const {data:_0x34e302}=_0x1d550e;if(!_0x34e302||'imageStyle'!=_0x34e302['commandName'])return;const _0x367ea9=_0x34e302['commandParams'][0x0]['value'];return _0x299dae('side'===_0x367ea9?Tt(_0x462eaa,'FORMAT_SIDE_IMAGE'):_0x532c01[_0x367ea9]||_0x367ea9);function _0x299dae(_0x23395b){return{'type':'format','content':Tt(_0x462eaa,'*Format:*\x20%0',_0x23395b)};}});}}class TrackChangesImportWord extends _0x1b042a{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3a051b){super(_0x3a051b),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x72b1dc=this['editor'],_0x243d51=_0x72b1dc['commands']['get']('importWord'),_0x59829e=_0x72b1dc['commands']['get']('trackChanges');_0x243d51&&(_0x243d51['on']('execute',(_0x482650,[,_0x887f1])=>{this['_trackChangesValueDuringImport']=_0x59829e['value'],_0x887f1['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x243d51,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x243d51,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x59829e['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x72b1dc['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5181fc,_0x2b52c8){const {suggestions:_0x19c64d}=_0x2b52c8,_0x3a8ac2=this['editor']['commands']['get']('trackChanges'),_0x24c70b=_0x3a8ac2['value'];this['_trackChangesValueDuringImport']!==_0x24c70b&&(_0x3a8ac2['execute'](),this['_trackChangesExecuted']=!0x0),_0x19c64d&&_0x19c64d['forEach'](({id:_0xf0420c,type:_0x5bfa13,author:_0x13ba16,created_at:_0x5937a2})=>{const _0x4ebcdb={'id':_0xf0420c,'type':_0x5bfa13,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x13ba16,'createdAt':_0x5937a2?new Date(_0x5937a2):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4ebcdb);});}}class TrackChangesIndent extends _0x1b042a{['afterInit'](){const _0x46b245=this['editor'],_0xf3ba67=_0x46b245['plugins']['get']('TrackChangesEditing');if(_0x46b245['plugins']['has']('IndentEditing')&&(_0xf3ba67['enableCommand']('indent'),_0xf3ba67['enableCommand']('outdent')),_0x46b245['plugins']['has']('IndentBlock')){for(const _0x6eb534 of['indentBlock','outdentBlock'])_0xf3ba67['enableDefaultAttributesIntegration'](_0x6eb534);if(_0x46b245['plugins']['has']('ListEditing')){for(const _0x255e05 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0xf3ba67['enableDefaultAttributesIntegration'](_0x255e05);}}const _0x5c1633=_0x46b245['locale'];_0xf3ba67['descriptionFactory']['registerAttributeLabel']('blockIndent',Tt(_0x5c1633,'FORMAT_INDENT')),_0xf3ba67['descriptionFactory']['registerAttributeLabel']('blockIndentList',Tt(_0x5c1633,'FORMAT_INDENT')),_0xf3ba67['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Tt(_0x5c1633,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x530a09=this['editor'],_0x1478ae=_0x530a09['locale'],_0x40512f=_0x530a09['plugins']['get']('TrackChangesEditing');_0x40512f['descriptionFactory']['registerDescriptionCallback'](_0x3658a8=>{if('formatBlock'!=_0x3658a8['type'])return;const {data:_0x14d4cf}=_0x3658a8;if(!_0x14d4cf)return;if('indentBlock'!=_0x14d4cf['commandName']&&'outdentBlock'!=_0x14d4cf['commandName'])return;const _0x66baa5=_0x3658a8['getItems']()[0x0],_0x167784=_0x40512f['descriptionFactory']['getItemLabel'](_0x66baa5);return'indentBlock'==_0x14d4cf['commandName']?{'type':'format','content':Tt(_0x1478ae,'*Indent:*\x20%0',_0x167784)}:'outdentBlock'==_0x14d4cf['commandName']?{'type':'format','content':Tt(_0x1478ae,'*Outdent:*\x20%0',_0x167784)}:void 0x0;});}}class TrackChangesInputCommand extends _0x1b042a{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class TrackChangesLink extends _0x1b042a{['afterInit'](){const _0x370eb5=this['editor'];if(!_0x370eb5['plugins']['has']('LinkEditing'))return;const _0x431d23=_0x370eb5['plugins']['get']('TrackChangesEditing'),_0x179321=_0x370eb5['commands']['get']('link');_0x431d23['enableDefaultAttributesIntegration']('link'),_0x431d23['enableDefaultAttributesIntegration']('unlink');for(const _0x564139 of _0x179321['manualDecorators'])_0x431d23['descriptionFactory']['registerAttributeLabel'](_0x564139['id'],'link\x20('+_0x564139['label']['toLowerCase']()+')');_0x431d23['descriptionFactory']['registerDescriptionCallback'](_0x35bdc7=>{if('attribute'!=_0x35bdc7['type'])return;const {data:_0x30d634}=_0x35bdc7;if(!_0x30d634||'linkHref'!=_0x30d634['key'])return;const _0x5112a6=_0x30d634['newValue'],_0x1b9323=_0x370eb5['locale'];return{'type':'format','content':null==_0x5112a6?Tt(_0x1b9323,'*Remove\x20link*'):Tt(_0x1b9323,'*Set\x20link:*\x20%0','\x22'+_0x5112a6+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ae0a0=this['editor'],_0x56fc5a=_0x5ae0a0['locale'];_0x5ae0a0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x447c70=>{if('formatInline'!=_0x447c70['type'])return;const {data:_0x5d0a44}=_0x447c70;if(_0x5d0a44){if('link'==_0x5d0a44['commandName']){const _0x29e828=_0x5d0a44['commandParams'][0x0];return{'type':'format','content':Tt(_0x56fc5a,'*Set\x20link:*\x20%0','\x22'+_0x29e828+'\x22')};}return'unlink'==_0x5d0a44['commandName']?{'type':'format','content':Tt(_0x56fc5a,'*Remove\x20link*')}:void 0x0;}});}}class TrackChangesLegacyList extends _0x1b042a{['afterInit'](){const _0x172022=this['editor'],_0x44d483=_0x172022['locale'];if(!_0x172022['plugins']['has']('LegacyListEditing'))return;const _0x440ac4=_0x172022['plugins']['get']('TrackChangesEditing'),_0x57cb47=_0x172022['plugins']['has']('LegacyTodoListEditing');function _0x360bd3(_0x5e8d35){return()=>{const _0x1f529c=_0x172022['model']['document']['selection'],_0x2bbc03=_0x172022['commands']['get'](_0x5e8d35);if(_0x2bbc03['value'])return void _0x172022['execute']('paragraph',{});const _0x5a15ca=_0x5e8d35['slice'](0x0,-0x4),_0xdbc176=function(_0x51efc9,_0x54e6a0,_0x58452d){let _0x114ea7=Array['from'](_0x51efc9)['filter'](_0x3ab97f=>function(_0x4dd8f5,_0x3da606){return _0x3da606['checkChild'](_0x4dd8f5['parent'],'listItem')&&!_0x3da606['isObject'](_0x4dd8f5);}(_0x3ab97f,_0x58452d));_0x114ea7=_0x114ea7['filter'](_0xba1438=>!_0xba1438['is']('element','listItem')||_0xba1438['getAttribute']('listType')!=_0x54e6a0);const _0x4b5055=new Set();for(const _0xa5ecce of _0x114ea7)_0xa5ecce['is']('element','listItem')?_0x4b5055['add'](St(_0xa5ecce)):_0x4b5055['add'](_0xa5ecce);return Array['from'](_0x4b5055);}(_0x1f529c['getSelectedBlocks'](),_0x5a15ca,_0x172022['model']['schema']);_0x172022['model']['change'](()=>{for(const _0x2c748d of _0xdbc176)_0x440ac4['markBlockFormat'](_0x2c748d,{'commandName':_0x5e8d35,'commandParams':[{'forceValue':!_0x2bbc03['value']}],'formatGroupId':'blockName'},yt(_0x2c748d));});};}function _0x50bfaa(_0x3f2381){return()=>{const _0x5cefc1=function(_0x113d93){let _0x236991=Array['from'](_0x113d93);const _0xda1af5=_0x236991['findIndex'](_0x143b55=>'listItem'!=_0x143b55['name']);return _0xda1af5>-0x1&&(_0x236991=_0x236991['slice'](0x0,_0xda1af5)),_0x236991;}(_0x172022['model']['document']['selection']['getSelectedBlocks']()),_0x270248=_0x172022['model']['createRange'](_0x172022['model']['createPositionAt'](_0x5cefc1[0x0],'before'),_0x172022['model']['createPositionAt'](_0x5cefc1[_0x5cefc1['length']-0x1],'end'));_0x172022['model']['change'](()=>{_0x440ac4['markBlockFormat'](_0x270248,{'commandName':_0x3f2381,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3c5f44){const _0x32d8f9=new Set();for(const _0x247848 of _0x3c5f44){let _0x2d619d=_0x247848['nextSibling'];for(;_0x2d619d&&_0x2d619d['getAttribute']('listIndent')>_0x247848['getAttribute']('listIndent');)_0x32d8f9['add'](_0x2d619d),_0x2d619d=_0x2d619d['nextSibling'];}return Array['from'](_0x32d8f9);}(_0x5cefc1));});};}_0x440ac4['enableCommand']('numberedList',_0x360bd3('numberedList')),_0x440ac4['enableCommand']('bulletedList',_0x360bd3('bulletedList')),_0x57cb47&&_0x440ac4['enableCommand']('todoList',_0x360bd3('todoList')),_0x440ac4['enableCommand']('indentList',_0x50bfaa('indentList')),_0x440ac4['enableCommand']('outdentList',_0x50bfaa('outdentList')),_0x57cb47&&_0x440ac4['enableCommand']('checkTodoList',()=>{const _0x5e70ea=_0x172022['commands']['get']('checkTodoList'),_0x3c02e5=Array['from'](_0x5e70ea['_selectedElements']);_0x3c02e5['filter'](_0x13156f=>_0x13156f['getAttribute']('todoListChecked')!=_0x5e70ea['value']),_0x172022['model']['change'](()=>{for(const _0xe9c6b1 of _0x3c02e5)_0x440ac4['markBlockFormat'](_0xe9c6b1,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5e70ea['value']}]});});}),_0x440ac4['descriptionFactory']['registerElementLabel']('listItem',_0x27fe71=>Tt(_0x44d483,'ELEMENT_LIST_ITEM',_0x27fe71)),_0x440ac4['descriptionFactory']['registerDescriptionCallback'](_0x4f2dde=>{if('formatBlock'!=_0x4f2dde['type']&&'formatInline'!=_0x4f2dde['type'])return;const {data:_0x58d548}=_0x4f2dde;if(_0x58d548){if('numberedList'==_0x58d548['commandName']||'bulletedList'==_0x58d548['commandName']||'todoList'==_0x58d548['commandName'])switch(_0x58d548['commandName']['replace']('List','')){case'bulleted':return _0x832503(Tt(_0x44d483,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x832503(Tt(_0x44d483,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x832503(Tt(_0x44d483,'ELEMENT_TODO_LIST'));}if('indentList'==_0x58d548['commandName'])return{'type':'format','content':Tt(_0x44d483,'*Indent:*\x20%0',Tt(_0x44d483,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x58d548['commandName'])return{'type':'format','content':Tt(_0x44d483,'*Outdent:*\x20%0',Tt(_0x44d483,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x58d548['commandName'])return _0x58d548['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x44d483,'*Check\x20item*')}:{'type':'format','content':Tt(_0x44d483,'*Uncheck\x20item*')};}function _0x832503(_0x46897d){return{'type':'format','content':Tt(_0x44d483,'*Change\x20to:*\x20%0',_0x46897d)};}});}}function St(_0xf282d0){const _0x5a5e60=_0xf282d0['getAttribute']('listIndent');if(0x0==_0x5a5e60)return _0xf282d0;let _0x472df5=_0xf282d0;for(;_0xf282d0['previousSibling']&&_0xf282d0['previousSibling']['is']('element','listItem');){const _0x106d1d=_0xf282d0['previousSibling']['getAttribute']('listIndent');if(_0x106d1d==_0x5a5e60)_0x472df5=_0xf282d0['previousSibling'];else{if(_0x106d1d<_0x5a5e60)break;}_0xf282d0=_0xf282d0['previousSibling'];}return _0x472df5;}function yt(_0x598e01){const _0x22e354=[];if(_0x598e01['is']('element','listItem')&&_0x598e01['getAttribute']('listIndent')>0x0){let _0x16ae4f=_0x598e01['nextSibling'];for(;_0x16ae4f&&'listItem'==_0x16ae4f['name']&&_0x16ae4f['getAttribute']('listIndent')==_0x598e01['getAttribute']('listIndent');)_0x22e354['push'](_0x16ae4f),_0x16ae4f=_0x16ae4f['nextSibling'];}return _0x22e354;}class TrackChangesLegacyListProperties extends _0x1b042a{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x54c3b1=this['editor']['config']['get']('list.properties'),_0x901668=this['editor']['plugins']['get']('TrackChangesEditing');_0x54c3b1['styles']&&_0x901668['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x54c3b1['reversed']&&_0x901668['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x54c3b1['startIndex']&&_0x901668['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x901668['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x59c9d2,_0x2e63b9={}){const _0x1f4d4f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x265bd8=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1f4d4f['markMultiRangeBlockFormat'](_0x265bd8,{'commandName':'listStyle','commandParams':[{'type':_0x2e63b9['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x546a73,_0x23d1d5={}){const _0x221853=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4726db=this['_getSuggestionBlocks'](_0xf44b31=>_0xf44b31['is']('element','listItem')&&'numbered'===_0xf44b31['getAttribute']('listType'));if(_0x4726db['length']<0x1)return;const _0x2861db=_0x4726db['map'](_0x32147c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x32147c,'before'),this['editor']['model']['createPositionAt'](_0x32147c,0x0)));this['editor']['model']['change'](()=>{_0x221853['markMultiRangeBlockFormat'](_0x2861db,{'commandName':'listReversed','commandParams':[{'reversed':_0x23d1d5['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x39d25f,_0x3d4110={}){const _0x279d32=this['editor']['plugins']['get']('TrackChangesEditing'),_0x544e14=this['_getSuggestionBlocks'](_0x406510=>_0x406510['is']('element','listItem')&&'numbered'===_0x406510['getAttribute']('listType'));if(_0x544e14['length']<0x1)return;const _0x173817=_0x544e14['map'](_0x4c7e20=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4c7e20,'before'),this['editor']['model']['createPositionAt'](_0x4c7e20,0x0)));this['editor']['model']['change'](()=>{_0x279d32['markMultiRangeBlockFormat'](_0x173817,{'commandName':'listStart','commandParams':[{'startIndex':_0x3d4110['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5d441f){if('formatBlock'!=_0x5d441f['type']&&'formatInline'!=_0x5d441f['type'])return;const _0x415cc0=this['editor']['locale'],{data:_0x36832e}=_0x5d441f;if(!_0x36832e)return;let _0x58497c,_0x214b83;switch(_0x36832e['commandName']){case'listStyle':_0x58497c='*Change\x20to:*\x20%0',_0x214b83={'type':'format','content':Tt(_0x415cc0,_0x58497c,Tt(_0x415cc0,this['_getTranslationKeyForListStyle'](_0x36832e['commandParams'][0x0]['type'])))};break;case'listReversed':_0x58497c=_0x36832e['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x214b83={'type':'format','content':Tt(_0x415cc0,_0x58497c)};break;case'listStart':_0x58497c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x214b83={'type':'format','content':Tt(_0x415cc0,_0x58497c,_0x36832e['commandParams'][0x0]['startIndex'])};}return _0x214b83;}['_getSuggestionBlocksForListStyle'](){const _0xa72044=this['editor']['plugins']['get']('LegacyListUtils');let _0x3249c8=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3249c8[0x0]?.['is']('element','listItem')&&_0x3249c8['unshift'](..._0xa72044['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3249c8[_0x3249c8['length']-0x1]?.['is']('element','listItem')&&_0x3249c8['push'](..._0xa72044['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3249c8=[...new Set(_0x3249c8)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3249c8=_0x3249c8['filter'](_0x3e4a59=>_0x3e4a59['is']('element','listItem'))),_0x3249c8;}['_getSuggestionBlocks'](_0x133568){const _0x4f2605=this['editor']['plugins']['get']('LegacyListUtils');let _0x20f9ee=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x133568)['map'](_0x6ff1d4=>{const _0x2d2560=this['editor']['model']['createPositionAt'](_0x6ff1d4,0x0);return[..._0x4f2605['getSiblingNodes'](_0x2d2560,'backward'),..._0x4f2605['getSiblingNodes'](_0x2d2560,'forward')];})['flat']();return _0x20f9ee=[...new Set(_0x20f9ee)],_0x20f9ee;}['_getTranslationKeyForListStyle'](_0x466872){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x466872)||'default')['toUpperCase']()+'_LIST_'+_0x466872['toUpperCase']()['replace'](/-/g,'_');}}class TrackChangesMediaEmbed extends _0x1b042a{['afterInit'](){const _0x2f222f=this['editor'];if(!_0x2f222f['plugins']['has']('MediaEmbedEditing'))return;const _0x487b51=_0x2f222f['plugins']['get']('TrackChangesEditing'),_0x47b85d=_0x2f222f['locale'];_0x487b51['enableCommand']('mediaEmbed'),_0x487b51['descriptionFactory']['registerElementLabel']('media',_0x5e04ef=>Tt(_0x47b85d,'ELEMENT_MEDIA',_0x5e04ef));}}class TrackChangesMention extends _0x1b042a{['afterInit'](){const _0x22393c=this['editor'];_0x22393c['plugins']['has']('MentionEditing')&&_0x22393c['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class TrackChangesMergeFields extends _0x1b042a{['afterInit'](){const _0x11643b=this['editor'];if(!_0x11643b['plugins']['has']('MergeFieldsEditing'))return;const _0x72184c=_0x11643b['plugins']['get']('TrackChangesEditing'),_0x439826=_0x11643b['locale'];_0x72184c['enableCommand']('insertMergeField'),_0x72184c['enableCommand']('insertMergeFieldBlock'),_0x72184c['enableCommand']('insertMergeFieldImage'),_0x72184c['descriptionFactory']['registerElementLabel']('mergeField',_0x569ff7=>Tt(_0x439826,'ELEMENT_MERGE_FIELD',_0x569ff7)),_0x72184c['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x43cda6=>Tt(_0x439826,'ELEMENT_MERGE_FIELD',_0x43cda6)),_0x72184c['descriptionFactory']['registerDescriptionCallback'](_0x3879d6=>{if('insertion'!=_0x3879d6['type']&&'deletion'!=_0x3879d6['type'])return;const _0x4829d9=_0x3879d6['getContainedElement']();if(null==_0x4829d9)return;const _0x1b704d=_0x11643b['plugins']['get']('MergeFieldsEditing');let _0x5624dc;switch(_0x1b704d['getMergeFieldType'](_0x4829d9)){case null:return;case'image':{const _0xf99b0b=_0x1b704d['unwrapAffixes'](_0x4829d9['getAttribute']('src'));_0x5624dc=_0x1b704d['getLabel'](_0xf99b0b)||_0xf99b0b;break;}default:{const _0x8d630d=_0x4829d9['getAttribute']('id');_0x5624dc=_0x1b704d['getLabel'](_0x8d630d)||_0x8d630d;break;}}return'insertion'==_0x3879d6['type']?{'type':'insertion','content':Tt(_0x439826,'*Insert:*\x20%0','\x22'+_0x5624dc+'\x22\x20'+Tt(_0x439826,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Tt(_0x439826,'*Remove:*\x20%0','\x22'+_0x5624dc+'\x22\x20'+Tt(_0x439826,'ELEMENT_MERGE_FIELD'))};});}}class TrackChangesMultiLevelList extends _0x1b042a{['afterInit'](){const _0x53b2ce=this['editor'],_0x4b15fb=_0x53b2ce['plugins']['get']('TrackChangesEditing');_0x53b2ce['plugins']['has']('MultiLevelList')&&(_0x4b15fb['enableDefaultAttributesIntegration']('multiLevelList'),_0x4b15fb['descriptionFactory']['registerDescriptionCallback'](_0x2c95ad=>this['handleDescriptions'](_0x2c95ad)));}['handleDescriptions'](_0x36f3e2){const _0x5768c9=this['editor']['locale'],{data:_0x17a5cc}=_0x36f3e2,_0x46edb3={'type':'format','content':''};if(_0x17a5cc&&'listMarkerStyle'==_0x17a5cc['key']){if(!_0x17a5cc['oldValue'])return{'type':'format','content':Tt(_0x5768c9,'*Set\x20format:*\x20%0',Tt(_0x5768c9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x17a5cc['newValue']+')'};if(!_0x17a5cc['newValue']){let _0xbce73e=_0x36f3e2['head'];for(;_0xbce73e;){if(_0xbce73e['data']&&'listType'==_0xbce73e['data']['key']&&_0xbce73e['data']['newValue'])return _0x46edb3;_0xbce73e=_0xbce73e['next'];}return{'type':'format','content':Tt(_0x5768c9,'*Remove\x20format:*\x20%0',Tt(_0x5768c9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x17a5cc['oldValue']+')'};}}}}class TrackChangesPageBreak extends _0x1b042a{['afterInit'](){const _0x156760=this['editor'];if(!_0x156760['plugins']['has']('PageBreakEditing'))return;_0x156760['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4eddae=_0x156760['plugins']['get']('TrackChangesEditing'),_0x4f2d3c=_0x156760['locale'];_0x4eddae['descriptionFactory']['registerElementLabel']('pageBreak',_0x5ebbf5=>Tt(_0x4f2d3c,'ELEMENT_PAGE_BREAK',_0x5ebbf5));}}class TrackChangesParagraph extends _0x1b042a{['afterInit'](){const _0x32139a=this['editor'];if(!_0x32139a['plugins']['has']('Paragraph'))return;const _0x4b524f=_0x32139a['locale'],_0x161bfa=_0x32139a['plugins']['get']('TrackChangesEditing');_0x161bfa['descriptionFactory']['registerElementLabel']('paragraph',_0x2e3fba=>Tt(_0x4b524f,'ELEMENT_PARAGRAPH',_0x2e3fba)),_0x161bfa['enableDefaultAttributesIntegration']('paragraph'),_0x161bfa['enableCommand']('insertParagraph');const _0x1e2b93=_0x161bfa['descriptionFactory'];_0x1e2b93['registerDescriptionCallback'](_0x5dca37=>{if('insertion'!==_0x5dca37['type'])return;const {start:_0x43b3d7,end:_0x2b7acd}=_0x5dca37['getFirstRange']();if(!_0x43b3d7['isTouching'](_0x2b7acd)||!_0x43b3d7['nodeAfter'])return;const _0x1a8dc3=_0x32139a['model']['schema'],_0x3ef0cf=_0x43b3d7['nodeAfter'];return _0x1a8dc3['isBlock'](_0x3ef0cf)&&!_0x1a8dc3['isLimit'](_0x3ef0cf)&&_0x1a8dc3['checkChild'](_0x3ef0cf,'$text')?{'type':'insertion','content':Tt(_0x4b524f,'*Insert:*\x20%0',_0x1e2b93['getItemLabel'](_0x3ef0cf,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2253ee=this['editor'],_0x5c0ff3=_0x2253ee['locale'];_0x2253ee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x532582=>{if('formatBlock'!=_0x532582['type'])return;const {data:_0x1f9183}=_0x532582;return _0x1f9183&&'paragraph'==_0x1f9183['commandName']?{'type':'format','content':Tt(_0x5c0ff3,'*Change\x20to:*\x20%0',Tt(_0x5c0ff3,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class TrackChangesReplaceSourceCommand extends _0x1b042a{['afterInit'](){const _0x1896b7=this['editor'];_0x1896b7['commands']['get']('replaceSource')&&_0x1896b7['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class TrackChangesRemoveFormat extends _0x1b042a{['afterInit'](){const _0x4cb484=this['editor'];if(!_0x4cb484['plugins']['has']('RemoveFormatEditing'))return;_0x4cb484['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3cedea=this['editor'];_0x3cedea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5eaaea=>{if('formatBlock'!=_0x5eaaea['type']&&'formatInline'!=_0x5eaaea['type'])return;const {data:_0x16d19e}=_0x5eaaea;return _0x16d19e&&'removeFormat'==_0x16d19e['commandName']?{'type':'format','content':Tt(_0x3cedea['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class TrackChangesRestrictedEditingMode extends _0x1b042a{['afterInit'](){const _0x5322e9=this['editor'];if(!_0x5322e9['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1ad09a=_0x5322e9['plugins']['get']('TrackChangesEditing');_0x1ad09a['enableCommand']('goToPreviousRestrictedEditingException'),_0x1ad09a['enableCommand']('goToNextRestrictedEditingException');const _0x39cbbb=_0x5322e9['plugins']['get']('RestrictedEditingModeEditing');_0x39cbbb['enableCommand']('trackChanges'),_0x39cbbb['enableCommand']('acceptSuggestion'),_0x39cbbb['enableCommand']('discardSuggestion'),_0x39cbbb['enableCommand']('acceptAllSuggestions'),_0x39cbbb['enableCommand']('discardAllSuggestions'),_0x39cbbb['enableCommand']('acceptSelectedSuggestions'),_0x39cbbb['enableCommand']('discardSelectedSuggestions');}}class TrackChangesShiftEnterCommand extends _0x1b042a{['afterInit'](){const _0x1e27e4=this['editor'];if(!_0x1e27e4['plugins']['has']('ShiftEnter'))return;const _0x124937=_0x1e27e4['plugins']['get']('TrackChangesEditing');_0x124937['enableCommand']('shiftEnter'),_0x124937['descriptionFactory']['registerElementLabel']('softBreak',_0x4461a0=>Tt(_0x1e27e4['locale'],'ELEMENT_LINE_BREAK',_0x4461a0));}}function Rt(_0x1c1433,_0x1417e4,_0x9b60e4){const _0x5ebf09=[];for(const _0x556b9b of _0x1417e4['getItems']())_0x556b9b['hasAttribute'](_0x1c1433)&&_0x5ebf09['push'](_0x9b60e4['createRangeOn'](_0x556b9b));return _0x5ebf09;}class TrackChangesStandardEditingMode extends _0x1b042a{['afterInit'](){const _0x41c949=this['editor'],_0x158a81=_0x41c949['plugins']['get']('TrackChangesEditing');_0x41c949['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x158a81['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x35fe56=this['editor'],_0x33d29e=_0x35fe56['model'],_0x21deef=_0x35fe56['locale'],_0x45639e=_0x35fe56['plugins']['get']('TrackChangesEditing'),_0x1f62df='restrictedEditingException',_0xa51179=_0x35fe56['commands']['get'](_0x1f62df);_0x45639e['enableCommand'](_0x1f62df,(_0x1655bb,_0x2408d5={})=>{const _0x42cf27=_0x33d29e['document']['selection'];if(_0x42cf27['isCollapsed'])return void _0x1655bb(_0x2408d5);const _0x439438=void 0x0!==_0x2408d5['forceValue']?_0x2408d5['forceValue']:!_0xa51179['value'];_0x33d29e['change'](()=>{const _0x14598b=Array['from'](_0x42cf27['getRanges']());for(const _0x55d9af of _0x14598b){const _0x4eb39c=_0x439438?[_0x55d9af]:Rt(_0x1f62df,_0x55d9af,_0x33d29e);for(const _0x43030a of _0x4eb39c)_0x45639e['markInlineFormat'](_0x43030a,{'commandName':_0x1f62df,'commandParams':[{'forceValue':_0x439438}]});}});}),_0x45639e['descriptionFactory']['registerDescriptionCallback'](_0x3bce0e=>{if('formatBlock'!=_0x3bce0e['type']&&'formatInline'!=_0x3bce0e['type'])return;const {data:_0x5c0a84}=_0x3bce0e;return _0x5c0a84&&_0x5c0a84['commandName']==_0x1f62df?_0x5c0a84['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x21deef,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Tt(_0x21deef,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x262f30=this['editor'],_0x27359c=_0x262f30['locale'],_0x25ef3f=_0x262f30['plugins']['get']('TrackChangesEditing'),_0x291199='restrictedEditingExceptionBlock',_0xd31e30=this['editor']['commands']['get'](_0x291199);_0x25ef3f['enableCommand'](_0x291199,(_0x491e5b,_0x44fc0b={})=>{const _0x36702e=this['editor']['model']['document']['selection'],_0x30c2c8=_0x44fc0b&&void 0x0!==_0x44fc0b['forceValue']?_0x44fc0b['forceValue']:!_0xd31e30['value'];let _0x2c064f=[];if(_0x30c2c8){const _0x4fc055=Array['from'](_0x36702e['getSelectedBlocks']())['filter'](_0x57f94f=>function(_0xe12d21){return!!_0xe12d21['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x57f94f)||function(_0x9e504a,_0x50d97c){const _0x5753f4=_0x50d97c['createContext'](_0x9e504a['parent']);if(!_0x50d97c['checkChild'](_0x5753f4,'restrictedEditingException'))return!0x1;if(!_0x50d97c['checkChild'](_0x5753f4['push']('restrictedEditingException'),_0x9e504a))return!0x1;return!0x0;}(_0x57f94f,this['editor']['model']['schema']));_0x2c064f=ft(_0x4fc055,_0x262f30['model']);}else{const _0x110c5a=Array['from'](_0x36702e['getSelectedBlocks']())['map'](_0x1dcd21=>function(_0xc9fe42){let _0x61c572=_0xc9fe42;for(;_0x61c572['parent'];){if('restrictedEditingException'==_0x61c572['parent']['name'])return _0x61c572;_0x61c572=_0x61c572['parent'];}return null;}(_0x1dcd21))['filter'](_0xa2820a=>!!_0xa2820a);_0x2c064f=ft(_0x110c5a,_0x262f30['model']);}_0x262f30['model']['change'](()=>{for(const _0x5d4cf3 of _0x2c064f)_0x25ef3f['markBlockFormat'](_0x5d4cf3,{'commandName':_0x291199,'commandParams':[{'forceValue':_0x30c2c8}]});});}),_0x25ef3f['descriptionFactory']['registerDescriptionCallback'](_0x289233=>{const {data:_0x564147}=_0x289233;if(_0x564147&&_0x564147['commandName']==_0x291199)return _0x564147['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x27359c,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Tt(_0x27359c,'FORMAT_RESTRICTED_DISABLED')};});}}class TrackChangesStylesDropdown extends _0x1b042a{['afterInit'](){const _0xf08018=this['editor'];if(!_0xf08018['plugins']['has']('Style')||!_0xf08018['plugins']['has']('DataSchema'))return;const _0x391a61=_0xf08018['plugins']['get']('TrackChangesEditing'),_0x40336b=_0xf08018['locale'],_0x345d23=_0xf08018['config']['get']('style')||{},_0x281e5c=_0xf08018['plugins']['get']('GeneralHtmlSupport'),_0x26936f=_0xf08018['plugins']['get']('StyleUtils')['normalizeConfig'](_0xf08018['plugins']['get']('DataSchema'),_0x345d23['definitions']);_0x391a61['enableDefaultAttributesIntegration']('style');const _0x32d817=new Set();for(const _0x3a6ddc of _0x26936f['block']){const _0x248bf5=_0x281e5c['getGhsAttributeNameForElement'](_0x3a6ddc['element']);_0x32d817['add'](_0x248bf5);}const _0x24c45a=new Set();for(const _0x56c696 of _0x26936f['inline']){const _0x3fc893=_0x281e5c['getGhsAttributeNameForElement'](_0x56c696['element']);_0x24c45a['add'](_0x3fc893);for(const _0x11905d of _0x56c696['ghsAttributes'])_0x24c45a['add'](_0x11905d);}for(const _0x101758 of _0x32d817)_0x391a61['descriptionFactory']['registerAttributeLabel'](_0x101758,Tt(_0x40336b,'FORMAT_STYLE'));for(const _0x13d619 of _0x24c45a)_0x391a61['descriptionFactory']['registerAttributeLabel'](_0x13d619,Tt(_0x40336b,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b9eca=this['editor'],_0x584acd=_0x2b9eca['locale'];_0x2b9eca['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d4c7c=>{if('formatBlock'!=_0x5d4c7c['type']&&'formatInline'!=_0x5d4c7c['type'])return;const {data:_0x289176}=_0x5d4c7c;return _0x289176&&'style'===_0x289176['commandName']?_0x289176['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x584acd,'*Set\x20format:*\x20%0',_0x289176['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Tt(_0x584acd,'*Remove\x20format:*\x20%0',_0x289176['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class TrackChangesTable extends _0x1b042a{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x23e4e8){super(_0x23e4e8),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x31a21f=this['editor'],_0x2f5b04=_0x31a21f['model']['document']['selection'];if(!_0x31a21f['plugins']['has']('TableEditing'))return;const _0x4bd3cb=_0x31a21f['locale'],_0x40f7cc=_0x31a21f['plugins']['get']('TrackChangesEditing'),_0x3415f6=_0x31a21f['plugins']['get']('TableUtils');_0x40f7cc['descriptionFactory']['registerElementLabel']('table',_0x50bebd=>Tt(_0x4bd3cb,'ELEMENT_TABLE',_0x50bebd)),this['_setupColumnsRowsFixing'](),_0x40f7cc['enableCommand']('insertTable'),_0x40f7cc['enableCommand']('selectTableRow'),_0x40f7cc['enableCommand']('selectTableColumn');for(const _0x6d2ddc of['insertTableRowAbove','insertTableRowBelow']){const _0x4b1c85=_0x31a21f['commands']['get'](_0x6d2ddc);_0x40f7cc['enableCommand'](_0x6d2ddc,_0x3ba1ef=>{_0x31a21f['model']['change'](_0x17cfdf=>{_0x3ba1ef();const _0x983283='above'===_0x4b1c85['order'],_0x5c3152=_0x3415f6['getSelectionAffectedTableCells'](_0x2f5b04),_0x16f4dd=_0x3415f6['getRowIndexes'](_0x5c3152),_0xb6d68d=_0x983283?_0x16f4dd['first']-0x1:_0x16f4dd['last']+0x1,_0x4035ba=_0x5c3152[0x0]['findAncestor']('table'),_0x1c7012=_0x3415f6['createTableWalker'](_0x4035ba,{'startRow':_0xb6d68d,'endRow':_0xb6d68d}),_0x4e4760=Array['from'](_0x1c7012)['map'](_0x23ce31=>_0x17cfdf['createRangeOn'](_0x23ce31['cell']));_0x40f7cc['markMultiRangeInsertion'](_0x4e4760,'tableRow');});});}for(const _0x3d6eb5 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5384d1=_0x31a21f['commands']['get'](_0x3d6eb5);_0x40f7cc['enableCommand'](_0x3d6eb5,_0x5e3dbb=>{_0x31a21f['model']['change'](_0x376bda=>{_0x5e3dbb();const _0x5619af='left'===_0x5384d1['order'],_0x355970=_0x3415f6['getSelectionAffectedTableCells'](_0x2f5b04),_0x27f5df=_0x3415f6['getColumnIndexes'](_0x355970),_0x2abe38=_0x5619af?_0x27f5df['first']-0x1:_0x27f5df['last']+0x1,_0x9aacea=_0x355970[0x0]['findAncestor']('table'),_0x36f465=_0x3415f6['createTableWalker'](_0x9aacea,{'startRow':0x0,'column':_0x2abe38,'includeAllSlots':!0x1}),_0x577d42=Array['from'](_0x36f465)['map'](_0x569d48=>_0x376bda['createRangeOn'](_0x569d48['cell']));_0x40f7cc['markMultiRangeInsertion'](_0x577d42,'tableColumn');});});}for(const _0x2498f5 of['removeTableRow','removeTableColumn']){const _0x4c4baf=_0x2498f5['substr'](0xb),_0x3d5666=_0x4c4baf['toLowerCase'](),_0x34828b=_0x3d5666['substr'](0x0,0x3)+'span',_0x1ae462='table'+_0x4c4baf,_0x20c40e='min'+_0x4c4baf,_0x428f6c='max'+_0x4c4baf;_0x40f7cc['enableCommand'](_0x2498f5,()=>{_0x31a21f['model']['change'](_0x6c4e8c=>{const _0x2e7fc5=_0x3415f6['getSelectionAffectedTableCells'](_0x2f5b04),_0x196232=_0x2e7fc5[0x0]['findAncestor']('table');let _0x5e1bd2;if('removeTableRow'==_0x2498f5){const _0x38edb5=_0x3415f6['getRowIndexes'](_0x2e7fc5);_0x5e1bd2={'startRow':_0x38edb5['first'],'endRow':_0x38edb5['last'],'includeAllSlots':!0x0};}else{const _0x586e89=_0x3415f6['getColumnIndexes'](_0x2e7fc5);_0x5e1bd2={'startColumn':_0x586e89['first'],'endColumn':_0x586e89['last'],'includeAllSlots':!0x0};}const _0xd6a364=_0x3415f6['createTableWalker'](_0x196232,_0x5e1bd2),_0x192f38=Array['from'](_0xd6a364)['map'](({cell:_0x5df945})=>_0x5df945),_0x2b8059=Nt(_0x192f38['filter'](_0x111e33=>_0x111e33['hasAttribute'](_0x34828b))),_0x2f017c=Nt(_0x192f38['filter'](_0x4d4d0e=>!_0x4d4d0e['hasAttribute'](_0x34828b)))['map'](_0x4bcf40=>_0x6c4e8c['createRangeOn'](_0x4bcf40)),_0x1f9207=_0x40f7cc['markMultiRangeDeletion'](_0x2f017c,_0x1ae462);if(_0x1f9207&&('tableRow'==_0x1f9207['subType']||'tableColumn'==_0x1f9207['subType'])){const _0x19d2f5=this['_getSuggestionCoords'](_0x1f9207);for(const _0x5a89df of _0x2b8059){const _0x103922=_0x6c4e8c['createRangeOn'](_0x5a89df),_0x436fc0=_0x3415f6['getCellLocation'](_0x5a89df),_0x2522f4=_0x5a89df['getAttribute'](_0x34828b)-0x1,_0x4038f1=_0x19d2f5[_0x20c40e],_0x2c47d3=_0x19d2f5[_0x428f6c];_0x4038f1<=_0x436fc0[_0x3d5666]&&_0x436fc0[_0x3d5666]+_0x2522f4<=_0x2c47d3&&_0x1f9207['addRange'](_0x103922);}}});});}function _0xf89a11(_0x8326d8){const _0xd3107a=Array['from'](_0x2f5b04['getRanges']())['map'](_0x5dc876=>_0x4099e3['fromRange'](_0x5dc876));_0x31a21f['model']['change'](_0x32a7d6=>{const _0xbaa3df=_0x32a7d6['batch'];_0x8326d8=_0x8326d8['filter'](_0x3387ed=>'$graveyard'!=_0x3387ed['root']['rootName']),_0x32a7d6['setSelection'](_0x8326d8),_0x31a21f['commands']['get']('removeTableRow')['refresh'](),_0x31a21f['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x31a21f['model']['enqueueChange'](()=>{_0x31a21f['model']['enqueueChange'](_0xbaa3df,_0x5194b0=>{const _0x170fc2=_0xd3107a['filter'](_0x43914d=>'$graveyard'!=_0x43914d['root']['rootName']);_0x170fc2['length']>0x0&&_0x5194b0['setSelection'](_0x170fc2);for(const _0x43507a of _0xd3107a)_0x43507a['detach']();});});});}function _0x3c0178(_0x548182){_0x31a21f['model']['change'](_0x5b4b9e=>{const _0x20221d=Array['from'](_0x2f5b04['getRanges']())['map'](_0x41a54d=>_0x4099e3['fromRange'](_0x41a54d)),_0x14c885=[];for(const _0x40cc26 of _0x548182)for(const _0x286c81 of _0x40cc26['getItems']({'shallow':!0x0}))_0x14c885['push'](_0x286c81);for(const _0x30fcce of _0x14c885)'$graveyard'!=_0x30fcce['root']['rootName']&&(_0x5b4b9e['setSelection'](_0x5b4b9e['createPositionAt'](_0x30fcce,0x0)),_0x31a21f['commands']['get']('removeTableColumn')['refresh'](),_0x31a21f['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5d0b79=_0x20221d['filter'](_0x19a674=>'$graveyard'!=_0x19a674['root']['rootName']);_0x5d0b79['length']>0x0&&_0x5b4b9e['setSelection'](_0x5d0b79);for(const _0x3b3e1d of _0x20221d)_0x3b3e1d['detach']();});}function _0x987da8(_0x305109,_0x7c7586){return _0x7c7586['every'](_0x1a2885=>_0x305109['some'](_0x3718e5=>_0x3718e5['end']['isEqual'](_0x1a2885['start'])||_0x1a2885['end']['isEqual'](_0x3718e5['start'])));}function _0x32e648(_0xa8261b,_0x8919ea){return!_0xa8261b['some'](_0x106c42=>_0x8919ea['some'](_0x15114a=>_0x106c42['isIntersecting'](_0x15114a)))&&_0xa8261b['some'](_0x2b253d=>_0x8919ea['some'](_0x3cb6fb=>_0x2b253d['end']['isTouching'](_0x3cb6fb['start'])));}_0x40f7cc['descriptionFactory']['registerDescriptionCallback'](_0x54217c=>{if('insertion'!=_0x54217c['type']&&'deletion'!=_0x54217c['type'])return;const _0x3b938b=_0x54217c['getContainedElement']();if(null!=_0x3b938b&&_0x3b938b['is']('element','table')){if('insertion'==_0x54217c['type']){const _0x3efff6=_0x54217c['getItems']()['filter'](_0x10ba7f=>_0x10ba7f['is']('$textProxy'))['map'](_0x229369=>_0x229369['data']);if(_0x3efff6['length'])return{'type':'insertion','content':Tt(_0x4bd3cb,'*Insert:*\x20%0',Tt(_0x4bd3cb,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3efff6['join']('\x20')+'\x22'))};}if('deletion'==_0x54217c['type']){const _0x12756a=_0x54217c['getItems']()['filter'](_0x189779=>_0x189779['is']('$textProxy'))['map'](_0x35688a=>_0x35688a['data']);if(_0x12756a['length'])return{'type':'deletion','content':Tt(_0x4bd3cb,'*Remove:*\x20%0',Tt(_0x4bd3cb,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x12756a['join']('\x20')+'\x22'))};}}}),_0x40f7cc['descriptionFactory']['registerDescriptionCallback'](_0x2bb3e6=>{if('tableRow'==_0x2bb3e6['subType']){const _0x18c0d8=_0x2bb3e6['getItems']()['filter'](_0xdad4c8=>_0xdad4c8['is']('$textProxy'))['map'](_0x2eb716=>_0x2eb716['data']),_0x1c599e=this['_getSuggestionCoords'](_0x2bb3e6),_0x17c3d2=_0x1c599e['maxRow']-_0x1c599e['minRow']+0x1;if('insertion'==_0x2bb3e6['type'])return _0x18c0d8['length']?{'type':'insertion','content':Tt(_0x4bd3cb,'*Insert:*\x20%0',Tt(_0x4bd3cb,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x17c3d2,'\x22'+_0x18c0d8['join']('\x20')+'\x22']))}:{'type':'insertion','content':Tt(_0x4bd3cb,'*Insert:*\x20%0',Tt(_0x4bd3cb,'ELEMENT_TABLE_ROW',_0x17c3d2))};if('deletion'==_0x2bb3e6['type'])return _0x18c0d8['length']?{'type':'deletion','content':Tt(_0x4bd3cb,'*Remove:*\x20%0',Tt(_0x4bd3cb,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x17c3d2,'\x22'+_0x18c0d8['join']('\x20')+'\x22']))}:{'type':'deletion','content':Tt(_0x4bd3cb,'*Remove:*\x20%0',Tt(_0x4bd3cb,'ELEMENT_TABLE_ROW',_0x17c3d2))};}if('tableColumn'==_0x2bb3e6['subType']){const _0x28807f=_0x2bb3e6['getItems']()['filter'](_0x19e70a=>_0x19e70a['is']('$textProxy'))['map'](_0xef3e32=>_0xef3e32['data']),_0x4a3525=this['_getSuggestionCoords'](_0x2bb3e6),_0x31adf9=_0x4a3525['maxColumn']-_0x4a3525['minColumn']+0x1;if('insertion'==_0x2bb3e6['type'])return _0x28807f['length']?{'type':'insertion','content':Tt(_0x4bd3cb,'*Insert:*\x20%0',Tt(_0x4bd3cb,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x31adf9,'\x22'+_0x28807f['join']('\x20')+'\x22']))}:{'type':'insertion','content':Tt(_0x4bd3cb,'*Insert:*\x20%0',Tt(_0x4bd3cb,'ELEMENT_TABLE_COLUMN',_0x31adf9))};if('deletion'==_0x2bb3e6['type'])return _0x28807f['length']?{'type':'deletion','content':Tt(_0x4bd3cb,'*Remove:*\x20%0',Tt(_0x4bd3cb,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x31adf9,'\x22'+_0x28807f['join']('\x20')+'\x22']))}:{'type':'deletion','content':Tt(_0x4bd3cb,'*Remove:*\x20%0',Tt(_0x4bd3cb,'ELEMENT_TABLE_COLUMN',_0x31adf9))};}}),_0x40f7cc['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xf89a11),_0x40f7cc['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xf89a11),_0x40f7cc['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3c0178),_0x40f7cc['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3c0178),_0x40f7cc['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x987da8),_0x40f7cc['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x987da8),_0x40f7cc['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x32e648),_0x40f7cc['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x32e648);}['_acceptFormatSuggestionCallbackFactory'](){const _0x162a28=this['editor'],_0x2803cb=_0x162a28['model']['document']['selection'];return(_0x25e292,_0x64b8b5)=>{_0x162a28['model']['change'](_0xde43ae=>{const {commandName:_0x5952ab,commandParams:_0xe6229c}=_0x64b8b5;let _0x916d74=_0x25e292[0x0]['end']['nodeBefore'];_0xe6229c&&_0xe6229c[0x0]&&!0x1===_0xe6229c[0x0]['forceValue']&&(_0x916d74=_0x25e292[0x0]['start']['nodeAfter']);const _0x49ab9f=_0xde43ae['createRangeIn'](_0x916d74);if('$graveyard'==_0x49ab9f['root']['rootName'])return;const _0x23bfbd=Array['from'](_0x2803cb['getRanges']())['map'](_0x1dd58d=>_0x4099e3['fromRange'](_0x1dd58d));_0xde43ae['setSelection'](_0x49ab9f),_0x162a28['commands']['get'](_0x5952ab)['refresh'](),_0xe6229c['push']({'forceDefaultExecution':!0x0}),_0x162a28['execute'](_0x5952ab,..._0xe6229c);const _0x2e5684=_0x23bfbd['filter'](_0x51044c=>'$graveyard'!=_0x51044c['root']['rootName']);_0x2e5684['length']>0x0&&_0xde43ae['setSelection'](_0x2e5684);for(const _0x5b5ad1 of _0x23bfbd)_0x5b5ad1['detach']();});};}['_getCoordsForCells'](_0x27c995){const _0x2a9d5d=this['editor']['plugins']['get']('TableUtils');let _0x4a6f95=Number['MAX_SAFE_INTEGER'],_0x3fb7dc=Number['MIN_SAFE_INTEGER'],_0x538018=Number['MAX_SAFE_INTEGER'],_0x5a5209=Number['MIN_SAFE_INTEGER'];for(const _0x4ef05d of _0x27c995){if('$graveyard'==_0x4ef05d['root']['rootName'])continue;const {row:_0x3735c6,column:_0x396a4f}=_0x2a9d5d['getCellLocation'](_0x4ef05d),_0x3673dd=_0x4ef05d['hasAttribute']('rowspan')?_0x4ef05d['getAttribute']('rowspan')-0x1:0x0,_0xcae53a=_0x4ef05d['hasAttribute']('colspan')?_0x4ef05d['getAttribute']('colspan')-0x1:0x0;_0x4a6f95=_0x3735c6<_0x4a6f95?_0x3735c6:_0x4a6f95,_0x3fb7dc=_0x3735c6+_0x3673dd>_0x3fb7dc?_0x3735c6+_0x3673dd:_0x3fb7dc,_0x538018=_0x396a4f<_0x538018?_0x396a4f:_0x538018,_0x5a5209=_0x396a4f+_0xcae53a>_0x5a5209?_0x396a4f+_0xcae53a:_0x5a5209;}return{'minRow':_0x4a6f95,'maxRow':_0x3fb7dc,'minColumn':_0x538018,'maxColumn':_0x5a5209};}['_setupColumnsRowsFixing'](){const _0x3e907e=this['editor'],_0x5235f2=_0x3e907e['plugins']['get']('TrackChangesEditing'),_0x152bac=_0x3e907e['plugins']['get']('TableUtils');_0x3e907e['model']['document']['on']('change:data',()=>{const _0x10e7c9=Array['from'](_0x3e907e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x24f58e,data:_0x38f190}of _0x10e7c9){const {group:_0x334624,id:_0xbd89e,subType:_0x45694e}=_0x11d9f0(_0x24f58e);if('suggestion'!=_0x334624)continue;if(null!=_0x38f190['oldRange'])continue;const _0x2e1f97=_0x5235f2['getSuggestion'](_0xbd89e);this['_tablePostFixingSubtypes']['includes'](_0x45694e)&&this['_tableSuggestions']['add'](_0x2e1f97);}},{'priority':'low'});const _0x4553a8=(_0x2cf09c,_0x467eef)=>{let _0x387b9a=!0x1;const _0xf21470=_0x467eef['createRangeOn'](_0x2cf09c),_0x458ac4=_0x2cf09c['findAncestor']('table'),_0x51001d=_0x152bac['getCellLocation'](_0x2cf09c);for(const _0xdb2acb of this['_tableSuggestions']){const _0x1a1139=_0xdb2acb['subType'],_0x531565=_0x1a1139['startsWith']('tablePaste'),_0x3683b4=_0x1a1139['substr'](_0x531565?0xa:0x5),_0x4ac63e=_0x3683b4['toLowerCase'](),_0x4f6f91=_0x4ac63e['substr'](0x0,0x3)+'span',_0x36d6cc='min'+_0x3683b4,_0x270831='max'+_0x3683b4;if(!_0xdb2acb['isInContent'])continue;if(_0x458ac4!=_0xdb2acb['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xdb2acb['isIntersectingWithRange'](_0xf21470))continue;const _0x5ce95d=_0x2cf09c['hasAttribute'](_0x4f6f91)?_0x2cf09c['getAttribute'](_0x4f6f91)-0x1:0x0,_0x2dc189=this['_getSuggestionCoords'](_0xdb2acb),_0x41b034=_0x2dc189[_0x36d6cc],_0xb49813=_0x2dc189[_0x270831];_0x41b034<=_0x51001d[_0x4ac63e]&&_0x51001d[_0x4ac63e]+_0x5ce95d<=_0xb49813&&(_0xdb2acb['addRange'](_0xf21470),_0x387b9a=!0x0);}return _0x387b9a;};_0x3e907e['model']['document']['registerPostFixer'](_0x54bb01=>{let _0x1860a7=!0x1;for(const _0x91bdb7 of _0x3e907e['model']['document']['differ']['getChanges']())if('insert'==_0x91bdb7['type']){if('tableRow'==_0x91bdb7['name']){for(const _0x10ab8b of _0x91bdb7['position']['nodeAfter']['getChildren']())_0x1860a7=_0x1860a7||_0x4553a8(_0x10ab8b,_0x54bb01);}else'tableCell'==_0x91bdb7['name']&&(_0x1860a7=_0x1860a7||_0x4553a8(_0x91bdb7['position']['nodeAfter'],_0x54bb01));}return _0x1860a7;});}['_getSuggestionCoords'](_0x52c72b){return this['_getCoordsForCells'](_0x52c72b['getRanges']()['map'](_0x381de6=>_0x381de6['start']['nodeAfter']));}}function Nt(_0x352cbc){return Array['from'](new Set(_0x352cbc)['values']());}class TrackChangesTableMergeSplit extends _0x1b042a{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x45892b=this['editor'],_0x4e0293=_0x45892b['model']['document']['selection'],_0x1736a4=_0x45892b['locale'];if(!_0x45892b['plugins']['has']('TableEditing'))return;const _0x31ec14=_0x45892b['plugins']['get']('TrackChangesEditing'),_0x5e3794=_0x45892b['plugins']['get']('TableUtils'),_0x256414=_0x45892b['plugins']['get'](TrackChangesTable);_0x256414['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x31ec14['enableCommand']('mergeTableCells',()=>{const _0x39512c=_0x5e3794['getSelectionAffectedTableCells'](_0x45892b['model']['document']['selection']);_0x45892b['model']['change'](()=>{_0x31ec14['markMultiRangeBlockFormat'](_0x39512c,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x45892b['commands']['get']('mergeTableCells')['on']('execute',(_0x25d87e,_0x153511)=>{_0x45892b['commands']['get']('trackChanges')['value']&&(_0x153511['length']>0x0&&_0x153511[_0x153511['length']-0x1]&&_0x153511[_0x153511['length']-0x1]['forceDefaultExecution']||_0x31ec14['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x25d87e['stop']());},{'priority':'highest'});for(const _0x3b11c7 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3e178e=_0x45892b['commands']['get'](_0x3b11c7);_0x31ec14['enableCommand'](_0x3b11c7,()=>{const _0x52e981=_0x45892b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x282678=>_0x282678['is']('element','tableCell')),_0x2d61cd=_0x3e178e['value'];_0x45892b['model']['change'](()=>{_0x31ec14['markMultiRangeBlockFormat']([_0x52e981,_0x2d61cd],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x146d74 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2f9892=_0x45892b['commands']['get'](_0x146d74);_0x31ec14['enableCommand'](_0x146d74,()=>{const _0x3710bf=_0x5e3794['getSelectionAffectedTableCells'](_0x45892b['model']['document']['selection'])[0x0],_0x4ec6b4=_0x3710bf['findAncestor']('table'),{column:_0x43fedd,row:_0x4ea184}=_0x5e3794['getCellLocation'](_0x3710bf);let _0x2ba996=[];if('horizontally'==_0x2f9892['direction']){const _0xb676ab=_0x5e3794['createTableWalker'](_0x4ec6b4,{'startRow':_0x4ea184,'endRow':_0x4ea184,'includeAllSlots':!0x0});_0x2ba996=Array['from'](_0xb676ab)['map'](_0x3cb5c5=>_0x3cb5c5['cell']);}else{const _0x177945=_0x5e3794['createTableWalker'](_0x4ec6b4,{'column':_0x43fedd,'includeAllSlots':!0x0});_0x2ba996=Array['from'](_0x177945)['map'](_0x1e2693=>_0x1e2693['cell']);}_0x45892b['model']['change'](_0xaeac=>{_0x31ec14['markBlockFormat'](_0xaeac['createRangeOn'](_0x3710bf),{'commandName':_0x146d74,'commandParams':[]},_0x2ba996,_0x146d74);});});}_0x31ec14['descriptionFactory']['registerDescriptionCallback'](_0x3096cd=>{if('formatBlock'!=_0x3096cd['type']&&'formatInline'!=_0x3096cd['type'])return;const {data:_0x11a9ec}=_0x3096cd;return _0x11a9ec&&'mergeTableCells'==_0x11a9ec['commandName']?{'type':'format','content':Tt(_0x1736a4,'*Merge\x20cells*')}:void 0x0;}),_0x31ec14['descriptionFactory']['registerDescriptionCallback'](_0x51d049=>{if('formatBlock'!=_0x51d049['type']&&'formatInline'!=_0x51d049['type'])return;const {data:_0x14c8f5}=_0x51d049;return _0x14c8f5?'splitTableCellVertically'==_0x14c8f5['commandName']?{'type':'format','content':Tt(_0x1736a4,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x14c8f5['commandName']?{'type':'format','content':Tt(_0x1736a4,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x72121f=_0x256414['_acceptFormatSuggestionCallbackFactory']();for(const _0x31dcd1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x31ec14['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x31dcd1,'accept',_0x72121f);for(const _0x14ea7d of['splitTableCellVertically','splitTableCellHorizontally'])_0x31ec14['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x14ea7d,'accept',_0x72121f);_0x31ec14['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x23ac93=>{_0x45892b['model']['change'](_0x42b2bc=>{const _0x110916=Array['from'](_0x4e0293['getRanges']())['map'](_0x489d07=>_0x4099e3['fromRange'](_0x489d07));_0x42b2bc['setSelection'](_0x23ac93),_0x45892b['commands']['get']('mergeTableCells')['refresh'](),_0x45892b['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1d2cb3=_0x110916['filter'](_0x193400=>'$graveyard'!=_0x193400['root']['rootName']);_0x1d2cb3['length']>0x0&&_0x42b2bc['setSelection'](_0x1d2cb3);for(const _0x15973c of _0x110916)_0x15973c['detach']();});});for(const _0x423e85 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4f1945=_0x45892b['commands']['get'](_0x423e85);_0x4f1945['on']('set:isEnabled',(_0x4c05c8,_0x412270,_0x47a886)=>{if(_0x47a886){const _0xb4f67=_0x45892b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3a475c=>_0x3a475c['is']('element','tableCell'));this['_areMergableCells'](_0x4f1945['value'],_0xb4f67)||(_0x4c05c8['return']=!0x1,_0x4c05c8['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x289255=this['editor']['commands']['get']('mergeTableCells'),_0x436cbc=this['editor']['plugins']['get']('TableUtils');if(!_0x289255['isEnabled'])return!0x1;const _0x820d34=_0x436cbc['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x419d24 of _0x820d34)for(const _0x3cf54e of _0x820d34)if(_0x419d24!=_0x3cf54e&&!this['_areMergableCells'](_0x419d24,_0x3cf54e))return!0x1;return!0x0;}['_areMergableCells'](_0xefc67d,_0x5e6350){const _0x51ea6a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x49e803=this['editor']['model']['createRangeOn'](_0xefc67d),_0x1ba39e=this['editor']['model']['createRangeOn'](_0x5e6350),_0x210fbf=new Set(),_0x29717b=new Set();for(const _0x12d48b of _0x51ea6a['getSuggestions']())if(('insertion'==_0x12d48b['type']||'deletion'==_0x12d48b['type']||'mergeTableCells'==_0x12d48b['subType'])&&_0x12d48b['isInContent']){for(const _0x4a9d40 of _0x12d48b['getRanges']())_0x4a9d40['containsRange'](_0x49e803,!0x0)&&_0x210fbf['add'](_0x12d48b['type']+':'+_0x12d48b['author']['id']),_0x4a9d40['containsRange'](_0x1ba39e,!0x0)&&_0x29717b['add'](_0x12d48b['type']+':'+_0x12d48b['author']['id']);}if(_0x210fbf['size']!=_0x29717b['size'])return!0x1;for(const _0x1ea144 of _0x210fbf)if(!_0x29717b['has'](_0x1ea144))return!0x1;return!0x0;}}class TrackChangesTableHeadings extends _0x1b042a{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x130049=this['editor'];if(!_0x130049['plugins']['has']('TableEditing'))return;const _0x14dd42=_0x130049['locale'],_0x48cdb1=_0x130049['plugins']['get']('TrackChangesEditing');_0x48cdb1['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x48cdb1['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x48cdb1['descriptionFactory']['registerAttributeLabel']('headingRows',Tt(_0x14dd42,'FORMAT_HEADER_ROW')),_0x48cdb1['descriptionFactory']['registerAttributeLabel']('headingColumns',Tt(_0x14dd42,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4c1242=this['editor']['plugins']['get']('TrackChangesEditing'),_0x208744=this['editor']['plugins']['get'](TrackChangesTable)['_acceptFormatSuggestionCallbackFactory']();_0x4c1242['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x208744),_0x4c1242['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x208744),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x390a5d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26cc69=this['editor']['plugins']['get']('TableUtils');function _0xaa94c5({showActiveMarker:_0x2c000b=!0x0,setDataAttribute:_0x5a9c2e=!0x0}={}){return(_0x2ddcdc,_0x50ef30,_0x366adc)=>{const {type:_0x2f60d2,id:_0x31690c}=_0x11d9f0(_0x50ef30['markerName']);if(!_0x390a5d['hasSuggestion'](_0x31690c))return;const _0x53cf3a=_0x390a5d['getSuggestion'](_0x31690c),_0x5e7cc6=_0x53cf3a['data'];if('formatBlock'!=_0x53cf3a['type']||!_0x5e7cc6||'setTableColumnHeader'!=_0x5e7cc6['commandName'])return;if(_0x50ef30['item'])return void _0x2ddcdc['stop']();if(!_0x366adc['consumable']['consume'](_0x50ef30['markerRange'],_0x2ddcdc['name']))return;const _0x2c59a2=_0x50ef30['markerRange']['start']['nodeAfter'],_0x1ef3bd=_0x50ef30['markerRange']['end']['nodeBefore'],_0x855fb3=_0x2c59a2['parent']['parent'],{column:_0x5c9896}=_0x26cc69['getCellLocation'](_0x2c59a2),{column:_0x3c2760}=_0x26cc69['getCellLocation'](_0x1ef3bd);for(let _0x242df9=_0x5c9896;_0x242df9<=_0x3c2760;_0x242df9++){const _0x59160a=_0x26cc69['createTableWalker'](_0x855fb3,{'column':_0x242df9,'includeAllSlots':!0x1});for(const _0x3819de of _0x59160a){const _0x18670c=_0x3819de['cell'],_0x5add0a=_0x366adc['mapper']['toViewElement'](_0x18670c);_0x366adc['writer']['addClass']('ck-suggestion-marker-'+_0x2f60d2,_0x5add0a),_0x5a9c2e&&_0x366adc['writer']['setAttribute']('data-suggestion',_0x31690c,_0x5add0a),_0x366adc['mapper']['bindElementToMarker'](_0x5add0a,_0x50ef30['markerName']),_0x2c000b&&(_0x390a5d['activeMarkers']['includes'](_0x50ef30['markerName'])?_0x366adc['writer']['addClass']('ck-suggestion-marker--active',_0x5add0a):_0x366adc['writer']['removeClass']('ck-suggestion-marker--active',_0x5add0a));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xaa94c5(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x423c8f,_0x44a3ef,_0x49b125)=>{_0x49b125['options']['showSuggestionHighlights']&&_0xaa94c5({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x423c8f,_0x44a3ef,_0x49b125);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x54aa78,_0x38394e,_0x5df0be)=>{const {type:_0x5acec5,id:_0x25a795}=_0x11d9f0(_0x38394e['markerName']);if(!_0x390a5d['hasSuggestion'](_0x25a795))return;const _0x41779e=_0x390a5d['getSuggestion'](_0x25a795),_0x4ab6f3=_0x41779e['data'];if('formatBlock'!=_0x41779e['type']||!_0x4ab6f3||'setTableColumnHeader'!=_0x4ab6f3['commandName'])return;const _0x3af0b6=_0x5df0be['mapper']['markerNameToElements'](_0x38394e['markerName']);if(_0x3af0b6){for(const _0x2e2020 of _0x3af0b6)_0x5df0be['writer']['removeClass']('ck-suggestion-marker-'+_0x5acec5,_0x2e2020),_0x5df0be['writer']['removeClass']('ck-suggestion-marker--active',_0x2e2020),_0x5df0be['writer']['removeAttribute']('data-suggestion',_0x2e2020),_0x5df0be['mapper']['unbindElementFromMarkerName'](_0x2e2020,_0x38394e['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x5d615f=this['editor'],_0x3bdace=_0x5d615f['locale'];function _0x2982cd(_0x27fde9){return{'type':'format','content':Tt(_0x3bdace,'*Format:*\x20%0',_0x27fde9)};}_0x5d615f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16d3a3=>{if('formatBlock'!=_0x16d3a3['type'])return;const {data:_0x92084f}=_0x16d3a3;if(_0x92084f){if('setTableRowHeader'==_0x92084f['commandName']){const _0x33e0da=_0x92084f['commandParams'][0x0]['forceValue'];return _0x2982cd(Tt(_0x3bdace,_0x33e0da?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x92084f['commandName']){const _0x4e7ebe=_0x92084f['commandParams'][0x0]['forceValue'];return _0x2982cd(Tt(_0x3bdace,_0x4e7ebe?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class TrackChangesTableFooters extends _0x1b042a{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x65aa94=this['editor'];if(!_0x65aa94['plugins']['has']('TableEditing')||!_0x65aa94['config']['get']('table.enableFooters'))return;const _0x37189c=_0x65aa94['locale'],_0x1ee498=_0x65aa94['plugins']['get']('TrackChangesEditing');_0x1ee498['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x1ee498['descriptionFactory']['registerAttributeLabel']('footerRows',Tt(_0x37189c,'FORMAT_FOOTER_ROW'));}}class TrackChangesTableLayout extends _0x1b042a{['afterInit'](){const _0x2a1867=this['editor'],_0x5c9e32=_0x2a1867['locale'],_0x379f31=_0x2a1867['plugins']['get']('TrackChangesEditing');function _0x54a1e9(_0x1c3a0a){return{'type':'format','content':''+Tt(_0x5c9e32,'*Set\x20table\x20type:*\x20%0',_0x1c3a0a)};}_0x2a1867['plugins']['has']('TableLayout')&&(_0x379f31['enableCommand']('insertTableLayout'),_0x379f31['enableDefaultAttributesIntegration']('tableType'),_0x379f31['descriptionFactory']['registerElementLabel'](_0x3e4ff7=>_0x3e4ff7['is']('element','table')&&'layout'===_0x3e4ff7['getAttribute']('tableType'),_0x196271=>Tt(_0x5c9e32,'ELEMENT_LAYOUT_TABLE',_0x196271)),_0x379f31['descriptionFactory']['registerDescriptionCallback'](_0x1fc674=>{const {data:_0x1ce262}=_0x1fc674;if(_0x1ce262&&'tableType'==_0x1ce262['key'])switch(_0x1ce262['newValue']){case'layout':return _0x54a1e9(Tt(_0x5c9e32,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x54a1e9(Tt(_0x5c9e32,'ELEMENT_CONTENT_TABLE'));}}));}}const Mt=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ot=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Mt['map'](_0x1f105c=>[_0x1f105c,null]));class TrackChangesTableClipboard extends _0x1b042a{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x29da81=this['editor'];if(!_0x29da81['plugins']['has']('TableClipboard'))return;const _0x396fac=_0x29da81['plugins']['get']('TrackChangesEditing'),_0xd5d9a5=_0x29da81['plugins']['get']('TableUtils'),_0xcfa4e9=_0x29da81['plugins']['get'](TrackChangesTable),_0x3a499c=_0x29da81['plugins']['get']('TableClipboard'),_0x2bfdf4=_0x29da81['plugins']['get']('TableSelection'),_0x3027df=_0x29da81['plugins']['get'](ut);_0xcfa4e9['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x29da81['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x29da81['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x103947=null,_0xb7de97=!0x1;_0x3027df['on']('contentInsertion',(_0x58ec65,_0x40ec95)=>{_0xb7de97='paste'===_0x40ec95['method'];}),_0x29da81['model']['on']('insertContent',(_0x1e16b9,_0x21df69)=>{if(!_0xb7de97&&null===_0x2bfdf4['getSelectedTableCells']())return;const [_0x566f0c,_0x2423b9]=_0x21df69,_0x555a3e=_0x21df69[_0x21df69['length']-0x1];_0x555a3e&&_0x555a3e['forceDefaultExecution']||_0x396fac['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x475d04,_0x4fe03f,_0x2485e6,_0x44215e,_0x388038){if(_0x4fe03f&&!_0x4fe03f['is']('documentSelection'))return!0x1;const _0x18bd91=_0x388038['getTableIfOnlyTableInContent'](_0x475d04,_0x2485e6);if(!_0x18bd91||!Bt(_0x18bd91,void 0x0,_0x44215e))return!0x1;const _0x5f6899=_0x44215e['getSelectionAffectedTableCells'](_0x2485e6['document']['selection']);if(!_0x5f6899['length'])return!0x1;const _0x1571c3=_0x5f6899[0x0]['findAncestor']('table'),_0x5ba463=_0x44215e['getRowIndexes'](_0x5f6899),_0xa04f53=_0x44215e['getColumnIndexes'](_0x5f6899),_0x324e59={'startRow':_0x5ba463['first'],'endRow':_0x5ba463['last'],'startColumn':_0xa04f53['first'],'endColumn':_0xa04f53['last']};return 0x1==_0x5f6899['length']&&(_0x324e59['endRow']+=_0x44215e['getRows'](_0x18bd91)-0x1,_0x324e59['endColumn']+=_0x44215e['getColumns'](_0x18bd91)-0x1),Bt(_0x1571c3,_0x324e59,_0x44215e);}(_0x566f0c,_0x2423b9,_0x29da81['model'],_0xd5d9a5,_0x3a499c)&&(_0x1e16b9['stop'](),_0x103947={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x29da81['model']['change'](()=>{_0x29da81['model']['insertContent'](_0x21df69[0x0],_0x21df69[0x1],_0x21df69[0x2],{'forceDefaultExecution':!0x0});const _0x46cbd1=_0x2375fd(),{rowInsertionRanges:_0x24ff2f,columnInsertionRanges:_0x6fa9e7,insertionRanges:_0x373fbc,deletionRanges:_0x172b76,cells:_0x14767e}=_0x103947;_0x24ff2f['length']&&_0x396fac['markMultiRangeInsertion'](_0x24ff2f,'tablePasteRow',{'tablePasteChainId':_0x46cbd1}),_0x6fa9e7['length']&&_0x396fac['markMultiRangeInsertion'](_0x6fa9e7,'tablePasteColumn',{'tablePasteChainId':_0x46cbd1}),_0x373fbc['length']&&(_0x396fac['markMultiRangeInsertion'](_0x373fbc,'tablePaste',{'tablePasteChainId':_0x46cbd1,'skipNestingCheck':!0x0}),_0x373fbc['forEach'](_0xdcf317=>_0xdcf317['detach']?.())),_0x172b76['length']&&(_0x396fac['markMultiRangeDeletion'](_0x172b76,'tablePaste',{'tablePasteChainId':_0x46cbd1,'skipNestingCheck':!0x0}),_0x172b76['forEach'](_0x2a28f9=>_0x2a28f9['detach']?.()));const _0x2af521=_0x396fac['markMultiRangeBlockFormat'](_0x14767e['map'](({element:_0x2af2de})=>_0x2af2de),{'formatGroupId':_0x2375fd()},[],'tablePasteCell',{'tablePasteChainId':_0x46cbd1});if(_0x2af521){const _0x3c6907=_0x2af521['getMarkers'](),_0x50c398=[];for(const {element:_0x509e49,attributes:_0xc2f5ff}of _0x14767e){if(!_0xc2f5ff)continue;const _0x3ac1ab=_0x29da81['model']['createRangeOn'](_0x509e49),_0x43ba51=_0x3c6907['find'](_0x2d0d4d=>_0x2d0d4d['getRange']()['isEqual'](_0x3ac1ab));_0x43ba51&&_0x50c398['push']([_0x43ba51['name'],_0xc2f5ff]);}_0x50c398['length']&&_0x2af521['setAttribute']('markerAttributes',Object['fromEntries'](_0x50c398));}_0x103947=null;}));},{'priority':_0x196bca['high']+0xa}),_0x3027df['on']('contentInsertion',()=>{_0xb7de97=!0x1;},{'priority':'lowest'}),_0x29da81['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x46b9c6,_0x3dba1b)=>{const [_0xe31141,_0x29d91c,,_0xef841b]=_0x3dba1b;if(!_0x103947)return;_0x46b9c6['stop']();const _0x12655c=_0xe31141['cell'],_0xd5eb75=_0x29d91c,_0xed7171=wt(_0x12655c),_0x4ee551=wt(_0xd5eb75);_0x46b9c6['return']=_0x12655c;let _0x4c2ae5=null,_0x35868c=null;if(_0x4ee551||_0xed7171){if(_0xed7171&&!_0x4ee551){_0xef841b['remove'](_0x12655c['getChild'](0x0));for(const _0xe95453 of Array['from'](_0xd5eb75['getChildren']()))_0xef841b['insert'](_0xe95453,_0x12655c,'end');const _0x224ffe=_0x103947['rowInsertionIndexes']['includes'](_0xe31141['row']),_0x423ae3=_0x103947['columnInsertionIndexes']['includes'](_0xe31141['column']);_0x224ffe||_0x423ae3||(_0x4c2ae5=_0x4099e3['fromRange'](_0xef841b['createRangeIn'](_0x12655c)));}else _0x4ee551&&!_0xed7171&&(_0x35868c=_0xef841b['createRangeIn'](_0x12655c));}else{const _0x1fec05=_0xef841b['createElement']('tableCellSuggestion'),_0x386a8a=_0xef841b['createElement']('tableCellSuggestion');_0xef841b['wrap'](_0xef841b['createRangeIn'](_0x12655c),_0x386a8a),_0xef841b['insert'](_0x1fec05,_0x12655c,0x0);for(const _0x587a14 of Array['from'](_0xd5eb75['getChildren']()))_0xef841b['insert'](_0x587a14,_0x1fec05,'end');_0x4c2ae5=_0x4099e3['fromRange'](_0xef841b['createRangeOn'](_0x1fec05)),_0x35868c=_0x4099e3['fromRange'](_0xef841b['createRangeOn'](_0x386a8a));}const _0x409643=Array['from'](_0xd5eb75['getAttributes']())['filter'](([_0x389bd6])=>Mt['includes'](_0x389bd6));_0x103947['cells']['push']({'element':_0x12655c,'attributes':_0x409643['length']?Object['fromEntries'](_0x409643):null}),_0x4c2ae5&&_0x103947['insertionRanges']['push'](_0x4c2ae5),_0x35868c&&_0x103947['deletionRanges']['push'](_0x35868c);},{'priority':'high'}),_0xd5d9a5['on']('insertColumns',(_0x19fe60,_0x53b30d)=>{const [_0x114668,_0x5db119={}]=_0x53b30d;if(!_0x103947)return;const _0x2fbda2=_0x5db119['at']||0x0,_0x60a342=_0x5db119['columns']||0x1;_0x103947['columnInsertionIndexes']=new Array(_0x60a342)['fill'](_0x2fbda2)['map']((_0x2f339e,_0x3b5fd8)=>_0x2f339e+_0x3b5fd8);for(const {cell:_0x401092}of _0xd5d9a5['createTableWalker'](_0x114668,{'startColumn':_0x2fbda2,'endColumn':_0x2fbda2+_0x60a342-0x1}))_0x103947['columnInsertionRanges']['push'](_0x29da81['model']['createRangeOn'](_0x401092));},{'priority':'low'}),_0xd5d9a5['on']('insertRows',(_0x3658ef,_0x59b156)=>{const [_0x237297,_0x1733db={}]=_0x59b156;if(!_0x103947)return;const _0x2b7371=_0x1733db['at']||0x0,_0x260def=_0x1733db['rows']||0x1;_0x103947['rowInsertionIndexes']=new Array(_0x260def)['fill'](_0x2b7371)['map']((_0x21279c,_0x18755e)=>_0x21279c+_0x18755e);for(const {cell:_0x1b15d7}of _0xd5d9a5['createTableWalker'](_0x237297,{'startRow':_0x2b7371,'endRow':_0x2b7371+_0x260def-0x1}))_0x103947['rowInsertionRanges']['push'](_0x29da81['model']['createRangeOn'](_0x1b15d7));},{'priority':'low'}),_0x396fac['descriptionFactory']['registerDescriptionCallback'](_0x3fef22=>{if(_0x3fef22['subType']&&_0x3fef22['subType']['startsWith']('tablePaste'))return _0x3fef22['previous']?{}:{'type':'insertion','content':Tt(_0x29da81['locale'],'*Replace\x20table\x20cells*')};});const _0x45e7b7=()=>!0x1;for(const _0x41d2b1 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x396fac['_suggestionFactory']['registerCustomCallback']('insertion',_0x41d2b1,'join',_0x45e7b7),_0x396fac['_suggestionFactory']['registerCustomCallback']('deletion',_0x41d2b1,'join',_0x45e7b7),_0x396fac['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x41d2b1,'join',_0x45e7b7);_0x396fac['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x45e7b7),_0x396fac['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x456b8c,_0x426ef6,_0x115c6c)=>{const _0x1cf1e8=_0x456b8c['map'](_0x379b92=>_0x379b92['getContainedElement']())['filter'](_0x5cacf6=>_0x5cacf6),_0x5401b7=new Map(_0x1cf1e8['map'](_0x3ed0c7=>[_0x3ed0c7,null]));if(_0x103947){for(const {element:_0x4f735b,attributes:_0x322d60}of _0x103947['cells'])_0x322d60&&_0x5401b7['set'](_0x4f735b,_0x322d60);}else{if(_0x115c6c&&_0x115c6c['markerAttributes'])for(const [_0x46c8f9,_0x25f6ee]of Object['entries'](_0x115c6c['markerAttributes'])){const _0x2b943a=_0x29da81['model']['markers']['get'](_0x46c8f9),_0x525374=_0x2b943a?_0x2b943a['getRange']()['getContainedElement']():null;_0x525374&&_0x5401b7['set'](_0x525374,_0x25f6ee);}}_0x29da81['model']['change'](_0x1ad13c=>{for(const [_0x3c0407,_0x10e24d]of _0x5401b7)_0x1ad13c['setAttributes']({...Ot,..._0x10e24d},_0x3c0407);});});const _0x31b4dc=(_0x48e9eb,_0x3c3fa1)=>{_0x396fac['_suggestionFactory']['registerCustomCallback'](_0x48e9eb,'tablePaste',_0x3c3fa1,(_0x3c5028,_0x30b8ca,_0x36c1e7)=>{_0x29da81['model']['change'](_0x55490c=>{const _0x2a1eb8=[];for(const _0x6d0b19 of _0x3c5028){const _0x344035=_0x6d0b19['start']['nodeAfter'];_0x344035['is']('element','tableCellSuggestion')&&_0x2a1eb8['push'](_0x344035);}_0x396fac['_suggestionFactory']['getSuggestionCallback'](_0x48e9eb,null,_0x3c3fa1)(_0x3c5028,_0x30b8ca,_0x36c1e7);for(const _0x129b37 of _0x2a1eb8)'$graveyard'!=_0x129b37['root']['rootName']&&_0x55490c['unwrap'](_0x129b37);});});};_0x31b4dc('insertion','accept'),_0x31b4dc('insertion','discard'),_0x31b4dc('deletion','accept'),_0x31b4dc('deletion','discard'),_0x396fac['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4eb5e6=>{const _0x5ba511=_0x4eb5e6['map'](_0x2fcdf8=>_0x2fcdf8['getContainedElement']()),_0x5d8ee7=_0x5ba511[0x0]['findAncestor']('table'),{minRow:_0x2f6948,maxRow:_0x13980b}=_0xcfa4e9['_getCoordsForCells'](_0x5ba511);_0xd5d9a5['removeRows'](_0x5d8ee7,{'at':_0x2f6948,'rows':_0x13980b-_0x2f6948+0x1});}),_0x396fac['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x14ec70=>{const _0x2f0ed0=_0x14ec70['map'](_0x59ed68=>_0x59ed68['getContainedElement']()),_0x173494=_0x2f0ed0[0x0]['findAncestor']('table'),{minColumn:_0x3817b8,maxColumn:_0x1ed605}=_0xcfa4e9['_getCoordsForCells'](_0x2f0ed0);_0xd5d9a5['removeColumns'](_0x173494,{'at':_0x3817b8,'columns':_0x1ed605-_0x3817b8+0x1});});const _0xb3f952=(_0x22c62a,_0xe05ff)=>{if(!_0xe05ff['subType']||!_0xe05ff['subType']['startsWith']('tablePaste'))return;const _0x38448b=_0xe05ff['attributes']['tablePasteChainId'],_0x177f85=_0x396fac['getSuggestions']()['filter'](_0x10ea66=>_0x10ea66['isInContent']&&_0x10ea66['attributes']&&_0x10ea66['attributes']['tablePasteChainId']==_0x38448b);_0x177f85['length']&&_0xe05ff['getAllAdjacentSuggestions']()['length']!=_0x177f85['length']&&_0x177f85['reduce']((_0x11b30b,_0x25a056)=>(_0x11b30b['next']=_0x25a056,_0x25a056['previous']=_0x11b30b,_0x25a056));};function _0x56677d(_0x14f9c5,_0x1f2058=!0x0){const {id:_0x3708fb,authorId:_0x16c248}=_0x11d9f0(_0x14f9c5['markerName']),_0x3651a0=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5f1d50=_0x396fac['activeMarkers']['includes'](_0x14f9c5['markerName']);return _0x5f1d50&&_0x3651a0['push']('ck-suggestion-marker--active'),{'classes':_0x3651a0,'attributes':{'data-suggestion':_0x3708fb,'data-author-id':_0x16c248},'priority':_0x5f1d50&&_0x1f2058?0xbc2:0xbb8};}_0x396fac['on']('suggestionLoaded',_0xb3f952,{'priority':'high'}),_0x396fac['on']('suggestionUnloaded',_0xb3f952,{'priority':'high'}),_0x29da81['model']['document']['registerPostFixer'](()=>{let _0x3f60d6=!0x1;const _0x21bba7=Array['from'](_0x29da81['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1364c8,data:_0x185fe3}of _0x21bba7){const {group:_0x286190,type:_0x139a45,id:_0x1c9cb6}=_0x11d9f0(_0x1364c8);if('suggestion'!=_0x286190||'deletion'!=_0x139a45||_0x185fe3['oldRange'])continue;if(!_0x396fac['hasSuggestion'](_0x1c9cb6))continue;const _0x202c95=_0x396fac['getSuggestion'](_0x1c9cb6)['getRanges'](),_0x54487b=_0x29da81['plugins']['get']('Users')['me'];for(const _0x925eb9 of _0x396fac['getSuggestions']()){if(!_0x925eb9['isInContent']||_0x925eb9['author']!=_0x54487b)continue;if('formatBlock'!=_0x925eb9['type']||'tablePasteCell'!=_0x925eb9['subType'])continue;if(_0x925eb9['getRanges']()['every'](_0x41fa3d=>_0x202c95['some'](_0x40adf1=>_0x40adf1['containsRange'](_0x41fa3d,!0x0)))){for(const _0x26037d of _0x925eb9['getAllAdjacentSuggestions']())_0x26037d['isInContent']&&(_0x26037d['discard'](),_0x3f60d6=!0x0);}}}return _0x3f60d6;}),_0x29da81['model']['document']['registerPostFixer'](_0x5db2b1=>{const _0x5275b4=_0x29da81['commands']['get']('redo');if(!_0x5275b4||!_0x5275b4['_createdBatches']['has'](_0x5db2b1['batch']))return!0x1;let _0x3bc172=!0x1;const _0x34402a=_0x29da81['plugins']['get']('Users')['me'],_0xd91128=_0x29da81['model']['document']['differ']['getChanges'](),_0x30bc7d=Array['from'](_0x29da81['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3c1ee2,data:_0x4c092d})=>{const {group:_0x1163b9,subType:_0x2ff7fc,authorId:_0x33c920}=_0x11d9f0(_0x3c1ee2);return'suggestion'==_0x1163b9&&'tablePaste'==_0x2ff7fc&&_0x33c920==_0x34402a['id']&&!_0x4c092d['oldRange'];});for(const _0x310389 of _0xd91128){if('insert'!=_0x310389['type']||'tableCellSuggestion'!=_0x310389['name']||0x1!=_0x310389['length'])continue;const _0x27535b=_0x5db2b1['createRange'](_0x310389['position'],_0x310389['position']['getShiftedBy'](0x1));if(!_0x30bc7d['find'](({data:_0x5d00d9})=>_0x5d00d9['newRange']['isEqual'](_0x27535b))){for(const {name:_0x54b567,data:_0x352cfd}of _0x30bc7d)if(_0x27535b['containsRange'](_0x352cfd['newRange'])){_0x5db2b1['updateMarker'](_0x54b567,{'range':_0x27535b}),_0x3bc172=!0x0;break;}}}return _0x3bc172;}),_0x29da81['model']['document']['registerPostFixer'](_0x41dab6=>{let _0x54f580=!0x1;const _0x342ef8=_0x29da81['plugins']['get']('Users')['me'],_0x577246=_0x396fac['getSuggestions']()['filter'](_0x220e86=>_0x220e86['isInContent']&&_0x220e86['author']==_0x342ef8),_0x34baa9=new Set(),_0x3f593e=new Set();for(const _0x235c20 of _0x577246)if('tablePaste'==_0x235c20['subType'])for(const _0x3bb436 of _0x235c20['getMarkers']()){const _0x44df04=_0x3bb436['getRange']()['getContainedElement']();if(_0x44df04){if(_0x44df04['is']('element','tableCellSuggestion')&&wt(_0x44df04)){_0x235c20['removeMarker'](_0x3bb436['name']),_0x34baa9['add'](_0x44df04),_0x54f580=!0x0;const _0x9a74c5=_0x44df04['nextSibling'],_0x4e2933=_0x44df04['previousSibling'],_0x51da84=_0x9a74c5&&_0x9a74c5['is']('element','tableCellSuggestion'),_0x24fe52=_0x4e2933&&_0x4e2933['is']('element','tableCellSuggestion');_0x51da84&&!_0x34baa9['has'](_0x9a74c5)&&_0x3f593e['add'](_0x9a74c5),_0x24fe52&&!_0x34baa9['has'](_0x4e2933)&&_0x3f593e['add'](_0x4e2933);}else _0x44df04['is']('element','paragraph')&&_0x44df04['isEmpty']&&(_0x235c20['removeMarker'](_0x3bb436['name']),_0x54f580=!0x0);}}else{if('tablePasteCell'==_0x235c20['subType']){if(!_0x235c20['attributes']||!_0x235c20['attributes']['tablePasteChainId'])continue;const _0x2f7a01=_0x235c20['attributes']['markerAttributes'];if(_0x2f7a01&&Object['keys'](_0x2f7a01)['length'])continue;const _0x14d758=_0x235c20['attributes']['tablePasteChainId'];let _0x39fcdd=!0x0,_0x28230e=!0x0;for(const _0x3256ca of _0x577246)if(_0x3256ca['subType']&&_0x3256ca['subType']['startsWith']('tablePaste')){if(!_0x3256ca['attributes']['tablePasteChainId']){_0x28230e=!0x1;break;}if(_0x3256ca['id']!=_0x235c20['id']&&_0x3256ca['attributes']['tablePasteChainId']==_0x14d758){_0x39fcdd=!0x1;break;}}_0x28230e&&_0x39fcdd&&(_0x235c20['removeMarkers'](),_0x54f580=!0x0);}}for(const _0x168e88 of _0x34baa9)_0x41dab6['remove'](_0x168e88);for(const _0x338148 of _0x3f593e)_0x41dab6['unwrap'](_0x338148);return _0x54f580;}),_0x29da81['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x579a81=>_0x56677d(_0x579a81),'converterPriority':'high'}),_0x29da81['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x459cab,_0x35db53)=>_0x35db53['options']['showSuggestionHighlights']?_0x56677d(_0x459cab,!0x1):null,'converterPriority':'high'});const _0x201f31=_0x29da81['editing']['view'];this['listenTo'](_0x201f31['document'],'clipboardOutput',(_0x5d40e7,_0x285bdf)=>{const _0x4dd20f=[];for(const _0x1078a8 of _0x201f31['createRangeIn'](_0x285bdf['content'])['getItems']())_0x1078a8['is']('element','suggestion-td')&&_0x4dd20f['push'](_0x1078a8);_0x201f31['change'](_0x412f84=>{for(const _0x34b648 of _0x4dd20f)_0x412f84['move'](_0x412f84['createRangeIn'](_0x34b648),_0x412f84['createPositionBefore'](_0x34b648)),_0x412f84['remove'](_0x34b648);});});}}function wt(_0x1e607a){if(_0x1e607a['isEmpty'])return!0x0;const _0x45e523=_0x1e607a['getChild'](0x0);return _0x45e523['is']('element','paragraph')&&_0x45e523['isEmpty'];}function Bt(_0xb2e30,_0x35e1a9={},_0x4d6869){for(const {isAnchor:_0x2ea261,cellHeight:_0x1dcfb8,cellWidth:_0x393a32}of _0x4d6869['createTableWalker'](_0xb2e30,{'includeAllSlots':!0x0,..._0x35e1a9}))if(!_0x2ea261||0x1!=_0x1dcfb8||0x1!=_0x393a32)return!0x1;return!0x0;}class TrackChangesTableColumnResize extends _0x1b042a{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2a72df=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a72df['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2a72df['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2a72df['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2a72df['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2a72df['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2a72df['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x12816c,_0x3a2ff1){const _0x5e7e93=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f7f75=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3ea94a=_0x3a2ff1['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xdcc690=_0x1f7f75['getColumnGroupElement'](_0x3ea94a);let _0x2acc75=_0xdcc690?_0x1f7f75['getTableColumnsWidths'](_0xdcc690):null,_0x2056dc=_0x3ea94a['getAttribute']('tableWidth')||null;const _0x568e95=_0x3a2ff1['tableWidth']||_0x2056dc,_0x6e4799=_0x3a2ff1['columnWidths']||_0x2acc75,_0x14fe4f=this['editor']['plugins']['get']('Users')['me'];for(const _0x1facd3 of _0x5e7e93['getSuggestions']()){const _0xa88725=_0x1facd3['getContainedElement']();if('resizeTable'===_0x1facd3['subType']&&_0xa88725===_0x3ea94a){_0x1facd3['author']!==_0x14fe4f&&_0x1facd3['discard']();const _0x52bc86=_0x1facd3['data']['commandParams'];_0x2056dc=_0x52bc86[0x0]['tableWidth'],_0x2acc75=_0x52bc86[0x0]['columnWidths'];break;}}_0x12816c({'table':_0x3ea94a,'tableWidth':_0x568e95,'columnWidths':_0x6e4799}),_0x5e7e93['markBlockFormat'](_0x3ea94a,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2056dc,'columnWidths':_0x2acc75}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x489527){if('formatBlock'!=_0x489527['type']&&'formatInline'!=_0x489527['type'])return;const {data:_0x4cfbd9}=_0x489527;if(_0x4cfbd9&&'resizeTable'===_0x4cfbd9['formatGroupId']){const _0x2bc323='*Format:*\x20resize\x20table';return{'type':'format','content':Tt(this['editor']['locale'],_0x2bc323)};}}}class TrackChangesTemplate extends _0x1b042a{['afterInit'](){const _0x3ff08c=this['editor'];_0x3ff08c['plugins']['has']('Template')&&_0x3ff08c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class TrackChangesTableOfContents extends _0x1b042a{['afterInit'](){const _0x5a164c=this['editor'];if(!_0x5a164c['commands']['get']('insertTableOfContents'))return;_0x5a164c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x47dc59=_0x5a164c['plugins']['get']('TrackChangesEditing'),_0x437388=_0x5a164c['locale'];_0x47dc59['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3cdb83=>Tt(_0x437388,'ELEMENT_TABLE_OF_CONTENTS',_0x3cdb83));}}class TrackChangesTitle extends _0x1b042a{['afterInit'](){const _0x38b0b7=this['editor'];if(!_0x38b0b7['plugins']['has']('Title'))return;_0x38b0b7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Tt(_0x38b0b7['locale'],'ELEMENT_TITLE')),_0x38b0b7['model']['document']['registerPostFixer'](_0x4e85cb=>{let _0x49ff05=!0x1;const _0x30baba=Array['from'](_0x38b0b7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xa3e6cd,data:_0xd021b2}of _0x30baba){const {group:_0x4be129}=_0x11d9f0(_0xa3e6cd);if('suggestion'!==_0x4be129||!_0xd021b2['newRange'])continue;const _0xb17fe9=_0xd021b2['newRange'],_0xd22517=_0xb17fe9['end']['nodeBefore'];if(!_0xd22517||!_0xd22517['is']('element','title-content'))continue;if(!_0xb17fe9['start']['isTouching'](_0xb17fe9['end']))continue;const _0x1073ef=_0x38b0b7['model']['schema']['getNearestSelectionRange'](_0xb17fe9['end'],'forward');if(_0x1073ef&&_0x1073ef['isCollapsed']){const _0x1c7b11=_0x4e85cb['createRange'](_0xb17fe9['start'],_0x1073ef['start']);_0x1c7b11['isEqual'](_0xb17fe9)||(_0x4e85cb['updateMarker'](_0xa3e6cd,{'range':_0x1c7b11}),_0x49ff05=!0x0);}_0x49ff05||(_0x4e85cb['removeMarker'](_0xa3e6cd),_0x49ff05=!0x0);}return _0x49ff05;});}}class TrackChangesUploadcare extends _0x1b042a{['afterInit'](){const _0x3e7223=this['editor'],_0x54bee4=_0x3e7223['plugins']['get']('TrackChangesEditing');_0x3e7223['plugins']['has']('Uploadcare')&&(_0x54bee4['enableCommand']('uploadcare'),_0x3e7223['plugins']['has']('UploadcareImageEdit')&&(_0x54bee4['enableCommand']('uploadcareImageEdit'),_0x54bee4['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x54bee4['descriptionFactory']['registerDescriptionCallback'](_0x455add=>{if('attribute'!=_0x455add['type'])return;const {data:_0x927bcc}=_0x455add;return _0x927bcc&&'uploadcareImageId'==_0x927bcc['key']?{'type':'format','content':''}:void 0x0;})));}}class TrackChangesUndo extends _0x1b042a{['afterInit'](){const _0x366795=this['editor'],_0x5ffe1f=_0x366795['plugins']['get']('TrackChangesEditing');_0x366795['plugins']['has']('UndoEditing')&&(_0x5ffe1f['enableCommand']('undo'),_0x5ffe1f['enableCommand']('redo'));}}class TrackChangesTableCaption extends _0x1b042a{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x2514c2=this['editor'];if(!_0x2514c2['plugins']['has']('TableCaptionEditing'))return;_0x2514c2['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class TrackChangesTableProperties extends _0x1b042a{['tableProperties'];['tableCellProperties'];constructor(_0x338f60){super(_0x338f60),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellType'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x183389=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x51e702 of this['tableProperties'])_0x183389['enableCommand'](_0x51e702,(_0x3d1810,_0xd53aab)=>{const _0x24ff38=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x51e702,[_0x24ff38],this['tableProperties'],'tableProperties',_0x3d1810,_0xd53aab);});_0x183389['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x183389['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x183389['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x52c6ae,_0x15decf)=>this['handleDiscardAction'](this['tableProperties'],_0x52c6ae,_0x15decf)),_0x183389['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1cf705 of this['tableCellProperties'])this['editor']['commands']['get'](_0x1cf705)&&_0x183389['enableCommand'](_0x1cf705,(_0xde4289,_0x225fa2)=>{const _0x30d11c=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1cf705,_0x30d11c,this['tableCellProperties'],'tableCellProperties',_0xde4289,_0x225fa2);});_0x183389['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x183389['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x183389['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x51bc77,_0x4cec3e)=>this['handleDiscardAction'](this['tableCellProperties'],_0x51bc77,_0x4cec3e)),_0x183389['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x183389['descriptionFactory']['registerAttributeLabel']('tableCellType',Tt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x183389['descriptionFactory']['registerDescriptionCallback'](_0x19060a=>this['handleSuggestionDescription'](_0x19060a)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x76a6eb,_0x58b76d,_0xceace9,_0x2bb722,_0x18d874,_0x7f7b58){const _0x4fadce=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x7f7b58['batch'],()=>{for(const _0x5caef3 of _0x58b76d){if(this['_getSuggestion'](_0x5caef3,_0x2bb722))_0x18d874(_0x7f7b58);else{const _0x4f0a5b={};for(const _0x361846 of _0xceace9){const _0x5579db=_0x5caef3['getAttribute'](_0x361846);void 0x0!==_0x5579db&&(_0x4f0a5b[_0x361846]=_0x5579db);}_0x18d874(_0x7f7b58),_0x4fadce['markBlockFormat'](_0x5caef3,{'commandParams':[_0x4f0a5b]},[],_0x2bb722);}}});}['handleDiscardAction'](_0x3c802f,_0x4a7dd6,_0x19c356){const _0x135478=_0x4a7dd6[0x0]['start']['nodeAfter'],_0x496244=_0x19c356['commandParams'][0x0];this['editor']['model']['change'](_0x183aa5=>{for(const _0xb56076 of _0x3c802f)void 0x0!==_0x496244[_0xb56076]?_0x183aa5['setAttribute'](_0xb56076,_0x496244[_0xb56076],_0x135478):_0x183aa5['removeAttribute'](_0xb56076,_0x135478);});}['handleSuggestionDescription'](_0x1a066e){if(_0x1a066e['data'])switch(_0x1a066e['subType']){case'tableProperties':return{'type':'format','content':Tt(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':Tt(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0xfcf24b,_0x12ed27){const _0x47b9de=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x47caf0 of _0x47b9de['getSuggestions']({'skipNotAttached':!0x0})){const _0x40e300=_0x47caf0['getContainedElement']();if(_0x47caf0['subType']===_0x12ed27&&_0x40e300===_0xfcf24b)return _0x47caf0;}return null;}['_registerTablePropertiesAttributes'](){const _0x5bf045=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4e37ac=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x31a639 of _0x4e37ac){const _0x4e1a07=_0x31a639['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x5bf045['descriptionFactory']['registerAttributeLabel'](_0x31a639,Tt(this['editor']['locale'],'FORMAT_'+_0x4e1a07));}}}class TrackChangesLineHeight extends _0x1b042a{['afterInit'](){const _0x58570a=this['editor'];if(!_0x58570a['plugins']['has']('LineHeight'))return;const _0x16501d=_0x58570a['plugins']['get']('TrackChangesEditing'),_0x3321d4=_0x58570a['locale'];_0x16501d['enableDefaultAttributesIntegration']('lineHeight'),_0x16501d['descriptionFactory']['registerAttributeLabel']('lineHeight',Tt(_0x3321d4,'FORMAT_LINE_HEIGHT'));}}const Ft='$elementName';class TrackChangesEditing extends _0x1b042a{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x2e3e9f,_0x45f6b6,_0x97b95d,_0x5989c4,_0x56c137,TrackChangesAIAssistant,TrackChangesAI,TrackChangesAIQuickActions,TrackChangesAlignment,TrackChangesBasicStyles,TrackChangesBlockQuote,TrackChangesBookmark,TrackChangesCKBox,TrackChangesCaseChange,TrackChangesCodeBlock,TrackChangesComments,TrackChangesDeleteCommand,TrackChangesEmoji,TrackChangesEnterCommand,TrackChangesFindAndReplace,TrackChangesFont,TrackChangesFootnotes,TrackChangesFormatPainter,TrackChangesHeading,TrackChangesHighlight,TrackChangesHorizontalLine,TrackChangesHtmlEmbed,TrackChangesImage,TrackChangesImageStyle,TrackChangesImageReplace,TrackChangesImportWord,TrackChangesIndent,TrackChangesInputCommand,TrackChangesLegacyList,TrackChangesLegacyListProperties,TrackChangesMultiLevelList,TrackChangesLink,TrackChangesList,TrackChangesLineHeight,TrackChangesDocumentListProperties,TrackChangesMediaEmbed,TrackChangesMention,TrackChangesMergeFields,TrackChangesPageBreak,TrackChangesParagraph,TrackChangesReplaceSourceCommand,TrackChangesRemoveFormat,TrackChangesRestrictedEditingMode,TrackChangesShiftEnterCommand,TrackChangesStandardEditingMode,TrackChangesStylesDropdown,TrackChangesTable,TrackChangesTableMergeSplit,TrackChangesTableHeadings,TrackChangesTableFooters,TrackChangesTableLayout,TrackChangesTableCaption,TrackChangesTableClipboard,TrackChangesTableColumnResize,TrackChangesTableOfContents,TrackChangesTableProperties,TrackChangesTemplate,TrackChangesTitle,TrackChangesUploadcare,TrackChangesUndo];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4fc701){super(_0x4fc701),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4b6313,_0x10735b,_0x1a9d00,_0x3e3ce9)=>{this['_model']['change'](()=>{for(const _0x237748 of[..._0x3e3ce9,..._0x1a9d00])this['_model']['markers']['has'](_0x237748)&&_0x4fc701['editing']['reconvertMarker'](_0x237748);});}),this['descriptionFactory']=new SuggestionDescriptionFactory(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new SuggestionFactory(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4fc701['plugins']['get'](_0x2e3e9f),this['_suggestionsConversion']=_0x4fc701['plugins']['get'](_0x45f6b6),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x4fc701['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4fc701['config']['get']('trackChanges.trackFormatChanges'),_0x4fc701['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4fc701['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new TrackChangesCommand(_0x4fc701,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3950f6=this['editor'];_0x3950f6['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x404ef0,{writer:_0x3fbe08})=>{let _0x2b5abc='suggestion:'+_0x404ef0['getAttribute']('suggestion-type')+':'+_0x404ef0['getAttribute']('id');return _0x404ef0['getAttribute']('marker-count')&&(_0x2b5abc+=':'+_0x404ef0['getAttribute']('marker-count')),_0x3fbe08['createElement']('$marker',{'data-name':_0x2b5abc});}}),_0x3950f6['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3950f6['model']['document']['registerPostFixer'](_0x8fa03a=>{let _0x2993cd=!0x1;const _0x39b5a2=Array['from'](_0x3950f6['model']['document']['differ']['getChangedMarkers']()),_0x5c834f=new Set();for(const {name:_0x230eb5,data:_0x2d7e10}of _0x39b5a2){const {group:_0x4fc82c,type:_0x563732,subType:_0xb921db,id:_0x230b3b}=_0x11d9f0(_0x230eb5);if('suggestion'!==_0x4fc82c)continue;const _0x25d756=_0xb921db?'suggestion:'+_0x563732+':'+_0xb921db+':'+_0x230b3b:'suggestion:'+_0x563732+':'+_0x230b3b,_0x4e75a0=_0x3950f6['model']['markers']['getMarkersGroup'](_0x25d756),_0x51b8fe=_0x3950f6['model']['markers']['get'](_0x230eb5),_0x585361=this['_suggestions']['get'](_0x230b3b);if(null!=_0x2d7e10['newRange']){'formatInline'==_0x563732&&(_0x2993cd=_0x2993cd||xt(_0x2d7e10['newRange'],_0x230eb5,_0x8fa03a,_0x3950f6['model']['schema']));const _0x153ba9='attribute'==_0x563732&&this['_suggestionsConversion']['isBlockAttribute'](Xt(_0xb921db)),_0x5b868a='attribute'==_0x563732&&this['_suggestionsConversion']['isInlineAttribute'](Xt(_0xb921db));if(_0x2d7e10['newRange']['isCollapsed']||'$graveyard'==_0x2d7e10['newRange']['root']['rootName']||'formatBlock'==_0x563732&&!Ut(_0x2d7e10['newRange'])||_0x153ba9&&!Ut(_0x2d7e10['newRange'])||_0x5b868a&&Gt(_0x2d7e10['newRange'])||'deletion'==_0x563732&&Gt(_0x2d7e10['newRange'])||_0x51b8fe&&Ht(_0x51b8fe,_0x4e75a0))_0x8fa03a['removeMarker'](_0x230eb5),_0x2993cd=!0x0;else{if(!_0x585361||!_0x585361['isInContent'])continue;if(_0x2d7e10['newRange']&&_0x2d7e10['oldRange']&&_0x2d7e10['newRange']['isEqual'](_0x2d7e10['oldRange']))continue;_0x5c834f['add'](_0x585361);}}}return _0x5c834f['size']>0x0&&(_0x2993cd=!!this['_joinWithAdjacentSuggestions'](_0x5c834f)||_0x2993cd),_0x2993cd;}),_0x3950f6['model']['document']['registerPostFixer'](_0x374bd8=>{let _0x36fb11=!0x1;for(const _0x3e55f7 of _0x3950f6['model']['document']['differ']['getChanges']())if('insert'==_0x3e55f7['type'])for(const _0xf86afa of this['_suggestions']['values']()){if(_0xf86afa['isMultiRange']||!_0xf86afa['isInContent'])continue;const _0xd47558='formatBlock'==_0xf86afa['type'],_0x49bf24=this['_getAttributeKey'](_0xf86afa),_0x3ed618=_0x49bf24&&this['_suggestionsConversion']['isBlockAttribute'](_0x49bf24);if(!_0xd47558&&!_0x3ed618)continue;const _0x3d091d=_0xf86afa['getFirstRange']();if(_0x3d091d['start']['parent']!=_0x3d091d['end']['parent']&&!_0x3d091d['end']['isAtEnd']){const _0x5da805=_0x3950f6['model']['createPositionAt'](_0x3d091d['start']['nodeAfter'],'end'),_0x4425d8=_0x3950f6['model']['createRange'](_0x3d091d['start'],_0x5da805);_0x374bd8['updateMarker'](_0xf86afa['getFirstMarker'](),{'range':_0x4425d8}),_0x36fb11=!0x0;}}return _0x36fb11;}),_0x3950f6['model']['document']['registerPostFixer'](_0x37ac78=>this['_processAttributeChanges'](_0x37ac78)),_0x3950f6['model']['document']['registerPostFixer'](_0x677acc=>!_0x677acc['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x677acc)),_0x3950f6['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3950f6['model']['document']['on']('change:data',(_0x53f22f,_0x29dab9)=>{if(!_0x29dab9['isLocal']||_0x29dab9['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xaeaa47=_0x3950f6['model']['document']['differ']['getChanges']();if(0x0==_0xaeaa47['length'])return;const _0x5f220b=[],_0x125fc5=_0xaeaa47['filter'](_0x325b36=>'attribute'==_0x325b36['type']),_0x4d670c=_0xaeaa47['filter'](_0x5c9688=>'insert'==_0x5c9688['type']&&'$text'!=_0x5c9688['name']);for(const _0x4f4aa1 of _0x125fc5)this['_suggestionsConversion']['isRegisteredAttribute'](_0x4f4aa1['attributeKey'])&&_0x5f220b['push']({'key':_0x4f4aa1['attributeKey'],'newValue':_0x4f4aa1['attributeNewValue'],'oldValue':_0x4f4aa1['attributeOldValue'],'range':$t(_0x4f4aa1['range'],_0x3950f6['model'])});for(const _0x37e86d of _0x4d670c){if('rename'!=_0x37e86d['action']&&'refresh'!=_0x37e86d['action'])continue;const _0x21ff75=Vt(_0x37e86d['position']['nodeAfter'],_0x3950f6['model']),_0x32d3a9=_0x37e86d['before'];'rename'==_0x37e86d['action']&&_0x5f220b['push']({'key':Ft,'newValue':_0x37e86d['name'],'oldValue':_0x32d3a9['name'],'range':_0x21ff75});for(const [_0x23e630,_0x40a2f0]of _0x32d3a9['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x23e630))continue;const _0x3ba81d=_0x37e86d['attributes']['get'](_0x23e630);_0x40a2f0!==_0x3ba81d&&_0x5f220b['push']({'key':_0x23e630,'newValue':_0x3ba81d,'oldValue':_0x40a2f0,'range':_0x21ff75});}for(const [_0x1a1e63,_0x51eddb]of _0x37e86d['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x1a1e63)&&(_0x32d3a9['attributes']['has'](_0x1a1e63)||_0x5f220b['push']({'key':_0x1a1e63,'newValue':_0x51eddb,'oldValue':null,'range':_0x21ff75}));}0x0!=_0x5f220b['length']&&_0x3950f6['model']['enqueueChange'](_0x29dab9,_0x350983=>{const _0x588541=_0x2375fd();for(const {range:_0x233ff9,key:_0x2a53d8,oldValue:_0x51a9e8,newValue:_0xcdeb45}of _0x5f220b)this['markAttributeChange'](_0x233ff9,_0x2a53d8,_0x51a9e8,_0xcdeb45,{'groupId':_0x588541});this['_reduceExistingSuggestions'](_0x350983,_0x5f220b);});},{'priority':'lowest'}),_0x3950f6['model']['markers']['on']('update:suggestion',(_0x5a58a2,_0xa7c263,_0x38ade1)=>{if(null==_0x38ade1){const {id:_0x2743e2}=_0x11d9f0(_0xa7c263['name']),_0x535070=this['_suggestions']['get'](_0x2743e2);_0x535070&&_0x535070['addMarkerName'](_0xa7c263['name']);}}),_0x3950f6['model']['document']['on']('change:data',()=>{const _0x1a63be=Array['from'](_0x3950f6['model']['document']['differ']['getChangedMarkers']())['filter'](_0x514bf8=>'suggestion'===_0x11d9f0(_0x514bf8['name'])['group']);if(0x0===_0x1a63be['length'])return;_0x1a63be['sort']((_0x3177dd,_0x25d880)=>{const _0x9be03e=_0x3177dd['data']['oldRange'],_0x1f2e0c=_0x25d880['data']['oldRange'];return null===_0x9be03e&&null===_0x1f2e0c?0x0:null===_0x9be03e&&null!==_0x1f2e0c?-0x1:null!==_0x9be03e&&null===_0x1f2e0c?0x1:_0x9be03e['start']['isBefore'](_0x1f2e0c['start'])?-0x1:0x1;});const _0x364f62=new Set(),_0x5454d1=new Set();for(const {name:_0x48f88a,data:_0x4b9d0f}of _0x1a63be){const {id:_0x50faec}=_0x11d9f0(_0x48f88a);if(null===_0x4b9d0f['oldRange']){const _0x2096af=this['_handleNewSuggestionMarker'](_0x48f88a);_0x5454d1['add'](_0x2096af);}else{const _0x5e20c4=this['_suggestions']['get'](_0x50faec);null!==_0x4b9d0f['newRange']||_0x5e20c4['isInContent']?(_0x364f62['add'](_0x5e20c4['head']),_0x5454d1['add'](_0x5e20c4)):this['_removeSuggestion'](_0x5e20c4);}}_0x5454d1['size']>0x0&&this['_refreshSuggestionsChain'](_0x5454d1);for(const _0xae1e40 of _0x364f62)this['fire']('suggestionChanged',_0xae1e40);}),_0x3950f6['model']['on']('applyOperation',(_0x160222,_0x5f29cd)=>{const _0x508669=_0x5f29cd[0x0];if(!this['_suggestions']['size'])return;if(!_0x508669['isDocumentOperation'])return;if(_0x508669['batch']['isUndo']||!_0x508669['batch']['isLocal'])return;let _0x544872,_0x307226;switch(_0x508669['type']){case'insert':_0x544872=_0x3950f6['model']['createPositionAt'](_0x508669['position']),_0x307226=_0x544872['getShiftedBy'](_0x508669['howMany']);break;case'split':_0x544872=_0x3950f6['model']['createPositionAt'](_0x508669['splitPosition']),_0x307226=_0x3950f6['model']['createPositionAt'](_0x508669['moveTargetPosition']);break;case'move':_0x544872=_0x3950f6['model']['createPositionAt'](_0x508669['targetPosition']),_0x307226=_0x544872['getShiftedBy'](_0x508669['howMany']);break;default:return;}const _0xe3089c=_0x3950f6['model']['createRange'](_0x544872,_0x307226);_0x3950f6['model']['change'](()=>{for(const {suggestion:_0x9131ca,meta:_0x2f2c45}of this['_findSuggestions'](_0xe3089c)){if(_0x9131ca['isMultiRange'])continue;if('formatInline'==_0x9131ca['type'])continue;const _0x56b4ed=this['_getAttributeKey'](_0x9131ca);if(_0x56b4ed&&this['_suggestionsConversion']['isBlockAttribute'](_0x56b4ed)&&'split'!=_0x508669['type'])continue;const _0x2ad1e5=_0x9131ca['data']&&_0x9131ca['data']['multipleBlocks'];('formatBlock'!=_0x9131ca['type']||'split'==_0x508669['type']&&!_0x2ad1e5)&&(_0x2f2c45['containsRangeInObject']||'insertion'==_0x9131ca['type']&&_0x2f2c45['isOwn']||_0x9131ca['getFirstRange']()['containsRange'](_0xe3089c)&&this['_breakSuggestionMarker'](_0x9131ca,_0x544872,_0x307226));}});},{'priority':'lowest'}),_0x3950f6['model']['on']('deleteContent',(_0x68a5c1,_0x3b61c1)=>{const _0x524010=_0x3b61c1[0x0],_0x176868=_0x3b61c1[0x1];if(_0x176868&&_0x176868['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x524010['isCollapsed'])return;const _0x4b0feb=_0x3950f6['model']['schema'],{start:_0x41777f,end:_0x254ee9}=_0x524010['getFirstRange'](),_0x42765a=_0x41777f['nodeAfter']&&_0x4b0feb['isLimit'](_0x41777f['nodeAfter'])?null:_0x4b0feb['getNearestSelectionRange'](_0x41777f,'forward'),_0xb565a=_0x254ee9['nodeBefore']&&_0x4b0feb['isLimit'](_0x254ee9['nodeBefore'])?null:_0x4b0feb['getNearestSelectionRange'](_0x254ee9,'backward'),_0x445b7f=_0x3950f6['model']['createRange'](_0x42765a?_0x42765a['start']:_0x41777f,_0xb565a?_0xb565a['end']:_0x254ee9);_0x3950f6['model']['change'](_0x4f9cbf=>{this['markDeletion'](_0x445b7f);const _0x4b7409=_0x3950f6['model']['schema']['getNearestSelectionRange'](_0x445b7f['start']);_0x524010['is']('documentSelection')?_0x4f9cbf['setSelection'](_0x4b7409):_0x524010['setTo'](_0x4b7409);}),_0x68a5c1['stop']();},{'priority':_0x196bca['normal']+0xa}),_0x3950f6['model']['on']('insertContent',(_0x5421b4,_0x522404)=>{const _0x4f5480=_0x522404[_0x522404['length']-0x1];_0x4f5480&&_0x4f5480['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3950f6['model']['change'](()=>{let _0x3a1ee5=_0x3950f6['model']['insertContent'](_0x522404[0x0],_0x522404[0x1],_0x522404[0x2],{'forceDefaultExecution':!0x0});if(!_0x3a1ee5)return;_0x5421b4['return']=_0x3a1ee5['clone']();const _0x2818d6=_0x3a1ee5['end']['nodeBefore'],_0x34fb6e=_0x3950f6['model']['schema'];_0x2818d6&&_0x34fb6e['isBlock'](_0x2818d6)&&!_0x34fb6e['isObject'](_0x2818d6)&&(_0x3a1ee5=_0x3950f6['model']['createRange'](_0x3a1ee5['start'],_0x3950f6['model']['createPositionAt'](_0x2818d6,'end'))),this['markInsertion'](_0x3a1ee5);}),_0x5421b4['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2155a4=new AcceptSuggestionCommand(_0x3950f6,this['_suggestions']);_0x3950f6['commands']['add']('acceptSuggestion',_0x2155a4),this['enableCommand']('acceptSuggestion');const _0x49d167=new DiscardSuggestionCommand(_0x3950f6,this['_suggestions']);_0x3950f6['commands']['add']('discardSuggestion',_0x49d167),this['enableCommand']('discardSuggestion'),_0x3950f6['commands']['add']('acceptAllSuggestions',new ExecuteOnAllSuggestionsCommand(_0x3950f6,_0x2155a4,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3950f6['commands']['add']('discardAllSuggestions',new ExecuteOnAllSuggestionsCommand(_0x3950f6,_0x49d167,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3950f6['commands']['add']('acceptSelectedSuggestions',new ExecuteOnSelectedSuggestionsCommand(_0x3950f6,_0x2155a4,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3950f6['commands']['add']('discardSelectedSuggestions',new ExecuteOnSelectedSuggestionsCommand(_0x3950f6,_0x49d167,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1b1efc=_0x3950f6['plugins']['get'](_0x2e3e9f);this['listenTo'](_0x1b1efc,'addComment',(_0x578637,{threadId:_0x361f18})=>{const _0x34b33d=this['_suggestions']['get'](_0x361f18);_0x34b33d&&_0x34b33d['commentThread']&&0x1===_0x34b33d['commentThread']['length']&&this['_updateSuggestionData'](_0x361f18,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1b1efc,'removeComment',(_0x2bbf4c,{threadId:_0x55441c})=>{const _0x543a88=this['_suggestions']['get'](_0x55441c);_0x543a88&&_0x543a88['commentThread']&&!_0x543a88['commentThread']['length']&&this['_updateSuggestionData'](_0x55441c,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4c6516){const _0xd9fe31=_0x344bd9([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x424634=0x3d8d0df,_0x3c5ee5=0x3df5a8f^_0x424634,_0x485edc=window[_0x344bd9([0x44,0x61,0x74,0x65])][_0x344bd9([0x6e,0x6f,0x77])](),_0x54e333=_0x4c6516[_0x344bd9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3b45cb=new window[(_0x344bd9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x337075=>{_0x54e333[_0x344bd9([0x6f,0x6e,0x63,0x65])](_0x344bd9([0x72,0x65,0x61,0x64,0x79]),_0x337075);}),_0x5737f2={[_0x344bd9([0x6b,0x74,0x79])]:_0x344bd9([0x45,0x43]),[_0x344bd9([0x75,0x73,0x65])]:_0x344bd9([0x73,0x69,0x67]),[_0x344bd9([0x63,0x72,0x76])]:_0x344bd9([0x50,0x2d,0x32,0x35,0x36]),[_0x344bd9([0x78])]:_0x344bd9([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]),[_0x344bd9([0x79])]:_0x344bd9([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]),[_0x344bd9([0x61,0x6c,0x67])]:_0x344bd9([0x45,0x53,0x32,0x35,0x36])},_0x5f5901=_0x54e333[_0x344bd9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x344bd9([0x67,0x65,0x74])](_0x344bd9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x553b1d(){let _0x5f4530,_0x4f6f36=null,_0x8789e0=null;try{if(_0x5f5901==_0x344bd9([0x47,0x50,0x4c]))return _0x344bd9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5f4530=_0x354d5c(),!_0x5f4530)return _0x344bd9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5f4530[_0x344bd9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x8789e0=_0x39cabb(_0x5f4530[_0x344bd9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5f4530[_0x344bd9([0x6a,0x74,0x69])])),await _0x148d56()?_0x27c809()?_0x69ebd1()?_0x344bd9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1104b5()?(_0x5f4530[_0x344bd9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x344bd9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4f6f36=_0x24b4cb(_0x344bd9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x72e901()):_0x344bd9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x344bd9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x344bd9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x344bd9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x69ebd1(){const _0x1700a3=[_0x344bd9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x344bd9([0x74,0x72,0x69,0x61,0x6c])][_0x344bd9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f4530[_0x344bd9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x485edc/0x3e8:0xe10*_0x3c5ee5;return _0x5f4530[_0x344bd9([0x65,0x78,0x70])]<_0x1700a3;}function _0x27c809(){const _0x195223=_0x5f4530[_0x344bd9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x195223)return!0x1;if(_0x195223[_0x344bd9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x344bd9([0x2a])))return!0x0;if(_0x195223[_0x344bd9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x344bd9([0x54,0x43])))return!0x0;if(_0x195223[_0x344bd9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x344bd9([0x52,0x54,0x43]))){if(_0x531e8e())return!0x0;if(_0x4af15a()||_0x3b1761())return!0x0;}return!0x1;}function _0x1104b5(){const _0x2acc48=_0x5f4530[_0x344bd9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2acc48||0x0==_0x2acc48[_0x344bd9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x29d5ed}=new URL(window[_0x344bd9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2acc48[_0x344bd9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29d5ed))return!0x0;const _0x2fbad2=_0x29d5ed[_0x344bd9([0x73,0x70,0x6c,0x69,0x74])](_0x344bd9([0x2e]));return _0x2acc48[_0x344bd9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4cf370=>_0x4cf370[_0x344bd9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x344bd9([0x2a])))[_0x344bd9([0x6d,0x61,0x70])](_0x2a9c30=>_0x2a9c30[_0x344bd9([0x73,0x70,0x6c,0x69,0x74])](_0x344bd9([0x2e])))[_0x344bd9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x20ba1d=>_0x20ba1d[_0x344bd9([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2fbad2[_0x344bd9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x344bd9([0x6d,0x61,0x70])](_0x4446e7=>Array(_0x2fbad2[_0x344bd9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4446e7[_0x344bd9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x344bd9([0x66,0x69,0x6c,0x6c])](_0x4446e7[0x0]===_0x344bd9([0x2a])?_0x344bd9([0x2a]):'')[_0x344bd9([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4446e7))[_0x344bd9([0x73,0x6f,0x6d,0x65])](_0x59e93f=>_0x2fbad2[_0x344bd9([0x65,0x76,0x65,0x72,0x79])]((_0x1da52a,_0x563355)=>_0x59e93f[_0x563355]===_0x1da52a||_0x59e93f[_0x563355]===_0x344bd9([0x2a])));}function _0x72e901(){return _0x4f6f36&&_0x8789e0?new window[(_0x344bd9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x23e9a2,_0x12e014)=>{_0x4f6f36[_0x344bd9([0x74,0x68,0x65,0x6e])](_0x23e9a2,_0x12e014),_0x8789e0[_0x344bd9([0x74,0x68,0x65,0x6e])](_0x53bc07=>{_0x53bc07!=_0x344bd9([0x56,0x61,0x6c,0x69,0x64])&&_0x23e9a2(_0x53bc07);},_0x12e014);}):_0x4f6f36||_0x8789e0||_0x344bd9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x39cabb(_0x4f298,_0x52fc6d){return new window[(_0x344bd9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1722ff=>{if(_0x270876())return _0x1722ff(_0x344bd9([0x56,0x61,0x6c,0x69,0x64]));_0xed616d(),_0x54e333[_0x344bd9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x344bd9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x549722=!0x1;const _0x126eee=_0x2375fd();function _0x3b82d3(_0x3aa53c){return!!_0x3aa53c&&(typeof _0x3aa53c===_0x344bd9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3aa53c===_0x344bd9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3aa53c[_0x344bd9([0x74,0x68,0x65,0x6e])]===_0x344bd9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3aa53c[_0x344bd9([0x63,0x61,0x74,0x63,0x68])]===_0x344bd9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x38486a(_0x46f754){_0x15d20a(_0x46f754)[_0x344bd9([0x74,0x68,0x65,0x6e])](_0x2dd289=>{if(!_0x2dd289||_0x2dd289[_0x344bd9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x344bd9([0x6f,0x6b]))return _0x344bd9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x45e9ce(_0x12a30d(_0x126eee+_0x52fc6d))!=_0x2dd289[_0x344bd9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x344bd9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x344bd9([0x56,0x61,0x6c,0x69,0x64]);})[_0x344bd9([0x74,0x68,0x65,0x6e])](_0x35277b=>(_0x40b9c1(),_0x35277b),()=>{const _0x5349a2=_0x201a28();return null==_0x5349a2?(_0x40b9c1(),_0x344bd9([0x56,0x61,0x6c,0x69,0x64])):_0x344bd9(_0x485edc-_0x5349a2>(0x27d454df^_0x424634)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x344bd9([0x74,0x68,0x65,0x6e])](_0x1722ff)[_0x344bd9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1722ff(_0x344bd9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x7db14e=0x3ee3e5f^_0x424634;function _0x40b9c1(){const _0x5553aa=_0x344bd9([0x6c,0x6c,0x63,0x74,0x2d])+_0x45e9ce(_0x12a30d(_0x4f298)),_0x2ebb85=_0x2f8a82(_0x45e9ce(window[_0x344bd9([0x4d,0x61,0x74,0x68])][_0x344bd9([0x63,0x65,0x69,0x6c])](_0x485edc/_0x7db14e)));window[_0x344bd9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x344bd9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5553aa,_0x2ebb85);}function _0x201a28(){const _0x25bf41=_0x344bd9([0x6c,0x6c,0x63,0x74,0x2d])+_0x45e9ce(_0x12a30d(_0x4f298)),_0x12e7f2=window[_0x344bd9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x344bd9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x25bf41);return _0x12e7f2?window[_0x344bd9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f8a82(_0x12e7f2),0x10)*_0x7db14e:null;}function _0x15d20a(_0x4b751a){return new window[(_0x344bd9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x19f0cf,_0x2377e4)=>{_0x4b751a[_0x344bd9([0x74,0x68,0x65,0x6e])](_0x19f0cf,_0x2377e4),window[_0x344bd9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2377e4,0x3d9041f^_0x424634);});}}_0x54e333[_0x344bd9([0x6f,0x6e])](_0x344bd9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x459d1f,_0x5e913a)=>{if(_0x5e913a[0x0]!=_0x4f298)return _0x1722ff(_0x344bd9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5e913a[0x1]={..._0x5e913a[0x1],[_0x344bd9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x126eee};},{[_0x344bd9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x344bd9([0x68,0x69,0x67,0x68])}),_0x54e333[_0x344bd9([0x6f,0x6e])](_0x344bd9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x10c2b=>{_0x3b82d3(_0x10c2b[_0x344bd9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x549722=!0x0,_0x38486a(_0x10c2b[_0x344bd9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x344bd9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x344bd9([0x6c,0x6f,0x77])}),_0x3b45cb[_0x344bd9([0x74,0x68,0x65,0x6e])](()=>{_0x549722||_0x1722ff(_0x344bd9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x270876(){return _0x54e333[_0x344bd9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x344bd9([0x76,0x69,0x65,0x77])][_0x344bd9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x344bd9([0x61,0x75,0x74,0x6f]);}function _0xed616d(){_0x54e333[_0x344bd9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x344bd9([0x76,0x69,0x65,0x77])][_0x344bd9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x344bd9([0x61,0x75,0x74,0x6f]);}}function _0x24b4cb(_0x4469c3){const _0x15bbf5=[new window[(_0x344bd9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c3985=>setTimeout(_0x5c3985,0x3d1ee13^_0x424634)),_0x3b45cb[_0x344bd9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x344bd9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e8017=>{let _0x213a43=0x0;_0x54e333[_0x344bd9([0x6d,0x6f,0x64,0x65,0x6c])][_0x344bd9([0x6f,0x6e])](_0x344bd9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xac2d4e,_0x3cd3a6)=>{_0x3cd3a6[0x0][_0x344bd9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x213a43++,_0x213a43==(0x3d8d537^_0x424634)&&(_0x3e8017(),_0xac2d4e[_0x344bd9([0x6f,0x66,0x66])]());});}))];return window[_0x344bd9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x344bd9([0x72,0x61,0x63,0x65])](_0x15bbf5)[_0x344bd9([0x74,0x68,0x65,0x6e])](()=>_0x4469c3);}async function _0x29a9be(){await _0x3b45cb,_0x54e333[_0x344bd9([0x6d,0x6f,0x64,0x65,0x6c])][_0x344bd9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x10fa1f,_0x54e333[_0x344bd9([0x6d,0x6f,0x64,0x65,0x6c])][_0x344bd9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x10fa1f,_0x54e333[_0x344bd9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x344bd9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x531e8e(){return _0x336b21(_0x344bd9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x23c289(_0x344bd9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x344bd9([0x73,0x74,0x61,0x74,0x65])]==_0x344bd9([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4af15a(){return _0x336b21(_0x344bd9([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 _0x3b1761(){return _0x336b21(_0x344bd9([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3aacfc(_0x2decf6){const _0x2f09fc=_0x2dd492();_0x54e333[_0x2f09fc]=_0x344bd9([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2decf6,_0x2decf6!=_0x344bd9([0x56,0x61,0x6c,0x69,0x64])&&_0x29a9be();}function _0x2dd492(){const _0x212f07=window[_0x344bd9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x344bd9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x344bd9([0x6e,0x6f,0x77])]())[_0x344bd9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x344bd9([0x2e]),'');let _0x2c5b11=_0x344bd9([0x52]);for(let _0x38c212=0x0;_0x38c212<_0x212f07[_0x344bd9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x38c212+=0x2){let _0x382103=window[_0x344bd9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x212f07[_0x344bd9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x38c212,_0x38c212+0x2));_0x382103>=_0xd9fe31[_0x344bd9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x382103-=_0xd9fe31[_0x344bd9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2c5b11+=_0xd9fe31[_0x382103];}return _0x2c5b11;}function _0x354d5c(){const _0x118fdc=_0x5f5901[_0x344bd9([0x73,0x70,0x6c,0x69,0x74])](_0x344bd9([0x2e]));if(0x3!=_0x118fdc[_0x344bd9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3204a6(_0x118fdc[0x1]);function _0x3204a6(_0x1fe2a7){const _0x3afd2f=_0x2086d7(_0x1fe2a7);return _0x3afd2f&&_0x3c4aba()?_0x3afd2f:null;function _0x3c4aba(){const _0x543ee0=_0x3afd2f[_0x344bd9([0x6a,0x74,0x69])],_0x20559e=window[_0x344bd9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x543ee0[_0x344bd9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x543ee0[_0x344bd9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4be4ea={..._0x3afd2f,[_0x344bd9([0x6a,0x74,0x69])]:_0x543ee0[_0x344bd9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x543ee0[_0x344bd9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4be4ea[_0x344bd9([0x76,0x63])],_0x12a30d(_0x4be4ea)==_0x20559e;}}}async function _0x148d56(){let _0xe25c64=!0x0;try{const _0x44256a=_0x5f5901[_0x344bd9([0x73,0x70,0x6c,0x69,0x74])](_0x344bd9([0x2e])),[_0x5a51c6,_0x174b88,_0x402fff]=_0x44256a;return _0x59b51e(_0x5a51c6),await _0x57195b(_0x5a51c6,_0x174b88,_0x402fff),_0xe25c64;}catch{return!0x1;}function _0x59b51e(_0xf7f4ab){const _0x39a41c=_0x2086d7(_0xf7f4ab);_0x39a41c&&_0x39a41c[_0x344bd9([0x61,0x6c,0x67])]==_0x344bd9([0x45,0x53,0x32,0x35,0x36])||(_0xe25c64=!0x1);}async function _0x57195b(_0x885e8e,_0x4c9c3a,_0x1f2105){const _0x130e10=window[_0x344bd9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x344bd9([0x66,0x72,0x6f,0x6d])](_0x59b29c(_0x1f2105),_0x3a8b7d=>_0x3a8b7d[_0x344bd9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x291b69=new window[(_0x344bd9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x344bd9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x885e8e+_0x344bd9([0x2e])+_0x4c9c3a),_0x4be9d4=window[_0x344bd9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x344bd9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4be9d4)return;const _0x3fc328=await _0x4be9d4[_0x344bd9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x344bd9([0x6a,0x77,0x6b]),_0x5737f2,{[_0x344bd9([0x6e,0x61,0x6d,0x65])]:_0x344bd9([0x45,0x43,0x44,0x53,0x41]),[_0x344bd9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x344bd9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x344bd9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4be9d4[_0x344bd9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x344bd9([0x6e,0x61,0x6d,0x65])]:_0x344bd9([0x45,0x43,0x44,0x53,0x41]),[_0x344bd9([0x68,0x61,0x73,0x68])]:{[_0x344bd9([0x6e,0x61,0x6d,0x65])]:_0x344bd9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3fc328,_0x130e10,_0x291b69)||(_0xe25c64=!0x1);}}function _0x2086d7(_0x21a5ab){return _0x21a5ab[_0x344bd9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x344bd9([0x65,0x79]))?JSON[_0x344bd9([0x70,0x61,0x72,0x73,0x65])](_0x59b29c(_0x21a5ab)):null;}function _0x59b29c(_0x407eb8){return window[_0x344bd9([0x61,0x74,0x6f,0x62])](_0x407eb8[_0x344bd9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x344bd9([0x2b]))[_0x344bd9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x344bd9([0x2f])));}function _0x12a30d(_0x5d4c3a){let _0x5dcfb3=0x1505;function _0x47feca(_0x41dff5){for(let _0x1f3aa8=0x0;_0x1f3aa8<_0x41dff5[_0x344bd9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f3aa8++){const _0x47493f=_0x41dff5[_0x344bd9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1f3aa8);_0x5dcfb3=(_0x5dcfb3<<0x5)+_0x5dcfb3+_0x47493f,_0x5dcfb3&=_0x5dcfb3;}}function _0x1249a0(_0x1150cd){Array[_0x344bd9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1150cd)?_0x1150cd[_0x344bd9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1249a0):_0x1150cd&&typeof _0x1150cd==_0x344bd9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x344bd9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1150cd)[_0x344bd9([0x73,0x6f,0x72,0x74])]()[_0x344bd9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1e4044,_0x3236e5])=>{_0x47feca(_0x1e4044),_0x1249a0(_0x3236e5);}):_0x47feca(window[_0x344bd9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1150cd));}return _0x1249a0(_0x5d4c3a),_0x5dcfb3>>>0x0;}function _0x45e9ce(_0x3a271e){return _0x3a271e[_0x344bd9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x344bd9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x344bd9([0x30]));}function _0x2f8a82(_0x5168ef){return _0x5168ef[_0x344bd9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x344bd9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x344bd9([0x6a,0x6f,0x69,0x6e])]('');}function _0x336b21(_0x31b24a){return _0x54e333[_0x344bd9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x344bd9([0x68,0x61,0x73])](_0x31b24a);}function _0x23c289(_0x37fdb6){return _0x54e333[_0x344bd9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x344bd9([0x67,0x65,0x74])](_0x37fdb6);}function _0x10fa1f(){}function _0x344bd9(_0x5518d5){return _0x5518d5['map'](_0x1bda3a=>String['fromCharCode'](_0x1bda3a))['join']('');}_0x3aacfc(await _0x553b1d());}(this);}set['adapter'](_0x80f7c6){if(this['_adapter'])throw new _0x2992e4('track-changes-adapter-already-set',this);this['_adapter']=_0x80f7c6;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x8e5609=!0x1,toJSON:_0x4cbb21=!0x1}={}){const _0x2d0de5=[];for(const _0x473ba7 of this['_suggestions']['values']())_0x8e5609&&!_0x473ba7['isInContent']||_0x2d0de5['push'](_0x473ba7);return _0x4cbb21?_0x2d0de5['map'](_0x54d93b=>_0x54d93b['toJSON']()):_0x2d0de5;}['getSuggestion'](_0x161233){const _0x3d55a9=this['_suggestions']['get'](_0x161233);if(!_0x3d55a9)throw new _0x2992e4('track-changes-suggestion-not-found',this);return _0x3d55a9;}['hasSuggestion'](_0x5e2c5e){return this['_suggestions']['has'](_0x5e2c5e);}['addSuggestionData'](_0x213ffe){const {authorId:_0x3f2e74,id:_0x1d17d6,originalSuggestionId:_0x5c750e,attributes:_0x2acb8a}=_0x213ffe,[_0x222dba,_0xe01095]=_0x213ffe['type']['split'](':'),_0x5478c3=this['_suggestions']['get'](_0x1d17d6)||this['_createSuggestion'](_0x222dba,_0xe01095,_0x1d17d6,_0x3f2e74,_0x2acb8a,_0x5c750e);if(this['_addThreadToSuggestion'](_0x5478c3),this['_checkSuggestionCorrectness'](_0x5478c3,_0x222dba,_0xe01095||null,_0x3f2e74),_0x5478c3['createdAt']=_0x213ffe['createdAt'],_0x5478c3['_isDataLoaded']=!0x0,_0x2acb8a&&_0x2acb8a['@external']){const _0xc89a46=_0x2acb8a['@external'],_0x16b5a9=this['_getExternalAuthor'](_0xc89a46['authorName']);_0x5478c3['authoredAt']=_0xc89a46['createdAt'],_0x5478c3['author']=_0x16b5a9,_0x5478c3['isExternal']=!0x0;}else _0x5478c3['authoredAt']=_0x213ffe['createdAt'];switch(_0x213ffe['data']&&(_0x5478c3['data']=_0x213ffe['data']),_0x213ffe['attributes']&&(_0x5478c3['attributes']=_0x213ffe['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5478c3['_saved']=!0x0),this['_suggestionState']['get'](_0x5478c3)){case'notReady':this['_suggestionState']['set'](_0x5478c3,'dataReady');break;case'markerReady':_0x5478c3['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5478c3])),this['_refreshSuggestionsChain'](new Set([_0x5478c3])),this['_suggestionState']['set'](_0x5478c3,'ready'),this['fire']('suggestionLoaded',_0x5478c3)):this['_suggestionState']['set'](_0x5478c3,'removed');}return _0x5478c3;}['acceptSuggestion'](_0x43cd42){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4bab80 of _0x43cd42['getAllAdjacentSuggestions']())_0x4bab80['accept']();});});}['discardSuggestion'](_0x37b28a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4036dc of _0x37b28a['getAllAdjacentSuggestions']())_0x4036dc['discard']();});});}['enableCommand'](_0x234d39,_0x3aaded){const _0x531fc0=this['editor']['commands']['get'](_0x234d39);if(!_0x531fc0)throw new _0x2992e4('track-changes-command-not-found',this,{'commandName':_0x234d39});if(this['_enabledCommands']['has'](_0x531fc0))throw new _0x2992e4('track-changes-enable-command-twice',this,{'commandName':_0x234d39});this['_enabledCommands']['add'](_0x531fc0),_0x3aaded&&_0x531fc0['on']('execute',(_0x65cf65,_0x1c3966)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1c3966['length']>0x0&&_0x1c3966[_0x1c3966['length']-0x1]&&_0x1c3966[_0x1c3966['length']-0x1]['forceDefaultExecution']?_0x1c3966['pop']():(_0x65cf65['return']=_0x3aaded((..._0xe459a4)=>_0x531fc0['execute'](..._0xe459a4,{'forceDefaultExecution':!0x0}),..._0x1c3966),_0x65cf65['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x54338c){let _0x1b90df,_0x313f1c;const _0x3ae66e=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1b90df=_0x54338c();}catch(_0x4444c1){_0x313f1c=_0x4444c1;}return _0x3ae66e||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x313f1c&&_0x2992e4['rethrowUnexpectedError'](_0x313f1c,this),_0x1b90df;}['markInsertion'](_0x352dce,_0x1bd981=null,_0x4d6f8e={}){if(_0x352dce['isCollapsed'])return null;const _0x1187da=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x4d6f8e['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xd52972,meta:_0x5f07c6}of this['_findSuggestions'](_0x352dce,'insertion'))if(_0x5f07c6['isOwn']){if(!_0x5f07c6['isNextTo']){if(_0x5f07c6['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0xd52972,_0x4d6f8e))continue;return _0xd52972;}if(zt(_0xd52972,_0x4d6f8e))return _0xd52972;this['_breakSuggestionMarker'](_0xd52972,_0x352dce['start'],_0x352dce['end']);break;}if(_0x1bd981==_0xd52972['subType']&&zt(_0xd52972,_0x4d6f8e)){const _0x303e30=_0xd52972['getFirstRange']();return _0x303e30['start']['isEqual'](_0x352dce['end'])?this['_setSuggestionRange'](_0xd52972,this['_model']['createRange'](_0x352dce['start'],_0x303e30['end'])):this['_setSuggestionRange'](_0xd52972,this['_model']['createRange'](_0x303e30['start'],_0x352dce['end'])),_0xd52972;}}const _0xa63152=_0x2375fd(),_0x582db9=_0x1187da['id'],_0x36c5d7=_0x1bd981?'insertion:'+_0x1bd981:'insertion',_0x21c54d=this['_setSuggestionData']({'id':_0xa63152,'type':_0x36c5d7,'createdAt':new Date(),'authorId':_0x582db9,'attributes':_0x4d6f8e});return this['_addSuggestionMarker'](_0x36c5d7,_0xa63152,_0x582db9,_0x352dce),_0x21c54d;}['markMultiRangeInsertion'](_0x58bc17,_0x5e2bea='multi',_0x98ae29={}){const _0x4dc5b2=this['editor']['plugins']['get']('Users')['me'],_0x3055a6=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5e2bea,'join');this['_trackingSessionId']&&(_0x98ae29['trackingSessionId']=this['_trackingSessionId']);for(const _0x277e6f of this['getSuggestions']())if(_0x277e6f['author']['id']==_0x4dc5b2['id']&&'insertion'==_0x277e6f['type']&&_0x277e6f['subType']==_0x5e2bea&&zt(_0x277e6f,_0x98ae29)&&(_0x3055a6(_0x277e6f['getRanges'](),_0x58bc17)||_0x3055a6(_0x58bc17,_0x277e6f['getRanges']()))){for(const _0x32a033 of _0x58bc17)_0x277e6f['addRange'](_0x32a033);return _0x277e6f;}for(const {suggestion:_0x28fe8c,meta:_0x3adf37}of this['_findSuggestions'](_0x58bc17,'insertion')){if(!_0x3adf37['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3adf37['containsRangeInObject'])continue;if(!zt(_0x28fe8c,_0x98ae29))continue;let _0x5e67c9=!0x0;for(const _0x7ed479 of _0x28fe8c['getRanges']())for(const _0x6665d6 of _0x58bc17)if(!_0x7ed479['containsRange'](_0x6665d6)){_0x5e67c9=!0x1;break;}if(_0x5e67c9)return _0x28fe8c;}const _0xf56583=_0x2375fd(),_0x5148a7=_0x4dc5b2['id'],_0x33fdb9='insertion:'+_0x5e2bea,_0x2f1a98=this['_setSuggestionData']({'id':_0xf56583,'type':_0x33fdb9,'createdAt':new Date(),'authorId':_0x5148a7,'attributes':_0x98ae29});for(const _0x49d789 of _0x58bc17)this['_addSuggestionMarker'](_0x33fdb9,_0xf56583,_0x5148a7,_0x49d789,Suggestion['getMultiRangeId']());return _0x2f1a98;}['markInlineFormat'](_0x5681a4,_0x251c0a,_0x1f9ef1=null,_0x20f335={}){if(_0x1f9ef1=_0x1f9ef1||Pt(_0x251c0a),_0x5681a4['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x20f335['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x52223c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1f9ef1,'accept');return this['forceDefaultExecution'](()=>_0x52223c([_0x5681a4],_0x251c0a,_0x20f335)),null;}const _0x5e8ebb=this['editor']['plugins']['get']('Users')['me'],_0x12a459=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3f28a4,meta:_0x15d75b}of this['_findSuggestions'](_0x5681a4,'insertion'))_0x15d75b['isOwn']&&!_0x15d75b['isInsideObject']&&_0x12a459['push'](..._0x3f28a4['getRanges']());}const _0x5b5b00=function(_0x29734c,_0x22b7fd){const _0x31fcc6=[];for(const _0x2123d7 of _0x22b7fd){const _0x8d7ed3=_0x29734c['getIntersection'](_0x2123d7);_0x8d7ed3&&_0x31fcc6['push'](_0x8d7ed3);}return _0x31fcc6;}(_0x5681a4,_0x12a459),_0x58efa6=function(_0x328d5b,_0x460856){const _0xf500=[_0x328d5b];for(const _0x32f87e of _0x460856){let _0x256ad9=0x0;for(;_0x256ad9<_0xf500['length'];){const _0x19cd2e=_0xf500[_0x256ad9]['getDifference'](_0x32f87e);_0xf500['splice'](_0x256ad9,0x1,..._0x19cd2e),_0x256ad9+=_0x19cd2e['length'];}}return _0xf500;}(_0x5681a4,_0x12a459);_0x5b5b00['length']&&this['_model']['change'](()=>{for(const _0x3ec86c of _0x5b5b00){const _0x514176=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1f9ef1,'accept');this['forceDefaultExecution'](()=>_0x514176([_0x3ec86c],_0x251c0a,_0x20f335));}});for(const _0x19c9ff of _0x58efa6){let _0x2c14da=null,_0x29bd21=_0x19c9ff['start'],_0x4c6ecf=_0x19c9ff['end'];for(const {suggestion:_0x33ab4c,meta:_0x5163c7}of this['_findSuggestions'](_0x19c9ff,'formatInline')){if(!_0x5163c7['isOwn'])continue;if(_0x33ab4c['subType']!=_0x1f9ef1)continue;if(!zt(_0x33ab4c,_0x20f335))continue;const _0x5e5821=_0x33ab4c['getFirstRange']();if(_0x5e5821['containsRange'](_0x19c9ff,!0x0))return null;_0x29bd21=_0x29bd21['isBefore'](_0x5e5821['start'])?_0x29bd21:_0x5e5821['start'],_0x4c6ecf=_0x4c6ecf['isAfter'](_0x5e5821['end'])?_0x4c6ecf:_0x5e5821['end'],_0x2c14da?_0x5e5821['start']['isBefore'](_0x2c14da['getFirstRange']()['start'])?(_0x2c14da['removeMarkers'](),_0x2c14da=_0x33ab4c):_0x33ab4c['removeMarkers']():_0x2c14da=_0x33ab4c;}const _0x35e440=this['_model']['createRange'](_0x29bd21,_0x4c6ecf);if(_0x2c14da)this['_setSuggestionRange'](_0x2c14da,_0x35e440);else{const _0x15f5c9=_0x2375fd(),_0x3467f6=_0x5e8ebb['id'];this['_setSuggestionData']({'id':_0x15f5c9,'type':'formatInline:'+_0x1f9ef1,'data':_0x251c0a,'createdAt':new Date(),'authorId':_0x3467f6,'attributes':_0x20f335}),this['_addSuggestionMarker']('formatInline:'+_0x1f9ef1,_0x15f5c9,_0x3467f6,_0x35e440);}}return null;}['markBlockFormat'](_0xf7fe61,_0x55a61b,_0x447166=[],_0xc2cec=null,_0x1e3bf9={}){_0x55a61b['formatGroupId']||(_0x55a61b['formatGroupId']=_0x55a61b['commandName']),_0x55a61b['multipleBlocks']=_0xf7fe61['is']('range'),_0xc2cec=_0xc2cec||Pt(_0x55a61b);const _0x1bb7e3=_0x447166['map'](_0x45bda5=>Vt(_0x45bda5,this['_model'])),_0x459a82=_0xf7fe61['is']('range')?_0xf7fe61:Vt(_0xf7fe61,this['_model']);if(this['_trackingSessionId']&&(_0x1e3bf9['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x56db8b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xc2cec,'accept');return this['forceDefaultExecution'](()=>_0x56db8b([_0x459a82],_0x55a61b,_0x1e3bf9)),null;}_0x1bb7e3['push'](_0x459a82);let _0x4238b6=!0x0;for(const _0x5a8d40 of _0x1bb7e3)if(!this['_rangeIsInLocalUserInsertion'](_0x5a8d40)){_0x4238b6=!0x1;break;}if(_0x4238b6&&'always'!==this['_trackFormatChanges']){const _0x34c51b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xc2cec,'accept');return this['forceDefaultExecution'](()=>_0x34c51b([_0x459a82],_0x55a61b,_0x1e3bf9)),null;}let _0x1e9775=null,_0xd1ccd5=_0x459a82['start'],_0x343439=_0x459a82['end'];for(const {suggestion:_0x4de1fa,meta:_0x579212}of this['_findSuggestions'](_0x459a82,'formatBlock')){if(!_0x579212['isOwn'])continue;if(_0x579212['isNextTo']||_0x579212['containsRangeInObject']||_0x579212['isInsideObject'])continue;if(_0x4de1fa['data']['formatGroupId']!=_0x55a61b['formatGroupId'])continue;if(!zt(_0x4de1fa,_0x1e3bf9))continue;const _0x15b658=_0x4de1fa['getFirstRange']();if(_0x4de1fa['subType']==_0xc2cec){if(_0x15b658['containsRange'](_0x459a82,!0x0))return null;_0xd1ccd5=_0xd1ccd5['isBefore'](_0x15b658['start'])?_0xd1ccd5:_0x15b658['start'],_0x343439=_0x343439['isAfter'](_0x15b658['end'])?_0x343439:_0x15b658['end'],_0x1e9775?_0x15b658['start']['isBefore'](_0x1e9775['getFirstRange']()['start'])?(_0x1e9775['removeMarkers'](),_0x1e9775=_0x4de1fa):_0x4de1fa['removeMarkers']():_0x1e9775=_0x4de1fa;}else{const _0x26204f=_0x459a82['getIntersection'](_0x15b658);this['_cutOutSuggestionMarker'](_0x4de1fa,_0x26204f);}}const _0x8970fa=this['editor']['plugins']['get']('Users')['me'],_0xef0530=_0x2375fd(),_0x100e82=_0x8970fa['id'];if(_0x1e9775)return this['_setSuggestionRange'](_0x1e9775,this['_model']['createRange'](_0xd1ccd5,_0x343439)),_0x1e9775;{const _0xe0005e=this['_setSuggestionData']({'id':_0xef0530,'type':'formatBlock:'+_0xc2cec,'data':_0x55a61b,'createdAt':new Date(),'authorId':_0x100e82,'attributes':_0x1e3bf9});return this['_addSuggestionMarker']('formatBlock:'+_0xc2cec,_0xef0530,_0x100e82,this['_model']['createRange'](_0xd1ccd5,_0x343439)),_0xe0005e;}}['markMultiRangeBlockFormat'](_0x5122df,_0x52e4b6,_0xf13914=[],_0x38032b=null,_0xe32fc9={}){_0x52e4b6['formatGroupId']||(_0x52e4b6['formatGroupId']=_0x52e4b6['commandName']);const _0x515af5=_0x5122df[0x0];_0x52e4b6['multipleBlocks']=_0x515af5['is']('range'),_0x38032b=_0x38032b||Pt(_0x52e4b6);const _0x2580e0=_0xf13914['map'](_0x12d1fb=>Vt(_0x12d1fb,this['_model'])),_0x3d121e=_0x515af5['is']('range')?_0x5122df:_0x5122df['map'](_0x33bca1=>Vt(_0x33bca1,this['_model']));if(this['_trackingSessionId']&&(_0xe32fc9['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2e1ff5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x38032b,'accept');return this['forceDefaultExecution'](()=>_0x2e1ff5(_0x3d121e,_0x52e4b6,_0xe32fc9)),null;}_0x2580e0['push'](..._0x3d121e);let _0x526c95=!0x0;for(const _0x254264 of _0x2580e0)if(!this['_rangeIsInLocalUserInsertion'](_0x254264)){_0x526c95=!0x1;break;}if(_0x526c95&&'always'!==this['_trackFormatChanges']){const _0x64493b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x38032b,'accept');return this['forceDefaultExecution'](()=>_0x64493b(_0x3d121e,_0x52e4b6,_0xe32fc9)),null;}const _0x23466a=this['editor']['plugins']['get']('Users')['me'];for(const _0x4463f5 of this['getSuggestions']()){const _0x3df193=_0x4463f5['data'];if(_0x4463f5['author']['id']!=_0x23466a['id'])continue;if('formatBlock'!=_0x4463f5['type']||_0x3df193['formatGroupId']!=_0x52e4b6['formatGroupId'])continue;if(!zt(_0x4463f5,_0xe32fc9))continue;const _0x2008cf=_0x4463f5['subType']==_0x38032b;for(let _0x2e3de2=0x0;_0x2e3de2<_0x3d121e['length'];_0x2e3de2++){const _0xf9c3eb=_0x3d121e[_0x2e3de2];for(const _0x5bac66 of _0x4463f5['getMarkers']()){const _0x36f64c=_0x5bac66['getRange']();if(_0xf9c3eb['isEqual'](_0x36f64c)){_0x2008cf?(_0x3d121e['splice'](_0x2e3de2,0x1),_0x2e3de2--):_0x4463f5['removeMarker'](_0x5bac66['name']);break;}}}}if(0x0==_0x3d121e['length'])return null;const _0x506427=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x38032b,'join');for(const _0x76909e of this['getSuggestions']()){const _0x16709a=_0x76909e['data'];if(_0x76909e['author']['id']==_0x23466a['id']&&('formatBlock'==_0x76909e['type']&&_0x16709a['formatGroupId']==_0x52e4b6['formatGroupId']&&_0x76909e['subType']==_0x38032b&&zt(_0x76909e,_0xe32fc9)&&(_0x506427(_0x76909e['getRanges'](),_0x3d121e)||_0x506427(_0x3d121e,_0x76909e['getRanges']())))){for(const _0x1d17a1 of _0x3d121e)_0x76909e['addRange'](_0x1d17a1);return _0x76909e;}}const _0x1a9ecf=_0x2375fd(),_0xe22469=_0x23466a['id'],_0x470e34='formatBlock:'+_0x38032b,_0x482baa=this['_setSuggestionData']({'id':_0x1a9ecf,'type':_0x470e34,'data':_0x52e4b6,'createdAt':new Date(),'authorId':_0xe22469,'attributes':_0xe32fc9});for(const _0x547e27 of _0x3d121e)this['_addSuggestionMarker'](_0x470e34,_0x1a9ecf,_0xe22469,_0x547e27,Suggestion['getMultiRangeId']());return _0x482baa;}['markDeletion'](_0x4e9a23,_0x3f9132=null,_0x2e8f1d={}){if(_0x4e9a23['isCollapsed'])return null;const _0x73aeb7=this['editor']['plugins']['get']('Users')['me'],_0x1aa8f4=new _0x4099e3(_0x4e9a23['start'],_0x4e9a23['end']);this['_trackingSessionId']&&(_0x2e8f1d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x318e5d,meta:_0x1832aa}of this['_findSuggestions'](_0x1aa8f4,'insertion'))if(_0x1832aa['isOwn']&&!_0x1832aa['isNextTo']){if(_0x318e5d['isMultiRange']){const _0x49c104=_0x318e5d['getRanges']()['filter'](_0x204617=>'$graveyard'!=_0x204617['root']['rootName']);_0x49c104['every'](_0x6c7f9c=>_0x1aa8f4['containsRange'](_0x6c7f9c,!0x0))&&_0x318e5d['discard']();if(_0x49c104['some'](_0x33155b=>_0x33155b['containsRange'](_0x1aa8f4,!0x0))){const _0x728cbc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3f9132,'accept');return this['forceDefaultExecution'](()=>_0x728cbc([_0x1aa8f4],null,_0x2e8f1d)),null;}}else{const _0x1f26e5=_0x1aa8f4['getIntersection'](_0x318e5d['getFirstRange']());null!==_0x1f26e5&&_0x318e5d['_onDiscard']([_0x1f26e5],null,_0x2e8f1d);}}if(_0x1aa8f4['detach'](),_0x1aa8f4['isCollapsed']||'$graveyard'==_0x1aa8f4['root']['rootName'])return null;let _0x15f2e4=null,_0x5a8f08=_0x1aa8f4['start'],_0x15081b=_0x1aa8f4['end'];const _0x47f8b4=this['_findSuggestions'](_0x1aa8f4,'deletion');for(const {suggestion:_0x49da64,meta:_0xa647af}of _0x47f8b4){const _0x5d0206=this['_model']['createRange'](_0x5a8f08,_0x15081b);if(_0xa647af['isOwn']&&(this['_mergeNestedSuggestions']||!_0xa647af['containsRangeInObject']&&!_0xa647af['isInsideObject'])){if(_0x49da64['isMultiRange']){if(!zt(_0x49da64,_0x2e8f1d))continue;let _0x47435c=!0x0;for(const _0x42adc2 of _0x49da64['getRanges']()){if(_0x42adc2['containsRange'](_0x5d0206,!0x0))return _0x49da64;_0x5d0206['containsRange'](_0x42adc2)||(_0x47435c=!0x1);}_0x47435c&&_0x49da64['discard']();}else{const _0x242e45=_0x49da64['getFirstRange']();if(_0x242e45['containsRange'](_0x5d0206,!0x0))return _0x49da64;if(!zt(_0x49da64,_0x2e8f1d)){_0x5d0206['containsRange'](_0x242e45)?_0x49da64['removeMarkers']():_0x242e45['containsPosition'](_0x5a8f08)?_0x5a8f08=_0x242e45['end']:_0x242e45['containsPosition'](_0x15081b)&&(_0x15081b=_0x242e45['start']);continue;}_0x5a8f08=_0x5a8f08['isBefore'](_0x242e45['start'])?_0x5a8f08:_0x242e45['start'],_0x15081b=_0x15081b['isAfter'](_0x242e45['end'])?_0x15081b:_0x242e45['end'],_0x2e8f1d=Object['assign']({},_0x49da64['attributes']),_0x15f2e4?_0x242e45['start']['isBefore'](_0x15f2e4['getFirstRange']()['start'])?(_0x15f2e4['removeMarkers'](),_0x15f2e4=_0x49da64):_0x49da64['removeMarkers']():_0x15f2e4=_0x49da64;}}}if(_0x15f2e4)return this['_setSuggestionRange'](_0x15f2e4,this['_model']['createRange'](_0x5a8f08,_0x15081b)),_0x15f2e4;{const _0x281579=_0x2375fd(),_0x56f9cd=this['_model']['createRange'](_0x5a8f08,_0x15081b),_0x19b970=_0x73aeb7['id'],_0x39b3d2=_0x3f9132?'deletion:'+_0x3f9132:'deletion',_0x4c59b0=this['_setSuggestionData']({'id':_0x281579,'type':_0x39b3d2,'createdAt':new Date(),'authorId':_0x19b970,'attributes':_0x2e8f1d});return this['_addSuggestionMarker'](_0x39b3d2,_0x281579,_0x19b970,_0x56f9cd),_0x4c59b0;}}['markMultiRangeDeletion'](_0x370c20,_0x22ee2a='multi',_0x355613={}){const _0x2ee952=this['editor']['plugins']['get']('Users')['me'],_0x5c0339=_0x370c20['map'](_0x486222=>new _0x4099e3(_0x486222['start'],_0x486222['end'])),_0x2c66fc=new Set();this['_trackingSessionId']&&(_0x355613['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x34b4bb,meta:_0x1bab15}of this['_findSuggestions'](_0x5c0339,'insertion'))_0x1bab15['isOwn']&&!_0x1bab15['isNextTo']&&_0x2c66fc['add'](_0x34b4bb);for(const _0x591a7f of _0x2c66fc)if(_0x591a7f['isMultiRange']){const _0xec5cfd=_0x591a7f['getRanges']();(!_0x591a7f['attributes']||!_0x591a7f['attributes']['skipNestingCheck'])&&(_0xec5cfd['every'](_0x1ab958=>_0x5c0339['some'](_0x82fdc1=>_0x82fdc1['containsRange'](_0x1ab958,!0x0)))&&_0x591a7f['discard']());if(_0x5c0339['every'](_0x43ff67=>_0xec5cfd['some'](_0x51a1b6=>_0x51a1b6['containsRange'](_0x43ff67,!0x0)))){const _0xd93b56=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x22ee2a,'accept');return this['forceDefaultExecution'](()=>_0xd93b56(_0x370c20,null,_0x355613)),null;}}else{const _0x3a080d=_0x591a7f['getFirstRange']();_0x5c0339['some'](_0x514630=>_0x514630['containsRange'](_0x3a080d,!0x0))&&_0x591a7f['discard']();if(_0x5c0339['every'](_0x56c43f=>_0x3a080d['containsRange'](_0x56c43f,!0x0))){const _0x407e96=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x22ee2a,'accept');return this['forceDefaultExecution'](()=>_0x407e96(_0x5c0339,null,_0x355613)),null;}}const _0xe8ff4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x22ee2a,'join');let _0x12c0cc=null;for(const _0x2cfcd8 of this['getSuggestions']())if(_0x2cfcd8['author']['id']==_0x2ee952['id']&&_0x2cfcd8['isInContent']&&'deletion'==_0x2cfcd8['type']&&_0x2cfcd8['subType']==_0x22ee2a&&zt(_0x2cfcd8,_0x355613)&&(_0xe8ff4(_0x2cfcd8['getRanges'](),_0x5c0339)||_0xe8ff4(_0x5c0339,_0x2cfcd8['getRanges']()))){if(_0x12c0cc){if(_0x2cfcd8['commentThread']&&_0x2cfcd8['commentThread']['length'])continue;for(const _0x166626 of _0x2cfcd8['getRanges']())_0x12c0cc['isIntersectingWithRange'](_0x166626)||_0x12c0cc['addRange'](_0x166626);_0x2cfcd8['removeMarkers']();}else{_0x12c0cc=_0x2cfcd8;for(const _0x330756 of _0x5c0339)_0x2cfcd8['isIntersectingWithRange'](_0x330756)||_0x2cfcd8['addRange'](_0x330756);}}if(_0x12c0cc)return _0x12c0cc;_0x2c66fc['clear']();for(const {suggestion:_0x158b64,meta:_0x481bbb}of this['_findSuggestions'](_0x5c0339,'deletion'))_0x481bbb['isOwn']&&(this['_mergeNestedSuggestions']||!_0x481bbb['containsRangeInObject']&&!_0x481bbb['isInsideObject'])&&zt(_0x158b64,_0x355613)&&_0x2c66fc['add'](_0x158b64);for(const _0x2fe6cb of _0x2c66fc){const _0x4f8f42=_0x2fe6cb['getRanges']();if(!_0x355613||!_0x355613['skipNestingCheck']){if(_0x5c0339['every'](_0x65c49=>_0x4f8f42['some'](_0xe65290=>_0xe65290['containsRange'](_0x65c49,!0x0))))return _0x2fe6cb;}(!_0x2fe6cb['attributes']||!_0x2fe6cb['attributes']['skipNestingCheck'])&&(_0x4f8f42['every'](_0x2a32e2=>_0x5c0339['some'](_0x126a16=>_0x126a16['containsRange'](_0x2a32e2,!0x0)))&&_0x2fe6cb['discard']());}const _0x260834=_0x2375fd(),_0x4bc96b=_0x2ee952['id'],_0x5c4d64='deletion:'+_0x22ee2a,_0x36a936=this['_setSuggestionData']({'id':_0x260834,'type':_0x5c4d64,'createdAt':new Date(),'authorId':_0x4bc96b,'attributes':_0x355613});for(const _0x4d7ee1 of _0x5c0339)_0x4d7ee1['detach'](),_0x4d7ee1['isCollapsed']||'$graveyard'==_0x4d7ee1['root']['rootName']||this['_addSuggestionMarker'](_0x5c4d64,_0x260834,_0x4bc96b,_0x4d7ee1,Suggestion['getMultiRangeId']());return _0x36a936;}['markAttributeChange'](_0x16f04b,_0x53700e,_0x50b450,_0x7d894d,_0x38b361){if(_0x16f04b['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1d33bb=this['editor']['plugins']['get']('Users')['me']['id'],_0x108fef=Array['from'](this['_suggestions']['values']())['filter'](_0xb205c0=>'attribute'==_0xb205c0['type']&&_0xb205c0['data']['key']==_0x53700e&&_0xb205c0['isIntersectingWithRange'](_0x16f04b));if(this['_trackingSessionId']&&(_0x38b361['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0xcbcdbd=this['_findSuggestions'](_0x16f04b,'insertion')['filter'](({meta:_0x946ea3})=>_0x946ea3['isOwn']&&!_0x946ea3['isInsideObject']&&!_0x946ea3['isNextTo'])['map'](({suggestion:_0x3e32f5})=>_0x3e32f5);_0x108fef['unshift'](..._0xcbcdbd);}const _0x3ab6fb=new Map([[_0x16f04b,_0x50b450]]);for(const _0x1dda3e of _0x108fef){const _0x364d0b='attribute'==_0x1dda3e['type']?_0x1dda3e['data']['oldValue']:void 0x0,_0x365810=_0x1dda3e['getFirstRange'](),_0x3d20d9=Array['from'](_0x3ab6fb['keys']())['find'](_0x24a14a=>_0x24a14a['isIntersecting'](_0x365810));if(!_0x3d20d9)continue;const _0x4a8d7e=_0x3d20d9['getDifference'](_0x365810);this['_suggestionsConversion']['isBlockAttribute'](_0x53700e)&&'insertion'==_0x1dda3e['type']&&0x0!=_0x4a8d7e['length']||(_0x3ab6fb['delete'](_0x3d20d9),_0x4a8d7e['forEach'](_0x3e54cf=>{_0x3ab6fb['set'](_0x3e54cf,_0x50b450);}),'insertion'!=_0x1dda3e['type']&&_0x364d0b!=_0x7d894d&&_0x3ab6fb['set'](_0x3d20d9['getIntersection'](_0x365810),_0x364d0b));}const _0x393f10=[];for(const [_0x1fc3c2,_0x57fdee]of _0x3ab6fb){const _0x10d186=_0x2375fd(),_0x1d0743={'key':_0x53700e,'oldValue':_0x57fdee,'newValue':_0x7d894d};_0x53700e['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':_0x53700e});const _0x57d1c5=('attribute:'+(_0x53700e+'|'+Pt({'newValue':_0x7d894d})))['substring'](0x0,0x3c),_0x49b799=this['_setSuggestionData']({'id':_0x10d186,'type':_0x57d1c5,'data':_0x1d0743,'createdAt':new Date(),'authorId':_0x1d33bb,'attributes':_0x38b361});_0x393f10['push'](_0x49b799),this['_addSuggestionMarker'](_0x57d1c5,_0x10d186,_0x1d33bb,_0x1fc3c2);}return _0x393f10;}['enableDefaultAttributesIntegration'](_0xc684b9){this['enableCommand'](_0xc684b9,(_0x54a9c8,..._0x387dbf)=>{this['recordAttributeChanges'](()=>{_0x54a9c8(..._0x387dbf);});});}['startTrackingSession'](_0x2860ed){return this['_trackingSessionId']=void 0x0!==_0x2860ed?_0x2860ed:_0x2375fd(),this['_trackingSessionId'];}['_getAttributeKey'](_0x54124f){return'attribute'==_0x54124f['type']?Xt(_0x54124f['subType']):null;}['_applyOperationsAsSuggestions'](_0x5f2fce){if(0x0==_0x5f2fce['length'])return;const _0x4fda74=this['editor'],_0x31e2ab=_0x4fda74['plugins']['get'](_0x56c137),_0x2d9d03=[];_0x4fda74['model']['change'](_0x3fde96=>{for(let _0x5915c7=0x0;_0x5915c7<_0x5f2fce['length'];_0x5915c7++){const _0x4537d3=_0x5f2fce[_0x5915c7];if(_0x4537d3['baseVersion']=_0x4fda74['model']['document']['version'],_0x4537d3['isDocumentOperation']=!0x0,_0x31e2ab['isMarkedRemoveOperation'](_0x4537d3)){const _0x46f615=_0x5dc878(_0x4537d3['newRange'],_0x4fda74['model']);_0x2d9d03['unshift'](_0x4099e3['fromRange'](_0x46f615));}else switch(_0x4537d3['type']){case'rename':{const _0x59a0dc=_0x4537d3['oldName'],_0x8d6eee=_0x4537d3['newName'];if(_0x59a0dc==_0x8d6eee)break;_0x3fde96['batch']['addOperation'](_0x4537d3),_0x4fda74['model']['applyOperation'](_0x4537d3);const _0x281ac0='$elementName',_0x21fd99=_0x4537d3['position'],_0x39dbfb=_0x4fda74['model']['createRange'](_0x21fd99,_0x4fda74['model']['createPositionAt'](_0x21fd99['nodeAfter'],'end'));this['markAttributeChange'](_0x39dbfb,_0x281ac0,_0x59a0dc,_0x8d6eee,{'groupId':_0x2375fd()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x3d74f7=_0x4537d3['oldValue'],_0x103244=_0x4537d3['newValue'];if(_0x3d74f7==_0x103244)break;_0x3fde96['batch']['addOperation'](_0x4537d3),_0x4fda74['model']['applyOperation'](_0x4537d3);const _0x4c856f=_0x4537d3['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x4c856f))break;const _0x16fc77=_0x5dc878(_0x4537d3['range'],_0x4fda74['model']);this['markAttributeChange'](_0x16fc77,_0x4c856f,_0x3d74f7,_0x103244,{'groupId':_0x2375fd()});break;}case'insert':{_0x3fde96['batch']['addOperation'](_0x4537d3),_0x4fda74['model']['applyOperation'](_0x4537d3);if(_0x5f2fce[_0x5915c7+0x1]&&'move'==_0x5f2fce[_0x5915c7+0x1]['type'])break;const _0x232c47=_0x4537d3['position'],_0x485a7b=_0x4537d3['howMany'],_0x4632ca=_0x5dc878(_0x4fda74['model']['createRange'](_0x232c47,_0x232c47['getShiftedBy'](_0x485a7b)),_0x4fda74['model']);this['markInsertion'](_0x4632ca);break;}case'split':{_0x3fde96['batch']['addOperation'](_0x4537d3),_0x4fda74['model']['applyOperation'](_0x4537d3);const _0x28d6fa=_0x4537d3['splitPosition'],_0x21d140=_0x4537d3['moveTargetPosition'];this['markInsertion'](_0x4fda74['model']['createRange'](_0x28d6fa,_0x21d140));break;}case'move':case'remove':_0x3fde96['batch']['addOperation'](_0x4537d3),_0x4fda74['model']['applyOperation'](_0x4537d3);}}for(const _0x20f646 of _0x2d9d03)_0x20f646['detach'](),this['markDeletion'](_0x20f646);});}['_setSuggestionRange'](_0x5e9153,_0x54131d){const _0x2911b8=_0x5e9153['getFirstMarker']();this['_model']['change'](_0x236331=>{_0x236331['updateMarker'](_0x2911b8,{'range':_0x54131d});});}['_addThreadToSuggestion'](_0x344b25){const _0x34725b=_0x344b25['id'],_0x542bd9=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x34725b)||this['_commentsRepository']['addCommentThread']({'channelId':_0x542bd9,'threadId':_0x34725b,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1466d5=this['_commentsRepository']['getCommentThread'](_0x34725b);_0x1466d5['unbind']('isRemovable'),_0x1466d5['isRemovable']=!0x1,_0x344b25['commentThread']=_0x1466d5;}['_checkSuggestionCorrectness'](_0x3780dd,_0x31ca4e,_0x5ecf82,_0x43146d){if(_0x3780dd['type']!=_0x31ca4e||_0x3780dd['subType']!=_0x5ecf82||_0x3780dd['creator']['id']!=_0x43146d)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2992e4('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1ee276,_0x11ac49){const _0x356ac3=_0x1ee276['getFirstRange']();if(_0x11ac49['isEqual'](_0x356ac3))_0x1ee276['removeMarkers']();else{if(_0x356ac3['containsRange'](_0x11ac49)){const _0x745ed4=this['_model']['createPositionAt'](_0x11ac49['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1ee276,this['_model']['createRange'](_0x356ac3['start'],_0x745ed4));const _0x2a7193=_0x2375fd(),_0x47137e=_0x1ee276['creator']['id'],_0xb1add8=_0x1ee276['type']+':'+_0x1ee276['subType'];this['_setSuggestionData']({'id':_0x2a7193,'type':_0xb1add8,'createdAt':new Date(),'authorId':_0x47137e,'data':_0x1ee276['data'],'attributes':_0x1ee276['attributes']});const _0x4cb776=this['_model']['createPositionAt'](_0x11ac49['end']['parent'],'after'),_0x53cc10=this['_model']['createRange'](_0x4cb776,_0x356ac3['end']);this['_addSuggestionMarker'](_0xb1add8,_0x2a7193,_0x47137e,_0x53cc10);}else{if(_0x356ac3['containsPosition'](_0x11ac49['start'])){const _0x3b1c64=this['_model']['createPositionAt'](_0x11ac49['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1ee276,this['_model']['createRange'](_0x356ac3['start'],_0x3b1c64));}else{const _0x149eab=this['_model']['createPositionAt'](_0x11ac49['end']['parent'],'after');this['_setSuggestionRange'](_0x1ee276,this['_model']['createRange'](_0x149eab,_0x356ac3['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x312e84){for(const {suggestion:_0x1605cc,meta:_0x1e99a3}of this['_findSuggestions'](_0x312e84,'insertion')){if(!_0x1e99a3['isOwn'])continue;const _0x2e1518=_0x1605cc['getRanges']();for(const _0x992893 of _0x2e1518)if(!_0x312e84['getDifference'](_0x992893)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x22ecef){return this['editor']['plugins']['get']('Users')['getUser'](_0x22ecef);}['_getExternalAuthor'](_0x4ccd9d){const _0x226a95=this['editor']['plugins']['get']('Users'),_0x80c21e=_0x54b6ec('external:'+_0x4ccd9d),_0x42776b=_0x226a95['getUser'](_0x80c21e);return _0x42776b||_0x226a95['addUser']({'id':_0x80c21e,'name':_0x4ccd9d});}['_createSuggestion'](_0x28a2a0,_0x3739bd,_0x1027ce,_0x30e297,_0xf650cd,_0x2f3a6b){const _0xa1557a=this['_getAuthorFromId'](_0x30e297);if(!_0xa1557a)throw new _0x2992e4('track-changes-user-not-found',this,{'authorId':_0x30e297,'suggestionId':_0x1027ce});const _0x27b0cd=this['_suggestionFactory']['buildSuggestion'](_0x28a2a0,_0x3739bd,_0x1027ce,_0xa1557a,_0xf650cd,_0x4ee85c=>{this['_updateSuggestionData'](_0x1027ce,{'attributes':_0x4ee85c});const _0x4b02c5=this['getSuggestion'](_0x1027ce);this['_joinWithAdjacentSuggestions'](new Set([_0x4b02c5])),this['_refreshSuggestionsChain'](new Set([_0x4b02c5]));},_0x2f3a6b);return this['listenTo'](_0x27b0cd,'accept',()=>{this['_updateSuggestionData'](_0x1027ce,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x27b0cd,'discard',()=>{this['_updateSuggestionData'](_0x1027ce,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1027ce,_0x27b0cd),this['_suggestionState']['set'](_0x27b0cd,'notReady'),_0x27b0cd;}['_breakSuggestionMarker'](_0x12953c,_0x3fa79f,_0x31f366){const _0x44bdf2=_0x12953c['getFirstRange'](),_0x51e558=_0x44bdf2['start'],_0x590acf=_0x44bdf2['end'];this['_setSuggestionRange'](_0x12953c,this['_model']['createRange'](_0x51e558,_0x3fa79f));const _0x469eda=_0x2375fd(),_0x1d10d0=_0x12953c['creator']['id'],_0x34e61b=_0x12953c['type']+(_0x12953c['subType']?':'+_0x12953c['subType']:'');this['_setSuggestionData']({'id':_0x469eda,'type':_0x34e61b,'createdAt':new Date(),'authorId':_0x1d10d0,'originalSuggestionId':_0x12953c['_originalSuggestionId']||_0x12953c['id'],'attributes':_0x12953c['attributes'],'data':_0x12953c['data']});const _0x4bd46c=this['_getAttributeKey'](_0x12953c);('formatBlock'==_0x12953c['type']||_0x4bd46c&&this['_suggestionsConversion']['isBlockAttribute'](_0x4bd46c))&&(_0x31f366=this['_model']['createPositionBefore'](_0x31f366['parent'])),this['_addSuggestionMarker'](_0x34e61b,_0x469eda,_0x1d10d0,this['_model']['createRange'](_0x31f366,_0x590acf));}['_findSuggestions'](_0x165d2f,_0x64943=null){const _0x5cfb90=[],_0x2c71fb=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x165d2f)||(_0x165d2f=[_0x165d2f]);for(const _0xb77a89 of this['getSuggestions']()){if(!_0xb77a89['isInContent'])continue;if(_0x64943&&_0xb77a89['type']!=_0x64943)continue;let _0x160c1d=!0x1;for(const _0x5528fc of _0xb77a89['getRanges']()){for(const _0x253a63 of _0x165d2f){const _0x4702ee=_0x253a63['start']['isEqual'](_0x5528fc['end'])||_0x253a63['end']['isEqual'](_0x5528fc['start']);if(_0x4702ee||_0x253a63['getIntersection'](_0x5528fc)){const _0x500ba=_0x253a63['containsRange'](_0x5528fc)&&Dt(this['_model']['schema'],_0x5528fc['start'],_0x253a63),_0x3033a9=_0x5528fc['containsRange'](_0x253a63)&&Dt(this['_model']['schema'],_0x253a63['start'],_0x5528fc);_0x5cfb90['push']({'suggestion':_0xb77a89,'meta':{'isOwn':_0x2c71fb==_0xb77a89['author'],'isNextTo':_0x4702ee,'isInsideObject':_0x500ba,'containsRangeInObject':_0x3033a9}}),_0x160c1d=!0x0;break;}}if(_0x160c1d)break;}}return _0x5cfb90;}['_addSuggestionMarker'](_0x374180,_0x5e3f56,_0x6f6f22,_0x5361b0,_0x35b66f){this['_model']['change'](_0x308686=>{let _0x238d9c='suggestion:'+_0x374180+':'+_0x5e3f56+':'+_0x6f6f22;_0x35b66f&&(_0x238d9c=_0x238d9c+':'+_0x35b66f),_0x308686['addMarker'](_0x238d9c,{'range':_0x5361b0,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1bff89){const _0x3fc857=_0x1bff89['previous'],_0x479d18=_0x1bff89['next'];_0x1bff89['previous']=null,_0x1bff89['next']=null,null!=_0x3fc857&&_0x3fc857['next']==_0x1bff89&&(_0x3fc857['next']=_0x479d18),null!=_0x479d18&&_0x479d18['previous']==_0x1bff89&&(_0x479d18['previous']=_0x3fc857),'ready'==this['_suggestionState']['get'](_0x1bff89)&&(this['_suggestionState']['set'](_0x1bff89,'removed'),this['fire']('suggestionUnloaded',_0x1bff89,_0x3fc857,_0x479d18));}['_setSuggestionData'](_0x1a2e9c){const _0x342d5f=_0x1a2e9c['id'],_0x50d00d=this['addSuggestionData'](_0x1a2e9c);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1b46ee=this['editor']['plugins']['get']('PendingActions'),_0x36071f=_0x50d00d['hasComments'],_0x3786b5=_0x50d00d['subType']?_0x50d00d['type']+':'+_0x50d00d['subType']:_0x50d00d['type'],_0x3a484b=this['editor']['locale'],_0x5bd99d=_0x1b46ee['add'](Tt(_0x3a484b,'PENDING_ACTION_SUGGESTION')),_0x5b9c3d={'id':_0x342d5f,'type':_0x3786b5,'hasComments':_0x36071f,'data':_0x1a2e9c['data']||null,'originalSuggestionId':_0x1a2e9c['originalSuggestionId']||null,'attributes':_0x50d00d['attributes']};this['_adapter']['addSuggestion'](_0x5b9c3d)['then'](_0x4cd245=>{_0x50d00d['_saved']=!0x0,_0x1b46ee['remove'](_0x5bd99d),_0x4cd245&&_0x4cd245['createdAt']&&(this['_suggestions']['get'](_0x342d5f)['createdAt']=_0x4cd245['createdAt']);})['catch'](_0x5d5eaf=>{throw _0x50b7b8('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x50d00d['discard']();}),_0x50d00d['stopListening'](),this['_suggestions']['delete'](_0x50d00d['id']),this['_suggestionState']['delete'](_0x50d00d),_0x5d5eaf;});}return _0x50d00d;}['_updateSuggestionData'](_0x546ea9,_0x303475){const _0x3bd978=this['editor']['plugins']['get']('PendingActions'),_0x11ecb3=this['getSuggestion'](_0x546ea9);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x11ecb3['_saved']){const _0x41150e=_0x3bd978['add'](Tt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x546ea9,_0x303475)['then'](()=>{_0x3bd978['remove'](_0x41150e);});}else _0x11ecb3['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x546ea9,_0x303475);});}}['_getSuggestionData'](_0x33ad96){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2992e4('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x33ad96);}['_handleNewSuggestionMarker'](_0x44764a){const {id:_0x820fb7,type:_0x320428,subType:_0x4420d9,authorId:_0x5a079d}=_0x11d9f0(_0x44764a),_0x19a026=this['_suggestions']['get'](_0x820fb7)||this['_createSuggestion'](_0x320428,_0x4420d9,_0x820fb7,_0x5a079d,{});switch(this['_checkSuggestionCorrectness'](_0x19a026,_0x320428,_0x4420d9,_0x5a079d),this['_suggestionState']['get'](_0x19a026)){case'notReady':this['_getSuggestionData'](_0x820fb7)['then'](_0x4fa525=>{let _0x2667bd=Promise['resolve']();_0x4fa525['hasComments']&&(_0x2667bd=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x820fb7})),_0x2667bd['then'](()=>{this['addSuggestionData'](_0x4fa525)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x19a026,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x820fb7,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x19a026,'ready'),this['fire']('suggestionLoaded',_0x19a026);break;case'ready':this['fire']('suggestionChanged',_0x19a026);}return _0x19a026['addMarkerName'](_0x44764a),_0x19a026;}['_refreshSuggestionsChain'](_0x56ac9a){const _0x1ed019=Array['from'](_0x56ac9a),_0x494de1=_0x1ed019['filter'](_0x44e4f0=>'attribute'==_0x44e4f0['type']);this['_refreshAttributeSuggestionsChain'](_0x494de1);const _0x3471e8=_0x1ed019['filter'](_0x9468f1=>!_0x9468f1['isMultiRange']&&'attribute'!=_0x9468f1['type']),_0x528a77=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xa7c6a5=>!_0xa7c6a5['isMultiRange']&&'attribute'!=_0xa7c6a5['type']),_0x27176d=_0x528a77['filter'](_0x1ec447=>!_0x56ac9a['has'](_0x1ec447)),_0x273cff=new Map(_0x528a77['map'](_0x5920e6=>[_0x5920e6,this['_suggestionFactory']['getSuggestionCallback'](_0x5920e6['type'],_0x5920e6['subType'],'chain')])),_0x237656=new Map(_0x528a77['map'](_0x4305d7=>[_0x4305d7,_0x4305d7['getFirstRange']()])),_0x4d9d65=new Set(),_0xa4e92=new Set();for(let _0x3c495b=0x0;_0x3c495b<_0x3471e8['length'];_0x3c495b++)_0x39942e(_0x3471e8[_0x3c495b],_0x3471e8,_0x3c495b+0x1);for(let _0x40a571=0x0;_0x40a571<_0x3471e8['length'];_0x40a571++)_0x39942e(_0x3471e8[_0x40a571],_0x27176d,0x0);const _0x505af8=new Set();for(let _0xe358c2=0x0;_0xe358c2<_0x3471e8['length'];_0xe358c2++){const _0x4bbb17=_0x3471e8[_0xe358c2];!_0xa4e92['has'](_0x4bbb17)&&_0x4bbb17['previous']&&(_0x505af8['add'](_0x4bbb17['previous']),_0x4bbb17['previous']['next']===_0x4bbb17&&(_0x4bbb17['previous']['next']=null),_0x4bbb17['previous']=null),!_0x4d9d65['has'](_0x4bbb17)&&_0x4bbb17['next']&&(_0x505af8['add'](_0x4bbb17['next']),_0x4bbb17['next']['previous']===_0x4bbb17&&(_0x4bbb17['next']['previous']=null),_0x4bbb17['next']=null);}function _0x39942e(_0x3f1180,_0x14170a,_0x8c48){for(let _0x2f0c79=_0x8c48;_0x2f0c79<_0x14170a['length'];_0x2f0c79++){const _0x4265c2=_0x51f4bf(_0x3f1180,_0x14170a[_0x2f0c79]);_0x4265c2&&(_0x4265c2[0x0]['next']=_0x4265c2[0x1],_0x4265c2[0x1]['previous']=_0x4265c2[0x0],_0x4d9d65['add'](_0x4265c2[0x0]),_0xa4e92['add'](_0x4265c2[0x1]));}}function _0x51f4bf(_0x268ba9,_0x23fca1){if(_0x268ba9['author']['id']!==_0x23fca1['author']['id'])return null;const _0x4c91b5=_0x273cff['get'](_0x268ba9)(_0x268ba9,_0x23fca1,_0x237656['get'](_0x268ba9),_0x237656['get'](_0x23fca1));if(!_0x4c91b5)return null;return _0x273cff['get'](_0x23fca1)(_0x268ba9,_0x23fca1,_0x237656['get'](_0x268ba9),_0x237656['get'](_0x23fca1))?_0x4c91b5[0x1]['commentThread']&&_0x4c91b5[0x1]['commentThread']['length']?null:_0x4c91b5:null;}_0x505af8['size']&&this['_refreshSuggestionsChain'](_0x505af8);}['_refreshAttributeSuggestionsChain'](_0x51f81d){if(0x0==_0x51f81d['length'])return;const _0x83e35a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5a497b=>'attribute'==_0x5a497b['type']&&_0x5a497b['_isDataLoaded']),_0xd3d6b0=[],_0x360ae=new Map();for(const _0x403e15 of _0x83e35a){const _0x3260d8=_0x54b6ec(_0x403e15['attributes']);_0x360ae['has'](_0x3260d8)||(_0x360ae['set'](_0x3260d8,_0xd3d6b0['length']),_0xd3d6b0['push']([]));const _0x474e34=_0x360ae['get'](_0x3260d8);_0xd3d6b0[_0x474e34]['push'](_0x403e15);}!(function(){_0xd3d6b0['sort']((_0xaecf9d,_0x595bba)=>{const _0x5cbcb0=_0xaecf9d[0x0]['createdAt'],_0x43f703=_0x595bba[0x0]['createdAt'];return _0x5cbcb0==_0x43f703?_0xaecf9d[0x0]['attributes']['groupId']<_0x595bba[0x0]['attributes']['groupId']?-0x1:0x1:_0x5cbcb0<_0x43f703?-0x1:0x1;});for(const _0x56fdd0 of _0xd3d6b0)_0x56fdd0['sort']((_0x1cb86c,_0x30f317)=>_0x1cb86c['id']<_0x30f317['id']?-0x1:0x1);}());for(let _0x3d0b4c=0x0;_0x3d0b4c<_0xd3d6b0['length'];_0x3d0b4c++){if(0x0==_0xd3d6b0[_0x3d0b4c]['length'])continue;const _0x2d66b8=[];for(let _0x287cdf=_0x3d0b4c+0x1;_0x287cdf<_0xd3d6b0['length'];_0x287cdf++)0x0!=_0xd3d6b0[_0x287cdf]['length']&&_0x5e4baa(_0xd3d6b0[_0x3d0b4c],_0xd3d6b0[_0x287cdf])&&_0x2d66b8['push'](_0x287cdf);for(const _0x1b987b of _0x2d66b8)_0xd3d6b0[_0x3d0b4c]=_0xd3d6b0[_0x3d0b4c]['concat'](_0xd3d6b0[_0x1b987b]),_0xd3d6b0[_0x1b987b]=[];}for(const _0x2b90e6 of _0xd3d6b0)for(let _0x1ddc15=0x0;_0x1ddc15<_0x2b90e6['length'];_0x1ddc15++){const _0x2cec76=_0x2b90e6[_0x1ddc15+0x1]||null;_0x2b90e6[_0x1ddc15]['next']!==_0x2cec76&&(_0x2b90e6[_0x1ddc15]['next']=_0x2cec76);}for(const _0x4e5ccc of _0xd3d6b0)for(let _0x4f8ebe=0x0;_0x4f8ebe<_0x4e5ccc['length'];_0x4f8ebe++){const _0x55228f=_0x4e5ccc[_0x4f8ebe-0x1]||null;_0x4e5ccc[_0x4f8ebe]['previous']!==_0x55228f&&(_0x4e5ccc[_0x4f8ebe]['previous']=_0x55228f);}function _0x5e4baa(_0x1fe751,_0x3eae8d){if(_0x1fe751[0x0]['attributes']['groupId']!==_0x3eae8d[0x0]['attributes']['groupId']&&_0x1fe751[0x0]['author']!==_0x3eae8d[0x0]['author'])return!0x1;if(!function(_0x102a64,_0x424cef){if(!_0x102a64['hasComments']&&!_0x424cef['hasComments'])return!0x0;if(_0x102a64['hasComments']&&_0x424cef['hasComments'])return!0x1;if(_0x102a64['hasComments']&&_0x424cef['createdAt']<_0x102a64['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x424cef['hasComments']&&_0x102a64['createdAt']<_0x424cef['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1fe751[0x0],_0x3eae8d[0x0]))return!0x1;const _0x22fe35=ot(_0x1fe751[0x0]['attributes'],['groupId','trackingSessionId']),_0x25ddc4=ot(_0x3eae8d[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x22fe35,_0x25ddc4))return!0x1;if(_0x1fe751[0x0]['attributes']['groupId']==_0x3eae8d[0x0]['attributes']['groupId'])return!0x0;if(_0x1fe751[0x0]['attributes']['trackingSessionId']!==_0x3eae8d[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x1fe751['every'](_0x3a2d9a=>_0x3eae8d['some'](_0x224c07=>_0x3a2d9a['getFirstRange']()['isEqual'](_0x224c07['getFirstRange']())))&&_0x3eae8d['every'](_0x4351d8=>_0x1fe751['some'](_0x18e931=>_0x4351d8['getFirstRange']()['isEqual'](_0x18e931['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xe0ad6b){const _0x1c9e4d=Array['from'](_0xe0ad6b),_0x4a6017=this['getSuggestions']({'skipNotAttached':!0x0}),_0xfe812c=_0x4a6017['filter'](_0x286902=>!_0xe0ad6b['has'](_0x286902)),_0x28cb8d=new Map(_0x1c9e4d['map'](_0x1305cd=>[_0x1305cd,this['_suggestionFactory']['getSuggestionCallback'](_0x1305cd['type'],_0x1305cd['subType'],'join')])),_0x524ab9=new Map(_0x4a6017['map'](_0xc3b9c2=>[_0xc3b9c2,_0xc3b9c2['getRanges']()]));for(let _0x78dbbb=0x0;_0x78dbbb<_0x1c9e4d['length'];_0x78dbbb++){if(_0x28349b(this,_0x1c9e4d[_0x78dbbb],_0x1c9e4d,_0x78dbbb+0x1))return!0x0;}for(let _0x25cd3a=0x0;_0x25cd3a<_0x1c9e4d['length'];_0x25cd3a++){if(_0x28349b(this,_0x1c9e4d[_0x25cd3a],_0xfe812c,0x0))return!0x0;}return!0x1;function _0x28349b(_0x25fb36,_0x4a04e6,_0x47647d,_0x9da324){for(let _0x560330=_0x9da324;_0x560330<_0x47647d['length'];_0x560330++){const _0x3eb7a7=_0x47647d[_0x560330];if(_0x3eb7a7['type']!==_0x4a04e6['type']||_0x3eb7a7['author']['id']!==_0x4a04e6['author']['id']||_0x3eb7a7['subType']!==_0x4a04e6['subType'])continue;if(!jt(_0x4a04e6,_0x3eb7a7))continue;if('attribute'==_0x4a04e6['type']&&_0x4a04e6['data']['oldValue']!=_0x3eb7a7['data']['oldValue'])continue;if('attribute'==_0x4a04e6['type']&&_0x25fb36['_suggestionsConversion']['isBlockAttribute'](_0x4a04e6['data']['key']))continue;if('formatBlock'==_0x4a04e6['type']){const _0x243d1a=_0x25fb36['editor']['model'],_0x5ce7c=_0x4a04e6['getContainedElement']();if(_0x5ce7c&&(_0x243d1a['schema']['isObject'](_0x5ce7c)||_0x243d1a['schema']['isLimit'](_0x5ce7c)))continue;}const _0x52d078=_0x28cb8d['get'](_0x4a04e6),_0x4db20a=_0x524ab9['get'](_0x4a04e6),_0x1fb2a3=_0x524ab9['get'](_0x3eb7a7),_0x47b5d9=_0x4a04e6['commentThread']&&_0x4a04e6['commentThread']['length'],_0x43e686=_0x3eb7a7['commentThread']&&_0x3eb7a7['commentThread']['length'];if(!_0x47b5d9&&_0x52d078(_0x1fb2a3,_0x4db20a))return _0x25fb36['_joinSuggestions'](_0x3eb7a7,_0x4a04e6),_0x524ab9['delete'](_0x4a04e6),!0x0;if(!_0x43e686&&_0x52d078(_0x4db20a,_0x1fb2a3))return _0x25fb36['_joinSuggestions'](_0x4a04e6,_0x3eb7a7),_0x524ab9['delete'](_0x3eb7a7),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1a7cdf,_0x337373){if(_0x1a7cdf['isMultiRange']){for(const _0xb854c1 of _0x337373['getRanges']())_0x1a7cdf['addRange'](_0xb854c1);}else{const _0x36cd4b=_0x337373['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1a7cdf,this['_model']['createRange'](_0x1a7cdf['getFirstRange']()['start'],_0x36cd4b));}_0x337373['removeMarkers']();}['_getMarkerAnnouncementText'](_0x323f01,_0x5b598f,_0x49d1c6){const _0x4e2f85=_0x323f01['startsWith']('format')||_0x323f01['startsWith']('attribute')?'FORMATTING':_0x323f01['toUpperCase']();return Tt(this['editor']['locale'],_0x5b598f+'_'+_0x4e2f85+'_SUGGESTION_ANNOUNCEMENT',_0x49d1c6);}['_initAriaMarkerChangeAnnouncements'](){const _0x266ba0=this['editor'];if(!_0x266ba0['ui'])return;const {ariaLiveAnnouncer:_0x31b8ea}=_0x266ba0['ui'];_0x273667(this['_model'],({left:_0x2eebc8,entered:_0x4af781})=>{for(const _0x52fa54 of _0x2eebc8){const {group:_0x126242,type:_0x38add0}=_0x11d9f0(_0x52fa54['name']);if('suggestion'===_0x126242){_0x31b8ea['announce'](this['_getMarkerAnnouncementText'](_0x38add0,'LEAVE'));break;}}for(const _0x1f530c of _0x4af781){const {group:_0x14a053,type:_0x56715f}=_0x11d9f0(_0x1f530c['name']);if('suggestion'===_0x14a053){_0x31b8ea['announce'](this['_getMarkerAnnouncementText'](_0x56715f,'ENTER',_0x21d050(_0x1b2bd3)));break;}}});}['_processAttributeChanges'](_0x4328b2){if(this['_recordAttributeSuggestions'])return!0x1;const _0x29c356=this['editor'],_0x316c7a=_0x29c356['model']['document']['differ']['getChanges']();if(0x0==_0x316c7a['length'])return!0x1;const _0x569afd=[],_0x576075=_0x316c7a['filter'](_0x3ca2ae=>'attribute'==_0x3ca2ae['type']),_0x2d03a8=_0x316c7a['filter'](_0x5aa76a=>'insert'==_0x5aa76a['type']&&'$text'!=_0x5aa76a['name']),_0x183cf3=_0x316c7a['filter'](_0x291a5e=>'remove'==_0x291a5e['type']&&'$text'!=_0x291a5e['name']);for(const _0x30c622 of _0x576075)_0x569afd['push']({'key':_0x30c622['attributeKey'],'newValue':_0x30c622['attributeNewValue'],'oldValue':_0x30c622['attributeOldValue'],'range':$t(_0x30c622['range'],_0x29c356['model'])});for(const _0x11231c of _0x2d03a8){const _0x5b8954=_0x183cf3['find'](_0x4ba98f=>_0x4ba98f['position']['isEqual'](_0x11231c['position']));_0x5b8954&&_0x569afd['push']({'key':Ft,'newValue':_0x11231c['name'],'oldValue':_0x5b8954['name'],'range':_0x29c356['model']['createRangeOn'](_0x11231c['position']['nodeAfter'])});}return 0x0!=_0x569afd['length']&&this['_reduceExistingSuggestions'](_0x4328b2,_0x569afd);}['_processAttributeSuggestions'](_0x3ac75b){let _0x44f824=!0x1;const _0x32f096=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x428472=>_0x428472['data']['newRange']&&_0x428472['name']['startsWith']('suggestion:attribute:'));for(const _0xb2fbbf of _0x32f096){const {subType:_0x283dd7,id:_0x2e7e8e}=_0x11d9f0(_0xb2fbbf['name']),_0xb66f00=_0x283dd7['split']('|')[0x0];for(const _0xfae0d9 of this['getSuggestions']({'skipNotAttached':!0x0}))_0xfae0d9['id']!=_0x2e7e8e&&'attribute'==_0xfae0d9['type']&&_0xfae0d9['data']&&_0xfae0d9['data']['key']==_0xb66f00&&_0xfae0d9['getFirstRange']()['isIntersecting'](_0xb2fbbf['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xfae0d9,_0xb2fbbf['data']['newRange'],_0x3ac75b),_0x44f824=!0x0);}return _0x44f824;}['recordAttributeChanges'](_0x14288b){this['_recordAttributeSuggestions']=!0x0,_0x14288b();}['_reduceExistingSuggestions'](_0x2141c4,_0x28daa4){if(0x0==_0x28daa4['length'])return!0x1;let _0x11a8d0=!0x1;for(const _0x1aa0cc of _0x28daa4){const _0x5120b7=this['_findSuggestions'](_0x1aa0cc['range'],'attribute')['filter'](_0x3df7ae=>!_0x3df7ae['meta']['isNextTo'])['map'](_0x57b71a=>_0x57b71a['suggestion']),_0x1e18ea=_0x54b6ec({'newValue':_0x1aa0cc['newValue']});_0x5120b7['filter'](_0x2a9619=>{const [_0x21f4dd,_0x1328ba]=_0x2a9619['subType']['split']('|');return _0x21f4dd==_0x1aa0cc['key']&&_0x1328ba!=_0x1e18ea;})['forEach'](_0x56ee98=>{this['_reduceSuggestionAttributeRange'](_0x56ee98,_0x1aa0cc['range'],_0x2141c4),_0x11a8d0=!0x0;});}return _0x11a8d0;}['_reduceSuggestionAttributeRange'](_0x4dbc1b,_0x4cc267,_0x1a0b86){const _0x599a06=_0x4dbc1b['getFirstRange']()['getDifference'](_0x4cc267);0x0!==_0x599a06['length']?0x1!==_0x599a06['length']?this['_breakSuggestionMarker'](_0x4dbc1b,_0x4cc267['start'],_0x4cc267['end']):this['_setSuggestionRange'](_0x4dbc1b,_0x599a06[0x0]):_0x1a0b86['removeMarker'](_0x4dbc1b['getFirstMarker']());}}class SuggestionFactory{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x575d63){this['_editor']=_0x575d63,this['_model']=_0x575d63['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x34a0b8,_0x28329e,_0x10045f,_0x2ace41,_0x3edb36,_0x1bf5c4,_0x49f2f7){return new Suggestion(this['_model'],{'type':_0x34a0b8,'subType':_0x28329e,'id':_0x10045f,'originalSuggestionId':_0x49f2f7,'author':_0x2ace41,'creator':_0x2ace41,'attributes':_0x3edb36,'onAttributesChange':_0x1bf5c4,'onAccept':(..._0x563af5)=>this['getSuggestionCallback'](_0x34a0b8,_0x28329e,'accept')(..._0x563af5),'onDiscard':(..._0x25ef8d)=>this['getSuggestionCallback'](_0x34a0b8,_0x28329e,'discard')(..._0x25ef8d)});}['registerCustomCallback'](_0x45401a,_0x272afc,_0x30f437,_0x4dc2fc){const _0xbf8d35=_0x45401a+':'+_0x272afc+':'+_0x30f437;this['_customCallbacks']['set'](_0xbf8d35,_0x4dc2fc);}['getSuggestionCallback'](_0x1c8427,_0x32bed9,_0x1ee332){const _0x1ab7da=_0x1c8427+':'+_0x32bed9+':'+_0x1ee332;return this['_customCallbacks']['get'](_0x1ab7da)||this['_defaultCallbacks']['get'](_0x1c8427+':'+_0x1ee332);}['_registerDefaultCallbacks'](){const _0x3aa4e8=()=>!0x1,_0x280125=_0x31762f=>{_0x31762f['sort']((_0x53e983,_0x5ed923)=>_0x53e983['start']['isBefore'](_0x5ed923['start'])?0x1:-0x1),this['_model']['change'](_0x2833fa=>{for(const _0x19cbe0 of _0x31762f){let _0x2829ed;_0x2829ed=_0x19cbe0['end']['isAtEnd']&&_0x19cbe0['end']['parent']==_0x19cbe0['start']['nodeAfter']?_0x2833fa['createSelection'](_0x19cbe0['start']['nodeAfter'],'on'):_0x2833fa['createSelection'](_0x19cbe0),this['_model']['deleteContent'](_0x2829ed,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x283749=(_0x2e446d,_0xa18d55)=>{_0xa18d55&&this['_model']['change'](_0x3be7e4=>{const {commandName:_0x1b168e,commandParams:_0x32aacf=[]}=_0xa18d55,_0x5cf110=_0x2e446d['map'](_0x13ad79=>(vt(_0x13ad79)&&(_0x13ad79=this['_model']['createRange'](_0x13ad79['end'])),_0x13ad79))['filter'](_0x2a1a1c=>'$graveyard'!==_0x2a1a1c['root']['rootName']);if(_0x5cf110['length']<0x1)return;const _0x2eb344=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4d6cdc=>_0x4099e3['fromRange'](_0x4d6cdc));_0x3be7e4['setSelection'](_0x5cf110);for(const _0x241115 of this['_editor']['commands']['commands']())_0x241115['refresh']();_0x32aacf['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1b168e,..._0x32aacf);const _0x58b6b8=_0x2eb344['filter'](_0x418e33=>'$graveyard'!=_0x418e33['root']['rootName']);_0x58b6b8['length']>0x0&&_0x3be7e4['setSelection'](_0x58b6b8);for(const _0x44d1bd of _0x2eb344)_0x44d1bd['detach']();});},_0x4154a4=(_0x35fd70,_0x1e02f0)=>0x1==_0x35fd70['length']&&0x1==_0x1e02f0['length']&&_0x35fd70[0x0]['end']['isEqual'](_0x1e02f0[0x0]['start']),_0x24d950=(_0x10b917,_0x5e9e5b,_0x56622e,_0x53c3ed)=>Wt(_0x10b917,_0x5e9e5b,_0x56622e,_0x53c3ed)?[_0x10b917,_0x5e9e5b]:Wt(_0x5e9e5b,_0x10b917,_0x53c3ed,_0x56622e)?[_0x5e9e5b,_0x10b917]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3aa4e8),this['_defaultCallbacks']['set']('insertion:discard',_0x280125),this['_defaultCallbacks']['set']('insertion:join',_0x4154a4),this['_defaultCallbacks']['set']('insertion:chain',_0x24d950),this['_defaultCallbacks']['set']('deletion:accept',_0x280125),this['_defaultCallbacks']['set']('deletion:discard',_0x3aa4e8),this['_defaultCallbacks']['set']('deletion:join',_0x4154a4),this['_defaultCallbacks']['set']('deletion:chain',_0x24d950),this['_defaultCallbacks']['set']('formatInline:accept',_0x283749),this['_defaultCallbacks']['set']('formatInline:discard',_0x3aa4e8),this['_defaultCallbacks']['set']('formatInline:join',_0x4154a4),this['_defaultCallbacks']['set']('formatInline:chain',_0x3aa4e8),this['_defaultCallbacks']['set']('formatBlock:accept',_0x283749),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3aa4e8),this['_defaultCallbacks']['set']('formatBlock:join',_0x4154a4),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3aa4e8),this['_defaultCallbacks']['set']('attribute:accept',_0x3aa4e8),this['_defaultCallbacks']['set']('attribute:discard',(_0x15991a,_0x86645)=>{if(!_0x86645)return;const _0x3fb4ac=this['_editor']['plugins']['get'](_0x45f6b6);this['_model']['change'](_0x588df1=>{if(_0x86645['key']==Ft)for(const _0x457571 of _0x15991a){const _0x117ddd=_0x457571['start']['nodeAfter'],_0x701ef=_0x86645['oldValue'];_0x588df1['rename'](_0x117ddd,_0x701ef);}else{if(_0x3fb4ac['isBlockAttribute'](_0x86645['key'])){for(const _0x42ff6c of _0x15991a)void 0x0!==_0x86645['oldValue']?_0x588df1['setAttribute'](_0x86645['key'],_0x86645['oldValue'],_0x42ff6c['start']['nodeAfter']):_0x588df1['removeAttribute'](_0x86645['key'],_0x42ff6c['start']['nodeAfter']);}else{for(const _0x25016b of _0x15991a)_0x86645['oldValue']?_0x588df1['setAttribute'](_0x86645['key'],_0x86645['oldValue'],_0x25016b):_0x588df1['removeAttribute'](_0x86645['key'],_0x25016b);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4154a4);}}function Dt(_0x4f30d4,_0x353214,_0x542662){for(const _0x53f800 of _0x353214['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x53f800['root']==_0x53f800)return!0x1;if(!_0x542662['containsItem'](_0x53f800))return!0x1;if(_0x4f30d4['isObject'](_0x53f800)||_0x4f30d4['isLimit'](_0x53f800))return!0x0;}return!0x1;}function vt(_0x1f1eba){return _0x1f1eba['end']['parent']==_0x1f1eba['start']['nodeAfter']&&_0x1f1eba['end']['isAtStart'];}function xt(_0x42ee58,_0x4a875d,_0x2365f5,_0x2b6485){const _0x267746=_0x30d1df=>!_0x30d1df['item']['is']('$textProxy')&&!_0x2b6485['isObject'](_0x30d1df['item']),_0x11e67b=_0x42ee58['start']['getLastMatchingPosition'](_0x267746),_0x5c0fd7=_0x42ee58['end']['getLastMatchingPosition'](_0x267746,{'direction':'backward'});return(!_0x42ee58['start']['isEqual'](_0x11e67b)||!_0x42ee58['end']['isEqual'](_0x5c0fd7))&&(_0x11e67b['isBefore'](_0x5c0fd7)?_0x2365f5['updateMarker'](_0x4a875d,{'range':_0x2365f5['createRange'](_0x11e67b,_0x5c0fd7)}):_0x2365f5['removeMarker'](_0x4a875d),!0x0);}function Pt(_0x4d3622){return _0x54b6ec(_0x4d3622);}function Ut(_0x691033){const _0x51c195=_0x691033['start']['nodeAfter'];return _0x51c195&&_0x51c195['is']('element');}function Gt(_0x274280){return vt(_0x274280)||function(_0x1164e8){return _0x1164e8['start']['parent']==_0x1164e8['end']['nodeBefore']&&_0x1164e8['start']['isAtEnd'];}(_0x274280);}function Ht(_0x4cfae8,_0xc352f8){try{const _0x4e2857=_0x4cfae8['getRange']();for(const _0x2e6900 of _0xc352f8)if(_0x4cfae8!==_0x2e6900&&_0x4e2857&&_0x4e2857['isIntersecting'](_0x2e6900['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function $t(_0x451809,_0x4d9dd3){return null==_0x451809['end']['nodeBefore']&&_0x451809['end']['parent']==_0x451809['start']['nodeAfter']?Vt(_0x451809['start']['nodeAfter'],_0x4d9dd3):_0x451809;}function Vt(_0x103deb,_0x10f583){const _0x462eae=_0x10f583['schema']['isObject'](_0x103deb)||_0x10f583['schema']['isSelectable'](_0x103deb);return _0x10f583['createRange'](_0x10f583['createPositionAt'](_0x103deb,'before'),_0x462eae?_0x10f583['createPositionAfter'](_0x103deb):_0x10f583['createPositionAt'](_0x103deb,'end'));}function Wt(_0x453ea0,_0x1b3fdb,_0x4eeafa,_0x23d0cb){return!!jt(_0x453ea0,_0x1b3fdb)&&_0x4eeafa['end']['isEqual'](_0x23d0cb['start']);}function jt(_0x25ba94,_0x4fa08a){if(!_0x25ba94['_isDataLoaded']||!_0x4fa08a['_isDataLoaded'])return!0x1;const _0x3a9453=new Set(Object['keys'](_0x25ba94['attributes'])),_0x497223=new Set(Object['keys'](_0x4fa08a['attributes']));if(_0x3a9453['delete']('groupId'),_0x497223['delete']('groupId'),0x0==_0x3a9453['size']&&0x0==_0x497223['size'])return!0x0;if(_0x3a9453['size']!=_0x497223['size'])return!0x1;const _0x19ad6a={..._0x25ba94['attributes']},_0x1c4f31={..._0x4fa08a['attributes']};return delete _0x19ad6a['groupId'],delete _0x1c4f31['groupId'],JSON['stringify'](_0x19ad6a)==JSON['stringify'](_0x1c4f31);}function zt(_0x41b1e8,_0x137744){const _0x25b931=Kt(_0x41b1e8['attributes']),_0x4f8e77=Kt(_0x137744);if(!_0x41b1e8['_isDataLoaded'])return!0x1;for(const _0x5286db of Object['keys'](_0x4f8e77))if(!st(_0x25b931[_0x5286db],_0x4f8e77[_0x5286db]))return!0x1;return!0x0;}function Kt(_0x5edaa2){const _0x53cf60=Object['assign']({},_0x5edaa2);return delete _0x53cf60['skipNestingCheck'],delete _0x53cf60['tablePasteChainId'],_0x53cf60;}function Xt(_0x1be0ba){return _0x1be0ba['split']('|')[0x0];}class SuggestionController extends/* #__PURE__ -- @preserve */
26
- _0x3c23d7(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x41b4e8,_0x257e01,_0x5f41ea,_0x331b1d){super(),this['model']=_0x257e01,this['view']=_0x5f41ea,this['commentThreadController']=_0x331b1d,this['_editor']=_0x41b4e8,this['_acceptCommand']=_0x41b4e8['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x41b4e8['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2f8580,_0x9bde7b)=>_0x2f8580||_0x9bde7b),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x551209=>_0x551209&&this['_editor']['model']['canEditAt'](_0x257e01['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2ba1f5=>_0x2ba1f5&&this['_editor']['model']['canEditAt'](_0x257e01['getRanges']())),this['_pendingAction']=null,_0x5f41ea['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5f41ea,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5f41ea,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5f41ea,'change:isDirty',()=>{_0x5f41ea['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 _0x2157f0=Tt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2157f0);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class BaseSuggestionThreadView extends _0x45ba2b{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x477aff,_0x2d05b7,_0x8d73b2,_0x2ec0c4){super(_0x477aff),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x4a4323(_0x477aff,Tt(_0x477aff,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x2d05b7['authoredAt']),this['bind']('authoredAt')['to'](_0x2d05b7),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',_0x2d05b7,'authoredAt',this,'descriptionParts',(_0x1d5234,_0x3337f9,_0x186010)=>{const _0x7e39d0=_0x186010['map'](_0x49dc82=>ht(_0x49dc82['content']))['join']('.\x20')+'.';return Tt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1d5234-0x1,_0x2d05b7['author']['name'],_0x3337f9?_0x2ec0c4['formatDateTime'](_0x3337f9):'',new DOMParser()['parseFromString'](_0x7e39d0,'text/html')['body']['textContent']]);}),this['focusables']=new _0xe861d7(),this['focusTracker']=new _0x5d0c26(),this['keystrokes']=new _0x506df3(),this['focusCycler']=new _0x3d145f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x31c3d3=>_0x31c3d3['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x2d05b7,this['_localUser']=_0x8d73b2,this['_config']=_0x2ec0c4,_0x2ec0c4['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x1972d2(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2333eb}=this['_config'];this['commentsListView']=new _0x2333eb(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',_0xf27438=>_0xf27438+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x25fad7,_0x44d832)=>_0x25fad7||!!_0x44d832);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x59acb2}=this['_config'],_0x1c20fc=new _0x59acb2(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4db91d=_0x1c20fc['commentInputView'];return _0x1c20fc['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4db91d,'value',(_0x2c4ca0,_0x5695cd,_0x211b4a)=>!!_0x211b4a||_0x2c4ca0&&!_0x5695cd),_0x4db91d['on']('submit',(_0x43a619,_0x51db05)=>{this['fire']('addComment',_0x51db05),_0x4db91d['editor']['setData']('');}),_0x4db91d['on']('cancel',()=>this['focus']()),_0x4db91d['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1c20fc;}}class SuggestionThreadView extends BaseSuggestionThreadView{['suggestionView'];['_descriptionElement'];constructor(_0x5bef9a,_0xbd7aa9,_0x339483,_0x58abf1){super(_0x5bef9a,_0xbd7aa9,_0x339483,_0x58abf1),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x8c4662=>_0x8c4662&&_0x8c4662[0x0]?_0x8c4662[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x102d70,_0x80370a)=>{let _0x50c302='';for(const _0x5667cd of _0x102d70)_0x50c302+='<p>'+ht(_0x5667cd['content'],_0x5667cd['color'])+'</p>';return _0x80370a?_0x50c302:_0x23312a(_0x50c302,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x58abf1['SuggestionView'](_0x5bef9a,_0xbd7aa9,{'formatDateTime':_0x58abf1['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 _0x2e4e28=this['bindTemplate'],_0x544adc=[this['suggestionView']];return this['commentsListView']&&_0x544adc['push'](this['commentsListView']),this['commentThreadInputView']&&_0x544adc['push'](this['commentThreadInputView']),_0x544adc['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2e4e28['if']('isActive','ck-suggestion-wrapper--active'),_0x2e4e28['to']('type',_0x17ed78=>'ck-suggestion-'+_0x17ed78),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':_0x2e4e28['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x544adc};}['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 SuggestionView extends _0x45ba2b{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5f590c,_0x19ab33,_0x176efd){super(_0x5f590c),this['_model']=_0x19ab33,this['_config']=_0x176efd,this['set']('description',''),this['bind']('authoredAt')['to'](_0x19ab33),this['acceptButton']=this['_createButton'](Tt(_0x5f590c,'Accept\x20suggestion'),_0x333ecc,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Tt(_0x5f590c,'Discard\x20suggestion'),_0x57c6bd,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xe23deb(_0x5f590c,_0x19ab33['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xe861d7([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5d0c26(),this['keystrokes']=new _0x506df3(),this['focusCycler']=new _0x3d145f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2ff2c1=>_0x2ff2c1['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3a8a10=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3a8a10['innerHTML']=this['description'],this['on']('change:description',(_0x4212dc,_0x1c510e,_0x574615)=>{_0x3a8a10['innerHTML']=_0x574615;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0xe346a9=this['bindTemplate'],_0x4674f0=[{'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':_0xe346a9['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xe346a9['to']('authoredAt',_0x27d986=>this['_config']['formatDateTime'](_0x27d986))}]}]},{'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']&&_0x4674f0['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':_0x4674f0}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?Tt(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):Tt(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?Tt(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):Tt(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x4301ac,_0x3f038f,_0x1a8b42,_0x30b1a4,_0x5b2fd5){const _0x4b471b=new _0x14b3e(this['locale']);return _0x4b471b['set']({'label':_0x4301ac,'icon':_0x3f038f,'tooltip':!0x0,'tooltipPosition':_0x5b2fd5}),_0x4b471b['extendTemplate']({'attributes':{'class':_0x1a8b42}}),_0x4b471b['on']('execute',()=>{this['fire'](_0x30b1a4,this['_model']['id']);}),_0x4b471b;}['_setupKeyboardNavigation'](){const _0x5a2534=this['element'];this['keystrokes']['listenTo'](_0x5a2534);for(const _0x476bc3 of this['focusables'])this['focusTracker']['add'](_0x476bc3['element']),this['keystrokes']['listenTo'](_0x476bc3['element']);this['keystrokes']['set']('enter',(_0x375b67,_0x5d2c88)=>{_0x5a2534===_0x375b67['target']&&(this['focusCycler']['focusFirst'](),_0x5d2c88());}),this['keystrokes']['set']('esc',(_0x147599,_0x4b18b6)=>{_0x5a2534!==_0x147599['target']&&(this['focus'](),_0x4b18b6());});}}class TrackChangesUI extends _0x1b042a{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[TrackChangesEditing,_0x97b95d,_0x2e3e9f,_0x134463,_0x2b0d1d];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4ba448){super(_0x4ba448),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x393d1a=this['editor']['config'];_0x393d1a['define']('trackChanges.SuggestionThreadView',SuggestionThreadView),_0x393d1a['define']('trackChanges.SuggestionView',SuggestionView),_0x393d1a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x393d1a['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x36de13,_0x193332){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x527942,_0x358f30]of this['_handleControllerBuffer']){const _0x551741=this['_suggestionToController']['has'](_0x527942);_0x551741||_0x358f30?_0x551741&&_0x358f30&&this['_destroyController'](_0x527942):this['_initializeController'](_0x527942);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x2b0d1d)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x36de13,_0x193332);}['init'](){const _0x1c59b1=this['editor'],_0x37ee42=_0x1c59b1['plugins']['get'](TrackChangesEditing),_0x5e3289=_0x1c59b1['plugins']['get'](_0x134463),_0x17ccca=_0x1c59b1['plugins']['get'](_0x2b0d1d),_0xf3b66e=_0x1c59b1['plugins']['get'](_0x2e3e9f);this['_addUIComponentsToFactory'](),_0x17ccca['addSourceCollector'](()=>{const _0x3c818f=[];for(const [_0x45ef3d,_0x4213f3]of Array['from'](this['_suggestionToController'])){const _0x4ef129=_0x45ef3d['getAllAdjacentSuggestions'](),_0x393608=[];for(const _0x4cfc3b of _0x4ef129){if(!_0x4cfc3b['isInContent'])continue;if(_0x4cfc3b['isMultiRange']){_0x393608['push'](..._0x4cfc3b['getRanges']());continue;}const _0x5f3a5d=_0x4cfc3b['getFirstRange']();if(_0x393608['length']>0x0){const _0x182a69=_0x393608[0x0]['getJoined'](_0x5f3a5d);if(_0x182a69){_0x393608[0x0]=_0x182a69;continue;}}_0x393608['push'](_0x5f3a5d);}_0x3c818f['push']([_0x4213f3['view'],_0x393608]);}return _0x3c818f;}),this['listenTo'](_0x37ee42,'suggestionLoaded',(_0x1aef21,_0x3c5f48)=>{this['listenTo'](_0x3c5f48,'change:previous',(_0x198973,_0x19baaf,_0x305048,_0x34792a)=>{_0x3c5f48['isInContent']&&(null==_0x305048?(this['_updateController'](_0x34792a['head']),this['_handleSuggestionControllerDelayed'](_0x3c5f48,!0x1)):(this['_updateController'](_0x305048['head']),null==_0x34792a&&this['_handleSuggestionControllerDelayed'](_0x3c5f48,!0x0)));}),null!==_0x3c5f48['previous']?this['_updateController'](_0x3c5f48['head']):this['_handleSuggestionControllerDelayed'](_0x3c5f48,!0x1);}),this['listenTo'](_0x37ee42,'suggestionUnloaded',(_0x2de22a,_0x341928,_0x5dbd9d)=>{this['stopListening'](_0x341928,'change:previous'),this['_handleControllerBuffer']['delete'](_0x341928),this['_suggestionToController']['has'](_0x341928)&&this['_destroyController'](_0x341928),_0x5dbd9d&&this['_updateController'](_0x5dbd9d['head']);}),this['listenTo'](_0x37ee42,'suggestionChanged',(_0x2e5d6f,_0x4274e0)=>{this['_updateController'](_0x4274e0);}),this['listenTo'](_0x5e3289,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xf3b66e,'addComment',(_0x36091d,{threadId:_0x341a99,isFromAdapter:_0x46489f})=>{if(_0x46489f||!_0x37ee42['hasSuggestion'](_0x341a99))return;const _0x27c3ff=_0x37ee42['getSuggestion'](_0x341a99);this['_suggestionToController']['get'](_0x27c3ff)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1c5d44=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5128c8;for(const _0x27cdc9 in _0x1c5d44){const _0x515e8a=_0x27cdc9,_0x3d9921=_0x1c5d44[_0x515e8a];if('trackChangesLicenseKeyValid'==_0x3d9921||'trackChangesLicenseKeyInvalid'==_0x3d9921||'trackChangesLicenseKeyExpired'==_0x3d9921||'trackChangesLicenseKeyDomainLimit'==_0x3d9921||'trackChangesLicenseKeyNotAllowed'==_0x3d9921||'trackChangesLicenseKeyEvaluationLimit'==_0x3d9921||'trackChangesLicenseKeyUsageLimit'==_0x3d9921){delete _0x1c5d44[_0x515e8a],_0x5128c8=_0x3d9921,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5128c8&&_0x1c5d44['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5128c8&&_0x1c5d44['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5128c8&&_0x1c5d44['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5128c8&&_0x1c5d44['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5128c8&&_0x1c5d44['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5128c8&&_0x1c5d44['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x31065a){const _0x2d67eb=this['_suggestionToController']['get'](_0x31065a);if(!_0x2d67eb)return null;return this['editor']['plugins']['get'](_0x134463)['getByInnerView'](_0x2d67eb['view'])||null;}['getSuggestionForAnnotation'](_0x324c38){const _0x488666=this['_viewToController']['get'](_0x324c38['innerView']);return _0x488666?_0x488666['model']:null;}['_refreshActiveMarkers'](){const _0x4da168=this['editor']['plugins']['get'](_0x134463),_0x154c53=this['editor']['plugins']['get'](TrackChangesEditing),_0x2a0a9e=Array['from'](_0x4da168['activeAnnotations'],_0x44155a=>_0x44155a['innerView'])['filter'](_0x451580=>this['_viewToController']['has'](_0x451580)),_0x51a2b7=[];for(const _0x20e5df of _0x2a0a9e){const _0xcf8471=this['_viewToController']['get'](_0x20e5df)['model']['getAllAdjacentSuggestions']();_0x51a2b7['push'](..._0xcf8471['reduce']((_0x50311b,_0x3853b7)=>[..._0x50311b,..._0x3853b7['getMarkerNames']()],[]));}_0x154c53['activeMarkers']=_0x51a2b7;}['_addUIComponentsToFactory'](){const _0x141a8b=this['editor'],_0x231b19=_0x141a8b['locale'],_0x3dafa4=Tt(_0x231b19,'Track\x20changes'),_0x32cb13=new _0x743895([{'type':'switchbutton','model':new _0x4d5172({'withText':!0x0,'isToggleable':!0x0,'label':_0x3dafa4,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4d5172({'withText':!0x0,'label':Tt(_0x231b19,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4d5172({'withText':!0x0,'label':Tt(_0x231b19,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4d5172({'withText':!0x0,'label':Tt(_0x231b19,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4d5172({'withText':!0x0,'label':Tt(_0x231b19,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x141a8b['plugins']['has']('TrackChangesPreview')&&_0x32cb13['addMany']([{'type':'separator'},{'type':'button','model':new _0x4d5172({'withText':!0x0,'label':Tt(_0x231b19,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3f586a of _0x32cb13)if(Yt(_0x3f586a)){const _0x3c6cb3=_0x141a8b['commands']['get'](_0x3f586a['model']['commandName']);_0x3f586a['model']['bind']('isOn','isEnabled')['to'](_0x3c6cb3,'value','isEnabled');}_0x141a8b['ui']['componentFactory']['add']('trackChanges',_0x1689a8=>this['_createToolbarButton'](_0x1689a8,_0x32cb13,_0x3dafa4)),_0x141a8b['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2120ab=>this['_createMenuBarMenu'](_0x2120ab,_0x32cb13,_0x3dafa4));}['_createToolbarButton'](_0x1ecbb6,_0x3c94ad,_0x2cd62c){const _0x51a799=_0x565160(_0x1ecbb6,_0x57ec08),_0x426747=this['editor']['commands']['get']('trackChanges');_0x51a799['buttonView']['set']({'tooltip':_0x2cd62c,'label':_0x2cd62c,'icon':_0x3fc479}),_0x51a799['buttonView']['bind']('isOn')['to'](_0x426747,'value'),_0x51a799['buttonView']['on']('execute',()=>{_0x426747['execute'](),this['editor']['editing']['view']['focus']();}),_0x2824d6(_0x51a799,_0x3c94ad,{'role':'menu'});const _0x2757e3=[];for(const _0x394371 of _0x3c94ad)Yt(_0x394371)&&_0x2757e3['push'](this['editor']['commands']['get'](_0x394371['model']['commandName']));const _0x2e7874=_0x51a799['buttonView'];return _0x2e7874['actionView']['unbind']('isEnabled'),_0x2e7874['arrowView']['unbind']('isEnabled'),_0x2e7874['actionView']['bind']('isEnabled')['to'](_0x426747,'isEnabled'),_0x2e7874['arrowView']['bind']('isEnabled')['toMany'](_0x2757e3,'isEnabled',(..._0x49a8f8)=>_0x49a8f8['some'](_0x58295e=>_0x58295e)),_0x51a799['on']('execute',_0x1b4663=>{this['editor']['execute'](_0x1b4663['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x51a799;}['_createMenuBarMenu'](_0x4f368a,_0x381d48,_0x49bf2b){const _0x1ec4a4=new _0x155a74(_0x4f368a),_0x53d68f=this['editor']['commands']['get']('trackChanges');_0x1ec4a4['buttonView']['set']({'label':_0x49bf2b,'icon':_0x3fc479});const _0x3716ae=new _0x352c61(_0x4f368a);for(const _0x38d284 of _0x381d48){if('separator'==_0x38d284['type']){_0x3716ae['items']['add'](new _0x1d7000(_0x4f368a));continue;}const _0x18dff6=new _0x4f4607(_0x4f368a,_0x1ec4a4),_0x5ed7ce=new _0x50967b(_0x4f368a),_0xf968cc=_0x38d284['model'];_0x5ed7ce['bind'](...Object['keys'](_0xf968cc))['to'](_0xf968cc),_0x5ed7ce['delegate']('execute')['to'](_0x1ec4a4),_0x5ed7ce['on']('execute',()=>{this['editor']['execute'](_0xf968cc['commandName']),this['editor']['editing']['view']['focus']();}),_0x18dff6['children']['add'](_0x5ed7ce),_0x3716ae['items']['add'](_0x18dff6);}return _0x1ec4a4['bind']('isEnabled')['to'](_0x53d68f,'isEnabled'),_0x1ec4a4['panelView']['children']['add'](_0x3716ae),_0x1ec4a4;}['_initializeController'](_0x260ad0){const _0x5843f4=this['editor'],_0x55cee9=_0x5843f4['config'],_0x345140=_0x5843f4['plugins']['get'](_0x134463),_0x54691f=_0x5843f4['plugins']['get'](_0x2e3e9f),_0x1da0c2=_0x5843f4['plugins']['get'](_0x2b0d1d),_0x249e23=_0x5843f4['plugins']['get'](_0x97b95d)['me'],_0x2eaedf=_0x55cee9['get']('trackChanges')['SuggestionThreadView'],_0x1c63e3=_0x55cee9['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x9b8823,CommentThreadInputView:_0xb17fee}=_0x5843f4['plugins']['get']('CommentsUI');let _0x1188c2,_0xaaf73,_0x306ab7;this['_annotationViews']['has'](_0x260ad0['id'])?(_0xaaf73=this['_annotationViews']['get'](_0x260ad0['id']),_0x1188c2=_0xaaf73['mainView']):(_0x1188c2=new _0x2eaedf(_0x5843f4['locale'],_0x260ad0,_0x249e23,{'disableComments':this['_disableComments'],'editorConfig':{..._0x55cee9['get']('comments.editorConfig'),'licenseKey':_0x55cee9['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x55cee9['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x55cee9['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x55cee9['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x324fb2(_0x55cee9['get']('locale'),_0x5843f4['locale']),'CommentView':_0x55cee9['get']('comments')['CommentView'],'CommentsListView':_0x9b8823,'CommentThreadInputView':_0xb17fee,'SuggestionView':_0x1c63e3}),_0x1188c2['suggestionView']['acceptButton']['on']('execute',()=>{_0x5843f4['editing']['view']['focus']();}),_0x1188c2['suggestionView']['discardButton']['on']('execute',()=>{_0x5843f4['editing']['view']['focus']();}),_0xaaf73=_0x345140['createAnnotationView'](this['editor']['locale'],_0x1188c2),_0xaaf73['bind']('isDirty')['to'](_0x1188c2,'isDirty'),_0xaaf73['bind']('length')['to'](_0x1188c2),_0xaaf73['bind']('type')['to'](_0x1188c2,'type',_0x4612f0=>'suggestion-'+_0x4612f0),_0x1188c2['on']('escape',()=>{_0x306ab7['fire']('escape');}),this['_annotationViews']['set'](_0x260ad0['id'],_0xaaf73));const _0x280c95=_0x54691f['createCommentThreadController'](_0x260ad0['commentThread'],_0x1188c2),_0x27bdb2=new SuggestionController(_0x5843f4,_0x260ad0,_0x1188c2,_0x280c95),_0x436fb0=_0x260ad0['getAllAdjacentSuggestions']()['filter'](_0x552db3=>_0x552db3['isInContent']);_0x1188c2['descriptionParts']=_0x5843f4['plugins']['get'](TrackChangesEditing)['descriptionFactory']['getDescriptions'](_0x436fb0),this['_suggestionToController']['set'](_0x260ad0,_0x27bdb2),this['_viewToController']['set'](_0x1188c2,_0x27bdb2);const _0x45a31d=()=>{const _0x303898=[],_0x41835a=_0x260ad0['getAllAdjacentSuggestions']()['filter'](_0x2cdf96=>_0x2cdf96['isInContent']);for(const _0x546cad of _0x41835a)_0x303898['push'](..._0x546cad['getMarkers']());return _0x2a695a(_0x5843f4['editing'],_0x303898);};_0x306ab7=_0x345140['createAnnotation']({'view':_0xaaf73,'target':_0x45a31d,'type':()=>'suggestion-'+_0x27bdb2['view']['type'],'isVisible':!!_0x45a31d()}),_0x54691f['_bindAnnotationToEditors'](_0x1188c2,_0x306ab7),_0x345140['add'](_0x306ab7),_0x1da0c2['registerAnnotation'](_0x306ab7);}['_destroyController'](_0xe7ea0d){const _0x8e0719=this['editor']['plugins']['get'](_0x2e3e9f),_0x3a7471=this['editor']['plugins']['get'](_0x134463),_0x36bd12=this['_suggestionToController']['get'](_0xe7ea0d),_0xa22639=_0x36bd12['view'],_0x4cc5a7=_0x3a7471['getByInnerView'](_0xa22639);_0x8e0719['_unbindEditors'](_0xa22639),_0x4cc5a7&&_0x3a7471['remove'](_0x4cc5a7),this['_suggestionToController']['delete'](_0xe7ea0d),this['_viewToController']['delete'](_0xa22639),_0x36bd12['destroy']();}['_updateController'](_0xeb5f88){if(!_0xeb5f88['isInContent']||!this['_suggestionToController']['has'](_0xeb5f88))return;const _0x5e08e0=this['editor']['plugins']['get'](TrackChangesEditing),_0x544013=this['_suggestionToController']['get'](_0xeb5f88),_0x1d42dd=_0xeb5f88['getAllAdjacentSuggestions']();_0x544013['view']['descriptionParts']=_0x5e08e0['descriptionFactory']['getDescriptions'](_0x1d42dd);}['destroy'](){for(const _0x167faf of this['_suggestionToController']['keys']())this['_destroyController'](_0x167faf);for(const _0x274a2a of this['_annotationViews']['values']())_0x274a2a['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function Yt(_0x2c6835){return'model'in _0x2c6835;}class TrackChanges extends _0x1b042a{static get['requires'](){return[TrackChangesEditing,TrackChangesUI,_0x522814];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x43d59b){this['editor']['plugins']['get'](TrackChangesEditing)['adapter']=_0x43d59b;}get['adapter'](){return this['editor']['plugins']['get'](TrackChangesEditing)['adapter'];}['addSuggestion'](_0x4fbf7a){return this['editor']['plugins']['get'](TrackChangesEditing)['addSuggestionData'](_0x4fbf7a);}['getSuggestions']({skipNotAttached:_0x3ae7d3=!0x1,toJSON:_0x5e2ac0=!0x1}={}){return this['editor']['plugins']['get'](TrackChangesEditing)['getSuggestions']({'skipNotAttached':_0x3ae7d3,'toJSON':_0x5e2ac0});}['getSuggestion'](_0x598b36){return this['editor']['plugins']['get'](TrackChangesEditing)['getSuggestion'](_0x598b36);}}const qt=['Pagination'];class TrackChangesData extends _0x1b042a{static get['requires'](){return[TrackChangesEditing];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x486ddf=this['editor'];if(_0x486ddf['config']['define']('trackChangesData.editorCreator',_0x833b72=>{const _0x4fb7f2=_0x486ddf['model']['document']['getRootNames']()['reduce']((_0x3d1274,_0x598cd0)=>(_0x3d1274[_0x598cd0]='',_0x3d1274),{});return _0x486ddf['constructor']['create'](_0x4fb7f2,_0x833b72);}),'function'!=typeof _0x486ddf['config']['get']('trackChangesData')['editorCreator'])throw new _0x2992e4('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x266edc){return Zt(this['editor'],!0x0,_0x266edc);}['getDataWithDiscardedSuggestions'](_0x6b5130){return Zt(this['editor'],!0x1,_0x6b5130);}}class TrackChangesDataGetter extends _0x1b042a{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x54550c){function _0x3edb76(_0x565054){return _0x565054['map'](_0x5601a8=>String['fromCharCode'](_0x5601a8))['join']('');}super(_0x54550c),this['result']='end',_0x54550c[_0x3edb76([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3edb76([0x76,0x69,0x65,0x77])][_0x3edb76([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3edb76([0x61,0x75,0x74,0x6f]),_0x54550c[_0x3edb76([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3edb76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3edb76([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3edb76([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3edb76([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 Qt(_0x10d331){return void 0x0!==_0x10d331['getRootsAttributes'];}async function Zt(_0x46c009,_0xced9ed,_0x3aa729){const _0x130c29=_0x2291ec(_0x46c009,qt);if(_0x130c29['plugins']['push'](TrackChangesEditing,TrackChangesDataGetter),Qt(_0x46c009)){_0x130c29['roots']=Object['create'](null);for(const _0xec19cf of _0x46c009['model']['document']['getRootNames']())_0x130c29['roots'][_0xec19cf]={'modelAttributes':_0x46c009['getRootAttributes'](_0xec19cf)};}const _0x5a1b41=document['createDocumentFragment'](),_0x6dd5c3=_0x46c009['config']['get']('trackChangesData')['editorCreator'],_0x35bee9=await _0x6dd5c3(_0x130c29,()=>function(_0x4680db){const _0x21321f=document['createElement']('div');return _0x4680db['appendChild'](_0x21321f),_0x21321f;}(_0x5a1b41));!function(_0x5a2271,_0x2793b4){const _0x15a7b8=_0x5a2271['model']['document']['getRootNames']()['reduce']((_0x4dfffc,_0x5dccc2)=>(_0x4dfffc[_0x5dccc2]=_0x5a2271['data']['get']({'rootName':_0x5dccc2}),_0x4dfffc),{}),_0x32d371=_0x5a2271['plugins']['get']('Users')['users']['map'](_0x4a10f3=>({'id':_0x4a10f3['id'],'name':_0x4a10f3['name']})),_0x2b724c=_0x5a2271['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x16c0f6=_0x5a2271['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x452192=_0x2793b4['plugins']['get']('Users'),_0x4d737c=_0x2793b4['plugins']['get']('TrackChangesEditing'),_0x498fd=_0x2793b4['plugins']['get']('CommentsRepository');for(const _0xbee069 of _0x498fd['getCommentThreads']())_0xbee069['remove']();for(const _0x274d14 of _0x32d371)_0x452192['getUser'](_0x274d14['id'])||_0x452192['addUser'](_0x274d14);_0x452192['me']||_0x452192['useAnonymousUser']();for(const _0x5d9780 of _0x16c0f6)_0x498fd['addCommentThread'](_0x5d9780);for(const _0x40e920 of _0x2b724c)_0x4d737c['addSuggestionData'](_0x40e920);_0x2793b4['data']['set'](_0x15a7b8);}(_0x46c009,_0x35bee9),_0x35bee9['execute'](_0xced9ed?'acceptAllSuggestions':'discardAllSuggestions');const _0x3c82ed=Qt(_0x35bee9)?_0x35bee9['getFullData'](_0x3aa729):_0x35bee9['data']['get'](_0x3aa729);return await _0x35bee9['destroy'](),_0x3c82ed;}class TrackChangesPreviewView extends _0x45ba2b{['options'];constructor(_0xd80f14,_0x3089c0){super(_0xd80f14),this['options']=_0x3089c0,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'](_0x2b5b44,_0x130ccd){if(!this['element'])return;const _0x126c9e=[];for(const [_0x484916,_0x4d458c]of _0x2b5b44){const _0x506734=document['createElement']('div');_0x506734['setAttribute']('data-ck-root-name',_0x484916),_0x506734['className']=_0x4d458c['classes']+'\x20ck-track-changes-preview__root-container',_0x506734['innerHTML']=_0x4d458c['content'],_0x126c9e['push'](_0x506734);}_0x130ccd(this['element'],_0x126c9e),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class PreviewFinalContentCommand extends _0x4a3a6c{constructor(_0x3ea28d){super(_0x3ea28d),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x378c42=this['editor'],_0x55c5b1=_0x378c42['locale'],_0x18eacf=_0x378c42['plugins']['get']('Dialog');let _0x2ac8c6;const _0x3c04b2=function(_0x5cd0fd){const _0x5cc80e={};if('editables'in _0x5cd0fd['ui']['view']){for(const [_0x5cc514,_0xfdba4a]of Object['entries'](_0x5cd0fd['ui']['view']['editables']))_0x5cc80e[_0x5cc514]=_0xfdba4a['element'];}else _0x5cc80e[_0x5cd0fd['model']['document']['getRootNames']()[0x0]]=_0x5cd0fd['ui']['view']['editable']['element'];return _0x5cc80e;}(_0x378c42),_0x132e0f=function(_0xe53d5f){let _0x3369a3=0x0;for(const _0x23df7d of Object['values'](_0xe53d5f))_0x3369a3=Math['max'](_0x3369a3,_0x23df7d['getBoundingClientRect']()['width']);let _0x3b2c09=0x0;for(const _0x41d9ff of Object['values'](_0xe53d5f))_0x3b2c09+=_0x41d9ff['getBoundingClientRect']()['height'];const _0xc667fd=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3e9a98=Math['min'](_0x3b2c09,_0xc667fd);return{'width':_0x3369a3,'height':_0x3e9a98};}(_0x3c04b2);_0x18eacf['show']({'id':'finalContentPreview','title':Tt(_0x55c5b1,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new TrackChangesPreviewView(_0x55c5b1,{'dialogRects':_0x132e0f}),'onHide':()=>{_0x2ac8c6['detachFromDom']();},'onShow':()=>{_0x378c42['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4949ab=>{const _0x4fd578=this['_standarizeRootsData'](_0x4949ab,_0x378c42,_0x3c04b2);_0x18eacf['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4fd578,_0x378c42['config']['get']('trackChanges.preview.renderFunction'));}),_0x2ac8c6=new _0x1aebc(_0x55c5b1,[_0x18eacf['view']]),_0x2ac8c6['attachToDom'](),_0x2ac8c6['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x378c42['once']('destroy',()=>{_0x2ac8c6['detachFromDom']();});const _0x6457c0=_0x18eacf['view']['headerView']['class'];_0x18eacf['view']['headerView']['class']=_0x6457c0?_0x6457c0+'\x20ck-reset_all':'ck-reset_all',_0x18eacf['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x18eacf['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2055d5=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x239aa9=_0x2055d5['previewMode'],_0x51271e={};if('$labels'===_0x239aa9){for(const _0x307c56 of _0x2055d5['getMergeFieldsIds']())_0x51271e[_0x307c56]=_0x2055d5['getLabel'](_0x307c56)||_0x307c56;}else{const _0x57745d='$defaultValues'===_0x239aa9?_0x2055d5['getDefaultValues']():_0x2055d5['getDataSetValues'](_0x239aa9,!0x0);for(const _0x2a9dcd of Object['entries'](_0x57745d)){const [_0x5338d8,_0x632b2e]=_0x2a9dcd;_0x51271e[_0x5338d8]=null!==_0x632b2e?_0x632b2e:_0x2055d5['getLabel'](_0x5338d8)||_0x5338d8;}}return{'mergeFieldsData':_0x51271e};}['_standarizeRootsData'](_0x56b94b,_0x474550,_0x3b719c){let _0xb97df0;if('string'==typeof _0x56b94b){const _0x4f8bfa=_0x474550['model']['document']['getRootNames']()[0x0];_0xb97df0={[_0x4f8bfa]:_0x56b94b};}else _0xb97df0=_0x56b94b;const _0x5f0655=this['_fixMediaEmbeds'](_0xb97df0,_0x474550),_0x5c0b6e=function(_0x6212ba,_0x2606d1){for(const [_0xeefc7f,_0x25a1bf]of _0x6212ba)_0x25a1bf['classes']=_0x2606d1[_0xeefc7f]['classList']['value']['replace']('ck-focused','');return _0x6212ba;}(this['_sortRoots'](_0x474550)['reduce']((_0x50942b,_0x1fcc95)=>(_0x50942b['push']([_0x1fcc95,{'content':_0x5f0655[_0x1fcc95],'classes':''}]),_0x50942b),[]),_0x3b719c);return _0x5c0b6e;}['_fixMediaEmbeds'](_0x1e3d3c,_0x5db6d9){if(!_0x5db6d9['plugins']['has']('MediaEmbedEditing'))return _0x1e3d3c;const _0x20c761=_0x5db6d9['plugins']['get']('MediaEmbedEditing');for(const [_0x63ccb7,_0x999ae]of Object['entries'](_0x1e3d3c)){const _0x131c24=document['createElement']('div');_0x131c24['innerHTML']=_0x999ae,(_0x131c24['querySelectorAll']('figure.media')['forEach'](_0x10bc42=>{const _0x377670=_0x10bc42['querySelector']('oembed');if(_0x377670){const _0xbd4fbf=_0x377670['getAttribute']('url');if(_0xbd4fbf){const _0x4d92ad=_0x20c761['registry']['getMediaViewElement'](new et(_0x5db6d9['editing']['view']['document']),_0xbd4fbf,{'elementName':'','renderForEditingView':!0x0}),_0x225448=document['createElement']('div');_0x225448['classList']['add']('ck-media__wrapper'),_0x4d92ad['render'](_0x225448,_0x5db6d9['editing']['view']['domConverter']),_0x377670['replaceWith'](_0x225448);}}}),_0x1e3d3c[_0x63ccb7]=_0x131c24['innerHTML']);}return _0x1e3d3c;}['_sortRoots'](_0x20a3c3){if(!function(_0x394593){return void 0x0!==_0x394593['getRootsAttributes'];}(_0x20a3c3))return _0x20a3c3['model']['document']['getRootNames']();const _0x4f2eee=[],_0x2d6eb0=new Map();for(const _0x3ef9ea of _0x20a3c3['model']['document']['getRootNames']()){const _0x40fb61=_0x20a3c3['editing']['view']['getDomRoot'](_0x3ef9ea)['getClientRects']()['item'](0x0);_0x4f2eee['push'](_0x3ef9ea),_0x2d6eb0['set'](_0x3ef9ea,_0x40fb61);}return _0x4f2eee['sort']((_0x4e1e02,_0x357dce)=>{const _0x8cb4ca=_0x2d6eb0['get'](_0x4e1e02),_0x3d9782=_0x2d6eb0['get'](_0x357dce);return _0x8cb4ca['y']-_0x3d9782['y']||_0x8cb4ca['x']-_0x3d9782['x'];}),_0x4f2eee;}}class TrackChangesPreview extends _0x1b042a{static get['requires'](){return[TrackChangesData,_0x4042ab];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4d54e4){super(_0x4d54e4),_0x4d54e4['commands']['add']('previewFinalContent',new PreviewFinalContentCommand(this['editor'])),_0x4d54e4['config']['define']('trackChanges.preview.renderFunction',(_0xf84edb,_0x2083f9)=>{for(const _0x3c8427 of _0x2083f9)_0xf84edb['appendChild'](_0x3c8427);});}}export{AcceptSuggestionCommand,BaseSuggestionThreadView,DiscardSuggestionCommand,ExecuteOnAllSuggestionsCommand,ExecuteOnSelectedSuggestionsCommand,PreviewFinalContentCommand,Suggestion,SuggestionDescriptionFactory,SuggestionThreadView,SuggestionView,TrackChanges,TrackChangesCommand,TrackChangesData,TrackChangesDataGetter,TrackChangesEditing,TrackChangesPreview,TrackChangesUI};
23
+ import{Command as _0x4dd781,Plugin as _0x3000a5,PendingActions as _0x366661}from'@ckeditor/ckeditor5-core/dist/index.js';import{CommentsRepository as _0x3b6cc3,Annotations as _0x56e9b1,EditorAnnotations as _0x359145,Comments as _0x41eb8f}from'@ckeditor/ckeditor5-comments/dist/index.js';import{CKEditorError as _0x1d5f66,ObservableMixin as _0x2cad71,uid as _0x59fa6d,priorities as _0x12b650,insertToPriorityArray as _0x567b35,logWarning as _0x29d360,getEnvKeystrokeText as _0x43c0a4,FocusTracker as _0x5c0eff,KeystrokeHandler as _0x14ab05,Collection as _0x1bdbf2}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x464661,IconCancel as _0x58544e,IconTrackChanges as _0x1c5aba}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x4b8cfa,View as _0x219eee,ViewCollection as _0x41b3a9,FocusCycler as _0x27ae21,UIModel as _0x38a215,createDropdown as _0x249d7a,SplitButtonView as _0x147e3d,addListToDropdown as _0x2d8af9,MenuBarMenuView as _0x167357,MenuBarMenuListView as _0xc933cf,ListSeparatorView as _0x51f4ef,MenuBarMenuListItemView as _0x17cfe5,MenuBarMenuListItemButtonView as _0x47a13f,BodyCollection as _0x3e0dbc,Dialog as _0x52b772}from'@ckeditor/ckeditor5-ui/dist/index.js';import{splitSuggestionMarkerName as _0x2522cc,SuggestionsConversion as _0x54b9f2,Users as _0x1d950a,DocumentCompare as _0x1d267d,fixElementSuggestionRange as _0x18e42e,hashObject as _0x56801b,surroundingMarkersDetector as _0xf39aab,FOCUS_ANNOTATION_KEYSTROKE as _0x2f9019,AriaDescriptionView as _0x4a1a2d,setupThreadKeyboardNavigation as _0x414f5c,trimHtml as _0x47f1ed,UserView as _0xf77222,LateFocusButtonView as _0x3b1b8d,getDateTimeFormatter as _0x16d8dd,getAllMarkersDomElementsSorted as _0x35ad97,sanitizeEditorConfig as _0x2577bc}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{ModelElement as _0x4de7c2,ModelLiveRange as _0x2192a8,ModelLivePosition as tt,ViewDowncastWriter as et}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as nt,set as it,isEqual as st,unset as rt,omit as ot}from'es-toolkit/compat';import{Delete as at,Input as ct}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as lt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as ut}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class TrackChangesCommand extends _0x4dd781{['_enabledCommands'];constructor(_0x3aa4fc,_0x600db4){super(_0x3aa4fc),this['_enabledCommands']=_0x600db4,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 _0x38ba7e of this['editor']['commands']['commands']())_0x38ba7e['affectsData']&&!this['_enabledCommands']['has'](_0x38ba7e)&&_0x38ba7e['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xcfdf76 of this['editor']['commands']['commands']())_0xcfdf76['affectsData']&&!this['_enabledCommands']['has'](_0xcfdf76)&&_0xcfdf76['clearForceDisabled']('TrackChangesCommand');}}class AcceptSuggestionCommand extends _0x4dd781{['_suggestions'];constructor(_0x293016,_0x489527){super(_0x293016),this['_suggestions']=_0x489527,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x718012){const _0x1b4332=this['_suggestions']['get'](_0x718012);if(!_0x1b4332)throw new _0x1d5f66('track-changes-accept-suggestion-not-found',this);const _0x30c223=_0x1b4332['getRanges']();this['editor']['model']['canEditAt'](_0x30c223)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1b4332);}}class DiscardSuggestionCommand extends _0x4dd781{['_suggestions'];constructor(_0x4136eb,_0x5c5153){super(_0x4136eb),this['_suggestions']=_0x5c5153,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3ecb99){const _0x15da2d=this['_suggestions']['get'](_0x3ecb99);if(!_0x15da2d)throw new _0x1d5f66('track-changes-discard-suggestion-not-found',this);const _0x112fe3=_0x15da2d['getRanges']();this['editor']['model']['canEditAt'](_0x112fe3)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x15da2d);}}function ht(_0x5906c7,_0x579f4a){let _0x185321='';return _0x185321+=_0x5906c7['split']('*')['map']((_0x3d4d7c,_0x20ad8c)=>_0x20ad8c%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+gt(_0x3d4d7c)+'</span>':gt(_0x3d4d7c))['join'](''),_0x579f4a&&(_0x185321+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x579f4a['value']+'\x22\x20title=\x22'+_0x579f4a['title']+'\x22></span>'),_0x185321;}function gt(_0x1e1f8c){const _0x3a06fb=document['createElement']('span');return _0x3a06fb['innerText']=_0x1e1f8c,_0x3a06fb['innerHTML'];}function dt(_0x30e730){return _0x30e730['sort']((_0x4f76ad,_0x314551)=>'attribute'===_0x4f76ad['type']&&'attribute'!==_0x314551['type']?-0x1:'attribute'!==_0x4f76ad['type']&&'attribute'===_0x314551['type']?0x1:'deletion'==_0x4f76ad['type']&&'deletion'!=_0x314551['type']?-0x1:'deletion'!=_0x4f76ad['type']&&'deletion'==_0x314551['type']?0x1:0x0);}function ft(_0x40b5a4,_0x10aae9){let _0x51e7ce,_0x1b0347=0x0;const _0x21a6d5=[],_0x3829b1=_0x10aae9['schema'];for(;_0x1b0347<_0x40b5a4['length'];){const _0x28ee05=_0x40b5a4[_0x1b0347],_0x2033c9=_0x40b5a4[_0x1b0347+0x1];_0x51e7ce||(_0x51e7ce=_0x10aae9['createPositionBefore'](_0x28ee05)),mt(_0x10aae9,_0x28ee05,_0x2033c9)||(_0x21a6d5['push'](_0x10aae9['createRange'](_0x51e7ce,_0x3829b1['isObject'](_0x28ee05)?_0x10aae9['createPositionAfter'](_0x28ee05):_0x10aae9['createPositionAt'](_0x28ee05,'end'))),_0x51e7ce=null),_0x1b0347++;}return _0x21a6d5;}function mt(_0x3140be,_0x1f48fd,_0x250d5a){if(!_0x250d5a)return!0x1;const _0x45d41d=_0x3140be['createPositionAfter'](_0x1f48fd),_0x3a528b=_0x3140be['createPositionBefore'](_0x250d5a);return _0x45d41d['isTouching'](_0x3a528b);}function Et(_0x2262af,_0x5a0022,_0x3fa8a1){for(;_0x3fa8a1['length'];){const _0x5d3b74=_0x3fa8a1['splice'](0x0,0x64);_0x2262af['change'](()=>{for(const _0xc4bb32 of _0x5d3b74)_0xc4bb32['isInContent']&&_0x5a0022['execute'](_0xc4bb32['id']);});}}class ExecuteOnAllSuggestionsCommand extends _0x4dd781{['_command'];['_suggestions'];constructor(_0x293394,_0x15d804,_0x3c185a){super(_0x293394),this['_command']=_0x15d804,this['_suggestions']=_0x3c185a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x43e36d=Array['from'](this['_suggestions']['values']())['some'](_0x4fa44e=>_0x4fa44e['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x43e36d;}['execute'](){const _0x33a281=dt(Array['from'](this['_suggestions']['values']()));for(const _0x4b52af of _0x33a281){const _0x332f34=_0x4b52af['getRanges']();if(!this['editor']['model']['canEditAt'](_0x332f34))return;}Et(this['editor']['model'],this['_command'],_0x33a281);}}class ExecuteOnSelectedSuggestionsCommand extends _0x4dd781{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x2e264c,_0x5eeadc,_0x5cf371){super(_0x2e264c),this['_command']=_0x5eeadc,this['_suggestions']=_0x5cf371,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x53ad7d=this['editor']['model']['document']['selection'],_0x3a137e=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4c6d8e,_0x573b68){const _0x37e79f=Array['from'](_0x4c6d8e['getRanges']()),_0x2453d5=new Set();for(const _0x3b6b69 of _0x573b68)if(_0x3b6b69['isInContent']){for(const _0x27f52a of _0x37e79f)for(const _0xd31bf7 of _0x3b6b69['getRanges']())(_0x27f52a['isIntersecting'](_0xd31bf7)||_0x4c6d8e['isCollapsed']&&!_0x3b6b69['isMultiRange']&&_0x3b6b69['next']&&_0xd31bf7['end']['isTouching'](_0x27f52a['start']))&&_0x2453d5['add'](_0x3b6b69);}return _0x2453d5;}(_0x53ad7d,_0x3a137e),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x538f75=dt(Array['from'](this['_selectedSuggestions']));for(const _0x38130b of _0x538f75){const _0x4abf6c=_0x38130b['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4abf6c))return;}Et(this['editor']['model'],this['_command'],_0x538f75);}}class Suggestion extends/* #__PURE__ -- @preserve */
24
+ _0x2cad71(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2117f9,_0xe6233c){super(),this['id']=_0xe6233c['id'],this['type']=_0xe6233c['type'],this['subType']=_0xe6233c['subType']||null,this['author']=_0xe6233c['author'],this['creator']=_0xe6233c['creator']||_0xe6233c['author'],this['isExternal']=Boolean(_0xe6233c['attributes']&&_0xe6233c['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0xe6233c['originalSuggestionId']||null,this['_model']=_0x2117f9,this['_onAccept']=_0xe6233c['onAccept'],this['_onDiscard']=_0xe6233c['onDiscard'],this['_onAttributesChange']=_0xe6233c['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xe6233c['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 _0x37ddd1=this;for(;_0x37ddd1['previous'];)_0x37ddd1=_0x37ddd1['previous'];return _0x37ddd1;}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'](_0x25f6da){this['_markerNames']['add'](_0x25f6da);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x406f26=>this['_model']['markers']['get'](_0x406f26))['filter'](_0x4e569c=>_0x4e569c);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3870e9=>{for(const _0x1e6106 of this['getMarkers']())_0x3870e9['removeMarker'](_0x1e6106);}),this['_markerNames']['clear']();}['removeMarker'](_0x386dab){this['_model']['change'](_0x206996=>{_0x206996['removeMarker'](_0x386dab);}),this['_markerNames']['delete'](_0x386dab);}['addRange'](_0x2ab317){const _0x1653a9='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x1653a9),this['_model']['change'](_0xf07391=>{_0xf07391['addMarker'](_0x1653a9,{'range':_0x2ab317,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x42767a){for(const _0x34fc46 of this['getRanges']())if(_0x34fc46['isIntersecting'](_0x42767a))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x33c40f=>_0x33c40f['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x19bd37,_0x2a306f)=>[..._0x19bd37,..._0x2a306f['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x126003=this['getRanges']();if(0x1!=_0x126003['length'])return null;const _0x2f6085=_0x126003[0x0],_0x4658f6=_0x2f6085['start']['nodeAfter'],_0x2a0802=_0x2f6085['end']['nodeBefore'];return _0x4658f6 instanceof _0x4de7c2?_0x4658f6!=_0x2a0802?null:_0x4658f6: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 _0x1b2341=[];let _0x1c1ea5=this['head'];for(;_0x1c1ea5;)_0x1b2341['push'](_0x1c1ea5),_0x1c1ea5=_0x1c1ea5['next'];return _0x1b2341;}['setAttribute'](_0x15b7a6,_0x2d8de3){const _0x5b53da=nt(this['attributes']);it(_0x5b53da,_0x15b7a6,_0x2d8de3),st(_0x5b53da,this['attributes'])||(this['attributes']=_0x5b53da,this['_onAttributesChange'](_0x5b53da));}['removeAttribute'](_0x4a741d){const _0x584edf=nt(this['attributes']);rt(_0x584edf,_0x4a741d),st(_0x584edf,this['attributes'])||(this['attributes']=_0x584edf,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 _0x59fa6d()['substr'](0x1,0x5);}}function Tt(_0x589460,_0x33060f,_0x2099e5){const _0x1f4100=_0x589460['t'],t=_0x589460['t'];switch(_0x33060f){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',_0x2099e5);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2099e5);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2099e5);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2099e5);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2099e5);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',_0x2099e5);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2099e5);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',_0x2099e5);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2099e5);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2099e5);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2099e5);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2099e5);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2099e5);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2099e5);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2099e5);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2099e5);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2099e5);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2099e5);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2099e5);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2099e5);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2099e5);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2099e5);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2099e5);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2099e5);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x2099e5);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'},_0x2099e5);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x2099e5);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x2099e5);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2099e5);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2099e5);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2099e5);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2099e5);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2099e5);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'},_0x2099e5);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2099e5);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2099e5);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2099e5);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2099e5);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x2099e5);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2099e5);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'},_0x2099e5);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x2099e5);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2099e5);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'},_0x2099e5);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2099e5);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'},_0x2099e5);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2099e5);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x2099e5);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x2099e5);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x2099e5);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2099e5);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'},_0x2099e5);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2099e5);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 _0x1f4100({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2099e5);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1f4100({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2099e5);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2099e5);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'},_0x2099e5);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'},_0x2099e5);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'},_0x2099e5);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x33060f;}}class SuggestionDescriptionFactory{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2bdca3,_0x3ba551){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2bdca3,this['_locale']=_0x3ba551;}['getDescriptions'](_0x1d1b43){const _0x32fe8d=[],_0x1a6386=new Set(),_0x45d207=new Set();for(let _0x14eb40=0x0;_0x14eb40<_0x1d1b43['length'];_0x14eb40++){const _0x21f7d1=_0x1d1b43[_0x14eb40];if(!_0x21f7d1['isInContent'])continue;const _0x3a4542=this['_handleCustomCallbackDescription'](_0x21f7d1);if(_0x3a4542){if(null!=_0x21f7d1['subType']){if(_0x1a6386['has'](_0x21f7d1['subType']))continue;_0x1a6386['add'](_0x21f7d1['subType']);}_0x32fe8d['push'](_0x3a4542);}else{if('attribute'==_0x21f7d1['type']){const _0x149b0f=_0x21f7d1['data']['key'];if(_0x45d207['has'](_0x149b0f))continue;_0x45d207['add'](_0x21f7d1['data']['key']),_0x149b0f==Ft?this['_handleRenameSuggestionDescription'](_0x32fe8d,_0x21f7d1):this['_handleAttributeSuggestionDescription'](_0x32fe8d,_0x21f7d1);continue;}'insertion'!=_0x21f7d1['type']&&'deletion'!=_0x21f7d1['type']||this['_handleInsertRemoveSuggestionDescription'](_0x32fe8d,_0x21f7d1,_0x1d1b43[_0x14eb40+0x1]);}}return this['_resolveDescriptionItems'](_0x32fe8d);}['registerDescriptionCallback'](_0x19ba9e){this['_customCallbacks']['push'](_0x19ba9e);}['registerElementLabel'](_0x47f5b4,_0x32e454,_0x9fc7ca=_0x12b650['normal']){'function'==typeof _0x47f5b4?_0x567b35(this['_itemLabelsCallbacks'],{'matchingCallback':_0x47f5b4,'label':_0x32e454,'priority':_0x9fc7ca}):this['_itemLabels']['set'](_0x47f5b4,_0x32e454);}['registerAttributeLabel'](_0x1e073a,_0x51ad4d){this['_attributeLabels']['set'](_0x1e073a,_0x51ad4d);}['getItemLabel'](_0x5f3a68,_0x25884e=0x1){let _0x1b1716;for(const _0x5bda9e of this['_itemLabelsCallbacks'])if(_0x5bda9e['matchingCallback'](_0x5f3a68)){_0x1b1716=_0x5bda9e['label'];break;}return _0x1b1716||(_0x1b1716=this['_itemLabels']['get'](_0x5f3a68['name'])),_0x1b1716?_0x1b1716(_0x25884e):0x1!==_0x25884e?_0x25884e+'\x20'+_0x5f3a68['name']+'s':''+_0x5f3a68['name'];}['_addDescriptionItems'](_0x45a45f,_0x222f68){const _0x56e872=_0x222f68['getFirstRange']()['getWalker'](),_0x5be8d2='insertion'==_0x222f68['type']?'add':'remove';for(const _0x137aea of _0x56e872){const _0x33dcd5=_0x137aea['item'],_0x1a249e=_0x45a45f[_0x45a45f['length']-0x1];if(_0x33dcd5['is']('$textProxy'))_0x1a249e&&_0x1a249e['type']['indexOf']('Container')>-0x1&&_0x45a45f['pop'](),_0x1a249e&&'text'==_0x1a249e['type']?_0x1a249e[_0x5be8d2]+=_0x33dcd5['data']:_0x45a45f['push']({'type':'text','add':'add'==_0x5be8d2?_0x33dcd5['data']:'','remove':'remove'==_0x5be8d2?_0x33dcd5['data']:''});else{if(this['_schema']['isObject'](_0x33dcd5)){const _0x2f77bd=_0x33dcd5;if(_0x1a249e&&_0x1a249e['type']['indexOf']('Container')>-0x1&&_0x45a45f['pop'](),'elementEnd'==_0x137aea['type'])continue;_0x1a249e&&_0x1a249e['type']==_0x5be8d2+'Object'&&_0x1a249e['element']['name']==_0x2f77bd['name']?_0x1a249e['quantity']++:_0x45a45f['push']({'type':_0x5be8d2+'Object','element':_0x2f77bd,'quantity':0x1}),_0x56e872['skip'](_0xa17ab=>!('elementEnd'==_0xa17ab['type']&&_0xa17ab['item']==_0x33dcd5));}else{if(this['_schema']['checkChild'](_0x33dcd5,'$text')||_0x33dcd5['is']('element','softBreak')){const _0x1a2967=_0x33dcd5;if('add'==_0x5be8d2&&'elementStart'==_0x137aea['type']||'remove'==_0x5be8d2&&'elementEnd'==_0x137aea['type'])continue;if(_0x1a249e&&-0x1==_0x1a249e['type']['indexOf']('Container')){'text'==_0x1a249e['type']&&(_0x1a249e[_0x5be8d2]+='\x0a');continue;}let _0x16025d;if(_0x16025d='add'==_0x5be8d2?_0x1a2967['nextSibling']&&!this['_schema']['isObject'](_0x1a2967['nextSibling'])?_0x1a2967['nextSibling']:null:_0x1a2967['previousSibling']&&!this['_schema']['isObject'](_0x1a2967['previousSibling'])?_0x1a2967['previousSibling']:null,_0x1a2967['isEmpty']||_0x16025d&&_0x16025d['isEmpty']){const _0x40d3ed=_0x16025d&&_0x16025d['isEmpty']?_0x16025d:_0x1a2967;_0x1a249e&&_0x1a249e['type']==_0x5be8d2+'EmptyContainer'&&_0x1a249e['element']['name']==_0x40d3ed['name']?_0x1a249e['quantity']++:_0x45a45f['push']({'type':_0x5be8d2+'EmptyContainer','element':_0x40d3ed,'quantity':0x1});}else _0x45a45f['push']({'type':_0x5be8d2+'Container','element':_0x1a2967});}}}}}['_resolveDescriptionItems'](_0x25223d){const _0xf30164=this['_locale'],_0x44abc2=[],_0x5dbfeb=[],_0x35e48f=[];for(const _0x1428c2 of _0x25223d)switch(_0x1428c2['type']){case'text':if(_0x1428c2['add']=_0x1428c2['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1428c2['remove']=_0x1428c2['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1428c2['add']&&''!=_0x1428c2['remove']){_0x44abc2['push']({'type':'replace','content':Tt(_0xf30164,'REPLACE_TEXT',['\x22'+_0x1428c2['remove']+'\x22','\x22'+_0x1428c2['add']+'\x22'])});continue;}if(null!=_0x1428c2['add']['match'](/^ +$/)){_0x44abc2['push']({'type':'insertion','content':Tt(_0xf30164,'*Insert:*\x20%0',Tt(_0xf30164,'ELEMENT_SPACE',_0x1428c2['add']['length']))});continue;}if(null!=_0x1428c2['remove']['match'](/^ +$/)){_0x44abc2['push']({'type':'deletion','content':Tt(_0xf30164,'*Remove:*\x20%0',Tt(_0xf30164,'ELEMENT_SPACE',_0x1428c2['remove']['length']))});continue;}if(''!=_0x1428c2['add']){_0x44abc2['push']({'type':'insertion','content':Tt(_0xf30164,'*Insert:*\x20%0','\x22'+_0x1428c2['add']+'\x22')});continue;}_0x44abc2['push']({'type':'deletion','content':Tt(_0xf30164,'*Remove:*\x20%0','\x22'+_0x1428c2['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x44abc2['push']({'type':'insertion','content':Tt(_0xf30164,'*Insert:*\x20%0',this['getItemLabel'](_0x1428c2['element'],_0x1428c2['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x44abc2['push']({'type':'deletion','content':Tt(_0xf30164,'*Remove:*\x20%0',this['getItemLabel'](_0x1428c2['element'],_0x1428c2['quantity']))});continue;case'addContainer':_0x44abc2['push']({'type':'insertion','content':Tt(_0xf30164,'*Split:*\x20%0',this['getItemLabel'](_0x1428c2['element'],_0x1428c2['quantity']))});continue;case'removeContainer':_0x44abc2['push']({'type':'deletion','content':Tt(_0xf30164,'*Merge:*\x20%0',this['getItemLabel'](_0x1428c2['element'],_0x1428c2['quantity']))});continue;case'addFormat':_0x5dbfeb['push'](_0x1428c2['key']);continue;case'removeFormat':_0x35e48f['push'](_0x1428c2['key']);continue;default:_0x44abc2['push'](_0x1428c2);}if(_0x5dbfeb['length']){const _0x310132=_0x5dbfeb['map'](_0x37c807=>this['_attributeLabels']['has'](_0x37c807)?this['_attributeLabels']['get'](_0x37c807):_0x37c807)['join'](',\x20');_0x44abc2['push']({'type':'format','content':Tt(this['_locale'],'*Set\x20format:*\x20%0',_0x310132)});}if(_0x35e48f['length']){const _0x3e7725=_0x35e48f['map'](_0x2dfa12=>this['_attributeLabels']['has'](_0x2dfa12)?this['_attributeLabels']['get'](_0x2dfa12):_0x2dfa12)['join'](',\x20');_0x44abc2['push']({'type':'format','content':Tt(this['_locale'],'*Remove\x20format:*\x20%0',_0x3e7725)});}return _0x44abc2;}['_handleCustomCallbackDescription'](_0x1a35f8){for(const _0x3b5f3d of this['_customCallbacks']){const _0x24d051=_0x3b5f3d(_0x1a35f8);if(_0x24d051&&'type'in _0x24d051)return _0x24d051;}}['_handleAttributeSuggestionDescription'](_0x24e932,_0x32f4e5){const _0x2a70c9=_0x32f4e5['data'],_0x94bbbf=void 0x0===_0x2a70c9['newValue']?'removeFormat':'addFormat';_0x24e932['push']({'type':_0x94bbbf,'key':_0x2a70c9['key']});}['_handleRenameSuggestionDescription'](_0x1725f3,_0x12e3ab){_0x1725f3['push']({'type':'format','content':Tt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x12e3ab['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x232e17,_0x508a3b,_0x434c48){if(this['_addDescriptionItems'](_0x232e17,_0x508a3b),_0x434c48&&_0x434c48['getFirstRange']()&&!_0x508a3b['getFirstRange']()['end']['isEqual'](_0x434c48['getFirstRange']()['start'])){const _0x4cfe1d=_0x232e17[_0x232e17['length']-0x1],_0x5ac810='insertion'==_0x508a3b['type']?'add':'remove';_0x4cfe1d&&'text'==_0x4cfe1d['type']&&(_0x4cfe1d[_0x5ac810]+='\x0a');}}}class TrackChangesAIAssistant extends _0x3000a5{['afterInit'](){const _0x582903=this['editor'],_0xb46084=_0x582903['plugins']['get']('TrackChangesEditing');_0x582903['commands']['get']('showAIAssistant')&&_0xb46084['enableCommand']('showAIAssistant');}}class TrackChangesAI extends _0x3000a5{['afterInit'](){const _0x3880e6=this['editor'],_0x8504cc=_0x3880e6['plugins']['get']('TrackChangesEditing');_0x3880e6['commands']['get']('toggleAi')&&_0x8504cc['enableCommand']('toggleAi');}}class TrackChangesAIQuickActions extends _0x3000a5{['afterInit'](){const _0x33bc21=this['editor'],_0xee198d=_0x33bc21['plugins']['get']('TrackChangesEditing');_0x33bc21['commands']['get']('aiQuickAction')&&_0xee198d['enableCommand']('aiQuickAction');}}class TrackChangesAlignment extends _0x3000a5{['afterInit'](){const _0x384687=this['editor'],_0x4cc9b4=_0x384687['locale'];if(!_0x384687['plugins']['has']('AlignmentEditing'))return;const _0x2d754c=_0x384687['plugins']['get']('TrackChangesEditing');_0x2d754c['enableDefaultAttributesIntegration']('alignment'),_0x2d754c['descriptionFactory']['registerAttributeLabel']('alignment',Tt(_0x4cc9b4,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x543adf=this['editor'],_0x1501a8=_0x543adf['locale'];_0x543adf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c0059=>{if('formatBlock'!=_0x3c0059['type'])return;const {data:_0x5c360e}=_0x3c0059;if(_0x5c360e&&'alignment'==_0x5c360e['commandName']){const _0x261f5f=_0x5c360e['commandParams'][0x0]['value'];return{'type':'format','content':Tt(_0x1501a8,'*Format:*\x20%0',function(_0xe0b0ed){switch(_0xe0b0ed){case'left':return Tt(_0x1501a8,'FORMAT_ALIGN_TO_LEFT');case'right':return Tt(_0x1501a8,'FORMAT_ALIGN_TO_RIGHT');case'center':return Tt(_0x1501a8,'FORMAT_ALIGN_TO_CENTER');case'justify':return Tt(_0x1501a8,'FORMAT_JUSTIFY_TEXT');}}(_0x261f5f))};}});}}const _t=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class TrackChangesBasicStyles extends _0x3000a5{['afterInit'](){const _0x17bc53=this['editor'],_0x147aa7=_0x17bc53['plugins']['get']('TrackChangesEditing'),_0x203d3d=_0x17bc53['locale'];for(const _0x17e59b of _t){if(!_0x17bc53['plugins']['has'](_0x17e59b))continue;const _0x7a43d9=_0x17e59b['slice'](0x0,-0x7)['toLowerCase'](),_0x42fa85='FORMAT_'+_0x7a43d9['toUpperCase']();_0x147aa7['enableDefaultAttributesIntegration'](_0x7a43d9),_0x147aa7['descriptionFactory']['registerAttributeLabel'](_0x7a43d9,Tt(_0x203d3d,_0x42fa85));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44059e=this['editor'],_0x1af12d=_0x44059e['locale'],_0x25dc55=_0x44059e['plugins']['get']('TrackChangesEditing');function _0x65cf29(_0x566cc4,_0x73d2a9){_0x25dc55['descriptionFactory']['registerDescriptionCallback'](_0x5d8759=>{if('formatInline'!=_0x5d8759['type'])return;const {data:_0x5efc35}=_0x5d8759;return _0x5efc35&&_0x5efc35['commandName']===_0x566cc4?_0x5efc35['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x1af12d,'*Format:*\x20%0',_0x73d2a9)}:{'type':'format','content':Tt(_0x1af12d,'*Remove\x20format:*\x20%0',_0x73d2a9)}:void 0x0;});}_0x65cf29('bold',Tt(_0x1af12d,'FORMAT_BOLD')),_0x65cf29('italic',Tt(_0x1af12d,'FORMAT_ITALIC')),_0x65cf29('underline',Tt(_0x1af12d,'FORMAT_UNDERLINE')),_0x65cf29('code',Tt(_0x1af12d,'FORMAT_CODE')),_0x65cf29('strikethrough',Tt(_0x1af12d,'FORMAT_STRIKETHROUGH')),_0x65cf29('subscript',Tt(_0x1af12d,'FORMAT_SUBSCRIPT')),_0x65cf29('superscript',Tt(_0x1af12d,'FORMAT_SUPERSCRIPT'));}}class TrackChangesBlockQuote extends _0x3000a5{['afterInit'](){const _0x26e52f=this['editor'],_0x3c8ee5=_0x26e52f['locale'];if(!_0x26e52f['plugins']['has']('BlockQuoteEditing'))return;const _0x4835f5=_0x26e52f['plugins']['get']('TrackChangesEditing'),_0x15fead=this['editor']['commands']['get']('blockQuote');_0x4835f5['enableCommand']('blockQuote',(_0x1681aa,_0x11e532={})=>{const _0x59beca=this['editor']['model']['document']['selection'],_0x29e42e=_0x11e532&&void 0x0!==_0x11e532['forceValue']?_0x11e532['forceValue']:!_0x15fead['value'];let _0x489622=[];if(_0x29e42e){const _0x3b10d2=Array['from'](_0x59beca['getSelectedBlocks']())['filter'](_0x33fc5e=>pt(_0x33fc5e)||function(_0xc5544d,_0x4c97b4){const _0x3aecb2=_0x4c97b4['checkChild'](_0xc5544d['parent'],'blockQuote'),_0x5a89ac=_0x4c97b4['checkChild'](['$root','blockQuote'],_0xc5544d);return _0x3aecb2&&_0x5a89ac;}(_0x33fc5e,this['editor']['model']['schema']));_0x489622=ft(_0x3b10d2,_0x26e52f['model']);}else{const _0x4cf948=Array['from'](_0x59beca['getSelectedBlocks']())['filter'](_0xc93805=>pt(_0xc93805));_0x489622=ft(_0x4cf948,_0x26e52f['model']);}_0x26e52f['model']['change'](()=>{for(const _0x5748ca of _0x489622)_0x4835f5['markBlockFormat'](_0x5748ca,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x29e42e}]});});}),_0x4835f5['descriptionFactory']['registerDescriptionCallback'](_0x13a80d=>{const {data:_0x3a4484}=_0x13a80d;if(_0x3a4484&&'blockQuote'==_0x3a4484['commandName']){const _0x571fe8=Tt(_0x3c8ee5,'ELEMENT_BLOCK_QUOTE');return _0x3a4484['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x3c8ee5,'*Set\x20format:*\x20%0',_0x571fe8)}:{'type':'format','content':Tt(_0x3c8ee5,'*Remove\x20format:*\x20%0',_0x571fe8)};}});}}function pt(_0x282489){return'blockQuote'==_0x282489['parent']['name'];}class TrackChangesBookmark extends _0x3000a5{['afterInit'](){const _0x791d88=this['editor'],_0x12b9b5=_0x791d88['locale'],_0x27a65c=_0x791d88['plugins']['get']('TrackChangesEditing');_0x791d88['plugins']['has']('BookmarkEditing')&&(_0x27a65c['enableCommand']('insertBookmark'),_0x27a65c['enableDefaultAttributesIntegration']('updateBookmark'),_0x27a65c['descriptionFactory']['registerDescriptionCallback'](_0x566461=>{if('insertion'!=_0x566461['type']&&'deletion'!=_0x566461['type']&&'attribute'!=_0x566461['type'])return;const _0x44e673=_0x566461['getContainedElement']();if(null==_0x44e673)return;if(!_0x44e673['is']('element','bookmark'))return;const _0x323d25=_0x44e673['getAttribute']('bookmarkId');if('insertion'==_0x566461['type'])return{'type':'insertion','content':Tt(_0x12b9b5,'*Insert:*\x20%0','\x22'+_0x323d25+'\x22\x20'+Tt(_0x12b9b5,'ELEMENT_BOOKMARK'))};if('deletion'==_0x566461['type'])return{'type':'deletion','content':Tt(_0x12b9b5,'*Remove:*\x20%0','\x22'+_0x323d25+'\x22\x20'+Tt(_0x12b9b5,'ELEMENT_BOOKMARK'))};const {data:_0x3fb01f}=_0x566461;if(!_0x3fb01f||'bookmarkId'!=_0x3fb01f['key'])return;return{'type':'format','content':Tt(_0x12b9b5,'*Set\x20bookmark:*\x20%0','\x22'+_0x3fb01f['newValue']+'\x22')};}));}}class TrackChangesCaseChange extends _0x3000a5{['afterInit'](){const _0x1c1b3d=this['editor'];_0x1c1b3d['plugins']['has']('CaseChange')&&(_0x1c1b3d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1c1b3d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1c1b3d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class TrackChangesCKBox extends _0x3000a5{['afterInit'](){const _0x16cb6b=this['editor'];_0x16cb6b['commands']['get']('ckbox')&&_0x16cb6b['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class TrackChangesCodeBlock extends _0x3000a5{['afterInit'](){const _0x45a933=this['editor'];if(!_0x45a933['plugins']['has']('CodeBlock'))return;const _0xcadb95=_0x45a933['plugins']['get']('TrackChangesEditing'),_0x5a4a42=_0x45a933['locale'],_0x26a941=_0x45a933['config']['get']('codeBlock')['languages'],_0x2aa407=_0x45a933['commands']['get']('codeBlock');_0xcadb95['enableCommand']('indentCodeBlock'),_0xcadb95['enableCommand']('outdentCodeBlock'),_0xcadb95['enableCommand']('codeBlock',(_0x883951,_0x159ee8={})=>{const _0x59ab09=_0x45a933['model'],_0x4ff17b=_0x45a933['model']['document']['selection'],_0x4a37fb=_0x159ee8&&void 0x0!==_0x159ee8['forceValue']?_0x159ee8['forceValue']:!_0x2aa407['value'];let _0x250ed7;_0x159ee8['language']||(_0x159ee8['language']=_0x26a941[0x0]['language']),_0x250ed7=_0x4a37fb?Array['from'](_0x4ff17b['getSelectedBlocks']())['filter'](_0x8d6d9c=>Ct(_0x8d6d9c)||function(_0x59198a,_0x1defbb){if(_0x59198a['is']('rootElement')||_0x1defbb['isLimit'](_0x59198a))return!0x1;return _0x1defbb['checkChild'](_0x59198a['parent'],'codeBlock');}(_0x8d6d9c,_0x59ab09['schema'])):Array['from'](_0x4ff17b['getSelectedBlocks']())['filter'](_0x4db193=>Ct(_0x4db193));const _0x3b84a7=ft(_0x250ed7,_0x59ab09);_0x59ab09['change'](()=>{for(const _0x380947 of _0x3b84a7)_0xcadb95['markBlockFormat'](_0x380947,{'commandName':'codeBlock','commandParams':[{..._0x159ee8,'forceValue':_0x4a37fb}],'formatGroupId':'blockName'});});}),(_0xcadb95['descriptionFactory']['registerElementLabel']('codeBlock',_0x2f0faf=>Tt(_0x5a4a42,'ELEMENT_CODE_BLOCK',_0x2f0faf)),_0xcadb95['descriptionFactory']['registerDescriptionCallback'](_0x53432e=>{if('formatBlock'!=_0x53432e['type'])return;const _0x5bd247=_0x5a4a42['t'],{data:_0x4c5bcd}=_0x53432e;if(!_0x4c5bcd||'codeBlock'!=_0x4c5bcd['commandName'])return;const _0x3ebf94=_0x4c5bcd['commandParams'][0x0]['language'],_0x506fe6=_0x5bd247(_0x26a941['find'](_0x5255e4=>_0x5255e4['language']===_0x3ebf94)['label'])['toLowerCase']();return _0x4c5bcd['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x5a4a42,'*Set\x20format:*\x20%0',Tt(_0x5a4a42,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x506fe6+')')}:{'type':'format','content':Tt(_0x5a4a42,'*Remove\x20format:*\x20%0',Tt(_0x5a4a42,'ELEMENT_CODE_BLOCK',0x1))};}));}}function Ct(_0x218543){return'codeBlock'==_0x218543['name'];}class TrackChangesComments extends _0x3000a5{['afterInit'](){const _0x147492=this['editor'];if(!_0x147492['plugins']['has']('CommentsEditing'))return;_0x147492['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class TrackChangesDeleteCommand extends _0x3000a5{static get['requires'](){return[at];}['init'](){const _0x395b7e=this['editor'],_0x18dfd7=_0x395b7e['plugins']['get']('TrackChangesEditing');_0x18dfd7['enableCommand']('delete');const _0x440c61=_0x395b7e['commands']['get']('deleteForward');_0x18dfd7['enableCommand']('deleteForward',(_0x3ce72e,_0x3090b7={})=>{const _0x34c24e=_0x395b7e['model']['createSelection'](_0x395b7e['model']['document']['selection']);_0x34c24e['isCollapsed']&&_0x395b7e['model']['modifySelection'](_0x34c24e,{'direction':'forward','unit':_0x3090b7['unit']});const _0x53b0ca=_0x34c24e['getFirstRange'](),_0x265970=_0x2192a8['fromRange'](_0x53b0ca);let _0x327692;_0x3ce72e(_0x3090b7),_0x327692='$graveyard'==_0x265970['root']['rootName']?_0x395b7e['model']['createRange'](_0x53b0ca['start']):_0x395b7e['model']['createRange'](_0x265970['start'],_0x265970['end']),_0x265970['detach'](),_0x395b7e['model']['enqueueChange'](_0x440c61['buffer']['batch'],_0x307d46=>{_0x440c61['buffer']['lock'](),_0x307d46['setSelection'](_0x307d46['createRange'](_0x327692['end'])),_0x440c61['buffer']['unlock']();});});}}class TrackChangesList extends _0x3000a5{['afterInit'](){const _0x3a4168=this['editor'];if(!_0x3a4168['plugins']['has']('ListEditing'))return;const _0x4cb455=_0x3a4168['locale'],_0x344316=_0x3a4168['plugins']['get']('TrackChangesEditing'),_0x57a851=_0x3a4168['plugins']['has']('TodoListEditing'),_0x2f7f2b=!!_0x3a4168['config']['get']('list.multiBlock');function _0x47f54a(_0xfb24e7){return{'type':'format','content':''+Tt(_0x4cb455,'*Set\x20format:*\x20%0',_0xfb24e7)};}function _0x26250e(_0x39b111){return{'type':'format','content':''+Tt(_0x4cb455,'*Remove\x20format:*\x20%0',_0x39b111)};}_0x344316['enableDefaultAttributesIntegration']('numberedList'),_0x344316['enableDefaultAttributesIntegration']('bulletedList'),_0x344316['enableDefaultAttributesIntegration']('customNumberedList'),_0x344316['enableDefaultAttributesIntegration']('customBulletedList'),_0x344316['enableDefaultAttributesIntegration']('indentList'),_0x344316['enableDefaultAttributesIntegration']('outdentList'),_0x344316['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x344316['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2f7f2b&&(_0x344316['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x344316['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x57a851&&(_0x344316['enableDefaultAttributesIntegration']('todoList'),_0x344316['enableDefaultAttributesIntegration']('checkTodoList'),_0x344316['descriptionFactory']['registerDescriptionCallback'](_0x411fe1=>{const {data:_0x21c6b3}=_0x411fe1;if(_0x21c6b3&&'todoListChecked'==_0x21c6b3['key'])return{'type':'format','content':_0x21c6b3['newValue']?Tt(_0x4cb455,'*Check\x20item*'):Tt(_0x4cb455,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x284b2f=>{if(_0x284b2f['batch']['isUndo'])return!0x1;let _0x491281=!0x1;const _0x55dfd=_0x344316['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x524925=>'todoListChecked'===_0x344316['_getAttributeKey'](_0x524925));for(const _0x21361b of _0x55dfd){'todo'!=_0x21361b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x344316['_findSuggestions'](_0x21361b['getFirstRange'](),'attribute')['find'](_0x276de1=>'listType'===_0x344316['_getAttributeKey'](_0x276de1['suggestion']))||(_0x284b2f['removeMarker'](_0x21361b['getFirstMarker']()),_0x491281=!0x0));}return _0x491281;})),_0x344316['descriptionFactory']['registerAttributeLabel']('listIndent',Tt(_0x4cb455,'FORMAT_INDENT'));const _0x1d67b4={'type':'format','content':''};_0x344316['descriptionFactory']['registerDescriptionCallback'](_0x4ce443=>{const {data:_0x3bad94}=_0x4ce443;if(!_0x3bad94||'listType'!=_0x3bad94['key'])return;let _0x157c37=_0x4ce443['head'];for(;_0x157c37;){if(_0x157c37['data']&&(('listStyle'==_0x157c37['data']['key']||'listMarkerStyle'==_0x157c37['data']['key'])&&(_0x157c37['data']['newValue']&&'default'!=_0x157c37['data']['newValue']||'default'!=_0x157c37['data']['oldValue']&&!_0x3bad94['newValue'])||!_0x2f7f2b&&_0x157c37['data']['key']==Ft))return _0x1d67b4;_0x157c37=_0x157c37['next'];}if(null==_0x3bad94['newValue'])switch(_0x3bad94['oldValue']){case'bulleted':return _0x26250e(Tt(_0x4cb455,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x26250e(Tt(_0x4cb455,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x26250e(Tt(_0x4cb455,'ELEMENT_TODO_LIST'));}switch(_0x3bad94['newValue']){case'bulleted':return _0x47f54a(Tt(_0x4cb455,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x47f54a(Tt(_0x4cb455,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x47f54a(Tt(_0x4cb455,'ELEMENT_TODO_LIST'));}}),_0x344316['descriptionFactory']['registerDescriptionCallback'](_0x5ca2fc=>{const {data:_0x411983}=_0x5ca2fc;if(_0x411983&&'listIndent'==_0x411983['key'])return null==_0x411983['newValue']||null==_0x411983['oldValue']&&0x0==_0x411983['newValue']?_0x1d67b4:void 0x0;}),_0x344316['descriptionFactory']['registerDescriptionCallback'](_0x3c8592=>{if('attribute'!=_0x3c8592['type'])return;const {data:_0x4c9435}=_0x3c8592;if(!_0x4c9435||'listItemId'!=_0x4c9435['key'])return;const _0x1902d4=kt(_0x3c8592);return'newValue'==_0x1902d4?{'type':'format','content':Tt(_0x4cb455,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1902d4?{'type':'format','content':Tt(_0x4cb455,'*Split:*\x20list\x20item')}:_0x1d67b4;}),_0x3a4168['model']['document']['registerPostFixer'](_0x5d4911=>this['listItemIdFixer'](_0x5d4911)),_0x3a4168['model']['document']['registerPostFixer'](_0x56ed49=>this['noTrackChangesFixer'](_0x56ed49)),_0x3a4168['model']['document']['on']('change:data',(_0x4373bc,_0x1f4cb0)=>{if(_0x1f4cb0['isUndo']||!_0x1f4cb0['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3cc5d8){if(_0x3cc5d8['batch']['isUndo']||!_0x3cc5d8['batch']['isLocal'])return!0x1;let _0x4b006b=!0x1;const _0x3970c9=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x316d2f=>_0x316d2f['data']&&'listItemId'==_0x316d2f['data']['key'])['filter'](_0x37e2f4=>_0x37e2f4['data']['newValue']&&_0x37e2f4['data']['oldValue']);for(const _0x3abb40 of _0x3970c9)kt(_0x3abb40)||(_0x3cc5d8['removeMarker'](_0x3abb40['getFirstMarker']()),_0x4b006b=!0x0);return _0x4b006b;}['noTrackChangesFixer'](_0xf64050){if(_0xf64050['batch']['isUndo']||!_0xf64050['batch']['isLocal'])return!0x1;const _0x381062=this['editor']['model']['document']['differ'],_0x58bfbb=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x58bfbb['trackChangesCommand']['value'])return!0x1;let _0x3381c3=!0x1;const _0x17a47c=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle']),_0x287fb2=_0x381062['getChanges']()['filter'](_0xf333b6=>'attribute'==_0xf333b6['type'])['filter'](_0x541c01=>_0x17a47c['has'](_0x541c01['attributeKey']));if(0x0==_0x287fb2['length'])return _0x3381c3;const _0x1d577e=new Set(_0x381062['getMarkersToAdd']()['filter'](_0x470e7f=>{if(!_0x470e7f['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x1343b7=_0x2522cc(_0x470e7f['name'])['subType']['split']('|')[0x0];return _0x17a47c['has'](_0x1343b7);})['map'](_0x4eba71=>_0x2522cc(_0x4eba71['name'])['id']));for(const _0x57e80a of _0x287fb2){const _0x149685=_0x58bfbb['_findSuggestions'](_0x57e80a['range'],'attribute')['filter'](_0x14c572=>{if(_0x14c572['meta']['isNextTo'])return!0x1;if(_0x1d577e['has'](_0x14c572['suggestion']['id']))return!0x1;const _0x1c4801=_0x58bfbb['_getAttributeKey'](_0x14c572['suggestion']);return _0x17a47c['has'](_0x1c4801);})['map'](_0x3c0be4=>_0x3c0be4['suggestion']);if(_0x149685['length']){for(const _0x5cc908 of _0x149685)_0xf64050['removeMarker'](_0x5cc908['getFirstMarker']());_0x3381c3=!0x0;}}return _0x3381c3;}['assureChains'](){const _0x245621=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e3bbb=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x58b735;const _0x5f0c1c=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x10b198=>{if(_0x10b198['data']['oldRange']||!_0x10b198['data']['newRange'])return null;if(!_0x10b198['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x51e181}=_0x2522cc(_0x10b198['name']);if(!_0x245621['hasSuggestion'](_0x51e181))return null;const _0xd3d4f5=_0x245621['getSuggestion'](_0x51e181);return _0x3e3bbb['includes'](_0xd3d4f5['data']['key']);})['map'](_0x40d759=>{const {id:_0xf27bc6}=_0x2522cc(_0x40d759['name']),_0xbdf7cf=_0x245621['getSuggestion'](_0xf27bc6);return _0x58b735=_0xbdf7cf['attributes']['groupId'],_0xbdf7cf['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5f0c1c['size'])return;const _0x17e262=_0x245621['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1988f2=>'attribute'==_0x1988f2['type']&&_0x1988f2['data']&&_0x3e3bbb['includes'](_0x1988f2['data']['key'])&&_0x1988f2['attributes']['groupId']!=_0x58b735)['map'](_0x4d6068=>({'listItem':_0x4d6068['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4d6068['attributes']['groupId']})),_0x194b32=new Set();for(const {groupId:_0x4e7cf6,listItem:_0x3ea88c}of _0x17e262)_0x5f0c1c['has'](_0x3ea88c)&&_0x194b32['add'](_0x4e7cf6);for(const _0x8a03e6 of _0x245621['getSuggestions']())_0x194b32['has'](_0x8a03e6['attributes']['groupId'])&&_0x8a03e6['setAttribute']('groupId',_0x58b735);}['_supportLegacySuggestions'](){const _0xbe2738=this['editor'],_0x6958ba=_0xbe2738['locale'],_0x10bc32=_0xbe2738['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x10bc32['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3644fa,_0x4d599a){const _0x4a4db5=[];for(let _0x2a449e of _0x3644fa)_0x2a449e['start']['nodeAfter']===_0x2a449e['end']['parent']&&(_0x2a449e=_0xbe2738['model']['createRange'](_0xbe2738['model']['createPositionAt'](_0x2a449e['start']['nodeAfter'],0x0))),_0x4a4db5['push'](_0x2a449e);_0xbe2738['model']['change'](_0x598666=>{const _0xd269f1=_0xbe2738['model']['document']['selection'],_0x2e0501=Array['from'](_0xd269f1['getRanges']())['map'](_0x156b3a=>_0x2192a8['fromRange'](_0x156b3a));_0x598666['setSelection'](_0x4a4db5),_0xbe2738['commands']['get'](_0x4d599a['commandName'])['refresh'](),_0x4d599a['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xbe2738['execute'](_0x4d599a['commandName'],..._0x4d599a['commandParams']),_0x598666['setSelection'](_0x2e0501);for(const _0x2abea3 of _0x2e0501)_0x2abea3['detach']();});}),_0x10bc32['descriptionFactory']['registerElementLabel'](function(_0x581157){const _0x4ae508=!_0xbe2738['model']['schema']['isObject'](_0x581157),_0xfaba81=_0x581157['previousSibling'],_0x5b573d=_0x581157['nextSibling'],_0x14a3a5=_0x581157['getAttribute']('listItemId'),_0x19c080=!_0xfaba81||_0xfaba81['getAttribute']('listItemId')!==_0x14a3a5,_0x51c616=!_0x5b573d||_0x5b573d['getAttribute']('listItemId')!==_0x14a3a5;return _0x4ae508&&Boolean(_0x14a3a5)&&_0x19c080&&_0x51c616;},_0x2324aa=>Tt(_0x6958ba,'ELEMENT_LIST_ITEM',_0x2324aa));}['_registerLegacyDescription'](){const _0xd4adab=this['editor'],_0x585820=_0xd4adab['locale'];function _0x2d4edb(_0x34fb62){const _0xd90472=_0xd4adab['commands']['get']('bulletedList')['value'],_0x15a358=_0xd4adab['commands']['get']('numberedList')['value'];return'numberedList'===_0x34fb62?_0xd90472:_0x15a358;}_0xd4adab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x27bd44){if('formatBlock'!=_0x27bd44['type'])return;const {data:_0x29eee7}=_0x27bd44;if(!_0x29eee7)return;let _0x1c8652,_0x1e0385,_0x52303a,_0x1d6675;switch(_0x29eee7['commandName']){case'bulletedList':_0x52303a=_0x29eee7['commandParams'][0x0]['forceValue'],_0x1d6675=_0x2d4edb(_0x29eee7['commandName']),_0x1c8652=_0x52303a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1d6675&&_0xd4adab['config']['get']('list.multiBlock')||(_0x1c8652='*Change\x20to:*\x20%0'),_0x1e0385={'type':'format','content':Tt(_0x585820,_0x1c8652,Tt(_0x585820,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x52303a=_0x29eee7['commandParams'][0x0]['forceValue'],_0x1d6675=_0x2d4edb(_0x29eee7['commandName']),_0x1c8652=_0x52303a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1d6675&&_0xd4adab['config']['get']('list.multiBlock')||(_0x1c8652='*Change\x20to:*\x20%0'),_0x1e0385={'type':'format','content':Tt(_0x585820,_0x1c8652,Tt(_0x585820,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1c8652='*Indent:*\x20%0',_0x1e0385={'type':'format','content':Tt(_0x585820,_0x1c8652,Tt(_0x585820,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1c8652=function(_0x27f841){const _0x1ae519=_0x27f841['getFirstRange']();let _0x32a190=_0x1ae519['start']['nodeAfter'];for(;_0x32a190&&_0x1ae519['containsItem'](_0x32a190);){if(_0x32a190['getAttribute']('listIndent')>0x0)return!0x1;_0x32a190=_0x32a190['nextSibling'];}return!0x0;}(_0x27bd44)?Tt(_0x585820,'*Format:*\x20remove\x20from\x20%0',Tt(_0x585820,function(_0x322def){return'ELEMENT_'+_0x322def['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x27bd44))):Tt(_0x585820,'*Outdent:*\x20%0',Tt(_0x585820,'ELEMENT_LIST_ITEM')),_0x1e0385={'type':'format','content':_0x1c8652};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x29eee7['multipleBlocks']&&(_0x1c8652='*Merge:*\x20%0',_0x1e0385={'type':'deletion','content':Tt(_0x585820,_0x1c8652,Tt(_0x585820,'ELEMENT_LIST_ITEM'))});}return _0x1e0385;});}}function kt(_0x39fdb7){let _0x254d4f=_0x39fdb7['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x254d4f;){const _0x2a4a82=_0x254d4f['getAttribute']('listItemId');if(!_0x2a4a82)return!0x1;if(_0x2a4a82==_0x39fdb7['data']['newValue'])return'newValue';if(_0x2a4a82==_0x39fdb7['data']['oldValue'])return'oldValue';_0x254d4f=_0x254d4f['previousSibling'];}return!0x1;}class TrackChangesDocumentListProperties extends _0x3000a5{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3fd448=this['editor']['config']['get']('list.properties'),_0x46fb8b=this['editor']['plugins']['get']('TrackChangesEditing');_0x3fd448['styles']&&_0x46fb8b['enableDefaultAttributesIntegration']('listStyle'),_0x3fd448['reversed']&&_0x46fb8b['enableDefaultAttributesIntegration']('listReversed'),_0x3fd448['startIndex']&&_0x46fb8b['enableDefaultAttributesIntegration']('listStart');const _0x11cead={'type':'format','content':''};_0x46fb8b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x57a57d=this['editor']['locale'];_0x46fb8b['descriptionFactory']['registerAttributeLabel']('listReversed',Tt(_0x57a57d,'FORMAT_LIST_REVERSED')),_0x46fb8b['descriptionFactory']['registerDescriptionCallback'](_0xf4b3e9=>{const {data:_0x38b5de}=_0xf4b3e9;if(_0x38b5de&&'listReversed'==_0x38b5de['key'])return null==_0x38b5de['newValue']||0x0==_0x38b5de['newValue']&&null==_0x38b5de['oldValue']?_0x11cead:void 0x0;}),_0x46fb8b['descriptionFactory']['registerAttributeLabel']('listStart',Tt(_0x57a57d,'FORMAT_LIST_START')),_0x46fb8b['descriptionFactory']['registerDescriptionCallback'](_0x2d3875=>{const {data:_0xb07940}=_0x2d3875;if(_0xb07940&&'listStart'==_0xb07940['key'])return null==_0xb07940['newValue']||0x1==_0xb07940['newValue']&&null==_0xb07940['oldValue']?_0x11cead:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x578d2=>{if(_0x578d2['batch']['isUndo'])return!0x1;let _0x535d0c=!0x1;const _0x176f62=_0x46fb8b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x401f60=>{const _0x171f3=_0x46fb8b['_getAttributeKey'](_0x401f60);return'listStart'==_0x171f3||'listReversed'==_0x171f3;});for(const _0x1290fb of _0x176f62){const _0x49a550=_0x1290fb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x49a550||'customNumbered'==_0x49a550)continue;_0x46fb8b['_findSuggestions'](_0x1290fb['getFirstRange'](),'attribute')['find'](_0x2f142d=>'listType'==_0x46fb8b['_getAttributeKey'](_0x2f142d['suggestion']))||(_0x578d2['removeMarker'](_0x1290fb['getFirstMarker']()),_0x535d0c=!0x0);}return _0x535d0c;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x32aad6){const _0x41b7cf=this['editor']['locale'],{data:_0x71d474}=_0x32aad6,_0x5150a1={'type':'format','content':''};if(!_0x71d474||'listStyle'!=_0x71d474['key'])return;if(!_0x71d474['oldValue'])return'default'==_0x71d474['newValue']?_0x5150a1:{'type':'format','content':''+Tt(_0x41b7cf,'*Set\x20format:*\x20%0',Tt(_0x41b7cf,this['_getTranslationKeyForListStyle'](_0x71d474['newValue'])))};if(!_0x71d474['newValue']){if('default'==_0x71d474['oldValue'])return _0x5150a1;let _0x535482=_0x32aad6['head'];for(;_0x535482;){if(_0x535482['data']&&'listType'==_0x535482['data']['key']&&_0x535482['data']['newValue'])return _0x5150a1;_0x535482=_0x535482['next'];}return{'type':'format','content':''+Tt(_0x41b7cf,'*Remove\x20format:*\x20%0',Tt(_0x41b7cf,this['_getTranslationKeyForListStyle'](_0x71d474['oldValue'])))};}if('default'!=_0x71d474['newValue'])return{'type':'format','content':''+Tt(_0x41b7cf,'*Set\x20format:*\x20%0',Tt(_0x41b7cf,this['_getTranslationKeyForListStyle'](_0x71d474['newValue'])))};let _0xc553af=_0x32aad6['head'];for(;_0xc553af;){if(_0xc553af['data']&&'listType'==_0xc553af['data']['key']&&_0xc553af['data']['newValue']&&_0xc553af['data']['oldValue'])return _0x5150a1;_0xc553af=_0xc553af['next'];}return{'type':'format','content':Tt(_0x41b7cf,'*Set\x20format:*\x20%0',Tt(_0x41b7cf,'ELEMENT_'+_0x32aad6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4a4389=this['editor'],_0x1781c1=_0x4a4389['locale'];_0x4a4389['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x580d34=>{if('formatBlock'!=_0x580d34['type'])return;const {data:_0x197536}=_0x580d34;if(!_0x197536)return;let _0x4d794b,_0x57de98;switch(_0x197536['commandName']){case'listStyle':_0x4d794b='*Change\x20to:*\x20%0',_0x57de98={'type':'format','content':Tt(_0x1781c1,_0x4d794b,Tt(_0x1781c1,this['_getTranslationKeyForListStyle'](_0x197536['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4d794b=_0x197536['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x57de98={'type':'format','content':Tt(_0x1781c1,_0x4d794b)};break;case'listStart':_0x4d794b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x57de98={'type':'format','content':Tt(_0x1781c1,_0x4d794b,_0x197536['commandParams'][0x0]['startIndex'])};}return _0x57de98;});}['_getTranslationKeyForListStyle'](_0x59cd4e){return'ELEMENT_'+function(_0x407c44){if(Lt['includes'](_0x407c44))return'bulleted';if(It['includes'](_0x407c44))return'numbered';return null;}(_0x59cd4e)['toUpperCase']()+'_LIST_'+_0x59cd4e['toUpperCase']()['replace'](/-/g,'_');}}const Lt=['disc','circle','square'],It=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class TrackChangesEmoji extends _0x3000a5{['afterInit'](){const _0x559e97=this['editor'];_0x559e97['commands']['get']('emoji')&&_0x559e97['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class TrackChangesEnterCommand extends _0x3000a5{static get['requires'](){return[lt];}['init'](){const _0x474a90=this['editor'],_0x47251c=_0x474a90['plugins']['get']('TrackChangesEditing'),_0x3b10c0=_0x474a90['commands']['get']('enter');_0x47251c['enableCommand']('enter',()=>{_0x474a90['model']['change'](_0x5b5bbe=>{const _0x217e62=_0x474a90['model']['document']['selection'],_0x4bf7fb=_0x217e62['getFirstPosition'](),_0x4debc1=_0x2192a8['fromRange'](_0x217e62['getFirstRange']());if(_0x3b10c0['enterBlock'](_0x5b5bbe)){const _0x28e801=_0x474a90['model']['createPositionAt'](_0x4bf7fb['parent']['nextSibling'],0x0),_0x3a4fdf=_0x5b5bbe['createRange'](_0x4bf7fb,_0x28e801);_0x47251c['markInsertion'](_0x3a4fdf);}else _0x5b5bbe['setSelection'](_0x5b5bbe['createRange'](_0x4debc1['end']));_0x4debc1['detach'](),_0x3b10c0['fire']('afterExecute',{'writer':_0x5b5bbe});});});}}class TrackChangesFindAndReplace extends _0x3000a5{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x79c2af=this['editor']['plugins']['get']('TrackChangesEditing');_0x79c2af['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x79c2af['enableCommand']('findNext'),_0x79c2af['enableCommand']('findPrevious'),_0x79c2af['enableCommand']('replace'),_0x79c2af['enableCommand']('replaceAll');}['handleFindCommand'](_0x1d2568,_0x11d2b0,_0x5a34dc={}){const _0x361968=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1d2568(_0x2a6278=>{let _0x200962=('string'==typeof _0x11d2b0?_0x361968['findByTextCallback'](_0x11d2b0,_0x5a34dc):_0x11d2b0)(_0x2a6278);Array['isArray'](_0x200962)&&(_0x200962={'results':_0x200962,'searchText':'string'==typeof _0x11d2b0?_0x11d2b0:''});const _0x55c3d7=_0x200962['results']['filter'](_0x3ede61=>!0x1===this['_isInDeletionRange'](_0x3ede61,_0x2a6278['item']));return{..._0x200962,'results':_0x55c3d7};},_0x5a34dc);}['_isInDeletionRange'](_0x50f739,_0xdb2905){const _0x38b983=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xdb2905,_0x50f739['start']),this['editor']['model']['createPositionAt'](_0xdb2905,_0x50f739['end']));for(const _0xe78147 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x38b983['getIntersection'](_0xe78147['getRange']()))return!0x0;return!0x1;}}const bt=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class TrackChangesFont extends _0x3000a5{['afterInit'](){const _0x4547db=this['editor']['locale'],_0x4b09d6=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x28eb47,commandName:_0x1b99d2}of bt)this['editor']['plugins']['has'](_0x28eb47)&&_0x4b09d6['enableDefaultAttributesIntegration'](_0x1b99d2);_0x4b09d6['descriptionFactory']['registerAttributeLabel']('fontSize',Tt(_0x4547db,'FORMAT_FONT_SIZE')),_0x4b09d6['descriptionFactory']['registerAttributeLabel']('fontFamily',Tt(_0x4547db,'FORMAT_FONT_FAMILY')),_0x4b09d6['descriptionFactory']['registerAttributeLabel']('fontColor',Tt(_0x4547db,'FORMAT_FONT_COLOR')),_0x4b09d6['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Tt(_0x4547db,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f6488=this['editor'],_0x483234=_0x5f6488['locale'];_0x5f6488['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f7d7d=>{const _0x3f1080=_0x483234['t'];if('formatInline'!=_0x1f7d7d['type'])return;const {data:_0x32340e}=_0x1f7d7d;if(null!=_0x32340e){if('fontSize'==_0x32340e['commandName']){const _0x17088d=_0x32340e['commandParams'][0x0]['value'];if(_0x17088d){const _0x39b98b=_0x3f1080(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xadbb75=>_0xadbb75['model']==_0x17088d)['title'])['toLowerCase']();return{'type':'format','content':Tt(_0x483234,'*Set\x20font\x20size:*\x20%0',_0x39b98b)};}return{'type':'format','content':Tt(_0x483234,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x32340e['commandName']){const _0x5bde89=_0x32340e['commandParams'][0x0]['value'];return _0x5bde89?{'type':'format','content':Tt(_0x483234,'*Set\x20font\x20family:*\x20%0',_0x5bde89)}:{'type':'format','content':Tt(_0x483234,'*Reset\x20font\x20family*')};}if('fontColor'==_0x32340e['commandName']){const _0x356fc5=_0x32340e['commandParams'][0x0]['value'];if(_0x356fc5){const _0x25d767=_0x4b8cfa(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5d5fb3=>_0x5d5fb3['model']==_0x356fc5);let _0x281165=_0x356fc5,_0x2d11e9='';return _0x25d767&&(_0x281165=_0x25d767['label'],_0x2d11e9=_0x3f1080(_0x281165)['toLowerCase']()),{'type':'format','content':Tt(_0x483234,'*Set\x20font\x20color:*\x20%0',_0x2d11e9)['trim'](),'color':{'value':_0x356fc5,'title':_0x2d11e9||_0x281165}};}return{'type':'format','content':Tt(_0x483234,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x32340e['commandName']){const _0x25bfea=_0x32340e['commandParams'][0x0]['value'];if(_0x25bfea){const _0x244e79=_0x4b8cfa(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x13fac8=>_0x13fac8['model']==_0x25bfea);let _0x37a610=_0x25bfea,_0x49b4d9='';return _0x244e79&&(_0x37a610=_0x244e79['label'],_0x49b4d9=_0x3f1080(_0x37a610)['toLowerCase']()),{'type':'format','content':Tt(_0x483234,'*Set\x20font\x20background\x20color:*\x20%0',_0x49b4d9)['trim'](),'color':{'value':_0x25bfea,'title':_0x49b4d9||_0x37a610}};}return{'type':'format','content':Tt(_0x483234,'*Reset\x20font\x20background\x20color*')};}}});}}class TrackChangesFootnotes extends _0x3000a5{['afterInit'](){const {plugins:_0x2fad69}=this['editor'];_0x2fad69['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x2fad69['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x375010,plugins:_0x405e16,commands:_0x33465b}=this['editor'],_0x870b78=_0x405e16['get']('TrackChangesEditing');_0x33465b['get']('footnotesStyle')&&_0x870b78['enableDefaultAttributesIntegration']('footnotesStyle'),_0x33465b['get']('footnotesStart')&&_0x870b78['enableDefaultAttributesIntegration']('footnotesStart'),_0x870b78['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Tt(_0x375010,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x870b78['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Tt(_0x375010,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x2df2a9=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x2d2637,commands:_0x3736a2}=this['editor'];_0x3736a2['get']('insertFootnote')&&_0x2df2a9['enableCommand']('insertFootnote'),_0x2df2a9['descriptionFactory']['registerElementLabel']('footnoteRef',_0x46ab8c=>Tt(_0x2d2637,'ELEMENT_FOOTNOTE_REF',_0x46ab8c)),_0x2df2a9['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x46c697=>Tt(_0x2d2637,'ELEMENT_FOOTNOTE_DEFINITION',_0x46c697)),_0x2df2a9['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x357d32=>Tt(_0x2d2637,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x357d32));}}class TrackChangesFormatPainter extends _0x3000a5{['afterInit'](){const _0x12137f=this['editor'],_0x10aa86=_0x12137f['plugins']['get']('TrackChangesEditing'),_0xfb4e2f=_0x12137f['commands']['get']('copyFormat'),_0x1c25d0=_0x12137f['commands']['get']('pasteFormat');_0xfb4e2f&&_0x1c25d0&&(_0x10aa86['enableDefaultAttributesIntegration']('pasteFormat'),_0x10aa86['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x341229=this['editor'],_0x5ae1bf=_0x341229['locale'];_0x341229['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd44710=>{if('formatBlock'!=_0xd44710['type']&&'formatInline'!=_0xd44710['type'])return;const {data:_0x2acab7}=_0xd44710;if(_0x2acab7&&'pasteFormat'===_0x2acab7['commandName']){const _0x53b6bc=[],_0x479c68=_0x2acab7['commandParams'][0x0];for(const [_0x16ae93,_0x39d150]of Object['entries'](_0x479c68))_0x53b6bc['push'](At(_0x341229,_0x16ae93,_0x39d150));return _0x53b6bc['length']?{'type':'format','content':Tt(_0x5ae1bf,'*Set\x20format\x20to:*\x20%0',_0x53b6bc['join'](',\x20'))}:{'type':'format','content':Tt(_0x5ae1bf,'*Remove\x20all\x20formatting*')};}});}}function At(_0x4bf670,_0x3968d4,_0x520544){const _0x3b60f1=_0x4bf670['locale']['t'],_0x5edf3b=_0x3968d4['split'](/(?=[A-Z])/)['join']('\x20'),_0x230c22=_0x3b60f1(_0x5edf3b['charAt'](0x0)['toUpperCase']()+_0x5edf3b['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x520544)return _0x230c22;if('fontColor'===_0x3968d4||'fontBackgroundColor'===_0x3968d4){const _0x2b9dac=_0x4b8cfa(_0x4bf670['config']['get']('fontColor.colors'))['find'](_0x3361c4=>_0x3361c4['model']==_0x520544);return _0x230c22+'\x20('+(_0x2b9dac?_0x3b60f1(_0x2b9dac['label'])['toLowerCase']():_0x520544)+')';}if('fontSize'===_0x3968d4&&isNaN(parseFloat(_0x520544))){const _0xc360e3=_0x4bf670['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4bf670['config']['get']('fontSize.options'))['find'](_0xc48d99=>_0xc48d99['model']==_0x520544);return _0x230c22+'\x20('+(_0xc360e3?_0x3b60f1(_0xc360e3['title'])['toLowerCase']():_0x520544)+')';}return _0x230c22+'\x20('+_0x520544+')';}class TrackChangesHeading extends _0x3000a5{['_headingOptions'];['afterInit'](){const _0x213887=this['editor'];if(!_0x213887['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x213887['config']['get']('heading.options');const _0x587467=_0x213887['locale'],_0x34735e=_0x213887['plugins']['get']('TrackChangesEditing');_0x34735e['enableDefaultAttributesIntegration']('heading');for(const _0x1e514e of this['_headingOptions'])'paragraph'!=_0x1e514e['model']&&_0x34735e['descriptionFactory']['registerElementLabel'](_0x1e514e['model'],_0x2c3910=>{const _0x3d746c=this['_getHeadingLevel'](_0x1e514e['model']);return null!==_0x3d746c?_0x33e9a1(_0x2c3910,_0x3d746c):_0x56482e(_0x2c3910,_0x1e514e['title']);});function _0x33e9a1(_0x11d8fe,_0x46e904){return Tt(_0x587467,'ELEMENT_HEADING',[_0x11d8fe,_0x46e904]);}function _0x56482e(_0x33a936,_0x489574){return Tt(_0x587467,'ELEMENT_HEADING_CUSTOM',[_0x33a936,_0x489574]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x546e31=this['editor'],_0x33f2c1=_0x546e31['locale'];function _0x4088ba(_0x1fb34c,_0x3c952a){return Tt(_0x33f2c1,'ELEMENT_HEADING_CUSTOM',[_0x1fb34c,_0x3c952a]);}_0x546e31['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b838c=>{if('formatBlock'!=_0x3b838c['type'])return;const {data:_0x13d11c}=_0x3b838c;if(_0x13d11c&&'heading'==_0x13d11c['commandName']){const _0x50ad12=_0x13d11c['commandParams'][0x0]['value'],_0x40d417=this['_getHeadingLevel'](_0x50ad12);if(null!==_0x40d417)return{'type':'format','content':Tt(_0x33f2c1,'*Change\x20to:*\x20%0',(_0x2bb327=0x1,_0x3fd1dd=_0x40d417,Tt(_0x33f2c1,'ELEMENT_HEADING',[_0x2bb327,_0x3fd1dd])))};const _0x40b041=this['_headingOptions']['find'](_0x1bbd0c=>_0x1bbd0c['model']===_0x50ad12)['title'];return{'type':'format','content':Tt(_0x33f2c1,'*Change\x20to:*\x20%0',_0x4088ba(0x1,_0x40b041))};}var _0x2bb327,_0x3fd1dd;});}['_getHeadingLevel'](_0x82ac95){const _0xac649e=_0x82ac95['match'](/^heading(\d+)/);if(_0xac649e)return _0xac649e[0x1];const _0x3f528b=this['_headingOptions']?.['find'](_0x434453=>_0x434453['model']==_0x82ac95);if(_0x3f528b&&_0x3f528b['view']){const _0x1553cf=_0x3f528b['view'],_0x327f76=(_0x1553cf['name']??_0x1553cf)['match'](/^h(\d+)/);if(_0x327f76)return _0x327f76[0x1];}return null;}}class TrackChangesHighlight extends _0x3000a5{['afterInit'](){const _0x159665=this['editor'];if(!_0x159665['plugins']['has']('HighlightEditing'))return;const _0x9f9339=_0x159665['plugins']['get']('TrackChangesEditing'),_0x2bc604=_0x159665['locale'];_0x9f9339['enableDefaultAttributesIntegration']('highlight'),_0x9f9339['descriptionFactory']['registerAttributeLabel']('highlight',Tt(_0x2bc604,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x486195=this['editor'],_0x30bef5=_0x486195['locale'];_0x486195['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x352802=>{if('formatInline'!=_0x352802['type'])return;const {data:_0x5efa73}=_0x352802;if(_0x5efa73&&'highlight'==_0x5efa73['commandName']){const _0x578288=_0x30bef5['t'],_0x53dd78=_0x5efa73['commandParams'][0x0]['value'];if(_0x53dd78){const _0x1f29ab=_0x486195['config']['get']('highlight.options')['find'](_0x2d46b2=>_0x2d46b2['model']==_0x53dd78),_0x5b6867=_0x578288(_0x1f29ab['title'])['toLowerCase']();return{'type':'format','content':Tt(_0x30bef5,'*Set\x20highlight:*\x20%0',_0x5b6867),'color':{'value':_0x1f29ab['color'],'title':_0x1f29ab['title']}};}return{'type':'format','content':Tt(_0x30bef5,'*Remove\x20highlight*',Tt(_0x30bef5,'FORMAT_HIGHLIGHT'))};}});}}class TrackChangesHorizontalLine extends _0x3000a5{['afterInit'](){const _0x50950e=this['editor'];if(!_0x50950e['plugins']['has']('HorizontalLineEditing'))return;_0x50950e['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x7be8d8=_0x50950e['plugins']['get']('TrackChangesEditing'),_0x3ada28=_0x50950e['locale'];_0x7be8d8['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1cced0=>Tt(_0x3ada28,'ELEMENT_HORIZONTAL_LINE',_0x1cced0));}}class TrackChangesHtmlEmbed extends _0x3000a5{['afterInit'](){const _0xaa4f8a=this['editor'];if(!_0xaa4f8a['plugins']['has']('HtmlEmbed'))return;const _0x416a6a=_0xaa4f8a['plugins']['get']('TrackChangesEditing'),_0x512ecd=_0xaa4f8a['locale'];_0x416a6a['descriptionFactory']['registerElementLabel']('rawHtml',_0x5e677e=>Tt(_0x512ecd,'ELEMENT_HTML_EMBED',_0x5e677e)),_0x416a6a['enableDefaultAttributesIntegration']('htmlEmbed'),_0x416a6a['descriptionFactory']['registerDescriptionCallback'](_0x13f80d=>{if('attribute'!=_0x13f80d['type'])return;const {data:_0x2510de}=_0x13f80d;if(_0x2510de&&'value'==_0x2510de['key']&&_0x13f80d['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1f4a94=Tt(_0x512ecd,'ELEMENT_HTML_EMBED');return{'type':'format','content':Tt(_0x512ecd,'*Change\x20%0\x20content*',_0x1f4a94)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe30393=this['editor'],_0x3fdfdf=_0xe30393['locale'];_0xe30393['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49b855=>{if('formatBlock'!=_0x49b855['type'])return;const {data:_0x577aae}=_0x49b855;if(_0x577aae&&'htmlEmbed'==_0x577aae['commandName']){const _0x260904=Tt(_0x3fdfdf,'ELEMENT_HTML_EMBED');return{'type':'format','content':Tt(_0x3fdfdf,'*Change\x20%0\x20content*',_0x260904)};}});}}class TrackChangesImage extends _0x3000a5{['afterInit'](){const _0x186d29=this['editor'];if(!_0x186d29['plugins']['has']('ImageEditing'))return;const _0x121e30=_0x186d29['plugins']['get']('TrackChangesEditing'),_0x2741e7=_0x186d29['plugins']['get']('ImageUtils'),_0x431bdb=_0x186d29['locale'];_0x121e30['enableCommand']('insertImage'),_0x121e30['descriptionFactory']['registerElementLabel']('imageBlock',_0x41bd3f=>Tt(_0x431bdb,'ELEMENT_IMAGE',_0x41bd3f)),_0x121e30['descriptionFactory']['registerElementLabel']('imageInline',_0x126c8b=>Tt(_0x431bdb,'ELEMENT_INLINE_IMAGE',_0x126c8b)),_0x121e30['descriptionFactory']['registerElementLabel']('caption',()=>Tt(_0x431bdb,'ELEMENT_CAPTION')),_0x186d29['plugins']['has']('ImageUploadEditing')&&_0x121e30['enableCommand']('uploadImage'),_0x186d29['plugins']['has']('ImageBlockEditing')&&_0x186d29['plugins']['has']('ImageInlineEditing')&&(_0x121e30['enableCommand']('imageTypeInline',(_0x55d2e7,_0x4f22a4)=>{const _0x33feb0=_0x2741e7['getClosestSelectedImageElement'](_0x186d29['model']['document']['selection']);_0x186d29['model']['change'](()=>{_0x121e30['markBlockFormat'](_0x33feb0,{'commandName':'imageTypeInline','commandParams':[_0x4f22a4]},[],'convertBlockImageToInline');});}),_0x121e30['enableCommand']('imageTypeBlock',(_0x4e5702,_0x4e3f7f)=>{_0x186d29['model']['change'](_0x20650d=>{let _0x324fc6=_0x2741e7['getClosestSelectedImageElement'](_0x186d29['model']['document']['selection']),_0x208793=_0x20650d['createRangeOn'](_0x324fc6);const _0x3a7ba7=tt['fromPosition'](_0x208793['start'],'toPrevious'),_0x444ca9=tt['fromPosition'](_0x208793['end'],'toNext');_0x121e30['forceDefaultExecution'](()=>_0x4e5702(_0x4e3f7f)),_0x324fc6=_0x2741e7['getClosestSelectedImageElement'](_0x186d29['model']['document']['selection']),_0x208793=_0x20650d['createRangeOn'](_0x324fc6);const _0x1ed780=_0x20650d['createRange'](_0x3a7ba7,_0x444ca9);_0x3a7ba7['detach'](),_0x444ca9['detach'](),_0x121e30['markBlockFormat'](_0x324fc6,{'commandName':'imageTypeInline','commandParams':[_0x4e3f7f]},[],'convertInlineImageToBlock'),_0x1ed780['start']['isBefore'](_0x208793['start'])&&_0x121e30['markInsertion'](_0x20650d['createRange'](_0x1ed780['start'],_0x208793['start']),'convertInlineImageToBlock'),_0x208793['end']['isBefore'](_0x1ed780['end'])&&_0x121e30['markInsertion'](_0x20650d['createRange'](_0x208793['end'],_0x1ed780['end']),'convertInlineImageToBlock');});}),_0x121e30['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x121e30['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x121e30['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x121e30['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x121e30['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x121e30['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5f3d0b])=>{const _0x29d6dc=_0x121e30['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2e3cfc=_0x5f3d0b['start'],_0xa40e78=_0x5f3d0b['end'];const _0x1d1c85=_0x186d29['model']['schema']['getNearestSelectionRange'](_0x2e3cfc,'backward'),_0x15185a=_0x186d29['model']['schema']['getNearestSelectionRange'](_0xa40e78,'forward');_0x1d1c85['isCollapsed']&&(_0x2e3cfc=_0x1d1c85['start']),_0x15185a['isCollapsed']&&(_0xa40e78=_0x15185a['end']),_0x29d6dc([_0x186d29['model']['createRange'](_0x2e3cfc,_0xa40e78)]);}),_0x121e30['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x41a668),_0x121e30['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x41a668)),_0x186d29['plugins']['has']('ImageCaptionEditing')&&(_0x121e30['enableCommand']('toggleImageCaption',(_0x173485,_0x2570ff)=>{const _0x148317=_0x186d29['plugins']['get']('ImageCaptionUtils');let _0xeba956=_0x2741e7['getClosestSelectedImageElement'](_0x186d29['model']['document']['selection']),_0x794119=_0x148317['getCaptionFromImageModelElement'](_0xeba956);_0x186d29['model']['change'](()=>{if(_0x794119)return void _0x121e30['markDeletion'](_0x186d29['model']['createRangeOn'](_0x794119));const _0x2bc38a=_0x2741e7['isBlockImage'](_0xeba956);_0x173485(_0x2570ff),_0xeba956=_0x2741e7['getClosestSelectedImageElement'](_0x186d29['model']['document']['selection']),_0x794119=_0x148317['getCaptionFromImageModelElement'](_0xeba956),_0x121e30['markInsertion'](_0x186d29['model']['createRangeOn'](_0x794119),_0x2bc38a?null:'imageCaption');});}),_0x121e30['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x41a668));const _0x38101f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x39f121(_0x464746,_0x53250a){const _0xa4881c=_0x38101f['findIndex'](({type:_0x7b202c,subType:_0x4a2bfe})=>_0x464746['type']==_0x7b202c&&_0x464746['subType']==_0x4a2bfe),_0x3b930f=_0x38101f['findIndex'](({type:_0x4fb310,subType:_0x392847})=>_0x53250a['type']==_0x4fb310&&_0x53250a['subType']==_0x392847);if(_0xa4881c<0x0||_0x3b930f<0x0)return!0x1;const _0x5c4cf0=_0x464746['getFirstRange'](),_0x3ade8b=_0x53250a['getFirstRange']();if((0x0==_0xa4881c||0x1==_0xa4881c)&&0x2==_0x3b930f&&_0x5c4cf0['isIntersecting'](_0x3ade8b))return!0x0;if(0x2==_0xa4881c&&0x3==_0x3b930f){const _0x320e26=_0x121e30['_findSuggestions'](_0x5c4cf0,'insertion')['filter'](({suggestion:_0x48ea6f,meta:_0x352739})=>_0x352739['isOwn']&&'convertInlineImageToBlock'==_0x48ea6f['subType']);if(_0x320e26['length']>0x1&&_0x3ade8b['end']['isEqual'](_0x5c4cf0['start']))return!0x0;if(0x1==_0x320e26['length']&&(_0x5c4cf0['start']['isEqual'](_0x3ade8b['end'])||_0x5c4cf0['end']['isEqual'](_0x3ade8b['start'])))return!0x0;}if(0x3==_0xa4881c&&0x3==_0x3b930f&&_0x5c4cf0['start']['isBefore'](_0x3ade8b['start'])){const _0x567598=_0x5c4cf0['end']['nodeAfter'],_0x364618=_0x3ade8b['start']['nodeBefore'];return _0x2741e7['isBlockImage'](_0x567598)&&_0x567598===_0x364618;}return!0x1;}function _0x41a668(_0x1db4bd,_0x21144a){return _0x39f121(_0x1db4bd,_0x21144a)?[_0x1db4bd,_0x21144a]:_0x39f121(_0x21144a,_0x1db4bd)?[_0x21144a,_0x1db4bd]:null;}_0x186d29['plugins']['has']('ImageResize')&&(_0x121e30['enableDefaultAttributesIntegration']('resizeImage'),_0x121e30['descriptionFactory']['registerAttributeLabel']('resizedWidth',Tt(_0x431bdb,'FORMAT_IMAGE_SIZE'))),_0x186d29['plugins']['has']('ImageTextAlternativeEditing')&&_0x121e30['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x186d29['plugins']['has']('PictureEditing')&&_0x121e30['descriptionFactory']['registerDescriptionCallback'](_0x539389=>{if('attribute'!=_0x539389['type'])return;const {data:_0x163518}=_0x539389;return _0x163518&&'sources'==_0x163518['key']?{'type':'format','content':''}:void 0x0;}),_0x186d29['plugins']['has']('ImageSizeAttributes')&&_0x121e30['descriptionFactory']['registerDescriptionCallback'](_0x1c962d=>{if('attribute'!=_0x1c962d['type'])return;const {data:_0x1a7aab}=_0x1c962d;return!_0x1a7aab||'width'!=_0x1a7aab['key']&&'height'!=_0x1a7aab['key']?void 0x0:{'type':'format','content':''};}),_0x121e30['descriptionFactory']['registerDescriptionCallback'](_0x31ebf5=>{if(!!_0x38101f['find'](({type:_0x2a8b61,subType:_0x11ba16})=>_0x31ebf5['type']==_0x2a8b61&&_0x31ebf5['subType']==_0x11ba16))return _0x31ebf5['previous']?{}:void 0x0;}),_0x121e30['descriptionFactory']['registerDescriptionCallback'](_0x5a7bf2=>{if('insertion'==_0x5a7bf2['type']||'deletion'==_0x5a7bf2['type']){const _0x30da16=_0x5a7bf2['getContainedElement']();if(_0x30da16&&_0x30da16['is']('element','caption'))return{'type':'insertion'==_0x5a7bf2['type']?'addObject':'removeObject','element':_0x30da16,'quantity':0x1};}}),_0x121e30['descriptionFactory']['registerDescriptionCallback'](_0x28daf7=>'formatBlock'==_0x28daf7['type']&&'convertInlineImageToBlock'==_0x28daf7['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x28daf7['type']&&'convertBlockImageToInline'==_0x28daf7['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x121e30['descriptionFactory']['registerDescriptionCallback'](_0x22cb07=>{if('attribute'!=_0x22cb07['type'])return;const {data:_0x569df4}=_0x22cb07;if(!_0x569df4||'alt'!=_0x569df4['key'])return;const _0x4be490=_0x569df4['newValue'];return _0x4be490?{'type':'format','content':Tt(_0x431bdb,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4be490+'\x22')}:{'type':'format','content':Tt(_0x431bdb,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15b6bd=this['editor'],_0x4d9dbf=_0x15b6bd['locale'];_0x15b6bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c901e=>{if('formatBlock'!=_0x1c901e['type']&&'formatInline'!=_0x1c901e['type'])return;const {data:_0x57ee78}=_0x1c901e;if(_0x57ee78){if('imageTextAlternative'==_0x57ee78['commandName']){const _0x5945a3=_0x57ee78['commandParams'][0x0]['newValue'];return _0x5945a3?{'type':'format','content':Tt(_0x4d9dbf,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5945a3+'\x22')}:{'type':'format','content':Tt(_0x4d9dbf,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x57ee78['commandName']){const _0x374814=_0x57ee78['commandParams'][0x0]['width'];return _0x374814?{'type':'format','content':Tt(_0x4d9dbf,'*Set\x20image\x20width:*\x20%0',_0x374814)}:{'type':'format','content':Tt(_0x4d9dbf,'*Reset\x20image\x20width*')};}}});}}class TrackChangesImageReplace extends _0x3000a5{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2be089=this['editor']['locale'],_0x288e65=this['editor']['plugins']['get']('TrackChangesEditing');_0x288e65['enableDefaultAttributesIntegration']('replaceImageSource'),_0x288e65['descriptionFactory']['registerDescriptionCallback'](_0x576d4b=>{if('attribute'!=_0x576d4b['type'])return;const {data:_0x3b4b6b}=_0x576d4b;return _0x3b4b6b&&'src'==_0x3b4b6b['key']?_0x3b4b6b['newValue']&&_0x3b4b6b['oldValue']?{'type':'format','content':Tt(_0x2be089,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2d5863=this['editor']['plugins']['get']('TrackChangesEditing');_0x2d5863['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2d5863['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2d5863['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2d5863['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23b82c=this['editor'],_0x30ca89=_0x23b82c['locale'];_0x23b82c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23cc1=>{if('formatBlock'!=_0x23cc1['type']&&'formatInline'!=_0x23cc1['type'])return;const {data:_0x3c4e29}=_0x23cc1;if(!_0x3c4e29||'replaceImageSource'!=_0x3c4e29['commandName'])return;return{'type':'format','content':Tt(_0x30ca89,'*Format:*\x20replace\x20image\x20URL')};});}}class TrackChangesImageStyle extends _0x3000a5{['afterInit'](){const _0x3daa49=this['editor'];if(!_0x3daa49['plugins']['has']('ImageStyleEditing'))return;const _0x2b007c=_0x3daa49['plugins']['get']('TrackChangesEditing'),_0x3942ab=_0x3daa49['plugins']['get']('ImageUtils'),_0x52a2b3={};_0x2b007c['enableCommand']('imageStyle',(_0x505a7b,_0x2b73b3)=>{const _0x20f174=_0x3daa49['plugins']['get']('Users')['me'],_0x546daf=_0x3daa49['commands']['get']('imageStyle');let _0x14535c=_0x3942ab['getClosestSelectedImageElement'](_0x3daa49['model']['document']['selection']),_0x291284=_0x3daa49['model']['createRangeOn'](_0x14535c),_0x4e8ca1=_0x546daf['value'];if(_0x4e8ca1==_0x2b73b3['value'])return;const _0x13da6c={'commandName':'imageStyle','commandParams':[_0x2b73b3],'formatGroupId':_0x59fa6d()};_0x3daa49['model']['change'](()=>{if(_0x2b007c['getSuggestions']()['filter'](_0x42050e=>_0x42050e['isInContent']&&_0x20f174==_0x42050e['author']&&('formatBlock'==_0x42050e['type']||'formatInline'==_0x42050e['type'])&&('imageStylePreApply'==_0x42050e['subType']||'imageStylePostApply'==_0x42050e['subType'])&&_0x42050e['getFirstRange']()['isEqual'](_0x291284))['forEach'](_0x444e95=>_0x2b007c['discardSuggestion'](_0x444e95['head'])),_0x14535c=_0x3942ab['getClosestSelectedImageElement'](_0x3daa49['model']['document']['selection']),_0x291284=_0x3daa49['model']['createRangeOn'](_0x14535c),_0x546daf['refresh'](),_0x3daa49['commands']['get']('imageTypeInline')['refresh'](),_0x3daa49['commands']['get']('imageTypeBlock')['refresh'](),_0x4e8ca1=_0x546daf['value'],_0x4e8ca1!=_0x2b73b3['value'])return _0x3942ab['isInlineImage'](_0x14535c)&&_0x546daf['shouldConvertImageType'](_0x2b73b3['value'],_0x14535c)?(_0x505a7b({..._0x2b73b3,'setImageSizes':!0x1}),_0x14535c=_0x3942ab['getClosestSelectedImageElement'](_0x3daa49['model']['document']['selection']),void _0x2b007c['markBlockFormat'](_0x14535c,{..._0x13da6c,'commandReversedParams':[{'value':_0x4e8ca1||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3942ab['isBlockImage'](_0x14535c)?_0x2b007c['markBlockFormat'](_0x14535c,_0x13da6c,[],'imageStylePostApply'):_0x2b007c['markInlineFormat'](_0x291284,_0x13da6c,'imageStylePostApply'));});});for(const _0x55343a of _0x3daa49['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x52a2b3[_0x55343a['name']]=_0x55343a['title']['toLowerCase']();_0x2b007c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2b007c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2b007c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2b007c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x57c8df])=>{_0x3942ab['setImageNaturalSizeAttributes'](_0x57c8df['getContainedElement']());}),_0x2b007c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5bd7dd,_0x225ccb)=>{_0x2b007c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5bd7dd,{'commandName':_0x225ccb['commandName'],'commandParams':_0x225ccb['commandReversedParams']});}),_0x2b007c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2df2c0,_0x5dfa21){if(_0x5dfff9(_0x2df2c0,_0x5dfa21))return[_0x2df2c0,_0x5dfa21];if(_0x5dfff9(_0x5dfa21,_0x2df2c0))return[_0x5dfa21,_0x2df2c0];return null;});const _0x108a0a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5dfff9(_0x5ab236,_0x42b443){const _0x12fa56=_0x108a0a['findIndex'](({type:_0x4027ce,subType:_0x2c8b23})=>_0x5ab236['type']==_0x4027ce&&_0x5ab236['subType']==_0x2c8b23),_0x1013f5=_0x108a0a['findIndex'](({type:_0x19365e,subType:_0x212991})=>_0x42b443['type']==_0x19365e&&_0x42b443['subType']==_0x212991);if(_0x12fa56<0x0||_0x1013f5<0x0)return!0x1;const _0x2e6934=_0x5ab236['getFirstRange'](),_0x4eea31=_0x42b443['getFirstRange']();if((0x0==_0x12fa56||0x1==_0x12fa56)&&0x2==_0x1013f5&&_0x2e6934['isIntersecting'](_0x4eea31))return!0x0;if(0x2==_0x12fa56&&0x3==_0x1013f5){const _0xd6738e=_0x2b007c['_findSuggestions'](_0x2e6934,'insertion')['filter'](({suggestion:_0x294452,meta:_0x1aa395})=>_0x1aa395['isOwn']&&'convertInlineImageToBlock'==_0x294452['subType']);if(_0xd6738e['length']>0x1&&_0x4eea31['end']['isEqual'](_0x2e6934['start']))return!0x0;if(0x1==_0xd6738e['length']&&(_0x2e6934['start']['isEqual'](_0x4eea31['end'])||_0x2e6934['end']['isEqual'](_0x4eea31['start'])))return!0x0;}if(0x3==_0x12fa56&&0x3==_0x1013f5&&_0x2e6934['start']['isBefore'](_0x4eea31['start'])){const _0x452f5c=_0x2e6934['end']['nodeAfter'],_0x47b323=_0x4eea31['start']['nodeBefore'];return _0x3942ab['isBlockImage'](_0x452f5c)&&_0x452f5c===_0x47b323;}return!0x1;}_0x3daa49['model']['document']['registerPostFixer'](()=>{let _0x156bb0=!0x1;const _0xaa4a93=Array['from'](_0x3daa49['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x47ce26,data:_0x101256}of _0xaa4a93){const {group:_0x39ac8a,type:_0x5439fc,subType:_0x2a7d2e,id:_0x567a2e}=_0x2522cc(_0x47ce26);if('suggestion'==_0x39ac8a&&_0x2b007c['hasSuggestion'](_0x567a2e)){if('formatBlock'==_0x5439fc&&('imageStylePreApply'==_0x2a7d2e||'imageStylePostApply'==_0x2a7d2e)){const _0x4d10f9=_0x2b007c['getSuggestion'](_0x567a2e);if(_0x101256['newRange']){const _0xc38bcf=_0x4d10f9['getFirstRange']()['getContainedElement']();if(_0x3942ab['isBlockImage'](_0xc38bcf))continue;_0x2b007c['discardSuggestion'](_0x4d10f9),_0x156bb0=!0x0;}}if('insertion'==_0x5439fc&&'imageCaption'==_0x2a7d2e&&!_0x101256['newRange']){const _0x3b0e08=_0x2b007c['getSuggestion'](_0x567a2e);_0x3b0e08['next']&&_0x3b0e08['next']['isInContent']&&(_0x2b007c['discardSuggestion'](_0x3b0e08['next']),_0x156bb0=!0x0);}}}return _0x156bb0;}),this['_registerLegacyDescription'](_0x52a2b3);}['_registerLegacyDescription'](_0x42bdb9){const _0x3fe827=this['editor'],_0x23127c=_0x3fe827['locale'];_0x3fe827['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5868be=>{if('formatBlock'!=_0x5868be['type']&&'formatInline'!=_0x5868be['type'])return;const {data:_0xf24ef9}=_0x5868be;if(!_0xf24ef9||'imageStyle'!=_0xf24ef9['commandName'])return;const _0x5843a7=_0xf24ef9['commandParams'][0x0]['value'];return _0x342c91('side'===_0x5843a7?Tt(_0x23127c,'FORMAT_SIDE_IMAGE'):_0x42bdb9[_0x5843a7]||_0x5843a7);function _0x342c91(_0x288254){return{'type':'format','content':Tt(_0x23127c,'*Format:*\x20%0',_0x288254)};}});}}class TrackChangesImportWord extends _0x3000a5{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x55e213){super(_0x55e213),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x24dce2=this['editor'],_0x4cd5d5=_0x24dce2['commands']['get']('importWord'),_0x29b517=_0x24dce2['commands']['get']('trackChanges');_0x4cd5d5&&(_0x4cd5d5['on']('execute',(_0x365f84,[,_0x2cc086])=>{this['_trackChangesValueDuringImport']=_0x29b517['value'],_0x2cc086['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4cd5d5,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4cd5d5,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x29b517['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x24dce2['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1c02f8,_0x5c143c){const {suggestions:_0x25a859}=_0x5c143c,_0x3dbc18=this['editor']['commands']['get']('trackChanges'),_0x44865b=_0x3dbc18['value'];this['_trackChangesValueDuringImport']!==_0x44865b&&(_0x3dbc18['execute'](),this['_trackChangesExecuted']=!0x0),_0x25a859&&_0x25a859['forEach'](({id:_0x26b5c3,type:_0x49428f,author:_0x20e81a,created_at:_0xc3fbdc})=>{const _0x9786b={'id':_0x26b5c3,'type':_0x49428f,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x20e81a,'createdAt':_0xc3fbdc?new Date(_0xc3fbdc):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x9786b);});}}class TrackChangesIndent extends _0x3000a5{['afterInit'](){const _0xfd82c3=this['editor'],_0xe93b8e=_0xfd82c3['plugins']['get']('TrackChangesEditing');if(_0xfd82c3['plugins']['has']('IndentEditing')&&(_0xe93b8e['enableCommand']('indent'),_0xe93b8e['enableCommand']('outdent')),_0xfd82c3['plugins']['has']('IndentBlock')){for(const _0x9c1469 of['indentBlock','outdentBlock'])_0xe93b8e['enableDefaultAttributesIntegration'](_0x9c1469);if(_0xfd82c3['plugins']['has']('ListEditing')){for(const _0x2c1156 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0xe93b8e['enableDefaultAttributesIntegration'](_0x2c1156);}}const _0x118e8a=_0xfd82c3['locale'];_0xe93b8e['descriptionFactory']['registerAttributeLabel']('blockIndent',Tt(_0x118e8a,'FORMAT_INDENT')),_0xe93b8e['descriptionFactory']['registerAttributeLabel']('blockIndentList',Tt(_0x118e8a,'FORMAT_INDENT')),_0xe93b8e['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Tt(_0x118e8a,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51a04e=this['editor'],_0x4ebf18=_0x51a04e['locale'],_0xd7b822=_0x51a04e['plugins']['get']('TrackChangesEditing');_0xd7b822['descriptionFactory']['registerDescriptionCallback'](_0x18b023=>{if('formatBlock'!=_0x18b023['type'])return;const {data:_0x24c6d0}=_0x18b023;if(!_0x24c6d0)return;if('indentBlock'!=_0x24c6d0['commandName']&&'outdentBlock'!=_0x24c6d0['commandName'])return;const _0x1de794=_0x18b023['getItems']()[0x0],_0x3db146=_0xd7b822['descriptionFactory']['getItemLabel'](_0x1de794);return'indentBlock'==_0x24c6d0['commandName']?{'type':'format','content':Tt(_0x4ebf18,'*Indent:*\x20%0',_0x3db146)}:'outdentBlock'==_0x24c6d0['commandName']?{'type':'format','content':Tt(_0x4ebf18,'*Outdent:*\x20%0',_0x3db146)}:void 0x0;});}}class TrackChangesInputCommand extends _0x3000a5{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class TrackChangesLink extends _0x3000a5{['afterInit'](){const _0x306868=this['editor'];if(!_0x306868['plugins']['has']('LinkEditing'))return;const _0x383610=_0x306868['plugins']['get']('TrackChangesEditing'),_0x4cabf2=_0x306868['commands']['get']('link');_0x383610['enableDefaultAttributesIntegration']('link'),_0x383610['enableDefaultAttributesIntegration']('unlink');for(const _0x58b909 of _0x4cabf2['manualDecorators'])_0x383610['descriptionFactory']['registerAttributeLabel'](_0x58b909['id'],'link\x20('+_0x58b909['label']['toLowerCase']()+')');_0x383610['descriptionFactory']['registerDescriptionCallback'](_0x3e875e=>{if('attribute'!=_0x3e875e['type'])return;const {data:_0x1552ea}=_0x3e875e;if(!_0x1552ea||'linkHref'!=_0x1552ea['key'])return;const _0x117ca4=_0x1552ea['newValue'],_0x2ccfc7=_0x306868['locale'];return{'type':'format','content':null==_0x117ca4?Tt(_0x2ccfc7,'*Remove\x20link*'):Tt(_0x2ccfc7,'*Set\x20link:*\x20%0','\x22'+_0x117ca4+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5227dd=this['editor'],_0x4c53ae=_0x5227dd['locale'];_0x5227dd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xea71fd=>{if('formatInline'!=_0xea71fd['type'])return;const {data:_0x4d3c05}=_0xea71fd;if(_0x4d3c05){if('link'==_0x4d3c05['commandName']){const _0x307b08=_0x4d3c05['commandParams'][0x0];return{'type':'format','content':Tt(_0x4c53ae,'*Set\x20link:*\x20%0','\x22'+_0x307b08+'\x22')};}return'unlink'==_0x4d3c05['commandName']?{'type':'format','content':Tt(_0x4c53ae,'*Remove\x20link*')}:void 0x0;}});}}class TrackChangesLegacyList extends _0x3000a5{['afterInit'](){const _0x41c29c=this['editor'],_0x3e5f17=_0x41c29c['locale'];if(!_0x41c29c['plugins']['has']('LegacyListEditing'))return;const _0x1d683a=_0x41c29c['plugins']['get']('TrackChangesEditing'),_0x3c502b=_0x41c29c['plugins']['has']('LegacyTodoListEditing');function _0x37f9df(_0x1ffe5a){return()=>{const _0x55efa1=_0x41c29c['model']['document']['selection'],_0x45e7b1=_0x41c29c['commands']['get'](_0x1ffe5a);if(_0x45e7b1['value'])return void _0x41c29c['execute']('paragraph',{});const _0x18258f=_0x1ffe5a['slice'](0x0,-0x4),_0x585e10=function(_0x883368,_0x10ce3f,_0x1c4810){let _0x575fa6=Array['from'](_0x883368)['filter'](_0x30549f=>function(_0x437344,_0xd26d8c){return _0xd26d8c['checkChild'](_0x437344['parent'],'listItem')&&!_0xd26d8c['isObject'](_0x437344);}(_0x30549f,_0x1c4810));_0x575fa6=_0x575fa6['filter'](_0x2fe7d9=>!_0x2fe7d9['is']('element','listItem')||_0x2fe7d9['getAttribute']('listType')!=_0x10ce3f);const _0x3f48c0=new Set();for(const _0x5229ec of _0x575fa6)_0x5229ec['is']('element','listItem')?_0x3f48c0['add'](St(_0x5229ec)):_0x3f48c0['add'](_0x5229ec);return Array['from'](_0x3f48c0);}(_0x55efa1['getSelectedBlocks'](),_0x18258f,_0x41c29c['model']['schema']);_0x41c29c['model']['change'](()=>{for(const _0x5336db of _0x585e10)_0x1d683a['markBlockFormat'](_0x5336db,{'commandName':_0x1ffe5a,'commandParams':[{'forceValue':!_0x45e7b1['value']}],'formatGroupId':'blockName'},yt(_0x5336db));});};}function _0x47438c(_0x9af66a){return()=>{const _0x1823d4=function(_0x221333){let _0x3fb432=Array['from'](_0x221333);const _0x9b2a9a=_0x3fb432['findIndex'](_0x485775=>'listItem'!=_0x485775['name']);return _0x9b2a9a>-0x1&&(_0x3fb432=_0x3fb432['slice'](0x0,_0x9b2a9a)),_0x3fb432;}(_0x41c29c['model']['document']['selection']['getSelectedBlocks']()),_0x45ecde=_0x41c29c['model']['createRange'](_0x41c29c['model']['createPositionAt'](_0x1823d4[0x0],'before'),_0x41c29c['model']['createPositionAt'](_0x1823d4[_0x1823d4['length']-0x1],'end'));_0x41c29c['model']['change'](()=>{_0x1d683a['markBlockFormat'](_0x45ecde,{'commandName':_0x9af66a,'commandParams':[],'formatGroupId':'listIndent'},function(_0x156f62){const _0x285172=new Set();for(const _0x30722b of _0x156f62){let _0x5644bc=_0x30722b['nextSibling'];for(;_0x5644bc&&_0x5644bc['getAttribute']('listIndent')>_0x30722b['getAttribute']('listIndent');)_0x285172['add'](_0x5644bc),_0x5644bc=_0x5644bc['nextSibling'];}return Array['from'](_0x285172);}(_0x1823d4));});};}_0x1d683a['enableCommand']('numberedList',_0x37f9df('numberedList')),_0x1d683a['enableCommand']('bulletedList',_0x37f9df('bulletedList')),_0x3c502b&&_0x1d683a['enableCommand']('todoList',_0x37f9df('todoList')),_0x1d683a['enableCommand']('indentList',_0x47438c('indentList')),_0x1d683a['enableCommand']('outdentList',_0x47438c('outdentList')),_0x3c502b&&_0x1d683a['enableCommand']('checkTodoList',()=>{const _0x5755b0=_0x41c29c['commands']['get']('checkTodoList'),_0x3354d9=Array['from'](_0x5755b0['_selectedElements']);_0x3354d9['filter'](_0x2bdf1e=>_0x2bdf1e['getAttribute']('todoListChecked')!=_0x5755b0['value']),_0x41c29c['model']['change'](()=>{for(const _0x1e2bd3 of _0x3354d9)_0x1d683a['markBlockFormat'](_0x1e2bd3,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5755b0['value']}]});});}),_0x1d683a['descriptionFactory']['registerElementLabel']('listItem',_0x2f6ea1=>Tt(_0x3e5f17,'ELEMENT_LIST_ITEM',_0x2f6ea1)),_0x1d683a['descriptionFactory']['registerDescriptionCallback'](_0x150e4b=>{if('formatBlock'!=_0x150e4b['type']&&'formatInline'!=_0x150e4b['type'])return;const {data:_0x4614d5}=_0x150e4b;if(_0x4614d5){if('numberedList'==_0x4614d5['commandName']||'bulletedList'==_0x4614d5['commandName']||'todoList'==_0x4614d5['commandName'])switch(_0x4614d5['commandName']['replace']('List','')){case'bulleted':return _0x28c6e5(Tt(_0x3e5f17,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x28c6e5(Tt(_0x3e5f17,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x28c6e5(Tt(_0x3e5f17,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4614d5['commandName'])return{'type':'format','content':Tt(_0x3e5f17,'*Indent:*\x20%0',Tt(_0x3e5f17,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4614d5['commandName'])return{'type':'format','content':Tt(_0x3e5f17,'*Outdent:*\x20%0',Tt(_0x3e5f17,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4614d5['commandName'])return _0x4614d5['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x3e5f17,'*Check\x20item*')}:{'type':'format','content':Tt(_0x3e5f17,'*Uncheck\x20item*')};}function _0x28c6e5(_0x2c4d13){return{'type':'format','content':Tt(_0x3e5f17,'*Change\x20to:*\x20%0',_0x2c4d13)};}});}}function St(_0x10a52d){const _0x6f740e=_0x10a52d['getAttribute']('listIndent');if(0x0==_0x6f740e)return _0x10a52d;let _0x266108=_0x10a52d;for(;_0x10a52d['previousSibling']&&_0x10a52d['previousSibling']['is']('element','listItem');){const _0xad7870=_0x10a52d['previousSibling']['getAttribute']('listIndent');if(_0xad7870==_0x6f740e)_0x266108=_0x10a52d['previousSibling'];else{if(_0xad7870<_0x6f740e)break;}_0x10a52d=_0x10a52d['previousSibling'];}return _0x266108;}function yt(_0x93d4f9){const _0xb97dfc=[];if(_0x93d4f9['is']('element','listItem')&&_0x93d4f9['getAttribute']('listIndent')>0x0){let _0xb9fd22=_0x93d4f9['nextSibling'];for(;_0xb9fd22&&'listItem'==_0xb9fd22['name']&&_0xb9fd22['getAttribute']('listIndent')==_0x93d4f9['getAttribute']('listIndent');)_0xb97dfc['push'](_0xb9fd22),_0xb9fd22=_0xb9fd22['nextSibling'];}return _0xb97dfc;}class TrackChangesLegacyListProperties extends _0x3000a5{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1a98ce=this['editor']['config']['get']('list.properties'),_0x4021e2=this['editor']['plugins']['get']('TrackChangesEditing');_0x1a98ce['styles']&&_0x4021e2['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1a98ce['reversed']&&_0x4021e2['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1a98ce['startIndex']&&_0x4021e2['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4021e2['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xfe8f10,_0xed927d={}){const _0x1ac0c0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x434477=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1ac0c0['markMultiRangeBlockFormat'](_0x434477,{'commandName':'listStyle','commandParams':[{'type':_0xed927d['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1e1beb,_0x2c84fe={}){const _0x3cfc40=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b9d4e=this['_getSuggestionBlocks'](_0x46586f=>_0x46586f['is']('element','listItem')&&'numbered'===_0x46586f['getAttribute']('listType'));if(_0x1b9d4e['length']<0x1)return;const _0x4b006a=_0x1b9d4e['map'](_0x185d3c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x185d3c,'before'),this['editor']['model']['createPositionAt'](_0x185d3c,0x0)));this['editor']['model']['change'](()=>{_0x3cfc40['markMultiRangeBlockFormat'](_0x4b006a,{'commandName':'listReversed','commandParams':[{'reversed':_0x2c84fe['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x597efb,_0x904e83={}){const _0x34e251=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2434ce=this['_getSuggestionBlocks'](_0x51f734=>_0x51f734['is']('element','listItem')&&'numbered'===_0x51f734['getAttribute']('listType'));if(_0x2434ce['length']<0x1)return;const _0x35d0df=_0x2434ce['map'](_0x4dcc5d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4dcc5d,'before'),this['editor']['model']['createPositionAt'](_0x4dcc5d,0x0)));this['editor']['model']['change'](()=>{_0x34e251['markMultiRangeBlockFormat'](_0x35d0df,{'commandName':'listStart','commandParams':[{'startIndex':_0x904e83['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3a2752){if('formatBlock'!=_0x3a2752['type']&&'formatInline'!=_0x3a2752['type'])return;const _0x14539e=this['editor']['locale'],{data:_0x33dede}=_0x3a2752;if(!_0x33dede)return;let _0x47ab8a,_0x40b631;switch(_0x33dede['commandName']){case'listStyle':_0x47ab8a='*Change\x20to:*\x20%0',_0x40b631={'type':'format','content':Tt(_0x14539e,_0x47ab8a,Tt(_0x14539e,this['_getTranslationKeyForListStyle'](_0x33dede['commandParams'][0x0]['type'])))};break;case'listReversed':_0x47ab8a=_0x33dede['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x40b631={'type':'format','content':Tt(_0x14539e,_0x47ab8a)};break;case'listStart':_0x47ab8a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x40b631={'type':'format','content':Tt(_0x14539e,_0x47ab8a,_0x33dede['commandParams'][0x0]['startIndex'])};}return _0x40b631;}['_getSuggestionBlocksForListStyle'](){const _0x547076=this['editor']['plugins']['get']('LegacyListUtils');let _0x257813=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x257813[0x0]?.['is']('element','listItem')&&_0x257813['unshift'](..._0x547076['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x257813[_0x257813['length']-0x1]?.['is']('element','listItem')&&_0x257813['push'](..._0x547076['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x257813=[...new Set(_0x257813)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x257813=_0x257813['filter'](_0x42bf22=>_0x42bf22['is']('element','listItem'))),_0x257813;}['_getSuggestionBlocks'](_0x308055){const _0x14254b=this['editor']['plugins']['get']('LegacyListUtils');let _0x3803bd=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x308055)['map'](_0x726160=>{const _0x9ff38a=this['editor']['model']['createPositionAt'](_0x726160,0x0);return[..._0x14254b['getSiblingNodes'](_0x9ff38a,'backward'),..._0x14254b['getSiblingNodes'](_0x9ff38a,'forward')];})['flat']();return _0x3803bd=[...new Set(_0x3803bd)],_0x3803bd;}['_getTranslationKeyForListStyle'](_0xe5da09){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0xe5da09)||'default')['toUpperCase']()+'_LIST_'+_0xe5da09['toUpperCase']()['replace'](/-/g,'_');}}class TrackChangesMediaEmbed extends _0x3000a5{['afterInit'](){const _0x497d72=this['editor'];if(!_0x497d72['plugins']['has']('MediaEmbedEditing'))return;const _0x39e86a=_0x497d72['plugins']['get']('TrackChangesEditing'),_0x577b8c=_0x497d72['locale'];_0x39e86a['enableCommand']('mediaEmbed'),_0x39e86a['descriptionFactory']['registerElementLabel']('media',_0x4fbd83=>Tt(_0x577b8c,'ELEMENT_MEDIA',_0x4fbd83));}}class TrackChangesMention extends _0x3000a5{['afterInit'](){const _0x1f2198=this['editor'];_0x1f2198['plugins']['has']('MentionEditing')&&_0x1f2198['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class TrackChangesMergeFields extends _0x3000a5{['afterInit'](){const _0x215661=this['editor'];if(!_0x215661['plugins']['has']('MergeFieldsEditing'))return;const _0x21c873=_0x215661['plugins']['get']('TrackChangesEditing'),_0x38e706=_0x215661['locale'];_0x21c873['enableCommand']('insertMergeField'),_0x21c873['enableCommand']('insertMergeFieldBlock'),_0x21c873['enableCommand']('insertMergeFieldImage'),_0x21c873['descriptionFactory']['registerElementLabel']('mergeField',_0x14538e=>Tt(_0x38e706,'ELEMENT_MERGE_FIELD',_0x14538e)),_0x21c873['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2e9bee=>Tt(_0x38e706,'ELEMENT_MERGE_FIELD',_0x2e9bee)),_0x21c873['descriptionFactory']['registerDescriptionCallback'](_0x59eef7=>{if('insertion'!=_0x59eef7['type']&&'deletion'!=_0x59eef7['type'])return;const _0x2b73af=_0x59eef7['getContainedElement']();if(null==_0x2b73af)return;const _0x31bbe2=_0x215661['plugins']['get']('MergeFieldsEditing');let _0x154add;switch(_0x31bbe2['getMergeFieldType'](_0x2b73af)){case null:return;case'image':{const _0x119328=_0x31bbe2['unwrapAffixes'](_0x2b73af['getAttribute']('src'));_0x154add=_0x31bbe2['getLabel'](_0x119328)||_0x119328;break;}default:{const _0x211c15=_0x2b73af['getAttribute']('id');_0x154add=_0x31bbe2['getLabel'](_0x211c15)||_0x211c15;break;}}return'insertion'==_0x59eef7['type']?{'type':'insertion','content':Tt(_0x38e706,'*Insert:*\x20%0','\x22'+_0x154add+'\x22\x20'+Tt(_0x38e706,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Tt(_0x38e706,'*Remove:*\x20%0','\x22'+_0x154add+'\x22\x20'+Tt(_0x38e706,'ELEMENT_MERGE_FIELD'))};});}}class TrackChangesMultiLevelList extends _0x3000a5{['afterInit'](){const _0x4eb965=this['editor'],_0x3fb630=_0x4eb965['plugins']['get']('TrackChangesEditing');_0x4eb965['plugins']['has']('MultiLevelList')&&(_0x3fb630['enableDefaultAttributesIntegration']('multiLevelList'),_0x3fb630['descriptionFactory']['registerDescriptionCallback'](_0x2b47fd=>this['handleDescriptions'](_0x2b47fd)));}['handleDescriptions'](_0x47c6a9){const _0x45e398=this['editor']['locale'],{data:_0x56b6df}=_0x47c6a9,_0x2098d5={'type':'format','content':''};if(_0x56b6df&&'listMarkerStyle'==_0x56b6df['key']){if(!_0x56b6df['oldValue'])return{'type':'format','content':Tt(_0x45e398,'*Set\x20format:*\x20%0',Tt(_0x45e398,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x56b6df['newValue']+')'};if(!_0x56b6df['newValue']){let _0x48b277=_0x47c6a9['head'];for(;_0x48b277;){if(_0x48b277['data']&&'listType'==_0x48b277['data']['key']&&_0x48b277['data']['newValue'])return _0x2098d5;_0x48b277=_0x48b277['next'];}return{'type':'format','content':Tt(_0x45e398,'*Remove\x20format:*\x20%0',Tt(_0x45e398,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x56b6df['oldValue']+')'};}}}}class TrackChangesPageBreak extends _0x3000a5{['afterInit'](){const _0x9ee972=this['editor'];if(!_0x9ee972['plugins']['has']('PageBreakEditing'))return;_0x9ee972['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xc2cc36=_0x9ee972['plugins']['get']('TrackChangesEditing'),_0xb8c1cd=_0x9ee972['locale'];_0xc2cc36['descriptionFactory']['registerElementLabel']('pageBreak',_0x4f4693=>Tt(_0xb8c1cd,'ELEMENT_PAGE_BREAK',_0x4f4693));}}class TrackChangesParagraph extends _0x3000a5{['afterInit'](){const _0x444308=this['editor'];if(!_0x444308['plugins']['has']('Paragraph'))return;const _0x310ee3=_0x444308['locale'],_0x5cf220=_0x444308['plugins']['get']('TrackChangesEditing');_0x5cf220['descriptionFactory']['registerElementLabel']('paragraph',_0x5d3ef0=>Tt(_0x310ee3,'ELEMENT_PARAGRAPH',_0x5d3ef0)),_0x5cf220['enableDefaultAttributesIntegration']('paragraph'),_0x5cf220['enableCommand']('insertParagraph');const _0x943f2b=_0x5cf220['descriptionFactory'];_0x943f2b['registerDescriptionCallback'](_0x2bb270=>{if('insertion'!==_0x2bb270['type'])return;const {start:_0x27ddc0,end:_0x4974a9}=_0x2bb270['getFirstRange']();if(!_0x27ddc0['isTouching'](_0x4974a9)||!_0x27ddc0['nodeAfter'])return;const _0x2cabdd=_0x444308['model']['schema'],_0x4f965f=_0x27ddc0['nodeAfter'];return _0x2cabdd['isBlock'](_0x4f965f)&&!_0x2cabdd['isLimit'](_0x4f965f)&&_0x2cabdd['checkChild'](_0x4f965f,'$text')?{'type':'insertion','content':Tt(_0x310ee3,'*Insert:*\x20%0',_0x943f2b['getItemLabel'](_0x4f965f,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x142eb3=this['editor'],_0x1fd70b=_0x142eb3['locale'];_0x142eb3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16c730=>{if('formatBlock'!=_0x16c730['type'])return;const {data:_0x1fbffe}=_0x16c730;return _0x1fbffe&&'paragraph'==_0x1fbffe['commandName']?{'type':'format','content':Tt(_0x1fd70b,'*Change\x20to:*\x20%0',Tt(_0x1fd70b,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class TrackChangesReplaceSourceCommand extends _0x3000a5{['afterInit'](){const _0x3f257e=this['editor'];_0x3f257e['commands']['get']('replaceSource')&&_0x3f257e['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class TrackChangesRemoveFormat extends _0x3000a5{['afterInit'](){const _0x258bba=this['editor'];if(!_0x258bba['plugins']['has']('RemoveFormatEditing'))return;_0x258bba['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3af7c1=this['editor'];_0x3af7c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d0a82=>{if('formatBlock'!=_0x3d0a82['type']&&'formatInline'!=_0x3d0a82['type'])return;const {data:_0x1e8318}=_0x3d0a82;return _0x1e8318&&'removeFormat'==_0x1e8318['commandName']?{'type':'format','content':Tt(_0x3af7c1['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class TrackChangesRestrictedEditingMode extends _0x3000a5{['afterInit'](){const _0x5d928d=this['editor'];if(!_0x5d928d['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1cc135=_0x5d928d['plugins']['get']('TrackChangesEditing');_0x1cc135['enableCommand']('goToPreviousRestrictedEditingException'),_0x1cc135['enableCommand']('goToNextRestrictedEditingException');const _0x151ec1=_0x5d928d['plugins']['get']('RestrictedEditingModeEditing');_0x151ec1['enableCommand']('trackChanges'),_0x151ec1['enableCommand']('acceptSuggestion'),_0x151ec1['enableCommand']('discardSuggestion'),_0x151ec1['enableCommand']('acceptAllSuggestions'),_0x151ec1['enableCommand']('discardAllSuggestions'),_0x151ec1['enableCommand']('acceptSelectedSuggestions'),_0x151ec1['enableCommand']('discardSelectedSuggestions');}}class TrackChangesShiftEnterCommand extends _0x3000a5{['afterInit'](){const _0x517755=this['editor'];if(!_0x517755['plugins']['has']('ShiftEnter'))return;const _0x4f0a63=_0x517755['plugins']['get']('TrackChangesEditing');_0x4f0a63['enableCommand']('shiftEnter'),_0x4f0a63['descriptionFactory']['registerElementLabel']('softBreak',_0x46e0c1=>Tt(_0x517755['locale'],'ELEMENT_LINE_BREAK',_0x46e0c1));}}function Rt(_0x1cc7e7,_0x307ede,_0x1eb9ec){const _0x5f503b=[];for(const _0x452b00 of _0x307ede['getItems']())_0x452b00['hasAttribute'](_0x1cc7e7)&&_0x5f503b['push'](_0x1eb9ec['createRangeOn'](_0x452b00));return _0x5f503b;}class TrackChangesStandardEditingMode extends _0x3000a5{['afterInit'](){const _0x5b9749=this['editor'],_0xc1a859=_0x5b9749['plugins']['get']('TrackChangesEditing');_0x5b9749['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0xc1a859['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x5b278e=this['editor'],_0x3dd637=_0x5b278e['model'],_0x2ac8ac=_0x5b278e['locale'],_0x37f759=_0x5b278e['plugins']['get']('TrackChangesEditing'),_0x2f33e6='restrictedEditingException',_0x51c1fe=_0x5b278e['commands']['get'](_0x2f33e6);_0x37f759['enableCommand'](_0x2f33e6,(_0x55524d,_0x5c856c={})=>{const _0x58dcad=_0x3dd637['document']['selection'];if(_0x58dcad['isCollapsed'])return void _0x55524d(_0x5c856c);const _0x1b6057=void 0x0!==_0x5c856c['forceValue']?_0x5c856c['forceValue']:!_0x51c1fe['value'];_0x3dd637['change'](()=>{const _0x2ee769=Array['from'](_0x58dcad['getRanges']());for(const _0x253744 of _0x2ee769){const _0x1cd5b4=_0x1b6057?[_0x253744]:Rt(_0x2f33e6,_0x253744,_0x3dd637);for(const _0xd716a6 of _0x1cd5b4)_0x37f759['markInlineFormat'](_0xd716a6,{'commandName':_0x2f33e6,'commandParams':[{'forceValue':_0x1b6057}]});}});}),_0x37f759['descriptionFactory']['registerDescriptionCallback'](_0xe849aa=>{if('formatBlock'!=_0xe849aa['type']&&'formatInline'!=_0xe849aa['type'])return;const {data:_0x11401c}=_0xe849aa;return _0x11401c&&_0x11401c['commandName']==_0x2f33e6?_0x11401c['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x2ac8ac,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Tt(_0x2ac8ac,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x511587=this['editor'],_0x3e14ba=_0x511587['locale'],_0xfdc499=_0x511587['plugins']['get']('TrackChangesEditing'),_0x57401f='restrictedEditingExceptionBlock',_0x10f26c=this['editor']['commands']['get'](_0x57401f);_0xfdc499['enableCommand'](_0x57401f,(_0x559cf2,_0x2584ff={})=>{const _0xd21e8d=this['editor']['model']['document']['selection'],_0x1902f9=_0x2584ff&&void 0x0!==_0x2584ff['forceValue']?_0x2584ff['forceValue']:!_0x10f26c['value'];let _0x18b303=[];if(_0x1902f9){const _0xf9ffbe=Array['from'](_0xd21e8d['getSelectedBlocks']())['filter'](_0x36eb69=>function(_0x127692){return!!_0x127692['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x36eb69)||function(_0x2e88c2,_0x48980f){const _0x40adf0=_0x48980f['createContext'](_0x2e88c2['parent']);if(!_0x48980f['checkChild'](_0x40adf0,'restrictedEditingException'))return!0x1;if(!_0x48980f['checkChild'](_0x40adf0['push']('restrictedEditingException'),_0x2e88c2))return!0x1;return!0x0;}(_0x36eb69,this['editor']['model']['schema']));_0x18b303=ft(_0xf9ffbe,_0x511587['model']);}else{const _0x2a41bc=Array['from'](_0xd21e8d['getSelectedBlocks']())['map'](_0x229ced=>function(_0x41889f){let _0x21dbf2=_0x41889f;for(;_0x21dbf2['parent'];){if('restrictedEditingException'==_0x21dbf2['parent']['name'])return _0x21dbf2;_0x21dbf2=_0x21dbf2['parent'];}return null;}(_0x229ced))['filter'](_0x244bfc=>!!_0x244bfc);_0x18b303=ft(_0x2a41bc,_0x511587['model']);}_0x511587['model']['change'](()=>{for(const _0x5106ae of _0x18b303)_0xfdc499['markBlockFormat'](_0x5106ae,{'commandName':_0x57401f,'commandParams':[{'forceValue':_0x1902f9}]});});}),_0xfdc499['descriptionFactory']['registerDescriptionCallback'](_0x2ce367=>{const {data:_0xfc445}=_0x2ce367;if(_0xfc445&&_0xfc445['commandName']==_0x57401f)return _0xfc445['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x3e14ba,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Tt(_0x3e14ba,'FORMAT_RESTRICTED_DISABLED')};});}}class TrackChangesStylesDropdown extends _0x3000a5{['afterInit'](){const _0x2613b8=this['editor'];if(!_0x2613b8['plugins']['has']('Style')||!_0x2613b8['plugins']['has']('DataSchema'))return;const _0x4cf3c8=_0x2613b8['plugins']['get']('TrackChangesEditing'),_0x2e3efb=_0x2613b8['locale'],_0xe53009=_0x2613b8['config']['get']('style')||{},_0x2ba24b=_0x2613b8['plugins']['get']('GeneralHtmlSupport'),_0x4653fa=_0x2613b8['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2613b8['plugins']['get']('DataSchema'),_0xe53009['definitions']);_0x4cf3c8['enableDefaultAttributesIntegration']('style');const _0x9cd26=new Set();for(const _0x493c24 of _0x4653fa['block']){const _0xbf35fb=_0x2ba24b['getGhsAttributeNameForElement'](_0x493c24['element']);_0x9cd26['add'](_0xbf35fb);}const _0x4ccbf3=new Set();for(const _0x568f7c of _0x4653fa['inline']){const _0x3a7cda=_0x2ba24b['getGhsAttributeNameForElement'](_0x568f7c['element']);_0x4ccbf3['add'](_0x3a7cda);for(const _0x114761 of _0x568f7c['ghsAttributes'])_0x4ccbf3['add'](_0x114761);}for(const _0x501dba of _0x9cd26)_0x4cf3c8['descriptionFactory']['registerAttributeLabel'](_0x501dba,Tt(_0x2e3efb,'FORMAT_STYLE'));for(const _0x2804f2 of _0x4ccbf3)_0x4cf3c8['descriptionFactory']['registerAttributeLabel'](_0x2804f2,Tt(_0x2e3efb,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24fd43=this['editor'],_0x4c5d82=_0x24fd43['locale'];_0x24fd43['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x53450f=>{if('formatBlock'!=_0x53450f['type']&&'formatInline'!=_0x53450f['type'])return;const {data:_0x45ce7d}=_0x53450f;return _0x45ce7d&&'style'===_0x45ce7d['commandName']?_0x45ce7d['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x4c5d82,'*Set\x20format:*\x20%0',_0x45ce7d['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Tt(_0x4c5d82,'*Remove\x20format:*\x20%0',_0x45ce7d['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class TrackChangesTable extends _0x3000a5{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3114af){super(_0x3114af),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x37aa5b=this['editor'],_0x2413af=_0x37aa5b['model']['document']['selection'];if(!_0x37aa5b['plugins']['has']('TableEditing'))return;const _0x3a6532=_0x37aa5b['locale'],_0x4bfc04=_0x37aa5b['plugins']['get']('TrackChangesEditing'),_0x5abea7=_0x37aa5b['plugins']['get']('TableUtils');_0x4bfc04['descriptionFactory']['registerElementLabel']('table',_0x58c671=>Tt(_0x3a6532,'ELEMENT_TABLE',_0x58c671)),this['_setupColumnsRowsFixing'](),_0x4bfc04['enableCommand']('insertTable'),_0x4bfc04['enableCommand']('selectTableRow'),_0x4bfc04['enableCommand']('selectTableColumn');for(const _0x52fe0a of['insertTableRowAbove','insertTableRowBelow']){const _0xba4d82=_0x37aa5b['commands']['get'](_0x52fe0a);_0x4bfc04['enableCommand'](_0x52fe0a,_0x17dcf5=>{_0x37aa5b['model']['change'](_0x155e64=>{_0x17dcf5();const _0x90fe2e='above'===_0xba4d82['order'],_0x313fa1=_0x5abea7['getSelectionAffectedTableCells'](_0x2413af),_0xb6e077=_0x5abea7['getRowIndexes'](_0x313fa1),_0x1c1860=_0x90fe2e?_0xb6e077['first']-0x1:_0xb6e077['last']+0x1,_0x11299f=_0x313fa1[0x0]['findAncestor']('table'),_0x51df97=_0x5abea7['createTableWalker'](_0x11299f,{'startRow':_0x1c1860,'endRow':_0x1c1860}),_0x1c024b=Array['from'](_0x51df97)['map'](_0x4cd165=>_0x155e64['createRangeOn'](_0x4cd165['cell']));_0x4bfc04['markMultiRangeInsertion'](_0x1c024b,'tableRow');});});}for(const _0xd3b1be of['insertTableColumnLeft','insertTableColumnRight']){const _0x2c6250=_0x37aa5b['commands']['get'](_0xd3b1be);_0x4bfc04['enableCommand'](_0xd3b1be,_0x118170=>{_0x37aa5b['model']['change'](_0xd4981=>{_0x118170();const _0xbfc3b6='left'===_0x2c6250['order'],_0x1b6da6=_0x5abea7['getSelectionAffectedTableCells'](_0x2413af),_0x33fb97=_0x5abea7['getColumnIndexes'](_0x1b6da6),_0x3deb3b=_0xbfc3b6?_0x33fb97['first']-0x1:_0x33fb97['last']+0x1,_0x174d2e=_0x1b6da6[0x0]['findAncestor']('table'),_0x32c4c7=_0x5abea7['createTableWalker'](_0x174d2e,{'startRow':0x0,'column':_0x3deb3b,'includeAllSlots':!0x1}),_0xa71f51=Array['from'](_0x32c4c7)['map'](_0x500f95=>_0xd4981['createRangeOn'](_0x500f95['cell']));_0x4bfc04['markMultiRangeInsertion'](_0xa71f51,'tableColumn');});});}for(const _0x1202b9 of['removeTableRow','removeTableColumn']){const _0x51820e=_0x1202b9['substr'](0xb),_0x5df66d=_0x51820e['toLowerCase'](),_0x4729f2=_0x5df66d['substr'](0x0,0x3)+'span',_0x563347='table'+_0x51820e,_0x487650='min'+_0x51820e,_0x3b7cae='max'+_0x51820e;_0x4bfc04['enableCommand'](_0x1202b9,()=>{_0x37aa5b['model']['change'](_0x4c7edf=>{const _0x57be59=_0x5abea7['getSelectionAffectedTableCells'](_0x2413af),_0x52ef91=_0x57be59[0x0]['findAncestor']('table');let _0x416ad0;if('removeTableRow'==_0x1202b9){const _0xf129ca=_0x5abea7['getRowIndexes'](_0x57be59);_0x416ad0={'startRow':_0xf129ca['first'],'endRow':_0xf129ca['last'],'includeAllSlots':!0x0};}else{const _0x11c506=_0x5abea7['getColumnIndexes'](_0x57be59);_0x416ad0={'startColumn':_0x11c506['first'],'endColumn':_0x11c506['last'],'includeAllSlots':!0x0};}const _0x4bb20f=_0x5abea7['createTableWalker'](_0x52ef91,_0x416ad0),_0x38e3f5=Array['from'](_0x4bb20f)['map'](({cell:_0x56642c})=>_0x56642c),_0x513744=Nt(_0x38e3f5['filter'](_0x2fa071=>_0x2fa071['hasAttribute'](_0x4729f2))),_0x5e0992=Nt(_0x38e3f5['filter'](_0x82b118=>!_0x82b118['hasAttribute'](_0x4729f2)))['map'](_0x26f9c2=>_0x4c7edf['createRangeOn'](_0x26f9c2)),_0x2caf7f=_0x4bfc04['markMultiRangeDeletion'](_0x5e0992,_0x563347);if(_0x2caf7f&&('tableRow'==_0x2caf7f['subType']||'tableColumn'==_0x2caf7f['subType'])){const _0x391c87=this['_getSuggestionCoords'](_0x2caf7f);for(const _0x287df8 of _0x513744){const _0x3dbe90=_0x4c7edf['createRangeOn'](_0x287df8),_0x563b63=_0x5abea7['getCellLocation'](_0x287df8),_0x3a1e39=_0x287df8['getAttribute'](_0x4729f2)-0x1,_0x5e22d9=_0x391c87[_0x487650],_0xfb4165=_0x391c87[_0x3b7cae];_0x5e22d9<=_0x563b63[_0x5df66d]&&_0x563b63[_0x5df66d]+_0x3a1e39<=_0xfb4165&&_0x2caf7f['addRange'](_0x3dbe90);}}});});}function _0x2039b2(_0x459ff8){const _0x5912d3=Array['from'](_0x2413af['getRanges']())['map'](_0x5c1174=>_0x2192a8['fromRange'](_0x5c1174));_0x37aa5b['model']['change'](_0x1d162e=>{const _0x3e7833=_0x1d162e['batch'];_0x459ff8=_0x459ff8['filter'](_0x33dcfa=>'$graveyard'!=_0x33dcfa['root']['rootName']),_0x1d162e['setSelection'](_0x459ff8),_0x37aa5b['commands']['get']('removeTableRow')['refresh'](),_0x37aa5b['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x37aa5b['model']['enqueueChange'](()=>{_0x37aa5b['model']['enqueueChange'](_0x3e7833,_0x3977a3=>{const _0x4e6a86=_0x5912d3['filter'](_0x223fa2=>'$graveyard'!=_0x223fa2['root']['rootName']);_0x4e6a86['length']>0x0&&_0x3977a3['setSelection'](_0x4e6a86);for(const _0x362fb4 of _0x5912d3)_0x362fb4['detach']();});});});}function _0x1d5904(_0x344919){_0x37aa5b['model']['change'](_0x2f23d4=>{const _0x1308db=Array['from'](_0x2413af['getRanges']())['map'](_0x527f0f=>_0x2192a8['fromRange'](_0x527f0f)),_0x4f99bc=[];for(const _0x59fb4b of _0x344919)for(const _0x4e5ed9 of _0x59fb4b['getItems']({'shallow':!0x0}))_0x4f99bc['push'](_0x4e5ed9);for(const _0x382cb0 of _0x4f99bc)'$graveyard'!=_0x382cb0['root']['rootName']&&(_0x2f23d4['setSelection'](_0x2f23d4['createPositionAt'](_0x382cb0,0x0)),_0x37aa5b['commands']['get']('removeTableColumn')['refresh'](),_0x37aa5b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x21bec2=_0x1308db['filter'](_0x249666=>'$graveyard'!=_0x249666['root']['rootName']);_0x21bec2['length']>0x0&&_0x2f23d4['setSelection'](_0x21bec2);for(const _0xdde499 of _0x1308db)_0xdde499['detach']();});}function _0x1e2874(_0x114bda,_0x111e22){return _0x111e22['every'](_0xaa8786=>_0x114bda['some'](_0x5b9af5=>_0x5b9af5['end']['isEqual'](_0xaa8786['start'])||_0xaa8786['end']['isEqual'](_0x5b9af5['start'])));}function _0x59a481(_0x4a95bb,_0x47d6e8){return!_0x4a95bb['some'](_0x2bba19=>_0x47d6e8['some'](_0x1b8dc8=>_0x2bba19['isIntersecting'](_0x1b8dc8)))&&_0x4a95bb['some'](_0x2eecb5=>_0x47d6e8['some'](_0x3bef99=>_0x2eecb5['end']['isTouching'](_0x3bef99['start'])));}_0x4bfc04['descriptionFactory']['registerDescriptionCallback'](_0x1549fc=>{if('insertion'!=_0x1549fc['type']&&'deletion'!=_0x1549fc['type'])return;const _0x446c29=_0x1549fc['getContainedElement']();if(null!=_0x446c29&&_0x446c29['is']('element','table')){if('insertion'==_0x1549fc['type']){const _0x1fc55d=_0x1549fc['getItems']()['filter'](_0x16b32f=>_0x16b32f['is']('$textProxy'))['map'](_0x5963c0=>_0x5963c0['data']);if(_0x1fc55d['length'])return{'type':'insertion','content':Tt(_0x3a6532,'*Insert:*\x20%0',Tt(_0x3a6532,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1fc55d['join']('\x20')+'\x22'))};}if('deletion'==_0x1549fc['type']){const _0x3a79e8=_0x1549fc['getItems']()['filter'](_0xbc5472=>_0xbc5472['is']('$textProxy'))['map'](_0x5a707d=>_0x5a707d['data']);if(_0x3a79e8['length'])return{'type':'deletion','content':Tt(_0x3a6532,'*Remove:*\x20%0',Tt(_0x3a6532,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3a79e8['join']('\x20')+'\x22'))};}}}),_0x4bfc04['descriptionFactory']['registerDescriptionCallback'](_0x740ca5=>{if('tableRow'==_0x740ca5['subType']){const _0x2b11ca=_0x740ca5['getItems']()['filter'](_0x528c68=>_0x528c68['is']('$textProxy'))['map'](_0x49b6c7=>_0x49b6c7['data']),_0x27569e=this['_getSuggestionCoords'](_0x740ca5),_0x1be2ad=_0x27569e['maxRow']-_0x27569e['minRow']+0x1;if('insertion'==_0x740ca5['type'])return _0x2b11ca['length']?{'type':'insertion','content':Tt(_0x3a6532,'*Insert:*\x20%0',Tt(_0x3a6532,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1be2ad,'\x22'+_0x2b11ca['join']('\x20')+'\x22']))}:{'type':'insertion','content':Tt(_0x3a6532,'*Insert:*\x20%0',Tt(_0x3a6532,'ELEMENT_TABLE_ROW',_0x1be2ad))};if('deletion'==_0x740ca5['type'])return _0x2b11ca['length']?{'type':'deletion','content':Tt(_0x3a6532,'*Remove:*\x20%0',Tt(_0x3a6532,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1be2ad,'\x22'+_0x2b11ca['join']('\x20')+'\x22']))}:{'type':'deletion','content':Tt(_0x3a6532,'*Remove:*\x20%0',Tt(_0x3a6532,'ELEMENT_TABLE_ROW',_0x1be2ad))};}if('tableColumn'==_0x740ca5['subType']){const _0x52a8c9=_0x740ca5['getItems']()['filter'](_0x4bef2a=>_0x4bef2a['is']('$textProxy'))['map'](_0x47737a=>_0x47737a['data']),_0x1f970f=this['_getSuggestionCoords'](_0x740ca5),_0x3150d5=_0x1f970f['maxColumn']-_0x1f970f['minColumn']+0x1;if('insertion'==_0x740ca5['type'])return _0x52a8c9['length']?{'type':'insertion','content':Tt(_0x3a6532,'*Insert:*\x20%0',Tt(_0x3a6532,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3150d5,'\x22'+_0x52a8c9['join']('\x20')+'\x22']))}:{'type':'insertion','content':Tt(_0x3a6532,'*Insert:*\x20%0',Tt(_0x3a6532,'ELEMENT_TABLE_COLUMN',_0x3150d5))};if('deletion'==_0x740ca5['type'])return _0x52a8c9['length']?{'type':'deletion','content':Tt(_0x3a6532,'*Remove:*\x20%0',Tt(_0x3a6532,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3150d5,'\x22'+_0x52a8c9['join']('\x20')+'\x22']))}:{'type':'deletion','content':Tt(_0x3a6532,'*Remove:*\x20%0',Tt(_0x3a6532,'ELEMENT_TABLE_COLUMN',_0x3150d5))};}}),_0x4bfc04['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2039b2),_0x4bfc04['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2039b2),_0x4bfc04['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1d5904),_0x4bfc04['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1d5904),_0x4bfc04['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1e2874),_0x4bfc04['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1e2874),_0x4bfc04['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x59a481),_0x4bfc04['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x59a481);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4d1a9c=this['editor'],_0x379af0=_0x4d1a9c['model']['document']['selection'];return(_0x19e3e4,_0x53a547)=>{_0x4d1a9c['model']['change'](_0x53f385=>{const {commandName:_0x270332,commandParams:_0x5753a3}=_0x53a547;let _0x3b193d=_0x19e3e4[0x0]['end']['nodeBefore'];_0x5753a3&&_0x5753a3[0x0]&&!0x1===_0x5753a3[0x0]['forceValue']&&(_0x3b193d=_0x19e3e4[0x0]['start']['nodeAfter']);const _0x2344b1=_0x53f385['createRangeIn'](_0x3b193d);if('$graveyard'==_0x2344b1['root']['rootName'])return;const _0x40271b=Array['from'](_0x379af0['getRanges']())['map'](_0x2cef3a=>_0x2192a8['fromRange'](_0x2cef3a));_0x53f385['setSelection'](_0x2344b1),_0x4d1a9c['commands']['get'](_0x270332)['refresh'](),_0x5753a3['push']({'forceDefaultExecution':!0x0}),_0x4d1a9c['execute'](_0x270332,..._0x5753a3);const _0x243974=_0x40271b['filter'](_0x24b85f=>'$graveyard'!=_0x24b85f['root']['rootName']);_0x243974['length']>0x0&&_0x53f385['setSelection'](_0x243974);for(const _0x239763 of _0x40271b)_0x239763['detach']();});};}['_getCoordsForCells'](_0x5921a7){const _0xbb50f8=this['editor']['plugins']['get']('TableUtils');let _0x44dcd1=Number['MAX_SAFE_INTEGER'],_0xbfa339=Number['MIN_SAFE_INTEGER'],_0x5ae1e2=Number['MAX_SAFE_INTEGER'],_0x56ed31=Number['MIN_SAFE_INTEGER'];for(const _0x4c8b9a of _0x5921a7){if('$graveyard'==_0x4c8b9a['root']['rootName'])continue;const {row:_0x2dacec,column:_0x3b24fd}=_0xbb50f8['getCellLocation'](_0x4c8b9a),_0x3d312a=_0x4c8b9a['hasAttribute']('rowspan')?_0x4c8b9a['getAttribute']('rowspan')-0x1:0x0,_0x4bfde9=_0x4c8b9a['hasAttribute']('colspan')?_0x4c8b9a['getAttribute']('colspan')-0x1:0x0;_0x44dcd1=_0x2dacec<_0x44dcd1?_0x2dacec:_0x44dcd1,_0xbfa339=_0x2dacec+_0x3d312a>_0xbfa339?_0x2dacec+_0x3d312a:_0xbfa339,_0x5ae1e2=_0x3b24fd<_0x5ae1e2?_0x3b24fd:_0x5ae1e2,_0x56ed31=_0x3b24fd+_0x4bfde9>_0x56ed31?_0x3b24fd+_0x4bfde9:_0x56ed31;}return{'minRow':_0x44dcd1,'maxRow':_0xbfa339,'minColumn':_0x5ae1e2,'maxColumn':_0x56ed31};}['_setupColumnsRowsFixing'](){const _0x9d4fae=this['editor'],_0x1c7b73=_0x9d4fae['plugins']['get']('TrackChangesEditing'),_0x3302a0=_0x9d4fae['plugins']['get']('TableUtils');_0x9d4fae['model']['document']['on']('change:data',()=>{const _0x3129a7=Array['from'](_0x9d4fae['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5e2c0a,data:_0x39ec92}of _0x3129a7){const {group:_0x468ec3,id:_0x55ce67,subType:_0x11dec1}=_0x2522cc(_0x5e2c0a);if('suggestion'!=_0x468ec3)continue;if(null!=_0x39ec92['oldRange'])continue;const _0x24f4d1=_0x1c7b73['getSuggestion'](_0x55ce67);this['_tablePostFixingSubtypes']['includes'](_0x11dec1)&&this['_tableSuggestions']['add'](_0x24f4d1);}},{'priority':'low'});const _0x55c8ce=(_0x4a2091,_0x57f8ea)=>{let _0x18b91d=!0x1;const _0x5ccec6=_0x57f8ea['createRangeOn'](_0x4a2091),_0x5809f9=_0x4a2091['findAncestor']('table'),_0x321bd3=_0x3302a0['getCellLocation'](_0x4a2091);for(const _0x56a46b of this['_tableSuggestions']){const _0x4e4994=_0x56a46b['subType'],_0x582ea5=_0x4e4994['startsWith']('tablePaste'),_0x16a155=_0x4e4994['substr'](_0x582ea5?0xa:0x5),_0x3de5ee=_0x16a155['toLowerCase'](),_0x715b3d=_0x3de5ee['substr'](0x0,0x3)+'span',_0x39c457='min'+_0x16a155,_0x159aa7='max'+_0x16a155;if(!_0x56a46b['isInContent'])continue;if(_0x5809f9!=_0x56a46b['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x56a46b['isIntersectingWithRange'](_0x5ccec6))continue;const _0x2e7817=_0x4a2091['hasAttribute'](_0x715b3d)?_0x4a2091['getAttribute'](_0x715b3d)-0x1:0x0,_0x3ea331=this['_getSuggestionCoords'](_0x56a46b),_0x4a56cc=_0x3ea331[_0x39c457],_0x4bfe64=_0x3ea331[_0x159aa7];_0x4a56cc<=_0x321bd3[_0x3de5ee]&&_0x321bd3[_0x3de5ee]+_0x2e7817<=_0x4bfe64&&(_0x56a46b['addRange'](_0x5ccec6),_0x18b91d=!0x0);}return _0x18b91d;};_0x9d4fae['model']['document']['registerPostFixer'](_0xfe6bba=>{let _0x37b019=!0x1;for(const _0x295499 of _0x9d4fae['model']['document']['differ']['getChanges']())if('insert'==_0x295499['type']){if('tableRow'==_0x295499['name']){for(const _0x4d9111 of _0x295499['position']['nodeAfter']['getChildren']())_0x37b019=_0x37b019||_0x55c8ce(_0x4d9111,_0xfe6bba);}else'tableCell'==_0x295499['name']&&(_0x37b019=_0x37b019||_0x55c8ce(_0x295499['position']['nodeAfter'],_0xfe6bba));}return _0x37b019;});}['_getSuggestionCoords'](_0x4b5afe){return this['_getCoordsForCells'](_0x4b5afe['getRanges']()['map'](_0x9c2234=>_0x9c2234['start']['nodeAfter']));}}function Nt(_0x4930fd){return Array['from'](new Set(_0x4930fd)['values']());}class TrackChangesTableMergeSplit extends _0x3000a5{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x1f3d8f=this['editor'],_0x507994=_0x1f3d8f['model']['document']['selection'],_0xf97f82=_0x1f3d8f['locale'];if(!_0x1f3d8f['plugins']['has']('TableEditing'))return;const _0x109f74=_0x1f3d8f['plugins']['get']('TrackChangesEditing'),_0x322241=_0x1f3d8f['plugins']['get']('TableUtils'),_0x34557d=_0x1f3d8f['plugins']['get'](TrackChangesTable);_0x34557d['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x109f74['enableCommand']('mergeTableCells',()=>{const _0x4513ca=_0x322241['getSelectionAffectedTableCells'](_0x1f3d8f['model']['document']['selection']);_0x1f3d8f['model']['change'](()=>{_0x109f74['markMultiRangeBlockFormat'](_0x4513ca,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1f3d8f['commands']['get']('mergeTableCells')['on']('execute',(_0x5490a0,_0x1a7726)=>{_0x1f3d8f['commands']['get']('trackChanges')['value']&&(_0x1a7726['length']>0x0&&_0x1a7726[_0x1a7726['length']-0x1]&&_0x1a7726[_0x1a7726['length']-0x1]['forceDefaultExecution']||_0x109f74['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5490a0['stop']());},{'priority':'highest'});for(const _0x10e360 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x32c362=_0x1f3d8f['commands']['get'](_0x10e360);_0x109f74['enableCommand'](_0x10e360,()=>{const _0x49a639=_0x1f3d8f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3ea332=>_0x3ea332['is']('element','tableCell')),_0x4544e8=_0x32c362['value'];_0x1f3d8f['model']['change'](()=>{_0x109f74['markMultiRangeBlockFormat']([_0x49a639,_0x4544e8],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2eda45 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x462095=_0x1f3d8f['commands']['get'](_0x2eda45);_0x109f74['enableCommand'](_0x2eda45,()=>{const _0x28b999=_0x322241['getSelectionAffectedTableCells'](_0x1f3d8f['model']['document']['selection'])[0x0],_0x299e57=_0x28b999['findAncestor']('table'),{column:_0xc27cee,row:_0x30ea43}=_0x322241['getCellLocation'](_0x28b999);let _0x38246c=[];if('horizontally'==_0x462095['direction']){const _0x336dae=_0x322241['createTableWalker'](_0x299e57,{'startRow':_0x30ea43,'endRow':_0x30ea43,'includeAllSlots':!0x0});_0x38246c=Array['from'](_0x336dae)['map'](_0x5b6c36=>_0x5b6c36['cell']);}else{const _0x3d5de9=_0x322241['createTableWalker'](_0x299e57,{'column':_0xc27cee,'includeAllSlots':!0x0});_0x38246c=Array['from'](_0x3d5de9)['map'](_0x492bdf=>_0x492bdf['cell']);}_0x1f3d8f['model']['change'](_0x427abb=>{_0x109f74['markBlockFormat'](_0x427abb['createRangeOn'](_0x28b999),{'commandName':_0x2eda45,'commandParams':[]},_0x38246c,_0x2eda45);});});}_0x109f74['descriptionFactory']['registerDescriptionCallback'](_0x33f6d3=>{if('formatBlock'!=_0x33f6d3['type']&&'formatInline'!=_0x33f6d3['type'])return;const {data:_0x10a2f5}=_0x33f6d3;return _0x10a2f5&&'mergeTableCells'==_0x10a2f5['commandName']?{'type':'format','content':Tt(_0xf97f82,'*Merge\x20cells*')}:void 0x0;}),_0x109f74['descriptionFactory']['registerDescriptionCallback'](_0x20069b=>{if('formatBlock'!=_0x20069b['type']&&'formatInline'!=_0x20069b['type'])return;const {data:_0x666966}=_0x20069b;return _0x666966?'splitTableCellVertically'==_0x666966['commandName']?{'type':'format','content':Tt(_0xf97f82,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x666966['commandName']?{'type':'format','content':Tt(_0xf97f82,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3ccdab=_0x34557d['_acceptFormatSuggestionCallbackFactory']();for(const _0x1b9882 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x109f74['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1b9882,'accept',_0x3ccdab);for(const _0x313c99 of['splitTableCellVertically','splitTableCellHorizontally'])_0x109f74['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x313c99,'accept',_0x3ccdab);_0x109f74['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x558d7d=>{_0x1f3d8f['model']['change'](_0x1859eb=>{const _0x1a1600=Array['from'](_0x507994['getRanges']())['map'](_0x2bc59b=>_0x2192a8['fromRange'](_0x2bc59b));_0x1859eb['setSelection'](_0x558d7d),_0x1f3d8f['commands']['get']('mergeTableCells')['refresh'](),_0x1f3d8f['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2bf095=_0x1a1600['filter'](_0x31e3af=>'$graveyard'!=_0x31e3af['root']['rootName']);_0x2bf095['length']>0x0&&_0x1859eb['setSelection'](_0x2bf095);for(const _0x17d9c8 of _0x1a1600)_0x17d9c8['detach']();});});for(const _0x1bd4cb of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x8c04a6=_0x1f3d8f['commands']['get'](_0x1bd4cb);_0x8c04a6['on']('set:isEnabled',(_0x35ca56,_0x27f541,_0x3aefa7)=>{if(_0x3aefa7){const _0x38e271=_0x1f3d8f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x952fb7=>_0x952fb7['is']('element','tableCell'));this['_areMergableCells'](_0x8c04a6['value'],_0x38e271)||(_0x35ca56['return']=!0x1,_0x35ca56['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x24f4a7=this['editor']['commands']['get']('mergeTableCells'),_0x5b2e4c=this['editor']['plugins']['get']('TableUtils');if(!_0x24f4a7['isEnabled'])return!0x1;const _0x21524d=_0x5b2e4c['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x33c847 of _0x21524d)for(const _0x585684 of _0x21524d)if(_0x33c847!=_0x585684&&!this['_areMergableCells'](_0x33c847,_0x585684))return!0x1;return!0x0;}['_areMergableCells'](_0xbe7c14,_0x4803ac){const _0x8a6753=this['editor']['plugins']['get']('TrackChangesEditing'),_0x11e825=this['editor']['model']['createRangeOn'](_0xbe7c14),_0x20c1fe=this['editor']['model']['createRangeOn'](_0x4803ac),_0xd11de2=new Set(),_0x1a40c4=new Set();for(const _0x286c96 of _0x8a6753['getSuggestions']())if(('insertion'==_0x286c96['type']||'deletion'==_0x286c96['type']||'mergeTableCells'==_0x286c96['subType'])&&_0x286c96['isInContent']){for(const _0x553bb1 of _0x286c96['getRanges']())_0x553bb1['containsRange'](_0x11e825,!0x0)&&_0xd11de2['add'](_0x286c96['type']+':'+_0x286c96['author']['id']),_0x553bb1['containsRange'](_0x20c1fe,!0x0)&&_0x1a40c4['add'](_0x286c96['type']+':'+_0x286c96['author']['id']);}if(_0xd11de2['size']!=_0x1a40c4['size'])return!0x1;for(const _0x2c2fd6 of _0xd11de2)if(!_0x1a40c4['has'](_0x2c2fd6))return!0x1;return!0x0;}}class TrackChangesTableHeadings extends _0x3000a5{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x41649c=this['editor'];if(!_0x41649c['plugins']['has']('TableEditing'))return;const _0x41f1dc=_0x41649c['locale'],_0x5759c4=_0x41649c['plugins']['get']('TrackChangesEditing');_0x5759c4['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5759c4['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5759c4['descriptionFactory']['registerAttributeLabel']('headingRows',Tt(_0x41f1dc,'FORMAT_HEADER_ROW')),_0x5759c4['descriptionFactory']['registerAttributeLabel']('headingColumns',Tt(_0x41f1dc,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4d03e9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x345678=this['editor']['plugins']['get'](TrackChangesTable)['_acceptFormatSuggestionCallbackFactory']();_0x4d03e9['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x345678),_0x4d03e9['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x345678),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x569b86=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4677c6=this['editor']['plugins']['get']('TableUtils');function _0x49a5c({showActiveMarker:_0x493999=!0x0,setDataAttribute:_0x4d7093=!0x0}={}){return(_0x15990f,_0x3fb4e2,_0x36e4ac)=>{const {type:_0x557a19,id:_0x2e7b7c}=_0x2522cc(_0x3fb4e2['markerName']);if(!_0x569b86['hasSuggestion'](_0x2e7b7c))return;const _0x32322d=_0x569b86['getSuggestion'](_0x2e7b7c),_0x208619=_0x32322d['data'];if('formatBlock'!=_0x32322d['type']||!_0x208619||'setTableColumnHeader'!=_0x208619['commandName'])return;if(_0x3fb4e2['item'])return void _0x15990f['stop']();if(!_0x36e4ac['consumable']['consume'](_0x3fb4e2['markerRange'],_0x15990f['name']))return;const _0x429699=_0x3fb4e2['markerRange']['start']['nodeAfter'],_0x3af0f2=_0x3fb4e2['markerRange']['end']['nodeBefore'],_0x4e8df3=_0x429699['parent']['parent'],{column:_0x4eea61}=_0x4677c6['getCellLocation'](_0x429699),{column:_0x3a40b4}=_0x4677c6['getCellLocation'](_0x3af0f2);for(let _0x137c8f=_0x4eea61;_0x137c8f<=_0x3a40b4;_0x137c8f++){const _0x58bcdb=_0x4677c6['createTableWalker'](_0x4e8df3,{'column':_0x137c8f,'includeAllSlots':!0x1});for(const _0x2fa837 of _0x58bcdb){const _0x3a4eca=_0x2fa837['cell'],_0x15c50a=_0x36e4ac['mapper']['toViewElement'](_0x3a4eca);_0x36e4ac['writer']['addClass']('ck-suggestion-marker-'+_0x557a19,_0x15c50a),_0x4d7093&&_0x36e4ac['writer']['setAttribute']('data-suggestion',_0x2e7b7c,_0x15c50a),_0x36e4ac['mapper']['bindElementToMarker'](_0x15c50a,_0x3fb4e2['markerName']),_0x493999&&(_0x569b86['activeMarkers']['includes'](_0x3fb4e2['markerName'])?_0x36e4ac['writer']['addClass']('ck-suggestion-marker--active',_0x15c50a):_0x36e4ac['writer']['removeClass']('ck-suggestion-marker--active',_0x15c50a));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x49a5c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x59efc1,_0x234240,_0x9ce90f)=>{_0x9ce90f['options']['showSuggestionHighlights']&&_0x49a5c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x59efc1,_0x234240,_0x9ce90f);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x443df3,_0x3431f7,_0x57e2dd)=>{const {type:_0x5ab132,id:_0x5db25f}=_0x2522cc(_0x3431f7['markerName']);if(!_0x569b86['hasSuggestion'](_0x5db25f))return;const _0x2638af=_0x569b86['getSuggestion'](_0x5db25f),_0x40c5d4=_0x2638af['data'];if('formatBlock'!=_0x2638af['type']||!_0x40c5d4||'setTableColumnHeader'!=_0x40c5d4['commandName'])return;const _0x188417=_0x57e2dd['mapper']['markerNameToElements'](_0x3431f7['markerName']);if(_0x188417){for(const _0x20e440 of _0x188417)_0x57e2dd['writer']['removeClass']('ck-suggestion-marker-'+_0x5ab132,_0x20e440),_0x57e2dd['writer']['removeClass']('ck-suggestion-marker--active',_0x20e440),_0x57e2dd['writer']['removeAttribute']('data-suggestion',_0x20e440),_0x57e2dd['mapper']['unbindElementFromMarkerName'](_0x20e440,_0x3431f7['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x225ea5=this['editor'],_0x38c365=_0x225ea5['locale'];function _0x5b315b(_0x185298){return{'type':'format','content':Tt(_0x38c365,'*Format:*\x20%0',_0x185298)};}_0x225ea5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x467be4=>{if('formatBlock'!=_0x467be4['type'])return;const {data:_0x32abd6}=_0x467be4;if(_0x32abd6){if('setTableRowHeader'==_0x32abd6['commandName']){const _0x416d7d=_0x32abd6['commandParams'][0x0]['forceValue'];return _0x5b315b(Tt(_0x38c365,_0x416d7d?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x32abd6['commandName']){const _0x42b178=_0x32abd6['commandParams'][0x0]['forceValue'];return _0x5b315b(Tt(_0x38c365,_0x42b178?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class TrackChangesTableFooters extends _0x3000a5{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x572127=this['editor'];if(!_0x572127['plugins']['has']('TableEditing')||!_0x572127['config']['get']('table.enableFooters'))return;const _0x5a8d18=_0x572127['locale'],_0x55a084=_0x572127['plugins']['get']('TrackChangesEditing');_0x55a084['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x55a084['descriptionFactory']['registerAttributeLabel']('footerRows',Tt(_0x5a8d18,'FORMAT_FOOTER_ROW'));}}class TrackChangesTableLayout extends _0x3000a5{['afterInit'](){const _0x213ada=this['editor'],_0x4a1671=_0x213ada['locale'],_0x3f0ea1=_0x213ada['plugins']['get']('TrackChangesEditing');function _0x5d6682(_0x3bb942){return{'type':'format','content':''+Tt(_0x4a1671,'*Set\x20table\x20type:*\x20%0',_0x3bb942)};}_0x213ada['plugins']['has']('TableLayout')&&(_0x3f0ea1['enableCommand']('insertTableLayout'),_0x3f0ea1['enableDefaultAttributesIntegration']('tableType'),_0x3f0ea1['descriptionFactory']['registerElementLabel'](_0x5c7fec=>_0x5c7fec['is']('element','table')&&'layout'===_0x5c7fec['getAttribute']('tableType'),_0x42c33b=>Tt(_0x4a1671,'ELEMENT_LAYOUT_TABLE',_0x42c33b)),_0x3f0ea1['descriptionFactory']['registerDescriptionCallback'](_0x57935e=>{const {data:_0x51d4b4}=_0x57935e;if(_0x51d4b4&&'tableType'==_0x51d4b4['key'])switch(_0x51d4b4['newValue']){case'layout':return _0x5d6682(Tt(_0x4a1671,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x5d6682(Tt(_0x4a1671,'ELEMENT_CONTENT_TABLE'));}}));}}const Mt=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ot=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Mt['map'](_0x399e1f=>[_0x399e1f,null]));class TrackChangesTableClipboard extends _0x3000a5{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x57946e=this['editor'];if(!_0x57946e['plugins']['has']('TableClipboard'))return;const _0x2d1944=_0x57946e['plugins']['get']('TrackChangesEditing'),_0x5e5eca=_0x57946e['plugins']['get']('TableUtils'),_0x42dd9c=_0x57946e['plugins']['get'](TrackChangesTable),_0x5583a5=_0x57946e['plugins']['get']('TableClipboard'),_0x44c371=_0x57946e['plugins']['get']('TableSelection'),_0x3c3b91=_0x57946e['plugins']['get'](ut);_0x42dd9c['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x57946e['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x57946e['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x50ae45=null,_0x52fdae=!0x1;_0x3c3b91['on']('contentInsertion',(_0x345315,_0xb61982)=>{_0x52fdae='paste'===_0xb61982['method'];}),_0x57946e['model']['on']('insertContent',(_0xc4caf6,_0x5debe4)=>{if(!_0x52fdae&&null===_0x44c371['getSelectedTableCells']())return;const [_0x2d3e8c,_0x141dc8]=_0x5debe4,_0x325ed4=_0x5debe4[_0x5debe4['length']-0x1];_0x325ed4&&_0x325ed4['forceDefaultExecution']||_0x2d1944['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x20446f,_0x4b2725,_0x4ac7fc,_0x5ca2e3,_0x4d7e8e){if(_0x4b2725&&!_0x4b2725['is']('documentSelection'))return!0x1;const _0x5d7a34=_0x4d7e8e['getTableIfOnlyTableInContent'](_0x20446f,_0x4ac7fc);if(!_0x5d7a34||!Bt(_0x5d7a34,void 0x0,_0x5ca2e3))return!0x1;const _0x380cce=_0x5ca2e3['getSelectionAffectedTableCells'](_0x4ac7fc['document']['selection']);if(!_0x380cce['length'])return!0x1;const _0x5a95a9=_0x380cce[0x0]['findAncestor']('table'),_0x243501=_0x5ca2e3['getRowIndexes'](_0x380cce),_0x134540=_0x5ca2e3['getColumnIndexes'](_0x380cce),_0x1e35e6={'startRow':_0x243501['first'],'endRow':_0x243501['last'],'startColumn':_0x134540['first'],'endColumn':_0x134540['last']};return 0x1==_0x380cce['length']&&(_0x1e35e6['endRow']+=_0x5ca2e3['getRows'](_0x5d7a34)-0x1,_0x1e35e6['endColumn']+=_0x5ca2e3['getColumns'](_0x5d7a34)-0x1),Bt(_0x5a95a9,_0x1e35e6,_0x5ca2e3);}(_0x2d3e8c,_0x141dc8,_0x57946e['model'],_0x5e5eca,_0x5583a5)&&(_0xc4caf6['stop'](),_0x50ae45={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x57946e['model']['change'](()=>{_0x57946e['model']['insertContent'](_0x5debe4[0x0],_0x5debe4[0x1],_0x5debe4[0x2],{'forceDefaultExecution':!0x0});const _0x429f37=_0x59fa6d(),{rowInsertionRanges:_0xeedb0e,columnInsertionRanges:_0x8ee323,insertionRanges:_0x499808,deletionRanges:_0x27d440,cells:_0x2d188b}=_0x50ae45;_0xeedb0e['length']&&_0x2d1944['markMultiRangeInsertion'](_0xeedb0e,'tablePasteRow',{'tablePasteChainId':_0x429f37}),_0x8ee323['length']&&_0x2d1944['markMultiRangeInsertion'](_0x8ee323,'tablePasteColumn',{'tablePasteChainId':_0x429f37}),_0x499808['length']&&(_0x2d1944['markMultiRangeInsertion'](_0x499808,'tablePaste',{'tablePasteChainId':_0x429f37,'skipNestingCheck':!0x0}),_0x499808['forEach'](_0x1fae7b=>_0x1fae7b['detach']?.())),_0x27d440['length']&&(_0x2d1944['markMultiRangeDeletion'](_0x27d440,'tablePaste',{'tablePasteChainId':_0x429f37,'skipNestingCheck':!0x0}),_0x27d440['forEach'](_0x3cd364=>_0x3cd364['detach']?.()));const _0x104bfa=_0x2d1944['markMultiRangeBlockFormat'](_0x2d188b['map'](({element:_0x11266c})=>_0x11266c),{'formatGroupId':_0x59fa6d()},[],'tablePasteCell',{'tablePasteChainId':_0x429f37});if(_0x104bfa){const _0x48561a=_0x104bfa['getMarkers'](),_0x2fd6be=[];for(const {element:_0xf73da3,attributes:_0x4b46dc}of _0x2d188b){if(!_0x4b46dc)continue;const _0x212f55=_0x57946e['model']['createRangeOn'](_0xf73da3),_0x202a69=_0x48561a['find'](_0x5d9c8e=>_0x5d9c8e['getRange']()['isEqual'](_0x212f55));_0x202a69&&_0x2fd6be['push']([_0x202a69['name'],_0x4b46dc]);}_0x2fd6be['length']&&_0x104bfa['setAttribute']('markerAttributes',Object['fromEntries'](_0x2fd6be));}_0x50ae45=null;}));},{'priority':_0x12b650['high']+0xa}),_0x3c3b91['on']('contentInsertion',()=>{_0x52fdae=!0x1;},{'priority':'lowest'}),_0x57946e['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x46a009,_0x5177ba)=>{const [_0x2b04bf,_0xdecbb2,,_0x2c5f46]=_0x5177ba;if(!_0x50ae45)return;_0x46a009['stop']();const _0x193798=_0x2b04bf['cell'],_0x189cba=_0xdecbb2,_0xbf5579=wt(_0x193798),_0x5c3a96=wt(_0x189cba);_0x46a009['return']=_0x193798;let _0x20b990=null,_0x4cd0bd=null;if(_0x5c3a96||_0xbf5579){if(_0xbf5579&&!_0x5c3a96){_0x2c5f46['remove'](_0x193798['getChild'](0x0));for(const _0x324fd3 of Array['from'](_0x189cba['getChildren']()))_0x2c5f46['insert'](_0x324fd3,_0x193798,'end');const _0x15b35d=_0x50ae45['rowInsertionIndexes']['includes'](_0x2b04bf['row']),_0x37d517=_0x50ae45['columnInsertionIndexes']['includes'](_0x2b04bf['column']);_0x15b35d||_0x37d517||(_0x20b990=_0x2192a8['fromRange'](_0x2c5f46['createRangeIn'](_0x193798)));}else _0x5c3a96&&!_0xbf5579&&(_0x4cd0bd=_0x2c5f46['createRangeIn'](_0x193798));}else{const _0xf5dc69=_0x2c5f46['createElement']('tableCellSuggestion'),_0x14b239=_0x2c5f46['createElement']('tableCellSuggestion');_0x2c5f46['wrap'](_0x2c5f46['createRangeIn'](_0x193798),_0x14b239),_0x2c5f46['insert'](_0xf5dc69,_0x193798,0x0);for(const _0x52b9bd of Array['from'](_0x189cba['getChildren']()))_0x2c5f46['insert'](_0x52b9bd,_0xf5dc69,'end');_0x20b990=_0x2192a8['fromRange'](_0x2c5f46['createRangeOn'](_0xf5dc69)),_0x4cd0bd=_0x2192a8['fromRange'](_0x2c5f46['createRangeOn'](_0x14b239));}const _0x166c37=Array['from'](_0x189cba['getAttributes']())['filter'](([_0x4dc49b])=>Mt['includes'](_0x4dc49b));_0x50ae45['cells']['push']({'element':_0x193798,'attributes':_0x166c37['length']?Object['fromEntries'](_0x166c37):null}),_0x20b990&&_0x50ae45['insertionRanges']['push'](_0x20b990),_0x4cd0bd&&_0x50ae45['deletionRanges']['push'](_0x4cd0bd);},{'priority':'high'}),_0x5e5eca['on']('insertColumns',(_0x2a8fbf,_0x3b280e)=>{const [_0x44a51d,_0x51c087={}]=_0x3b280e;if(!_0x50ae45)return;const _0x1bba5c=_0x51c087['at']||0x0,_0x4c7992=_0x51c087['columns']||0x1;_0x50ae45['columnInsertionIndexes']=new Array(_0x4c7992)['fill'](_0x1bba5c)['map']((_0x48dc71,_0x42e3bf)=>_0x48dc71+_0x42e3bf);for(const {cell:_0x28c792}of _0x5e5eca['createTableWalker'](_0x44a51d,{'startColumn':_0x1bba5c,'endColumn':_0x1bba5c+_0x4c7992-0x1}))_0x50ae45['columnInsertionRanges']['push'](_0x57946e['model']['createRangeOn'](_0x28c792));},{'priority':'low'}),_0x5e5eca['on']('insertRows',(_0x2eb995,_0x10bf46)=>{const [_0x4b8735,_0x1702bd={}]=_0x10bf46;if(!_0x50ae45)return;const _0x4f65bb=_0x1702bd['at']||0x0,_0x26fa10=_0x1702bd['rows']||0x1;_0x50ae45['rowInsertionIndexes']=new Array(_0x26fa10)['fill'](_0x4f65bb)['map']((_0x5edaaf,_0x4a0a4e)=>_0x5edaaf+_0x4a0a4e);for(const {cell:_0x4ed00e}of _0x5e5eca['createTableWalker'](_0x4b8735,{'startRow':_0x4f65bb,'endRow':_0x4f65bb+_0x26fa10-0x1}))_0x50ae45['rowInsertionRanges']['push'](_0x57946e['model']['createRangeOn'](_0x4ed00e));},{'priority':'low'}),_0x2d1944['descriptionFactory']['registerDescriptionCallback'](_0x1e6db9=>{if(_0x1e6db9['subType']&&_0x1e6db9['subType']['startsWith']('tablePaste'))return _0x1e6db9['previous']?{}:{'type':'insertion','content':Tt(_0x57946e['locale'],'*Replace\x20table\x20cells*')};});const _0xa0721f=()=>!0x1;for(const _0x4d9997 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2d1944['_suggestionFactory']['registerCustomCallback']('insertion',_0x4d9997,'join',_0xa0721f),_0x2d1944['_suggestionFactory']['registerCustomCallback']('deletion',_0x4d9997,'join',_0xa0721f),_0x2d1944['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4d9997,'join',_0xa0721f);_0x2d1944['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xa0721f),_0x2d1944['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x539708,_0xc7ac6e,_0x50d7e5)=>{const _0x39121a=_0x539708['map'](_0x588a81=>_0x588a81['getContainedElement']())['filter'](_0x2145f9=>_0x2145f9),_0x4497a0=new Map(_0x39121a['map'](_0x416cb9=>[_0x416cb9,null]));if(_0x50ae45){for(const {element:_0x3a344a,attributes:_0x3e2131}of _0x50ae45['cells'])_0x3e2131&&_0x4497a0['set'](_0x3a344a,_0x3e2131);}else{if(_0x50d7e5&&_0x50d7e5['markerAttributes'])for(const [_0xf35efa,_0x9e1b63]of Object['entries'](_0x50d7e5['markerAttributes'])){const _0x560331=_0x57946e['model']['markers']['get'](_0xf35efa),_0x10f5af=_0x560331?_0x560331['getRange']()['getContainedElement']():null;_0x10f5af&&_0x4497a0['set'](_0x10f5af,_0x9e1b63);}}_0x57946e['model']['change'](_0x38e0e3=>{for(const [_0x2754b8,_0x575253]of _0x4497a0)_0x38e0e3['setAttributes']({...Ot,..._0x575253},_0x2754b8);});});const _0x39e413=(_0x5e7e18,_0x5b9f49)=>{_0x2d1944['_suggestionFactory']['registerCustomCallback'](_0x5e7e18,'tablePaste',_0x5b9f49,(_0x1a49b0,_0x3f026b,_0x2dbdc5)=>{_0x57946e['model']['change'](_0x4fa5ac=>{const _0x4c7b64=[];for(const _0x2cdf85 of _0x1a49b0){const _0x329f4b=_0x2cdf85['start']['nodeAfter'];_0x329f4b['is']('element','tableCellSuggestion')&&_0x4c7b64['push'](_0x329f4b);}_0x2d1944['_suggestionFactory']['getSuggestionCallback'](_0x5e7e18,null,_0x5b9f49)(_0x1a49b0,_0x3f026b,_0x2dbdc5);for(const _0x4540b8 of _0x4c7b64)'$graveyard'!=_0x4540b8['root']['rootName']&&_0x4fa5ac['unwrap'](_0x4540b8);});});};_0x39e413('insertion','accept'),_0x39e413('insertion','discard'),_0x39e413('deletion','accept'),_0x39e413('deletion','discard'),_0x2d1944['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5deb6d=>{const _0x5e7d4d=_0x5deb6d['map'](_0x34b059=>_0x34b059['getContainedElement']()),_0x1c73d7=_0x5e7d4d[0x0]['findAncestor']('table'),{minRow:_0x2b15a6,maxRow:_0x29392b}=_0x42dd9c['_getCoordsForCells'](_0x5e7d4d);_0x5e5eca['removeRows'](_0x1c73d7,{'at':_0x2b15a6,'rows':_0x29392b-_0x2b15a6+0x1});}),_0x2d1944['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5c4269=>{const _0x79317f=_0x5c4269['map'](_0x58e59e=>_0x58e59e['getContainedElement']()),_0x2a35c0=_0x79317f[0x0]['findAncestor']('table'),{minColumn:_0x44d479,maxColumn:_0x5ea8cc}=_0x42dd9c['_getCoordsForCells'](_0x79317f);_0x5e5eca['removeColumns'](_0x2a35c0,{'at':_0x44d479,'columns':_0x5ea8cc-_0x44d479+0x1});});const _0x147995=(_0xf719c9,_0xca1960)=>{if(!_0xca1960['subType']||!_0xca1960['subType']['startsWith']('tablePaste'))return;const _0x1aec70=_0xca1960['attributes']['tablePasteChainId'],_0x2a238e=_0x2d1944['getSuggestions']()['filter'](_0x137916=>_0x137916['isInContent']&&_0x137916['attributes']&&_0x137916['attributes']['tablePasteChainId']==_0x1aec70);_0x2a238e['length']&&_0xca1960['getAllAdjacentSuggestions']()['length']!=_0x2a238e['length']&&_0x2a238e['reduce']((_0x49338a,_0x56090c)=>(_0x49338a['next']=_0x56090c,_0x56090c['previous']=_0x49338a,_0x56090c));};function _0x3bfd24(_0x3a46fc,_0x3bf57d=!0x0){const {id:_0x3dab46,authorId:_0x1cdb6f}=_0x2522cc(_0x3a46fc['markerName']),_0x806cad=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5bdc51=_0x2d1944['activeMarkers']['includes'](_0x3a46fc['markerName']);return _0x5bdc51&&_0x806cad['push']('ck-suggestion-marker--active'),{'classes':_0x806cad,'attributes':{'data-suggestion':_0x3dab46,'data-author-id':_0x1cdb6f},'priority':_0x5bdc51&&_0x3bf57d?0xbc2:0xbb8};}_0x2d1944['on']('suggestionLoaded',_0x147995,{'priority':'high'}),_0x2d1944['on']('suggestionUnloaded',_0x147995,{'priority':'high'}),_0x57946e['model']['document']['registerPostFixer'](()=>{let _0x405f99=!0x1;const _0x2dcd96=Array['from'](_0x57946e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1d1ec4,data:_0x216dd8}of _0x2dcd96){const {group:_0x383ee4,type:_0x4f33f3,id:_0x3002b8}=_0x2522cc(_0x1d1ec4);if('suggestion'!=_0x383ee4||'deletion'!=_0x4f33f3||_0x216dd8['oldRange'])continue;if(!_0x2d1944['hasSuggestion'](_0x3002b8))continue;const _0x34de75=_0x2d1944['getSuggestion'](_0x3002b8)['getRanges'](),_0x332f46=_0x57946e['plugins']['get']('Users')['me'];for(const _0x67cb0f of _0x2d1944['getSuggestions']()){if(!_0x67cb0f['isInContent']||_0x67cb0f['author']!=_0x332f46)continue;if('formatBlock'!=_0x67cb0f['type']||'tablePasteCell'!=_0x67cb0f['subType'])continue;if(_0x67cb0f['getRanges']()['every'](_0x8d0482=>_0x34de75['some'](_0x4db7ec=>_0x4db7ec['containsRange'](_0x8d0482,!0x0)))){for(const _0x2bf474 of _0x67cb0f['getAllAdjacentSuggestions']())_0x2bf474['isInContent']&&(_0x2bf474['discard'](),_0x405f99=!0x0);}}}return _0x405f99;}),_0x57946e['model']['document']['registerPostFixer'](_0x79064e=>{const _0x143cdd=_0x57946e['commands']['get']('redo');if(!_0x143cdd||!_0x143cdd['_createdBatches']['has'](_0x79064e['batch']))return!0x1;let _0x5ce9cc=!0x1;const _0x36d816=_0x57946e['plugins']['get']('Users')['me'],_0x11c3f5=_0x57946e['model']['document']['differ']['getChanges'](),_0x59dc07=Array['from'](_0x57946e['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x22bcea,data:_0x10020e})=>{const {group:_0x550567,subType:_0x4ef38a,authorId:_0x3275e4}=_0x2522cc(_0x22bcea);return'suggestion'==_0x550567&&'tablePaste'==_0x4ef38a&&_0x3275e4==_0x36d816['id']&&!_0x10020e['oldRange'];});for(const _0x3a9d9e of _0x11c3f5){if('insert'!=_0x3a9d9e['type']||'tableCellSuggestion'!=_0x3a9d9e['name']||0x1!=_0x3a9d9e['length'])continue;const _0x205b4d=_0x79064e['createRange'](_0x3a9d9e['position'],_0x3a9d9e['position']['getShiftedBy'](0x1));if(!_0x59dc07['find'](({data:_0x229388})=>_0x229388['newRange']['isEqual'](_0x205b4d))){for(const {name:_0x411b8e,data:_0x165e30}of _0x59dc07)if(_0x205b4d['containsRange'](_0x165e30['newRange'])){_0x79064e['updateMarker'](_0x411b8e,{'range':_0x205b4d}),_0x5ce9cc=!0x0;break;}}}return _0x5ce9cc;}),_0x57946e['model']['document']['registerPostFixer'](_0x12cf2f=>{let _0x4bb353=!0x1;const _0x16adc3=_0x57946e['plugins']['get']('Users')['me'],_0xb39ba1=_0x2d1944['getSuggestions']()['filter'](_0x4ac833=>_0x4ac833['isInContent']&&_0x4ac833['author']==_0x16adc3),_0x5d4cb8=new Set(),_0x606ab1=new Set();for(const _0x3aa08f of _0xb39ba1)if('tablePaste'==_0x3aa08f['subType'])for(const _0x2e8b5a of _0x3aa08f['getMarkers']()){const _0xc4c766=_0x2e8b5a['getRange']()['getContainedElement']();if(_0xc4c766){if(_0xc4c766['is']('element','tableCellSuggestion')&&wt(_0xc4c766)){_0x3aa08f['removeMarker'](_0x2e8b5a['name']),_0x5d4cb8['add'](_0xc4c766),_0x4bb353=!0x0;const _0x1df10a=_0xc4c766['nextSibling'],_0x5ef808=_0xc4c766['previousSibling'],_0x4d32a6=_0x1df10a&&_0x1df10a['is']('element','tableCellSuggestion'),_0x317df0=_0x5ef808&&_0x5ef808['is']('element','tableCellSuggestion');_0x4d32a6&&!_0x5d4cb8['has'](_0x1df10a)&&_0x606ab1['add'](_0x1df10a),_0x317df0&&!_0x5d4cb8['has'](_0x5ef808)&&_0x606ab1['add'](_0x5ef808);}else _0xc4c766['is']('element','paragraph')&&_0xc4c766['isEmpty']&&(_0x3aa08f['removeMarker'](_0x2e8b5a['name']),_0x4bb353=!0x0);}}else{if('tablePasteCell'==_0x3aa08f['subType']){if(!_0x3aa08f['attributes']||!_0x3aa08f['attributes']['tablePasteChainId'])continue;const _0x20b661=_0x3aa08f['attributes']['markerAttributes'];if(_0x20b661&&Object['keys'](_0x20b661)['length'])continue;const _0x473066=_0x3aa08f['attributes']['tablePasteChainId'];let _0x4bab39=!0x0,_0x402aa2=!0x0;for(const _0x437354 of _0xb39ba1)if(_0x437354['subType']&&_0x437354['subType']['startsWith']('tablePaste')){if(!_0x437354['attributes']['tablePasteChainId']){_0x402aa2=!0x1;break;}if(_0x437354['id']!=_0x3aa08f['id']&&_0x437354['attributes']['tablePasteChainId']==_0x473066){_0x4bab39=!0x1;break;}}_0x402aa2&&_0x4bab39&&(_0x3aa08f['removeMarkers'](),_0x4bb353=!0x0);}}for(const _0x3cbaac of _0x5d4cb8)_0x12cf2f['remove'](_0x3cbaac);for(const _0x4849aa of _0x606ab1)_0x12cf2f['unwrap'](_0x4849aa);return _0x4bb353;}),_0x57946e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x43823a=>_0x3bfd24(_0x43823a),'converterPriority':'high'}),_0x57946e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x59deca,_0x131be1)=>_0x131be1['options']['showSuggestionHighlights']?_0x3bfd24(_0x59deca,!0x1):null,'converterPriority':'high'});const _0xe557cd=_0x57946e['editing']['view'];this['listenTo'](_0xe557cd['document'],'clipboardOutput',(_0x411c9d,_0x417417)=>{const _0x218460=[];for(const _0x44b764 of _0xe557cd['createRangeIn'](_0x417417['content'])['getItems']())_0x44b764['is']('element','suggestion-td')&&_0x218460['push'](_0x44b764);_0xe557cd['change'](_0x1d7337=>{for(const _0x576f01 of _0x218460)_0x1d7337['move'](_0x1d7337['createRangeIn'](_0x576f01),_0x1d7337['createPositionBefore'](_0x576f01)),_0x1d7337['remove'](_0x576f01);});});}}function wt(_0x3268a2){if(_0x3268a2['isEmpty'])return!0x0;const _0x41c67b=_0x3268a2['getChild'](0x0);return _0x41c67b['is']('element','paragraph')&&_0x41c67b['isEmpty'];}function Bt(_0x32a75b,_0x153d37={},_0x3ca0be){for(const {isAnchor:_0x31a7b1,cellHeight:_0xdfb05,cellWidth:_0x18ca16}of _0x3ca0be['createTableWalker'](_0x32a75b,{'includeAllSlots':!0x0,..._0x153d37}))if(!_0x31a7b1||0x1!=_0xdfb05||0x1!=_0x18ca16)return!0x1;return!0x0;}class TrackChangesTableColumnResize extends _0x3000a5{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5e0077=this['editor']['plugins']['get']('TrackChangesEditing');_0x5e0077['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5e0077['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5e0077['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5e0077['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5e0077['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5e0077['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1db8ed,_0x11776a){const _0x6cbdc4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x220417=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1ca962=_0x11776a['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4c8515=_0x220417['getColumnGroupElement'](_0x1ca962);let _0x1dc274=_0x4c8515?_0x220417['getTableColumnsWidths'](_0x4c8515):null,_0x5a8dc8=_0x1ca962['getAttribute']('tableWidth')||null;const _0x1e2a87=_0x11776a['tableWidth']||_0x5a8dc8,_0x12a0ba=_0x11776a['columnWidths']||_0x1dc274,_0x18133d=this['editor']['plugins']['get']('Users')['me'];for(const _0x487bd5 of _0x6cbdc4['getSuggestions']()){const _0x414a34=_0x487bd5['getContainedElement']();if('resizeTable'===_0x487bd5['subType']&&_0x414a34===_0x1ca962){_0x487bd5['author']!==_0x18133d&&_0x487bd5['discard']();const _0x46d2da=_0x487bd5['data']['commandParams'];_0x5a8dc8=_0x46d2da[0x0]['tableWidth'],_0x1dc274=_0x46d2da[0x0]['columnWidths'];break;}}_0x1db8ed({'table':_0x1ca962,'tableWidth':_0x1e2a87,'columnWidths':_0x12a0ba}),_0x6cbdc4['markBlockFormat'](_0x1ca962,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5a8dc8,'columnWidths':_0x1dc274}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2fb1d5){if('formatBlock'!=_0x2fb1d5['type']&&'formatInline'!=_0x2fb1d5['type'])return;const {data:_0x359d71}=_0x2fb1d5;if(_0x359d71&&'resizeTable'===_0x359d71['formatGroupId']){const _0x345c23='*Format:*\x20resize\x20table';return{'type':'format','content':Tt(this['editor']['locale'],_0x345c23)};}}}class TrackChangesTemplate extends _0x3000a5{['afterInit'](){const _0xc52707=this['editor'];_0xc52707['plugins']['has']('Template')&&_0xc52707['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class TrackChangesTableOfContents extends _0x3000a5{['afterInit'](){const _0x433df2=this['editor'];if(!_0x433df2['commands']['get']('insertTableOfContents'))return;_0x433df2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x7f2bb7=_0x433df2['plugins']['get']('TrackChangesEditing'),_0x112278=_0x433df2['locale'];_0x7f2bb7['descriptionFactory']['registerElementLabel']('tableOfContents',_0x330ae0=>Tt(_0x112278,'ELEMENT_TABLE_OF_CONTENTS',_0x330ae0));}}class TrackChangesTitle extends _0x3000a5{['afterInit'](){const _0x171625=this['editor'];if(!_0x171625['plugins']['has']('Title'))return;_0x171625['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Tt(_0x171625['locale'],'ELEMENT_TITLE')),_0x171625['model']['document']['registerPostFixer'](_0xb903de=>{let _0x43e627=!0x1;const _0x4c979d=Array['from'](_0x171625['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x12c362,data:_0x484d59}of _0x4c979d){const {group:_0x145ee0}=_0x2522cc(_0x12c362);if('suggestion'!==_0x145ee0||!_0x484d59['newRange'])continue;const _0x4d27ad=_0x484d59['newRange'],_0x4d70e5=_0x4d27ad['end']['nodeBefore'];if(!_0x4d70e5||!_0x4d70e5['is']('element','title-content'))continue;if(!_0x4d27ad['start']['isTouching'](_0x4d27ad['end']))continue;const _0x303732=_0x171625['model']['schema']['getNearestSelectionRange'](_0x4d27ad['end'],'forward');if(_0x303732&&_0x303732['isCollapsed']){const _0x50f092=_0xb903de['createRange'](_0x4d27ad['start'],_0x303732['start']);_0x50f092['isEqual'](_0x4d27ad)||(_0xb903de['updateMarker'](_0x12c362,{'range':_0x50f092}),_0x43e627=!0x0);}_0x43e627||(_0xb903de['removeMarker'](_0x12c362),_0x43e627=!0x0);}return _0x43e627;});}}class TrackChangesUploadcare extends _0x3000a5{['afterInit'](){const _0x257326=this['editor'],_0x5d9966=_0x257326['plugins']['get']('TrackChangesEditing');_0x257326['plugins']['has']('Uploadcare')&&(_0x5d9966['enableCommand']('uploadcare'),_0x257326['plugins']['has']('UploadcareImageEdit')&&(_0x5d9966['enableCommand']('uploadcareImageEdit'),_0x5d9966['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5d9966['descriptionFactory']['registerDescriptionCallback'](_0x187658=>{if('attribute'!=_0x187658['type'])return;const {data:_0x366d5c}=_0x187658;return _0x366d5c&&'uploadcareImageId'==_0x366d5c['key']?{'type':'format','content':''}:void 0x0;})));}}class TrackChangesUndo extends _0x3000a5{['afterInit'](){const _0x231e1e=this['editor'],_0x20ebd3=_0x231e1e['plugins']['get']('TrackChangesEditing');_0x231e1e['plugins']['has']('UndoEditing')&&(_0x20ebd3['enableCommand']('undo'),_0x20ebd3['enableCommand']('redo'));}}class TrackChangesTableCaption extends _0x3000a5{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0xd836b1=this['editor'];if(!_0xd836b1['plugins']['has']('TableCaptionEditing'))return;_0xd836b1['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class TrackChangesTableProperties extends _0x3000a5{['tableProperties'];['tableCellProperties'];constructor(_0x4d654e){super(_0x4d654e),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellType'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x3850cf=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1a667d of this['tableProperties'])_0x3850cf['enableCommand'](_0x1a667d,(_0x3009fe,_0x452345)=>{const _0x2106bf=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1a667d,[_0x2106bf],this['tableProperties'],'tableProperties',_0x3009fe,_0x452345);});_0x3850cf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3850cf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3850cf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x41226,_0x50baa1)=>this['handleDiscardAction'](this['tableProperties'],_0x41226,_0x50baa1)),_0x3850cf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x973fb4 of this['tableCellProperties'])this['editor']['commands']['get'](_0x973fb4)&&_0x3850cf['enableCommand'](_0x973fb4,(_0x39a1e3,_0x2ed9e4)=>{const _0x5ec39a=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x973fb4,_0x5ec39a,this['tableCellProperties'],'tableCellProperties',_0x39a1e3,_0x2ed9e4);});_0x3850cf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3850cf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3850cf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x138ba1,_0x147373)=>this['handleDiscardAction'](this['tableCellProperties'],_0x138ba1,_0x147373)),_0x3850cf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x3850cf['descriptionFactory']['registerAttributeLabel']('tableCellType',Tt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x3850cf['descriptionFactory']['registerDescriptionCallback'](_0x292ea2=>this['handleSuggestionDescription'](_0x292ea2)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x557329,_0x51672b,_0x21936b,_0x21e6d8,_0x1cbc12,_0x2c1c4a){const _0x57732d=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2c1c4a['batch'],()=>{for(const _0x269880 of _0x51672b){if(this['_getSuggestion'](_0x269880,_0x21e6d8))_0x1cbc12(_0x2c1c4a);else{const _0x462293={};for(const _0x9bb9a4 of _0x21936b){const _0x336b2f=_0x269880['getAttribute'](_0x9bb9a4);void 0x0!==_0x336b2f&&(_0x462293[_0x9bb9a4]=_0x336b2f);}_0x1cbc12(_0x2c1c4a),_0x57732d['markBlockFormat'](_0x269880,{'commandParams':[_0x462293]},[],_0x21e6d8);}}});}['handleDiscardAction'](_0x3034b2,_0x1b91da,_0x3fa7b3){const _0x20273c=_0x1b91da[0x0]['start']['nodeAfter'],_0x4c787f=_0x3fa7b3['commandParams'][0x0];this['editor']['model']['change'](_0xd303e9=>{for(const _0x19fe71 of _0x3034b2)void 0x0!==_0x4c787f[_0x19fe71]?_0xd303e9['setAttribute'](_0x19fe71,_0x4c787f[_0x19fe71],_0x20273c):_0xd303e9['removeAttribute'](_0x19fe71,_0x20273c);});}['handleSuggestionDescription'](_0x2bc3d5){if(_0x2bc3d5['data'])switch(_0x2bc3d5['subType']){case'tableProperties':return{'type':'format','content':Tt(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':Tt(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x39c95c,_0x3ee22e){const _0x1f30c9=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3fe6c0 of _0x1f30c9['getSuggestions']({'skipNotAttached':!0x0})){const _0x1e2c87=_0x3fe6c0['getContainedElement']();if(_0x3fe6c0['subType']===_0x3ee22e&&_0x1e2c87===_0x39c95c)return _0x3fe6c0;}return null;}['_registerTablePropertiesAttributes'](){const _0x1380e0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3c81c2=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x27d76d of _0x3c81c2){const _0x364c1f=_0x27d76d['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x1380e0['descriptionFactory']['registerAttributeLabel'](_0x27d76d,Tt(this['editor']['locale'],'FORMAT_'+_0x364c1f));}}}class TrackChangesLineHeight extends _0x3000a5{['afterInit'](){const _0x251ad9=this['editor'];if(!_0x251ad9['plugins']['has']('LineHeight'))return;const _0x167d0e=_0x251ad9['plugins']['get']('TrackChangesEditing'),_0x289e64=_0x251ad9['locale'];_0x167d0e['enableDefaultAttributesIntegration']('lineHeight'),_0x167d0e['descriptionFactory']['registerAttributeLabel']('lineHeight',Tt(_0x289e64,'FORMAT_LINE_HEIGHT'));}}const Ft='$elementName';class TrackChangesEditing extends _0x3000a5{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x3b6cc3,_0x54b9f2,_0x1d950a,_0x366661,_0x1d267d,TrackChangesAIAssistant,TrackChangesAI,TrackChangesAIQuickActions,TrackChangesAlignment,TrackChangesBasicStyles,TrackChangesBlockQuote,TrackChangesBookmark,TrackChangesCKBox,TrackChangesCaseChange,TrackChangesCodeBlock,TrackChangesComments,TrackChangesDeleteCommand,TrackChangesEmoji,TrackChangesEnterCommand,TrackChangesFindAndReplace,TrackChangesFont,TrackChangesFootnotes,TrackChangesFormatPainter,TrackChangesHeading,TrackChangesHighlight,TrackChangesHorizontalLine,TrackChangesHtmlEmbed,TrackChangesImage,TrackChangesImageStyle,TrackChangesImageReplace,TrackChangesImportWord,TrackChangesIndent,TrackChangesInputCommand,TrackChangesLegacyList,TrackChangesLegacyListProperties,TrackChangesMultiLevelList,TrackChangesLink,TrackChangesList,TrackChangesLineHeight,TrackChangesDocumentListProperties,TrackChangesMediaEmbed,TrackChangesMention,TrackChangesMergeFields,TrackChangesPageBreak,TrackChangesParagraph,TrackChangesReplaceSourceCommand,TrackChangesRemoveFormat,TrackChangesRestrictedEditingMode,TrackChangesShiftEnterCommand,TrackChangesStandardEditingMode,TrackChangesStylesDropdown,TrackChangesTable,TrackChangesTableMergeSplit,TrackChangesTableHeadings,TrackChangesTableFooters,TrackChangesTableLayout,TrackChangesTableCaption,TrackChangesTableClipboard,TrackChangesTableColumnResize,TrackChangesTableOfContents,TrackChangesTableProperties,TrackChangesTemplate,TrackChangesTitle,TrackChangesUploadcare,TrackChangesUndo];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x28a515){super(_0x28a515),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x31a5c6,_0x1f39e4,_0x2fb687,_0x11a35e)=>{this['_model']['change'](()=>{for(const _0x5e1882 of[..._0x11a35e,..._0x2fb687])this['_model']['markers']['has'](_0x5e1882)&&_0x28a515['editing']['reconvertMarker'](_0x5e1882);});}),this['descriptionFactory']=new SuggestionDescriptionFactory(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new SuggestionFactory(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x28a515['plugins']['get'](_0x3b6cc3),this['_suggestionsConversion']=_0x28a515['plugins']['get'](_0x54b9f2),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x28a515['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x28a515['config']['get']('trackChanges.trackFormatChanges'),_0x28a515['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x28a515['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new TrackChangesCommand(_0x28a515,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x229af4=this['editor'];_0x229af4['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5937b7,{writer:_0x55760a})=>{let _0x3817c0='suggestion:'+_0x5937b7['getAttribute']('suggestion-type')+':'+_0x5937b7['getAttribute']('id');return _0x5937b7['getAttribute']('marker-count')&&(_0x3817c0+=':'+_0x5937b7['getAttribute']('marker-count')),_0x55760a['createElement']('$marker',{'data-name':_0x3817c0});}}),_0x229af4['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x229af4['model']['document']['registerPostFixer'](_0x5dcb0b=>{let _0x4316c4=!0x1;const _0x14c643=Array['from'](_0x229af4['model']['document']['differ']['getChangedMarkers']()),_0x5aa798=new Set();for(const {name:_0x35185b,data:_0x1a639d}of _0x14c643){const {group:_0x182067,type:_0x109447,subType:_0x237faf,id:_0x1510e2}=_0x2522cc(_0x35185b);if('suggestion'!==_0x182067)continue;const _0x4fceb5=_0x237faf?'suggestion:'+_0x109447+':'+_0x237faf+':'+_0x1510e2:'suggestion:'+_0x109447+':'+_0x1510e2,_0x597c54=_0x229af4['model']['markers']['getMarkersGroup'](_0x4fceb5),_0x171304=_0x229af4['model']['markers']['get'](_0x35185b),_0x23fe3f=this['_suggestions']['get'](_0x1510e2);if(null!=_0x1a639d['newRange']){'formatInline'==_0x109447&&(_0x4316c4=_0x4316c4||xt(_0x1a639d['newRange'],_0x35185b,_0x5dcb0b,_0x229af4['model']['schema']));const _0x118618='attribute'==_0x109447&&this['_suggestionsConversion']['isBlockAttribute'](Xt(_0x237faf)),_0x586cd4='attribute'==_0x109447&&this['_suggestionsConversion']['isInlineAttribute'](Xt(_0x237faf));if(_0x1a639d['newRange']['isCollapsed']||'$graveyard'==_0x1a639d['newRange']['root']['rootName']||'formatBlock'==_0x109447&&!Ut(_0x1a639d['newRange'])||_0x118618&&!Ut(_0x1a639d['newRange'])||_0x586cd4&&Gt(_0x1a639d['newRange'])||'deletion'==_0x109447&&Gt(_0x1a639d['newRange'])||_0x171304&&Ht(_0x171304,_0x597c54))_0x5dcb0b['removeMarker'](_0x35185b),_0x4316c4=!0x0;else{if(!_0x23fe3f||!_0x23fe3f['isInContent'])continue;if(_0x1a639d['newRange']&&_0x1a639d['oldRange']&&_0x1a639d['newRange']['isEqual'](_0x1a639d['oldRange']))continue;_0x5aa798['add'](_0x23fe3f);}}}return _0x5aa798['size']>0x0&&(_0x4316c4=!!this['_joinWithAdjacentSuggestions'](_0x5aa798)||_0x4316c4),_0x4316c4;}),_0x229af4['model']['document']['registerPostFixer'](_0x47491d=>{let _0x7131c1=!0x1;for(const _0x1ee7c2 of _0x229af4['model']['document']['differ']['getChanges']())if('insert'==_0x1ee7c2['type'])for(const _0x103b13 of this['_suggestions']['values']()){if(_0x103b13['isMultiRange']||!_0x103b13['isInContent'])continue;const _0x1462a3='formatBlock'==_0x103b13['type'],_0xf7d69e=this['_getAttributeKey'](_0x103b13),_0x3da633=_0xf7d69e&&this['_suggestionsConversion']['isBlockAttribute'](_0xf7d69e);if(!_0x1462a3&&!_0x3da633)continue;const _0x57baaf=_0x103b13['getFirstRange']();if(_0x57baaf['start']['parent']!=_0x57baaf['end']['parent']&&!_0x57baaf['end']['isAtEnd']){const _0x328eb3=_0x229af4['model']['createPositionAt'](_0x57baaf['start']['nodeAfter'],'end'),_0x35eb37=_0x229af4['model']['createRange'](_0x57baaf['start'],_0x328eb3);_0x47491d['updateMarker'](_0x103b13['getFirstMarker'](),{'range':_0x35eb37}),_0x7131c1=!0x0;}}return _0x7131c1;}),_0x229af4['model']['document']['registerPostFixer'](_0x35305d=>this['_processAttributeChanges'](_0x35305d)),_0x229af4['model']['document']['registerPostFixer'](_0x41be09=>!_0x41be09['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x41be09)),_0x229af4['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x229af4['model']['document']['on']('change:data',(_0x14034b,_0x826dbb)=>{if(!_0x826dbb['isLocal']||_0x826dbb['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x34399d=_0x229af4['model']['document']['differ']['getChanges']();if(0x0==_0x34399d['length'])return;const _0x1f15ee=[],_0xff91a5=_0x34399d['filter'](_0x20b7e7=>'attribute'==_0x20b7e7['type']),_0x51abeb=_0x34399d['filter'](_0x35ec75=>'insert'==_0x35ec75['type']&&'$text'!=_0x35ec75['name']);for(const _0x1f70b7 of _0xff91a5)this['_suggestionsConversion']['isRegisteredAttribute'](_0x1f70b7['attributeKey'])&&_0x1f15ee['push']({'key':_0x1f70b7['attributeKey'],'newValue':_0x1f70b7['attributeNewValue'],'oldValue':_0x1f70b7['attributeOldValue'],'range':$t(_0x1f70b7['range'],_0x229af4['model'])});for(const _0x43c75b of _0x51abeb){if('rename'!=_0x43c75b['action']&&'refresh'!=_0x43c75b['action'])continue;const _0x4b7413=Vt(_0x43c75b['position']['nodeAfter'],_0x229af4['model']),_0x5b2f65=_0x43c75b['before'];'rename'==_0x43c75b['action']&&_0x1f15ee['push']({'key':Ft,'newValue':_0x43c75b['name'],'oldValue':_0x5b2f65['name'],'range':_0x4b7413});for(const [_0x52519f,_0x1c7577]of _0x5b2f65['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x52519f))continue;const _0x19662a=_0x43c75b['attributes']['get'](_0x52519f);_0x1c7577!==_0x19662a&&_0x1f15ee['push']({'key':_0x52519f,'newValue':_0x19662a,'oldValue':_0x1c7577,'range':_0x4b7413});}for(const [_0x39009e,_0x10f3a6]of _0x43c75b['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x39009e)&&(_0x5b2f65['attributes']['has'](_0x39009e)||_0x1f15ee['push']({'key':_0x39009e,'newValue':_0x10f3a6,'oldValue':null,'range':_0x4b7413}));}0x0!=_0x1f15ee['length']&&_0x229af4['model']['enqueueChange'](_0x826dbb,_0x579de5=>{const _0x235bbc=_0x59fa6d();for(const {range:_0x24f21a,key:_0xd344bd,oldValue:_0x4f16a8,newValue:_0x23b110}of _0x1f15ee)this['markAttributeChange'](_0x24f21a,_0xd344bd,_0x4f16a8,_0x23b110,{'groupId':_0x235bbc});this['_reduceExistingSuggestions'](_0x579de5,_0x1f15ee);});},{'priority':'lowest'}),_0x229af4['model']['markers']['on']('update:suggestion',(_0x5336d5,_0x2d144b,_0x1def6b)=>{if(null==_0x1def6b){const {id:_0x2cf6e7}=_0x2522cc(_0x2d144b['name']),_0x4d4abc=this['_suggestions']['get'](_0x2cf6e7);_0x4d4abc&&_0x4d4abc['addMarkerName'](_0x2d144b['name']);}}),_0x229af4['model']['document']['on']('change:data',()=>{const _0x4a5e7d=Array['from'](_0x229af4['model']['document']['differ']['getChangedMarkers']())['filter'](_0x51eb4c=>'suggestion'===_0x2522cc(_0x51eb4c['name'])['group']);if(0x0===_0x4a5e7d['length'])return;_0x4a5e7d['sort']((_0x5660d9,_0x42ec03)=>{const _0x527ab6=_0x5660d9['data']['oldRange'],_0x8ea964=_0x42ec03['data']['oldRange'];return null===_0x527ab6&&null===_0x8ea964?0x0:null===_0x527ab6&&null!==_0x8ea964?-0x1:null!==_0x527ab6&&null===_0x8ea964?0x1:_0x527ab6['start']['isBefore'](_0x8ea964['start'])?-0x1:0x1;});const _0x449651=new Set(),_0x497338=new Set();for(const {name:_0x7508dc,data:_0x856edd}of _0x4a5e7d){const {id:_0x2bb2be}=_0x2522cc(_0x7508dc);if(null===_0x856edd['oldRange']){const _0x14638b=this['_handleNewSuggestionMarker'](_0x7508dc);_0x497338['add'](_0x14638b);}else{const _0xca797f=this['_suggestions']['get'](_0x2bb2be);null!==_0x856edd['newRange']||_0xca797f['isInContent']?(_0x449651['add'](_0xca797f['head']),_0x497338['add'](_0xca797f)):this['_removeSuggestion'](_0xca797f);}}_0x497338['size']>0x0&&this['_refreshSuggestionsChain'](_0x497338);for(const _0x2b4c9a of _0x449651)this['fire']('suggestionChanged',_0x2b4c9a);}),_0x229af4['model']['on']('applyOperation',(_0x3c3341,_0x5a558b)=>{const _0x2b72c9=_0x5a558b[0x0];if(!this['_suggestions']['size'])return;if(!_0x2b72c9['isDocumentOperation'])return;if(_0x2b72c9['batch']['isUndo']||!_0x2b72c9['batch']['isLocal'])return;let _0x1dc5f2,_0x409ff6;switch(_0x2b72c9['type']){case'insert':_0x1dc5f2=_0x229af4['model']['createPositionAt'](_0x2b72c9['position']),_0x409ff6=_0x1dc5f2['getShiftedBy'](_0x2b72c9['howMany']);break;case'split':_0x1dc5f2=_0x229af4['model']['createPositionAt'](_0x2b72c9['splitPosition']),_0x409ff6=_0x229af4['model']['createPositionAt'](_0x2b72c9['moveTargetPosition']);break;case'move':_0x1dc5f2=_0x229af4['model']['createPositionAt'](_0x2b72c9['targetPosition']),_0x409ff6=_0x1dc5f2['getShiftedBy'](_0x2b72c9['howMany']);break;default:return;}const _0x24079f=_0x229af4['model']['createRange'](_0x1dc5f2,_0x409ff6);_0x229af4['model']['change'](()=>{for(const {suggestion:_0x140536,meta:_0x143342}of this['_findSuggestions'](_0x24079f)){if(_0x140536['isMultiRange'])continue;if('formatInline'==_0x140536['type'])continue;const _0xadf9a3=this['_getAttributeKey'](_0x140536);if(_0xadf9a3&&this['_suggestionsConversion']['isBlockAttribute'](_0xadf9a3)&&'split'!=_0x2b72c9['type'])continue;const _0x4ad0a8=_0x140536['data']&&_0x140536['data']['multipleBlocks'];('formatBlock'!=_0x140536['type']||'split'==_0x2b72c9['type']&&!_0x4ad0a8)&&(_0x143342['containsRangeInObject']||'insertion'==_0x140536['type']&&_0x143342['isOwn']||_0x140536['getFirstRange']()['containsRange'](_0x24079f)&&this['_breakSuggestionMarker'](_0x140536,_0x1dc5f2,_0x409ff6));}});},{'priority':'lowest'}),_0x229af4['model']['on']('deleteContent',(_0x13ed40,_0x5af316)=>{const _0x40b3f7=_0x5af316[0x0],_0x26a1cf=_0x5af316[0x1];if(_0x26a1cf&&_0x26a1cf['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x40b3f7['isCollapsed'])return;const _0x402392=_0x229af4['model']['schema'],{start:_0x3f85c3,end:_0x5219ff}=_0x40b3f7['getFirstRange'](),_0x3b5806=_0x3f85c3['nodeAfter']&&_0x402392['isLimit'](_0x3f85c3['nodeAfter'])?null:_0x402392['getNearestSelectionRange'](_0x3f85c3,'forward'),_0x51e69d=_0x5219ff['nodeBefore']&&_0x402392['isLimit'](_0x5219ff['nodeBefore'])?null:_0x402392['getNearestSelectionRange'](_0x5219ff,'backward'),_0x3a3644=_0x229af4['model']['createRange'](_0x3b5806?_0x3b5806['start']:_0x3f85c3,_0x51e69d?_0x51e69d['end']:_0x5219ff);_0x229af4['model']['change'](_0x8f0458=>{this['markDeletion'](_0x3a3644);const _0x3bd7cf=_0x229af4['model']['schema']['getNearestSelectionRange'](_0x3a3644['start']);_0x40b3f7['is']('documentSelection')?_0x8f0458['setSelection'](_0x3bd7cf):_0x40b3f7['setTo'](_0x3bd7cf);}),_0x13ed40['stop']();},{'priority':_0x12b650['normal']+0xa}),_0x229af4['model']['on']('insertContent',(_0x134153,_0x1902db)=>{const _0x20bda8=_0x1902db[_0x1902db['length']-0x1];_0x20bda8&&_0x20bda8['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x229af4['model']['change'](()=>{let _0x1ac479=_0x229af4['model']['insertContent'](_0x1902db[0x0],_0x1902db[0x1],_0x1902db[0x2],{'forceDefaultExecution':!0x0});if(!_0x1ac479)return;_0x134153['return']=_0x1ac479['clone']();const _0x5cc3b0=_0x1ac479['end']['nodeBefore'],_0x20413b=_0x229af4['model']['schema'];_0x5cc3b0&&_0x20413b['isBlock'](_0x5cc3b0)&&!_0x20413b['isObject'](_0x5cc3b0)&&(_0x1ac479=_0x229af4['model']['createRange'](_0x1ac479['start'],_0x229af4['model']['createPositionAt'](_0x5cc3b0,'end'))),this['markInsertion'](_0x1ac479);}),_0x134153['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4bb9da=new AcceptSuggestionCommand(_0x229af4,this['_suggestions']);_0x229af4['commands']['add']('acceptSuggestion',_0x4bb9da),this['enableCommand']('acceptSuggestion');const _0x3a8e95=new DiscardSuggestionCommand(_0x229af4,this['_suggestions']);_0x229af4['commands']['add']('discardSuggestion',_0x3a8e95),this['enableCommand']('discardSuggestion'),_0x229af4['commands']['add']('acceptAllSuggestions',new ExecuteOnAllSuggestionsCommand(_0x229af4,_0x4bb9da,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x229af4['commands']['add']('discardAllSuggestions',new ExecuteOnAllSuggestionsCommand(_0x229af4,_0x3a8e95,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x229af4['commands']['add']('acceptSelectedSuggestions',new ExecuteOnSelectedSuggestionsCommand(_0x229af4,_0x4bb9da,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x229af4['commands']['add']('discardSelectedSuggestions',new ExecuteOnSelectedSuggestionsCommand(_0x229af4,_0x3a8e95,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3f92dd=_0x229af4['plugins']['get'](_0x3b6cc3);this['listenTo'](_0x3f92dd,'addComment',(_0x29be78,{threadId:_0x24b79f})=>{const _0x33a501=this['_suggestions']['get'](_0x24b79f);_0x33a501&&_0x33a501['commentThread']&&0x1===_0x33a501['commentThread']['length']&&this['_updateSuggestionData'](_0x24b79f,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3f92dd,'removeComment',(_0x456bc9,{threadId:_0x31ac73})=>{const _0x1654da=this['_suggestions']['get'](_0x31ac73);_0x1654da&&_0x1654da['commentThread']&&!_0x1654da['commentThread']['length']&&this['_updateSuggestionData'](_0x31ac73,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0xa73e33){const _0x1c4eb7=_0x3b9af7([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x4edcbb=0x3d8d0df,_0x175c5c=0x3df5ab7^_0x4edcbb,_0x5c549c=window[_0x3b9af7([0x44,0x61,0x74,0x65])][_0x3b9af7([0x6e,0x6f,0x77])](),_0x37fbc2=_0xa73e33[_0x3b9af7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2eab6b=new window[(_0x3b9af7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x159b77=>{_0x37fbc2[_0x3b9af7([0x6f,0x6e,0x63,0x65])](_0x3b9af7([0x72,0x65,0x61,0x64,0x79]),_0x159b77);}),_0x4e8c43={[_0x3b9af7([0x6b,0x74,0x79])]:_0x3b9af7([0x45,0x43]),[_0x3b9af7([0x75,0x73,0x65])]:_0x3b9af7([0x73,0x69,0x67]),[_0x3b9af7([0x63,0x72,0x76])]:_0x3b9af7([0x50,0x2d,0x32,0x35,0x36]),[_0x3b9af7([0x78])]:_0x3b9af7([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]),[_0x3b9af7([0x79])]:_0x3b9af7([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]),[_0x3b9af7([0x61,0x6c,0x67])]:_0x3b9af7([0x45,0x53,0x32,0x35,0x36])},_0x4e0f0e=_0x37fbc2[_0x3b9af7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3b9af7([0x67,0x65,0x74])](_0x3b9af7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x9fc1e7(){let _0x3cfe82,_0x4a3102=null,_0x76358a=null;try{if(_0x4e0f0e==_0x3b9af7([0x47,0x50,0x4c]))return _0x3b9af7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3cfe82=_0x5d628a(),!_0x3cfe82)return _0x3b9af7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3cfe82[_0x3b9af7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x76358a=_0x450e54(_0x3cfe82[_0x3b9af7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3cfe82[_0x3b9af7([0x6a,0x74,0x69])])),await _0x50d228()?_0x31a489()?_0x320fde()?_0x3b9af7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x393841()?(_0x3cfe82[_0x3b9af7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b9af7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4a3102=_0x5d540d(_0x3b9af7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4c1772()):_0x3b9af7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3b9af7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3b9af7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3b9af7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x320fde(){const _0x2305f1=[_0x3b9af7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3b9af7([0x74,0x72,0x69,0x61,0x6c])][_0x3b9af7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cfe82[_0x3b9af7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5c549c/0x3e8:0xe10*_0x175c5c;return _0x3cfe82[_0x3b9af7([0x65,0x78,0x70])]<_0x2305f1;}function _0x31a489(){const _0x37db05=_0x3cfe82[_0x3b9af7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x37db05)return!0x1;if(_0x37db05[_0x3b9af7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b9af7([0x2a])))return!0x0;if(_0x37db05[_0x3b9af7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b9af7([0x54,0x43])))return!0x0;if(_0x37db05[_0x3b9af7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b9af7([0x52,0x54,0x43]))){if(_0x1ef5a0())return!0x0;if(_0x3bf3ec()||_0x9f1a3b())return!0x0;}return!0x1;}function _0x393841(){const _0x2fa108=_0x3cfe82[_0x3b9af7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2fa108||0x0==_0x2fa108[_0x3b9af7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x53c710}=new URL(window[_0x3b9af7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2fa108[_0x3b9af7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53c710))return!0x0;const _0x366d53=_0x53c710[_0x3b9af7([0x73,0x70,0x6c,0x69,0x74])](_0x3b9af7([0x2e]));return _0x2fa108[_0x3b9af7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3b2951=>_0x3b2951[_0x3b9af7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b9af7([0x2a])))[_0x3b9af7([0x6d,0x61,0x70])](_0x141161=>_0x141161[_0x3b9af7([0x73,0x70,0x6c,0x69,0x74])](_0x3b9af7([0x2e])))[_0x3b9af7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5625ad=>_0x5625ad[_0x3b9af7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x366d53[_0x3b9af7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b9af7([0x6d,0x61,0x70])](_0x507495=>Array(_0x366d53[_0x3b9af7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x507495[_0x3b9af7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b9af7([0x66,0x69,0x6c,0x6c])](_0x507495[0x0]===_0x3b9af7([0x2a])?_0x3b9af7([0x2a]):'')[_0x3b9af7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x507495))[_0x3b9af7([0x73,0x6f,0x6d,0x65])](_0x4a2768=>_0x366d53[_0x3b9af7([0x65,0x76,0x65,0x72,0x79])]((_0x223588,_0x259f73)=>_0x4a2768[_0x259f73]===_0x223588||_0x4a2768[_0x259f73]===_0x3b9af7([0x2a])));}function _0x4c1772(){return _0x4a3102&&_0x76358a?new window[(_0x3b9af7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x383af0,_0x161f15)=>{_0x4a3102[_0x3b9af7([0x74,0x68,0x65,0x6e])](_0x383af0,_0x161f15),_0x76358a[_0x3b9af7([0x74,0x68,0x65,0x6e])](_0x44edcb=>{_0x44edcb!=_0x3b9af7([0x56,0x61,0x6c,0x69,0x64])&&_0x383af0(_0x44edcb);},_0x161f15);}):_0x4a3102||_0x76358a||_0x3b9af7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x450e54(_0x337917,_0x576ee1){return new window[(_0x3b9af7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d023e=>{if(_0x581e69())return _0x2d023e(_0x3b9af7([0x56,0x61,0x6c,0x69,0x64]));_0x3ded30(),_0x37fbc2[_0x3b9af7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3b9af7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x57e3cb=!0x1;const _0x33c4be=_0x59fa6d();function _0x4f9d49(_0x477c38){return!!_0x477c38&&(typeof _0x477c38===_0x3b9af7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x477c38===_0x3b9af7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x477c38[_0x3b9af7([0x74,0x68,0x65,0x6e])]===_0x3b9af7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x477c38[_0x3b9af7([0x63,0x61,0x74,0x63,0x68])]===_0x3b9af7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x25047f(_0x5b76ab){_0x116d6d(_0x5b76ab)[_0x3b9af7([0x74,0x68,0x65,0x6e])](_0x304657=>{if(!_0x304657||_0x304657[_0x3b9af7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3b9af7([0x6f,0x6b]))return _0x3b9af7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x475cee(_0x461b7f(_0x33c4be+_0x576ee1))!=_0x304657[_0x3b9af7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3b9af7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3b9af7([0x56,0x61,0x6c,0x69,0x64]);})[_0x3b9af7([0x74,0x68,0x65,0x6e])](_0x53d066=>(_0x18ee21(),_0x53d066),()=>{const _0x2bdf5f=_0x1d13a0();return null==_0x2bdf5f?(_0x18ee21(),_0x3b9af7([0x56,0x61,0x6c,0x69,0x64])):_0x3b9af7(_0x5c549c-_0x2bdf5f>(0x27d454df^_0x4edcbb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3b9af7([0x74,0x68,0x65,0x6e])](_0x2d023e)[_0x3b9af7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2d023e(_0x3b9af7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5e0392=0x3ee3e5f^_0x4edcbb;function _0x18ee21(){const _0x8a9f38=_0x3b9af7([0x6c,0x6c,0x63,0x74,0x2d])+_0x475cee(_0x461b7f(_0x337917)),_0x34657e=_0x1198fa(_0x475cee(window[_0x3b9af7([0x4d,0x61,0x74,0x68])][_0x3b9af7([0x63,0x65,0x69,0x6c])](_0x5c549c/_0x5e0392)));window[_0x3b9af7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b9af7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x8a9f38,_0x34657e);}function _0x1d13a0(){const _0x473ca4=_0x3b9af7([0x6c,0x6c,0x63,0x74,0x2d])+_0x475cee(_0x461b7f(_0x337917)),_0x16b49a=window[_0x3b9af7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b9af7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x473ca4);return _0x16b49a?window[_0x3b9af7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1198fa(_0x16b49a),0x10)*_0x5e0392:null;}function _0x116d6d(_0x53e113){return new window[(_0x3b9af7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4b6137,_0x530409)=>{_0x53e113[_0x3b9af7([0x74,0x68,0x65,0x6e])](_0x4b6137,_0x530409),window[_0x3b9af7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x530409,0x3d9041f^_0x4edcbb);});}}_0x37fbc2[_0x3b9af7([0x6f,0x6e])](_0x3b9af7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x123862,_0xaad40a)=>{if(_0xaad40a[0x0]!=_0x337917)return _0x2d023e(_0x3b9af7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xaad40a[0x1]={..._0xaad40a[0x1],[_0x3b9af7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x33c4be};},{[_0x3b9af7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b9af7([0x68,0x69,0x67,0x68])}),_0x37fbc2[_0x3b9af7([0x6f,0x6e])](_0x3b9af7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x55f063=>{_0x4f9d49(_0x55f063[_0x3b9af7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x57e3cb=!0x0,_0x25047f(_0x55f063[_0x3b9af7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3b9af7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b9af7([0x6c,0x6f,0x77])}),_0x2eab6b[_0x3b9af7([0x74,0x68,0x65,0x6e])](()=>{_0x57e3cb||_0x2d023e(_0x3b9af7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x581e69(){return _0x37fbc2[_0x3b9af7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b9af7([0x76,0x69,0x65,0x77])][_0x3b9af7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3b9af7([0x61,0x75,0x74,0x6f]);}function _0x3ded30(){_0x37fbc2[_0x3b9af7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b9af7([0x76,0x69,0x65,0x77])][_0x3b9af7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3b9af7([0x61,0x75,0x74,0x6f]);}}function _0x5d540d(_0x1b5fb7){const _0x58978f=[new window[(_0x3b9af7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45b7ed=>setTimeout(_0x45b7ed,0x3d1ee13^_0x4edcbb)),_0x2eab6b[_0x3b9af7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3b9af7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x793353=>{let _0x5d4704=0x0;_0x37fbc2[_0x3b9af7([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b9af7([0x6f,0x6e])](_0x3b9af7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x46cbb4,_0x1abaf9)=>{_0x1abaf9[0x0][_0x3b9af7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5d4704++,_0x5d4704==(0x3d8d537^_0x4edcbb)&&(_0x793353(),_0x46cbb4[_0x3b9af7([0x6f,0x66,0x66])]());});}))];return window[_0x3b9af7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3b9af7([0x72,0x61,0x63,0x65])](_0x58978f)[_0x3b9af7([0x74,0x68,0x65,0x6e])](()=>_0x1b5fb7);}async function _0xe0e0b8(){await _0x2eab6b,_0x37fbc2[_0x3b9af7([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b9af7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2a12fd,_0x37fbc2[_0x3b9af7([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b9af7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2a12fd,_0x37fbc2[_0x3b9af7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3b9af7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1ef5a0(){return _0x602aa0(_0x3b9af7([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4478f8(_0x3b9af7([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3b9af7([0x73,0x74,0x61,0x74,0x65])]==_0x3b9af7([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3bf3ec(){return _0x602aa0(_0x3b9af7([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 _0x9f1a3b(){return _0x602aa0(_0x3b9af7([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x21daf9(_0x36e1ea){const _0x20cd18=_0x4bc47e();_0x37fbc2[_0x20cd18]=_0x3b9af7([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x36e1ea,_0x36e1ea!=_0x3b9af7([0x56,0x61,0x6c,0x69,0x64])&&_0xe0e0b8();}function _0x4bc47e(){const _0x10193a=window[_0x3b9af7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3b9af7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3b9af7([0x6e,0x6f,0x77])]())[_0x3b9af7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3b9af7([0x2e]),'');let _0x5c58c1=_0x3b9af7([0x52]);for(let _0x37744a=0x0;_0x37744a<_0x10193a[_0x3b9af7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x37744a+=0x2){let _0x258cd2=window[_0x3b9af7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x10193a[_0x3b9af7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x37744a,_0x37744a+0x2));_0x258cd2>=_0x1c4eb7[_0x3b9af7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x258cd2-=_0x1c4eb7[_0x3b9af7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5c58c1+=_0x1c4eb7[_0x258cd2];}return _0x5c58c1;}function _0x5d628a(){const _0x5752c1=_0x4e0f0e[_0x3b9af7([0x73,0x70,0x6c,0x69,0x74])](_0x3b9af7([0x2e]));if(0x3!=_0x5752c1[_0x3b9af7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5e5b2d(_0x5752c1[0x1]);function _0x5e5b2d(_0x926cca){const _0x34825a=_0x28c1e4(_0x926cca);return _0x34825a&&_0x1b0c4a()?_0x34825a:null;function _0x1b0c4a(){const _0x5eb7bd=_0x34825a[_0x3b9af7([0x6a,0x74,0x69])],_0x364cc3=window[_0x3b9af7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5eb7bd[_0x3b9af7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5eb7bd[_0x3b9af7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1dc039={..._0x34825a,[_0x3b9af7([0x6a,0x74,0x69])]:_0x5eb7bd[_0x3b9af7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5eb7bd[_0x3b9af7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1dc039[_0x3b9af7([0x76,0x63])],_0x461b7f(_0x1dc039)==_0x364cc3;}}}async function _0x50d228(){let _0x4062a4=!0x0;try{const _0x1fdb38=_0x4e0f0e[_0x3b9af7([0x73,0x70,0x6c,0x69,0x74])](_0x3b9af7([0x2e])),[_0x134ffe,_0x491a36,_0x4e3f4c]=_0x1fdb38;return _0x300647(_0x134ffe),await _0x3f682c(_0x134ffe,_0x491a36,_0x4e3f4c),_0x4062a4;}catch{return!0x1;}function _0x300647(_0x5d7c1b){const _0x570437=_0x28c1e4(_0x5d7c1b);_0x570437&&_0x570437[_0x3b9af7([0x61,0x6c,0x67])]==_0x3b9af7([0x45,0x53,0x32,0x35,0x36])||(_0x4062a4=!0x1);}async function _0x3f682c(_0x986b55,_0x1b90c5,_0x14ae3b){const _0x164636=window[_0x3b9af7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3b9af7([0x66,0x72,0x6f,0x6d])](_0x341bb6(_0x14ae3b),_0x204f2d=>_0x204f2d[_0x3b9af7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4d82fe=new window[(_0x3b9af7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3b9af7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x986b55+_0x3b9af7([0x2e])+_0x1b90c5),_0x2e27fb=window[_0x3b9af7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3b9af7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2e27fb)return;const _0x435a81=await _0x2e27fb[_0x3b9af7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3b9af7([0x6a,0x77,0x6b]),_0x4e8c43,{[_0x3b9af7([0x6e,0x61,0x6d,0x65])]:_0x3b9af7([0x45,0x43,0x44,0x53,0x41]),[_0x3b9af7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3b9af7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3b9af7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2e27fb[_0x3b9af7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3b9af7([0x6e,0x61,0x6d,0x65])]:_0x3b9af7([0x45,0x43,0x44,0x53,0x41]),[_0x3b9af7([0x68,0x61,0x73,0x68])]:{[_0x3b9af7([0x6e,0x61,0x6d,0x65])]:_0x3b9af7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x435a81,_0x164636,_0x4d82fe)||(_0x4062a4=!0x1);}}function _0x28c1e4(_0x39ddca){return _0x39ddca[_0x3b9af7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3b9af7([0x65,0x79]))?JSON[_0x3b9af7([0x70,0x61,0x72,0x73,0x65])](_0x341bb6(_0x39ddca)):null;}function _0x341bb6(_0x392167){return window[_0x3b9af7([0x61,0x74,0x6f,0x62])](_0x392167[_0x3b9af7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3b9af7([0x2b]))[_0x3b9af7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3b9af7([0x2f])));}function _0x461b7f(_0x3c81d2){let _0x306481=0x1505;function _0x5c8b20(_0x1a7adc){for(let _0x2bac02=0x0;_0x2bac02<_0x1a7adc[_0x3b9af7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2bac02++){const _0x4cf3ef=_0x1a7adc[_0x3b9af7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2bac02);_0x306481=(_0x306481<<0x5)+_0x306481+_0x4cf3ef,_0x306481&=_0x306481;}}function _0x689e9b(_0x2e0646){Array[_0x3b9af7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2e0646)?_0x2e0646[_0x3b9af7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x689e9b):_0x2e0646&&typeof _0x2e0646==_0x3b9af7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3b9af7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2e0646)[_0x3b9af7([0x73,0x6f,0x72,0x74])]()[_0x3b9af7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x208563,_0x3fba8e])=>{_0x5c8b20(_0x208563),_0x689e9b(_0x3fba8e);}):_0x5c8b20(window[_0x3b9af7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2e0646));}return _0x689e9b(_0x3c81d2),_0x306481>>>0x0;}function _0x475cee(_0x124eb7){return _0x124eb7[_0x3b9af7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3b9af7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3b9af7([0x30]));}function _0x1198fa(_0x56dd2d){return _0x56dd2d[_0x3b9af7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3b9af7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3b9af7([0x6a,0x6f,0x69,0x6e])]('');}function _0x602aa0(_0x653b53){return _0x37fbc2[_0x3b9af7([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3b9af7([0x68,0x61,0x73])](_0x653b53);}function _0x4478f8(_0x276c81){return _0x37fbc2[_0x3b9af7([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3b9af7([0x67,0x65,0x74])](_0x276c81);}function _0x2a12fd(){}function _0x3b9af7(_0x1d9b06){return _0x1d9b06['map'](_0x3fd939=>String['fromCharCode'](_0x3fd939))['join']('');}_0x21daf9(await _0x9fc1e7());}(this);}set['adapter'](_0x54e1a8){if(this['_adapter'])throw new _0x1d5f66('track-changes-adapter-already-set',this);this['_adapter']=_0x54e1a8;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xe8540d=!0x1,toJSON:_0x3f601c=!0x1}={}){const _0x56dd4b=[];for(const _0x2e58b5 of this['_suggestions']['values']())_0xe8540d&&!_0x2e58b5['isInContent']||_0x56dd4b['push'](_0x2e58b5);return _0x3f601c?_0x56dd4b['map'](_0x6eafc=>_0x6eafc['toJSON']()):_0x56dd4b;}['getSuggestion'](_0x2781bc){const _0x325453=this['_suggestions']['get'](_0x2781bc);if(!_0x325453)throw new _0x1d5f66('track-changes-suggestion-not-found',this);return _0x325453;}['hasSuggestion'](_0x5d95fa){return this['_suggestions']['has'](_0x5d95fa);}['addSuggestionData'](_0x21f560){const {authorId:_0x5b75f8,id:_0x317c76,originalSuggestionId:_0x4c4797,attributes:_0x1af414}=_0x21f560,[_0x20ee09,_0x43efcc]=_0x21f560['type']['split'](':'),_0x191b0b=this['_suggestions']['get'](_0x317c76)||this['_createSuggestion'](_0x20ee09,_0x43efcc,_0x317c76,_0x5b75f8,_0x1af414,_0x4c4797);if(this['_addThreadToSuggestion'](_0x191b0b),this['_checkSuggestionCorrectness'](_0x191b0b,_0x20ee09,_0x43efcc||null,_0x5b75f8),_0x191b0b['createdAt']=_0x21f560['createdAt'],_0x191b0b['_isDataLoaded']=!0x0,_0x1af414&&_0x1af414['@external']){const _0x23aef0=_0x1af414['@external'],_0x4b2a62=this['_getExternalAuthor'](_0x23aef0['authorName']);_0x191b0b['authoredAt']=_0x23aef0['createdAt'],_0x191b0b['author']=_0x4b2a62,_0x191b0b['isExternal']=!0x0;}else _0x191b0b['authoredAt']=_0x21f560['createdAt'];switch(_0x21f560['data']&&(_0x191b0b['data']=_0x21f560['data']),_0x21f560['attributes']&&(_0x191b0b['attributes']=_0x21f560['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x191b0b['_saved']=!0x0),this['_suggestionState']['get'](_0x191b0b)){case'notReady':this['_suggestionState']['set'](_0x191b0b,'dataReady');break;case'markerReady':_0x191b0b['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x191b0b])),this['_refreshSuggestionsChain'](new Set([_0x191b0b])),this['_suggestionState']['set'](_0x191b0b,'ready'),this['fire']('suggestionLoaded',_0x191b0b)):this['_suggestionState']['set'](_0x191b0b,'removed');}return _0x191b0b;}['acceptSuggestion'](_0x45f9bb){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x447f87 of _0x45f9bb['getAllAdjacentSuggestions']())_0x447f87['accept']();});});}['discardSuggestion'](_0x461453){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x25526b of _0x461453['getAllAdjacentSuggestions']())_0x25526b['discard']();});});}['enableCommand'](_0x2acd5d,_0xed7daf){const _0x598510=this['editor']['commands']['get'](_0x2acd5d);if(!_0x598510)throw new _0x1d5f66('track-changes-command-not-found',this,{'commandName':_0x2acd5d});if(this['_enabledCommands']['has'](_0x598510))throw new _0x1d5f66('track-changes-enable-command-twice',this,{'commandName':_0x2acd5d});this['_enabledCommands']['add'](_0x598510),_0xed7daf&&_0x598510['on']('execute',(_0x554fb6,_0x62cfa9)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x62cfa9['length']>0x0&&_0x62cfa9[_0x62cfa9['length']-0x1]&&_0x62cfa9[_0x62cfa9['length']-0x1]['forceDefaultExecution']?_0x62cfa9['pop']():(_0x554fb6['return']=_0xed7daf((..._0x570886)=>_0x598510['execute'](..._0x570886,{'forceDefaultExecution':!0x0}),..._0x62cfa9),_0x554fb6['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4549c0){let _0x5633c4,_0xf967d8;const _0xbb79d=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5633c4=_0x4549c0();}catch(_0x2bca63){_0xf967d8=_0x2bca63;}return _0xbb79d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xf967d8&&_0x1d5f66['rethrowUnexpectedError'](_0xf967d8,this),_0x5633c4;}['markInsertion'](_0x5104a9,_0x45c91c=null,_0x38d54a={}){if(_0x5104a9['isCollapsed'])return null;const _0x416540=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x38d54a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x7d318c,meta:_0x219a6b}of this['_findSuggestions'](_0x5104a9,'insertion'))if(_0x219a6b['isOwn']){if(!_0x219a6b['isNextTo']){if(_0x219a6b['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x7d318c,_0x38d54a))continue;return _0x7d318c;}if(zt(_0x7d318c,_0x38d54a))return _0x7d318c;this['_breakSuggestionMarker'](_0x7d318c,_0x5104a9['start'],_0x5104a9['end']);break;}if(_0x45c91c==_0x7d318c['subType']&&zt(_0x7d318c,_0x38d54a)){const _0x4fe278=_0x7d318c['getFirstRange']();return _0x4fe278['start']['isEqual'](_0x5104a9['end'])?this['_setSuggestionRange'](_0x7d318c,this['_model']['createRange'](_0x5104a9['start'],_0x4fe278['end'])):this['_setSuggestionRange'](_0x7d318c,this['_model']['createRange'](_0x4fe278['start'],_0x5104a9['end'])),_0x7d318c;}}const _0x599fb6=_0x59fa6d(),_0x29cc94=_0x416540['id'],_0x575d7e=_0x45c91c?'insertion:'+_0x45c91c:'insertion',_0x29dc56=this['_setSuggestionData']({'id':_0x599fb6,'type':_0x575d7e,'createdAt':new Date(),'authorId':_0x29cc94,'attributes':_0x38d54a});return this['_addSuggestionMarker'](_0x575d7e,_0x599fb6,_0x29cc94,_0x5104a9),_0x29dc56;}['markMultiRangeInsertion'](_0x5ad541,_0x5809ca='multi',_0x427101={}){const _0x42f14d=this['editor']['plugins']['get']('Users')['me'],_0x44388d=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5809ca,'join');this['_trackingSessionId']&&(_0x427101['trackingSessionId']=this['_trackingSessionId']);for(const _0x3dacc1 of this['getSuggestions']())if(_0x3dacc1['author']['id']==_0x42f14d['id']&&'insertion'==_0x3dacc1['type']&&_0x3dacc1['subType']==_0x5809ca&&zt(_0x3dacc1,_0x427101)&&(_0x44388d(_0x3dacc1['getRanges'](),_0x5ad541)||_0x44388d(_0x5ad541,_0x3dacc1['getRanges']()))){for(const _0x520578 of _0x5ad541)_0x3dacc1['addRange'](_0x520578);return _0x3dacc1;}for(const {suggestion:_0x4f7024,meta:_0x5b7c14}of this['_findSuggestions'](_0x5ad541,'insertion')){if(!_0x5b7c14['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5b7c14['containsRangeInObject'])continue;if(!zt(_0x4f7024,_0x427101))continue;let _0xa94df0=!0x0;for(const _0x3df67f of _0x4f7024['getRanges']())for(const _0x121823 of _0x5ad541)if(!_0x3df67f['containsRange'](_0x121823)){_0xa94df0=!0x1;break;}if(_0xa94df0)return _0x4f7024;}const _0x35e934=_0x59fa6d(),_0x3d1c14=_0x42f14d['id'],_0x35a2c0='insertion:'+_0x5809ca,_0x3cbb92=this['_setSuggestionData']({'id':_0x35e934,'type':_0x35a2c0,'createdAt':new Date(),'authorId':_0x3d1c14,'attributes':_0x427101});for(const _0x2ed2e7 of _0x5ad541)this['_addSuggestionMarker'](_0x35a2c0,_0x35e934,_0x3d1c14,_0x2ed2e7,Suggestion['getMultiRangeId']());return _0x3cbb92;}['markInlineFormat'](_0x200825,_0x753d5,_0x1820b5=null,_0x4be0de={}){if(_0x1820b5=_0x1820b5||Pt(_0x753d5),_0x200825['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x4be0de['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2ee03a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1820b5,'accept');return this['forceDefaultExecution'](()=>_0x2ee03a([_0x200825],_0x753d5,_0x4be0de)),null;}const _0x76ede8=this['editor']['plugins']['get']('Users')['me'],_0x1ee423=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xa6367a,meta:_0x6fa2a9}of this['_findSuggestions'](_0x200825,'insertion'))_0x6fa2a9['isOwn']&&!_0x6fa2a9['isInsideObject']&&_0x1ee423['push'](..._0xa6367a['getRanges']());}const _0x56193f=function(_0x17cd6d,_0x57d9d0){const _0x14521b=[];for(const _0x553680 of _0x57d9d0){const _0x41f575=_0x17cd6d['getIntersection'](_0x553680);_0x41f575&&_0x14521b['push'](_0x41f575);}return _0x14521b;}(_0x200825,_0x1ee423),_0x1a82ec=function(_0x199c5a,_0x247de3){const _0x5ba15c=[_0x199c5a];for(const _0x49569d of _0x247de3){let _0x546eb6=0x0;for(;_0x546eb6<_0x5ba15c['length'];){const _0x5c0046=_0x5ba15c[_0x546eb6]['getDifference'](_0x49569d);_0x5ba15c['splice'](_0x546eb6,0x1,..._0x5c0046),_0x546eb6+=_0x5c0046['length'];}}return _0x5ba15c;}(_0x200825,_0x1ee423);_0x56193f['length']&&this['_model']['change'](()=>{for(const _0x114afc of _0x56193f){const _0x216cb3=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1820b5,'accept');this['forceDefaultExecution'](()=>_0x216cb3([_0x114afc],_0x753d5,_0x4be0de));}});for(const _0x4d9e62 of _0x1a82ec){let _0x496506=null,_0x73aac9=_0x4d9e62['start'],_0x232b67=_0x4d9e62['end'];for(const {suggestion:_0x5799de,meta:_0xdb61be}of this['_findSuggestions'](_0x4d9e62,'formatInline')){if(!_0xdb61be['isOwn'])continue;if(_0x5799de['subType']!=_0x1820b5)continue;if(!zt(_0x5799de,_0x4be0de))continue;const _0x311c5a=_0x5799de['getFirstRange']();if(_0x311c5a['containsRange'](_0x4d9e62,!0x0))return null;_0x73aac9=_0x73aac9['isBefore'](_0x311c5a['start'])?_0x73aac9:_0x311c5a['start'],_0x232b67=_0x232b67['isAfter'](_0x311c5a['end'])?_0x232b67:_0x311c5a['end'],_0x496506?_0x311c5a['start']['isBefore'](_0x496506['getFirstRange']()['start'])?(_0x496506['removeMarkers'](),_0x496506=_0x5799de):_0x5799de['removeMarkers']():_0x496506=_0x5799de;}const _0x2ad508=this['_model']['createRange'](_0x73aac9,_0x232b67);if(_0x496506)this['_setSuggestionRange'](_0x496506,_0x2ad508);else{const _0x4e462c=_0x59fa6d(),_0x43855b=_0x76ede8['id'];this['_setSuggestionData']({'id':_0x4e462c,'type':'formatInline:'+_0x1820b5,'data':_0x753d5,'createdAt':new Date(),'authorId':_0x43855b,'attributes':_0x4be0de}),this['_addSuggestionMarker']('formatInline:'+_0x1820b5,_0x4e462c,_0x43855b,_0x2ad508);}}return null;}['markBlockFormat'](_0x510c5a,_0x23333c,_0x51d547=[],_0x2dd136=null,_0x458ec2={}){_0x23333c['formatGroupId']||(_0x23333c['formatGroupId']=_0x23333c['commandName']),_0x23333c['multipleBlocks']=_0x510c5a['is']('range'),_0x2dd136=_0x2dd136||Pt(_0x23333c);const _0x33227e=_0x51d547['map'](_0x1f3105=>Vt(_0x1f3105,this['_model'])),_0x38e980=_0x510c5a['is']('range')?_0x510c5a:Vt(_0x510c5a,this['_model']);if(this['_trackingSessionId']&&(_0x458ec2['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3c85a4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2dd136,'accept');return this['forceDefaultExecution'](()=>_0x3c85a4([_0x38e980],_0x23333c,_0x458ec2)),null;}_0x33227e['push'](_0x38e980);let _0x2827ec=!0x0;for(const _0x27a213 of _0x33227e)if(!this['_rangeIsInLocalUserInsertion'](_0x27a213)){_0x2827ec=!0x1;break;}if(_0x2827ec&&'always'!==this['_trackFormatChanges']){const _0x5aa47e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2dd136,'accept');return this['forceDefaultExecution'](()=>_0x5aa47e([_0x38e980],_0x23333c,_0x458ec2)),null;}let _0x4bc514=null,_0x5cb569=_0x38e980['start'],_0x2254d3=_0x38e980['end'];for(const {suggestion:_0x4313d7,meta:_0x5d6602}of this['_findSuggestions'](_0x38e980,'formatBlock')){if(!_0x5d6602['isOwn'])continue;if(_0x5d6602['isNextTo']||_0x5d6602['containsRangeInObject']||_0x5d6602['isInsideObject'])continue;if(_0x4313d7['data']['formatGroupId']!=_0x23333c['formatGroupId'])continue;if(!zt(_0x4313d7,_0x458ec2))continue;const _0x5f3bdb=_0x4313d7['getFirstRange']();if(_0x4313d7['subType']==_0x2dd136){if(_0x5f3bdb['containsRange'](_0x38e980,!0x0))return null;_0x5cb569=_0x5cb569['isBefore'](_0x5f3bdb['start'])?_0x5cb569:_0x5f3bdb['start'],_0x2254d3=_0x2254d3['isAfter'](_0x5f3bdb['end'])?_0x2254d3:_0x5f3bdb['end'],_0x4bc514?_0x5f3bdb['start']['isBefore'](_0x4bc514['getFirstRange']()['start'])?(_0x4bc514['removeMarkers'](),_0x4bc514=_0x4313d7):_0x4313d7['removeMarkers']():_0x4bc514=_0x4313d7;}else{const _0x1c9fa0=_0x38e980['getIntersection'](_0x5f3bdb);this['_cutOutSuggestionMarker'](_0x4313d7,_0x1c9fa0);}}const _0x8d0b51=this['editor']['plugins']['get']('Users')['me'],_0xdbb85a=_0x59fa6d(),_0x168ffd=_0x8d0b51['id'];if(_0x4bc514)return this['_setSuggestionRange'](_0x4bc514,this['_model']['createRange'](_0x5cb569,_0x2254d3)),_0x4bc514;{const _0x10d7c6=this['_setSuggestionData']({'id':_0xdbb85a,'type':'formatBlock:'+_0x2dd136,'data':_0x23333c,'createdAt':new Date(),'authorId':_0x168ffd,'attributes':_0x458ec2});return this['_addSuggestionMarker']('formatBlock:'+_0x2dd136,_0xdbb85a,_0x168ffd,this['_model']['createRange'](_0x5cb569,_0x2254d3)),_0x10d7c6;}}['markMultiRangeBlockFormat'](_0x5c0480,_0x5bb0c0,_0x4448f9=[],_0x1ac9c4=null,_0xe0c113={}){_0x5bb0c0['formatGroupId']||(_0x5bb0c0['formatGroupId']=_0x5bb0c0['commandName']);const _0x14a7bb=_0x5c0480[0x0];_0x5bb0c0['multipleBlocks']=_0x14a7bb['is']('range'),_0x1ac9c4=_0x1ac9c4||Pt(_0x5bb0c0);const _0x4e542e=_0x4448f9['map'](_0x263c01=>Vt(_0x263c01,this['_model'])),_0x5520f2=_0x14a7bb['is']('range')?_0x5c0480:_0x5c0480['map'](_0x165552=>Vt(_0x165552,this['_model']));if(this['_trackingSessionId']&&(_0xe0c113['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x22a742=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ac9c4,'accept');return this['forceDefaultExecution'](()=>_0x22a742(_0x5520f2,_0x5bb0c0,_0xe0c113)),null;}_0x4e542e['push'](..._0x5520f2);let _0x2dc412=!0x0;for(const _0x5d55c1 of _0x4e542e)if(!this['_rangeIsInLocalUserInsertion'](_0x5d55c1)){_0x2dc412=!0x1;break;}if(_0x2dc412&&'always'!==this['_trackFormatChanges']){const _0x4d503c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ac9c4,'accept');return this['forceDefaultExecution'](()=>_0x4d503c(_0x5520f2,_0x5bb0c0,_0xe0c113)),null;}const _0x3b30e3=this['editor']['plugins']['get']('Users')['me'];for(const _0x21411f of this['getSuggestions']()){const _0x4f89da=_0x21411f['data'];if(_0x21411f['author']['id']!=_0x3b30e3['id'])continue;if('formatBlock'!=_0x21411f['type']||_0x4f89da['formatGroupId']!=_0x5bb0c0['formatGroupId'])continue;if(!zt(_0x21411f,_0xe0c113))continue;const _0x71f1f0=_0x21411f['subType']==_0x1ac9c4;for(let _0x5833a4=0x0;_0x5833a4<_0x5520f2['length'];_0x5833a4++){const _0x725153=_0x5520f2[_0x5833a4];for(const _0x1390ba of _0x21411f['getMarkers']()){const _0x45ba14=_0x1390ba['getRange']();if(_0x725153['isEqual'](_0x45ba14)){_0x71f1f0?(_0x5520f2['splice'](_0x5833a4,0x1),_0x5833a4--):_0x21411f['removeMarker'](_0x1390ba['name']);break;}}}}if(0x0==_0x5520f2['length'])return null;const _0x200e20=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ac9c4,'join');for(const _0xee4016 of this['getSuggestions']()){const _0x3285e7=_0xee4016['data'];if(_0xee4016['author']['id']==_0x3b30e3['id']&&('formatBlock'==_0xee4016['type']&&_0x3285e7['formatGroupId']==_0x5bb0c0['formatGroupId']&&_0xee4016['subType']==_0x1ac9c4&&zt(_0xee4016,_0xe0c113)&&(_0x200e20(_0xee4016['getRanges'](),_0x5520f2)||_0x200e20(_0x5520f2,_0xee4016['getRanges']())))){for(const _0x168fde of _0x5520f2)_0xee4016['addRange'](_0x168fde);return _0xee4016;}}const _0x160d58=_0x59fa6d(),_0x2b14c7=_0x3b30e3['id'],_0x149bd1='formatBlock:'+_0x1ac9c4,_0x4e2296=this['_setSuggestionData']({'id':_0x160d58,'type':_0x149bd1,'data':_0x5bb0c0,'createdAt':new Date(),'authorId':_0x2b14c7,'attributes':_0xe0c113});for(const _0x2e7aff of _0x5520f2)this['_addSuggestionMarker'](_0x149bd1,_0x160d58,_0x2b14c7,_0x2e7aff,Suggestion['getMultiRangeId']());return _0x4e2296;}['markDeletion'](_0x22932b,_0x2d93bc=null,_0x158a44={}){if(_0x22932b['isCollapsed'])return null;const _0x43601d=this['editor']['plugins']['get']('Users')['me'],_0x3106a0=new _0x2192a8(_0x22932b['start'],_0x22932b['end']);this['_trackingSessionId']&&(_0x158a44['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x592ccd,meta:_0x46b620}of this['_findSuggestions'](_0x3106a0,'insertion'))if(_0x46b620['isOwn']&&!_0x46b620['isNextTo']){if(_0x592ccd['isMultiRange']){const _0x33fae0=_0x592ccd['getRanges']()['filter'](_0x1094e6=>'$graveyard'!=_0x1094e6['root']['rootName']);_0x33fae0['every'](_0x235203=>_0x3106a0['containsRange'](_0x235203,!0x0))&&_0x592ccd['discard']();if(_0x33fae0['some'](_0x4c7a89=>_0x4c7a89['containsRange'](_0x3106a0,!0x0))){const _0x3ffb1a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2d93bc,'accept');return this['forceDefaultExecution'](()=>_0x3ffb1a([_0x3106a0],null,_0x158a44)),null;}}else{const _0x52d410=_0x3106a0['getIntersection'](_0x592ccd['getFirstRange']());null!==_0x52d410&&_0x592ccd['_onDiscard']([_0x52d410],null,_0x158a44);}}if(_0x3106a0['detach'](),_0x3106a0['isCollapsed']||'$graveyard'==_0x3106a0['root']['rootName'])return null;let _0x1902c0=null,_0x84ff3d=_0x3106a0['start'],_0x5a8a7b=_0x3106a0['end'];const _0x31e0c6=this['_findSuggestions'](_0x3106a0,'deletion');for(const {suggestion:_0x5740be,meta:_0x1f3281}of _0x31e0c6){const _0x55efc9=this['_model']['createRange'](_0x84ff3d,_0x5a8a7b);if(_0x1f3281['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1f3281['containsRangeInObject']&&!_0x1f3281['isInsideObject'])){if(_0x5740be['isMultiRange']){if(!zt(_0x5740be,_0x158a44))continue;let _0x42b108=!0x0;for(const _0x31cfc3 of _0x5740be['getRanges']()){if(_0x31cfc3['containsRange'](_0x55efc9,!0x0))return _0x5740be;_0x55efc9['containsRange'](_0x31cfc3)||(_0x42b108=!0x1);}_0x42b108&&_0x5740be['discard']();}else{const _0x1d6fd7=_0x5740be['getFirstRange']();if(_0x1d6fd7['containsRange'](_0x55efc9,!0x0))return _0x5740be;if(!zt(_0x5740be,_0x158a44)){_0x55efc9['containsRange'](_0x1d6fd7)?_0x5740be['removeMarkers']():_0x1d6fd7['containsPosition'](_0x84ff3d)?_0x84ff3d=_0x1d6fd7['end']:_0x1d6fd7['containsPosition'](_0x5a8a7b)&&(_0x5a8a7b=_0x1d6fd7['start']);continue;}_0x84ff3d=_0x84ff3d['isBefore'](_0x1d6fd7['start'])?_0x84ff3d:_0x1d6fd7['start'],_0x5a8a7b=_0x5a8a7b['isAfter'](_0x1d6fd7['end'])?_0x5a8a7b:_0x1d6fd7['end'],_0x158a44=Object['assign']({},_0x5740be['attributes']),_0x1902c0?_0x1d6fd7['start']['isBefore'](_0x1902c0['getFirstRange']()['start'])?(_0x1902c0['removeMarkers'](),_0x1902c0=_0x5740be):_0x5740be['removeMarkers']():_0x1902c0=_0x5740be;}}}if(_0x1902c0)return this['_setSuggestionRange'](_0x1902c0,this['_model']['createRange'](_0x84ff3d,_0x5a8a7b)),_0x1902c0;{const _0x2dd1d1=_0x59fa6d(),_0x567af5=this['_model']['createRange'](_0x84ff3d,_0x5a8a7b),_0x3c7c49=_0x43601d['id'],_0x17c3a8=_0x2d93bc?'deletion:'+_0x2d93bc:'deletion',_0x37d5f4=this['_setSuggestionData']({'id':_0x2dd1d1,'type':_0x17c3a8,'createdAt':new Date(),'authorId':_0x3c7c49,'attributes':_0x158a44});return this['_addSuggestionMarker'](_0x17c3a8,_0x2dd1d1,_0x3c7c49,_0x567af5),_0x37d5f4;}}['markMultiRangeDeletion'](_0x21c31e,_0x2892a1='multi',_0x54d726={}){const _0x3023c1=this['editor']['plugins']['get']('Users')['me'],_0x612c3f=_0x21c31e['map'](_0x45c1b4=>new _0x2192a8(_0x45c1b4['start'],_0x45c1b4['end'])),_0xac51de=new Set();this['_trackingSessionId']&&(_0x54d726['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x42d3f0,meta:_0x3748cf}of this['_findSuggestions'](_0x612c3f,'insertion'))_0x3748cf['isOwn']&&!_0x3748cf['isNextTo']&&_0xac51de['add'](_0x42d3f0);for(const _0x4d1195 of _0xac51de)if(_0x4d1195['isMultiRange']){const _0x2d5d49=_0x4d1195['getRanges']();(!_0x4d1195['attributes']||!_0x4d1195['attributes']['skipNestingCheck'])&&(_0x2d5d49['every'](_0x5974be=>_0x612c3f['some'](_0x587950=>_0x587950['containsRange'](_0x5974be,!0x0)))&&_0x4d1195['discard']());if(_0x612c3f['every'](_0x86017b=>_0x2d5d49['some'](_0x58a119=>_0x58a119['containsRange'](_0x86017b,!0x0)))){const _0x54bd63=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2892a1,'accept');return this['forceDefaultExecution'](()=>_0x54bd63(_0x21c31e,null,_0x54d726)),null;}}else{const _0x31e13a=_0x4d1195['getFirstRange']();_0x612c3f['some'](_0x24e772=>_0x24e772['containsRange'](_0x31e13a,!0x0))&&_0x4d1195['discard']();if(_0x612c3f['every'](_0x3e6d1d=>_0x31e13a['containsRange'](_0x3e6d1d,!0x0))){const _0x458538=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2892a1,'accept');return this['forceDefaultExecution'](()=>_0x458538(_0x612c3f,null,_0x54d726)),null;}}const _0x49d3ab=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2892a1,'join');let _0x3f6cb6=null;for(const _0x3d3457 of this['getSuggestions']())if(_0x3d3457['author']['id']==_0x3023c1['id']&&_0x3d3457['isInContent']&&'deletion'==_0x3d3457['type']&&_0x3d3457['subType']==_0x2892a1&&zt(_0x3d3457,_0x54d726)&&(_0x49d3ab(_0x3d3457['getRanges'](),_0x612c3f)||_0x49d3ab(_0x612c3f,_0x3d3457['getRanges']()))){if(_0x3f6cb6){if(_0x3d3457['commentThread']&&_0x3d3457['commentThread']['length'])continue;for(const _0x1aeb87 of _0x3d3457['getRanges']())_0x3f6cb6['isIntersectingWithRange'](_0x1aeb87)||_0x3f6cb6['addRange'](_0x1aeb87);_0x3d3457['removeMarkers']();}else{_0x3f6cb6=_0x3d3457;for(const _0x3ea474 of _0x612c3f)_0x3d3457['isIntersectingWithRange'](_0x3ea474)||_0x3d3457['addRange'](_0x3ea474);}}if(_0x3f6cb6)return _0x3f6cb6;_0xac51de['clear']();for(const {suggestion:_0x20e25f,meta:_0x360d7a}of this['_findSuggestions'](_0x612c3f,'deletion'))_0x360d7a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x360d7a['containsRangeInObject']&&!_0x360d7a['isInsideObject'])&&zt(_0x20e25f,_0x54d726)&&_0xac51de['add'](_0x20e25f);for(const _0x3baaa0 of _0xac51de){const _0x47cce6=_0x3baaa0['getRanges']();if(!_0x54d726||!_0x54d726['skipNestingCheck']){if(_0x612c3f['every'](_0x20f22f=>_0x47cce6['some'](_0x425063=>_0x425063['containsRange'](_0x20f22f,!0x0))))return _0x3baaa0;}(!_0x3baaa0['attributes']||!_0x3baaa0['attributes']['skipNestingCheck'])&&(_0x47cce6['every'](_0x1557ea=>_0x612c3f['some'](_0x3d659f=>_0x3d659f['containsRange'](_0x1557ea,!0x0)))&&_0x3baaa0['discard']());}const _0x41f1d9=_0x59fa6d(),_0x2702a1=_0x3023c1['id'],_0x18ff28='deletion:'+_0x2892a1,_0x18058d=this['_setSuggestionData']({'id':_0x41f1d9,'type':_0x18ff28,'createdAt':new Date(),'authorId':_0x2702a1,'attributes':_0x54d726});for(const _0x36c1e0 of _0x612c3f)_0x36c1e0['detach'](),_0x36c1e0['isCollapsed']||'$graveyard'==_0x36c1e0['root']['rootName']||this['_addSuggestionMarker'](_0x18ff28,_0x41f1d9,_0x2702a1,_0x36c1e0,Suggestion['getMultiRangeId']());return _0x18058d;}['markAttributeChange'](_0x44c65c,_0x3569da,_0x12b9f6,_0x427a0a,_0x1836bc){if(_0x44c65c['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2ae15c=this['editor']['plugins']['get']('Users')['me']['id'],_0x17a2b7=Array['from'](this['_suggestions']['values']())['filter'](_0xe161b5=>'attribute'==_0xe161b5['type']&&_0xe161b5['data']['key']==_0x3569da&&_0xe161b5['isIntersectingWithRange'](_0x44c65c));if(this['_trackingSessionId']&&(_0x1836bc['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x37af2c=this['_findSuggestions'](_0x44c65c,'insertion')['filter'](({meta:_0x19a855})=>_0x19a855['isOwn']&&!_0x19a855['isInsideObject']&&!_0x19a855['isNextTo'])['map'](({suggestion:_0x115b31})=>_0x115b31);_0x17a2b7['unshift'](..._0x37af2c);}const _0x26d583=new Map([[_0x44c65c,_0x12b9f6]]);for(const _0x330b65 of _0x17a2b7){const _0x45a88c='attribute'==_0x330b65['type']?_0x330b65['data']['oldValue']:void 0x0,_0x58dfba=_0x330b65['getFirstRange'](),_0x522d92=Array['from'](_0x26d583['keys']())['find'](_0x164bde=>_0x164bde['isIntersecting'](_0x58dfba));if(!_0x522d92)continue;const _0x3f7bde=_0x522d92['getDifference'](_0x58dfba);this['_suggestionsConversion']['isBlockAttribute'](_0x3569da)&&'insertion'==_0x330b65['type']&&0x0!=_0x3f7bde['length']||(_0x26d583['delete'](_0x522d92),_0x3f7bde['forEach'](_0x15f435=>{_0x26d583['set'](_0x15f435,_0x12b9f6);}),'insertion'!=_0x330b65['type']&&_0x45a88c!=_0x427a0a&&_0x26d583['set'](_0x522d92['getIntersection'](_0x58dfba),_0x45a88c));}const _0x31c66a=[];for(const [_0x1389e8,_0x358389]of _0x26d583){const _0x31ce54=_0x59fa6d(),_0x1d569f={'key':_0x3569da,'oldValue':_0x358389,'newValue':_0x427a0a};_0x3569da['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':_0x3569da});const _0xaedf69=('attribute:'+(_0x3569da+'|'+Pt({'newValue':_0x427a0a})))['substring'](0x0,0x3c),_0xb95c68=this['_setSuggestionData']({'id':_0x31ce54,'type':_0xaedf69,'data':_0x1d569f,'createdAt':new Date(),'authorId':_0x2ae15c,'attributes':_0x1836bc});_0x31c66a['push'](_0xb95c68),this['_addSuggestionMarker'](_0xaedf69,_0x31ce54,_0x2ae15c,_0x1389e8);}return _0x31c66a;}['enableDefaultAttributesIntegration'](_0x572343){this['enableCommand'](_0x572343,(_0x3608a3,..._0x241fa3)=>{this['recordAttributeChanges'](()=>{_0x3608a3(..._0x241fa3);});});}['startTrackingSession'](_0x5b45cc){return this['_trackingSessionId']=void 0x0!==_0x5b45cc?_0x5b45cc:_0x59fa6d(),this['_trackingSessionId'];}['_getAttributeKey'](_0x29fa2d){return'attribute'==_0x29fa2d['type']?Xt(_0x29fa2d['subType']):null;}['_applyOperationsAsSuggestions'](_0x2a33c4){if(0x0==_0x2a33c4['length'])return;const _0x250072=this['editor'],_0x398092=_0x250072['plugins']['get'](_0x1d267d),_0x385831=[];_0x250072['model']['change'](_0x5c9746=>{for(let _0x287cb5=0x0;_0x287cb5<_0x2a33c4['length'];_0x287cb5++){const _0x457df4=_0x2a33c4[_0x287cb5];if(_0x457df4['baseVersion']=_0x250072['model']['document']['version'],_0x457df4['isDocumentOperation']=!0x0,_0x398092['isMarkedRemoveOperation'](_0x457df4)){const _0x19640b=_0x18e42e(_0x457df4['newRange'],_0x250072['model']);_0x385831['unshift'](_0x2192a8['fromRange'](_0x19640b));}else switch(_0x457df4['type']){case'rename':{const _0x77edb3=_0x457df4['oldName'],_0x10522d=_0x457df4['newName'];if(_0x77edb3==_0x10522d)break;_0x5c9746['batch']['addOperation'](_0x457df4),_0x250072['model']['applyOperation'](_0x457df4);const _0x3d4439='$elementName',_0x508e60=_0x457df4['position'],_0x55790e=_0x250072['model']['createRange'](_0x508e60,_0x250072['model']['createPositionAt'](_0x508e60['nodeAfter'],'end'));this['markAttributeChange'](_0x55790e,_0x3d4439,_0x77edb3,_0x10522d,{'groupId':_0x59fa6d()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x12286a=_0x457df4['oldValue'],_0x2a3585=_0x457df4['newValue'];if(_0x12286a==_0x2a3585)break;_0x5c9746['batch']['addOperation'](_0x457df4),_0x250072['model']['applyOperation'](_0x457df4);const _0x508680=_0x457df4['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x508680))break;const _0x49b092=_0x18e42e(_0x457df4['range'],_0x250072['model']);this['markAttributeChange'](_0x49b092,_0x508680,_0x12286a,_0x2a3585,{'groupId':_0x59fa6d()});break;}case'insert':{_0x5c9746['batch']['addOperation'](_0x457df4),_0x250072['model']['applyOperation'](_0x457df4);if(_0x2a33c4[_0x287cb5+0x1]&&'move'==_0x2a33c4[_0x287cb5+0x1]['type'])break;const _0x3900c4=_0x457df4['position'],_0x33b166=_0x457df4['howMany'],_0x46da0a=_0x18e42e(_0x250072['model']['createRange'](_0x3900c4,_0x3900c4['getShiftedBy'](_0x33b166)),_0x250072['model']);this['markInsertion'](_0x46da0a);break;}case'split':{_0x5c9746['batch']['addOperation'](_0x457df4),_0x250072['model']['applyOperation'](_0x457df4);const _0x229377=_0x457df4['splitPosition'],_0x4f9d7e=_0x457df4['moveTargetPosition'];this['markInsertion'](_0x250072['model']['createRange'](_0x229377,_0x4f9d7e));break;}case'move':case'remove':_0x5c9746['batch']['addOperation'](_0x457df4),_0x250072['model']['applyOperation'](_0x457df4);}}for(const _0x368ab4 of _0x385831)_0x368ab4['detach'](),this['markDeletion'](_0x368ab4);});}['_setSuggestionRange'](_0x19fcf6,_0x31edc8){const _0x198779=_0x19fcf6['getFirstMarker']();this['_model']['change'](_0x3d7bb5=>{_0x3d7bb5['updateMarker'](_0x198779,{'range':_0x31edc8});});}['_addThreadToSuggestion'](_0x34c2b7){const _0x3a9a82=_0x34c2b7['id'],_0x313a5b=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3a9a82)||this['_commentsRepository']['addCommentThread']({'channelId':_0x313a5b,'threadId':_0x3a9a82,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x473d52=this['_commentsRepository']['getCommentThread'](_0x3a9a82);_0x473d52['unbind']('isRemovable'),_0x473d52['isRemovable']=!0x1,_0x34c2b7['commentThread']=_0x473d52;}['_checkSuggestionCorrectness'](_0x25ea90,_0x4e4403,_0xd58eeb,_0xf10a47){if(_0x25ea90['type']!=_0x4e4403||_0x25ea90['subType']!=_0xd58eeb||_0x25ea90['creator']['id']!=_0xf10a47)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1d5f66('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4e2832,_0x281aa0){const _0x4e67d8=_0x4e2832['getFirstRange']();if(_0x281aa0['isEqual'](_0x4e67d8))_0x4e2832['removeMarkers']();else{if(_0x4e67d8['containsRange'](_0x281aa0)){const _0x1f71ed=this['_model']['createPositionAt'](_0x281aa0['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4e2832,this['_model']['createRange'](_0x4e67d8['start'],_0x1f71ed));const _0x3a378=_0x59fa6d(),_0x4022cd=_0x4e2832['creator']['id'],_0xa1955e=_0x4e2832['type']+':'+_0x4e2832['subType'];this['_setSuggestionData']({'id':_0x3a378,'type':_0xa1955e,'createdAt':new Date(),'authorId':_0x4022cd,'data':_0x4e2832['data'],'attributes':_0x4e2832['attributes']});const _0x3ceb3b=this['_model']['createPositionAt'](_0x281aa0['end']['parent'],'after'),_0x3ccf0b=this['_model']['createRange'](_0x3ceb3b,_0x4e67d8['end']);this['_addSuggestionMarker'](_0xa1955e,_0x3a378,_0x4022cd,_0x3ccf0b);}else{if(_0x4e67d8['containsPosition'](_0x281aa0['start'])){const _0x255050=this['_model']['createPositionAt'](_0x281aa0['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4e2832,this['_model']['createRange'](_0x4e67d8['start'],_0x255050));}else{const _0x14972f=this['_model']['createPositionAt'](_0x281aa0['end']['parent'],'after');this['_setSuggestionRange'](_0x4e2832,this['_model']['createRange'](_0x14972f,_0x4e67d8['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x35e8b0){for(const {suggestion:_0x506d2d,meta:_0x2da1dd}of this['_findSuggestions'](_0x35e8b0,'insertion')){if(!_0x2da1dd['isOwn'])continue;const _0x513178=_0x506d2d['getRanges']();for(const _0xd513fd of _0x513178)if(!_0x35e8b0['getDifference'](_0xd513fd)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1c3c53){return this['editor']['plugins']['get']('Users')['getUser'](_0x1c3c53);}['_getExternalAuthor'](_0x559263){const _0x4b16dc=this['editor']['plugins']['get']('Users'),_0x5a077e=_0x56801b('external:'+_0x559263),_0x31525b=_0x4b16dc['getUser'](_0x5a077e);return _0x31525b||_0x4b16dc['addUser']({'id':_0x5a077e,'name':_0x559263});}['_createSuggestion'](_0x564be4,_0x5734a2,_0x31f99f,_0x224628,_0x774bd,_0x2d27d5){const _0x229186=this['_getAuthorFromId'](_0x224628);if(!_0x229186)throw new _0x1d5f66('track-changes-user-not-found',this,{'authorId':_0x224628,'suggestionId':_0x31f99f});const _0x1d7f47=this['_suggestionFactory']['buildSuggestion'](_0x564be4,_0x5734a2,_0x31f99f,_0x229186,_0x774bd,_0x1b7745=>{this['_updateSuggestionData'](_0x31f99f,{'attributes':_0x1b7745});const _0x5310cd=this['getSuggestion'](_0x31f99f);this['_joinWithAdjacentSuggestions'](new Set([_0x5310cd])),this['_refreshSuggestionsChain'](new Set([_0x5310cd]));},_0x2d27d5);return this['listenTo'](_0x1d7f47,'accept',()=>{this['_updateSuggestionData'](_0x31f99f,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1d7f47,'discard',()=>{this['_updateSuggestionData'](_0x31f99f,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x31f99f,_0x1d7f47),this['_suggestionState']['set'](_0x1d7f47,'notReady'),_0x1d7f47;}['_breakSuggestionMarker'](_0xa5e6f6,_0x3c9a57,_0x2b7a57){const _0x157501=_0xa5e6f6['getFirstRange'](),_0x57e742=_0x157501['start'],_0x3e6265=_0x157501['end'];this['_setSuggestionRange'](_0xa5e6f6,this['_model']['createRange'](_0x57e742,_0x3c9a57));const _0x1a688d=_0x59fa6d(),_0x56db97=_0xa5e6f6['creator']['id'],_0xded813=_0xa5e6f6['type']+(_0xa5e6f6['subType']?':'+_0xa5e6f6['subType']:'');this['_setSuggestionData']({'id':_0x1a688d,'type':_0xded813,'createdAt':new Date(),'authorId':_0x56db97,'originalSuggestionId':_0xa5e6f6['_originalSuggestionId']||_0xa5e6f6['id'],'attributes':_0xa5e6f6['attributes'],'data':_0xa5e6f6['data']});const _0x52f47f=this['_getAttributeKey'](_0xa5e6f6);('formatBlock'==_0xa5e6f6['type']||_0x52f47f&&this['_suggestionsConversion']['isBlockAttribute'](_0x52f47f))&&(_0x2b7a57=this['_model']['createPositionBefore'](_0x2b7a57['parent'])),this['_addSuggestionMarker'](_0xded813,_0x1a688d,_0x56db97,this['_model']['createRange'](_0x2b7a57,_0x3e6265));}['_findSuggestions'](_0x9ccf57,_0x518c9e=null){const _0x1108a1=[],_0x4eafca=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x9ccf57)||(_0x9ccf57=[_0x9ccf57]);for(const _0x2f9aa7 of this['getSuggestions']()){if(!_0x2f9aa7['isInContent'])continue;if(_0x518c9e&&_0x2f9aa7['type']!=_0x518c9e)continue;let _0x18c987=!0x1;for(const _0x578910 of _0x2f9aa7['getRanges']()){for(const _0x19a344 of _0x9ccf57){const _0x28aaae=_0x19a344['start']['isEqual'](_0x578910['end'])||_0x19a344['end']['isEqual'](_0x578910['start']);if(_0x28aaae||_0x19a344['getIntersection'](_0x578910)){const _0x199e3d=_0x19a344['containsRange'](_0x578910)&&Dt(this['_model']['schema'],_0x578910['start'],_0x19a344),_0x42cfc8=_0x578910['containsRange'](_0x19a344)&&Dt(this['_model']['schema'],_0x19a344['start'],_0x578910);_0x1108a1['push']({'suggestion':_0x2f9aa7,'meta':{'isOwn':_0x4eafca==_0x2f9aa7['author'],'isNextTo':_0x28aaae,'isInsideObject':_0x199e3d,'containsRangeInObject':_0x42cfc8}}),_0x18c987=!0x0;break;}}if(_0x18c987)break;}}return _0x1108a1;}['_addSuggestionMarker'](_0x5b6da0,_0x39076b,_0x54a6a6,_0x1602c1,_0x1403be){this['_model']['change'](_0x5ecf48=>{let _0x194e70='suggestion:'+_0x5b6da0+':'+_0x39076b+':'+_0x54a6a6;_0x1403be&&(_0x194e70=_0x194e70+':'+_0x1403be),_0x5ecf48['addMarker'](_0x194e70,{'range':_0x1602c1,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3ba997){const _0x1fce34=_0x3ba997['previous'],_0x171751=_0x3ba997['next'];_0x3ba997['previous']=null,_0x3ba997['next']=null,null!=_0x1fce34&&_0x1fce34['next']==_0x3ba997&&(_0x1fce34['next']=_0x171751),null!=_0x171751&&_0x171751['previous']==_0x3ba997&&(_0x171751['previous']=_0x1fce34),'ready'==this['_suggestionState']['get'](_0x3ba997)&&(this['_suggestionState']['set'](_0x3ba997,'removed'),this['fire']('suggestionUnloaded',_0x3ba997,_0x1fce34,_0x171751));}['_setSuggestionData'](_0x9846f4){const _0x1fc307=_0x9846f4['id'],_0x349236=this['addSuggestionData'](_0x9846f4);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x54a6ba=this['editor']['plugins']['get']('PendingActions'),_0x3060e4=_0x349236['hasComments'],_0x287a78=_0x349236['subType']?_0x349236['type']+':'+_0x349236['subType']:_0x349236['type'],_0x46e51d=this['editor']['locale'],_0x10561c=_0x54a6ba['add'](Tt(_0x46e51d,'PENDING_ACTION_SUGGESTION')),_0x1fcd2f={'id':_0x1fc307,'type':_0x287a78,'hasComments':_0x3060e4,'data':_0x9846f4['data']||null,'originalSuggestionId':_0x9846f4['originalSuggestionId']||null,'attributes':_0x349236['attributes']};this['_adapter']['addSuggestion'](_0x1fcd2f)['then'](_0x5ad569=>{_0x349236['_saved']=!0x0,_0x54a6ba['remove'](_0x10561c),_0x5ad569&&_0x5ad569['createdAt']&&(this['_suggestions']['get'](_0x1fc307)['createdAt']=_0x5ad569['createdAt']);})['catch'](_0x3f6a55=>{throw _0x29d360('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x349236['discard']();}),_0x349236['stopListening'](),this['_suggestions']['delete'](_0x349236['id']),this['_suggestionState']['delete'](_0x349236),_0x3f6a55;});}return _0x349236;}['_updateSuggestionData'](_0x35d5b4,_0x3af9e8){const _0x342f7e=this['editor']['plugins']['get']('PendingActions'),_0x37722b=this['getSuggestion'](_0x35d5b4);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x37722b['_saved']){const _0x26cfa3=_0x342f7e['add'](Tt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x35d5b4,_0x3af9e8)['then'](()=>{_0x342f7e['remove'](_0x26cfa3);});}else _0x37722b['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x35d5b4,_0x3af9e8);});}}['_getSuggestionData'](_0x5b24f9){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1d5f66('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5b24f9);}['_handleNewSuggestionMarker'](_0x24a760){const {id:_0x22d2b3,type:_0x5ca5e9,subType:_0x238ab4,authorId:_0x583574}=_0x2522cc(_0x24a760),_0x116984=this['_suggestions']['get'](_0x22d2b3)||this['_createSuggestion'](_0x5ca5e9,_0x238ab4,_0x22d2b3,_0x583574,{});switch(this['_checkSuggestionCorrectness'](_0x116984,_0x5ca5e9,_0x238ab4,_0x583574),this['_suggestionState']['get'](_0x116984)){case'notReady':this['_getSuggestionData'](_0x22d2b3)['then'](_0x43daf6=>{let _0x4d8a83=Promise['resolve']();_0x43daf6['hasComments']&&(_0x4d8a83=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x22d2b3})),_0x4d8a83['then'](()=>{this['addSuggestionData'](_0x43daf6)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x116984,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x22d2b3,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x116984,'ready'),this['fire']('suggestionLoaded',_0x116984);break;case'ready':this['fire']('suggestionChanged',_0x116984);}return _0x116984['addMarkerName'](_0x24a760),_0x116984;}['_refreshSuggestionsChain'](_0x575865){const _0x44c94b=Array['from'](_0x575865),_0x20661e=_0x44c94b['filter'](_0x2bb1ed=>'attribute'==_0x2bb1ed['type']);this['_refreshAttributeSuggestionsChain'](_0x20661e);const _0x519507=_0x44c94b['filter'](_0x22d388=>!_0x22d388['isMultiRange']&&'attribute'!=_0x22d388['type']),_0x2a53d2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ef974=>!_0x3ef974['isMultiRange']&&'attribute'!=_0x3ef974['type']),_0x130138=_0x2a53d2['filter'](_0x2fbc33=>!_0x575865['has'](_0x2fbc33)),_0x1d0c3e=new Map(_0x2a53d2['map'](_0x161b96=>[_0x161b96,this['_suggestionFactory']['getSuggestionCallback'](_0x161b96['type'],_0x161b96['subType'],'chain')])),_0x2bdffe=new Map(_0x2a53d2['map'](_0xa8bd63=>[_0xa8bd63,_0xa8bd63['getFirstRange']()])),_0x5940f9=new Set(),_0x4ab58e=new Set();for(let _0x566406=0x0;_0x566406<_0x519507['length'];_0x566406++)_0x1f0537(_0x519507[_0x566406],_0x519507,_0x566406+0x1);for(let _0x537db5=0x0;_0x537db5<_0x519507['length'];_0x537db5++)_0x1f0537(_0x519507[_0x537db5],_0x130138,0x0);const _0xa4b8da=new Set();for(let _0x3c2e16=0x0;_0x3c2e16<_0x519507['length'];_0x3c2e16++){const _0x30c372=_0x519507[_0x3c2e16];!_0x4ab58e['has'](_0x30c372)&&_0x30c372['previous']&&(_0xa4b8da['add'](_0x30c372['previous']),_0x30c372['previous']['next']===_0x30c372&&(_0x30c372['previous']['next']=null),_0x30c372['previous']=null),!_0x5940f9['has'](_0x30c372)&&_0x30c372['next']&&(_0xa4b8da['add'](_0x30c372['next']),_0x30c372['next']['previous']===_0x30c372&&(_0x30c372['next']['previous']=null),_0x30c372['next']=null);}function _0x1f0537(_0x3ad618,_0x3546e3,_0x41067e){for(let _0x7980c7=_0x41067e;_0x7980c7<_0x3546e3['length'];_0x7980c7++){const _0x414f6f=_0x149e28(_0x3ad618,_0x3546e3[_0x7980c7]);_0x414f6f&&(_0x414f6f[0x0]['next']=_0x414f6f[0x1],_0x414f6f[0x1]['previous']=_0x414f6f[0x0],_0x5940f9['add'](_0x414f6f[0x0]),_0x4ab58e['add'](_0x414f6f[0x1]));}}function _0x149e28(_0x28ef48,_0x135518){if(_0x28ef48['author']['id']!==_0x135518['author']['id'])return null;const _0x54bf54=_0x1d0c3e['get'](_0x28ef48)(_0x28ef48,_0x135518,_0x2bdffe['get'](_0x28ef48),_0x2bdffe['get'](_0x135518));if(!_0x54bf54)return null;return _0x1d0c3e['get'](_0x135518)(_0x28ef48,_0x135518,_0x2bdffe['get'](_0x28ef48),_0x2bdffe['get'](_0x135518))?_0x54bf54[0x1]['commentThread']&&_0x54bf54[0x1]['commentThread']['length']?null:_0x54bf54:null;}_0xa4b8da['size']&&this['_refreshSuggestionsChain'](_0xa4b8da);}['_refreshAttributeSuggestionsChain'](_0x3082b8){if(0x0==_0x3082b8['length'])return;const _0x361b46=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4c5ee6=>'attribute'==_0x4c5ee6['type']&&_0x4c5ee6['_isDataLoaded']),_0x13a3a5=[],_0x15a27f=new Map();for(const _0x4ca728 of _0x361b46){const _0xf1d351=_0x56801b(_0x4ca728['attributes']);_0x15a27f['has'](_0xf1d351)||(_0x15a27f['set'](_0xf1d351,_0x13a3a5['length']),_0x13a3a5['push']([]));const _0x5e2290=_0x15a27f['get'](_0xf1d351);_0x13a3a5[_0x5e2290]['push'](_0x4ca728);}!(function(){_0x13a3a5['sort']((_0x5cb9de,_0x7d5f1f)=>{const _0x314a88=_0x5cb9de[0x0]['createdAt'],_0x315e6e=_0x7d5f1f[0x0]['createdAt'];return _0x314a88==_0x315e6e?_0x5cb9de[0x0]['attributes']['groupId']<_0x7d5f1f[0x0]['attributes']['groupId']?-0x1:0x1:_0x314a88<_0x315e6e?-0x1:0x1;});for(const _0xb292c4 of _0x13a3a5)_0xb292c4['sort']((_0x229822,_0x4c66f4)=>_0x229822['id']<_0x4c66f4['id']?-0x1:0x1);}());for(let _0x1689c5=0x0;_0x1689c5<_0x13a3a5['length'];_0x1689c5++){if(0x0==_0x13a3a5[_0x1689c5]['length'])continue;const _0x350b86=[];for(let _0x1be541=_0x1689c5+0x1;_0x1be541<_0x13a3a5['length'];_0x1be541++)0x0!=_0x13a3a5[_0x1be541]['length']&&_0x2b3b5c(_0x13a3a5[_0x1689c5],_0x13a3a5[_0x1be541])&&_0x350b86['push'](_0x1be541);for(const _0x30d00b of _0x350b86)_0x13a3a5[_0x1689c5]=_0x13a3a5[_0x1689c5]['concat'](_0x13a3a5[_0x30d00b]),_0x13a3a5[_0x30d00b]=[];}for(const _0x127e95 of _0x13a3a5)for(let _0x23cdfe=0x0;_0x23cdfe<_0x127e95['length'];_0x23cdfe++){const _0x5bf391=_0x127e95[_0x23cdfe+0x1]||null;_0x127e95[_0x23cdfe]['next']!==_0x5bf391&&(_0x127e95[_0x23cdfe]['next']=_0x5bf391);}for(const _0x111162 of _0x13a3a5)for(let _0x1c6efc=0x0;_0x1c6efc<_0x111162['length'];_0x1c6efc++){const _0x2708ff=_0x111162[_0x1c6efc-0x1]||null;_0x111162[_0x1c6efc]['previous']!==_0x2708ff&&(_0x111162[_0x1c6efc]['previous']=_0x2708ff);}function _0x2b3b5c(_0x2f0429,_0x3bcbfd){if(_0x2f0429[0x0]['attributes']['groupId']!==_0x3bcbfd[0x0]['attributes']['groupId']&&_0x2f0429[0x0]['author']!==_0x3bcbfd[0x0]['author'])return!0x1;if(!function(_0x17c1cd,_0x3a1fb3){if(!_0x17c1cd['hasComments']&&!_0x3a1fb3['hasComments'])return!0x0;if(_0x17c1cd['hasComments']&&_0x3a1fb3['hasComments'])return!0x1;if(_0x17c1cd['hasComments']&&_0x3a1fb3['createdAt']<_0x17c1cd['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3a1fb3['hasComments']&&_0x17c1cd['createdAt']<_0x3a1fb3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2f0429[0x0],_0x3bcbfd[0x0]))return!0x1;const _0x5a8f5b=ot(_0x2f0429[0x0]['attributes'],['groupId','trackingSessionId']),_0x45648f=ot(_0x3bcbfd[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x5a8f5b,_0x45648f))return!0x1;if(_0x2f0429[0x0]['attributes']['groupId']==_0x3bcbfd[0x0]['attributes']['groupId'])return!0x0;if(_0x2f0429[0x0]['attributes']['trackingSessionId']!==_0x3bcbfd[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x2f0429['every'](_0x21a95b=>_0x3bcbfd['some'](_0x81c424=>_0x21a95b['getFirstRange']()['isEqual'](_0x81c424['getFirstRange']())))&&_0x3bcbfd['every'](_0x16ab30=>_0x2f0429['some'](_0x4e1243=>_0x16ab30['getFirstRange']()['isEqual'](_0x4e1243['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3f5a04){const _0x222ffb=Array['from'](_0x3f5a04),_0x24ff35=this['getSuggestions']({'skipNotAttached':!0x0}),_0x454306=_0x24ff35['filter'](_0xbe2512=>!_0x3f5a04['has'](_0xbe2512)),_0x9ae7c9=new Map(_0x222ffb['map'](_0x4e032b=>[_0x4e032b,this['_suggestionFactory']['getSuggestionCallback'](_0x4e032b['type'],_0x4e032b['subType'],'join')])),_0x4a295e=new Map(_0x24ff35['map'](_0x353982=>[_0x353982,_0x353982['getRanges']()]));for(let _0x2544a3=0x0;_0x2544a3<_0x222ffb['length'];_0x2544a3++){if(_0x47fc67(this,_0x222ffb[_0x2544a3],_0x222ffb,_0x2544a3+0x1))return!0x0;}for(let _0x60a000=0x0;_0x60a000<_0x222ffb['length'];_0x60a000++){if(_0x47fc67(this,_0x222ffb[_0x60a000],_0x454306,0x0))return!0x0;}return!0x1;function _0x47fc67(_0x1faa98,_0x2e6fda,_0x4c9e09,_0x557ad6){for(let _0x1d6ffe=_0x557ad6;_0x1d6ffe<_0x4c9e09['length'];_0x1d6ffe++){const _0xc36c00=_0x4c9e09[_0x1d6ffe];if(_0xc36c00['type']!==_0x2e6fda['type']||_0xc36c00['author']['id']!==_0x2e6fda['author']['id']||_0xc36c00['subType']!==_0x2e6fda['subType'])continue;if(!jt(_0x2e6fda,_0xc36c00))continue;if('attribute'==_0x2e6fda['type']&&_0x2e6fda['data']['oldValue']!=_0xc36c00['data']['oldValue'])continue;if('attribute'==_0x2e6fda['type']&&_0x1faa98['_suggestionsConversion']['isBlockAttribute'](_0x2e6fda['data']['key']))continue;if('formatBlock'==_0x2e6fda['type']){const _0x5706ef=_0x1faa98['editor']['model'],_0x282d1d=_0x2e6fda['getContainedElement']();if(_0x282d1d&&(_0x5706ef['schema']['isObject'](_0x282d1d)||_0x5706ef['schema']['isLimit'](_0x282d1d)))continue;}const _0x213cd7=_0x9ae7c9['get'](_0x2e6fda),_0x5a7259=_0x4a295e['get'](_0x2e6fda),_0x5d1a9d=_0x4a295e['get'](_0xc36c00),_0x1225da=_0x2e6fda['commentThread']&&_0x2e6fda['commentThread']['length'],_0x35128f=_0xc36c00['commentThread']&&_0xc36c00['commentThread']['length'];if(!_0x1225da&&_0x213cd7(_0x5d1a9d,_0x5a7259))return _0x1faa98['_joinSuggestions'](_0xc36c00,_0x2e6fda),_0x4a295e['delete'](_0x2e6fda),!0x0;if(!_0x35128f&&_0x213cd7(_0x5a7259,_0x5d1a9d))return _0x1faa98['_joinSuggestions'](_0x2e6fda,_0xc36c00),_0x4a295e['delete'](_0xc36c00),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4a0f21,_0x5f24db){if(_0x4a0f21['isMultiRange']){for(const _0x5e2099 of _0x5f24db['getRanges']())_0x4a0f21['addRange'](_0x5e2099);}else{const _0x11f785=_0x5f24db['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4a0f21,this['_model']['createRange'](_0x4a0f21['getFirstRange']()['start'],_0x11f785));}_0x5f24db['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2cd903,_0x3ade69,_0x48ae3c){const _0x87365f=_0x2cd903['startsWith']('format')||_0x2cd903['startsWith']('attribute')?'FORMATTING':_0x2cd903['toUpperCase']();return Tt(this['editor']['locale'],_0x3ade69+'_'+_0x87365f+'_SUGGESTION_ANNOUNCEMENT',_0x48ae3c);}['_initAriaMarkerChangeAnnouncements'](){const _0x45c4dd=this['editor'];if(!_0x45c4dd['ui'])return;const {ariaLiveAnnouncer:_0xa5ec40}=_0x45c4dd['ui'];_0xf39aab(this['_model'],({left:_0x1e10b0,entered:_0x3ff869})=>{for(const _0x256a4f of _0x1e10b0){const {group:_0x26ced9,type:_0xa30f13}=_0x2522cc(_0x256a4f['name']);if('suggestion'===_0x26ced9){_0xa5ec40['announce'](this['_getMarkerAnnouncementText'](_0xa30f13,'LEAVE'));break;}}for(const _0x583171 of _0x3ff869){const {group:_0x242d97,type:_0x49893a}=_0x2522cc(_0x583171['name']);if('suggestion'===_0x242d97){_0xa5ec40['announce'](this['_getMarkerAnnouncementText'](_0x49893a,'ENTER',_0x43c0a4(_0x2f9019)));break;}}});}['_processAttributeChanges'](_0x36c5dd){if(this['_recordAttributeSuggestions'])return!0x1;const _0x381366=this['editor'],_0x33b00e=_0x381366['model']['document']['differ']['getChanges']();if(0x0==_0x33b00e['length'])return!0x1;const _0x56bc25=[],_0x43354f=_0x33b00e['filter'](_0x186cde=>'attribute'==_0x186cde['type']),_0x291225=_0x33b00e['filter'](_0x6fd6d8=>'insert'==_0x6fd6d8['type']&&'$text'!=_0x6fd6d8['name']),_0xc6418f=_0x33b00e['filter'](_0x4c5412=>'remove'==_0x4c5412['type']&&'$text'!=_0x4c5412['name']);for(const _0x3b8ca6 of _0x43354f)_0x56bc25['push']({'key':_0x3b8ca6['attributeKey'],'newValue':_0x3b8ca6['attributeNewValue'],'oldValue':_0x3b8ca6['attributeOldValue'],'range':$t(_0x3b8ca6['range'],_0x381366['model'])});for(const _0x51fb2a of _0x291225){const _0x48ba1d=_0xc6418f['find'](_0x587db9=>_0x587db9['position']['isEqual'](_0x51fb2a['position']));_0x48ba1d&&_0x56bc25['push']({'key':Ft,'newValue':_0x51fb2a['name'],'oldValue':_0x48ba1d['name'],'range':_0x381366['model']['createRangeOn'](_0x51fb2a['position']['nodeAfter'])});}return 0x0!=_0x56bc25['length']&&this['_reduceExistingSuggestions'](_0x36c5dd,_0x56bc25);}['_processAttributeSuggestions'](_0x2f71de){let _0x1cd57b=!0x1;const _0x3ed20c=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x49c66e=>_0x49c66e['data']['newRange']&&_0x49c66e['name']['startsWith']('suggestion:attribute:'));for(const _0x19feb1 of _0x3ed20c){const {subType:_0xb32fa3,id:_0x5c604a}=_0x2522cc(_0x19feb1['name']),_0xd52669=_0xb32fa3['split']('|')[0x0];for(const _0x4df19c of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4df19c['id']!=_0x5c604a&&'attribute'==_0x4df19c['type']&&_0x4df19c['data']&&_0x4df19c['data']['key']==_0xd52669&&_0x4df19c['getFirstRange']()['isIntersecting'](_0x19feb1['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4df19c,_0x19feb1['data']['newRange'],_0x2f71de),_0x1cd57b=!0x0);}return _0x1cd57b;}['recordAttributeChanges'](_0x5882e2){this['_recordAttributeSuggestions']=!0x0,_0x5882e2();}['_reduceExistingSuggestions'](_0x1288b9,_0x2d4efe){if(0x0==_0x2d4efe['length'])return!0x1;let _0xcddca9=!0x1;for(const _0x505af0 of _0x2d4efe){const _0x4465f7=this['_findSuggestions'](_0x505af0['range'],'attribute')['filter'](_0x331c04=>!_0x331c04['meta']['isNextTo'])['map'](_0x72b6d5=>_0x72b6d5['suggestion']),_0x4d7e67=_0x56801b({'newValue':_0x505af0['newValue']});_0x4465f7['filter'](_0x3fd66a=>{const [_0x4ff310,_0x5e9862]=_0x3fd66a['subType']['split']('|');return _0x4ff310==_0x505af0['key']&&_0x5e9862!=_0x4d7e67;})['forEach'](_0x1718b9=>{this['_reduceSuggestionAttributeRange'](_0x1718b9,_0x505af0['range'],_0x1288b9),_0xcddca9=!0x0;});}return _0xcddca9;}['_reduceSuggestionAttributeRange'](_0x2e79e8,_0x3d53c0,_0x1e8185){const _0x26a6dd=_0x2e79e8['getFirstRange']()['getDifference'](_0x3d53c0);0x0!==_0x26a6dd['length']?0x1!==_0x26a6dd['length']?this['_breakSuggestionMarker'](_0x2e79e8,_0x3d53c0['start'],_0x3d53c0['end']):this['_setSuggestionRange'](_0x2e79e8,_0x26a6dd[0x0]):_0x1e8185['removeMarker'](_0x2e79e8['getFirstMarker']());}}class SuggestionFactory{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4725bc){this['_editor']=_0x4725bc,this['_model']=_0x4725bc['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x13d83b,_0x444dad,_0x29956c,_0xcb068f,_0x3ff00d,_0x46ef17,_0x3455d5){return new Suggestion(this['_model'],{'type':_0x13d83b,'subType':_0x444dad,'id':_0x29956c,'originalSuggestionId':_0x3455d5,'author':_0xcb068f,'creator':_0xcb068f,'attributes':_0x3ff00d,'onAttributesChange':_0x46ef17,'onAccept':(..._0x120ce9)=>this['getSuggestionCallback'](_0x13d83b,_0x444dad,'accept')(..._0x120ce9),'onDiscard':(..._0x1978e8)=>this['getSuggestionCallback'](_0x13d83b,_0x444dad,'discard')(..._0x1978e8)});}['registerCustomCallback'](_0xf749dc,_0x3e85c5,_0x1acb88,_0x457244){const _0x3d0703=_0xf749dc+':'+_0x3e85c5+':'+_0x1acb88;this['_customCallbacks']['set'](_0x3d0703,_0x457244);}['getSuggestionCallback'](_0x4c076f,_0x109454,_0x497cf0){const _0x380b1f=_0x4c076f+':'+_0x109454+':'+_0x497cf0;return this['_customCallbacks']['get'](_0x380b1f)||this['_defaultCallbacks']['get'](_0x4c076f+':'+_0x497cf0);}['_registerDefaultCallbacks'](){const _0x5a776a=()=>!0x1,_0x4c365b=_0xa69f44=>{_0xa69f44['sort']((_0x4f083e,_0x47d873)=>_0x4f083e['start']['isBefore'](_0x47d873['start'])?0x1:-0x1),this['_model']['change'](_0x3fa2a2=>{for(const _0x2a7435 of _0xa69f44){let _0x4340a4;_0x4340a4=_0x2a7435['end']['isAtEnd']&&_0x2a7435['end']['parent']==_0x2a7435['start']['nodeAfter']?_0x3fa2a2['createSelection'](_0x2a7435['start']['nodeAfter'],'on'):_0x3fa2a2['createSelection'](_0x2a7435),this['_model']['deleteContent'](_0x4340a4,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x691f5e=(_0x5e9bc9,_0x11032e)=>{_0x11032e&&this['_model']['change'](_0x53a976=>{const {commandName:_0x1e5d5d,commandParams:_0x3e71b0=[]}=_0x11032e,_0xaa208a=_0x5e9bc9['map'](_0x1ce4f0=>(vt(_0x1ce4f0)&&(_0x1ce4f0=this['_model']['createRange'](_0x1ce4f0['end'])),_0x1ce4f0))['filter'](_0xc9572c=>'$graveyard'!==_0xc9572c['root']['rootName']);if(_0xaa208a['length']<0x1)return;const _0x5e2680=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xd1b3af=>_0x2192a8['fromRange'](_0xd1b3af));_0x53a976['setSelection'](_0xaa208a);for(const _0x4af907 of this['_editor']['commands']['commands']())_0x4af907['refresh']();_0x3e71b0['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1e5d5d,..._0x3e71b0);const _0x5e9cdf=_0x5e2680['filter'](_0x3cf47e=>'$graveyard'!=_0x3cf47e['root']['rootName']);_0x5e9cdf['length']>0x0&&_0x53a976['setSelection'](_0x5e9cdf);for(const _0x44b26f of _0x5e2680)_0x44b26f['detach']();});},_0x52b2d2=(_0x5451dd,_0x23e535)=>0x1==_0x5451dd['length']&&0x1==_0x23e535['length']&&_0x5451dd[0x0]['end']['isEqual'](_0x23e535[0x0]['start']),_0x2e7730=(_0x14c99a,_0x4721bf,_0x545720,_0x55dfb9)=>Wt(_0x14c99a,_0x4721bf,_0x545720,_0x55dfb9)?[_0x14c99a,_0x4721bf]:Wt(_0x4721bf,_0x14c99a,_0x55dfb9,_0x545720)?[_0x4721bf,_0x14c99a]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5a776a),this['_defaultCallbacks']['set']('insertion:discard',_0x4c365b),this['_defaultCallbacks']['set']('insertion:join',_0x52b2d2),this['_defaultCallbacks']['set']('insertion:chain',_0x2e7730),this['_defaultCallbacks']['set']('deletion:accept',_0x4c365b),this['_defaultCallbacks']['set']('deletion:discard',_0x5a776a),this['_defaultCallbacks']['set']('deletion:join',_0x52b2d2),this['_defaultCallbacks']['set']('deletion:chain',_0x2e7730),this['_defaultCallbacks']['set']('formatInline:accept',_0x691f5e),this['_defaultCallbacks']['set']('formatInline:discard',_0x5a776a),this['_defaultCallbacks']['set']('formatInline:join',_0x52b2d2),this['_defaultCallbacks']['set']('formatInline:chain',_0x5a776a),this['_defaultCallbacks']['set']('formatBlock:accept',_0x691f5e),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5a776a),this['_defaultCallbacks']['set']('formatBlock:join',_0x52b2d2),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5a776a),this['_defaultCallbacks']['set']('attribute:accept',_0x5a776a),this['_defaultCallbacks']['set']('attribute:discard',(_0x188c95,_0xd3056)=>{if(!_0xd3056)return;const _0x3ce2fa=this['_editor']['plugins']['get'](_0x54b9f2);this['_model']['change'](_0xd7ec62=>{if(_0xd3056['key']==Ft)for(const _0x5cfb66 of _0x188c95){const _0x4d02d8=_0x5cfb66['start']['nodeAfter'],_0x338c0d=_0xd3056['oldValue'];_0xd7ec62['rename'](_0x4d02d8,_0x338c0d);}else{if(_0x3ce2fa['isBlockAttribute'](_0xd3056['key'])){for(const _0x22a282 of _0x188c95)void 0x0!==_0xd3056['oldValue']?_0xd7ec62['setAttribute'](_0xd3056['key'],_0xd3056['oldValue'],_0x22a282['start']['nodeAfter']):_0xd7ec62['removeAttribute'](_0xd3056['key'],_0x22a282['start']['nodeAfter']);}else{for(const _0x1e55f9 of _0x188c95)_0xd3056['oldValue']?_0xd7ec62['setAttribute'](_0xd3056['key'],_0xd3056['oldValue'],_0x1e55f9):_0xd7ec62['removeAttribute'](_0xd3056['key'],_0x1e55f9);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x52b2d2);}}function Dt(_0x494d9c,_0x5bdb5f,_0xe9db4b){for(const _0x397e44 of _0x5bdb5f['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x397e44['root']==_0x397e44)return!0x1;if(!_0xe9db4b['containsItem'](_0x397e44))return!0x1;if(_0x494d9c['isObject'](_0x397e44)||_0x494d9c['isLimit'](_0x397e44))return!0x0;}return!0x1;}function vt(_0x58de5d){return _0x58de5d['end']['parent']==_0x58de5d['start']['nodeAfter']&&_0x58de5d['end']['isAtStart'];}function xt(_0x23d905,_0xa80ddd,_0x4e05ff,_0x59e117){const _0x532852=_0x10cb9d=>!_0x10cb9d['item']['is']('$textProxy')&&!_0x59e117['isObject'](_0x10cb9d['item']),_0x17ce78=_0x23d905['start']['getLastMatchingPosition'](_0x532852),_0x236687=_0x23d905['end']['getLastMatchingPosition'](_0x532852,{'direction':'backward'});return(!_0x23d905['start']['isEqual'](_0x17ce78)||!_0x23d905['end']['isEqual'](_0x236687))&&(_0x17ce78['isBefore'](_0x236687)?_0x4e05ff['updateMarker'](_0xa80ddd,{'range':_0x4e05ff['createRange'](_0x17ce78,_0x236687)}):_0x4e05ff['removeMarker'](_0xa80ddd),!0x0);}function Pt(_0xe8c469){return _0x56801b(_0xe8c469);}function Ut(_0x8fed7a){const _0x23fb2a=_0x8fed7a['start']['nodeAfter'];return _0x23fb2a&&_0x23fb2a['is']('element');}function Gt(_0x2da840){return vt(_0x2da840)||function(_0x3ec060){return _0x3ec060['start']['parent']==_0x3ec060['end']['nodeBefore']&&_0x3ec060['start']['isAtEnd'];}(_0x2da840);}function Ht(_0x748dd4,_0x310e50){try{const _0x159680=_0x748dd4['getRange']();for(const _0x174a98 of _0x310e50)if(_0x748dd4!==_0x174a98&&_0x159680&&_0x159680['isIntersecting'](_0x174a98['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function $t(_0x24ab39,_0x356355){return null==_0x24ab39['end']['nodeBefore']&&_0x24ab39['end']['parent']==_0x24ab39['start']['nodeAfter']?Vt(_0x24ab39['start']['nodeAfter'],_0x356355):_0x24ab39;}function Vt(_0x57bbcc,_0x5040f5){const _0x37ecb2=_0x5040f5['schema']['isObject'](_0x57bbcc)||_0x5040f5['schema']['isSelectable'](_0x57bbcc);return _0x5040f5['createRange'](_0x5040f5['createPositionAt'](_0x57bbcc,'before'),_0x37ecb2?_0x5040f5['createPositionAfter'](_0x57bbcc):_0x5040f5['createPositionAt'](_0x57bbcc,'end'));}function Wt(_0x237f52,_0x4729bc,_0x3b1063,_0x148a2b){return!!jt(_0x237f52,_0x4729bc)&&_0x3b1063['end']['isEqual'](_0x148a2b['start']);}function jt(_0x1226ec,_0x52acfd){if(!_0x1226ec['_isDataLoaded']||!_0x52acfd['_isDataLoaded'])return!0x1;const _0x37c2fa=new Set(Object['keys'](_0x1226ec['attributes'])),_0x1d2693=new Set(Object['keys'](_0x52acfd['attributes']));if(_0x37c2fa['delete']('groupId'),_0x1d2693['delete']('groupId'),0x0==_0x37c2fa['size']&&0x0==_0x1d2693['size'])return!0x0;if(_0x37c2fa['size']!=_0x1d2693['size'])return!0x1;const _0x2839a4={..._0x1226ec['attributes']},_0x2742c5={..._0x52acfd['attributes']};return delete _0x2839a4['groupId'],delete _0x2742c5['groupId'],JSON['stringify'](_0x2839a4)==JSON['stringify'](_0x2742c5);}function zt(_0x548b7e,_0x46d167){const _0x1a06c4=Kt(_0x548b7e['attributes']),_0x2be66e=Kt(_0x46d167);if(!_0x548b7e['_isDataLoaded'])return!0x1;for(const _0x10193b of Object['keys'](_0x2be66e))if(!st(_0x1a06c4[_0x10193b],_0x2be66e[_0x10193b]))return!0x1;return!0x0;}function Kt(_0x5d908c){const _0x29a9b4=Object['assign']({},_0x5d908c);return delete _0x29a9b4['skipNestingCheck'],delete _0x29a9b4['tablePasteChainId'],_0x29a9b4;}function Xt(_0xf63bf8){return _0xf63bf8['split']('|')[0x0];}class SuggestionController extends/* #__PURE__ -- @preserve */
26
+ _0x2cad71(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1c88de,_0x518002,_0x37cfc9,_0x77996){super(),this['model']=_0x518002,this['view']=_0x37cfc9,this['commentThreadController']=_0x77996,this['_editor']=_0x1c88de,this['_acceptCommand']=_0x1c88de['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1c88de['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x50324c,_0x2f578d)=>_0x50324c||_0x2f578d),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2eda1f=>_0x2eda1f&&this['_editor']['model']['canEditAt'](_0x518002['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x333e0d=>_0x333e0d&&this['_editor']['model']['canEditAt'](_0x518002['getRanges']())),this['_pendingAction']=null,_0x37cfc9['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x37cfc9,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x37cfc9,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x37cfc9,'change:isDirty',()=>{_0x37cfc9['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 _0x575ffa=Tt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x575ffa);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class BaseSuggestionThreadView extends _0x219eee{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x156252,_0x3f14ee,_0x173b32,_0x1e0a4a){super(_0x156252),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x4a1a2d(_0x156252,Tt(_0x156252,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3f14ee['authoredAt']),this['bind']('authoredAt')['to'](_0x3f14ee),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',_0x3f14ee,'authoredAt',this,'descriptionParts',(_0x174ed2,_0x53de3b,_0x27d278)=>{const _0xd07eef=_0x27d278['map'](_0x28127c=>ht(_0x28127c['content']))['join']('.\x20')+'.';return Tt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x174ed2-0x1,_0x3f14ee['author']['name'],_0x53de3b?_0x1e0a4a['formatDateTime'](_0x53de3b):'',new DOMParser()['parseFromString'](_0xd07eef,'text/html')['body']['textContent']]);}),this['focusables']=new _0x41b3a9(),this['focusTracker']=new _0x5c0eff(),this['keystrokes']=new _0x14ab05(),this['focusCycler']=new _0x27ae21({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3c1f69=>_0x3c1f69['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3f14ee,this['_localUser']=_0x173b32,this['_config']=_0x1e0a4a,_0x1e0a4a['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x414f5c(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x537a1c}=this['_config'];this['commentsListView']=new _0x537a1c(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',_0x395550=>_0x395550+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x51504b,_0x54a5f5)=>_0x51504b||!!_0x54a5f5);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2c6ebe}=this['_config'],_0x310344=new _0x2c6ebe(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4355f7=_0x310344['commentInputView'];return _0x310344['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4355f7,'value',(_0x1fe339,_0x3e05a8,_0x4e1e70)=>!!_0x4e1e70||_0x1fe339&&!_0x3e05a8),_0x4355f7['on']('submit',(_0x235d0c,_0x362af5)=>{this['fire']('addComment',_0x362af5),_0x4355f7['editor']['setData']('');}),_0x4355f7['on']('cancel',()=>this['focus']()),_0x4355f7['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x310344;}}class SuggestionThreadView extends BaseSuggestionThreadView{['suggestionView'];['_descriptionElement'];constructor(_0x18458b,_0x1fecbe,_0x302105,_0x36c490){super(_0x18458b,_0x1fecbe,_0x302105,_0x36c490),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x177728=>_0x177728&&_0x177728[0x0]?_0x177728[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2f153b,_0x484c23)=>{let _0x106cac='';for(const _0x528d4e of _0x2f153b)_0x106cac+='<p>'+ht(_0x528d4e['content'],_0x528d4e['color'])+'</p>';return _0x484c23?_0x106cac:_0x47f1ed(_0x106cac,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x36c490['SuggestionView'](_0x18458b,_0x1fecbe,{'formatDateTime':_0x36c490['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 _0x256180=this['bindTemplate'],_0x2fd056=[this['suggestionView']];return this['commentsListView']&&_0x2fd056['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2fd056['push'](this['commentThreadInputView']),_0x2fd056['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x256180['if']('isActive','ck-suggestion-wrapper--active'),_0x256180['to']('type',_0x14147f=>'ck-suggestion-'+_0x14147f),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':_0x256180['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2fd056};}['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 SuggestionView extends _0x219eee{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4e4622,_0x3fb770,_0x43a27a){super(_0x4e4622),this['_model']=_0x3fb770,this['_config']=_0x43a27a,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3fb770),this['acceptButton']=this['_createButton'](Tt(_0x4e4622,'Accept\x20suggestion'),_0x464661,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Tt(_0x4e4622,'Discard\x20suggestion'),_0x58544e,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xf77222(_0x4e4622,_0x3fb770['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x41b3a9([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5c0eff(),this['keystrokes']=new _0x14ab05(),this['focusCycler']=new _0x27ae21({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0xa700f8=>_0xa700f8['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3c769f=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3c769f['innerHTML']=this['description'],this['on']('change:description',(_0x5a83ea,_0x16727b,_0x54839d)=>{_0x3c769f['innerHTML']=_0x54839d;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3e7714=this['bindTemplate'],_0x5888a0=[{'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':_0x3e7714['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3e7714['to']('authoredAt',_0x57b52a=>this['_config']['formatDateTime'](_0x57b52a))}]}]},{'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']&&_0x5888a0['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':_0x5888a0}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?Tt(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):Tt(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?Tt(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):Tt(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x33bbd5,_0x679088,_0x3673ad,_0x1d954b,_0x3ad481){const _0x37e9b7=new _0x3b1b8d(this['locale']);return _0x37e9b7['set']({'label':_0x33bbd5,'icon':_0x679088,'tooltip':!0x0,'tooltipPosition':_0x3ad481}),_0x37e9b7['extendTemplate']({'attributes':{'class':_0x3673ad}}),_0x37e9b7['on']('execute',()=>{this['fire'](_0x1d954b,this['_model']['id']);}),_0x37e9b7;}['_setupKeyboardNavigation'](){const _0x5a1a63=this['element'];this['keystrokes']['listenTo'](_0x5a1a63);for(const _0x40e224 of this['focusables'])this['focusTracker']['add'](_0x40e224['element']),this['keystrokes']['listenTo'](_0x40e224['element']);this['keystrokes']['set']('enter',(_0x41517c,_0x451495)=>{_0x5a1a63===_0x41517c['target']&&(this['focusCycler']['focusFirst'](),_0x451495());}),this['keystrokes']['set']('esc',(_0x4fd550,_0xc89eeb)=>{_0x5a1a63!==_0x4fd550['target']&&(this['focus'](),_0xc89eeb());});}}class TrackChangesUI extends _0x3000a5{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[TrackChangesEditing,_0x1d950a,_0x3b6cc3,_0x56e9b1,_0x359145];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4ccc1d){super(_0x4ccc1d),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3a24db=this['editor']['config'];_0x3a24db['define']('trackChanges.SuggestionThreadView',SuggestionThreadView),_0x3a24db['define']('trackChanges.SuggestionView',SuggestionView),_0x3a24db['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3a24db['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3ef04a,_0x49cbd2){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2b82f0,_0xc613c6]of this['_handleControllerBuffer']){const _0x259ce1=this['_suggestionToController']['has'](_0x2b82f0);_0x259ce1||_0xc613c6?_0x259ce1&&_0xc613c6&&this['_destroyController'](_0x2b82f0):this['_initializeController'](_0x2b82f0);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x359145)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3ef04a,_0x49cbd2);}['init'](){const _0x4f7d5f=this['editor'],_0x78e6cd=_0x4f7d5f['plugins']['get'](TrackChangesEditing),_0x4c85cc=_0x4f7d5f['plugins']['get'](_0x56e9b1),_0x284c62=_0x4f7d5f['plugins']['get'](_0x359145),_0x509ca6=_0x4f7d5f['plugins']['get'](_0x3b6cc3);this['_addUIComponentsToFactory'](),_0x284c62['addSourceCollector'](()=>{const _0x546aab=[];for(const [_0x554c67,_0x6a3cf3]of Array['from'](this['_suggestionToController'])){const _0x1683e5=_0x554c67['getAllAdjacentSuggestions'](),_0x3633f7=[];for(const _0x117d17 of _0x1683e5){if(!_0x117d17['isInContent'])continue;if(_0x117d17['isMultiRange']){_0x3633f7['push'](..._0x117d17['getRanges']());continue;}const _0x531ead=_0x117d17['getFirstRange']();if(_0x3633f7['length']>0x0){const _0x138242=_0x3633f7[0x0]['getJoined'](_0x531ead);if(_0x138242){_0x3633f7[0x0]=_0x138242;continue;}}_0x3633f7['push'](_0x531ead);}_0x546aab['push']([_0x6a3cf3['view'],_0x3633f7]);}return _0x546aab;}),this['listenTo'](_0x78e6cd,'suggestionLoaded',(_0x45fc8e,_0x526acd)=>{this['listenTo'](_0x526acd,'change:previous',(_0x2069c7,_0x3fbfe5,_0x294853,_0x111c4a)=>{_0x526acd['isInContent']&&(null==_0x294853?(this['_updateController'](_0x111c4a['head']),this['_handleSuggestionControllerDelayed'](_0x526acd,!0x1)):(this['_updateController'](_0x294853['head']),null==_0x111c4a&&this['_handleSuggestionControllerDelayed'](_0x526acd,!0x0)));}),null!==_0x526acd['previous']?this['_updateController'](_0x526acd['head']):this['_handleSuggestionControllerDelayed'](_0x526acd,!0x1);}),this['listenTo'](_0x78e6cd,'suggestionUnloaded',(_0x881a79,_0x58ad64,_0x30c722)=>{this['stopListening'](_0x58ad64,'change:previous'),this['_handleControllerBuffer']['delete'](_0x58ad64),this['_suggestionToController']['has'](_0x58ad64)&&this['_destroyController'](_0x58ad64),_0x30c722&&this['_updateController'](_0x30c722['head']);}),this['listenTo'](_0x78e6cd,'suggestionChanged',(_0x22835a,_0x5124ce)=>{this['_updateController'](_0x5124ce);}),this['listenTo'](_0x4c85cc,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x509ca6,'addComment',(_0x541413,{threadId:_0x25dc92,isFromAdapter:_0x5032c3})=>{if(_0x5032c3||!_0x78e6cd['hasSuggestion'](_0x25dc92))return;const _0x1f6b03=_0x78e6cd['getSuggestion'](_0x25dc92);this['_suggestionToController']['get'](_0x1f6b03)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x74c8b9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2b089f;for(const _0x555b64 in _0x74c8b9){const _0x4ee0cd=_0x555b64,_0x3e3f0f=_0x74c8b9[_0x4ee0cd];if('trackChangesLicenseKeyValid'==_0x3e3f0f||'trackChangesLicenseKeyInvalid'==_0x3e3f0f||'trackChangesLicenseKeyExpired'==_0x3e3f0f||'trackChangesLicenseKeyDomainLimit'==_0x3e3f0f||'trackChangesLicenseKeyNotAllowed'==_0x3e3f0f||'trackChangesLicenseKeyEvaluationLimit'==_0x3e3f0f||'trackChangesLicenseKeyUsageLimit'==_0x3e3f0f){delete _0x74c8b9[_0x4ee0cd],_0x2b089f=_0x3e3f0f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2b089f&&_0x74c8b9['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2b089f&&_0x74c8b9['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2b089f&&_0x74c8b9['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2b089f&&_0x74c8b9['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2b089f&&_0x74c8b9['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2b089f&&_0x74c8b9['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0xe76f57){const _0x19fe4d=this['_suggestionToController']['get'](_0xe76f57);if(!_0x19fe4d)return null;return this['editor']['plugins']['get'](_0x56e9b1)['getByInnerView'](_0x19fe4d['view'])||null;}['getSuggestionForAnnotation'](_0x14635f){const _0x327a8c=this['_viewToController']['get'](_0x14635f['innerView']);return _0x327a8c?_0x327a8c['model']:null;}['_refreshActiveMarkers'](){const _0x554178=this['editor']['plugins']['get'](_0x56e9b1),_0x1e6d2a=this['editor']['plugins']['get'](TrackChangesEditing),_0x9d23d3=Array['from'](_0x554178['activeAnnotations'],_0x29ca30=>_0x29ca30['innerView'])['filter'](_0x32a6a5=>this['_viewToController']['has'](_0x32a6a5)),_0x77422a=[];for(const _0xaa5613 of _0x9d23d3){const _0x5d4c04=this['_viewToController']['get'](_0xaa5613)['model']['getAllAdjacentSuggestions']();_0x77422a['push'](..._0x5d4c04['reduce']((_0x560882,_0x150142)=>[..._0x560882,..._0x150142['getMarkerNames']()],[]));}_0x1e6d2a['activeMarkers']=_0x77422a;}['_addUIComponentsToFactory'](){const _0x594a44=this['editor'],_0x5dcc70=_0x594a44['locale'],_0x17b521=Tt(_0x5dcc70,'Track\x20changes'),_0x458f63=new _0x1bdbf2([{'type':'switchbutton','model':new _0x38a215({'withText':!0x0,'isToggleable':!0x0,'label':_0x17b521,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x38a215({'withText':!0x0,'label':Tt(_0x5dcc70,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x38a215({'withText':!0x0,'label':Tt(_0x5dcc70,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x38a215({'withText':!0x0,'label':Tt(_0x5dcc70,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x38a215({'withText':!0x0,'label':Tt(_0x5dcc70,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x594a44['plugins']['has']('TrackChangesPreview')&&_0x458f63['addMany']([{'type':'separator'},{'type':'button','model':new _0x38a215({'withText':!0x0,'label':Tt(_0x5dcc70,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x4ee63a of _0x458f63)if(Yt(_0x4ee63a)){const _0x39fe7a=_0x594a44['commands']['get'](_0x4ee63a['model']['commandName']);_0x4ee63a['model']['bind']('isOn','isEnabled')['to'](_0x39fe7a,'value','isEnabled');}_0x594a44['ui']['componentFactory']['add']('trackChanges',_0x1e9a08=>this['_createToolbarButton'](_0x1e9a08,_0x458f63,_0x17b521)),_0x594a44['ui']['componentFactory']['add']('menuBar:trackChanges',_0xfb51bc=>this['_createMenuBarMenu'](_0xfb51bc,_0x458f63,_0x17b521));}['_createToolbarButton'](_0x143a62,_0x43c282,_0x3d2f21){const _0xfcc4d2=_0x249d7a(_0x143a62,_0x147e3d),_0x5653eb=this['editor']['commands']['get']('trackChanges');_0xfcc4d2['buttonView']['set']({'tooltip':_0x3d2f21,'label':_0x3d2f21,'icon':_0x1c5aba}),_0xfcc4d2['buttonView']['bind']('isOn')['to'](_0x5653eb,'value'),_0xfcc4d2['buttonView']['on']('execute',()=>{_0x5653eb['execute'](),this['editor']['editing']['view']['focus']();}),_0x2d8af9(_0xfcc4d2,_0x43c282,{'role':'menu'});const _0x1daf1e=[];for(const _0x46b976 of _0x43c282)Yt(_0x46b976)&&_0x1daf1e['push'](this['editor']['commands']['get'](_0x46b976['model']['commandName']));const _0x2378b7=_0xfcc4d2['buttonView'];return _0x2378b7['actionView']['unbind']('isEnabled'),_0x2378b7['arrowView']['unbind']('isEnabled'),_0x2378b7['actionView']['bind']('isEnabled')['to'](_0x5653eb,'isEnabled'),_0x2378b7['arrowView']['bind']('isEnabled')['toMany'](_0x1daf1e,'isEnabled',(..._0x5e7286)=>_0x5e7286['some'](_0xade64=>_0xade64)),_0xfcc4d2['on']('execute',_0xd39c19=>{this['editor']['execute'](_0xd39c19['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xfcc4d2;}['_createMenuBarMenu'](_0x1989a9,_0xdbbd3,_0x1b3e4c){const _0x6f86e2=new _0x167357(_0x1989a9),_0x14bf77=this['editor']['commands']['get']('trackChanges');_0x6f86e2['buttonView']['set']({'label':_0x1b3e4c,'icon':_0x1c5aba});const _0x3c50b6=new _0xc933cf(_0x1989a9);for(const _0x5af2cc of _0xdbbd3){if('separator'==_0x5af2cc['type']){_0x3c50b6['items']['add'](new _0x51f4ef(_0x1989a9));continue;}const _0x5c784f=new _0x17cfe5(_0x1989a9,_0x6f86e2),_0x3ef497=new _0x47a13f(_0x1989a9),_0x5e8339=_0x5af2cc['model'];_0x3ef497['bind'](...Object['keys'](_0x5e8339))['to'](_0x5e8339),_0x3ef497['delegate']('execute')['to'](_0x6f86e2),_0x3ef497['on']('execute',()=>{this['editor']['execute'](_0x5e8339['commandName']),this['editor']['editing']['view']['focus']();}),_0x5c784f['children']['add'](_0x3ef497),_0x3c50b6['items']['add'](_0x5c784f);}return _0x6f86e2['bind']('isEnabled')['to'](_0x14bf77,'isEnabled'),_0x6f86e2['panelView']['children']['add'](_0x3c50b6),_0x6f86e2;}['_initializeController'](_0x3b8411){const _0x130aca=this['editor'],_0x463489=_0x130aca['config'],_0x453cba=_0x130aca['plugins']['get'](_0x56e9b1),_0x394494=_0x130aca['plugins']['get'](_0x3b6cc3),_0x5990bf=_0x130aca['plugins']['get'](_0x359145),_0x256219=_0x130aca['plugins']['get'](_0x1d950a)['me'],_0x4c84ee=_0x463489['get']('trackChanges')['SuggestionThreadView'],_0x32c8a0=_0x463489['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4fd1c0,CommentThreadInputView:_0x492faa}=_0x130aca['plugins']['get']('CommentsUI');let _0x5ec601,_0x4191f0,_0x365f8d;this['_annotationViews']['has'](_0x3b8411['id'])?(_0x4191f0=this['_annotationViews']['get'](_0x3b8411['id']),_0x5ec601=_0x4191f0['mainView']):(_0x5ec601=new _0x4c84ee(_0x130aca['locale'],_0x3b8411,_0x256219,{'disableComments':this['_disableComments'],'editorConfig':{..._0x463489['get']('comments.editorConfig'),'licenseKey':_0x463489['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x463489['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x463489['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x463489['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x16d8dd(_0x463489['get']('locale'),_0x130aca['locale']),'CommentView':_0x463489['get']('comments')['CommentView'],'CommentsListView':_0x4fd1c0,'CommentThreadInputView':_0x492faa,'SuggestionView':_0x32c8a0}),_0x5ec601['suggestionView']['acceptButton']['on']('execute',()=>{_0x130aca['editing']['view']['focus']();}),_0x5ec601['suggestionView']['discardButton']['on']('execute',()=>{_0x130aca['editing']['view']['focus']();}),_0x4191f0=_0x453cba['createAnnotationView'](this['editor']['locale'],_0x5ec601),_0x4191f0['bind']('isDirty')['to'](_0x5ec601,'isDirty'),_0x4191f0['bind']('length')['to'](_0x5ec601),_0x4191f0['bind']('type')['to'](_0x5ec601,'type',_0x1b50bb=>'suggestion-'+_0x1b50bb),_0x5ec601['on']('escape',()=>{_0x365f8d['fire']('escape');}),this['_annotationViews']['set'](_0x3b8411['id'],_0x4191f0));const _0x2842f6=_0x394494['createCommentThreadController'](_0x3b8411['commentThread'],_0x5ec601),_0x799d2b=new SuggestionController(_0x130aca,_0x3b8411,_0x5ec601,_0x2842f6),_0x29830a=_0x3b8411['getAllAdjacentSuggestions']()['filter'](_0x3b0ce5=>_0x3b0ce5['isInContent']);_0x5ec601['descriptionParts']=_0x130aca['plugins']['get'](TrackChangesEditing)['descriptionFactory']['getDescriptions'](_0x29830a),this['_suggestionToController']['set'](_0x3b8411,_0x799d2b),this['_viewToController']['set'](_0x5ec601,_0x799d2b);const _0x5e7b3b=()=>{const _0x419586=[],_0x3ebf7e=_0x3b8411['getAllAdjacentSuggestions']()['filter'](_0x4931f0=>_0x4931f0['isInContent']);for(const _0x11b344 of _0x3ebf7e)_0x419586['push'](..._0x11b344['getMarkers']());return _0x35ad97(_0x130aca['editing'],_0x419586);};_0x365f8d=_0x453cba['createAnnotation']({'view':_0x4191f0,'target':_0x5e7b3b,'type':()=>'suggestion-'+_0x799d2b['view']['type'],'isVisible':!!_0x5e7b3b()}),_0x394494['_bindAnnotationToEditors'](_0x5ec601,_0x365f8d),_0x453cba['add'](_0x365f8d),_0x5990bf['registerAnnotation'](_0x365f8d);}['_destroyController'](_0x2e1997){const _0x34ecb7=this['editor']['plugins']['get'](_0x3b6cc3),_0x460230=this['editor']['plugins']['get'](_0x56e9b1),_0x43c37f=this['_suggestionToController']['get'](_0x2e1997),_0x136a8e=_0x43c37f['view'],_0x39d9da=_0x460230['getByInnerView'](_0x136a8e);_0x34ecb7['_unbindEditors'](_0x136a8e),_0x39d9da&&_0x460230['remove'](_0x39d9da),this['_suggestionToController']['delete'](_0x2e1997),this['_viewToController']['delete'](_0x136a8e),_0x43c37f['destroy']();}['_updateController'](_0x48ab30){if(!_0x48ab30['isInContent']||!this['_suggestionToController']['has'](_0x48ab30))return;const _0x4a560e=this['editor']['plugins']['get'](TrackChangesEditing),_0x20f41c=this['_suggestionToController']['get'](_0x48ab30),_0x2a7f33=_0x48ab30['getAllAdjacentSuggestions']();_0x20f41c['view']['descriptionParts']=_0x4a560e['descriptionFactory']['getDescriptions'](_0x2a7f33);}['destroy'](){for(const _0x562371 of this['_suggestionToController']['keys']())this['_destroyController'](_0x562371);for(const _0x409718 of this['_annotationViews']['values']())_0x409718['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function Yt(_0x4e56a1){return'model'in _0x4e56a1;}class TrackChanges extends _0x3000a5{static get['requires'](){return[TrackChangesEditing,TrackChangesUI,_0x41eb8f];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x59035a){this['editor']['plugins']['get'](TrackChangesEditing)['adapter']=_0x59035a;}get['adapter'](){return this['editor']['plugins']['get'](TrackChangesEditing)['adapter'];}['addSuggestion'](_0x1b9830){return this['editor']['plugins']['get'](TrackChangesEditing)['addSuggestionData'](_0x1b9830);}['getSuggestions']({skipNotAttached:_0x2b3fb0=!0x1,toJSON:_0x402ed0=!0x1}={}){return this['editor']['plugins']['get'](TrackChangesEditing)['getSuggestions']({'skipNotAttached':_0x2b3fb0,'toJSON':_0x402ed0});}['getSuggestion'](_0x249412){return this['editor']['plugins']['get'](TrackChangesEditing)['getSuggestion'](_0x249412);}}const qt=['Pagination'];class TrackChangesData extends _0x3000a5{static get['requires'](){return[TrackChangesEditing];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2c257e=this['editor'];if(_0x2c257e['config']['define']('trackChangesData.editorCreator',_0x523da1=>{const _0x48e0f2=_0x2c257e['model']['document']['getRootNames']()['reduce']((_0x5d6c62,_0x2b2258)=>(_0x5d6c62[_0x2b2258]='',_0x5d6c62),{});return _0x2c257e['constructor']['create'](_0x48e0f2,_0x523da1);}),'function'!=typeof _0x2c257e['config']['get']('trackChangesData')['editorCreator'])throw new _0x1d5f66('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2abb3f){return Zt(this['editor'],!0x0,_0x2abb3f);}['getDataWithDiscardedSuggestions'](_0x1e0a09){return Zt(this['editor'],!0x1,_0x1e0a09);}}class TrackChangesDataGetter extends _0x3000a5{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x411540){function _0x45feb6(_0x1c0f1e){return _0x1c0f1e['map'](_0x139397=>String['fromCharCode'](_0x139397))['join']('');}super(_0x411540),this['result']='end',_0x411540[_0x45feb6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x45feb6([0x76,0x69,0x65,0x77])][_0x45feb6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x45feb6([0x61,0x75,0x74,0x6f]),_0x411540[_0x45feb6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x45feb6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x45feb6([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x45feb6([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x45feb6([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 Qt(_0x1c4e25){return void 0x0!==_0x1c4e25['getRootsAttributes'];}async function Zt(_0x491eb5,_0x4d19c1,_0x22cb78){const _0x477deb=_0x2577bc(_0x491eb5,qt);if(_0x477deb['plugins']['push'](TrackChangesEditing,TrackChangesDataGetter),Qt(_0x491eb5)){_0x477deb['roots']=Object['create'](null);for(const _0x323016 of _0x491eb5['model']['document']['getRootNames']())_0x477deb['roots'][_0x323016]={'modelAttributes':_0x491eb5['getRootAttributes'](_0x323016)};}const _0x316103=document['createDocumentFragment'](),_0x2aa01=_0x491eb5['config']['get']('trackChangesData')['editorCreator'],_0x3caf90=await _0x2aa01(_0x477deb,()=>function(_0x1f076c){const _0x4d3f35=document['createElement']('div');return _0x1f076c['appendChild'](_0x4d3f35),_0x4d3f35;}(_0x316103));!function(_0x27b626,_0x10a85a){const _0x154998=_0x27b626['model']['document']['getRootNames']()['reduce']((_0x21af3a,_0xcab5da)=>(_0x21af3a[_0xcab5da]=_0x27b626['data']['get']({'rootName':_0xcab5da}),_0x21af3a),{}),_0x5837a1=_0x27b626['plugins']['get']('Users')['users']['map'](_0x559e57=>({'id':_0x559e57['id'],'name':_0x559e57['name']})),_0x2a00ae=_0x27b626['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x19d19c=_0x27b626['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3c2a98=_0x10a85a['plugins']['get']('Users'),_0x461c61=_0x10a85a['plugins']['get']('TrackChangesEditing'),_0xc01ed7=_0x10a85a['plugins']['get']('CommentsRepository');for(const _0x3eb385 of _0xc01ed7['getCommentThreads']())_0x3eb385['remove']();for(const _0x3e1f33 of _0x5837a1)_0x3c2a98['getUser'](_0x3e1f33['id'])||_0x3c2a98['addUser'](_0x3e1f33);_0x3c2a98['me']||_0x3c2a98['useAnonymousUser']();for(const _0x2350cc of _0x19d19c)_0xc01ed7['addCommentThread'](_0x2350cc);for(const _0x4b5086 of _0x2a00ae)_0x461c61['addSuggestionData'](_0x4b5086);_0x10a85a['data']['set'](_0x154998);}(_0x491eb5,_0x3caf90),_0x3caf90['execute'](_0x4d19c1?'acceptAllSuggestions':'discardAllSuggestions');const _0x9e657=Qt(_0x3caf90)?_0x3caf90['getFullData'](_0x22cb78):_0x3caf90['data']['get'](_0x22cb78);return await _0x3caf90['destroy'](),_0x9e657;}class TrackChangesPreviewView extends _0x219eee{['options'];constructor(_0x5505e6,_0xc1751d){super(_0x5505e6),this['options']=_0xc1751d,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'](_0x165c85,_0x5d1fd3){if(!this['element'])return;const _0x43cdc2=[];for(const [_0x16dec4,_0x784423]of _0x165c85){const _0x47821f=document['createElement']('div');_0x47821f['setAttribute']('data-ck-root-name',_0x16dec4),_0x47821f['className']=_0x784423['classes']+'\x20ck-track-changes-preview__root-container',_0x47821f['innerHTML']=_0x784423['content'],_0x43cdc2['push'](_0x47821f);}_0x5d1fd3(this['element'],_0x43cdc2),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class PreviewFinalContentCommand extends _0x4dd781{constructor(_0x1a6faf){super(_0x1a6faf),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1a4766=this['editor'],_0x1dedaf=_0x1a4766['locale'],_0x3c7682=_0x1a4766['plugins']['get']('Dialog');let _0x4f2ae8;const _0x43f0ba=function(_0x4e822c){const _0x53b0e2={};if('editables'in _0x4e822c['ui']['view']){for(const [_0x1683d9,_0x7b7fef]of Object['entries'](_0x4e822c['ui']['view']['editables']))_0x53b0e2[_0x1683d9]=_0x7b7fef['element'];}else _0x53b0e2[_0x4e822c['model']['document']['getRootNames']()[0x0]]=_0x4e822c['ui']['view']['editable']['element'];return _0x53b0e2;}(_0x1a4766),_0x1b6bd0=function(_0x5c8bfa){let _0x4da1b8=0x0;for(const _0x3f4857 of Object['values'](_0x5c8bfa))_0x4da1b8=Math['max'](_0x4da1b8,_0x3f4857['getBoundingClientRect']()['width']);let _0x4724f7=0x0;for(const _0x77112f of Object['values'](_0x5c8bfa))_0x4724f7+=_0x77112f['getBoundingClientRect']()['height'];const _0x4d2e88=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0xa0f88b=Math['min'](_0x4724f7,_0x4d2e88);return{'width':_0x4da1b8,'height':_0xa0f88b};}(_0x43f0ba);_0x3c7682['show']({'id':'finalContentPreview','title':Tt(_0x1dedaf,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new TrackChangesPreviewView(_0x1dedaf,{'dialogRects':_0x1b6bd0}),'onHide':()=>{_0x4f2ae8['detachFromDom']();},'onShow':()=>{_0x1a4766['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x730d57=>{const _0x4dd512=this['_standarizeRootsData'](_0x730d57,_0x1a4766,_0x43f0ba);_0x3c7682['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4dd512,_0x1a4766['config']['get']('trackChanges.preview.renderFunction'));}),_0x4f2ae8=new _0x3e0dbc(_0x1dedaf,[_0x3c7682['view']]),_0x4f2ae8['attachToDom'](),_0x4f2ae8['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1a4766['once']('destroy',()=>{_0x4f2ae8['detachFromDom']();});const _0x1c136d=_0x3c7682['view']['headerView']['class'];_0x3c7682['view']['headerView']['class']=_0x1c136d?_0x1c136d+'\x20ck-reset_all':'ck-reset_all',_0x3c7682['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x3c7682['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3b10a1=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x53f94d=_0x3b10a1['previewMode'],_0x35248c={};if('$labels'===_0x53f94d){for(const _0x4bca70 of _0x3b10a1['getMergeFieldsIds']())_0x35248c[_0x4bca70]=_0x3b10a1['getLabel'](_0x4bca70)||_0x4bca70;}else{const _0x3b324b='$defaultValues'===_0x53f94d?_0x3b10a1['getDefaultValues']():_0x3b10a1['getDataSetValues'](_0x53f94d,!0x0);for(const _0x2178b5 of Object['entries'](_0x3b324b)){const [_0x320929,_0x25ea89]=_0x2178b5;_0x35248c[_0x320929]=null!==_0x25ea89?_0x25ea89:_0x3b10a1['getLabel'](_0x320929)||_0x320929;}}return{'mergeFieldsData':_0x35248c};}['_standarizeRootsData'](_0x125bca,_0x2feec8,_0x3cfc22){let _0x17ff67;if('string'==typeof _0x125bca){const _0x1d0541=_0x2feec8['model']['document']['getRootNames']()[0x0];_0x17ff67={[_0x1d0541]:_0x125bca};}else _0x17ff67=_0x125bca;const _0x4e4c9b=this['_fixMediaEmbeds'](_0x17ff67,_0x2feec8),_0x37d1b0=function(_0x261b5e,_0x282f9b){for(const [_0x20c033,_0x470f79]of _0x261b5e)_0x470f79['classes']=_0x282f9b[_0x20c033]['classList']['value']['replace']('ck-focused','');return _0x261b5e;}(this['_sortRoots'](_0x2feec8)['reduce']((_0x4acdb8,_0x4f8a4d)=>(_0x4acdb8['push']([_0x4f8a4d,{'content':_0x4e4c9b[_0x4f8a4d],'classes':''}]),_0x4acdb8),[]),_0x3cfc22);return _0x37d1b0;}['_fixMediaEmbeds'](_0x7f5fe4,_0x4d05b9){if(!_0x4d05b9['plugins']['has']('MediaEmbedEditing'))return _0x7f5fe4;const _0x9a929d=_0x4d05b9['plugins']['get']('MediaEmbedEditing');for(const [_0x5280da,_0x380a1e]of Object['entries'](_0x7f5fe4)){const _0x150509=document['createElement']('div');_0x150509['innerHTML']=_0x380a1e,(_0x150509['querySelectorAll']('figure.media')['forEach'](_0x783388=>{const _0x38f576=_0x783388['querySelector']('oembed');if(_0x38f576){const _0x3e020f=_0x38f576['getAttribute']('url');if(_0x3e020f){const _0x445652=_0x9a929d['registry']['getMediaViewElement'](new et(_0x4d05b9['editing']['view']['document']),_0x3e020f,{'elementName':'','renderForEditingView':!0x0}),_0x4fca08=document['createElement']('div');_0x4fca08['classList']['add']('ck-media__wrapper'),_0x445652['render'](_0x4fca08,_0x4d05b9['editing']['view']['domConverter']),_0x38f576['replaceWith'](_0x4fca08);}}}),_0x7f5fe4[_0x5280da]=_0x150509['innerHTML']);}return _0x7f5fe4;}['_sortRoots'](_0x2d229d){if(!function(_0x218d0e){return void 0x0!==_0x218d0e['getRootsAttributes'];}(_0x2d229d))return _0x2d229d['model']['document']['getRootNames']();const _0x499900=[],_0x564aab=new Map();for(const _0x58a315 of _0x2d229d['model']['document']['getRootNames']()){const _0x584cca=_0x2d229d['editing']['view']['getDomRoot'](_0x58a315)['getClientRects']()['item'](0x0);_0x499900['push'](_0x58a315),_0x564aab['set'](_0x58a315,_0x584cca);}return _0x499900['sort']((_0x2dfc56,_0x3cf0f8)=>{const _0x245424=_0x564aab['get'](_0x2dfc56),_0x1a1efd=_0x564aab['get'](_0x3cf0f8);return _0x245424['y']-_0x1a1efd['y']||_0x245424['x']-_0x1a1efd['x'];}),_0x499900;}}class TrackChangesPreview extends _0x3000a5{static get['requires'](){return[TrackChangesData,_0x52b772];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x42ade7){super(_0x42ade7),_0x42ade7['commands']['add']('previewFinalContent',new PreviewFinalContentCommand(this['editor'])),_0x42ade7['config']['define']('trackChanges.preview.renderFunction',(_0x3a9c93,_0x6ced30)=>{for(const _0x26cd05 of _0x6ced30)_0x3a9c93['appendChild'](_0x26cd05);});}}export{AcceptSuggestionCommand,BaseSuggestionThreadView,DiscardSuggestionCommand,ExecuteOnAllSuggestionsCommand,ExecuteOnSelectedSuggestionsCommand,PreviewFinalContentCommand,Suggestion,SuggestionDescriptionFactory,SuggestionThreadView,SuggestionView,TrackChanges,TrackChangesCommand,TrackChangesData,TrackChangesDataGetter,TrackChangesEditing,TrackChangesPreview,TrackChangesUI};